@angular/compiler-cli 19.0.0-next.7 → 19.0.0-next.9

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 (50) hide show
  1. package/bundles/{chunk-FMA7PJT3.js → chunk-3Z25BX6N.js} +7 -7
  2. package/bundles/{chunk-24RAQD7D.js → chunk-5W3ITOS7.js} +6 -6
  3. package/bundles/chunk-5W3ITOS7.js.map +6 -0
  4. package/bundles/{chunk-6YYOILZF.js → chunk-GCXHOI3T.js} +185 -139
  5. package/bundles/chunk-GCXHOI3T.js.map +6 -0
  6. package/bundles/{chunk-AOL33GUJ.js → chunk-JF4LKQQP.js} +31 -31
  7. package/bundles/{chunk-IF37SPTA.js → chunk-OSPR7JSU.js} +46 -45
  8. package/bundles/chunk-OSPR7JSU.js.map +6 -0
  9. package/bundles/{chunk-EH5E5HQO.js → chunk-RT2QTF73.js} +3 -3
  10. package/bundles/{chunk-4SDD6AUK.js → chunk-U6J7NRJM.js} +115 -93
  11. package/bundles/chunk-U6J7NRJM.js.map +6 -0
  12. package/bundles/{chunk-MTBZ3GX2.js → chunk-UJ2J6WV4.js} +8 -8
  13. package/bundles/{chunk-EWRID7KM.js → chunk-XP6IMCQP.js} +12 -12
  14. package/bundles/{chunk-UQPYSPIX.js → chunk-XSNUHRLJ.js} +5 -5
  15. package/bundles/{chunk-XMNIXGGD.js → chunk-ZQ7CP635.js} +3 -3
  16. package/bundles/index.js +12 -12
  17. package/bundles/linker/babel/index.js +12 -12
  18. package/bundles/linker/index.js +4 -4
  19. package/bundles/ngcc/index.js +1 -1
  20. package/bundles/private/bazel.js +1 -1
  21. package/bundles/private/localize.js +3 -3
  22. package/bundles/private/migrations.js +4 -4
  23. package/bundles/private/tooling.js +6 -6
  24. package/bundles/src/bin/ng_xi18n.js +10 -10
  25. package/bundles/src/bin/ngc.js +8 -8
  26. package/bundles_metadata.json +1 -1
  27. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  28. package/package.json +3 -3
  29. package/src/ngtsc/annotations/common/src/api.d.ts +14 -0
  30. package/src/ngtsc/annotations/component/src/handler.d.ts +3 -1
  31. package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -1
  32. package/src/ngtsc/annotations/directive/src/shared.d.ts +1 -1
  33. package/src/ngtsc/annotations/src/pipe.d.ts +2 -1
  34. package/src/ngtsc/core/api/src/interfaces.d.ts +14 -0
  35. package/src/ngtsc/core/api/src/public_options.d.ts +4 -0
  36. package/src/ngtsc/diagnostics/src/error_code.d.ts +4 -0
  37. package/src/ngtsc/typecheck/api/checker.d.ts +1 -1
  38. package/src/ngtsc/typecheck/src/checker.d.ts +1 -1
  39. package/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.d.ts +6 -0
  40. package/bundles/chunk-24RAQD7D.js.map +0 -6
  41. package/bundles/chunk-4SDD6AUK.js.map +0 -6
  42. package/bundles/chunk-6YYOILZF.js.map +0 -6
  43. package/bundles/chunk-IF37SPTA.js.map +0 -6
  44. /package/bundles/{chunk-FMA7PJT3.js.map → chunk-3Z25BX6N.js.map} +0 -0
  45. /package/bundles/{chunk-AOL33GUJ.js.map → chunk-JF4LKQQP.js.map} +0 -0
  46. /package/bundles/{chunk-EH5E5HQO.js.map → chunk-RT2QTF73.js.map} +0 -0
  47. /package/bundles/{chunk-MTBZ3GX2.js.map → chunk-UJ2J6WV4.js.map} +0 -0
  48. /package/bundles/{chunk-EWRID7KM.js.map → chunk-XP6IMCQP.js.map} +0 -0
  49. /package/bundles/{chunk-UQPYSPIX.js.map → chunk-XSNUHRLJ.js.map} +0 -0
  50. /package/bundles/{chunk-XMNIXGGD.js.map → chunk-ZQ7CP635.js.map} +0 -0
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-EWRID7KM.js";
7
+ } from "./chunk-XP6IMCQP.js";
8
8
  import {
9
9
  CompilationMode,
10
10
  ComponentDecoratorHandler,
@@ -51,7 +51,7 @@ import {
51
51
  retagAllTsFiles,
52
52
  tryParseInitializerApi,
53
53
  untagAllTsFiles
54
- } from "./chunk-6YYOILZF.js";
54
+ } from "./chunk-GCXHOI3T.js";
55
55
  import {
56
56
  AbsoluteModuleStrategy,
57
57
  AliasStrategy,
@@ -88,14 +88,14 @@ import {
88
88
  relativePathBetween,
89
89
  replaceTsWithNgInErrors,
90
90
  toUnredirectedSourceFile
91
- } from "./chunk-IF37SPTA.js";
91
+ } from "./chunk-OSPR7JSU.js";
92
92
  import {
93
93
  ActivePerfRecorder,
94
94
  DelegatingPerfRecorder,
95
95
  PerfCheckpoint,
96
96
  PerfEvent,
97
97
  PerfPhase
98
- } from "./chunk-UQPYSPIX.js";
98
+ } from "./chunk-XSNUHRLJ.js";
99
99
  import {
100
100
  LogicalFileSystem,
101
101
  absoluteFrom,
@@ -105,9 +105,9 @@ import {
105
105
  getFileSystem,
106
106
  join,
107
107
  resolve
108
- } from "./chunk-MTBZ3GX2.js";
108
+ } from "./chunk-UJ2J6WV4.js";
109
109
 
