@angular/compiler-cli 16.0.0-rc.1 → 16.0.0-rc.3

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 (45) hide show
  1. package/bundles/{chunk-C4B5W2XC.js → chunk-2G3UVWBI.js} +8 -8
  2. package/bundles/{chunk-B6WD2R2T.js → chunk-7RPZKH3B.js} +21 -21
  3. package/bundles/{chunk-GVISPKNE.js → chunk-BC53B7EF.js} +5 -5
  4. package/bundles/{chunk-LYJKWJUC.js → chunk-CF2CT7RQ.js} +3 -3
  5. package/bundles/{chunk-TBUSSXUA.js → chunk-K2U2VZ7S.js} +7 -7
  6. package/bundles/{chunk-YGYAPJAN.js → chunk-N7X4GSO5.js} +110 -98
  7. package/bundles/chunk-N7X4GSO5.js.map +6 -0
  8. package/bundles/{chunk-SIHBKSBW.js → chunk-OKYKHPES.js} +31 -31
  9. package/bundles/{chunk-EKTJ7622.js → chunk-OULZQUKT.js} +7 -7
  10. package/bundles/{chunk-4MSEL6HO.js → chunk-QJ5WULBE.js} +180 -93
  11. package/bundles/chunk-QJ5WULBE.js.map +6 -0
  12. package/bundles/{chunk-FJTRGXZM.js → chunk-SQZL4JZ2.js} +5 -5
  13. package/bundles/{chunk-4UQC5DMJ.js → chunk-TCPBYER2.js} +6 -6
  14. package/bundles/{chunk-7PCPPTTO.js → chunk-URH5LEAG.js} +5 -5
  15. package/bundles/index.js +13 -13
  16. package/bundles/linker/babel/index.js +13 -13
  17. package/bundles/linker/index.js +5 -5
  18. package/bundles/private/bazel.js +1 -1
  19. package/bundles/private/localize.js +3 -3
  20. package/bundles/private/migrations.js +6 -6
  21. package/bundles/private/tooling.js +4 -4
  22. package/bundles/src/bin/ng_xi18n.js +11 -11
  23. package/bundles/src/bin/ngc.js +9 -9
  24. package/bundles_metadata.json +1 -1
  25. package/package.json +2 -2
  26. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +19 -4
  27. package/src/ngtsc/core/api/src/public_options.d.ts +4 -1
  28. package/src/ngtsc/core/src/compiler.d.ts +0 -7
  29. package/src/ngtsc/incremental/src/strategy.d.ts +6 -6
  30. package/src/ngtsc/metadata/index.d.ts +1 -0
  31. package/src/ngtsc/metadata/src/api.d.ts +11 -0
  32. package/src/ngtsc/metadata/src/providers.d.ts +43 -0
  33. package/src/ngtsc/transform/src/api.d.ts +6 -1
  34. package/bundles/chunk-4MSEL6HO.js.map +0 -6
  35. package/bundles/chunk-YGYAPJAN.js.map +0 -6
  36. /package/bundles/{chunk-C4B5W2XC.js.map → chunk-2G3UVWBI.js.map} +0 -0
  37. /package/bundles/{chunk-B6WD2R2T.js.map → chunk-7RPZKH3B.js.map} +0 -0
  38. /package/bundles/{chunk-GVISPKNE.js.map → chunk-BC53B7EF.js.map} +0 -0
  39. /package/bundles/{chunk-LYJKWJUC.js.map → chunk-CF2CT7RQ.js.map} +0 -0
  40. /package/bundles/{chunk-TBUSSXUA.js.map → chunk-K2U2VZ7S.js.map} +0 -0
  41. /package/bundles/{chunk-SIHBKSBW.js.map → chunk-OKYKHPES.js.map} +0 -0
  42. /package/bundles/{chunk-EKTJ7622.js.map → chunk-OULZQUKT.js.map} +0 -0
  43. /package/bundles/{chunk-FJTRGXZM.js.map → chunk-SQZL4JZ2.js.map} +0 -0
  44. /package/bundles/{chunk-4UQC5DMJ.js.map → chunk-TCPBYER2.js.map} +0 -0
  45. /package/bundles/{chunk-7PCPPTTO.js.map → chunk-URH5LEAG.js.map} +0 -0
