@angular/core 18.1.4 → 18.1.5

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 (34) hide show
  1. package/esm2022/primitives/event-dispatch/src/event_dispatcher.mjs +5 -1
  2. package/esm2022/src/event_delegation_utils.mjs +19 -7
  3. package/esm2022/src/event_dispatch/event_delegation.mjs +9 -2
  4. package/esm2022/src/hydration/annotate.mjs +1 -1
  5. package/esm2022/src/hydration/cleanup.mjs +8 -4
  6. package/esm2022/src/hydration/i18n.mjs +13 -5
  7. package/esm2022/src/hydration/skip_hydration.mjs +11 -1
  8. package/esm2022/src/linker/view_container_ref.mjs +1 -1
  9. package/esm2022/src/render3/component_ref.mjs +1 -1
  10. package/esm2022/src/render3/i18n/i18n_parse.mjs +2 -1
  11. package/esm2022/src/render3/instructions/element_container.mjs +6 -3
  12. package/esm2022/src/render3/interfaces/i18n.mjs +1 -1
  13. package/esm2022/src/version.mjs +1 -1
  14. package/esm2022/testing/src/application_error_handler.mjs +3 -3
  15. package/esm2022/testing/src/logger.mjs +3 -3
  16. package/fesm2022/core.mjs +61 -17
  17. package/fesm2022/core.mjs.map +1 -1
  18. package/fesm2022/primitives/event-dispatch.mjs +5 -1
  19. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  20. package/fesm2022/primitives/signals.mjs +1 -1
  21. package/fesm2022/rxjs-interop.mjs +1 -1
  22. package/fesm2022/testing.mjs +4 -4
  23. package/index.d.ts +9 -3
  24. package/package.json +1 -1
  25. package/primitives/event-dispatch/index.d.ts +1 -1
  26. package/primitives/signals/index.d.ts +1 -1
  27. package/rxjs-interop/index.d.ts +1 -1
  28. package/schematics/migrations/invalid-two-way-bindings/bundle.js +1 -1
  29. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +1 -1
  30. package/schematics/ng-generate/control-flow-migration/bundle.js +1 -1
  31. package/schematics/ng-generate/control-flow-migration/bundle.js.map +1 -1
  32. package/schematics/ng-generate/standalone-migration/bundle.js +18 -18
  33. package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
  34. package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.1.4
2
+ * @license Angular v18.1.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1722,8 +1722,10 @@ class EventDispatcher {
1722
1722
  }
1723
1723
  function prepareEventForBubbling(eventInfoWrapper) {
1724
1724
  const event = eventInfoWrapper.getEvent();
1725
+ const originalStopPropagation = eventInfoWrapper.getEvent().stopPropagation.bind(event);
1725
1726
  const stopPropagation = () => {
1726
1727
  event[PROPAGATION_STOPPED_SYMBOL] = true;
1728
+ originalStopPropagation();
1727
1729
  };
1728
1730
  patchEventInstance(event, 'stopPropagation', stopPropagation);
1729
1731
  patchEventInstance(event, 'stopImmediatePropagation', stopPropagation);
@@ -1735,9 +1737,11 @@ function propagationStopped(eventInfoWrapper) {
1735
1737
  function prepareEventForReplay(eventInfoWrapper) {
1736
1738
  const event = eventInfoWrapper.getEvent();
1737
1739
  const target = eventInfoWrapper.getTargetElement();
1740
+ const originalPreventDefault = event.preventDefault.bind(event);
1738
1741
  patchEventInstance(event, 'target', target);
1739
1742
  patchEventInstance(event, 'eventPhase', EventPhase.REPLAY);
1740
1743
  patchEventInstance(event, 'preventDefault', () => {
1744
+ originalPreventDefault();
1741
1745
  throw new Error(PREVENT_DEFAULT_ERROR_MESSAGE + (ngDevMode ? PREVENT_DEFAULT_ERROR_MESSAGE_DETAILS : ''));
1742
1746
  });
1743
1747
  patchEventInstance(event, 'composedPath', () => {