Skip to content

Commit 284a2e2

Browse files
authored
Merge pull request #3321 from IgniteUI/update-samples-configs
chore(*): Update samples configs
2 parents a475d3f + 7a899a1 commit 284a2e2

7 files changed

Lines changed: 121 additions & 107 deletions

live-editing/configs/CalendarConfigGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export class CalendarConfigGenerator implements IConfigGenerator {
2525
configs.push(new Config({
2626
component: 'CalendarSample2Component',
2727
appModuleConfig: new AppModuleConfig({
28-
imports: ['IgxCalendarModule', 'IgxPrefixModule', 'IgxSelectModule', 'CalendarSample2Component'],
28+
imports: ['IgxCalendarModule', 'IgxSelectModule', 'CalendarSample2Component'],
2929
ngDeclarations: ['CalendarSample2Component'],
30-
ngImports: ['IgxCalendarModule', 'IgxPrefixModule', 'IgxSelectModule']
30+
ngImports: ['IgxCalendarModule', 'IgxSelectModule']
3131
}),
3232
shortenComponentPathBy: "/scheduling/calendar/"
3333
}));

live-editing/configs/ExportCsvConfigGenerator.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ IgxGridModule,
33
IgxTreeGridModule} from 'igniteui-angular';
44
import {AppModuleConfig, Config, IConfigGenerator} from 'igniteui-live-editing'
55
export class ExportCsvConfigGenerator implements IConfigGenerator {
6-
6+
public additionalImports = {
7+
IgxPreventDocumentScrollModule: '../../src/app/directives/prevent-scroll.directive'
8+
};
79

810
public generateConfigs(): Config[] {
911
const configs = new Array<Config>();
@@ -19,11 +21,12 @@ export class ExportCsvConfigGenerator implements IConfigGenerator {
1921
}));
2022

