@dooboostore/simple-web-component 1.0.49 → 1.0.51
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/README.md +790 -337
- package/dist/cjs/SwcAppEngine.js.map +2 -2
- package/dist/cjs/decorators/addEventListener.js +1925 -22
- package/dist/cjs/decorators/addEventListener.js.map +2 -2
- package/dist/cjs/decorators/applyAttribute.js +41 -47
- package/dist/cjs/decorators/applyAttribute.js.map +2 -2
- package/dist/cjs/decorators/applyClass.js +14 -11
- package/dist/cjs/decorators/applyClass.js.map +2 -2
- package/dist/cjs/decorators/applyNode.js +19 -21
- package/dist/cjs/decorators/applyNode.js.map +2 -2
- package/dist/cjs/decorators/applyProperty.js +24 -48
- package/dist/cjs/decorators/applyProperty.js.map +2 -2
- package/dist/cjs/decorators/applySlot.js +9 -8
- package/dist/cjs/decorators/applySlot.js.map +2 -2
- package/dist/cjs/decorators/applyStyle.js +14 -11
- package/dist/cjs/decorators/applyStyle.js.map +2 -2
- package/dist/cjs/decorators/around.js +124 -0
- package/dist/cjs/decorators/around.js.map +7 -0
- package/dist/cjs/decorators/changedAttribute.js +61 -24
- package/dist/cjs/decorators/changedAttribute.js.map +2 -2
- package/dist/cjs/decorators/elementDefine.js +240 -196
- package/dist/cjs/decorators/elementDefine.js.map +3 -3
- package/dist/cjs/decorators/emitCustomEvent.js +14 -12
- package/dist/cjs/decorators/emitCustomEvent.js.map +2 -2
- package/dist/cjs/decorators/eventMedia.js +112 -0
- package/dist/cjs/decorators/eventMedia.js.map +7 -0
- package/dist/cjs/decorators/fetch.js +278 -0
- package/dist/cjs/decorators/fetch.js.map +7 -0
- package/dist/cjs/decorators/index.js +8 -2
- package/dist/cjs/decorators/index.js.map +2 -2
- package/dist/cjs/decorators/intersectionObserver.js +76 -65
- package/dist/cjs/decorators/intersectionObserver.js.map +2 -2
- package/dist/cjs/decorators/lifecycles.js +11 -11
- package/dist/cjs/decorators/lifecycles.js.map +2 -2
- package/dist/cjs/decorators/mutationObserver.js +97 -90
- package/dist/cjs/decorators/mutationObserver.js.map +3 -3
- package/dist/cjs/decorators/parameter.js +156 -0
- package/dist/cjs/decorators/parameter.js.map +7 -0
- package/dist/cjs/decorators/publishSwcAppMessage.js +2 -2
- package/dist/cjs/decorators/publishSwcAppMessage.js.map +2 -2
- package/dist/cjs/decorators/query.js +11 -5
- package/dist/cjs/decorators/query.js.map +2 -2
- package/dist/cjs/decorators/requestAnimationFrame.js +115 -0
- package/dist/cjs/decorators/requestAnimationFrame.js.map +7 -0
- package/dist/cjs/decorators/resizeObserver.js +84 -69
- package/dist/cjs/decorators/resizeObserver.js.map +3 -3
- package/dist/cjs/decorators/setInterval.js +65 -22
- package/dist/cjs/decorators/setInterval.js.map +2 -2
- package/dist/cjs/decorators/setTimeout.js +68 -22
- package/dist/cjs/decorators/setTimeout.js.map +2 -2
- package/dist/cjs/decorators/state.js +13 -10
- package/dist/cjs/decorators/state.js.map +2 -2
- package/dist/cjs/decorators/{subscribeSwcAppMessageWhileConnected.js → subscribeSwcAppMessage.js} +20 -21
- package/dist/cjs/decorators/subscribeSwcAppMessage.js.map +7 -0
- package/dist/cjs/decorators/{subscribeSwcAppRouteChangeWhileConnected.js → subscribeSwcAppRouteChange.js} +23 -19
- package/dist/cjs/decorators/subscribeSwcAppRouteChange.js.map +7 -0
- package/dist/cjs/decorators/swcAppRoute.js +149 -0
- package/dist/cjs/decorators/swcAppRoute.js.map +7 -0
- package/dist/cjs/elements/SwcApp.js +70 -0
- package/dist/cjs/elements/SwcApp.js.map +2 -2
- package/dist/cjs/elements/SwcAppMixin.js +256 -67
- package/dist/cjs/elements/SwcAppMixin.js.map +3 -3
- package/dist/cjs/types/index.js +5 -1
- package/dist/cjs/types/index.js.map +2 -2
- package/dist/cjs/types/window.d.js.map +1 -1
- package/dist/cjs/utils/Utils.js +36 -15
- package/dist/cjs/utils/Utils.js.map +2 -2
- package/dist/esm/SwcAppEngine.js.map +2 -2
- package/dist/esm/decorators/addEventListener.js +1925 -22
- package/dist/esm/decorators/addEventListener.js.map +2 -2
- package/dist/esm/decorators/applyAttribute.js +41 -47
- package/dist/esm/decorators/applyAttribute.js.map +2 -2
- package/dist/esm/decorators/applyClass.js +14 -11
- package/dist/esm/decorators/applyClass.js.map +2 -2
- package/dist/esm/decorators/applyNode.js +20 -22
- package/dist/esm/decorators/applyNode.js.map +2 -2
- package/dist/esm/decorators/applyProperty.js +24 -48
- package/dist/esm/decorators/applyProperty.js.map +2 -2
- package/dist/esm/decorators/applySlot.js +9 -8
- package/dist/esm/decorators/applySlot.js.map +2 -2
- package/dist/esm/decorators/applyStyle.js +14 -11
- package/dist/esm/decorators/applyStyle.js.map +2 -2
- package/dist/esm/decorators/around.js +105 -0
- package/dist/esm/decorators/around.js.map +7 -0
- package/dist/esm/decorators/changedAttribute.js +61 -24
- package/dist/esm/decorators/changedAttribute.js.map +2 -2
- package/dist/esm/decorators/elementDefine.js +238 -194
- package/dist/esm/decorators/elementDefine.js.map +3 -3
- package/dist/esm/decorators/emitCustomEvent.js +15 -13
- package/dist/esm/decorators/emitCustomEvent.js.map +2 -2
- package/dist/esm/decorators/eventMedia.js +94 -0
- package/dist/esm/decorators/eventMedia.js.map +7 -0
- package/dist/esm/decorators/fetch.js +259 -0
- package/dist/esm/decorators/fetch.js.map +7 -0
- package/dist/esm/decorators/index.js +8 -2
- package/dist/esm/decorators/index.js.map +2 -2
- package/dist/esm/decorators/intersectionObserver.js +76 -65
- package/dist/esm/decorators/intersectionObserver.js.map +2 -2
- package/dist/esm/decorators/lifecycles.js +11 -11
- package/dist/esm/decorators/lifecycles.js.map +2 -2
- package/dist/esm/decorators/mutationObserver.js +97 -90
- package/dist/esm/decorators/mutationObserver.js.map +3 -3
- package/dist/esm/decorators/parameter.js +137 -0
- package/dist/esm/decorators/parameter.js.map +7 -0
- package/dist/esm/decorators/publishSwcAppMessage.js +2 -2
- package/dist/esm/decorators/publishSwcAppMessage.js.map +2 -2
- package/dist/esm/decorators/query.js +11 -5
- package/dist/esm/decorators/query.js.map +2 -2
- package/dist/esm/decorators/requestAnimationFrame.js +96 -0
- package/dist/esm/decorators/requestAnimationFrame.js.map +7 -0
- package/dist/esm/decorators/resizeObserver.js +84 -69
- package/dist/esm/decorators/resizeObserver.js.map +2 -2
- package/dist/esm/decorators/setInterval.js +65 -23
- package/dist/esm/decorators/setInterval.js.map +2 -2
- package/dist/esm/decorators/setTimeout.js +68 -23
- package/dist/esm/decorators/setTimeout.js.map +2 -2
- package/dist/esm/decorators/state.js +13 -10
- package/dist/esm/decorators/state.js.map +2 -2
- package/dist/esm/decorators/subscribeSwcAppMessage.js +53 -0
- package/dist/esm/decorators/subscribeSwcAppMessage.js.map +7 -0
- package/dist/esm/decorators/{subscribeSwcAppRouteChangeWhileConnected.js → subscribeSwcAppRouteChange.js} +20 -16
- package/dist/esm/decorators/subscribeSwcAppRouteChange.js.map +7 -0
- package/dist/esm/decorators/swcAppRoute.js +130 -0
- package/dist/esm/decorators/swcAppRoute.js.map +7 -0
- package/dist/esm/elements/SwcApp.js +70 -0
- package/dist/esm/elements/SwcApp.js.map +2 -2
- package/dist/esm/elements/SwcAppMixin.js +258 -69
- package/dist/esm/elements/SwcAppMixin.js.map +3 -3
- package/dist/esm/types/index.js +5 -1
- package/dist/esm/types/index.js.map +2 -2
- package/dist/esm/utils/Utils.js +36 -15
- package/dist/esm/utils/Utils.js.map +2 -2
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +4395 -1266
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
- package/dist/types/SwcAppEngine.d.ts +1 -0
- package/dist/types/SwcAppEngine.d.ts.map +1 -1
- package/dist/types/decorators/addEventListener.d.ts +936 -11
- package/dist/types/decorators/addEventListener.d.ts.map +1 -1
- package/dist/types/decorators/applyAttribute.d.ts +27 -37
- package/dist/types/decorators/applyAttribute.d.ts.map +1 -1
- package/dist/types/decorators/applyClass.d.ts +2 -2
- package/dist/types/decorators/applyClass.d.ts.map +1 -1
- package/dist/types/decorators/applyNode.d.ts +16 -16
- package/dist/types/decorators/applyNode.d.ts.map +1 -1
- package/dist/types/decorators/applyProperty.d.ts +28 -44
- package/dist/types/decorators/applyProperty.d.ts.map +1 -1
- package/dist/types/decorators/applySlot.d.ts.map +1 -1
- package/dist/types/decorators/applyStyle.d.ts +2 -2
- package/dist/types/decorators/applyStyle.d.ts.map +1 -1
- package/dist/types/decorators/around.d.ts +87 -0
- package/dist/types/decorators/around.d.ts.map +1 -0
- package/dist/types/decorators/changedAttribute.d.ts +22 -4
- package/dist/types/decorators/changedAttribute.d.ts.map +1 -1
- package/dist/types/decorators/elementDefine.d.ts.map +1 -1
- package/dist/types/decorators/emitCustomEvent.d.ts +0 -1
- package/dist/types/decorators/emitCustomEvent.d.ts.map +1 -1
- package/dist/types/decorators/eventMedia.d.ts +48 -0
- package/dist/types/decorators/eventMedia.d.ts.map +1 -0
- package/dist/types/decorators/fetch.d.ts +139 -0
- package/dist/types/decorators/fetch.d.ts.map +1 -0
- package/dist/types/decorators/index.d.ts +8 -2
- package/dist/types/decorators/index.d.ts.map +1 -1
- package/dist/types/decorators/intersectionObserver.d.ts +32 -10
- package/dist/types/decorators/intersectionObserver.d.ts.map +1 -1
- package/dist/types/decorators/lifecycles.d.ts +8 -7
- package/dist/types/decorators/lifecycles.d.ts.map +1 -1
- package/dist/types/decorators/mutationObserver.d.ts +34 -12
- package/dist/types/decorators/mutationObserver.d.ts.map +1 -1
- package/dist/types/decorators/parameter.d.ts +113 -0
- package/dist/types/decorators/parameter.d.ts.map +1 -0
- package/dist/types/decorators/publishSwcAppMessage.d.ts +0 -1
- package/dist/types/decorators/publishSwcAppMessage.d.ts.map +1 -1
- package/dist/types/decorators/query.d.ts +7 -7
- package/dist/types/decorators/query.d.ts.map +1 -1
- package/dist/types/decorators/requestAnimationFrame.d.ts +47 -0
- package/dist/types/decorators/requestAnimationFrame.d.ts.map +1 -0
- package/dist/types/decorators/resizeObserver.d.ts +34 -12
- package/dist/types/decorators/resizeObserver.d.ts.map +1 -1
- package/dist/types/decorators/setInterval.d.ts +27 -5
- package/dist/types/decorators/setInterval.d.ts.map +1 -1
- package/dist/types/decorators/setTimeout.d.ts +27 -5
- package/dist/types/decorators/setTimeout.d.ts.map +1 -1
- package/dist/types/decorators/state.d.ts.map +1 -1
- package/dist/types/decorators/subscribeSwcAppMessage.d.ts +44 -0
- package/dist/types/decorators/subscribeSwcAppMessage.d.ts.map +1 -0
- package/dist/types/decorators/subscribeSwcAppRouteChange.d.ts +60 -0
- package/dist/types/decorators/subscribeSwcAppRouteChange.d.ts.map +1 -0
- package/dist/types/decorators/swcAppRoute.d.ts +94 -0
- package/dist/types/decorators/swcAppRoute.d.ts.map +1 -0
- package/dist/types/elements/SwcApp.d.ts.map +1 -1
- package/dist/types/elements/SwcAppMixin.d.ts +423 -388
- package/dist/types/elements/SwcAppMixin.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +43 -4
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/utils/Utils.d.ts +15 -5
- package/dist/types/utils/Utils.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +4395 -1266
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
- package/package.json +8 -6
- package/src/SwcAppEngine.ts +1 -0
- package/src/decorators/addEventListener.ts +1086 -28
- package/src/decorators/applyAttribute.ts +82 -134
- package/src/decorators/applyClass.ts +14 -10
- package/src/decorators/applyNode.ts +39 -37
- package/src/decorators/applyProperty.ts +72 -100
- package/src/decorators/applySlot.ts +9 -8
- package/src/decorators/applyStyle.ts +14 -10
- package/src/decorators/around.ts +196 -0
- package/src/decorators/changedAttribute.ts +65 -26
- package/src/decorators/elementDefine.ts +298 -220
- package/src/decorators/emitCustomEvent.ts +17 -13
- package/src/decorators/eventMedia.ts +119 -0
- package/src/decorators/fetch.ts +454 -0
- package/src/decorators/index.ts +8 -2
- package/src/decorators/intersectionObserver.ts +108 -78
- package/src/decorators/lifecycles.ts +24 -22
- package/src/decorators/mutationObserver.ts +140 -104
- package/src/decorators/parameter.ts +212 -0
- package/src/decorators/publishSwcAppMessage.ts +3 -4
- package/src/decorators/query.ts +22 -14
- package/src/decorators/requestAnimationFrame.ts +149 -0
- package/src/decorators/resizeObserver.ts +119 -82
- package/src/decorators/setInterval.ts +90 -23
- package/src/decorators/setTimeout.ts +93 -23
- package/src/decorators/state.ts +19 -13
- package/src/decorators/subscribeSwcAppMessage.ts +106 -0
- package/src/decorators/subscribeSwcAppRouteChange.ts +131 -0
- package/src/decorators/swcAppRoute.ts +231 -0
- package/src/elements/SwcApp.ts +40 -10
- package/src/elements/SwcAppMixin.ts +329 -85
- package/src/types/index.ts +38 -5
- package/src/types/window.d.ts +2 -18
- package/src/utils/Utils.ts +50 -18
- package/dist/cjs/decorators/subscribeSwcAppMessageWhileConnected.js.map +0 -7
- package/dist/cjs/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +0 -7
- package/dist/cjs/examples/RxJSOperatorsExample.js +0 -285
- package/dist/cjs/examples/RxJSOperatorsExample.js.map +0 -7
- package/dist/esm/decorators/subscribeSwcAppMessageWhileConnected.js +0 -54
- package/dist/esm/decorators/subscribeSwcAppMessageWhileConnected.js.map +0 -7
- package/dist/esm/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +0 -7
- package/dist/esm/examples/RxJSOperatorsExample.js +0 -266
- package/dist/esm/examples/RxJSOperatorsExample.js.map +0 -7
- package/dist/types/decorators/subscribeSwcAppMessageWhileConnected.d.ts +0 -23
- package/dist/types/decorators/subscribeSwcAppMessageWhileConnected.d.ts.map +0 -1
- package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts +0 -31
- package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts.map +0 -1
- package/dist/types/examples/RxJSOperatorsExample.d.ts +0 -94
- package/dist/types/examples/RxJSOperatorsExample.d.ts.map +0 -1
- package/src/decorators/subscribeSwcAppMessageWhileConnected.ts +0 -91
- package/src/decorators/subscribeSwcAppRouteChangeWhileConnected.ts +0 -107
- package/src/examples/RxJSOperatorsExample.ts +0 -279
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReflectUtils } from '@dooboostore/core';
|
|
2
2
|
import { SpecialSelector, SwcQueryOptions, HelperHostSet, SwcFnSelector, SwcSelector } from '../types';
|
|
3
3
|
|
|
4
|
-
export interface AddEventListenerBaseOptions<TEvent extends Event = Event> extends EventListenerOptions {
|
|
4
|
+
export interface AddEventListenerBaseOptions<TEvent extends Event = Event, Return = any> extends EventListenerOptions {
|
|
5
5
|
capture?: boolean;
|
|
6
6
|
once?: boolean;
|
|
7
7
|
passive?: boolean;
|
|
@@ -10,7 +10,16 @@ export interface AddEventListenerBaseOptions<TEvent extends Event = Event> exten
|
|
|
10
10
|
preventDefault?: boolean;
|
|
11
11
|
// removeOnDisconnected?: boolean;
|
|
12
12
|
// delegate는 문자열 셀렉터 전용 → AddEventListenerQueryOptions에만 존재
|
|
13
|
-
filter?: (target:
|
|
13
|
+
filter?: (target: TEvent | CustomEvent, meta:{currentThis: any, helper: HelperHostSet}) => boolean | Promise<boolean>;
|
|
14
|
+
/**
|
|
15
|
+
* filter 통과 후, 핸들러 호출 직전에 실행되는 훅. 이벤트/meta에 더해 핸들러에 넘어갈 args 배열을 받으며 await된다(비동기 가능).
|
|
16
|
+
* 리턴값은 게이팅에 쓰이지 않는다(취소는 filter 담당).
|
|
17
|
+
*/
|
|
18
|
+
before?: (target: TEvent | CustomEvent, meta:{currentThis: any, helper: HelperHostSet}, args: any[]) => any | Promise<any>;
|
|
19
|
+
/**
|
|
20
|
+
* 핸들러가 성공/실패해도 항상 실행되는 정리 훅. ctx로 핸들러 인자/결과/에러를 받는다. 에러는 삼키지 않고 전파.
|
|
21
|
+
*/
|
|
22
|
+
finally?: (target: TEvent | CustomEvent, meta:{currentThis: any, helper: HelperHostSet}, ctx: { args: any[]; result?: Return; error?: any }) => any | Promise<any>;
|
|
14
23
|
// 리스너 제거(disconnected 또는 unmount) 시 호출되는 콜백. 첫 번째 인자는 바인딩된 타겟 element, 두 번째는 이 옵션이 속한 전체 옵션 객체(Base + SwcQuery + delegate).
|
|
15
24
|
removeListener?: (target: Element, optionValue: AddEventListenerQueryOptions<TEvent>) => void;
|
|
16
25
|
// RxJS operator options
|
|
@@ -32,7 +41,7 @@ export interface AddEventListenerMetadata<TEvent extends Event = Event> {
|
|
|
32
41
|
export const ADD_EVENT_LISTENER_METADATA_KEY = Symbol.for('simple-web-component:add-event-listener');
|
|
33
42
|
|
|
34
43
|
// root + delegate 허용 — 문자열 셀렉터는 컴포넌트 DOM 트리 안에서 탐색/델리게이션하므로 의미 있음
|
|
35
|
-
export type AddEventListenerQueryOptions<TEvent extends Event = Event> = AddEventListenerBaseOptions<TEvent> & SwcQueryOptions & { delegate?: boolean | 'this' | 'mutation' };
|
|
44
|
+
export type AddEventListenerQueryOptions<TEvent extends Event = Event, Return = any> = AddEventListenerBaseOptions<TEvent, Return> & SwcQueryOptions & { delegate?: boolean | 'this' | 'mutation' };
|
|
36
45
|
// root·delegate 비허용 — 함수 셀렉터는 이미 요소를 직접 반환하므로 root·delegate가 무의미함
|
|
37
46
|
export type AddEventListenerNonQueryOptions<TEvent extends Event = Event> = AddEventListenerBaseOptions<TEvent>;
|
|
38
47
|
|
|
@@ -45,12 +54,12 @@ export function addEventListener<TEvent extends Event = Event>(selector: string,
|
|
|
45
54
|
export function addEventListener<TEvent extends Event = Event>(selector: string, type: string[], options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
46
55
|
export function addEventListener<TEvent extends Event = Event>(selector: EventListenerFnSelector, type: string, options?: AddEventListenerNonQueryOptions<TEvent>): MethodDecorator;
|
|
47
56
|
/**
|
|
48
|
-
* @
|
|
57
|
+
* @event(type, options?) — 셀렉터 생략 시 $this(컴포넌트 자신)로 바인딩
|
|
49
58
|
*/
|
|
50
59
|
export function addEventListener<TEvent extends Event = Event>(type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
51
60
|
export function addEventListener<TEvent extends Event = Event>(type: string[], options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
52
61
|
/**
|
|
53
|
-
* @
|
|
62
|
+
* @event decorator to bind events to elements.
|
|
54
63
|
*/
|
|
55
64
|
export function addEventListener<TEvent extends Event = Event>(selectorOrType: EventListenerSelector | string | string[], typeOrOptions?: string | string[] | AddEventListenerQueryOptions<TEvent>, maybeOptions?: AddEventListenerQueryOptions<TEvent>): MethodDecorator {
|
|
56
65
|
return (targetObj: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {
|
|
@@ -73,7 +82,7 @@ export function addEventListener<TEvent extends Event = Event>(selectorOrType: E
|
|
|
73
82
|
|
|
74
83
|
const constructor = targetObj.constructor;
|
|
75
84
|
|
|
76
|
-
let listeners = ReflectUtils.
|
|
85
|
+
let listeners = ReflectUtils.getOwnMetadata(ADD_EVENT_LISTENER_METADATA_KEY, constructor) as AddEventListenerMetadata<TEvent>[] | undefined;
|
|
77
86
|
if (!listeners) {
|
|
78
87
|
listeners = [];
|
|
79
88
|
ReflectUtils.defineMetadata(ADD_EVENT_LISTENER_METADATA_KEY, listeners, constructor);
|
|
@@ -128,15 +137,9 @@ export function addEventListenerAll<TEvent extends Event = Event>(selector: stri
|
|
|
128
137
|
return addEventListener<TEvent>(selector, type, {...options??{}, root:'all'});
|
|
129
138
|
}
|
|
130
139
|
|
|
131
|
-
/**
|
|
132
|
-
* @addEventListenerThis decorator - simplified version of @addEventListener for $this selector
|
|
133
|
-
*/
|
|
134
|
-
export function addEventListenerThis<TEvent extends Event = Event>(type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator {
|
|
135
|
-
return addEventListener<TEvent>('$this', type, options);
|
|
136
|
-
}
|
|
137
140
|
|
|
138
141
|
/**
|
|
139
|
-
* @
|
|
142
|
+
* @eventAppHost decorator - simplified version of @event for $appHost selector
|
|
140
143
|
*/
|
|
141
144
|
export function addEventListenerAppHost<TEvent extends Event = Event>(type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator {
|
|
142
145
|
return addEventListener<TEvent>('$appHost', type, options);
|
|
@@ -165,11 +168,1013 @@ export const eventAll = addEventListenerAll;
|
|
|
165
168
|
export const eventAppHost = addEventListenerAppHost;
|
|
166
169
|
export const eventWindow = addEventListenerWindow;
|
|
167
170
|
export const eventDocument = addEventListenerDocument;
|
|
168
|
-
export const eventThis = addEventListenerThis;
|
|
169
171
|
|
|
172
|
+
// ─── 이벤트 타입별 별칭 (eventClick, eventClickDelegateLight, ...) ───
|
|
173
|
+
// 위 scope/delegate 축 별칭들을 특정 이벤트 타입에 고정해서 재바인딩한다.
|
|
174
|
+
// 실제 타입별 export 목록(885개, 아래)은 이 팩토리로 생성 스크립트를 돌려서 만들었다.
|
|
175
|
+
// 기본 별칭(eventClick)은 셀렉터를 빼면 자기 자신($this) — @event('click') 과 같다:
|
|
176
|
+
// @eventClick / @eventClick({...}) → $this, @eventClick('.btn', {...}) → 셀렉터
|
|
177
|
+
// selector 가 필요 없는 AppHost/Window/Document 는 options 만 받는다 (@eventClickWindow / @eventClickWindow({...})).
|
|
178
|
+
// 인자가 없으면 괄호도 없다 — 빈 괄호 @eventClick() 는 시그니처가 없어 타입 에러.
|
|
179
|
+
// 두 번째 인자가 string|symbol이면 (target, propertyKey, descriptor)로 직접 호출된 것으로 판단한다.
|
|
180
|
+
export interface TypedEventDecorator<TEvent extends Event = Event> {
|
|
181
|
+
(selector: string | EventListenerFnSelector, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
182
|
+
(options: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
183
|
+
(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function makeTypedEventDecorator<TEvent extends Event = Event>(type: string): TypedEventDecorator<TEvent> {
|
|
187
|
+
return ((a?: any, b?: any, c?: PropertyDescriptor): any => {
|
|
188
|
+
if (typeof b === 'string' || typeof b === 'symbol') return addEventListener<TEvent>('$this', type)(a, b, c!);
|
|
189
|
+
if (typeof a === 'string' || typeof a === 'function') return addEventListener<TEvent>(a, type, b);
|
|
190
|
+
return addEventListener<TEvent>('$this', type, a);
|
|
191
|
+
}) as TypedEventDecorator<TEvent>;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface BareableMethodDecorator<TOptions> {
|
|
195
|
+
(options: TOptions): MethodDecorator;
|
|
196
|
+
(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function makeBareableEventDecorator<TOptions>(bind: (options?: TOptions) => MethodDecorator): BareableMethodDecorator<TOptions> {
|
|
200
|
+
return ((a?: any, b?: any, c?: PropertyDescriptor): any => {
|
|
201
|
+
if (typeof b === 'string' || typeof b === 'symbol') {
|
|
202
|
+
return bind()(a, b, c);
|
|
203
|
+
}
|
|
204
|
+
return bind(a);
|
|
205
|
+
}) as BareableMethodDecorator<TOptions>;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function makeTypedEventAliases<TEvent extends Event = Event>(type: string) {
|
|
209
|
+
return {
|
|
210
|
+
base: makeTypedEventDecorator<TEvent>(type),
|
|
211
|
+
delegateLight: (selector: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>) => addEventListenerDelegateLight<TEvent>(selector, type, options),
|
|
212
|
+
delegateShadow: (selector: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>) => addEventListenerDelegateShadow<TEvent>(selector, type, options),
|
|
213
|
+
delegateAll: (selector: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>) => addEventListenerDelegateAll<TEvent>(selector, type, options),
|
|
214
|
+
delegate: (selector: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>) => addEventListenerDelegate<TEvent>(selector, type, options),
|
|
215
|
+
mutationLight: (selector: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>) => addEventListenerMutationLight<TEvent>(selector, type, options),
|
|
216
|
+
mutationShadow: (selector: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>) => addEventListenerMutationShadow<TEvent>(selector, type, options),
|
|
217
|
+
mutationAll: (selector: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>) => addEventListenerMutationAll<TEvent>(selector, type, options),
|
|
218
|
+
mutation: (selector: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>) => addEventListenerMutation<TEvent>(selector, type, options),
|
|
219
|
+
light: (selector: string, options?: AddEventListenerQueryOptions<TEvent>) => addEventListenerLight<TEvent>(selector, type, options),
|
|
220
|
+
shadow: (selector: string, options?: AddEventListenerQueryOptions<TEvent>) => addEventListenerShadow<TEvent>(selector, type, options),
|
|
221
|
+
all: (selector: string, options?: AddEventListenerQueryOptions<TEvent>) => addEventListenerAll<TEvent>(selector, type, options),
|
|
222
|
+
appHost: makeBareableEventDecorator<AddEventListenerQueryOptions<TEvent>>((options) => addEventListenerAppHost<TEvent>(type, options)),
|
|
223
|
+
window: makeBareableEventDecorator<AddEventListenerQueryOptions<TEvent>>((options) => addEventListenerWindow<TEvent>(type, options)),
|
|
224
|
+
document: makeBareableEventDecorator<AddEventListenerQueryOptions<TEvent>>((options) => addEventListenerDocument<TEvent>(type, options)),
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// ─── 이벤트 타입별 별칭 (eventClick, eventClickDelegateLight, eventInputThis, ...) ───
|
|
229
|
+
// 위 makeTypedEventAliases 팩토리를 자주 쓰는 DOM 이벤트 타입 각각에 대해 미리 바인딩해둔 것.
|
|
230
|
+
// 생성 스크립트로 만들어짐 — 새 타입을 추가하려면 같은 패턴(15개 export)을 추가하면 된다.
|
|
231
|
+
const clickAliases = makeTypedEventAliases<MouseEvent>('click');
|
|
232
|
+
export const eventClick = clickAliases.base;
|
|
233
|
+
export const eventClickDelegateLight = clickAliases.delegateLight;
|
|
234
|
+
export const eventClickDelegateShadow = clickAliases.delegateShadow;
|
|
235
|
+
export const eventClickDelegateAll = clickAliases.delegateAll;
|
|
236
|
+
export const eventClickDelegate = clickAliases.delegate;
|
|
237
|
+
export const eventClickMutationLight = clickAliases.mutationLight;
|
|
238
|
+
export const eventClickMutationShadow = clickAliases.mutationShadow;
|
|
239
|
+
export const eventClickMutationAll = clickAliases.mutationAll;
|
|
240
|
+
export const eventClickMutation = clickAliases.mutation;
|
|
241
|
+
export const eventClickLight = clickAliases.light;
|
|
242
|
+
export const eventClickShadow = clickAliases.shadow;
|
|
243
|
+
export const eventClickAll = clickAliases.all;
|
|
244
|
+
export const eventClickAppHost = clickAliases.appHost;
|
|
245
|
+
export const eventClickWindow = clickAliases.window;
|
|
246
|
+
export const eventClickDocument = clickAliases.document;
|
|
247
|
+
const dblclickAliases = makeTypedEventAliases<MouseEvent>('dblclick');
|
|
248
|
+
export const eventDblclick = dblclickAliases.base;
|
|
249
|
+
export const eventDblclickDelegateLight = dblclickAliases.delegateLight;
|
|
250
|
+
export const eventDblclickDelegateShadow = dblclickAliases.delegateShadow;
|
|
251
|
+
export const eventDblclickDelegateAll = dblclickAliases.delegateAll;
|
|
252
|
+
export const eventDblclickDelegate = dblclickAliases.delegate;
|
|
253
|
+
export const eventDblclickMutationLight = dblclickAliases.mutationLight;
|
|
254
|
+
export const eventDblclickMutationShadow = dblclickAliases.mutationShadow;
|
|
255
|
+
export const eventDblclickMutationAll = dblclickAliases.mutationAll;
|
|
256
|
+
export const eventDblclickMutation = dblclickAliases.mutation;
|
|
257
|
+
export const eventDblclickLight = dblclickAliases.light;
|
|
258
|
+
export const eventDblclickShadow = dblclickAliases.shadow;
|
|
259
|
+
export const eventDblclickAll = dblclickAliases.all;
|
|
260
|
+
export const eventDblclickAppHost = dblclickAliases.appHost;
|
|
261
|
+
export const eventDblclickWindow = dblclickAliases.window;
|
|
262
|
+
export const eventDblclickDocument = dblclickAliases.document;
|
|
263
|
+
const mousedownAliases = makeTypedEventAliases<MouseEvent>('mousedown');
|
|
264
|
+
export const eventMousedown = mousedownAliases.base;
|
|
265
|
+
export const eventMousedownDelegateLight = mousedownAliases.delegateLight;
|
|
266
|
+
export const eventMousedownDelegateShadow = mousedownAliases.delegateShadow;
|
|
267
|
+
export const eventMousedownDelegateAll = mousedownAliases.delegateAll;
|
|
268
|
+
export const eventMousedownDelegate = mousedownAliases.delegate;
|
|
269
|
+
export const eventMousedownMutationLight = mousedownAliases.mutationLight;
|
|
270
|
+
export const eventMousedownMutationShadow = mousedownAliases.mutationShadow;
|
|
271
|
+
export const eventMousedownMutationAll = mousedownAliases.mutationAll;
|
|
272
|
+
export const eventMousedownMutation = mousedownAliases.mutation;
|
|
273
|
+
export const eventMousedownLight = mousedownAliases.light;
|
|
274
|
+
export const eventMousedownShadow = mousedownAliases.shadow;
|
|
275
|
+
export const eventMousedownAll = mousedownAliases.all;
|
|
276
|
+
export const eventMousedownAppHost = mousedownAliases.appHost;
|
|
277
|
+
export const eventMousedownWindow = mousedownAliases.window;
|
|
278
|
+
export const eventMousedownDocument = mousedownAliases.document;
|
|
279
|
+
const mouseupAliases = makeTypedEventAliases<MouseEvent>('mouseup');
|
|
280
|
+
export const eventMouseup = mouseupAliases.base;
|
|
281
|
+
export const eventMouseupDelegateLight = mouseupAliases.delegateLight;
|
|
282
|
+
export const eventMouseupDelegateShadow = mouseupAliases.delegateShadow;
|
|
283
|
+
export const eventMouseupDelegateAll = mouseupAliases.delegateAll;
|
|
284
|
+
export const eventMouseupDelegate = mouseupAliases.delegate;
|
|
285
|
+
export const eventMouseupMutationLight = mouseupAliases.mutationLight;
|
|
286
|
+
export const eventMouseupMutationShadow = mouseupAliases.mutationShadow;
|
|
287
|
+
export const eventMouseupMutationAll = mouseupAliases.mutationAll;
|
|
288
|
+
export const eventMouseupMutation = mouseupAliases.mutation;
|
|
289
|
+
export const eventMouseupLight = mouseupAliases.light;
|
|
290
|
+
export const eventMouseupShadow = mouseupAliases.shadow;
|
|
291
|
+
export const eventMouseupAll = mouseupAliases.all;
|
|
292
|
+
export const eventMouseupAppHost = mouseupAliases.appHost;
|
|
293
|
+
export const eventMouseupWindow = mouseupAliases.window;
|
|
294
|
+
export const eventMouseupDocument = mouseupAliases.document;
|
|
295
|
+
const mousemoveAliases = makeTypedEventAliases<MouseEvent>('mousemove');
|
|
296
|
+
export const eventMousemove = mousemoveAliases.base;
|
|
297
|
+
export const eventMousemoveDelegateLight = mousemoveAliases.delegateLight;
|
|
298
|
+
export const eventMousemoveDelegateShadow = mousemoveAliases.delegateShadow;
|
|
299
|
+
export const eventMousemoveDelegateAll = mousemoveAliases.delegateAll;
|
|
300
|
+
export const eventMousemoveDelegate = mousemoveAliases.delegate;
|
|
301
|
+
export const eventMousemoveMutationLight = mousemoveAliases.mutationLight;
|
|
302
|
+
export const eventMousemoveMutationShadow = mousemoveAliases.mutationShadow;
|
|
303
|
+
export const eventMousemoveMutationAll = mousemoveAliases.mutationAll;
|
|
304
|
+
export const eventMousemoveMutation = mousemoveAliases.mutation;
|
|
305
|
+
export const eventMousemoveLight = mousemoveAliases.light;
|
|
306
|
+
export const eventMousemoveShadow = mousemoveAliases.shadow;
|
|
307
|
+
export const eventMousemoveAll = mousemoveAliases.all;
|
|
308
|
+
export const eventMousemoveAppHost = mousemoveAliases.appHost;
|
|
309
|
+
export const eventMousemoveWindow = mousemoveAliases.window;
|
|
310
|
+
export const eventMousemoveDocument = mousemoveAliases.document;
|
|
311
|
+
const mouseoverAliases = makeTypedEventAliases<MouseEvent>('mouseover');
|
|
312
|
+
export const eventMouseover = mouseoverAliases.base;
|
|
313
|
+
export const eventMouseoverDelegateLight = mouseoverAliases.delegateLight;
|
|
314
|
+
export const eventMouseoverDelegateShadow = mouseoverAliases.delegateShadow;
|
|
315
|
+
export const eventMouseoverDelegateAll = mouseoverAliases.delegateAll;
|
|
316
|
+
export const eventMouseoverDelegate = mouseoverAliases.delegate;
|
|
317
|
+
export const eventMouseoverMutationLight = mouseoverAliases.mutationLight;
|
|
318
|
+
export const eventMouseoverMutationShadow = mouseoverAliases.mutationShadow;
|
|
319
|
+
export const eventMouseoverMutationAll = mouseoverAliases.mutationAll;
|
|
320
|
+
export const eventMouseoverMutation = mouseoverAliases.mutation;
|
|
321
|
+
export const eventMouseoverLight = mouseoverAliases.light;
|
|
322
|
+
export const eventMouseoverShadow = mouseoverAliases.shadow;
|
|
323
|
+
export const eventMouseoverAll = mouseoverAliases.all;
|
|
324
|
+
export const eventMouseoverAppHost = mouseoverAliases.appHost;
|
|
325
|
+
export const eventMouseoverWindow = mouseoverAliases.window;
|
|
326
|
+
export const eventMouseoverDocument = mouseoverAliases.document;
|
|
327
|
+
const mouseoutAliases = makeTypedEventAliases<MouseEvent>('mouseout');
|
|
328
|
+
export const eventMouseout = mouseoutAliases.base;
|
|
329
|
+
export const eventMouseoutDelegateLight = mouseoutAliases.delegateLight;
|
|
330
|
+
export const eventMouseoutDelegateShadow = mouseoutAliases.delegateShadow;
|
|
331
|
+
export const eventMouseoutDelegateAll = mouseoutAliases.delegateAll;
|
|
332
|
+
export const eventMouseoutDelegate = mouseoutAliases.delegate;
|
|
333
|
+
export const eventMouseoutMutationLight = mouseoutAliases.mutationLight;
|
|
334
|
+
export const eventMouseoutMutationShadow = mouseoutAliases.mutationShadow;
|
|
335
|
+
export const eventMouseoutMutationAll = mouseoutAliases.mutationAll;
|
|
336
|
+
export const eventMouseoutMutation = mouseoutAliases.mutation;
|
|
337
|
+
export const eventMouseoutLight = mouseoutAliases.light;
|
|
338
|
+
export const eventMouseoutShadow = mouseoutAliases.shadow;
|
|
339
|
+
export const eventMouseoutAll = mouseoutAliases.all;
|
|
340
|
+
export const eventMouseoutAppHost = mouseoutAliases.appHost;
|
|
341
|
+
export const eventMouseoutWindow = mouseoutAliases.window;
|
|
342
|
+
export const eventMouseoutDocument = mouseoutAliases.document;
|
|
343
|
+
const mouseenterAliases = makeTypedEventAliases<MouseEvent>('mouseenter');
|
|
344
|
+
export const eventMouseenter = mouseenterAliases.base;
|
|
345
|
+
export const eventMouseenterDelegateLight = mouseenterAliases.delegateLight;
|
|
346
|
+
export const eventMouseenterDelegateShadow = mouseenterAliases.delegateShadow;
|
|
347
|
+
export const eventMouseenterDelegateAll = mouseenterAliases.delegateAll;
|
|
348
|
+
export const eventMouseenterDelegate = mouseenterAliases.delegate;
|
|
349
|
+
export const eventMouseenterMutationLight = mouseenterAliases.mutationLight;
|
|
350
|
+
export const eventMouseenterMutationShadow = mouseenterAliases.mutationShadow;
|
|
351
|
+
export const eventMouseenterMutationAll = mouseenterAliases.mutationAll;
|
|
352
|
+
export const eventMouseenterMutation = mouseenterAliases.mutation;
|
|
353
|
+
export const eventMouseenterLight = mouseenterAliases.light;
|
|
354
|
+
export const eventMouseenterShadow = mouseenterAliases.shadow;
|
|
355
|
+
export const eventMouseenterAll = mouseenterAliases.all;
|
|
356
|
+
export const eventMouseenterAppHost = mouseenterAliases.appHost;
|
|
357
|
+
export const eventMouseenterWindow = mouseenterAliases.window;
|
|
358
|
+
export const eventMouseenterDocument = mouseenterAliases.document;
|
|
359
|
+
const mouseleaveAliases = makeTypedEventAliases<MouseEvent>('mouseleave');
|
|
360
|
+
export const eventMouseleave = mouseleaveAliases.base;
|
|
361
|
+
export const eventMouseleaveDelegateLight = mouseleaveAliases.delegateLight;
|
|
362
|
+
export const eventMouseleaveDelegateShadow = mouseleaveAliases.delegateShadow;
|
|
363
|
+
export const eventMouseleaveDelegateAll = mouseleaveAliases.delegateAll;
|
|
364
|
+
export const eventMouseleaveDelegate = mouseleaveAliases.delegate;
|
|
365
|
+
export const eventMouseleaveMutationLight = mouseleaveAliases.mutationLight;
|
|
366
|
+
export const eventMouseleaveMutationShadow = mouseleaveAliases.mutationShadow;
|
|
367
|
+
export const eventMouseleaveMutationAll = mouseleaveAliases.mutationAll;
|
|
368
|
+
export const eventMouseleaveMutation = mouseleaveAliases.mutation;
|
|
369
|
+
export const eventMouseleaveLight = mouseleaveAliases.light;
|
|
370
|
+
export const eventMouseleaveShadow = mouseleaveAliases.shadow;
|
|
371
|
+
export const eventMouseleaveAll = mouseleaveAliases.all;
|
|
372
|
+
export const eventMouseleaveAppHost = mouseleaveAliases.appHost;
|
|
373
|
+
export const eventMouseleaveWindow = mouseleaveAliases.window;
|
|
374
|
+
export const eventMouseleaveDocument = mouseleaveAliases.document;
|
|
375
|
+
const contextmenuAliases = makeTypedEventAliases<MouseEvent>('contextmenu');
|
|
376
|
+
export const eventContextmenu = contextmenuAliases.base;
|
|
377
|
+
export const eventContextmenuDelegateLight = contextmenuAliases.delegateLight;
|
|
378
|
+
export const eventContextmenuDelegateShadow = contextmenuAliases.delegateShadow;
|
|
379
|
+
export const eventContextmenuDelegateAll = contextmenuAliases.delegateAll;
|
|
380
|
+
export const eventContextmenuDelegate = contextmenuAliases.delegate;
|
|
381
|
+
export const eventContextmenuMutationLight = contextmenuAliases.mutationLight;
|
|
382
|
+
export const eventContextmenuMutationShadow = contextmenuAliases.mutationShadow;
|
|
383
|
+
export const eventContextmenuMutationAll = contextmenuAliases.mutationAll;
|
|
384
|
+
export const eventContextmenuMutation = contextmenuAliases.mutation;
|
|
385
|
+
export const eventContextmenuLight = contextmenuAliases.light;
|
|
386
|
+
export const eventContextmenuShadow = contextmenuAliases.shadow;
|
|
387
|
+
export const eventContextmenuAll = contextmenuAliases.all;
|
|
388
|
+
export const eventContextmenuAppHost = contextmenuAliases.appHost;
|
|
389
|
+
export const eventContextmenuWindow = contextmenuAliases.window;
|
|
390
|
+
export const eventContextmenuDocument = contextmenuAliases.document;
|
|
391
|
+
const wheelAliases = makeTypedEventAliases<WheelEvent>('wheel');
|
|
392
|
+
export const eventWheel = wheelAliases.base;
|
|
393
|
+
export const eventWheelDelegateLight = wheelAliases.delegateLight;
|
|
394
|
+
export const eventWheelDelegateShadow = wheelAliases.delegateShadow;
|
|
395
|
+
export const eventWheelDelegateAll = wheelAliases.delegateAll;
|
|
396
|
+
export const eventWheelDelegate = wheelAliases.delegate;
|
|
397
|
+
export const eventWheelMutationLight = wheelAliases.mutationLight;
|
|
398
|
+
export const eventWheelMutationShadow = wheelAliases.mutationShadow;
|
|
399
|
+
export const eventWheelMutationAll = wheelAliases.mutationAll;
|
|
400
|
+
export const eventWheelMutation = wheelAliases.mutation;
|
|
401
|
+
export const eventWheelLight = wheelAliases.light;
|
|
402
|
+
export const eventWheelShadow = wheelAliases.shadow;
|
|
403
|
+
export const eventWheelAll = wheelAliases.all;
|
|
404
|
+
export const eventWheelAppHost = wheelAliases.appHost;
|
|
405
|
+
export const eventWheelWindow = wheelAliases.window;
|
|
406
|
+
export const eventWheelDocument = wheelAliases.document;
|
|
407
|
+
const keydownAliases = makeTypedEventAliases<KeyboardEvent>('keydown');
|
|
408
|
+
export const eventKeydown = keydownAliases.base;
|
|
409
|
+
export const eventKeydownDelegateLight = keydownAliases.delegateLight;
|
|
410
|
+
export const eventKeydownDelegateShadow = keydownAliases.delegateShadow;
|
|
411
|
+
export const eventKeydownDelegateAll = keydownAliases.delegateAll;
|
|
412
|
+
export const eventKeydownDelegate = keydownAliases.delegate;
|
|
413
|
+
export const eventKeydownMutationLight = keydownAliases.mutationLight;
|
|
414
|
+
export const eventKeydownMutationShadow = keydownAliases.mutationShadow;
|
|
415
|
+
export const eventKeydownMutationAll = keydownAliases.mutationAll;
|
|
416
|
+
export const eventKeydownMutation = keydownAliases.mutation;
|
|
417
|
+
export const eventKeydownLight = keydownAliases.light;
|
|
418
|
+
export const eventKeydownShadow = keydownAliases.shadow;
|
|
419
|
+
export const eventKeydownAll = keydownAliases.all;
|
|
420
|
+
export const eventKeydownAppHost = keydownAliases.appHost;
|
|
421
|
+
export const eventKeydownWindow = keydownAliases.window;
|
|
422
|
+
export const eventKeydownDocument = keydownAliases.document;
|
|
423
|
+
const keyupAliases = makeTypedEventAliases<KeyboardEvent>('keyup');
|
|
424
|
+
export const eventKeyup = keyupAliases.base;
|
|
425
|
+
export const eventKeyupDelegateLight = keyupAliases.delegateLight;
|
|
426
|
+
export const eventKeyupDelegateShadow = keyupAliases.delegateShadow;
|
|
427
|
+
export const eventKeyupDelegateAll = keyupAliases.delegateAll;
|
|
428
|
+
export const eventKeyupDelegate = keyupAliases.delegate;
|
|
429
|
+
export const eventKeyupMutationLight = keyupAliases.mutationLight;
|
|
430
|
+
export const eventKeyupMutationShadow = keyupAliases.mutationShadow;
|
|
431
|
+
export const eventKeyupMutationAll = keyupAliases.mutationAll;
|
|
432
|
+
export const eventKeyupMutation = keyupAliases.mutation;
|
|
433
|
+
export const eventKeyupLight = keyupAliases.light;
|
|
434
|
+
export const eventKeyupShadow = keyupAliases.shadow;
|
|
435
|
+
export const eventKeyupAll = keyupAliases.all;
|
|
436
|
+
export const eventKeyupAppHost = keyupAliases.appHost;
|
|
437
|
+
export const eventKeyupWindow = keyupAliases.window;
|
|
438
|
+
export const eventKeyupDocument = keyupAliases.document;
|
|
439
|
+
const keypressAliases = makeTypedEventAliases<KeyboardEvent>('keypress');
|
|
440
|
+
export const eventKeypress = keypressAliases.base;
|
|
441
|
+
export const eventKeypressDelegateLight = keypressAliases.delegateLight;
|
|
442
|
+
export const eventKeypressDelegateShadow = keypressAliases.delegateShadow;
|
|
443
|
+
export const eventKeypressDelegateAll = keypressAliases.delegateAll;
|
|
444
|
+
export const eventKeypressDelegate = keypressAliases.delegate;
|
|
445
|
+
export const eventKeypressMutationLight = keypressAliases.mutationLight;
|
|
446
|
+
export const eventKeypressMutationShadow = keypressAliases.mutationShadow;
|
|
447
|
+
export const eventKeypressMutationAll = keypressAliases.mutationAll;
|
|
448
|
+
export const eventKeypressMutation = keypressAliases.mutation;
|
|
449
|
+
export const eventKeypressLight = keypressAliases.light;
|
|
450
|
+
export const eventKeypressShadow = keypressAliases.shadow;
|
|
451
|
+
export const eventKeypressAll = keypressAliases.all;
|
|
452
|
+
export const eventKeypressAppHost = keypressAliases.appHost;
|
|
453
|
+
export const eventKeypressWindow = keypressAliases.window;
|
|
454
|
+
export const eventKeypressDocument = keypressAliases.document;
|
|
455
|
+
const inputAliases = makeTypedEventAliases<InputEvent>('input');
|
|
456
|
+
export const eventInput = inputAliases.base;
|
|
457
|
+
export const eventInputDelegateLight = inputAliases.delegateLight;
|
|
458
|
+
export const eventInputDelegateShadow = inputAliases.delegateShadow;
|
|
459
|
+
export const eventInputDelegateAll = inputAliases.delegateAll;
|
|
460
|
+
export const eventInputDelegate = inputAliases.delegate;
|
|
461
|
+
export const eventInputMutationLight = inputAliases.mutationLight;
|
|
462
|
+
export const eventInputMutationShadow = inputAliases.mutationShadow;
|
|
463
|
+
export const eventInputMutationAll = inputAliases.mutationAll;
|
|
464
|
+
export const eventInputMutation = inputAliases.mutation;
|
|
465
|
+
export const eventInputLight = inputAliases.light;
|
|
466
|
+
export const eventInputShadow = inputAliases.shadow;
|
|
467
|
+
export const eventInputAll = inputAliases.all;
|
|
468
|
+
export const eventInputAppHost = inputAliases.appHost;
|
|
469
|
+
export const eventInputWindow = inputAliases.window;
|
|
470
|
+
export const eventInputDocument = inputAliases.document;
|
|
471
|
+
const changeAliases = makeTypedEventAliases<Event>('change');
|
|
472
|
+
export const eventChange = changeAliases.base;
|
|
473
|
+
export const eventChangeDelegateLight = changeAliases.delegateLight;
|
|
474
|
+
export const eventChangeDelegateShadow = changeAliases.delegateShadow;
|
|
475
|
+
export const eventChangeDelegateAll = changeAliases.delegateAll;
|
|
476
|
+
export const eventChangeDelegate = changeAliases.delegate;
|
|
477
|
+
export const eventChangeMutationLight = changeAliases.mutationLight;
|
|
478
|
+
export const eventChangeMutationShadow = changeAliases.mutationShadow;
|
|
479
|
+
export const eventChangeMutationAll = changeAliases.mutationAll;
|
|
480
|
+
export const eventChangeMutation = changeAliases.mutation;
|
|
481
|
+
export const eventChangeLight = changeAliases.light;
|
|
482
|
+
export const eventChangeShadow = changeAliases.shadow;
|
|
483
|
+
export const eventChangeAll = changeAliases.all;
|
|
484
|
+
export const eventChangeAppHost = changeAliases.appHost;
|
|
485
|
+
export const eventChangeWindow = changeAliases.window;
|
|
486
|
+
export const eventChangeDocument = changeAliases.document;
|
|
487
|
+
const submitAliases = makeTypedEventAliases<SubmitEvent>('submit');
|
|
488
|
+
export const eventSubmit = submitAliases.base;
|
|
489
|
+
export const eventSubmitDelegateLight = submitAliases.delegateLight;
|
|
490
|
+
export const eventSubmitDelegateShadow = submitAliases.delegateShadow;
|
|
491
|
+
export const eventSubmitDelegateAll = submitAliases.delegateAll;
|
|
492
|
+
export const eventSubmitDelegate = submitAliases.delegate;
|
|
493
|
+
export const eventSubmitMutationLight = submitAliases.mutationLight;
|
|
494
|
+
export const eventSubmitMutationShadow = submitAliases.mutationShadow;
|
|
495
|
+
export const eventSubmitMutationAll = submitAliases.mutationAll;
|
|
496
|
+
export const eventSubmitMutation = submitAliases.mutation;
|
|
497
|
+
export const eventSubmitLight = submitAliases.light;
|
|
498
|
+
export const eventSubmitShadow = submitAliases.shadow;
|
|
499
|
+
export const eventSubmitAll = submitAliases.all;
|
|
500
|
+
export const eventSubmitAppHost = submitAliases.appHost;
|
|
501
|
+
export const eventSubmitWindow = submitAliases.window;
|
|
502
|
+
export const eventSubmitDocument = submitAliases.document;
|
|
503
|
+
const resetAliases = makeTypedEventAliases<Event>('reset');
|
|
504
|
+
export const eventReset = resetAliases.base;
|
|
505
|
+
export const eventResetDelegateLight = resetAliases.delegateLight;
|
|
506
|
+
export const eventResetDelegateShadow = resetAliases.delegateShadow;
|
|
507
|
+
export const eventResetDelegateAll = resetAliases.delegateAll;
|
|
508
|
+
export const eventResetDelegate = resetAliases.delegate;
|
|
509
|
+
export const eventResetMutationLight = resetAliases.mutationLight;
|
|
510
|
+
export const eventResetMutationShadow = resetAliases.mutationShadow;
|
|
511
|
+
export const eventResetMutationAll = resetAliases.mutationAll;
|
|
512
|
+
export const eventResetMutation = resetAliases.mutation;
|
|
513
|
+
export const eventResetLight = resetAliases.light;
|
|
514
|
+
export const eventResetShadow = resetAliases.shadow;
|
|
515
|
+
export const eventResetAll = resetAliases.all;
|
|
516
|
+
export const eventResetAppHost = resetAliases.appHost;
|
|
517
|
+
export const eventResetWindow = resetAliases.window;
|
|
518
|
+
export const eventResetDocument = resetAliases.document;
|
|
519
|
+
const invalidAliases = makeTypedEventAliases<Event>('invalid');
|
|
520
|
+
export const eventInvalid = invalidAliases.base;
|
|
521
|
+
export const eventInvalidDelegateLight = invalidAliases.delegateLight;
|
|
522
|
+
export const eventInvalidDelegateShadow = invalidAliases.delegateShadow;
|
|
523
|
+
export const eventInvalidDelegateAll = invalidAliases.delegateAll;
|
|
524
|
+
export const eventInvalidDelegate = invalidAliases.delegate;
|
|
525
|
+
export const eventInvalidMutationLight = invalidAliases.mutationLight;
|
|
526
|
+
export const eventInvalidMutationShadow = invalidAliases.mutationShadow;
|
|
527
|
+
export const eventInvalidMutationAll = invalidAliases.mutationAll;
|
|
528
|
+
export const eventInvalidMutation = invalidAliases.mutation;
|
|
529
|
+
export const eventInvalidLight = invalidAliases.light;
|
|
530
|
+
export const eventInvalidShadow = invalidAliases.shadow;
|
|
531
|
+
export const eventInvalidAll = invalidAliases.all;
|
|
532
|
+
export const eventInvalidAppHost = invalidAliases.appHost;
|
|
533
|
+
export const eventInvalidWindow = invalidAliases.window;
|
|
534
|
+
export const eventInvalidDocument = invalidAliases.document;
|
|
535
|
+
const selectAliases = makeTypedEventAliases<Event>('select');
|
|
536
|
+
export const eventSelect = selectAliases.base;
|
|
537
|
+
export const eventSelectDelegateLight = selectAliases.delegateLight;
|
|
538
|
+
export const eventSelectDelegateShadow = selectAliases.delegateShadow;
|
|
539
|
+
export const eventSelectDelegateAll = selectAliases.delegateAll;
|
|
540
|
+
export const eventSelectDelegate = selectAliases.delegate;
|
|
541
|
+
export const eventSelectMutationLight = selectAliases.mutationLight;
|
|
542
|
+
export const eventSelectMutationShadow = selectAliases.mutationShadow;
|
|
543
|
+
export const eventSelectMutationAll = selectAliases.mutationAll;
|
|
544
|
+
export const eventSelectMutation = selectAliases.mutation;
|
|
545
|
+
export const eventSelectLight = selectAliases.light;
|
|
546
|
+
export const eventSelectShadow = selectAliases.shadow;
|
|
547
|
+
export const eventSelectAll = selectAliases.all;
|
|
548
|
+
export const eventSelectAppHost = selectAliases.appHost;
|
|
549
|
+
export const eventSelectWindow = selectAliases.window;
|
|
550
|
+
export const eventSelectDocument = selectAliases.document;
|
|
551
|
+
const focusAliases = makeTypedEventAliases<FocusEvent>('focus');
|
|
552
|
+
export const eventFocus = focusAliases.base;
|
|
553
|
+
export const eventFocusDelegateLight = focusAliases.delegateLight;
|
|
554
|
+
export const eventFocusDelegateShadow = focusAliases.delegateShadow;
|
|
555
|
+
export const eventFocusDelegateAll = focusAliases.delegateAll;
|
|
556
|
+
export const eventFocusDelegate = focusAliases.delegate;
|
|
557
|
+
export const eventFocusMutationLight = focusAliases.mutationLight;
|
|
558
|
+
export const eventFocusMutationShadow = focusAliases.mutationShadow;
|
|
559
|
+
export const eventFocusMutationAll = focusAliases.mutationAll;
|
|
560
|
+
export const eventFocusMutation = focusAliases.mutation;
|
|
561
|
+
export const eventFocusLight = focusAliases.light;
|
|
562
|
+
export const eventFocusShadow = focusAliases.shadow;
|
|
563
|
+
export const eventFocusAll = focusAliases.all;
|
|
564
|
+
export const eventFocusAppHost = focusAliases.appHost;
|
|
565
|
+
export const eventFocusWindow = focusAliases.window;
|
|
566
|
+
export const eventFocusDocument = focusAliases.document;
|
|
567
|
+
const blurAliases = makeTypedEventAliases<FocusEvent>('blur');
|
|
568
|
+
export const eventBlur = blurAliases.base;
|
|
569
|
+
export const eventBlurDelegateLight = blurAliases.delegateLight;
|
|
570
|
+
export const eventBlurDelegateShadow = blurAliases.delegateShadow;
|
|
571
|
+
export const eventBlurDelegateAll = blurAliases.delegateAll;
|
|
572
|
+
export const eventBlurDelegate = blurAliases.delegate;
|
|
573
|
+
export const eventBlurMutationLight = blurAliases.mutationLight;
|
|
574
|
+
export const eventBlurMutationShadow = blurAliases.mutationShadow;
|
|
575
|
+
export const eventBlurMutationAll = blurAliases.mutationAll;
|
|
576
|
+
export const eventBlurMutation = blurAliases.mutation;
|
|
577
|
+
export const eventBlurLight = blurAliases.light;
|
|
578
|
+
export const eventBlurShadow = blurAliases.shadow;
|
|
579
|
+
export const eventBlurAll = blurAliases.all;
|
|
580
|
+
export const eventBlurAppHost = blurAliases.appHost;
|
|
581
|
+
export const eventBlurWindow = blurAliases.window;
|
|
582
|
+
export const eventBlurDocument = blurAliases.document;
|
|
583
|
+
const focusinAliases = makeTypedEventAliases<FocusEvent>('focusin');
|
|
584
|
+
export const eventFocusin = focusinAliases.base;
|
|
585
|
+
export const eventFocusinDelegateLight = focusinAliases.delegateLight;
|
|
586
|
+
export const eventFocusinDelegateShadow = focusinAliases.delegateShadow;
|
|
587
|
+
export const eventFocusinDelegateAll = focusinAliases.delegateAll;
|
|
588
|
+
export const eventFocusinDelegate = focusinAliases.delegate;
|
|
589
|
+
export const eventFocusinMutationLight = focusinAliases.mutationLight;
|
|
590
|
+
export const eventFocusinMutationShadow = focusinAliases.mutationShadow;
|
|
591
|
+
export const eventFocusinMutationAll = focusinAliases.mutationAll;
|
|
592
|
+
export const eventFocusinMutation = focusinAliases.mutation;
|
|
593
|
+
export const eventFocusinLight = focusinAliases.light;
|
|
594
|
+
export const eventFocusinShadow = focusinAliases.shadow;
|
|
595
|
+
export const eventFocusinAll = focusinAliases.all;
|
|
596
|
+
export const eventFocusinAppHost = focusinAliases.appHost;
|
|
597
|
+
export const eventFocusinWindow = focusinAliases.window;
|
|
598
|
+
export const eventFocusinDocument = focusinAliases.document;
|
|
599
|
+
const focusoutAliases = makeTypedEventAliases<FocusEvent>('focusout');
|
|
600
|
+
export const eventFocusout = focusoutAliases.base;
|
|
601
|
+
export const eventFocusoutDelegateLight = focusoutAliases.delegateLight;
|
|
602
|
+
export const eventFocusoutDelegateShadow = focusoutAliases.delegateShadow;
|
|
603
|
+
export const eventFocusoutDelegateAll = focusoutAliases.delegateAll;
|
|
604
|
+
export const eventFocusoutDelegate = focusoutAliases.delegate;
|
|
605
|
+
export const eventFocusoutMutationLight = focusoutAliases.mutationLight;
|
|
606
|
+
export const eventFocusoutMutationShadow = focusoutAliases.mutationShadow;
|
|
607
|
+
export const eventFocusoutMutationAll = focusoutAliases.mutationAll;
|
|
608
|
+
export const eventFocusoutMutation = focusoutAliases.mutation;
|
|
609
|
+
export const eventFocusoutLight = focusoutAliases.light;
|
|
610
|
+
export const eventFocusoutShadow = focusoutAliases.shadow;
|
|
611
|
+
export const eventFocusoutAll = focusoutAliases.all;
|
|
612
|
+
export const eventFocusoutAppHost = focusoutAliases.appHost;
|
|
613
|
+
export const eventFocusoutWindow = focusoutAliases.window;
|
|
614
|
+
export const eventFocusoutDocument = focusoutAliases.document;
|
|
615
|
+
const dragstartAliases = makeTypedEventAliases<DragEvent>('dragstart');
|
|
616
|
+
export const eventDragstart = dragstartAliases.base;
|
|
617
|
+
export const eventDragstartDelegateLight = dragstartAliases.delegateLight;
|
|
618
|
+
export const eventDragstartDelegateShadow = dragstartAliases.delegateShadow;
|
|
619
|
+
export const eventDragstartDelegateAll = dragstartAliases.delegateAll;
|
|
620
|
+
export const eventDragstartDelegate = dragstartAliases.delegate;
|
|
621
|
+
export const eventDragstartMutationLight = dragstartAliases.mutationLight;
|
|
622
|
+
export const eventDragstartMutationShadow = dragstartAliases.mutationShadow;
|
|
623
|
+
export const eventDragstartMutationAll = dragstartAliases.mutationAll;
|
|
624
|
+
export const eventDragstartMutation = dragstartAliases.mutation;
|
|
625
|
+
export const eventDragstartLight = dragstartAliases.light;
|
|
626
|
+
export const eventDragstartShadow = dragstartAliases.shadow;
|
|
627
|
+
export const eventDragstartAll = dragstartAliases.all;
|
|
628
|
+
export const eventDragstartAppHost = dragstartAliases.appHost;
|
|
629
|
+
export const eventDragstartWindow = dragstartAliases.window;
|
|
630
|
+
export const eventDragstartDocument = dragstartAliases.document;
|
|
631
|
+
const dragAliases = makeTypedEventAliases<DragEvent>('drag');
|
|
632
|
+
export const eventDrag = dragAliases.base;
|
|
633
|
+
export const eventDragDelegateLight = dragAliases.delegateLight;
|
|
634
|
+
export const eventDragDelegateShadow = dragAliases.delegateShadow;
|
|
635
|
+
export const eventDragDelegateAll = dragAliases.delegateAll;
|
|
636
|
+
export const eventDragDelegate = dragAliases.delegate;
|
|
637
|
+
export const eventDragMutationLight = dragAliases.mutationLight;
|
|
638
|
+
export const eventDragMutationShadow = dragAliases.mutationShadow;
|
|
639
|
+
export const eventDragMutationAll = dragAliases.mutationAll;
|
|
640
|
+
export const eventDragMutation = dragAliases.mutation;
|
|
641
|
+
export const eventDragLight = dragAliases.light;
|
|
642
|
+
export const eventDragShadow = dragAliases.shadow;
|
|
643
|
+
export const eventDragAll = dragAliases.all;
|
|
644
|
+
export const eventDragAppHost = dragAliases.appHost;
|
|
645
|
+
export const eventDragWindow = dragAliases.window;
|
|
646
|
+
export const eventDragDocument = dragAliases.document;
|
|
647
|
+
const dragendAliases = makeTypedEventAliases<DragEvent>('dragend');
|
|
648
|
+
export const eventDragend = dragendAliases.base;
|
|
649
|
+
export const eventDragendDelegateLight = dragendAliases.delegateLight;
|
|
650
|
+
export const eventDragendDelegateShadow = dragendAliases.delegateShadow;
|
|
651
|
+
export const eventDragendDelegateAll = dragendAliases.delegateAll;
|
|
652
|
+
export const eventDragendDelegate = dragendAliases.delegate;
|
|
653
|
+
export const eventDragendMutationLight = dragendAliases.mutationLight;
|
|
654
|
+
export const eventDragendMutationShadow = dragendAliases.mutationShadow;
|
|
655
|
+
export const eventDragendMutationAll = dragendAliases.mutationAll;
|
|
656
|
+
export const eventDragendMutation = dragendAliases.mutation;
|
|
657
|
+
export const eventDragendLight = dragendAliases.light;
|
|
658
|
+
export const eventDragendShadow = dragendAliases.shadow;
|
|
659
|
+
export const eventDragendAll = dragendAliases.all;
|
|
660
|
+
export const eventDragendAppHost = dragendAliases.appHost;
|
|
661
|
+
export const eventDragendWindow = dragendAliases.window;
|
|
662
|
+
export const eventDragendDocument = dragendAliases.document;
|
|
663
|
+
const dragenterAliases = makeTypedEventAliases<DragEvent>('dragenter');
|
|
664
|
+
export const eventDragenter = dragenterAliases.base;
|
|
665
|
+
export const eventDragenterDelegateLight = dragenterAliases.delegateLight;
|
|
666
|
+
export const eventDragenterDelegateShadow = dragenterAliases.delegateShadow;
|
|
667
|
+
export const eventDragenterDelegateAll = dragenterAliases.delegateAll;
|
|
668
|
+
export const eventDragenterDelegate = dragenterAliases.delegate;
|
|
669
|
+
export const eventDragenterMutationLight = dragenterAliases.mutationLight;
|
|
670
|
+
export const eventDragenterMutationShadow = dragenterAliases.mutationShadow;
|
|
671
|
+
export const eventDragenterMutationAll = dragenterAliases.mutationAll;
|
|
672
|
+
export const eventDragenterMutation = dragenterAliases.mutation;
|
|
673
|
+
export const eventDragenterLight = dragenterAliases.light;
|
|
674
|
+
export const eventDragenterShadow = dragenterAliases.shadow;
|
|
675
|
+
export const eventDragenterAll = dragenterAliases.all;
|
|
676
|
+
export const eventDragenterAppHost = dragenterAliases.appHost;
|
|
677
|
+
export const eventDragenterWindow = dragenterAliases.window;
|
|
678
|
+
export const eventDragenterDocument = dragenterAliases.document;
|
|
679
|
+
const dragleaveAliases = makeTypedEventAliases<DragEvent>('dragleave');
|
|
680
|
+
export const eventDragleave = dragleaveAliases.base;
|
|
681
|
+
export const eventDragleaveDelegateLight = dragleaveAliases.delegateLight;
|
|
682
|
+
export const eventDragleaveDelegateShadow = dragleaveAliases.delegateShadow;
|
|
683
|
+
export const eventDragleaveDelegateAll = dragleaveAliases.delegateAll;
|
|
684
|
+
export const eventDragleaveDelegate = dragleaveAliases.delegate;
|
|
685
|
+
export const eventDragleaveMutationLight = dragleaveAliases.mutationLight;
|
|
686
|
+
export const eventDragleaveMutationShadow = dragleaveAliases.mutationShadow;
|
|
687
|
+
export const eventDragleaveMutationAll = dragleaveAliases.mutationAll;
|
|
688
|
+
export const eventDragleaveMutation = dragleaveAliases.mutation;
|
|
689
|
+
export const eventDragleaveLight = dragleaveAliases.light;
|
|
690
|
+
export const eventDragleaveShadow = dragleaveAliases.shadow;
|
|
691
|
+
export const eventDragleaveAll = dragleaveAliases.all;
|
|
692
|
+
export const eventDragleaveAppHost = dragleaveAliases.appHost;
|
|
693
|
+
export const eventDragleaveWindow = dragleaveAliases.window;
|
|
694
|
+
export const eventDragleaveDocument = dragleaveAliases.document;
|
|
695
|
+
const dragoverAliases = makeTypedEventAliases<DragEvent>('dragover');
|
|
696
|
+
export const eventDragover = dragoverAliases.base;
|
|
697
|
+
export const eventDragoverDelegateLight = dragoverAliases.delegateLight;
|
|
698
|
+
export const eventDragoverDelegateShadow = dragoverAliases.delegateShadow;
|
|
699
|
+
export const eventDragoverDelegateAll = dragoverAliases.delegateAll;
|
|
700
|
+
export const eventDragoverDelegate = dragoverAliases.delegate;
|
|
701
|
+
export const eventDragoverMutationLight = dragoverAliases.mutationLight;
|
|
702
|
+
export const eventDragoverMutationShadow = dragoverAliases.mutationShadow;
|
|
703
|
+
export const eventDragoverMutationAll = dragoverAliases.mutationAll;
|
|
704
|
+
export const eventDragoverMutation = dragoverAliases.mutation;
|
|
705
|
+
export const eventDragoverLight = dragoverAliases.light;
|
|
706
|
+
export const eventDragoverShadow = dragoverAliases.shadow;
|
|
707
|
+
export const eventDragoverAll = dragoverAliases.all;
|
|
708
|
+
export const eventDragoverAppHost = dragoverAliases.appHost;
|
|
709
|
+
export const eventDragoverWindow = dragoverAliases.window;
|
|
710
|
+
export const eventDragoverDocument = dragoverAliases.document;
|
|
711
|
+
const dropAliases = makeTypedEventAliases<DragEvent>('drop');
|
|
712
|
+
export const eventDrop = dropAliases.base;
|
|
713
|
+
export const eventDropDelegateLight = dropAliases.delegateLight;
|
|
714
|
+
export const eventDropDelegateShadow = dropAliases.delegateShadow;
|
|
715
|
+
export const eventDropDelegateAll = dropAliases.delegateAll;
|
|
716
|
+
export const eventDropDelegate = dropAliases.delegate;
|
|
717
|
+
export const eventDropMutationLight = dropAliases.mutationLight;
|
|
718
|
+
export const eventDropMutationShadow = dropAliases.mutationShadow;
|
|
719
|
+
export const eventDropMutationAll = dropAliases.mutationAll;
|
|
720
|
+
export const eventDropMutation = dropAliases.mutation;
|
|
721
|
+
export const eventDropLight = dropAliases.light;
|
|
722
|
+
export const eventDropShadow = dropAliases.shadow;
|
|
723
|
+
export const eventDropAll = dropAliases.all;
|
|
724
|
+
export const eventDropAppHost = dropAliases.appHost;
|
|
725
|
+
export const eventDropWindow = dropAliases.window;
|
|
726
|
+
export const eventDropDocument = dropAliases.document;
|
|
727
|
+
const touchstartAliases = makeTypedEventAliases<TouchEvent>('touchstart');
|
|
728
|
+
export const eventTouchstart = touchstartAliases.base;
|
|
729
|
+
export const eventTouchstartDelegateLight = touchstartAliases.delegateLight;
|
|
730
|
+
export const eventTouchstartDelegateShadow = touchstartAliases.delegateShadow;
|
|
731
|
+
export const eventTouchstartDelegateAll = touchstartAliases.delegateAll;
|
|
732
|
+
export const eventTouchstartDelegate = touchstartAliases.delegate;
|
|
733
|
+
export const eventTouchstartMutationLight = touchstartAliases.mutationLight;
|
|
734
|
+
export const eventTouchstartMutationShadow = touchstartAliases.mutationShadow;
|
|
735
|
+
export const eventTouchstartMutationAll = touchstartAliases.mutationAll;
|
|
736
|
+
export const eventTouchstartMutation = touchstartAliases.mutation;
|
|
737
|
+
export const eventTouchstartLight = touchstartAliases.light;
|
|
738
|
+
export const eventTouchstartShadow = touchstartAliases.shadow;
|
|
739
|
+
export const eventTouchstartAll = touchstartAliases.all;
|
|
740
|
+
export const eventTouchstartAppHost = touchstartAliases.appHost;
|
|
741
|
+
export const eventTouchstartWindow = touchstartAliases.window;
|
|
742
|
+
export const eventTouchstartDocument = touchstartAliases.document;
|
|
743
|
+
const touchmoveAliases = makeTypedEventAliases<TouchEvent>('touchmove');
|
|
744
|
+
export const eventTouchmove = touchmoveAliases.base;
|
|
745
|
+
export const eventTouchmoveDelegateLight = touchmoveAliases.delegateLight;
|
|
746
|
+
export const eventTouchmoveDelegateShadow = touchmoveAliases.delegateShadow;
|
|
747
|
+
export const eventTouchmoveDelegateAll = touchmoveAliases.delegateAll;
|
|
748
|
+
export const eventTouchmoveDelegate = touchmoveAliases.delegate;
|
|
749
|
+
export const eventTouchmoveMutationLight = touchmoveAliases.mutationLight;
|
|
750
|
+
export const eventTouchmoveMutationShadow = touchmoveAliases.mutationShadow;
|
|
751
|
+
export const eventTouchmoveMutationAll = touchmoveAliases.mutationAll;
|
|
752
|
+
export const eventTouchmoveMutation = touchmoveAliases.mutation;
|
|
753
|
+
export const eventTouchmoveLight = touchmoveAliases.light;
|
|
754
|
+
export const eventTouchmoveShadow = touchmoveAliases.shadow;
|
|
755
|
+
export const eventTouchmoveAll = touchmoveAliases.all;
|
|
756
|
+
export const eventTouchmoveAppHost = touchmoveAliases.appHost;
|
|
757
|
+
export const eventTouchmoveWindow = touchmoveAliases.window;
|
|
758
|
+
export const eventTouchmoveDocument = touchmoveAliases.document;
|
|
759
|
+
const touchendAliases = makeTypedEventAliases<TouchEvent>('touchend');
|
|
760
|
+
export const eventTouchend = touchendAliases.base;
|
|
761
|
+
export const eventTouchendDelegateLight = touchendAliases.delegateLight;
|
|
762
|
+
export const eventTouchendDelegateShadow = touchendAliases.delegateShadow;
|
|
763
|
+
export const eventTouchendDelegateAll = touchendAliases.delegateAll;
|
|
764
|
+
export const eventTouchendDelegate = touchendAliases.delegate;
|
|
765
|
+
export const eventTouchendMutationLight = touchendAliases.mutationLight;
|
|
766
|
+
export const eventTouchendMutationShadow = touchendAliases.mutationShadow;
|
|
767
|
+
export const eventTouchendMutationAll = touchendAliases.mutationAll;
|
|
768
|
+
export const eventTouchendMutation = touchendAliases.mutation;
|
|
769
|
+
export const eventTouchendLight = touchendAliases.light;
|
|
770
|
+
export const eventTouchendShadow = touchendAliases.shadow;
|
|
771
|
+
export const eventTouchendAll = touchendAliases.all;
|
|
772
|
+
export const eventTouchendAppHost = touchendAliases.appHost;
|
|
773
|
+
export const eventTouchendWindow = touchendAliases.window;
|
|
774
|
+
export const eventTouchendDocument = touchendAliases.document;
|
|
775
|
+
const touchcancelAliases = makeTypedEventAliases<TouchEvent>('touchcancel');
|
|
776
|
+
export const eventTouchcancel = touchcancelAliases.base;
|
|
777
|
+
export const eventTouchcancelDelegateLight = touchcancelAliases.delegateLight;
|
|
778
|
+
export const eventTouchcancelDelegateShadow = touchcancelAliases.delegateShadow;
|
|
779
|
+
export const eventTouchcancelDelegateAll = touchcancelAliases.delegateAll;
|
|
780
|
+
export const eventTouchcancelDelegate = touchcancelAliases.delegate;
|
|
781
|
+
export const eventTouchcancelMutationLight = touchcancelAliases.mutationLight;
|
|
782
|
+
export const eventTouchcancelMutationShadow = touchcancelAliases.mutationShadow;
|
|
783
|
+
export const eventTouchcancelMutationAll = touchcancelAliases.mutationAll;
|
|
784
|
+
export const eventTouchcancelMutation = touchcancelAliases.mutation;
|
|
785
|
+
export const eventTouchcancelLight = touchcancelAliases.light;
|
|
786
|
+
export const eventTouchcancelShadow = touchcancelAliases.shadow;
|
|
787
|
+
export const eventTouchcancelAll = touchcancelAliases.all;
|
|
788
|
+
export const eventTouchcancelAppHost = touchcancelAliases.appHost;
|
|
789
|
+
export const eventTouchcancelWindow = touchcancelAliases.window;
|
|
790
|
+
export const eventTouchcancelDocument = touchcancelAliases.document;
|
|
791
|
+
const pointerdownAliases = makeTypedEventAliases<PointerEvent>('pointerdown');
|
|
792
|
+
export const eventPointerdown = pointerdownAliases.base;
|
|
793
|
+
export const eventPointerdownDelegateLight = pointerdownAliases.delegateLight;
|
|
794
|
+
export const eventPointerdownDelegateShadow = pointerdownAliases.delegateShadow;
|
|
795
|
+
export const eventPointerdownDelegateAll = pointerdownAliases.delegateAll;
|
|
796
|
+
export const eventPointerdownDelegate = pointerdownAliases.delegate;
|
|
797
|
+
export const eventPointerdownMutationLight = pointerdownAliases.mutationLight;
|
|
798
|
+
export const eventPointerdownMutationShadow = pointerdownAliases.mutationShadow;
|
|
799
|
+
export const eventPointerdownMutationAll = pointerdownAliases.mutationAll;
|
|
800
|
+
export const eventPointerdownMutation = pointerdownAliases.mutation;
|
|
801
|
+
export const eventPointerdownLight = pointerdownAliases.light;
|
|
802
|
+
export const eventPointerdownShadow = pointerdownAliases.shadow;
|
|
803
|
+
export const eventPointerdownAll = pointerdownAliases.all;
|
|
804
|
+
export const eventPointerdownAppHost = pointerdownAliases.appHost;
|
|
805
|
+
export const eventPointerdownWindow = pointerdownAliases.window;
|
|
806
|
+
export const eventPointerdownDocument = pointerdownAliases.document;
|
|
807
|
+
const pointerupAliases = makeTypedEventAliases<PointerEvent>('pointerup');
|
|
808
|
+
export const eventPointerup = pointerupAliases.base;
|
|
809
|
+
export const eventPointerupDelegateLight = pointerupAliases.delegateLight;
|
|
810
|
+
export const eventPointerupDelegateShadow = pointerupAliases.delegateShadow;
|
|
811
|
+
export const eventPointerupDelegateAll = pointerupAliases.delegateAll;
|
|
812
|
+
export const eventPointerupDelegate = pointerupAliases.delegate;
|
|
813
|
+
export const eventPointerupMutationLight = pointerupAliases.mutationLight;
|
|
814
|
+
export const eventPointerupMutationShadow = pointerupAliases.mutationShadow;
|
|
815
|
+
export const eventPointerupMutationAll = pointerupAliases.mutationAll;
|
|
816
|
+
export const eventPointerupMutation = pointerupAliases.mutation;
|
|
817
|
+
export const eventPointerupLight = pointerupAliases.light;
|
|
818
|
+
export const eventPointerupShadow = pointerupAliases.shadow;
|
|
819
|
+
export const eventPointerupAll = pointerupAliases.all;
|
|
820
|
+
export const eventPointerupAppHost = pointerupAliases.appHost;
|
|
821
|
+
export const eventPointerupWindow = pointerupAliases.window;
|
|
822
|
+
export const eventPointerupDocument = pointerupAliases.document;
|
|
823
|
+
const pointermoveAliases = makeTypedEventAliases<PointerEvent>('pointermove');
|
|
824
|
+
export const eventPointermove = pointermoveAliases.base;
|
|
825
|
+
export const eventPointermoveDelegateLight = pointermoveAliases.delegateLight;
|
|
826
|
+
export const eventPointermoveDelegateShadow = pointermoveAliases.delegateShadow;
|
|
827
|
+
export const eventPointermoveDelegateAll = pointermoveAliases.delegateAll;
|
|
828
|
+
export const eventPointermoveDelegate = pointermoveAliases.delegate;
|
|
829
|
+
export const eventPointermoveMutationLight = pointermoveAliases.mutationLight;
|
|
830
|
+
export const eventPointermoveMutationShadow = pointermoveAliases.mutationShadow;
|
|
831
|
+
export const eventPointermoveMutationAll = pointermoveAliases.mutationAll;
|
|
832
|
+
export const eventPointermoveMutation = pointermoveAliases.mutation;
|
|
833
|
+
export const eventPointermoveLight = pointermoveAliases.light;
|
|
834
|
+
export const eventPointermoveShadow = pointermoveAliases.shadow;
|
|
835
|
+
export const eventPointermoveAll = pointermoveAliases.all;
|
|
836
|
+
export const eventPointermoveAppHost = pointermoveAliases.appHost;
|
|
837
|
+
export const eventPointermoveWindow = pointermoveAliases.window;
|
|
838
|
+
export const eventPointermoveDocument = pointermoveAliases.document;
|
|
839
|
+
const pointeroverAliases = makeTypedEventAliases<PointerEvent>('pointerover');
|
|
840
|
+
export const eventPointerover = pointeroverAliases.base;
|
|
841
|
+
export const eventPointeroverDelegateLight = pointeroverAliases.delegateLight;
|
|
842
|
+
export const eventPointeroverDelegateShadow = pointeroverAliases.delegateShadow;
|
|
843
|
+
export const eventPointeroverDelegateAll = pointeroverAliases.delegateAll;
|
|
844
|
+
export const eventPointeroverDelegate = pointeroverAliases.delegate;
|
|
845
|
+
export const eventPointeroverMutationLight = pointeroverAliases.mutationLight;
|
|
846
|
+
export const eventPointeroverMutationShadow = pointeroverAliases.mutationShadow;
|
|
847
|
+
export const eventPointeroverMutationAll = pointeroverAliases.mutationAll;
|
|
848
|
+
export const eventPointeroverMutation = pointeroverAliases.mutation;
|
|
849
|
+
export const eventPointeroverLight = pointeroverAliases.light;
|
|
850
|
+
export const eventPointeroverShadow = pointeroverAliases.shadow;
|
|
851
|
+
export const eventPointeroverAll = pointeroverAliases.all;
|
|
852
|
+
export const eventPointeroverAppHost = pointeroverAliases.appHost;
|
|
853
|
+
export const eventPointeroverWindow = pointeroverAliases.window;
|
|
854
|
+
export const eventPointeroverDocument = pointeroverAliases.document;
|
|
855
|
+
const pointeroutAliases = makeTypedEventAliases<PointerEvent>('pointerout');
|
|
856
|
+
export const eventPointerout = pointeroutAliases.base;
|
|
857
|
+
export const eventPointeroutDelegateLight = pointeroutAliases.delegateLight;
|
|
858
|
+
export const eventPointeroutDelegateShadow = pointeroutAliases.delegateShadow;
|
|
859
|
+
export const eventPointeroutDelegateAll = pointeroutAliases.delegateAll;
|
|
860
|
+
export const eventPointeroutDelegate = pointeroutAliases.delegate;
|
|
861
|
+
export const eventPointeroutMutationLight = pointeroutAliases.mutationLight;
|
|
862
|
+
export const eventPointeroutMutationShadow = pointeroutAliases.mutationShadow;
|
|
863
|
+
export const eventPointeroutMutationAll = pointeroutAliases.mutationAll;
|
|
864
|
+
export const eventPointeroutMutation = pointeroutAliases.mutation;
|
|
865
|
+
export const eventPointeroutLight = pointeroutAliases.light;
|
|
866
|
+
export const eventPointeroutShadow = pointeroutAliases.shadow;
|
|
867
|
+
export const eventPointeroutAll = pointeroutAliases.all;
|
|
868
|
+
export const eventPointeroutAppHost = pointeroutAliases.appHost;
|
|
869
|
+
export const eventPointeroutWindow = pointeroutAliases.window;
|
|
870
|
+
export const eventPointeroutDocument = pointeroutAliases.document;
|
|
871
|
+
const pointerenterAliases = makeTypedEventAliases<PointerEvent>('pointerenter');
|
|
872
|
+
export const eventPointerenter = pointerenterAliases.base;
|
|
873
|
+
export const eventPointerenterDelegateLight = pointerenterAliases.delegateLight;
|
|
874
|
+
export const eventPointerenterDelegateShadow = pointerenterAliases.delegateShadow;
|
|
875
|
+
export const eventPointerenterDelegateAll = pointerenterAliases.delegateAll;
|
|
876
|
+
export const eventPointerenterDelegate = pointerenterAliases.delegate;
|
|
877
|
+
export const eventPointerenterMutationLight = pointerenterAliases.mutationLight;
|
|
878
|
+
export const eventPointerenterMutationShadow = pointerenterAliases.mutationShadow;
|
|
879
|
+
export const eventPointerenterMutationAll = pointerenterAliases.mutationAll;
|
|
880
|
+
export const eventPointerenterMutation = pointerenterAliases.mutation;
|
|
881
|
+
export const eventPointerenterLight = pointerenterAliases.light;
|
|
882
|
+
export const eventPointerenterShadow = pointerenterAliases.shadow;
|
|
883
|
+
export const eventPointerenterAll = pointerenterAliases.all;
|
|
884
|
+
export const eventPointerenterAppHost = pointerenterAliases.appHost;
|
|
885
|
+
export const eventPointerenterWindow = pointerenterAliases.window;
|
|
886
|
+
export const eventPointerenterDocument = pointerenterAliases.document;
|
|
887
|
+
const pointerleaveAliases = makeTypedEventAliases<PointerEvent>('pointerleave');
|
|
888
|
+
export const eventPointerleave = pointerleaveAliases.base;
|
|
889
|
+
export const eventPointerleaveDelegateLight = pointerleaveAliases.delegateLight;
|
|
890
|
+
export const eventPointerleaveDelegateShadow = pointerleaveAliases.delegateShadow;
|
|
891
|
+
export const eventPointerleaveDelegateAll = pointerleaveAliases.delegateAll;
|
|
892
|
+
export const eventPointerleaveDelegate = pointerleaveAliases.delegate;
|
|
893
|
+
export const eventPointerleaveMutationLight = pointerleaveAliases.mutationLight;
|
|
894
|
+
export const eventPointerleaveMutationShadow = pointerleaveAliases.mutationShadow;
|
|
895
|
+
export const eventPointerleaveMutationAll = pointerleaveAliases.mutationAll;
|
|
896
|
+
export const eventPointerleaveMutation = pointerleaveAliases.mutation;
|
|
897
|
+
export const eventPointerleaveLight = pointerleaveAliases.light;
|
|
898
|
+
export const eventPointerleaveShadow = pointerleaveAliases.shadow;
|
|
899
|
+
export const eventPointerleaveAll = pointerleaveAliases.all;
|
|
900
|
+
export const eventPointerleaveAppHost = pointerleaveAliases.appHost;
|
|
901
|
+
export const eventPointerleaveWindow = pointerleaveAliases.window;
|
|
902
|
+
export const eventPointerleaveDocument = pointerleaveAliases.document;
|
|
903
|
+
const pointercancelAliases = makeTypedEventAliases<PointerEvent>('pointercancel');
|
|
904
|
+
export const eventPointercancel = pointercancelAliases.base;
|
|
905
|
+
export const eventPointercancelDelegateLight = pointercancelAliases.delegateLight;
|
|
906
|
+
export const eventPointercancelDelegateShadow = pointercancelAliases.delegateShadow;
|
|
907
|
+
export const eventPointercancelDelegateAll = pointercancelAliases.delegateAll;
|
|
908
|
+
export const eventPointercancelDelegate = pointercancelAliases.delegate;
|
|
909
|
+
export const eventPointercancelMutationLight = pointercancelAliases.mutationLight;
|
|
910
|
+
export const eventPointercancelMutationShadow = pointercancelAliases.mutationShadow;
|
|
911
|
+
export const eventPointercancelMutationAll = pointercancelAliases.mutationAll;
|
|
912
|
+
export const eventPointercancelMutation = pointercancelAliases.mutation;
|
|
913
|
+
export const eventPointercancelLight = pointercancelAliases.light;
|
|
914
|
+
export const eventPointercancelShadow = pointercancelAliases.shadow;
|
|
915
|
+
export const eventPointercancelAll = pointercancelAliases.all;
|
|
916
|
+
export const eventPointercancelAppHost = pointercancelAliases.appHost;
|
|
917
|
+
export const eventPointercancelWindow = pointercancelAliases.window;
|
|
918
|
+
export const eventPointercancelDocument = pointercancelAliases.document;
|
|
919
|
+
const copyAliases = makeTypedEventAliases<ClipboardEvent>('copy');
|
|
920
|
+
export const eventCopy = copyAliases.base;
|
|
921
|
+
export const eventCopyDelegateLight = copyAliases.delegateLight;
|
|
922
|
+
export const eventCopyDelegateShadow = copyAliases.delegateShadow;
|
|
923
|
+
export const eventCopyDelegateAll = copyAliases.delegateAll;
|
|
924
|
+
export const eventCopyDelegate = copyAliases.delegate;
|
|
925
|
+
export const eventCopyMutationLight = copyAliases.mutationLight;
|
|
926
|
+
export const eventCopyMutationShadow = copyAliases.mutationShadow;
|
|
927
|
+
export const eventCopyMutationAll = copyAliases.mutationAll;
|
|
928
|
+
export const eventCopyMutation = copyAliases.mutation;
|
|
929
|
+
export const eventCopyLight = copyAliases.light;
|
|
930
|
+
export const eventCopyShadow = copyAliases.shadow;
|
|
931
|
+
export const eventCopyAll = copyAliases.all;
|
|
932
|
+
export const eventCopyAppHost = copyAliases.appHost;
|
|
933
|
+
export const eventCopyWindow = copyAliases.window;
|
|
934
|
+
export const eventCopyDocument = copyAliases.document;
|
|
935
|
+
const cutAliases = makeTypedEventAliases<ClipboardEvent>('cut');
|
|
936
|
+
export const eventCut = cutAliases.base;
|
|
937
|
+
export const eventCutDelegateLight = cutAliases.delegateLight;
|
|
938
|
+
export const eventCutDelegateShadow = cutAliases.delegateShadow;
|
|
939
|
+
export const eventCutDelegateAll = cutAliases.delegateAll;
|
|
940
|
+
export const eventCutDelegate = cutAliases.delegate;
|
|
941
|
+
export const eventCutMutationLight = cutAliases.mutationLight;
|
|
942
|
+
export const eventCutMutationShadow = cutAliases.mutationShadow;
|
|
943
|
+
export const eventCutMutationAll = cutAliases.mutationAll;
|
|
944
|
+
export const eventCutMutation = cutAliases.mutation;
|
|
945
|
+
export const eventCutLight = cutAliases.light;
|
|
946
|
+
export const eventCutShadow = cutAliases.shadow;
|
|
947
|
+
export const eventCutAll = cutAliases.all;
|
|
948
|
+
export const eventCutAppHost = cutAliases.appHost;
|
|
949
|
+
export const eventCutWindow = cutAliases.window;
|
|
950
|
+
export const eventCutDocument = cutAliases.document;
|
|
951
|
+
const pasteAliases = makeTypedEventAliases<ClipboardEvent>('paste');
|
|
952
|
+
export const eventPaste = pasteAliases.base;
|
|
953
|
+
export const eventPasteDelegateLight = pasteAliases.delegateLight;
|
|
954
|
+
export const eventPasteDelegateShadow = pasteAliases.delegateShadow;
|
|
955
|
+
export const eventPasteDelegateAll = pasteAliases.delegateAll;
|
|
956
|
+
export const eventPasteDelegate = pasteAliases.delegate;
|
|
957
|
+
export const eventPasteMutationLight = pasteAliases.mutationLight;
|
|
958
|
+
export const eventPasteMutationShadow = pasteAliases.mutationShadow;
|
|
959
|
+
export const eventPasteMutationAll = pasteAliases.mutationAll;
|
|
960
|
+
export const eventPasteMutation = pasteAliases.mutation;
|
|
961
|
+
export const eventPasteLight = pasteAliases.light;
|
|
962
|
+
export const eventPasteShadow = pasteAliases.shadow;
|
|
963
|
+
export const eventPasteAll = pasteAliases.all;
|
|
964
|
+
export const eventPasteAppHost = pasteAliases.appHost;
|
|
965
|
+
export const eventPasteWindow = pasteAliases.window;
|
|
966
|
+
export const eventPasteDocument = pasteAliases.document;
|
|
967
|
+
const animationstartAliases = makeTypedEventAliases<AnimationEvent>('animationstart');
|
|
968
|
+
export const eventAnimationstart = animationstartAliases.base;
|
|
969
|
+
export const eventAnimationstartDelegateLight = animationstartAliases.delegateLight;
|
|
970
|
+
export const eventAnimationstartDelegateShadow = animationstartAliases.delegateShadow;
|
|
971
|
+
export const eventAnimationstartDelegateAll = animationstartAliases.delegateAll;
|
|
972
|
+
export const eventAnimationstartDelegate = animationstartAliases.delegate;
|
|
973
|
+
export const eventAnimationstartMutationLight = animationstartAliases.mutationLight;
|
|
974
|
+
export const eventAnimationstartMutationShadow = animationstartAliases.mutationShadow;
|
|
975
|
+
export const eventAnimationstartMutationAll = animationstartAliases.mutationAll;
|
|
976
|
+
export const eventAnimationstartMutation = animationstartAliases.mutation;
|
|
977
|
+
export const eventAnimationstartLight = animationstartAliases.light;
|
|
978
|
+
export const eventAnimationstartShadow = animationstartAliases.shadow;
|
|
979
|
+
export const eventAnimationstartAll = animationstartAliases.all;
|
|
980
|
+
export const eventAnimationstartAppHost = animationstartAliases.appHost;
|
|
981
|
+
export const eventAnimationstartWindow = animationstartAliases.window;
|
|
982
|
+
export const eventAnimationstartDocument = animationstartAliases.document;
|
|
983
|
+
const animationendAliases = makeTypedEventAliases<AnimationEvent>('animationend');
|
|
984
|
+
export const eventAnimationend = animationendAliases.base;
|
|
985
|
+
export const eventAnimationendDelegateLight = animationendAliases.delegateLight;
|
|
986
|
+
export const eventAnimationendDelegateShadow = animationendAliases.delegateShadow;
|
|
987
|
+
export const eventAnimationendDelegateAll = animationendAliases.delegateAll;
|
|
988
|
+
export const eventAnimationendDelegate = animationendAliases.delegate;
|
|
989
|
+
export const eventAnimationendMutationLight = animationendAliases.mutationLight;
|
|
990
|
+
export const eventAnimationendMutationShadow = animationendAliases.mutationShadow;
|
|
991
|
+
export const eventAnimationendMutationAll = animationendAliases.mutationAll;
|
|
992
|
+
export const eventAnimationendMutation = animationendAliases.mutation;
|
|
993
|
+
export const eventAnimationendLight = animationendAliases.light;
|
|
994
|
+
export const eventAnimationendShadow = animationendAliases.shadow;
|
|
995
|
+
export const eventAnimationendAll = animationendAliases.all;
|
|
996
|
+
export const eventAnimationendAppHost = animationendAliases.appHost;
|
|
997
|
+
export const eventAnimationendWindow = animationendAliases.window;
|
|
998
|
+
export const eventAnimationendDocument = animationendAliases.document;
|
|
999
|
+
const animationiterationAliases = makeTypedEventAliases<AnimationEvent>('animationiteration');
|
|
1000
|
+
export const eventAnimationiteration = animationiterationAliases.base;
|
|
1001
|
+
export const eventAnimationiterationDelegateLight = animationiterationAliases.delegateLight;
|
|
1002
|
+
export const eventAnimationiterationDelegateShadow = animationiterationAliases.delegateShadow;
|
|
1003
|
+
export const eventAnimationiterationDelegateAll = animationiterationAliases.delegateAll;
|
|
1004
|
+
export const eventAnimationiterationDelegate = animationiterationAliases.delegate;
|
|
1005
|
+
export const eventAnimationiterationMutationLight = animationiterationAliases.mutationLight;
|
|
1006
|
+
export const eventAnimationiterationMutationShadow = animationiterationAliases.mutationShadow;
|
|
1007
|
+
export const eventAnimationiterationMutationAll = animationiterationAliases.mutationAll;
|
|
1008
|
+
export const eventAnimationiterationMutation = animationiterationAliases.mutation;
|
|
1009
|
+
export const eventAnimationiterationLight = animationiterationAliases.light;
|
|
1010
|
+
export const eventAnimationiterationShadow = animationiterationAliases.shadow;
|
|
1011
|
+
export const eventAnimationiterationAll = animationiterationAliases.all;
|
|
1012
|
+
export const eventAnimationiterationAppHost = animationiterationAliases.appHost;
|
|
1013
|
+
export const eventAnimationiterationWindow = animationiterationAliases.window;
|
|
1014
|
+
export const eventAnimationiterationDocument = animationiterationAliases.document;
|
|
1015
|
+
const animationcancelAliases = makeTypedEventAliases<AnimationEvent>('animationcancel');
|
|
1016
|
+
export const eventAnimationcancel = animationcancelAliases.base;
|
|
1017
|
+
export const eventAnimationcancelDelegateLight = animationcancelAliases.delegateLight;
|
|
1018
|
+
export const eventAnimationcancelDelegateShadow = animationcancelAliases.delegateShadow;
|
|
1019
|
+
export const eventAnimationcancelDelegateAll = animationcancelAliases.delegateAll;
|
|
1020
|
+
export const eventAnimationcancelDelegate = animationcancelAliases.delegate;
|
|
1021
|
+
export const eventAnimationcancelMutationLight = animationcancelAliases.mutationLight;
|
|
1022
|
+
export const eventAnimationcancelMutationShadow = animationcancelAliases.mutationShadow;
|
|
1023
|
+
export const eventAnimationcancelMutationAll = animationcancelAliases.mutationAll;
|
|
1024
|
+
export const eventAnimationcancelMutation = animationcancelAliases.mutation;
|
|
1025
|
+
export const eventAnimationcancelLight = animationcancelAliases.light;
|
|
1026
|
+
export const eventAnimationcancelShadow = animationcancelAliases.shadow;
|
|
1027
|
+
export const eventAnimationcancelAll = animationcancelAliases.all;
|
|
1028
|
+
export const eventAnimationcancelAppHost = animationcancelAliases.appHost;
|
|
1029
|
+
export const eventAnimationcancelWindow = animationcancelAliases.window;
|
|
1030
|
+
export const eventAnimationcancelDocument = animationcancelAliases.document;
|
|
1031
|
+
const transitionstartAliases = makeTypedEventAliases<TransitionEvent>('transitionstart');
|
|
1032
|
+
export const eventTransitionstart = transitionstartAliases.base;
|
|
1033
|
+
export const eventTransitionstartDelegateLight = transitionstartAliases.delegateLight;
|
|
1034
|
+
export const eventTransitionstartDelegateShadow = transitionstartAliases.delegateShadow;
|
|
1035
|
+
export const eventTransitionstartDelegateAll = transitionstartAliases.delegateAll;
|
|
1036
|
+
export const eventTransitionstartDelegate = transitionstartAliases.delegate;
|
|
1037
|
+
export const eventTransitionstartMutationLight = transitionstartAliases.mutationLight;
|
|
1038
|
+
export const eventTransitionstartMutationShadow = transitionstartAliases.mutationShadow;
|
|
1039
|
+
export const eventTransitionstartMutationAll = transitionstartAliases.mutationAll;
|
|
1040
|
+
export const eventTransitionstartMutation = transitionstartAliases.mutation;
|
|
1041
|
+
export const eventTransitionstartLight = transitionstartAliases.light;
|
|
1042
|
+
export const eventTransitionstartShadow = transitionstartAliases.shadow;
|
|
1043
|
+
export const eventTransitionstartAll = transitionstartAliases.all;
|
|
1044
|
+
export const eventTransitionstartAppHost = transitionstartAliases.appHost;
|
|
1045
|
+
export const eventTransitionstartWindow = transitionstartAliases.window;
|
|
1046
|
+
export const eventTransitionstartDocument = transitionstartAliases.document;
|
|
1047
|
+
const transitionendAliases = makeTypedEventAliases<TransitionEvent>('transitionend');
|
|
1048
|
+
export const eventTransitionend = transitionendAliases.base;
|
|
1049
|
+
export const eventTransitionendDelegateLight = transitionendAliases.delegateLight;
|
|
1050
|
+
export const eventTransitionendDelegateShadow = transitionendAliases.delegateShadow;
|
|
1051
|
+
export const eventTransitionendDelegateAll = transitionendAliases.delegateAll;
|
|
1052
|
+
export const eventTransitionendDelegate = transitionendAliases.delegate;
|
|
1053
|
+
export const eventTransitionendMutationLight = transitionendAliases.mutationLight;
|
|
1054
|
+
export const eventTransitionendMutationShadow = transitionendAliases.mutationShadow;
|
|
1055
|
+
export const eventTransitionendMutationAll = transitionendAliases.mutationAll;
|
|
1056
|
+
export const eventTransitionendMutation = transitionendAliases.mutation;
|
|
1057
|
+
export const eventTransitionendLight = transitionendAliases.light;
|
|
1058
|
+
export const eventTransitionendShadow = transitionendAliases.shadow;
|
|
1059
|
+
export const eventTransitionendAll = transitionendAliases.all;
|
|
1060
|
+
export const eventTransitionendAppHost = transitionendAliases.appHost;
|
|
1061
|
+
export const eventTransitionendWindow = transitionendAliases.window;
|
|
1062
|
+
export const eventTransitionendDocument = transitionendAliases.document;
|
|
1063
|
+
const transitioncancelAliases = makeTypedEventAliases<TransitionEvent>('transitioncancel');
|
|
1064
|
+
export const eventTransitioncancel = transitioncancelAliases.base;
|
|
1065
|
+
export const eventTransitioncancelDelegateLight = transitioncancelAliases.delegateLight;
|
|
1066
|
+
export const eventTransitioncancelDelegateShadow = transitioncancelAliases.delegateShadow;
|
|
1067
|
+
export const eventTransitioncancelDelegateAll = transitioncancelAliases.delegateAll;
|
|
1068
|
+
export const eventTransitioncancelDelegate = transitioncancelAliases.delegate;
|
|
1069
|
+
export const eventTransitioncancelMutationLight = transitioncancelAliases.mutationLight;
|
|
1070
|
+
export const eventTransitioncancelMutationShadow = transitioncancelAliases.mutationShadow;
|
|
1071
|
+
export const eventTransitioncancelMutationAll = transitioncancelAliases.mutationAll;
|
|
1072
|
+
export const eventTransitioncancelMutation = transitioncancelAliases.mutation;
|
|
1073
|
+
export const eventTransitioncancelLight = transitioncancelAliases.light;
|
|
1074
|
+
export const eventTransitioncancelShadow = transitioncancelAliases.shadow;
|
|
1075
|
+
export const eventTransitioncancelAll = transitioncancelAliases.all;
|
|
1076
|
+
export const eventTransitioncancelAppHost = transitioncancelAliases.appHost;
|
|
1077
|
+
export const eventTransitioncancelWindow = transitioncancelAliases.window;
|
|
1078
|
+
export const eventTransitioncancelDocument = transitioncancelAliases.document;
|
|
1079
|
+
const transitionrunAliases = makeTypedEventAliases<TransitionEvent>('transitionrun');
|
|
1080
|
+
export const eventTransitionrun = transitionrunAliases.base;
|
|
1081
|
+
export const eventTransitionrunDelegateLight = transitionrunAliases.delegateLight;
|
|
1082
|
+
export const eventTransitionrunDelegateShadow = transitionrunAliases.delegateShadow;
|
|
1083
|
+
export const eventTransitionrunDelegateAll = transitionrunAliases.delegateAll;
|
|
1084
|
+
export const eventTransitionrunDelegate = transitionrunAliases.delegate;
|
|
1085
|
+
export const eventTransitionrunMutationLight = transitionrunAliases.mutationLight;
|
|
1086
|
+
export const eventTransitionrunMutationShadow = transitionrunAliases.mutationShadow;
|
|
1087
|
+
export const eventTransitionrunMutationAll = transitionrunAliases.mutationAll;
|
|
1088
|
+
export const eventTransitionrunMutation = transitionrunAliases.mutation;
|
|
1089
|
+
export const eventTransitionrunLight = transitionrunAliases.light;
|
|
1090
|
+
export const eventTransitionrunShadow = transitionrunAliases.shadow;
|
|
1091
|
+
export const eventTransitionrunAll = transitionrunAliases.all;
|
|
1092
|
+
export const eventTransitionrunAppHost = transitionrunAliases.appHost;
|
|
1093
|
+
export const eventTransitionrunWindow = transitionrunAliases.window;
|
|
1094
|
+
export const eventTransitionrunDocument = transitionrunAliases.document;
|
|
1095
|
+
const scrollAliases = makeTypedEventAliases<Event>('scroll');
|
|
1096
|
+
export const eventScroll = scrollAliases.base;
|
|
1097
|
+
export const eventScrollDelegateLight = scrollAliases.delegateLight;
|
|
1098
|
+
export const eventScrollDelegateShadow = scrollAliases.delegateShadow;
|
|
1099
|
+
export const eventScrollDelegateAll = scrollAliases.delegateAll;
|
|
1100
|
+
export const eventScrollDelegate = scrollAliases.delegate;
|
|
1101
|
+
export const eventScrollMutationLight = scrollAliases.mutationLight;
|
|
1102
|
+
export const eventScrollMutationShadow = scrollAliases.mutationShadow;
|
|
1103
|
+
export const eventScrollMutationAll = scrollAliases.mutationAll;
|
|
1104
|
+
export const eventScrollMutation = scrollAliases.mutation;
|
|
1105
|
+
export const eventScrollLight = scrollAliases.light;
|
|
1106
|
+
export const eventScrollShadow = scrollAliases.shadow;
|
|
1107
|
+
export const eventScrollAll = scrollAliases.all;
|
|
1108
|
+
export const eventScrollAppHost = scrollAliases.appHost;
|
|
1109
|
+
export const eventScrollWindow = scrollAliases.window;
|
|
1110
|
+
export const eventScrollDocument = scrollAliases.document;
|
|
1111
|
+
const resizeAliases = makeTypedEventAliases<UIEvent>('resize');
|
|
1112
|
+
export const eventResize = resizeAliases.base;
|
|
1113
|
+
export const eventResizeDelegateLight = resizeAliases.delegateLight;
|
|
1114
|
+
export const eventResizeDelegateShadow = resizeAliases.delegateShadow;
|
|
1115
|
+
export const eventResizeDelegateAll = resizeAliases.delegateAll;
|
|
1116
|
+
export const eventResizeDelegate = resizeAliases.delegate;
|
|
1117
|
+
export const eventResizeMutationLight = resizeAliases.mutationLight;
|
|
1118
|
+
export const eventResizeMutationShadow = resizeAliases.mutationShadow;
|
|
1119
|
+
export const eventResizeMutationAll = resizeAliases.mutationAll;
|
|
1120
|
+
export const eventResizeMutation = resizeAliases.mutation;
|
|
1121
|
+
export const eventResizeLight = resizeAliases.light;
|
|
1122
|
+
export const eventResizeShadow = resizeAliases.shadow;
|
|
1123
|
+
export const eventResizeAll = resizeAliases.all;
|
|
1124
|
+
export const eventResizeAppHost = resizeAliases.appHost;
|
|
1125
|
+
export const eventResizeWindow = resizeAliases.window;
|
|
1126
|
+
export const eventResizeDocument = resizeAliases.document;
|
|
1127
|
+
const loadAliases = makeTypedEventAliases<Event>('load');
|
|
1128
|
+
export const eventLoad = loadAliases.base;
|
|
1129
|
+
export const eventLoadDelegateLight = loadAliases.delegateLight;
|
|
1130
|
+
export const eventLoadDelegateShadow = loadAliases.delegateShadow;
|
|
1131
|
+
export const eventLoadDelegateAll = loadAliases.delegateAll;
|
|
1132
|
+
export const eventLoadDelegate = loadAliases.delegate;
|
|
1133
|
+
export const eventLoadMutationLight = loadAliases.mutationLight;
|
|
1134
|
+
export const eventLoadMutationShadow = loadAliases.mutationShadow;
|
|
1135
|
+
export const eventLoadMutationAll = loadAliases.mutationAll;
|
|
1136
|
+
export const eventLoadMutation = loadAliases.mutation;
|
|
1137
|
+
export const eventLoadLight = loadAliases.light;
|
|
1138
|
+
export const eventLoadShadow = loadAliases.shadow;
|
|
1139
|
+
export const eventLoadAll = loadAliases.all;
|
|
1140
|
+
export const eventLoadAppHost = loadAliases.appHost;
|
|
1141
|
+
export const eventLoadWindow = loadAliases.window;
|
|
1142
|
+
export const eventLoadDocument = loadAliases.document;
|
|
1143
|
+
const errorAliases = makeTypedEventAliases<Event>('error');
|
|
1144
|
+
export const eventError = errorAliases.base;
|
|
1145
|
+
export const eventErrorDelegateLight = errorAliases.delegateLight;
|
|
1146
|
+
export const eventErrorDelegateShadow = errorAliases.delegateShadow;
|
|
1147
|
+
export const eventErrorDelegateAll = errorAliases.delegateAll;
|
|
1148
|
+
export const eventErrorDelegate = errorAliases.delegate;
|
|
1149
|
+
export const eventErrorMutationLight = errorAliases.mutationLight;
|
|
1150
|
+
export const eventErrorMutationShadow = errorAliases.mutationShadow;
|
|
1151
|
+
export const eventErrorMutationAll = errorAliases.mutationAll;
|
|
1152
|
+
export const eventErrorMutation = errorAliases.mutation;
|
|
1153
|
+
export const eventErrorLight = errorAliases.light;
|
|
1154
|
+
export const eventErrorShadow = errorAliases.shadow;
|
|
1155
|
+
export const eventErrorAll = errorAliases.all;
|
|
1156
|
+
export const eventErrorAppHost = errorAliases.appHost;
|
|
1157
|
+
export const eventErrorWindow = errorAliases.window;
|
|
1158
|
+
export const eventErrorDocument = errorAliases.document;
|
|
1159
|
+
const toggleAliases = makeTypedEventAliases<Event>('toggle');
|
|
1160
|
+
export const eventToggle = toggleAliases.base;
|
|
1161
|
+
export const eventToggleDelegateLight = toggleAliases.delegateLight;
|
|
1162
|
+
export const eventToggleDelegateShadow = toggleAliases.delegateShadow;
|
|
1163
|
+
export const eventToggleDelegateAll = toggleAliases.delegateAll;
|
|
1164
|
+
export const eventToggleDelegate = toggleAliases.delegate;
|
|
1165
|
+
export const eventToggleMutationLight = toggleAliases.mutationLight;
|
|
1166
|
+
export const eventToggleMutationShadow = toggleAliases.mutationShadow;
|
|
1167
|
+
export const eventToggleMutationAll = toggleAliases.mutationAll;
|
|
1168
|
+
export const eventToggleMutation = toggleAliases.mutation;
|
|
1169
|
+
export const eventToggleLight = toggleAliases.light;
|
|
1170
|
+
export const eventToggleShadow = toggleAliases.shadow;
|
|
1171
|
+
export const eventToggleAll = toggleAliases.all;
|
|
1172
|
+
export const eventToggleAppHost = toggleAliases.appHost;
|
|
1173
|
+
export const eventToggleWindow = toggleAliases.window;
|
|
1174
|
+
export const eventToggleDocument = toggleAliases.document;
|
|
170
1175
|
export const getAddEventListenerMetadata = (target: any): AddEventListenerMetadata<Event>[] | undefined => {
|
|
171
|
-
const constructor = target
|
|
172
|
-
return ReflectUtils.
|
|
1176
|
+
const constructor = typeof target === 'function' ? target : target.constructor;
|
|
1177
|
+
return ReflectUtils.findAllMetadata<any[]>(ADD_EVENT_LISTENER_METADATA_KEY, constructor).flat();
|
|
173
1178
|
};
|
|
174
1179
|
|
|
175
1180
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -179,6 +1184,7 @@ import { ElementDefineLifeCycler, MutationObserverSetEntry, OnConnectedResult }
|
|
|
179
1184
|
import { Subject } from '@dooboostore/core';
|
|
180
1185
|
import { debounceTime, distinctUntilChanged, throttleTime } from '@dooboostore/core/message/operators';
|
|
181
1186
|
import { SwcUtils } from '../utils/Utils';
|
|
1187
|
+
import { buildSwcParameterArgs } from './parameter';
|
|
182
1188
|
|
|
183
1189
|
export interface BoundListenerEntry {
|
|
184
1190
|
target: EventTarget;
|
|
@@ -223,15 +1229,41 @@ export class EventListenerLifeCycler implements ElementDefineLifeCycler {
|
|
|
223
1229
|
const opts = { capture: options.capture, once: options.once, passive: options.passive };
|
|
224
1230
|
|
|
225
1231
|
const handler = async (event: Event) => {
|
|
1232
|
+
const helper = (options.filter || options.before || options.finally) ? SwcUtils.getHelperAndHostSet(target as HTMLElement, currentWin) : undefined;
|
|
226
1233
|
if (options.filter) {
|
|
227
|
-
|
|
228
|
-
if (!options.filter(event, { currentThis: inst, helper })) return;
|
|
1234
|
+
if (!(await options.filter(event, { currentThis: inst, helper }))) return;
|
|
229
1235
|
}
|
|
230
1236
|
if (options.stopPropagation) event.stopPropagation();
|
|
231
1237
|
if (options.stopImmediatePropagation) event.stopImmediatePropagation();
|
|
232
1238
|
if (options.preventDefault) event.preventDefault();
|
|
233
1239
|
const currentHostSet = SwcUtils.getHostSet(inst);
|
|
234
|
-
|
|
1240
|
+
const legacyArgs = [event, { currentHostSet, $matchedElement: event.currentTarget }, { event, ...currentHostSet, $el: target, $root: target }];
|
|
1241
|
+
const currentHelperSet = SwcUtils.getHelperSet(currentWin);
|
|
1242
|
+
const currentHelperHostSet = { ...currentHelperSet, ...currentHostSet, $this: inst };
|
|
1243
|
+
const buildArgs = (beforeReturn: any) => buildSwcParameterArgs(inst, meta.propertyKey, {
|
|
1244
|
+
eventObject: event,
|
|
1245
|
+
matchedElement: event.currentTarget,
|
|
1246
|
+
hostSet: currentHostSet,
|
|
1247
|
+
helperHostSet: currentHelperHostSet,
|
|
1248
|
+
helperSet: currentHelperSet,
|
|
1249
|
+
eventBeforeReturn: beforeReturn
|
|
1250
|
+
}, legacyArgs);
|
|
1251
|
+
// before를 먼저 돌려 그 리턴값을 @eventBeforeReturn 으로 주입. before엔 (아직 자기 리턴 전이라
|
|
1252
|
+
// eventBeforeReturn=undefined인) args를 넘기고, 리턴을 받은 뒤 args를 다시 빌드해 핸들러에 넘긴다.
|
|
1253
|
+
let args = buildArgs(undefined);
|
|
1254
|
+
if (options.before) {
|
|
1255
|
+
const beforeReturn = await options.before(event, { currentThis: inst, helper }, args);
|
|
1256
|
+
args = buildArgs(beforeReturn);
|
|
1257
|
+
}
|
|
1258
|
+
let result: any, error: any;
|
|
1259
|
+
try {
|
|
1260
|
+
result = await inst[meta.propertyKey](...args);
|
|
1261
|
+
} catch (e) {
|
|
1262
|
+
error = e;
|
|
1263
|
+
} finally {
|
|
1264
|
+
if (options.finally) await options.finally(event, { currentThis: inst, helper }, { args, result, error });
|
|
1265
|
+
}
|
|
1266
|
+
if (error) throw error;
|
|
235
1267
|
};
|
|
236
1268
|
|
|
237
1269
|
const eventSubject = new Subject<Event>();
|
|
@@ -340,27 +1372,53 @@ export class EventListenerLifeCycler implements ElementDefineLifeCycler {
|
|
|
340
1372
|
for (const br of roots) {
|
|
341
1373
|
const sorted = [...metaList].sort((a, b) => (b.options.stopPropagation ? 1 : 0) - (a.options.stopPropagation ? 1 : 0));
|
|
342
1374
|
const handler = async (event: Event) => {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
1375
|
+
// shadow 경계를 넘는(composed) 이벤트는 네이티브 dispatch가 끝나면(= 아래 루프에서
|
|
1376
|
+
// 첫 await가 제어권을 넘기는 순간, 브라우저는 비동기 리스너를 기다리지 않고 dispatch를
|
|
1377
|
+
// 마저 진행/종료한다) event.target/closest()가 더 이상 신뢰할 수 없어진다. 그래서 같은
|
|
1378
|
+
// selector를 공유하는 핸들러가 여러 개일 때 두 번째 이후 핸들러는 매칭이 깨질 수 있다 —
|
|
1379
|
+
// await 전에 전부 동기적으로 먼저 매칭해둔다.
|
|
1380
|
+
const matches = sorted.map(m => ({ m, matchedEl: (event.target as HTMLElement)?.closest(m.selector as string) }));
|
|
1381
|
+
for (const { m, matchedEl } of matches) {
|
|
346
1382
|
if (matchedEl && (br as any).contains(matchedEl)) {
|
|
1383
|
+
const helper = (m.options.filter || m.options.before || m.options.finally) ? SwcUtils.getHelperAndHostSet(matchedEl as HTMLElement, currentWin) : undefined;
|
|
347
1384
|
if (m.options.filter) {
|
|
348
|
-
|
|
349
|
-
if (!m.options.filter(event, { currentThis: inst, helper })) continue;
|
|
1385
|
+
if (!(await m.options.filter(event, { currentThis: inst, helper }))) continue;
|
|
350
1386
|
}
|
|
351
1387
|
if (m.options.stopPropagation) event.stopPropagation();
|
|
352
1388
|
if (m.options.stopImmediatePropagation) event.stopImmediatePropagation();
|
|
353
1389
|
if (m.options.preventDefault) event.preventDefault();
|
|
354
1390
|
const hs = SwcUtils.getHostSet(inst);
|
|
355
|
-
|
|
1391
|
+
const legacyArgs = [event, { ...hs, $matchedElement: matchedEl }, { event, ...hs, $el: matchedEl, $root: br }];
|
|
1392
|
+
const helperSetForMatch = SwcUtils.getHelperSet(currentWin);
|
|
1393
|
+
const helperHostSetForMatch = { ...helperSetForMatch, ...hs, $this: inst };
|
|
1394
|
+
const buildArgs = (beforeReturn: any) => buildSwcParameterArgs(inst, m.propertyKey, {
|
|
1395
|
+
eventObject: event,
|
|
1396
|
+
matchedElement: matchedEl,
|
|
1397
|
+
hostSet: hs,
|
|
1398
|
+
helperHostSet: helperHostSetForMatch,
|
|
1399
|
+
helperSet: helperSetForMatch,
|
|
1400
|
+
eventBeforeReturn: beforeReturn
|
|
1401
|
+
}, legacyArgs);
|
|
1402
|
+
// before를 먼저 돌려 그 리턴값을 @eventBeforeReturn 으로 주입.
|
|
1403
|
+
let args = buildArgs(undefined);
|
|
1404
|
+
if (m.options.before) {
|
|
1405
|
+
const beforeReturn = await m.options.before(event, { currentThis: inst, helper }, args);
|
|
1406
|
+
args = buildArgs(beforeReturn);
|
|
1407
|
+
}
|
|
1408
|
+
let result: any, error: any;
|
|
1409
|
+
try {
|
|
1410
|
+
result = await inst[m.propertyKey](...args);
|
|
1411
|
+
} catch (e) {
|
|
1412
|
+
error = e;
|
|
1413
|
+
} finally {
|
|
1414
|
+
if (m.options.finally) await m.options.finally(event, { currentThis: inst, helper }, { args, result, error });
|
|
1415
|
+
}
|
|
1416
|
+
if (error) throw error;
|
|
356
1417
|
if ((event as any).cancelBubble) break;
|
|
357
1418
|
}
|
|
358
1419
|
}
|
|
359
1420
|
};
|
|
360
1421
|
br.addEventListener(type, handler, opts);
|
|
361
|
-
if (type === 'click') {
|
|
362
|
-
console.log('[DBG][eventCycler] bound click on br=', (br as any).tagName || (br as any).constructor?.name, '| inst=', (inst as any).tagName || (inst as any).constructor?.name, '| isSame=', br === inst);
|
|
363
|
-
}
|
|
364
1422
|
const onRemoves: Array<{ fn: any; opts: any }> = sorted.filter(m => m.options.removeListener).map(m => ({ fn: m.options.removeListener, opts: m.options }));
|
|
365
1423
|
this.getBoundListeners(inst).push({ target: br, type, handler, options: opts, onRemoves });
|
|
366
1424
|
}
|