Skip to content

Commit b4e995c

Browse files
committed
Merge branch 'vNext' of https://github.com/IgniteUI/igniteui-angular-samples into vNext
2 parents e4d8b38 + 14bb726 commit b4e995c

43 files changed

Lines changed: 866 additions & 21969 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

live-editing/configs/GridConfigGenerator.ts

Lines changed: 74 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
11
/* eslint-disable max-len */
22
/* 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';
3943
export class GridConfigGenerator implements IConfigGenerator {
4044
public additionalImports = {
4145
IgxPreventDocumentScrollModule: '../../src/app/directives/prevent-scroll.directive',
@@ -49,7 +53,7 @@ export class GridConfigGenerator implements IConfigGenerator {
4953
RemoteServiceVirt: '../../src/app/services/remoteVirtualization.service',
5054
FinancialDataService: '../../src/app/services/financial.service',
5155
CRUDService: '../../src/app/services/crud.service'
52-
};
56+
};
5357
public generateConfigs(): Config[] {
5458
const configs = new Array<Config>();
5559

@@ -196,7 +200,7 @@ export class GridConfigGenerator implements IConfigGenerator {
196200
appModuleConfig: new AppModuleConfig({
197201
imports: ['HttpClientModule', 'IgxAvatarModule', 'IgxBadgeModule', 'IgxButtonModule', 'IgxSnackbarModule',
198202
'IgxGridModule', 'IgxIconModule', 'IgxInputGroupModule', 'IgxSwitchModule', 'GridSelectionSampleComponent', 'IgxPreventDocumentScrollModule',
199-
'FinancialDataService'],
203+
'FinancialDataService'],
200204
ngDeclarations: ['GridSelectionSampleComponent'],
201205
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxBadgeModule', 'IgxButtonModule', 'IgxGridModule', 'IgxSnackbarModule',
202206
'IgxIconModule', 'IgxInputGroupModule', 'IgxSwitchModule', 'HttpClientModule'],
@@ -795,7 +799,7 @@ export class GridConfigGenerator implements IConfigGenerator {
795799

796800
configs.push(new Config({
797801
component: 'GridNestedDataBindComponent',
798-
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'],
799803
appModuleConfig: new AppModuleConfig({
800804
imports: ['GridNestedDataBindComponent', 'IgxGridModule', 'IgxInputGroupModule', 'IgxExpansionPanelModule', 'IgxPreventDocumentScrollModule'],
801805
ngDeclarations: ['GridNestedDataBindComponent'],
@@ -805,7 +809,7 @@ export class GridConfigGenerator implements IConfigGenerator {
805809

806810
configs.push(new Config({
807811
component: 'GridNestedDataBindAminoacidComponent',
808-
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'],
809813
appModuleConfig: new AppModuleConfig({
810814
imports: ['GridNestedDataBindAminoacidComponent', 'IgxGridModule', 'IgxPreventDocumentScrollModule'],
811815
ngDeclarations: ['GridNestedDataBindAminoacidComponent'],
@@ -815,7 +819,7 @@ export class GridConfigGenerator implements IConfigGenerator {
815819

816820
configs.push(new Config({
817821
component: 'GridCompositeDataComponent',
818-
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'],
819823
appModuleConfig: new AppModuleConfig({
820824
imports: ['GridCompositeDataComponent', 'IgxGridModule', 'IgxInputGroupModule', 'IgxPreventDocumentScrollModule'],
821825
ngDeclarations: ['GridCompositeDataComponent'],
@@ -1266,7 +1270,7 @@ export class GridConfigGenerator implements IConfigGenerator {
12661270
appModuleConfig: new AppModuleConfig({
12671271
imports: ['GridAddRowSampleComponent', 'IgxGridModule', 'IgxPreventDocumentScrollModule', 'IgxActionStripModule', 'IgxInputGroupModule', 'IgxFocusModule'],
12681272
ngDeclarations: ['GridAddRowSampleComponent'],
1269-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule','IgxActionStripModule', 'IgxInputGroupModule', 'IgxFocusModule']
1273+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxActionStripModule', 'IgxInputGroupModule', 'IgxFocusModule']
12701274
})
12711275
}));
12721276

@@ -1285,7 +1289,7 @@ export class GridConfigGenerator implements IConfigGenerator {
12851289
component: 'GridSelectComponent',
12861290
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/grid/grid-select/data.ts', '/src/app/grid/grid-select/characters.ts'],
12871291
appModuleConfig: new AppModuleConfig({
1288-
imports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSelectModule', 'GridSelectComponent' ],
1292+
imports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSelectModule', 'GridSelectComponent'],
12891293
ngDeclarations: ['GridSelectComponent'],
12901294
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSelectModule']
12911295
})
@@ -1327,23 +1331,47 @@ export class GridConfigGenerator implements IConfigGenerator {
13271331
component: 'GridRowClassesComponent',
13281332
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/nwindData.ts'],
13291333
appModuleConfig: new AppModuleConfig({
1330-
imports: [ 'IgxGridModule', 'GridRowClassesComponent', 'IgxPreventDocumentScrollModule'],
1334+
imports: ['IgxGridModule', 'GridRowClassesComponent', 'IgxPreventDocumentScrollModule'],
13311335
ngDeclarations: ['GridRowClassesComponent'],
13321336
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule']
13331337
})
13341338
}));
13351339

13361340
configs.push(new Config({
13371341
component: 'GridRowStylesComponent',
1338-
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'],
13391343
appModuleConfig: new AppModuleConfig({
1340-
imports: [ 'IgxGridModule', 'GridRowStylesComponent', 'IgxPreventDocumentScrollModule', 'FinancialDataService'],
1344+
imports: ['IgxGridModule', 'GridRowStylesComponent', 'IgxPreventDocumentScrollModule', 'FinancialDataService'],
13411345
ngDeclarations: ['GridRowStylesComponent'],
13421346
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule'],
13431347
ngProviders: ['FinancialDataService']
13441348
})
13451349
}));
13461350

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+
13471375
return configs;
13481376
}
13491377
}

live-editing/configs/HierarchicalGridConfigGenerator.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,30 @@ export class HierarchicalGridConfigGenerator implements IConfigGenerator {
934934
})
935935
}));
936936

937+
configs.push(new Config({
938+
component: 'HierarchicalGridValidatorServiceComponent',
939+
additionalFiles: [
940+
'/src/app/directives/prevent-scroll.directive.ts',
941+
'/src/app/data/hierarchical-data.ts'
942+
],
943+
appModuleConfig: new AppModuleConfig({
944+
imports: ['HierarchicalGridValidatorServiceComponent', 'IgxHierarchicalGridModule', 'IgxPreventDocumentScrollModule'],
945+
ngDeclarations: ['HierarchicalGridValidatorServiceComponent'],
946+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxHierarchicalGridModule']
947+
})
948+
}));
949+
950+
951+
configs.push(new Config({
952+
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/hierarchical-data.ts'],
953+
appModuleConfig: new AppModuleConfig({
954+
imports: ['IgxPreventDocumentScrollModule', 'IgxHierarchicalGridModule', 'HGridColumnAutoSizingSampleComponent'],
955+
ngDeclarations: ['HGridColumnAutoSizingSampleComponent'],
956+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxHierarchicalGridModule'],
957+
}),
958+
component: 'HGridColumnAutoSizingSampleComponent'
959+
}));
960+
937961
return configs;
938962
}
939963
}

live-editing/configs/TreeGridConfigGenerator.ts

Lines changed: 65 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
11
/* eslint-disable @typescript-eslint/naming-convention */
22
/* eslint-disable max-len */
3-
import {IgxActionStripModule,
4-
IgxAvatarModule,
5-
IgxBadgeModule,
6-
IgxButtonGroupModule,
7-
IgxButtonModule,
8-
IgxCheckboxModule,
9-
IgxChipsModule,
10-
IgxCsvExporterService,
11-
IgxDatePickerModule,
12-
IgxDialogModule,
13-
IgxDragDropModule,
14-
IgxExcelExporterService,
15-
IgxGridModule,
16-
IgxIconModule,
17-
IgxInputGroupModule,
18-
IgxListModule,
19-
IgxOverlayService,
20-
IgxRadioModule,
21-
IgxRippleModule,
22-
IgxSelectModule,
23-
IgxSnackbarModule,
24-
IgxSwitchModule,
25-
IgxToastModule,
26-
IgxTooltipModule,
27-
IgxTreeGridModule,
28-
IgxToggleModule} from 'igniteui-angular';
29-
import {IgxSparklineCoreModule,
30-
IgxSparklineModule} from 'igniteui-angular-charts';
31-
import {Router, RouterModule} from '@angular/router';
32-
import {AppModuleConfig, Config, IConfigGenerator} from 'igniteui-live-editing';
3+
import {
4+
IgxActionStripModule,
5+
IgxAvatarModule,
6+
IgxBadgeModule,
7+
IgxButtonGroupModule,
8+
IgxButtonModule,
9+
IgxCheckboxModule,
10+
IgxChipsModule,
11+
IgxCsvExporterService,
12+
IgxDatePickerModule,
13+
IgxDialogModule,
14+
IgxDragDropModule,
15+
IgxExcelExporterService,
16+
IgxGridModule,
17+
IgxIconModule,
18+
IgxInputGroupModule,
19+
IgxListModule,
20+
IgxOverlayService,
21+
IgxRadioModule,
22+
IgxRippleModule,
23+
IgxSelectModule,
24+
IgxSnackbarModule,
25+
IgxSwitchModule,
26+
IgxToastModule,
27+
IgxTooltipModule,
28+
IgxTreeGridModule,
29+
IgxToggleModule
30+
} from 'igniteui-angular';
31+
import {
32+
IgxSparklineCoreModule,
33+
IgxSparklineModule
34+
} from 'igniteui-angular-charts';
35+
import { Router, RouterModule } from '@angular/router';
36+
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing';
3337
export class TreeGridConfigGenerator implements IConfigGenerator {
3438
public additionalImports = {
3539
IgxPreventDocumentScrollModule: '../../src/app/directives/prevent-scroll.directive',
3640
RemoteValuesService: '../../src/app/tree-grid/tree-grid-excel-style-filtering-load-on-demand/remoteValues.service',
3741
TreeGridContextmenuComponent: '../../src/app/tree-grid/tree-grid-sorting-sample/tree-grid-contextmenu/tree-grid-contextmenu.component'
38-
};
42+
};
3943
public generateConfigs(): Config[] {
4044
const configs = new Array<Config>();
4145

@@ -250,6 +254,18 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
250254
shortenComponentPathBy: '/tree-grid/'
251255
}));
252256

