Skip to content

Commit 2bb05f5

Browse files
damyanpetevkdinev
andauthored
fix(grids): correctly exporting grid modules from public_api (#16622)
Co-authored-by: Konstantin Dinev <kdinev@mail.bw.edu>
1 parent 2ba76d7 commit 2bb05f5

File tree

12 files changed

+698
-710
lines changed

12 files changed

+698
-710
lines changed

projects/igniteui-angular/grids/grid/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66

77
// Export grid-specific components
88
export * from './src/public_api';
9-
export * from './src/grid.module';

projects/igniteui-angular/grids/grid/src/grid.module.ts

Lines changed: 186 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,190 @@
11
import { NgModule } from '@angular/core';
2-
import { IGX_GRID_DIRECTIVES } from './public_api';
2+
import { IgxGridComponent } from './grid.component';
3+
4+
/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread
5+
NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310
6+
*/
7+
import {
8+
IgxRowDirective,
9+
IgxGridFooterComponent,
10+
IgxAdvancedFilteringDialogComponent,
11+
IgxHeaderCollapsedIndicatorDirective,
12+
IgxHeaderExpandedIndicatorDirective,
13+
IgxRowCollapsedIndicatorDirective,
14+
IgxRowExpandedIndicatorDirective,
15+
IgxSortAscendingHeaderIconDirective,
16+
IgxSortDescendingHeaderIconDirective,
17+
IgxSortHeaderIconDirective,
18+
IgxGridEmptyTemplateDirective,
19+
IgxGridLoadingTemplateDirective,
20+
IgxExcelStyleHeaderIconDirective,
21+
IgxDragIndicatorIconDirective,
22+
IgxRowDragGhostDirective,
23+
IgxGridStateDirective,
24+
IgxGridHeaderComponent,
25+
IgxGridHeaderGroupComponent,
26+
IgxGridHeaderRowComponent,
27+
IgxFilterCellTemplateDirective,
28+
IgxSummaryTemplateDirective,
29+
IgxCellTemplateDirective,
30+
IgxCellValidationErrorDirective,
31+
IgxCellHeaderTemplateDirective,
32+
IgxCellFooterTemplateDirective,
33+
IgxCellEditorTemplateDirective,
34+
IgxCollapsibleIndicatorTemplateDirective,
35+
IgxColumnComponent,
36+
IgxColumnGroupComponent,
37+
IgxColumnLayoutComponent,
38+
IgxColumnRequiredValidatorDirective,
39+
IgxColumnMinValidatorDirective,
40+
IgxColumnMaxValidatorDirective,
41+
IgxColumnEmailValidatorDirective,
42+
IgxColumnMinLengthValidatorDirective,
43+
IgxColumnMaxLengthValidatorDirective,
44+
IgxColumnPatternValidatorDirective,
45+
IgxColumnActionsComponent,
46+
IgxColumnHidingDirective,
47+
IgxColumnPinningDirective,
48+
IgxRowSelectorDirective,
49+
IgxGroupByRowSelectorDirective,
50+
IgxHeadSelectorDirective,
51+
IgxCSVTextDirective,
52+
IgxExcelTextDirective,
53+
IgxGridToolbarActionsComponent,
54+
IgxGridToolbarAdvancedFilteringComponent,
55+
IgxGridToolbarComponent,
56+
IgxGridToolbarExporterComponent,
57+
IgxGridToolbarHidingComponent,
58+
IgxGridToolbarPinningComponent,
59+
IgxGridToolbarTitleComponent,
60+
IgxGridToolbarDirective,
61+
IgxGridExcelStyleFilteringComponent,
62+
IgxExcelStyleHeaderComponent,
63+
IgxExcelStyleSortingComponent,
64+
IgxExcelStylePinningComponent,
65+
IgxExcelStyleHidingComponent,
66+
IgxExcelStyleSelectingComponent,
67+
IgxExcelStyleClearFiltersComponent,
68+
IgxExcelStyleConditionalFilterComponent,
69+
IgxExcelStyleMovingComponent,
70+
IgxExcelStyleSearchComponent,
71+
IgxExcelStyleColumnOperationsTemplateDirective,
72+
IgxExcelStyleFilterOperationsTemplateDirective,
73+
IgxExcelStyleLoadingValuesTemplateDirective,
74+
IgxGridDetailTemplateDirective,
75+
IgxGroupByRowTemplateDirective,
76+
IgxRowAddTextDirective,
77+
IgxRowEditActionsDirective,
78+
IgxRowEditTabStopDirective,
79+
IgxRowEditTextDirective,
80+
IgxGridActionButtonComponent,
81+
IgxGridPinningActionsComponent,
82+
IgxGridActionsBaseDirective,
83+
IgxGridEditingActionsComponent
84+
} from "igniteui-angular/grids/core";
85+
import {
86+
IgxPaginatorComponent,
87+
IgxPageNavigationComponent,
88+
IgxPageSizeSelectorComponent,
89+
IgxPaginatorContentDirective,
90+
IgxPaginatorDirective
91+
} from 'igniteui-angular/paginator';
92+
93+
/* NOTE: Grid directives collection for ease-of-use import in standalone components scenario */
94+
export const IGX_GRID_DIRECTIVES = [
95+
IgxGridComponent,
96+
IgxGroupByRowTemplateDirective,
97+
IgxGridDetailTemplateDirective,
98+
IgxRowAddTextDirective,
99+
IgxRowEditActionsDirective,
100+
IgxRowEditTextDirective,
101+
IgxRowEditTabStopDirective,
102+
// IGX_GRID_COMMON_DIRECTIVES:
103+
IgxRowDirective,
104+
IgxGridFooterComponent,
105+
IgxAdvancedFilteringDialogComponent,
106+
IgxRowExpandedIndicatorDirective,
107+
IgxRowCollapsedIndicatorDirective,
108+
IgxHeaderExpandedIndicatorDirective,
109+
IgxHeaderCollapsedIndicatorDirective,
110+
IgxExcelStyleHeaderIconDirective,
111+
IgxSortAscendingHeaderIconDirective,
112+
IgxSortDescendingHeaderIconDirective,
113+
IgxSortHeaderIconDirective,
114+
IgxGridEmptyTemplateDirective,
115+
IgxGridLoadingTemplateDirective,
116+
IgxDragIndicatorIconDirective,
117+
IgxRowDragGhostDirective,
118+
IgxGridStateDirective,
119+
// IGX_GRID_ACTIONS
120+
IgxGridPinningActionsComponent,
121+
IgxGridEditingActionsComponent,
122+
IgxGridActionsBaseDirective,
123+
IgxGridActionButtonComponent,
124+
// IGX_GRID_HEADERS_DIRECTIVES:
125+
IgxGridHeaderComponent,
126+
IgxGridHeaderGroupComponent,
127+
IgxGridHeaderRowComponent,
128+
// IGX_GRID_COLUMN_DIRECTIVES:
129+
IgxFilterCellTemplateDirective,
130+
IgxSummaryTemplateDirective,
131+
IgxCellTemplateDirective,
132+
IgxCellValidationErrorDirective,
133+
IgxCellHeaderTemplateDirective,
134+
IgxCellFooterTemplateDirective,
135+
IgxCellEditorTemplateDirective,
136+
IgxCollapsibleIndicatorTemplateDirective,
137+
IgxColumnComponent,
138+
IgxColumnGroupComponent,
139+
IgxColumnLayoutComponent,
140+
// IGX_GRID_COLUMN_ACTIONS_DIRECTIVES:
141+
IgxColumnActionsComponent,
142+
IgxColumnHidingDirective,
143+
IgxColumnPinningDirective,
144+
// IGX_GRID_SELECTION_DIRECTIVES:
145+
IgxRowSelectorDirective,
146+
IgxGroupByRowSelectorDirective,
147+
IgxHeadSelectorDirective,
148+
// IGX_GRID_TOOLBAR_DIRECTIVES:
149+
IgxCSVTextDirective,
150+
IgxExcelTextDirective,
151+
IgxGridToolbarActionsComponent,
152+
IgxGridToolbarAdvancedFilteringComponent,
153+
IgxGridToolbarComponent,
154+
IgxGridToolbarExporterComponent,
155+
IgxGridToolbarHidingComponent,
156+
IgxGridToolbarPinningComponent,
157+
IgxGridToolbarTitleComponent,
158+
IgxGridToolbarDirective,
159+
// IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES:
160+
IgxGridExcelStyleFilteringComponent,
161+
IgxExcelStyleHeaderComponent,
162+
IgxExcelStyleSortingComponent,
163+
IgxExcelStylePinningComponent,
164+
IgxExcelStyleHidingComponent,
165+
IgxExcelStyleSelectingComponent,
166+
IgxExcelStyleClearFiltersComponent,
167+
IgxExcelStyleConditionalFilterComponent,
168+
IgxExcelStyleMovingComponent,
169+
IgxExcelStyleSearchComponent,
170+
IgxExcelStyleColumnOperationsTemplateDirective,
171+
IgxExcelStyleFilterOperationsTemplateDirective,
172+
IgxExcelStyleLoadingValuesTemplateDirective,
173+
// IGX_GRID_VALIDATION_DIRECTIVES:
174+
IgxColumnRequiredValidatorDirective,
175+
IgxColumnMinValidatorDirective,
176+
IgxColumnMaxValidatorDirective,
177+
IgxColumnEmailValidatorDirective,
178+
IgxColumnMinLengthValidatorDirective,
179+
IgxColumnMaxLengthValidatorDirective,
180+
IgxColumnPatternValidatorDirective,
181+
// IGX_PAGINATOR_DIRECTIVES:
182+
IgxPaginatorComponent,
183+
IgxPageNavigationComponent,
184+
IgxPageSizeSelectorComponent,
185+
IgxPaginatorContentDirective,
186+
IgxPaginatorDirective
187+
] as const;
3188

4189
/**
5190
* @hidden
Lines changed: 1 addition & 188 deletions
Original file line numberDiff line numberDiff line change
@@ -1,193 +1,6 @@
1-
import { IgxGridComponent } from './grid.component';
2-
3-
/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread
4-
NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310
5-
*/
6-
7-
import {
8-
IgxRowDirective,
9-
IgxGridFooterComponent,
10-
IgxAdvancedFilteringDialogComponent,
11-
IgxHeaderCollapsedIndicatorDirective,
12-
IgxHeaderExpandedIndicatorDirective,
13-
IgxRowCollapsedIndicatorDirective,
14-
IgxRowExpandedIndicatorDirective,
15-
IgxSortAscendingHeaderIconDirective,
16-
IgxSortDescendingHeaderIconDirective,
17-
IgxSortHeaderIconDirective,
18-
IgxGridEmptyTemplateDirective,
19-
IgxGridLoadingTemplateDirective,
20-
IgxExcelStyleHeaderIconDirective,
21-
IgxDragIndicatorIconDirective,
22-
IgxRowDragGhostDirective,
23-
IgxGridStateDirective,
24-
IgxGridHeaderComponent,
25-
IgxGridHeaderGroupComponent,
26-
IgxGridHeaderRowComponent,
27-
IgxFilterCellTemplateDirective,
28-
IgxSummaryTemplateDirective,
29-
IgxCellTemplateDirective,
30-
IgxCellValidationErrorDirective,
31-
IgxCellHeaderTemplateDirective,
32-
IgxCellFooterTemplateDirective,
33-
IgxCellEditorTemplateDirective,
34-
IgxCollapsibleIndicatorTemplateDirective,
35-
IgxColumnComponent,
36-
IgxColumnGroupComponent,
37-
IgxColumnLayoutComponent,
38-
IgxColumnRequiredValidatorDirective,
39-
IgxColumnMinValidatorDirective,
40-
IgxColumnMaxValidatorDirective,
41-
IgxColumnEmailValidatorDirective,
42-
IgxColumnMinLengthValidatorDirective,
43-
IgxColumnMaxLengthValidatorDirective,
44-
IgxColumnPatternValidatorDirective,
45-
IgxColumnActionsComponent,
46-
IgxColumnHidingDirective,
47-
IgxColumnPinningDirective,
48-
IgxRowSelectorDirective,
49-
IgxGroupByRowSelectorDirective,
50-
IgxHeadSelectorDirective,
51-
IgxCSVTextDirective,
52-
IgxExcelTextDirective,
53-
IgxGridToolbarActionsComponent,
54-
IgxGridToolbarAdvancedFilteringComponent,
55-
IgxGridToolbarComponent,
56-
IgxGridToolbarExporterComponent,
57-
IgxGridToolbarHidingComponent,
58-
IgxGridToolbarPinningComponent,
59-
IgxGridToolbarTitleComponent,
60-
IgxGridToolbarDirective,
61-
IgxGridExcelStyleFilteringComponent,
62-
IgxExcelStyleHeaderComponent,
63-
IgxExcelStyleSortingComponent,
64-
IgxExcelStylePinningComponent,
65-
IgxExcelStyleHidingComponent,
66-
IgxExcelStyleSelectingComponent,
67-
IgxExcelStyleClearFiltersComponent,
68-
IgxExcelStyleConditionalFilterComponent,
69-
IgxExcelStyleMovingComponent,
70-
IgxExcelStyleSearchComponent,
71-
IgxExcelStyleColumnOperationsTemplateDirective,
72-
IgxExcelStyleFilterOperationsTemplateDirective,
73-
IgxExcelStyleLoadingValuesTemplateDirective,
74-
IgxGridDetailTemplateDirective,
75-
IgxGroupByRowTemplateDirective,
76-
IgxRowAddTextDirective,
77-
IgxRowEditActionsDirective,
78-
IgxRowEditTabStopDirective,
79-
IgxRowEditTextDirective,
80-
IgxGridActionButtonComponent,
81-
IgxGridPinningActionsComponent,
82-
IgxGridActionsBaseDirective,
83-
IgxGridEditingActionsComponent
84-
} from "igniteui-angular/grids/core";
85-
import {
86-
IgxPaginatorComponent,
87-
IgxPageNavigationComponent,
88-
IgxPageSizeSelectorComponent,
89-
IgxPaginatorContentDirective,
90-
IgxPaginatorDirective
91-
} from 'igniteui-angular/paginator';
92-
931
export * from './grid.component';
942
export * from './grid-base.directive';
953
export * from './grid.pipes';
964
export * from './grid-row.component';
975
export * from './expandable-cell.component';
98-
99-
/* NOTE: Grid directives collection for ease-of-use import in standalone components scenario */
100-
export const IGX_GRID_DIRECTIVES = [
101-
IgxGridComponent,
102-
IgxGroupByRowTemplateDirective,
103-
IgxGridDetailTemplateDirective,
104-
IgxRowAddTextDirective,
105-
IgxRowEditActionsDirective,
106-
IgxRowEditTextDirective,
107-
IgxRowEditTabStopDirective,
108-
// IGX_GRID_COMMON_DIRECTIVES:
109-
IgxRowDirective,
110-
IgxGridFooterComponent,
111-
IgxAdvancedFilteringDialogComponent,
112-
IgxRowExpandedIndicatorDirective,
113-
IgxRowCollapsedIndicatorDirective,
114-
IgxHeaderExpandedIndicatorDirective,
115-
IgxHeaderCollapsedIndicatorDirective,
116-
IgxExcelStyleHeaderIconDirective,
117-
IgxSortAscendingHeaderIconDirective,
118-
IgxSortDescendingHeaderIconDirective,
119-
IgxSortHeaderIconDirective,
120-
IgxGridEmptyTemplateDirective,
121-
IgxGridLoadingTemplateDirective,
122-
IgxDragIndicatorIconDirective,
123-
IgxRowDragGhostDirective,
124-
IgxGridStateDirective,
125-
// IGX_GRID_ACTIONS
126-
IgxGridPinningActionsComponent,
127-
IgxGridEditingActionsComponent,
128-
IgxGridActionsBaseDirective,
129-
IgxGridActionButtonComponent,
130-
// IGX_GRID_HEADERS_DIRECTIVES:
131-
IgxGridHeaderComponent,
132-
IgxGridHeaderGroupComponent,
133-
IgxGridHeaderRowComponent,
134-
// IGX_GRID_COLUMN_DIRECTIVES:
135-
IgxFilterCellTemplateDirective,
136-
IgxSummaryTemplateDirective,
137-
IgxCellTemplateDirective,
138-
IgxCellValidationErrorDirective,
139-
IgxCellHeaderTemplateDirective,
140-
IgxCellFooterTemplateDirective,
141-
IgxCellEditorTemplateDirective,
142-
IgxCollapsibleIndicatorTemplateDirective,
143-
IgxColumnComponent,
144-
IgxColumnGroupComponent,
145-
IgxColumnLayoutComponent,
146-
// IGX_GRID_COLUMN_ACTIONS_DIRECTIVES:
147-
IgxColumnActionsComponent,
148-
IgxColumnHidingDirective,
149-
IgxColumnPinningDirective,
150-
// IGX_GRID_SELECTION_DIRECTIVES:
151-
IgxRowSelectorDirective,
152-
IgxGroupByRowSelectorDirective,
153-
IgxHeadSelectorDirective,
154-
// IGX_GRID_TOOLBAR_DIRECTIVES:
155-
IgxCSVTextDirective,
156-
IgxExcelTextDirective,
157-
IgxGridToolbarActionsComponent,
158-
IgxGridToolbarAdvancedFilteringComponent,
159-
IgxGridToolbarComponent,
160-
IgxGridToolbarExporterComponent,
161-
IgxGridToolbarHidingComponent,
162-
IgxGridToolbarPinningComponent,
163-
IgxGridToolbarTitleComponent,
164-
IgxGridToolbarDirective,
165-
// IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES:
166-
IgxGridExcelStyleFilteringComponent,
167-
IgxExcelStyleHeaderComponent,
168-
IgxExcelStyleSortingComponent,
169-
IgxExcelStylePinningComponent,
170-
IgxExcelStyleHidingComponent,
171-
IgxExcelStyleSelectingComponent,
172-
IgxExcelStyleClearFiltersComponent,
173-
IgxExcelStyleConditionalFilterComponent,
174-
IgxExcelStyleMovingComponent,
175-
IgxExcelStyleSearchComponent,
176-
IgxExcelStyleColumnOperationsTemplateDirective,
177-
IgxExcelStyleFilterOperationsTemplateDirective,
178-
IgxExcelStyleLoadingValuesTemplateDirective,
179-
// IGX_GRID_VALIDATION_DIRECTIVES:
180-
IgxColumnRequiredValidatorDirective,
181-
IgxColumnMinValidatorDirective,
182-
IgxColumnMaxValidatorDirective,
183-
IgxColumnEmailValidatorDirective,
184-
IgxColumnMinLengthValidatorDirective,
185-
IgxColumnMaxLengthValidatorDirective,
186-
IgxColumnPatternValidatorDirective,
187-
// IGX_PAGINATOR_DIRECTIVES:
188-
IgxPaginatorComponent,
189-
IgxPageNavigationComponent,
190-
IgxPageSizeSelectorComponent,
191-
IgxPaginatorContentDirective,
192-
IgxPaginatorDirective
193-
] as const;
6+
export * from './grid.module';

projects/igniteui-angular/grids/hierarchical-grid/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66

77
// Export hierarchical-grid-specific components
88
export * from './src/public_api';
9-
export * from './src/hierarchical-grid.module';

0 commit comments

Comments
 (0)