Skip to content

Commit dbe30fc

Browse files
authored
refactor(*): unused standalone imports cleanup (#15214)
1 parent 319bd1b commit dbe30fc

14 files changed

+20
-31
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';
@@ -78,7 +77,6 @@ export class IgxActionStripMenuItemDirective {
7877
NgIf,
7978
NgFor,
8079
NgTemplateOutlet,
81-
IgxButtonDirective,
8280
IgxIconButtonDirective,
8381
IgxRippleDirective,
8482
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

@@ -12,7 +11,7 @@ import { IgxIconButtonDirective } from '../../directives/button/icon-button.dire
1211
selector: 'igx-grid-action-button',
1312
templateUrl: 'grid-action-button.component.html',
1413
standalone: true,
15-
imports: [NgIf, IgxButtonDirective, IgxRippleDirective, IgxIconComponent, IgxIconButtonDirective]
14+
imports: [NgIf, IgxRippleDirective, IgxIconComponent, IgxIconButtonDirective]
1615
})
1716
export class IgxGridActionButtonComponent {
1817

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 {
@@ -72,7 +72,7 @@ let NEXT_ID = 0;
7272
selector: 'igx-calendar',
7373
templateUrl: 'calendar.component.html',
7474
standalone: true,
75-
imports: [NgIf, NgTemplateOutlet, IgxCalendarScrollPageDirective, NgStyle, IgxIconComponent, NgFor, IgxDaysViewComponent, IgxMonthsViewComponent, IgxYearsViewComponent, DatePipe, IgxMonthViewSlotsCalendar, IgxGetViewDateCalendar],
75+
imports: [NgIf, NgTemplateOutlet, IgxCalendarScrollPageDirective, IgxIconComponent, NgFor, IgxDaysViewComponent, IgxMonthsViewComponent, IgxYearsViewComponent, DatePipe, IgxMonthViewSlotsCalendar, IgxGetViewDateCalendar],
7676
})
7777
export class IgxCalendarComponent extends IgxCalendarBaseDirective implements AfterViewInit, OnDestroy {
7878
/**

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";
@@ -40,7 +40,6 @@ let NEXT_ID = 0;
4040
standalone: true,
4141
imports: [
4242
NgIf,
43-
NgStyle,
4443
NgTemplateOutlet,
4544
DatePipe,
4645
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,
@@ -34,7 +34,7 @@ let NEXT_ID = 0;
3434
selector: "igx-months-view",
3535
templateUrl: "months-view.component.html",
3636
standalone: true,
37-
imports: [NgFor, IgxCalendarMonthDirective, TitleCasePipe, DatePipe],
37+
imports: [NgFor, IgxCalendarMonthDirective, TitleCasePipe],
3838
})
3939
export class IgxMonthsViewComponent extends IgxCalendarViewDirective implements ControlValueAccessor {
4040
#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

@@ -12,7 +11,7 @@ import { IgxIconButtonDirective } from '../../../directives/button/icon-button.d
1211
selector: 'igx-excel-style-header',
1312
templateUrl: './excel-style-header.component.html',
1413
standalone: true,
15-
imports: [NgIf, IgxButtonDirective, NgClass, IgxIconComponent, IgxIconButtonDirective]
14+
imports: [NgIf, NgClass, IgxIconComponent, IgxIconButtonDirective]
1615
})
1716
export class IgxExcelStyleHeaderComponent {
1817
/**

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';
@@ -24,7 +23,7 @@ import { IMultiRowLayoutNode } from '../common/types';
2423
selector: 'igx-pivot-row-dimension-header-group',
2524
templateUrl: './pivot-row-dimension-header-group.component.html',
2625
standalone: true,
27-
imports: [IgxIconComponent, NgIf, IgxPivotRowDimensionHeaderComponent, NgClass, NgStyle, IgxColumnMovingDragDirective, IgxColumnMovingDropDirective, IgxGridFilteringCellComponent, IgxPivotResizeHandleDirective, IgxHeaderGroupStylePipe]
26+
imports: [IgxIconComponent, NgIf, IgxPivotRowDimensionHeaderComponent, NgClass, NgStyle, IgxColumnMovingDragDirective, IgxColumnMovingDropDirective, IgxPivotResizeHandleDirective, IgxHeaderGroupStylePipe]
2827
})
2928
export class IgxPivotRowDimensionHeaderGroupComponent extends IgxGridHeaderGroupComponent implements PivotRowHeaderGroupType {
3029

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

@@ -34,8 +32,7 @@ import { IgxPivotGridHorizontalRowCellMerging } from './pivot-grid.pipes';
3432
selector: 'igx-pivot-row-dimension-mrl-row',
3533
templateUrl: './pivot-row-dimension-mrl-row.component.html',
3634
standalone: true,
37-
imports: [NgClass, NgStyle, NgFor, IgxIconComponent, IgxHeaderGroupWidthPipe, IgxHeaderGroupStylePipe,
38-
IgxPivotRowDimensionContentComponent, IgxPivotGridHorizontalRowCellMerging]
35+
imports: [NgFor, IgxPivotRowDimensionContentComponent, IgxPivotGridHorizontalRowCellMerging]
3936
})
4037
export class IgxPivotRowDimensionMrlRowComponent extends IgxGridHeaderRowComponent {
4138

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';
@@ -23,7 +22,7 @@ import { SortingDirection } from '../../data-operations/sorting-strategy';
2322
selector: 'igx-pivot-row-header-group',
2423
templateUrl: './pivot-row-dimension-header-group.component.html',
2524
standalone: true,
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 IgxPivotRowHeaderGroupComponent extends IgxGridHeaderGroupComponent implements PivotRowHeaderGroupType {
2928

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';
@@ -31,7 +31,7 @@ import { IFilteringExpression } from '../../data-operations/filtering-expression
3131
selector: 'igx-grid-toolbar-advanced-filtering',
3232
templateUrl: './grid-toolbar-advanced-filtering.component.html',
3333
standalone: true,
34-
imports: [IgxButtonDirective, IgxRippleDirective, NgClass, IgxIconComponent, NgIf]
34+
imports: [IgxButtonDirective, IgxRippleDirective, IgxIconComponent, NgIf]
3535
})
3636
export class IgxGridToolbarAdvancedFilteringComponent implements AfterViewInit {
3737
protected numberOfColumns: number;

0 commit comments

Comments
 (0)