@angular/core 17.3.10 → 17.3.12

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.
@@ -28999,6 +28999,7 @@ function convertQueryPredicate(predicate) {
28999
28999
  return Array.isArray(predicate) ? predicate : createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1);
29000
29000
  }
29001
29001
  function convertDirectiveFacadeToMetadata(facade) {
29002
+ var _a2;
29002
29003
  const inputsFromMetadata = parseInputsArray(facade.inputs || []);
29003
29004
  const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);
29004
29005
  const propMetadata = facade.propMetadata;
@@ -29021,6 +29022,19 @@ function convertDirectiveFacadeToMetadata(facade) {
29021
29022
  });
29022
29023
  }
29023
29024
  }
29025
+ const hostDirectives = ((_a2 = facade.hostDirectives) == null ? void 0 : _a2.length) ? facade.hostDirectives.map((hostDirective) => {
29026
+ return typeof hostDirective === "function" ? {
29027
+ directive: wrapReference(hostDirective),
29028
+ inputs: null,
29029
+ outputs: null,
29030
+ isForwardReference: false
29031
+ } : {
29032
+ directive: wrapReference(hostDirective.directive),
29033
+ isForwardReference: false,
29034
+ inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
29035
+ outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
29036
+ };
29037
+ }) : null;
29024
29038
  return __spreadProps(__spreadValues({}, facade), {
29025
29039
  typeArgumentCount: 0,
29026
29040
  typeSourceSpan: facade.typeSourceSpan,
@@ -29035,31 +29049,37 @@ function convertDirectiveFacadeToMetadata(facade) {
29035
29049
  providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
29036
29050
  viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),
29037
29051
  fullInheritance: false,
29038
- hostDirectives: convertHostDirectivesToMetadata(facade)
29052
+ hostDirectives
29039
29053
  });
29040
29054
  }
29041
29055
  function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
29042
- var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
29056
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j;
29057
+ const hostDirectives = ((_a2 = declaration.hostDirectives) == null ? void 0 : _a2.length) ? declaration.hostDirectives.map((dir) => ({
29058
+ directive: wrapReference(dir.directive),
29059
+ isForwardReference: false,
29060
+ inputs: dir.inputs ? getHostDirectiveBindingMapping(dir.inputs) : null,
29061
+ outputs: dir.outputs ? getHostDirectiveBindingMapping(dir.outputs) : null
29062
+ })) : null;
29043
29063
  return {
29044
29064
  name: declaration.type.name,
29045
29065
  type: wrapReference(declaration.type),
29046
29066
  typeSourceSpan,
29047
- selector: (_a2 = declaration.selector) != null ? _a2 : null,
29067
+ selector: (_b2 = declaration.selector) != null ? _b2 : null,
29048
29068
  inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},
29049
- outputs: (_b2 = declaration.outputs) != null ? _b2 : {},
29069
+ outputs: (_c2 = declaration.outputs) != null ? _c2 : {},
29050
29070
  host: convertHostDeclarationToMetadata(declaration.host),
