|
1 | 1 | 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; |
3 | 188 |
|
4 | 189 | /** |
5 | 190 | * @hidden |
|
0 commit comments