@abp/ng.schematics 10.5.0-rc.4 → 10.6.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/commands/ai-config/index.d.ts +3 -3
  2. package/commands/ai-config/index.js +88 -88
  3. package/commands/ai-config/index.js.map +1 -1
  4. package/commands/ai-config/model.d.ts +10 -10
  5. package/commands/ai-config/model.js +2 -2
  6. package/commands/api/files-service/proxy/__namespace@dir__/__name@kebab__.service.ts.template +6 -4
  7. package/commands/api/index.d.ts +2 -2
  8. package/commands/api/index.js +139 -138
  9. package/commands/api/index.js.map +1 -1
  10. package/commands/change-theme/index.d.ts +28 -28
  11. package/commands/change-theme/index.js +474 -473
  12. package/commands/change-theme/index.js.map +1 -1
  13. package/commands/change-theme/model.d.ts +5 -5
  14. package/commands/change-theme/model.js +2 -2
  15. package/commands/change-theme/style-map.d.ts +16 -16
  16. package/commands/change-theme/style-map.js +424 -424
  17. package/commands/change-theme/theme-options.enum.d.ts +6 -6
  18. package/commands/change-theme/theme-options.enum.js +11 -11
  19. package/commands/change-theme/theme-options.enum.js.map +1 -1
  20. package/commands/create-lib/index.d.ts +13 -13
  21. package/commands/create-lib/index.js +298 -298
  22. package/commands/create-lib/index.js.map +1 -1
  23. package/commands/create-lib/models/generate-lib-schema.d.ts +20 -20
  24. package/commands/create-lib/models/generate-lib-schema.js +8 -8
  25. package/commands/create-lib/models/generate-lib-schema.js.map +1 -1
  26. package/commands/create-lib/models/index.d.ts +1 -1
  27. package/commands/create-lib/models/index.js +4 -17
  28. package/commands/create-lib/models/index.js.map +1 -1
  29. package/commands/proxy-add/index.d.ts +2 -2
  30. package/commands/proxy-add/index.js +41 -41
  31. package/commands/proxy-add/index.js.map +1 -1
  32. package/commands/proxy-index/index.d.ts +5 -5
  33. package/commands/proxy-index/index.js +14 -14
  34. package/commands/proxy-index/index.js.map +1 -1
  35. package/commands/proxy-refresh/index.d.ts +3 -3
  36. package/commands/proxy-refresh/index.js +27 -27
  37. package/commands/proxy-refresh/index.js.map +1 -1
  38. package/commands/proxy-remove/index.d.ts +3 -3
  39. package/commands/proxy-remove/index.js +33 -33
  40. package/commands/proxy-remove/index.js.map +1 -1
  41. package/commands/ssr-add/index.d.ts +11 -11
  42. package/commands/ssr-add/index.js +360 -361
  43. package/commands/ssr-add/index.js.map +1 -1
  44. package/commands/ssr-add/server/index.d.ts +10 -10
  45. package/commands/ssr-add/server/index.js +209 -205
  46. package/commands/ssr-add/server/index.js.map +1 -1
  47. package/commands/ssr-add/server/index.ts +6 -2
  48. package/constants/api.d.ts +1 -1
  49. package/constants/api.js +4 -4
  50. package/constants/index.d.ts +4 -4
  51. package/constants/index.js +7 -20
  52. package/constants/index.js.map +1 -1
  53. package/constants/proxy.d.ts +4 -4
  54. package/constants/proxy.js +7 -7
  55. package/constants/symbols.d.ts +1 -1
  56. package/constants/symbols.js +4 -4
  57. package/constants/system-types.d.ts +1 -1
  58. package/constants/system-types.js +29 -29
  59. package/constants/volo.d.ts +5 -5
  60. package/constants/volo.js +34 -34
  61. package/enums/binding-source-id.d.ts +8 -7
  62. package/enums/binding-source-id.js +12 -11
  63. package/enums/binding-source-id.js.map +1 -1
  64. package/enums/exception.d.ts +17 -17
  65. package/enums/exception.js +2 -2
  66. package/enums/import-keyword.d.ts +4 -4
  67. package/enums/import-keyword.js +8 -8
  68. package/enums/import-keyword.js.map +1 -1
  69. package/enums/index.d.ts +5 -5
  70. package/enums/index.js +8 -21
  71. package/enums/index.js.map +1 -1
  72. package/enums/method-modifier.d.ts +6 -6
  73. package/enums/method-modifier.js +10 -10
  74. package/enums/method-modifier.js.map +1 -1
  75. package/enums/service-types.d.ts +6 -6
  76. package/enums/service-types.js +10 -10
  77. package/enums/service-types.js.map +1 -1
  78. package/index.d.ts +3 -3
  79. package/index.js +6 -19
  80. package/index.js.map +1 -1
  81. package/models/api-definition.d.ts +97 -93
  82. package/models/api-definition.js +2 -2
  83. package/models/generate-proxy-schema.d.ts +28 -28
  84. package/models/generate-proxy-schema.js +2 -2
  85. package/models/import.d.ts +11 -11
  86. package/models/import.js +13 -13
  87. package/models/index.d.ts +11 -11
  88. package/models/index.js +14 -27
  89. package/models/index.js.map +1 -1
  90. package/models/method.d.ts +36 -34
  91. package/models/method.js +73 -70
  92. package/models/method.js.map +1 -1
  93. package/models/model.d.ts +48 -48
  94. package/models/model.js +76 -76
  95. package/models/model.js.map +1 -1
  96. package/models/project.d.ts +5 -5
  97. package/models/project.js +2 -2
  98. package/models/proxy-config.d.ts +4 -4
  99. package/models/proxy-config.js +2 -2
  100. package/models/rule.d.ts +2 -2
  101. package/models/rule.js +2 -2
  102. package/models/service.d.ts +21 -21
  103. package/models/service.js +11 -11
  104. package/models/tree.d.ts +1 -1
  105. package/models/tree.js +2 -2
  106. package/models/util.d.ts +7 -7
  107. package/models/util.js +2 -2
  108. package/package.json +6 -6
  109. package/utils/angular/add-declaration-to-ng-module.d.ts +20 -20
  110. package/utils/angular/add-declaration-to-ng-module.js +45 -45
  111. package/utils/angular/add-declaration-to-ng-module.js.map +1 -1
  112. package/utils/angular/ast-utils.d.ts +106 -106
  113. package/utils/angular/ast-utils.js +518 -518
  114. package/utils/angular/ast-utils.js.map +1 -1
  115. package/utils/angular/change.d.ts +68 -68
  116. package/utils/angular/change.js +121 -121
  117. package/utils/angular/change.js.map +1 -1
  118. package/utils/angular/dependencies.d.ts +23 -23
  119. package/utils/angular/dependencies.js +56 -56
  120. package/utils/angular/dependencies.js.map +1 -1
  121. package/utils/angular/dependency.d.ts +96 -96
  122. package/utils/angular/dependency.js +123 -122
  123. package/utils/angular/dependency.js.map +1 -1
  124. package/utils/angular/eol.d.ts +8 -8
  125. package/utils/angular/eol.js +22 -23
  126. package/utils/angular/eol.js.map +1 -1
  127. package/utils/angular/find-module.d.ts +33 -33
  128. package/utils/angular/find-module.js +105 -105
  129. package/utils/angular/find-module.js.map +1 -1
  130. package/utils/angular/generate-from-files.d.ts +19 -19
  131. package/utils/angular/generate-from-files.js +48 -49
  132. package/utils/angular/generate-from-files.js.map +1 -1
  133. package/utils/angular/index.d.ts +15 -15
  134. package/utils/angular/index.js +18 -31
  135. package/utils/angular/index.js.map +1 -1
  136. package/utils/angular/json-file.d.ts +24 -24
  137. package/utils/angular/json-file.js +71 -71
  138. package/utils/angular/json-file.js.map +1 -1
  139. package/utils/angular/latest-versions/index.d.ts +28 -28
  140. package/utils/angular/latest-versions/index.js +31 -31
  141. package/utils/angular/ng-ast-utils.d.ts +12 -12
  142. package/utils/angular/ng-ast-utils.js +79 -79
  143. package/utils/angular/ng-ast-utils.js.map +1 -1
  144. package/utils/angular/parse-name.d.ts +13 -13
  145. package/utils/angular/parse-name.js +19 -20
  146. package/utils/angular/parse-name.js.map +1 -1
  147. package/utils/angular/paths.d.ts +8 -8
  148. package/utils/angular/paths.js +17 -18
  149. package/utils/angular/paths.js.map +1 -1
  150. package/utils/angular/project-targets.d.ts +11 -11
  151. package/utils/angular/project-targets.js +21 -22
  152. package/utils/angular/project-targets.js.map +1 -1
  153. package/utils/angular/standalone/app_component.d.ts +29 -29
  154. package/utils/angular/standalone/app_component.js +107 -107
  155. package/utils/angular/standalone/app_component.js.map +1 -1
  156. package/utils/angular/standalone/app_config.d.ts +23 -23
  157. package/utils/angular/standalone/app_config.js +89 -89
  158. package/utils/angular/standalone/app_config.js.map +1 -1
  159. package/utils/angular/standalone/code_block.d.ts +53 -53
  160. package/utils/angular/standalone/code_block.js +80 -79
  161. package/utils/angular/standalone/code_block.js.map +1 -1
  162. package/utils/angular/standalone/index.d.ts +9 -9
  163. package/utils/angular/standalone/index.js +13 -13
  164. package/utils/angular/standalone/rules.d.ts +45 -45
  165. package/utils/angular/standalone/rules.js +187 -188
  166. package/utils/angular/standalone/rules.js.map +1 -1
  167. package/utils/angular/standalone/util.d.ts +35 -35
  168. package/utils/angular/standalone/util.js +135 -135
  169. package/utils/angular/standalone/util.js.map +1 -1
  170. package/utils/angular/test/create-app-module.d.ts +9 -9
  171. package/utils/angular/test/create-app-module.js +14 -15
  172. package/utils/angular/test/create-app-module.js.map +1 -1
  173. package/utils/angular/test/get-file-content.d.ts +9 -9
  174. package/utils/angular/test/get-file-content.js +17 -18
  175. package/utils/angular/test/get-file-content.js.map +1 -1
  176. package/utils/angular/test/index.d.ts +9 -9
  177. package/utils/angular/test/index.js +12 -25
  178. package/utils/angular/test/index.js.map +1 -1
  179. package/utils/angular/validation.d.ts +10 -10
  180. package/utils/angular/validation.js +28 -28
  181. package/utils/angular/validation.js.map +1 -1
  182. package/utils/angular/workspace-models.d.ts +167 -167
  183. package/utils/angular/workspace-models.js +43 -43
  184. package/utils/angular/workspace-models.js.map +1 -1
  185. package/utils/angular/workspace.d.ts +65 -65
  186. package/utils/angular/workspace.js +135 -135
  187. package/utils/angular/workspace.js.map +1 -1
  188. package/utils/angular-schematic/generate-lib.d.ts +3 -3
  189. package/utils/angular-schematic/generate-lib.js +52 -53
  190. package/utils/angular-schematic/generate-lib.js.map +1 -1
  191. package/utils/angular-schematic/index.d.ts +1 -1
  192. package/utils/angular-schematic/index.js +4 -17
  193. package/utils/angular-schematic/index.js.map +1 -1
  194. package/utils/api.d.ts +2 -2
  195. package/utils/api.js +7 -8
  196. package/utils/api.js.map +1 -1
  197. package/utils/ast.d.ts +5 -5
  198. package/utils/ast.js +28 -28
  199. package/utils/ast.js.map +1 -1
  200. package/utils/barrel.d.ts +4 -4
  201. package/utils/barrel.js +86 -87
  202. package/utils/barrel.js.map +1 -1
  203. package/utils/common.d.ts +11 -11
  204. package/utils/common.js +78 -78
  205. package/utils/common.js.map +1 -1
  206. package/utils/enum.d.ts +18 -18
  207. package/utils/enum.js +39 -40
  208. package/utils/enum.js.map +1 -1
  209. package/utils/file.d.ts +2 -2
  210. package/utils/file.js +8 -9
  211. package/utils/file.js.map +1 -1
  212. package/utils/generics.d.ts +26 -26
  213. package/utils/generics.js +89 -89
  214. package/utils/generics.js.map +1 -1
  215. package/utils/import.d.ts +3 -3
  216. package/utils/import.js +10 -11
  217. package/utils/import.js.map +1 -1
  218. package/utils/index.d.ts +22 -22
  219. package/utils/index.js +25 -38
  220. package/utils/index.js.map +1 -1
  221. package/utils/methods.d.ts +4 -4
  222. package/utils/methods.js +31 -29
  223. package/utils/methods.js.map +1 -1
  224. package/utils/model.d.ts +14 -14
  225. package/utils/model.js +217 -211
  226. package/utils/model.js.map +1 -1
  227. package/utils/namespace.d.ts +1 -1
  228. package/utils/namespace.js +17 -18
  229. package/utils/namespace.js.map +1 -1
  230. package/utils/ng-module.d.ts +46 -46
  231. package/utils/ng-module.js +126 -125
  232. package/utils/ng-module.js.map +1 -1
  233. package/utils/path.d.ts +2 -2
  234. package/utils/path.js +35 -36
  235. package/utils/path.js.map +1 -1
  236. package/utils/rule.d.ts +4 -4
  237. package/utils/rule.js +32 -33
  238. package/utils/rule.js.map +1 -1
  239. package/utils/service.d.ts +8 -8
  240. package/utils/service.js +280 -171
  241. package/utils/service.js.map +1 -1
  242. package/utils/source.d.ts +13 -13
  243. package/utils/source.js +165 -165
  244. package/utils/source.js.map +1 -1
  245. package/utils/standalone.d.ts +59 -59
  246. package/utils/standalone.js +146 -145
  247. package/utils/standalone.js.map +1 -1
  248. package/utils/text.d.ts +10 -10
  249. package/utils/text.js +59 -59
  250. package/utils/text.js.map +1 -1
  251. package/utils/tree.d.ts +14 -14
  252. package/utils/tree.js +83 -83
  253. package/utils/tree.js.map +1 -1
  254. package/utils/type.d.ts +13 -13
  255. package/utils/type.js +112 -113
  256. package/utils/type.js.map +1 -1
  257. package/utils/workspace.d.ts +20 -20
  258. package/utils/workspace.js +113 -114
  259. package/utils/workspace.js.map +1 -1
