@angular/core 18.0.0-rc.0 → 18.0.0-rc.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 (57) hide show
  1. package/esm2022/primitives/event-dispatch/index.mjs +2 -2
  2. package/esm2022/primitives/event-dispatch/src/action_resolver.mjs +234 -0
  3. package/esm2022/primitives/event-dispatch/src/base_dispatcher.mjs +6 -8
  4. package/esm2022/primitives/event-dispatch/src/custom_events.mjs +40 -1
  5. package/esm2022/primitives/event-dispatch/src/dispatcher.mjs +22 -15
  6. package/esm2022/primitives/event-dispatch/src/earlyeventcontract.mjs +14 -8
  7. package/esm2022/primitives/event-dispatch/src/event_contract_defines.mjs +1 -14
  8. package/esm2022/primitives/event-dispatch/src/eventcontract.mjs +23 -344
  9. package/esm2022/primitives/event-dispatch/src/register_events.mjs +29 -10
  10. package/esm2022/src/application/application_ref.mjs +6 -3
  11. package/esm2022/src/application/create_application.mjs +3 -3
  12. package/esm2022/src/change_detection/scheduling/exhaustive_check_no_changes.mjs +150 -0
  13. package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +17 -3
  14. package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +5 -5
  15. package/esm2022/src/core.mjs +2 -1
  16. package/esm2022/src/core_private_export.mjs +2 -1
  17. package/esm2022/src/defer/instructions.mjs +20 -12
  18. package/esm2022/src/defer/interfaces.mjs +1 -3
  19. package/esm2022/src/errors.mjs +1 -1
  20. package/esm2022/src/hydration/event_replay.mjs +23 -3
  21. package/esm2022/src/platform/platform_ref.mjs +8 -1
  22. package/esm2022/src/render3/after_render_hooks.mjs +4 -2
  23. package/esm2022/src/render3/component_ref.mjs +1 -1
  24. package/esm2022/src/render3/instructions/change_detection.mjs +13 -10
  25. package/esm2022/src/render3/instructions/listener.mjs +12 -1
  26. package/esm2022/src/render3/state.mjs +14 -4
  27. package/esm2022/src/render3/view_ref.mjs +3 -2
  28. package/esm2022/src/util/callback_scheduler.mjs +12 -26
  29. package/esm2022/src/version.mjs +1 -1
  30. package/esm2022/src/zone/ng_zone.mjs +9 -23
  31. package/esm2022/testing/src/component_fixture.mjs +1 -3
  32. package/esm2022/testing/src/defer.mjs +1 -2
  33. package/esm2022/testing/src/logger.mjs +3 -3
  34. package/esm2022/testing/src/test_bed_compiler.mjs +3 -4
  35. package/event-dispatch-contract.min.js +1 -1
  36. package/fesm2022/core.mjs +752 -574
  37. package/fesm2022/core.mjs.map +1 -1
  38. package/fesm2022/primitives/event-dispatch.mjs +315 -369
  39. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  40. package/fesm2022/primitives/signals.mjs +1 -1
  41. package/fesm2022/rxjs-interop.mjs +1 -1
  42. package/fesm2022/testing.mjs +3 -7
  43. package/fesm2022/testing.mjs.map +1 -1
  44. package/index.d.ts +34 -4
  45. package/package.json +1 -1
  46. package/primitives/event-dispatch/index.d.ts +41 -44
  47. package/primitives/signals/index.d.ts +1 -1
  48. package/rxjs-interop/index.d.ts +1 -1
  49. package/schematics/migrations/http-providers/bundle.js +66 -44
  50. package/schematics/migrations/http-providers/bundle.js.map +2 -2
  51. package/schematics/migrations/invalid-two-way-bindings/bundle.js +39 -9
  52. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
  53. package/schematics/ng-generate/control-flow-migration/bundle.js +39 -9
  54. package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
  55. package/schematics/ng-generate/standalone-migration/bundle.js +48 -18
  56. package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
  57. package/testing/index.d.ts +1 -4
@@ -9242,7 +9242,7 @@ var ShadowCss = class {
9242
9242
  });
9243
9243
  }
