devextreme-schematics 1.2.23 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/LICENSE +21 -21
  2. package/package.json +7 -7
  3. package/src/add-app-template/index.d.ts +2 -2
  4. package/src/add-app-template/index.js +26 -26
  5. package/src/add-app-template/index_spec.d.ts +1 -1
  6. package/src/add-app-template/index_spec.js +70 -69
  7. package/src/add-app-template/index_spec.js.map +1 -1
  8. package/src/add-app-template/schema.json +2 -2
  9. package/src/add-layout/files/devextreme.json +1 -1
  10. package/src/add-layout/files/src/app/shared/services/screen.service.ts +1 -1
  11. package/src/add-layout/files/src/dx-styles.scss +4 -0
  12. package/src/add-layout/index.d.ts +2 -2
  13. package/src/add-layout/index.js +277 -266
  14. package/src/add-layout/index.js.map +1 -1
  15. package/src/add-layout/index.ts +28 -30
  16. package/src/add-layout/index_spec.d.ts +1 -1
  17. package/src/add-layout/index_spec.js +251 -250
  18. package/src/add-layout/index_spec.js.map +1 -1
  19. package/src/add-layout/index_spec.ts +2 -2
  20. package/src/add-layout/schema.json +2 -2
  21. package/src/add-sample-views/index.d.ts +2 -2
  22. package/src/add-sample-views/index.js +97 -88
  23. package/src/add-sample-views/index.js.map +1 -1
  24. package/src/add-sample-views/index.ts +3 -3
  25. package/src/add-sample-views/index_spec.d.ts +1 -1
  26. package/src/add-sample-views/index_spec.js +53 -52
  27. package/src/add-sample-views/index_spec.js.map +1 -1
  28. package/src/add-sample-views/index_spec.ts +1 -1
  29. package/src/add-sample-views/schema.json +1 -1
  30. package/src/add-view/index.d.ts +3 -3
  31. package/src/add-view/index.js +125 -113
  32. package/src/add-view/index.js.map +1 -1
  33. package/src/add-view/index.ts +14 -13
  34. package/src/add-view/index_spec.d.ts +1 -1
  35. package/src/add-view/index_spec.js +109 -108
  36. package/src/add-view/index_spec.js.map +1 -1
  37. package/src/add-view/schema.json +1 -1
  38. package/src/install/index.d.ts +2 -2
  39. package/src/install/index.js +76 -63
  40. package/src/install/index.js.map +1 -1
  41. package/src/install/index.ts +4 -2
  42. package/src/install/index_spec.d.ts +1 -1
  43. package/src/install/index_spec.js +96 -95
  44. package/src/install/index_spec.js.map +1 -1
  45. package/src/install/index_spec.ts +1 -1
  46. package/src/install/schema.json +1 -1
  47. package/src/utility/array.d.ts +1 -1
  48. package/src/utility/array.js +7 -6
  49. package/src/utility/array.js.map +1 -1
  50. package/src/utility/change.d.ts +7 -7
  51. package/src/utility/change.js +49 -48
  52. package/src/utility/change.js.map +1 -1
  53. package/src/utility/latest-versions.d.ts +5 -5
  54. package/src/utility/latest-versions.js +9 -8
  55. package/src/utility/latest-versions.js.map +1 -1
  56. package/src/utility/modify-json-file.d.ts +3 -2
  57. package/src/utility/modify-json-file.js +15 -11
  58. package/src/utility/modify-json-file.js.map +1 -1
  59. package/src/utility/modify-json-file.ts +6 -3
  60. package/src/utility/project.d.ts +5 -5
  61. package/src/utility/project.js +48 -25
  62. package/src/utility/project.js.map +1 -1
  63. package/src/utility/project.ts +19 -14
  64. package/src/utility/routing.d.ts +4 -4
  65. package/src/utility/routing.js +32 -31
  66. package/src/utility/routing.js.map +1 -1
  67. package/src/utility/source.d.ts +3 -3
  68. package/src/utility/source.js +13 -12
  69. package/src/utility/source.js.map +1 -1
  70. package/src/utility/string.d.ts +1 -1
  71. package/src/utility/string.js +8 -7
  72. package/src/utility/string.js.map +1 -1
  73. package/src/utility/styles.d.ts +1 -2
  74. package/src/utility/styles.js +29 -30
  75. package/src/utility/styles.js.map +1 -1
  76. package/src/utility/styles.ts +2 -5
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Developer Express Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Developer Express Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devextreme-schematics",
3
- "version": "1.2.23",
3
+ "version": "1.3.0",
4
4
  "description": "DevExtreme schematics",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
@@ -22,17 +22,17 @@
22
22
  ],
23
23
  "schematics": "./src/collection.json",
24
24
  "dependencies": {
25
- "@angular-devkit/core": "^8.0.0",
26
- "@angular-devkit/schematics": "^8.0.0",
27
- "@schematics/angular": "^8.0.0",
25
+ "@angular-devkit/core": "^12.0.0",
26
+ "@angular-devkit/schematics": "^12.0.0",
27
+ "@schematics/angular": "^12.0.0",
28
28
  "rxjs": "~6.4.0",
29
- "typescript": "3.5.3"
29
+ "typescript": "~4.3.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/jasmine": "^3.3.8",
32
+ "@types/jasmine": "~3.10.3",
33
33
  "@types/node": "^8.10.39",
34
34
  "jasmine": "^2.8.0",
35
35
  "tslint": "^5.15.0"
36
36
  },