@@ -1,19 +1,18 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.relativePathToWorkspaceRoot = void 0;
11
- const posix_1 = require("node:path/posix");
12
- function relativePathToWorkspaceRoot(projectRoot) {
13
- if (!projectRoot) {
14
- return '.';
15
- }
16
- return (0, posix_1.relative)((0, posix_1.join)('/', projectRoot), '/') || '.';
17
- }
18
- exports.relativePathToWorkspaceRoot = relativePathToWorkspaceRoot;
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.relativePathToWorkspaceRoot = relativePathToWorkspaceRoot;
11
+ const posix_1 = require("node:path/posix");
12
+ function relativePathToWorkspaceRoot(projectRoot) {
13
+ if (!projectRoot) {
14
+ return '.';
15
+ }
16
+ return (0, posix_1.relative)((0, posix_1.join)('/', projectRoot), '/') || '.';
17
+ }
19
18
  //# sourceMappingURL=paths.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"paths.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/paths.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,2CAAiD;AAEjD,SAAgB,2BAA2B,CAAC,WAA+B;IACzE,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,GAAG,CAAC;KACZ;IAED,OAAO,IAAA,gBAAQ,EAAC,IAAA,YAAI,EAAC,GAAG,EAAE,WAAW,CAAC,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC;AACtD,CAAC;AAND,kEAMC"}
