@dooboostore/simple-web-component 1.0.35 → 1.0.37
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 +58 -21
- package/dist/cjs/{elements/SwcAppEngine.js → SwcAppEngine.js} +6 -6
- package/dist/cjs/SwcAppEngine.js.map +7 -0
- 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 +28 -26
- package/dist/cjs/decorators/applyNode.js.map +2 -2
- package/dist/cjs/decorators/applySlot.js +122 -0
- package/dist/cjs/decorators/applySlot.js.map +7 -0
- package/dist/cjs/decorators/applyStyle.js +20 -19
- package/dist/cjs/decorators/applyStyle.js.map +2 -2
- package/dist/cjs/decorators/attribute.js +16 -15
- 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 +59 -50
- package/dist/cjs/decorators/elementDefine.js.map +2 -2
- package/dist/cjs/decorators/emitCustomEvent.js +18 -16
- package/dist/cjs/decorators/emitCustomEvent.js.map +2 -2
- package/dist/cjs/decorators/index.js +2 -1
- package/dist/cjs/decorators/index.js.map +2 -2
- package/dist/cjs/decorators/lifecycles.js +56 -8
- 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/elements/{SwcAppMixin.js → SwcApp.js} +107 -57
- package/dist/cjs/elements/SwcApp.js.map +7 -0
- package/dist/cjs/elements/index.js +21 -2
- package/dist/cjs/elements/index.js.map +3 -3
- package/dist/cjs/elements/tt/SwcAppMixin.js +1 -0
- package/dist/cjs/elements/tt/SwcAppMixin.js.map +7 -0
- package/dist/cjs/elements/tt/SwcAsync.js +1 -0
- package/dist/cjs/elements/tt/SwcAsync.js.map +7 -0
- package/dist/cjs/elements/tt/SwcAsyncTemplate.js +1 -0
- package/dist/cjs/elements/tt/SwcAsyncTemplate.js.map +7 -0
- package/dist/cjs/elements/tt/SwcChoose.js +1 -0
- package/dist/cjs/elements/tt/SwcChoose.js.map +7 -0
- package/dist/cjs/elements/tt/SwcChooseTemplate.js +1 -0
- package/dist/cjs/elements/tt/SwcChooseTemplate.js.map +7 -0
- package/dist/cjs/elements/tt/SwcIf.js +1 -0
- package/dist/cjs/elements/tt/SwcIf.js.map +7 -0
- package/dist/cjs/elements/tt/SwcIfTemplate.js +1 -0
- package/dist/cjs/elements/tt/SwcIfTemplate.js.map +7 -0
- package/dist/cjs/elements/tt/SwcLoop.js +1 -0
- package/dist/cjs/elements/tt/SwcLoop.js.map +7 -0
- package/dist/cjs/elements/tt/SwcLoopTemplate.js +1 -0
- package/dist/cjs/elements/tt/SwcLoopTemplate.js.map +7 -0
- package/dist/cjs/elements/tt/SwcSubTemplates.js +1 -0
- package/dist/cjs/elements/tt/SwcSubTemplates.js.map +7 -0
- package/dist/cjs/elements/tt/register.js +1 -0
- package/dist/cjs/elements/tt/register.js.map +7 -0
- package/dist/cjs/index.js +12 -8
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/types/window.d.js +16 -0
- package/dist/cjs/types/window.d.js.map +7 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/utils/Utils.js +22 -19
- package/dist/cjs/utils/Utils.js.map +2 -2
- package/dist/esm/{elements/SwcAppEngine.js → SwcAppEngine.js} +4 -4
- package/dist/esm/SwcAppEngine.js.map +7 -0
- 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 +28 -26
- package/dist/esm/decorators/applyNode.js.map +2 -2
- package/dist/esm/decorators/applySlot.js +103 -0
- package/dist/esm/decorators/applySlot.js.map +7 -0
- package/dist/esm/decorators/applyStyle.js +20 -19
- package/dist/esm/decorators/applyStyle.js.map +2 -2
- package/dist/esm/decorators/attribute.js +16 -15
- 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 +60 -51
- package/dist/esm/decorators/elementDefine.js.map +2 -2
- package/dist/esm/decorators/emitCustomEvent.js +18 -16
- package/dist/esm/decorators/emitCustomEvent.js.map +2 -2
- package/dist/esm/decorators/index.js +2 -1
- package/dist/esm/decorators/index.js.map +2 -2
- package/dist/esm/decorators/lifecycles.js +56 -8
- 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/elements/{SwcAppMixin.js → SwcApp.js} +102 -53
- package/dist/esm/elements/SwcApp.js.map +7 -0
- package/dist/esm/elements/index.js +7 -1
- package/dist/esm/elements/index.js.map +2 -2
- package/dist/esm/elements/tt/SwcAppMixin.js +1 -0
- package/dist/esm/elements/tt/SwcAppMixin.js.map +7 -0
- package/dist/esm/elements/tt/SwcAsync.js +1 -0
- package/dist/esm/elements/tt/SwcAsync.js.map +7 -0
- package/dist/esm/elements/tt/SwcAsyncTemplate.js +1 -0
- package/dist/esm/elements/tt/SwcAsyncTemplate.js.map +7 -0
- package/dist/esm/elements/tt/SwcChoose.js +1 -0
- package/dist/esm/elements/tt/SwcChoose.js.map +7 -0
- package/dist/esm/elements/tt/SwcChooseTemplate.js +1 -0
- package/dist/esm/elements/tt/SwcChooseTemplate.js.map +7 -0
- package/dist/esm/elements/tt/SwcIf.js +1 -0
- package/dist/esm/elements/tt/SwcIf.js.map +7 -0
- package/dist/esm/elements/tt/SwcIfTemplate.js +1 -0
- package/dist/esm/elements/tt/SwcIfTemplate.js.map +7 -0
- package/dist/esm/elements/tt/SwcLoop.js +1 -0
- package/dist/esm/elements/tt/SwcLoop.js.map +7 -0
- package/dist/esm/elements/tt/SwcLoopTemplate.js +1 -0
- package/dist/esm/elements/tt/SwcLoopTemplate.js.map +7 -0
- package/dist/esm/elements/tt/SwcSubTemplates.js +1 -0
- package/dist/esm/elements/tt/SwcSubTemplates.js.map +7 -0
- package/dist/esm/elements/tt/register.js +1 -0
- package/dist/esm/elements/tt/register.js.map +7 -0
- package/dist/esm/index.js +13 -9
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/types/window.d.js +1 -0
- package/dist/esm/types/window.d.js.map +7 -0
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/utils/Utils.js +22 -19
- package/dist/esm/utils/Utils.js.map +2 -2
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +4189 -456
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
- package/dist/types/{elements/SwcAppEngine.d.ts → SwcAppEngine.d.ts} +9 -4
- package/dist/types/SwcAppEngine.d.ts.map +1 -0
- 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 +9 -9
- package/dist/types/decorators/applyNode.d.ts.map +1 -1
- package/dist/types/decorators/applySlot.d.ts +27 -0
- package/dist/types/decorators/applySlot.d.ts.map +1 -0
- 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 +4 -9
- package/dist/types/decorators/emitCustomEvent.d.ts.map +1 -1
- package/dist/types/decorators/index.d.ts +2 -1
- package/dist/types/decorators/index.d.ts.map +1 -1
- package/dist/types/decorators/lifecycles.d.ts +21 -6
- 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/elements/SwcApp.d.ts +7 -0
- package/dist/types/elements/SwcApp.d.ts.map +1 -0
- package/dist/types/elements/index.d.ts +2 -1
- package/dist/types/elements/index.d.ts.map +1 -1
- package/dist/types/elements/tt/SwcAppMixin.d.ts +1 -0
- package/dist/types/elements/tt/SwcAppMixin.d.ts.map +1 -0
- package/dist/types/elements/tt/SwcAsync.d.ts +1 -0
- package/dist/types/elements/tt/SwcAsync.d.ts.map +1 -0
- package/dist/types/elements/tt/SwcAsyncTemplate.d.ts +1 -0
- package/dist/types/elements/tt/SwcAsyncTemplate.d.ts.map +1 -0
- package/dist/types/elements/tt/SwcChoose.d.ts +1 -0
- package/dist/types/elements/tt/SwcChoose.d.ts.map +1 -0
- package/dist/types/elements/tt/SwcChooseTemplate.d.ts +1 -0
- package/dist/types/elements/tt/SwcChooseTemplate.d.ts.map +1 -0
- package/dist/types/elements/tt/SwcIf.d.ts +1 -0
- package/dist/types/elements/{SwcIf.d.ts.map → tt/SwcIf.d.ts.map} +1 -1
- package/dist/types/elements/tt/SwcIfTemplate.d.ts +1 -0
- package/dist/types/elements/tt/SwcIfTemplate.d.ts.map +1 -0
- package/dist/types/elements/tt/SwcLoop.d.ts +1 -0
- package/dist/types/elements/tt/SwcLoop.d.ts.map +1 -0
- package/dist/types/elements/tt/SwcLoopTemplate.d.ts +1 -0
- package/dist/types/elements/tt/SwcLoopTemplate.d.ts.map +1 -0
- package/dist/types/elements/tt/SwcSubTemplates.d.ts +1 -0
- package/dist/types/elements/tt/SwcSubTemplates.d.ts.map +1 -0
- package/dist/types/elements/tt/register.d.ts +1 -0
- package/dist/types/elements/tt/register.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +5 -5
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/Utils.d.ts +13 -12
- package/dist/types/utils/Utils.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +4189 -456
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
- package/package.json +4 -4
- package/src/{elements/SwcAppEngine.ts → SwcAppEngine.ts} +12 -7
- 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 +30 -27
- package/src/decorators/applySlot.ts +228 -0
- package/src/decorators/applyStyle.ts +17 -16
- package/src/decorators/attribute.ts +20 -19
- package/src/decorators/{changedAttributeHost.ts → changedAttributeThis.ts} +10 -12
- package/src/decorators/elementDefine.ts +80 -57
- package/src/decorators/emitCustomEvent.ts +21 -26
- package/src/decorators/index.ts +2 -1
- package/src/decorators/lifecycles.ts +76 -11
- package/src/decorators/query.ts +51 -124
- package/src/decorators/queryAll.ts +30 -127
- package/src/decorators/setProperty.ts +12 -11
- package/src/elements/{SwcAppMixin.ts → SwcApp.ts} +98 -31
- package/src/elements/index.ts +11 -1
- package/src/elements/tt/SwcAppMixin.ts +13 -0
- package/src/elements/tt/SwcAsync.ts +139 -0
- package/src/elements/tt/SwcAsyncTemplate.ts +126 -0
- package/src/elements/tt/SwcChoose.ts +182 -0
- package/src/elements/tt/SwcChooseTemplate.ts +229 -0
- package/src/elements/tt/SwcIf.ts +145 -0
- package/src/elements/tt/SwcIfTemplate.ts +158 -0
- package/src/elements/tt/SwcLoop.ts +222 -0
- package/src/elements/tt/SwcLoopTemplate.ts +255 -0
- package/src/elements/tt/SwcSubTemplates.ts +6 -0
- package/src/elements/tt/register.ts +720 -0
- package/src/index.ts +13 -9
- package/src/types/window.d.ts +43 -0
- package/src/types.ts +9 -8
- package/src/utils/Utils.ts +28 -24
- package/dist/cjs/decorators/changedAttributeHost.js.map +0 -7
- package/dist/cjs/elements/SwcAppEngine.js.map +0 -7
- package/dist/cjs/elements/SwcAppMixin.js.map +0 -7
- package/dist/cjs/elements/SwcAsync.js +0 -129
- package/dist/cjs/elements/SwcAsync.js.map +0 -7
- package/dist/cjs/elements/SwcChoose.js +0 -155
- package/dist/cjs/elements/SwcChoose.js.map +0 -7
- package/dist/cjs/elements/SwcIf.js +0 -117
- package/dist/cjs/elements/SwcIf.js.map +0 -7
- package/dist/cjs/elements/SwcLoop.js +0 -176
- package/dist/cjs/elements/SwcLoop.js.map +0 -7
- package/dist/cjs/elements/SwcSubTemplates.js +0 -13
- package/dist/cjs/elements/SwcSubTemplates.js.map +0 -7
- package/dist/cjs/elements/register.js +0 -1026
- package/dist/cjs/elements/register.js.map +0 -7
- package/dist/esm/decorators/changedAttributeHost.js.map +0 -7
- package/dist/esm/elements/SwcAppEngine.js.map +0 -7
- package/dist/esm/elements/SwcAppMixin.js.map +0 -7
- package/dist/esm/elements/SwcAsync.js +0 -129
- package/dist/esm/elements/SwcAsync.js.map +0 -7
- package/dist/esm/elements/SwcChoose.js +0 -155
- package/dist/esm/elements/SwcChoose.js.map +0 -7
- package/dist/esm/elements/SwcIf.js +0 -117
- package/dist/esm/elements/SwcIf.js.map +0 -7
- package/dist/esm/elements/SwcLoop.js +0 -176
- package/dist/esm/elements/SwcLoop.js.map +0 -7
- package/dist/esm/elements/SwcSubTemplates.js +0 -13
- package/dist/esm/elements/SwcSubTemplates.js.map +0 -7
- package/dist/esm/elements/register.js +0 -1007
- package/dist/esm/elements/register.js.map +0 -7
- package/dist/types/decorators/changedAttributeHost.d.ts +0 -20
- package/dist/types/decorators/changedAttributeHost.d.ts.map +0 -1
- package/dist/types/elements/SwcAppEngine.d.ts.map +0 -1
- package/dist/types/elements/SwcAppMixin.d.ts +0 -386
- package/dist/types/elements/SwcAppMixin.d.ts.map +0 -1
- package/dist/types/elements/SwcAsync.d.ts +0 -2
- package/dist/types/elements/SwcAsync.d.ts.map +0 -1
- package/dist/types/elements/SwcChoose.d.ts +0 -2
- package/dist/types/elements/SwcChoose.d.ts.map +0 -1
- package/dist/types/elements/SwcIf.d.ts +0 -2
- package/dist/types/elements/SwcLoop.d.ts +0 -2
- package/dist/types/elements/SwcLoop.d.ts.map +0 -1
- package/dist/types/elements/SwcSubTemplates.d.ts +0 -13
- package/dist/types/elements/SwcSubTemplates.d.ts.map +0 -1
- package/dist/types/elements/register.d.ts +0 -4
- package/dist/types/elements/register.d.ts.map +0 -1
- package/src/elements/SwcAsync.ts +0 -126
- package/src/elements/SwcChoose.ts +0 -190
- package/src/elements/SwcIf.ts +0 -124
- package/src/elements/SwcLoop.ts +0 -205
- package/src/elements/SwcSubTemplates.ts +0 -6
- package/src/elements/register.ts +0 -1022
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { SimpleApplication } from '@dooboostore/simple-boot
|
|
1
|
+
import { SimpleApplication } from '@dooboostore/simple-boot';
|
|
2
2
|
import { Router, RouterEventType } from '@dooboostore/core-web';
|
|
3
3
|
import { ConstructorType, OptionalType } from '@dooboostore/core';
|
|
4
|
-
import { SwcAppInterface } from '
|
|
4
|
+
import { SwcAppInterface } from './types';
|
|
5
5
|
import { SimConfig } from '@dooboostore/simple-boot';
|
|
6
6
|
export type SwcConfigType = {
|
|
7
7
|
routeType: 'path' | 'hash' | 'element';
|
|
8
|
-
connectMode?: 'direct' | 'swap' | 'clear-swap';
|
|
8
|
+
connectMode?: 'direct' | 'swap' | 'clear-swap' | 'hydrate';
|
|
9
9
|
container?: symbol;
|
|
10
10
|
otherInstanceSim?: Map<ConstructorType<any> | Function | SimConfig | symbol, any>;
|
|
11
11
|
path?: string;
|
|
12
12
|
window: Window;
|
|
13
|
-
onEngineStarted?: (sp: SimpleApplication, app: SwcAppInterface) => void;
|
|
13
|
+
onEngineStarted?: (sp: SimpleApplication, app: SwcAppInterface) => Promise<void> | void;
|
|
14
|
+
onConnectedChildAfter?: (swcEl: HTMLElement) => void;
|
|
15
|
+
onConnectedChildBefore?: (swcEl: HTMLElement) => void;
|
|
16
|
+
onDisconnectedChildAfter?: (swcEl: HTMLElement) => void;
|
|
17
|
+
onDisconnectedChildBefore?: (swcEl: HTMLElement) => void;
|
|
14
18
|
onConnected?: (app: SwcAppInterface) => void;
|
|
15
19
|
onDisconnected?: (app: SwcAppInterface) => void;
|
|
20
|
+
ssr?: boolean;
|
|
16
21
|
onChildrenConnectedDone?: (app: SwcAppInterface) => void;
|
|
17
22
|
onChildrenRouteChanged?: (event: RouterEventType, app: SwcAppInterface) => void;
|
|
18
23
|
childrenRouteChangedCheckIntervalTime?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwcAppEngine.d.ts","sourceRoot":"","sources":["../../src/SwcAppEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,C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AAe,KAAK,IAAI,CAAC;IAGzD,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAChF,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAC/C,sCAAsC,CAAC,EAAE,MAAM,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC,aAAa,EAAE,WAAW,GAAG,QAAQ,CAAC,CAAC;AAEzF,qBAAa,YAAY;IAMX,OAAO,CAAC,IAAI;IALjB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,kBAAkB,CAAC,CAAe;IAC1C,OAAO,CAAC,OAAO,CAAC,CAAgB;gBAEZ,IAAI,EAAE,WAAW;IAErC,IAAI,MAAM,kBAET;IAEK,OAAO,CAAC,MAAM,EAAE,aAAa;IAsCnC,UAAU;CAGX"}
|
|
@@ -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;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,2BAA2B,GAAG,eAAe,GAAG;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CACjF;AAED,eAAO,MAAM,+BAA+B,eAAwD,CAAC;AAErG,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G;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CACjF;AAED,eAAO,MAAM,+BAA+B,eAAwD,CAAC;AAErG,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,eAAe,CAAC;AAChI,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,eAAe,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,eAAe,CAAC;AAkBpK,eAAO,MAAM,2BAA2B,GAAI,QAAQ,GAAG,KAAG,wBAAwB,EAAE,GAAG,SAGtF,CAAC;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,eAAe,GAAG,eAAe,CAE3H;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,eAAe,GAAG,eAAe,CAE9H;AACD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,eAAe,GAAG,eAAe,CAE7H;AACD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,eAAe,GAAG,eAAe,CAE/H"}
|
|
@@ -18,9 +18,9 @@ export declare function applyAttribute(selector: string, action?: AttributeActio
|
|
|
18
18
|
export 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,OAAO,CAAC;CACxG;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,qBAAqB,CAAC;CAChC;AAED,eAAO,MAAM,4B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A0B,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,MAAM,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,iBAAiB,CAAC;CAC5B;
|
|
1
|
+
{"version":3,"file":"applyClass.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyClass.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAA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zF,CAAC"}
|
|
@@ -27,13 +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
|
|
36
|
-
export declare function
|
|
37
|
-
export declare function
|
|
38
|
-
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 applyNodeThisReplaceChildren(options: ApplyNodeOptions): MethodDecorator;
|
|
33
|
+
export declare function applyNodeThisReplaceChildren(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
34
|
+
export declare function applyThisInnerHtmlNode(options: ApplyNodeOptions): MethodDecorator;
|
|
35
|
+
export declare function applyThisInnerHtmlNode(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
36
|
+
export declare function applyNodeReplaceChildren(selector: string, options?: ApplyNodeOptions): MethodDecorator;
|
|
37
|
+
export declare function applyNodeInnerHtml(selector: string, options?: ApplyNodeOptions): MethodDecorator;
|
|
38
|
+
export declare function applyNodeInnerText(selector: string, options?: ApplyNodeOptions): MethodDecorator;
|
|
39
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;AAWtD,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,YAAY,GAAG,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AE,OAAO,GAAE,gBAAqB,GAAG,eAAe,CAEpG;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB,GAAG,eAAe,CAEpG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type ApplySlotPosition = 'prependHtml' | 'prependText' | 'appendHtml' | 'appendText' | 'replaceChildrenHtml' | 'replaceChildrenText' | 'clear';
|
|
2
|
+
export interface ApplySlotOptions {
|
|
3
|
+
position?: ApplySlotPosition;
|
|
4
|
+
}
|
|
5
|
+
export interface ApplySlotMetadata {
|
|
6
|
+
propertyKey: string | symbol;
|
|
7
|
+
id: string;
|
|
8
|
+
type: 'method' | 'property';
|
|
9
|
+
options: ApplySlotOptions;
|
|
10
|
+
}
|
|
11
|
+
export declare const APPLY_SLOT_METADATA_KEY: unique symbol;
|
|
12
|
+
/**
|
|
13
|
+
* @applyNode decorator to surgically add/replace nodes to a target element.
|
|
14
|
+
*/
|
|
15
|
+
export declare function applySlot(id: string, options?: ApplySlotOptions): MethodDecorator & PropertyDecorator;
|
|
16
|
+
export declare const findAllApplySlotMetadata: (target: any) => ApplySlotMetadata[];
|
|
17
|
+
export declare function applySlotClear(id: string): MethodDecorator;
|
|
18
|
+
export declare function applySlotPrependHtml(id: string): MethodDecorator;
|
|
19
|
+
export declare const applySlotPrepend: typeof applySlotPrependHtml;
|
|
20
|
+
export declare function applySlotPrependText(id: string): MethodDecorator;
|
|
21
|
+
export declare function applySlotAppendHtml(id: string): MethodDecorator;
|
|
22
|
+
export declare function applySlotAppendText(id: string): MethodDecorator;
|
|
23
|
+
export declare const applySlotAppend: typeof applySlotAppendHtml;
|
|
24
|
+
export declare function applySlotReplaceChildrenHtml(id: string): MethodDecorator;
|
|
25
|
+
export declare const applySlotReplaceChildren: typeof applySlotReplaceChildrenHtml;
|
|
26
|
+
export declare function applySlotReplaceChildrenText(id: string): MethodDecorator;
|
|
27
|
+
//# sourceMappingURL=applySlot.d.ts.map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ACrE,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,CAExE"}
|
|
@@ -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,CA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AE/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;IACr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B,GAAI,MAAM,GAAG,EAAE,UAAU,MAAM,EAAE,UAAU,qBAAqB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,GAkCxH,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,GAAG,EAAE,UAAU,MAAM,EAAE,SAAS,qBAAqB,EAAE,YAAY,GAAG,KAAG,WAAW,EAgD1H,CAAC;AAEF;;GAEG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,GAAG,iBAAiB,CAuElG;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAClF,wBAAgB,aAAa,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,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;AASD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,2BAAgC,GAAG,eAAe,CAgBvH;AAED,eAAO,MAAM,2BAA2B,GAAI,QAAQ,GAAG,KAAG,4BAA4B,EAAE,GAAG,SAG1F,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,EAAE,4BAA4B,EAAE,CAcvG,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,KAAK,GAAG,EAAE,OAAO,OAAO,MAAM,GAAG,OAAO,OAAO,GAAG,OAAO,MAAM,KAAG,GAEvG,CAAC"}
|
|
@@ -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":"AAmBA,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,SAwEnC,CAAC;AAiKF,eAAO,MAAM,aAAa,GACvB,MAAM,MAAM,EAAE,SAAQ,OAAO,CAAC,aAAa,CAAM,KAAG,cA2alD,CAAC"}
|
|
@@ -22,17 +22,12 @@ export declare function emitCustomEvent(target: SpecialSelector, type: string, o
|
|
|
22
22
|
export declare function emitCustomEvent(selector: string, type: string, options?: Options): MethodDecorator;
|
|
23
23
|
export declare const getEmitCustomEventMetadataList: (target: any) => EmitCustomEventMetadata[] | undefined;
|
|
24
24
|
/**
|
|
25
|
-
* @
|
|
26
|
-
* Usage: @emitCustomEventHost('navigate') // default attributeName: 'on-emit-navigate'
|
|
27
|
-
* Usage: @emitCustomEventHost('navigate', { attributeName: 'on-navigate' })
|
|
28
|
-
*
|
|
29
|
-
* The attributeName option is used to automatically observe attributes for this event.
|
|
30
|
-
* For example, { attributeName: 'on-navigate' } will add 'on-navigate' to observedAttributes.
|
|
25
|
+
* @emitCustomEventThis decorator - simplified version of @emitCustomEvent for $this selector
|
|
31
26
|
*/
|
|
32
|
-
export declare function
|
|
27
|
+
export declare function emitCustomEventThis(type: string, options: EmitCustomEventBaseOptions & SwcQueryOptions & {
|
|
33
28
|
attributeName?: string;
|
|
34
29
|
}): MethodDecorator;
|
|
35
|
-
export declare function
|
|
36
|
-
export declare function
|
|
30
|
+
export declare function emitCustomEventThis(type: string, attributeName: string): MethodDecorator;
|
|
31
|
+
export declare function emitCustomEventThis(type: string): MethodDecorator;
|
|
37
32
|
export {};
|
|
38
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,EAAC,eAAe,EAAE,eAAe,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAIzE,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;CAC3G;AAED,KAAK,OAAO,GAAG,CAAC,0BAA0B,GAAG,eAAe,CAAC,GAAG,CAAC,0BAA0B,GAAG,eAAe,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE5I,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,8BAA8B,eAAuD,CAA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,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,eAAe,CAAC;AA+FpG,eAAO,MAAM,8BAA8B,GAAI,QAAQ,GAAG,KAAG,uBAAuB,EAAE,GAAG,SAGxF,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,0BAA0B,GAAG,eAAe,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAAE;AACxJ,wBAAgB,mBAAmB,CAAC,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';
|
|
@@ -14,4 +14,5 @@ export * from './setProperty';
|
|
|
14
14
|
export * from './subscribeSwcAppRouteChangeWhileConnected';
|
|
15
15
|
export * from './subscribeSwcAppMessageWhileConnected';
|
|
16
16
|
export * from './publishSwcAppMessage';
|
|
17
|
+
export * from './applySlot';
|
|
17
18
|
//# 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,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC"}
|
|
@@ -6,10 +6,12 @@ export declare const ON_AFTER_DISCONNECTED_METADATA_KEY: unique symbol;
|
|
|
6
6
|
export declare const ON_BEFORE_ADOPTED_METADATA_KEY: unique symbol;
|
|
7
7
|
export declare const ON_AFTER_ADOPTED_METADATA_KEY: unique symbol;
|
|
8
8
|
export declare const ON_ADD_EVENT_LISTENER_METADATA_KEY: unique symbol;
|
|
9
|
+
export declare const ON_CONNECTED_INNER_HTML_METADATA_KEY: unique symbol;
|
|
9
10
|
export declare const ON_CONNECTED_SWC_APP_METADATA_KEY: unique symbol;
|
|
10
|
-
export declare const
|
|
11
|
+
export declare const ON_CONNECTED_COMPLETED_METADATA_KEY: unique symbol;
|
|
11
12
|
export declare const ATTRIBUTE_CHANGED_WILDCARD = "*";
|
|
12
13
|
export interface InnerHtmlOptions {
|
|
14
|
+
ssrFirst?: boolean;
|
|
13
15
|
replaceWrap?: {
|
|
14
16
|
start: string;
|
|
15
17
|
end: string;
|
|
@@ -20,10 +22,19 @@ export interface InnerHtmlMetadata {
|
|
|
20
22
|
propertyKey: string | symbol;
|
|
21
23
|
options: InnerHtmlOptions;
|
|
22
24
|
}
|
|
25
|
+
export interface OnConnectedOptions {
|
|
26
|
+
ssrFirst?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface OnConnectedMetadata {
|
|
29
|
+
propertyKey: string | symbol;
|
|
30
|
+
options: OnConnectedOptions;
|
|
31
|
+
}
|
|
32
|
+
export declare function onConnectedBefore(options: OnConnectedOptions): MethodDecorator;
|
|
33
|
+
export declare function onConnectedBefore(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
34
|
+
export declare function onConnectedAfter(options: OnConnectedOptions): MethodDecorator;
|
|
35
|
+
export declare function onConnectedAfter(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
23
36
|
export declare const onInitialize: MethodDecorator;
|
|
24
|
-
export declare const
|
|
25
|
-
export declare const onConnectedAfter: MethodDecorator;
|
|
26
|
-
export declare const onConnected: MethodDecorator;
|
|
37
|
+
export declare const onConnected: typeof onConnectedAfter;
|
|
27
38
|
export declare const onDisconnectedBefore: MethodDecorator;
|
|
28
39
|
export declare const onDisconnectedAfter: MethodDecorator;
|
|
29
40
|
export declare const onDisconnected: MethodDecorator;
|
|
@@ -31,6 +42,8 @@ export declare const onAdoptedBefore: MethodDecorator;
|
|
|
31
42
|
export declare const onAdoptedAfter: MethodDecorator;
|
|
32
43
|
export declare const onAdopted: MethodDecorator;
|
|
33
44
|
export declare const onAddEventListener: MethodDecorator;
|
|
45
|
+
export declare const onConnectedSwcApp: MethodDecorator;
|
|
46
|
+
export declare const onConnectedCompleted: MethodDecorator;
|
|
34
47
|
/**
|
|
35
48
|
* @onConnectedInnerHtml decorator to define the initial HTML content when connected.
|
|
36
49
|
*/
|
|
@@ -39,6 +52,8 @@ export declare function onConnectedInnerHtml(target: Object, propertyKey: string
|
|
|
39
52
|
/**
|
|
40
53
|
* 프로토타입 체인을 순회하며 모든 라이프사이클 메서드를 수집합니다.
|
|
41
54
|
*/
|
|
42
|
-
export declare const findAllLifecycleMetadata:
|
|
43
|
-
export declare const getOnConnectedInnerHtmlMetadata: (target: any) => InnerHtmlMetadata[]
|
|
55
|
+
export declare const findAllLifecycleMetadata: (target: any, metadataKey: symbol) => (string | symbol)[];
|
|
56
|
+
export declare const getOnConnectedInnerHtmlMetadata: (target: any) => InnerHtmlMetadata[];
|
|
57
|
+
export declare const getOnConnectedBeforeMetadata: (target: any) => OnConnectedMetadata[];
|
|
58
|
+
export declare const getOnConnectedAfterMetadata: (target: any) => OnConnectedMetadata[];
|
|
44
59
|
//# sourceMappingURL=lifecycles.d.ts.map
|
|
@@ -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,
|
|
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+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E,kBAAkB,GAAG,IAAI,CAAC;AAkCrH,eAAO,MAAM,YAAY,iBAAuD,CAAC;AAGjF,eAAO,MAAM,WAAW,yBAAmB,CAAC;AAE5C,eAAO,MAAM,oBAAoB,iBAAgE,CAAC;AAClG,eAAO,MAAM,mBAAmB,iBAA+D,CAAC;AAChG,eAAO,MAAM,cAAc,iBAAsB,CAAC;AAElD,eAAO,MAAM,eAAe,iBAA2D,CAAC;AACxF,eAAO,MAAM,cAAc,iBAA0D,CAAC;AACtF,eAAO,MAAM,SAAS,iBAAiB,CAAC;AAExC,eAAO,MAAM,kBAAkB,iBAA+D,CAAC;AAE/F,eAAO,MAAM,iBAAiB,iBAA8D,CAAC;AAC7F,eAAO,MAAM,oBAAoB,iBAAgE,CAAC;AAElG;;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;AAEH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,GAAG,EAAE,aAAa,MAAM,KAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAG5F,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,QAAQ,GAAG,KAAG,iBAAiB,EAG9E,CAAC;AACF,eAAO,MAAM,4BAA4B,GAAI,QAAQ,GAAG,KAAG,mBAAmB,EAG7E,CAAC;AACF,eAAO,MAAM,2BAA2B,GAAI,QAAQ,GAAG,KAAG,mBAAmB,EAG5E,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,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