37
- "gitHead": "777e8d2b209c52381f604bb395a5289c8cded7da"
37
+ "gitHead": "c61a31f44439fe1b0e82449a15c4db8375af34f3"
38
38
  }
@@ -1,2 +1,2 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (options: any): Rule;
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ export default function (options: any): Rule;
@@ -1,27 +1,27 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_1 = require("@angular-devkit/schematics");
4
- function default_1(options) {
5
- const rules = [
6
- schematics_1.schematic('install', {
7
- dxversion: options.dxversion,
8
- project: options.project
9
- }),
10
- schematics_1.schematic('add-layout', {
11
- layout: options.layout,
12
- resolveConflicts: options.resolveConflicts,
13
- project: options.project,
14
- skipInstall: true,
15
- updateBudgets: options.updateBudgets,
16
- globalNgCliVersion: options.globalNgCliVersion
17
- })
18
- ];
19
- if (!options.empty) {
20
- rules.push(schematics_1.schematic('add-sample-views', {
21
- project: options.project
22
- }));
23
- }
24
- return schematics_1.chain(rules);
25
- }
26
- exports.default = default_1;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@angular-devkit/schematics");
4
+ function default_1(options) {
5
+ const rules = [
6
+ schematics_1.schematic('install', {
7
+ dxversion: options.dxversion,
8
+ project: options.project
9
+ }),
10
+ schematics_1.schematic('add-layout', {
11
+ layout: options.layout,
12
+ resolveConflicts: options.resolveConflicts,
13
+ project: options.project,
14
+ skipInstall: true,
15
+ updateBudgets: options.updateBudgets,
16
+ globalNgCliVersion: options.globalNgCliVersion
17
+ })
18
+ ];
19
+ if (!options.empty) {
20
+ rules.push(schematics_1.schematic('add-sample-views', {
21
+ project: options.project
22
+ }));
23
+ }
24
+ return schematics_1.chain(rules);
25
+ }
26
+ exports.default = default_1;
27
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,70 +1,71 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- const testing_1 = require("@angular-devkit/schematics/testing");
12
- const path = require("path");
13
- const collectionPath = path.join(__dirname, '../collection.json');
14
- const appOptions = {
15
- name: 'testApp',
16
- projectRoot: '',
17
- inlineStyle: false,
18
- inlineTemplate: false,
19
- routing: true,
20
- style: 'css',
21
- skipTests: false,
22
- skipPackageJson: false
23
- };
24
- const workspaceOptions = {
25
- name: 'workspace',
26
- version: '6.0.0'
27
- };
28
- const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
29
- const schematicRunner = new testing_1.SchematicTestRunner('@schematics/angular', angularSchematicsCollection);
30
- let appTree;
31
- beforeEach(() => __awaiter(this, void 0, void 0, function* () {
32
- appTree = yield schematicRunner.runSchematicAsync('workspace', workspaceOptions).toPromise();
33
- appTree = yield schematicRunner.runSchematicAsync('application', appOptions, appTree).toPromise();
34
- }));
35
- describe('add-app-template', () => {
36
- it('should add DevExtreme', () => __awaiter(this, void 0, void 0, function* () {
37
- const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
38
- const tree = yield runner.runSchematicAsync('add-app-template', {}, appTree).toPromise();
39
- const packageConfig = JSON.parse(tree.readContent('package.json'));
40
- expect('devextreme' in packageConfig.dependencies).toBe(true);
41
- }));
42
- it('should consider the `project` option', () => __awaiter(this, void 0, void 0, function* () {
43
- appTree = yield schematicRunner.runSchematicAsync('application', {
44
- name: 'testApp2',
45
- inlineStyle: false,
46
- inlineTemplate: false,
47
- routing: true,
48
- style: 'scss',
49
- projectRoot: 'projects/testApp2'
50
- }, appTree).toPromise();
51
- const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
52
- const tree = yield runner.runSchematicAsync('add-app-template', {
53
- project: 'testApp2'
54
- }, appTree).toPromise();
55
- expect(tree.files)
56
- .toContain('/devextreme.json');
57
- expect(tree.files)
58
- .toContain('/projects/testApp2/src/themes/metadata.base.json');
59
- expect(tree.files)
60
- .toContain('/projects/testApp2/src/app/pages/home/home.component.ts');
61
- }));
62
- it('should consider the `updateBudgets` option', () => __awaiter(this, void 0, void 0, function* () {
63
- const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
64
- const tree = yield runner.runSchematicAsync('add-app-template', { updateBudgets: true }, appTree).toPromise();
65
- const angularContent = JSON.parse(tree.readContent('/angular.json'));
66
- const budgets = angularContent.projects.testApp.architect.build.configurations.production.budgets;
67
- expect(budgets[0].maximumWarning).toEqual('4mb');
68
- }));
69
- });
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const testing_1 = require("@angular-devkit/schematics/testing");
13
+ const path = require("path");
14
+ const collectionPath = path.join(__dirname, '../collection.json');
15
+ const appOptions = {
16
+ name: 'testApp',
17
+ projectRoot: '',
18
+ inlineStyle: false,
19
+ inlineTemplate: false,
20
+ routing: true,
21
+ style: 'css',
22
+ skipTests: false,
23
+ skipPackageJson: false
24
+ };
25
+ const workspaceOptions = {
26
+ name: 'workspace',
27
+ version: '6.0.0'
28
+ };
29
+ const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
30
+ const schematicRunner = new testing_1.SchematicTestRunner('@schematics/angular', angularSchematicsCollection);
31
+ let appTree;
32
+ beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
33
+ appTree = yield schematicRunner.runSchematicAsync('workspace', workspaceOptions).toPromise();
34
+ appTree = yield schematicRunner.runSchematicAsync('application', appOptions, appTree).toPromise();
35
+ }));
36
+ describe('add-app-template', () => {
37
+ it('should add DevExtreme', () => __awaiter(void 0, void 0, void 0, function* () {
38
+ const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
39
+ const tree = yield runner.runSchematicAsync('add-app-template', {}, appTree).toPromise();
40
+ const packageConfig = JSON.parse(tree.readContent('package.json'));
41
+ expect('devextreme' in packageConfig.dependencies).toBe(true);
42
+ }));
43
+ it('should consider the `project` option', () => __awaiter(void 0, void 0, void 0, function* () {
44
+ appTree = yield schematicRunner.runSchematicAsync('application', {
45
+ name: 'testApp2',
46
+ inlineStyle: false,
47
+ inlineTemplate: false,
48
+ routing: true,
49
+ style: 'scss',
50
+ projectRoot: 'projects/testApp2'
51
+ }, appTree).toPromise();
52
+ const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
53
+ const tree = yield runner.runSchematicAsync('add-app-template', {
54
+ project: 'testApp2'
55
+ }, appTree).toPromise();
56
+ expect(tree.files)
57
+ .toContain('/devextreme.json');
58
+ expect(tree.files)
59
+ .toContain('/projects/testApp2/src/themes/metadata.base.json');
60
+ expect(tree.files)
61
+ .toContain('/projects/testApp2/src/app/pages/home/home.component.ts');
62
+ }));
63
+ it('should consider the `updateBudgets` option', () => __awaiter(void 0, void 0, void 0, function* () {
64
+ const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
65
+ const tree = yield runner.runSchematicAsync('add-app-template', { updateBudgets: true }, appTree).toPromise();
66
+ const angularContent = JSON.parse(tree.readContent('/angular.json'));
67
+ const budgets = angularContent.projects.testApp.architect.build.configurations.production.budgets;
68
+ expect(budgets[0].maximumWarning).toEqual('4mb');
69
+ }));
70
+ });
70
71
  //# sourceMappingURL=index_spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,gEAAuF;AAEvF,6BAA6B;AAE7B,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,MAAM,UAAU,GAAQ;IACtB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,KAAK;IAClB,cAAc,EAAE,KAAK;IACrB,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,KAAK;IAChB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,gBAAgB,GAAqB;IACzC,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;CACjB,CAAC;AAEF,MAAM,2BAA2B,GAAG,OAAO,CAAC,OAAO,CAAC,wDAAwD,CAAC,CAAC;AA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,GAAG,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC;QAElG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsDevextremeAddAppTemplate",
