@angular/compiler-cli 19.0.0-next.1 → 19.0.0-next.10

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 (362) hide show
  1. package/bundles/{chunk-WR7TUJ7M.js → chunk-3Z25BX6N.js} +8 -8
  2. package/bundles/{chunk-QJ5A7O7J.js → chunk-5AXLJZ3D.js} +367 -186
  3. package/bundles/chunk-5AXLJZ3D.js.map +6 -0
  4. package/bundles/{chunk-CNPXFKGI.js → chunk-CE344QNW.js} +4 -4
  5. package/bundles/{chunk-UWZBW4E4.js → chunk-EJZF542V.js} +7 -7
  6. package/bundles/chunk-EJZF542V.js.map +6 -0
  7. package/bundles/{chunk-5DVL3S3Z.js → chunk-O2RMLJTP.js} +79 -52
  8. package/bundles/chunk-O2RMLJTP.js.map +6 -0
  9. package/bundles/{chunk-VNKFV2MZ.js → chunk-Q4DA5WRV.js} +514 -247
  10. package/bundles/chunk-Q4DA5WRV.js.map +6 -0
  11. package/bundles/{chunk-SBDNBITT.js → chunk-RT2QTF73.js} +4 -4
  12. package/bundles/{chunk-XNL3EK5H.js → chunk-UJ2J6WV4.js} +43 -9
  13. package/bundles/{chunk-XNL3EK5H.js.map → chunk-UJ2J6WV4.js.map} +3 -3
  14. package/bundles/{chunk-B4ZOGV3N.js → chunk-WIYBGC3E.js} +55 -48
  15. package/bundles/chunk-WIYBGC3E.js.map +6 -0
  16. package/bundles/{chunk-DK2K5DIA.js → chunk-WO73PLUB.js} +13 -13
  17. package/bundles/{chunk-DK2K5DIA.js.map → chunk-WO73PLUB.js.map} +1 -1
  18. package/bundles/{chunk-THQF5ZZE.js → chunk-XSNUHRLJ.js} +6 -6
  19. package/bundles/index.js +15 -13
  20. package/bundles/index.js.map +1 -1
  21. package/bundles/linker/babel/index.js +14 -14
  22. package/bundles/linker/babel/index.js.map +1 -1
  23. package/bundles/linker/index.js +4 -4
  24. package/bundles/ngcc/index.js +2 -2
  25. package/bundles/private/bazel.js +2 -2
  26. package/bundles/private/localize.js +6 -4
  27. package/bundles/private/migrations.js +5 -5
  28. package/bundles/private/tooling.js +6 -6
  29. package/bundles/src/bin/ng_xi18n.js +11 -11
  30. package/bundles/src/bin/ngc.js +9 -9
  31. package/bundles_metadata.json +1 -1
  32. package/linker/babel/index.d.ts +1 -1
  33. package/linker/babel/src/ast/babel_ast_factory.d.ts +3 -3
  34. package/linker/babel/src/ast/babel_ast_host.d.ts +1 -1
  35. package/linker/babel/src/babel_declaration_scope.d.ts +1 -1
  36. package/linker/babel/src/babel_plugin.d.ts +1 -1
  37. package/linker/babel/src/es2015_linker_plugin.d.ts +1 -1
  38. package/linker/babel/src/linker_plugin_options.d.ts +1 -1
  39. package/linker/index.d.ts +1 -1
  40. package/linker/src/ast/ast_host.d.ts +1 -1
  41. package/linker/src/ast/ast_value.d.ts +1 -1
  42. package/linker/src/ast/typescript/typescript_ast_host.d.ts +1 -1
  43. package/linker/src/fatal_linker_error.d.ts +1 -1
  44. package/linker/src/file_linker/declaration_scope.d.ts +1 -1
  45. package/linker/src/file_linker/emit_scopes/emit_scope.d.ts +1 -1
  46. package/linker/src/file_linker/emit_scopes/local_emit_scope.d.ts +1 -1
  47. package/linker/src/file_linker/get_source_file.d.ts +1 -1
  48. package/linker/src/file_linker/linker_environment.d.ts +1 -1
  49. package/linker/src/file_linker/linker_options.d.ts +1 -1
  50. package/linker/src/file_linker/needs_linking.d.ts +1 -1
  51. package/linker/src/file_linker/partial_linkers/partial_class_metadata_async_linker_1.d.ts +1 -1
  52. package/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.d.ts +1 -1
  53. package/linker/src/file_linker/partial_linkers/partial_component_linker_1.d.ts +1 -1
  54. package/linker/src/file_linker/partial_linkers/partial_directive_linker_1.d.ts +3 -3
  55. package/linker/src/file_linker/partial_linkers/partial_factory_linker_1.d.ts +1 -1
  56. package/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.d.ts +1 -1
  57. package/linker/src/file_linker/partial_linkers/partial_injector_linker_1.d.ts +1 -1
  58. package/linker/src/file_linker/partial_linkers/partial_linker.d.ts +1 -1
  59. package/linker/src/file_linker/partial_linkers/partial_linker_selector.d.ts +1 -1
  60. package/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.d.ts +1 -1
  61. package/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.d.ts +3 -3
  62. package/linker/src/file_linker/partial_linkers/util.d.ts +3 -2
  63. package/linker/src/file_linker/translator.d.ts +1 -1
  64. package/linker/src/linker_import_generator.d.ts +1 -1
  65. package/ngcc/index.d.ts +1 -1
  66. package/package.json +4 -4
  67. package/private/babel.d.ts +1 -1
  68. package/private/bazel.d.ts +1 -1
  69. package/private/localize.d.ts +1 -1
  70. package/private/migrations.d.ts +2 -1
  71. package/private/tooling.d.ts +1 -1
  72. package/src/bin/ng_xi18n.d.ts +1 -1
  73. package/src/bin/ngc.d.ts +1 -1
  74. package/src/extract_i18n.d.ts +1 -1
  75. package/src/main.d.ts +1 -1
  76. package/src/ngtsc/annotations/common/index.d.ts +1 -1
  77. package/src/ngtsc/annotations/common/src/api.d.ts +15 -1
  78. package/src/ngtsc/annotations/common/src/debug_info.d.ts +3 -2
  79. package/src/ngtsc/annotations/common/src/di.d.ts +1 -1
  80. package/src/ngtsc/annotations/common/src/diagnostics.d.ts +1 -1
  81. package/src/ngtsc/annotations/common/src/evaluation.d.ts +1 -1
  82. package/src/ngtsc/annotations/common/src/factory.d.ts +1 -1
  83. package/src/ngtsc/annotations/common/src/injectable_registry.d.ts +1 -1
  84. package/src/ngtsc/annotations/common/src/input_transforms.d.ts +1 -1
  85. package/src/ngtsc/annotations/common/src/jit_declaration_registry.d.ts +1 -1
  86. package/src/ngtsc/annotations/common/src/metadata.d.ts +1 -1
  87. package/src/ngtsc/annotations/common/src/references_registry.d.ts +1 -1
  88. package/src/ngtsc/annotations/common/src/schema.d.ts +1 -1
  89. package/src/ngtsc/annotations/common/src/standalone-default-value.d.ts +12 -0
  90. package/src/ngtsc/annotations/common/src/util.d.ts +2 -2
  91. package/src/ngtsc/annotations/component/index.d.ts +1 -1
  92. package/src/ngtsc/annotations/component/src/diagnostics.d.ts +1 -1
  93. package/src/ngtsc/annotations/component/src/handler.d.ts +11 -4
  94. package/src/ngtsc/annotations/component/src/metadata.d.ts +1 -1
  95. package/src/ngtsc/annotations/component/src/resources.d.ts +5 -4
  96. package/src/ngtsc/annotations/component/src/symbol.d.ts +1 -1
  97. package/src/ngtsc/annotations/component/src/util.d.ts +1 -1
  98. package/src/ngtsc/annotations/directive/index.d.ts +1 -1
  99. package/src/ngtsc/annotations/directive/src/handler.d.ts +3 -2
  100. package/src/ngtsc/annotations/directive/src/initializer_function_access.d.ts +1 -1
  101. package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +1 -1
  102. package/src/ngtsc/annotations/directive/src/input_function.d.ts +1 -1
  103. package/src/ngtsc/annotations/directive/src/input_output_parse_options.d.ts +1 -1
  104. package/src/ngtsc/annotations/directive/src/model_function.d.ts +1 -1
  105. package/src/ngtsc/annotations/directive/src/output_function.d.ts +1 -1
  106. package/src/ngtsc/annotations/directive/src/query_functions.d.ts +1 -1
  107. package/src/ngtsc/annotations/directive/src/shared.d.ts +2 -2
  108. package/src/ngtsc/annotations/directive/src/symbol.d.ts +1 -1
  109. package/src/ngtsc/annotations/index.d.ts +1 -1
  110. package/src/ngtsc/annotations/ng_module/index.d.ts +1 -1
  111. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +1 -1
  112. package/src/ngtsc/annotations/ng_module/src/module_with_providers.d.ts +1 -1
  113. package/src/ngtsc/annotations/src/injectable.d.ts +1 -1
  114. package/src/ngtsc/annotations/src/pipe.d.ts +3 -2
  115. package/src/ngtsc/core/api/index.d.ts +1 -1
  116. package/src/ngtsc/core/api/src/adapter.d.ts +1 -1
  117. package/src/ngtsc/core/api/src/interfaces.d.ts +15 -1
  118. package/src/ngtsc/core/api/src/options.d.ts +1 -1
  119. package/src/ngtsc/core/api/src/public_options.d.ts +12 -1
  120. package/src/ngtsc/core/index.d.ts +1 -1
  121. package/src/ngtsc/core/src/compiler.d.ts +13 -2
  122. package/src/ngtsc/core/src/core_version.d.ts +1 -1
  123. package/src/ngtsc/core/src/feature_detection.d.ts +1 -1
  124. package/src/ngtsc/core/src/host.d.ts +1 -1
  125. package/src/ngtsc/cycles/index.d.ts +1 -1
  126. package/src/ngtsc/cycles/src/analyzer.d.ts +1 -1
  127. package/src/ngtsc/cycles/src/imports.d.ts +1 -1
  128. package/src/ngtsc/diagnostics/index.d.ts +1 -1
  129. package/src/ngtsc/diagnostics/src/docs.d.ts +1 -1
  130. package/src/ngtsc/diagnostics/src/error.d.ts +2 -2
  131. package/src/ngtsc/diagnostics/src/error_code.d.ts +9 -1
  132. package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +1 -1
  133. package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +3 -2
  134. package/src/ngtsc/diagnostics/src/util.d.ts +1 -1
  135. package/src/ngtsc/docs/index.d.ts +1 -1
  136. package/src/ngtsc/docs/src/class_extractor.d.ts +1 -1
  137. package/src/ngtsc/docs/src/constant_extractor.d.ts +1 -1
  138. package/src/ngtsc/docs/src/decorator_extractor.d.ts +1 -1
  139. package/src/ngtsc/docs/src/entities.d.ts +10 -1
  140. package/src/ngtsc/docs/src/enum_extractor.d.ts +1 -1
  141. package/src/ngtsc/docs/src/extractor.d.ts +5 -2
  142. package/src/ngtsc/docs/src/filters.d.ts +1 -1
  143. package/src/ngtsc/docs/src/function_extractor.d.ts +1 -1
  144. package/src/ngtsc/docs/src/generics_extractor.d.ts +1 -1
  145. package/src/ngtsc/docs/src/import_extractor.d.ts +14 -0
  146. package/src/ngtsc/docs/src/initializer_api_function_extractor.d.ts +1 -1
  147. package/src/ngtsc/docs/src/internal.d.ts +1 -1
  148. package/src/ngtsc/docs/src/jsdoc_extractor.d.ts +1 -1
  149. package/src/ngtsc/docs/src/type_alias_extractor.d.ts +1 -1
  150. package/src/ngtsc/docs/src/type_extractor.d.ts +1 -1
  151. package/src/ngtsc/entry_point/index.d.ts +1 -1
  152. package/src/ngtsc/entry_point/src/generator.d.ts +1 -1
  153. package/src/ngtsc/entry_point/src/logic.d.ts +1 -1
  154. package/src/ngtsc/entry_point/src/private_export_checker.d.ts +1 -1
  155. package/src/ngtsc/entry_point/src/reference_graph.d.ts +1 -1
  156. package/src/ngtsc/file_system/index.d.ts +2 -1
  157. package/src/ngtsc/file_system/src/compiler_host.d.ts +1 -1
  158. package/src/ngtsc/file_system/src/invalid_file_system.d.ts +1 -1
  159. package/src/ngtsc/file_system/src/logical.d.ts +1 -1
  160. package/src/ngtsc/file_system/src/ts_read_directory.d.ts +21 -0
  161. package/src/ngtsc/file_system/src/types.d.ts +1 -1
  162. package/src/ngtsc/file_system/src/util.d.ts +1 -1
  163. package/src/ngtsc/hmr/index.d.ts +9 -0
  164. package/src/ngtsc/hmr/src/extract_locals.d.ts +20 -0
  165. package/src/ngtsc/hmr/src/metadata.d.ts +23 -0
  166. package/src/ngtsc/hmr/src/update_declaration.d.ts +17 -0
  167. package/src/ngtsc/imports/index.d.ts +1 -1
  168. package/src/ngtsc/imports/src/alias.d.ts +1 -1
  169. package/src/ngtsc/imports/src/core.d.ts +7 -1
  170. package/src/ngtsc/imports/src/default.d.ts +1 -1
  171. package/src/ngtsc/imports/src/deferred_symbol_tracker.d.ts +1 -1
  172. package/src/ngtsc/imports/src/emitter.d.ts +1 -1
  173. package/src/ngtsc/imports/src/find_export.d.ts +1 -1
  174. package/src/ngtsc/imports/src/imported_symbols_tracker.d.ts +1 -1
  175. package/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.d.ts +1 -1
  176. package/src/ngtsc/imports/src/patch_alias_reference_resolution.d.ts +1 -1
  177. package/src/ngtsc/imports/src/reexport.d.ts +1 -1
  178. package/src/ngtsc/imports/src/references.d.ts +1 -1
  179. package/src/ngtsc/imports/src/resolver.d.ts +1 -1
  180. package/src/ngtsc/incremental/api.d.ts +1 -1
  181. package/src/ngtsc/incremental/index.d.ts +1 -1
  182. package/src/ngtsc/incremental/semantic_graph/index.d.ts +1 -1
  183. package/src/ngtsc/incremental/semantic_graph/src/graph.d.ts +1 -1
  184. package/src/ngtsc/incremental/semantic_graph/src/util.d.ts +1 -1
  185. package/src/ngtsc/incremental/src/dependency_tracking.d.ts +1 -1
  186. package/src/ngtsc/incremental/src/incremental.d.ts +1 -1
  187. package/src/ngtsc/incremental/src/noop.d.ts +1 -1
  188. package/src/ngtsc/incremental/src/state.d.ts +1 -1
  189. package/src/ngtsc/incremental/src/strategy.d.ts +1 -1
  190. package/src/ngtsc/indexer/index.d.ts +1 -1
  191. package/src/ngtsc/indexer/src/api.d.ts +1 -1
  192. package/src/ngtsc/indexer/src/context.d.ts +1 -1
  193. package/src/ngtsc/indexer/src/template.d.ts +1 -1
  194. package/src/ngtsc/indexer/src/transform.d.ts +1 -1
  195. package/src/ngtsc/logging/index.d.ts +1 -1
  196. package/src/ngtsc/logging/src/console_logger.d.ts +1 -1
  197. package/src/ngtsc/logging/src/logger.d.ts +1 -1
  198. package/src/ngtsc/metadata/index.d.ts +1 -1
  199. package/src/ngtsc/metadata/src/api.d.ts +5 -1
  200. package/src/ngtsc/metadata/src/dts.d.ts +1 -1
  201. package/src/ngtsc/metadata/src/host_directives_resolver.d.ts +1 -1
  202. package/src/ngtsc/metadata/src/inheritance.d.ts +1 -1
  203. package/src/ngtsc/metadata/src/ng_module_index.d.ts +1 -1
  204. package/src/ngtsc/metadata/src/property_mapping.d.ts +1 -1
  205. package/src/ngtsc/metadata/src/providers.d.ts +1 -1
  206. package/src/ngtsc/metadata/src/registry.d.ts +1 -1
  207. package/src/ngtsc/metadata/src/resource_registry.d.ts +1 -1
  208. package/src/ngtsc/metadata/src/util.d.ts +1 -1
  209. package/src/ngtsc/partial_evaluator/index.d.ts +1 -1
  210. package/src/ngtsc/partial_evaluator/src/builtin.d.ts +1 -1
  211. package/src/ngtsc/partial_evaluator/src/diagnostics.d.ts +1 -1
  212. package/src/ngtsc/partial_evaluator/src/dynamic.d.ts +1 -1
  213. package/src/ngtsc/partial_evaluator/src/interface.d.ts +1 -1
  214. package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +1 -1
  215. package/src/ngtsc/partial_evaluator/src/result.d.ts +1 -1
  216. package/src/ngtsc/partial_evaluator/src/synthetic.d.ts +1 -1
  217. package/src/ngtsc/perf/index.d.ts +1 -1
  218. package/src/ngtsc/perf/src/api.d.ts +1 -1
  219. package/src/ngtsc/perf/src/clock.d.ts +1 -1
  220. package/src/ngtsc/perf/src/noop.d.ts +1 -1
  221. package/src/ngtsc/perf/src/recorder.d.ts +1 -1
  222. package/src/ngtsc/program.d.ts +5 -2
  223. package/src/ngtsc/program_driver/index.d.ts +1 -1
  224. package/src/ngtsc/program_driver/src/api.d.ts +1 -1
  225. package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +1 -1
  226. package/src/ngtsc/reflection/index.d.ts +1 -1
  227. package/src/ngtsc/reflection/src/host.d.ts +1 -1
  228. package/src/ngtsc/reflection/src/type_to_value.d.ts +1 -1
  229. package/src/ngtsc/reflection/src/typescript.d.ts +1 -1
  230. package/src/ngtsc/reflection/src/util.d.ts +1 -1
  231. package/src/ngtsc/resource/index.d.ts +1 -1
  232. package/src/ngtsc/resource/src/loader.d.ts +1 -1
  233. package/src/ngtsc/scope/index.d.ts +1 -1
  234. package/src/ngtsc/scope/src/api.d.ts +1 -1
  235. package/src/ngtsc/scope/src/component_scope.d.ts +1 -1
  236. package/src/ngtsc/scope/src/dependency.d.ts +1 -1
  237. package/src/ngtsc/scope/src/local.d.ts +1 -1
  238. package/src/ngtsc/scope/src/standalone.d.ts +1 -1
  239. package/src/ngtsc/scope/src/typecheck.d.ts +1 -1
  240. package/src/ngtsc/scope/src/util.d.ts +1 -1
  241. package/src/ngtsc/shims/api.d.ts +1 -1
  242. package/src/ngtsc/shims/index.d.ts +1 -1
  243. package/src/ngtsc/shims/src/adapter.d.ts +1 -1
  244. package/src/ngtsc/shims/src/expando.d.ts +1 -1
  245. package/src/ngtsc/shims/src/reference_tagger.d.ts +1 -1
  246. package/src/ngtsc/shims/src/util.d.ts +1 -1
  247. package/src/ngtsc/sourcemaps/index.d.ts +1 -1
  248. package/src/ngtsc/sourcemaps/src/content_origin.d.ts +1 -1
  249. package/src/ngtsc/sourcemaps/src/raw_source_map.d.ts +1 -1
  250. package/src/ngtsc/sourcemaps/src/segment_marker.d.ts +1 -1
  251. package/src/ngtsc/transform/index.d.ts +1 -1
  252. package/src/ngtsc/transform/jit/index.d.ts +1 -1
  253. package/src/ngtsc/transform/jit/src/downlevel_decorators_transform.d.ts +1 -1
  254. package/src/ngtsc/transform/jit/src/index.d.ts +1 -1
  255. package/src/ngtsc/transform/jit/src/initializer_api_transforms/input_function.d.ts +1 -1
  256. package/src/ngtsc/transform/jit/src/initializer_api_transforms/model_function.d.ts +1 -1
  257. package/src/ngtsc/transform/jit/src/initializer_api_transforms/output_function.d.ts +1 -1
  258. package/src/ngtsc/transform/jit/src/initializer_api_transforms/query_functions.d.ts +1 -1
  259. package/src/ngtsc/transform/jit/src/initializer_api_transforms/transform.d.ts +1 -1
  260. package/src/ngtsc/transform/jit/src/initializer_api_transforms/transform_api.d.ts +1 -1
  261. package/src/ngtsc/transform/src/alias.d.ts +1 -1
  262. package/src/ngtsc/transform/src/api.d.ts +5 -1
  263. package/src/ngtsc/transform/src/compilation.d.ts +2 -1
  264. package/src/ngtsc/transform/src/declaration.d.ts +1 -1
  265. package/src/ngtsc/transform/src/trait.d.ts +1 -1
  266. package/src/ngtsc/transform/src/transform.d.ts +1 -1
  267. package/src/ngtsc/translator/index.d.ts +1 -1
  268. package/src/ngtsc/translator/src/api/ast_factory.d.ts +3 -3
  269. package/src/ngtsc/translator/src/api/import_generator.d.ts +1 -1
  270. package/src/ngtsc/translator/src/context.d.ts +1 -1
  271. package/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.d.ts +1 -1
  272. package/src/ngtsc/translator/src/import_manager/import_manager.d.ts +1 -1
  273. package/src/ngtsc/translator/src/import_manager/import_typescript_transform.d.ts +1 -1
  274. package/src/ngtsc/translator/src/import_manager/reuse_generated_imports.d.ts +1 -1
  275. package/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.d.ts +1 -1
  276. package/src/ngtsc/translator/src/translator.d.ts +1 -1
  277. package/src/ngtsc/translator/src/ts_util.d.ts +1 -1
  278. package/src/ngtsc/translator/src/type_emitter.d.ts +1 -1
  279. package/src/ngtsc/translator/src/type_translator.d.ts +1 -1
  280. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +3 -3
  281. package/src/ngtsc/translator/src/typescript_translator.d.ts +1 -1
  282. package/src/ngtsc/tsc_plugin.d.ts +1 -1
  283. package/src/ngtsc/typecheck/api/api.d.ts +7 -1
  284. package/src/ngtsc/typecheck/api/checker.d.ts +2 -2
  285. package/src/ngtsc/typecheck/api/completion.d.ts +1 -1
  286. package/src/ngtsc/typecheck/api/context.d.ts +1 -1
  287. package/src/ngtsc/typecheck/api/index.d.ts +1 -1
  288. package/src/ngtsc/typecheck/api/scope.d.ts +1 -1
  289. package/src/ngtsc/typecheck/api/symbols.d.ts +1 -1
  290. package/src/ngtsc/typecheck/diagnostics/index.d.ts +1 -1
  291. package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +1 -1
  292. package/src/ngtsc/typecheck/diagnostics/src/id.d.ts +1 -1
  293. package/src/ngtsc/typecheck/extended/api/api.d.ts +1 -1
  294. package/src/ngtsc/typecheck/extended/api/extended_template_checker.d.ts +1 -1
  295. package/src/ngtsc/typecheck/extended/api/index.d.ts +1 -1
  296. package/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.d.ts +1 -1
  297. package/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.d.ts +1 -1
  298. package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +1 -1
  299. package/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.d.ts +1 -1
  300. package/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.d.ts +1 -1
  301. package/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.d.ts +1 -1
  302. package/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/index.d.ts +1 -1
  303. package/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.d.ts +1 -1
  304. package/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.d.ts +1 -1
  305. package/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.d.ts +1 -1
  306. package/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.d.ts +1 -1
  307. package/src/ngtsc/typecheck/extended/index.d.ts +1 -1
  308. package/src/ngtsc/typecheck/extended/src/extended_template_checker.d.ts +1 -1
  309. package/src/ngtsc/typecheck/index.d.ts +1 -1
  310. package/src/ngtsc/typecheck/src/checker.d.ts +2 -2
  311. package/src/ngtsc/typecheck/src/comments.d.ts +1 -1
  312. package/src/ngtsc/typecheck/src/completion.d.ts +1 -1
  313. package/src/ngtsc/typecheck/src/context.d.ts +1 -1
  314. package/src/ngtsc/typecheck/src/diagnostics.d.ts +1 -1
  315. package/src/ngtsc/typecheck/src/dom.d.ts +1 -1
  316. package/src/ngtsc/typecheck/src/environment.d.ts +1 -1
  317. package/src/ngtsc/typecheck/src/expression.d.ts +1 -1
  318. package/src/ngtsc/typecheck/src/line_mappings.d.ts +1 -1
  319. package/src/ngtsc/typecheck/src/oob.d.ts +1 -1
  320. package/src/ngtsc/typecheck/src/reference_emit_environment.d.ts +1 -1
  321. package/src/ngtsc/typecheck/src/shim.d.ts +1 -1
  322. package/src/ngtsc/typecheck/src/source.d.ts +1 -1
  323. package/src/ngtsc/typecheck/src/symbol_util.d.ts +1 -1
  324. package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
  325. package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +1 -1
  326. package/src/ngtsc/typecheck/src/ts_util.d.ts +1 -1
  327. package/src/ngtsc/typecheck/src/type_check_block.d.ts +1 -1
  328. package/src/ngtsc/typecheck/src/type_check_file.d.ts +1 -1
  329. package/src/ngtsc/typecheck/src/type_constructor.d.ts +1 -1
  330. package/src/ngtsc/typecheck/src/type_parameter_emitter.d.ts +1 -1
  331. package/src/ngtsc/typecheck/template_semantics/api/api.d.ts +1 -1
  332. package/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.d.ts +1 -1
  333. package/src/ngtsc/util/src/path.d.ts +9 -0
  334. package/src/ngtsc/util/src/typescript.d.ts +1 -1
  335. package/src/ngtsc/util/src/visitor.d.ts +1 -1
  336. package/src/ngtsc/validation/index.d.ts +1 -1
  337. package/src/ngtsc/validation/src/config.d.ts +12 -0
  338. package/src/ngtsc/validation/src/rules/api.d.ts +1 -1
  339. package/src/ngtsc/validation/src/rules/initializer_api_usage_rule.d.ts +1 -1
  340. package/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.d.ts +29 -0
  341. package/src/ngtsc/validation/src/source_file_validator.d.ts +3 -2
  342. package/src/ngtsc/xi18n/index.d.ts +1 -1
  343. package/src/ngtsc/xi18n/src/context.d.ts +1 -1
  344. package/src/perform_compile.d.ts +2 -2
  345. package/src/perform_watch.d.ts +1 -1
  346. package/src/transformers/api.d.ts +1 -1
  347. package/src/transformers/compiler_host.d.ts +1 -1
  348. package/src/transformers/entry_points.d.ts +1 -1
  349. package/src/transformers/i18n.d.ts +1 -1
  350. package/src/transformers/program.d.ts +1 -1
  351. package/src/transformers/util.d.ts +1 -1
  352. package/src/version.d.ts +1 -1
  353. package/src/version_helpers.d.ts +1 -1
  354. package/bundles/chunk-5DVL3S3Z.js.map +0 -6
  355. package/bundles/chunk-B4ZOGV3N.js.map +0 -6
  356. package/bundles/chunk-QJ5A7O7J.js.map +0 -6
  357. package/bundles/chunk-UWZBW4E4.js.map +0 -6
  358. package/bundles/chunk-VNKFV2MZ.js.map +0 -6
  359. /package/bundles/{chunk-WR7TUJ7M.js.map → chunk-3Z25BX6N.js.map} +0 -0
  360. /package/bundles/{chunk-CNPXFKGI.js.map → chunk-CE344QNW.js.map} +0 -0
  361. /package/bundles/{chunk-SBDNBITT.js.map → chunk-RT2QTF73.js.map} +0 -0
  362. /package/bundles/{chunk-THQF5ZZE.js.map → chunk-XSNUHRLJ.js.map} +0 -0
