@dooboostore/simple-web-component 1.0.34 → 1.0.36
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 +44 -51
- package/dist/cjs/decorators/addEventListener.js +12 -4
- package/dist/cjs/decorators/addEventListener.js.map +2 -2
- package/dist/cjs/decorators/applyAttribute.js +19 -18
- package/dist/cjs/decorators/applyAttribute.js.map +2 -2
- package/dist/cjs/decorators/applyClass.js +23 -22
- package/dist/cjs/decorators/applyClass.js.map +2 -2
- package/dist/cjs/decorators/applyNode.js +22 -17
- package/dist/cjs/decorators/applyNode.js.map +2 -2
- package/dist/cjs/decorators/applyStyle.js +20 -19
- package/dist/cjs/decorators/applyStyle.js.map +2 -2
- package/dist/cjs/decorators/attribute.js +17 -16
- package/dist/cjs/decorators/attribute.js.map +2 -2
- package/dist/cjs/decorators/{changedAttributeHost.js → changedAttributeThis.js} +6 -6
- package/dist/cjs/decorators/changedAttributeThis.js.map +7 -0
- package/dist/cjs/decorators/elementDefine.js +234 -188
- package/dist/cjs/decorators/elementDefine.js.map +2 -2
- package/dist/cjs/decorators/emitCustomEvent.js +24 -16
- package/dist/cjs/decorators/emitCustomEvent.js.map +2 -2
- package/dist/cjs/decorators/index.js +1 -1
- package/dist/cjs/decorators/index.js.map +1 -1
- package/dist/cjs/decorators/lifecycles.js +15 -17
- package/dist/cjs/decorators/lifecycles.js.map +2 -2
- package/dist/cjs/decorators/query.js +38 -60
- package/dist/cjs/decorators/query.js.map +2 -2
- package/dist/cjs/decorators/queryAll.js +31 -63
- package/dist/cjs/decorators/queryAll.js.map +2 -2
- package/dist/cjs/decorators/setProperty.js +13 -12
- package/dist/cjs/decorators/setProperty.js.map +2 -2
- package/dist/cjs/decorators/subscribeSwcAppRouteChangeWhileConnected.js +2 -2
- package/dist/cjs/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +2 -2
- package/dist/cjs/elements/SwcAppEngine.js +8 -2
- package/dist/cjs/elements/SwcAppEngine.js.map +2 -2
- package/dist/cjs/elements/SwcAppMixin.js +120 -65
- package/dist/cjs/elements/SwcAppMixin.js.map +2 -2
- package/dist/cjs/elements/SwcAsync.js +31 -21
- package/dist/cjs/elements/SwcAsync.js.map +2 -2
- package/dist/cjs/elements/SwcChoose.js +53 -34
- package/dist/cjs/elements/SwcChoose.js.map +2 -2
- package/dist/cjs/elements/SwcIf.js +54 -32
- package/dist/cjs/elements/SwcIf.js.map +2 -2
- package/dist/cjs/elements/SwcLoop.js +111 -37
- package/dist/cjs/elements/SwcLoop.js.map +2 -2
- package/dist/cjs/elements/register.js +249 -122
- package/dist/cjs/elements/register.js.map +2 -2
- package/dist/cjs/router/ElementRouter.js +4 -2
- package/dist/cjs/router/ElementRouter.js.map +1 -1
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/utils/Utils.js +31 -17
- package/dist/cjs/utils/Utils.js.map +2 -2
- package/dist/esm/decorators/addEventListener.js +12 -4
- package/dist/esm/decorators/addEventListener.js.map +2 -2
- package/dist/esm/decorators/applyAttribute.js +19 -18
- package/dist/esm/decorators/applyAttribute.js.map +2 -2
- package/dist/esm/decorators/applyClass.js +23 -22
- package/dist/esm/decorators/applyClass.js.map +2 -2
- package/dist/esm/decorators/applyNode.js +22 -17
- package/dist/esm/decorators/applyNode.js.map +2 -2
- package/dist/esm/decorators/applyStyle.js +20 -19
- package/dist/esm/decorators/applyStyle.js.map +2 -2
- package/dist/esm/decorators/attribute.js +17 -16
- package/dist/esm/decorators/attribute.js.map +2 -2
- package/dist/esm/decorators/{changedAttributeHost.js → changedAttributeThis.js} +3 -3
- package/dist/esm/decorators/changedAttributeThis.js.map +7 -0
- package/dist/esm/decorators/elementDefine.js +233 -187
- package/dist/esm/decorators/elementDefine.js.map +2 -2
- package/dist/esm/decorators/emitCustomEvent.js +24 -16
- package/dist/esm/decorators/emitCustomEvent.js.map +2 -2
- package/dist/esm/decorators/index.js +1 -1
- package/dist/esm/decorators/index.js.map +1 -1
- package/dist/esm/decorators/lifecycles.js +15 -17
- package/dist/esm/decorators/lifecycles.js.map +2 -2
- package/dist/esm/decorators/query.js +38 -60
- package/dist/esm/decorators/query.js.map +2 -2
- package/dist/esm/decorators/queryAll.js +31 -63
- package/dist/esm/decorators/queryAll.js.map +2 -2
- package/dist/esm/decorators/setProperty.js +13 -12
- package/dist/esm/decorators/setProperty.js.map +2 -2
- package/dist/esm/decorators/subscribeSwcAppRouteChangeWhileConnected.js +2 -2
- package/dist/esm/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +2 -2
- package/dist/esm/elements/SwcAppEngine.js +9 -2
- package/dist/esm/elements/SwcAppEngine.js.map +2 -2
- package/dist/esm/elements/SwcAppMixin.js +122 -66
- package/dist/esm/elements/SwcAppMixin.js.map +2 -2
- package/dist/esm/elements/SwcAsync.js +32 -22
- package/dist/esm/elements/SwcAsync.js.map +2 -2
- package/dist/esm/elements/SwcChoose.js +54 -35
- package/dist/esm/elements/SwcChoose.js.map +2 -2
- package/dist/esm/elements/SwcIf.js +55 -33
- package/dist/esm/elements/SwcIf.js.map +2 -2
- package/dist/esm/elements/SwcLoop.js +112 -38
- package/dist/esm/elements/SwcLoop.js.map +2 -2
- package/dist/esm/elements/register.js +250 -123
- package/dist/esm/elements/register.js.map +2 -2
- package/dist/esm/router/ElementRouter.js +5 -2
- package/dist/esm/router/ElementRouter.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/utils/Utils.js +31 -17
- package/dist/esm/utils/Utils.js.map +2 -2
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +563 -557
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
- package/dist/types/decorators/addEventListener.d.ts +5 -7
- package/dist/types/decorators/addEventListener.d.ts.map +1 -1
- package/dist/types/decorators/applyAttribute.d.ts +4 -4
- package/dist/types/decorators/applyAttribute.d.ts.map +1 -1
- package/dist/types/decorators/applyClass.d.ts +6 -6
- package/dist/types/decorators/applyClass.d.ts.map +1 -1
- package/dist/types/decorators/applyNode.d.ts +7 -6
- package/dist/types/decorators/applyNode.d.ts.map +1 -1
- package/dist/types/decorators/applyStyle.d.ts +4 -4
- package/dist/types/decorators/applyStyle.d.ts.map +1 -1
- package/dist/types/decorators/attribute.d.ts +5 -5
- package/dist/types/decorators/attribute.d.ts.map +1 -1
- package/dist/types/decorators/changedAttributeThis.d.ts +18 -0
- package/dist/types/decorators/changedAttributeThis.d.ts.map +1 -0
- package/dist/types/decorators/elementDefine.d.ts.map +1 -1
- package/dist/types/decorators/emitCustomEvent.d.ts +11 -12
- package/dist/types/decorators/emitCustomEvent.d.ts.map +1 -1
- package/dist/types/decorators/index.d.ts +1 -1
- package/dist/types/decorators/lifecycles.d.ts +10 -7
- package/dist/types/decorators/lifecycles.d.ts.map +1 -1
- package/dist/types/decorators/query.d.ts +17 -63
- package/dist/types/decorators/query.d.ts.map +1 -1
- package/dist/types/decorators/queryAll.d.ts +6 -63
- package/dist/types/decorators/queryAll.d.ts.map +1 -1
- package/dist/types/decorators/setProperty.d.ts +1 -1
- package/dist/types/decorators/setProperty.d.ts.map +1 -1
- package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts +4 -5
- package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts.map +1 -1
- package/dist/types/elements/SwcAppEngine.d.ts +4 -1
- package/dist/types/elements/SwcAppEngine.d.ts.map +1 -1
- package/dist/types/elements/SwcAppMixin.d.ts +11 -8
- package/dist/types/elements/SwcAppMixin.d.ts.map +1 -1
- package/dist/types/elements/register.d.ts.map +1 -1
- package/dist/types/types.d.ts +3 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/Utils.d.ts +11 -8
- package/dist/types/utils/Utils.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +563 -557
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
- package/package.json +3 -3
- package/src/decorators/addEventListener.ts +11 -9
- package/src/decorators/applyAttribute.ts +16 -15
- package/src/decorators/applyClass.ts +18 -17
- package/src/decorators/applyNode.ts +34 -21
- package/src/decorators/applyStyle.ts +17 -16
- package/src/decorators/attribute.ts +21 -20
- package/src/decorators/{changedAttributeHost.ts → changedAttributeThis.ts} +13 -14
- package/src/decorators/elementDefine.ts +402 -358
- package/src/decorators/emitCustomEvent.ts +40 -31
- package/src/decorators/index.ts +1 -1
- package/src/decorators/lifecycles.ts +11 -10
- package/src/decorators/query.ts +51 -124
- package/src/decorators/queryAll.ts +30 -127
- package/src/decorators/setProperty.ts +12 -11
- package/src/decorators/subscribeSwcAppRouteChangeWhileConnected.ts +10 -10
- package/src/elements/SwcAppEngine.ts +10 -3
- package/src/elements/SwcAppMixin.ts +177 -97
- package/src/elements/SwcAsync.ts +32 -21
- package/src/elements/SwcChoose.ts +74 -37
- package/src/elements/SwcIf.ts +60 -23
- package/src/elements/SwcLoop.ts +141 -28
- package/src/elements/register.ts +300 -102
- package/src/types.ts +6 -5
- package/src/utils/Utils.ts +40 -23
- package/tsconfig.json +2 -2
- package/dist/cjs/decorators/changedAttributeHost.js.map +0 -7
- package/dist/esm/decorators/changedAttributeHost.js.map +0 -7
- package/dist/types/decorators/changedAttributeHost.d.ts +0 -19
- package/dist/types/decorators/changedAttributeHost.d.ts.map +0 -1
|
@@ -28,15 +28,13 @@ export declare function addEventListener(selector: string, type: string, options
|
|
|
28
28
|
}): MethodDecorator;
|
|
29
29
|
export declare const getAddEventListenerMetadata: (target: any) => AddEventListenerMetadata[] | undefined;
|
|
30
30
|
/**
|
|
31
|
-
* @
|
|
32
|
-
* Usage: @addEventListenerHost('click')
|
|
33
|
-
* Usage: @addEventListenerHost('click', { stopPropagation: true })
|
|
31
|
+
* @addEventListenerThis decorator - simplified version of @addEventListener for $this selector
|
|
34
32
|
*/
|
|
35
|
-
export declare function
|
|
33
|
+
export declare function addEventListenerThis(type: string, options?: AddEventListenerBaseOptions & SwcQueryOptions): MethodDecorator;
|
|
36
34
|
/**
|
|
37
|
-
* @addEventListenerAppHost decorator - simplified version of @addEventListener for
|
|
38
|
-
* Usage: @addEventListenerAppHost('click')
|
|
39
|
-
* Usage: @addEventListenerAppHost('click', { stopPropagation: true })
|
|
35
|
+
* @addEventListenerAppHost decorator - simplified version of @addEventListener for $appHost selector
|
|
40
36
|
*/
|
|
41
37
|
export declare function addEventListenerAppHost(type: string, options?: AddEventListenerBaseOptions & SwcQueryOptions): MethodDecorator;
|
|
38
|
+
export declare function addEventListenerWindow(type: string, options?: AddEventListenerBaseOptions & SwcQueryOptions): MethodDecorator;
|
|
39
|
+
export declare function addEventListenerDocument(type: string, options?: AddEventListenerBaseOptions & SwcQueryOptions): MethodDecorator;
|
|
42
40
|
//# 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;AAE3E,MAAM,WAAW,2BAA4B,SAAQ,oBAAoB;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,GAAG,WAAW,EAAE,IAAI,EAAC;QAAC,WAAW,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,aAAa,CAAA;KAAC,KAAK,OAAO,CAAC;CACnG;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;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declare const setAttribute: (selector: string, nameOrOptions?: string | AttributeApplyOptions, options?: AttributeApplyOptions) => MethodDecorator;
|
|
19
19
|
export declare const updateAttribute: (selector: string, nameOrOptions?: string | AttributeApplyOptions, options?: AttributeApplyOptions) => MethodDecorator;
|
|
20
20
|
export declare const removeAttribute: (selector: string, nameOrOptions?: string | AttributeApplyOptions, options?: AttributeApplyOptions) => MethodDecorator;
|
|
21
|
-
export declare function
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
21
|
+
export declare function applyAttributeThis(action?: AttributeAction, options?: AttributeApplyOptions): MethodDecorator;
|
|
22
|
+
export declare const setAttributeThis: (nameOrOptions: string | AttributeApplyOptions, options?: AttributeApplyOptions) => MethodDecorator;
|
|
23
|
+
export declare const updateAttributeThis: (nameOrOptions: string | AttributeApplyOptions, options?: AttributeApplyOptions) => MethodDecorator;
|
|
24
|
+
export declare const removeAttributeThis: (nameOrOptions?: string | AttributeApplyOptions, options?: AttributeApplyOptions) => MethodDecorator;
|
|
25
25
|
export declare const findAllAttributeApplyMetadata: (target: any) => Map<string | symbol, AttributeApplyMetadata>;
|
|
26
26
|
//# sourceMappingURL=applyAttribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyAttribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyAttribute.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE1D,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,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,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BAA0B,oBAAyE,CAAC;AAC/M,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,gBAAgB,MAAM,GAAG,qBAAqB,EAAE,UAAS,qBAA0B,oBAAyE,CAAC;AAG/M,wBAAgB,kBAAkB,CAAC,MAAM,GAAE,eAA0B,EAAE,OAAO,GAAE,qBAA0B,GAAG,eAAe,CAE3H;AACD,eAAO,MAAM,gBAAgB,GAAI,eAAe,MAAM,GAAG,qBAAqB,EAAE,UAAS,qBAA0B,oBAAqE,CAAC;AACzL,eAAO,MAAM,mBAAmB,GAAI,eAAe,MAAM,GAAG,qBAAqB,EAAE,UAAS,qBAA0B,oBAAwE,CAAC;AAC/L,eAAO,MAAM,mBAAmB,GAAI,gBAAgB,MAAM,GAAG,qBAAqB,EAAE,UAAS,qBAA0B,oBAAwE,CAAC;AAEhM,eAAO,MAAM,6BAA6B,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,sBAAsB,CAStG,CAAC"}
|
|
@@ -39,28 +39,28 @@ export declare const toggleClass: (selector: string, classMapOrOptions?: string
|
|
|
39
39
|
$this: any;
|
|
40
40
|
}) => boolean;
|
|
41
41
|
} | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
|
|
42
|
-
export declare function
|
|
43
|
-
export declare const
|
|
42
|
+
export declare function applyClassThis(action?: ClassAction, options?: ClassApplyOptions): MethodDecorator;
|
|
43
|
+
export declare const setClassThis: (classMapOrOptions?: string | {
|
|
44
44
|
[className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
|
|
45
45
|
$this: any;
|
|
46
46
|
}) => boolean;
|
|
47
47
|
} | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
|
|
48
|
-
export declare const
|
|
48
|
+
export declare const updateClassThis: (classMapOrOptions?: string | {
|
|
49
49
|
[className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
|
|
50
50
|
$this: any;
|
|
51
51
|
}) => boolean;
|
|
52
52
|
} | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const addClassThis: (classMapOrOptions?: string | {
|
|
54
54
|
[className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
|
|
55
55
|
$this: any;
|
|
56
56
|
}) => boolean;
|
|
57
57
|
} | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
|
|
58
|
-
export declare const
|
|
58
|
+
export declare const removeClassThis: (classMapOrOptions?: string | {
|
|
59
59
|
[className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
|
|
60
60
|
$this: any;
|
|
61
61
|
}) => boolean;
|
|
62
62
|
} | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
|
|
63
|
-
export declare const
|
|
63
|
+
export declare const toggleClassThis: (classMapOrOptions?: string | {
|
|
64
64
|
[className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
|
|
65
65
|
$this: any;
|
|
66
66
|
}) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyClass.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyClass.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,eAAO,MAAM,kBAAkB,eAA2C,CAAC;AAE3E,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEzE,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,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;CACxG;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAA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E,KAAK,EAAE,GAAG,CAAA;KAAE,KAAK,OAAO,CAAA;CAAE,GAAG,iBAAiB,EAAE,UAAS,iBAAsB,oBAAwE,CAAC;AAEpS,eAAO,MAAM,oBAAoB,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CASzF,CAAC"}
|
|
@@ -27,12 +27,13 @@ export declare const APPLY_NODE_METADATA_KEY: unique symbol;
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function applyNode(selector: string, options?: ApplyNodeOptions): MethodDecorator;
|
|
29
29
|
export declare const findAllApplyNodeMetadata: (target: any) => Map<string | symbol, ApplyNodeMetadata>;
|
|
30
|
-
export declare function
|
|
31
|
-
export declare function
|
|
32
|
-
export declare function
|
|
33
|
-
export declare function
|
|
34
|
-
export declare function
|
|
35
|
-
export declare function
|
|
30
|
+
export declare function applyNodeThis(options: ApplyNodeOptions): MethodDecorator;
|
|
31
|
+
export declare function applyNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
32
|
+
export declare function applyReplaceChildrenNodeThis(options: ApplyNodeOptions): MethodDecorator;
|
|
33
|
+
export declare function applyReplaceChildrenNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
34
|
+
export declare function applyInnerHtmlNodeThis(options: ApplyNodeOptions): MethodDecorator;
|
|
35
|
+
export declare function applyInnerHtmlNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
36
36
|
export declare function applyReplaceChildrenNode(selector: string, options?: ApplyNodeOptions): MethodDecorator;
|
|
37
37
|
export declare function applyInnerHtmlNode(selector: string, options?: ApplyNodeOptions): MethodDecorator;
|
|
38
|
+
export declare function applyInnerTextNode(selector: string, options?: ApplyNodeOptions): MethodDecorator;
|
|
38
39
|
//# sourceMappingURL=applyNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyNode.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyNode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applyNode.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyNode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAWtD,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,iBAAiB,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE/J,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAC;QAAC,WAAW,EAAE,GAAG,CAAC;QAAA,MAAM,EAAE,aAAa,CAAA;KAAC,KAAK,OAAO,CAAC;IACrH;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,GAAG,CAAC;CAC1C;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,eAAO,MAAM,uBAAuB,eAAgD,CAAC;AAuCrF;;GAEG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,gBAA4C,GAAG,eAAe,CAsElH;AAED,eAAO,MAAM,wBAAwB,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,iBAAiB,CAS5F,CAAC;AAEF,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAAC;AAC1E,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;AAOlH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAAC;AACzF,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;AAOjI,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAAC;AACnF,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;AAO3H,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB,GAAG,eAAe,CAE1G;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB,GAAG,eAAe,CAEpG;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB,GAAG,eAAe,CAEpG"}
|
|
@@ -17,9 +17,9 @@ export declare function applyStyle(selector: string, action?: StyleAction, optio
|
|
|
17
17
|
export declare const setStyle: (selector: string, options?: StyleApplyOptions) => MethodDecorator;
|
|
18
18
|
export declare const updateStyle: (selector: string, options?: StyleApplyOptions) => MethodDecorator;
|
|
19
19
|
export declare const removeStyle: (selector: string, options?: StyleApplyOptions) => MethodDecorator;
|
|
20
|
-
export declare function
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
20
|
+
export declare function applyStyleThis(action?: StyleAction, options?: StyleApplyOptions): MethodDecorator;
|
|
21
|
+
export declare const setStyleThis: (options?: StyleApplyOptions) => MethodDecorator;
|
|
22
|
+
export declare const updateStyleThis: (options?: StyleApplyOptions) => MethodDecorator;
|
|
23
|
+
export declare const removeStyleThis: (options?: StyleApplyOptions) => MethodDecorator;
|
|
24
24
|
export declare const findAllStyleMetadata: (target: any) => Map<string | symbol, StyleApplyMetadata>;
|
|
25
25
|
//# sourceMappingURL=applyStyle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyStyle.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyStyle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtD,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,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;CACxG;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB,eAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"applyStyle.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyStyle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtD,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,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;CACxG;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB,eAA2C,CAAC;AAmG3E,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAE,WAAsB,EAAE,OAAO,GAAE,iBAAsB,GAAG,eAAe,CAE7H;AAED,eAAO,MAAM,QAAQ,GAAI,UAAU,MAAM,EAAE,UAAS,iBAAsB,oBAAmD,CAAC;AAC9H,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,EAAE,UAAS,iBAAsB,oBAAsD,CAAC;AACpI,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,EAAE,UAAS,iBAAsB,oBAAsD,CAAC;AAGpI,wBAAgB,cAAc,CAAC,MAAM,GAAE,WAAsB,EAAE,OAAO,GAAE,iBAAsB,GAAG,eAAe,CAE/G;AACD,eAAO,MAAM,YAAY,GAAI,UAAS,iBAAsB,oBAAkD,CAAC;AAC/G,eAAO,MAAM,eAAe,GAAI,UAAS,iBAAsB,oBAAqD,CAAC;AACrH,eAAO,MAAM,eAAe,GAAI,UAAS,iBAAsB,oBAAqD,CAAC;AAErH,eAAO,MAAM,oBAAoB,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CASzF,CAAC"}
|
|
@@ -21,11 +21,11 @@ export declare const resolveTargetEls: (inst: any, selector: string, options: At
|
|
|
21
21
|
*/
|
|
22
22
|
export declare function attribute(selector: string, options?: AttributeFieldOptions): PropertyDecorator;
|
|
23
23
|
/**
|
|
24
|
-
* @
|
|
24
|
+
* @attributeThis decorator to sync a field value with the $this element's attribute.
|
|
25
25
|
*/
|
|
26
|
-
export declare function
|
|
27
|
-
export declare function
|
|
28
|
-
export declare function
|
|
29
|
-
export declare function
|
|
26
|
+
export declare function attributeThis(target: Object, propertyKey: string | symbol): void;
|
|
27
|
+
export declare function attributeThis(options: AttributeFieldOptions): PropertyDecorator;
|
|
28
|
+
export declare function attributeThis(attrName: string): PropertyDecorator;
|
|
29
|
+
export declare function attributeThis(attrName: string, options: AttributeFieldOptions): PropertyDecorator;
|
|
30
30
|
export declare const findAllAttributeMetadata: (target: any) => AttributeFieldMetadata[];
|
|
31
31
|
//# sourceMappingURL=attribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/attribute.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,OAAO,MAAM,GAAG,OAAO,OAAO,GAAG,OAAO,MAAM,CAAC;CACvD;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,qBAAqB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,4BAA4B,eAAqD,CAAC;AAE/F,QAAA,MAAM,YAAY,GAAI,KAAK,MAAM,GAAG,IAAI,EAAE,MAAM,GAAG,KAAG,GAKrD,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,eAAO,MAAM,iBAAiB,GAAI,MAAM,GAAG,EAAE,UAAU,MAAM,EAAE,UAAU,qBAAqB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,GAkCxH,CAAC;AAEF,eAAO,MAAM,gBAAgB,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AAa,CAAC,OAAO,EAAE,qBAAqB,GAAG,iBAAiB,CAAC;AACjF,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAAC;AACnE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,iBAAiB,CAAC;AAsBnG,eAAO,MAAM,wBAAwB,GAAI,QAAQ,GAAG,KAAG,sBAAsB,EAG5E,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const ON_ATTRIBUTE_CHANGED_METADATA_KEY: unique symbol;
|
|
2
|
+
export interface ChangedAttributeThisOptions {
|
|
3
|
+
type?: typeof Number | typeof Boolean | typeof String;
|
|
4
|
+
while?: 'connected';
|
|
5
|
+
}
|
|
6
|
+
export interface ChangedAttributeThisMetadata {
|
|
7
|
+
attributeName: string;
|
|
8
|
+
propertyKey: string | symbol;
|
|
9
|
+
options: ChangedAttributeThisOptions;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @changedAttributeThis decorator - fires when any attribute on $this changes
|
|
13
|
+
*/
|
|
14
|
+
export declare function changedAttributeThis(attributeName?: string, options?: ChangedAttributeThisOptions): MethodDecorator;
|
|
15
|
+
export declare const getChangedAttributeMetadata: (target: any) => ChangedAttributeThisMetadata[] | undefined;
|
|
16
|
+
export declare const findAllAttributeChangedMetadata: (target: any) => Map<string, ChangedAttributeThisMetadata[]>;
|
|
17
|
+
export declare const convertAttributeValue: (val: any, type?: typeof Number | typeof Boolean | typeof String) => any;
|
|
18
|
+
//# sourceMappingURL=changedAttributeThis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changedAttributeThis.d.ts","sourceRoot":"","sources":["../../../src/decorators/changedAttributeThis.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iCAAiC,eAA0D,CAAC;AAEzG,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,EAAE,OAAO,MAAM,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G,eAAe,GAAG,SAGhE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,GAAG,SAkEnC,CAAC;
|
|
1
|
+
{"version":3,"file":"elementDefine.d.ts","sourceRoot":"","sources":["../../../src/decorators/elementDefine.ts"],"names":[],"mappings":"AAiBA,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,SAkEnC,CAAC;AAiKF,eAAO,MAAM,aAAa,GACvB,MAAM,MAAM,EAAE,SAAQ,OAAO,CAAC,aAAa,CAAM,KAAG,cA6ZlD,CAAC"}
|
|
@@ -8,27 +8,26 @@ export interface EmitCustomEventBaseOptions {
|
|
|
8
8
|
helper: HelperHostSet;
|
|
9
9
|
}) => boolean;
|
|
10
10
|
}
|
|
11
|
+
type Options = (EmitCustomEventBaseOptions & SwcQueryOptions) | (EmitCustomEventBaseOptions & SwcQueryOptions & {
|
|
12
|
+
attributeName?: string;
|
|
13
|
+
});
|
|
11
14
|
export interface EmitCustomEventMetadata {
|
|
12
15
|
propertyKey: string | symbol;
|
|
13
16
|
selector: string;
|
|
14
17
|
type: string;
|
|
15
|
-
options:
|
|
16
|
-
attributeName?: string;
|
|
17
|
-
});
|
|
18
|
+
options: Options;
|
|
18
19
|
}
|
|
19
20
|
export declare const EMIT_CUSTOM_EVENT_METADATA_KEY: unique symbol;
|
|
20
|
-
export declare function emitCustomEvent(target: SpecialSelector, type: string, options?:
|
|
21
|
-
export declare function emitCustomEvent(selector: string, type: string, options?:
|
|
21
|
+
export declare function emitCustomEvent(target: SpecialSelector, type: string, options?: Options): MethodDecorator;
|
|
22
|
+
export declare function emitCustomEvent(selector: string, type: string, options?: Options): MethodDecorator;
|
|
22
23
|
export declare const getEmitCustomEventMetadataList: (target: any) => EmitCustomEventMetadata[] | undefined;
|
|
23
24
|
/**
|
|
24
|
-
* @
|
|
25
|
-
* Usage: @emitCustomEventHost('navigate') // default attributeName: 'on-emit-navigate'
|
|
26
|
-
* Usage: @emitCustomEventHost('navigate', { attributeName: 'on-navigate' })
|
|
27
|
-
*
|
|
28
|
-
* The attributeName option is used to automatically observe attributes for this event.
|
|
29
|
-
* For example, { attributeName: 'on-navigate' } will add 'on-navigate' to observedAttributes.
|
|
25
|
+
* @emitCustomEventThis decorator - simplified version of @emitCustomEvent for $this selector
|
|
30
26
|
*/
|
|
31
|
-
export declare function
|
|
27
|
+
export declare function emitCustomEventThis(type: string, options: EmitCustomEventBaseOptions & SwcQueryOptions & {
|
|
32
28
|
attributeName?: string;
|
|
33
29
|
}): MethodDecorator;
|
|
30
|
+
export declare function emitCustomEventThis(type: string, attributeName: string): MethodDecorator;
|
|
31
|
+
export declare function emitCustomEventThis(type: string): MethodDecorator;
|
|
32
|
+
export {};
|
|
34
33
|
//# sourceMappingURL=emitCustomEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitCustomEvent.d.ts","sourceRoot":"","sources":["../../../src/decorators/emitCustomEvent.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"emitCustomEvent.d.ts","sourceRoot":"","sources":["../../../src/decorators/emitCustomEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAE,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,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,eAAe,CAAE;AAC3F,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './addEventListener';
|
|
2
2
|
export * from './attribute';
|
|
3
3
|
export * from './elementDefine';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './changedAttributeThis';
|
|
5
5
|
export * from './emitCustomEvent';
|
|
6
6
|
export * from './applyNode';
|
|
7
7
|
export * from './lifecycles';
|
|
@@ -10,6 +10,10 @@ export declare const ON_CONNECTED_SWC_APP_METADATA_KEY: unique symbol;
|
|
|
10
10
|
export declare const INNER_HTML_METADATA_KEY: unique symbol;
|
|
11
11
|
export declare const ATTRIBUTE_CHANGED_WILDCARD = "*";
|
|
12
12
|
export interface InnerHtmlOptions {
|
|
13
|
+
replaceWrap?: {
|
|
14
|
+
start: string;
|
|
15
|
+
end: string;
|
|
16
|
+
};
|
|
13
17
|
useShadow?: boolean;
|
|
14
18
|
}
|
|
15
19
|
export interface InnerHtmlMetadata {
|
|
@@ -17,17 +21,16 @@ export interface InnerHtmlMetadata {
|
|
|
17
21
|
options: InnerHtmlOptions;
|
|
18
22
|
}
|
|
19
23
|
export declare const onInitialize: MethodDecorator;
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
24
|
+
export declare const onConnectedBefore: MethodDecorator;
|
|
25
|
+
export declare const onConnectedAfter: MethodDecorator;
|
|
22
26
|
export declare const onConnected: MethodDecorator;
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
27
|
+
export declare const onDisconnectedBefore: MethodDecorator;
|
|
28
|
+
export declare const onDisconnectedAfter: MethodDecorator;
|
|
25
29
|
export declare const onDisconnected: MethodDecorator;
|
|
26
|
-
export declare const
|
|
27
|
-
export declare const
|
|
30
|
+
export declare const onAdoptedBefore: MethodDecorator;
|
|
31
|
+
export declare const onAdoptedAfter: MethodDecorator;
|
|
28
32
|
export declare const onAdopted: MethodDecorator;
|
|
29
33
|
export declare const onAddEventListener: MethodDecorator;
|
|
30
|
-
export declare const onConnectedSwcApp: MethodDecorator;
|
|
31
34
|
/**
|
|
32
35
|
* @onConnectedInnerHtml decorator to define the initial HTML content when connected.
|
|
33
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycles.d.ts","sourceRoot":"","sources":["../../../src/decorators/lifecycles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,eAAoD,CAAC;AAC5F,eAAO,MAAM,gCAAgC,eAAyD,CAAC;AACvG,eAAO,MAAM,+BAA+B,eAAwD,CAAC;AACrG,eAAO,MAAM,mCAAmC,eAA4D,CAAC;AAC7G,eAAO,MAAM,kCAAkC,eAA2D,CAAC;AAC3G,eAAO,MAAM,8BAA8B,eAAuD,CAAC;AACnG,eAAO,MAAM,6BAA6B,eAAsD,CAAC;AACjG,eAAO,MAAM,kCAAkC,eAA2D,CAAC;AAC3G,eAAO,MAAM,iCAAiC,eAA0D,CAAC;AACzG,eAAO,MAAM,uBAAuB,eAAgD,CAAC;AAErF,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAcD,eAAO,MAAM,YAAY,iBAAuD,CAAC;AACjF,eAAO,MAAM,iBAAiB,iBAA6D,CAAC;AAC5F,eAAO,MAAM,gBAAgB,iBAA4D,CAAC;AAC1F,eAAO,MAAM,WAAW,iBAAmB,CAAC;AAE5C,eAAO,MAAM,oBAAoB,iBAAgE,CAAC;AAClG,eAAO,MAAM,mBAAmB,iBAA+D,CAAC;AAChG,eAAO,MAAM,cAAc,iBAAsB,CAAC;AAElD,eAAO,MAAM,eAA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AAO,MAAM,eAAe,iBAA2D,CAAC;AACxF,eAAO,MAAM,cAAc,iBAA0D,CAAC;AACtF,eAAO,MAAM,SAAS,iBAAiB,CAAC;AAExC,eAAO,MAAM,kBAAkB,iBAA+D,CAAC;AAI/F;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAAC;AACjF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;AAqBzH;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,QAAQ,GAAG,EAAE,aAAa,MAAM,KAAG,CAAC,GAAG,SAGxG,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,QAAQ,GAAG,KAAG,iBAAiB,EAAE,GAAG,SAGnF,CAAC"}
|
|
@@ -8,74 +8,28 @@ export declare const QUERY_METADATA_KEY: unique symbol;
|
|
|
8
8
|
export declare function query(target: SpecialSelector): PropertyDecorator;
|
|
9
9
|
export declare function query(selector: string, options?: SwcQueryOptions): PropertyDecorator;
|
|
10
10
|
/**
|
|
11
|
-
* @
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
* @queryThis decorator - simplified version of @query for $this selector
|
|
12
|
+
*/
|
|
13
|
+
export declare function queryThis(target: Object, propertyKey: string | symbol): void;
|
|
14
|
+
export declare function queryThis(): PropertyDecorator;
|
|
15
|
+
export declare function queryThis(options: SwcQueryOptions): PropertyDecorator;
|
|
16
|
+
export declare function queryWindow(target: Object, propertyKey: string | symbol): void;
|
|
17
|
+
export declare function queryWindow(): PropertyDecorator;
|
|
18
|
+
export declare function queryWindow(options: SwcQueryOptions): PropertyDecorator;
|
|
19
|
+
export declare function queryDocument(target: Object, propertyKey: string | symbol): void;
|
|
20
|
+
export declare function queryDocument(): PropertyDecorator;
|
|
21
|
+
export declare function queryDocument(options: SwcQueryOptions): PropertyDecorator;
|
|
22
|
+
/**
|
|
23
|
+
* @host - Query $host (Direct parent SWC component)
|
|
15
24
|
*/
|
|
16
25
|
export declare function queryHost(target: Object, propertyKey: string | symbol): void;
|
|
17
26
|
export declare function queryHost(): PropertyDecorator;
|
|
18
27
|
export declare function queryHost(options: SwcQueryOptions): PropertyDecorator;
|
|
19
28
|
/**
|
|
20
|
-
* @
|
|
21
|
-
* Usage: @host element: HTMLElement | undefined;
|
|
22
|
-
* Usage: @host() element: HTMLElement | undefined;
|
|
23
|
-
* Usage: @host({ root: 'shadow' }) element: HTMLElement | undefined;
|
|
24
|
-
*/
|
|
25
|
-
export declare const host: typeof queryHost;
|
|
26
|
-
/**
|
|
27
|
-
* @parentHost - Query :parentHost (Direct parent SWC component)
|
|
28
|
-
* Usage: @parentHost parent: HTMLElement | undefined;
|
|
29
|
-
* Usage: @parentHost() parent: HTMLElement | undefined;
|
|
30
|
-
* Usage: @parentHost({ root: 'shadow' }) parent: HTMLElement | undefined;
|
|
31
|
-
*/
|
|
32
|
-
export declare function parentHost(target: Object, propertyKey: string | symbol): void;
|
|
33
|
-
export declare function parentHost(): PropertyDecorator;
|
|
34
|
-
export declare function parentHost(options: SwcQueryOptions): PropertyDecorator;
|
|
35
|
-
/**
|
|
36
|
-
* @appHost - Query :appHost (Nearest <swc-app>)
|
|
37
|
-
* Usage: @appHost app: SwcAppInterface | undefined;
|
|
38
|
-
* Usage: @appHost() app: SwcAppInterface | undefined;
|
|
39
|
-
* Usage: @appHost({ root: 'shadow' }) app: SwcAppInterface | undefined;
|
|
40
|
-
*/
|
|
41
|
-
export declare function appHost(target: Object, propertyKey: string | symbol): void;
|
|
42
|
-
export declare function appHost(): PropertyDecorator;
|
|
43
|
-
export declare function appHost(options: SwcQueryOptions): PropertyDecorator;
|
|
44
|
-
/**
|
|
45
|
-
* @firstHost - Query :firstHost (First component in hierarchy)
|
|
46
|
-
* Usage: @firstHost first: HTMLElement | undefined;
|
|
47
|
-
* Usage: @firstHost() first: HTMLElement | undefined;
|
|
48
|
-
* Usage: @firstHost({ root: 'shadow' }) first: HTMLElement | undefined;
|
|
49
|
-
*/
|
|
50
|
-
export declare function firstHost(target: Object, propertyKey: string | symbol): void;
|
|
51
|
-
export declare function firstHost(): PropertyDecorator;
|
|
52
|
-
export declare function firstHost(options: SwcQueryOptions): PropertyDecorator;
|
|
53
|
-
/**
|
|
54
|
-
* @lastHost - Query :lastHost (Last component in hierarchy)
|
|
55
|
-
* Usage: @lastHost last: HTMLElement | undefined;
|
|
56
|
-
* Usage: @lastHost() last: HTMLElement | undefined;
|
|
57
|
-
* Usage: @lastHost({ root: 'shadow' }) last: HTMLElement | undefined;
|
|
58
|
-
*/
|
|
59
|
-
export declare function lastHost(target: Object, propertyKey: string | symbol): void;
|
|
60
|
-
export declare function lastHost(): PropertyDecorator;
|
|
61
|
-
export declare function lastHost(options: SwcQueryOptions): PropertyDecorator;
|
|
62
|
-
/**
|
|
63
|
-
* @firstAppHost - Query :firstAppHost (First <swc-app> in hierarchy)
|
|
64
|
-
* Usage: @firstAppHost app: SwcAppInterface | undefined;
|
|
65
|
-
* Usage: @firstAppHost() app: SwcAppInterface | undefined;
|
|
66
|
-
* Usage: @firstAppHost({ root: 'shadow' }) app: SwcAppInterface | undefined;
|
|
67
|
-
*/
|
|
68
|
-
export declare function firstAppHost(target: Object, propertyKey: string | symbol): void;
|
|
69
|
-
export declare function firstAppHost(): PropertyDecorator;
|
|
70
|
-
export declare function firstAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
71
|
-
/**
|
|
72
|
-
* @lastAppHost - Query :lastAppHost (Last <swc-app> in hierarchy)
|
|
73
|
-
* Usage: @lastAppHost app: SwcAppInterface | undefined;
|
|
74
|
-
* Usage: @lastAppHost() app: SwcAppInterface | undefined;
|
|
75
|
-
* Usage: @lastAppHost({ root: 'shadow' }) app: SwcAppInterface | undefined;
|
|
29
|
+
* @appHost - Query $appHost (Nearest <swc-app>)
|
|
76
30
|
*/
|
|
77
|
-
export declare function
|
|
78
|
-
export declare function
|
|
79
|
-
export declare function
|
|
31
|
+
export declare function queryAppHost(target: Object, propertyKey: string | symbol): void;
|
|
32
|
+
export declare function queryAppHost(): PropertyDecorator;
|
|
33
|
+
export declare function queryAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
80
34
|
export declare const getQueryMetadata: (target: any) => QueryMetadata[] | undefined;
|
|
81
35
|
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/decorators/query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,kBAAkB,eAA2C,CAAC;AAE3E,wBAAgB,KAAK,CAAC,MAAM,EAAE,eAAe,GAAG,iBAAiB,CAAC;AAClE,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/decorators/query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,kBAAkB,eAA2C,CAAC;AAE3E,wBAAgB,KAAK,CAAC,MAAM,EAAE,eAAe,GAAG,iBAAiB,CAAC;AAClE,wBAAgB,KAAK,CAAC,QA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-8,79 +8,22 @@ export declare const QUERY_ALL_METADATA_KEY: unique symbol;
|
|
|
8
8
|
export declare function queryAll(target: SpecialSelector): PropertyDecorator;
|
|
9
9
|
export declare function queryAll(selector: string, options?: SwcQueryOptions): PropertyDecorator;
|
|
10
10
|
/**
|
|
11
|
-
* @
|
|
12
|
-
* Usage: @hostQueryAll()
|
|
13
|
-
* Usage: @hostQueryAll({ root: 'shadow' })
|
|
11
|
+
* @queryAllThis decorator - simplified version of @queryAll for $this selector
|
|
14
12
|
*/
|
|
13
|
+
export declare function queryAllThis(target: Object, propertyKey: string | symbol): void;
|
|
14
|
+
export declare function queryAllThis(): PropertyDecorator;
|
|
15
|
+
export declare function queryAllThis(options: SwcQueryOptions): PropertyDecorator;
|
|
15
16
|
/**
|
|
16
|
-
* @
|
|
17
|
-
* Usage: @queryAllHost items: HTMLElement[];
|
|
18
|
-
* Usage: @queryAllHost() items: HTMLElement[];
|
|
19
|
-
* Usage: @queryAllHost({ root: 'shadow' }) items: HTMLElement[];
|
|
20
|
-
*/
|
|
21
|
-
export declare function queryAllHost(target: Object, propertyKey: string | symbol): void;
|
|
22
|
-
export declare function queryAllHost(): PropertyDecorator;
|
|
23
|
-
export declare function queryAllHost(options: SwcQueryOptions): PropertyDecorator;
|
|
24
|
-
/**
|
|
25
|
-
* @allHost - Alias for @queryAllHost decorator
|
|
26
|
-
* Usage: @allHost items: HTMLElement[];
|
|
27
|
-
* Usage: @allHost() items: HTMLElement[];
|
|
28
|
-
* Usage: @allHost({ root: 'shadow' }) items: HTMLElement[];
|
|
29
|
-
*/
|
|
30
|
-
export declare const allHost: typeof queryAllHost;
|
|
31
|
-
/**
|
|
32
|
-
* @allParentHost - Query all :parentHost (All parent SWC components)
|
|
33
|
-
* Usage: @allParentHost parents: HTMLElement[];
|
|
34
|
-
* Usage: @allParentHost() parents: HTMLElement[];
|
|
35
|
-
* Usage: @allParentHost({ root: 'shadow' }) parents: HTMLElement[];
|
|
17
|
+
* @allParentHost - Query all parent SWC components
|
|
36
18
|
*/
|
|
37
19
|
export declare function allParentHost(target: Object, propertyKey: string | symbol): void;
|
|
38
20
|
export declare function allParentHost(): PropertyDecorator;
|
|
39
21
|
export declare function allParentHost(options: SwcQueryOptions): PropertyDecorator;
|
|
40
22
|
/**
|
|
41
|
-
* @allAppHost - Query all
|
|
42
|
-
* Usage: @allAppHost apps: SwcAppInterface[];
|
|
43
|
-
* Usage: @allAppHost() apps: SwcAppInterface[];
|
|
44
|
-
* Usage: @allAppHost({ root: 'shadow' }) apps: SwcAppInterface[];
|
|
23
|
+
* @allAppHost - Query all $appHost (All <swc-app> instances)
|
|
45
24
|
*/
|
|
46
25
|
export declare function allAppHost(target: Object, propertyKey: string | symbol): void;
|
|
47
26
|
export declare function allAppHost(): PropertyDecorator;
|
|
48
27
|
export declare function allAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
49
|
-
/**
|
|
50
|
-
* @allFirstHost - Query all :firstHost (All first components in hierarchy)
|
|
51
|
-
* Usage: @allFirstHost firsts: HTMLElement[];
|
|
52
|
-
* Usage: @allFirstHost() firsts: HTMLElement[];
|
|
53
|
-
* Usage: @allFirstHost({ root: 'shadow' }) firsts: HTMLElement[];
|
|
54
|
-
*/
|
|
55
|
-
export declare function allFirstHost(target: Object, propertyKey: string | symbol): void;
|
|
56
|
-
export declare function allFirstHost(): PropertyDecorator;
|
|
57
|
-
export declare function allFirstHost(options: SwcQueryOptions): PropertyDecorator;
|
|
58
|
-
/**
|
|
59
|
-
* @allLastHost - Query all :lastHost (All last components in hierarchy)
|
|
60
|
-
* Usage: @allLastHost lasts: HTMLElement[];
|
|
61
|
-
* Usage: @allLastHost() lasts: HTMLElement[];
|
|
62
|
-
* Usage: @allLastHost({ root: 'shadow' }) lasts: HTMLElement[];
|
|
63
|
-
*/
|
|
64
|
-
export declare function allLastHost(target: Object, propertyKey: string | symbol): void;
|
|
65
|
-
export declare function allLastHost(): PropertyDecorator;
|
|
66
|
-
export declare function allLastHost(options: SwcQueryOptions): PropertyDecorator;
|
|
67
|
-
/**
|
|
68
|
-
* @allFirstAppHost - Query all :firstAppHost (All first <swc-app> in hierarchy)
|
|
69
|
-
* Usage: @allFirstAppHost apps: SwcAppInterface[];
|
|
70
|
-
* Usage: @allFirstAppHost() apps: SwcAppInterface[];
|
|
71
|
-
* Usage: @allFirstAppHost({ root: 'shadow' }) apps: SwcAppInterface[];
|
|
72
|
-
*/
|
|
73
|
-
export declare function allFirstAppHost(target: Object, propertyKey: string | symbol): void;
|
|
74
|
-
export declare function allFirstAppHost(): PropertyDecorator;
|
|
75
|
-
export declare function allFirstAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
76
|
-
/**
|
|
77
|
-
* @allLastAppHost - Query all :lastAppHost (All last <swc-app> in hierarchy)
|
|
78
|
-
* Usage: @allLastAppHost apps: SwcAppInterface[];
|
|
79
|
-
* Usage: @allLastAppHost() apps: SwcAppInterface[];
|
|
80
|
-
* Usage: @allLastAppHost({ root: 'shadow' }) apps: SwcAppInterface[];
|
|
81
|
-
*/
|
|
82
|
-
export declare function allLastAppHost(target: Object, propertyKey: string | symbol): void;
|
|
83
|
-
export declare function allLastAppHost(): PropertyDecorator;
|
|
84
|
-
export declare function allLastAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
85
28
|
export declare const getQueryAllMetadata: (target: any) => QueryAllMetadata[] | undefined;
|
|
86
29
|
//# sourceMappingURL=queryAll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryAll.d.ts","sourceRoot":"","sources":["../../../src/decorators/queryAll.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,eAA+C,CAAC;AA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BAAiB,CAAC;AAChD,wBAAgB,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,iBAAiB,CAAC;AAYxE,eAAO,MAAM,mBAAmB,GAAI,QAAQ,GAAG,KAAG,gBAAgB,EAAE,GAAG,SAGtE,CAAC"}
|
|
@@ -13,5 +13,5 @@ export interface PropertySetMetadata {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const PROPERTY_SET_METADATA_KEY: unique symbol;
|
|
15
15
|
export declare const setProperty: (selector: string, propertyNameOrOptions?: string | PropertySetOptions, options?: PropertySetOptions) => MethodDecorator;
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const setPropertyThis: (propertyNameOrOptions?: string | PropertySetOptions, options?: PropertySetOptions) => MethodDecorator;
|
|
17
17
|
//# sourceMappingURL=setProperty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setProperty.d.ts","sourceRoot":"","sources":["../../../src/decorators/setProperty.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,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;CACxG;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,kBAAkB,CAAC;CAC7B;AAED,eAAO,MAAM,yBAAyB,eAAkD,CAAC;AAEzF,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,EAAE,wBAAwB,MAAM,GAAG,kBAAkB,EAAE,UAAS,kBAAuB,KAAG,
|
|
1
|
+
{"version":3,"file":"setProperty.d.ts","sourceRoot":"","sources":["../../../src/decorators/setProperty.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,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;CACxG;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,kBAAkB,CAAC;CAC7B;AAED,eAAO,MAAM,yBAAyB,eAAkD,CAAC;AAEzF,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,EAAE,wBAAwB,MAAM,GAAG,kBAAkB,EAAE,UAAS,kBAAuB,KAAG,eAyFrI,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,wBAAwB,MAAM,GAAG,kBAAkB,EAAE,UAAS,kBAAuB,KAAG,eAEvH,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { Router } from '@dooboostore/core-web';
|
|
2
2
|
export declare const SUBSCRIBE_SWC_APP_ROUTE_CHANGE_WHILE_CONNECTED_METADATA_KEY: unique symbol;
|
|
3
|
+
export type RoutePathType = string | string[] | ((currentThis: any) => string | string[]);
|
|
3
4
|
export interface SwcAppRouteChangeSubscriberMetadata {
|
|
4
5
|
propertyKey: string | symbol;
|
|
5
|
-
|
|
6
|
-
filter?: (router: Router, currentThis: any) => boolean;
|
|
6
|
+
options?: SwcAppRouteChangeOptions;
|
|
7
7
|
}
|
|
8
8
|
export interface SwcAppRouteChangeOptions {
|
|
9
|
-
path?:
|
|
9
|
+
path?: RoutePathType;
|
|
10
10
|
filter?: (router: Router, currentThis: any) => boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare function subscribeSwcAppRouteChangeWhileConnected(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
|
|
13
13
|
export declare function subscribeSwcAppRouteChangeWhileConnected(): MethodDecorator;
|
|
14
|
-
export declare function subscribeSwcAppRouteChangeWhileConnected(pathPattern:
|
|
15
|
-
export declare function subscribeSwcAppRouteChangeWhileConnected(pathPatterns: string[]): MethodDecorator;
|
|
14
|
+
export declare function subscribeSwcAppRouteChangeWhileConnected(pathPattern: RoutePathType): MethodDecorator;
|
|
16
15
|
export declare function subscribeSwcAppRouteChangeWhileConnected(options: SwcAppRouteChangeOptions): MethodDecorator;
|
|
17
16
|
export declare const getSubscribeSwcAppRouteChangeWhileConnectedMetadata: (target: any) => SwcAppRouteChangeSubscriberMetadata[] | undefined;
|
|
18
17
|
//# sourceMappingURL=subscribeSwcAppRouteChangeWhileConnected.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribeSwcAppRouteChangeWhileConnected.d.ts","sourceRoot":"","sources":["../../../src/decorators/subscribeSwcAppRouteChangeWhileConnected.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,eAAO,MAAM,2DAA2D,eAAoF,CAAC;AAE7J,MAAM,
|
|
1
|
+
{"version":3,"file":"subscribeSwcAppRouteChangeWhileConnected.d.ts","sourceRoot":"","sources":["../../../src/decorators/subscribeSwcAppRouteChangeWhileConnected.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,eAAO,MAAM,2DAA2D,eAAoF,CAAC;AAE7J,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;AAE1F,MAAM,WAAW,mCAAmC;IAClD,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,wBAAwB,CAAC;CACpC;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,OAAO,CAAC;CACxD;AAoBD,wBAAgB,wCAAwC,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,kBAAkB,GAAG,kBAAkB,GAAG,IAAI,CAAC;AAElK,wBAAgB,wCAAwC,IAAI,eAAe,CAAC;AAC5E,wBAAgB,wCAAwC,CAAC,WAAW,EAAE,aAAa,GAAG,eAAe,CAAC;AACtG,wBAAgB,wCAAwC,CAAC,OAAO,EAAE,wBAAwB,GAAG,eAAe,CAAC;AA4B7G,eAAO,MAAM,mDAAmD,GAAI,QAAQ,GAAG,KAAG,mCAAmC,EAAE,GAAG,SAGzH,CAAC"}
|
|
@@ -13,7 +13,10 @@ export type SwcConfigType = {
|
|
|
13
13
|
onEngineStarted?: (sp: SimpleApplication, app: SwcAppInterface) => void;
|
|
14
14
|
onConnected?: (app: SwcAppInterface) => void;
|
|
15
15
|
onDisconnected?: (app: SwcAppInterface) => void;
|
|
16
|
-
|
|
16
|
+
onChildrenConnectedDone?: (app: SwcAppInterface) => void;
|
|
17
|
+
onChildrenRouteChanged?: (event: RouterEventType, app: SwcAppInterface) => void;
|
|
18
|
+
childrenRouteChangedCheckIntervalTime?: number;
|
|
19
|
+
childrenConnectedDoneCheckIntervalTime?: number;
|
|
17
20
|
};
|
|
18
21
|
export type SwcAttributeConfigType = OptionalType<SwcConfigType, 'routeType' | 'window'>;
|
|
19
22
|
export declare class SwcAppEngine {
|