9244
9244
  _scopeSelector(selector, scopeSelector, hostSelector) {
9245
- return selector.split(",").map((part) => part.trim().split(_shadowDeepSelectors)).map((deepParts) => {
9245
+ return selector.split(/ ?, ?/).map((part) => part.split(_shadowDeepSelectors)).map((deepParts) => {
9246
9246
  const [shallowPart, ...otherParts] = deepParts;
9247
9247
  const applyScope = (shallowPart2) => {
9248
9248
  if (this._selectorNeedsScoping(shallowPart2, scopeSelector)) {
@@ -9284,9 +9284,9 @@ var ShadowCss = class {
9284
9284
  const _scopeSelectorPart = (p2) => {
9285
9285
  let scopedP = p2.trim();
9286
9286
  if (!scopedP) {
9287
- return "";
9287
+ return p2;
9288
9288
  }
9289
- if (p2.indexOf(_polyfillHostNoCombinator) > -1) {
9289
+ if (p2.includes(_polyfillHostNoCombinator)) {
9290
9290
  scopedP = this._applySimpleSelectorScope(p2, scopeSelector, hostSelector);
9291
9291
  } else {
9292
9292
  const t = p2.replace(_polyfillHostRe, "");
@@ -9305,21 +9305,21 @@ var ShadowCss = class {
9305
9305
  let startIndex = 0;
9306
9306
  let res;
9307
9307
  const sep2 = /( |>|\+|~(?!=))\s*/g;
9308
- const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
9308
+ const hasHost = selector.includes(_polyfillHostNoCombinator);
9309
9309
  let shouldScope = !hasHost;
9310
9310
  while ((res = sep2.exec(selector)) !== null) {
9311
9311
  const separator = res[1];
9312
- const part2 = selector.slice(startIndex, res.index).trim();
9312
+ const part2 = selector.slice(startIndex, res.index);
9313
9313
  if (part2.match(/__esc-ph-(\d+)__/) && ((_a2 = selector[res.index + 1]) == null ? void 0 : _a2.match(/[a-fA-F\d]/))) {
9314
9314
  continue;
9315
9315
  }
9316
- shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
9316
+ shouldScope = shouldScope || part2.includes(_polyfillHostNoCombinator);
9317
9317
  const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
9318
9318
  scopedSelector += `${scopedPart} ${separator} `;
9319
9319
  startIndex = sep2.lastIndex;
9320
9320
  }
9321
9321
  const part = selector.substring(startIndex);
9322
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
9322
+ shouldScope = shouldScope || part.includes(_polyfillHostNoCombinator);
9323
9323
  scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
9324
9324
  return safeContent.restore(scopedSelector);
9325
9325
  }
@@ -14479,7 +14479,37 @@ var SCHEMA = [
14479
14479
  "menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default",
14480
14480
  "summary^[HTMLElement]|",
14481
14481
  "time^[HTMLElement]|dateTime",
14482
- ":svg:cursor^:svg:|"
14482
+ ":svg:cursor^:svg:|",
14483
+ ":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",
14484
+ ":math:math^:math:|",
14485
+ ":math:maction^:math:|",
14486
+ ":math:menclose^:math:|",
14487
+ ":math:merror^:math:|",
14488
+ ":math:mfenced^:math:|",
14489
+ ":math:mfrac^:math:|",
14490
+ ":math:mi^:math:|",
14491
+ ":math:mmultiscripts^:math:|",
14492
+ ":math:mn^:math:|",
14493
+ ":math:mo^:math:|",
14494
+ ":math:mover^:math:|",
14495
+ ":math:mpadded^:math:|",
14496
+ ":math:mphantom^:math:|",
14497
+ ":math:mroot^:math:|",
14498
+ ":math:mrow^:math:|",
14499
+ ":math:ms^:math:|",
14500
+ ":math:mspace^:math:|",
14501
+ ":math:msqrt^:math:|",
14502
+ ":math:mstyle^:math:|",
14503
+ ":math:msub^:math:|",
14504
+ ":math:msubsup^:math:|",
14505
+ ":math:msup^:math:|",
14506
+ ":math:mtable^:math:|",
14507
+ ":math:mtd^:math:|",
14508
+ ":math:mtext^:math:|",
14509
+ ":math:mtr^:math:|",
14510
+ ":math:munder^:math:|",
14511
+ ":math:munderover^:math:|",
14512
+ ":math:semantics^:math:|"
14483
14513
  ];
14484
14514
  var _ATTR_TO_PROP = new Map(Object.entries({
14485
14515
  "class": "className",
@@ -26256,7 +26286,7 @@ function publishFacade(global) {
26256
26286
  }
26257
26287
 
26258
26288
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
26259
- var VERSION2 = new Version("18.0.0-rc.0");
26289
+ var VERSION2 = new Version("18.0.0-rc.1");
26260
26290
 
26261
26291
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
26262
26292
  var _I18N_ATTR = "i18n";
@@ -27350,7 +27380,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
27350
27380
  function compileDeclareClassMetadata(metadata) {
27351
27381
  const definitionMap = new DefinitionMap();
27352
27382
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
27353
- definitionMap.set("version", literal("18.0.0-rc.0"));
27383
+ definitionMap.set("version", literal("18.0.0-rc.1"));
27354
27384
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27355
27385
  definitionMap.set("type", metadata.type);
27356
27386
  definitionMap.set("decorators", metadata.decorators);
@@ -27369,7 +27399,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
27369
27399
  callbackReturnDefinitionMap.set("ctorParameters", (_a2 = metadata.ctorParameters) != null ? _a2 : literal(null));
27370
27400
  callbackReturnDefinitionMap.set("propDecorators", (_b2 = metadata.propDecorators) != null ? _b2 : literal(null));
27371
27401
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
27372
- definitionMap.set("version", literal("18.0.0-rc.0"));
27402
+ definitionMap.set("version", literal("18.0.0-rc.1"));
27373
27403
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27374
27404
  definitionMap.set("type", metadata.type);
27375
27405
  definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
@@ -27437,7 +27467,7 @@ function createDirectiveDefinitionMap(meta) {
27437
27467
  const definitionMap = new DefinitionMap();
27438
27468
  const minVersion = getMinimumVersionForPartialOutput(meta);
27439
27469
  definitionMap.set("minVersion", literal(minVersion));
27440
- definitionMap.set("version", literal("18.0.0-rc.0"));
27470
+ definitionMap.set("version", literal("18.0.0-rc.1"));
27441
27471
  definitionMap.set("type", meta.type.value);
27442
27472
  if (meta.isStandalone) {
27443
27473
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -27755,7 +27785,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
27755
27785
  function compileDeclareFactoryFunction(meta) {
27756
27786
  const definitionMap = new DefinitionMap();
27757
27787
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
27758
- definitionMap.set("version", literal("18.0.0-rc.0"));
27788
+ definitionMap.set("version", literal("18.0.0-rc.1"));
27759
27789
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27760
27790
  definitionMap.set("type", meta.type.value);
27761
27791
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -27778,7 +27808,7 @@ function compileDeclareInjectableFromMetadata(meta) {
27778
27808
  function createInjectableDefinitionMap(meta) {
27779
27809
  const definitionMap = new DefinitionMap();
27780
27810
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
27781
- definitionMap.set("version", literal("18.0.0-rc.0"));
27811
+ definitionMap.set("version", literal("18.0.0-rc.1"));
27782
27812
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27783
27813
  definitionMap.set("type", meta.type.value);
27784
27814
  if (meta.providedIn !== void 0) {
@@ -27816,7 +27846,7 @@ function compileDeclareInjectorFromMetadata(meta) {
27816
27846
  function createInjectorDefinitionMap(meta) {
27817
27847
  const definitionMap = new DefinitionMap();
27818
27848
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
27819
- definitionMap.set("version", literal("18.0.0-rc.0"));
27849
+ definitionMap.set("version", literal("18.0.0-rc.1"));
27820
27850
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27821
27851
  definitionMap.set("type", meta.type.value);
27822
27852
  definitionMap.set("providers", meta.providers);
@@ -27840,7 +27870,7 @@ function createNgModuleDefinitionMap(meta) {
27840
27870
  throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
27841
27871
  }
27842
27872
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
27843
- definitionMap.set("version", literal("18.0.0-rc.0"));
27873
+ definitionMap.set("version", literal("18.0.0-rc.1"));
27844
27874
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27845
27875
  definitionMap.set("type", meta.type.value);
27846
27876
  if (meta.bootstrap.length > 0) {
@@ -27875,7 +27905,7 @@ function compileDeclarePipeFromMetadata(meta) {
27875
27905
  function createPipeDefinitionMap(meta) {
27876
27906
  const definitionMap = new DefinitionMap();
27877
27907
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
27878
- definitionMap.set("version", literal("18.0.0-rc.0"));
27908
+ definitionMap.set("version", literal("18.0.0-rc.1"));
27879
27909
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27880
27910
  definitionMap.set("type", meta.type.value);
27881
27911
  if (meta.isStandalone) {
@@ -27892,7 +27922,7 @@ function createPipeDefinitionMap(meta) {
27892
27922
  publishFacade(_global);
27893
27923
 
27894
27924
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
27895
- var VERSION3 = new Version("18.0.0-rc.0");
27925
+ var VERSION3 = new Version("18.0.0-rc.1");
27896
27926
 
27897
27927
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
27898
27928
  var import_typescript5 = __toESM(require("typescript"), 1);