Skip to content

Commit 7c7b351

Browse files
authored
Merge pull request #2353 from IgniteUI/zkolev/vnext-11-0-0
Update to [email protected]
2 parents 3dc3e35 + fcaf83f commit 7c7b351

File tree

147 files changed

+3179
-4046
lines changed

Some content is hidden

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

147 files changed

+3179
-4046
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches: [ master, vNext, rkaraivanov/toolbar-samples ]
10+
pull_request:
11+
branches: [ master, vNext, rkaraivanov/toolbar-samples ]
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# This workflow contains a single job called "build"
16+
build:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Run lint
29+
run: npm run lint
30+
31+
- name: 'Generate live editing and build samples'
32+
run: npm run build:app-lob
33+
env:
34+
NODE_OPTIONS: "--max_old_space_size=4096"

angular.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"optimization": true,
3939
"outputHashing": "all",
4040
"sourceMap": false,
41-
"extractCss": false,
4241
"namedChunks": false,
4342
"aot": true,
4443
"extractLicenses": true,
@@ -153,7 +152,6 @@
153152
"optimization": true,
154153
"outputHashing": "all",
155154
"sourceMap": false,
156-
"extractCss": true,
157155
"namedChunks": false,
158156
"aot": true,
159157
"extractLicenses": true,
@@ -257,5 +255,8 @@
257255
"@schematics/angular:directive": {
258256
"prefix": "app"
259257
}
258+
},
259+
"cli": {
260+
"analytics": false
260261
}
261-
}
262+
}

live-editing/configs/GridConfigGenerator.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ IgxButtonGroupModule,
99
IgxButtonModule,
1010
IgxCheckboxModule,
1111
IgxChipsModule,
12-
IgxColumnHidingModule,
1312
IgxComboModule,
1413
IgxCsvExporterService,
1514
IgxDatePickerModule,
@@ -244,10 +243,9 @@ export class GridConfigGenerator implements IConfigGenerator {
244243
component: 'GridColumnHidingSampleComponent',
245244
additionalFiles: ["/src/app/directives/prevent-scroll.directive.ts", "/src/app/data/customers.ts"],
246245
appModuleConfig: new AppModuleConfig({
247-
imports: ['HttpClientModule', 'IgxGridModule', 'IgxRadioModule',
248-
'IgxColumnHidingModule', 'GridColumnHidingSampleComponent', 'IgxPreventDocumentScrollModule'],
246+
imports: ['HttpClientModule', 'IgxGridModule', 'IgxRadioModule', 'GridColumnHidingSampleComponent', 'IgxPreventDocumentScrollModule'],
249247
ngDeclarations: ['GridColumnHidingSampleComponent'],
250-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxRadioModule', 'IgxColumnHidingModule', 'HttpClientModule'],
248+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxRadioModule', 'HttpClientModule'],
251249
ngProviders: []
252250
})
253251
}));
@@ -404,10 +402,10 @@ export class GridConfigGenerator implements IConfigGenerator {
404402
component: 'GridToolbarSample2Component',
405403
additionalFiles: ["/src/app/directives/prevent-scroll.directive.ts", "/src/app/grid/services/data.ts"],
406404
appModuleConfig: new AppModuleConfig({
407-
imports: ['GridToolbarSample2Component', 'IgxAvatarModule', 'IgxGridModule',
405+
imports: ['GridToolbarSample2Component', 'IgxAvatarModule', 'IgxGridModule', 'IgxSwitchModule',
408406
'IgxExcelExporterService', 'IgxCsvExporterService', 'IgxPreventDocumentScrollModule'],
409407
ngDeclarations: ['GridToolbarSample2Component'],
410-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxGridModule'],
408+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxAvatarModule', 'IgxGridModule', 'IgxSwitchModule'],
411409
ngProviders: ['IgxExcelExporterService', 'IgxCsvExporterService']
412410
})
413411
}));

