@dooboostore/simple-web-component 1.0.48 → 1.0.50
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 +189 -19
- package/dist/cjs/config/config.js +1 -1
- package/dist/cjs/config/config.js.map +2 -2
- package/dist/cjs/decorators/addEventListener.js +2373 -30
- package/dist/cjs/decorators/addEventListener.js.map +3 -3
- package/dist/cjs/decorators/applyAttribute.js +31 -0
- package/dist/cjs/decorators/applyAttribute.js.map +2 -2
- package/dist/cjs/decorators/applyClass.js +55 -18
- package/dist/cjs/decorators/applyClass.js.map +3 -3
- package/dist/cjs/decorators/applyNode.js +73 -1
- package/dist/cjs/decorators/applyNode.js.map +3 -3
- package/dist/cjs/decorators/applyProperty.js +107 -3
- package/dist/cjs/decorators/applyProperty.js.map +2 -2
- package/dist/cjs/decorators/applySlot.js +6 -5
- package/dist/cjs/decorators/applySlot.js.map +2 -2
- package/dist/cjs/decorators/applyStyle.js +42 -5
- package/dist/cjs/decorators/applyStyle.js.map +2 -2
- package/dist/cjs/decorators/changedAttribute.js +61 -13
- package/dist/cjs/decorators/changedAttribute.js.map +2 -2
- package/dist/cjs/decorators/elementDefine.js +254 -439
- 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/eventMedia.js +84 -0
- package/dist/cjs/decorators/eventMedia.js.map +7 -0
- package/dist/cjs/decorators/index.js +6 -1
- package/dist/cjs/decorators/index.js.map +2 -2
- package/dist/cjs/decorators/intersectionObserver.js +200 -0
- package/dist/cjs/decorators/intersectionObserver.js.map +7 -0
- package/dist/cjs/decorators/mutationObserver.js +186 -55
- package/dist/cjs/decorators/mutationObserver.js.map +3 -3
- package/dist/cjs/decorators/parameter.js +73 -0
- package/dist/cjs/decorators/parameter.js.map +7 -0
- package/dist/cjs/decorators/query.js +117 -102
- package/dist/cjs/decorators/query.js.map +2 -2
- package/dist/cjs/decorators/requestAnimationFrame.js +124 -0
- package/dist/cjs/decorators/requestAnimationFrame.js.map +7 -0
- package/dist/cjs/decorators/resizeObserver.js +133 -55
- package/dist/cjs/decorators/resizeObserver.js.map +2 -2
- package/dist/cjs/decorators/setInterval.js +114 -0
- package/dist/cjs/decorators/setInterval.js.map +7 -0
- package/dist/cjs/decorators/setTimeout.js +117 -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/elements/SwcAppMixin.js +19 -3
- package/dist/cjs/elements/SwcAppMixin.js.map +2 -2
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/types/window.d.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 +2374 -30
- package/dist/esm/decorators/addEventListener.js.map +3 -3
- package/dist/esm/decorators/applyAttribute.js +31 -0
- package/dist/esm/decorators/applyAttribute.js.map +2 -2
- package/dist/esm/decorators/applyClass.js +55 -18
- package/dist/esm/decorators/applyClass.js.map +3 -3
- package/dist/esm/decorators/applyNode.js +73 -1
- package/dist/esm/decorators/applyNode.js.map +3 -3
- package/dist/esm/decorators/applyProperty.js +107 -3
- package/dist/esm/decorators/applyProperty.js.map +2 -2
- package/dist/esm/decorators/applySlot.js +6 -5
- package/dist/esm/decorators/applySlot.js.map +2 -2
- package/dist/esm/decorators/applyStyle.js +42 -5
- package/dist/esm/decorators/applyStyle.js.map +2 -2
- package/dist/esm/decorators/changedAttribute.js +62 -13
- package/dist/esm/decorators/changedAttribute.js.map +2 -2
- package/dist/esm/decorators/elementDefine.js +261 -446
- 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/eventMedia.js +66 -0
- package/dist/esm/decorators/eventMedia.js.map +7 -0
- package/dist/esm/decorators/index.js +6 -1
- package/dist/esm/decorators/index.js.map +2 -2
- package/dist/esm/decorators/intersectionObserver.js +182 -0
- package/dist/esm/decorators/intersectionObserver.js.map +7 -0
- package/dist/esm/decorators/mutationObserver.js +187 -55
- package/dist/esm/decorators/mutationObserver.js.map +3 -3
- package/dist/esm/decorators/parameter.js +54 -0
- package/dist/esm/decorators/parameter.js.map +7 -0
- package/dist/esm/decorators/query.js +117 -102
- package/dist/esm/decorators/query.js.map +2 -2
- package/dist/esm/decorators/requestAnimationFrame.js +105 -0
- package/dist/esm/decorators/requestAnimationFrame.js.map +7 -0
- package/dist/esm/decorators/resizeObserver.js +134 -55
- package/dist/esm/decorators/resizeObserver.js.map +2 -2
- package/dist/esm/decorators/setInterval.js +95 -0
- package/dist/esm/decorators/setInterval.js.map +7 -0
- package/dist/esm/decorators/setTimeout.js +98 -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/elements/SwcAppMixin.js +20 -4
- package/dist/esm/elements/SwcAppMixin.js.map +2 -2
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +4961 -1628
- 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 +1046 -33
- package/dist/types/decorators/addEventListener.d.ts.map +1 -1
- package/dist/types/decorators/applyAttribute.d.ts +24 -34
- package/dist/types/decorators/applyAttribute.d.ts.map +1 -1
- package/dist/types/decorators/applyClass.d.ts +36 -34
- package/dist/types/decorators/applyClass.d.ts.map +1 -1
- package/dist/types/decorators/applyNode.d.ts +32 -20
- package/dist/types/decorators/applyNode.d.ts.map +1 -1
- package/dist/types/decorators/applyProperty.d.ts +61 -34
- 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 +27 -12
- package/dist/types/decorators/applyStyle.d.ts.map +1 -1
- package/dist/types/decorators/changedAttribute.d.ts +12 -3
- package/dist/types/decorators/changedAttribute.d.ts.map +1 -1
- package/dist/types/decorators/elementDefine.d.ts +0 -14
- 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/eventMedia.d.ts +25 -0
- package/dist/types/decorators/eventMedia.d.ts.map +1 -0
- package/dist/types/decorators/index.d.ts +6 -1
- package/dist/types/decorators/index.d.ts.map +1 -1
- package/dist/types/decorators/intersectionObserver.d.ts +58 -0
- package/dist/types/decorators/intersectionObserver.d.ts.map +1 -0
- package/dist/types/decorators/mutationObserver.d.ts +44 -25
- package/dist/types/decorators/mutationObserver.d.ts.map +1 -1
- package/dist/types/decorators/parameter.d.ts +35 -0
- package/dist/types/decorators/parameter.d.ts.map +1 -0
- package/dist/types/decorators/query.d.ts +57 -14
- 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 +43 -23
- package/dist/types/decorators/resizeObserver.d.ts.map +1 -1
- package/dist/types/decorators/setInterval.d.ts +41 -0
- package/dist/types/decorators/setInterval.d.ts.map +1 -0
- package/dist/types/decorators/setTimeout.d.ts +41 -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/elements/SwcAppMixin.d.ts.map +1 -1
- 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 +4961 -1628
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
- package/package.json +7 -5
- package/src/config/config.ts +1 -1
- package/src/decorators/addEventListener.ts +1446 -34
- package/src/decorators/applyAttribute.ts +60 -36
- package/src/decorators/applyClass.ts +86 -26
- package/src/decorators/applyNode.ts +124 -36
- package/src/decorators/applyProperty.ts +172 -40
- package/src/decorators/applySlot.ts +6 -5
- package/src/decorators/applyStyle.ts +74 -17
- package/src/decorators/changedAttribute.ts +76 -15
- package/src/decorators/elementDefine.ts +310 -582
- package/src/decorators/emitCustomEvent.ts +73 -5
- package/src/decorators/eventMedia.ts +78 -0
- package/src/decorators/index.ts +6 -1
- package/src/decorators/intersectionObserver.ts +275 -0
- package/src/decorators/mutationObserver.ts +282 -89
- package/src/decorators/parameter.ts +81 -0
- package/src/decorators/query.ts +168 -126
- package/src/decorators/requestAnimationFrame.ts +158 -0
- package/src/decorators/resizeObserver.ts +211 -89
- package/src/decorators/setInterval.ts +136 -0
- package/src/decorators/setTimeout.ts +139 -0
- package/src/decorators/subscribeSwcAppMessageWhileConnected.ts +17 -0
- package/src/decorators/subscribeSwcAppRouteChangeWhileConnected.ts +19 -0
- package/src/elements/SwcAppMixin.ts +20 -5
- package/src/types/index.ts +141 -0
- package/src/types/window.d.ts +2 -18
- package/dist/cjs/decorators/queryAll.js +0 -181
- package/dist/cjs/decorators/queryAll.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/queryAll.js +0 -162
- package/dist/esm/decorators/queryAll.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/queryAll.d.ts +0 -22
- package/dist/types/decorators/queryAll.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/queryAll.ts +0 -186
- package/src/examples/RxJSOperatorsExample.ts +0 -279
|
@@ -1,38 +1,22 @@
|
|
|
1
|
-
import { SwcQueryOptions, HelperHostSet } from '../types';
|
|
2
|
-
export interface
|
|
1
|
+
import { SwcQueryOptions, HelperHostSet, SwcFnSelector, SwcSelector } from '../types';
|
|
2
|
+
export interface PropertyBaseOptions {
|
|
3
3
|
name?: string | symbol;
|
|
4
4
|
filter?: (target: HTMLElement, value: any, meta: {
|
|
5
5
|
currentThis: any;
|
|
6
6
|
helper: HelperHostSet;
|
|
7
7
|
}) => boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Custom key to extract value from return object.
|
|
10
|
-
* If not provided, uses PROPERTY_METADATA_KEY by default.
|
|
11
|
-
* Useful when multiple @setProperty decorators are on the same method.
|
|
12
|
-
*
|
|
13
|
-
* Example:
|
|
14
|
-
* @setProperty('selector1', { valueKey: 'prop1' })
|
|
15
|
-
* @setProperty('selector2', { valueKey: 'prop2' })
|
|
16
|
-
* myMethod() {
|
|
17
|
-
* return {
|
|
18
|
-
* prop1: 'value1',
|
|
19
|
-
* prop2: 'value2'
|
|
20
|
-
* };
|
|
21
|
-
* }
|
|
22
|
-
*
|
|
23
|
-
* Or with symbols:
|
|
24
|
-
* @setProperty('selector1', { valueKey: Symbol.for('prop1') })
|
|
25
|
-
* @setProperty('selector2', { valueKey: Symbol.for('prop2') })
|
|
26
|
-
* myMethod() {
|
|
27
|
-
* return {
|
|
28
|
-
* [Symbol.for('prop1')]: 'value1',
|
|
29
|
-
* [Symbol.for('prop2')]: 'value2'
|
|
30
|
-
* };
|
|
31
|
-
* }
|
|
32
|
-
*/
|
|
33
8
|
valueKey?: symbol | string;
|
|
9
|
+
/** 읽기 방식: 'get' 타깃 프로퍼티 읽기 (기본), 'call' 타깃 호출 후 리턴 사용 */
|
|
10
|
+
getType?: 'get' | 'call';
|
|
11
|
+
/** 쓰기 방식: 'set' 타깃 프로퍼티 대입 (기본), 'call' 타깃 호출 (배열이면 spread) */
|
|
12
|
+
setType?: 'set' | 'call';
|
|
34
13
|
}
|
|
35
|
-
export type
|
|
14
|
+
export type PropertyQueryOptions = PropertyBaseOptions & SwcQueryOptions;
|
|
15
|
+
export type PropertyNonQueryOptions = PropertyBaseOptions;
|
|
16
|
+
export type PropertyOptions = PropertyQueryOptions;
|
|
17
|
+
export type PropertyFnSelector = SwcFnSelector;
|
|
18
|
+
export type PropertySelector = SwcSelector;
|
|
19
|
+
export type PropertyOptionsOf<S extends PropertySelector> = S extends string ? PropertyQueryOptions : PropertyNonQueryOptions;
|
|
36
20
|
export interface PropertyMetadata {
|
|
37
21
|
propertyKey: string | symbol;
|
|
38
22
|
selector: PropertySelector;
|
|
@@ -57,8 +41,8 @@ export declare const resolvePropertyTargets: (inst: any, selector: PropertySelec
|
|
|
57
41
|
* - @applyProperty((this, helper) => 'selector', 'propertyName') - Function-based selector
|
|
58
42
|
* - Return null/undefined to skip setting
|
|
59
43
|
*/
|
|
60
|
-
export declare function applyProperty(selector:
|
|
61
|
-
export declare function applyProperty(selector:
|
|
44
|
+
export declare function applyProperty<S extends PropertySelector>(selector: S, targetPropertyKey: string | symbol, options?: PropertyOptionsOf<S>): MethodDecorator & PropertyDecorator;
|
|
45
|
+
export declare function applyProperty<S extends PropertySelector>(selector: S, options?: PropertyOptionsOf<S>): MethodDecorator & PropertyDecorator;
|
|
62
46
|
/**
|
|
63
47
|
* @property - Field decorator for binding element properties (read/write)
|
|
64
48
|
*
|
|
@@ -71,10 +55,12 @@ export declare function applyProperty(selector: PropertySelector, options?: Prop
|
|
|
71
55
|
*
|
|
72
56
|
* Note: This decorator is for FIELDS ONLY. For methods, use @setProperty.
|
|
73
57
|
*/
|
|
58
|
+
export declare function property(selector: string, targetPropertyKey: string | symbol, options?: PropertyQueryOptions): PropertyDecorator;
|
|
59
|
+
export declare function property(selector: PropertyFnSelector, targetPropertyKey: string | symbol, options?: PropertyNonQueryOptions): PropertyDecorator;
|
|
60
|
+
export declare function property(selector: string, options?: PropertyQueryOptions): PropertyDecorator;
|
|
61
|
+
export declare function property(selector: PropertyFnSelector, options?: PropertyNonQueryOptions): PropertyDecorator;
|
|
74
62
|
export declare function property(target: Object, propertyKey: string | symbol): void;
|
|
75
63
|
export declare function property(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
76
|
-
export declare function property(selector: PropertySelector, targetPropertyKey: string | symbol, options?: PropertyOptions): PropertyDecorator;
|
|
77
|
-
export declare function property(selector: PropertySelector, options?: PropertyOptions): PropertyDecorator;
|
|
78
64
|
/**
|
|
79
65
|
* @setProperty - Method decorator for setting element properties from method return value
|
|
80
66
|
*
|
|
@@ -93,9 +79,50 @@ export declare function property(selector: PropertySelector, options?: PropertyO
|
|
|
93
79
|
* return true;
|
|
94
80
|
* }
|
|
95
81
|
*/
|
|
96
|
-
export declare function setProperty(selector:
|
|
97
|
-
export declare function setProperty(selector:
|
|
82
|
+
export declare function setProperty(selector: string, targetPropertyKey: string | symbol, options?: PropertyQueryOptions): MethodDecorator;
|
|
83
|
+
export declare function setProperty(selector: PropertyFnSelector, targetPropertyKey: string | symbol, options?: PropertyNonQueryOptions): MethodDecorator;
|
|
84
|
+
export declare function setProperty(selector: string, options?: PropertyQueryOptions): MethodDecorator;
|
|
85
|
+
export declare function setProperty(selector: PropertyFnSelector, options?: PropertyNonQueryOptions): MethodDecorator;
|
|
86
|
+
/**
|
|
87
|
+
* @callProperty - Method decorator for calling a method on matched elements.
|
|
88
|
+
* - @callProperty('selector', 'methodName') - 메서드 리턴값으로 타깃 메서드 호출
|
|
89
|
+
* - @callProperty('selector') - 메서드 이름과 같은 타깃 메서드 호출
|
|
90
|
+
* - 리턴값이 배열이면 spread 인자로 호출, 아니면 단일 인자로 호출
|
|
91
|
+
*
|
|
92
|
+
* Example:
|
|
93
|
+
* @event('#popup', 'open-request')
|
|
94
|
+
* @callProperty('#popup', 'show')
|
|
95
|
+
* onPopupOpen() {
|
|
96
|
+
* return [this.rows]; // popup.show(this.rows)
|
|
97
|
+
* }
|
|
98
|
+
*/
|
|
99
|
+
export declare function callProperty(selector: string, targetMethodKey?: string | symbol, options?: PropertyQueryOptions): MethodDecorator;
|
|
100
|
+
export declare function callProperty(selector: PropertyFnSelector, targetMethodKey?: string | symbol, options?: PropertyNonQueryOptions): MethodDecorator;
|
|
101
|
+
export declare function callProperty(selector: string, options?: PropertyQueryOptions): MethodDecorator;
|
|
102
|
+
export declare function callPropertyLight(selector: string, targetMethodKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
103
|
+
export declare function callPropertyLight(selector: string, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
104
|
+
export declare function callPropertyShadow(selector: string, targetMethodKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
105
|
+
export declare function callPropertyShadow(selector: string, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
106
|
+
export declare function callPropertyAll(selector: string, targetMethodKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
98
107
|
export declare const findAllPropertyMetadata: (target: any) => PropertyMetadata[];
|
|
99
108
|
export declare const findAllPropertyApplyMetadata: (target: any) => Map<string | symbol, PropertyMetadata>;
|
|
109
|
+
export declare const prop: typeof applyProperty;
|
|
110
|
+
export declare function propThis(targetPropertyKey?: string | symbol, options?: PropertyQueryOptions): MethodDecorator;
|
|
111
|
+
export declare function propThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
112
|
+
export declare function propAppHost(targetPropertyKey?: string | symbol, options?: PropertyQueryOptions): MethodDecorator;
|
|
113
|
+
export declare function propAppHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
114
|
+
export declare function propWindow(targetPropertyKey?: string | symbol, options?: PropertyQueryOptions): MethodDecorator;
|
|
115
|
+
export declare function propWindow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
116
|
+
export declare function propDocument(targetPropertyKey?: string | symbol, options?: PropertyQueryOptions): MethodDecorator;
|
|
117
|
+
export declare function propDocument(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
118
|
+
export declare function propLight(selector: string, targetPropertyKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
119
|
+
export declare function propShadow(selector: string, targetPropertyKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
120
|
+
export declare function propAll(selector: string, targetPropertyKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
121
|
+
export declare function setPropertyLight(selector: string, targetPropertyKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
122
|
+
export declare function setPropertyShadow(selector: string, targetPropertyKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
123
|
+
export declare function setPropertyAll(selector: string, targetPropertyKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): MethodDecorator;
|
|
124
|
+
export declare function propertyLight(selector: string, targetPropertyKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): PropertyDecorator;
|
|
125
|
+
export declare function propertyShadow(selector: string, targetPropertyKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): PropertyDecorator;
|
|
126
|
+
export declare function propertyAll(selector: string, targetPropertyKey?: string | symbol, options?: Omit<PropertyQueryOptions, 'root'>): PropertyDecorator;
|
|
100
127
|
export default applyProperty;
|
|
101
128
|
//# sourceMappingURL=applyProperty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyProperty.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyProperty.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applyProperty.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyProperty.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGtF,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,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;IAC3B,yDAAyD;IACzD,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC1B;AAGD,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG,eAAe,CAAC;AAEzE,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAC/C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ED,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applySlot.d.ts","sourceRoot":"","sources":["../../../src/decorators/applySlot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAe,MAAM,mBAAmB,CAAC;AAI7D,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAUvC,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,qBAAqB,GAAG,OAAO,CAAC;AAEjM,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,MAAM,GAAG,IAAI,CAAC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IAEjB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,eAAO,MAAM,uBAAuB,eAAgD,CAAC;AAsDrF;;GAEG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"applySlot.d.ts","sourceRoot":"","sources":["../../../src/decorators/applySlot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAe,MAAM,mBAAmB,CAAC;AAI7D,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAUvC,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,GAAG,iBAAiB,GAAG,qBAAqB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B,GAAI,QAAQ,GAAG,KAAG,iBAAiB,EAGvE,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { SwcQueryOptions, HelperHostSet } from '../types';
|
|
1
|
+
import { SwcQueryOptions, SwcFnSelector, SwcSelector, HelperHostSet } from '../types';
|
|
2
2
|
export type StyleAction = 'set' | 'update' | 'remove';
|
|
3
|
-
export interface
|
|
3
|
+
export interface StyleBaseOptions {
|
|
4
4
|
filter?: (target: HTMLElement, value: any, meta: {
|
|
5
5
|
currentThis: any;
|
|
6
6
|
helper: HelperHostSet;
|
|
7
7
|
}) => boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Custom key to extract value from return object.
|
|
10
|
-
* If not provided, uses STYLE_METADATA_KEY by default.
|
|
11
|
-
* Useful when multiple @applyStyle decorators are on the same method.
|
|
12
|
-
*/
|
|
13
8
|
valueKey?: symbol | string;
|
|
14
9
|
}
|
|
15
|
-
export type
|
|
10
|
+
export type StyleQueryOptions = StyleBaseOptions & SwcQueryOptions;
|
|
11
|
+
export type StyleNonQueryOptions = StyleBaseOptions;
|
|
12
|
+
export type StyleApplyOptions = StyleQueryOptions;
|
|
13
|
+
export type StyleFnSelector = SwcFnSelector;
|
|
14
|
+
export type StyleSelector = SwcSelector;
|
|
15
|
+
export type StyleOptionsOf<S extends StyleSelector> = S extends string ? StyleQueryOptions : StyleNonQueryOptions;
|
|
16
16
|
export interface StyleApplyMetadata {
|
|
17
17
|
propertyKey: string | symbol;
|
|
18
18
|
selector: StyleSelector;
|
|
@@ -21,12 +21,27 @@ export interface StyleApplyMetadata {
|
|
|
21
21
|
}
|
|
22
22
|
export declare const STYLE_METADATA_KEY: unique symbol;
|
|
23
23
|
export declare function applyStyle(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
24
|
-
export declare function applyStyle(selector:
|
|
24
|
+
export declare function applyStyle(selector: string, action?: StyleAction, options?: StyleQueryOptions): MethodDecorator;
|
|
25
|
+
export declare function applyStyle(selector: StyleFnSelector, action?: StyleAction, options?: StyleNonQueryOptions): MethodDecorator;
|
|
25
26
|
export declare function setStyle(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
26
|
-
export declare function setStyle(selector:
|
|
27
|
+
export declare function setStyle(selector: string, options?: StyleQueryOptions): MethodDecorator;
|
|
28
|
+
export declare function setStyle(selector: StyleFnSelector, options?: StyleNonQueryOptions): MethodDecorator;
|
|
27
29
|
export declare function updateStyle(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
28
|
-
export declare function updateStyle(selector:
|
|
30
|
+
export declare function updateStyle(selector: string, options?: StyleQueryOptions): MethodDecorator;
|
|
31
|
+
export declare function updateStyle(selector: StyleFnSelector, options?: StyleNonQueryOptions): MethodDecorator;
|
|
29
32
|
export declare function removeStyle(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
30
|
-
export declare function removeStyle(selector:
|
|
33
|
+
export declare function removeStyle(selector: string, options?: StyleQueryOptions): MethodDecorator;
|
|
34
|
+
export declare function removeStyle(selector: StyleFnSelector, options?: StyleNonQueryOptions): MethodDecorator;
|
|
35
|
+
export declare const style: typeof applyStyle;
|
|
36
|
+
export declare function styleThis(action?: StyleAction, options?: StyleQueryOptions): MethodDecorator;
|
|
37
|
+
export declare function styleThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
38
|
+
export declare function styleAppHost(action?: StyleAction, options?: StyleQueryOptions): MethodDecorator;
|
|
39
|
+
export declare function styleAppHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
40
|
+
export declare function styleLight(selector: string, action?: StyleAction, options?: Omit<StyleQueryOptions, 'root'>): MethodDecorator;
|
|
41
|
+
export declare function styleLight(selector: string, options?: Omit<StyleQueryOptions, 'root'>): MethodDecorator;
|
|
42
|
+
export declare function styleShadow(selector: string, action?: StyleAction, options?: Omit<StyleQueryOptions, 'root'>): MethodDecorator;
|
|
43
|
+
export declare function styleShadow(selector: string, options?: Omit<StyleQueryOptions, 'root'>): MethodDecorator;
|
|
44
|
+
export declare function styleAll(selector: string, action?: StyleAction, options?: Omit<StyleQueryOptions, 'root'>): MethodDecorator;
|
|
45
|
+
export declare function styleAll(selector: string, options?: Omit<StyleQueryOptions, 'root'>): MethodDecorator;
|
|
31
46
|
export declare const findAllStyleMetadata: (target: any) => Map<string | symbol, StyleApplyMetadata>;
|
|
32
47
|
//# sourceMappingURL=applyStyle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyStyle.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyStyle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applyStyle.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyStyle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvG,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAGtD,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,gBAAgB,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAElD,MAAM,MAAM,eAAe,G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H,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,eAAe,CAAC;AAMzG,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,eAAe,CAAC;AAChI,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,eAAe,CAAC;AAM1G,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,eAAe,CAAC;AAC7H,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,eAAe,CAAC;AAOvG,eAAO,MAAM,oBAAoB,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CASzF,CAAC"}
|
|
@@ -8,11 +8,20 @@ export interface ChangedAttributeThisMetadata {
|
|
|
8
8
|
propertyKey: string | symbol;
|
|
9
9
|
options: ChangedAttributeThisOptions;
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* @changedAttributeThis decorator - fires when any attribute on $this changes
|
|
13
|
-
*/
|
|
14
11
|
export declare function changedAttribute(attributeName?: string, options?: ChangedAttributeThisOptions): MethodDecorator;
|
|
12
|
+
export declare function changedAttribute(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
15
13
|
export declare const getChangedAttributeMetadata: (target: any) => ChangedAttributeThisMetadata[] | undefined;
|
|
16
14
|
export declare const findAllAttributeChangedMetadata: (target: any) => Map<string, ChangedAttributeThisMetadata[]>;
|
|
17
15
|
export declare const convertAttributeValue: (val: any, type?: typeof Number | typeof Boolean | typeof String) => any;
|
|
16
|
+
import { ElementDefineLifeCycler, HelperHostSet } from '../types';
|
|
17
|
+
export declare class ChangedAttributeLifeCycler implements ElementDefineLifeCycler {
|
|
18
|
+
private attrChangeMap;
|
|
19
|
+
/** 클래스 메타데이터 기반 attrChangeMap 을 lazy 로드한다 (공유 시클러 캐시). */
|
|
20
|
+
private getAttrChangeMap;
|
|
21
|
+
/** observedAttributes 에 포함할 attribute 이름 목록 */
|
|
22
|
+
getObservedAttributeNames(inst: any): string[];
|
|
23
|
+
onConnected(helperHostSet: HelperHostSet): void;
|
|
24
|
+
/** attributeChangedCallback 에서 elementDefine 이 직접 호출 */
|
|
25
|
+
onAttributeChanged(helperHostSet: HelperHostSet, name: string, old: string | null, newVal: any): void;
|
|
26
|
+
}
|
|
18
27
|
//# sourceMappingURL=changedAttribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changedAttribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/changedAttribute.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iCAAiC,eAA0D,CAAC;AAEzG,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,EAAE,OAAO,MAAM,GAAG,OAAO,OAAO,GAAG,OAAO,MAAM,CAAC;IACtD,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,OAAO,EAAE,2BAA2B,CAAC;CACtC;
|
|
1
|
+
{"version":3,"file":"changedAttribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/changedAttribute.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iCAAiC,eAA0D,CAAC;AAEzG,MAAM,WAAW,2BAA2B;IAC1C,IAA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GAAG,IAAI;CAStG"}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
export declare const ELEMENT_CONFIG_KEY: unique symbol;
|
|
2
|
-
/** 바인딩된 이벤트 리스너 한 건 */
|
|
3
|
-
export interface BoundListener {
|
|
4
|
-
target: EventTarget;
|
|
5
|
-
type: string;
|
|
6
|
-
handler: EventListener;
|
|
7
|
-
options: AddEventListenerOptions;
|
|
8
|
-
onRemoves?: Array<{
|
|
9
|
-
fn: (target: EventTarget, optionValue: unknown) => void;
|
|
10
|
-
opts: unknown;
|
|
11
|
-
}>;
|
|
12
|
-
subscription?: {
|
|
13
|
-
unsubscribe: () => void;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
2
|
export interface ElementConfig {
|
|
17
3
|
extends?: string;
|
|
18
4
|
observedAttributes?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elementDefine.d.ts","sourceRoot":"","sources":["../../../src/decorators/elementDefine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"elementDefine.d.ts","sourceRoot":"","sources":["../../../src/decorators/elementDefine.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,kBAAkB,eAAoD,CAAC;AAEpF,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;CACzC;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,gBAAgB,GAAI,QAAQ,GAAG,KAAG,eAAe,GAAG,SAGhE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,GAAG,SA2FnC,CAAC;AA8MF,eAAO,MAAM,aAAa,GACvB,MAAM,MAAM,EAAE,SAAQ,OAAO,CAAC,aAAa,CAAM,KAAG,cA4dlD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { SwcQueryOptions, HelperHostSet } from '../types';
|
|
2
|
-
export type
|
|
1
|
+
import { SwcQueryOptions, SwcFnSelector, SwcSelector, HelperHostSet } from '../types';
|
|
2
|
+
export type EmitCustomEventFnSelector = SwcFnSelector;
|
|
3
|
+
export type EmitCustomEventSelector = SwcSelector;
|
|
3
4
|
export interface EmitCustomEventBaseOptions {
|
|
4
5
|
bubbles?: boolean;
|
|
5
6
|
composed?: boolean;
|
|
@@ -28,6 +29,11 @@ export interface EmitCustomEventBaseOptions {
|
|
|
28
29
|
type Options = (EmitCustomEventBaseOptions & SwcQueryOptions) | (EmitCustomEventBaseOptions & SwcQueryOptions & {
|
|
29
30
|
attributeName?: string;
|
|
30
31
|
});
|
|
32
|
+
export type EmitCustomEventQueryOptions = Options;
|
|
33
|
+
export type EmitCustomEventNonQueryOptions = EmitCustomEventBaseOptions | (EmitCustomEventBaseOptions & {
|
|
34
|
+
attributeName?: string;
|
|
35
|
+
});
|
|
36
|
+
export type EmitCustomEventOptionsOf<S extends EmitCustomEventSelector> = S extends string ? EmitCustomEventQueryOptions : EmitCustomEventNonQueryOptions;
|
|
31
37
|
export interface EmitCustomEventMetadata {
|
|
32
38
|
propertyKey: string | symbol;
|
|
33
39
|
selector: EmitCustomEventSelector;
|
|
@@ -35,10 +41,28 @@ export interface EmitCustomEventMetadata {
|
|
|
35
41
|
options: Options;
|
|
36
42
|
}
|
|
37
43
|
export declare const EMIT_CUSTOM_EVENT_METADATA_KEY: unique symbol;
|
|
44
|
+
export declare function emitCustomEvent(selector: string, type: string, options?: EmitCustomEventQueryOptions): MethodDecorator;
|
|
45
|
+
export declare function emitCustomEvent(selector: EmitCustomEventFnSelector, type: string, options?: EmitCustomEventNonQueryOptions): MethodDecorator;
|
|
46
|
+
export declare function emitCustomEvent(type: string, options?: EmitCustomEventQueryOptions): MethodDecorator;
|
|
38
47
|
export declare function emitCustomEvent(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
39
|
-
export declare function emitCustomEvent(selector: EmitCustomEventSelector, type: string, options?: Options): MethodDecorator;
|
|
40
|
-
export declare function emitCustomEvent(type: string, options?: Options): MethodDecorator;
|
|
41
48
|
export declare const getEmitCustomEventMetadataList: (target: any) => EmitCustomEventMetadata[] | undefined;
|
|
42
49
|
export declare const emit: typeof emitCustomEvent;
|
|
50
|
+
export declare function emitThis(type: string, options?: EmitCustomEventQueryOptions): MethodDecorator;
|
|
51
|
+
export declare function emitAppHost(type: string, options?: EmitCustomEventQueryOptions): MethodDecorator;
|
|
52
|
+
export declare function emitWindow(type: string, options?: EmitCustomEventQueryOptions): MethodDecorator;
|
|
53
|
+
export declare function emitDocument(type: string, options?: EmitCustomEventQueryOptions): MethodDecorator;
|
|
54
|
+
export declare function emitLight(selector: string, type: string, options?: Omit<EmitCustomEventQueryOptions, 'root'>): MethodDecorator;
|
|
55
|
+
export declare function emitShadow(selector: string, type: string, options?: Omit<EmitCustomEventQueryOptions, 'root'>): MethodDecorator;
|
|
56
|
+
export declare function emitAll(selector: string, type: string, options?: Omit<EmitCustomEventQueryOptions, 'root'>): MethodDecorator;
|
|
57
|
+
import { ElementDefineLifeCycler } from '../types';
|
|
58
|
+
export declare class EmitCustomEventLifeCycler implements ElementDefineLifeCycler {
|
|
59
|
+
private hostEmitMeta;
|
|
60
|
+
private getHostEmitMeta;
|
|
61
|
+
/** observedAttributes 에 포함할 attributeName 목록 */
|
|
62
|
+
getObservedAttributeNames(inst: any): string[];
|
|
63
|
+
onConnected(_helperHostSet: HelperHostSet): void;
|
|
64
|
+
/** attributeChangedCallback 에서 elementDefine 이 직접 호출 */
|
|
65
|
+
onAttributeChanged(helperHostSet: HelperHostSet, name: string, _old: string | null, newVal: string | null): void;
|
|
66
|
+
}
|
|
43
67
|
export {};
|
|
44
68
|
//# sourceMappingURL=emitCustomEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitCustomEvent.d.ts","sourceRoot":"","sources":["../../../src/decorators/emitCustomEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"emitCustomEvent.d.ts","sourceRoot":"","sources":["../../../src/decorators/emitCustomEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIvG,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC;AACtD,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC;AAElD,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;QAAE,WAAW,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,aAAa,CAAA;KAAE,KAAK,OAAO,CAAC;IAC1G;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,KAAK,OAAO,GAAG,CAAC,0BAA0B,GAAG,eAAe,CAAC,GAAG,CAAC,0BAA0B,GAAG,eAAe,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAG5I,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC;AAElD,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,GAAG,CAAC,0BAA0B,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,CAA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E/F;AACD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,eAAe,CAEjG;AACD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,2BAA2B,EAAE,MAAM,CAAC,GAAG,eAAe,CAE9H;AACD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,2BAA2B,EAAE,MAAM,CAAC,GAAG,eAAe,CAE/H;AACD,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,2BAA2B,EAAE,MAAM,CAAC,GAAG,eAAe,CAE5H;AAKD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,qBAAa,yBAA0B,YAAW,uBAAuB;IACvE,OAAO,CAAC,YAAY,CAA0C;IAE9D,OAAO,CAAC,eAAe;IAQvB,gDAAgD;IAChD,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,EAAE;IAI9C,WAAW,CAAC,cAAc,EAAE,aAAa,GAAG,IAAI;IAIhD,wDAAwD;IACxD,kBAAkB,CAAC,aAAa,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;CAOjH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ElementDefineLifeCycler, HelperHostSet } from '../types';
|
|
2
|
+
export declare const EVENT_MEDIA_METADATA_KEY: unique symbol;
|
|
3
|
+
export interface EventMediaMetadata {
|
|
4
|
+
propertyKey: string | symbol;
|
|
5
|
+
query: string;
|
|
6
|
+
eventType: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* CSS 미디어쿼리(`window.matchMedia`) 상태 변화를 감지한다.
|
|
10
|
+
* connect 시 자동으로 구독하고, disconnect 시 자동으로 해제한다.
|
|
11
|
+
*
|
|
12
|
+
* MediaQueryList는 스펙상 'change' 이벤트 하나만 정의돼있다 — eventType은 그래도 명시적으로 받는다
|
|
13
|
+
* (다른 @event* 계열처럼 베이스는 명시적, 편의 별칭이 값을 고정하는 컨벤션을 따름). 'change' 고정 버전은
|
|
14
|
+
* eventMediaChange를 사용한다.
|
|
15
|
+
*/
|
|
16
|
+
export declare function eventMedia(query: string, eventType: string): MethodDecorator;
|
|
17
|
+
/** eventMedia(query, 'change')의 별칭 - MediaQueryList가 실제로 발생시키는 유일한 이벤트. */
|
|
18
|
+
export declare function eventMediaChange(query: string): MethodDecorator;
|
|
19
|
+
export declare const findAllEventMediaMetadata: (target: any) => EventMediaMetadata[];
|
|
20
|
+
export declare class EventMediaLifeCycler implements ElementDefineLifeCycler {
|
|
21
|
+
private readonly entriesMap;
|
|
22
|
+
onConnected(helperHostSet: HelperHostSet): void;
|
|
23
|
+
onDisconnected(helperHostSet: HelperHostSet): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=eventMedia.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventMedia.d.ts","sourceRoot":"","sources":["../../../src/decorators/eventMedia.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGlE,eAAO,MAAM,wBAAwB,eAAiD,CAAC;AAEvF,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,eAAe,CAU5E;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAE/D;AAED,eAAO,MAAM,yBAAyB,GAAI,QAAQ,GAAG,KAAG,kBAAkB,EAGzE,CAAC;AAEF,qBAAa,oBAAqB,YAAW,uBAAuB;IAClE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsG;IAEjI,WAAW,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI;IAqB/C,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI;CAWnD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './addEventListener';
|
|
2
2
|
export * from './mutationObserver';
|
|
3
3
|
export * from './resizeObserver';
|
|
4
|
+
export * from './intersectionObserver';
|
|
4
5
|
export * from './applyAttribute';
|
|
5
6
|
export * from './elementDefine';
|
|
6
7
|
export * from './changedAttribute';
|
|
@@ -8,7 +9,6 @@ export * from './emitCustomEvent';
|
|
|
8
9
|
export * from './applyNode';
|
|
9
10
|
export * from './lifecycles';
|
|
10
11
|
export * from './query';
|
|
11
|
-
export * from './queryAll';
|
|
12
12
|
export * from './applyClass';
|
|
13
13
|
export * from './applyStyle';
|
|
14
14
|
export * from './applyAttribute';
|
|
@@ -18,4 +18,9 @@ export * from './subscribeSwcAppMessageWhileConnected';
|
|
|
18
18
|
export * from './publishSwcAppMessage';
|
|
19
19
|
export * from './applySlot';
|
|
20
20
|
export * from './state';
|
|
21
|
+
export * from './setInterval';
|
|
22
|
+
export * from './setTimeout';
|
|
23
|
+
export * from './requestAnimationFrame';
|
|
24
|
+
export * from './eventMedia';
|
|
25
|
+
export * from './parameter';
|
|
21
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { SpecialSelector, SwcQueryOptions, SwcFnSelector, SwcSelector, HelperHostSet } from '../types';
|
|
2
|
+
export interface IntersectionObserverBaseOptions extends Omit<IntersectionObserverInit, 'root'> {
|
|
3
|
+
/** IntersectionObserver 의 스크롤 컨테이너 (viewport 대신). 데코레이터 root 와 혼동 주의. */
|
|
4
|
+
intersectionRoot?: Element | Document;
|
|
5
|
+
filter?: (matchedEls: HTMLElement[], meta: {
|
|
6
|
+
currentThis: any;
|
|
7
|
+
helper: HelperHostSet;
|
|
8
|
+
}) => boolean;
|
|
9
|
+
removeObserver?: (target: Element, optionValue: IntersectionObserverQueryOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export type IntersectionObserverQueryOptions = IntersectionObserverBaseOptions & SwcQueryOptions & {
|
|
12
|
+
delegate?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type IntersectionObserverNonQueryOptions = IntersectionObserverBaseOptions;
|
|
15
|
+
export type IntersectionObserverOptions = IntersectionObserverQueryOptions;
|
|
16
|
+
export type IntersectionObserverOptionsOf<S extends SwcSelector> = S extends string ? IntersectionObserverQueryOptions : IntersectionObserverNonQueryOptions;
|
|
17
|
+
export interface IntersectionObserverMetadata {
|
|
18
|
+
propertyKey: string | symbol;
|
|
19
|
+
selector: SwcSelector;
|
|
20
|
+
options: IntersectionObserverOptions;
|
|
21
|
+
}
|
|
22
|
+
export declare const INTERSECTION_OBSERVER_METADATA_KEY: unique symbol;
|
|
23
|
+
export declare function intersectionObserver(target: SpecialSelector, options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
24
|
+
export declare function intersectionObserver(selector: string, options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
25
|
+
export declare function intersectionObserver(selector: SwcFnSelector, options?: IntersectionObserverNonQueryOptions): MethodDecorator;
|
|
26
|
+
export declare function intersectionObserver(options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
27
|
+
export declare function intersectionObserver(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
28
|
+
export declare function intersectionObserverThis(options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
29
|
+
export declare function intersectionObserverThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
30
|
+
export declare function intersectionObserverDelegateLight(selector: string, options?: Omit<IntersectionObserverQueryOptions, 'delegate'>): MethodDecorator;
|
|
31
|
+
export declare function intersectionObserverDelegateLight(options?: Omit<IntersectionObserverQueryOptions, 'delegate'>): MethodDecorator;
|
|
32
|
+
export declare function intersectionObserverDelegateLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
33
|
+
export declare function intersectionObserverDelegateShadow(selector: string, options?: Omit<IntersectionObserverQueryOptions, 'delegate'>): MethodDecorator;
|
|
34
|
+
export declare function intersectionObserverDelegateShadow(options?: Omit<IntersectionObserverQueryOptions, 'delegate'>): MethodDecorator;
|
|
35
|
+
export declare function intersectionObserverDelegateShadow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
36
|
+
export declare function intersectionObserverDelegateAll(selector: string, options?: Omit<IntersectionObserverQueryOptions, 'delegate'>): MethodDecorator;
|
|
37
|
+
export declare function intersectionObserverDelegateAll(options?: Omit<IntersectionObserverQueryOptions, 'delegate'>): MethodDecorator;
|
|
38
|
+
export declare function intersectionObserverDelegateAll(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
39
|
+
export declare function intersectionObserverDelegate(selector: string, options?: Omit<IntersectionObserverQueryOptions, 'delegate'>): MethodDecorator;
|
|
40
|
+
export declare function intersectionObserverDelegate(options?: Omit<IntersectionObserverQueryOptions, 'delegate'>): MethodDecorator;
|
|
41
|
+
export declare function intersectionObserverDelegate(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
42
|
+
export declare function intersectionObserverLight(selector: string, options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
43
|
+
export declare function intersectionObserverLight(options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
44
|
+
export declare function intersectionObserverLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
45
|
+
export declare function intersectionObserverShadow(selector: string, options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
46
|
+
export declare function intersectionObserverShadow(options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
47
|
+
export declare function intersectionObserverShadow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
48
|
+
export declare function intersectionObserverAll(selector: string, options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
49
|
+
export declare function intersectionObserverAll(options?: IntersectionObserverQueryOptions): MethodDecorator;
|
|
50
|
+
export declare function intersectionObserverAll(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
51
|
+
export declare function getIntersectionObserverMetadata(target: any): IntersectionObserverMetadata[] | undefined;
|
|
52
|
+
import { ElementDefineLifeCycler, OnConnectedResult } from '../types';
|
|
53
|
+
export declare class IntersectionObserverLifeCycler implements ElementDefineLifeCycler {
|
|
54
|
+
private readonly removeObserverCallbacksMap;
|
|
55
|
+
onConnected(helperHostSet: HelperHostSet): OnConnectedResult | void;
|
|
56
|
+
onDisconnected(helperHostSet: HelperHostSet): void;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=intersectionObserver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intersectionObserver.d.ts","sourceRoot":"","sources":["../../../src/decorators/intersectionObserver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKvG,MAAM,WAAW,+BAAgC,SAAQ,IAAI,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAC7F,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACtC,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE;QAAE,WAAW,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,aAAa,CAAA;KAAE,KAAK,OAAO,CAAC;IACnG,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,gCAAgC,KAAK,IAAI,CAAC;CAC3F;AAGD,MAAM,MAAM,gCAAgC,GAAG,+BAA+B,GAAG,eAAe,GAAG;IAAE,QAAQ,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,CAAC,0BAA0B,CAA+G;IAE1J,WAAW,CAAC,aAAa,EAAE,aAAa,GAAG,iBAAiB,GAAG,IAAI;IAkGnE,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI;CAOnD"}
|
|
@@ -1,36 +1,55 @@
|
|
|
1
|
-
import { SpecialSelector, SwcQueryOptions, HelperHostSet } from '../types';
|
|
2
|
-
|
|
3
|
-
export interface MutationObserverBaseOptions extends MutationObserverInit, SwcQueryOptions {
|
|
4
|
-
delegate?: boolean;
|
|
1
|
+
import { SpecialSelector, SwcQueryOptions, SwcSelector, SwcFnSelector, HelperHostSet } from '../types';
|
|
2
|
+
export interface MutationObserverBaseOptions extends MutationObserverInit {
|
|
5
3
|
filter?: (matchedEls: HTMLElement[], meta: {
|
|
6
4
|
currentThis: any;
|
|
7
5
|
helper: HelperHostSet;
|
|
8
6
|
}) => boolean;
|
|
9
|
-
removeObserver?: (target: Element, optionValue:
|
|
7
|
+
removeObserver?: (target: Element, optionValue: MutationObserverQueryOptions) => void;
|
|
10
8
|
}
|
|
9
|
+
export type MutationObserverQueryOptions = MutationObserverBaseOptions & SwcQueryOptions & {
|
|
10
|
+
delegate?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type MutationObserverNonQueryOptions = MutationObserverBaseOptions;
|
|
13
|
+
export type MutationObserverOptionsOf<S extends SwcSelector> = S extends string ? MutationObserverQueryOptions : MutationObserverNonQueryOptions;
|
|
11
14
|
export interface MutationObserverMetadata {
|
|
12
15
|
propertyKey: string | symbol;
|
|
13
|
-
selector:
|
|
14
|
-
options:
|
|
16
|
+
selector: SwcSelector;
|
|
17
|
+
options: MutationObserverQueryOptions;
|
|
15
18
|
}
|
|
16
19
|
export declare const MUTATION_OBSERVER_METADATA_KEY: unique symbol;
|
|
17
|
-
export declare function mutationObserver(target: SpecialSelector, options?:
|
|
18
|
-
export declare function mutationObserver(selector:
|
|
19
|
-
export declare function mutationObserver(options?:
|
|
20
|
-
export declare function
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
26
|
-
export declare function
|
|
27
|
-
export declare function
|
|
28
|
-
export declare function
|
|
29
|
-
export declare function
|
|
30
|
-
export declare function
|
|
31
|
-
export declare function
|
|
32
|
-
export declare function
|
|
33
|
-
export declare function
|
|
34
|
-
export declare function
|
|
20
|
+
export declare function mutationObserver(target: SpecialSelector, options?: MutationObserverQueryOptions): MethodDecorator;
|
|
21
|
+
export declare function mutationObserver(selector: string, options?: MutationObserverQueryOptions): MethodDecorator;
|
|
22
|
+
export declare function mutationObserver(selector: SwcFnSelector, options?: MutationObserverNonQueryOptions): MethodDecorator;
|
|
23
|
+
export declare function mutationObserver(options?: MutationObserverQueryOptions): MethodDecorator;
|
|
24
|
+
export declare function mutationObserver(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
25
|
+
export declare function mutationObserverThis(options?: MutationObserverQueryOptions): MethodDecorator;
|
|
26
|
+
export declare function mutationObserverThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
27
|
+
export declare function mutationObserverDelegateLight(selector: string, options?: MutationObserverBaseOptions): MethodDecorator;
|
|
28
|
+
export declare function mutationObserverDelegateLight(options?: MutationObserverBaseOptions): MethodDecorator;
|
|
29
|
+
export declare function mutationObserverDelegateLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
30
|
+
export declare function mutationObserverDelegateShadow(selector: string, options?: MutationObserverBaseOptions): MethodDecorator;
|
|
31
|
+
export declare function mutationObserverDelegateShadow(options?: MutationObserverBaseOptions): MethodDecorator;
|
|
32
|
+
export declare function mutationObserverDelegateShadow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
33
|
+
export declare function mutationObserverDelegateAll(selector: string, options?: MutationObserverBaseOptions): MethodDecorator;
|
|
34
|
+
export declare function mutationObserverDelegateAll(options?: MutationObserverBaseOptions): MethodDecorator;
|
|
35
|
+
export declare function mutationObserverDelegateAll(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
36
|
+
export declare function mutationObserverDelegate(selector: string, options?: MutationObserverBaseOptions): MethodDecorator;
|
|
37
|
+
export declare function mutationObserverDelegate(options?: MutationObserverBaseOptions): MethodDecorator;
|
|
38
|
+
export declare function mutationObserverDelegate(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
39
|
+
export declare function mutationObserverLight(selector: string, options?: Omit<MutationObserverQueryOptions, 'root'>): MethodDecorator;
|
|
40
|
+
export declare function mutationObserverLight(options?: Omit<MutationObserverQueryOptions, 'root'>): MethodDecorator;
|
|
41
|
+
export declare function mutationObserverLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
42
|
+
export declare function mutationObserverShadow(selector: string, options?: Omit<MutationObserverQueryOptions, 'root'>): MethodDecorator;
|
|
43
|
+
export declare function mutationObserverShadow(options?: Omit<MutationObserverQueryOptions, 'root'>): MethodDecorator;
|
|
44
|
+
export declare function mutationObserverShadow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
45
|
+
export declare function mutationObserverAll(selector: string, options?: Omit<MutationObserverQueryOptions, 'root'>): MethodDecorator;
|
|
46
|
+
export declare function mutationObserverAll(options?: Omit<MutationObserverQueryOptions, 'root'>): MethodDecorator;
|
|
47
|
+
export declare function mutationObserverAll(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
35
48
|
export declare function getMutationObserverMetadata(target: any): MutationObserverMetadata[] | undefined;
|
|
49
|
+
import { ElementDefineLifeCycler, OnConnectedResult } from '../types';
|
|
50
|
+
export declare class MutationObserverLifeCycler implements ElementDefineLifeCycler {
|
|
51
|
+
private readonly removeObserverCallbacksMap;
|
|
52
|
+
onConnected(helperHostSet: HelperHostSet): OnConnectedResult | void;
|
|
53
|
+
onDisconnected(helperHostSet: HelperHostSet): void;
|
|
54
|
+
}
|
|
36
55
|
//# sourceMappingURL=mutationObserver.d.ts.map
|