1
+ {"version":3,"file":"paths.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/paths.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAIH,kEAMC;AARD,2CAAiD;AAEjD,SAAgB,2BAA2B,CAAC,WAA+B;IACzE,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,IAAA,gBAAQ,EAAC,IAAA,YAAI,EAAC,GAAG,EAAE,WAAW,CAAC,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC;AACtD,CAAC"}
@@ -1,11 +1,11 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { SchematicsException } from '@angular-devkit/schematics';
9
- import { ProjectDefinition } from './workspace';
10
- export declare function targetBuildNotFoundError(): SchematicsException;
11
- export declare function isUsingApplicationBuilder(project: ProjectDefinition): boolean;
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import { SchematicsException } from '@angular-devkit/schematics';
9
+ import { ProjectDefinition } from './workspace';
10
+ export declare function targetBuildNotFoundError(): SchematicsException;
11
+ export declare function isUsingApplicationBuilder(project: ProjectDefinition): boolean;
@@ -1,23 +1,22 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.isUsingApplicationBuilder = exports.targetBuildNotFoundError = void 0;
11
- const schematics_1 = require("@angular-devkit/schematics");
12
- const workspace_models_1 = require("./workspace-models");
13
- function targetBuildNotFoundError() {
14
- return new schematics_1.SchematicsException(`Project target "build" not found.`);
15
- }
16
- exports.targetBuildNotFoundError = targetBuildNotFoundError;
17
- function isUsingApplicationBuilder(project) {
18
- const buildBuilder = project.targets.get('build')?.builder;
19
- const isUsingApplicationBuilder = buildBuilder === workspace_models_1.Builders.Application || buildBuilder === workspace_models_1.Builders.BuildApplication;
20
- return isUsingApplicationBuilder;
21
- }
22
- exports.isUsingApplicationBuilder = isUsingApplicationBuilder;
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.targetBuildNotFoundError = targetBuildNotFoundError;
11
+ exports.isUsingApplicationBuilder = isUsingApplicationBuilder;
12
+ const schematics_1 = require("@angular-devkit/schematics");
13
+ const workspace_models_1 = require("./workspace-models");
14
+ function targetBuildNotFoundError() {
15
+ return new schematics_1.SchematicsException(`Project target "build" not found.`);
16
+ }
17
+ function isUsingApplicationBuilder(project) {
18
+ const buildBuilder = project.targets.get('build')?.builder;
19
+ const isUsingApplicationBuilder = buildBuilder === workspace_models_1.Builders.Application || buildBuilder === workspace_models_1.Builders.BuildApplication;
20
+ return isUsingApplicationBuilder;
21
+ }
23
22
  //# sourceMappingURL=project-targets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project-targets.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/project-targets.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,2DAAiE;AAEjE,yDAA8C;AAE9C,SAAgB,wBAAwB;IACtC,OAAO,IAAI,gCAAmB,CAAC,mCAAmC,CAAC,CAAC;AACtE,CAAC;AAFD,4DAEC;AAED,SAAgB,yBAAyB,CAAC,OAA0B;IAClE,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3D,MAAM,yBAAyB,GAC7B,YAAY,KAAK,2BAAQ,CAAC,WAAW,IAAI,YAAY,KAAK,2BAAQ,CAAC,gBAAgB,CAAC;IAEtF,OAAO,yBAAyB,CAAC;AACnC,CAAC;AAND,8DAMC"}
