@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.
Files changed (91) hide show
  1. package/LICENSE.md +7 -0
  2. package/README.md +88 -871
  3. package/dist/cjs/SwcAppEngine.js.map +2 -2
  4. package/dist/cjs/decorators/applyAttribute.js +194 -111
  5. package/dist/cjs/decorators/applyAttribute.js.map +2 -2
  6. package/dist/cjs/decorators/applyNode.js +82 -80
  7. package/dist/cjs/decorators/applyNode.js.map +2 -2
  8. package/dist/cjs/decorators/applyProperty.js +213 -0
  9. package/dist/cjs/decorators/applyProperty.js.map +7 -0
  10. package/dist/cjs/decorators/applySlot.js +93 -82
  11. package/dist/cjs/decorators/applySlot.js.map +3 -3
  12. package/dist/cjs/decorators/changedAttributeThis.js.map +1 -1
  13. package/dist/cjs/decorators/elementDefine.js +14 -34
  14. package/dist/cjs/decorators/elementDefine.js.map +2 -2
  15. package/dist/cjs/decorators/index.js +2 -2
  16. package/dist/cjs/decorators/index.js.map +2 -2
  17. package/dist/cjs/decorators/lifecycles.js +4 -4
  18. package/dist/cjs/decorators/lifecycles.js.map +2 -2
  19. package/dist/cjs/decorators/state.js +0 -1
  20. package/dist/cjs/decorators/state.js.map +2 -2
  21. package/dist/cjs/elements/SwcApp.js.map +2 -2
  22. package/dist/cjs/types/index.js.map +1 -1
  23. package/dist/esm/SwcAppEngine.js.map +2 -2
  24. package/dist/esm/decorators/applyAttribute.js +196 -113
  25. package/dist/esm/decorators/applyAttribute.js.map +2 -2
  26. package/dist/esm/decorators/applyNode.js +82 -80
  27. package/dist/esm/decorators/applyNode.js.map +2 -2
  28. package/dist/esm/decorators/applyProperty.js +194 -0
  29. package/dist/esm/decorators/applyProperty.js.map +7 -0
  30. package/dist/esm/decorators/applySlot.js +93 -82
  31. package/dist/esm/decorators/applySlot.js.map +3 -3
  32. package/dist/esm/decorators/changedAttributeThis.js.map +1 -1
  33. package/dist/esm/decorators/elementDefine.js +14 -34
  34. package/dist/esm/decorators/elementDefine.js.map +2 -2
  35. package/dist/esm/decorators/index.js +2 -2
  36. package/dist/esm/decorators/index.js.map +1 -1
  37. package/dist/esm/decorators/lifecycles.js +4 -4
  38. package/dist/esm/decorators/lifecycles.js.map +2 -2
  39. package/dist/esm/decorators/state.js +0 -1
  40. package/dist/esm/decorators/state.js.map +2 -2
  41. package/dist/esm/elements/SwcApp.js.map +2 -2
  42. package/dist/esm/types/index.js.map +1 -1
  43. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +525 -513
  44. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
  45. package/dist/types/SwcAppEngine.d.ts.map +1 -1
  46. package/dist/types/decorators/applyAttribute.d.ts +56 -15
  47. package/dist/types/decorators/applyAttribute.d.ts.map +1 -1
  48. package/dist/types/decorators/applyNode.d.ts +28 -24
  49. package/dist/types/decorators/applyNode.d.ts.map +1 -1
  50. package/dist/types/decorators/applyProperty.d.ts +61 -0
  51. package/dist/types/decorators/applyProperty.d.ts.map +1 -0
  52. package/dist/types/decorators/applySlot.d.ts +17 -15
  53. package/dist/types/decorators/applySlot.d.ts.map +1 -1
  54. package/dist/types/decorators/elementDefine.d.ts.map +1 -1
  55. package/dist/types/decorators/index.d.ts +2 -2
  56. package/dist/types/decorators/index.d.ts.map +1 -1
  57. package/dist/types/decorators/lifecycles.d.ts +4 -4
  58. package/dist/types/decorators/lifecycles.d.ts.map +1 -1
  59. package/dist/types/decorators/state.d.ts.map +1 -1
  60. package/dist/types/elements/SwcApp.d.ts.map +1 -1
  61. package/dist/types/types/index.d.ts +1 -6
  62. package/dist/types/types/index.d.ts.map +1 -1
  63. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +525 -513
  64. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
  65. package/package.json +1 -1
  66. package/src/SwcAppEngine.ts +1 -0
  67. package/src/decorators/applyAttribute.ts +311 -126
  68. package/src/decorators/applyNode.ts +108 -105
  69. package/src/decorators/applyProperty.ts +302 -0
  70. package/src/decorators/applySlot.ts +112 -94
  71. package/src/decorators/changedAttributeThis.ts +1 -1
  72. package/src/decorators/elementDefine.ts +44 -33
  73. package/src/decorators/index.ts +2 -3
  74. package/src/decorators/lifecycles.ts +6 -6
  75. package/src/decorators/state.ts +0 -1
  76. package/src/elements/SwcApp.ts +0 -1
  77. package/src/types/index.ts +7 -7
  78. package/dist/cjs/decorators/attribute.js +0 -187
  79. package/dist/cjs/decorators/attribute.js.map +0 -7
  80. package/dist/cjs/decorators/setProperty.js +0 -109
  81. package/dist/cjs/decorators/setProperty.js.map +0 -7
  82. package/dist/esm/decorators/attribute.js +0 -168
  83. package/dist/esm/decorators/attribute.js.map +0 -7
  84. package/dist/esm/decorators/setProperty.js +0 -90
  85. package/dist/esm/decorators/setProperty.js.map +0 -7
  86. package/dist/types/decorators/attribute.d.ts +0 -31
  87. package/dist/types/decorators/attribute.d.ts.map +0 -1
  88. package/dist/types/decorators/setProperty.d.ts +0 -17
  89. package/dist/types/decorators/setProperty.d.ts.map +0 -1
  90. package/src/decorators/attribute.ts +0 -223
  91. 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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update' | 'remove';
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 AttributeApplyMetadata {
10
+ export interface AttributeMetadata {
11
11
  propertyKey: string | symbol;
12
12
  selector: string;
13
- action: AttributeAction;
14
- options: AttributeApplyOptions;
13
+ targetAttributeName: string;
14
+ options: AttributeOptions;
15
+ type: 'property' | 'method';
15
16
  }
16
- export declare const ATTRIBUTE_APPLY_METADATA_KEY: unique symbol;
17
- export declare function applyAttribute(selector: string, action?: AttributeAction, options?: AttributeApplyOptions): MethodDecorator;
18
- export declare const setAttribute: (selector: string, nameOrOptions?: string | AttributeApplyOptions, options?: AttributeApplyOptions) => MethodDecorator;
19
- export declare const updateAttribute: (selector: string, nameOrOptions?: string | AttributeApplyOptions, options?: AttributeApplyOptions) => MethodDecorator;
20
- export declare const removeAttribute: (selector: string, nameOrOptions?: string | AttributeApplyOptions, options?: AttributeApplyOptions) => MethodDecorator;
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
- export declare const findAllAttributeApplyMetadata: (target: any) => Map<string | symbol, AttributeApplyMetadata>;
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,EAAmB,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE3E,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,4BAA4B,eAAqD,CAAC;AAoH/F,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAE,eAA0B,EAAE,OAAO,GAAE,qBAA0B,GAAG,eAAe,CAEzI;AAED,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,EAAE,gBAAgB,MAAM,GAAG,qBAAqB,EAAE,UAAS,qBAA0B,oBAAsE,CAAC;AACzM,eAAO,MAAM,eAAe,GAAI,UAAU,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AC;AAClF,wBAAgB,aAAa,CAAC,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAC5H,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAsB/F;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAAC;AACzH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAAC;AAK5F;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AACrF,wBAAgB,gBAAgB,CAAC,mBAAmB,EAAE,MAAM,EAAE,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 applyNodeThisReplaceChildren(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
33
- export declare function applyNodeThisReplaceChildren(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
34
- export declare function applyNodeThisReplaceChildrenLightDom(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
35
- export declare function applyNodeThisReplaceChildrenLightDom(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
36
- export declare function applyNodeThisBeforeEnd(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
37
- export declare function applyNodeThisBeforeEnd(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
38
- export declare function applyNodeThisBeforeEndLightDom(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
39
- export declare function applyNodeThisBeforeEndLightDom(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
40
- export declare function applyNodeThisBeforeEndShadow(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
41
- export declare function applyNodeThisBeforeEndShadow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
42
- export declare function applyNodeThisAfterBegin(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
43
- export declare function applyNodeThisAfterBegin(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
44
- export declare function applyNodeThisAfterBeginLightDom(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
45
- export declare function applyNodeThisAfterBeginLightDom(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
46
- export declare function applyThisInnerHtmlNode(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
47
- export declare function applyThisInnerHtmlNode(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
48
- export declare function applyThisInnerHtmlNodeLightDom(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
49
- export declare function applyThisInnerHtmlNodeLightDom(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
50
- export declare function applyThisReplaceChildrenNodeLightDom(options: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
51
- export declare function applyThisReplaceChildrenNodeLightDom(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
52
- export declare function applyNodeReplaceChildren(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
53
- export declare function applyNodeInnerHtml(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
54
- export declare function applyNodeInnerText(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
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,WA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,MAAM,EAAE,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAM,GAAG,eAAe,CAEvH;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAM,GAAG,eAAe,CAEjH;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAM,GAAG,eAAe,CAE/H;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAM,GAAG,eAAe,CAEhI;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAM,GAAG,eAAe,CAEjH;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAM,GAAG,eAAe,CAE/H;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAM,GAAG,eAAe,CAEhI;AAID,eAAO,MAAM,wBAAwB,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,iBAAiB,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,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE;QAAC,WAAW,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,aAAa,CAAA;KAAC,KAAK,OAAO,CAAC;CACxG;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,eAA8C,CAAC;AAMjF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,GAAG,EAAE,UAAU,MAAM,EAAE,SAAS,eAAe,KAAG,GAAG,EAoDjG,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAA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AC,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
- export type ApplySlotPosition = 'prependHtml' | 'prependText' | 'appendHtml' | 'appendText' | 'replaceChildrenHtml' | 'replaceChildrenText' | 'clear';
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?: ApplySlotPosition;
5
+ position: ApplySlotPosition;
6
+ fallback?: (helper: HelperHostSet) => string | Node;
4
7
  }
5
8
  export interface ApplySlotMetadata {
6
9
  propertyKey: string | symbol;
7
- id: string;
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(id: string, options?: ApplySlotOptions): MethodDecorator & PropertyDecorator;
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":"AAaA,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,qBAAqB,GAAG,qBAAqB,GAAG,OAAO,CAAC;AAEtJ,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAW9B;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC5B,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,eAAO,MAAM,uBAAuB,eAAgD,CAAC;AAyCrF;;GAEG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MA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O,CAAC,aAAa,CAAM,KAAG,cA2blD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export * from './addEventListener';
2
- export * from './attribute';
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 './setProperty';
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,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;AAC5B,cAAc,SAAS,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 onConnectedShadowDom(options: Omit<InnerHtmlOptions, 'useShadow'>): MethodDecorator;
43
- export declare function onConnectedShadowDom(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
44
- export declare function onConnectedLightDom(options: Omit<InnerHtmlOptions, 'useShadow'>): MethodDecorator;
45
- export declare function onConnectedLightDom(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
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;AAC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AG,IAAI,CAAC;AAWhH;;GAEG;AAEH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,GAAG,EAAE,aAAa,MAAM,KAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAG5F,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,QAAQ,GAAG,KAAG,iBAAiB,EAGzE,CAAC;AACF,eAAO,MAAM,gCAAgC,GAAI,QAAQ,GAAG,KAAG,mBAAmB,EAGjF,CAAC;AACF,eAAO,MAAM,+BAA+B,GAAI,QAAQ,GAAG,KAAG,mBAAmB,EAGhF,CAAC"}
@@ -1 +1 @@
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;AAiEvD,eAAO,MAAM,oBAAoB,GAAI,QAAQ,GAAG,KAAG,aAAa,EAG/D,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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F,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
- createSlotString(id: string): string;
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,sC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