@angular/core 18.1.0-next.0 → 18.1.0-next.2
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.
- package/esm2022/primitives/event-dispatch/index.mjs +2 -1
- package/esm2022/primitives/event-dispatch/src/dispatcher.mjs +4 -3
- package/esm2022/primitives/event-dispatch/src/event_dispatcher.mjs +4 -6
- package/esm2022/primitives/event-dispatch/src/event_type.mjs +2 -2
- package/esm2022/primitives/signals/src/graph.mjs +6 -5
- package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +2 -4
- package/esm2022/src/core.mjs +1 -1
- package/esm2022/src/core_private_export.mjs +2 -2
- package/esm2022/src/event_delegation_utils.mjs +68 -0
- package/esm2022/src/event_emitter.mjs +20 -11
- package/esm2022/src/hydration/annotate.mjs +18 -7
- package/esm2022/src/hydration/api.mjs +2 -2
- package/esm2022/src/hydration/event_replay.mjs +46 -69
- package/esm2022/src/hydration/tokens.mjs +6 -1
- package/esm2022/src/pending_tasks.mjs +15 -20
- package/esm2022/src/render3/after_render_hooks.mjs +67 -132
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/instructions/change_detection.mjs +27 -24
- package/esm2022/src/render3/instructions/listener.mjs +5 -5
- package/esm2022/src/render3/instructions/shared.mjs +3 -3
- package/esm2022/src/render3/reactive_lview_consumer.mjs +56 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +474 -432
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +9 -10
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +6 -5
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +218 -28
- package/package.json +2 -2
- package/primitives/event-dispatch/index.d.ts +66 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/after-render-phase/bundle.js +602 -0
- package/schematics/migrations/after-render-phase/bundle.js.map +7 -0
- package/schematics/migrations/http-providers/bundle.js +10 -2
- package/schematics/migrations/http-providers/bundle.js.map +2 -2
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +177 -8
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +3 -3
- package/schematics/migrations.json +5 -0
- package/schematics/ng-generate/control-flow-migration/bundle.js +192 -16
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
- package/schematics/ng-generate/standalone-migration/bundle.js +9197 -9490
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.1.0-next.
|
|
2
|
+
* @license Angular v18.1.0-next.2
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -329,7 +329,7 @@ const NON_BUBBLING_MOUSE_EVENTS = [
|
|
|
329
329
|
/**
|
|
330
330
|
* Detects whether a given event type is supported by JSAction.
|
|
331
331
|
*/
|
|
332
|
-
const isSupportedEvent = (eventType) => SUPPORTED_EVENTS.
|
|
332
|
+
const isSupportedEvent = (eventType) => SUPPORTED_EVENTS.indexOf(eventType) >= 0;
|
|
333
333
|
const SUPPORTED_EVENTS = [
|
|
334
334
|
EventType.CLICK,
|
|
335
335
|
EventType.DBLCLICK,
|
|
@@ -1696,8 +1696,9 @@ function shouldPreventDefaultBeforeDispatching(actionElement, eventInfoWrapper)
|
|
|
1696
1696
|
// and we are dispatching the action now. Note that the targetElement may be
|
|
1697
1697
|
// a child of an anchor that has a jsaction attached. For that reason, we
|
|
1698
1698
|
// need to check the actionElement rather than the targetElement.
|
|
1699
|
-
return (
|
|
1700
|
-
eventInfoWrapper.getEventType() === EventType.
|
|
1699
|
+
return (actionElement.tagName === 'A' &&
|
|
1700
|
+
(eventInfoWrapper.getEventType() === EventType.CLICK ||
|
|
1701
|
+
eventInfoWrapper.getEventType() === EventType.CLICKMOD));
|
|
1701
1702
|
}
|
|
1702
1703
|
/**
|
|
1703
1704
|
* Registers deferred functionality for an EventContract and a Jsaction
|
|
@@ -1719,11 +1720,9 @@ const PREVENT_DEFAULT_ERROR_MESSAGE_DETAILS = ' Because event replay occurs afte
|
|
|
1719
1720
|
'effect. You can check whether an event is being replayed by accessing the event phase: ' +
|
|
1720
1721
|
'`event.eventPhase === EventPhase.REPLAY`.';
|
|
1721
1722
|
const PREVENT_DEFAULT_ERROR_MESSAGE = `\`preventDefault\` called during event replay.`;
|
|
1722
|
-
const COMPOSED_PATH_ERROR_MESSAGE_DETAILS =
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
'`event.currentTarget` if you need to check elements in the event path.'
|
|
1726
|
-
: '';
|
|
1723
|
+
const COMPOSED_PATH_ERROR_MESSAGE_DETAILS = ' Because event replay occurs after browser ' +
|
|
1724
|
+
'dispatch, `composedPath()` will be empty. Iterate parent nodes from `event.target` or ' +
|
|
1725
|
+
'`event.currentTarget` if you need to check elements in the event path.';
|
|
1727
1726
|
const COMPOSED_PATH_ERROR_MESSAGE = `\`composedPath\` called during event replay.`;
|
|
1728
1727
|
/**
|
|
1729
1728
|
* A dispatcher that uses browser-based `Event` semantics, for example bubbling, `stopPropagation`,
|
|
@@ -2270,5 +2269,5 @@ function bootstrapEarlyEventContract(field, container, appId, eventTypes, captur
|
|
|
2270
2269
|
eventContract.addEvents(captureEventTypes, true);
|
|
2271
2270
|
}
|
|
2272
2271
|
|
|
2273
|
-
export { EventContract, EventContractContainer, EventDispatcher, EventInfoWrapper, EventPhase, bootstrapEarlyEventContract, isCaptureEvent, isSupportedEvent, registerDispatcher };
|
|
2272
|
+
export { Attribute, EventContract, EventContractContainer, EventDispatcher, EventInfoWrapper, EventPhase, JSACTION$1 as JSACTION, JSINSTANCE, JSTRACK, OI$1 as OI, VED, VET, bootstrapEarlyEventContract, isCaptureEvent, isSupportedEvent, registerDispatcher };
|
|
2274
2273
|
//# sourceMappingURL=event-dispatch.mjs.map
|