Skip to content

Commit 1a19cde

Browse files
authored
refactor(*): unused standalone imports cleanup (#15213)
1 parent 48ee153 commit 1a19cde

14 files changed

+20
-30
lines changed

projects/igniteui-angular/src/lib/action-strip/action-strip.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { IgxIconComponent } from '../icon/icon.component';
2424
import { IgxDropDownItemNavigationDirective } from '../drop-down/drop-down-navigation.directive';
2525
import { IgxToggleActionDirective } from '../directives/toggle/toggle.directive';
2626
import { IgxRippleDirective } from '../directives/ripple/ripple.directive';
27-
import { IgxButtonDirective } from '../directives/button/button.directive';
2827
import { NgIf, NgFor, NgTemplateOutlet } from '@angular/common';
2928
import { getCurrentResourceStrings } from '../core/i18n/resources';
3029
import { IgxIconButtonDirective } from '../directives/button/icon-button.directive';
@@ -77,7 +76,6 @@ export class IgxActionStripMenuItemDirective {
7776
NgIf,
7877
NgFor,
7978
NgTemplateOutlet,
80-
IgxButtonDirective,
8179
IgxIconButtonDirective,
8280
IgxRippleDirective,
8381
IgxToggleActionDirective,

projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-action-button.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Component, Input, TemplateRef, ViewChild, Output, EventEmitter, ElementRef, booleanAttribute } from '@angular/core';
22
import { IgxIconComponent } from '../../icon/icon.component';
33
import { IgxRippleDirective } from '../../directives/ripple/ripple.directive';
4-
import { IgxButtonDirective } from '../../directives/button/button.directive';
54
import { NgIf } from '@angular/common';
65
import { IgxIconButtonDirective } from '../../directives/button/icon-button.directive';
76

@@ -11,7 +10,7 @@ import { IgxIconButtonDirective } from '../../directives/button/icon-button.dire
1110
@Component({
1211
selector: 'igx-grid-action-button',
1312
templateUrl: 'grid-action-button.component.html',
14-
imports: [NgIf, IgxButtonDirective, IgxRippleDirective, IgxIconComponent, IgxIconButtonDirective]
13+
imports: [NgIf, IgxRippleDirective, IgxIconComponent, IgxIconButtonDirective]
1514
})
1615
export class IgxGridActionButtonComponent {
1716

projects/igniteui-angular/src/lib/calendar/calendar.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
booleanAttribute,
1414
HostListener,
1515
} from '@angular/core';
16-
import { NgIf, NgTemplateOutlet, NgStyle, NgFor, DatePipe } from '@angular/common';
16+
import { NgIf, NgTemplateOutlet, NgFor, DatePipe } from '@angular/common';
1717
import { NG_VALUE_ACCESSOR } from '@angular/forms';
1818

1919
import {
@@ -71,7 +71,7 @@ let NEXT_ID = 0;
7171
],
7272
selector: 'igx-calendar',
7373
templateUrl: 'calendar.component.html',
74-
imports: [NgIf, NgTemplateOutlet, IgxCalendarScrollPageDirective, NgStyle, IgxIconComponent, NgFor, IgxDaysViewComponent, IgxMonthsViewComponent, IgxYearsViewComponent, DatePipe, IgxMonthViewSlotsCalendar, IgxGetViewDateCalendar]
74+
imports: [NgIf, NgTemplateOutlet, IgxCalendarScrollPageDirective, IgxIconComponent, NgFor, IgxDaysViewComponent, IgxMonthsViewComponent, IgxYearsViewComponent, DatePipe, IgxMonthViewSlotsCalendar, IgxGetViewDateCalendar]
7575
})
7676
export class IgxCalendarComponent extends IgxCalendarBaseDirective implements AfterViewInit, OnDestroy {
7777
/**

projects/igniteui-angular/src/lib/calendar/month-picker/month-picker.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
OnDestroy,
1010
OnInit,
1111
} from "@angular/core";
12-
import { NgIf, NgStyle, NgTemplateOutlet, DatePipe } from "@angular/common";
12+
import { NgIf, NgTemplateOutlet, DatePipe } from "@angular/common";
1313
import { NG_VALUE_ACCESSOR } from "@angular/forms";
1414

1515
import { IgxMonthsViewComponent } from "../months-view/months-view.component";
@@ -39,7 +39,6 @@ let NEXT_ID = 0;
3939
templateUrl: "month-picker.component.html",
4040
imports: [
4141
NgIf,
42-
NgStyle,
4342
NgTemplateOutlet,
4443
DatePipe,
4544
IgxIconComponent,

projects/igniteui-angular/src/lib/calendar/months-view/months-view.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Inject,
88
} from "@angular/core";
99
import { IgxCalendarMonthDirective } from "../calendar.directives";
10-
import { NgFor, TitleCasePipe, DatePipe } from "@angular/common";
10+
import { NgFor, TitleCasePipe } from "@angular/common";
1111
import {
1212
IgxCalendarViewDirective,
1313
DAY_INTERVAL_TOKEN,
@@ -33,7 +33,7 @@ let NEXT_ID = 0;
3333
],
3434
selector: "igx-months-view",
3535
templateUrl: "months-view.component.html",
36-
imports: [NgFor, IgxCalendarMonthDirective, TitleCasePipe, DatePipe]
36+
imports: [NgFor, IgxCalendarMonthDirective, TitleCasePipe]
3737
})
3838
export class IgxMonthsViewComponent extends IgxCalendarViewDirective implements ControlValueAccessor {
3939
#standalone = true;

projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-header.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Component, Input, booleanAttribute } from '@angular/core';
22
import { BaseFilteringComponent } from './base-filtering.component';
33
import { IgxIconComponent } from '../../../icon/icon.component';
4-
import { IgxButtonDirective } from '../../../directives/button/button.directive';
54
import { NgIf, NgClass } from '@angular/common';
65
import { IgxIconButtonDirective } from '../../../directives/button/icon-button.directive';
76

@@ -11,7 +10,7 @@ import { IgxIconButtonDirective } from '../../../directives/button/icon-button.d
1110
@Component({
1211
selector: 'igx-excel-style-header',
1312
templateUrl: './excel-style-header.component.html',
14-
imports: [NgIf, IgxButtonDirective, NgClass, IgxIconComponent, IgxIconButtonDirective]
13+
imports: [NgIf, NgClass, IgxIconComponent, IgxIconButtonDirective]
1514
})
1615
export class IgxExcelStyleHeaderComponent {
1716
/**

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-row-dimension-header-group.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { IPivotDimension, PivotRowHeaderGroupType } from './pivot-grid.interface
99
import { IgxPivotRowDimensionHeaderComponent } from './pivot-row-dimension-header.component';
1010
import { IgxHeaderGroupStylePipe } from '../headers/pipes';
1111
import { IgxPivotResizeHandleDirective } from '../resizing/pivot-grid/pivot-resize-handle.directive';
12-
import { IgxGridFilteringCellComponent } from '../filtering/base/grid-filtering-cell.component';
1312
import { IgxColumnMovingDropDirective } from '../moving/moving.drop.directive';
1413
import { IgxColumnMovingDragDirective } from '../moving/moving.drag.directive';
1514
import { NgIf, NgClass, NgStyle } from '@angular/common';
@@ -23,7 +22,7 @@ import { IMultiRowLayoutNode } from '../common/types';
2322
changeDetection: ChangeDetectionStrategy.OnPush,
2423
selector: 'igx-pivot-row-dimension-header-group',
2524
templateUrl: './pivot-row-dimension-header-group.component.html',
26-
imports: [IgxIconComponent, NgIf, IgxPivotRowDimensionHeaderComponent, NgClass, NgStyle, IgxColumnMovingDragDirective, IgxColumnMovingDropDirective, IgxGridFilteringCellComponent, IgxPivotResizeHandleDirective, IgxHeaderGroupStylePipe]
25+
imports: [IgxIconComponent, NgIf, IgxPivotRowDimensionHeaderComponent, NgClass, NgStyle, IgxColumnMovingDragDirective, IgxColumnMovingDropDirective, IgxPivotResizeHandleDirective, IgxHeaderGroupStylePipe]
2726
})
2827
export class IgxPivotRowDimensionHeaderGroupComponent extends IgxGridHeaderGroupComponent implements PivotRowHeaderGroupType {
2928

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-row-dimension-mrl-row.component.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ import {
1515
import { IGX_GRID_BASE, PivotGridType } from '../common/grid.interface';
1616
import { IgxGridHeaderRowComponent } from '../headers/grid-header-row.component';
1717
import { IPivotDimension, IPivotDimensionData, IPivotGridRecord } from './pivot-grid.interface';
18-
import { IgxHeaderGroupWidthPipe, IgxHeaderGroupStylePipe } from '../headers/pipes';
19-
import { IgxIconComponent } from '../../icon/icon.component';
20-
import { NgClass, NgFor, NgStyle } from '@angular/common';
18+
import { NgFor } from '@angular/common';
2119
import { IgxPivotRowDimensionContentComponent } from './pivot-row-dimension-content.component';
2220
import { IgxPivotGridHorizontalRowCellMerging } from './pivot-grid.pipes';
2321

@@ -33,8 +31,7 @@ import { IgxPivotGridHorizontalRowCellMerging } from './pivot-grid.pipes';
3331
changeDetection: ChangeDetectionStrategy.OnPush,
3432
selector: 'igx-pivot-row-dimension-mrl-row',
3533
templateUrl: './pivot-row-dimension-mrl-row.component.html',
36-
imports: [NgClass, NgStyle, NgFor, IgxIconComponent, IgxHeaderGroupWidthPipe, IgxHeaderGroupStylePipe,
37-
IgxPivotRowDimensionContentComponent, IgxPivotGridHorizontalRowCellMerging]
34+
imports: [NgFor, IgxPivotRowDimensionContentComponent, IgxPivotGridHorizontalRowCellMerging]
3835
})
3936
export class IgxPivotRowDimensionMrlRowComponent extends IgxGridHeaderRowComponent {
4037

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-row-header-group.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { IPivotDimension, PivotRowHeaderGroupType } from './pivot-grid.interface
88
import { IgxPivotRowDimensionHeaderComponent } from './pivot-row-dimension-header.component';
99
import { IgxHeaderGroupStylePipe } from '../headers/pipes';
1010
import { IgxPivotResizeHandleDirective } from '../resizing/pivot-grid/pivot-resize-handle.directive';
11-
import { IgxGridFilteringCellComponent } from '../filtering/base/grid-filtering-cell.component';
1211
import { IgxColumnMovingDropDirective } from '../moving/moving.drop.directive';
1312
import { IgxColumnMovingDragDirective } from '../moving/moving.drag.directive';
1413
import { NgIf, NgClass, NgStyle } from '@angular/common';
@@ -22,7 +21,7 @@ import { SortingDirection } from '../../data-operations/sorting-strategy';
2221
changeDetection: ChangeDetectionStrategy.OnPush,
2322
selector: 'igx-pivot-row-header-group',
2423
templateUrl: './pivot-row-dimension-header-group.component.html',
25-
imports: [IgxIconComponent, NgIf, IgxPivotRowDimensionHeaderComponent, NgClass, NgStyle, IgxColumnMovingDragDirective, IgxColumnMovingDropDirective, IgxGridFilteringCellComponent, IgxPivotResizeHandleDirective, IgxHeaderGroupStylePipe]
24+
imports: [IgxIconComponent, NgIf, IgxPivotRowDimensionHeaderComponent, NgClass, NgStyle, IgxColumnMovingDragDirective, IgxColumnMovingDropDirective, IgxPivotResizeHandleDirective, IgxHeaderGroupStylePipe]
2625
})
2726
export class IgxPivotRowHeaderGroupComponent extends IgxGridHeaderGroupComponent implements PivotRowHeaderGroupType {
2827

projects/igniteui-angular/src/lib/grids/toolbar/grid-toolbar-advanced-filtering.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { AfterViewInit, Component, Inject, Input } from '@angular/core';
22
import { IgxToolbarToken } from './token';
33
import { OverlaySettings } from '../../services/overlay/utilities';
44
import { IgxIconComponent } from '../../icon/icon.component';
5-
import { NgClass, NgIf } from '@angular/common';
5+
import { NgIf } from '@angular/common';
66
import { IgxRippleDirective } from '../../directives/ripple/ripple.directive';
77
import { IgxButtonDirective } from '../../directives/button/button.directive';
88
import { FilteringExpressionsTree, IFilteringExpressionsTree } from '../../data-operations/filtering-expressions-tree';
@@ -30,7 +30,7 @@ import { IFilteringExpression } from '../../data-operations/filtering-expression
3030
@Component({
3131
selector: 'igx-grid-toolbar-advanced-filtering',
3232
templateUrl: './grid-toolbar-advanced-filtering.component.html',
33-
imports: [IgxButtonDirective, IgxRippleDirective, NgClass, IgxIconComponent, NgIf]
33+
imports: [IgxButtonDirective, IgxRippleDirective, IgxIconComponent, NgIf]
3434
})
3535
export class IgxGridToolbarAdvancedFilteringComponent implements AfterViewInit {
3636
protected numberOfColumns: number;

0 commit comments

Comments
 (0)