@@ -12,12 +12,12 @@ import {
12
12
  resolve,
13
13
  stripExtension,
14
14
  toRelativeImport
15
- } from "./chunk-XNL3EK5H.js";
15
+ } from "./chunk-UJ2J6WV4.js";
16
16
 
17
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
17
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
18
18
  import ts from "typescript";
19
19
 
20
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
20
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
21
21
  var ErrorCode;
22
22
  (function(ErrorCode2) {
23
23
  ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
@@ -54,6 +54,7 @@ var ErrorCode;
54
54
  ErrorCode2[ErrorCode2["CONFLICTING_INPUT_TRANSFORM"] = 2020] = "CONFLICTING_INPUT_TRANSFORM";
55
55
  ErrorCode2[ErrorCode2["COMPONENT_INVALID_STYLE_URLS"] = 2021] = "COMPONENT_INVALID_STYLE_URLS";
56
56
  ErrorCode2[ErrorCode2["COMPONENT_UNKNOWN_DEFERRED_IMPORT"] = 2022] = "COMPONENT_UNKNOWN_DEFERRED_IMPORT";
57
+ ErrorCode2[ErrorCode2["NON_STANDALONE_NOT_ALLOWED"] = 2023] = "NON_STANDALONE_NOT_ALLOWED";
57
58
  ErrorCode2[ErrorCode2["SYMBOL_NOT_EXPORTED"] = 3001] = "SYMBOL_NOT_EXPORTED";
58
59
  ErrorCode2[ErrorCode2["IMPORT_CYCLE_DETECTED"] = 3003] = "IMPORT_CYCLE_DETECTED";
59
60
  ErrorCode2[ErrorCode2["IMPORT_GENERATION_FAILURE"] = 3004] = "IMPORT_GENERATION_FAILURE";
@@ -103,6 +104,7 @@ var ErrorCode;
103
104
  ErrorCode2[ErrorCode2["UNSUPPORTED_INITIALIZER_API_USAGE"] = 8110] = "UNSUPPORTED_INITIALIZER_API_USAGE";
104
105
  ErrorCode2[ErrorCode2["UNINVOKED_FUNCTION_IN_EVENT_BINDING"] = 8111] = "UNINVOKED_FUNCTION_IN_EVENT_BINDING";
105
106
  ErrorCode2[ErrorCode2["UNUSED_LET_DECLARATION"] = 8112] = "UNUSED_LET_DECLARATION";
107
+ ErrorCode2[ErrorCode2["UNUSED_STANDALONE_IMPORTS"] = 8113] = "UNUSED_STANDALONE_IMPORTS";
106
108
  ErrorCode2[ErrorCode2["INLINE_TCB_REQUIRED"] = 8900] = "INLINE_TCB_REQUIRED";
107
109
  ErrorCode2[ErrorCode2["INLINE_TYPE_CTOR_REQUIRED"] = 8901] = "INLINE_TYPE_CTOR_REQUIRED";
108
110
  ErrorCode2[ErrorCode2["INJECTABLE_DUPLICATE_PROV"] = 9001] = "INJECTABLE_DUPLICATE_PROV";
@@ -112,7 +114,7 @@ var ErrorCode;
112
114
  ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
113
115
  })(ErrorCode || (ErrorCode = {}));
