@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.
@@ -25656,6 +25656,7 @@ function convertQueryPredicate(predicate) {
25656
25656
  return Array.isArray(predicate) ? predicate : createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1);
25657
25657
  }
25658
25658
  function convertDirectiveFacadeToMetadata(facade) {
25659
+ var _a2;
25659
25660
  const inputsFromMetadata = parseInputsArray(facade.inputs || []);
25660
25661
  const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);
25661
25662
  const propMetadata = facade.propMetadata;
@@ -25678,6 +25679,19 @@ function convertDirectiveFacadeToMetadata(facade) {
25678
25679
  });
25679
25680
  }
25680
25681
  }
25682
+ const hostDirectives = ((_a2 = facade.hostDirectives) == null ? void 0 : _a2.length) ? facade.hostDirectives.map((hostDirective) => {
25683
+ return typeof hostDirective === "function" ? {
25684
+ directive: wrapReference(hostDirective),
25685
+ inputs: null,
25686
+ outputs: null,
25687
+ isForwardReference: false
25688
+ } : {
25689
+ directive: wrapReference(hostDirective.directive),
25690
+ isForwardReference: false,
25691
+ inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
25692
+ outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
25693
+ };
25694
+ }) : null;
25681
25695
  return __spreadProps(__spreadValues({}, facade), {
25682
25696
  typeArgumentCount: 0,
25683
25697
  typeSourceSpan: facade.typeSourceSpan,
@@ -25692,31 +25706,37 @@ function convertDirectiveFacadeToMetadata(facade) {
25692
25706
  providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
25693
25707
  viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),
25694
25708
  fullInheritance: false,
25695
- hostDirectives: convertHostDirectivesToMetadata(facade)
25709
+ hostDirectives
25696
25710
  });
25697
25711
  }
25698
25712
  function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
25699
- var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
25713
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j;
25714
+ const hostDirectives = ((_a2 = declaration.hostDirectives) == null ? void 0 : _a2.length) ? declaration.hostDirectives.map((dir) => ({
25715
+ directive: wrapReference(dir.directive),
25716
+ isForwardReference: false,
25717
+ inputs: dir.inputs ? getHostDirectiveBindingMapping(dir.inputs) : null,
25718
+ outputs: dir.outputs ? getHostDirectiveBindingMapping(dir.outputs) : null
25719
+ })) : null;
25700
25720
  return {
25701
25721
  name: declaration.type.name,
25702
25722
  type: wrapReference(declaration.type),
25703
25723
  typeSourceSpan,
25704
- selector: (_a2 = declaration.selector) != null ? _a2 : null,
25724
+ selector: (_b2 = declaration.selector) != null ? _b2 : null,
25705
25725
  inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},
25706
- outputs: (_b2 = declaration.outputs) != null ? _b2 : {},
25726
+ outputs: (_c2 = declaration.outputs) != null ? _c2 : {},
25707
25727
  host: convertHostDeclarationToMetadata(declaration.host),
25708
- queries: ((_c2 = declaration.queries) != null ? _c2 : []).map(convertQueryDeclarationToMetadata),
25709
- viewQueries: ((_d2 = declaration.viewQueries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
25728
+ queries: ((_d2 = declaration.queries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
25729
+ viewQueries: ((_e2 = declaration.viewQueries) != null ? _e2 : []).map(convertQueryDeclarationToMetadata),
25710
25730
  providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
25711
- exportAs: (_e2 = declaration.exportAs) != null ? _e2 : null,
25712
- usesInheritance: (_f2 = declaration.usesInheritance) != null ? _f2 : false,
25713
- lifecycle: { usesOnChanges: (_g = declaration.usesOnChanges) != null ? _g : false },
25731
+ exportAs: (_f2 = declaration.exportAs) != null ? _f2 : null,
25732
+ usesInheritance: (_g = declaration.usesInheritance) != null ? _g : false,
25733
+ lifecycle: { usesOnChanges: (_h = declaration.usesOnChanges) != null ? _h : false },
25714
25734
  deps: null,
25715
25735
  typeArgumentCount: 0,
25716
25736
  fullInheritance: false,
25717
- isStandalone: (_h = declaration.isStandalone) != null ? _h : false,
25718
- isSignal: (_i = declaration.isSignal) != null ? _i : false,
25719
- hostDirectives: convertHostDirectivesToMetadata(declaration)
25737
+ isStandalone: (_i = declaration.isStandalone) != null ? _i : false,
25738
+ isSignal: (_j = declaration.isSignal) != null ? _j : false,
25739
+ hostDirectives
25720
25740
  };
25721
25741
  }
25722
25742
  function convertHostDeclarationToMetadata(host = {}) {
@@ -25732,24 +25752,13 @@ function convertHostDeclarationToMetadata(host = {}) {
25732
25752
  useTemplatePipeline: SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT
25733
25753
  };
25734
25754
  }
25735
- function convertHostDirectivesToMetadata(metadata) {
25736
- var _a2;
25737
- if ((_a2 = metadata.hostDirectives) == null ? void 0 : _a2.length) {
25738
- return metadata.hostDirectives.map((hostDirective) => {
25739
- return typeof hostDirective === "function" ? {
25740
- directive: wrapReference(hostDirective),
25741
- inputs: null,
25742
- outputs: null,
25743
- isForwardReference: false
25744
- } : {
25745
- directive: wrapReference(hostDirective.directive),
25746
- isForwardReference: false,
25747
- inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
25748
- outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
25749
- };
25750
- });
25755
+ function getHostDirectiveBindingMapping(array) {
25756
+ let result = null;
25757
+ for (let i = 1; i < array.length; i += 2) {
25758
+ result = result || {};
25759
+ result[array[i - 1]] = array[i];
25751
25760
  }
25752
- return null;
25761
+ return result;
25753
25762
  }
25754
25763
  function convertOpaqueValuesToExpressions(obj) {
25755
25764
  const result = {};
@@ -26029,7 +26038,7 @@ function publishFacade(global) {
26029
26038
  }
26030
26039
 
26031
26040
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
26032
- var VERSION2 = new Version("17.3.10");
26041
+ var VERSION2 = new Version("17.3.12");
26033
26042
 
26034
26043
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
26035
26044
  var _VisitorMode;