@@ -9,13 +9,13 @@ import {
9
9
  reflectObjectLiteral,
10
10
  reflectTypeEntityToDeclaration,
11
11
  typeNodeToValueExpr
12
- } from "./chunk-4UQC5DMJ.js";
12
+ } from "./chunk-TCPBYER2.js";
13
13
  import {
14
14
  ImportManager,
15
15
  translateExpression,
16
16
  translateStatement,
17
17
  translateType
18
- } from "./chunk-C4B5W2XC.js";
18
+ } from "./chunk-2G3UVWBI.js";
19
19
  import {
20
20
  ErrorCode,
21
21
  FatalDiagnosticError,
@@ -32,18 +32,18 @@ import {
32
32
  makeRelatedInformation,
33
33
  nodeDebugInfo,
34
34
  nodeNameForError
35
- } from "./chunk-B6WD2R2T.js";
35
+ } from "./chunk-7RPZKH3B.js";
36
36
  import {
37
37
  PerfEvent,
38
38
  PerfPhase
39
- } from "./chunk-7PCPPTTO.js";
39
+ } from "./chunk-URH5LEAG.js";
40
40
  import {
41
41
  absoluteFrom,
42
42
  absoluteFromSourceFile,
43
43
  relative
44
- } from "./chunk-TBUSSXUA.js";
44
+ } from "./chunk-K2U2VZ7S.js";
45
45
 
46
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
46
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
47
47
  import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
48
48
  import ts from "typescript";