110
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
110
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
111
111
  var DEFAULT_ERROR_CODE = 100;
112
112
  var UNKNOWN_ERROR_CODE = 500;
113
113
  var SOURCE = "angular";
@@ -125,7 +125,7 @@ var EmitFlags;
125
125
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
126
126
  })(EmitFlags || (EmitFlags = {}));
127
127
 
128
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
128
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
129
129
  import ts from "typescript";
130
130
  var wrapHostForTest = null;
131
131
  function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
@@ -135,7 +135,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
135
135
  return tsHost;
136
136
  }
137
137
 
138
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
138
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
139
139
  var EntryType;
140
140
  (function(EntryType2) {
141
141
  EntryType2["Block"] = "block";
@@ -182,23 +182,23 @@ function isDocEntryWithSourceInfo(entry) {
182
182
  return "source" in entry;
183
183
  }
184
184
 
185
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
185
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
186
186
  import ts11 from "typescript";
187
187
 
188
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
188
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
189
189
  import ts5 from "typescript";
190
190
 
191
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
191
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
192
192
  function isAngularPrivateName(name) {
193
193
  var _a;
194
194
  const firstChar = (_a = name[0]) != null ? _a : "";
195
195
  return firstChar === "\u0275" || firstChar === "_";
196
196
  }
197
197
 
198
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
198
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
199
199
  import ts3 from "typescript";
200
200
 
201
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
201
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
202
202
  function extractGenerics(declaration) {
203
203
  var _a, _b;
204
204
  return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
@@ -211,7 +211,7 @@ function extractGenerics(declaration) {
211
211
  })) != null ? _b : [];
212
212
  }
213
213
 
214
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
214
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
215
215
  import ts2 from "typescript";
216
216
  var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf|ViewChild|ViewChildren|ContentChild|ContentChildren))/g;
