From 2dac41013c5198a05bea7a52f45ab2b212330584 Mon Sep 17 00:00:00 2001 From: Damyan Petev Date: Tue, 7 Jan 2025 15:31:02 +0200 Subject: [PATCH] chore(demos): fix TS-998113 unused standalone imports warnings --- src/app/action-strip/action-strip.sample.ts | 2 -- src/app/button/button.sample.ts | 4 ++-- src/app/calendar-views/calendar-views.sample.ts | 3 +-- src/app/calendar/calendar.sample.ts | 6 ------ src/app/carousel/carousel.sample.ts | 6 +++--- src/app/chips/chips.sample.ts | 2 -- src/app/combo/combo.sample.html | 4 +++- src/app/combo/combo.sample.ts | 4 ---- src/app/date-time-editor/date-time-editor.sample.ts | 4 ++-- src/app/divider/divider.component.ts | 2 -- src/app/grid-column-moving/grid-column-moving.sample.ts | 3 +-- src/app/grid-re-create/grid-re-create.sample.ts | 7 +++---- src/app/grid-selection/grid-selection.sample.ts | 4 +--- src/app/hound/hound.component.ts | 4 ---- src/app/list/list.sample.ts | 6 ------ src/app/month-picker/month-picker.sample.ts | 4 ++-- src/app/pageHeading/pageHeading.component.ts | 4 ++-- src/app/pivot-grid-state/pivot-grid-state.sample.html | 6 +++--- src/app/query-builder/query-builder.sample.html | 2 +- src/app/query-builder/query-builder.sample.ts | 3 +-- src/app/select/select.sample.ts | 3 +-- src/app/virtual-for-directive/virtual-for.sample.ts | 4 ++-- 22 files changed, 28 insertions(+), 59 deletions(-) diff --git a/src/app/action-strip/action-strip.sample.ts b/src/app/action-strip/action-strip.sample.ts index befb37f47ea..d875fcb4719 100644 --- a/src/app/action-strip/action-strip.sample.ts +++ b/src/app/action-strip/action-strip.sample.ts @@ -7,7 +7,6 @@ import { IgxActionStripComponent, IgxActionStripMenuItemDirective, IgxButtonDirective, - IgxButtonGroupComponent, IgxCellTemplateDirective, IgxColumnComponent, IgxGridComponent, @@ -65,7 +64,6 @@ class User { imports: [ NgIf, NgFor, - IgxButtonGroupComponent, IgxButtonDirective, IgxActionStripComponent, IgxIconComponent, diff --git a/src/app/button/button.sample.ts b/src/app/button/button.sample.ts index a83e00b4d91..819a3921ac6 100644 --- a/src/app/button/button.sample.ts +++ b/src/app/button/button.sample.ts @@ -1,6 +1,6 @@ import { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core'; import { Router } from '@angular/router'; -import { IgxButtonDirective, IgxButtonGroupComponent, IgxIconButtonDirective, IgxIconComponent, IgxIconService, IgxRippleDirective } from 'igniteui-angular'; +import { IgxButtonDirective, IgxIconButtonDirective, IgxIconComponent, IgxIconService } from 'igniteui-angular'; import { SizeSelectorComponent } from '../size-selector/size-selector.component'; @Component({ @@ -8,7 +8,7 @@ import { SizeSelectorComponent } from '../size-selector/size-selector.component' styleUrls: ['button.sample.scss'], templateUrl: 'button.sample.html', encapsulation: ViewEncapsulation.None, - imports: [IgxButtonDirective, IgxIconComponent, IgxButtonGroupComponent, IgxIconButtonDirective, IgxRippleDirective, SizeSelectorComponent] + imports: [IgxButtonDirective, IgxIconComponent, IgxIconButtonDirective, SizeSelectorComponent] }) export class ButtonSampleComponent implements OnInit { @ViewChild('inactive', { read: IgxIconButtonDirective, static: true }) diff --git a/src/app/calendar-views/calendar-views.sample.ts b/src/app/calendar-views/calendar-views.sample.ts index d02cf8a85f0..2c6b9b06dd1 100644 --- a/src/app/calendar-views/calendar-views.sample.ts +++ b/src/app/calendar-views/calendar-views.sample.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component, OnInit, ViewChild } from '@angular/core'; import { FormsModule } from '@angular/forms'; -import { DateRangeType, IgxButtonDirective, IgxCardComponent, IgxDaysViewComponent, IgxMonthsViewComponent, IgxRippleDirective, IgxYearsViewComponent } from 'igniteui-angular'; +import { DateRangeType, IgxButtonDirective, IgxDaysViewComponent, IgxMonthsViewComponent, IgxRippleDirective, IgxYearsViewComponent } from 'igniteui-angular'; @Component({ @@ -10,7 +10,6 @@ import { DateRangeType, IgxButtonDirective, IgxCardComponent, IgxDaysViewCompone changeDetection: ChangeDetectionStrategy.OnPush, imports: [ FormsModule, - IgxCardComponent, IgxMonthsViewComponent, IgxYearsViewComponent, IgxDaysViewComponent, diff --git a/src/app/calendar/calendar.sample.ts b/src/app/calendar/calendar.sample.ts index fffe894fc10..e23f62c0369 100644 --- a/src/app/calendar/calendar.sample.ts +++ b/src/app/calendar/calendar.sample.ts @@ -14,13 +14,10 @@ import { IgxDateRangePickerModule, IgxCalendarComponent, IgxCalendarView, - IgxCardComponent, IgxHintDirective, IgxIconComponent, IgxInputDirective, IgxInputGroupComponent, - IgxLabelDirective, - IgxRippleDirective, IgxSwitchComponent, IViewDateChangeEventArgs, DateRange, @@ -72,13 +69,10 @@ defineComponents(IgcCalendarComponent); ], imports: [ IgxButtonDirective, - IgxRippleDirective, IgxDateRangePickerModule, - IgxCardComponent, IgxCalendarComponent, IgxButtonGroupComponent, IgxInputGroupComponent, - IgxLabelDirective, IgxInputDirective, IgxHintDirective, FormsModule, diff --git a/src/app/carousel/carousel.sample.ts b/src/app/carousel/carousel.sample.ts index 730024c24d9..643679fe881 100644 --- a/src/app/carousel/carousel.sample.ts +++ b/src/app/carousel/carousel.sample.ts @@ -1,14 +1,14 @@ import { Component, ViewChild } from '@angular/core'; -import { NgFor, NgIf } from '@angular/common'; +import { NgFor } from '@angular/common'; import { FormsModule } from '@angular/forms'; -import { CarouselIndicatorsOrientation, IgxButtonDirective, IgxCarouselComponent, IgxCarouselIndicatorDirective, IgxDropDownComponent, IgxDropDownItemComponent, IgxDropDownItemNavigationDirective, IgxSlideComponent, IgxSwitchComponent, IgxToggleActionDirective } from 'igniteui-angular'; +import { CarouselIndicatorsOrientation, IGX_CAROUSEL_DIRECTIVES, IgxButtonDirective, IgxCarouselComponent, IgxDropDownComponent, IgxDropDownItemComponent, IgxDropDownItemNavigationDirective, IgxSwitchComponent, IgxToggleActionDirective } from 'igniteui-angular'; @Component({ selector: 'app-carousel-sample', styleUrls: ['carousel.sample.scss'], templateUrl: 'carousel.sample.html', - imports: [IgxSwitchComponent, FormsModule, IgxButtonDirective, IgxToggleActionDirective, IgxDropDownItemNavigationDirective, IgxDropDownComponent, NgFor, IgxDropDownItemComponent, IgxCarouselComponent, IgxSlideComponent, IgxCarouselIndicatorDirective, NgIf] + imports: [IgxSwitchComponent, FormsModule, IgxButtonDirective, IgxToggleActionDirective, IgxDropDownItemNavigationDirective, IgxDropDownComponent, NgFor, IgxDropDownItemComponent, IGX_CAROUSEL_DIRECTIVES] }) export class CarouselSampleComponent { @ViewChild('car', { static: true }) diff --git a/src/app/chips/chips.sample.ts b/src/app/chips/chips.sample.ts index d0a5bf7b324..b31ce8b88ce 100644 --- a/src/app/chips/chips.sample.ts +++ b/src/app/chips/chips.sample.ts @@ -6,7 +6,6 @@ import { IChipsAreaReorderEventArgs, IChipsAreaSelectEventArgs, IgxAvatarComponent, - IgxButtonGroupComponent, IgxChipComponent, IgxChipsAreaComponent, IgxDropDirective, @@ -26,7 +25,6 @@ import { SizeSelectorComponent } from '../size-selector/size-selector.component' styleUrls: ['chips.sample.scss', '../app.component.scss'], templateUrl: 'chips.sample.html', imports: [ - IgxButtonGroupComponent, IgxChipComponent, IgxCircularProgressBarComponent, IgxIconComponent, diff --git a/src/app/combo/combo.sample.html b/src/app/combo/combo.sample.html index 25146c3efe4..e8f5d38988e 100644 --- a/src/app/combo/combo.sample.html +++ b/src/app/combo/combo.sample.html @@ -204,7 +204,9 @@

Template items

- home + + home + Please select the states you've visited diff --git a/src/app/combo/combo.sample.ts b/src/app/combo/combo.sample.ts index 87c75c4d897..fb0effcf6f7 100644 --- a/src/app/combo/combo.sample.ts +++ b/src/app/combo/combo.sample.ts @@ -25,8 +25,6 @@ import { IgxComboHeaderDirective, IgxHintDirective, IgxIconComponent, - IgxInputDirective, - IgxInputGroupComponent, IgxLabelDirective, IgxPrefixDirective, IgxRippleDirective, @@ -45,8 +43,6 @@ import { SizeSelectorComponent } from '../size-selector/size-selector.component' templateUrl: './combo.sample.html', styleUrls: ['combo.sample.scss'], imports: [ - IgxInputGroupComponent, - IgxInputDirective, FormsModule, IgxSimpleComboComponent, IgxLabelDirective, diff --git a/src/app/date-time-editor/date-time-editor.sample.ts b/src/app/date-time-editor/date-time-editor.sample.ts index ea4f5abe8de..3b0f814113b 100644 --- a/src/app/date-time-editor/date-time-editor.sample.ts +++ b/src/app/date-time-editor/date-time-editor.sample.ts @@ -1,12 +1,12 @@ import { Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; -import { IgxButtonDirective, IgxDateTimeEditorDirective, IgxDateTimeEditorEventArgs, IgxIconButtonDirective, IgxIconComponent, IgxInputDirective, IgxInputGroupComponent, IgxRippleDirective, IgxSuffixDirective } from 'igniteui-angular'; +import { IgxDateTimeEditorDirective, IgxDateTimeEditorEventArgs, IgxIconButtonDirective, IgxIconComponent, IgxInputDirective, IgxInputGroupComponent, IgxRippleDirective, IgxSuffixDirective } from 'igniteui-angular'; @Component({ selector: 'app-date-time-editor', templateUrl: './date-time-editor.sample.html', styleUrls: ['./date-time-editor.sample.css'], - imports: [IgxInputGroupComponent, IgxInputDirective, IgxDateTimeEditorDirective, FormsModule, IgxSuffixDirective, IgxRippleDirective, IgxButtonDirective, IgxIconComponent, IgxIconButtonDirective] + imports: [IgxInputGroupComponent, IgxInputDirective, IgxDateTimeEditorDirective, FormsModule, IgxSuffixDirective, IgxRippleDirective, IgxIconComponent, IgxIconButtonDirective] }) export class DateTimeEditorSampleComponent { public date = new Date(2020, 2, 23); diff --git a/src/app/divider/divider.component.ts b/src/app/divider/divider.component.ts index 4b6733d3bef..4f2f508fec6 100644 --- a/src/app/divider/divider.component.ts +++ b/src/app/divider/divider.component.ts @@ -1,6 +1,5 @@ import { Component, QueryList, ViewChildren } from '@angular/core'; import { - IgxButtonDirective, IgxDividerDirective, IgxHintDirective, IgxIconComponent, IgxInputDirective, @@ -22,7 +21,6 @@ import { CommonModule, FormsModule, IgxSwitchComponent, - IgxButtonDirective, IgxDividerDirective, IgxInputGroupComponent, IgxInputDirective, diff --git a/src/app/grid-column-moving/grid-column-moving.sample.ts b/src/app/grid-column-moving/grid-column-moving.sample.ts index e721ae637e9..d6d37eb52f0 100644 --- a/src/app/grid-column-moving/grid-column-moving.sample.ts +++ b/src/app/grid-column-moving/grid-column-moving.sample.ts @@ -4,7 +4,6 @@ import { FormsModule } from '@angular/forms'; import { SAMPLE_DATA } from '../shared/sample-data'; -import { PageHeaderComponent } from '../pageHeading/pageHeading.component'; import { IgxButtonDirective, IgxButtonGroupComponent, IgxCellHeaderTemplateDirective, IgxCellTemplateDirective, IgxCollapsibleIndicatorTemplateDirective, IgxColumnComponent, IgxColumnGroupComponent, IgxGridComponent, IgxGridToolbarActionsComponent, IgxGridToolbarAdvancedFilteringComponent, IgxGridToolbarComponent, IgxGridToolbarHidingComponent, IgxGridToolbarPinningComponent, IgxIconComponent, IgxInputDirective, IgxInputGroupComponent, IgxLabelDirective, IgxPaginatorComponent } from 'igniteui-angular'; @Component({ @@ -12,7 +11,7 @@ import { IgxButtonDirective, IgxButtonGroupComponent, IgxCellHeaderTemplateDirec selector: 'app-grid-column-moving-sample', styleUrls: ['grid-column-moving.sample.scss'], templateUrl: 'grid-column-moving.sample.html', - imports: [IgxButtonDirective, IgxInputGroupComponent, FormsModule, IgxInputDirective, IgxLabelDirective, IgxButtonGroupComponent, IgxGridComponent, IgxGridToolbarComponent, IgxGridToolbarActionsComponent, IgxGridToolbarPinningComponent, IgxGridToolbarHidingComponent, IgxGridToolbarAdvancedFilteringComponent, NgFor, IgxColumnComponent, IgxCellTemplateDirective, NgIf, IgxPaginatorComponent, PageHeaderComponent, IgxColumnGroupComponent, IgxCellHeaderTemplateDirective, IgxCollapsibleIndicatorTemplateDirective, IgxIconComponent] + imports: [IgxButtonDirective, IgxInputGroupComponent, FormsModule, IgxInputDirective, IgxLabelDirective, IgxButtonGroupComponent, IgxGridComponent, IgxGridToolbarComponent, IgxGridToolbarActionsComponent, IgxGridToolbarPinningComponent, IgxGridToolbarHidingComponent, IgxGridToolbarAdvancedFilteringComponent, NgFor, IgxColumnComponent, IgxCellTemplateDirective, NgIf, IgxPaginatorComponent, IgxColumnGroupComponent, IgxCellHeaderTemplateDirective, IgxCollapsibleIndicatorTemplateDirective, IgxIconComponent] }) export class GridColumnMovingSampleComponent implements OnInit { @HostBinding('style.--ig-size') diff --git a/src/app/grid-re-create/grid-re-create.sample.ts b/src/app/grid-re-create/grid-re-create.sample.ts index 3adc49c2ffe..e8a1990a8be 100644 --- a/src/app/grid-re-create/grid-re-create.sample.ts +++ b/src/app/grid-re-create/grid-re-create.sample.ts @@ -1,6 +1,6 @@ -import { NgFor, NgIf } from '@angular/common'; +import { NgIf } from '@angular/common'; import { Component, OnInit } from '@angular/core'; -import { IgxAvatarComponent, IgxColumnComponent, IgxGridComponent, IgxIconComponent, IgxListComponent, IgxListItemComponent, IgxPageNavigationComponent, IgxPageSizeSelectorComponent, IgxPaginatorComponent, IgxPaginatorContentDirective } from 'igniteui-angular'; +import { IgxColumnComponent, IgxGridComponent } from 'igniteui-angular'; @Component({ @@ -10,8 +10,7 @@ import { IgxAvatarComponent, IgxColumnComponent, IgxGridComponent, IgxIconCompo standalone: true, providers: [ ], - imports: [NgIf, NgFor, IgxGridComponent, IgxColumnComponent,IgxListComponent, IgxListItemComponent, IgxAvatarComponent, IgxIconComponent, - IgxPaginatorComponent, IgxPaginatorContentDirective, IgxPageSizeSelectorComponent, IgxPageNavigationComponent] + imports: [NgIf, IgxGridComponent, IgxColumnComponent] }) export class GridRecreateSampleComponent implements OnInit { public data = [] as any[]; diff --git a/src/app/grid-selection/grid-selection.sample.ts b/src/app/grid-selection/grid-selection.sample.ts index 6e711680c2c..bf6cb631cc7 100644 --- a/src/app/grid-selection/grid-selection.sample.ts +++ b/src/app/grid-selection/grid-selection.sample.ts @@ -1,5 +1,5 @@ import { AfterViewInit, ChangeDetectorRef, Component, ViewChild } from '@angular/core'; -import { NgFor, NgIf, AsyncPipe } from '@angular/common'; +import { NgFor } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { Observable } from 'rxjs'; @@ -14,7 +14,6 @@ import { data } from '../shared/data'; styleUrls: ['grid-selection.sample.scss'], providers: [RemoteService], imports: [ - AsyncPipe, FormsModule, IGX_INPUT_GROUP_DIRECTIVES, IGX_SELECT_DIRECTIVES, @@ -23,7 +22,6 @@ import { data } from '../shared/data'; IgxGridComponent, IgxSwitchComponent, NgFor, - NgIf, ] }) export class GridSelectionComponent implements AfterViewInit { diff --git a/src/app/hound/hound.component.ts b/src/app/hound/hound.component.ts index e5770e2a674..405526479ea 100644 --- a/src/app/hound/hound.component.ts +++ b/src/app/hound/hound.component.ts @@ -1,6 +1,5 @@ import {Component, OnInit} from '@angular/core'; import { - IgxAvatarComponent, IgxButtonModule, IgxCheckboxComponent, IgxComboComponent, @@ -23,7 +22,6 @@ import { IgxTabsComponent, IgxTabsModule, IgxToggleActionDirective, - IgxToggleDirective } from "igniteui-angular"; import {FormsModule} from "@angular/forms"; import {NgForOf, NgIf} from "@angular/common"; @@ -45,7 +43,6 @@ import {NgForOf, NgIf} from "@angular/common"; IgxComboComponent, IgxCheckboxComponent, IgxDropDownComponent, - IgxToggleDirective, IgxDropDownItemComponent, IgxToggleActionDirective, IgxRadioComponent, @@ -57,7 +54,6 @@ import {NgForOf, NgIf} from "@angular/common"; IgxTabItemComponent, IgxTabHeaderIconDirective, IgxTabHeaderLabelDirective, - IgxAvatarComponent, IgxTabHeaderComponent, ], templateUrl: './hound.component.html', diff --git a/src/app/list/list.sample.ts b/src/app/list/list.sample.ts index a89f35d011f..0a93938a077 100644 --- a/src/app/list/list.sample.ts +++ b/src/app/list/list.sample.ts @@ -7,8 +7,6 @@ import { IgxAvatarComponent, IgxBadgeComponent, IgxButtonDirective, - IgxButtonGroupComponent, - IgxCardComponent, IgxCheckboxComponent, IgxDialogComponent, IgxFilterDirective, @@ -16,7 +14,6 @@ import { IgxFilterPipe, IgxIconComponent, IgxListComponent, - IgxRippleDirective, IgxSwitchComponent } from 'igniteui-angular'; import { SizeSelectorComponent } from '../size-selector/size-selector.component'; @@ -36,10 +33,7 @@ interface Employee { imports: [ NgFor, FormsModule, - IgxButtonGroupComponent, IgxBadgeComponent, - IgxCardComponent, - IgxRippleDirective, IgxIconComponent, IgxCheckboxComponent, IgxAvatarComponent, diff --git a/src/app/month-picker/month-picker.sample.ts b/src/app/month-picker/month-picker.sample.ts index 778ef3e9890..068b5a064f7 100644 --- a/src/app/month-picker/month-picker.sample.ts +++ b/src/app/month-picker/month-picker.sample.ts @@ -1,12 +1,12 @@ import { Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; -import { IgxCardComponent, IgxMonthPickerComponent, IgxButtonDirective } from 'igniteui-angular'; +import { IgxMonthPickerComponent, IgxButtonDirective } from 'igniteui-angular'; @Component({ selector: 'app-monthpicker', styleUrls: ['./month-picker.sample.scss'], templateUrl: './month-picker.sample.html', - imports: [IgxCardComponent, IgxMonthPickerComponent, IgxButtonDirective, FormsModule] + imports: [IgxMonthPickerComponent, IgxButtonDirective, FormsModule] }) export class MonthPickerSampleComponent { public date = new Date(2024, 1, 1); diff --git a/src/app/pageHeading/pageHeading.component.ts b/src/app/pageHeading/pageHeading.component.ts index 51d01aef542..cd6d54203bc 100644 --- a/src/app/pageHeading/pageHeading.component.ts +++ b/src/app/pageHeading/pageHeading.component.ts @@ -1,12 +1,12 @@ import { Component, Input } from '@angular/core'; -import { IgxButtonDirective, IgxIconButtonDirective, IgxIconComponent, IgxRippleDirective, IgxToggleActionDirective } from 'igniteui-angular'; +import { IgxIconButtonDirective, IgxIconComponent, IgxRippleDirective, IgxToggleActionDirective } from 'igniteui-angular'; @Component({ selector: 'app-page-header', styleUrls: ['./pageHeading.styles.scss'], templateUrl: './pageHeading.template.html', - imports: [IgxButtonDirective, IgxRippleDirective, IgxToggleActionDirective, IgxIconComponent, IgxIconButtonDirective] + imports: [IgxRippleDirective, IgxToggleActionDirective, IgxIconComponent, IgxIconButtonDirective] }) export class PageHeaderComponent { @Input() diff --git a/src/app/pivot-grid-state/pivot-grid-state.sample.html b/src/app/pivot-grid-state/pivot-grid-state.sample.html index 0ca6237b684..4afc8d18613 100644 --- a/src/app/pivot-grid-state/pivot-grid-state.sample.html +++ b/src/app/pivot-grid-state/pivot-grid-state.sample.html @@ -22,9 +22,9 @@ [filterMode]="'quickFilter'" [rowSelection]="'single'" > - + + {{col.header}} 📐 + diff --git a/src/app/query-builder/query-builder.sample.html b/src/app/query-builder/query-builder.sample.html index 0df8870cc71..d9781214eea 100644 --- a/src/app/query-builder/query-builder.sample.html +++ b/src/app/query-builder/query-builder.sample.html @@ -7,7 +7,7 @@ [fields]="this.fields" [expressionTree]="this.expressionTree"> - + Custom Title
diff --git a/src/app/query-builder/query-builder.sample.ts b/src/app/query-builder/query-builder.sample.ts index 1649ce5220a..c39a511ece2 100644 --- a/src/app/query-builder/query-builder.sample.ts +++ b/src/app/query-builder/query-builder.sample.ts @@ -5,7 +5,6 @@ import { FilteringExpressionsTree, IgxStringFilteringOperand, changei18n, IExpressionTree, IgxButtonDirective, - IgxButtonGroupComponent, IgxRippleDirective, IgxQueryBuilderHeaderComponent} from 'igniteui-angular'; import { IgxResourceStringsFR } from 'igniteui-angular-i18n'; @@ -16,7 +15,7 @@ import { SizeSelectorComponent } from '../size-selector/size-selector.component' selector: 'app-query-builder-sample', styleUrls: ['query-builder.sample.scss'], templateUrl: 'query-builder.sample.html', - imports: [IgxButtonGroupComponent, IgxQueryBuilderComponent, IgxQueryBuilderHeaderComponent, IgxButtonDirective, IgxRippleDirective, SizeSelectorComponent] + imports: [IgxQueryBuilderComponent, IgxQueryBuilderHeaderComponent, IgxButtonDirective, IgxRippleDirective, SizeSelectorComponent] }) export class QueryBuilderComponent implements OnInit { @ViewChild('queryBuilder', { static: true }) diff --git a/src/app/select/select.sample.ts b/src/app/select/select.sample.ts index 0d8527aae38..f97e8349d9a 100644 --- a/src/app/select/select.sample.ts +++ b/src/app/select/select.sample.ts @@ -1,7 +1,7 @@ import { Component, OnInit, ViewChildren, QueryList, ViewChild } from '@angular/core'; import { UntypedFormBuilder, UntypedFormGroup, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms'; import { NgFor } from '@angular/common'; -import { IgxButtonDirective, IgxSelectComponent, IgxLabelDirective, IgxPrefixDirective, IgxIconComponent, IgxSelectItemComponent, IgxSelectHeaderDirective, IgxSelectFooterDirective, IgxButtonGroupComponent, IgxSuffixDirective, IgxHintDirective, IgxSelectGroupComponent, IgxSwitchComponent, ISelectionEventArgs, CancelableEventArgs, HorizontalAlignment, VerticalAlignment, ConnectedPositioningStrategy, AbsoluteScrollStrategy } from 'igniteui-angular'; +import { IgxButtonDirective, IgxSelectComponent, IgxLabelDirective, IgxPrefixDirective, IgxIconComponent, IgxSelectItemComponent, IgxSelectHeaderDirective, IgxSelectFooterDirective, IgxSuffixDirective, IgxHintDirective, IgxSelectGroupComponent, IgxSwitchComponent, ISelectionEventArgs, CancelableEventArgs, HorizontalAlignment, VerticalAlignment, ConnectedPositioningStrategy, AbsoluteScrollStrategy } from 'igniteui-angular'; import { scaleInTop, scaleOutBottom } from 'igniteui-angular/animations'; import { SizeSelectorComponent } from '../size-selector/size-selector.component'; @@ -22,7 +22,6 @@ import { SizeSelectorComponent } from '../size-selector/size-selector.component' NgFor, IgxSelectHeaderDirective, IgxSelectFooterDirective, - IgxButtonGroupComponent, IgxSuffixDirective, IgxHintDirective, IgxSelectGroupComponent, diff --git a/src/app/virtual-for-directive/virtual-for.sample.ts b/src/app/virtual-for-directive/virtual-for.sample.ts index dd2274fc501..f315df145d1 100644 --- a/src/app/virtual-for-directive/virtual-for.sample.ts +++ b/src/app/virtual-for-directive/virtual-for.sample.ts @@ -1,7 +1,7 @@ import { Component, ViewChild, OnInit, ViewEncapsulation } from '@angular/core'; import { NgClass, AsyncPipe } from '@angular/common'; import { RemoteService } from '../shared/remote.service'; -import { IgxForOfDirective, ButtonGroupAlignment, IgxListComponent, IgxButtonDirective, IgxButtonGroupComponent, IgxInputDirective, IgxInputGroupComponent, IgxListItemComponent, IgxSuffixDirective, IgxAvatarComponent } from 'igniteui-angular'; +import { IgxForOfDirective, ButtonGroupAlignment, IgxListComponent, IgxButtonDirective, IgxButtonGroupComponent, IgxInputDirective, IgxInputGroupComponent, IgxListItemComponent, IgxSuffixDirective } from 'igniteui-angular'; @Component({ @@ -10,7 +10,7 @@ import { IgxForOfDirective, ButtonGroupAlignment, IgxListComponent, IgxButtonDir styleUrls: ['virtual-for.sample.css'], encapsulation: ViewEncapsulation.None, providers: [RemoteService], - imports: [IgxAvatarComponent, IgxListComponent, IgxForOfDirective, IgxListItemComponent, IgxInputGroupComponent, IgxInputDirective, IgxSuffixDirective, IgxButtonDirective, IgxButtonGroupComponent, NgClass, AsyncPipe] + imports: [IgxListComponent, IgxForOfDirective, IgxListItemComponent, IgxInputGroupComponent, IgxInputDirective, IgxSuffixDirective, IgxButtonDirective, IgxButtonGroupComponent, NgClass, AsyncPipe] }) export class VirtualForSampleComponent implements OnInit { @ViewChild('virtDirVertical', { read: IgxForOfDirective, static: true })