diff --git a/projects/igniteui-angular/grids/grid/index.ts b/projects/igniteui-angular/grids/grid/index.ts index a945b107663..caec6711424 100644 --- a/projects/igniteui-angular/grids/grid/index.ts +++ b/projects/igniteui-angular/grids/grid/index.ts @@ -6,4 +6,3 @@ // Export grid-specific components export * from './src/public_api'; -export * from './src/grid.module'; diff --git a/projects/igniteui-angular/grids/grid/src/grid.module.ts b/projects/igniteui-angular/grids/grid/src/grid.module.ts index adb8dd0b53a..f2088b3ccbe 100644 --- a/projects/igniteui-angular/grids/grid/src/grid.module.ts +++ b/projects/igniteui-angular/grids/grid/src/grid.module.ts @@ -1,5 +1,190 @@ import { NgModule } from '@angular/core'; -import { IGX_GRID_DIRECTIVES } from './public_api'; +import { IgxGridComponent } from './grid.component'; + +/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread + NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310 +*/ +import { + IgxRowDirective, + IgxGridFooterComponent, + IgxAdvancedFilteringDialogComponent, + IgxHeaderCollapsedIndicatorDirective, + IgxHeaderExpandedIndicatorDirective, + IgxRowCollapsedIndicatorDirective, + IgxRowExpandedIndicatorDirective, + IgxSortAscendingHeaderIconDirective, + IgxSortDescendingHeaderIconDirective, + IgxSortHeaderIconDirective, + IgxGridEmptyTemplateDirective, + IgxGridLoadingTemplateDirective, + IgxExcelStyleHeaderIconDirective, + IgxDragIndicatorIconDirective, + IgxRowDragGhostDirective, + IgxGridStateDirective, + IgxGridHeaderComponent, + IgxGridHeaderGroupComponent, + IgxGridHeaderRowComponent, + IgxFilterCellTemplateDirective, + IgxSummaryTemplateDirective, + IgxCellTemplateDirective, + IgxCellValidationErrorDirective, + IgxCellHeaderTemplateDirective, + IgxCellFooterTemplateDirective, + IgxCellEditorTemplateDirective, + IgxCollapsibleIndicatorTemplateDirective, + IgxColumnComponent, + IgxColumnGroupComponent, + IgxColumnLayoutComponent, + IgxColumnRequiredValidatorDirective, + IgxColumnMinValidatorDirective, + IgxColumnMaxValidatorDirective, + IgxColumnEmailValidatorDirective, + IgxColumnMinLengthValidatorDirective, + IgxColumnMaxLengthValidatorDirective, + IgxColumnPatternValidatorDirective, + IgxColumnActionsComponent, + IgxColumnHidingDirective, + IgxColumnPinningDirective, + IgxRowSelectorDirective, + IgxGroupByRowSelectorDirective, + IgxHeadSelectorDirective, + IgxCSVTextDirective, + IgxExcelTextDirective, + IgxGridToolbarActionsComponent, + IgxGridToolbarAdvancedFilteringComponent, + IgxGridToolbarComponent, + IgxGridToolbarExporterComponent, + IgxGridToolbarHidingComponent, + IgxGridToolbarPinningComponent, + IgxGridToolbarTitleComponent, + IgxGridToolbarDirective, + IgxGridExcelStyleFilteringComponent, + IgxExcelStyleHeaderComponent, + IgxExcelStyleSortingComponent, + IgxExcelStylePinningComponent, + IgxExcelStyleHidingComponent, + IgxExcelStyleSelectingComponent, + IgxExcelStyleClearFiltersComponent, + IgxExcelStyleConditionalFilterComponent, + IgxExcelStyleMovingComponent, + IgxExcelStyleSearchComponent, + IgxExcelStyleColumnOperationsTemplateDirective, + IgxExcelStyleFilterOperationsTemplateDirective, + IgxExcelStyleLoadingValuesTemplateDirective, + IgxGridDetailTemplateDirective, + IgxGroupByRowTemplateDirective, + IgxRowAddTextDirective, + IgxRowEditActionsDirective, + IgxRowEditTabStopDirective, + IgxRowEditTextDirective, + IgxGridActionButtonComponent, + IgxGridPinningActionsComponent, + IgxGridActionsBaseDirective, + IgxGridEditingActionsComponent +} from "igniteui-angular/grids/core"; +import { + IgxPaginatorComponent, + IgxPageNavigationComponent, + IgxPageSizeSelectorComponent, + IgxPaginatorContentDirective, + IgxPaginatorDirective +} from 'igniteui-angular/paginator'; + +/* NOTE: Grid directives collection for ease-of-use import in standalone components scenario */ +export const IGX_GRID_DIRECTIVES = [ + IgxGridComponent, + IgxGroupByRowTemplateDirective, + IgxGridDetailTemplateDirective, + IgxRowAddTextDirective, + IgxRowEditActionsDirective, + IgxRowEditTextDirective, + IgxRowEditTabStopDirective, + // IGX_GRID_COMMON_DIRECTIVES: + IgxRowDirective, + IgxGridFooterComponent, + IgxAdvancedFilteringDialogComponent, + IgxRowExpandedIndicatorDirective, + IgxRowCollapsedIndicatorDirective, + IgxHeaderExpandedIndicatorDirective, + IgxHeaderCollapsedIndicatorDirective, + IgxExcelStyleHeaderIconDirective, + IgxSortAscendingHeaderIconDirective, + IgxSortDescendingHeaderIconDirective, + IgxSortHeaderIconDirective, + IgxGridEmptyTemplateDirective, + IgxGridLoadingTemplateDirective, + IgxDragIndicatorIconDirective, + IgxRowDragGhostDirective, + IgxGridStateDirective, + // IGX_GRID_ACTIONS + IgxGridPinningActionsComponent, + IgxGridEditingActionsComponent, + IgxGridActionsBaseDirective, + IgxGridActionButtonComponent, + // IGX_GRID_HEADERS_DIRECTIVES: + IgxGridHeaderComponent, + IgxGridHeaderGroupComponent, + IgxGridHeaderRowComponent, + // IGX_GRID_COLUMN_DIRECTIVES: + IgxFilterCellTemplateDirective, + IgxSummaryTemplateDirective, + IgxCellTemplateDirective, + IgxCellValidationErrorDirective, + IgxCellHeaderTemplateDirective, + IgxCellFooterTemplateDirective, + IgxCellEditorTemplateDirective, + IgxCollapsibleIndicatorTemplateDirective, + IgxColumnComponent, + IgxColumnGroupComponent, + IgxColumnLayoutComponent, + // IGX_GRID_COLUMN_ACTIONS_DIRECTIVES: + IgxColumnActionsComponent, + IgxColumnHidingDirective, + IgxColumnPinningDirective, + // IGX_GRID_SELECTION_DIRECTIVES: + IgxRowSelectorDirective, + IgxGroupByRowSelectorDirective, + IgxHeadSelectorDirective, + // IGX_GRID_TOOLBAR_DIRECTIVES: + IgxCSVTextDirective, + IgxExcelTextDirective, + IgxGridToolbarActionsComponent, + IgxGridToolbarAdvancedFilteringComponent, + IgxGridToolbarComponent, + IgxGridToolbarExporterComponent, + IgxGridToolbarHidingComponent, + IgxGridToolbarPinningComponent, + IgxGridToolbarTitleComponent, + IgxGridToolbarDirective, + // IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES: + IgxGridExcelStyleFilteringComponent, + IgxExcelStyleHeaderComponent, + IgxExcelStyleSortingComponent, + IgxExcelStylePinningComponent, + IgxExcelStyleHidingComponent, + IgxExcelStyleSelectingComponent, + IgxExcelStyleClearFiltersComponent, + IgxExcelStyleConditionalFilterComponent, + IgxExcelStyleMovingComponent, + IgxExcelStyleSearchComponent, + IgxExcelStyleColumnOperationsTemplateDirective, + IgxExcelStyleFilterOperationsTemplateDirective, + IgxExcelStyleLoadingValuesTemplateDirective, + // IGX_GRID_VALIDATION_DIRECTIVES: + IgxColumnRequiredValidatorDirective, + IgxColumnMinValidatorDirective, + IgxColumnMaxValidatorDirective, + IgxColumnEmailValidatorDirective, + IgxColumnMinLengthValidatorDirective, + IgxColumnMaxLengthValidatorDirective, + IgxColumnPatternValidatorDirective, + // IGX_PAGINATOR_DIRECTIVES: + IgxPaginatorComponent, + IgxPageNavigationComponent, + IgxPageSizeSelectorComponent, + IgxPaginatorContentDirective, + IgxPaginatorDirective +] as const; /** * @hidden diff --git a/projects/igniteui-angular/grids/grid/src/public_api.ts b/projects/igniteui-angular/grids/grid/src/public_api.ts index 6e0e1131782..f18ec514a7f 100644 --- a/projects/igniteui-angular/grids/grid/src/public_api.ts +++ b/projects/igniteui-angular/grids/grid/src/public_api.ts @@ -1,193 +1,6 @@ -import { IgxGridComponent } from './grid.component'; - -/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread - NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310 -*/ - -import { - IgxRowDirective, - IgxGridFooterComponent, - IgxAdvancedFilteringDialogComponent, - IgxHeaderCollapsedIndicatorDirective, - IgxHeaderExpandedIndicatorDirective, - IgxRowCollapsedIndicatorDirective, - IgxRowExpandedIndicatorDirective, - IgxSortAscendingHeaderIconDirective, - IgxSortDescendingHeaderIconDirective, - IgxSortHeaderIconDirective, - IgxGridEmptyTemplateDirective, - IgxGridLoadingTemplateDirective, - IgxExcelStyleHeaderIconDirective, - IgxDragIndicatorIconDirective, - IgxRowDragGhostDirective, - IgxGridStateDirective, - IgxGridHeaderComponent, - IgxGridHeaderGroupComponent, - IgxGridHeaderRowComponent, - IgxFilterCellTemplateDirective, - IgxSummaryTemplateDirective, - IgxCellTemplateDirective, - IgxCellValidationErrorDirective, - IgxCellHeaderTemplateDirective, - IgxCellFooterTemplateDirective, - IgxCellEditorTemplateDirective, - IgxCollapsibleIndicatorTemplateDirective, - IgxColumnComponent, - IgxColumnGroupComponent, - IgxColumnLayoutComponent, - IgxColumnRequiredValidatorDirective, - IgxColumnMinValidatorDirective, - IgxColumnMaxValidatorDirective, - IgxColumnEmailValidatorDirective, - IgxColumnMinLengthValidatorDirective, - IgxColumnMaxLengthValidatorDirective, - IgxColumnPatternValidatorDirective, - IgxColumnActionsComponent, - IgxColumnHidingDirective, - IgxColumnPinningDirective, - IgxRowSelectorDirective, - IgxGroupByRowSelectorDirective, - IgxHeadSelectorDirective, - IgxCSVTextDirective, - IgxExcelTextDirective, - IgxGridToolbarActionsComponent, - IgxGridToolbarAdvancedFilteringComponent, - IgxGridToolbarComponent, - IgxGridToolbarExporterComponent, - IgxGridToolbarHidingComponent, - IgxGridToolbarPinningComponent, - IgxGridToolbarTitleComponent, - IgxGridToolbarDirective, - IgxGridExcelStyleFilteringComponent, - IgxExcelStyleHeaderComponent, - IgxExcelStyleSortingComponent, - IgxExcelStylePinningComponent, - IgxExcelStyleHidingComponent, - IgxExcelStyleSelectingComponent, - IgxExcelStyleClearFiltersComponent, - IgxExcelStyleConditionalFilterComponent, - IgxExcelStyleMovingComponent, - IgxExcelStyleSearchComponent, - IgxExcelStyleColumnOperationsTemplateDirective, - IgxExcelStyleFilterOperationsTemplateDirective, - IgxExcelStyleLoadingValuesTemplateDirective, - IgxGridDetailTemplateDirective, - IgxGroupByRowTemplateDirective, - IgxRowAddTextDirective, - IgxRowEditActionsDirective, - IgxRowEditTabStopDirective, - IgxRowEditTextDirective, - IgxGridActionButtonComponent, - IgxGridPinningActionsComponent, - IgxGridActionsBaseDirective, - IgxGridEditingActionsComponent -} from "igniteui-angular/grids/core"; -import { - IgxPaginatorComponent, - IgxPageNavigationComponent, - IgxPageSizeSelectorComponent, - IgxPaginatorContentDirective, - IgxPaginatorDirective -} from 'igniteui-angular/paginator'; - export * from './grid.component'; export * from './grid-base.directive'; export * from './grid.pipes'; export * from './grid-row.component'; export * from './expandable-cell.component'; - -/* NOTE: Grid directives collection for ease-of-use import in standalone components scenario */ -export const IGX_GRID_DIRECTIVES = [ - IgxGridComponent, - IgxGroupByRowTemplateDirective, - IgxGridDetailTemplateDirective, - IgxRowAddTextDirective, - IgxRowEditActionsDirective, - IgxRowEditTextDirective, - IgxRowEditTabStopDirective, - // IGX_GRID_COMMON_DIRECTIVES: - IgxRowDirective, - IgxGridFooterComponent, - IgxAdvancedFilteringDialogComponent, - IgxRowExpandedIndicatorDirective, - IgxRowCollapsedIndicatorDirective, - IgxHeaderExpandedIndicatorDirective, - IgxHeaderCollapsedIndicatorDirective, - IgxExcelStyleHeaderIconDirective, - IgxSortAscendingHeaderIconDirective, - IgxSortDescendingHeaderIconDirective, - IgxSortHeaderIconDirective, - IgxGridEmptyTemplateDirective, - IgxGridLoadingTemplateDirective, - IgxDragIndicatorIconDirective, - IgxRowDragGhostDirective, - IgxGridStateDirective, - // IGX_GRID_ACTIONS - IgxGridPinningActionsComponent, - IgxGridEditingActionsComponent, - IgxGridActionsBaseDirective, - IgxGridActionButtonComponent, - // IGX_GRID_HEADERS_DIRECTIVES: - IgxGridHeaderComponent, - IgxGridHeaderGroupComponent, - IgxGridHeaderRowComponent, - // IGX_GRID_COLUMN_DIRECTIVES: - IgxFilterCellTemplateDirective, - IgxSummaryTemplateDirective, - IgxCellTemplateDirective, - IgxCellValidationErrorDirective, - IgxCellHeaderTemplateDirective, - IgxCellFooterTemplateDirective, - IgxCellEditorTemplateDirective, - IgxCollapsibleIndicatorTemplateDirective, - IgxColumnComponent, - IgxColumnGroupComponent, - IgxColumnLayoutComponent, - // IGX_GRID_COLUMN_ACTIONS_DIRECTIVES: - IgxColumnActionsComponent, - IgxColumnHidingDirective, - IgxColumnPinningDirective, - // IGX_GRID_SELECTION_DIRECTIVES: - IgxRowSelectorDirective, - IgxGroupByRowSelectorDirective, - IgxHeadSelectorDirective, - // IGX_GRID_TOOLBAR_DIRECTIVES: - IgxCSVTextDirective, - IgxExcelTextDirective, - IgxGridToolbarActionsComponent, - IgxGridToolbarAdvancedFilteringComponent, - IgxGridToolbarComponent, - IgxGridToolbarExporterComponent, - IgxGridToolbarHidingComponent, - IgxGridToolbarPinningComponent, - IgxGridToolbarTitleComponent, - IgxGridToolbarDirective, - // IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES: - IgxGridExcelStyleFilteringComponent, - IgxExcelStyleHeaderComponent, - IgxExcelStyleSortingComponent, - IgxExcelStylePinningComponent, - IgxExcelStyleHidingComponent, - IgxExcelStyleSelectingComponent, - IgxExcelStyleClearFiltersComponent, - IgxExcelStyleConditionalFilterComponent, - IgxExcelStyleMovingComponent, - IgxExcelStyleSearchComponent, - IgxExcelStyleColumnOperationsTemplateDirective, - IgxExcelStyleFilterOperationsTemplateDirective, - IgxExcelStyleLoadingValuesTemplateDirective, - // IGX_GRID_VALIDATION_DIRECTIVES: - IgxColumnRequiredValidatorDirective, - IgxColumnMinValidatorDirective, - IgxColumnMaxValidatorDirective, - IgxColumnEmailValidatorDirective, - IgxColumnMinLengthValidatorDirective, - IgxColumnMaxLengthValidatorDirective, - IgxColumnPatternValidatorDirective, - // IGX_PAGINATOR_DIRECTIVES: - IgxPaginatorComponent, - IgxPageNavigationComponent, - IgxPageSizeSelectorComponent, - IgxPaginatorContentDirective, - IgxPaginatorDirective -] as const; +export * from './grid.module'; diff --git a/projects/igniteui-angular/grids/hierarchical-grid/index.ts b/projects/igniteui-angular/grids/hierarchical-grid/index.ts index f01fd0a4c82..dd3d9f120c0 100644 --- a/projects/igniteui-angular/grids/hierarchical-grid/index.ts +++ b/projects/igniteui-angular/grids/hierarchical-grid/index.ts @@ -6,4 +6,3 @@ // Export hierarchical-grid-specific components export * from './src/public_api'; -export * from './src/hierarchical-grid.module'; diff --git a/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.module.ts b/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.module.ts index ab47e2dd9d8..c30cac6c0d2 100644 --- a/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.module.ts +++ b/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.module.ts @@ -1,5 +1,184 @@ import { NgModule } from '@angular/core'; -import { IGX_HIERARCHICAL_GRID_DIRECTIVES } from './public_api'; +import { IgxHierarchicalGridComponent } from './hierarchical-grid.component'; +import { IgxRowIslandComponent } from './row-island.component'; + +/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread + NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310 +*/ +import { + IgxRowDirective, + IgxRowEditTextDirective, + IgxRowAddTextDirective, + IgxRowEditActionsDirective, + IgxRowEditTabStopDirective, + IgxGridFooterComponent, + IgxAdvancedFilteringDialogComponent, + IgxHeaderCollapsedIndicatorDirective, + IgxHeaderExpandedIndicatorDirective, + IgxRowCollapsedIndicatorDirective, + IgxRowExpandedIndicatorDirective, + IgxSortAscendingHeaderIconDirective, + IgxSortDescendingHeaderIconDirective, + IgxSortHeaderIconDirective, + IgxExcelStyleHeaderIconDirective, + IgxDragIndicatorIconDirective, + IgxRowDragGhostDirective, + IgxGridStateDirective, + IgxGridHeaderComponent, + IgxGridHeaderGroupComponent, + IgxGridHeaderRowComponent, + IgxFilterCellTemplateDirective, + IgxSummaryTemplateDirective, + IgxCellTemplateDirective, + IgxCellValidationErrorDirective, + IgxCellHeaderTemplateDirective, + IgxCellFooterTemplateDirective, + IgxCellEditorTemplateDirective, + IgxCollapsibleIndicatorTemplateDirective, + IgxColumnComponent, + IgxColumnGroupComponent, + IgxColumnLayoutComponent, + IgxColumnRequiredValidatorDirective, + IgxColumnMinValidatorDirective, + IgxColumnMaxValidatorDirective, + IgxColumnEmailValidatorDirective, + IgxColumnMinLengthValidatorDirective, + IgxColumnMaxLengthValidatorDirective, + IgxColumnPatternValidatorDirective, + IgxColumnActionsComponent, + IgxColumnHidingDirective, + IgxColumnPinningDirective, + IgxRowSelectorDirective, + IgxGroupByRowSelectorDirective, + IgxHeadSelectorDirective, + IgxCSVTextDirective, + IgxExcelTextDirective, + IgxGridToolbarActionsComponent, + IgxGridToolbarAdvancedFilteringComponent, + IgxGridToolbarComponent, + IgxGridToolbarExporterComponent, + IgxGridToolbarHidingComponent, + IgxGridToolbarPinningComponent, + IgxGridToolbarTitleComponent, + IgxGridToolbarDirective, + IgxGridExcelStyleFilteringComponent, + IgxExcelStyleHeaderComponent, + IgxExcelStyleSortingComponent, + IgxExcelStylePinningComponent, + IgxExcelStyleHidingComponent, + IgxExcelStyleSelectingComponent, + IgxExcelStyleClearFiltersComponent, + IgxExcelStyleConditionalFilterComponent, + IgxExcelStyleMovingComponent, + IgxExcelStyleSearchComponent, + IgxExcelStyleColumnOperationsTemplateDirective, + IgxExcelStyleFilterOperationsTemplateDirective, + IgxExcelStyleLoadingValuesTemplateDirective, + IgxGridActionButtonComponent, + IgxGridActionsBaseDirective, + IgxGridEditingActionsComponent, + IgxGridPinningActionsComponent +} from "igniteui-angular/grids/core"; +import { + IgxPaginatorComponent, + IgxPageNavigationComponent, + IgxPageSizeSelectorComponent, + IgxPaginatorContentDirective, + IgxPaginatorDirective +} from 'igniteui-angular/paginator'; + +/* NOTE: Hierarchical grid directives collection for ease-of-use import in standalone components scenario */ +export const IGX_HIERARCHICAL_GRID_DIRECTIVES = [ + IgxHierarchicalGridComponent, + IgxRowIslandComponent, + IgxRowAddTextDirective, + IgxRowEditActionsDirective, + IgxRowEditTextDirective, + IgxRowEditTabStopDirective, + // IGX_GRID_COMMON_DIRECTIVES: + IgxRowDirective, + IgxGridFooterComponent, + IgxAdvancedFilteringDialogComponent, + IgxRowExpandedIndicatorDirective, + IgxRowCollapsedIndicatorDirective, + IgxHeaderExpandedIndicatorDirective, + IgxHeaderCollapsedIndicatorDirective, + IgxExcelStyleHeaderIconDirective, + IgxSortAscendingHeaderIconDirective, + IgxSortDescendingHeaderIconDirective, + IgxSortHeaderIconDirective, + IgxDragIndicatorIconDirective, + IgxRowDragGhostDirective, + IgxGridStateDirective, + // IGX_GRID_ACTIONS + IgxGridPinningActionsComponent, + IgxGridEditingActionsComponent, + IgxGridActionsBaseDirective, + IgxGridActionButtonComponent, + // IGX_GRID_HEADERS_DIRECTIVES: + IgxGridHeaderComponent, + IgxGridHeaderGroupComponent, + IgxGridHeaderRowComponent, + // IGX_GRID_COLUMN_DIRECTIVES: + IgxFilterCellTemplateDirective, + IgxSummaryTemplateDirective, + IgxCellTemplateDirective, + IgxCellValidationErrorDirective, + IgxCellHeaderTemplateDirective, + IgxCellFooterTemplateDirective, + IgxCellEditorTemplateDirective, + IgxCollapsibleIndicatorTemplateDirective, + IgxColumnComponent, + IgxColumnGroupComponent, + IgxColumnLayoutComponent, + // IGX_GRID_COLUMN_ACTIONS_DIRECTIVES: + IgxColumnActionsComponent, + IgxColumnHidingDirective, + IgxColumnPinningDirective, + // IGX_GRID_SELECTION_DIRECTIVES: + IgxRowSelectorDirective, + IgxGroupByRowSelectorDirective, + IgxHeadSelectorDirective, + // IGX_GRID_TOOLBAR_DIRECTIVES: + IgxCSVTextDirective, + IgxExcelTextDirective, + IgxGridToolbarActionsComponent, + IgxGridToolbarAdvancedFilteringComponent, + IgxGridToolbarComponent, + IgxGridToolbarExporterComponent, + IgxGridToolbarHidingComponent, + IgxGridToolbarPinningComponent, + IgxGridToolbarTitleComponent, + IgxGridToolbarDirective, + // IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES: + IgxGridExcelStyleFilteringComponent, + IgxExcelStyleHeaderComponent, + IgxExcelStyleSortingComponent, + IgxExcelStylePinningComponent, + IgxExcelStyleHidingComponent, + IgxExcelStyleSelectingComponent, + IgxExcelStyleClearFiltersComponent, + IgxExcelStyleConditionalFilterComponent, + IgxExcelStyleMovingComponent, + IgxExcelStyleSearchComponent, + IgxExcelStyleColumnOperationsTemplateDirective, + IgxExcelStyleFilterOperationsTemplateDirective, + IgxExcelStyleLoadingValuesTemplateDirective, + // IGX_GRID_VALIDATION_DIRECTIVES: + IgxColumnRequiredValidatorDirective, + IgxColumnMinValidatorDirective, + IgxColumnMaxValidatorDirective, + IgxColumnEmailValidatorDirective, + IgxColumnMinLengthValidatorDirective, + IgxColumnMaxLengthValidatorDirective, + IgxColumnPatternValidatorDirective, + // IGX_PAGINATOR_DIRECTIVES: + IgxPaginatorComponent, + IgxPageNavigationComponent, + IgxPageSizeSelectorComponent, + IgxPaginatorContentDirective, + IgxPaginatorDirective +] as const; /** * @hidden diff --git a/projects/igniteui-angular/grids/hierarchical-grid/src/public_api.ts b/projects/igniteui-angular/grids/hierarchical-grid/src/public_api.ts index d1377663180..76f1c69c9be 100644 --- a/projects/igniteui-angular/grids/hierarchical-grid/src/public_api.ts +++ b/projects/igniteui-angular/grids/hierarchical-grid/src/public_api.ts @@ -1,186 +1,5 @@ -import { IgxHierarchicalGridComponent } from './hierarchical-grid.component'; -import { IgxRowIslandComponent } from './row-island.component'; - export * from './events'; export * from './hierarchical-grid.component'; export * from './row-island.component'; export * from './hierarchical-grid.pipes'; - -/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread - NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310 -*/ -/* eslint-disable @typescript-eslint/no-unused-vars */ -import { - IgxRowDirective, - IgxRowEditTextDirective, - IgxRowAddTextDirective, - IgxRowEditActionsDirective, - IgxRowEditTabStopDirective, - IgxGridFooterComponent, - IgxAdvancedFilteringDialogComponent, - IgxHeaderCollapsedIndicatorDirective, - IgxHeaderExpandedIndicatorDirective, - IgxRowCollapsedIndicatorDirective, - IgxRowExpandedIndicatorDirective, - IgxSortAscendingHeaderIconDirective, - IgxSortDescendingHeaderIconDirective, - IgxSortHeaderIconDirective, - IgxExcelStyleHeaderIconDirective, - IgxDragIndicatorIconDirective, - IgxRowDragGhostDirective, - IgxGridStateDirective, - IgxGridHeaderComponent, - IgxGridHeaderGroupComponent, - IgxGridHeaderRowComponent, - IgxFilterCellTemplateDirective, - IgxSummaryTemplateDirective, - IgxCellTemplateDirective, - IgxCellValidationErrorDirective, - IgxCellHeaderTemplateDirective, - IgxCellFooterTemplateDirective, - IgxCellEditorTemplateDirective, - IgxCollapsibleIndicatorTemplateDirective, - IgxColumnComponent, - IgxColumnGroupComponent, - IgxColumnLayoutComponent, - IgxColumnRequiredValidatorDirective, - IgxColumnMinValidatorDirective, - IgxColumnMaxValidatorDirective, - IgxColumnEmailValidatorDirective, - IgxColumnMinLengthValidatorDirective, - IgxColumnMaxLengthValidatorDirective, - IgxColumnPatternValidatorDirective, - IgxColumnActionsComponent, - IgxColumnHidingDirective, - IgxColumnPinningDirective, - IgxRowSelectorDirective, - IgxGroupByRowSelectorDirective, - IgxHeadSelectorDirective, - IgxCSVTextDirective, - IgxExcelTextDirective, - IgxGridToolbarActionsComponent, - IgxGridToolbarAdvancedFilteringComponent, - IgxGridToolbarComponent, - IgxGridToolbarExporterComponent, - IgxGridToolbarHidingComponent, - IgxGridToolbarPinningComponent, - IgxGridToolbarTitleComponent, - IgxGridToolbarDirective, - IgxGridExcelStyleFilteringComponent, - IgxExcelStyleHeaderComponent, - IgxExcelStyleSortingComponent, - IgxExcelStylePinningComponent, - IgxExcelStyleHidingComponent, - IgxExcelStyleSelectingComponent, - IgxExcelStyleClearFiltersComponent, - IgxExcelStyleConditionalFilterComponent, - IgxExcelStyleMovingComponent, - IgxExcelStyleSearchComponent, - IgxExcelStyleColumnOperationsTemplateDirective, - IgxExcelStyleFilterOperationsTemplateDirective, - IgxExcelStyleLoadingValuesTemplateDirective, - IgxGridActionButtonComponent, - IgxGridActionsBaseDirective, - IgxGridEditingActionsComponent, - IgxGridPinningActionsComponent -} from "igniteui-angular/grids/core"; -import { - IgxPaginatorComponent, - IgxPageNavigationComponent, - IgxPageSizeSelectorComponent, - IgxPaginatorContentDirective, - IgxPaginatorDirective -} from 'igniteui-angular/paginator'; - -/* NOTE: Hierarchical grid directives collection for ease-of-use import in standalone components scenario */ -export const IGX_HIERARCHICAL_GRID_DIRECTIVES = [ - IgxHierarchicalGridComponent, - IgxRowIslandComponent, - IgxRowAddTextDirective, - IgxRowEditActionsDirective, - IgxRowEditTextDirective, - IgxRowEditTabStopDirective, - // IGX_GRID_COMMON_DIRECTIVES: - IgxRowDirective, - IgxGridFooterComponent, - IgxAdvancedFilteringDialogComponent, - IgxRowExpandedIndicatorDirective, - IgxRowCollapsedIndicatorDirective, - IgxHeaderExpandedIndicatorDirective, - IgxHeaderCollapsedIndicatorDirective, - IgxExcelStyleHeaderIconDirective, - IgxSortAscendingHeaderIconDirective, - IgxSortDescendingHeaderIconDirective, - IgxSortHeaderIconDirective, - IgxDragIndicatorIconDirective, - IgxRowDragGhostDirective, - IgxGridStateDirective, - // IGX_GRID_ACTIONS - IgxGridPinningActionsComponent, - IgxGridEditingActionsComponent, - IgxGridActionsBaseDirective, - IgxGridActionButtonComponent, - // IGX_GRID_HEADERS_DIRECTIVES: - IgxGridHeaderComponent, - IgxGridHeaderGroupComponent, - IgxGridHeaderRowComponent, - // IGX_GRID_COLUMN_DIRECTIVES: - IgxFilterCellTemplateDirective, - IgxSummaryTemplateDirective, - IgxCellTemplateDirective, - IgxCellValidationErrorDirective, - IgxCellHeaderTemplateDirective, - IgxCellFooterTemplateDirective, - IgxCellEditorTemplateDirective, - IgxCollapsibleIndicatorTemplateDirective, - IgxColumnComponent, - IgxColumnGroupComponent, - IgxColumnLayoutComponent, - // IGX_GRID_COLUMN_ACTIONS_DIRECTIVES: - IgxColumnActionsComponent, - IgxColumnHidingDirective, - IgxColumnPinningDirective, - // IGX_GRID_SELECTION_DIRECTIVES: - IgxRowSelectorDirective, - IgxGroupByRowSelectorDirective, - IgxHeadSelectorDirective, - // IGX_GRID_TOOLBAR_DIRECTIVES: - IgxCSVTextDirective, - IgxExcelTextDirective, - IgxGridToolbarActionsComponent, - IgxGridToolbarAdvancedFilteringComponent, - IgxGridToolbarComponent, - IgxGridToolbarExporterComponent, - IgxGridToolbarHidingComponent, - IgxGridToolbarPinningComponent, - IgxGridToolbarTitleComponent, - IgxGridToolbarDirective, - // IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES: - IgxGridExcelStyleFilteringComponent, - IgxExcelStyleHeaderComponent, - IgxExcelStyleSortingComponent, - IgxExcelStylePinningComponent, - IgxExcelStyleHidingComponent, - IgxExcelStyleSelectingComponent, - IgxExcelStyleClearFiltersComponent, - IgxExcelStyleConditionalFilterComponent, - IgxExcelStyleMovingComponent, - IgxExcelStyleSearchComponent, - IgxExcelStyleColumnOperationsTemplateDirective, - IgxExcelStyleFilterOperationsTemplateDirective, - IgxExcelStyleLoadingValuesTemplateDirective, - // IGX_GRID_VALIDATION_DIRECTIVES: - IgxColumnRequiredValidatorDirective, - IgxColumnMinValidatorDirective, - IgxColumnMaxValidatorDirective, - IgxColumnEmailValidatorDirective, - IgxColumnMinLengthValidatorDirective, - IgxColumnMaxLengthValidatorDirective, - IgxColumnPatternValidatorDirective, - // IGX_PAGINATOR_DIRECTIVES: - IgxPaginatorComponent, - IgxPageNavigationComponent, - IgxPageSizeSelectorComponent, - IgxPaginatorContentDirective, - IgxPaginatorDirective -] as const; +export * from './hierarchical-grid.module'; diff --git a/projects/igniteui-angular/grids/pivot-grid/index.ts b/projects/igniteui-angular/grids/pivot-grid/index.ts index 4e82085cc9e..f8d1bc52029 100644 --- a/projects/igniteui-angular/grids/pivot-grid/index.ts +++ b/projects/igniteui-angular/grids/pivot-grid/index.ts @@ -6,4 +6,3 @@ // Export pivot-grid-specific components export * from './src/public_api'; -export * from './src/pivot-grid.module'; diff --git a/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.module.ts b/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.module.ts index d4be32ab394..35310bf08c0 100644 --- a/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.module.ts +++ b/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.module.ts @@ -1,5 +1,150 @@ import { NgModule } from "@angular/core"; -import { IGX_PIVOT_GRID_DIRECTIVES } from './public_api'; +import { IgxPivotDataSelectorComponent } from './pivot-data-selector.component'; +import { IgxPivotGridComponent } from './pivot-grid.component'; +import { IgxPivotValueChipTemplateDirective } from './pivot-grid.directives'; + +/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread + NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310 +*/ +import { + IgxRowDirective, + IgxGridFooterComponent, + IgxAdvancedFilteringDialogComponent, + IgxHeaderCollapsedIndicatorDirective, + IgxHeaderExpandedIndicatorDirective, + IgxRowCollapsedIndicatorDirective, + IgxRowExpandedIndicatorDirective, + IgxSortAscendingHeaderIconDirective, + IgxSortDescendingHeaderIconDirective, + IgxSortHeaderIconDirective, + IgxExcelStyleHeaderIconDirective, + IgxDragIndicatorIconDirective, + IgxRowDragGhostDirective, + IgxGridStateDirective, + IgxGridHeaderComponent, + IgxGridHeaderGroupComponent, + IgxGridHeaderRowComponent, + IgxFilterCellTemplateDirective, + IgxSummaryTemplateDirective, + IgxCellTemplateDirective, + IgxCellValidationErrorDirective, + IgxCellHeaderTemplateDirective, + IgxCellFooterTemplateDirective, + IgxCellEditorTemplateDirective, + IgxCollapsibleIndicatorTemplateDirective, + IgxColumnComponent, + IgxColumnGroupComponent, + IgxColumnLayoutComponent, + IgxColumnActionsComponent, + IgxColumnHidingDirective, + IgxColumnPinningDirective, + IgxRowSelectorDirective, + IgxGroupByRowSelectorDirective, + IgxHeadSelectorDirective, + IgxCSVTextDirective, + IgxExcelTextDirective, + IgxGridToolbarActionsComponent, + IgxGridToolbarAdvancedFilteringComponent, + IgxGridToolbarComponent, + IgxGridToolbarExporterComponent, + IgxGridToolbarHidingComponent, + IgxGridToolbarPinningComponent, + IgxGridToolbarTitleComponent, + IgxGridToolbarDirective, + IgxGridExcelStyleFilteringComponent, + IgxExcelStyleHeaderComponent, + IgxExcelStyleSortingComponent, + IgxExcelStylePinningComponent, + IgxExcelStyleHidingComponent, + IgxExcelStyleSelectingComponent, + IgxExcelStyleClearFiltersComponent, + IgxExcelStyleConditionalFilterComponent, + IgxExcelStyleMovingComponent, + IgxExcelStyleSearchComponent, + IgxExcelStyleColumnOperationsTemplateDirective, + IgxExcelStyleFilterOperationsTemplateDirective, + IgxExcelStyleLoadingValuesTemplateDirective, + IgxGridActionButtonComponent, + IgxGridActionsBaseDirective, + IgxGridEditingActionsComponent, + IgxGridPinningActionsComponent +} from "igniteui-angular/grids/core"; + +/* NOTE: Pivot grid directives collection for ease-of-use import in standalone components scenario */ +export const IGX_PIVOT_GRID_DIRECTIVES = [ + IgxPivotGridComponent, + IgxPivotDataSelectorComponent, + IgxPivotValueChipTemplateDirective, + // IGX_GRID_COMMON_DIRECTIVES: + IgxRowDirective, + IgxGridFooterComponent, + IgxAdvancedFilteringDialogComponent, + IgxRowExpandedIndicatorDirective, + IgxRowCollapsedIndicatorDirective, + IgxHeaderExpandedIndicatorDirective, + IgxHeaderCollapsedIndicatorDirective, + IgxExcelStyleHeaderIconDirective, + IgxSortAscendingHeaderIconDirective, + IgxSortDescendingHeaderIconDirective, + IgxSortHeaderIconDirective, + IgxDragIndicatorIconDirective, + IgxRowDragGhostDirective, + IgxGridStateDirective, + // IGX_GRID_ACTIONS + IgxGridPinningActionsComponent, + IgxGridEditingActionsComponent, + IgxGridActionsBaseDirective, + IgxGridActionButtonComponent, + // IGX_GRID_HEADERS_DIRECTIVES: + IgxGridHeaderComponent, + IgxGridHeaderGroupComponent, + IgxGridHeaderRowComponent, + // IGX_GRID_COLUMN_DIRECTIVES: + IgxFilterCellTemplateDirective, + IgxSummaryTemplateDirective, + IgxCellTemplateDirective, + IgxCellValidationErrorDirective, + IgxCellHeaderTemplateDirective, + IgxCellFooterTemplateDirective, + IgxCellEditorTemplateDirective, + IgxCollapsibleIndicatorTemplateDirective, + IgxColumnComponent, + IgxColumnGroupComponent, + IgxColumnLayoutComponent, + // IGX_GRID_COLUMN_ACTIONS_DIRECTIVES: + IgxColumnActionsComponent, + IgxColumnHidingDirective, + IgxColumnPinningDirective, + // IGX_GRID_SELECTION_DIRECTIVES: + IgxRowSelectorDirective, + IgxGroupByRowSelectorDirective, + IgxHeadSelectorDirective, + // IGX_GRID_TOOLBAR_DIRECTIVES: + IgxCSVTextDirective, + IgxExcelTextDirective, + IgxGridToolbarActionsComponent, + IgxGridToolbarAdvancedFilteringComponent, + IgxGridToolbarComponent, + IgxGridToolbarExporterComponent, + IgxGridToolbarHidingComponent, + IgxGridToolbarPinningComponent, + IgxGridToolbarTitleComponent, + IgxGridToolbarDirective, + // IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES: + IgxGridExcelStyleFilteringComponent, + IgxExcelStyleHeaderComponent, + IgxExcelStyleSortingComponent, + IgxExcelStylePinningComponent, + IgxExcelStyleHidingComponent, + IgxExcelStyleSelectingComponent, + IgxExcelStyleClearFiltersComponent, + IgxExcelStyleConditionalFilterComponent, + IgxExcelStyleMovingComponent, + IgxExcelStyleSearchComponent, + IgxExcelStyleColumnOperationsTemplateDirective, + IgxExcelStyleFilterOperationsTemplateDirective, + IgxExcelStyleLoadingValuesTemplateDirective +] as const; /** * @hidden diff --git a/projects/igniteui-angular/grids/pivot-grid/src/public_api.ts b/projects/igniteui-angular/grids/pivot-grid/src/public_api.ts index e92957892cb..f94c0677d5a 100644 --- a/projects/igniteui-angular/grids/pivot-grid/src/public_api.ts +++ b/projects/igniteui-angular/grids/pivot-grid/src/public_api.ts @@ -1,152 +1,5 @@ -import { IgxPivotDataSelectorComponent } from './pivot-data-selector.component'; -import { IgxPivotGridComponent } from './pivot-grid.component'; -import { IgxPivotValueChipTemplateDirective } from './pivot-grid.directives'; - export * from './pivot-grid.component'; export * from './pivot-data-selector.component'; export * from './pivot-grid.directives'; export * from './pivot-sort-strategy'; - -/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread - NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310 -*/ - -import { - IgxRowDirective, - IgxGridFooterComponent, - IgxAdvancedFilteringDialogComponent, - IgxHeaderCollapsedIndicatorDirective, - IgxHeaderExpandedIndicatorDirective, - IgxRowCollapsedIndicatorDirective, - IgxRowExpandedIndicatorDirective, - IgxSortAscendingHeaderIconDirective, - IgxSortDescendingHeaderIconDirective, - IgxSortHeaderIconDirective, - IgxExcelStyleHeaderIconDirective, - IgxDragIndicatorIconDirective, - IgxRowDragGhostDirective, - IgxGridStateDirective, - IgxGridHeaderComponent, - IgxGridHeaderGroupComponent, - IgxGridHeaderRowComponent, - IgxFilterCellTemplateDirective, - IgxSummaryTemplateDirective, - IgxCellTemplateDirective, - IgxCellValidationErrorDirective, - IgxCellHeaderTemplateDirective, - IgxCellFooterTemplateDirective, - IgxCellEditorTemplateDirective, - IgxCollapsibleIndicatorTemplateDirective, - IgxColumnComponent, - IgxColumnGroupComponent, - IgxColumnLayoutComponent, - IgxColumnActionsComponent, - IgxColumnHidingDirective, - IgxColumnPinningDirective, - IgxRowSelectorDirective, - IgxGroupByRowSelectorDirective, - IgxHeadSelectorDirective, - IgxCSVTextDirective, - IgxExcelTextDirective, - IgxGridToolbarActionsComponent, - IgxGridToolbarAdvancedFilteringComponent, - IgxGridToolbarComponent, - IgxGridToolbarExporterComponent, - IgxGridToolbarHidingComponent, - IgxGridToolbarPinningComponent, - IgxGridToolbarTitleComponent, - IgxGridToolbarDirective, - IgxGridExcelStyleFilteringComponent, - IgxExcelStyleHeaderComponent, - IgxExcelStyleSortingComponent, - IgxExcelStylePinningComponent, - IgxExcelStyleHidingComponent, - IgxExcelStyleSelectingComponent, - IgxExcelStyleClearFiltersComponent, - IgxExcelStyleConditionalFilterComponent, - IgxExcelStyleMovingComponent, - IgxExcelStyleSearchComponent, - IgxExcelStyleColumnOperationsTemplateDirective, - IgxExcelStyleFilterOperationsTemplateDirective, - IgxExcelStyleLoadingValuesTemplateDirective, - IgxGridActionButtonComponent, - IgxGridActionsBaseDirective, - IgxGridEditingActionsComponent, - IgxGridPinningActionsComponent -} from "igniteui-angular/grids/core"; - -/* NOTE: Pivot grid directives collection for ease-of-use import in standalone components scenario */ -export const IGX_PIVOT_GRID_DIRECTIVES = [ - IgxPivotGridComponent, - IgxPivotDataSelectorComponent, - IgxPivotValueChipTemplateDirective, - // IGX_GRID_COMMON_DIRECTIVES: - IgxRowDirective, - IgxGridFooterComponent, - IgxAdvancedFilteringDialogComponent, - IgxRowExpandedIndicatorDirective, - IgxRowCollapsedIndicatorDirective, - IgxHeaderExpandedIndicatorDirective, - IgxHeaderCollapsedIndicatorDirective, - IgxExcelStyleHeaderIconDirective, - IgxSortAscendingHeaderIconDirective, - IgxSortDescendingHeaderIconDirective, - IgxSortHeaderIconDirective, - IgxDragIndicatorIconDirective, - IgxRowDragGhostDirective, - IgxGridStateDirective, - // IGX_GRID_ACTIONS - IgxGridPinningActionsComponent, - IgxGridEditingActionsComponent, - IgxGridActionsBaseDirective, - IgxGridActionButtonComponent, - // IGX_GRID_HEADERS_DIRECTIVES: - IgxGridHeaderComponent, - IgxGridHeaderGroupComponent, - IgxGridHeaderRowComponent, - // IGX_GRID_COLUMN_DIRECTIVES: - IgxFilterCellTemplateDirective, - IgxSummaryTemplateDirective, - IgxCellTemplateDirective, - IgxCellValidationErrorDirective, - IgxCellHeaderTemplateDirective, - IgxCellFooterTemplateDirective, - IgxCellEditorTemplateDirective, - IgxCollapsibleIndicatorTemplateDirective, - IgxColumnComponent, - IgxColumnGroupComponent, - IgxColumnLayoutComponent, - // IGX_GRID_COLUMN_ACTIONS_DIRECTIVES: - IgxColumnActionsComponent, - IgxColumnHidingDirective, - IgxColumnPinningDirective, - // IGX_GRID_SELECTION_DIRECTIVES: - IgxRowSelectorDirective, - IgxGroupByRowSelectorDirective, - IgxHeadSelectorDirective, - // IGX_GRID_TOOLBAR_DIRECTIVES: - IgxCSVTextDirective, - IgxExcelTextDirective, - IgxGridToolbarActionsComponent, - IgxGridToolbarAdvancedFilteringComponent, - IgxGridToolbarComponent, - IgxGridToolbarExporterComponent, - IgxGridToolbarHidingComponent, - IgxGridToolbarPinningComponent, - IgxGridToolbarTitleComponent, - IgxGridToolbarDirective, - // IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES: - IgxGridExcelStyleFilteringComponent, - IgxExcelStyleHeaderComponent, - IgxExcelStyleSortingComponent, - IgxExcelStylePinningComponent, - IgxExcelStyleHidingComponent, - IgxExcelStyleSelectingComponent, - IgxExcelStyleClearFiltersComponent, - IgxExcelStyleConditionalFilterComponent, - IgxExcelStyleMovingComponent, - IgxExcelStyleSearchComponent, - IgxExcelStyleColumnOperationsTemplateDirective, - IgxExcelStyleFilterOperationsTemplateDirective, - IgxExcelStyleLoadingValuesTemplateDirective -] as const; +export * from './pivot-grid.module'; diff --git a/projects/igniteui-angular/grids/tree-grid/index.ts b/projects/igniteui-angular/grids/tree-grid/index.ts index 6766dc96fd2..348c2d252f1 100644 --- a/projects/igniteui-angular/grids/tree-grid/index.ts +++ b/projects/igniteui-angular/grids/tree-grid/index.ts @@ -6,4 +6,3 @@ // Export tree-grid-specific components export * from './src/public_api'; -export * from './src/tree-grid.module'; diff --git a/projects/igniteui-angular/grids/tree-grid/src/public_api.ts b/projects/igniteui-angular/grids/tree-grid/src/public_api.ts index 5a04376acea..86b1f90cc79 100644 --- a/projects/igniteui-angular/grids/tree-grid/src/public_api.ts +++ b/projects/igniteui-angular/grids/tree-grid/src/public_api.ts @@ -1,188 +1,5 @@ -import { IgxTreeGridComponent } from './tree-grid.component'; -import { IgxTreeGridGroupByAreaComponent } from './tree-grid-group-by-area.component'; -import { IgxTreeGridGroupingPipe } from './tree-grid.grouping.pipe'; - export * from './tree-grid.component'; export * from './tree-grid.grouping.pipe'; export * from './tree-grid-group-by-area.component'; export * from './tree-grid.grouping.pipe'; - -/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread - NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310 -*/ - -import { - IgxRowDirective, - IgxRowEditTextDirective, - IgxRowAddTextDirective, - IgxRowEditActionsDirective, - IgxRowEditTabStopDirective, - IgxGridFooterComponent, - IgxAdvancedFilteringDialogComponent, - IgxHeaderCollapsedIndicatorDirective, - IgxHeaderExpandedIndicatorDirective, - IgxRowCollapsedIndicatorDirective, - IgxRowExpandedIndicatorDirective, - IgxSortAscendingHeaderIconDirective, - IgxSortDescendingHeaderIconDirective, - IgxSortHeaderIconDirective, - IgxExcelStyleHeaderIconDirective, - IgxDragIndicatorIconDirective, - IgxRowDragGhostDirective, - IgxGridStateDirective, - IgxGridHeaderComponent, - IgxGridHeaderGroupComponent, - IgxGridHeaderRowComponent, - IgxFilterCellTemplateDirective, - IgxSummaryTemplateDirective, - IgxCellTemplateDirective, - IgxCellValidationErrorDirective, - IgxCellHeaderTemplateDirective, - IgxCellFooterTemplateDirective, - IgxCellEditorTemplateDirective, - IgxCollapsibleIndicatorTemplateDirective, - IgxColumnComponent, - IgxColumnGroupComponent, - IgxColumnLayoutComponent, - IgxColumnRequiredValidatorDirective, - IgxColumnMinValidatorDirective, - IgxColumnMaxValidatorDirective, - IgxColumnEmailValidatorDirective, - IgxColumnMinLengthValidatorDirective, - IgxColumnMaxLengthValidatorDirective, - IgxColumnPatternValidatorDirective, - IgxColumnActionsComponent, - IgxColumnHidingDirective, - IgxColumnPinningDirective, - IgxRowSelectorDirective, - IgxGroupByRowSelectorDirective, - IgxHeadSelectorDirective, - IgxCSVTextDirective, - IgxExcelTextDirective, - IgxGridToolbarActionsComponent, - IgxGridToolbarAdvancedFilteringComponent, - IgxGridToolbarComponent, - IgxGridToolbarExporterComponent, - IgxGridToolbarHidingComponent, - IgxGridToolbarPinningComponent, - IgxGridToolbarTitleComponent, - IgxGridToolbarDirective, - IgxGridExcelStyleFilteringComponent, - IgxExcelStyleHeaderComponent, - IgxExcelStyleSortingComponent, - IgxExcelStylePinningComponent, - IgxExcelStyleHidingComponent, - IgxExcelStyleSelectingComponent, - IgxExcelStyleClearFiltersComponent, - IgxExcelStyleConditionalFilterComponent, - IgxExcelStyleMovingComponent, - IgxExcelStyleSearchComponent, - IgxExcelStyleColumnOperationsTemplateDirective, - IgxExcelStyleFilterOperationsTemplateDirective, - IgxExcelStyleLoadingValuesTemplateDirective, - IgxGridActionButtonComponent, - IgxGridActionsBaseDirective, - IgxGridEditingActionsComponent, - IgxGridPinningActionsComponent -} from "igniteui-angular/grids/core"; -import { - IgxPaginatorComponent, - IgxPageNavigationComponent, - IgxPageSizeSelectorComponent, - IgxPaginatorContentDirective, - IgxPaginatorDirective -} from 'igniteui-angular/paginator'; - -/* NOTE: Tree grid directives collection for ease-of-use import in standalone components scenario */ -export const IGX_TREE_GRID_DIRECTIVES = [ - IgxTreeGridComponent, - IgxTreeGridGroupByAreaComponent, - IgxTreeGridGroupingPipe, - IgxRowAddTextDirective, - IgxRowEditActionsDirective, - IgxRowEditTextDirective, - IgxRowEditTabStopDirective, - // IGX_GRID_COMMON_DIRECTIVES: - IgxRowDirective, - IgxGridFooterComponent, - IgxAdvancedFilteringDialogComponent, - IgxRowExpandedIndicatorDirective, - IgxRowCollapsedIndicatorDirective, - IgxHeaderExpandedIndicatorDirective, - IgxHeaderCollapsedIndicatorDirective, - IgxExcelStyleHeaderIconDirective, - IgxSortAscendingHeaderIconDirective, - IgxSortDescendingHeaderIconDirective, - IgxSortHeaderIconDirective, - IgxDragIndicatorIconDirective, - IgxRowDragGhostDirective, - IgxGridStateDirective, - // IGX_GRID_ACTIONS - IgxGridPinningActionsComponent, - IgxGridEditingActionsComponent, - IgxGridActionsBaseDirective, - IgxGridActionButtonComponent, - // IGX_GRID_HEADERS_DIRECTIVES: - IgxGridHeaderComponent, - IgxGridHeaderGroupComponent, - IgxGridHeaderRowComponent, - // IGX_GRID_COLUMN_DIRECTIVES: - IgxFilterCellTemplateDirective, - IgxSummaryTemplateDirective, - IgxCellTemplateDirective, - IgxCellValidationErrorDirective, - IgxCellHeaderTemplateDirective, - IgxCellFooterTemplateDirective, - IgxCellEditorTemplateDirective, - IgxCollapsibleIndicatorTemplateDirective, - IgxColumnComponent, - IgxColumnGroupComponent, - IgxColumnLayoutComponent, - // IGX_GRID_COLUMN_ACTIONS_DIRECTIVES: - IgxColumnActionsComponent, - IgxColumnHidingDirective, - IgxColumnPinningDirective, - // IGX_GRID_SELECTION_DIRECTIVES: - IgxRowSelectorDirective, - IgxGroupByRowSelectorDirective, - IgxHeadSelectorDirective, - // IGX_GRID_TOOLBAR_DIRECTIVES: - IgxCSVTextDirective, - IgxExcelTextDirective, - IgxGridToolbarActionsComponent, - IgxGridToolbarAdvancedFilteringComponent, - IgxGridToolbarComponent, - IgxGridToolbarExporterComponent, - IgxGridToolbarHidingComponent, - IgxGridToolbarPinningComponent, - IgxGridToolbarTitleComponent, - IgxGridToolbarDirective, - // IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES: - IgxGridExcelStyleFilteringComponent, - IgxExcelStyleHeaderComponent, - IgxExcelStyleSortingComponent, - IgxExcelStylePinningComponent, - IgxExcelStyleHidingComponent, - IgxExcelStyleSelectingComponent, - IgxExcelStyleClearFiltersComponent, - IgxExcelStyleConditionalFilterComponent, - IgxExcelStyleMovingComponent, - IgxExcelStyleSearchComponent, - IgxExcelStyleColumnOperationsTemplateDirective, - IgxExcelStyleFilterOperationsTemplateDirective, - IgxExcelStyleLoadingValuesTemplateDirective, - // IGX_PAGINATOR_DIRECTIVES: - IgxColumnRequiredValidatorDirective, - IgxColumnMinValidatorDirective, - IgxColumnMaxValidatorDirective, - IgxColumnEmailValidatorDirective, - IgxColumnMinLengthValidatorDirective, - IgxColumnMaxLengthValidatorDirective, - IgxColumnPatternValidatorDirective, - // IGX_PAGINATOR_DIRECTIVES: - IgxPaginatorComponent, - IgxPageNavigationComponent, - IgxPageSizeSelectorComponent, - IgxPaginatorContentDirective, - IgxPaginatorDirective -] as const; +export * from './tree-grid.module'; diff --git a/projects/igniteui-angular/grids/tree-grid/src/tree-grid.module.ts b/projects/igniteui-angular/grids/tree-grid/src/tree-grid.module.ts index 6e744534f53..dd223041b7b 100644 --- a/projects/igniteui-angular/grids/tree-grid/src/tree-grid.module.ts +++ b/projects/igniteui-angular/grids/tree-grid/src/tree-grid.module.ts @@ -1,5 +1,186 @@ import { NgModule } from '@angular/core'; -import { IGX_TREE_GRID_DIRECTIVES } from './public_api'; +import { IgxTreeGridComponent } from './tree-grid.component'; +import { IgxTreeGridGroupByAreaComponent } from './tree-grid-group-by-area.component'; +import { IgxTreeGridGroupingPipe } from './tree-grid.grouping.pipe'; + +/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread + NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310 +*/ +import { + IgxRowDirective, + IgxRowEditTextDirective, + IgxRowAddTextDirective, + IgxRowEditActionsDirective, + IgxRowEditTabStopDirective, + IgxGridFooterComponent, + IgxAdvancedFilteringDialogComponent, + IgxHeaderCollapsedIndicatorDirective, + IgxHeaderExpandedIndicatorDirective, + IgxRowCollapsedIndicatorDirective, + IgxRowExpandedIndicatorDirective, + IgxSortAscendingHeaderIconDirective, + IgxSortDescendingHeaderIconDirective, + IgxSortHeaderIconDirective, + IgxExcelStyleHeaderIconDirective, + IgxDragIndicatorIconDirective, + IgxRowDragGhostDirective, + IgxGridStateDirective, + IgxGridHeaderComponent, + IgxGridHeaderGroupComponent, + IgxGridHeaderRowComponent, + IgxFilterCellTemplateDirective, + IgxSummaryTemplateDirective, + IgxCellTemplateDirective, + IgxCellValidationErrorDirective, + IgxCellHeaderTemplateDirective, + IgxCellFooterTemplateDirective, + IgxCellEditorTemplateDirective, + IgxCollapsibleIndicatorTemplateDirective, + IgxColumnComponent, + IgxColumnGroupComponent, + IgxColumnLayoutComponent, + IgxColumnRequiredValidatorDirective, + IgxColumnMinValidatorDirective, + IgxColumnMaxValidatorDirective, + IgxColumnEmailValidatorDirective, + IgxColumnMinLengthValidatorDirective, + IgxColumnMaxLengthValidatorDirective, + IgxColumnPatternValidatorDirective, + IgxColumnActionsComponent, + IgxColumnHidingDirective, + IgxColumnPinningDirective, + IgxRowSelectorDirective, + IgxGroupByRowSelectorDirective, + IgxHeadSelectorDirective, + IgxCSVTextDirective, + IgxExcelTextDirective, + IgxGridToolbarActionsComponent, + IgxGridToolbarAdvancedFilteringComponent, + IgxGridToolbarComponent, + IgxGridToolbarExporterComponent, + IgxGridToolbarHidingComponent, + IgxGridToolbarPinningComponent, + IgxGridToolbarTitleComponent, + IgxGridToolbarDirective, + IgxGridExcelStyleFilteringComponent, + IgxExcelStyleHeaderComponent, + IgxExcelStyleSortingComponent, + IgxExcelStylePinningComponent, + IgxExcelStyleHidingComponent, + IgxExcelStyleSelectingComponent, + IgxExcelStyleClearFiltersComponent, + IgxExcelStyleConditionalFilterComponent, + IgxExcelStyleMovingComponent, + IgxExcelStyleSearchComponent, + IgxExcelStyleColumnOperationsTemplateDirective, + IgxExcelStyleFilterOperationsTemplateDirective, + IgxExcelStyleLoadingValuesTemplateDirective, + IgxGridActionButtonComponent, + IgxGridActionsBaseDirective, + IgxGridEditingActionsComponent, + IgxGridPinningActionsComponent +} from "igniteui-angular/grids/core"; +import { + IgxPaginatorComponent, + IgxPageNavigationComponent, + IgxPageSizeSelectorComponent, + IgxPaginatorContentDirective, + IgxPaginatorDirective +} from 'igniteui-angular/paginator'; + +/* NOTE: Tree grid directives collection for ease-of-use import in standalone components scenario */ +export const IGX_TREE_GRID_DIRECTIVES = [ + IgxTreeGridComponent, + IgxTreeGridGroupByAreaComponent, + IgxTreeGridGroupingPipe, + IgxRowAddTextDirective, + IgxRowEditActionsDirective, + IgxRowEditTextDirective, + IgxRowEditTabStopDirective, + // IGX_GRID_COMMON_DIRECTIVES: + IgxRowDirective, + IgxGridFooterComponent, + IgxAdvancedFilteringDialogComponent, + IgxRowExpandedIndicatorDirective, + IgxRowCollapsedIndicatorDirective, + IgxHeaderExpandedIndicatorDirective, + IgxHeaderCollapsedIndicatorDirective, + IgxExcelStyleHeaderIconDirective, + IgxSortAscendingHeaderIconDirective, + IgxSortDescendingHeaderIconDirective, + IgxSortHeaderIconDirective, + IgxDragIndicatorIconDirective, + IgxRowDragGhostDirective, + IgxGridStateDirective, + // IGX_GRID_ACTIONS + IgxGridPinningActionsComponent, + IgxGridEditingActionsComponent, + IgxGridActionsBaseDirective, + IgxGridActionButtonComponent, + // IGX_GRID_HEADERS_DIRECTIVES: + IgxGridHeaderComponent, + IgxGridHeaderGroupComponent, + IgxGridHeaderRowComponent, + // IGX_GRID_COLUMN_DIRECTIVES: + IgxFilterCellTemplateDirective, + IgxSummaryTemplateDirective, + IgxCellTemplateDirective, + IgxCellValidationErrorDirective, + IgxCellHeaderTemplateDirective, + IgxCellFooterTemplateDirective, + IgxCellEditorTemplateDirective, + IgxCollapsibleIndicatorTemplateDirective, + IgxColumnComponent, + IgxColumnGroupComponent, + IgxColumnLayoutComponent, + // IGX_GRID_COLUMN_ACTIONS_DIRECTIVES: + IgxColumnActionsComponent, + IgxColumnHidingDirective, + IgxColumnPinningDirective, + // IGX_GRID_SELECTION_DIRECTIVES: + IgxRowSelectorDirective, + IgxGroupByRowSelectorDirective, + IgxHeadSelectorDirective, + // IGX_GRID_TOOLBAR_DIRECTIVES: + IgxCSVTextDirective, + IgxExcelTextDirective, + IgxGridToolbarActionsComponent, + IgxGridToolbarAdvancedFilteringComponent, + IgxGridToolbarComponent, + IgxGridToolbarExporterComponent, + IgxGridToolbarHidingComponent, + IgxGridToolbarPinningComponent, + IgxGridToolbarTitleComponent, + IgxGridToolbarDirective, + // IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES: + IgxGridExcelStyleFilteringComponent, + IgxExcelStyleHeaderComponent, + IgxExcelStyleSortingComponent, + IgxExcelStylePinningComponent, + IgxExcelStyleHidingComponent, + IgxExcelStyleSelectingComponent, + IgxExcelStyleClearFiltersComponent, + IgxExcelStyleConditionalFilterComponent, + IgxExcelStyleMovingComponent, + IgxExcelStyleSearchComponent, + IgxExcelStyleColumnOperationsTemplateDirective, + IgxExcelStyleFilterOperationsTemplateDirective, + IgxExcelStyleLoadingValuesTemplateDirective, + // IGX_PAGINATOR_DIRECTIVES: + IgxColumnRequiredValidatorDirective, + IgxColumnMinValidatorDirective, + IgxColumnMaxValidatorDirective, + IgxColumnEmailValidatorDirective, + IgxColumnMinLengthValidatorDirective, + IgxColumnMaxLengthValidatorDirective, + IgxColumnPatternValidatorDirective, + // IGX_PAGINATOR_DIRECTIVES: + IgxPaginatorComponent, + IgxPageNavigationComponent, + IgxPageSizeSelectorComponent, + IgxPaginatorContentDirective, + IgxPaginatorDirective +] as const; /** * @hidden