1
1
/* eslint-disable max-len */
2
2
/* eslint-disable @typescript-eslint/naming-convention */
3
- import { CommonModule } from '@angular/common' ;
4
- import { HttpClientModule } from '@angular/common/http' ;
5
- import { Router ,
6
- RouterModule } from '@angular/router' ;
7
- import { IgxActionStripModule ,
8
- IgxAvatarModule ,
9
- IgxBadgeModule ,
10
- IgxButtonGroupModule ,
11
- IgxButtonModule ,
12
- IgxCheckboxModule ,
13
- IgxChipsModule ,
14
- IgxComboModule ,
15
- IgxCsvExporterService ,
16
- IgxDatePickerModule ,
17
- IgxDialogModule ,
18
- IgxDividerModule ,
19
- IgxDragDropModule ,
20
- IgxExcelExporterService ,
21
- IgxExpansionPanelModule ,
22
- IgxFocusModule ,
23
- IgxGridModule ,
24
- IgxIconModule ,
25
- IgxInputGroupModule ,
26
- IgxListModule ,
27
- IgxOverlayService ,
28
- IgxProgressBarModule ,
29
- IgxRadioModule ,
30
- IgxRippleModule ,
31
- IgxSelectModule ,
32
- IgxSnackbarModule ,
33
- IgxSwitchModule ,
34
- IgxTabsModule ,
35
- IgxToastModule ,
36
- IgxTooltipModule ,
37
- IgxToggleModule } from 'igniteui-angular' ;
38
- import { AppModuleConfig , Config , IConfigGenerator } from 'igniteui-live-editing' ;
3
+ import { CommonModule } from '@angular/common' ;
4
+ import { HttpClientModule } from '@angular/common/http' ;
5
+ import {
6
+ Router ,
7
+ RouterModule
8
+ } from '@angular/router' ;
9
+ import {
10
+ IgxActionStripModule ,
11
+ IgxAvatarModule ,
12
+ IgxBadgeModule ,
13
+ IgxButtonGroupModule ,
14
+ IgxButtonModule ,
15
+ IgxCheckboxModule ,
16
+ IgxChipsModule ,
17
+ IgxComboModule ,
18
+ IgxCsvExporterService ,
19
+ IgxDatePickerModule ,
20
+ IgxDialogModule ,
21
+ IgxDividerModule ,
22
+ IgxDragDropModule ,
23
+ IgxExcelExporterService ,
24
+ IgxExpansionPanelModule ,
25
+ IgxFocusModule ,
26
+ IgxGridModule ,
27
+ IgxIconModule ,
28
+ IgxInputGroupModule ,
29
+ IgxListModule ,
30
+ IgxOverlayService ,
31
+ IgxProgressBarModule ,
32
+ IgxRadioModule ,
33
+ IgxRippleModule ,
34
+ IgxSelectModule ,
35
+ IgxSnackbarModule ,
36
+ IgxSwitchModule ,
37
+ IgxTabsModule ,
38
+ IgxToastModule ,
39
+ IgxTooltipModule ,
40
+ IgxToggleModule
41
+ } from 'igniteui-angular' ;
42
+ import { AppModuleConfig , Config , IConfigGenerator } from 'igniteui-live-editing' ;
39
43
export class GridConfigGenerator implements IConfigGenerator {
40
44
public additionalImports = {
41
45
IgxPreventDocumentScrollModule : '../../src/app/directives/prevent-scroll.directive' ,
@@ -49,7 +53,7 @@ export class GridConfigGenerator implements IConfigGenerator {
49
53
RemoteServiceVirt : '../../src/app/services/remoteVirtualization.service' ,
50
54
FinancialDataService : '../../src/app/services/financial.service' ,
51
55
CRUDService : '../../src/app/services/crud.service'
52
- } ;
56
+ } ;
53
57
public generateConfigs ( ) : Config [ ] {
54
58
const configs = new Array < Config > ( ) ;
55
59
@@ -196,7 +200,7 @@ export class GridConfigGenerator implements IConfigGenerator {
196
200
appModuleConfig : new AppModuleConfig ( {
197
201
imports : [ 'HttpClientModule' , 'IgxAvatarModule' , 'IgxBadgeModule' , 'IgxButtonModule' , 'IgxSnackbarModule' ,
198
202
'IgxGridModule' , 'IgxIconModule' , 'IgxInputGroupModule' , 'IgxSwitchModule' , 'GridSelectionSampleComponent' , 'IgxPreventDocumentScrollModule' ,
199
- 'FinancialDataService' ] ,
203
+ 'FinancialDataService' ] ,
200
204
ngDeclarations : [ 'GridSelectionSampleComponent' ] ,
201
205
ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxAvatarModule' , 'IgxBadgeModule' , 'IgxButtonModule' , 'IgxGridModule' , 'IgxSnackbarModule' ,
202
206
'IgxIconModule' , 'IgxInputGroupModule' , 'IgxSwitchModule' , 'HttpClientModule' ] ,
@@ -473,6 +477,16 @@ export class GridConfigGenerator implements IConfigGenerator {
473
477
} )
474
478
} ) ) ;
475
479
480
+ configs . push ( new Config ( {
481
+ component : 'GridExcelStyleEditingComponent' ,
482
+ additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/nwindData.ts' ] ,
483
+ appModuleConfig : new AppModuleConfig ( {
484
+ imports : [ 'GridExcelStyleEditingComponent' , 'IgxGridModule' , 'IgxPreventDocumentScrollModule' ] ,
485
+ ngDeclarations : [ 'GridExcelStyleEditingComponent' ] ,
486
+ ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' ]
487
+ } )
488
+ } ) ) ;
489
+
476
490
configs . push ( new Config ( {
477
491
component : 'GridEditingStyleSampleComponent' ,
478
492
additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/nwindData.ts' ] ,
@@ -785,7 +799,7 @@ export class GridConfigGenerator implements IConfigGenerator {
785
799
786
800
configs . push ( new Config ( {
787
801
component : 'GridNestedDataBindComponent' ,
788
- additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/nested-employee-data.ts' ] ,
802
+ additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/nested-employee-data.ts' , '/src/_variables.scss' , '/src/_app-layout.scss' ] ,
789
803
appModuleConfig : new AppModuleConfig ( {
790
804
imports : [ 'GridNestedDataBindComponent' , 'IgxGridModule' , 'IgxInputGroupModule' , 'IgxExpansionPanelModule' , 'IgxPreventDocumentScrollModule' ] ,
791
805
ngDeclarations : [ 'GridNestedDataBindComponent' ] ,
@@ -795,7 +809,7 @@ export class GridConfigGenerator implements IConfigGenerator {
795
809
796
810
configs . push ( new Config ( {
797
811
component : 'GridNestedDataBindAminoacidComponent' ,
798
- additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/amino-data.ts' ] ,
812
+ additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/amino-data.ts' , '/src/_variables.scss' , '/src/_app-layout.scss' ] ,
799
813
appModuleConfig : new AppModuleConfig ( {
800
814
imports : [ 'GridNestedDataBindAminoacidComponent' , 'IgxGridModule' , 'IgxPreventDocumentScrollModule' ] ,
801
815
ngDeclarations : [ 'GridNestedDataBindAminoacidComponent' ] ,
@@ -805,7 +819,7 @@ export class GridConfigGenerator implements IConfigGenerator {
805
819
806
820
configs . push ( new Config ( {
807
821
component : 'GridCompositeDataComponent' ,
808
- additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/customers.ts' ] ,
822
+ additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/customers.ts' , '/src/_variables.scss' , '/src/_app-layout.scss' ] ,
809
823
appModuleConfig : new AppModuleConfig ( {
810
824
imports : [ 'GridCompositeDataComponent' , 'IgxGridModule' , 'IgxInputGroupModule' , 'IgxPreventDocumentScrollModule' ] ,
811
825
ngDeclarations : [ 'GridCompositeDataComponent' ] ,
@@ -1256,7 +1270,7 @@ export class GridConfigGenerator implements IConfigGenerator {
1256
1270
appModuleConfig : new AppModuleConfig ( {
1257
1271
imports : [ 'GridAddRowSampleComponent' , 'IgxGridModule' , 'IgxPreventDocumentScrollModule' , 'IgxActionStripModule' , 'IgxInputGroupModule' , 'IgxFocusModule' ] ,
1258
1272
ngDeclarations : [ 'GridAddRowSampleComponent' ] ,
1259
- ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' , 'IgxActionStripModule' , 'IgxInputGroupModule' , 'IgxFocusModule' ]
1273
+ ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' , 'IgxActionStripModule' , 'IgxInputGroupModule' , 'IgxFocusModule' ]
1260
1274
} )
1261
1275
} ) ) ;
1262
1276
@@ -1275,7 +1289,7 @@ export class GridConfigGenerator implements IConfigGenerator {
1275
1289
component : 'GridSelectComponent' ,
1276
1290
additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/grid/grid-select/data.ts' , '/src/app/grid/grid-select/characters.ts' ] ,
1277
1291
appModuleConfig : new AppModuleConfig ( {
1278
- imports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' , 'IgxSelectModule' , 'GridSelectComponent' ] ,
1292
+ imports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' , 'IgxSelectModule' , 'GridSelectComponent' ] ,
1279
1293
ngDeclarations : [ 'GridSelectComponent' ] ,
1280
1294
ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' , 'IgxSelectModule' ]
1281
1295
} )
@@ -1317,23 +1331,85 @@ export class GridConfigGenerator implements IConfigGenerator {
1317
1331
component : 'GridRowClassesComponent' ,
1318
1332
additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/nwindData.ts' ] ,
1319
1333
appModuleConfig : new AppModuleConfig ( {
1320
- imports : [ 'IgxGridModule' , 'GridRowClassesComponent' , 'IgxPreventDocumentScrollModule' ] ,
1334
+ imports : [ 'IgxGridModule' , 'GridRowClassesComponent' , 'IgxPreventDocumentScrollModule' ] ,
1321
1335
ngDeclarations : [ 'GridRowClassesComponent' ] ,
1322
1336
ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' ]
1323
1337
} )
1324
1338
} ) ) ;
1325
1339
1326
1340
configs . push ( new Config ( {
1327
1341
component : 'GridRowStylesComponent' ,
1328
- additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/services/financial.service.ts' , '/src/app/data/financialData.ts' ] ,
1342
+ additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/services/financial.service.ts' , '/src/app/data/financialData.ts' ] ,
1329
1343
appModuleConfig : new AppModuleConfig ( {
1330
- imports : [ 'IgxGridModule' , 'GridRowStylesComponent' , 'IgxPreventDocumentScrollModule' , 'FinancialDataService' ] ,
1344
+ imports : [ 'IgxGridModule' , 'GridRowStylesComponent' , 'IgxPreventDocumentScrollModule' , 'FinancialDataService' ] ,
1331
1345
ngDeclarations : [ 'GridRowStylesComponent' ] ,
1332
1346
ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' ] ,
1333
1347
ngProviders : [ 'FinancialDataService' ]
1334
1348
} )
1335
1349
} ) ) ;
1336
1350
1351
+ configs . push ( new Config ( {
1352
+ component : 'GridValidatorServiceComponent' ,
1353
+ additionalFiles : [
1354
+ '/src/app/directives/prevent-scroll.directive.ts' ,
1355
+ '/src/app/data/employeesData.ts'
1356
+
1357
+ ] ,
1358
+ appModuleConfig : new AppModuleConfig ( {
1359
+ imports : [ 'GridValidatorServiceComponent' , 'IgxGridModule' , 'IgxFocusModule' , 'IgxPreventDocumentScrollModule' ] ,
1360
+ ngDeclarations : [ 'GridValidatorServiceComponent' ] ,
1361
+ ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' , 'IgxFocusModule' ]
1362
+ } )
1363
+ } ) ) ;
1364
+
1365
+ configs . push ( new Config ( {
1366
+ component : 'GridColumnAutosizingComponent' ,
1367
+ additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/customers.ts' ] ,
1368
+ appModuleConfig : new AppModuleConfig ( {
1369
+ imports : [ 'IgxGridModule' , 'GridColumnAutosizingComponent' , 'IgxPreventDocumentScrollModule' ] ,
1370
+ ngDeclarations : [ 'GridColumnAutosizingComponent' ] ,
1371
+ ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' ]
1372
+ } )
1373
+ } ) ) ;
1374
+
1375
+ configs . push ( new Config ( {
1376
+ component : 'GridValidatorServiceCrossFieldComponent' ,
1377
+ additionalFiles : [
1378
+ '/src/app/directives/prevent-scroll.directive.ts' ,
1379
+ '/src/app/data/employeesData.ts'
1380
+
1381
+ ] ,
1382
+ appModuleConfig : new AppModuleConfig ( {
1383
+ imports : [ 'GridValidatorServiceCrossFieldComponent' , 'IgxGridModule' , 'IgxTooltipModule' , 'IgxFocusModule' , 'IgxPreventDocumentScrollModule' ] ,
1384
+ ngDeclarations : [ 'GridValidatorServiceCrossFieldComponent' ] ,
1385
+ ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' , 'IgxFocusModule' , 'IgxTooltipModule' ]
1386
+ } )
1387
+ } ) ) ;
1388
+
1389
+ configs . push ( new Config ( {
1390
+ component : 'GridValidationStyleComponent' ,
1391
+ additionalFiles : [ '/src/app/directives/prevent-scroll.directive.ts' , '/src/app/data/nwindData.ts' ] ,
1392
+ appModuleConfig : new AppModuleConfig ( {
1393
+ imports : [ 'IgxGridModule' , 'GridValidationStyleComponent' , 'IgxPreventDocumentScrollModule' ] ,
1394
+ ngDeclarations : [ 'GridValidationStyleComponent' ] ,
1395
+ ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' ]
1396
+ } )
1397
+ } ) ) ;
1398
+
1399
+ configs . push ( new Config ( {
1400
+ component : 'GridValidatorServiceExtendedComponent' ,
1401
+ additionalFiles : [
1402
+ '/src/app/directives/prevent-scroll.directive.ts' ,
1403
+ '/src/app/data/employeesData.ts'
1404
+
1405
+ ] ,
1406
+ appModuleConfig : new AppModuleConfig ( {
1407
+ imports : [ 'GridValidatorServiceExtendedComponent' , 'IgxGridModule' , 'IgxFocusModule' , 'IgxPreventDocumentScrollModule' ] ,
1408
+ ngDeclarations : [ 'GridValidatorServiceExtendedComponent' ] ,
1409
+ ngImports : [ 'IgxPreventDocumentScrollModule' , 'IgxGridModule' , 'IgxFocusModule' ]
1410
+ } )
1411
+ } ) ) ;
1412
+
1337
1413
return configs ;
1338
1414
}
1339
1415
}
0 commit comments