2123
configs.push(new Config({
24+
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts'],
2225
component: 'CsvExportSample1Component',
2326
appModuleConfig: new AppModuleConfig({
24-
imports: ['IgxGridModule', 'IgxCsvExporterService', 'CsvExportSample1Component'],
27+
imports: ['IgxGridModule', 'IgxCsvExporterService', 'CsvExportSample1Component', 'IgxPreventDocumentScrollModule'],
2528
ngDeclarations: ['CsvExportSample1Component'],
26-
ngImports: ['IgxGridModule'],
29+
ngImports: ['IgxGridModule', 'IgxPreventDocumentScrollModule'],
2730
ngProviders: ['IgxCsvExporterService']
2831
}),
2932
shortenComponentPathBy: "/export-csv/"

live-editing/configs/ExportExcelConfigGenerator.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import {
55
IgxDropDownModule,
66
IgxExcelExporterService,
77
IgxGridModule,
8-
IgxTreeGridModule
8+
IgxTreeGridModule,
9+
IgxToggleModule
910
} from 'igniteui-angular';
1011
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing';
1112
export class ExportExcelConfigGenerator implements IConfigGenerator {
@@ -44,9 +45,9 @@ export class ExportExcelConfigGenerator implements IConfigGenerator {
4445
'/src/app/grid/grid-paste/paste-handler.directive.ts'],
4546
appModuleConfig: new AppModuleConfig({
4647
imports: ['IgxGridModule', 'IgxExcelExporterService', 'GridPasteSampleComponent', 'IgxDropDownComponent',
47-
'IgxDropDownModule', 'IgxButtonModule', 'PasteHandler'],
48+
'IgxDropDownModule', 'IgxButtonModule', 'PasteHandler', 'IgxToggleModule','IgxPreventDocumentScrollModule'],
4849
ngDeclarations: ['GridPasteSampleComponent', 'PasteHandler'],
49-
ngImports: ['IgxGridModule', 'IgxDropDownModule', 'IgxButtonModule'],
50+
ngImports: ['IgxGridModule', 'IgxDropDownModule', 'IgxButtonModule', 'IgxToggleModule', 'IgxPreventDocumentScrollModule'],
5051
ngProviders: ['IgxExcelExporterService']
5152
}),
5253
shortenComponentPathBy: '/grid-paste/'

live-editing/configs/GridConfigGenerator.ts

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ import {
3838
IgxTabsModule,
3939
IgxToastModule,
4040
IgxTooltipModule,
41-
IgxToggleModule
41+
IgxToggleModule,
42+
IgxDropDownModule
4243
} from 'igniteui-angular';
4344
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing';
4445
export class GridConfigGenerator implements IConfigGenerator {
@@ -92,9 +93,9 @@ export class GridConfigGenerator implements IConfigGenerator {
9293
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/invoiceData.ts'],
9394
appModuleConfig: new AppModuleConfig({
9495
imports: ['IgxButtonModule', 'IgxGridModule',
95-
'IgxSwitchModule', 'GridGroupBySampleComponent', 'IgxIconModule', 'IgxBadgeModule', 'IgxPreventDocumentScrollModule'],
96-
ngDeclarations: ['GridGroupBySampleComponent'],
97-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxButtonModule', 'IgxGridModule', 'IgxIconModule', 'IgxBadgeModule']
96+
'IgxSwitchModule', 'GridGroupBySampleComponent', 'IgxIconModule', 'IgxBadgeModule', 'IgxPreventDocumentScrollModule', 'IgxDropDownModule', 'IgxToggleModule'],
97+
ngDeclarations: ['GridGroupByCustomSampleComponent'],
98+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxButtonModule', 'IgxGridModule', 'IgxIconModule', 'IgxBadgeModule', 'IgxDropDownModule','IgxToggleModule' ]
9899
})
99100
}));
100101

@@ -114,7 +115,7 @@ export class GridConfigGenerator implements IConfigGenerator {
114115
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/invoiceData.ts'],
115116
appModuleConfig: new AppModuleConfig({
116117
imports: ['IgxButtonModule', 'IgxButtonGroupModule', 'IgxGridModule',
117-
'IgxSwitchModule', 'GridGroupBySummarySampleComponent', 'IgxIconModule', 'IgxBadgeModule', 'IgxPreventDocumentScrollModule', 'IgxSwitchModule'],
118+
'IgxSwitchModule', 'GridGroupBySummarySampleComponent', 'IgxIconModule', 'IgxBadgeModule', 'IgxPreventDocumentScrollModule'],
118119
ngDeclarations: ['GridGroupBySummarySampleComponent'],
119120
ngImports: ['IgxPreventDocumentScrollModule', 'IgxButtonModule', 'IgxButtonGroupModule', 'IgxGridModule',
120121
'IgxIconModule', 'IgxBadgeModule', 'IgxSwitchModule']
@@ -202,10 +203,10 @@ export class GridConfigGenerator implements IConfigGenerator {
202203
appModuleConfig: new AppModuleConfig({
203204
imports: ['HttpClientModule', 'IgxAvatarModule', 'IgxBadgeModule', 'IgxButtonModule', 'IgxSnackbarModule',
204205
'IgxGridModule', 'IgxIconModule', 'IgxInputGroupModule', 'IgxSwitchModule', 'GridSelectionSampleComponent', 'IgxPreventDocumentScrollModule',
205-
'FinancialDataService'],
206+
'FinancialDataService', 'IgxButtonGroupModule'],
206207
ngDeclarations: ['GridSelectionSampleComponent'],
207208
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxBadgeModule', 'IgxButtonModule', 'IgxGridModule', 'IgxSnackbarModule',
208-
'IgxIconModule', 'IgxInputGroupModule', 'IgxSwitchModule', 'HttpClientModule'],
209+
'IgxIconModule', 'IgxInputGroupModule', 'IgxSwitchModule', 'IgxButtonGroupModule', 'HttpClientModule'],
209210
ngProviders: ['FinancialDataService']
210211
})
211212
}));
@@ -309,9 +310,9 @@ export class GridConfigGenerator implements IConfigGenerator {
309310
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/localData.ts'],
310311
appModuleConfig: new AppModuleConfig({
311312
imports: ['IgxGridModule', 'IgxIconModule', 'IgxRippleModule',
312-
'SortingSampleComponent', 'IgxInputGroupModule', 'IgxSelectModule', 'IgxPreventDocumentScrollModule'],
313+
'SortingSampleComponent', 'IgxInputGroupModule', 'IgxSelectModule', 'IgxPreventDocumentScrollModule', 'IgxSimpleComboModule'],
313314
ngDeclarations: ['SortingSampleComponent'],
314-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxRippleModule', 'IgxIconModule', 'IgxInputGroupModule', 'IgxSelectModule'],
315+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxRippleModule', 'IgxIconModule', 'IgxInputGroupModule', 'IgxSelectModule', 'IgxSimpleComboModule'],
315316
ngProviders: []
316317
})
317318
}));
@@ -367,9 +368,9 @@ export class GridConfigGenerator implements IConfigGenerator {
367368
component: 'PinningToolbarSampleComponent',
368369
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/customers.ts'],
369370
appModuleConfig: new AppModuleConfig({
370-
imports: ['PinningToolbarSampleComponent', 'IgxGridModule', 'IgxIconModule', 'IgxPreventDocumentScrollModule'],
371+
imports: ['PinningToolbarSampleComponent', 'IgxGridModule', 'IgxIconModule', 'IgxPreventDocumentScrollModule', 'RouterModule'],
371372
ngDeclarations: ['PinningToolbarSampleComponent'],
372-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxIconModule'],
373+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxIconModule', 'RouterModule', 'RouterModule.forRoot([])'],
373374
ngProviders: []
374375
})
375376
}));
@@ -413,9 +414,9 @@ export class GridConfigGenerator implements IConfigGenerator {
413414
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/athletesData.ts'],
414415
appModuleConfig: new AppModuleConfig({
415416
imports: ['GridToolbarSample2Component', 'IgxAvatarModule', 'IgxGridModule', 'IgxSwitchModule',
416-
'IgxExcelExporterService', 'IgxCsvExporterService', 'IgxPreventDocumentScrollModule'],
417+
'IgxExcelExporterService', 'IgxCsvExporterService', 'IgxPreventDocumentScrollModule', 'IgxInputGroupModule'],
417418
ngDeclarations: ['GridToolbarSample2Component'],
418-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxGridModule', 'IgxSwitchModule'],
419+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxGridModule', 'IgxSwitchModule', 'IgxInputGroupModule'],
419420
ngProviders: ['IgxExcelExporterService', 'IgxCsvExporterService']
420421
})
421422
}));
@@ -436,9 +437,9 @@ export class GridConfigGenerator implements IConfigGenerator {
436437
component: 'GridToolbarSample4Component',
437438
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/athletesData.ts'],
438439
appModuleConfig: new AppModuleConfig({
439-
imports: ['GridToolbarSample4Component', 'IgxAvatarModule', 'IgxGridModule', 'IgxPreventDocumentScrollModule'],
440+
imports: ['GridToolbarSample4Component', 'IgxAvatarModule', 'IgxGridModule', 'IgxPreventDocumentScrollModule', 'IgxIconModule'],
440441
ngDeclarations: ['GridToolbarSample4Component'],
441-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxGridModule'],
442+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxGridModule', 'IgxIconModule'],
442443
ngProviders: []
443444
})
444445
}));
@@ -713,9 +714,9 @@ export class GridConfigGenerator implements IConfigGenerator {
713714
component: 'GridExternalExcelStyleFilteringComponent',
714715
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/nwindData.ts'],
715716
appModuleConfig: new AppModuleConfig({
716-
imports: ['GridExternalExcelStyleFilteringComponent', 'IgxGridModule', 'IgxPreventDocumentScrollModule'],
717+
imports: ['GridExternalExcelStyleFilteringComponent', 'IgxGridModule', 'IgxSelectModule', 'IgxPreventDocumentScrollModule'],
717718
ngDeclarations: ['GridExternalExcelStyleFilteringComponent'],
718-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule']
719+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSelectModule']
719720
})
720721
}));
721722