29051
- queries: ((_c2 = declaration.queries) != null ? _c2 : []).map(convertQueryDeclarationToMetadata),
29052
- viewQueries: ((_d2 = declaration.viewQueries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
29071
+ queries: ((_d2 = declaration.queries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
29072
+ viewQueries: ((_e2 = declaration.viewQueries) != null ? _e2 : []).map(convertQueryDeclarationToMetadata),
29053
29073
  providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
29054
- exportAs: (_e2 = declaration.exportAs) != null ? _e2 : null,
29055
- usesInheritance: (_f2 = declaration.usesInheritance) != null ? _f2 : false,
29056
- lifecycle: { usesOnChanges: (_g = declaration.usesOnChanges) != null ? _g : false },
29074
+ exportAs: (_f2 = declaration.exportAs) != null ? _f2 : null,
29075
+ usesInheritance: (_g = declaration.usesInheritance) != null ? _g : false,
29076
+ lifecycle: { usesOnChanges: (_h = declaration.usesOnChanges) != null ? _h : false },
29057
29077
  deps: null,
29058
29078
  typeArgumentCount: 0,
29059
29079
  fullInheritance: false,
29060
- isStandalone: (_h = declaration.isStandalone) != null ? _h : false,
29061
- isSignal: (_i = declaration.isSignal) != null ? _i : false,
29062
- hostDirectives: convertHostDirectivesToMetadata(declaration)
29080
+ isStandalone: (_i = declaration.isStandalone) != null ? _i : false,
29081
+ isSignal: (_j = declaration.isSignal) != null ? _j : false,
29082
+ hostDirectives
29063
29083
  };
29064
29084
  }
29065
29085
  function convertHostDeclarationToMetadata(host = {}) {
@@ -29075,24 +29095,13 @@ function convertHostDeclarationToMetadata(host = {}) {
29075
29095
  useTemplatePipeline: SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT
29076
29096
  };
29077
29097
  }
29078
- function convertHostDirectivesToMetadata(metadata) {
29079
- var _a2;
29080
- if ((_a2 = metadata.hostDirectives) == null ? void 0 : _a2.length) {
29081
- return metadata.hostDirectives.map((hostDirective) => {
29082
- return typeof hostDirective === "function" ? {
29083
- directive: wrapReference(hostDirective),
29084
- inputs: null,
29085
- outputs: null,
29086
- isForwardReference: false
29087
- } : {
29088
- directive: wrapReference(hostDirective.directive),
29089
- isForwardReference: false,
29090
- inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
29091
- outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
29092
- };
29093
- });
29098
+ function getHostDirectiveBindingMapping(array) {
29099
+ let result = null;
29100
+ for (let i = 1; i < array.length; i += 2) {
29101
+ result = result || {};
29102
+ result[array[i - 1]] = array[i];
29094
29103
  }
29095
- return null;
29104
+ return result;
29096
29105
  }
29097
29106
  function convertOpaqueValuesToExpressions(obj) {
29098
29107
  const result = {};
@@ -29372,7 +29381,7 @@ function publishFacade(global) {
29372
29381
  }
29373
29382
 
29374
29383
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
29375
- var VERSION2 = new Version("17.3.10");
29384
+ var VERSION2 = new Version("17.3.12");
29376
29385
 
29377
29386
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
29378
29387
  var _I18N_ATTR = "i18n";
@@ -30438,7 +30447,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
30438
30447
  function compileDeclareClassMetadata(metadata) {
30439
30448
  const definitionMap = new DefinitionMap();
30440
30449
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
30441
- definitionMap.set("version", literal("17.3.10"));
30450
+ definitionMap.set("version", literal("17.3.12"));
30442
30451
  definitionMap.set("ngImport", importExpr(Identifiers.core));
30443
30452
  definitionMap.set("type", metadata.type);
30444
30453
  definitionMap.set("decorators", metadata.decorators);
@@ -30507,7 +30516,7 @@ function createDirectiveDefinitionMap(meta) {
30507
30516
  const definitionMap = new DefinitionMap();
30508
30517
  const minVersion = getMinimumVersionForPartialOutput(meta);
30509
30518
  definitionMap.set("minVersion", literal(minVersion));
30510
- definitionMap.set("version", literal("17.3.10"));
30519
+ definitionMap.set("version", literal("17.3.12"));
30511
30520
  definitionMap.set("type", meta.type.value);
30512
30521
  if (meta.isStandalone) {
30513
30522
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -30806,7 +30815,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
30806
30815
  function compileDeclareFactoryFunction(meta) {
30807
30816
  const definitionMap = new DefinitionMap();
30808
30817
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
30809
- definitionMap.set("version", literal("17.3.10"));
30818
+ definitionMap.set("version", literal("17.3.12"));
30810
30819
  definitionMap.set("ngImport", importExpr(Identifiers.core));
30811
30820
  definitionMap.set("type", meta.type.value);
30812
30821
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -30829,7 +30838,7 @@ function compileDeclareInjectableFromMetadata(meta) {
30829
30838
  function createInjectableDefinitionMap(meta) {
30830
30839
  const definitionMap = new DefinitionMap();
30831
30840
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
30832
- definitionMap.set("version", literal("17.3.10"));
30841
+ definitionMap.set("version", literal("17.3.12"));
30833
30842
  definitionMap.set("ngImport", importExpr(Identifiers.core));
30834
30843
  definitionMap.set("type", meta.type.value);
30835
30844
  if (meta.providedIn !== void 0) {
@@ -30867,7 +30876,7 @@ function compileDeclareInjectorFromMetadata(meta) {
30867
30876
  function createInjectorDefinitionMap(meta) {
30868
30877
  const definitionMap = new DefinitionMap();
30869
30878
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
30870
- definitionMap.set("version", literal("17.3.10"));
30879
+ definitionMap.set("version", literal("17.3.12"));
30871
30880
  definitionMap.set("ngImport", importExpr(Identifiers.core));
30872
30881
  definitionMap.set("type", meta.type.value);
30873
30882
  definitionMap.set("providers", meta.providers);
@@ -30891,7 +30900,7 @@ function createNgModuleDefinitionMap(meta) {
30891
30900
  throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
30892
30901
  }
30893
30902
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
30894
- definitionMap.set("version", literal("17.3.10"));
30903
+ definitionMap.set("version", literal("17.3.12"));
30895
30904
  definitionMap.set("ngImport", importExpr(Identifiers.core));
30896
30905
  definitionMap.set("type", meta.type.value);
30897
30906
  if (meta.bootstrap.length > 0) {
@@ -30926,7 +30935,7 @@ function compileDeclarePipeFromMetadata(meta) {
30926
30935
  function createPipeDefinitionMap(meta) {
30927
30936
  const definitionMap = new DefinitionMap();
30928
30937
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
30929
- definitionMap.set("version", literal("17.3.10"));
30938
+ definitionMap.set("version", literal("17.3.12"));
30930
30939
  definitionMap.set("ngImport", importExpr(Identifiers.core));
30931
30940
  definitionMap.set("type", meta.type.value);
30932
30941
  if (meta.isStandalone) {
@@ -30943,7 +30952,7 @@ function createPipeDefinitionMap(meta) {
30943
30952
  publishFacade(_global);
30944
30953
 
30945
30954
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
30946
- var VERSION3 = new Version("17.3.10");
30955
+ var VERSION3 = new Version("17.3.12");
30947
30956
 
30948
30957
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
30949
30958
  var import_typescript5 = __toESM(require("typescript"), 1);