@o3r/schematics 9.1.0-alpha.22 → 9.1.0-alpha.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. package/package.json +5 -5
  2. package/src/utility/index.d.ts +1 -0
  3. package/src/utility/index.d.ts.map +1 -1
  4. package/src/utility/index.js +1 -0
  5. package/src/utility/index.js.map +1 -1
  6. package/src/utility/logo.d.ts +5 -0
  7. package/src/utility/logo.d.ts.map +1 -0
  8. package/src/utility/logo.js +51 -0
  9. package/src/utility/logo.js.map +1 -0
  10. package/index.d.ts +0 -7
  11. package/index.d.ts.map +0 -1
  12. package/index.js +0 -10
  13. package/index.js.map +0 -1
  14. package/interfaces/angular-workspace.d.ts +0 -62
  15. package/interfaces/angular-workspace.d.ts.map +0 -1
  16. package/interfaces/angular-workspace.js +0 -3
  17. package/interfaces/angular-workspace.js.map +0 -1
  18. package/interfaces/index.d.ts +0 -3
  19. package/interfaces/index.d.ts.map +0 -1
  20. package/interfaces/index.js +0 -6
  21. package/interfaces/index.js.map +0 -1
  22. package/interfaces/schematic-option.d.ts +0 -5
  23. package/interfaces/schematic-option.d.ts.map +0 -1
  24. package/interfaces/schematic-option.js +0 -3
  25. package/interfaces/schematic-option.js.map +0 -1
  26. package/modules/index.d.ts +0 -3
  27. package/modules/index.d.ts.map +0 -1
  28. package/modules/index.js +0 -6
  29. package/modules/index.js.map +0 -1
  30. package/modules/modules.constants.d.ts +0 -34
  31. package/modules/modules.constants.d.ts.map +0 -1
  32. package/modules/modules.constants.js +0 -12
  33. package/modules/modules.constants.js.map +0 -1
  34. package/modules/modules.helpers.d.ts +0 -60
  35. package/modules/modules.helpers.d.ts.map +0 -1
  36. package/modules/modules.helpers.js +0 -165
  37. package/modules/modules.helpers.js.map +0 -1
  38. package/public_api.d.ts +0 -2
  39. package/public_api.d.ts.map +0 -1
  40. package/public_api.js +0 -5
  41. package/public_api.js.map +0 -1
  42. package/rule-factories/add-imports/index.d.ts +0 -12
  43. package/rule-factories/add-imports/index.d.ts.map +0 -1
  44. package/rule-factories/add-imports/index.js +0 -26
  45. package/rule-factories/add-imports/index.js.map +0 -1
  46. package/rule-factories/check-packages-peers/index.d.ts +0 -8
  47. package/rule-factories/check-packages-peers/index.d.ts.map +0 -1
  48. package/rule-factories/check-packages-peers/index.js +0 -106
  49. package/rule-factories/check-packages-peers/index.js.map +0 -1
  50. package/rule-factories/eslint-fix/index.d.ts +0 -28
  51. package/rule-factories/eslint-fix/index.d.ts.map +0 -1
  52. package/rule-factories/eslint-fix/index.js +0 -71
  53. package/rule-factories/eslint-fix/index.js.map +0 -1
  54. package/rule-factories/index.d.ts +0 -9
  55. package/rule-factories/index.d.ts.map +0 -1
  56. package/rule-factories/index.js +0 -12
  57. package/rule-factories/index.js.map +0 -1
  58. package/rule-factories/interfaces.d.ts +0 -6
  59. package/rule-factories/interfaces.d.ts.map +0 -1
  60. package/rule-factories/interfaces.js +0 -3
  61. package/rule-factories/interfaces.js.map +0 -1
  62. package/rule-factories/ng-add/index.d.ts +0 -38
  63. package/rule-factories/ng-add/index.d.ts.map +0 -1
  64. package/rule-factories/ng-add/index.js +0 -174
  65. package/rule-factories/ng-add/index.js.map +0 -1
  66. package/rule-factories/remove-packages/index.d.ts +0 -9
  67. package/rule-factories/remove-packages/index.d.ts.map +0 -1
  68. package/rule-factories/remove-packages/index.js +0 -29
  69. package/rule-factories/remove-packages/index.js.map +0 -1
  70. package/rule-factories/update-imports/index.d.ts +0 -5
  71. package/rule-factories/update-imports/index.d.ts.map +0 -1
  72. package/rule-factories/update-imports/index.js +0 -8
  73. package/rule-factories/update-imports/index.js.map +0 -1
  74. package/rule-factories/update-imports/list-of-vars.d.ts +0 -15
  75. package/rule-factories/update-imports/list-of-vars.d.ts.map +0 -1
  76. package/rule-factories/update-imports/list-of-vars.js +0 -44
  77. package/rule-factories/update-imports/list-of-vars.js.map +0 -1
  78. package/rule-factories/update-imports/update-imports-with-scope.d.ts +0 -12
  79. package/rule-factories/update-imports/update-imports-with-scope.d.ts.map +0 -1
  80. package/rule-factories/update-imports/update-imports-with-scope.js +0 -34
  81. package/rule-factories/update-imports/update-imports-with-scope.js.map +0 -1
  82. package/rule-factories/update-imports/update-ts-imports.d.ts +0 -11
  83. package/rule-factories/update-imports/update-ts-imports.d.ts.map +0 -1
  84. package/rule-factories/update-imports/update-ts-imports.js +0 -32
  85. package/rule-factories/update-imports/update-ts-imports.js.map +0 -1
  86. package/rule-factories/update-imports/v7-to-v8-map-object.d.ts +0 -8
  87. package/rule-factories/update-imports/v7-to-v8-map-object.d.ts.map +0 -1
  88. package/rule-factories/update-imports/v7-to-v8-map-object.js +0 -2049
  89. package/rule-factories/update-imports/v7-to-v8-map-object.js.map +0 -1
  90. package/rule-factories/vscode-extensions/index.d.ts +0 -8
  91. package/rule-factories/vscode-extensions/index.d.ts.map +0 -1
  92. package/rule-factories/vscode-extensions/index.js +0 -26
  93. package/rule-factories/vscode-extensions/index.js.map +0 -1
  94. package/rules/index.d.ts +0 -2
  95. package/rules/index.d.ts.map +0 -1
  96. package/rules/index.js +0 -5
  97. package/rules/index.js.map +0 -1
  98. package/rules/install.d.ts +0 -9
  99. package/rules/install.d.ts.map +0 -1
  100. package/rules/install.js +0 -21
  101. package/rules/install.js.map +0 -1
  102. package/schematics/ng-add/index.js.map +0 -1
  103. package/schematics/ng-add/schema.js.map +0 -1
  104. package/tasks/eslint/index.d.ts +0 -10
  105. package/tasks/eslint/index.d.ts.map +0 -1
  106. package/tasks/eslint/index.js +0 -29
  107. package/tasks/eslint/index.js.map +0 -1
  108. package/tasks/index.d.ts +0 -5
  109. package/tasks/index.d.ts.map +0 -1
  110. package/tasks/index.js +0 -8
  111. package/tasks/index.js.map +0 -1
  112. package/tasks/link/index.d.ts +0 -10
  113. package/tasks/link/index.d.ts.map +0 -1
  114. package/tasks/link/index.js +0 -26
  115. package/tasks/link/index.js.map +0 -1
  116. package/tasks/ng-add/index.d.ts +0 -30
  117. package/tasks/ng-add/index.d.ts.map +0 -1
  118. package/tasks/ng-add/index.js +0 -30
  119. package/tasks/ng-add/index.js.map +0 -1
  120. package/tasks/package-manager/add-dev-dependency.d.ts +0 -24
  121. package/tasks/package-manager/add-dev-dependency.d.ts.map +0 -1
  122. package/tasks/package-manager/add-dev-dependency.js +0 -34
  123. package/tasks/package-manager/add-dev-dependency.js.map +0 -1
  124. package/tasks/package-manager/index.d.ts +0 -4
  125. package/tasks/package-manager/index.d.ts.map +0 -1
  126. package/tasks/package-manager/index.js +0 -7
  127. package/tasks/package-manager/index.js.map +0 -1
  128. package/tasks/package-manager/interfaces.d.ts +0 -14
  129. package/tasks/package-manager/interfaces.d.ts.map +0 -1
  130. package/tasks/package-manager/interfaces.js +0 -3
  131. package/tasks/package-manager/interfaces.js.map +0 -1
  132. package/tasks/package-manager/npm-install.d.ts +0 -24
  133. package/tasks/package-manager/npm-install.d.ts.map +0 -1
  134. package/tasks/package-manager/npm-install.js +0 -35
  135. package/tasks/package-manager/npm-install.js.map +0 -1
  136. package/utility/ast.d.ts +0 -142
  137. package/utility/ast.d.ts.map +0 -1
  138. package/utility/ast.js +0 -325
  139. package/utility/ast.js.map +0 -1
  140. package/utility/collection.d.ts +0 -10
  141. package/utility/collection.d.ts.map +0 -1
  142. package/utility/collection.js +0 -20
  143. package/utility/collection.js.map +0 -1
  144. package/utility/component.d.ts +0 -46
  145. package/utility/component.d.ts.map +0 -1
  146. package/utility/component.js +0 -104
  147. package/utility/component.js.map +0 -1
  148. package/utility/dependencies.d.ts +0 -18
  149. package/utility/dependencies.d.ts.map +0 -1
  150. package/utility/dependencies.js +0 -31
  151. package/utility/dependencies.js.map +0 -1
  152. package/utility/file-info.d.ts +0 -23
  153. package/utility/file-info.d.ts.map +0 -1
  154. package/utility/file-info.js +0 -36
  155. package/utility/file-info.js.map +0 -1
  156. package/utility/generation.d.ts +0 -22
  157. package/utility/generation.d.ts.map +0 -1
  158. package/utility/generation.js +0 -67
  159. package/utility/generation.js.map +0 -1
  160. package/utility/gitignore.d.ts +0 -12
  161. package/utility/gitignore.d.ts.map +0 -1
  162. package/utility/gitignore.js +0 -28
  163. package/utility/gitignore.js.map +0 -1
  164. package/utility/index.d.ts +0 -18
  165. package/utility/index.d.ts.map +0 -1
  166. package/utility/index.js +0 -21
  167. package/utility/index.js.map +0 -1
  168. package/utility/loaders.d.ts +0 -122
  169. package/utility/loaders.d.ts.map +0 -1
  170. package/utility/loaders.js +0 -222
  171. package/utility/loaders.js.map +0 -1
  172. package/utility/matching-peers.d.ts +0 -24
  173. package/utility/matching-peers.d.ts.map +0 -1
  174. package/utility/matching-peers.js +0 -41
  175. package/utility/matching-peers.js.map +0 -1
  176. package/utility/modules.d.ts +0 -73
  177. package/utility/modules.d.ts.map +0 -1
  178. package/utility/modules.js +0 -201
  179. package/utility/modules.js.map +0 -1
  180. package/utility/monorepo.d.ts +0 -17
  181. package/utility/monorepo.d.ts.map +0 -1
  182. package/utility/monorepo.js +0 -30
  183. package/utility/monorepo.js.map +0 -1
  184. package/utility/package-manager-runner.d.ts +0 -43
  185. package/utility/package-manager-runner.d.ts.map +0 -1
  186. package/utility/package-manager-runner.js +0 -61
  187. package/utility/package-manager-runner.js.map +0 -1
  188. package/utility/package-version.d.ts +0 -17
  189. package/utility/package-version.d.ts.map +0 -1
  190. package/utility/package-version.js +0 -34
  191. package/utility/package-version.js.map +0 -1
  192. package/utility/routes.d.ts +0 -40
  193. package/utility/routes.d.ts.map +0 -1
  194. package/utility/routes.js +0 -103
  195. package/utility/routes.js.map +0 -1
  196. package/utility/sub-entry.d.ts +0 -18
  197. package/utility/sub-entry.d.ts.map +0 -1
  198. package/utility/sub-entry.js +0 -51
  199. package/utility/sub-entry.js.map +0 -1
  200. package/utility/template-property.helper.d.ts +0 -101
  201. package/utility/template-property.helper.d.ts.map +0 -1
  202. package/utility/template-property.helper.js +0 -175
  203. package/utility/template-property.helper.js.map +0 -1
  204. package/utility/update-imports.d.ts +0 -25
  205. package/utility/update-imports.d.ts.map +0 -1
  206. package/utility/update-imports.js +0 -86
  207. package/utility/update-imports.js.map +0 -1
