Skip to content

Commit ba170a7

Browse files
authored
Merge branch 'vNext' into sivanova/snackbar-refactoring
2 parents 9bcf4cb + f5a7aac commit ba170a7

File tree

295 files changed

+181501
-5233
lines changed

Some content is hidden

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

295 files changed

+181501
-5233
lines changed
File renamed without changes.

.eslintrc.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"createDefaultProgram": true
1717
},
1818
"extends": [
19-
"plugin:@angular-eslint/ng-cli-compat",
20-
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
19+
"plugin:@angular-eslint/recommended",
2120
"plugin:@angular-eslint/template/process-inline-templates"
2221
],
2322
"rules": {
@@ -40,7 +39,6 @@
4039
"comma-dangle": "error",
4140
"no-underscore-dangle": "off",
4241
"id-blacklist": "error",
43-
"import/no-extraneous-dependencies": "error",
4442
"import/no-internal-modules": "off",
4543
"no-bitwise": "off",
4644
"no-duplicate-case": "error",

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
!.vscode/extensions.json
3333

3434
# misc
35+
/.angular/cache
3536
/.sass-cache
3637
/connect.lock
3738
/coverage

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ npm run build:app-lob
3939
## Dev Server
4040

4141
### Default App
42-
To start the application dev server (including IE support) run:
42+
To start the application dev server run:
4343

4444
```
4545
npm run start
@@ -53,7 +53,7 @@ npm run start:es6
5353

5454
### Line of Business App
5555

56-
To start the application dev server (including IE support) run:
56+
To start the application dev server run:
5757
```
5858
npm run start:app-lob
5959
```
@@ -64,7 +64,7 @@ npm run start:app-lob
6464

6565
### Default App
6666

67-
To generate the live editing applications along with the dev server (including IE support) run:
67+
To generate the live editing applications along with the dev server run:
6868
```
6969
npm run start:live-editing
7070
```
@@ -76,14 +76,14 @@ npm run start:live-editing:es6
7676
```
7777

7878

79-
To generate live editing applications, using only **Sass** for styling (excluding IE and Edge support) run:
79+
To generate live editing applications, using only **Sass** for styling run:
8080
```
8181
npm run start:live-editing:noCss
8282
```
8383

8484
### Line of Business App
8585

86-
To generate the live editing applications along with the dev server (including IE support) run:
86+
To generate the live editing applications along with the dev server run:
8787
```
8888
npm run start:app-lob:live-editing
8989
```
@@ -100,7 +100,7 @@ Live-editing [documentation could be found here](https://github.com/IgniteUI/ign
100100

101101
One of the most important functionality is the Configurator Generator as each Ignite UI for Angular component has a separate configurations (config) generator - [read the following section if you are interested in the actual structure and how to configure it](https://github.com/IgniteUI/igniteui-live-editing#configuration-generator).
102102
### Live-Editing Watcher
103-
Use this command to start the server with capability to regenerate [live editing](https://github.com/IgniteUI/igniteui-angular-samples/blob/master/live-editing/README.md) JSON files (e.g. `"/src/assets/samples/avatar-sample-3.json"`) when a change related to the samples is made (including IE support):
103+
Use this command to start the server with capability to regenerate [live editing](https://github.com/IgniteUI/igniteui-angular-samples/blob/master/live-editing/README.md) JSON files (e.g. `"/src/assets/samples/avatar-sample-3.json"`) when a change related to the samples is made:
104104

105105
```
106106
npm run start:watch-live-editing

angular.json

-60
Original file line numberDiff line numberDiff line change
@@ -54,36 +54,6 @@
5454
"with": "src/environments/environment.prod.ts"
5555
}
5656
]
57-
},
58-
"es5": {
59-
"budgets": [
60-
{
61-
"type": "anyComponentStyle",
62-
"maximumWarning": "900kb"
63-
}
64-
],
65-
"tsConfig": "src/tsconfig-es5.app.json"
66-
},
67-
"es5Prod": {
68-
"budgets": [
69-
{
70-
"type": "anyComponentStyle",
71-
"maximumWarning": "900kb"
72-
}
73-
],
74-
"optimization": true,
75-
"outputHashing": "all",
76-
"namedChunks": false,
77-
"extractLicenses": true,
78-
"vendorChunk": false,
79-
"buildOptimizer": true,
80-
"fileReplacements": [
81-
{
82-
"replace": "src/environments/environment.ts",
83-
"with": "src/environments/environment.prod.ts"
84-
}
85-
],
86-
"tsConfig": "src/tsconfig-es5.app.json"
8757
}
8858
}
8959
},
@@ -95,12 +65,6 @@
9565
"configurations": {
9666
"production": {
9767
"browserTarget": "my-app:build:production"
98-
},
99-
"es5": {
100-
"browserTarget": "my-app:build:es5"
101-
},
102-
"es5Prod": {
103-
"browserTarget": "my-app:build:es5Prod"
10468
}
10569
}
10670
},
@@ -205,15 +169,6 @@
205169
"maximumError": "900kb"
206170
}
207171
]
208-
},
209-
"es5": {
210-
"budgets": [
211-
{
212-
"type": "anyComponentStyle",
213-
"maximumWarning": "900kb"
214-
}
215-
],
216-
"tsConfig": "projects/app-lob/tsconfig-es5.app.json"
217172
}
218173
}
219174
},
@@ -225,9 +180,6 @@
225180
"configurations": {
226181
"production": {
227182
"browserTarget": "app-lob:build:production"
228-
},
229-
"es5": {
230-
"browserTarget": "app-lob:build:es5"
231183
}
232184
}
233185
},
@@ -344,15 +296,6 @@
344296
"maximumError": "900kb"
345297
}
346298
]
347-
},
348-
"es5": {
349-
"budgets": [
350-
{
351-
"type": "anyComponentStyle",
352-
"maximumWarning": "900kb"
353-
}
354-
],
355-
"tsConfig": "projects/app-crm/tsconfig-es5.app.json"
356299
}
357300
}
358301
},
@@ -364,9 +307,6 @@
364307
"configurations": {
365308
"production": {
366309
"browserTarget": "app-crm:build:production"
367-
},
368-
"es5": {
369-
"browserTarget": "app-crm:build:es5"
370310
}
371311
}
372312
},

e2e/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"outDir": "../out-tsc/e2e",
55
"baseUrl": "./",
66
"module": "commonjs",
7-
"target": "es5",
7+
"target": "es6",
88
"types": [
99
"jasmine",
1010
"jasminewd2",

live-editing/configs/ComboConfigGenerator.ts

+59-33
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
/* eslint-disable @typescript-eslint/naming-convention */
2-
import {HttpClientModule} from '@angular/common/http';
3-
import {IgxButtonModule,
4-
IgxCardModule,
5-
IgxComboModule,
6-
IgxSelectModule,
7-
IgxSwitchModule,
8-
IgxToastModule,
9-
IgxIconModule,
10-
IgxPrefixModule} from 'igniteui-angular';
11-
import {AppModuleConfig, Config, IConfigGenerator} from 'igniteui-live-editing';
2+
import { HttpClientModule } from '@angular/common/http';
3+
import {
4+
IgxButtonModule,
5+
IgxButtonGroupModule,
6+
IgxCardModule,
7+
IgxComboModule,
8+
IgxSelectModule,
9+
IgxSwitchModule,
10+
IgxToastModule,
11+
IgxIconModule,
12+
IgxPrefixModule
13+
} from 'igniteui-angular';
14+
import { IgxFinancialChartModule } from 'igniteui-angular-charts';
15+
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing';
1216
export class ComboConfigGenerator implements IConfigGenerator {
1317
public additionalImports = {
1418
RemoteNWindService: '../../src/app/services/remoteNwind.service'
15-
};
19+
};
1620
public generateConfigs(): Config[] {
1721
const configs = new Array<Config>();
1822

@@ -37,17 +41,6 @@ export class ComboConfigGenerator implements IConfigGenerator {
3741
component: 'ComboStylingComponent'
3842
}));
3943

40-
configs.push(new Config({
41-
additionalFiles: ['/src/app/lists/combo/cascading-combos/local-data.ts'],
42-
appModuleConfig: new AppModuleConfig({
43-
imports: ['IgxComboModule', 'IgxSelectModule', 'CascadingCombosComponent'],
44-
ngDeclarations: ['CascadingCombosComponent'],
45-
ngImports: ['IgxComboModule', 'IgxSelectModule']
46-
}),
47-
component: 'CascadingCombosComponent',
48-
shortenComponentPathBy: '/lists/combo/'
49-
}));
50-
5144
configs.push(new Config({
5245
additionalFiles: ['/src/app/lists/combo/combo-main/local-data.ts'],
5346
appModuleConfig: new AppModuleConfig({
@@ -91,17 +84,6 @@ export class ComboConfigGenerator implements IConfigGenerator {
9184
component: 'ComboOverlayComponent'
9285
}));
9386

94-
configs.push(new Config({
95-
additionalFiles: ['/src/app/lists/combo/combo-single-selection/local-data.ts'],
96-
appModuleConfig: new AppModuleConfig({
97-
imports: ['IgxComboModule', 'ComboSingleSelectionComponent'],
98-
ngDeclarations: ['ComboSingleSelectionComponent'],
99-
ngImports: ['IgxComboModule']
100-
}),
101-
component: 'ComboSingleSelectionComponent',
102-
shortenComponentPathBy: '/lists/combo/'
103-
}));
104-
10587
configs.push(new Config({
10688
additionalFiles: ['/src/app/lists/combo/combo-binding/cities.ts'],
10789
appModuleConfig: new AppModuleConfig({
@@ -124,6 +106,50 @@ export class ComboConfigGenerator implements IConfigGenerator {
124106
shortenComponentPathBy: '/lists/combo/'
125107
}));
126108

109+
configs.push(new Config({
110+
additionalFiles: ['/src/app/data/stocks-data.ts'],
111+
appModuleConfig: new AppModuleConfig({
112+
imports: ['IgxButtonGroupModule', 'IgxComboModule', 'IgxFinancialChartModule', 'SimpleComboMainComponent'],
113+
ngDeclarations: ['SimpleComboMainComponent'],
114+
ngImports: ['IgxButtonGroupModule', 'IgxComboModule', 'IgxFinancialChartModule']
115+
}),
116+
component: 'SimpleComboMainComponent',
117+
shortenComponentPathBy: '/lists/combo/'
118+
}));
119+
120+
configs.push(new Config({
121+
additionalFiles: ['/src/app/data/cities15000-regions-countries.ts'],
122+
appModuleConfig: new AppModuleConfig({
123+
imports: ['IgxComboModule', 'SimpleComboUsageComponent'],
124+
ngDeclarations: ['SimpleComboUsageComponent'],
125+
ngImports: ['IgxComboModule']
126+
}),
127+
component: 'SimpleComboUsageComponent',
128+
shortenComponentPathBy: '/lists/combo/'
129+
}));
130+
131+
configs.push(new Config({
132+
additionalFiles: ['/src/app/data/cities15000-regions-countries.ts'],
133+
appModuleConfig: new AppModuleConfig({
134+
imports: ['IgxComboModule', 'SimpleComboCascadingComponent'],
135+
ngDeclarations: ['SimpleComboCascadingComponent'],
136+
ngImports: ['IgxComboModule']
137+
}),
138+
component: 'SimpleComboCascadingComponent',
139+
shortenComponentPathBy: '/lists/combo/'
140+
}));
141+
142+
configs.push(new Config({
143+
additionalFiles: ['/src/app/data/cities15000-regions-countries.ts'],
144+
appModuleConfig: new AppModuleConfig({
145+
imports: ['IgxComboModule', 'SimpleComboStylingComponent'],
146+
ngDeclarations: ['SimpleComboStylingComponent'],
147+
ngImports: ['IgxComboModule']
148+
}),
149+
component: 'SimpleComboStylingComponent',
150+
shortenComponentPathBy: '/lists/combo/'
151+
}));
152+
127153
return configs;
128154
}
129155
}

live-editing/configs/GridConfigGenerator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ export class GridConfigGenerator implements IConfigGenerator {
588588
// Grid with Action Strip
589589
configs.push(new Config({
590590
component: 'GridActionStripSampleComponent',
591-
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/nwindData.ts', '/src/app/data/utils.ts'],
591+
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/nwindData.ts'],
592592
appModuleConfig: new AppModuleConfig({
593593
imports: ['GridActionStripSampleComponent', 'IgxGridModule', 'IgxDialogModule', 'IgxButtonModule',
594594
'IgxFocusModule', 'IgxPreventDocumentScrollModule', 'IgxActionStripModule'],

live-editing/configs/HierarchicalGridConfigGenerator.ts

+10
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,16 @@ export class HierarchicalGridConfigGenerator implements IConfigGenerator {
860860
})
861861
}));
862862

863+
configs.push(new Config({
864+
component: 'HGridActionStripSampleComponent',
865+
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/nwindData.ts', '/src/app/data/utils.ts'],
866+
appModuleConfig: new AppModuleConfig({
867+
imports: ['HGridActionStripSampleComponent', 'IgxHierarchicalGridModule', 'IgxDialogModule', 'IgxButtonModule', 'IgxPreventDocumentScrollModule', 'IgxActionStripModule'],
868+
ngDeclarations: ['HGridActionStripSampleComponent'],
869+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxHierarchicalGridModule', 'IgxDialogModule', 'IgxButtonModule', 'IgxActionStripModule']
870+
})
871+
}));
872+
863873
return configs;
864874
}
865875
}

live-editing/configs/TreeGridConfigGenerator.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,16 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
10951095
shortenComponentPathBy: '/tree-grid/'
10961096
}));
10971097

1098+
configs.push(new Config({
1099+
component: 'TreeGridActionStripSampleComponent',
1100+
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/tree-grid/data/employees-flat-detailed.ts', '/src/app/data/utils.ts'],
1101+
appModuleConfig: new AppModuleConfig({
1102+
imports: ['TreeGridActionStripSampleComponent', 'IgxTreeGridModule', 'IgxDialogModule', 'IgxButtonModule', 'IgxPreventDocumentScrollModule', 'IgxActionStripModule'],
1103+
ngDeclarations: ['TreeGridActionStripSampleComponent'],
1104+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxTreeGridModule', 'IgxDialogModule', 'IgxButtonModule', 'IgxActionStripModule']
1105+
})
1106+
}));
1107+
10981108
return configs;
10991109
}
11001110
}

0 commit comments

Comments
 (0)