257+
//TreeGrid Column Autosizing sample
258+
configs.push(new Config({
259+
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/tree-grid/data/employees-flat-detailed.ts'],
260+
appModuleConfig: new AppModuleConfig({
261+
imports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'TreeGridColumnAutoSizingSampleComponent'],
262+
ngDeclarations: ['TreeGridColumnAutoSizingSampleComponent'],
263+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule']
264+
}),
265+
component: 'TreeGridColumnAutoSizingSampleComponent',
266+
shortenComponentPathBy: '/tree-grid/'
267+
}));
268+
253269
// TreeGrid Column Resizing Line Styling sample
254270
configs.push(new Config({
255271
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/tree-grid/data/employees-flat-detailed.ts'],
@@ -777,9 +793,9 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
777793
appModuleConfig: new AppModuleConfig({
778794
imports: ['IgxPreventDocumentScrollModule', 'TreeGridCellSelectionComponent', 'IgxGridModule', 'IgxSwitchModule',
779795
'IgxIconModule', 'IgxButtonGroupModule', 'IgxAvatarModule', 'IgxTreeGridModule'],
780-
ngDeclarations: ['TreeGridCellSelectionComponent' ],
796+
ngDeclarations: ['TreeGridCellSelectionComponent'],
781797
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxIconModule', 'IgxSwitchModule',
782-
'IgxButtonGroupModule', 'IgxAvatarModule', 'IgxTreeGridModule']
798+
'IgxButtonGroupModule', 'IgxAvatarModule', 'IgxTreeGridModule']
783799
})
784800
}));
785801

