@dooboostore/simple-web-component 1.0.38 → 1.0.40
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/LICENSE.md +7 -0
- package/README.md +88 -871
- package/dist/cjs/SwcAppEngine.js.map +2 -2
- package/dist/cjs/decorators/applyAttribute.js +194 -111
- package/dist/cjs/decorators/applyAttribute.js.map +2 -2
- package/dist/cjs/decorators/applyNode.js +82 -80
- package/dist/cjs/decorators/applyNode.js.map +2 -2
- package/dist/cjs/decorators/applyProperty.js +213 -0
- package/dist/cjs/decorators/applyProperty.js.map +7 -0
- package/dist/cjs/decorators/applySlot.js +93 -82
- package/dist/cjs/decorators/applySlot.js.map +3 -3
- package/dist/cjs/decorators/changedAttributeThis.js.map +1 -1
- package/dist/cjs/decorators/elementDefine.js +14 -34
- package/dist/cjs/decorators/elementDefine.js.map +2 -2
- package/dist/cjs/decorators/index.js +2 -2
- package/dist/cjs/decorators/index.js.map +2 -2
- package/dist/cjs/decorators/lifecycles.js +4 -4
- package/dist/cjs/decorators/lifecycles.js.map +2 -2
- package/dist/cjs/decorators/state.js +0 -1
- package/dist/cjs/decorators/state.js.map +2 -2
- package/dist/cjs/elements/SwcApp.js.map +2 -2
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/esm/SwcAppEngine.js.map +2 -2
- package/dist/esm/decorators/applyAttribute.js +196 -113
- package/dist/esm/decorators/applyAttribute.js.map +2 -2
- package/dist/esm/decorators/applyNode.js +82 -80
- package/dist/esm/decorators/applyNode.js.map +2 -2
- package/dist/esm/decorators/applyProperty.js +194 -0
- package/dist/esm/decorators/applyProperty.js.map +7 -0
- package/dist/esm/decorators/applySlot.js +93 -82
- package/dist/esm/decorators/applySlot.js.map +3 -3
- package/dist/esm/decorators/changedAttributeThis.js.map +1 -1
- package/dist/esm/decorators/elementDefine.js +14 -34
- package/dist/esm/decorators/elementDefine.js.map +2 -2
- package/dist/esm/decorators/index.js +2 -2
- package/dist/esm/decorators/index.js.map +1 -1
- package/dist/esm/decorators/lifecycles.js +4 -4
- package/dist/esm/decorators/lifecycles.js.map +2 -2
- package/dist/esm/decorators/state.js +0 -1
- package/dist/esm/decorators/state.js.map +2 -2
- package/dist/esm/elements/SwcApp.js.map +2 -2
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +525 -513
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
- package/dist/types/SwcAppEngine.d.ts.map +1 -1
- package/dist/types/decorators/applyAttribute.d.ts +56 -15
- package/dist/types/decorators/applyAttribute.d.ts.map +1 -1
- package/dist/types/decorators/applyNode.d.ts +28 -24
- package/dist/types/decorators/applyNode.d.ts.map +1 -1
- package/dist/types/decorators/applyProperty.d.ts +61 -0
- package/dist/types/decorators/applyProperty.d.ts.map +1 -0
- package/dist/types/decorators/applySlot.d.ts +17 -15
- package/dist/types/decorators/applySlot.d.ts.map +1 -1
- package/dist/types/decorators/elementDefine.d.ts.map +1 -1
- package/dist/types/decorators/index.d.ts +2 -2
- package/dist/types/decorators/index.d.ts.map +1 -1
- package/dist/types/decorators/lifecycles.d.ts +4 -4
- package/dist/types/decorators/lifecycles.d.ts.map +1 -1
- package/dist/types/decorators/state.d.ts.map +1 -1
- package/dist/types/elements/SwcApp.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +1 -6
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +525 -513
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
- package/package.json +1 -1
- package/src/SwcAppEngine.ts +1 -0
- package/src/decorators/applyAttribute.ts +311 -126
- package/src/decorators/applyNode.ts +108 -105
- package/src/decorators/applyProperty.ts +302 -0
- package/src/decorators/applySlot.ts +112 -94
- package/src/decorators/changedAttributeThis.ts +1 -1
- package/src/decorators/elementDefine.ts +44 -33
- package/src/decorators/index.ts +2 -3
- package/src/decorators/lifecycles.ts +6 -6
- package/src/decorators/state.ts +0 -1
- package/src/elements/SwcApp.ts +0 -1
- package/src/types/index.ts +7 -7
- package/dist/cjs/decorators/attribute.js +0 -187
- package/dist/cjs/decorators/attribute.js.map +0 -7
- package/dist/cjs/decorators/setProperty.js +0 -109
- package/dist/cjs/decorators/setProperty.js.map +0 -7
- package/dist/esm/decorators/attribute.js +0 -168
- package/dist/esm/decorators/attribute.js.map +0 -7
- package/dist/esm/decorators/setProperty.js +0 -90
- package/dist/esm/decorators/setProperty.js.map +0 -7
- package/dist/types/decorators/attribute.d.ts +0 -31
- package/dist/types/decorators/attribute.d.ts.map +0 -1
- package/dist/types/decorators/setProperty.d.ts +0 -17
- package/dist/types/decorators/setProperty.d.ts.map +0 -1
- package/src/decorators/attribute.ts +0 -223
- package/src/decorators/setProperty.ts +0 -112
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwcAppEngine.d.ts","sourceRoot":"","sources":["../../src/SwcAppEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAA0B,MAAM,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxF,OAAO,EAAE,eAAe,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAEvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,CAAC,CAAC;IAClF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,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AI,CAAC;IAC7C,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAChD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,4BAA4B,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,KAAI,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI,GAAG,MAAM,GAAG,GAAG,GAAG,wBAAwB,CAAC,EAAE,CAAC;IAEpI,uBAAuB,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,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;IA2CnC,UAAU;CAGX"}
|
|
@@ -1,26 +1,67 @@
|
|
|
1
1
|
import { SwcQueryOptions, HelperHostSet } from '../types';
|
|
2
|
-
export
|
|
3
|
-
export interface AttributeApplyOptions extends SwcQueryOptions {
|
|
2
|
+
export interface AttributeOptions extends SwcQueryOptions {
|
|
4
3
|
name?: string;
|
|
4
|
+
type?: typeof Number | typeof Boolean | typeof String;
|
|
5
5
|
filter?: (target: HTMLElement, value: any, meta: {
|
|
6
6
|
currentThis: any;
|
|
7
7
|
helper: HelperHostSet;
|
|
8
8
|
}) => boolean;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface AttributeMetadata {
|
|
11
11
|
propertyKey: string | symbol;
|
|
12
12
|
selector: string;
|
|
13
|
-
|
|
14
|
-
options:
|
|
13
|
+
targetAttributeName: string;
|
|
14
|
+
options: AttributeOptions;
|
|
15
|
+
type: 'property' | 'method';
|
|
15
16
|
}
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
export
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
export declare const ATTRIBUTE_METADATA_KEY: unique symbol;
|
|
18
|
+
declare const convertValue: (val: string | null, type: any) => any;
|
|
19
|
+
export { convertValue };
|
|
20
|
+
export declare const getAttributeValue: (inst: any, attrName: string, options?: AttributeOptions & {
|
|
21
|
+
selector?: string;
|
|
22
|
+
}) => any;
|
|
23
|
+
/**
|
|
24
|
+
* Resolve target elements based on selector and options
|
|
25
|
+
* Handles special selectors ($this, $host, etc.) and CSS selectors
|
|
26
|
+
* Returns HTMLElement[] for attribute operations
|
|
27
|
+
*/
|
|
28
|
+
export declare const resolveAttributeTargets: (inst: any, selector: string, options: AttributeOptions) => HTMLElement[];
|
|
29
|
+
/**
|
|
30
|
+
* @applyAttribute decorator - set/get element attributes
|
|
31
|
+
*
|
|
32
|
+
* Usage:
|
|
33
|
+
* - @applyAttribute('selector', 'attrName') - Set attribute with explicit name
|
|
34
|
+
* - @applyAttribute('selector') - Use property name as attribute name
|
|
35
|
+
* - @applyAttribute('selector', { name: 'attrName' }) - Set attribute via options
|
|
36
|
+
* - Return null to remove attribute
|
|
37
|
+
*/
|
|
38
|
+
export declare function applyAttribute(selector: string, targetAttributeName: string, options?: AttributeOptions): MethodDecorator & PropertyDecorator;
|
|
39
|
+
export declare function applyAttribute(selector: string, options?: AttributeOptions): MethodDecorator & PropertyDecorator;
|
|
40
|
+
/**
|
|
41
|
+
* @attribute - Alias for @applyAttribute
|
|
42
|
+
*/
|
|
43
|
+
export declare function attribute(selector: string, targetAttributeName: string, options?: AttributeOptions): MethodDecorator & PropertyDecorator;
|
|
44
|
+
export declare function attribute(selector: string, options?: AttributeOptions): MethodDecorator & PropertyDecorator;
|
|
45
|
+
/**
|
|
46
|
+
* @attributeThis - Apply attribute on $this element
|
|
47
|
+
* Can be used as: @attributeThis or @attributeThis('attrName') or @attributeThis({ name: 'attrName' })
|
|
48
|
+
*/
|
|
49
|
+
export declare function attributeThis(target: Object, propertyKey: string | symbol): void;
|
|
50
|
+
export declare function attributeThis(targetAttributeName: string, options?: AttributeOptions): MethodDecorator & PropertyDecorator;
|
|
51
|
+
export declare function attributeThis(options?: AttributeOptions): MethodDecorator & PropertyDecorator;
|
|
52
|
+
/**
|
|
53
|
+
* @setAttribute - Alias for @applyAttribute (method-decorator semantics)
|
|
54
|
+
*/
|
|
55
|
+
export declare function setAttribute(selector: string, targetAttributeName: string, options?: AttributeOptions): MethodDecorator;
|
|
56
|
+
export declare function setAttribute(selector: string, options?: AttributeOptions): MethodDecorator;
|
|
57
|
+
/**
|
|
58
|
+
* @setAttributeThis - Set attribute on $this element
|
|
59
|
+
* Can be used as: @setAttributeThis or @setAttributeThis('attrName') or @setAttributeThis({ name: 'attrName' })
|
|
60
|
+
*/
|
|
61
|
+
export declare function setAttributeThis(target: Object, propertyKey: string | symbol): void;
|
|
62
|
+
export declare function setAttributeThis(targetAttributeName: string, options?: AttributeOptions): MethodDecorator;
|
|
63
|
+
export declare function setAttributeThis(options?: AttributeOptions): MethodDecorator;
|
|
64
|
+
export declare const findAllAttributeMetadata: (target: any) => AttributeMetadata[];
|
|
65
|
+
export declare const findAllAttributeApplyMetadata: (target: any) => Map<string | symbol, AttributeMetadata>;
|
|
66
|
+
export default applyAttribute;
|
|
26
67
|
//# sourceMappingURL=applyAttribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyAttribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyAttribute.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"applyAttribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyAttribute.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAOxD,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,MAAM,GAAG,OAAO,OAAO,GAAG,OAAO,MAAM,CAAC;IACtD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE;QAAE,WAAW,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,aAAa,CAAA;KAAE,KAAK,OAAO,CAAC;CAC1G;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,sBAAsB,eAA+C,CAAC;AAMnF,QAAA,MAAM,YAAY,GAAI,KAAK,MAAM,GAAG,IAAI,EAAE,MAAM,GAAG,KAAG,GAKrD,CAAC;AAEF,OAAO,EAAC,YAAY,EAAC,CAAC;AAEtB,eAAO,MAAM,iBAAiB,GAAI,MAAM,GAAG,EAAE,UAAU,MAAM,EAAE,UAAU,gBAAgB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,GAkCnH,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAAI,MAAM,GAAG,EAAE,UAAU,MAAM,EAAE,SAAS,gBAAgB,KAAG,WAAW,EAgD3G,CAAC;AAEF;;;;;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AAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAAC;AAC3G,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAAC;AA0B9E,eAAO,MAAM,wBAAwB,GAAI,QAAQ,GAAG,KAAG,iBAAiB,EAGvE,CAAC;AAGF,eAAO,MAAM,6BAA6B,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,iBAAiB,CAMjG,CAAC;AAGF,eAAe,cAAc,CAAC"}
|
|
@@ -26,30 +26,34 @@ export declare const APPLY_NODE_METADATA_KEY: unique symbol;
|
|
|
26
26
|
* @applyNode decorator to surgically add/replace nodes to a target element.
|
|
27
27
|
*/
|
|
28
28
|
export declare function applyNode(selector: string, options?: ApplyNodeOptions): MethodDecorator;
|
|
29
|
-
export declare const findAllApplyNodeMetadata: (target: any) => Map<string | symbol, ApplyNodeMetadata>;
|
|
30
29
|
export declare function applyNodeThis(options: ApplyNodeOptions): MethodDecorator;
|
|
31
30
|
export declare function applyNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
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
|
|
39
|
-
export declare function
|
|
40
|
-
export declare function
|
|
41
|
-
export declare function
|
|
42
|
-
export declare function
|
|
43
|
-
export declare function
|
|
44
|
-
export declare function
|
|
45
|
-
export declare function
|
|
46
|
-
export declare function
|
|
47
|
-
export declare function
|
|
48
|
-
export declare function
|
|
49
|
-
export declare function
|
|
50
|
-
export declare function
|
|
51
|
-
export declare function
|
|
52
|
-
export declare function
|
|
53
|
-
export declare function
|
|
54
|
-
export declare function
|
|
31
|
+
export declare function replaceChildrenNodeThis(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
|
|
32
|
+
export declare function replaceChildrenNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
33
|
+
export declare function beforeEndNodeThis(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
|
|
34
|
+
export declare function beforeEndNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
35
|
+
export declare function beforeEndLightNodeThis(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
36
|
+
export declare function beforeEndLightNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
37
|
+
export declare function beforeEndShadowNodeThis(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
38
|
+
export declare function beforeEndShadowNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
39
|
+
export declare function afterBeginNodeThis(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
|
|
40
|
+
export declare function afterBeginNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
41
|
+
export declare function afterBeginLightNodeThis(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
42
|
+
export declare function afterBeginLightNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
43
|
+
export declare function innerHtmlNodeThis(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
|
|
44
|
+
export declare function innerHtmlNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
45
|
+
export declare function innerTextNodeThis(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
|
|
46
|
+
export declare function innerTextNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
47
|
+
export declare function innerHtmlLightNodeThis(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
48
|
+
export declare function innerHtmlLightNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
49
|
+
export declare function replaceChildrenLightNodeThis(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
50
|
+
export declare function replaceChildrenLightNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
51
|
+
export declare function replaceChildrenNode(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
|
|
52
|
+
export declare function innerHtmlNode(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
|
|
53
|
+
export declare function innerHtmlLightNode(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
54
|
+
export declare function innerHtmlShadowNode(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
55
|
+
export declare function innerTextNode(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
|
|
56
|
+
export declare function innerTextLightNode(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
57
|
+
export declare function innerTextShadowNode(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
|
|
58
|
+
export declare const findAllApplyNodeMetadata: (target: any) => Map<string | symbol, ApplyNodeMetadata>;
|
|
55
59
|
//# sourceMappingURL=applyNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyNode.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyNode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmC,aAAa,EAAE,WAAW,EAAC,MAAM,UAAU,CAAC;AAatF,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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,CAS5F,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { SwcQueryOptions, HelperHostSet } from '../types';
|
|
2
|
+
export interface PropertyOptions extends SwcQueryOptions {
|
|
3
|
+
name?: string | symbol;
|
|
4
|
+
filter?: (target: HTMLElement, value: any, meta: {
|
|
5
|
+
currentThis: any;
|
|
6
|
+
helper: HelperHostSet;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PropertyMetadata {
|
|
10
|
+
propertyKey: string | symbol;
|
|
11
|
+
selector: string;
|
|
12
|
+
targetPropertyKey: string | symbol;
|
|
13
|
+
options: PropertyOptions;
|
|
14
|
+
type: 'property' | 'method';
|
|
15
|
+
}
|
|
16
|
+
export declare const PROPERTY_METADATA_KEY: unique symbol;
|
|
17
|
+
/**
|
|
18
|
+
* Resolve target elements based on selector and options
|
|
19
|
+
* Handles special selectors ($this, $host, etc.) and CSS selectors
|
|
20
|
+
* Returns HTMLElement[] but can include Window and Document for property access
|
|
21
|
+
*/
|
|
22
|
+
export declare const resolvePropertyTargets: (inst: any, selector: string, options: PropertyOptions) => any[];
|
|
23
|
+
/**
|
|
24
|
+
* @applyProperty decorator - set/get element properties
|
|
25
|
+
*
|
|
26
|
+
* Usage:
|
|
27
|
+
* - @applyProperty('selector', 'propertyName') - Set property with explicit name
|
|
28
|
+
* - @applyProperty('selector') - Use property name as target property name
|
|
29
|
+
* - @applyProperty('selector', { name: 'propertyName' }) - Set property via options
|
|
30
|
+
* - Return null/undefined to skip setting
|
|
31
|
+
*/
|
|
32
|
+
export declare function applyProperty(selector: string, targetPropertyKey: string | symbol, options?: PropertyOptions): MethodDecorator & PropertyDecorator;
|
|
33
|
+
export declare function applyProperty(selector: string, options?: PropertyOptions): MethodDecorator & PropertyDecorator;
|
|
34
|
+
/**
|
|
35
|
+
* @property - Alias for @applyProperty
|
|
36
|
+
*/
|
|
37
|
+
export declare function property(selector: string, targetPropertyKey: string | symbol, options?: PropertyOptions): MethodDecorator & PropertyDecorator;
|
|
38
|
+
export declare function property(selector: string, options?: PropertyOptions): MethodDecorator & PropertyDecorator;
|
|
39
|
+
/**
|
|
40
|
+
* @propertyThis - Apply property on $this element
|
|
41
|
+
* Can be used as: @propertyThis or @propertyThis('propertyName') or @propertyThis({ name: 'propertyName' })
|
|
42
|
+
*/
|
|
43
|
+
export declare function propertyThis(target: Object, propertyKey: string | symbol): void;
|
|
44
|
+
export declare function propertyThis(targetPropertyKey: string | symbol, options?: PropertyOptions): MethodDecorator & PropertyDecorator;
|
|
45
|
+
export declare function propertyThis(options?: PropertyOptions): MethodDecorator & PropertyDecorator;
|
|
46
|
+
/**
|
|
47
|
+
* @setProperty - Alias for @applyProperty (method-decorator semantics)
|
|
48
|
+
*/
|
|
49
|
+
export declare function setProperty(selector: string, targetPropertyKey: string | symbol, options?: PropertyOptions): MethodDecorator;
|
|
50
|
+
export declare function setProperty(selector: string, options?: PropertyOptions): MethodDecorator;
|
|
51
|
+
/**
|
|
52
|
+
* @setPropertyThis - Set property on $this element
|
|
53
|
+
* Can be used as: @setPropertyThis or @setPropertyThis('propertyName') or @setPropertyThis({ name: 'propertyName' })
|
|
54
|
+
*/
|
|
55
|
+
export declare function setPropertyThis(target: Object, propertyKey: string | symbol): void;
|
|
56
|
+
export declare function setPropertyThis(targetPropertyKey: string | symbol, options?: PropertyOptions): MethodDecorator;
|
|
57
|
+
export declare function setPropertyThis(options?: PropertyOptions): MethodDecorator;
|
|
58
|
+
export declare const findAllPropertyMetadata: (target: any) => PropertyMetadata[];
|
|
59
|
+
export declare const findAllPropertyApplyMetadata: (target: any) => Map<string | symbol, PropertyMetadata>;
|
|
60
|
+
export default applyProperty;
|
|
61
|
+
//# sourceMappingURL=applyProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyProperty.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyProperty.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAA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AK3G;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AACjF,wBAAgB,YAAY,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,iBAAiB,CAAC;AACjI,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAsB7F;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CAAC;AAC9H,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CAAC;AAK1F;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AACpF,wBAAgB,eAAe,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CAAC;AAChH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CAAC;AA4B5E,eAAO,MAAM,uBAAuB,GAAI,QAAQ,GAAG,KAAG,gBAAgB,EAGrE,CAAC;AAGF,eAAO,MAAM,4BAA4B,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,gBAAgB,CAM/F,CAAC;AAGF,eAAe,aAAa,CAAC"}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import { OptionalType } from '@dooboostore/core';
|
|
2
|
+
import { HelperHostSet } from "../types";
|
|
3
|
+
export type ApplySlotPosition = 'prepend' | 'prependHtml' | 'prependText' | 'append' | 'appendHtml' | 'appendText' | 'replaceChildren' | 'replaceChildrenHtml' | 'replaceChildrenText' | 'clear';
|
|
2
4
|
export interface ApplySlotOptions {
|
|
3
|
-
position
|
|
5
|
+
position: ApplySlotPosition;
|
|
6
|
+
fallback?: (helper: HelperHostSet) => string | Node;
|
|
4
7
|
}
|
|
5
8
|
export interface ApplySlotMetadata {
|
|
6
9
|
propertyKey: string | symbol;
|
|
7
|
-
|
|
8
|
-
type: 'method' | 'property';
|
|
10
|
+
targetId: string;
|
|
9
11
|
options: ApplySlotOptions;
|
|
10
12
|
}
|
|
11
13
|
export declare const APPLY_SLOT_METADATA_KEY: unique symbol;
|
|
12
14
|
/**
|
|
13
15
|
* @applyNode decorator to surgically add/replace nodes to a target element.
|
|
14
16
|
*/
|
|
15
|
-
export declare function applySlot(
|
|
17
|
+
export declare function applySlot(targetId: string, opt: OptionalType<ApplySlotOptions, 'position'>): MethodDecorator;
|
|
18
|
+
export declare function clearSlot(targetId: string): MethodDecorator;
|
|
19
|
+
export declare function prependHtmlSlot(targetId: string): MethodDecorator;
|
|
20
|
+
export declare function prependSlot(targetId: string): MethodDecorator;
|
|
21
|
+
export declare function prependTextSlot(targetId: string): MethodDecorator;
|
|
22
|
+
export declare function appendHtmlSlot(targetId: string): MethodDecorator;
|
|
23
|
+
export declare function appendTextSlot(targetId: string): MethodDecorator;
|
|
24
|
+
export declare function appendSlot(targetId: string): MethodDecorator;
|
|
25
|
+
export declare function replaceChildrenHtmlSlot(targetId: string): MethodDecorator;
|
|
26
|
+
export declare function replaceChildrenSlot(targetId: string): MethodDecorator;
|
|
27
|
+
export declare function replaceChildrenTextSlot(targetId: string): MethodDecorator;
|
|
16
28
|
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
29
|
//# sourceMappingURL=applySlot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applySlot.d.ts","sourceRoot":"","sources":["../../../src/decorators/applySlot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applySlot.d.ts","sourceRoot":"","sources":["../../../src/decorators/applySlot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAe,MAAM,mBAAmB,CAAC;AAI7D,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAUvC,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,qBAAqB,GAAG,OAAO,CAAC;AAEjM,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,MAAM,GAAG,IAAI,CAAC;CAWrD;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IAEjB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,eAAO,MAAM,uBAAuB,eAAgD,CAAC;AAsDrF;;GAEG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,CAAC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,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,
|
|
1
|
+
{"version":3,"file":"elementDefine.d.ts","sourceRoot":"","sources":["../../../src/decorators/elementDefine.ts"],"names":[],"mappings":"AAoBA,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,SA8FnC,CAAC;AAyLF,eAAO,MAAM,aAAa,GACvB,MAAM,MAAM,EAAE,SAAQ,OAAO,CAAC,aAAa,CAAM,KAAG,cA2blD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './addEventListener';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './applyAttribute';
|
|
3
3
|
export * from './elementDefine';
|
|
4
4
|
export * from './changedAttributeThis';
|
|
5
5
|
export * from './emitCustomEvent';
|
|
@@ -10,7 +10,7 @@ export * from './queryAll';
|
|
|
10
10
|
export * from './applyClass';
|
|
11
11
|
export * from './applyStyle';
|
|
12
12
|
export * from './applyAttribute';
|
|
13
|
-
export * from './
|
|
13
|
+
export * from './applyProperty';
|
|
14
14
|
export * from './subscribeSwcAppRouteChangeWhileConnected';
|
|
15
15
|
export * from './subscribeSwcAppMessageWhileConnected';
|
|
16
16
|
export * from './publishSwcAppMessage';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,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,iBAAiB,CAAC;AAChC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -39,10 +39,10 @@ export declare const onAdopted: MethodDecorator;
|
|
|
39
39
|
export declare const onAddEventListener: MethodDecorator;
|
|
40
40
|
export declare const onConnectedSwcApp: MethodDecorator;
|
|
41
41
|
export declare const onConnectedCompleted: MethodDecorator;
|
|
42
|
-
export declare function
|
|
43
|
-
export declare function
|
|
44
|
-
export declare function
|
|
45
|
-
export declare function
|
|
42
|
+
export declare function onConnectedShadow(options: Omit<InnerHtmlOptions, 'useShadow'>): MethodDecorator;
|
|
43
|
+
export declare function onConnectedShadow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
44
|
+
export declare function onConnectedLight(options: Omit<InnerHtmlOptions, 'useShadow'>): MethodDecorator;
|
|
45
|
+
export declare function onConnectedLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
46
46
|
export declare function onConnected(options: InnerHtmlOptions): MethodDecorator;
|
|
47
47
|
export declare function onConnected(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
48
48
|
/**
|
|
@@ -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,yBAAyB,eAAqC,CAAC;AAC5E,eAAO,MAAM,iCAAiC,eAA0D,CAAC;AACzG,eAAO,MAAM,mCAAmC,eAAkD,CAAC;AAEnG,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AACD,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,OAAO,EAAE,k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,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,kBAAkB,eAA2C,CAAC;AAI3E,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAC1E,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/decorators/state.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,kBAAkB,eAA2C,CAAC;AAI3E,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAC1E,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAAC;AAgEvD,eAAO,MAAM,oBAAoB,GAAI,QAAQ,GAAG,KAAG,aAAa,EAG/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwcApp.d.ts","sourceRoot":"","sources":["../../../src/elements/SwcApp.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAEzC,OAAO,EAA0B,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AAK5E,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,EAAE,OAAO,mBAAmB,oBAE3D,CAAC;AAEF,eAAO,MAAM,YAAY,GAAU,GAAG,MAAM,sCAU3C,CAAC;AAKF,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD,eAAO,MAAM,UAAU,GAAI,GAAG,MA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,MAAM,EAAE,OAAO,mBAAmB,kCAElE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,GAAG,MAAM,sCAUlD,CAAC;AAKF,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AAEpD,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,EAAE,OAAO,mBAAmB,kCAEjE,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAU,GAAG,MAAM,sCAUjD,CAAC;AAKF,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AAEpD,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,EAAE,OAAO,mBAAmB,kCAEjE,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAU,GAAG,MAAM,sCAUjD,CAAC;AAKF,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAE9C,eAAO,MAAM,SAAS,GAAI,GAAG,MAAM,EAAE,OAAO,mBAAmB,kCAE9D,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,GAAG,MAAM,sCAU9C,CAAC;AAKF,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,eAAO,MAAM,WAAW,GAAI,GAAG,MAAM,EAAE,OAAO,mBAAmB,kCAEhE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,GAAG,MAAM,sCAUhD,CAAC;AAKF,eAAO,MAAM,eAAe,OA3MU,MAAM,yCAsN3C,CAAC;AAKF,eAAO,MAAM,eAAe,GAAU,GAAG,MAAM,sCAG9C,CAAC;AAGF,eAAe,eAAe,CAAC"}
|
|
@@ -56,11 +56,6 @@ export interface SwcAppInterface extends HTMLElement {
|
|
|
56
56
|
publishMessage(message: SwcAppMessage): void;
|
|
57
57
|
}
|
|
58
58
|
export interface SwcElement {
|
|
59
|
-
|
|
60
|
-
createEaHtml(id: string, script: string): string;
|
|
61
|
-
createEaText(id: string, script: string): string;
|
|
62
|
-
createEaAttribute(id: string, attributeName: string): string;
|
|
63
|
-
createEaEvent(id: string, eventName: string): string;
|
|
64
|
-
createEaProperty(id: string, propertyName: string): string;
|
|
59
|
+
_swcId: string;
|
|
65
60
|
}
|
|
66
61
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,sBAAsB,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAEtE,oBAAY,mBAAmB;IAC7B,QAAQ,mCAAmC;IAC3C,QAAQ,mCAAmC;IAC3C,SAAS,oCAAoC;IAC7C,IAAI,gCAAgC;IACpC,WAAW,sCAAsC;IACjD,KAAK,iCAAiC;IACtC,UAAU,qCAAqC;IAC/C,SAAS,oCAAoC;IAC7C,cAAc,wCAAwC;IACtD,aAAa,uCAAuC;CACrD;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,eAAe,GAAG,cAAc,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEhL,MAAM,MAAM,eAAe,GAAG;IAAE,IAAI,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAErD,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,QAAQ,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,KAAK,WAAW,GAAG,IAAI,CAAC;IACrF,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,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