@@ -1,43 +0,0 @@
1
- import { WorkspaceSchema } from '../interfaces';
2
- import { logging } from '@angular-devkit/core';
3
- /** Support NPM package managers */
4
- export type SupportedPackageManagers = 'npm' | 'yarn';
5
- /** Support NPM package managers */
6
- export type SupportedPackageManagerRunners = `${SupportedPackageManagers} run` | 'yarn';
7
- /** Support NPM package managers */
8
- export type SupportedPackageManagerExecutors = `${SupportedPackageManagers} exec` | 'yarn' | 'npx';
9
- /** Option to determine Package Manager */
10
- export interface PackageManagerOptions {
11
- /** Workspace configuration */
12
- workspaceConfig?: WorkspaceSchema | string | null;
13
- /** Package manager to enforce, will be used if supported */
14
- enforcedNpmManager?: string | null;
15
- /** Logger to use to report call failure (as debug message) */
16
- logger?: logging.LoggerApi;
17
- }
18
- /**
19
- * Determine if the given packager manager is supported
20
- *
21
- * @param name Name of the package manager
22
- */
23
- export declare function isSupportedPackageManager(name?: any): name is SupportedPackageManagers;
24
- /**
25
- * Get package manager used in runs
26
- * Defaults to the package manager setup in process.env if no package manager set in angular.json
27
- *
28
- * @param options Option to determine the final package manager
29
- */
30
- export declare function getPackageManager(options?: PackageManagerOptions): SupportedPackageManagers;
31
- /**
32
- * Get command to run scripts with your package manager
33
- *
34
- * @param workspaceConfig Workspace configuration
35
- */
36
- export declare function getPackageManagerRunner(workspaceConfig?: WorkspaceSchema | string | null): SupportedPackageManagerRunners;
37
- /**
38
- * Get command to execute bin command with your package manager
39
- *
40
- * @param workspaceConfig Workspace configuration
41
- */
42
- export declare function getPackageManagerExecutor(workspaceConfig?: WorkspaceSchema | string | null): SupportedPackageManagerExecutors;
43
- //# sourceMappingURL=package-manager-runner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-manager-runner.d.ts","sourceRoot":"","sources":["../../src/utility/package-manager-runner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,mCAAmC;AACnC,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,MAAM,CAAC;AAEtD,mCAAmC;AACnC,MAAM,MAAM,8BAA8B,GAAG,GAAG,wBAAwB,MAAM,GAAG,MAAM,CAAC;AAExF,mCAAmC;AACnC,MAAM,MAAM,gCAAgC,GAAG,GAAG,wBAAwB,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;AAEnG,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,8BAA8B;IAC9B,eAAe,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;IAElD,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,8DAA8D;IAC9D,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,IAAI,wBAAwB,CAEtF;AAaD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,qBAAqB,4BAWhE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,kCAExF;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,eAAe,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,oCAE1F"}
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPackageManagerExecutor = exports.getPackageManagerRunner = exports.getPackageManager = exports.isSupportedPackageManager = void 0;
4
- const commentJson = require("comment-json");
5
- /**
6
- * Determine if the given packager manager is supported
7
- *
8
- * @param name Name of the package manager
9
- */
10
- function isSupportedPackageManager(name) {
11
- return name === 'yarn' || name === 'npm';
12
- }
13
- exports.isSupportedPackageManager = isSupportedPackageManager;
14
- /**
15
- * Get the Package Manager
16
- *
17
- * @param enforcedNpmManager package manager to enforce
18
- */
19
- function getPackageManagerName(enforcedNpmManager) {
20
- const envCustomPackageManager = isSupportedPackageManager(process.env?.ENFORCED_PACKAGE_MANAGER) && process.env.ENFORCED_PACKAGE_MANAGER;
21
- const envNodePackageManager = process.env?.npm_execpath?.includes('yarn') && 'yarn';
22
- return enforcedNpmManager || envCustomPackageManager || envNodePackageManager || 'npm';
23
- }
24
- /**
25
- * Get package manager used in runs
26
- * Defaults to the package manager setup in process.env if no package manager set in angular.json
27
- *
28
- * @param options Option to determine the final package manager
29
- */
30
- function getPackageManager(options) {
31
- let packageManagerFromWorkspace;
32
- if (options?.workspaceConfig) {
33
- const angularJsonObj = (typeof options?.workspaceConfig === 'string' ? commentJson.parse(options?.workspaceConfig) : options?.workspaceConfig);
34
- if (angularJsonObj?.cli?.packageManager) {
35
- packageManagerFromWorkspace = angularJsonObj.cli.packageManager;
36
- }
37
- }
38
- const enforcedNpmManager = options?.enforcedNpmManager && isSupportedPackageManager(options.enforcedNpmManager) ? options.enforcedNpmManager : undefined;
39
- const workspaceNpmManager = isSupportedPackageManager(packageManagerFromWorkspace) ? packageManagerFromWorkspace : undefined;
40
- return getPackageManagerName(enforcedNpmManager || workspaceNpmManager);
41
- }
42
- exports.getPackageManager = getPackageManager;
43
- /**
44
- * Get command to run scripts with your package manager
45
- *
46
- * @param workspaceConfig Workspace configuration
47
- */
48
- function getPackageManagerRunner(workspaceConfig) {
49
- return getPackageManager({ workspaceConfig }) + ' run';
50
- }
51
- exports.getPackageManagerRunner = getPackageManagerRunner;
52
- /**
53
- * Get command to execute bin command with your package manager
54
- *
55
- * @param workspaceConfig Workspace configuration
56
- */
57
- function getPackageManagerExecutor(workspaceConfig) {
58
- return getPackageManager({ workspaceConfig }) + ' exec';
59
- }
60
- exports.getPackageManagerExecutor = getPackageManagerExecutor;
61
- //# sourceMappingURL=package-manager-runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-manager-runner.js","sourceRoot":"","sources":["../../src/utility/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7H,OAAO,qBAAqB,CAAC,kBAAkB,IAAI,mBAAmB,CAAC,CAAC;AAC1E,CAAC;AAXD,8CAWC;AAED;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,eAAiD;IACvF,OAAO,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC,GAAG,MAAwC,CAAC;AAC3F,CAAC;AAFD,0DAEC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,eAAiD;IACzF,OAAO,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC,GAAG,OAA2C,CAAC;AAC9F,CAAC;AAFD,8DAEC"}
@@ -1,17 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- /**
3
- * Return the version of the given package json path
4
- *
5
- * @param packageJsonPath
6
- */
7
- export declare function getPackageVersion(packageJsonPath: string): string | undefined;
8
- /**
9
- * Find the closest package.json file in parent folders
10
- * Note: It is using file system if no tree provided
11
- *
12
- * @param currentPath current path to inspect
13
- * @param tree current path to inspect
14
- * @returns
15
- */
16
- export declare const findClosestPackageJson: (currentPath: string, tree?: Tree) => string | undefined;
17
- //# sourceMappingURL=package-version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-version.d.ts","sourceRoot":"","sources":["../../src/utility/package-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAMlD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,eAAe,EAAE,MAAM,sBAGxD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,gBAAiB,MAAM,SAAS,IAAI,KAAG,MAAM,GAAG,SAQlF,CAAC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findClosestPackageJson = exports.getPackageVersion = void 0;
4
- const fs = require("node:fs");
5
- const node_fs_1 = require("node:fs");
6
- const node_path_1 = require("node:path");
7
- /**
8
- * Return the version of the given package json path
9
- *
10
- * @param packageJsonPath
11
- */
12
- function getPackageVersion(packageJsonPath) {
13
- const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
14
- return packageJsonContent.version;
15
- }
16
- exports.getPackageVersion = getPackageVersion;
17
- /**
18
- * Find the closest package.json file in parent folders
19
- * Note: It is using file system if no tree provided
20
- *
21
- * @param currentPath current path to inspect
22
- * @param tree current path to inspect
23
- * @returns
24
- */
25
- const findClosestPackageJson = (currentPath, tree) => {
26
- const dir = (tree ? node_path_1.posix.dirname : node_path_1.dirname)(currentPath);
27
- if (dir === currentPath || currentPath === '/') {
28
- return undefined;
29
- }
30
- const packageJsonPath = (tree ? node_path_1.posix.join : node_path_1.join)(dir, 'package.json');
31
- return (tree ? tree.exists : node_fs_1.existsSync)(packageJsonPath) ? packageJsonPath : (0, exports.findClosestPackageJson)(dir, tree);
32
- };
33
- exports.findClosestPackageJson = findClosestPackageJson;
34
- //# sourceMappingURL=package-version.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-version.js","sourceRoot":"","sources":["../../src/utility/package-version.ts"],"names":[],"mappings":";;;AACA,8BAA8B;AAC9B,qCAAqC;AACrC,yCAAiD;AAGjD;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,eAAuB;IACvD,MAAM,kBAAkB,GAAgB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IAC5G,OAAO,kBAAkB,CAAC,OAAO,CAAC;AACpC,CAAC;AAHD,8CAGC;AAED;;;;;;;GAOG;AACI,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAE,IAAW,EAAsB,EAAE;IAC7F,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAK,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAO,CAAC,CAAC,WAAW,CAAC,CAAC;IAC1D,IAAI,GAAG,KAAK,WAAW,IAAI,WAAW,KAAK,GAAG,EAAE;QAC9C,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,eAAe,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAK,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAI,CAAC,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IACxE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAU,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAA,8BAAsB,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAClH,CAAC,CAAC;AARW,QAAA,sBAAsB,0BAQjC"}
@@ -1,40 +0,0 @@
1
- import { SchematicContext, Tree } from '@angular-devkit/schematics';
2
- import * as ts from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript';
3
- /**
4
- * Route definition.
5
- */
6
- export interface Route {
7
- /** Path of the route. */
8
- path: string;
9
- /** Import path of the module to load. */
10
- import: string;
11
- /** Name of the module to load. */
12
- module: string;
13
- }
14
- /**
15
- * Get the Routes variable declaration from the given App Routing Module path.
16
- *
17
- * @param tree File tree
18
- * @param context Context of the rule
19
- * @param appRoutingModulePath Path of the App Routing Module
20
- */
21
- export declare function getRoutesDeclaration(tree: Tree, context: SchematicContext, appRoutingModulePath: string): ts.VariableDeclaration | null;
22
- /**
23
- * Gets the Routes Node array of the App Routing Module of the given path.
24
- *
25
- * @param tree File tree
26
- * @param context Context of the rule
27
- * @param appRoutingModulePath
28
- */
29
- export declare function getRoutesNodeArray(tree: Tree, context: SchematicContext, appRoutingModulePath: string): ts.NodeArray<ts.ObjectLiteralExpression> | null;
30
- /**
31
- * Inserts a route in the App Routing Module of the given path.
32
- *
33
- * @param tree File tree
34
- * @param context Context of the rule
35
- * @param appRoutingModulePath Path of the App Routing Module
36
- * @param route The Route to insert
37
- * @param standalone Whether the page component is standalone
38
- */
39
- export declare function insertRoute(tree: Tree, context: SchematicContext, appRoutingModulePath: string, route: Route, standalone?: boolean): import("@angular-devkit/schematics/src/tree/interface").Tree;
40
- //# sourceMappingURL=routes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/utility/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,MAAM,gFAAgF,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IAEb,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IAEf,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;AAmCD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,GAAG,EAAE,CAAC,mBAAmB,GAAG,IAAI,CAuBvI;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAuBvJ;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAE,OAAe,gEAezI"}
package/utility/routes.js DELETED
@@ -1,103 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.insertRoute = exports.getRoutesNodeArray = exports.getRoutesDeclaration = void 0;
4
- const ts = require("@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript");
5
- /**
6
- * Indicates if the given Route expression has the given path.
7
- *
8
- * @param route Route expression
9
- * @param path Path to test
10
- */
11
- function hasRoutePath(route, path) {
12
- return route.properties.some((property) => property.kind === ts.SyntaxKind.PropertyAssignment &&
13
- property.name.text === 'path' &&
14
- property.initializer.text === path);
15
- }
16
- /**
17
- * Indicates if the given variable declaration is a Routes declaration.
18
- *
19
- * @param declaration Declaration to test
20
- */
21
- function isRoutesDeclaration(declaration) {
22
- if (declaration.type) {
23
- if (declaration.type.kind === ts.SyntaxKind.TypeReference) {
24
- return declaration.type.typeName.getText() === 'Routes';
25
- }
26
- if (declaration.type.kind === ts.SyntaxKind.ArrayType) {
27
- return declaration.type.elementType.typeName.getText() === 'Routes';
28
- }
29
- }
30
- return false;
31
- }
32
- /**
33
- * Get the Routes variable declaration from the given App Routing Module path.
34
- *
35
- * @param tree File tree
36
- * @param context Context of the rule
37
- * @param appRoutingModulePath Path of the App Routing Module
38
- */
39
- function getRoutesDeclaration(tree, context, appRoutingModulePath) {
40
- const buffer = tree.read(appRoutingModulePath);
41
- if (!buffer) {
42
- context.logger.error(`Cannot read ${appRoutingModulePath}`);
43
- return null;
44
- }
45
- const sourceFile = ts.createSourceFile(appRoutingModulePath, buffer.toString(), ts.ScriptTarget.ES2015, true);
46
- return sourceFile.statements
47
- .filter((statement) => statement.kind === ts.SyntaxKind.VariableStatement)
48
- .map((statement) => statement.declarationList.declarations)
49
- .map((declarations) => declarations.filter(isRoutesDeclaration))
50
- .reduce((declaration, declarations) => declarations.length > 0 ? declarations[0] : declaration, null);
51
- }
52
- exports.getRoutesDeclaration = getRoutesDeclaration;
53
- /**
54
- * Gets the Routes Node array of the App Routing Module of the given path.
55
- *
56
- * @param tree File tree
57
- * @param context Context of the rule
58
- * @param appRoutingModulePath
59
- */
60
- function getRoutesNodeArray(tree, context, appRoutingModulePath) {
61
- const routesDeclaration = getRoutesDeclaration(tree, context, appRoutingModulePath);
62
- if (!routesDeclaration) {
63
- context.logger.error('No Routes declaration found');
64
- return null;
65
- }
66
- const rootElements = routesDeclaration.initializer.elements;
67
- const emptyRoute = rootElements.find((route) => hasRoutePath(route, ''));
68
- if (emptyRoute) {
69
- const childrenNode = emptyRoute.properties
70
- .filter((property) => property.kind === ts.SyntaxKind.PropertyAssignment)
71
- .filter((property) => property.name.text === 'children')
72
- .map((property) => property.initializer);
73
- if (childrenNode[0]) {
74
- return childrenNode[0].elements;
75
- }
76
- }
77
- return rootElements;
78
- }
79
- exports.getRoutesNodeArray = getRoutesNodeArray;
80
- /**
81
- * Inserts a route in the App Routing Module of the given path.
82
- *
83
- * @param tree File tree
84
- * @param context Context of the rule
85
- * @param appRoutingModulePath Path of the App Routing Module
86
- * @param route The Route to insert
87
- * @param standalone Whether the page component is standalone
88
- */
89
- function insertRoute(tree, context, appRoutingModulePath, route, standalone = false) {
90
- const routes = getRoutesNodeArray(tree, context, appRoutingModulePath);
91
- if (routes) {
92
- const noStarRoutes = routes.filter((r) => !hasRoutePath(r, '**'));
93
- const index = noStarRoutes.length >= 1 ? noStarRoutes[noStarRoutes.length - 1].end : routes.end;
94
- const routeString = `{path: '${route.path}', load${standalone ? 'Component' : 'Children'}: () => import('${route.import}').then((m) => m.${route.module})}`;
95
- const content = noStarRoutes.length >= 1 ? `,\n${routeString}` : routeString;
96
- const recorder = tree.beginUpdate(appRoutingModulePath);
97
- recorder.insertLeft(index, content);
98
- tree.commitUpdate(recorder);
99
- }
100
- return tree;
101
- }
102
- exports.insertRoute = insertRoute;
103
- //# sourceMappingURL=routes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/utility/routes.ts"],"names":[],"mappings":";;;AACA,qGAAqG;AAgBrG;;;;;GAKG;AACH,SAAS,YAAY,CAAC,KAAiC,EAAE,IAAY;IACnE,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACxC,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,kBAAkB;QACjD,QAAQ,CAA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,CAAC,QAAoD,CAAC;SAC7E;KACF;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAvBD,gDAuBC;AAED;;;;;;;;GAQG;AACH,SAAgB,WAAW,CAAC,IAAU,EAAE,OAAyB,EAAE,oBAA4B,EAAE,KAAY,EAAE,aAAsB,KAAK;IACxI,MAAM,MAAM,GAAG,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC;IAEvE,IAAI,MAAM,EAAE;QACV,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;QAClE,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;QAChG,MAAM,WAAW,GAAG,WAAW,KAAK,CAAC,IAAI,UAAU,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,mBAAmB,KAAK,CAAC,MAAM,oBAAoB,KAAK,CAAC,MAAM,IAAI,CAAC;QAC5J,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,WAAW,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC;QAE7E,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QACxD,QAAQ,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;KAC7B;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAfD,kCAeC"}
@@ -1,18 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- /**
3
- * If ng-package.json is found under the /src/ folder of the module, it means sub entry points mechanism is implemented
4
- *
5
- * @param tree tree
6
- * @param destination the destination path
7
- */
8
- export declare function moduleHasSubEntryPoints(tree: Tree, destination: string): boolean;
9
- /**
10
- * Checks if exists and returns the 'store' project from angular.json.
11
- * Otherwise, it returns the default project if exists, if not it returns the first project
12
- *
13
- * @param tree tree
14
- * @param destination the destination path
15
- * @param entityName the entity name
16
- */
17
- export declare function writeSubEntryPointPackageJson(tree: Tree, destination: string, entityName: string): void;
18
- //# sourceMappingURL=sub-entry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sub-entry.d.ts","sourceRoot":"","sources":["../../src/utility/sub-entry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGlD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,WAEtE;AACD;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QA2BhG"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.writeSubEntryPointPackageJson = exports.moduleHasSubEntryPoints = void 0;
4
- const path = require("node:path");
5
- /**
6
- * If ng-package.json is found under the /src/ folder of the module, it means sub entry points mechanism is implemented
7
- *
8
- * @param tree tree
9
- * @param destination the destination path
10
- */
11
- function moduleHasSubEntryPoints(tree, destination) {
12
- return tree.exists(path.join(destination, 'ng-package.json'));
13
- }
14
- exports.moduleHasSubEntryPoints = moduleHasSubEntryPoints;
15
- /**
16
- * Checks if exists and returns the 'store' project from angular.json.
17
- * Otherwise, it returns the default project if exists, if not it returns the first project
18
- *
19
- * @param tree tree
20
- * @param destination the destination path
21
- * @param entityName the entity name
22
- */
23
- function writeSubEntryPointPackageJson(tree, destination, entityName) {
24
- if (!tree.exists(path.join(destination, 'package.json'))) {
25
- const ngPackagerPath = path.join(destination, 'ng-package.json');
26
- const ngPackagerObj = tree.exists(ngPackagerPath) && JSON.parse(tree.read(ngPackagerPath).toString());
27
- const umdModuleIds = ngPackagerObj?.lib?.umdModuleIds || {
28
- '@otter/core': 'otter-core',
29
- '@otter/common': 'otter-common',
30
- '@dapi/sdk': 'dapi-sdk',
31
- '@dapi/sdk-core': 'dapi-sdk-core',
32
- '@ngrx/store': 'ngrx-store',
33
- '@ngrx/effects': 'ngrx-effects',
34
- '@ngrx/entity': 'ngrx-entity',
35
- '@ngrx/router-store': 'ngrx-router-store',
36
- '@dapi/sdk/helpers': 'dapi-sdk-helpers'
37
- };
38
- const packageJson = {
39
- ngPackage: {
40
- dest: './',
41
- lib: {
42
- entryFile: 'index.ts',
43
- umdModuleIds
44
- }
45
- }
46
- };
47
- tree.create(path.join(destination, entityName, 'package.json'), JSON.stringify(packageJson, null, 2));
48
- }
49
- }
50
- exports.writeSubEntryPointPackageJson = writeSubEntryPointPackageJson;
51
- //# sourceMappingURL=sub-entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sub-entry.js","sourceRoot":"","sources":["../../src/utility/sub-entry.ts"],"names":[],"mappings":";;;AAEA,kCAAkC;AAElC;;;;;GAKG;AACH,SAAgB,uBAAuB,CAAC,IAAU,EAAE,WAAmB;IACrE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAChE,CAAC;AAFD,0DAEC;AACD;;;;;;;GAOG;AACH,SAAgB,6BAA6B,CAAC,IAAU,EAAE,WAAmB,EAAE,UAAkB;IAC/F,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,EAAE;QACxD,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;QACjE,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEvG,MAAM,YAAY,GAAG,aAAa,EAAE,GAAG,EAAE,YAAY,IAAI;YACvD,aAAa,EAAE,YAAY;YAC3B,eAAe,EAAE,cAAc;YAC/B,WAAW,EAAE,UAAU;YACvB,gBAAgB,EAAE,eAAe;YACjC,aAAa,EAAE,YAAY;YAC3B,eAAe,EAAE,cAAc;YAC/B,cAAc,EAAE,aAAa;YAC7B,oBAAoB,EAAE,mBAAmB;YACzC,mBAAmB,EAAE,kBAAkB;SACxC,CAAC;QACF,MAAM,WAAW,GAAG;YAClB,SAAS,EAAE;gBACT,IAAI,EAAE,IAAI;gBACV,GAAG,EAAE;oBACH,SAAS,EAAE,UAAU;oBACrB,YAAY;iBACb;aACF;SACF,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;KACvG;AACH,CAAC;AA3BD,sEA2BC"}
@@ -1,101 +0,0 @@
1
- /**
2
- * Returns the component name as the last element of the provided component name path
3
- *
4
- * @param componentName
5
- */
6
- export declare function getInputComponentName(componentName: string): string;
7
- /**
8
- * returns the component folder name
9
- *
10
- * @param componentName
11
- */
12
- export declare function getComponentFolderName(componentName: string): string;
13
- /**
14
- * Returns the component file name
15
- *
16
- * @param componentName
17
- * @param componentStructureDef
18
- */
19
- export declare function getComponentFileName(componentName: string, componentStructureDef: string): string;
20
- /**
21
- * Returns the component selector without suffix
22
- *
23
- * @param componentName
24
- * @param prefix
25
- */
26
- export declare function getComponentSelectorWithoutSuffix(componentName: string, prefix: string | null): string;
27
- /**
28
- * Returns the component module name (e.g. AirOfferModule)
29
- *
30
- * @param componentName
31
- * @param componentStructureDef
32
- */
33
- export declare function getComponentModuleName(componentName: string, componentStructureDef: string): string;
34
- /**
35
- * Returns the component analytics name (e.g. AirOfferAnalytics)
36
- *
37
- * @param componentName
38
- * @param componentStructureDef
39
- */
40
- export declare function getComponentAnalyticsName(componentName: string, componentStructureDef: string): string;
41
- /**
42
- * Returns the component name (e.g. AirOfferComponent)
43
- *
44
- * @param componentName
45
- * @param componentStructureDef
46
- */
47
- export declare function getComponentName(componentName: string, componentStructureDef: string): string;
48
- /**
49
- * Returns the component block name (e.g. AirOffer)
50
- *
51
- * @param componentName
52
- */
53
- export declare function getComponentBlockName(componentName: string): string;
54
- /**
55
- * Return the component in kebab-case (e.g. air-offer)
56
- *
57
- * @param blockName
58
- */
59
- export declare function getKebabCaseBlockName(blockName: string): string;
60
- /**
61
- * Returns the component config name (e.g. AirOfferConfig)
62
- *
63
- * @param componentName
64
- * @param componentStructureDef
65
- */
66
- export declare function getComponentConfigName(componentName: string, componentStructureDef: string): string;
67
- /**
68
- * Returns the component translation name (e.g. AirOfferTranslation)
69
- *
70
- * @param componentName
71
- * @param componentStructureDef
72
- */
73
- export declare function getComponentTranslationName(componentName: string, componentStructureDef: string): string;
74
- /**
75
- * Returns the component context name (e.g. AirOfferContext)
76
- *
77
- * @param componentName
78
- * @param componentStructureDef
79
- */
80
- export declare function getComponentContextName(componentName: string, componentStructureDef: string): string;
81
- /**
82
- * Returns the component fixture name (e.g. AirOfferFixture)
83
- *
84
- * @param componentName
85
- * @param componentStructureDef
86
- */
87
- export declare function getComponentFixtureName(componentName: string, componentStructureDef: string): string;
88
- /**
89
- * Returns the component config key name (e.g. AIR_OFFER_CONT or AIR_OFFER_PRES)
90
- *
91
- * @param componentName
92
- * @param componentStructureDef
93
- */
94
- export declare function getComponentConfigKey(componentName: string, componentStructureDef: string): string;
95
- /**
96
- * Return the library name from path in a monorepos
97
- *
98
- * @param path
99
- */
100
- export declare function getLibraryNameFromPath(path: string | null | undefined): string | null;
101
- //# sourceMappingURL=template-property.helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template-property.helper.d.ts","sourceRoot":"","sources":["../../src/utility/template-property.helper.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAGnE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAGjG;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,UAG7F;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG1F;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG7F;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAGpF;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,UAG1D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,UAEtD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG1F;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG/F;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG3F;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,aA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