@@ -1059,7 +1075,7 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
10591075
'IgxInputGroupModule', 'IgxCheckboxModule', 'IgxDatePickerModule', 'IgxActionStripModule'],
10601076
ngDeclarations: ['TreeGridAddRowSampleComponent'],
10611077
ngImports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'IgxButtonModule', 'IgxDialogModule',
1062-
'IgxInputGroupModule', 'IgxCheckboxModule', 'IgxDatePickerModule', 'IgxActionStripModule']
1078+
'IgxInputGroupModule', 'IgxCheckboxModule', 'IgxDatePickerModule', 'IgxActionStripModule']
10631079
}),
10641080
component: 'TreeGridAddRowSampleComponent',
10651081
shortenComponentPathBy: '/tree-grid/'
@@ -1075,7 +1091,7 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
10751091
component: 'TreeGridFormattedFilteringStrategyComponent',
10761092
shortenComponentPathBy: '/tree-grid/'
10771093
}));
1078-
1094+
10791095
configs.push(new Config({
10801096
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/tree-grid/data/foods.ts'],
10811097
appModuleConfig: new AppModuleConfig({
@@ -1130,6 +1146,20 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
11301146
})
11311147
}));
11321148

1149+
configs.push(new Config({
1150+
component: 'TreeGridValidatorServiceComponent',
1151+
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts',
1152+
'/src/app/data/utils.ts',
1153+
'/src/app/tree-grid/data/employees-flat.ts'
1154+
],
1155+
appModuleConfig: new AppModuleConfig({
1156+
imports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'TreeGridValidatorServiceComponent',
1157+
'IgxButtonModule'],
1158+
ngDeclarations: ['TreeGridValidatorServiceComponent'],
1159+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'IgxButtonModule']
1160+
})
1161+
}));
1162+
11331163
return configs;
11341164
}
11351165
}

0 commit comments

Comments
 (0)