217
217
  function extractJsDocTags(node) {
@@ -255,12 +255,12 @@ function unescapeAngularDecorators(comment) {
255
255
  return comment.replace(/_NG_AT_/g, "@");
256
256
  }
257
257
 
258
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
258
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
259
259
  function extractResolvedTypeString(node, checker) {
260
260
  return checker.typeToString(checker.getTypeAtLocation(node));
261
261
  }
262
262
 
263
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
263
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
264
264
  var FunctionExtractor = class {
265
265
  constructor(name, exportDeclaration, typeChecker) {
266
266
  this.name = name;
@@ -348,7 +348,7 @@ function findImplementationOfFunction(node, typeChecker) {
348
348
  return implementation;
349
349
  }
350
350
 
351
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
351
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
352
352
  import ts4 from "typescript";
353
353
  function isInternal(member) {
354
354
  return extractJsDocTags(member).some((tag) => tag.name === "internal") || hasLeadingInternalComment(member);
@@ -367,7 +367,7 @@ function hasLeadingInternalComment(member) {
367
367
  )) != null ? _a : false;
368
368
  }
369
369
 
370
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
370
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
371
371
  var ClassExtractor = class {
372
372
  constructor(declaration, typeChecker) {
373
373
  this.declaration = declaration;
@@ -402,7 +402,7 @@ var ClassExtractor = class {
402
402
  extractClassMember(memberDeclaration) {
403
403
  if (this.isMethod(memberDeclaration)) {
404
404
  return this.extractMethod(memberDeclaration);
405
- } else if (this.isProperty(memberDeclaration)) {
405
+ } else if (this.isProperty(memberDeclaration) && !this.hasPrivateComputedProperty(memberDeclaration)) {
406
406
  return this.extractClassProperty(memberDeclaration);
407
407
  } else if (ts5.isAccessor(memberDeclaration)) {
408
408
  return this.extractGetterSetter(memberDeclaration);
@@ -562,6 +562,9 @@ var ClassExtractor = class {
562
562
  const modifiers = (_a = this.declaration.modifiers) != null ? _a : [];
563
563
  return modifiers.some((mod) => mod.kind === ts5.SyntaxKind.AbstractKeyword);
564
564
  }
565
+ hasPrivateComputedProperty(property) {
566
+ return ts5.isComputedPropertyName(property.name) && property.name.expression.getText().startsWith("\u0275");
567
+ }
565
568
  };
566
569
  var DirectiveExtractor = class extends ClassExtractor {
567
570
  constructor(declaration, reference, metadata, checker) {
@@ -655,7 +658,7 @@ function extractInterface(declaration, typeChecker) {
655
658
  return extractor.extract();
656
659
  }
657
660
 
658
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
661
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
659
662
  import ts6 from "typescript";
660
663
  var LITERAL_AS_ENUM_TAG = "object-literal-as-enum";
661
664
  function extractConstant(declaration, typeChecker) {
@@ -713,7 +716,7 @@ function extractLiteralPropertiesAsEnumMembers(declaration) {
713
716
  });
714
717
  }
715
718
 
716
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
719
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
717
720
  import ts7 from "typescript";
718
721
  function extractorDecorator(declaration, typeChecker) {
719
722
  const documentedNode = getDecoratorJsDocNode(declaration);
@@ -786,7 +789,7 @@ function getDecoratorJsDocNode(declaration) {
786
789
  return callSignature;
787
790
  }
788
791
 
789
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
792
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
790
793
  import ts8 from "typescript";
791
794
  function extractEnum(declaration, typeChecker) {
792
795
  return {
@@ -817,7 +820,7 @@ function getEnumMemberValue(memberNode) {
817
820
  return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
818
821
  }
819
822
 
820
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
823
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
821
824
  import ts9 from "typescript";
822
825
  var initializerApiTag = "initializerApiFunction";
823
826
  function isInitializerApiFunction(node, typeChecker) {
@@ -926,7 +929,7 @@ function extractFunctionWithOverloads(name, type, typeChecker) {
926
929
  };
927
930
  }
928
931
 
929
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
932
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
930
933
  function extractTypeAlias(declaration) {
931
934
  return {
932
935
  name: declaration.name.getText(),
@@ -938,7 +941,7 @@ function extractTypeAlias(declaration) {
938
941
  };
939
942
  }
940
943
 
941
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/import_extractor.mjs
944
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/import_extractor.mjs
942
945
  import ts10 from "typescript";
943
946
  function getImportedSymbols(sourceFile) {
944
947
  const importSpecifiers = /* @__PURE__ */ new Map();
@@ -963,7 +966,7 @@ function getImportedSymbols(sourceFile) {
963
966
  return importSpecifiers;
964
967
  }
965
968
 
966
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
969
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
967
970
  var DocsExtractor = class {
968
971
  constructor(typeChecker, metadataReader) {
969
972
  this.typeChecker = typeChecker;
@@ -1049,11 +1052,11 @@ function getRelativeFilePath(sourceFile, rootDir) {
1049
1052
  return relativePath;
1050
1053
  }
1051
1054
 
1052
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
1055
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
1053
1056
  import { HtmlParser, MessageBundle } from "@angular/compiler";
1054
1057
  import ts26 from "typescript";
1055
1058
 
1056
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
1059
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
1057
1060
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
1058
1061
  import * as path from "path";
1059
1062
  function i18nGetExtension(formatName) {
@@ -1106,10 +1109,10 @@ function getPathNormalizer(basePath) {
1106
1109
  };
1107
1110
  }
1108
1111
 
1109
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
1112
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
1110
1113
  import ts12 from "typescript";
1111
1114
 
1112
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
1115
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
1113
1116
  function toNumbers(value) {
1114
1117
  const suffixIndex = value.lastIndexOf("-");
1115
1118
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -1144,7 +1147,7 @@ function compareVersions(v1, v2) {
1144
1147
  return compareNumbers(toNumbers(v1), toNumbers(v2));
1145
1148
  }
1146
1149
 
1147
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
1150
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
1148
1151
  var MIN_TS_VERSION = "5.5.0";
1149
1152
  var MAX_TS_VERSION = "5.7.0";
1150
1153
  var tsVersion = ts12.version;
@@ -1157,11 +1160,11 @@ function verifySupportedTypeScriptVersion() {
1157
1160
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
1158
1161
  }
1159
1162
 
1160
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
1163
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
1161
1164
  import { R3Identifiers } from "@angular/compiler";
1162
1165
  import ts24 from "typescript";
1163
1166
 
1164
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
1167
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
1165
1168
  var CycleAnalyzer = class {
1166
1169
  constructor(importGraph) {
1167
1170
  this.importGraph = importGraph;
@@ -1232,7 +1235,7 @@ var Cycle = class {
1232
1235
  }
1233
1236
  };
1234
1237
 
1235
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
1238
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
1236
1239
  import ts13 from "typescript";
1237
1240
  var ImportGraph = class {
1238
1241
  constructor(checker, perf) {
@@ -1324,7 +1327,7 @@ var Found = class {
1324
1327
  }
1325
1328
  };
1326
1329
 
1327
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
1330
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
1328
1331
  import ts14 from "typescript";
1329
1332
  var FlatIndexGenerator = class {
1330
1333
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -1349,7 +1352,7 @@ export * from '${relativeEntryPoint}';
1349
1352
  }
1350
1353
  };
1351
1354
 
1352
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
1355
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
1353
1356
  function findFlatIndexEntryPoint(rootFiles) {
1354
1357
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
1355
1358
  let resolvedEntryPoint = null;
@@ -1365,7 +1368,7 @@ function findFlatIndexEntryPoint(rootFiles) {
1365
1368
  return resolvedEntryPoint;
1366
1369
  }
1367
1370
 
1368
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
1371
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
1369
1372
  import ts15 from "typescript";
1370
1373
  function checkForPrivateExports(entryPoint, checker, refGraph) {
1371
1374
  const diagnostics = [];
@@ -1445,7 +1448,7 @@ function getDescriptorOfDeclaration(decl) {
1445
1448
  }
1446
1449
  }
1447
1450
 
1448
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
1451
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
1449
1452
  var ReferenceGraph = class {
1450
1453
  constructor() {
1451
1454
  this.references = /* @__PURE__ */ new Map();
@@ -1499,7 +1502,7 @@ var ReferenceGraph = class {
1499
1502
  }
1500
1503
  };
1501
1504
 
1502
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1505
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1503
1506
  var FileDependencyGraph = class {
1504
1507
  constructor() {
1505
1508
  this.nodes = /* @__PURE__ */ new Map();
@@ -1566,7 +1569,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
1566
1569
  return false;
1567
1570
  }
1568
1571
 
1569
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1572
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1570
1573
  var IncrementalStateKind;
1571
1574
  (function(IncrementalStateKind2) {
1572
1575
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -1574,7 +1577,7 @@ var IncrementalStateKind;
1574
1577
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
1575
1578
  })(IncrementalStateKind || (IncrementalStateKind = {}));
1576
1579
 
1577
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1580
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1578
1581
  var PhaseKind;
1579
1582
  (function(PhaseKind2) {
1580
1583
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -1775,7 +1778,7 @@ function toOriginalSourceFile(sf) {
1775
1778
  }
1776
1779
  }
1777
1780
 
1778
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1781
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1779
1782
  var TrackedIncrementalBuildStrategy = class {
1780
1783
  constructor() {
1781
1784
  this.state = null;
@@ -1811,7 +1814,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
1811
1814
  };
1812
1815
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
1813
1816
 
1814
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1817
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1815
1818
  var IdentifierKind;
1816
1819
  (function(IdentifierKind2) {
1817
1820
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -1830,7 +1833,7 @@ var AbsoluteSourceSpan = class {
1830
1833
  }
1831
1834
  };
1832
1835
 
1833
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1836
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1834
1837
  var IndexingContext = class {
1835
1838
  constructor() {
1836
1839
  this.components = /* @__PURE__ */ new Set();
@@ -1840,10 +1843,10 @@ var IndexingContext = class {
1840
1843
  }
1841
1844
  };
1842
1845
 
1843
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1846
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1844
1847
  import { ParseSourceFile } from "@angular/compiler";
1845
1848
 
1846
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1849
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1847
1850
  import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate, TmplAstVariable } from "@angular/compiler";
1848
1851
  var ExpressionVisitor = class extends RecursiveAstVisitor {
1849
1852
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
@@ -2138,7 +2141,7 @@ function getTemplateIdentifiers(boundTemplate) {
2138
2141
  return { identifiers: visitor.identifiers, errors: visitor.errors };
2139
2142
  }
2140
2143
 
2141
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
2144
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
2142
2145
  function generateAnalysis(context) {
2143
2146
  const analysis = /* @__PURE__ */ new Map();
2144
2147
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -2174,7 +2177,7 @@ function generateAnalysis(context) {
2174
2177
  return analysis;
2175
2178
  }
2176
2179
 
2177
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
2180
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
2178
2181
  var NgModuleIndexImpl = class {
2179
2182
  constructor(metaReader, localReader) {
2180
2183
  this.metaReader = metaReader;
@@ -2263,7 +2266,7 @@ var NgModuleIndexImpl = class {
2263
2266
  }
2264
2267
  };
2265
2268
 
2266
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
2269
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
2267
2270
  import ts16 from "typescript";
2268
2271
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
2269
2272
  var RESOURCE_MARKER = ".$ngresource$";
@@ -2304,7 +2307,8 @@ var AdapterResourceLoader = class {
2304
2307
  const resourceContext = {
2305
2308
  type: "style",
2306
2309
  containingFile: context.containingFile,
2307
- resourceFile: resolvedUrl
2310
+ resourceFile: resolvedUrl,
2311
+ className: context.className
2308
2312
  };
2309
2313
  result = Promise.resolve(result).then(async (str) => {
2310
2314
  const transformResult = await this.adapter.transformResource(str, resourceContext);
@@ -2330,7 +2334,9 @@ var AdapterResourceLoader = class {
2330
2334
  const transformResult = await this.adapter.transformResource(data, {
2331
2335
  type: "style",
2332
2336
  containingFile: context.containingFile,
2333
- resourceFile: null
2337
+ resourceFile: null,
2338
+ order: context.order,
2339
+ className: context.className
2334
2340
  });
2335
2341
  if (transformResult === null) {
2336
2342
  return data;
@@ -2413,7 +2419,7 @@ function createLookupResolutionHost(adapter) {
2413
2419
  };
2414
2420
  }
2415
2421
 
2416
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
2422
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
2417
2423
  var StandaloneComponentScopeReader = class {
2418
2424
  constructor(metaReader, localModuleReader, dtsModuleReader) {
2419
2425
  this.metaReader = metaReader;
@@ -2509,10 +2515,10 @@ var StandaloneComponentScopeReader = class {
2509
2515
  }
2510
2516
  };
2511
2517
 
2512
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
2518
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
2513
2519
  import { ASTWithSource as ASTWithSource3, BindingType, Interpolation, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
2514
2520
 
2515
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
2521
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
2516
2522
  import ts17 from "typescript";
2517
2523
  var SIGNAL_FNS = /* @__PURE__ */ new Set([
2518
2524
  "WritableSignal",
@@ -2532,7 +2538,7 @@ function isSignalSymbol(symbol) {
2532
2538
  });
2533
2539
  }
2534
2540
 
2535
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
2541
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
2536
2542
  import { ASTWithSource as ASTWithSource2, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
2537
2543
  var TemplateCheckWithVisitor = class {
2538
2544
  constructor() {
@@ -2668,7 +2674,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
2668
2674
  }
2669
2675
  };
2670
2676
 
2671
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
2677
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
2672
2678
  var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
2673
2679
  var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
2674
2680
  var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
@@ -2720,7 +2726,7 @@ var factory = {
2720
2726
  create: () => new InterpolatedSignalCheck()
2721
2727
  };
2722
2728
 
2723
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
2729
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
2724
2730
  import { TmplAstBoundEvent } from "@angular/compiler";
2725
2731
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
2726
2732
  constructor() {
@@ -2746,7 +2752,7 @@ var factory2 = {
2746
2752
  create: () => new InvalidBananaInBoxCheck()
2747
2753
  };
2748
2754
 
2749
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
2755
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
2750
2756
  import { TmplAstTemplate as TmplAstTemplate2 } from "@angular/compiler";
2751
2757
  var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
2752
2758
  ["ngIf", { directive: "NgIf", builtIn: "@if" }],
@@ -2791,7 +2797,7 @@ var factory3 = {
2791
2797
  }
2792
2798
  };
2793
2799
 
2794
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
2800
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
2795
2801
  import { TmplAstTemplate as TmplAstTemplate3 } from "@angular/compiler";
2796
2802
  var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
2797
2803
  constructor() {
@@ -2824,7 +2830,7 @@ var factory4 = {
2824
2830
  create: () => new MissingNgForOfLetCheck()
2825
2831
  };
2826
2832
 
2827
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
2833
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
2828
2834
  import { Binary } from "@angular/compiler";
2829
2835
  import ts18 from "typescript";
2830
2836
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -2870,7 +2876,7 @@ var factory5 = {
2870
2876
  }
2871
2877
  };
2872
2878
 
2873
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
2879
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
2874
2880
  import { SafeCall, SafeKeyedRead, SafePropertyRead } from "@angular/compiler";
2875
2881
  import ts19 from "typescript";
2876
2882
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -2917,7 +2923,7 @@ var factory6 = {
2917
2923
  }
2918
2924
  };
2919
2925
 
2920
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
2926
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
2921
2927
  import { TmplAstBoundAttribute as TmplAstBoundAttribute2 } from "@angular/compiler";
2922
2928
  var STYLE_SUFFIXES = ["px", "%", "em"];
2923
2929
  var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
@@ -2941,7 +2947,7 @@ var factory7 = {
2941
2947
  create: () => new SuffixNotSupportedCheck()
2942
2948
  };
2943
2949
 
2944
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
2950
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
2945
2951
  import { TmplAstTextAttribute } from "@angular/compiler";
2946
2952
  var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
2947
2953
  constructor() {
@@ -2980,7 +2986,7 @@ var factory8 = {
2980
2986
  create: () => new TextAttributeNotBindingSpec()
2981
2987
  };
2982
2988
 
2983
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
2989
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
2984
2990
  import { ASTWithSource as ASTWithSource4, Call, Chain, Conditional, ParsedEventType, PropertyRead as PropertyRead3, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead2, TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
2985
2991
  var UninvokedFunctionInEventBindingSpec = class extends TemplateCheckWithVisitor {
2986
2992
  constructor() {
@@ -3032,7 +3038,7 @@ var factory9 = {
3032
3038
  create: () => new UninvokedFunctionInEventBindingSpec()
3033
3039
  };
3034
3040
 
3035
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
3041
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
3036
3042
  import { AST, ASTWithSource as ASTWithSource5, TmplAstLetDeclaration } from "@angular/compiler";
3037
3043
  var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
3038
3044
  constructor() {
@@ -3077,10 +3083,10 @@ var factory10 = {
3077
3083
  create: () => new UnusedLetDeclarationCheck()
3078
3084
  };
3079
3085
 
3080
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
3086
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
3081
3087
  import ts20 from "typescript";
3082
3088
 
3083
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
3089
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
3084
3090
  var DiagnosticCategoryLabel;
3085
3091
  (function(DiagnosticCategoryLabel2) {
3086
3092
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -3088,7 +3094,7 @@ var DiagnosticCategoryLabel;
3088
3094
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
3089
3095
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
3090
3096
 
3091
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
3097
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
3092
3098
  var ExtendedTemplateCheckerImpl = class {
3093
3099
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
3094
3100
  var _a, _b, _c, _d, _e;
@@ -3141,7 +3147,7 @@ function assertNever(value) {
3141
3147
  ${value}`);
3142
3148
  }
3143
3149
 
3144
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
3150
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
3145
3151
  var ALL_DIAGNOSTIC_FACTORIES = [
3146
3152
  factory2,
3147
3153
  factory5,
@@ -3160,7 +3166,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
3160
3166
  ...ALL_DIAGNOSTIC_FACTORIES.map((factory11) => factory11.name)
3161
3167
  ]);
3162
3168
 
3163
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
3169
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
3164
3170
  import { ASTWithSource as ASTWithSource6, ImplicitReceiver as ImplicitReceiver2, ParsedEventType as ParsedEventType2, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundEvent as TmplAstBoundEvent3, TmplAstLetDeclaration as TmplAstLetDeclaration2, TmplAstRecursiveVisitor as TmplAstRecursiveVisitor2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
3165
3171
  import ts21 from "typescript";
3166
3172
  var TemplateSemanticsCheckerImpl = class {
@@ -3251,7 +3257,7 @@ function unwrapAstWithSource(ast) {
3251
3257
  return ast instanceof ASTWithSource6 ? ast.ast : ast;
3252
3258
  }
3253
3259
 
3254
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
3260
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
3255
3261
  import ts22 from "typescript";
3256
3262
  var APIS_TO_CHECK = [
3257
3263
  INPUT_INITIALIZER_FN,
@@ -3302,7 +3308,7 @@ var InitializerApiUsageRule = class {
3302
3308
  }
3303
3309
  };
3304
3310
 
3305
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.mjs
3311
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.mjs
3306
3312
  import ts23 from "typescript";
3307
3313
  var UnusedStandaloneImportsRule = class {
3308
3314
  constructor(templateTypeChecker, typeCheckingConfig, importedSymbolsTracker) {
@@ -3337,34 +3343,49 @@ var UnusedStandaloneImportsRule = class {
3337
3343
  return makeDiagnostic(ErrorCode.UNUSED_STANDALONE_IMPORTS, metadata.rawImports, "Imports array contains unused imports", unused.map(([ref, type, name]) => makeRelatedInformation(ref.getOriginForDiagnostics(metadata.rawImports), `${type} "${name}" is not used within the template`)), category);
3338
3344
  }
3339
3345
  getUnusedSymbols(metadata, usedDirectives, usedPipes) {
3340
- if (metadata.imports === null || metadata.rawImports === null) {
3346
+ const { imports, rawImports } = metadata;
3347
+ if (imports === null || rawImports === null) {
3341
3348
  return null;
3342
3349
  }
3343
3350
  let unused = null;
3344
- for (const current of metadata.imports) {
3351
+ for (const current of imports) {
3345
3352
  const currentNode = current.node;
3346
3353
  const dirMeta = this.templateTypeChecker.getDirectiveMetadata(currentNode);
3347
3354
  if (dirMeta !== null) {
3348
- if (dirMeta.isStandalone && (usedDirectives === null || !usedDirectives.has(currentNode))) {
3355
+ if (dirMeta.isStandalone && !usedDirectives.has(currentNode) && !this.isPotentialSharedReference(current, rawImports)) {
3349
3356
  unused != null ? unused : unused = [];
3350
3357
  unused.push([current, dirMeta.isComponent ? "Component" : "Directive", dirMeta.name]);
3351
3358
  }
3352
3359
  continue;
3353
3360
  }
3354
3361
  const pipeMeta = this.templateTypeChecker.getPipeMetadata(currentNode);
3355
- if (pipeMeta !== null && pipeMeta.isStandalone && (usedPipes === null || !usedPipes.has(pipeMeta.name))) {
3362
+ if (pipeMeta !== null && pipeMeta.isStandalone && !usedPipes.has(pipeMeta.name) && !this.isPotentialSharedReference(current, rawImports)) {
3356
3363
  unused != null ? unused : unused = [];
3357
3364
  unused.push([current, "Pipe", pipeMeta.ref.node.name.text]);
3358
3365
  }
3359
3366
  }
3360
3367
  return unused;
3361
3368
  }
3369
+ isPotentialSharedReference(reference, rawImports) {
3370
+ var _a;
3371
+ if (reference.getIdentityInExpression(rawImports) !== null) {
3372
+ return false;
3373
+ }
3374
+ let current = reference.getIdentityIn(rawImports.getSourceFile());
3375
+ while (current !== null) {
3376
+ if (ts23.isVariableStatement(current)) {
3377
+ return !!((_a = current.modifiers) == null ? void 0 : _a.some((m) => m.kind === ts23.SyntaxKind.ExportKeyword));
3378
+ }
3379
+ current = current.parent;
3380
+ }
3381
+ return true;
3382
+ }
3362
3383
  };
3363
3384
 
3364
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/config.mjs
3385
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/config.mjs
3365
3386
  var UNUSED_STANDALONE_IMPORTS_RULE_ENABLED = true;
3366
3387
 
3367
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
3388
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
3368
3389
  var SourceFileValidator = class {
3369
3390
  constructor(reflector, importedSymbolsTracker, templateTypeChecker, typeCheckingConfig) {
3370
3391
  this.rules = [new InitializerApiUsageRule(reflector, importedSymbolsTracker)];
@@ -3405,7 +3426,7 @@ var SourceFileValidator = class {
3405
3426
  }
3406
3427
  };
3407
3428
 
3408
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
3429
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
3409
3430
  function coreHasSymbol(program, symbol) {
3410
3431
  const checker = program.getTypeChecker();
3411
3432
  for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
@@ -3424,7 +3445,7 @@ function isMaybeCore(sf) {
3424
3445
  return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
3425
3446
  }
3426
3447
 
3427
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
3448
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
3428
3449
  import semver from "semver";
3429
3450
  function coreVersionSupportsFeature(coreVersion, minVersion) {
3430
3451
  if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
@@ -3433,7 +3454,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
3433
3454
  return semver.satisfies(coreVersion, minVersion);
3434
3455
  }
3435
3456
 
3436
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
3457
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
3437
3458
  var CompilationTicketKind;
3438
3459
  (function(CompilationTicketKind2) {
3439
3460
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -3969,7 +3990,7 @@ var NgCompiler = class {
3969
3990
  return diagnostics;
3970
3991
  }
3971
3992
  makeCompilation() {
3972
- var _a, _b, _c, _d, _e;
3993
+ var _a, _b, _c, _d, _e, _f;
3973
3994
  const isCore = isAngularCorePackage(this.inputProgram);
3974
3995
  let compilationMode = CompilationMode.FULL;
3975
3996
  if (!isCore) {
@@ -4053,6 +4074,7 @@ var NgCompiler = class {
4053
4074
  const strictCtorDeps = this.options.strictInjectionParameters || false;
4054
4075
  const supportJitMode = (_b = this.options["supportJitMode"]) != null ? _b : true;
4055
4076
  const supportTestBed = (_c = this.options["supportTestBed"]) != null ? _c : true;
4077
+ const externalRuntimeStyles = (_d = this.options["externalRuntimeStyles"]) != null ? _d : false;
4056
4078
  if (supportTestBed === false && compilationMode === CompilationMode.PARTIAL) {
4057
4079
  throw new Error('TestBed support ("supportTestBed" option) cannot be disabled in partial compilation mode.');
4058
4080
  }
@@ -4064,11 +4086,11 @@ var NgCompiler = class {
4064
4086
  }
4065
4087
  const jitDeclarationRegistry = new JitDeclarationRegistry();
4066
4088
  const handlers = [
4067
- new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, this.enableLetSyntax, localCompilationExtraImportsTracker, jitDeclarationRegistry, (_d = this.options.i18nPreserveWhitespaceForLegacyExtraction) != null ? _d : true),
4068
- new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, compilationMode, jitDeclarationRegistry),
4069
- new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode),
4089
+ new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, this.enableLetSyntax, externalRuntimeStyles, localCompilationExtraImportsTracker, jitDeclarationRegistry, (_e = this.options.i18nPreserveWhitespaceForLegacyExtraction) != null ? _e : true, !!this.options.strictStandalone),
4090
+ new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, compilationMode, jitDeclarationRegistry, !!this.options.strictStandalone),
4091
+ new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode, !!this.options.strictStandalone),
4070
4092
  new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
4071
- new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_e = this.options.onlyPublishPublicTypingsForNgModules) != null ? _e : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode, localCompilationExtraImportsTracker, jitDeclarationRegistry)
4093
+ new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_f = this.options.onlyPublishPublicTypingsForNgModules) != null ? _f : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode, localCompilationExtraImportsTracker, jitDeclarationRegistry)
4072
4094
  ];
4073
4095
  const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
4074
4096
  const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
@@ -4262,7 +4284,7 @@ function versionMapFromProgram(program, driver) {
4262
4284
  return versions;
4263
4285
  }
4264
4286
 
4265
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
4287
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
4266
4288
  import ts25 from "typescript";
4267
4289
  var DelegatingCompilerHost = class {
4268
4290
  get jsDocParsingMode() {
@@ -4401,7 +4423,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost {
4401
4423
  }
4402
4424
  };
4403
4425
 
4404
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
4426
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
4405
4427
  var NgtscProgram = class {
4406
4428
  constructor(rootNames, options, delegateHost, oldProgram) {
4407
4429
  this.options = options;
@@ -4627,15 +4649,15 @@ function mergeEmitResults(emitResults) {
4627
4649
  return { diagnostics, emitSkipped, emittedFiles };
4628
4650
  }
4629
4651
 
4630
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
4652
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
4631
4653
  function createProgram({ rootNames, options, host, oldProgram }) {
4632
4654
  return new NgtscProgram(rootNames, options, host, oldProgram);
4633
4655
  }
4634
4656
 
4635
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
4657
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
4636
4658
  import ts28 from "typescript";
4637
4659
 
4638
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
4660
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
4639
4661
  import ts27 from "typescript";
4640
4662
  function createMessageDiagnostic(messageText) {
4641
4663
  return {
@@ -4649,7 +4671,7 @@ function createMessageDiagnostic(messageText) {
4649
4671
  };
4650
4672
  }
4651
4673
 
4652
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
4674
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
4653
4675
  var defaultFormatHost = {
4654
4676
  getCurrentDirectory: () => ts28.sys.getCurrentDirectory(),
4655
4677
  getCanonicalFileName: (fileName) => fileName,
@@ -4880,4 +4902,4 @@ export {
4880
4902
  * Use of this source code is governed by an MIT-style license that can be
4881
4903
  * found in the LICENSE file at https://angular.dev/license
4882
4904
  */
4883
- //# sourceMappingURL=chunk-4SDD6AUK.js.map
4905
+ //# sourceMappingURL=chunk-U6J7NRJM.js.map