devextreme-schematics 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/package.json +8 -7
  2. package/src/add-app-template/README.md +1 -1
  3. package/src/add-app-template/index.js +19 -5
  4. package/src/add-app-template/index.js.map +1 -1
  5. package/src/add-app-template/index.ts +20 -1
  6. package/src/add-app-template/schema.json +1 -1
  7. package/src/add-layout/README.md +2 -2
  8. package/src/add-layout/files/src/app/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.component.scss +1 -16
  9. package/src/add-layout/files/src/app/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.component.scss +0 -9
  10. package/src/add-layout/files/src/dx-styles.scss +12 -0
  11. package/src/add-layout/index.js +43 -41
  12. package/src/add-layout/index.js.map +1 -1
  13. package/src/add-layout/index.ts +5 -2
  14. package/src/add-layout/index_spec.js +5 -5
  15. package/src/add-layout/index_spec.js.map +1 -1
  16. package/src/add-layout/index_spec.ts +2 -2
  17. package/src/add-layout/schema.json +1 -1
  18. package/src/add-sample-views/index.js +15 -15
  19. package/src/add-sample-views/index.js.map +1 -1
  20. package/src/add-view/README.md +2 -2
  21. package/src/add-view/index.js +21 -21
  22. package/src/add-view/index.js.map +1 -1
  23. package/src/add-view/index.ts +1 -1
  24. package/src/install/index.js +10 -10
  25. package/src/install/index.js.map +1 -1
  26. package/src/install/index.ts +3 -2
  27. package/src/install/schema.json +1 -1
  28. package/src/utility/change.d.ts +1 -1
  29. package/src/utility/change.ts +1 -1
  30. package/src/utility/latest-versions.js +2 -2
  31. package/src/utility/latest-versions.ts +2 -2
  32. package/src/utility/modify-json-file.js +1 -1
  33. package/src/utility/modify-json-file.js.map +1 -1
  34. package/src/utility/project.js +3 -3
  35. package/src/utility/project.js.map +1 -1
  36. package/src/utility/routing.d.ts +1 -1
  37. package/src/utility/routing.js +2 -2
  38. package/src/utility/routing.js.map +1 -1
  39. package/src/utility/routing.ts +1 -1
  40. package/src/utility/source.d.ts +1 -1
  41. package/src/utility/source.js +2 -2
  42. package/src/utility/source.js.map +1 -1
  43. package/src/utility/source.ts +1 -1
  44. package/src/utility/styles.js +1 -1
  45. package/src/utility/styles.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devextreme-schematics",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "DevExtreme schematics",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
@@ -24,15 +24,16 @@
24
24
  "dependencies": {
25
25
  "@angular-devkit/core": "^12.0.0",
26
26
  "@angular-devkit/schematics": "^12.0.0",
27
- "@schematics/angular": "^12.0.0",
28
- "rxjs": "~6.4.0",
29
- "typescript": "~4.3.1"
27
+ "@schematics/angular": "^12.0.0"
30
28
  },
31
29
  "devDependencies": {
32
30
  "@types/jasmine": "~3.10.3",
33
- "@types/node": "^8.10.39",
31
+ "@types/node": "ts4.3",
32
+ "@types/semver": "^7.3.9",
34
33
  "jasmine": "^2.8.0",
35
- "tslint": "^5.15.0"
34
+ "rxjs": "^6.0.0",
35
+ "tslint": "^5.15.0",
36
+ "typescript": "^4.3.1"
36
37
  },
37
- "gitHead": "4f9873f14724ac858b6d0e73bacc124c147a7eb5"
38
+ "gitHead": "555ce7269749c1c6586a09062044da0477505bc9"
38
39
  }
@@ -16,5 +16,5 @@ A schematic that adds a DevExtreme layout template to an Angular application.
16
16
  - empty (Boolean)
17
17
  Specifies whether to skip sample views generation
18
18
 
19
- - resolveConflicts (string)
19
+ - resolve-conflicts (string)
20
20
  Specifies whether to override the existing app component or create a component with another name
