Skip to content

Commit 1dd1931

Browse files
fix(elements): Suppress public injects so they are not added to WC. (#16648)
Co-authored-by: damyanpetev <[email protected]>
1 parent 44f1ec7 commit 1dd1931

File tree

13 files changed

+23
-1
lines changed

13 files changed

+23
-1
lines changed

projects/igniteui-angular-elements/src/lib/state.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export interface IGridStateInfo {
4444
standalone: true
4545
})
4646
export class IgxGridStateComponent extends IgxGridStateBaseDirective {
47+
/* blazorSuppress */
4748
public override grid = inject<GridType>(IGX_GRID_BASE);
4849
/**
4950
* Restores grid features' state based on the IGridStateInfo object passed as an argument.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export class IgxActionStripComponent implements IgxActionStripToken, AfterViewIn
9696
private _viewContainer = inject(ViewContainerRef);
9797
private renderer = inject(Renderer2);
9898
protected el = inject(ElementRef);
99+
/* blazorSuppress */
99100
public cdr = inject(ChangeDetectorRef);
100101

101102

projects/igniteui-angular/core/src/services/overlay/utilities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { IScrollStrategy } from './scroll';
1818
standalone: true
1919
})
2020
export class IgxOverlayOutletDirective {
21+
/* blazorSuppress */
2122
public element = inject<ElementRef<HTMLElement>>(ElementRef);
2223

2324
/** @hidden */

projects/igniteui-angular/grids/core/src/columns/column.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const DEFAULT_DIGITS_INFO = '1.0-3';
5555
standalone: true
5656
})
5757
export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnType {
58+
/* blazorSuppress */
5859
public grid = inject<GridType>(IGX_GRID_BASE);
5960
private _validators = inject<Validator[]>(NG_VALIDATORS, { optional: true, self: true });
6061

projects/igniteui-angular/grids/core/src/common/grid.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export interface GridServiceType {
332332
grid: GridType;
333333
/** Represents the type of the CRUD service (Create, Read, Update, Delete) operations on the grid data. */
334334
crudService: any;
335-
/** A service responsible for handling column moving within the grid. It contains a reference to the column, its icon, and indicator for cancelation. */
335+
/** A service responsible for handling column moving within the grid. It contains a reference to the column, its icon, and indicator for cancellation. */
336336
cms: IgxColumnMovingService;
337337

338338
/** Represents a method declaration for retrieving the data used in the grid. The returned values could be of any type */

projects/igniteui-angular/grids/core/src/row.directive.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ import { IgxCheckboxComponent } from 'igniteui-angular/checkbox';
3333
standalone: true
3434
})
3535
export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy {
36+
/* blazorSuppress */
3637
public grid = inject<GridType>(IGX_GRID_BASE);
38+
/* blazorSuppress */
3739
public selectionService = inject(IgxGridSelectionService);
40+
/* blazorSuppress */
3841
public element = inject<ElementRef<HTMLElement>>(ElementRef);
42+
/* blazorSuppress */
3943
public cdr = inject(ChangeDetectorRef);
4044

4145
/**

projects/igniteui-angular/grids/core/src/state-base.directive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ interface Feature {
110110
/* blazorIndirectRender */
111111
@Directive()
112112
export class IgxGridStateBaseDirective {
113+
/* blazorSuppress */
113114
public grid = inject<GridType>(IGX_GRID_BASE, { host: true, optional: true });
114115
protected viewRef = inject(ViewContainerRef);
115116
protected envInjector = inject(EnvironmentInjector);

projects/igniteui-angular/grids/grid/src/grid-base.directive.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,25 @@ const MIN_ROW_EDITING_COUNT_THRESHOLD = 2;
135135
export abstract class IgxGridBaseDirective implements GridType,
136136
OnInit, DoCheck, OnDestroy, AfterContentInit, AfterViewInit {
137137

138+
/* blazorSuppress */
138139
public readonly validation = inject(IgxGridValidationService);
139140
/** @hidden @internal */
140141
public readonly selectionService = inject(IgxGridSelectionService);
141142
protected colResizingService = inject(IgxColumnResizingService);
143+
/* blazorSuppress */
142144
public readonly gridAPI = inject<GridServiceType>(IGX_GRID_SERVICE_BASE);
143145
protected transactionFactory = inject(IgxFlatTransactionFactory);
144146
private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
145147
protected zone = inject(NgZone);
146148
/** @hidden @internal */
147149
public document = inject(DOCUMENT);
150+
/* blazorSuppress */
148151
public readonly cdr = inject(ChangeDetectorRef);
149152
protected differs = inject(IterableDiffers);
150153
protected viewRef = inject(ViewContainerRef);
151154
protected injector = inject(Injector);
152155
protected envInjector = inject(EnvironmentInjector);
156+
/* blazorSuppress */
153157
public navigation = inject(IgxGridNavigationService);
154158
/** @hidden @internal */
155159
public filteringService = inject(IgxFilteringService);

projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid-base.directive.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export const IgxHierarchicalTransactionServiceFactory = {
3434
wcSkipComponentSuffix */
3535
@Directive()
3636
export abstract class IgxHierarchicalGridBaseDirective extends IgxGridBaseDirective implements GridType {
37+
/* blazorSuppress */
3738
public override gridAPI = inject<IgxHierarchicalGridAPIService>(IGX_GRID_SERVICE_BASE);
39+
/* blazorSuppress */
3840
public override navigation = inject(IgxHierarchicalGridNavigationService);
3941
/**
4042
* Gets/Sets the key indicating whether a row has children. If row has no children it does not render an expand indicator.

projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ let NEXT_ID = 0;
4949
imports: [NgClass]
5050
})
5151
export class IgxChildGridRowComponent implements AfterViewInit, OnInit {
52+
/* blazorSuppress */
5253
public readonly gridAPI = inject<IgxHierarchicalGridAPIService>(IGX_GRID_SERVICE_BASE);
54+
/* blazorSuppress */
5355
public element = inject<ElementRef<HTMLElement>>(ElementRef);
56+
/* blazorSuppress */
5457
public cdr = inject(ChangeDetectorRef);
5558

5659
@Input()

0 commit comments

Comments
 (0)