@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
@@ -5817,7 +5817,7 @@ var ShadowCss = class {
5817
5817
  });
5818
5818
  }
5819
5819
  _scopeSelector(selector, scopeSelector, hostSelector) {
5820
- return selector.split(",").map((part) => part.trim().split(_shadowDeepSelectors)).map((deepParts) => {
5820
+ return selector.split(/ ?, ?/).map((part) => part.split(_shadowDeepSelectors)).map((deepParts) => {
5821
5821
  const [shallowPart, ...otherParts] = deepParts;
5822
5822
  const applyScope = (shallowPart2) => {
5823
5823
  if (this._selectorNeedsScoping(shallowPart2, scopeSelector)) {
@@ -5859,9 +5859,9 @@ var ShadowCss = class {
5859
5859
  const _scopeSelectorPart = (p) => {
5860
5860
  let scopedP = p.trim();
5861
5861
  if (!scopedP) {
5862
- return "";
5862
+ return p;
5863
5863
  }
5864
- if (p.indexOf(_polyfillHostNoCombinator) > -1) {
5864
+ if (p.includes(_polyfillHostNoCombinator)) {
5865
5865
  scopedP = this._applySimpleSelectorScope(p, scopeSelector, hostSelector);
5866
5866
  } else {
5867
5867
  const t = p.replace(_polyfillHostRe, "");
@@ -5880,21 +5880,21 @@ var ShadowCss = class {
5880
5880
  let startIndex = 0;
5881
5881
  let res;
5882
5882
  const sep = /( |>|\+|~(?!=))\s*/g;
5883
- const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
5883
+ const hasHost = selector.includes(_polyfillHostNoCombinator);
5884
5884
  let shouldScope = !hasHost;
5885
5885
  while ((res = sep.exec(selector)) !== null) {
5886
5886
  const separator = res[1];
5887
- const part2 = selector.slice(startIndex, res.index).trim();
5887
+ const part2 = selector.slice(startIndex, res.index);
5888
5888
  if (part2.match(/__esc-ph-(\d+)__/) && ((_a2 = selector[res.index + 1]) == null ? void 0 : _a2.match(/[a-fA-F\d]/))) {
5889
5889
  continue;
5890
5890
  }
5891
- shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
5891
+ shouldScope = shouldScope || part2.includes(_polyfillHostNoCombinator);
5892
5892
  const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
5893
5893
  scopedSelector += `${scopedPart} ${separator} `;
5894
5894
  startIndex = sep.lastIndex;
5895
5895
  }
5896
5896
  const part = selector.substring(startIndex);
5897
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
5897
+ shouldScope = shouldScope || part.includes(_polyfillHostNoCombinator);
5898
5898
  scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
5899
5899
  return safeContent.restore(scopedSelector);
5900
5900
  }
@@ -11095,7 +11095,37 @@ var SCHEMA = [
11095
11095
  "menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default",
11096
11096
  "summary^[HTMLElement]|",
11097
11097
  "time^[HTMLElement]|dateTime",
11098
- ":svg:cursor^:svg:|"
11098
+ ":svg:cursor^:svg:|",
11099
+ ":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",
11100
+ ":math:math^:math:|",
11101
+ ":math:maction^:math:|",
11102
+ ":math:menclose^:math:|",
11103
+ ":math:merror^:math:|",
11104
+ ":math:mfenced^:math:|",
11105
+ ":math:mfrac^:math:|",
11106
+ ":math:mi^:math:|",
11107
+ ":math:mmultiscripts^:math:|",
11108
+ ":math:mn^:math:|",
11109
+ ":math:mo^:math:|",
11110
+ ":math:mover^:math:|",
11111
+ ":math:mpadded^:math:|",
11112
+ ":math:mphantom^:math:|",
11113
+ ":math:mroot^:math:|",
11114
+ ":math:mrow^:math:|",
11115
+ ":math:ms^:math:|",
11116
+ ":math:mspace^:math:|",
11117
+ ":math:msqrt^:math:|",
11118
+ ":math:mstyle^:math:|",
11119
+ ":math:msub^:math:|",
11120
+ ":math:msubsup^:math:|",
11121
+ ":math:msup^:math:|",
11122
+ ":math:mtable^:math:|",
11123
+ ":math:mtd^:math:|",
11124
+ ":math:mtext^:math:|",
11125
+ ":math:mtr^:math:|",
11126
+ ":math:munder^:math:|",
11127
+ ":math:munderover^:math:|",
11128
+ ":math:semantics^:math:|"
11099
11129
  ];
11100
11130
  var _ATTR_TO_PROP = new Map(Object.entries({
11101
11131
  "class": "className",
@@ -22848,7 +22878,7 @@ function publishFacade(global) {
22848
22878
  }
22849
22879
 
22850
22880
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
22851
- var VERSION2 = new Version("18.0.0-rc.0");
22881
+ var VERSION2 = new Version("18.0.0-rc.1");
22852
22882
 
22853
22883
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
22854
22884
  var _VisitorMode;