@@ -1,27 +1,41 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const schematics_1 = require("@angular-devkit/schematics");
4
+ const path_1 = require("path");
5
+ const child_process_1 = require("child_process");
4
6
  function default_1(options) {
5
7
  const rules = [
6
- schematics_1.schematic('install', {
8
+ (0, schematics_1.schematic)('install', {
7
9
  dxversion: options.dxversion,
8
10
  project: options.project
9
11
  }),
10
- schematics_1.schematic('add-layout', {
12
+ (0, schematics_1.schematic)('add-layout', {
11
13
  layout: options.layout,
12
14
  resolveConflicts: options.resolveConflicts,
13
15
  project: options.project,
14
16
  skipInstall: true,
15
17
  updateBudgets: options.updateBudgets,
16
18
  globalNgCliVersion: options.globalNgCliVersion
17
- })
19
+ }),
20
+ // schematics installed packages with flag --ignore-scripts
21
+ // @angular/cli@14 add option allowScript to NodePackageInstallTask
22
+ (host) => {
23
+ const isWin = /^win/.test(process.platform);
24
+ const resPath = (0, path_1.resolve)((0, path_1.join)('.', 'node_modules', 'sass-embedded'));
25
+ (0, child_process_1.spawnSync)('npm', ['run', 'postinstall'], {
26
+ cwd: resPath,
27
+ windowsVerbatimArguments: true,
28
+ shell: isWin ? false : true
29
+ });
30
+ return host;
31
+ }
18
32
  ];
19
33
  if (!options.empty) {
20
- rules.push(schematics_1.schematic('add-sample-views', {
34
+ rules.push((0, schematics_1.schematic)('add-sample-views', {
21
35
  project: options.project
22
36
  }));
23
37
  }
24
- return schematics_1.chain(rules);
38
+ return (0, schematics_1.chain)(rules);
25
39
  }
26
40
  exports.default = default_1;
27
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAAA,2DAIoC;AAEpC,mBAAwB,OAAY;IAClC,MAAM,KAAK,GAAG;QACZ,sBAAS,CAAC,SAAS,EAAE;YACnB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC;QACF,sBAAS,CAAC,YAAY,EAAE;YACtB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,WAAW,EAAE,IAAI;YACjB,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;SAC/C,CAAC;K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aAC5B,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;IAEF,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE;QAClB,KAAK,CAAC,IAAI,CAAC,IAAA,sBAAS,EAAC,kBAAkB,EAAE;YACvC,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC,CAAC,CAAC;KACL;IAED,OAAO,IAAA,kBAAK,EAAC,KAAK,CAAC,CAAC;AACtB,CAAC;AArCD,4BAqCC"}
@@ -2,8 +2,13 @@ import {
2
2
  Rule,
3
3
  chain,
4
4
  schematic,
5
+ Tree,
5
6
  } from '@angular-devkit/schematics';
6
7
 
8
+ import { resolve, join } from 'path';
9
+
10
+ import { spawnSync } from 'child_process';
11
+
7
12
  export default function(options: any): Rule {
8
13
  const rules = [
9
14
  schematic('install', {
@@ -17,7 +22,21 @@ export default function(options: any): Rule {
17
22
  skipInstall: true,
18
23
  updateBudgets: options.updateBudgets,
19
24
  globalNgCliVersion: options.globalNgCliVersion
20
- })
25
+ }),
26
+ // schematics installed packages with flag --ignore-scripts
27
+ // @angular/cli@14 add option allowScript to NodePackageInstallTask
28
+ (host: Tree) => {
29
+ const isWin = /^win/.test(process.platform);
30
+ const resPath = resolve(join('.', 'node_modules', 'sass-embedded'));
31
+
32
+ spawnSync('npm', ['run', 'postinstall'], {
33
+ cwd: resPath,
34
+ windowsVerbatimArguments: true,
35
+ shell: isWin ? false : true
36
+ });
37
+
38
+ return host;
39
+ }
21
40
  ];
22
41
 
23
42
  if (!options.empty) {
@@ -39,7 +39,7 @@
39
39
  "dxversion": {
40
40
  "type": "string",
41
41
  "description": "The DevExtreme version",
42
- "default": "^20.2.4"
42
+ "default": "^22.1.3"
43
43
  },
44
44
  "globalNgCliVersion": {
45
45
  "type":"string",
@@ -10,9 +10,9 @@ A schematic that adds a DevExtreme layout to a DevExtreme Angular application.
10
10
  - project (string)
11
11
  The name of a project to modify
12
12
 
13
- - resolveConflicts (string)
13
+ - resolve-conflicts (string)
14
14
  Specifies whether to override the existing app component or create a component with another name
15
15
 
16
- - skipInstall (boolean)
16
+ - skip-install (boolean)
17
17
  Specifies whether to skip the dependency package installation
18
18
 
@@ -2,21 +2,6 @@
2
2
  width: 100%;
3
3
  }
4
4
 
5
- .container {
6
- height: 100%;
7
- flex-direction: column;
8
- display: flex;
9
- }
10
-
11
- .layout-body {
12
- flex: 1;
13
- min-height: 0;
14
- }
15
-
16
- .content {
17
- flex-grow: 1;
18
- }
19
-
20
5
  #navigation-header {
21
6
  @import "../../../themes/generated/variables.additional.scss";
22
7
  background-color: $base-accent;
@@ -29,7 +14,7 @@
29
14
  :host-context(.screen-x-small) & {
30
15
  padding-left: 20px;
31
16
  }
32
-
17
+
33
18
  :host-context(.dx-theme-generic) & {
34
19
  padding-top: 10px;
35
20
  padding-bottom: 10px;
@@ -8,12 +8,3 @@
8
8
  .layout-header {
9
9
  z-index: 1501;
10
10
  }
11
-
12
- .layout-body {
13
- flex: 1;
14
- min-height: 0;
15
- }
16
-
17
- .content {
18
- flex-grow: 1;
19
- }
@@ -10,6 +10,7 @@ html, body {
10
10
 
11
11
  .content {
12
12
  line-height: 1.5;
13
+ flex-grow: 1;
13
14
 
14
15
  h2 {
15
16
  font-size: 30px;
@@ -18,6 +19,17 @@ html, body {
18
19
  }
19
20
  }
20
21
 
22
+ .container {
23
+ height: 100%;
24
+ flex-direction: column;
25
+ display: flex;
26
+ }
27
+
28
+ .layout-body {
29
+ flex: 1;
30
+ min-height: 0;
31
+ }
32
+
21
33
  .side-nav-outer-toolbar .dx-drawer {
22
34
  height: calc(100% - 56px)
23
35
  }
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const schematics_1 = require("@angular-devkit/schematics");
13
13
  const core_1 = require("@angular-devkit/core");
14
14
  const path_1 = require("path");
15
+ const semver_1 = require("semver");
15
16
  const project_1 = require("../utility/project");
16
17
  const string_1 = require("../utility/string");
17
18
  const styles_1 = require("../utility/styles");
@@ -41,7 +42,7 @@ function addScriptSafe(scripts, name, value) {
41
42
  }
42
43
  function addBuildThemeScript() {
43
44
  return (host) => {
44
- modify_json_file_1.modifyJSONFile(host, './package.json', config => {
45
+ (0, modify_json_file_1.modifyJSONFile)(host, './package.json', config => {
45
46
  const scripts = config['scripts'];
46
47
  addScriptSafe(scripts, 'build-themes', 'devextreme build');
47
48
  addScriptSafe(scripts, 'postinstall', 'npm run build-themes');
@@ -52,23 +53,23 @@ function addBuildThemeScript() {
52
53
  }
53
54
  function addCustomThemeStyles(host, options, sourcePath = '') {
54
55
  return __awaiter(this, void 0, void 0, function* () {
55
- const projectName = yield project_1.getProjectName(host, options.project);
56
- modify_json_file_1.modifyJSONFile(host, './angular.json', config => {
56
+ const projectName = yield (0, project_1.getProjectName)(host, options.project);
57
+ (0, modify_json_file_1.modifyJSONFile)(host, './angular.json', config => {
57
58
  const stylesList = [
58
59
  `${sourcePath}/dx-styles.scss`,
59
60
  `${sourcePath}/themes/generated/theme.additional.css`,
60
61
  `${sourcePath}/themes/generated/theme.base.css`,
61
62
  'node_modules/devextreme/dist/css/dx.common.css'
62
63
  ];
63
- return styles_1.addStylesToApp(projectName, config, stylesList);
64
+ return (0, styles_1.addStylesToApp)(projectName, config, stylesList);
64
65
  });
65
66
  return host;
66
67
  });
67
68
  }
68
69
  function updateBudgets(host, options) {
69
70
  return __awaiter(this, void 0, void 0, function* () {
70
- const projectName = yield project_1.getProjectName(host, options.project);
71
- modify_json_file_1.modifyJSONFile(host, './angular.json', config => {
71
+ const projectName = yield (0, project_1.getProjectName)(host, options.project);
72
+ (0, modify_json_file_1.modifyJSONFile)(host, './angular.json', config => {
72
73
  const budgets = config.projects[projectName].architect.build.configurations.production.budgets;
73
74
  const budget = budgets.find((item) => item.type === 'initial');
74
75
  if (budget) {
@@ -82,7 +83,7 @@ function updateBudgets(host, options) {
82
83
  }
83
84
  function addViewportToBody(sourcePath = '') {
84
85
  return (host) => {
85
- const indexPath = path_1.join(sourcePath, 'index.html');
86
+ const indexPath = (0, path_1.join)(sourcePath, 'index.html');
86
87
  let indexContent = host.read(indexPath).toString();
87
88
  indexContent = indexContent.replace(/<body>/, '<body class="dx-viewport">');
88
89
  host.overwrite(indexPath, indexContent);
@@ -91,24 +92,24 @@ function addViewportToBody(sourcePath = '') {
91
92
  }
92
93
  function modifyFileRule(path, callback) {
93
94
  return (host) => {
94
- const source = source_1.getSourceFile(host, path);
95
+ const source = (0, source_1.getSourceFile)(host, path);
95
96
  if (!source) {
96
97
  return host;
97
98
  }
98
99
  const changes = callback(source);
99
- return change_1.applyChanges(host, changes, path);
100
+ return (0, change_1.applyChanges)(host, changes, path);
100
101
  };
101
102
  }
102
103
  function updateAppModule(host, sourcePath) {
103
104
  const appModulePath = sourcePath + 'app.module.ts';
104
105
  const importSetter = (importName, path) => {
105
106
  return (source) => {
106
- return ast_utils_1.addImportToModule(source, appModulePath, importName, path);
107
+ return (0, ast_utils_1.addImportToModule)(source, appModulePath, importName, path);
107
108
  };
108
109
  };
109
110
  const providerSetter = (importName, path) => {
110
111
  return (source) => {
111
- return ast_utils_1.addProviderToModule(source, appModulePath, importName, path);
112
+ return (0, ast_utils_1.addProviderToModule)(source, appModulePath, importName, path);
112
113
  };
113
114
  };
114
115
  const rules = [
@@ -128,7 +129,7 @@ function updateAppModule(host, sourcePath) {
128
129
  if (!hasRoutingModule(host, sourcePath)) {
129
130
  rules.push(modifyFileRule(appModulePath, importSetter('AppRoutingModule', './app-routing.module')));
130
131
  }
131
- return schematics_1.chain(rules);
132
+ return (0, schematics_1.chain)(rules);
132
133
  }
133
134
  function getComponentName(host, sourcePath) {
134
135
  let name = '';
@@ -148,11 +149,12 @@ function hasRoutingModule(host, sourcePath) {
148
149
  return host.exists(sourcePath + 'app-routing.module.ts');
149
150
  }
150
151
  function addPackagesToDependency(globalNgCliVersion) {
152
+ const version = new semver_1.SemVer(globalNgCliVersion.replace(/\^|\~/g, ''));
151
153
  return (host) => {
152
- dependencies_1.addPackageJsonDependency(host, {
154
+ (0, dependencies_1.addPackageJsonDependency)(host, {
153
155
  type: dependencies_1.NodeDependencyType.Default,
154
156
  name: '@angular/cdk',
155
- version: globalNgCliVersion
157
+ version: `~${version.major}.${version.minor}.0`
156
158
  });
157
159
  return host;
158
160
  };
@@ -160,7 +162,7 @@ function addPackagesToDependency(globalNgCliVersion) {
160
162
  function modifyContentByTemplate(sourcePath = '', templateSourcePath, filePath, templateOptions = {}, modifyContent) {
161
163
  return (host, context) => {
162
164
  const modifyIfExists = (fileEntry) => {
163
- const fileEntryPath = path_1.join(sourcePath, fileEntry.path.toString());
165
+ const fileEntryPath = (0, path_1.join)(sourcePath, fileEntry.path.toString());
164
166
  if (!host.exists(fileEntryPath)) {
165
167
  return fileEntry;
166
168
  }
@@ -177,16 +179,16 @@ function modifyContentByTemplate(sourcePath = '', templateSourcePath, filePath,
177
179
  return null;
178
180
  };
179
181
  const rules = [
180
- schematics_1.filter(path => {
181
- return !filePath || path_1.join('./', path) === path_1.join('./', filePath);
182
+ (0, schematics_1.filter)(path => {
183
+ return !filePath || (0, path_1.join)('./', path) === (0, path_1.join)('./', filePath);
182
184
  }),
183
- schematics_1.template(templateOptions),
184
- schematics_1.forEach(modifyIfExists),
185
- schematics_1.move(sourcePath)
185
+ (0, schematics_1.template)(templateOptions),
186
+ (0, schematics_1.forEach)(modifyIfExists),
187
+ (0, schematics_1.move)(sourcePath)
186
188
  ];
187
- const modifiedSource = schematics_1.apply(schematics_1.url(templateSourcePath), rules);
188
- const resultRule = schematics_1.mergeWith(modifiedSource);
189
- return schematics_1.callRule(resultRule, host, context);
189
+ const modifiedSource = (0, schematics_1.apply)((0, schematics_1.url)(templateSourcePath), rules);
190
+ const resultRule = (0, schematics_1.mergeWith)(modifiedSource);
191
+ return (0, schematics_1.callRule)(resultRule, host, context);
190
192
  };
191
193
  }
192
194
  function updateDevextremeConfig(sourcePath = '') {
@@ -204,28 +206,28 @@ function updateDevextremeConfig(sourcePath = '') {
204
206
  }
205
207
  const modifyRoutingModule = (host, routingModulePath) => {
206
208
  // TODO: Try to use the isolated host to generate the result string
207
- let source = source_1.getSourceFile(host, routingModulePath);
208
- const importChange = ast_utils_1.insertImport(source, routingModulePath, 'LoginFormComponent', './shared/components');
209
- const providerChanges = ast_utils_1.addProviderToModule(source, routingModulePath, 'AuthGuardService', './shared/services');
210
- change_1.applyChanges(host, [importChange, ...providerChanges], routingModulePath);
211
- source = source_1.getSourceFile(host, routingModulePath);
212
- const routes = routing_1.findRoutesInSource(source);
213
- if (!routing_1.hasComponentInRoutes(routes, 'login-form')) {
214
- const loginFormRoute = routing_1.getRoute('login-form');
215
- change_1.insertItemToArray(host, routingModulePath, routes, loginFormRoute);
209
+ let source = (0, source_1.getSourceFile)(host, routingModulePath);
210
+ const importChange = (0, ast_utils_1.insertImport)(source, routingModulePath, 'LoginFormComponent', './shared/components');
211
+ const providerChanges = (0, ast_utils_1.addProviderToModule)(source, routingModulePath, 'AuthGuardService', './shared/services');
212
+ (0, change_1.applyChanges)(host, [importChange, ...providerChanges], routingModulePath);
213
+ source = (0, source_1.getSourceFile)(host, routingModulePath);
214
+ const routes = (0, routing_1.findRoutesInSource)(source);
215
+ if (!(0, routing_1.hasComponentInRoutes)(routes, 'login-form')) {
216
+ const loginFormRoute = (0, routing_1.getRoute)('login-form');
217
+ (0, change_1.insertItemToArray)(host, routingModulePath, routes, loginFormRoute);
216
218
  }
217
219
  };
218
220
  function default_1(options) {
219
221
  return (host) => __awaiter(this, void 0, void 0, function* () {
220
222
  const ngConfig = host.read('./angular.json').toString();
221
- const defaultProjectName = modify_json_file_1.parseJson(ngConfig).defaultProject;
222
- const project = yield project_1.getProjectName(host, options.project);
223
- const workspace = yield workspace_1.getWorkspace(host);
223
+ const defaultProjectName = (0, modify_json_file_1.parseJson)(ngConfig).defaultProject;
224
+ const project = yield (0, project_1.getProjectName)(host, options.project);
225
+ const workspace = yield (0, workspace_1.getWorkspace)(host);
224
226
  const ngProject = workspace.projects.get(project);
225
227
  const prefix = ngProject === null || ngProject === void 0 ? void 0 : ngProject.prefix;
226
- const title = string_1.humanize(project);
227
- const appPath = yield project_1.getApplicationPath(host, project);
228
- const sourcePath = yield project_1.getSourceRootPath(host, project);
228
+ const title = (0, string_1.humanize)(project);
229
+ const appPath = yield (0, project_1.getApplicationPath)(host, project);
230
+ const sourcePath = yield (0, project_1.getSourceRootPath)(host, project);
229
231
  const layout = options.layout;
230
232
  const override = options.resolveConflicts === 'override';
231
233
  const componentName = override ? 'app' : getComponentName(host, appPath);
@@ -239,10 +241,10 @@ function default_1(options) {
239
241
  prefix
240
242
  };
241
243
  const modifyContent = (templateContent, currentContent, filePath) => {
242
- if (path_1.basename(filePath) === 'styles.scss') {
244
+ if ((0, path_1.basename)(filePath) === 'styles.scss') {
243
245
  return `${currentContent}\n${templateContent}`;
244
246
  }
245
- if (path_1.basename(filePath) === 'app-routing.module.ts' && hasRoutingModule(host, appPath)) {
247
+ if ((0, path_1.basename)(filePath) === 'app-routing.module.ts' && hasRoutingModule(host, appPath)) {
246
248
  modifyRoutingModule(host, filePath);
247
249
  return currentContent;
248
250
  }
@@ -271,7 +273,7 @@ function default_1(options) {
271
273
  rules.push(modifyContentByTemplate('./', workspaceFilesSource, 'e2e/src/app.po.ts'));
272
274
  }
273
275
  }
274
- return schematics_1.chain(rules);
276
+ return (0, schematics_1.chain)(rules);
275
277
  });
276
278
  }
277
279
  exports.default = default_1;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAcoC;AAMpC,+CAA+C;AAE/C,+BAAsC;AAEtC,gDAI6B;AAE7B,8CAE2B;AAE3B,8CAE4B;AAE5B,kEAGsC;AAEtC,2EAGkD;AAElD,4DAE0C;AAE1C,8CAAkD;AAElD,8CAG2B;AAE3B,gDAI4B;AAE5B,qEAE+C;AAE/C,qEAAqE;AAGrE,MAAM,kBAAkB,GAAG,aAAa,CAAC;AACzC,MAAM,oBAAo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AyB,EAAE,EAAE;gBAChD,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;YAChD,CAAC,CAAC,CAAC;SACJ;QAED,IAAI,QAAQ,EAAE;YACZ,IAAI,OAAO,KAAK,kBAAkB,EAAE;gBAClC,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;gBACtG,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,oBAAoB,EAAE,mBAAmB,CAAC,CAAC,CAAC;aACtF;SACF;QAED,OAAO,IAAA,kBAAK,EAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAA,CAAC;AACJ,CAAC;AAlED,4BAkEC"}
@@ -16,12 +16,14 @@ import {
16
16
 
17
17
  import {
18
18
  SourceFile
19
- } from 'typescript';
19
+ } from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript';
20
20
 
21
21
  import { strings } from '@angular-devkit/core';
22
22
 
23
23
  import { join, basename } from 'path';
24
24
 
25
+ import { SemVer } from 'semver';
26
+
25
27
  import {
26
28
  getApplicationPath,
27
29
  getSourceRootPath,
@@ -226,11 +228,12 @@ function hasRoutingModule(host: Tree, sourcePath: string) {
226
228
  }
227
229
 
228
230
  function addPackagesToDependency(globalNgCliVersion: string) {
231
+ const version = new SemVer(globalNgCliVersion.replace(/\^|\~/g, ''));
229
232
  return (host: Tree) => {
230
233
  addPackageJsonDependency(host, {
231
234
  type: NodeDependencyType.Default,
232
235
  name: '@angular/cdk',
233
- version: globalNgCliVersion
236
+ version: `~${version.major}.${version.minor}.0`
234
237
  });
235
238
 
236
239
  return host;
@@ -32,7 +32,7 @@ describe('layout', () => {
32
32
  const options = {
33
33
  layout: 'side-nav-outer-toolbar',
34
34
  resolveConflicts: 'override',
35
- globalNgCliVersion: '^8.0.0'
35
+ globalNgCliVersion: '^12.2.0'
36
36
  };
37
37
  const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
38
38
  const schematicRunner = new testing_1.SchematicTestRunner('@schematics/angular', angularSchematicsCollection);
@@ -117,8 +117,8 @@ describe('layout', () => {
117
117
  expect(packageConfig.scripts['postinstall']).toBe('npm run build-themes');
118
118
  }));
119
119
  it('should set static flag', () => __awaiter(void 0, void 0, void 0, function* () {
120
- dependencies_1.removePackageJsonDependency(appTree, '@angular/core');
121
- dependencies_1.addPackageJsonDependency(appTree, {
120
+ (0, dependencies_1.removePackageJsonDependency)(appTree, '@angular/core');
121
+ (0, dependencies_1.addPackageJsonDependency)(appTree, {
122
122
  type: dependencies_1.NodeDependencyType.Default,
123
123
  name: '@angular/core',
124
124
  version: '7.0.0'
@@ -129,7 +129,7 @@ describe('layout', () => {
129
129
  expect(navigationMenu).toContain('@ViewChild(DxTreeViewComponent, { static: true })');
130
130
  }));
131
131
  it('should add npm scripts safely', () => __awaiter(void 0, void 0, void 0, function* () {
132
- modify_json_file_1.modifyJSONFile(appTree, './package.json', config => {
132
+ (0, modify_json_file_1.modifyJSONFile)(appTree, './package.json', config => {
133
133
  const scripts = config['scripts'];
134
134
  scripts['build-themes'] = 'prev value 1';
135
135
  scripts['postinstall'] = 'prev value 2';
@@ -153,7 +153,7 @@ describe('layout', () => {
153
153
  const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
154
154
  const tree = yield runner.runSchematicAsync('add-layout', options, appTree).toPromise();
155
155
  const packageConfig = JSON.parse(tree.readContent('package.json'));
156
- expect(packageConfig.dependencies['@angular/cdk']).toBe('^8.0.0');
156
+ expect(packageConfig.dependencies['@angular/cdk']).toBe('~12.2.0');
157
157
  }));
158
158
  it('should update budgets if updateBudgets option is true', () => __awaiter(void 0, void 0, void 0, function* () {
159
159
  const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
@@ -1 +1 @@
1
- {"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;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,CAAC,CAAC;QAChE,MAAM,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,yDAAyD,CAAC,CAAC;IAC9F,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -31,7 +31,7 @@ describe('layout', () => {
31
31
  const options: any = {
32
32
  layout: 'side-nav-outer-toolbar',
33
33
  resolveConflicts: 'override',
34
- globalNgCliVersion: '^8.0.0'
34
+ globalNgCliVersion: '^12.2.0'
35
35
  };
36
36
 
37
37
  const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
@@ -181,7 +181,7 @@ describe('layout', () => {
181
181
  const tree = await runner.runSchematicAsync('add-layout', options, appTree).toPromise();
182
182
  const packageConfig = JSON.parse(tree.readContent('package.json'));
183
183
 
184
- expect(packageConfig.dependencies['@angular/cdk']).toBe('^8.0.0');
184
+ expect(packageConfig.dependencies['@angular/cdk']).toBe('~12.2.0');
185
185
  });
186
186
 
187
187
  it('should update budgets if updateBudgets option is true', async () => {
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "globalNgCliVersion": {
51
51
  "type":"string",
52
- "default": "^12.0.0"
52
+ "default": "12.2.0"
53
53
  }
54
54
  }
55
55
  }
@@ -63,52 +63,52 @@ const navigations = [
63
63
  ];
64
64
  function addImportsToRoutingModule(isView, routingPath, options) {
65
65
  return (host) => {
66
- const source = source_1.getSourceFile(host, routingPath);
66
+ const source = (0, source_1.getSourceFile)(host, routingPath);
67
67
  if (!source) {
68
68
  return host;
69
69
  }
70
70
  let changes;
71
71
  if (isView) {
72
- changes = ast_utils_1.addDeclarationToModule(source, routingPath, options.componentName, options.relativePath);
72
+ changes = (0, ast_utils_1.addDeclarationToModule)(source, routingPath, options.componentName, options.relativePath);
73
73
  }
74
74
  else {
75
- changes = ast_utils_1.addImportToModule(source, routingPath, options.componentName, options.relativePath);
75
+ changes = (0, ast_utils_1.addImportToModule)(source, routingPath, options.componentName, options.relativePath);
76
76
  }
77
- return change_1.applyChanges(host, changes, routingPath);
77
+ return (0, change_1.applyChanges)(host, changes, routingPath);
78
78
  };
79
79
  }
80
80
  function addDefaultNavigation(rootPath) {
81
81
  return (host) => {
82
82
  const navigationPath = rootPath + 'app-navigation.ts';
83
83
  navigations.forEach((navigation) => {
84
- const navigationSource = source_1.getSourceFile(host, navigationPath);
85
- change_1.insertItemToArray(host, navigationPath, navigationSource, navigation, { location: 'end' });
84
+ const navigationSource = (0, source_1.getSourceFile)(host, navigationPath);
85
+ (0, change_1.insertItemToArray)(host, navigationPath, navigationSource, navigation, { location: 'end' });
86
86
  });
87
87
  return host;
88
88
  };
89
89
  }
90
90
  function default_1(options) {
91
91
  return (host) => __awaiter(this, void 0, void 0, function* () {
92
- const project = yield project_1.getProjectName(host, options.project);
93
- const rootPath = yield project_1.getApplicationPath(host, project);
92
+ const project = yield (0, project_1.getProjectName)(host, options.project);
93
+ const rootPath = yield (0, project_1.getApplicationPath)(host, project);
94
94
  const routingPath = rootPath + 'app-routing.module.ts';
95
95
  const rules = [];
96
- const templateSource = schematics_1.apply(schematics_1.url('./files'), [
97
- schematics_1.template({
98
- project: string_1.humanize(project)
96
+ const templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./files'), [
97
+ (0, schematics_1.template)({
98
+ project: (0, string_1.humanize)(project)
99
99
  }),
100
- schematics_1.move(rootPath)
100
+ (0, schematics_1.move)(rootPath)
101
101
  ]);
102
- rules.push(schematics_1.mergeWith(templateSource));
102
+ rules.push((0, schematics_1.mergeWith)(templateSource));
103
103
  sampleViewOptions.forEach((viewOptions) => {
104
- rules.push(add_view_1.addViewToRouting({ name: viewOptions.name, project, module: 'app-routing' }));
104
+ rules.push((0, add_view_1.addViewToRouting)({ name: viewOptions.name, project, module: 'app-routing' }));
105
105
  rules.push(addImportsToRoutingModule(true, routingPath, viewOptions));
106
106
  });
107
107
  devextremeOptions.forEach((moduleOptions) => {
108
108
  rules.push(addImportsToRoutingModule(false, routingPath, moduleOptions));
109
109
  });
110
110
  rules.push(addDefaultNavigation(rootPath));
111
- return schematics_1.chain(rules);
111
+ return (0, schematics_1.chain)(rules);
112
112
  });
113
113
  }
114
114
  exports.default = default_1;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DASoC;AAEpC,qEAG+C;AAE/C,0CAA+C;AAE/C,gDAG6B;AAE7B,8CAA6C;AAE7C,8CAG4B;AAE5B,8CAAkD;AAElD,MAAM,iBAAiB,GAAG;IACxB;QACE,IAAI,EAAE,MAAM;QACZ,aAAa,EAAE,eAAe;QAC9B,YAAY,EAAE,6BAA6B;KAC5C,EAAE;QACD,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,kBAAkB;QACjC,YAAY,EAAE,mCAAmC;KAClD,EAAE;QACD,IAAI,EAAE,OAAO;QACb,aAAa,EAAE,gBAAgB;QAC/B,YAAY,EAAE,+BAA+B;KAChD;CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG;IACxB;QACE,aAAa,EAAE,kBAAkB;QACjC,YAAY,EAAE,oBAAoB;KACnC,EAAE;QACD,aAAa,EAAE,cAAc;QAC7B,YAAY,EAAE,oBAAoB;KACrC;CAAC,CAAC;AAEH,MAAM,WAAW,GAAG;IAClB;;;;IAIE;IACF;;;;;;;;;;;;;IAaE;CACH,CAAC;AAEF,SAAS,yBAAyB,CAAC,MAAe,EAAE,WAAmB,EAAE,OAAY;IACnF,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,MAAM,GAAG,sBAAa,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAEhD,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,IAAI,CAAC;SACb;QAED,IAAI,OAAO,CAAC;QAEZ,IAAI,MAAM,EAAE;YACV,OAAO,GAAG,kCAAsB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;SACpG;aAAM;YACL,OAAO,G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AACJ,CAAC;AA7BD,4BA6BC"}
@@ -7,7 +7,7 @@ Add a view to a DevExtreme Angular application.
7
7
  - name (string)
8
8
  The view name
9
9
 
10
- - addRoute (Boolean)
10
+ - add-route (Boolean)
11
11
  Specifies whether to register a route for the view
12
12
 
13
13
  - icon (string)
@@ -22,7 +22,7 @@ Add a view to a DevExtreme Angular application.
22
22
  - spec (Boolean)
23
23
  Specifies whether to generate a spec file
24
24
 
25
- - inlineStyle (Boolean)
25
+ - inline-style (Boolean)
26
26
  Specifies whether to define styles in the ts file
27
27
 
28
28
  - prefix (string)
@@ -20,9 +20,9 @@ const project_1 = require("../utility/project");
20
20
  const string_1 = require("../utility/string");
21
21
  function getPathToFile(host, projectName, moduleName) {
22
22
  return __awaiter(this, void 0, void 0, function* () {
23
- const rootPath = yield project_1.getApplicationPath(host, projectName);
23
+ const rootPath = yield (0, project_1.getApplicationPath)(host, projectName);
24
24
  try {
25
- return find_module_1.findModuleFromOptions(host, { name: moduleName, path: rootPath, module: moduleName });
25
+ return (0, find_module_1.findModuleFromOptions)(host, { name: moduleName, path: rootPath, module: moduleName });
26
26
  }
27
27
  catch (error) {
28
28
  return;
@@ -36,31 +36,31 @@ function addViewToNavigation(options) {
36
36
  if (!navigationFilePath) {
37
37
  return;
38
38
  }
39
- const source = source_1.getSourceFile(host, navigationFilePath);
39
+ const source = (0, source_1.getSourceFile)(host, navigationFilePath);
40
40
  const pagePath = core_1.strings.dasherize(options.name);
41
- const name = core_1.strings.dasherize(core_1.basename(core_1.normalize(options.name)));
42
- const title = string_1.humanize(name);
41
+ const name = core_1.strings.dasherize((0, core_1.basename)((0, core_1.normalize)(options.name)));
42
+ const title = (0, string_1.humanize)(name);
43
43
  const navigationItem = ` {
44
44
  text: '${title}',
45
45
  path: '/${pagePath}',
46
46
  icon: '${options.icon}'
47
47
  }`;
48
- change_1.insertItemToArray(host, navigationFilePath, source, navigationItem, { location: 'end' });
48
+ (0, change_1.insertItemToArray)(host, navigationFilePath, source, navigationItem, { location: 'end' });
49
49
  return host;
50
50
  });
51
51
  }
52
52
  function addRedirectRoute(host, routingModulePath, page) {
53
- const source = source_1.getSourceFile(host, routingModulePath);
53
+ const source = (0, source_1.getSourceFile)(host, routingModulePath);
54
54
  const content = source.getText();
55
55
  if (content.match(/path:\s*'\*\*'/g)) {
56
56
  return;
57
57
  }
58
- const routes = routing_1.findRoutesInSource(source);
58
+ const routes = (0, routing_1.findRoutesInSource)(source);
59
59
  const redirectRoute = ` {
60
60
  path: '**',
61
61
  redirectTo: '${core_1.strings.dasherize(page)}'
62
62
  }`;
63
- change_1.insertItemToArray(host, routingModulePath, routes, redirectRoute, { location: 'end' });
63
+ (0, change_1.insertItemToArray)(host, routingModulePath, routes, redirectRoute, { location: 'end' });
64
64
  }
65
65
  function addViewToRouting(options) {
66
66
  return (host) => __awaiter(this, void 0, void 0, function* () {
@@ -69,14 +69,14 @@ function addViewToRouting(options) {
69
69
  throw new schematics_1.SchematicsException('Specified module does not exist.');
70
70
  }
71
71
  addRedirectRoute(host, routingModulePath, options.name);
72
- const source = source_1.getSourceFile(host, routingModulePath);
73
- const routes = routing_1.findRoutesInSource(source);
72
+ const source = (0, source_1.getSourceFile)(host, routingModulePath);
73
+ const routes = (0, routing_1.findRoutesInSource)(source);
74
74
  if (!routes) {
75
75
  throw new schematics_1.SchematicsException('No routes found.');
76
76
  }
77
- if (!routing_1.hasComponentInRoutes(routes, options.name)) {
78
- const route = routing_1.getRoute(options.name);
79
- change_1.insertItemToArray(host, routingModulePath, routes, route);
77
+ if (!(0, routing_1.hasComponentInRoutes)(routes, options.name)) {
78
+ const route = (0, routing_1.getRoute)(options.name);
79
+ (0, change_1.insertItemToArray)(host, routingModulePath, routes, route);
80
80
  }
81
81
  return host;
82
82
  });
@@ -96,10 +96,10 @@ function getModuleName(addRoute, moduleName) {
96
96
  }
97
97
  function addContentToView(options) {
98
98
  return (host) => __awaiter(this, void 0, void 0, function* () {
99
- const name = core_1.strings.dasherize(core_1.basename(core_1.normalize(options.name)));
100
- const path = `${core_1.dirname(options.name)}/${name}`;
101
- const title = string_1.humanize(name);
102
- const componentPath = `/${yield project_1.getApplicationPath(host, options.project)}${path}/${name}.component.html`;
99
+ const name = core_1.strings.dasherize((0, core_1.basename)((0, core_1.normalize)(options.name)));
100
+ const path = `${(0, core_1.dirname)(options.name)}/${name}`;
101
+ const title = (0, string_1.humanize)(name);
102
+ const componentPath = `/${yield (0, project_1.getApplicationPath)(host, options.project)}${path}/${name}.component.html`;
103
103
  if (host.exists(componentPath)) {
104
104
  host.overwrite(componentPath, `<h2 class="content-block">${title}</h2>
105
105
  <div class="content-block">
@@ -113,10 +113,10 @@ function addContentToView(options) {
113
113
  function default_1(options) {
114
114
  return (host) => __awaiter(this, void 0, void 0, function* () {
115
115
  const addRoute = options.addRoute;
116
- const project = yield project_1.getProjectName(host, options);
116
+ const project = yield (0, project_1.getProjectName)(host, options.project);
117
117
  const module = getModuleName(addRoute, options.module);
118
118
  const name = getPathForView(options.name);
119
- const rules = [schematics_1.externalSchematic('@schematics/angular', 'component', {
119
+ const rules = [(0, schematics_1.externalSchematic)('@schematics/angular', 'component', {
120
120
  name,
121
121
  project,
122
122
  module,
@@ -130,7 +130,7 @@ function default_1(options) {
130
130
  rules.push(addViewToRouting({ name, project, module }));
131
131
  rules.push(addViewToNavigation({ name, icon: options.icon, project }));
132
132
  }
133
- return schematics_1.chain(rules);
133
+ return (0, schematics_1.chain)(rules);
134
134
  });
135
135
  }
136
136
  exports.default = default_1;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAMoC;AAEpC,yEAEiD;AAEjD,8CAE2B;AAE3B,gDAI4B;AAE5B,8CAAkD;AAElD,+CAA6E;AAE7E,gDAG4B;AAC5B,8CAA6C;AAE7C,SAAe,aAAa,CAAC,IAAU,EAAE,WAAmB,EAAE,UAAkB;;QAC9E,MAAM,QAAQ,GAAG,MAAM,4BAA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QAE1C,MAAM,KAAK,GAAG,CAAC,IAAA,8BAAiB,EAAC,qBAAqB,EAAE,WAAW,EAAE;gBACjE,IAAI;gBACJ,OAAO;gBACP,MAAM;gBACN,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB,CAAC;YACF,gBAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAQ;SAC3C,CAAC;QAEF,IAAI,QAAQ,EAAE;YACZ,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAQ,CAAC,CAAC;YAC/D,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,CAAQ,CAAC,CAAC;SAC/E;QACD,OAAO,IAAA,kBAAK,EAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAA,CAAC;AACJ,CAAC;AAxBD,4BAwBC"}
@@ -142,7 +142,7 @@ function addContentToView(options: any) {
142
142
  export default function(options: any): Rule {
143
143
  return async (host: Tree) => {
144
144
  const addRoute = options.addRoute;
145
- const project = await getProjectName(host, options);
145
+ const project = await getProjectName(host, options.project);
146
146
  const module = getModuleName(addRoute, options.module);
147
147
  const name = getPathForView(options.name);
148
148
 
@@ -17,33 +17,33 @@ const latest_versions_1 = require("../utility/latest-versions");
17
17
  const modify_json_file_1 = require("../utility/modify-json-file");
18
18
  const project_1 = require("../utility/project");
19
19
  function default_1(options) {
20
- return schematics_1.chain([
20
+ return (0, schematics_1.chain)([
21
21
  (host) => addDevExtremeDependency(host, { dxversion: options.dxversion }),
22
22
  (host) => addDevExtremeCSS(host, { project: options.project }),
23
23
  (host) => reqisterJSZip(host),
24
24
  (_, context) => {
25
25
  context.addTask(new tasks_1.NodePackageInstallTask());
26
- }
26
+ },
27
27
  ]);
28
28
  }
29
29
  exports.default = default_1;
30
30
  function addDevExtremeDependency(host, options) {
31
- dependencies_1.addPackageJsonDependency(host, {
31
+ (0, dependencies_1.addPackageJsonDependency)(host, {
32
32
  type: dependencies_1.NodeDependencyType.Default,
33
33
  name: 'devextreme',
34
34
  version: options.dxversion || latest_versions_1.latestVersions['devextreme']
35
35
  });
36
- dependencies_1.addPackageJsonDependency(host, {
36
+ (0, dependencies_1.addPackageJsonDependency)(host, {
37
37
  type: dependencies_1.NodeDependencyType.Default,
38
38
  name: 'devextreme-angular',
39
39
  version: options.dxversion || latest_versions_1.latestVersions['devextreme-angular']
40
40
  });
41
- dependencies_1.addPackageJsonDependency(host, {
41
+ (0, dependencies_1.addPackageJsonDependency)(host, {
42
42
  type: dependencies_1.NodeDependencyType.Dev,
43
43
  name: 'devextreme-cli',
44
44
  version: latest_versions_1.latestVersions['devextreme-cli']
45
45
  });
46
- dependencies_1.addPackageJsonDependency(host, {
46
+ (0, dependencies_1.addPackageJsonDependency)(host, {
47
47
  type: dependencies_1.NodeDependencyType.Dev,
48
48
  name: 'devextreme-themebuilder',
49
49
  version: options.dxversion || latest_versions_1.latestVersions['devextreme']
@@ -52,15 +52,15 @@ function addDevExtremeDependency(host, options) {
52
52
  }
53
53
  function addDevExtremeCSS(host, options) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
55
- const projectName = yield project_1.getProjectName(host, options.project);
56
- modify_json_file_1.modifyJSONFile(host, './angular.json', config => {
57
- return styles_1.addStylesToApp(projectName, config);
55
+ const projectName = yield (0, project_1.getProjectName)(host, options.project);
56
+ (0, modify_json_file_1.modifyJSONFile)(host, './angular.json', config => {
57
+ return (0, styles_1.addStylesToApp)(projectName, config);
58
58
  });
59
59
  return host;
60
60
  });
61
61
  }
62
62
  function reqisterJSZip(host) {
63
- modify_json_file_1.modifyJSONFile(host, './tsconfig.app.json', config => {
63
+ (0, modify_json_file_1.modifyJSONFile)(host, './tsconfig.app.json', config => {
64
64
  const compilerOptions = config['compilerOptions'];
65
65
  let paths = compilerOptions['paths'];
66
66
  if (!paths) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAKoC;AAEpC,8CAAmD;AAEnD,2EAGkD;AAElD,4DAE0C;AAE1C,gEAA4D;AAC5D,kEAA6D;AAC7D,gDAAoD;AAEpD,mBAAwB,OAAY;IAClC,OAAO,kBAAK,CAAC;QACX,CAAC,IAAU,EAAE,EAAE,CAAC,uBAAuB,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;QAC/E,CAAC,IAAU,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;QACpE,CAAC,IAAU,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;QACnC,CAAC,CAAC,EAAE,OAAyB,EAAE,EAAE;YAC/B,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAChD,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AATD,4BASC;AAED,SAAS,uBAAuB,CAAC,IAAU,EAAE,OAAY;IACvD,uCAAwB,CAAC,IAAI,EAAE;QAC7B,IAAI,EAAE,iCAAkB,CAAC,OAAO;QAChC,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,gCAAc,CAAC,YAAY,CAAC;KAC3D,CAAC,CAAC;IACH,uCAAwB,CAAC,IAAI,EAAE;QAC7B,IAAI,EAAE,iCAAkB,CAAC,OAAO;QAChC,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,gCAAc,CAAC,oBAAoB,CAAC;KACnE,CAAC,CAAC;IACH,uCAAwB,CAAC,IAAI,EAAE;QAC7B,IAAI,EAAE,iCAAkB,CAAC,GAAG;QAC5B,IAAI,EAAE,g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C,GAAG;QAC5B,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,gCAAc,CAAC,YAAY,CAAC;KAC3D,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAe,gBAAgB,CAAC,IAAU,EAAE,OAAY;;QACtD,MAAM,WAAW,GAAG,MAAM,IAAA,wBAAc,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAChE,IAAA,iCAAc,EAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE;YAE9C,OAAO,IAAA,uBAAc,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AAED,SAAS,aAAa,CAAC,IAAU;IAC/B,IAAA,iCAAc,EAAC,IAAI,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE;QACnD,MAAM,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAClD,IAAI,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;QAErC,IAAI,CAAC,KAAK,EAAE;YACV,KAAK,GAAG,EAAE,CAAC;SACZ;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;YACnB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;SAC3D;QAED,eAAe,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;QAEjC,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -9,7 +9,7 @@ import { addStylesToApp } from '../utility/styles';
9
9
 
10
10
  import {
11
11
  NodeDependencyType,
12
- addPackageJsonDependency
12
+ addPackageJsonDependency,
13
13
  } from '@schematics/angular/utility/dependencies';
14
14
 
15
15
  import {
@@ -21,13 +21,14 @@ import { modifyJSONFile } from '../utility/modify-json-file';
21
21
  import { getProjectName } from '../utility/project';
22
22
 
23
23
  export default function(options: any): Rule {
24
+
24
25
  return chain([
25
26
  (host: Tree) => addDevExtremeDependency(host, { dxversion: options.dxversion }),
26
27
  (host: Tree) => addDevExtremeCSS(host, { project: options.project }),
27
28
  (host: Tree) => reqisterJSZip(host),
28
29
  (_, context: SchematicContext) => {
29
30
  context.addTask(new NodePackageInstallTask());
30
- }
31
+ },
31
32
  ]);
32
33
  }
33
34
 
@@ -7,7 +7,7 @@
7
7
  "dxversion": {
8
8
  "type": "string",
9
9
  "description": "The DevExtreme version",
10
- "default": "^21.2.4"
10
+ "default": "^22.1.3"
11
11
  },
12
12
  "project": {
13
13
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  import { Tree } from '@angular-devkit/schematics';
2
2
  import { Change } from '@schematics/angular/utility/change';
3
- import { Node } from 'typescript';
3
+ import { Node } from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript';
4
4
  export declare function applyChanges(host: Tree, changes: Change[], filePath: string): import("@angular-devkit/schematics/src/tree/interface").Tree;
5
5
  export declare function insertItemToArray(host: Tree, filePath: string, node: Node, item: string, options?: {
6
6
  location: 'start' | 'end';
@@ -3,7 +3,7 @@ import { InsertChange, Change } from '@schematics/angular/utility/change';
3
3
 
4
4
  import {
5
5
  Node
6
- } from 'typescript';
6
+ } from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript';
7
7
 
8
8
  const newLine = `
9
9
  `;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.latestVersions = void 0;
4
4
  // TODO: implement
5
5
  exports.latestVersions = {
6
- 'devextreme': '^21.2.4',
7
- 'devextreme-angular': '^21.2.4',
6
+ 'devextreme': '^22.1.3',
7
+ 'devextreme-angular': '^22.1.3',
8
8
  'devextreme-cli': 'latest'
9
9
  };
10
10
  //# sourceMappingURL=latest-versions.js.map
@@ -1,6 +1,6 @@
1
1
  // TODO: implement
2
2
  export const latestVersions = {
3
- 'devextreme': '^21.2.4',
4
- 'devextreme-angular': '^21.2.4',
3
+ 'devextreme': '^22.1.3',
4
+ 'devextreme-angular': '^22.1.3',
5
5
  'devextreme-cli': 'latest'
6
6
  };
@@ -7,7 +7,7 @@ const parseJson = (str) => {
7
7
  exports.parseJson = parseJson;
8
8
  function modifyJSONFile(host, path, callback) {
9
9
  const serializedConfig = host.read(path).toString();
10
- let obj = exports.parseJson(serializedConfig);
10
+ let obj = (0, exports.parseJson)(serializedConfig);
11
11
  obj = callback(obj);
12
12
  host.overwrite(path, `${JSON.stringify(obj, null, 2)}\n`);
13
13
  return host;
@@ -1 +1 @@
1
- {"version":3,"file":"modify-json-file.js","sourceRoot":"","sources":["modify-json-file.ts"],"names":[],"mappings":";;;AAEO,MAAM,SAAS,GAAG,CAAC,GAAW,EAAE,EAAE;IACvC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEF,SAAgB,cAAc,CAAC,IAAU,EAAE,IAAY,EAAE,QAA2B;IAClF,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAE,CAAC,QAAQ,EAAE,CAAC;IACrD,IAAI,GAAG,GAAG,iBAAS,CAAC,gBAAgB,CAAC,CAAC;IAEtC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEpB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAE1D,OAAO,IAAI,CAAC;AACd,CAAC;AATD,wCASC"}
1
+ {"version":3,"file":"modify-json-file.js","sourceRoot":"","sources":["modify-json-file.ts"],"names":[],"mappings":";;;AAEO,MAAM,SAAS,GAAG,CAAC,GAAW,EAAE,EAAE;IACvC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEF,SAAgB,cAAc,CAAC,IAAU,EAAE,IAAY,EAAE,QAA2B;IAClF,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAE,CAAC,QAAQ,EAAE,CAAC;IACrD,IAAI,GAAG,GAAG,IAAA,iBAAS,EAAC,gBAAgB,CAAC,CAAC;IAEtC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEpB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAE1D,OAAO,IAAI,CAAC;AACd,CAAC;AATD,wCASC"}
@@ -14,7 +14,7 @@ const workspace_1 = require("@schematics/angular/utility/workspace");
14
14
  function getProjectName(host, projectName) {
15
15
  return __awaiter(this, void 0, void 0, function* () {
16
16
  const projects = [];
17
- const workspace = yield workspace_1.getWorkspace(host);
17
+ const workspace = yield (0, workspace_1.getWorkspace)(host);
18
18
  /* tslint:disable-next-line:variable-name */
19
19
  workspace.projects.forEach((_v, k) => {
20
20
  projects.push(k);
@@ -32,7 +32,7 @@ function getApplicationPath(host, projectName) {
32
32
  exports.getApplicationPath = getApplicationPath;
33
33
  function getSourceRootPath(host, projectName) {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
- const workspace = yield workspace_1.getWorkspace(host);
35
+ const workspace = yield (0, workspace_1.getWorkspace)(host);
36
36
  const project = workspace.projects.get(projectName);
37
37
  return project && (project.sourceRoot || project.root);
38
38
  });
@@ -40,7 +40,7 @@ function getSourceRootPath(host, projectName) {
40
40
  exports.getSourceRootPath = getSourceRootPath;
41
41
  function getRootPath(host, projectName) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- const workspace = yield workspace_1.getWorkspace(host);
43
+ const workspace = yield (0, workspace_1.getWorkspace)(host);
44
44
  const project = workspace.projects.get(projectName);
45
45
  return project && project.root;
46
46
  });
@@ -1 +1 @@
1
- {"version":3,"file":"project.js","sourceRoot":"","sources":["project.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qEAAqE;AAErE,SAAsB,cAAc,CAAC,IAAU,EAAE,WAAmB;;QAClE,MAAM,QAAQ,GAAa,EAAE,CAAC;QAC9B,MAAM,SAAS,GAAG,MAAM,wBAAY,CAAC,IAAI,CAAC,CAAC;QAC3C,4CAA4C;QAC5C,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE;YACnC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;QAEH,OAAO,WAAW,IAAI,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnF,CAAC;CAAA;AATD,wCASC;AAED,SAAsB,kBAAkB,CAAC,IAAU,EAAE,WAAmB;;QACtE,MAAM,UAAU,GAAG,MAAM,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC9D,OAAO,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC;IACxD,CAAC;CAAA;AAHD,gDAGC;AAED,SAAsB,iBAAiB,CAAC,IAAU,EAAE,WAAmB;;QACrE,MAAM,SAAS,GAAG,MAAM,wBAAY,CAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;CAAA;AAJD,8CAIC;AAED,SAAsB,WAA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,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;CAAA;AAJD,8CAIC;AAED,SAAsB,WAAW,CAAC,IAAU,EAAE,WAAmB;;QAC/D,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IACjC,CAAC;CAAA;AAJD,kCAIC"}
@@ -1,4 +1,4 @@
1
- import { Node, SourceFile } from 'typescript';
1
+ import { Node, SourceFile } from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript';
2
2
  export declare function hasComponentInRoutes(routes: Node, name: string): boolean;
3
3
  export declare function getRoute(name: string): string;
4
4
  export declare function findRoutesInSource(source: SourceFile): Node | undefined;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findRoutesInSource = exports.getRoute = exports.hasComponentInRoutes = void 0;
4
- const typescript_1 = require("typescript");
4
+ const typescript_1 = require("@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript");
5
5
  const core_1 = require("@angular-devkit/core");
6
6
  function getRouteComponentName(pageName) {
7
- return `${core_1.strings.classify(core_1.basename(core_1.normalize(pageName)))}Component`;
7
+ return `${core_1.strings.classify((0, core_1.basename)((0, core_1.normalize)(pageName)))}Component`;
8
8
  }
9
9
  function hasComponentInRoutes(routes, name) {
10
10
  const routesText = routes.getText();
@@ -1 +1 @@
1
- {"version":3,"file":"routing.js","sourceRoot":"","sources":["routing.ts"],"names":[],"mappings":";;;AAAA,2CAIoB;AAEpB,+CAI8B;AAE9B,SAAS,qBAAqB,CAAC,QAAgB;IAC7C,OAAO,GAAG,cAAO,CAAC,QA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ED,SAAgB,oBAAoB,CAAC,MAAY,EAAE,IAAY;IAC7D,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;IACpC,MAAM,aAAa,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAClD,OAAO,UAAU,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AAClD,CAAC;AAJD,oDAIC;AAED,SAAgB,QAAQ,CAAC,IAAY;IACnC,OAAO;aACI,cAAO,CAAC,SAAS,CAAC,IAAI,CAAC;iBACnB,qBAAqB,CAAC,IAAI,CAAC;;IAExC,CAAC;AACL,CAAC;AAND,4BAMC;AAED,SAAS,eAAe,CAAC,IAAU,EAAE,IAAY;IAC7C,OAAO,IAAI,CAAC,IAAI,KAAK,uBAAU,CAAC,iBAAiB;QAC/C,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AACtC,CAAC;AAEH,SAAgB,kBAAkB,CAAC,MAAkB;IACnD,uCAAuC;IACvC,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE,EAAE;QAClC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAC5B,IAAI,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;YAC/B,OAAO,IAAI,CAAC;SACb;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AARD,gDAQC"}
@@ -2,7 +2,7 @@ import {
2
2
  Node,
3
3
  SourceFile,
4
4
  SyntaxKind
5
- } from 'typescript';
5
+ } from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript';
6
6
 
7
7
  import {
8
8
  strings,
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@angular-devkit/schematics';
2
- import { SourceFile } from 'typescript';
2
+ import { SourceFile } from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript';
3
3
  export declare function getSourceFile(host: Tree, filePath: string): SourceFile | undefined;
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getSourceFile = void 0;
4
- const typescript_1 = require("typescript");
4
+ const typescript_1 = require("@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript");
5
5
  function getSourceFile(host, filePath) {
6
6
  const buffer = host.read(filePath);
7
7
  if (!buffer) {
8
8
  return;
9
9
  }
10
10
  const serializedFile = host.read(filePath).toString();
11
- return typescript_1.createSourceFile(filePath, serializedFile, typescript_1.ScriptTarget.Latest, true);
11
+ return (0, typescript_1.createSourceFile)(filePath, serializedFile, typescript_1.ScriptTarget.Latest, true);
12
12
  }
13
13
  exports.getSourceFile = getSourceFile;
14
14
  //# sourceMappingURL=source.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"source.js","sourceRoot":"","sources":["source.ts"],"names":[],"mappings":";;;AACA,2CAIoB;AAEpB,SAAgB,aAAa,CAAC,IAAU,EAAE,QAAgB;IACxD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEnC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO;KACR;IACD,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAE,CAAC,QAAQ,EAAE,CAAC;IACvD,OAAO,6BAAgB,CAAC,QAAQ,EAAE,cAAc,EAAE,yBAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC/E,CAAC;AARD,sCAQC"}
1
+ {"version":3,"file":"source.js","sourceRoot":"","sources":["source.ts"],"names":[],"mappings":";;;AACA,+GAIwF;AAExF,SAAgB,aAAa,CAAC,IAAU,EAAE,QAAgB;IACxD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEnC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO;KACR;IACD,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAE,CAAC,QAAQ,EAAE,CAAC;IACvD,OAAO,IAAA,6BAAgB,EAAC,QAAQ,EAAE,cAAc,EAAE,yBAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC/E,CAAC;AARD,sCAQC"}
@@ -3,7 +3,7 @@ import {
3
3
  createSourceFile,
4
4
  ScriptTarget,
5
5
  SourceFile
6
- } from 'typescript';
6
+ } from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript';
7
7
 
8
8
  export function getSourceFile(host: Tree, filePath: string): SourceFile | undefined {
9
9
  const buffer = host.read(filePath);
@@ -23,7 +23,7 @@ function addStylesToApp(project, config, styles) {
23
23
  styles.forEach((style) => {
24
24
  projectStyles.unshift(style);
25
25
  });
26
- projectBuildOptopns['styles'] = array_1.makeArrayUnique(projectStyles);
26
+ projectBuildOptopns['styles'] = (0, array_1.makeArrayUnique)(projectStyles);
27
27
  return config;
28
28
  }
29
29
  exports.addStylesToApp = addStylesToApp;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["styles.ts"],"names":[],"mappings":";;;AAAA,mCAA0C;AAE1C,SAAS,WAAW,CAAC,aAAyB,EAAE,aAAkB;IAChE,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;QACpC,OAAO,KAAK,KAAK,aAAa,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,aAAa,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,cAAc,CAAC,OAAe,EAAE,MAAW,EAAE,MAAmB;IAC9E,MAAM,mBAAmB,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC;IACzF,MAAM,aAAa,GAAG;QACpB,+CAA+C;QAC/C,gDAAgD;KACjD,CAAC;IACF,IAAI,aAAa,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAElD,IAAI,CAAC,MAAM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