1
+ {"version":3,"file":"project-targets.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/project-targets.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAMH,4DAEC;AAED,8DAMC;AAdD,2DAAiE;AAEjE,yDAA8C;AAE9C,SAAgB,wBAAwB;IACtC,OAAO,IAAI,gCAAmB,CAAC,mCAAmC,CAAC,CAAC;AACtE,CAAC;AAED,SAAgB,yBAAyB,CAAC,OAA0B;IAClE,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3D,MAAM,yBAAyB,GAC7B,YAAY,KAAK,2BAAQ,CAAC,WAAW,IAAI,YAAY,KAAK,2BAAQ,CAAC,gBAAgB,CAAC;IAEtF,OAAO,yBAAyB,CAAC;AACnC,CAAC"}
@@ -1,29 +1,29 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { Tree } from '@angular-devkit/schematics';
9
- /** Data resolved for a bootstrapped component. */
10
- interface BootstrappedComponentData {
11
- /** Original name of the component class. */
12
- componentName: string;
13
- /** Path under which the component was imported in the main entrypoint. */
14
- componentImportPathInSameFile: string;
15
- /** Original name of the NgModule being bootstrapped, null if the app isn't module-based. */
16
- moduleName: string | null;
17
- /**
18
- * Path under which the module was imported in the main entrypoint,
19
- * null if the app isn't module-based.
20
- */
21
- moduleImportPathInSameFile: string | null;
22
- }
23
- /**
24
- * Finds the original name and path relative to the `main.ts` of the bootrstrapped app component.
25
- * @param tree File tree in which to look for the component.
26
- * @param mainFilePath Path of the `main` file.
27
- */
28
- export declare function resolveBootstrappedComponentData(tree: Tree, mainFilePath: string): BootstrappedComponentData | null;
29
- export {};
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import { Tree } from '@angular-devkit/schematics';
9
+ /** Data resolved for a bootstrapped component. */
10
+ interface BootstrappedComponentData {
11
+ /** Original name of the component class. */
12
+ componentName: string;
13
+ /** Path under which the component was imported in the main entrypoint. */
14
+ componentImportPathInSameFile: string;
15
+ /** Original name of the NgModule being bootstrapped, null if the app isn't module-based. */
16
+ moduleName: string | null;
17
+ /**
18
+ * Path under which the module was imported in the main entrypoint,
19
+ * null if the app isn't module-based.
20
+ */
21
+ moduleImportPathInSameFile: string | null;
22
+ }
23
+ /**
24
+ * Finds the original name and path relative to the `main.ts` of the bootrstrapped app component.
25
+ * @param tree File tree in which to look for the component.
26
+ * @param mainFilePath Path of the `main` file.
27
+ */
28
+ export declare function resolveBootstrappedComponentData(tree: Tree, mainFilePath: string): BootstrappedComponentData | null;
29
+ export {};
@@ -1,108 +1,108 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.resolveBootstrappedComponentData = void 0;
11
- const schematics_1 = require("@angular-devkit/schematics");
12
- const ts = require("typescript");
13
- const ast_utils_1 = require("../ast-utils");
14
- const ng_ast_utils_1 = require("../ng-ast-utils");
15
- const util_1 = require("./util");
16
- /**
17
- * Finds the original name and path relative to the `main.ts` of the bootrstrapped app component.
18
- * @param tree File tree in which to look for the component.
19
- * @param mainFilePath Path of the `main` file.
20
- */
21
- function resolveBootstrappedComponentData(tree, mainFilePath) {
22
- // First try to resolve for a standalone app.
23
- try {
24
- const call = (0, util_1.findBootstrapApplicationCall)(tree, mainFilePath);
25
- if (call.arguments.length > 0 && ts.isIdentifier(call.arguments[0])) {
26
- const resolved = resolveIdentifier(call.arguments[0]);
27
- if (resolved) {
28
- return {
29
- componentName: resolved.name,
30
- componentImportPathInSameFile: resolved.path,
31
- moduleName: null,
32
- moduleImportPathInSameFile: null,
33
- };
34
- }
35
- }
36
- }
37
- catch (e) {
38
- // `findBootstrapApplicationCall` will throw if it can't find the `bootrstrapApplication` call.
39
- // Catch so we can continue to the fallback logic.
40
- if (!(e instanceof schematics_1.SchematicsException)) {
41
- throw e;
42
- }
43
- }
44
- // Otherwise fall back to resolving an NgModule-based app.
45
- return resolveNgModuleBasedData(tree, mainFilePath);
46
- }
47
- exports.resolveBootstrappedComponentData = resolveBootstrappedComponentData;
48
- /** Resolves the bootstrap data for a NgModule-based app. */
49
- function resolveNgModuleBasedData(tree, mainFilePath) {
50
- const appModulePath = (0, ng_ast_utils_1.getAppModulePath)(tree, mainFilePath);
51
- const appModuleFile = (0, util_1.getSourceFile)(tree, appModulePath);
52
- const metadataNodes = (0, ast_utils_1.getDecoratorMetadata)(appModuleFile, 'NgModule', '@angular/core');
53
- for (const node of metadataNodes) {
54
- if (!ts.isObjectLiteralExpression(node)) {
55
- continue;
56
- }
57
- const bootstrapProp = (0, ast_utils_1.getMetadataField)(node, 'bootstrap').find(prop => {
58
- return (ts.isArrayLiteralExpression(prop.initializer) &&
59
- prop.initializer.elements.length > 0 &&
60
- ts.isIdentifier(prop.initializer.elements[0]));
61
- });
62
- const componentIdentifier = (bootstrapProp?.initializer)
63
- .elements[0];
64
- const componentResult = componentIdentifier ? resolveIdentifier(componentIdentifier) : null;
65
- const bootstrapCall = (0, ng_ast_utils_1.findBootstrapModuleCall)(tree, mainFilePath);
66
- if (componentResult &&
67
- bootstrapCall &&
68
- bootstrapCall.arguments.length > 0 &&
69
- ts.isIdentifier(bootstrapCall.arguments[0])) {
70
- const moduleResult = resolveIdentifier(bootstrapCall.arguments[0]);
71
- if (moduleResult) {
72
- return {
73
- componentName: componentResult.name,
74
- componentImportPathInSameFile: componentResult.path,
75
- moduleName: moduleResult.name,
76
- moduleImportPathInSameFile: moduleResult.path,
77
- };
78
- }
79
- }
80
- }
81
- return null;
82
- }
83
- /** Resolves an identifier to its original name and path that it was imported from. */
84
- function resolveIdentifier(identifier) {
85
- const sourceFile = identifier.getSourceFile();
86
- // Try to resolve the import path by looking at the top-level named imports of the file.
87
- for (const node of sourceFile.statements) {
88
- if (!ts.isImportDeclaration(node) ||
89
- !ts.isStringLiteral(node.moduleSpecifier) ||
90
- !node.importClause ||
91
- !node.importClause.namedBindings ||
92
- !ts.isNamedImports(node.importClause.namedBindings)) {
93
- continue;
94
- }
95
- for (const element of node.importClause.namedBindings.elements) {
96
- if (element.name.text === identifier.text) {
97
- return {
98
- // Note that we use `propertyName` if available, because it contains
99
- // the real name in the case where the import is aliased.
100
- name: (element.propertyName || element.name).text,
101
- path: node.moduleSpecifier.text,
102
- };
103
- }
104
- }
105
- }
106
- return null;
107
- }
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.resolveBootstrappedComponentData = resolveBootstrappedComponentData;
11
+ const tslib_1 = require("tslib");
12
+ const schematics_1 = require("@angular-devkit/schematics");
13
+ const ts = tslib_1.__importStar(require("typescript"));
14
+ const ast_utils_1 = require("../ast-utils");
15
+ const ng_ast_utils_1 = require("../ng-ast-utils");
16
+ const util_1 = require("./util");
17
+ /**
18
+ * Finds the original name and path relative to the `main.ts` of the bootrstrapped app component.
19
+ * @param tree File tree in which to look for the component.
20
+ * @param mainFilePath Path of the `main` file.
21
+ */
22
+ function resolveBootstrappedComponentData(tree, mainFilePath) {
23
+ // First try to resolve for a standalone app.
24
+ try {
25
+ const call = (0, util_1.findBootstrapApplicationCall)(tree, mainFilePath);
26
+ if (call.arguments.length > 0 && ts.isIdentifier(call.arguments[0])) {
27
+ const resolved = resolveIdentifier(call.arguments[0]);
28
+ if (resolved) {
29
+ return {
30
+ componentName: resolved.name,
31
+ componentImportPathInSameFile: resolved.path,
32
+ moduleName: null,
33
+ moduleImportPathInSameFile: null,
34
+ };
35
+ }
36
+ }
37
+ }
38
+ catch (e) {
39
+ // `findBootstrapApplicationCall` will throw if it can't find the `bootrstrapApplication` call.
40
+ // Catch so we can continue to the fallback logic.
41
+ if (!(e instanceof schematics_1.SchematicsException)) {
42
+ throw e;
43
+ }
44
+ }
45
+ // Otherwise fall back to resolving an NgModule-based app.
46
+ return resolveNgModuleBasedData(tree, mainFilePath);
47
+ }
48
+ /** Resolves the bootstrap data for a NgModule-based app. */
49
+ function resolveNgModuleBasedData(tree, mainFilePath) {
50
+ const appModulePath = (0, ng_ast_utils_1.getAppModulePath)(tree, mainFilePath);
51
+ const appModuleFile = (0, util_1.getSourceFile)(tree, appModulePath);
52
+ const metadataNodes = (0, ast_utils_1.getDecoratorMetadata)(appModuleFile, 'NgModule', '@angular/core');
53
+ for (const node of metadataNodes) {
54
+ if (!ts.isObjectLiteralExpression(node)) {
55
+ continue;
56
+ }
57
+ const bootstrapProp = (0, ast_utils_1.getMetadataField)(node, 'bootstrap').find(prop => {
58
+ return (ts.isArrayLiteralExpression(prop.initializer) &&
59
+ prop.initializer.elements.length > 0 &&
60
+ ts.isIdentifier(prop.initializer.elements[0]));
61
+ });
62
+ const componentIdentifier = (bootstrapProp?.initializer)
63
+ .elements[0];
64
+ const componentResult = componentIdentifier ? resolveIdentifier(componentIdentifier) : null;
65
+ const bootstrapCall = (0, ng_ast_utils_1.findBootstrapModuleCall)(tree, mainFilePath);
66
+ if (componentResult &&
67
+ bootstrapCall &&
68
+ bootstrapCall.arguments.length > 0 &&
69
+ ts.isIdentifier(bootstrapCall.arguments[0])) {
70
+ const moduleResult = resolveIdentifier(bootstrapCall.arguments[0]);
71
+ if (moduleResult) {
72
+ return {
73
+ componentName: componentResult.name,
74
+ componentImportPathInSameFile: componentResult.path,
75
+ moduleName: moduleResult.name,
76
+ moduleImportPathInSameFile: moduleResult.path,
77
+ };
78
+ }
79
+ }
80
+ }
81
+ return null;
82
+ }
83
+ /** Resolves an identifier to its original name and path that it was imported from. */
84
+ function resolveIdentifier(identifier) {
85
+ const sourceFile = identifier.getSourceFile();
86
+ // Try to resolve the import path by looking at the top-level named imports of the file.
87
+ for (const node of sourceFile.statements) {
88
+ if (!ts.isImportDeclaration(node) ||
89
+ !ts.isStringLiteral(node.moduleSpecifier) ||
90
+ !node.importClause ||
91
+ !node.importClause.namedBindings ||
92
+ !ts.isNamedImports(node.importClause.namedBindings)) {
93
+ continue;
94
+ }
95
+ for (const element of node.importClause.namedBindings.elements) {
96
+ if (element.name.text === identifier.text) {
97
+ return {
98
+ // Note that we use `propertyName` if available, because it contains
99
+ // the real name in the case where the import is aliased.
100
+ name: (element.propertyName || element.name).text,
101
+ path: node.moduleSpecifier.text,
102
+ };
103
+ }
104
+ }
105
+ }
106
+ return null;
107
+ }
108
108
  //# sourceMappingURL=app_component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app_component.js","sourceRoot":"","sources":["../../../../../../packages/schematics/src/utils/angular/standalone/app_component.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,2DAAuE;AACvE,iCAAiC;AACjC,4CAAsE;AACtE,kDAA4E;AAC5E,iCAAqE;AAoBrE;;;;GAIG;AACH,SAAgB,gCAAgC,CAC9C,IAAU,EACV,YAAoB;IAEpB,6CAA6C;IAC7C,IAAI;QACF,MAAM,IAAI,GAAG,IAAA,mCAA4B,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAE9D,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;YACnE,MAAM,QAAQ,GAAG,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;YAEtD,IAAI,QAAQ,EAAE;gBACZ,OAAO;oBACL,aAAa,EAAE,QAAQ,CAAC,IAAI;oBAC5B,6BAA6B,EAAE,QAAQ,CAAC,IAAI;oBAC5C,UAAU,EAAE,IAAI;oBAChB,0BAA0B,EAAE,IAAI;iBACjC,CAAC;aACH;SACF;KACF;IAAC,OAAO,CAAC,EAAE;QACV,+FAA+F;Q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AAC,IAAI,CAAC,CAAC,IAAI;oBACjD,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI;iBAChC,CAAC;aACH;SACF;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