@@ -767,10 +768,10 @@ export class GridConfigGenerator implements IConfigGenerator {
767768
'/src/app/grid/grid-save-state/about.component.html'
768769
],
769770
appModuleConfig: new AppModuleConfig({
770-
imports: ['GridSaveStateComponent', 'IgxGridModule', 'IgxTooltipModule',
771+
imports: ['GridSaveStateComponent', 'IgxGridModule', 'IgxTooltipModule', 'IgxCheckboxModule', 'IgxIconModule',
771772
'IgxToastModule', 'IgxSwitchModule', 'AboutComponent', 'Router', 'RouterModule', 'IgxPreventDocumentScrollModule'],
772773
ngDeclarations: ['GridSaveStateComponent', 'AboutComponent'],
773-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxTooltipModule',
774+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxTooltipModule', 'IgxCheckboxModule', 'IgxIconModule',
774775
'RouterModule.forRoot([\{component: AboutComponent, path: \'grid-about\'},\{component: GridSaveStateComponent, path: \'grid-state\'},\{ path: \'\', redirectTo: \'/grid-state\', pathMatch: \'full\' }])',
775776
'IgxToastModule', 'IgxSwitchModule']
776777
})
@@ -891,9 +892,9 @@ export class GridConfigGenerator implements IConfigGenerator {
891892
component: 'CustomGridPagingStyleSampleComponent',
892893
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/athletesData.ts'],
893894
appModuleConfig: new AppModuleConfig({
894-
imports: ['CustomGridPagingStyleSampleComponent', 'IgxGridModule', 'IgxPreventDocumentScrollModule'],
895+
imports: ['CustomGridPagingStyleSampleComponent', 'IgxGridModule', 'IgxPreventDocumentScrollModule', 'IgxIconModule'],
895896
ngDeclarations: ['CustomGridPagingStyleSampleComponent'],
896-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule']
897+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxIconModule']
897898
})
898899
}));
899900

