Skip to content

Commit b38677e

Browse files
committed
chore(*): fix privot grid configs
1 parent 6f8549b commit b38677e

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

live-editing/configs/PivotGridConfigGenerator.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import {
99
IgxTooltipModule,
1010
IgxToastModule,
1111
IgxSwitchModule,
12-
IgxExcelExporterService
12+
IgxExcelExporterService,
13+
IgxIconModule
1314
} from 'igniteui-angular';
1415
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing';
1516
export class PivotGridConfigGenerator implements IConfigGenerator {
@@ -52,12 +53,18 @@ export class PivotGridConfigGenerator implements IConfigGenerator {
5253
}));
5354

5455
configs.push(new Config({
55-
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/dataToAnalyze.ts'],
56+
additionalFiles:
57+
[
58+
'/src/app/directives/prevent-scroll.directive.ts',
59+
'/src/app/data/dataToAnalyze.ts',
60+
'/src/app/pivot-grid/pivot-state-persistence/about.component.ts',
61+
'/src/app/pivot-grid/pivot-state-persistence/about.component.html',
62+
],
5663
appModuleConfig: new AppModuleConfig({
5764
imports: ['IgxPivotGridModule', 'PivotGridStatePersistenceSampleComponent', 'PivotGridAboutComponent', 'IgxPreventDocumentScrollModule', 'IgxTooltipModule',
58-
'IgxToastModule', 'IgxSwitchModule', 'Router', 'RouterModule'],
59-
ngDeclarations: ['PivotGridStatePersistenceSampleComponent'],
60-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxPivotGridModule', 'IgxTooltipModule', 'PivotGridAboutComponent',
65+
'IgxToastModule', 'IgxSwitchModule', 'IgxCheckboxModule', 'IgxIconModule', 'Router', 'RouterModule'],
66+
ngDeclarations: ['PivotGridStatePersistenceSampleComponent', 'PivotGridAboutComponent',],
67+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxPivotGridModule', 'IgxTooltipModule', 'IgxCheckboxModule', 'IgxIconModule',
6168
'RouterModule.forRoot([\{component: PivotGridAboutComponent, path: \'pivot-grid-about\'},\{component: PivotGridStatePersistenceSampleComponent, path: \'pivot-grid-state-persistance\'},\{ path: \'\', redirectTo: \'/pivot-grid-state-persistance\', pathMatch: \'full\' }])',
6269
'IgxToastModule', 'IgxSwitchModule']
6370
}),
@@ -78,9 +85,9 @@ export class PivotGridConfigGenerator implements IConfigGenerator {
7885
configs.push(new Config({
7986
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/pivot-data-noop.ts', '/src/app/services/pivotRemoteData.service.ts'],
8087
appModuleConfig: new AppModuleConfig({
81-
imports: ['IgxPivotGridModule', 'PivotGridNoopPersistenceSampleComponent', 'IgxPreventDocumentScrollModule', 'PivotDataService'],
88+
imports: ['IgxPivotGridModule', 'PivotGridNoopPersistenceSampleComponent', 'IgxPreventDocumentScrollModule', 'PivotDataService', 'IgxIconModule'],
8289
ngDeclarations: ['PivotGridNoopPersistenceSampleComponent'],
83-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxPivotGridModule'],
90+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxPivotGridModule', 'IgxIconModule'],
8491
ngProviders: ['PivotDataService']
8592
}),
8693
component: 'PivotGridNoopPersistenceSampleComponent'

0 commit comments

Comments
 (0)