live-editing/configs/HierarchicalGridConfigGenerator.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ IgxToggleModule} from 'igniteui-angular';
2323
import {AppModuleConfig} from './core/AppModuleConfig';
2424
import {Config} from './core/Config';
2525
import {IConfigGenerator} from './core/IConfigGenerator';
26+
import {Router, RouterModule} from '@angular/router'
2627
export class HierarchicalGridConfigGenerator implements IConfigGenerator {
2728
public additionalImports = {
2829
IgxPreventDocumentScrollModule: '../../src/app/directives/prevent-scroll.directive',
@@ -412,9 +413,9 @@ export class HierarchicalGridConfigGenerator implements IConfigGenerator {
412413
configs.push(new Config({
413414
additionalFiles: ["/src/app/directives/prevent-scroll.directive.ts", "/src/app/hierarchical-grid/data.ts"],
414415
appModuleConfig: new AppModuleConfig({
415-
imports: ['IgxHierarchicalGridModule', 'HGridToolbarOptionsSampleComponent', 'IgxPreventDocumentScrollModule'],
416+
imports: ['IgxHierarchicalGridModule', 'HGridToolbarOptionsSampleComponent', 'IgxPreventDocumentScrollModule', 'IgxSwitchModule'],
416417
ngDeclarations: ['HGridToolbarOptionsSampleComponent'],
417-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxHierarchicalGridModule']
418+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxHierarchicalGridModule', 'IgxSwitchModule']
418419
}),
419420
component: 'HGridToolbarOptionsSampleComponent'
420421
}));
@@ -718,16 +719,23 @@ export class HierarchicalGridConfigGenerator implements IConfigGenerator {
718719
component: 'HGridRemotePagingDefaultTemplateComponent'
719720
}));
720721

721-
configs.push(new Config({
722-
additionalFiles: ["/src/app/directives/prevent-scroll.directive.ts", "/src/app/hierarchical-grid/data.ts"],
722+
const hGridSaveStateSampleConfig = new Config({
723+
additionalFiles: [
724+
"/src/app/directives/prevent-scroll.directive.ts",
725+
"/src/app/hierarchical-grid/data.ts",
726+
"/src/app/hierarchical-grid/hierarchical-grid-save-state/about.component.ts",
727+
"/src/app/hierarchical-grid/hierarchical-grid-save-state/about.component.html"
728+
],
723729
appModuleConfig: new AppModuleConfig({
724-
imports: ['IgxHierarchicalGridModule', 'HGridSaveStateComponent', 'HGridAboutComponent', 'IgxPreventDocumentScrollModule'],
730+
imports: ['IgxHierarchicalGridModule', 'HGridSaveStateComponent', 'HGridAboutComponent', 'IgxPreventDocumentScrollModule', 'Router', 'RouterModule'],
725731
ngDeclarations: ['HGridSaveStateComponent', 'HGridAboutComponent'],
726-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxHierarchicalGridModule', 'HttpClientModule',
727-
"RouterModule.forRoot([\{component: 'HGridAboutComponent', path: 'hGrid-state-about'},\{component: 'HGridSaveStateComponent', path: 'hGrid-state'},\{ path: '', redirectTo: '/hGrid-state', pathMatch: 'full' }])]"]
732+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxHierarchicalGridModule',
733+
"RouterModule.forRoot([\{component: HGridAboutComponent, path: 'hGrid-state-about'},\{component: HGridSaveStateComponent, path: 'hGrid-state'},\{ path: '', redirectTo: '/hGrid-state', pathMatch: 'full' }])"]
728734
}),
729735
component: 'HGridSaveStateComponent'
730-
}));
736+
});
737+
hGridSaveStateSampleConfig.usesRouting = true;
738+
configs.push(hGridSaveStateSampleConfig);
731739

732740
configs.push(new Config({
733741
additionalFiles: ["/src/app/directives/prevent-scroll.directive.ts", "/src/app/hierarchical-grid/data.ts"],

live-editing/configs/TreeGridConfigGenerator.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ IgxButtonGroupModule,
55
IgxButtonModule,
66
IgxCheckboxModule,
77
IgxChipsModule,
8-
IgxColumnHidingModule,
98
IgxCsvExporterService,
109
IgxDatePickerModule,
1110
IgxDialogModule,
@@ -121,9 +120,9 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
121120
configs.push(new Config({
122121
additionalFiles: ["/src/app/directives/prevent-scroll.directive.ts", "/src/app/tree-grid/data/employees-flat-detailed.ts"],
123122
appModuleConfig: new AppModuleConfig({
124-
imports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'TreeGridColumnHidingSampleComponent', 'IgxRadioModule', 'IgxColumnHidingModule'],
123+
imports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'TreeGridColumnHidingSampleComponent', 'IgxRadioModule'],
125124
ngDeclarations: ['TreeGridColumnHidingSampleComponent'],
126-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'IgxRadioModule', 'IgxColumnHidingModule']
125+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'IgxRadioModule']
127126
}),
128127
component: 'TreeGridColumnHidingSampleComponent',
129128
shortenComponentPathBy: "/tree-grid/"
@@ -396,9 +395,9 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
396395
additionalFiles: ["/src/app/directives/prevent-scroll.directive.ts", "/src/app/tree-grid/data/employees-flat-avatars.ts"],
397396
appModuleConfig: new AppModuleConfig({
398397
imports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'TreeGridToolbarSample1Component', 'IgxAvatarModule',
399-
'IgxExcelExporterService', 'IgxCsvExporterService'],
398+
'IgxExcelExporterService', 'IgxCsvExporterService', 'IgxSwitchModule'],
400399
ngDeclarations: ['TreeGridToolbarSample1Component'],
401-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'IgxAvatarModule'],
400+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'IgxAvatarModule', 'IgxSwitchModule'],
402401
ngProviders: ['IgxExcelExporterService', 'IgxCsvExporterService']
403402
}),
404403
component: 'TreeGridToolbarSample1Component',

0 commit comments

Comments
 (0)