@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.3.10
2
+ * @license Angular v17.3.12
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.3.10
2
+ * @license Angular v17.3.12
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.3.10
2
+ * @license Angular v17.3.12
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.3.10
2
+ * @license Angular v17.3.12
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "17.3.10",
3
+ "version": "17.3.12",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.3.10
2
+ * @license Angular v17.3.12
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.3.10
2
+ * @license Angular v17.3.12
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -25725,6 +25725,7 @@ function convertQueryPredicate(predicate) {
25725
25725
  return Array.isArray(predicate) ? predicate : createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1);
25726
25726
  }
25727
25727
  function convertDirectiveFacadeToMetadata(facade) {
25728
+ var _a2;
25728
25729
  const inputsFromMetadata = parseInputsArray(facade.inputs || []);
25729
25730
  const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);
25730
25731
  const propMetadata = facade.propMetadata;
@@ -25747,6 +25748,19 @@ function convertDirectiveFacadeToMetadata(facade) {
25747
25748
  });
25748
25749
  }
25749
25750
  }
25751
+ const hostDirectives = ((_a2 = facade.hostDirectives) == null ? void 0 : _a2.length) ? facade.hostDirectives.map((hostDirective) => {
25752
+ return typeof hostDirective === "function" ? {
25753
+ directive: wrapReference(hostDirective),
25754
+ inputs: null,
25755
+ outputs: null,
25756
+ isForwardReference: false
25757
+ } : {
25758
+ directive: wrapReference(hostDirective.directive),
25759
+ isForwardReference: false,
25760
+ inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
25761
+ outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
25762
+ };
25763
+ }) : null;
25750
25764
  return __spreadProps(__spreadValues({}, facade), {
25751
25765
  typeArgumentCount: 0,
25752
25766
  typeSourceSpan: facade.typeSourceSpan,
@@ -25761,31 +25775,37 @@ function convertDirectiveFacadeToMetadata(facade) {
25761
25775
  providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
25762
25776
  viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),
25763
25777
  fullInheritance: false,
25764
- hostDirectives: convertHostDirectivesToMetadata(facade)
25778
+ hostDirectives
25765
25779
  });
25766
25780
  }
25767
25781
  function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
25768
- var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
25782
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j;
25783
+ const hostDirectives = ((_a2 = declaration.hostDirectives) == null ? void 0 : _a2.length) ? declaration.hostDirectives.map((dir) => ({
25784
+ directive: wrapReference(dir.directive),
25785
+ isForwardReference: false,
25786
+ inputs: dir.inputs ? getHostDirectiveBindingMapping(dir.inputs) : null,
25787
+ outputs: dir.outputs ? getHostDirectiveBindingMapping(dir.outputs) : null
25788
+ })) : null;
25769
25789
  return {
25770
25790
  name: declaration.type.name,
25771
25791
  type: wrapReference(declaration.type),
25772
25792
  typeSourceSpan,
25773
- selector: (_a2 = declaration.selector) != null ? _a2 : null,
25793
+ selector: (_b2 = declaration.selector) != null ? _b2 : null,
25774
25794
  inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},
25775
- outputs: (_b2 = declaration.outputs) != null ? _b2 : {},
25795
+ outputs: (_c2 = declaration.outputs) != null ? _c2 : {},
25776
25796
  host: convertHostDeclarationToMetadata(declaration.host),
25777
- queries: ((_c2 = declaration.queries) != null ? _c2 : []).map(convertQueryDeclarationToMetadata),
25778
- viewQueries: ((_d2 = declaration.viewQueries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
25797
+ queries: ((_d2 = declaration.queries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
25798
+ viewQueries: ((_e2 = declaration.viewQueries) != null ? _e2 : []).map(convertQueryDeclarationToMetadata),
25779
25799
  providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
25780
- exportAs: (_e2 = declaration.exportAs) != null ? _e2 : null,
25781
- usesInheritance: (_f2 = declaration.usesInheritance) != null ? _f2 : false,
25782
- lifecycle: { usesOnChanges: (_g = declaration.usesOnChanges) != null ? _g : false },
25800
+ exportAs: (_f2 = declaration.exportAs) != null ? _f2 : null,
25801
+ usesInheritance: (_g = declaration.usesInheritance) != null ? _g : false,
25802
+ lifecycle: { usesOnChanges: (_h = declaration.usesOnChanges) != null ? _h : false },
25783
25803
  deps: null,
25784
25804
  typeArgumentCount: 0,
25785
25805
  fullInheritance: false,
25786
- isStandalone: (_h = declaration.isStandalone) != null ? _h : false,
25787
- isSignal: (_i = declaration.isSignal) != null ? _i : false,
25788
- hostDirectives: convertHostDirectivesToMetadata(declaration)
25806
+ isStandalone: (_i = declaration.isStandalone) != null ? _i : false,
25807
+ isSignal: (_j = declaration.isSignal) != null ? _j : false,
25808
+ hostDirectives
25789
25809
  };
25790
25810
  }
25791
25811
  function convertHostDeclarationToMetadata(host = {}) {
@@ -25801,24 +25821,13 @@ function convertHostDeclarationToMetadata(host = {}) {
25801
25821
  useTemplatePipeline: SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT
25802
25822
  };
25803
25823
  }
25804
- function convertHostDirectivesToMetadata(metadata) {
25805
- var _a2;
25806
- if ((_a2 = metadata.hostDirectives) == null ? void 0 : _a2.length) {
25807
- return metadata.hostDirectives.map((hostDirective) => {
25808
- return typeof hostDirective === "function" ? {
25809
- directive: wrapReference(hostDirective),
25810
- inputs: null,
25811
- outputs: null,
25812
- isForwardReference: false
25813
- } : {
25814
- directive: wrapReference(hostDirective.directive),
25815
- isForwardReference: false,
25816
- inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
25817
- outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
25818
- };
25819
- });
25824
+ function getHostDirectiveBindingMapping(array) {
25825
+ let result = null;
25826
+ for (let i = 1; i < array.length; i += 2) {
25827
+ result = result || {};
25828
+ result[array[i - 1]] = array[i];
25820
25829
  }
25821
- return null;
25830
+ return result;
25822
25831
  }
25823
25832
  function convertOpaqueValuesToExpressions(obj) {
25824
25833
  const result = {};
@@ -26098,7 +26107,7 @@ function publishFacade(global) {
26098
26107
  }
26099
26108
 
26100
26109
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
26101
- var VERSION2 = new Version("17.3.10");
26110
+ var VERSION2 = new Version("17.3.12");
26102
26111
 
26103
26112
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
26104
26113
  var _VisitorMode;