@@ -948,18 +949,18 @@ export class GridConfigGenerator implements IConfigGenerator {
948949
component: 'GridMultiColumnHeaderTemplateComponent',
949950
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/customers.ts'],
950951
appModuleConfig: new AppModuleConfig({
951-
imports: ['GridMultiColumnHeaderTemplateComponent', 'IgxGridModule', 'IgxPreventDocumentScrollModule'],
952+
imports: ['GridMultiColumnHeaderTemplateComponent', 'IgxGridModule', 'IgxPreventDocumentScrollModule', 'IgxIconModule'],
952953
ngDeclarations: ['GridMultiColumnHeaderTemplateComponent'],
953-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule']
954+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxIconModule']
954955
})
955956
}));
956957
configs.push(new Config({
957958
component: 'GridClipboardSampleComponent',
958959
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/nwindData.ts'],
959960
appModuleConfig: new AppModuleConfig({
960-
imports: ['GridClipboardSampleComponent', 'IgxGridModule', 'IgxSwitchModule', 'IgxPreventDocumentScrollModule'],
961+
imports: ['GridClipboardSampleComponent', 'IgxGridModule', 'IgxSwitchModule', 'IgxInputGroupModule', 'IgxIconModule', 'IgxPreventDocumentScrollModule'],
961962
ngDeclarations: ['GridClipboardSampleComponent'],
962-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSwitchModule']
963+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSwitchModule', 'IgxInputGroupModule', 'IgxIconModule']
963964
})
964965
}));
965966
configs.push(new Config({
@@ -987,7 +988,7 @@ export class GridConfigGenerator implements IConfigGenerator {
987988
imports: ['GridCellSelectionComponent', 'IgxGridModule', 'IgxSwitchModule',
988989
'IgxIconModule', 'IgxButtonGroupModule', 'IgxAvatarModule', 'IgxSnackbarModule', 'IgxPreventDocumentScrollModule'],
989990
ngDeclarations: ['GridCellSelectionComponent'],
990-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSnackbarModule']
991+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSnackbarModule', 'IgxIconModule', 'IgxButtonGroupModule']
991992
})
992993
}));
993994