49
49
  function valueReferenceToExpression(valueRef) {
@@ -280,7 +280,7 @@ function isAbstractClassDeclaration(clazz) {
280
280
  return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
281
281
  }
282
282
 
283
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
283
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
284
284
  var DynamicValue = class {
285
285
  constructor(node, reason, code) {
286
286
  this.node = node;
@@ -370,10 +370,10 @@ var DynamicValue = class {
370
370
  }
371
371
  };
372
372
 
373
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
373
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
374
374
  import ts2 from "typescript";
375
375
 
376
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
376
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
377
377
  var ResolvedModule = class {
378
378
  constructor(exports, evaluate) {
379
379
  this.exports = exports;
@@ -403,7 +403,7 @@ var EnumValue = class {
403
403
  var KnownFn = class {
404
404
  };
405
405
 
406
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
406
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
407
407
  var ArraySliceBuiltinFn = class extends KnownFn {
408
408
  constructor(lhs) {
409
409
  super();
@@ -455,14 +455,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
455
455
  }
456
456
  };
457
457
 
458
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
458
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
459
459
  var SyntheticValue = class {
460
460
  constructor(value) {
461
461
  this.value = value;
462
462
  }
463
463
  };
464
464
 
465
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
465
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
466
466
  function literalBinaryOp(op) {
467
467
  return { op, literal: true };
468
468
  }
@@ -1040,7 +1040,7 @@ function owningModule(context, override = null) {
1040
1040
  }
1041
1041
  }
1042
1042
 
1043
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1043
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1044
1044
  var PartialEvaluator = class {
1045
1045
  constructor(host, checker, dependencyTracker) {
1046
1046
  this.host = host;
@@ -1060,7 +1060,7 @@ var PartialEvaluator = class {
1060
1060
  }
1061
1061
  };
1062
1062
 
1063
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1063
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1064
1064
  import ts3 from "typescript";
1065
1065
  function describeResolvedType(value, maxDepth = 1) {
1066
1066
  var _a, _b;
@@ -1190,7 +1190,7 @@ function getContainerNode(node) {
1190
1190
  return node.getSourceFile();
1191
1191
  }
1192
1192
 
1193
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1193
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1194
1194
  import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
1195
1195
  import ts4 from "typescript";
1196
1196
  function getConstructorDependencies(clazz, reflector, isCore) {
@@ -1334,10 +1334,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
1334
1334
  return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
1335
1335
  }
1336
1336
 
1337
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1337
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1338
1338
  import ts7 from "typescript";
1339
1339
 
1340
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1340
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1341
1341
  var MetaKind;
1342
1342
  (function(MetaKind2) {
1343
1343
  MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
@@ -1350,10 +1350,10 @@ var MatchSource;
1350
1350
  MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
1351
1351
  })(MatchSource || (MatchSource = {}));
1352
1352
 
1353
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1353
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1354
1354
  import ts6 from "typescript";
1355
1355
 
1356
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1356
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1357
1357
  var ClassPropertyMapping = class {
1358
1358
  constructor(forwardMap) {
1359
1359
  this.forwardMap = forwardMap;
@@ -1431,7 +1431,7 @@ function reverseMapFromForwardMap(forwardMap) {
1431
1431
  return reverseMap;
1432
1432
  }
1433
1433
 
1434
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1434
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1435
1435
  import ts5 from "typescript";
1436
1436
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
1437
1437
  if (!ts5.isTupleTypeNode(def)) {
@@ -1613,7 +1613,7 @@ function hasInjectableFields(clazz, host) {
1613
1613
  return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
1614
1614
  }
1615
1615
 
1616
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1616
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1617
1617
  var DtsMetadataReader = class {
1618
1618
  constructor(checker, reflector) {
1619
1619
  this.checker = checker;
@@ -1638,7 +1638,8 @@ var DtsMetadataReader = class {
1638
1638
  rawDeclarations: null,
1639
1639
  rawImports: null,
1640
1640
  rawExports: null,
1641
- decorator: null
1641
+ decorator: null,
1642
+ mayDeclareProviders: true
1642
1643
  };
1643
1644
  }
1644
1645
  getDirectiveMetadata(ref) {
@@ -1679,7 +1680,8 @@ var DtsMetadataReader = class {
1679
1680
  isStandalone,
1680
1681
  imports: null,
1681
1682
  schemas: null,
1682
- decorator: null
1683
+ decorator: null,
1684
+ assumedToExportProviders: isComponent && isStandalone
1683
1685
  };
1684
1686
  }
1685
1687
  getPipeMetadata(ref) {
@@ -1781,7 +1783,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
1781
1783
  return result.length > 0 ? result : null;
1782
1784
  }
1783
1785
 
1784
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1786
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1785
1787
  function flattenInheritedDirectiveMetadata(reader, dir) {
1786
1788
  const topMeta = reader.getDirectiveMetadata(dir);
1787
1789
  if (topMeta === null) {
@@ -1839,7 +1841,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
1839
1841
  };
1840
1842
  }
1841
1843
 
1842
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
1844
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
1843
1845
  var LocalMetadataRegistry = class {
1844
1846
  constructor() {
1845
1847
  this.directives = /* @__PURE__ */ new Map();
@@ -1896,7 +1898,7 @@ var CompoundMetadataRegistry = class {
1896
1898
  }
1897
1899
  };
1898
1900
 
1899
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
1901
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
1900
1902
  var ResourceRegistry = class {
1901
1903
  constructor() {
1902
1904
  this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
@@ -1961,7 +1963,51 @@ var ResourceRegistry = class {
1961
1963
  }
1962
1964
  };
1963
1965
 
1964
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
1966
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
1967
+ var ExportedProviderStatusResolver = class {
1968
+ constructor(metaReader) {
1969
+ this.metaReader = metaReader;
1970
+ this.calculating = /* @__PURE__ */ new Set();
1971
+ }
1972
+ mayExportProviders(ref, dependencyCallback) {
1973
+ var _a;
1974
+ if (this.calculating.has(ref.node)) {
1975
+ return false;
1976
+ }
1977
+ this.calculating.add(ref.node);
1978
+ if (dependencyCallback !== void 0) {
1979
+ dependencyCallback(ref);
1980
+ }
1981
+ try {
1982
+ const dirMeta = this.metaReader.getDirectiveMetadata(ref);
1983
+ if (dirMeta !== null) {
1984
+ if (!dirMeta.isComponent || !dirMeta.isStandalone) {
1985
+ return false;
1986
+ }
1987
+ if (dirMeta.assumedToExportProviders) {
1988
+ return true;
1989
+ }
1990
+ return ((_a = dirMeta.imports) != null ? _a : []).some((importRef) => this.mayExportProviders(importRef, dependencyCallback));
1991
+ }
1992
+ const pipeMeta = this.metaReader.getPipeMetadata(ref);
1993
+ if (pipeMeta !== null) {
1994
+ return false;
1995
+ }
1996
+ const ngModuleMeta = this.metaReader.getNgModuleMetadata(ref);
1997
+ if (ngModuleMeta !== null) {
1998
+ if (ngModuleMeta.mayDeclareProviders) {
1999
+ return true;
2000
+ }
2001
+ return ngModuleMeta.imports.some((importRef) => this.mayExportProviders(importRef, dependencyCallback));
2002
+ }
2003
+ return false;
2004
+ } finally {
2005
+ this.calculating.delete(ref.node);
2006
+ }
2007
+ }
2008
+ };
2009
+
2010
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
1965
2011
  var EMPTY_ARRAY = [];
1966
2012
  var HostDirectivesResolver = class {
1967
2013
  constructor(metaReader) {
@@ -2022,7 +2068,7 @@ function resolveOutput(bindingName) {
2022
2068
  return bindingName;
2023
2069
  }
2024
2070
 
2025
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
2071
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
2026
2072
  function makeDuplicateDeclarationError(node, data, kind) {
2027
2073
  const context = [];
2028
2074
  for (const decl of data) {
@@ -2218,7 +2264,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
2218
2264
  return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${kind.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @${baseNeedsDecorator} decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
2219
2265
  }
2220
2266
 
2221
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
2267
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
2222
2268
  import ts8 from "typescript";
2223
2269
  function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
2224
2270
  let resolved = null;
@@ -2251,7 +2297,7 @@ function resolveLiteral(decorator, literalCache) {
2251
2297
  return meta;
2252
2298
  }
2253
2299
 
2254
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
2300
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
2255
2301
  import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
2256
2302
  function compileNgFactoryDefField(metadata) {
2257
2303
  const res = compileFactoryFunction(metadata);
@@ -2262,7 +2308,7 @@ function compileDeclareFactory(metadata) {
2262
2308
  return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
2263
2309
  }
2264
2310
 
2265
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
2311
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
2266
2312
  var InjectableClassRegistry = class {
2267
2313
  constructor(host, isCore) {
2268
2314
  this.host = host;
@@ -2288,7 +2334,7 @@ var InjectableClassRegistry = class {
2288
2334
  }
2289
2335
  };
2290
2336
 
2291
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
2337
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
2292
2338
  import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
2293
2339
  import ts9 from "typescript";
2294
2340
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
@@ -2375,13 +2421,13 @@ function removeIdentifierReferences(node, name) {
2375
2421
  return result.transformed[0];
2376
2422
  }
2377
2423
 
2378
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
2424
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
2379
2425
  var NoopReferencesRegistry = class {
2380
2426
  add(source, ...references) {
2381
2427
  }
2382
2428
  };
2383
2429
 
2384
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
2430
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
2385
2431
  import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
2386
2432
  function extractSchemas(rawExpr, evaluator, context) {
2387
2433
  const schemas = [];
@@ -2411,11 +2457,11 @@ function extractSchemas(rawExpr, evaluator, context) {
2411
2457
  return schemas;
2412
2458
  }
2413
2459
 
2414
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
2460
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
2415
2461
  import { compileClassMetadata as compileClassMetadata3, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
2416
2462
  import ts24 from "typescript";
2417
2463
 
2418
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
2464
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
2419
2465
  import ts10 from "typescript";
2420
2466
  var SemanticSymbol = class {
2421
2467
  constructor(decl) {
@@ -2431,7 +2477,7 @@ function getSymbolIdentifier(decl) {
2431
2477
  return decl.name.text;
2432
2478
  }
2433
2479
 
2434
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
2480
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
2435
2481
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
2436
2482
  var OpaqueSymbol = class extends SemanticSymbol {
2437
2483
  isPublicApiAffected() {
@@ -2574,10 +2620,10 @@ function getImportPath(expr) {
2574
2620
  }
2575
2621
  }
2576
2622
 
2577
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2623
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2578
2624
  import ts11 from "typescript";
2579
2625
 
2580
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
2626
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
2581
2627
  function isSymbolEqual(a, b) {
2582
2628
  if (a.decl === b.decl) {
2583
2629
  return true;
@@ -2627,7 +2673,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
2627
2673
  return true;
2628
2674
  }
2629
2675
 
2630
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2676
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2631
2677
  function extractSemanticTypeParameters(node) {
2632
2678
  if (!ts11.isClassDeclaration(node) || node.typeParameters === void 0) {
2633
2679
  return null;
@@ -2647,14 +2693,14 @@ function isTypeParameterEqual(a, b) {
2647
2693
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
2648
2694
  }
2649
2695
 
2650
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
2696
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
2651
2697
  var ComponentScopeKind;
2652
2698
  (function(ComponentScopeKind2) {
2653
2699
  ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
2654
2700
  ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
2655
2701
  })(ComponentScopeKind || (ComponentScopeKind = {}));
2656
2702
 
2657
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
2703
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
2658
2704
  var CompoundComponentScopeReader = class {
2659
2705
  constructor(readers) {
2660
2706
  this.readers = readers;
@@ -2679,7 +2725,7 @@ var CompoundComponentScopeReader = class {
2679
2725
  }
2680
2726
  };
2681
2727
 
2682
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
2728
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
2683
2729
  var MetadataDtsModuleScopeResolver = class {
2684
2730
  constructor(dtsMetaReader, aliasingHost) {
2685
2731
  this.dtsMetaReader = dtsMetaReader;
@@ -2755,11 +2801,11 @@ var MetadataDtsModuleScopeResolver = class {
2755
2801
  }
2756
2802
  };
2757
2803
 
2758
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2804
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2759
2805
  import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
2760
2806
  import ts12 from "typescript";
2761
2807
 
2762
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
2808
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
2763
2809
  function getDiagnosticNode(ref, rawExpr) {
2764
2810
  return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
2765
2811
  }
@@ -2782,7 +2828,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
2782
2828
  return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
2783
2829
  }
2784
2830
 
2785
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2831
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2786
2832
  var LocalModuleScopeRegistry = class {
2787
2833
  constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
2788
2834
  this.localReader = localReader;
@@ -3121,7 +3167,7 @@ function reexportCollision(module, refA, refB) {
3121
3167
  ]);
3122
3168
  }
3123
3169
 
3124
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
3170
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
3125
3171
  import { CssSelector, SelectorMatcher } from "@angular/compiler";
3126
3172
  import ts13 from "typescript";
3127
3173
  var TypeCheckScopeRegistry = class {
@@ -3190,11 +3236,12 @@ var TypeCheckScopeRegistry = class {
3190
3236
  }
3191
3237
  };
3192
3238
 
3193
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
3239
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
3194
3240
  var CompilationMode;
3195
3241
  (function(CompilationMode2) {
3196
3242
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
3197
3243
  CompilationMode2[CompilationMode2["PARTIAL"] = 1] = "PARTIAL";
3244
+ CompilationMode2[CompilationMode2["LOCAL"] = 2] = "LOCAL";
3198
3245
  })(CompilationMode || (CompilationMode = {}));
3199
3246
  var HandlerPrecedence;
3200
3247
  (function(HandlerPrecedence2) {
@@ -3208,7 +3255,7 @@ var HandlerFlags;
3208
3255
  HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
3209
3256
  })(HandlerFlags || (HandlerFlags = {}));
3210
3257
 
3211
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
3258
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
3212
3259
  import ts14 from "typescript";
3213
3260
  function aliasTransformFactory(exportStatements) {
3214
3261
  return () => {
@@ -3231,10 +3278,10 @@ function aliasTransformFactory(exportStatements) {
3231
3278
  };
3232
3279
  }
3233
3280
 
3234
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3281
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3235
3282
  import ts15 from "typescript";
3236
3283
 
3237
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
3284
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
3238
3285
  var TraitState;
3239
3286
  (function(TraitState2) {
3240
3287
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -3291,7 +3338,7 @@ var TraitImpl = class {
3291
3338
  }
3292
3339
  };
3293
3340
 
3294
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3341
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3295
3342
  var TraitCompiler = class {
3296
3343
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
3297
3344
  this.handlers = handlers;
@@ -3726,10 +3773,10 @@ function containsErrors(diagnostics) {
3726
3773
  return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
3727
3774
  }
3728
3775
 
3729
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3776
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3730
3777
  import ts17 from "typescript";
3731
3778
 
3732
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
3779
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
3733
3780
  import ts16 from "typescript";
3734
3781
  function addImports(importManager, sf, extraStatements = []) {
3735
3782
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
@@ -3765,7 +3812,7 @@ function isImportStatement(stmt) {
3765
3812
  return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
3766
3813
  }
3767
3814
 
3768
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3815
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3769
3816
  var DtsTransformRegistry = class {
3770
3817
  constructor() {
3771
3818
  this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
@@ -3910,11 +3957,11 @@ function markForEmitAsSingleLine(node) {
3910
3957
  ts17.forEachChild(node, markForEmitAsSingleLine);
3911
3958
  }
3912
3959
 
3913
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3960
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3914
3961
  import { ConstantPool } from "@angular/compiler";
3915
3962
  import ts19 from "typescript";
3916
3963
 
3917
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
3964
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
3918
3965
  import ts18 from "typescript";
3919
3966
  function visit(node, visitor, context) {
3920
3967
  return visitor._visit(node, context);
@@ -3975,7 +4022,7 @@ var Visitor = class {
3975
4022
  }
3976
4023
  };
3977
4024
 
3978
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4025
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3979
4026
  var NO_DECORATORS = /* @__PURE__ */ new Set();
3980
4027
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
3981
4028
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -4183,10 +4230,10 @@ function nodeArrayFromDecoratorsArray(decorators) {
4183
4230
  return array;
4184
4231
  }
4185
4232
 
4186
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4233
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4187
4234
  import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
4188
4235
 
4189
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4236
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4190
4237
  import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
4191
4238
  import ts20 from "typescript";
4192
4239
  var EMPTY_OBJECT = {};
@@ -4658,7 +4705,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
4658
4705
  };
4659
4706
  }
4660
4707
 
4661
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4708
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4662
4709
  var DirectiveSymbol = class extends SemanticSymbol {
4663
4710
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
4664
4711
  super(decl);
@@ -4738,7 +4785,7 @@ function isBaseClassEqual(current, previous) {
4738
4785
  return isSymbolEqual(current, previous);
4739
4786
  }
4740
4787
 
4741
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4788
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4742
4789
  var FIELD_DECORATORS = [
4743
4790
  "Input",
4744
4791
  "Output",
@@ -4847,7 +4894,8 @@ var DirectiveDecoratorHandler = class {
4847
4894
  isStandalone: analysis.meta.isStandalone,
4848
4895
  imports: null,
4849
4896
  schemas: null,
4850
- decorator: analysis.decorator
4897
+ decorator: analysis.decorator,
4898
+ assumedToExportProviders: false
4851
4899
  });
4852
4900
  this.injectableRegistry.registerInjectable(node, {
4853
4901
  ctorDeps: analysis.meta.deps
@@ -4897,11 +4945,11 @@ var DirectiveDecoratorHandler = class {
4897
4945
  }
4898
4946
  };
4899
4947
 
4900
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
4948
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
4901
4949
  import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr as FunctionExpr2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3SelectorScopeMode, ReturnStatement as ReturnStatement2, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
4902
4950
  import ts22 from "typescript";
4903
4951
 
4904
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
4952
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
4905
4953
  import ts21 from "typescript";
4906
4954
  function createModuleWithProvidersResolver(reflector, isCore) {
4907
4955
  function _reflectModuleFromTypeParam(type, node) {
@@ -4968,16 +5016,21 @@ function isResolvedModuleWithProviders(sv) {
4968
5016
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
4969
5017
  }
4970
5018
 
4971
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5019
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
4972
5020
  var NgModuleSymbol = class extends SemanticSymbol {
4973
- constructor() {
4974
- super(...arguments);
5021
+ constructor(decl, hasProviders) {
5022
+ super(decl);
5023
+ this.hasProviders = hasProviders;
4975
5024
  this.remotelyScopedComponents = [];
5025
+ this.transitiveImportsFromStandaloneComponents = /* @__PURE__ */ new Set();
4976
5026
  }
4977
5027
  isPublicApiAffected(previousSymbol) {
4978
5028
  if (!(previousSymbol instanceof NgModuleSymbol)) {
4979
5029
  return true;
4980
5030
  }
5031
+ if (previousSymbol.hasProviders !== this.hasProviders) {
5032
+ return true;
5033
+ }
4981
5034
  return false;
4982
5035
  }
4983
5036
  isEmitAffected(previousSymbol) {
@@ -5001,6 +5054,19 @@ var NgModuleSymbol = class extends SemanticSymbol {
5001
5054
  return true;
5002
5055
  }
5003
5056
  }
5057
+ if (previousSymbol.transitiveImportsFromStandaloneComponents.size !== this.transitiveImportsFromStandaloneComponents.size) {
5058
+ return true;
5059
+ }
5060
+ const previousImports = Array.from(previousSymbol.transitiveImportsFromStandaloneComponents);
5061
+ for (const transitiveImport of this.transitiveImportsFromStandaloneComponents) {
5062
+ const prevEntry = previousImports.find((prevEntry2) => isSymbolEqual(prevEntry2, transitiveImport));
5063
+ if (prevEntry === void 0) {
5064
+ return true;
5065
+ }
5066
+ if (transitiveImport.isPublicApiAffected(prevEntry)) {
5067
+ return true;
5068
+ }
5069
+ }
5004
5070
  return false;
5005
5071
  }
5006
5072
  isTypeCheckApiAffected(previousSymbol) {
@@ -5012,15 +5078,20 @@ var NgModuleSymbol = class extends SemanticSymbol {
5012
5078
  addRemotelyScopedComponent(component, usedDirectives, usedPipes) {
5013
5079
  this.remotelyScopedComponents.push({ component, usedDirectives, usedPipes });
5014
5080
  }
5081
+ addTransitiveImportFromStandaloneComponent(importedSymbol) {
5082
+ this.transitiveImportsFromStandaloneComponents.add(importedSymbol);
5083
+ }
5015
5084
  };
5016
5085
  var NgModuleDecoratorHandler = class {
5017
- constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
5086
+ constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
5018
5087
  this.reflector = reflector;
5019
5088
  this.evaluator = evaluator;
5020
5089
  this.metaReader = metaReader;
5021
5090
  this.metaRegistry = metaRegistry;
5022
5091
  this.scopeRegistry = scopeRegistry;
5023
5092
  this.referencesRegistry = referencesRegistry;
5093
+ this.exportedProviderStatusResolver = exportedProviderStatusResolver;
5094
+ this.semanticDepGraphUpdater = semanticDepGraphUpdater;
5024
5095
  this.isCore = isCore;
5025
5096
  this.refEmitter = refEmitter;
5026
5097
  this.annotateForClosureCompiler = annotateForClosureCompiler;
@@ -5219,8 +5290,8 @@ var NgModuleDecoratorHandler = class {
5219
5290
  }
5220
5291
  };
5221
5292
  }
5222
- symbol(node) {
5223
- return new NgModuleSymbol(node);
5293
+ symbol(node, analysis) {
5294
+ return new NgModuleSymbol(node, analysis.providers !== null);
5224
5295
  }
5225
5296
  register(node, analysis) {
5226
5297
  this.metaRegistry.registerNgModuleMetadata({
@@ -5233,7 +5304,8 @@ var NgModuleDecoratorHandler = class {
5233
5304
  rawDeclarations: analysis.rawDeclarations,
5234
5305
  rawImports: analysis.rawImports,
5235
5306
  rawExports: analysis.rawExports,
5236
- decorator: analysis.decorator
5307
+ decorator: analysis.decorator,
5308
+ mayDeclareProviders: analysis.providers !== null
5237
5309
  });
5238
5310
  this.injectableRegistry.registerInjectable(node, {
5239
5311
  ctorDeps: analysis.fac.deps
@@ -5259,10 +5331,28 @@ var NgModuleDecoratorHandler = class {
5259
5331
  continue;
5260
5332
  }
5261
5333
  const refsToEmit = [];
5334
+ let symbol = null;
5335
+ if (this.semanticDepGraphUpdater !== null) {
5336
+ const sym = this.semanticDepGraphUpdater.getSymbol(node);
5337
+ if (sym instanceof NgModuleSymbol) {
5338
+ symbol = sym;
5339
+ }
5340
+ }
5262
5341
  for (const ref of topLevelImport.resolvedReferences) {
5263
5342
  const dirMeta = this.metaReader.getDirectiveMetadata(ref);
5264
- if (dirMeta !== null && !dirMeta.isComponent) {
5265
- continue;
5343
+ if (dirMeta !== null) {
5344
+ if (!dirMeta.isComponent) {
5345
+ continue;
5346
+ }
5347
+ const mayExportProviders = this.exportedProviderStatusResolver.mayExportProviders(dirMeta.ref, (importRef) => {
5348
+ if (symbol !== null && this.semanticDepGraphUpdater !== null) {
5349
+ const importSymbol = this.semanticDepGraphUpdater.getSymbol(importRef.node);
5350
+ symbol.addTransitiveImportFromStandaloneComponent(importSymbol);
5351
+ }
5352
+ });
5353
+ if (!mayExportProviders) {
5354
+ continue;
5355
+ }
5266
5356
  }
5267
5357
  const pipeMeta = dirMeta === null ? this.metaReader.getPipeMetadata(ref) : null;
5268
5358
  if (pipeMeta !== null) {
@@ -5450,7 +5540,7 @@ function isSyntheticReference(ref) {
5450
5540
  return ref.synthetic;
5451
5541
  }
5452
5542
 
5453
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5543
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5454
5544
  function makeCyclicImportInfo(ref, type, cycle) {
5455
5545
  const name = ref.debugName || "(unknown)";
5456
5546
  const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
@@ -5473,16 +5563,11 @@ function checkCustomElementSelectorForErrors(selector) {
5473
5563
  return null;
5474
5564
  }
5475
5565
 
5476
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5566
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5477
5567
  import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
5478
5568
  import ts23 from "typescript";
5479
5569
  function getTemplateDeclarationNodeForError(declaration) {
5480
- switch (declaration.isInline) {
5481
- case true:
5482
- return declaration.expression;
5483
- case false:
5484
- return declaration.templateUrlExpression;
5485
- }
5570
+ return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
5486
5571
  }
5487
5572
  function extractTemplate(node, template, evaluator, depTracker, resourceLoader, options) {
5488
5573
  if (template.isInline) {
@@ -5792,7 +5877,7 @@ function _extractTemplateStyleUrls(template) {
5792
5877
  return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
5793
5878
  }
5794
5879
 
5795
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
5880
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
5796
5881
  var ComponentSymbol = class extends DirectiveSymbol {
5797
5882
  constructor() {
5798
5883
  super(...arguments);
@@ -5827,7 +5912,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
5827
5912
  }
5828
5913
  };
5829
5914
 
5830
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
5915
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
5831
5916
  function collectAnimationNames(value, animationTriggerNames) {
5832
5917
  if (value instanceof Map) {
5833
5918
  const name = value.get("name");
@@ -5903,7 +5988,7 @@ function isLikelyModuleWithProviders(value) {
5903
5988
  return false;
5904
5989
  }
5905
5990
 
5906
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
5991
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
5907
5992
  var EMPTY_ARRAY2 = [];
5908
5993
  var ComponentDecoratorHandler = class {
5909
5994
  constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver) {
@@ -6228,7 +6313,8 @@ var ComponentDecoratorHandler = class {
6228
6313
  imports: analysis.resolvedImports,
6229
6314
  animationTriggerNames: analysis.animationTriggerNames,
6230
6315
  schemas: analysis.schemas,
6231
- decorator: analysis.decorator
6316
+ decorator: analysis.decorator,
6317
+ assumedToExportProviders: false
6232
6318
  });
6233
6319
  this.resourceRegistry.registerResources(analysis.resources, node);
6234
6320
  this.injectableRegistry.registerInjectable(node, {
@@ -6551,7 +6637,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
6551
6637
  return diagnostics;
6552
6638
  }
6553
6639
 
6554
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
6640
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
6555
6641
  import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
6556
6642
  import ts25 from "typescript";
6557
6643
  var InjectableDecoratorHandler = class {
@@ -6766,7 +6852,7 @@ function getDep(dep, reflector) {
6766
6852
  return meta;
6767
6853
  }
6768
6854
 
6769
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
6855
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
6770
6856
  import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
6771
6857
  import ts26 from "typescript";
6772
6858
  var PipeSymbol = class extends SemanticSymbol {
@@ -6910,14 +6996,14 @@ var PipeDecoratorHandler = class {
6910
6996
  }
6911
6997
  };
6912
6998
 
6913
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
6999
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
6914
7000
  var OptimizeFor;
6915
7001
  (function(OptimizeFor2) {
6916
7002
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
6917
7003
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
6918
7004
  })(OptimizeFor || (OptimizeFor = {}));
6919
7005
 
6920
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
7006
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
6921
7007
  var PotentialImportKind;
6922
7008
  (function(PotentialImportKind2) {
6923
7009
  PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
@@ -6929,14 +7015,14 @@ var PotentialImportMode;
6929
7015
  PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
6930
7016
  })(PotentialImportMode || (PotentialImportMode = {}));
6931
7017
 
6932
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
7018
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
6933
7019
  var CompletionKind;
6934
7020
  (function(CompletionKind2) {
6935
7021
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
6936
7022
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
6937
7023
  })(CompletionKind || (CompletionKind = {}));
6938
7024
 
6939
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
7025
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
6940
7026
  var SymbolKind;
6941
7027
  (function(SymbolKind2) {
6942
7028
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -6960,6 +7046,7 @@ export {
6960
7046
  LocalMetadataRegistry,
6961
7047
  CompoundMetadataRegistry,
6962
7048
  ResourceRegistry,
7049
+ ExportedProviderStatusResolver,
6963
7050
  HostDirectivesResolver,
6964
7051
  DynamicValue,
6965
7052
  StaticInterpreter,
@@ -7003,4 +7090,4 @@ export {
7003
7090
  * Use of this source code is governed by an MIT-style license that can be
7004
7091
  * found in the LICENSE file at https://angular.io/license
7005
7092
  */
7006
- //# sourceMappingURL=chunk-4MSEL6HO.js.map
7093
+ //# sourceMappingURL=chunk-QJ5WULBE.js.map