@dooboostore/simple-web-component 1.0.47 → 1.0.49
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 +223 -27
- package/dist/cjs/config/config.js +1 -1
- package/dist/cjs/config/config.js.map +2 -2
- package/dist/cjs/decorators/addEventListener.js +412 -16
- package/dist/cjs/decorators/addEventListener.js.map +3 -3
- package/dist/cjs/decorators/applyAttribute.js +25 -0
- package/dist/cjs/decorators/applyAttribute.js.map +2 -2
- package/dist/cjs/decorators/applyClass.js +49 -18
- package/dist/cjs/decorators/applyClass.js.map +3 -3
- package/dist/cjs/decorators/applyNode.js +67 -1
- package/dist/cjs/decorators/applyNode.js.map +3 -3
- package/dist/cjs/decorators/applyProperty.js +101 -3
- package/dist/cjs/decorators/applyProperty.js.map +2 -2
- package/dist/cjs/decorators/applyStyle.js +36 -5
- package/dist/cjs/decorators/applyStyle.js.map +2 -2
- package/dist/cjs/decorators/changedAttribute.js +39 -0
- package/dist/cjs/decorators/changedAttribute.js.map +2 -2
- package/dist/cjs/decorators/elementDefine.js +244 -225
- package/dist/cjs/decorators/elementDefine.js.map +3 -3
- package/dist/cjs/decorators/emitCustomEvent.js +55 -0
- package/dist/cjs/decorators/emitCustomEvent.js.map +2 -2
- package/dist/cjs/decorators/index.js +5 -1
- package/dist/cjs/decorators/index.js.map +2 -2
- package/dist/cjs/decorators/intersectionObserver.js +209 -0
- package/dist/cjs/decorators/intersectionObserver.js.map +7 -0
- package/dist/cjs/decorators/mutationObserver.js +244 -0
- package/dist/cjs/decorators/mutationObserver.js.map +7 -0
- package/dist/cjs/decorators/query.js +129 -102
- package/dist/cjs/decorators/query.js.map +2 -2
- package/dist/cjs/decorators/resizeObserver.js +191 -0
- package/dist/cjs/decorators/resizeObserver.js.map +7 -0
- package/dist/cjs/decorators/setInterval.js +82 -0
- package/dist/cjs/decorators/setInterval.js.map +7 -0
- package/dist/cjs/decorators/setTimeout.js +82 -0
- package/dist/cjs/decorators/setTimeout.js.map +7 -0
- package/dist/cjs/decorators/subscribeSwcAppMessageWhileConnected.js +9 -0
- package/dist/cjs/decorators/subscribeSwcAppMessageWhileConnected.js.map +2 -2
- package/dist/cjs/decorators/subscribeSwcAppRouteChangeWhileConnected.js +9 -0
- package/dist/cjs/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +2 -2
- package/dist/cjs/examples/RxJSOperatorsExample.js +285 -0
- package/dist/cjs/examples/RxJSOperatorsExample.js.map +7 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/esm/config/config.js +1 -1
- package/dist/esm/config/config.js.map +2 -2
- package/dist/esm/decorators/addEventListener.js +413 -16
- package/dist/esm/decorators/addEventListener.js.map +3 -3
- package/dist/esm/decorators/applyAttribute.js +25 -0
- package/dist/esm/decorators/applyAttribute.js.map +2 -2
- package/dist/esm/decorators/applyClass.js +49 -18
- package/dist/esm/decorators/applyClass.js.map +3 -3
- package/dist/esm/decorators/applyNode.js +67 -1
- package/dist/esm/decorators/applyNode.js.map +3 -3
- package/dist/esm/decorators/applyProperty.js +101 -3
- package/dist/esm/decorators/applyProperty.js.map +2 -2
- package/dist/esm/decorators/applyStyle.js +36 -5
- package/dist/esm/decorators/applyStyle.js.map +2 -2
- package/dist/esm/decorators/changedAttribute.js +40 -0
- package/dist/esm/decorators/changedAttribute.js.map +2 -2
- package/dist/esm/decorators/elementDefine.js +249 -230
- package/dist/esm/decorators/elementDefine.js.map +3 -3
- package/dist/esm/decorators/emitCustomEvent.js +55 -0
- package/dist/esm/decorators/emitCustomEvent.js.map +2 -2
- package/dist/esm/decorators/index.js +5 -1
- package/dist/esm/decorators/index.js.map +2 -2
- package/dist/esm/decorators/intersectionObserver.js +191 -0
- package/dist/esm/decorators/intersectionObserver.js.map +7 -0
- package/dist/esm/decorators/mutationObserver.js +226 -0
- package/dist/esm/decorators/mutationObserver.js.map +7 -0
- package/dist/esm/decorators/query.js +129 -102
- package/dist/esm/decorators/query.js.map +2 -2
- package/dist/esm/decorators/resizeObserver.js +173 -0
- package/dist/esm/decorators/resizeObserver.js.map +7 -0
- package/dist/esm/decorators/setInterval.js +64 -0
- package/dist/esm/decorators/setInterval.js.map +7 -0
- package/dist/esm/decorators/setTimeout.js +64 -0
- package/dist/esm/decorators/setTimeout.js.map +7 -0
- package/dist/esm/decorators/subscribeSwcAppMessageWhileConnected.js +9 -0
- package/dist/esm/decorators/subscribeSwcAppMessageWhileConnected.js.map +2 -2
- package/dist/esm/decorators/subscribeSwcAppRouteChangeWhileConnected.js +9 -0
- package/dist/esm/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +2 -2
- package/dist/esm/examples/RxJSOperatorsExample.js +266 -0
- package/dist/esm/examples/RxJSOperatorsExample.js.map +7 -0
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +2413 -889
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
- package/dist/types/config/config.d.ts.map +1 -1
- package/dist/types/decorators/addEventListener.d.ts +93 -23
- package/dist/types/decorators/addEventListener.d.ts.map +1 -1
- package/dist/types/decorators/applyAttribute.d.ts +22 -34
- package/dist/types/decorators/applyAttribute.d.ts.map +1 -1
- package/dist/types/decorators/applyClass.d.ts +34 -34
- package/dist/types/decorators/applyClass.d.ts.map +1 -1
- package/dist/types/decorators/applyNode.d.ts +30 -20
- package/dist/types/decorators/applyNode.d.ts.map +1 -1
- package/dist/types/decorators/applyProperty.d.ts +57 -34
- package/dist/types/decorators/applyProperty.d.ts.map +1 -1
- package/dist/types/decorators/applyStyle.d.ts +25 -12
- package/dist/types/decorators/applyStyle.d.ts.map +1 -1
- package/dist/types/decorators/changedAttribute.d.ts +11 -0
- 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 +28 -4
- package/dist/types/decorators/emitCustomEvent.d.ts.map +1 -1
- package/dist/types/decorators/index.d.ts +5 -1
- package/dist/types/decorators/index.d.ts.map +1 -1
- package/dist/types/decorators/intersectionObserver.d.ts +49 -0
- package/dist/types/decorators/intersectionObserver.d.ts.map +1 -0
- package/dist/types/decorators/mutationObserver.d.ts +46 -0
- package/dist/types/decorators/mutationObserver.d.ts.map +1 -0
- package/dist/types/decorators/query.d.ts +63 -8
- package/dist/types/decorators/query.d.ts.map +1 -1
- package/dist/types/decorators/resizeObserver.d.ts +48 -0
- package/dist/types/decorators/resizeObserver.d.ts.map +1 -0
- package/dist/types/decorators/setInterval.d.ts +29 -0
- package/dist/types/decorators/setInterval.d.ts.map +1 -0
- package/dist/types/decorators/setTimeout.d.ts +29 -0
- package/dist/types/decorators/setTimeout.d.ts.map +1 -0
- package/dist/types/decorators/subscribeSwcAppMessageWhileConnected.d.ts +7 -1
- package/dist/types/decorators/subscribeSwcAppMessageWhileConnected.d.ts.map +1 -1
- package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts +6 -0
- package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts.map +1 -1
- package/dist/types/examples/RxJSOperatorsExample.d.ts +94 -0
- package/dist/types/examples/RxJSOperatorsExample.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +104 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +2413 -889
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
- package/package.json +8 -6
- package/src/config/config.ts +1 -1
- package/src/decorators/addEventListener.ts +426 -23
- package/src/decorators/applyAttribute.ts +50 -36
- package/src/decorators/applyClass.ts +76 -26
- package/src/decorators/applyNode.ts +114 -36
- package/src/decorators/applyProperty.ts +152 -40
- package/src/decorators/applyStyle.ts +64 -17
- package/src/decorators/changedAttribute.ts +46 -0
- package/src/decorators/elementDefine.ts +301 -317
- package/src/decorators/emitCustomEvent.ts +73 -5
- package/src/decorators/index.ts +5 -1
- package/src/decorators/intersectionObserver.ts +259 -0
- package/src/decorators/mutationObserver.ts +304 -0
- package/src/decorators/query.ts +182 -117
- package/src/decorators/resizeObserver.ts +235 -0
- package/src/decorators/setInterval.ts +80 -0
- package/src/decorators/setTimeout.ts +80 -0
- package/src/decorators/subscribeSwcAppMessageWhileConnected.ts +17 -0
- package/src/decorators/subscribeSwcAppRouteChangeWhileConnected.ts +19 -0
- package/src/examples/RxJSOperatorsExample.ts +279 -0
- package/src/types/index.ts +141 -0
- package/dist/cjs/decorators/queryAll.js +0 -181
- package/dist/cjs/decorators/queryAll.js.map +0 -7
- package/dist/cjs/elements/tt/SwcAppMixin.js +0 -1
- package/dist/cjs/elements/tt/SwcAppMixin.js.map +0 -7
- package/dist/cjs/elements/tt/SwcAsync.js +0 -1
- package/dist/cjs/elements/tt/SwcAsync.js.map +0 -7
- package/dist/cjs/elements/tt/SwcAsyncTemplate.js +0 -1
- package/dist/cjs/elements/tt/SwcAsyncTemplate.js.map +0 -7
- package/dist/cjs/elements/tt/SwcChoose.js +0 -1
- package/dist/cjs/elements/tt/SwcChoose.js.map +0 -7
- package/dist/cjs/elements/tt/SwcChooseTemplate.js +0 -1
- package/dist/cjs/elements/tt/SwcChooseTemplate.js.map +0 -7
- package/dist/cjs/elements/tt/SwcIf.js +0 -1
- package/dist/cjs/elements/tt/SwcIf.js.map +0 -7
- package/dist/cjs/elements/tt/SwcIfTemplate.js +0 -1
- package/dist/cjs/elements/tt/SwcIfTemplate.js.map +0 -7
- package/dist/cjs/elements/tt/SwcLoop.js +0 -1
- package/dist/cjs/elements/tt/SwcLoop.js.map +0 -7
- package/dist/cjs/elements/tt/SwcLoopTemplate.js +0 -1
- package/dist/cjs/elements/tt/SwcLoopTemplate.js.map +0 -7
- package/dist/cjs/elements/tt/SwcSubTemplates.js +0 -1
- package/dist/cjs/elements/tt/SwcSubTemplates.js.map +0 -7
- package/dist/cjs/elements/tt/register.js +0 -1
- package/dist/cjs/elements/tt/register.js.map +0 -7
- package/dist/esm/decorators/queryAll.js +0 -162
- package/dist/esm/decorators/queryAll.js.map +0 -7
- package/dist/esm/elements/tt/SwcAppMixin.js +0 -1
- package/dist/esm/elements/tt/SwcAppMixin.js.map +0 -7
- package/dist/esm/elements/tt/SwcAsync.js +0 -1
- package/dist/esm/elements/tt/SwcAsync.js.map +0 -7
- package/dist/esm/elements/tt/SwcAsyncTemplate.js +0 -1
- package/dist/esm/elements/tt/SwcAsyncTemplate.js.map +0 -7
- package/dist/esm/elements/tt/SwcChoose.js +0 -1
- package/dist/esm/elements/tt/SwcChoose.js.map +0 -7
- package/dist/esm/elements/tt/SwcChooseTemplate.js +0 -1
- package/dist/esm/elements/tt/SwcChooseTemplate.js.map +0 -7
- package/dist/esm/elements/tt/SwcIf.js +0 -1
- package/dist/esm/elements/tt/SwcIf.js.map +0 -7
- package/dist/esm/elements/tt/SwcIfTemplate.js +0 -1
- package/dist/esm/elements/tt/SwcIfTemplate.js.map +0 -7
- package/dist/esm/elements/tt/SwcLoop.js +0 -1
- package/dist/esm/elements/tt/SwcLoop.js.map +0 -7
- package/dist/esm/elements/tt/SwcLoopTemplate.js +0 -1
- package/dist/esm/elements/tt/SwcLoopTemplate.js.map +0 -7
- package/dist/esm/elements/tt/SwcSubTemplates.js +0 -1
- package/dist/esm/elements/tt/SwcSubTemplates.js.map +0 -7
- package/dist/esm/elements/tt/register.js +0 -1
- package/dist/esm/elements/tt/register.js.map +0 -7
- package/dist/types/decorators/queryAll.d.ts +0 -22
- package/dist/types/decorators/queryAll.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcAppMixin.d.ts +0 -1
- package/dist/types/elements/tt/SwcAppMixin.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcAsync.d.ts +0 -1
- package/dist/types/elements/tt/SwcAsync.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcAsyncTemplate.d.ts +0 -1
- package/dist/types/elements/tt/SwcAsyncTemplate.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcChoose.d.ts +0 -1
- package/dist/types/elements/tt/SwcChoose.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcChooseTemplate.d.ts +0 -1
- package/dist/types/elements/tt/SwcChooseTemplate.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcIf.d.ts +0 -1
- package/dist/types/elements/tt/SwcIf.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcIfTemplate.d.ts +0 -1
- package/dist/types/elements/tt/SwcIfTemplate.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcLoop.d.ts +0 -1
- package/dist/types/elements/tt/SwcLoop.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcLoopTemplate.d.ts +0 -1
- package/dist/types/elements/tt/SwcLoopTemplate.d.ts.map +0 -1
- package/dist/types/elements/tt/SwcSubTemplates.d.ts +0 -1
- package/dist/types/elements/tt/SwcSubTemplates.d.ts.map +0 -1
- package/dist/types/elements/tt/register.d.ts +0 -1
- package/dist/types/elements/tt/register.d.ts.map +0 -1
- package/src/decorators/queryAll.ts +0 -186
- package/src/elements/tt/SwcAppMixin.ts +0 -13
- package/src/elements/tt/SwcAsync.ts +0 -139
- package/src/elements/tt/SwcAsyncTemplate.ts +0 -126
- package/src/elements/tt/SwcChoose.ts +0 -182
- package/src/elements/tt/SwcChooseTemplate.ts +0 -229
- package/src/elements/tt/SwcIf.ts +0 -145
- package/src/elements/tt/SwcIfTemplate.ts +0 -158
- package/src/elements/tt/SwcLoop.ts +0 -222
- package/src/elements/tt/SwcLoopTemplate.ts +0 -255
- package/src/elements/tt/SwcSubTemplates.ts +0 -6
- package/src/elements/tt/register.ts +0 -720
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EA0D9C,CAAC;AAEF,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EA0D9C,CAAC;AAEF,eAAO,MAAM,eAAe,UAAurB,CAAC;AAEptB,eAAO,MAAM,eAAe,UAAmL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpecialSelector, SwcQueryOptions, HelperHostSet } from '../types';
|
|
1
|
+
import { SpecialSelector, SwcQueryOptions, HelperHostSet, SwcFnSelector, SwcSelector } from '../types';
|
|
2
2
|
export interface AddEventListenerBaseOptions<TEvent extends Event = Event> extends EventListenerOptions {
|
|
3
3
|
capture?: boolean;
|
|
4
4
|
once?: boolean;
|
|
@@ -6,47 +6,117 @@ export interface AddEventListenerBaseOptions<TEvent extends Event = Event> exten
|
|
|
6
6
|
stopPropagation?: boolean;
|
|
7
7
|
stopImmediatePropagation?: boolean;
|
|
8
8
|
preventDefault?: boolean;
|
|
9
|
-
delegate?: boolean;
|
|
10
9
|
filter?: (target: Event | CustomEvent, meta: {
|
|
11
10
|
currentThis: any;
|
|
12
11
|
helper: HelperHostSet;
|
|
13
12
|
}) => boolean;
|
|
13
|
+
removeListener?: (target: Element, optionValue: AddEventListenerQueryOptions<TEvent>) => void;
|
|
14
14
|
debounceTime?: number;
|
|
15
15
|
throttleTime?: number;
|
|
16
16
|
distinctUntilChanged?: boolean | ((prev: TEvent, curr: TEvent) => boolean);
|
|
17
17
|
}
|
|
18
|
-
export type
|
|
18
|
+
export type EventListenerFnSelector = SwcFnSelector;
|
|
19
|
+
export type EventListenerSelector = SwcSelector;
|
|
19
20
|
export interface AddEventListenerMetadata<TEvent extends Event = Event> {
|
|
20
21
|
propertyKey: string | symbol;
|
|
21
22
|
selector: EventListenerSelector;
|
|
22
23
|
type: string;
|
|
23
|
-
options:
|
|
24
|
-
delegate?: boolean;
|
|
25
|
-
};
|
|
24
|
+
options: AddEventListenerQueryOptions<TEvent>;
|
|
26
25
|
}
|
|
27
26
|
export declare const ADD_EVENT_LISTENER_METADATA_KEY: unique symbol;
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export
|
|
33
|
-
export declare function
|
|
34
|
-
export declare function
|
|
35
|
-
export declare function
|
|
27
|
+
export type AddEventListenerQueryOptions<TEvent extends Event = Event> = AddEventListenerBaseOptions<TEvent> & SwcQueryOptions & {
|
|
28
|
+
delegate?: boolean | 'this' | 'mutation';
|
|
29
|
+
};
|
|
30
|
+
export type AddEventListenerNonQueryOptions<TEvent extends Event = Event> = AddEventListenerBaseOptions<TEvent>;
|
|
31
|
+
export type AddEventListenerOptionsOf<S extends EventListenerSelector, TEvent extends Event = Event> = S extends string ? AddEventListenerQueryOptions<TEvent> : AddEventListenerNonQueryOptions<TEvent>;
|
|
32
|
+
export declare function addEventListener<TEvent extends Event = Event>(target: SpecialSelector, type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
33
|
+
export declare function addEventListener<TEvent extends Event = Event>(selector: string, type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
34
|
+
export declare function addEventListener<TEvent extends Event = Event>(selector: string, type: string[], options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
35
|
+
export declare function addEventListener<TEvent extends Event = Event>(selector: EventListenerFnSelector, type: string, options?: AddEventListenerNonQueryOptions<TEvent>): MethodDecorator;
|
|
36
|
+
/**
|
|
37
|
+
* @addEventListener(type, options?) — 셀렉터 생략 시 $this(컴포넌트 자신)로 바인딩
|
|
38
|
+
*/
|
|
39
|
+
export declare function addEventListener<TEvent extends Event = Event>(type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
40
|
+
export declare function addEventListener<TEvent extends Event = Event>(type: string[], options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
41
|
+
export declare function addEventListenerDelegateLight<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>): MethodDecorator;
|
|
42
|
+
export declare function addEventListenerDelegateShadow<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>): MethodDecorator;
|
|
43
|
+
export declare function addEventListenerDelegateAll<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>): MethodDecorator;
|
|
44
|
+
export declare function addEventListenerDelegate<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>): MethodDecorator;
|
|
45
|
+
export declare function addEventListenerMutationLight<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>): MethodDecorator;
|
|
46
|
+
export declare function addEventListenerMutationShadow<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>): MethodDecorator;
|
|
47
|
+
export declare function addEventListenerMutationAll<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>): MethodDecorator;
|
|
48
|
+
export declare function addEventListenerMutation<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerQueryOptions<TEvent>, 'delegate'>): MethodDecorator;
|
|
49
|
+
export declare function addEventListenerLight<TEvent extends Event = Event>(selector: string, type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
50
|
+
export declare function addEventListenerShadow<TEvent extends Event = Event>(selector: string, type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
51
|
+
export declare function addEventListenerAll<TEvent extends Event = Event>(selector: string, type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
36
52
|
/**
|
|
37
53
|
* @addEventListenerThis decorator - simplified version of @addEventListener for $this selector
|
|
38
54
|
*/
|
|
39
|
-
export declare
|
|
40
|
-
export declare const eventDelegateLightDom: typeof addEventListenerDelegateLightDom;
|
|
41
|
-
export declare const eventDelegateShadowDom: typeof addEventListenerDelegateShadowDom;
|
|
42
|
-
export declare const eventDelegateAllDom: typeof addEventListenerDelegateAllDom;
|
|
43
|
-
export declare const eventDelegate: typeof addEventListenerDelegate;
|
|
44
|
-
export declare function addEventListenerThis<TEvent extends Event = Event>(type: string, options?: AddEventListenerBaseOptions<TEvent> & SwcQueryOptions): MethodDecorator;
|
|
55
|
+
export declare function addEventListenerThis<TEvent extends Event = Event>(type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
45
56
|
/**
|
|
46
57
|
* @addEventListenerAppHost decorator - simplified version of @addEventListener for $appHost selector
|
|
47
58
|
*/
|
|
48
|
-
export declare function addEventListenerAppHost<TEvent extends Event = Event>(type: string, options?:
|
|
49
|
-
export declare function addEventListenerWindow<TEvent extends Event = Event>(type: string, options?:
|
|
50
|
-
export declare function addEventListenerDocument<TEvent extends Event = Event>(type: string, options?:
|
|
59
|
+
export declare function addEventListenerAppHost<TEvent extends Event = Event>(type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
60
|
+
export declare function addEventListenerWindow<TEvent extends Event = Event>(type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
61
|
+
export declare function addEventListenerDocument<TEvent extends Event = Event>(type: string, options?: AddEventListenerQueryOptions<TEvent>): MethodDecorator;
|
|
62
|
+
export declare const event: typeof addEventListener;
|
|
63
|
+
export declare const eventDelegateLight: typeof addEventListenerDelegateLight;
|
|
64
|
+
export declare const eventDelegateShadow: typeof addEventListenerDelegateShadow;
|
|
65
|
+
export declare const eventDelegateAll: typeof addEventListenerDelegateAll;
|
|
66
|
+
export declare const eventDelegate: typeof addEventListenerDelegate;
|
|
67
|
+
export declare const eventMutationLight: typeof addEventListenerMutationLight;
|
|
68
|
+
export declare const eventMutationShadow: typeof addEventListenerMutationShadow;
|
|
69
|
+
export declare const eventMutationAll: typeof addEventListenerMutationAll;
|
|
70
|
+
export declare const eventMutation: typeof addEventListenerMutation;
|
|
71
|
+
export declare const eventLight: typeof addEventListenerLight;
|
|
72
|
+
export declare const eventShadow: typeof addEventListenerShadow;
|
|
73
|
+
export declare const eventAll: typeof addEventListenerAll;
|
|
74
|
+
export declare const eventAppHost: typeof addEventListenerAppHost;
|
|
75
|
+
export declare const eventWindow: typeof addEventListenerWindow;
|
|
76
|
+
export declare const eventDocument: typeof addEventListenerDocument;
|
|
77
|
+
export declare const eventThis: typeof addEventListenerThis;
|
|
51
78
|
export declare const getAddEventListenerMetadata: (target: any) => AddEventListenerMetadata<Event>[] | undefined;
|
|
79
|
+
import { ElementDefineLifeCycler, OnConnectedResult } from '../types';
|
|
80
|
+
export interface BoundListenerEntry {
|
|
81
|
+
target: EventTarget;
|
|
82
|
+
type: string;
|
|
83
|
+
handler: EventListener;
|
|
84
|
+
options: AddEventListenerOptions;
|
|
85
|
+
onRemoves?: Array<{
|
|
86
|
+
fn: (target: EventTarget, optionValue: unknown) => void;
|
|
87
|
+
opts: unknown;
|
|
88
|
+
}>;
|
|
89
|
+
subscription?: {
|
|
90
|
+
unsubscribe: () => void;
|
|
91
|
+
};
|
|
92
|
+
meta?: AddEventListenerMetadata<Event>;
|
|
93
|
+
}
|
|
94
|
+
export declare class EventListenerLifeCycler implements ElementDefineLifeCycler {
|
|
95
|
+
/** 인스턴스별 boundListeners 상태 (시클러는 elementDefine 시 1회 생성되어 공유되므로) */
|
|
96
|
+
private readonly boundListenersMap;
|
|
97
|
+
/** 인스턴스별 delegate:'mutation' 바인딩 추적 WeakSet — MutationObserverLifeCycler 에서 참조 */
|
|
98
|
+
private readonly eventBoundSetsMap;
|
|
99
|
+
/** 인스턴스별 boundListeners 를 반환한다 (없으면 생성). */
|
|
100
|
+
getBoundListeners(inst: Element): BoundListenerEntry[];
|
|
101
|
+
/** 인스턴스별 eventBoundSets 를 반환한다 (없으면 생성). */
|
|
102
|
+
getEventBoundSets(inst: Element): Map<AddEventListenerMetadata, WeakSet<Element>>;
|
|
103
|
+
/**
|
|
104
|
+
* target 에 meta 이벤트를 직접 바인딩한다.
|
|
105
|
+
* delegate:'mutation' 초기/동적 바인딩에서 호출된다.
|
|
106
|
+
*/
|
|
107
|
+
bindDirect(helperHostSet: HelperHostSet, target: EventTarget, meta: AddEventListenerMetadata): void;
|
|
108
|
+
/** target + meta 조합 리스너를 제거한다. MutationObserver 추적 요소 제거 시 호출. */
|
|
109
|
+
unbindDirect(helperHostSet: HelperHostSet, target: EventTarget, meta: AddEventListenerMetadata): void;
|
|
110
|
+
/**
|
|
111
|
+
* 메타데이터 목록을 delegate / mutationDelegate / nonDelegate 로 분류한다.
|
|
112
|
+
* MutationObserverLifeCycler 에서 mutationDelegate 목록을 꺼낼 때 사용한다.
|
|
113
|
+
*/
|
|
114
|
+
classifyListeners(metaList: AddEventListenerMetadata[]): {
|
|
115
|
+
delegateListeners: AddEventListenerMetadata[];
|
|
116
|
+
mutationDelegateListeners: AddEventListenerMetadata[];
|
|
117
|
+
nonDelegateListeners: AddEventListenerMetadata[];
|
|
118
|
+
};
|
|
119
|
+
onConnected(helperHostSet: HelperHostSet): OnConnectedResult | void;
|
|
120
|
+
onDisconnected(helperHostSet: HelperHostSet): void;
|
|
121
|
+
}
|
|
52
122
|
//# sourceMappingURL=addEventListener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addEventListener.d.ts","sourceRoot":"","sources":["../../../src/decorators/addEventListener.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"addEventListener.d.ts","sourceRoot":"","sources":["../../../src/decorators/addEventListener.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvG,MAAM,WAAW,2BAA2B,CAAC,MAAM,SAAS,KAAK,GAAG,KAAK,CAAE,SAAQ,oBA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EAAE,wBAAwB,EAAE,CAAC;KAClD;IAuBD,WAAW,CAAC,aAAa,EAAE,aAAa,GAAG,iBAAiB,GAAG,IAAI;IAgLnE,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI;CAanD"}
|
|
@@ -1,39 +1,19 @@
|
|
|
1
|
-
import { SwcQueryOptions, HelperHostSet } from '../types';
|
|
2
|
-
export interface
|
|
1
|
+
import { SwcQueryOptions, HelperHostSet, SwcFnSelector, SwcSelector } from '../types';
|
|
2
|
+
export interface AttributeBaseOptions {
|
|
3
3
|
name?: string;
|
|
4
4
|
type?: typeof Number | typeof Boolean | typeof String;
|
|
5
5
|
filter?: (target: HTMLElement, value: any, meta: {
|
|
6
6
|
currentThis: any;
|
|
7
7
|
helper: HelperHostSet;
|
|
8
8
|
}) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Custom key to extract value from return object.
|
|
11
|
-
* If not provided, uses ATTRIBUTE_METADATA_KEY by default.
|
|
12
|
-
* Useful when multiple @setAttribute decorators are on the same method.
|
|
13
|
-
*
|
|
14
|
-
* Example:
|
|
15
|
-
* @setAttribute('selector1', { valueKey: 'attr1' })
|
|
16
|
-
* @setAttribute('selector2', { valueKey: 'attr2' })
|
|
17
|
-
* myMethod() {
|
|
18
|
-
* return {
|
|
19
|
-
* attr1: 'value1',
|
|
20
|
-
* attr2: 'value2'
|
|
21
|
-
* };
|
|
22
|
-
* }
|
|
23
|
-
*
|
|
24
|
-
* Or with symbols:
|
|
25
|
-
* @setAttribute('selector1', { valueKey: Symbol.for('attr1') })
|
|
26
|
-
* @setAttribute('selector2', { valueKey: Symbol.for('attr2') })
|
|
27
|
-
* myMethod() {
|
|
28
|
-
* return {
|
|
29
|
-
* [Symbol.for('attr1')]: 'value1',
|
|
30
|
-
* [Symbol.for('attr2')]: 'value2'
|
|
31
|
-
* };
|
|
32
|
-
* }
|
|
33
|
-
*/
|
|
34
9
|
valueKey?: symbol | string;
|
|
35
10
|
}
|
|
36
|
-
export type
|
|
11
|
+
export type AttributeQueryOptions = AttributeBaseOptions & SwcQueryOptions;
|
|
12
|
+
export type AttributeNonQueryOptions = AttributeBaseOptions;
|
|
13
|
+
export type AttributeOptions = AttributeQueryOptions;
|
|
14
|
+
export type AttributeFnSelector = SwcFnSelector;
|
|
15
|
+
export type AttributeSelector = SwcSelector;
|
|
16
|
+
export type AttributeOptionsOf<S extends AttributeSelector> = S extends string ? AttributeQueryOptions : AttributeNonQueryOptions;
|
|
37
17
|
export interface AttributeMetadata {
|
|
38
18
|
propertyKey: string | symbol;
|
|
39
19
|
selector: AttributeSelector;
|
|
@@ -63,8 +43,8 @@ export declare const resolveAttributeTargets: (inst: any, selector: AttributeSel
|
|
|
63
43
|
* - @applyAttribute((this, helper) => 'selector', 'attrName') - Function-based selector
|
|
64
44
|
* - Return null to remove attribute
|
|
65
45
|
*/
|
|
66
|
-
export declare function applyAttribute(selector:
|
|
67
|
-
export declare function applyAttribute(selector:
|
|
46
|
+
export declare function applyAttribute<S extends AttributeSelector>(selector: S, targetAttributeName: string, options?: AttributeOptionsOf<S>): MethodDecorator & PropertyDecorator;
|
|
47
|
+
export declare function applyAttribute<S extends AttributeSelector>(selector: S, options?: AttributeOptionsOf<S>): MethodDecorator & PropertyDecorator;
|
|
68
48
|
/**
|
|
69
49
|
* @attribute - Field decorator for binding element attributes (read/write)
|
|
70
50
|
*
|
|
@@ -82,8 +62,9 @@ export declare function applyAttribute(selector: AttributeSelector, options?: At
|
|
|
82
62
|
*/
|
|
83
63
|
export declare function attribute(target: Object, propertyKey: string | symbol): void;
|
|
84
64
|
export declare function attribute(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
85
|
-
export declare function attribute(attributeName: string, options?:
|
|
86
|
-
export declare function attribute(selector:
|
|
65
|
+
export declare function attribute(attributeName: string, options?: AttributeQueryOptions): PropertyDecorator;
|
|
66
|
+
export declare function attribute(selector: string, attributeName: string, options?: AttributeQueryOptions): PropertyDecorator;
|
|
67
|
+
export declare function attribute(selector: AttributeFnSelector, attributeName: string, options?: AttributeNonQueryOptions): PropertyDecorator;
|
|
87
68
|
/**
|
|
88
69
|
* @setAttribute - Method decorator for setting element attributes from method return value
|
|
89
70
|
*
|
|
@@ -105,9 +86,16 @@ export declare function attribute(selector: AttributeSelector, attributeName: st
|
|
|
105
86
|
* return 'active';
|
|
106
87
|
* }
|
|
107
88
|
*/
|
|
108
|
-
export declare function setAttribute(selector:
|
|
109
|
-
export declare function setAttribute(attributeName: string, options?:
|
|
89
|
+
export declare function setAttribute(selector: string, attributeName: string, options?: AttributeQueryOptions): MethodDecorator;
|
|
90
|
+
export declare function setAttribute(selector: AttributeFnSelector, attributeName: string, options?: AttributeNonQueryOptions): MethodDecorator;
|
|
91
|
+
export declare function setAttribute(attributeName: string, options?: AttributeQueryOptions): MethodDecorator;
|
|
110
92
|
export declare const findAllAttributeMetadata: (target: any) => AttributeMetadata[];
|
|
111
93
|
export declare const findAllAttributeApplyMetadata: (target: any) => Map<string | symbol, AttributeMetadata>;
|
|
94
|
+
export declare const attr: typeof applyAttribute;
|
|
95
|
+
export declare function attrThis(targetAttributeName?: string, options?: AttributeQueryOptions): MethodDecorator;
|
|
96
|
+
export declare function attrAppHost(targetAttributeName?: string, options?: AttributeQueryOptions): MethodDecorator;
|
|
97
|
+
export declare function attrLight(selector: string, targetAttributeName?: string, options?: Omit<AttributeQueryOptions, 'root'>): MethodDecorator;
|
|
98
|
+
export declare function attrShadow(selector: string, targetAttributeName?: string, options?: Omit<AttributeQueryOptions, 'root'>): MethodDecorator;
|
|
99
|
+
export declare function attrAll(selector: string, targetAttributeName?: string, options?: Omit<AttributeQueryOptions, 'root'>): MethodDecorator;
|
|
112
100
|
export default applyAttribute;
|
|
113
101
|
//# sourceMappingURL=applyAttribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyAttribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyAttribute.ts"],"names":[],"mappings":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qB,EAAE,MAAM,CAAC,GAAG,eAAe,CAEzI;AACD,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC,GAAG,eAAe,CAEtI;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { SwcQueryOptions, HelperHostSet } from '../types';
|
|
1
|
+
import { SwcQueryOptions, SwcFnSelector, SwcSelector, HelperHostSet } from '../types';
|
|
2
2
|
export declare const CLASS_METADATA_KEY: unique symbol;
|
|
3
3
|
export type ClassAction = 'set' | 'update' | 'add' | 'remove' | 'toggle';
|
|
4
|
-
export interface
|
|
4
|
+
export interface ClassBaseOptions {
|
|
5
5
|
filter?: (target: HTMLElement, value: any, meta: {
|
|
6
6
|
currentThis: any;
|
|
7
7
|
helper: HelperHostSet;
|
|
8
8
|
}) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Custom key to extract value from return object.
|
|
11
|
-
* If not provided, uses CLASS_METADATA_KEY by default.
|
|
12
|
-
* Useful when multiple @applyClass decorators are on the same method.
|
|
13
|
-
*/
|
|
14
9
|
valueKey?: symbol | string;
|
|
15
10
|
}
|
|
16
|
-
export type
|
|
11
|
+
export type ClassQueryOptions = ClassBaseOptions & SwcQueryOptions;
|
|
12
|
+
export type ClassNonQueryOptions = ClassBaseOptions;
|
|
13
|
+
export type ClassApplyOptions = ClassQueryOptions;
|
|
14
|
+
export type ClassFnSelector = SwcFnSelector;
|
|
15
|
+
export type ClassSelector = SwcSelector;
|
|
16
|
+
export type ClassMapType = {
|
|
17
|
+
[className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
|
|
18
|
+
$this: any;
|
|
19
|
+
}) => boolean;
|
|
20
|
+
};
|
|
21
|
+
export type ClassOptionsOf<S extends ClassSelector> = S extends string ? ClassQueryOptions : ClassNonQueryOptions;
|
|
17
22
|
export interface ClassApplyMetadata {
|
|
18
23
|
propertyKey: string | symbol;
|
|
19
24
|
selector: ClassSelector;
|
|
@@ -21,36 +26,31 @@ export interface ClassApplyMetadata {
|
|
|
21
26
|
options: ClassApplyOptions;
|
|
22
27
|
}
|
|
23
28
|
export declare function applyClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
24
|
-
export declare function applyClass(selector:
|
|
29
|
+
export declare function applyClass(selector: string, action?: ClassAction, options?: ClassQueryOptions): MethodDecorator;
|
|
30
|
+
export declare function applyClass(selector: ClassFnSelector, action?: ClassAction, options?: ClassNonQueryOptions): MethodDecorator;
|
|
25
31
|
export declare function setClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
26
|
-
export declare function setClass(selector:
|
|
27
|
-
|
|
28
|
-
$this: any;
|
|
29
|
-
}) => boolean;
|
|
30
|
-
} | ClassApplyOptions, options?: ClassApplyOptions): MethodDecorator;
|
|
32
|
+
export declare function setClass(selector: string, classMapOrOptions?: string | ClassMapType | ClassQueryOptions, options?: ClassQueryOptions): MethodDecorator;
|
|
33
|
+
export declare function setClass(selector: ClassFnSelector, classMap: string | ClassMapType): MethodDecorator;
|
|
31
34
|
export declare function updateClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
32
|
-
export declare function updateClass(selector:
|
|
33
|
-
|
|
34
|
-
$this: any;
|
|
35
|
-
}) => boolean;
|
|
36
|
-
} | ClassApplyOptions, options?: ClassApplyOptions): MethodDecorator;
|
|
35
|
+
export declare function updateClass(selector: string, classMapOrOptions?: string | ClassMapType | ClassQueryOptions, options?: ClassQueryOptions): MethodDecorator;
|
|
36
|
+
export declare function updateClass(selector: ClassFnSelector, classMap: string | ClassMapType): MethodDecorator;
|
|
37
37
|
export declare function addClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
38
|
-
export declare function addClass(selector:
|
|
39
|
-
|
|
40
|
-
$this: any;
|
|
41
|
-
}) => boolean;
|
|
42
|
-
} | ClassApplyOptions, options?: ClassApplyOptions): MethodDecorator;
|
|
38
|
+
export declare function addClass(selector: string, classMapOrOptions?: string | ClassMapType | ClassQueryOptions, options?: ClassQueryOptions): MethodDecorator;
|
|
39
|
+
export declare function addClass(selector: ClassFnSelector, classMap: string | ClassMapType): MethodDecorator;
|
|
43
40
|
export declare function removeClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
44
|
-
export declare function removeClass(selector:
|
|
45
|
-
|
|
46
|
-
$this: any;
|
|
47
|
-
}) => boolean;
|
|
48
|
-
} | ClassApplyOptions, options?: ClassApplyOptions): MethodDecorator;
|
|
41
|
+
export declare function removeClass(selector: string, classMapOrOptions?: string | ClassMapType | ClassQueryOptions, options?: ClassQueryOptions): MethodDecorator;
|
|
42
|
+
export declare function removeClass(selector: ClassFnSelector, classMap: string | ClassMapType): MethodDecorator;
|
|
49
43
|
export declare function toggleClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
50
|
-
export declare function toggleClass(selector:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
export declare function toggleClass(selector: string, classMapOrOptions?: string | ClassMapType | ClassQueryOptions, options?: ClassQueryOptions): MethodDecorator;
|
|
45
|
+
export declare function toggleClass(selector: ClassFnSelector, classMap: string | ClassMapType): MethodDecorator;
|
|
46
|
+
export declare const cls: typeof applyClass;
|
|
47
|
+
export declare function clsThis(action?: ClassAction, options?: ClassQueryOptions): MethodDecorator;
|
|
48
|
+
export declare function clsAppHost(action?: ClassAction, options?: ClassQueryOptions): MethodDecorator;
|
|
49
|
+
export declare function clsLight(selector: string, action?: ClassAction, options?: Omit<ClassQueryOptions, 'root'>): MethodDecorator;
|
|
50
|
+
export declare function clsLight(selector: string, options?: Omit<ClassQueryOptions, 'root'>): MethodDecorator;
|
|
51
|
+
export declare function clsShadow(selector: string, action?: ClassAction, options?: Omit<ClassQueryOptions, 'root'>): MethodDecorator;
|
|
52
|
+
export declare function clsShadow(selector: string, options?: Omit<ClassQueryOptions, 'root'>): MethodDecorator;
|
|
53
|
+
export declare function clsAll(selector: string, action?: ClassAction, options?: Omit<ClassQueryOptions, 'root'>): MethodDecorator;
|
|
54
|
+
export declare function clsAll(selector: string, options?: Omit<ClassQueryOptions, 'root'>): MethodDecorator;
|
|
55
55
|
export declare const findAllClassMetadata: (target: any) => Map<string | symbol, ClassApplyMetadata>;
|
|
56
56
|
//# sourceMappingURL=applyClass.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyClass.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyClass.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applyClass.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyClass.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvG,eAAO,MAAM,kBAAkB,eAA2C,CAAC;AAE3E,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAyEzE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE;QAAC,WAAW,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,aAAa,CAAA;KAAC,KAAK,OAAO,CAAC;IACvG,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAGD,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAEnE,MAAM,MAAM,oBAAoB,GAAG,gB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AAe,CAAC;AAC9H,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,eAAe,CAAC;AAMxG,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,eAAe,CAAC;AAC3H,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,eAAe,CAAC;AAOrG,eAAO,MAAM,oBAAoB,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CASzF,CAAC"}
|
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import { HelperHostSet, SwcRootType } from '../types';
|
|
1
|
+
import { SwcFnSelector, SwcSelector, HelperHostSet, SwcRootType } from '../types';
|
|
2
2
|
export type ApplyNodePosition = 'beforeBegin' | 'afterBegin' | 'beforeEnd' | 'afterEnd' | 'replace' | 'replaceChildren' | 'innerHtml' | 'innerText' | 'remove' | 'clearChildren';
|
|
3
|
-
export type
|
|
4
|
-
export
|
|
3
|
+
export type ApplyNodeFnSelector = SwcFnSelector;
|
|
4
|
+
export type ApplyNodeSelector = SwcSelector;
|
|
5
|
+
export interface ApplyNodeBaseOptions {
|
|
5
6
|
position?: ApplyNodePosition;
|
|
6
|
-
root?: SwcRootType;
|
|
7
|
-
/**
|
|
8
|
-
* Filter function to determine whether to perform DOM operation.
|
|
9
|
-
* If it returns false, the operation is skipped.
|
|
10
|
-
*/
|
|
11
7
|
filter?: (target: HTMLElement | ShadowRoot, newValue: any, meta: {
|
|
12
8
|
currentThis: any;
|
|
13
9
|
helper: HelperHostSet;
|
|
14
10
|
}) => boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Optional loading content to display while an async method is executing.
|
|
17
|
-
*/
|
|
18
11
|
fallback?: (helper: HelperHostSet) => any;
|
|
19
|
-
/**
|
|
20
|
-
* Custom key to extract value from return object.
|
|
21
|
-
* If not provided, uses APPLY_NODE_METADATA_KEY by default.
|
|
22
|
-
* Useful when multiple @applyNode decorators are on the same method.
|
|
23
|
-
*/
|
|
24
12
|
valueKey?: symbol | string;
|
|
25
13
|
}
|
|
14
|
+
export type ApplyNodeQueryOptions = ApplyNodeBaseOptions & {
|
|
15
|
+
root?: SwcRootType;
|
|
16
|
+
};
|
|
17
|
+
export type ApplyNodeNonQueryOptions = ApplyNodeBaseOptions;
|
|
18
|
+
export type ApplyNodeOptions = ApplyNodeQueryOptions;
|
|
19
|
+
export type ApplyNodeOptionsOf<S extends ApplyNodeSelector> = S extends string ? ApplyNodeQueryOptions : ApplyNodeNonQueryOptions;
|
|
26
20
|
export interface ApplyNodeMetadata {
|
|
27
21
|
propertyKey: string | symbol;
|
|
28
22
|
selector: ApplyNodeSelector;
|
|
@@ -36,8 +30,9 @@ export declare const APPLY_NODE_METADATA_KEY: unique symbol;
|
|
|
36
30
|
* - applyNode(selector, options) - Apply to specific selector
|
|
37
31
|
* - applyNode(options) - Apply to $this (current element)
|
|
38
32
|
*/
|
|
39
|
-
export declare function applyNode(selector:
|
|
40
|
-
export declare function applyNode(
|
|
33
|
+
export declare function applyNode(selector: string, options?: ApplyNodeQueryOptions): MethodDecorator;
|
|
34
|
+
export declare function applyNode(selector: ApplyNodeFnSelector, options?: ApplyNodeNonQueryOptions): MethodDecorator;
|
|
35
|
+
export declare function applyNode(options: ApplyNodeQueryOptions): MethodDecorator;
|
|
41
36
|
/**
|
|
42
37
|
* @replaceChildrenNode decorator - replaces children of target element
|
|
43
38
|
*
|
|
@@ -46,8 +41,12 @@ export declare function applyNode(options: ApplyNodeOptions): MethodDecorator;
|
|
|
46
41
|
* - replaceChildrenNode(options) - Replace children of $this (current element)
|
|
47
42
|
* - @replaceChildrenNode - Bare decorator, replaces children of $this
|
|
48
43
|
*/
|
|
49
|
-
export
|
|
50
|
-
export
|
|
44
|
+
export type ApplyNodeQueryOptionsNoPos = Omit<ApplyNodeQueryOptions, 'position'>;
|
|
45
|
+
export type ApplyNodeNonQueryOptionsNoPos = Omit<ApplyNodeNonQueryOptions, 'position'>;
|
|
46
|
+
export type ApplyNodeOptionsOfNoPos<S extends ApplyNodeSelector> = S extends string ? ApplyNodeQueryOptionsNoPos : ApplyNodeNonQueryOptionsNoPos;
|
|
47
|
+
export declare function replaceChildren(selector: string, options?: ApplyNodeQueryOptionsNoPos): MethodDecorator;
|
|
48
|
+
export declare function replaceChildren(selector: ApplyNodeFnSelector, options?: ApplyNodeNonQueryOptionsNoPos): MethodDecorator;
|
|
49
|
+
export declare function replaceChildren(options: ApplyNodeQueryOptionsNoPos): MethodDecorator;
|
|
51
50
|
export declare function replaceChildren(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
52
51
|
/**
|
|
53
52
|
* @clearChildrenNode decorator - clears all children of target element
|
|
@@ -204,5 +203,16 @@ export declare function replaceChildrenLight(target: Object, propertyKey: string
|
|
|
204
203
|
export declare function clearChildrenLight(selector: ApplyNodeSelector, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
205
204
|
export declare function clearChildrenLight(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
206
205
|
export declare function clearChildrenLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
206
|
+
export declare const apply: typeof applyNode;
|
|
207
|
+
export declare const node: typeof applyNode;
|
|
208
|
+
export declare function applyThis(options?: ApplyNodeQueryOptions): MethodDecorator;
|
|
209
|
+
export declare function applyAppHost(options?: ApplyNodeQueryOptions): MethodDecorator;
|
|
210
|
+
export declare function applyLight(selector: string, options?: Omit<ApplyNodeQueryOptions, 'root'>): MethodDecorator;
|
|
211
|
+
export declare function applyShadow(selector: string, options?: Omit<ApplyNodeQueryOptions, 'root'>): MethodDecorator;
|
|
212
|
+
export declare function applyAll(selector: string, options?: Omit<ApplyNodeQueryOptions, 'root'>): MethodDecorator;
|
|
207
213
|
export declare const findAllApplyNodeMetadata: (target: any) => Map<string | symbol, ApplyNodeMetadata>;
|
|
214
|
+
export declare const skipIfSameTagPresent: (target: HTMLElement | ShadowRoot, newValue: any) => boolean;
|
|
215
|
+
export declare const skipIfExists: (selector: string) => (target: HTMLElement | ShadowRoot) => boolean;
|
|
216
|
+
export declare const skipIfEmpty: (_target: HTMLElement | ShadowRoot, newValue: any) => boolean;
|
|
217
|
+
export declare const applyIfChanged: (target: HTMLElement | ShadowRoot, newValue: any) => boolean;
|
|
208
218
|
//# sourceMappingURL=applyNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyNode.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyNode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmC,aAAa,EAAE,WAAW,EAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applyNode.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyNode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmC,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAC,MAAM,UAAU,CAAC;AAalH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,iBAAiB,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,eAAe,CAAC;AAEjL,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAChD,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAG5C,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,UAAU,EAAE,QAAQ,EAAE,GA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