1
+ {"version":3,"file":"app_component.js","sourceRoot":"","sources":["../../../../../../packages/schematics/src/utils/angular/standalone/app_component.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AA+BH,4EA8BC;;AA3DD,2DAAuE;AACvE,uDAAiC;AACjC,4CAAsE;AACtE,kDAA4E;AAC5E,iCAAqE;AAoBrE;;;;GAIG;AACH,SAAgB,gCAAgC,CAC9C,IAAU,EACV,YAAoB;IAEpB,6CAA6C;IAC7C,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAA,mCAA4B,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAE9D,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACpE,MAAM,QAAQ,GAAG,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;YAEtD,IAAI,QAAQ,EAAE,CAAC;gBACb,OAAO;oBACL,aAAa,EAAE,QAAQ,CAAC,IAAI;oBAC5B,6BAA6B,EAAE,QAAQ,CAAC,IAAI;oBAC5C,UAAU,EAAE,IAAI;oBAChB,0BAA0B,EAAE,IAAI;iBACjC,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,+FAA+F;QAC/F,kDAAkD;QAClD,IAAI,CAAC,CAAC,CAAC,YAAY,gCAAmB,CAAC,EAAE,CAAC;YACxC,MAAM,CAAC,CAAC;QACV,CAAC;IACH,CAAC;IAED,0DAA0D;IAC1D,OAAO,wBAAwB,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AACtD,CAAC;AAED,4DAA4D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,IAAI,CAAC;AACd,CAAC"}
@@ -1,23 +1,23 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { Tree } from '@angular-devkit/schematics';
9
- import * as ts from 'typescript';
10
- /** App config that was resolved to its source node. */
11
- export interface ResolvedAppConfig {
12
- /** Tree-relative path of the file containing the app config. */
13
- filePath: string;
14
- /** Node defining the app config. */
15
- node: ts.ObjectLiteralExpression;
16
- }
17
- /**
18
- * Resolves the node that defines the app config from a bootstrap call.
19
- * @param bootstrapCall Call for which to resolve the config.
20
- * @param tree File tree of the project.
21
- * @param filePath File path of the bootstrap call.
22
- */
23
- export declare function findAppConfig(bootstrapCall: ts.CallExpression, tree: Tree, filePath: string): ResolvedAppConfig | null;
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import { Tree } from '@angular-devkit/schematics';
9
+ import * as ts from 'typescript';
10
+ /** App config that was resolved to its source node. */
11
+ export interface ResolvedAppConfig {
12
+ /** Tree-relative path of the file containing the app config. */
13
+ filePath: string;
14
+ /** Node defining the app config. */
15
+ node: ts.ObjectLiteralExpression;
16
+ }
17
+ /**
18
+ * Resolves the node that defines the app config from a bootstrap call.
19
+ * @param bootstrapCall Call for which to resolve the config.
20
+ * @param tree File tree of the project.
21
+ * @param filePath File path of the bootstrap call.
22
+ */
23
+ export declare function findAppConfig(bootstrapCall: ts.CallExpression, tree: Tree, filePath: string): ResolvedAppConfig | null;