@@ -1094,9 +1095,9 @@ export class GridConfigGenerator implements IConfigGenerator {
10941095
'/src/app/data/customers.ts'
10951096
],
10961097
appModuleConfig: new AppModuleConfig({
1097-
imports: ['GridColumnSelectionComponent', 'IgxGridModule'],
1098+
imports: ['GridColumnSelectionComponent', 'IgxGridModule', 'IgxSelectModule'],
10981099
ngDeclarations: ['GridColumnSelectionComponent'],
1099-
ngImports: ['IgxGridModule'],
1100+
ngImports: ['IgxGridModule', 'IgxSelectModule'],
11001101
ngProviders: []
11011102
})
11021103
}));
@@ -1258,9 +1259,9 @@ export class GridConfigGenerator implements IConfigGenerator {
12581259
component: 'GridExportVisualizationComponent',
12591260
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/utils.ts', '/src/app/data/nwindData.ts'],
12601261
appModuleConfig: new AppModuleConfig({
1261-
imports: ['GridExportVisualizationComponent', 'IgxGridModule', 'IgxPreventDocumentScrollModule', 'IgxExcelExporterService', 'IgxCsvExporterService'],
1262+
imports: ['GridExportVisualizationComponent', 'IgxGridModule', 'IgxButtonModule', 'IgxPreventDocumentScrollModule', 'IgxExcelExporterService', 'IgxCsvExporterService'],
12621263
ngDeclarations: ['GridExportVisualizationComponent'],
1263-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule'],
1264+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxButtonModule'],
12641265
ngProviders: ['IgxExcelExporterService', 'IgxCsvExporterService']
12651266
})
12661267
}));
@@ -1279,9 +1280,9 @@ export class GridConfigGenerator implements IConfigGenerator {
12791280
component: 'GridEditingLifecycleComponent',
12801281
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/nwindData.ts'],
12811282
appModuleConfig: new AppModuleConfig({
1282-
imports: ['IgxGridModule', 'IgxPreventDocumentScrollModule', 'GridEditingLifecycleComponent', 'IgxSwitchModule'],
1283+
imports: ['IgxGridModule', 'IgxPreventDocumentScrollModule', 'GridEditingLifecycleComponent', 'IgxSwitchModule', 'IgxIconModule'],
12831284
ngDeclarations: ['GridEditingLifecycleComponent'],
1284-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSwitchModule'],
1285+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSwitchModule', 'IgxIconModule'],
12851286
ngProviders: []
12861287
})
12871288
}));
@@ -1426,10 +1427,10 @@ export class GridConfigGenerator implements IConfigGenerator {
14261427
component: 'GridStatePersistenceSampleComponent',
14271428
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/financialData.ts', '/src/app/services/financial.service.ts'],
14281429
appModuleConfig: new AppModuleConfig({
1429-
imports: ['GridStatePersistenceSampleComponent', 'IgxAvatarModule', 'IgxGridModule', 'IgxSwitchModule',
1430+
imports: ['GridStatePersistenceSampleComponent', 'IgxAvatarModule', 'IgxGridModule', 'IgxSwitchModule', 'IgxIconModule', 'IgxButtonModule',
14301431
'IgxExcelExporterService', 'IgxCsvExporterService', 'IgxPreventDocumentScrollModule', 'FinancialDataService'],
14311432
ngDeclarations: ['GridStatePersistenceSampleComponent'],
1432-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxGridModule', 'IgxSwitchModule'],
1433+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxGridModule', 'IgxSwitchModule', 'IgxIconModule', 'IgxButtonModule'],
14331434
ngProviders: ['FinancialDataService']
14341435
})
14351436
}));

0 commit comments

Comments
 (0)