@angular/core 18.2.0-next.0 → 18.2.0-next.1

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 (40) hide show
  1. package/esm2022/primitives/event-dispatch/contract_binary.mjs +3 -3
  2. package/esm2022/primitives/event-dispatch/index.mjs +6 -7
  3. package/esm2022/primitives/event-dispatch/src/a11y_click.mjs +1 -1
  4. package/esm2022/primitives/event-dispatch/src/action_resolver.mjs +1 -1
  5. package/esm2022/primitives/event-dispatch/src/bootstrap_app_scoped.mjs +29 -0
  6. package/esm2022/primitives/event-dispatch/src/bootstrap_global.mjs +21 -0
  7. package/esm2022/primitives/event-dispatch/src/cache.mjs +10 -21
  8. package/esm2022/primitives/event-dispatch/src/earlyeventcontract.mjs +32 -21
  9. package/esm2022/primitives/event-dispatch/src/event.mjs +3 -3
  10. package/esm2022/primitives/event-dispatch/src/event_contract_defines.mjs +1 -6
  11. package/esm2022/primitives/event-dispatch/src/event_type.mjs +19 -21
  12. package/esm2022/primitives/event-dispatch/src/eventcontract.mjs +6 -8
  13. package/esm2022/primitives/event-dispatch/src/property.mjs +1 -1
  14. package/esm2022/src/event_delegation_utils.mjs +10 -10
  15. package/esm2022/src/hydration/event_replay.mjs +17 -22
  16. package/esm2022/src/render3/after_render_hooks.mjs +7 -2
  17. package/esm2022/src/render3/component_ref.mjs +1 -1
  18. package/esm2022/src/version.mjs +1 -1
  19. package/esm2022/testing/src/logger.mjs +3 -3
  20. package/event-dispatch-contract.min.js +1 -1
  21. package/fesm2022/core.mjs +33 -33
  22. package/fesm2022/core.mjs.map +1 -1
  23. package/fesm2022/primitives/event-dispatch.mjs +452 -529
  24. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  25. package/fesm2022/primitives/signals.mjs +1 -1
  26. package/fesm2022/rxjs-interop.mjs +1 -1
  27. package/fesm2022/testing.mjs +1 -1
  28. package/index.d.ts +4 -4
  29. package/package.json +1 -1
  30. package/primitives/event-dispatch/index.d.ts +23 -37
  31. package/primitives/signals/index.d.ts +1 -1
  32. package/rxjs-interop/index.d.ts +1 -1
  33. package/schematics/migrations/invalid-two-way-bindings/bundle.js +40 -31
  34. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
  35. package/schematics/ng-generate/control-flow-migration/bundle.js +47 -31
  36. package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
  37. package/schematics/ng-generate/standalone-migration/bundle.js +611 -65
  38. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  39. package/testing/index.d.ts +1 -1
  40. package/esm2022/primitives/event-dispatch/src/register_events.mjs +0 -31
@@ -14258,7 +14258,7 @@ var _Tokenizer = class {
14258
14258
  const nameCursor = this._cursor.clone();
14259
14259
  let allowDigit = false;
14260
14260
  this._attemptCharCodeUntilFn((code) => {
14261
- if (isAsciiLetter(code) || code == $$ || code === $_ || allowDigit && isDigit(code)) {
14261
+ if (isAsciiLetter(code) || code === $$ || code === $_ || allowDigit && isDigit(code)) {
14262
14262
  allowDigit = true;
14263
14263
  return false;
14264
14264
  }
@@ -22916,6 +22916,7 @@ function convertQueryPredicate(predicate) {
22916
22916
  return Array.isArray(predicate) ? predicate : createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1);
22917
22917
  }
22918
22918
  function convertDirectiveFacadeToMetadata(facade) {
22919
+ var _a2;
22919
22920
  const inputsFromMetadata = parseInputsArray(facade.inputs || []);
22920
22921
  const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);
22921
22922
  const propMetadata = facade.propMetadata;
@@ -22938,6 +22939,19 @@ function convertDirectiveFacadeToMetadata(facade) {
22938
22939
  });
22939
22940
  }
22940
22941
  }
22942
+ const hostDirectives = ((_a2 = facade.hostDirectives) == null ? void 0 : _a2.length) ? facade.hostDirectives.map((hostDirective) => {
22943
+ return typeof hostDirective === "function" ? {
22944
+ directive: wrapReference(hostDirective),
22945
+ inputs: null,
22946
+ outputs: null,
22947
+ isForwardReference: false
22948
+ } : {
22949
+ directive: wrapReference(hostDirective.directive),
22950
+ isForwardReference: false,
22951
+ inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
22952
+ outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
22953
+ };
22954
+ }) : null;
22941
22955
  return __spreadProps(__spreadValues({}, facade), {
22942
22956
  typeArgumentCount: 0,
22943
22957
  typeSourceSpan: facade.typeSourceSpan,
@@ -22950,31 +22964,37 @@ function convertDirectiveFacadeToMetadata(facade) {
22950
22964
  providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
22951
22965
  viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),
22952
22966
  fullInheritance: false,
22953
- hostDirectives: convertHostDirectivesToMetadata(facade)
22967
+ hostDirectives
22954
22968
  });