114
116
 
115
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
117
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
116
118
  var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
117
119
  function replaceTsWithNgInErrors(errors) {
118
120
  return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
@@ -121,7 +123,7 @@ function ngErrorCode(code) {
121
123
  return parseInt("-99" + code);
122
124
  }
123
125
 
124
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
126
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
125
127
  var FatalDiagnosticError = class extends Error {
126
128
  constructor(code, node, diagnosticMessage, relatedInformation) {
127
129
  super(`FatalDiagnosticError: Code: ${code}, Message: ${ts.flattenDiagnosticMessageText(diagnosticMessage, "\n")}`);
@@ -136,10 +138,10 @@ var FatalDiagnosticError = class extends Error {
136
138
  return makeDiagnostic(this.code, this.node, this.diagnosticMessage, this.relatedInformation);
137
139
  }
138
140
  };
139
- function makeDiagnostic(code, node, messageText, relatedInformation) {
141
+ function makeDiagnostic(code, node, messageText, relatedInformation, category = ts.DiagnosticCategory.Error) {
140
142
  node = ts.getOriginalNode(node);
141
143
  return {
142
- category: ts.DiagnosticCategory.Error,
144
+ category,
143
145
  code: ngErrorCode(code),
144
146
  file: ts.getOriginalNode(node).getSourceFile(),
145
147
  start: node.getStart(void 0, false),
@@ -185,7 +187,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
185
187
  return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
186
188
  }
187
189
 
188
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
190
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
189
191
  var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
190
192
  ErrorCode.DECORATOR_ARG_NOT_LITERAL,
191
193
  ErrorCode.IMPORT_CYCLE_DETECTED,
@@ -197,10 +199,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
197
199
  ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
198
200
  ]);
199
201
 
200
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
202
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
201
203
  var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
202
204
 
203
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
205
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
204
206
  var ExtendedTemplateDiagnosticName;
205
207
  (function(ExtendedTemplateDiagnosticName2) {
206
208
  ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
@@ -215,12 +217,13 @@ var ExtendedTemplateDiagnosticName;
215
217
  ExtendedTemplateDiagnosticName2["INTERPOLATED_SIGNAL_NOT_INVOKED"] = "interpolatedSignalNotInvoked";
216
218
  ExtendedTemplateDiagnosticName2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = "controlFlowPreventingContentProjection";
217
219
  ExtendedTemplateDiagnosticName2["UNUSED_LET_DECLARATION"] = "unusedLetDeclaration";
220
+ ExtendedTemplateDiagnosticName2["UNUSED_STANDALONE_IMPORTS"] = "unusedStandaloneImports";
218
221
  })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
219
222
 
220
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
223
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
221
224
  import ts5 from "typescript";
222
225
 
223
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
226
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
224
227
  import ts2 from "typescript";
225
228
  function isDecoratorIdentifier(exp) {
226
229
  return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
@@ -243,7 +246,7 @@ var ClassMemberAccessLevel;
243
246
  })(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
244
247
  var AmbientImport = {};
245
248
 
246
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
249
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
247
250
  import ts3 from "typescript";
248
251
  function typeToValue(typeNode, checker, isLocalCompilation) {
249
252
  var _a, _b;
@@ -427,7 +430,7 @@ function extractModuleName(node) {
427
430
  return node.moduleSpecifier.text;
428
431
  }
429
432
 
430
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
433
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
431
434
  import ts4 from "typescript";
432
435
  function isNamedClassDeclaration(node) {
433
436
  return ts4.isClassDeclaration(node) && isIdentifier(node.name);
@@ -451,7 +454,7 @@ function classMemberAccessLevelToString(level) {
451
454
  }
452
455
  }
453
456
 
454
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
457
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
455
458
  var TypeScriptReflectionHost = class {
456
459
  constructor(checker, isLocalCompilation = false) {
457
460
  this.checker = checker;
@@ -939,7 +942,7 @@ function getExportedName(decl, originalId) {
939
942
  }
940
943
  var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
941
944
 
942
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
945
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
943
946
  import ts6 from "typescript";
944
947
  var TS = /\.tsx?$/i;
945
948
  var D_TS = /\.d\.ts$/i;
@@ -1040,7 +1043,7 @@ function toUnredirectedSourceFile(sf) {
1040
1043
  return redirectInfo.unredirected;
1041
1044
  }
1042
1045
 
1043
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1046
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1044
1047
  var Reference = class {
1045
1048
  constructor(node, bestGuessOwningModule = null) {
1046
1049
  this.node = node;
@@ -1109,14 +1112,14 @@ var Reference = class {
1109
1112
  }
1110
1113
  };
1111
1114
 
1112
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1115
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1113
1116
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
1114
1117
 
1115
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1118
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1116
1119
  import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
1117
1120
  import ts7 from "typescript";
1118
1121
 
1119
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1122
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1120
1123
  function findExportedNameOfNode(target, file, reflector) {
1121
1124
  const exports = reflector.getExportsOfModule(file);
1122
1125
  if (exports === null) {
@@ -1136,7 +1139,7 @@ function findExportedNameOfNode(target, file, reflector) {
1136
1139
  return foundExportName;
1137
1140
  }
1138
1141
 
1139
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1142
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1140
1143
  var ImportFlags;
1141
1144
  (function(ImportFlags2) {
1142
1145
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -1367,7 +1370,7 @@ var UnifiedModulesStrategy = class {
1367
1370
  }
1368
1371
  };
1369
1372
 
1370
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1373
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1371
1374
  var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
1372
1375
  var UnifiedModulesAliasingHost = class {
1373
1376
  constructor(unifiedModulesHost) {
@@ -1434,7 +1437,7 @@ var AliasStrategy = class {
1434
1437
  }
1435
1438
  };
1436
1439
 
1437
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1440
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1438
1441
  function relativePathBetween(from, to) {
1439
1442
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
1440
1443
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
@@ -1442,8 +1445,18 @@ function relativePathBetween(from, to) {
1442
1445
  function normalizeSeparators(path) {
1443
1446
  return path.replace(/\\/g, "/");
1444
1447
  }
1448
+ function getProjectRelativePath(sourceFile, rootDirs, compilerHost) {
1449
+ const filePath = compilerHost.getCanonicalFileName(sourceFile.fileName);
1450
+ for (const rootDir of rootDirs) {
1451
+ const rel = relative(compilerHost.getCanonicalFileName(rootDir), filePath);
1452
+ if (!rel.startsWith("..")) {
1453
+ return rel;
1454
+ }
1455
+ }
1456
+ return null;
1457
+ }
1445
1458
 
1446
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1459
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1447
1460
  var NoopImportRewriter = class {
1448
1461
  rewriteSymbol(symbol, specifier) {
1449
1462
  return symbol;
@@ -1451,6 +1464,9 @@ var NoopImportRewriter = class {
1451
1464
  rewriteSpecifier(specifier, inContextOfFile) {
1452
1465
  return specifier;
1453
1466
  }
1467
+ rewriteNamespaceImportIdentifier(specifier) {
1468
+ return specifier;
1469
+ }
1454
1470
  };
1455
1471
  var CORE_SUPPORTED_SYMBOLS = /* @__PURE__ */ new Map([
1456
1472
  ["\u0275\u0275defineInjectable", "\u0275\u0275defineInjectable"],
@@ -1488,6 +1504,9 @@ var R3SymbolsImportRewriter = class {
1488
1504
  }
1489
1505
  return relativePathToR3Symbols;
1490
1506
  }
1507
+ rewriteNamespaceImportIdentifier(specifier) {
1508
+ return specifier;
1509
+ }
1491
1510
  };
1492
1511
  function validateAndRewriteCoreSymbol(name) {
1493
1512
  if (!CORE_SUPPORTED_SYMBOLS.has(name)) {
@@ -1496,7 +1515,7 @@ function validateAndRewriteCoreSymbol(name) {
1496
1515
  return CORE_SUPPORTED_SYMBOLS.get(name);
1497
1516
  }
1498
1517
 
1499
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1518
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1500
1519
  import ts8 from "typescript";
1501
1520
  var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
1502
1521
  function loadIsReferencedAliasDeclarationPatch(context) {
@@ -1531,7 +1550,7 @@ function throwIncompatibleTransformationContextError() {
1531
1550
  throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
1532
1551
  }
1533
1552
 
1534
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1553
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1535
1554
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
1536
1555
  function attachDefaultImportDeclaration(expr, importDecl) {
1537
1556
  expr[DefaultImportDeclaration] = importDecl;
@@ -1572,7 +1591,7 @@ var DefaultImportTracker = class {
1572
1591
  }
1573
1592
  };
1574
1593
 
1575
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1594
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1576
1595
  import ts9 from "typescript";
1577
1596
  var AssumeEager = "AssumeEager";
1578
1597
  var DeferredSymbolTracker = class {
@@ -1649,7 +1668,7 @@ var DeferredSymbolTracker = class {
1649
1668
  return false;
1650
1669
  }
1651
1670
  const symbolsMap = this.imports.get(importDecl);
1652
- for (const [symbol, refs] of symbolsMap) {
1671
+ for (const refs of symbolsMap.values()) {
1653
1672
  if (refs === AssumeEager || refs.size > 0) {
1654
1673
  return false;
1655
1674
  }
@@ -1668,7 +1687,7 @@ var DeferredSymbolTracker = class {
1668
1687
  lookupIdentifiersInSourceFile(name, importDecl) {
1669
1688
  const results = /* @__PURE__ */ new Set();
1670
1689
  const visit = (node) => {
1671
- if (node === importDecl) {
1690
+ if (node === importDecl || ts9.isTypeNode(node)) {
1672
1691
  return;
1673
1692
  }
1674
1693
  if (ts9.isIdentifier(node) && node.text === name) {
@@ -1693,7 +1712,7 @@ var DeferredSymbolTracker = class {
1693
1712
  }
1694
1713
  };
1695
1714
 
1696
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1715
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1697
1716
  import ts10 from "typescript";
1698
1717
  var ImportedSymbolsTracker = class {
1699
1718
  constructor() {
@@ -1763,7 +1782,7 @@ var ImportedSymbolsTracker = class {
1763
1782
  }
1764
1783
  };
1765
1784
 
1766
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1785
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1767
1786
  import ts11 from "typescript";
1768
1787
  var LocalCompilationExtraImportsTracker = class {
1769
1788
  constructor(typeChecker) {
@@ -1814,7 +1833,7 @@ function removeQuotations(s) {
1814
1833
  return s.substring(1, s.length - 1).trim();
1815
1834
  }
1816
1835
 
1817
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1836
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1818
1837
  var ModuleResolver = class {
1819
1838
  constructor(program, compilerOptions, host, moduleResolutionCache) {
1820
1839
  this.program = program;
@@ -1831,10 +1850,10 @@ var ModuleResolver = class {
1831
1850
  }
1832
1851
  };
1833
1852
 
1834
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1853
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1835
1854
  import ts16 from "typescript";
1836
1855
 
1837
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1856
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1838
1857
  import ts12 from "typescript";
1839
1858
  function createGenerateUniqueIdentifierHelper() {
1840
1859
  const generatedIdentifiers = /* @__PURE__ */ new Set();
@@ -1860,7 +1879,7 @@ function createGenerateUniqueIdentifierHelper() {
1860
1879
  };
1861
1880
  }
1862
1881
 
1863
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1882
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1864
1883
  import ts13 from "typescript";
1865
1884
  function createTsTransformForImportManager(manager, extraStatementsForFiles) {
1866
1885
  return (ctx) => {
@@ -1927,7 +1946,7 @@ function isImportStatement(stmt) {
1927
1946
  return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
1928
1947
  }
1929
1948
 
1930
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1949
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1931
1950
  import ts14 from "typescript";
1932
1951
  function attemptToReuseGeneratedImports(tracker, request) {
1933
1952
  const requestHash = hashImportRequest(request);
@@ -1954,7 +1973,7 @@ function hashImportRequest(req) {
1954
1973
  return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
1955
1974
  }
1956
1975
 
1957
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
1976
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
1958
1977
  import ts15 from "typescript";
1959
1978
  function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
1960
1979
  let candidateImportToBeUpdated = null;
@@ -2014,7 +2033,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
2014
2033
  return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
2015
2034
  }
2016
2035
 
2017
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
2036
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
2018
2037
  var presetImportManagerForceNamespaceImports = {
2019
2038
  disableOriginalSourceFileReuse: true,
2020
2039
  forceGenerateNamespacesForNewImports: true
@@ -2094,7 +2113,10 @@ var ImportManager = class {
2094
2113
  }
2095
2114
  const { namedImports, namespaceImports } = this._getNewImportsTrackerForFile(sourceFile);
2096
2115
  if (request.exportSymbolName === null || forceGenerateNamespacesForNewImports) {
2097
- const namespaceImportName = `${this.config.namespaceImportPrefix}${this.nextUniqueIndex++}`;
2116
+ let namespaceImportName = `${this.config.namespaceImportPrefix}${this.nextUniqueIndex++}`;
2117
+ if (this.config.rewriter) {
2118
+ namespaceImportName = this.config.rewriter.rewriteNamespaceImportIdentifier(namespaceImportName, request.exportModuleSpecifier);
2119
+ }
2098
2120
  const namespaceImport2 = ts16.factory.createNamespaceImport((_a = this.config.generateUniqueIdentifier(sourceFile, namespaceImportName)) != null ? _a : ts16.factory.createIdentifier(namespaceImportName));
2099
2121
  namespaceImports.set(request.exportModuleSpecifier, namespaceImport2);
2100
2122
  captureGeneratedImport({ ...request, exportSymbolName: null }, this.reuseGeneratedImportsTracker, namespaceImport2.name);
@@ -2232,7 +2254,7 @@ function createImportReference(asTypeReference, ref) {
2232
2254
  }
2233
2255
  }
2234
2256
 
2235
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2257
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2236
2258
  var Context = class {
2237
2259
  constructor(isStatement) {
2238
2260
  this.isStatement = isStatement;
@@ -2245,7 +2267,7 @@ var Context = class {
2245
2267
  }
2246
2268
  };
2247
2269
 
2248
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2270
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2249
2271
  import * as o from "@angular/compiler";
2250
2272
  var UNARY_OPERATORS = /* @__PURE__ */ new Map([
2251
2273
  [o.UnaryOperator.Minus, "-"],
@@ -2405,7 +2427,11 @@ var ExpressionTranslatorVisitor = class {
2405
2427
  return this.factory.createConditional(cond, ast.trueCase.visitExpression(this, context), ast.falseCase.visitExpression(this, context));
2406
2428
  }
2407
2429
  visitDynamicImportExpr(ast, context) {
2408
- return this.factory.createDynamicImport(ast.url);
2430
+ const urlExpression = typeof ast.url === "string" ? this.factory.createLiteral(ast.url) : ast.url.visitExpression(this, context);
2431
+ if (ast.urlComment) {
2432
+ this.factory.attachComments(urlExpression, [o.leadingComment(ast.urlComment, true)]);
2433
+ }
2434
+ return this.factory.createDynamicImport(urlExpression);
2409
2435
  }
2410
2436
  visitNotExpr(ast, context) {
2411
2437
  return this.factory.createUnaryExpression("!", ast.condition.visitExpression(this, context));
@@ -2491,7 +2517,7 @@ function createRange(span) {
2491
2517
  };
2492
2518
  }
2493
2519
 
2494
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2520
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2495
2521
  import ts17 from "typescript";
2496
2522
  var INELIGIBLE = {};
2497
2523
  function canEmitType(type, canEmit) {
@@ -2566,11 +2592,11 @@ var TypeEmitter = class {
2566
2592
  }
2567
2593
  };
2568
2594
 
2569
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2595
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2570
2596
  import * as o2 from "@angular/compiler";
2571
2597
  import ts19 from "typescript";
2572
2598
 
2573
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2599
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2574
2600
  import ts18 from "typescript";
2575
2601
  function tsNumericExpression(value) {
2576
2602
  if (value < 0) {
@@ -2580,7 +2606,7 @@ function tsNumericExpression(value) {
2580
2606
  return ts18.factory.createNumericLiteral(value);
2581
2607
  }
2582
2608
 
2583
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2609
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2584
2610
  function translateType(type, contextFile, reflector, refEmitter, imports) {
2585
2611
  return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
2586
2612
  }
@@ -2797,7 +2823,7 @@ var TypeTranslatorVisitor = class {
2797
2823
  }
2798
2824
  };
2799
2825
 
2800
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2826
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2801
2827
  import ts20 from "typescript";
2802
2828
  var PureAnnotation;
2803
2829
  (function(PureAnnotation2) {
@@ -2876,7 +2902,7 @@ var TypeScriptAstFactory = class {
2876
2902
  return ts20.factory.createCallExpression(
2877
2903
  ts20.factory.createToken(ts20.SyntaxKind.ImportKeyword),
2878
2904
  void 0,
2879
- [ts20.factory.createStringLiteral(url)]
2905
+ [typeof url === "string" ? ts20.factory.createStringLiteral(url) : url]
2880
2906
  );
2881
2907
  }
2882
2908
  createFunctionDeclaration(functionName, parameters, body) {
@@ -3000,7 +3026,7 @@ function attachComments(statement, leadingComments) {
3000
3026
  }
3001
3027
  }
3002
3028
 
3003
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
3029
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
3004
3030
  function translateExpression(contextFile, expression, imports, options = {}) {
3005
3031
  return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
3006
3032
  }
@@ -3049,6 +3075,7 @@ export {
3049
3075
  AliasStrategy,
3050
3076
  relativePathBetween,
3051
3077
  normalizeSeparators,
3078
+ getProjectRelativePath,
3052
3079
  NoopImportRewriter,
3053
3080
  R3SymbolsImportRewriter,
3054
3081
  loadIsReferencedAliasDeclarationPatch,
@@ -3088,13 +3115,13 @@ export {
3088
3115
  * Copyright Google LLC All Rights Reserved.
3089
3116
  *
3090
3117
  * Use of this source code is governed by an MIT-style license that can be
3091
- * found in the LICENSE file at https://angular.io/license
3118
+ * found in the LICENSE file at https://angular.dev/license
3092
3119
  */
3093
3120
  /**
3094
3121
  * @license
3095
3122
  * Copyright Google LLC All Rights Reserved.
3096
3123
  *
3097
3124
  * Use of this source code is governed by an MIT-style license that can be
3098
- * found in the LICENSE file at https://angular.io/license
3125
+ * found in the LICENSE file at https://angular.dev/license
3099
3126
  */
3100
- //# sourceMappingURL=chunk-5DVL3S3Z.js.map
3127
+ //# sourceMappingURL=chunk-O2RMLJTP.js.map