From 54b1bb871469a5e1d73cc6bd063aa9fe971835bf Mon Sep 17 00:00:00 2001 From: wnvko Date: Wed, 11 Sep 2019 14:29:54 +0300 Subject: [PATCH] docs(grids): fix grid config files, #1363 #1417 --- live-editing/configs/GridConfigGenerator.ts | 23 ++++++++----------- .../HierarchicalGridConfigGenerator.ts | 16 ++++++++++++- .../configs/TreeGridConfigGenerator.ts | 16 +++++++++++++ 3 files changed, 40 insertions(+), 15 deletions(-) diff --git a/live-editing/configs/GridConfigGenerator.ts b/live-editing/configs/GridConfigGenerator.ts index 9ed929178b..542c6c90c2 100644 --- a/live-editing/configs/GridConfigGenerator.ts +++ b/live-editing/configs/GridConfigGenerator.ts @@ -352,30 +352,25 @@ export class GridConfigGenerator implements IConfigGenerator { configs.push(new Config({ component: GridSelectionTemplateExcelComponent, - additionalFiles: ["/src/app/grid/services/financialData.ts"], + additionalFiles: ["/src/app/data/customers.ts"], appModuleConfig: new AppModuleConfig({ - imports: [HttpClientModule, IgxAvatarModule, IgxBadgeModule, IgxButtonModule, - IgxGridModule, IgxIconModule, IgxInputGroupModule, IgxProgressBarModule, - IgxRippleModule, IgxSwitchModule, GridSelectionTemplateExcelComponent], + imports: [IgxGridModule, GridSelectionTemplateExcelComponent], ngDeclarations: [GridSelectionTemplateExcelComponent], - ngImports: [IgxAvatarModule, IgxBadgeModule, IgxButtonModule, IgxGridModule, - IgxIconModule, IgxInputGroupModule, IgxProgressBarModule, - IgxRippleModule, IgxSwitchModule, HttpClientModule], + ngImports: [IgxGridModule], ngProviders: [] }) })); configs.push(new Config({ component: GridSelectionTemplateNumbersComponent, - additionalFiles: ["/src/app/grid/services/financialData.ts"], + additionalFiles: [ + "/src/app/data/customers.ts", + "src/assets/images/card/avatars/igLogo.png" + ], appModuleConfig: new AppModuleConfig({ - imports: [HttpClientModule, IgxAvatarModule, IgxBadgeModule, IgxButtonModule, - IgxGridModule, IgxIconModule, IgxInputGroupModule, IgxProgressBarModule, - IgxRippleModule, IgxSwitchModule, GridSelectionTemplateNumbersComponent], + imports: [IgxCheckboxModule, IgxGridModule, GridSelectionTemplateNumbersComponent], ngDeclarations: [GridSelectionTemplateNumbersComponent], - ngImports: [IgxAvatarModule, IgxBadgeModule, IgxButtonModule, IgxGridModule, - IgxIconModule, IgxInputGroupModule, IgxProgressBarModule, - IgxRippleModule, IgxSwitchModule, HttpClientModule], + ngImports: [IgxCheckboxModule, IgxGridModule], ngProviders: [] }) })); diff --git a/live-editing/configs/HierarchicalGridConfigGenerator.ts b/live-editing/configs/HierarchicalGridConfigGenerator.ts index 2f4b21a55a..55b76bcc94 100644 --- a/live-editing/configs/HierarchicalGridConfigGenerator.ts +++ b/live-editing/configs/HierarchicalGridConfigGenerator.ts @@ -76,12 +76,13 @@ import { HierarchicalGridToolbarStyleComponent } from "../../src/app/hierarchica import { HGridToolbarCustomSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar/hierarchical-grid-toolbar-custom.component"; import { HGridToolbarOptionsSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar/hierarchical-grid-toolbar-options.component"; import { HGridToolbarTitleSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar/hierarchical-grid-toolbar-title.component"; +import { HGridSelectionTemplateNumbersSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-selection-template-numbers/hierarchical-grid-selection-template-numbers.component" import { RemoteLoDService } from "../../src/app/hierarchical-grid/services/remote-lod.service"; import { RemoteValuesService } from "../../src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/remoteValues.service"; import { AppModuleConfig } from "./core/AppModuleConfig"; import { Config } from "./core/Config"; import { IConfigGenerator } from "./core/IConfigGenerator"; -import { HGridStylingComponent } from '../../src/app/hierarchical-grid/hierarchical-grid-styling/hierarchical-grid-styling.component'; +import { HGridStylingComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-styling/hierarchical-grid-styling.component"; export class HierarchicalGridConfigGenerator implements IConfigGenerator { public generateConfigs(): Config[] { @@ -578,6 +579,19 @@ export class HierarchicalGridConfigGenerator implements IConfigGenerator { component: HGridStylingComponent })); + configs.push(new Config({ + additionalFiles: [ + "/src/app/hierarchical-grid/data.ts", + "src/assets/images/card/avatars/igLogo.png" + ], + appModuleConfig: new AppModuleConfig({ + imports: [IgxCheckboxModule, IgxHierarchicalGridModule, HGridSelectionTemplateNumbersSampleComponent], + ngDeclarations: [HGridSelectionTemplateNumbersSampleComponent], + ngImports: [IgxCheckboxModule, IgxHierarchicalGridModule] + }), + component: HGridSelectionTemplateNumbersSampleComponent + })); + return configs; } } diff --git a/live-editing/configs/TreeGridConfigGenerator.ts b/live-editing/configs/TreeGridConfigGenerator.ts index 58c8651558..8b68d82a16 100644 --- a/live-editing/configs/TreeGridConfigGenerator.ts +++ b/live-editing/configs/TreeGridConfigGenerator.ts @@ -90,6 +90,7 @@ import { TreeGridToolbarSample3Component } from "../../src/app/tree-grid/tree-gr import { TreeGridToolbarSample4Component } from "../../src/app/tree-grid/tree-grid-toolbar-sample-4/tree-grid-toolbar-sample-4.component"; import { TreeGridToolbarStyleComponent } from "../../src/app/tree-grid/tree-grid-toolbar-style/tree-grid-toolbar-style.component"; import { TreeGridVirtualizationSampleComponent } from "../../src/app/tree-grid/tree-grid-virtualization-sample/tree-grid-virtualization-sample.component"; +import { TreeGridSelectionTemplateNumbersSampleComponent } from "../../src/app/tree-grid/tree-grid-selection-template-numbers/tree-grid-selection-template-numbers.component"; import { RemoteValuesService } from '../../src/app/tree-grid/tree-grid-excel-style-filtering-load-on-demand/remoteValues.service'; import { AppModuleConfig } from "./core/AppModuleConfig"; import { Config } from "./core/Config"; @@ -790,6 +791,21 @@ export class TreeGridConfigGenerator implements IConfigGenerator { }) })); + // TreeGrid Row Selectors Template - Numbers + configs.push(new Config({ + additionalFiles: [ + "/src/app/tree-grid/data/employees-flat.ts", + "src/assets/images/card/avatars/igLogo.png" + ], + appModuleConfig: new AppModuleConfig({ + imports: [IgxCheckboxModule, IgxTreeGridModule, TreeGridSelectionTemplateNumbersSampleComponent], + ngDeclarations: [TreeGridSelectionTemplateNumbersSampleComponent], + ngImports: [IgxCheckboxModule, IgxTreeGridModule] + }), + component: TreeGridSelectionTemplateNumbersSampleComponent, + shortenComponentPathBy: "/tree-grid/" + })); + return configs; } }