22955
22969
  }
22956
22970
  function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
22957
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
22971
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i, _j;
22972
+ const hostDirectives = ((_a2 = declaration.hostDirectives) == null ? void 0 : _a2.length) ? declaration.hostDirectives.map((dir) => ({
22973
+ directive: wrapReference(dir.directive),
22974
+ isForwardReference: false,
22975
+ inputs: dir.inputs ? getHostDirectiveBindingMapping(dir.inputs) : null,
22976
+ outputs: dir.outputs ? getHostDirectiveBindingMapping(dir.outputs) : null
22977
+ })) : null;
22958
22978
  return {
22959
22979
  name: declaration.type.name,
22960
22980
  type: wrapReference(declaration.type),
22961
22981
  typeSourceSpan,
22962
- selector: (_a2 = declaration.selector) != null ? _a2 : null,
22982
+ selector: (_b2 = declaration.selector) != null ? _b2 : null,
22963
22983
  inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},
22964
- outputs: (_b2 = declaration.outputs) != null ? _b2 : {},
22984
+ outputs: (_c2 = declaration.outputs) != null ? _c2 : {},
22965
22985
  host: convertHostDeclarationToMetadata(declaration.host),
22966
- queries: ((_c2 = declaration.queries) != null ? _c2 : []).map(convertQueryDeclarationToMetadata),
22967
- viewQueries: ((_d2 = declaration.viewQueries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
22986
+ queries: ((_d2 = declaration.queries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
22987
+ viewQueries: ((_e2 = declaration.viewQueries) != null ? _e2 : []).map(convertQueryDeclarationToMetadata),
22968
22988
  providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
22969
- exportAs: (_e2 = declaration.exportAs) != null ? _e2 : null,
22970
- usesInheritance: (_f2 = declaration.usesInheritance) != null ? _f2 : false,
22971
- lifecycle: { usesOnChanges: (_g2 = declaration.usesOnChanges) != null ? _g2 : false },
22989
+ exportAs: (_f2 = declaration.exportAs) != null ? _f2 : null,
22990
+ usesInheritance: (_g2 = declaration.usesInheritance) != null ? _g2 : false,
22991
+ lifecycle: { usesOnChanges: (_h2 = declaration.usesOnChanges) != null ? _h2 : false },
22972
22992
  deps: null,
22973
22993
  typeArgumentCount: 0,
22974
22994
  fullInheritance: false,
22975
- isStandalone: (_h2 = declaration.isStandalone) != null ? _h2 : false,
22976
- isSignal: (_i = declaration.isSignal) != null ? _i : false,
22977
- hostDirectives: convertHostDirectivesToMetadata(declaration)
22995
+ isStandalone: (_i = declaration.isStandalone) != null ? _i : false,
22996
+ isSignal: (_j = declaration.isSignal) != null ? _j : false,
22997
+ hostDirectives
22978
22998
  };
22979
22999
  }
22980
23000
  function convertHostDeclarationToMetadata(host = {}) {
@@ -22989,24 +23009,13 @@ function convertHostDeclarationToMetadata(host = {}) {
22989
23009
  }
22990
23010
  };
22991
23011
  }
22992
- function convertHostDirectivesToMetadata(metadata) {
22993
- var _a2;
22994
- if ((_a2 = metadata.hostDirectives) == null ? void 0 : _a2.length) {
22995
- return metadata.hostDirectives.map((hostDirective) => {
22996
- return typeof hostDirective === "function" ? {
22997
- directive: wrapReference(hostDirective),
22998
- inputs: null,
22999
- outputs: null,
23000
- isForwardReference: false
23001
- } : {
23002
- directive: wrapReference(hostDirective.directive),
23003
- isForwardReference: false,
23004
- inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
23005
- outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
23006
- };
23007
- });
23012
+ function getHostDirectiveBindingMapping(array) {
23013
+ let result = null;
23014
+ for (let i = 1; i < array.length; i += 2) {
23015
+ result = result || {};
23016
+ result[array[i - 1]] = array[i];
23008
23017
  }
23009
- return null;
23018
+ return result;
23010
23019
  }
23011
23020
  function convertOpaqueValuesToExpressions(obj) {
23012
23021
  const result = {};
@@ -23277,7 +23286,7 @@ function publishFacade(global) {
23277
23286
  }
23278
23287
 
23279
23288
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
23280
- var VERSION2 = new Version("18.2.0-next.0");
23289
+ var VERSION2 = new Version("18.2.0-next.1");
23281
23290
 
23282
23291
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
23283
23292
  var _VisitorMode;
@@ -23570,6 +23579,13 @@ var CommonCollector = class extends RecursiveVisitor {
23570
23579
  }
23571
23580
  super.visitElement(el, null);
23572
23581
  }
23582
+ visitBlock(ast) {
23583
+ for (const blockParam of ast.parameters) {
23584
+ if (this.hasPipes(blockParam.expression)) {
23585
+ this.count++;
23586
+ }
23587
+ }
23588
+ }
23573
23589
  visitText(ast) {
23574
23590
  if (this.hasPipes(ast.value)) {
23575
23591
  this.count++;