3
+ "$id": "SchematicsDevextremeAddAppTemplate",
4
4
  "title": "Add a DevExtreme layout template to an Anular application",
5
5
  "type": "object",
6
6
  "properties": {
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "globalNgCliVersion": {
45
45
  "type":"string",
46
- "default": "^11.2.9"
46
+ "default": "^12.0.0"
47
47
  },
48
48
  "empty": {
49
49
  "type": "boolean",
@@ -1,5 +1,5 @@
1
1
  {
2
- "applicationEngine": "<%= engine %>",
2
+ "applicationEngine": "angular",
3
3
  "build": {
4
4
  "commands": [
5
5
  {
@@ -8,7 +8,7 @@ export class ScreenService {
8
8
  constructor(private breakpointObserver: BreakpointObserver) {
9
9
  this.breakpointObserver
10
10
  .observe([Breakpoints.XSmall, Breakpoints.Small, Breakpoints.Medium, Breakpoints.Large])
11
- .subscribe(() => this.changed.next());
11
+ .subscribe(() => this.changed.next(true));
12
12
  }
13
13
 
14
14
  private isLargeScreen() {
@@ -18,6 +18,10 @@ html, body {
18
18
  }
19
19
  }
20
20
 
21
+ .side-nav-outer-toolbar .dx-drawer {
22
+ height: calc(100% - 56px)
23
+ }
24
+
21
25
  .content-block {
22
26
  margin-left: 40px;
23
27
  margin-right: 40px;
@@ -1,2 +1,2 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (options: any): Rule;
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ export default function (options: any): Rule;