@dooboostore/simple-web-component 1.0.42 → 1.0.44

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 (153) hide show
  1. package/README.md +689 -85
  2. package/dist/cjs/SwcAppEngine.js +3 -1
  3. package/dist/cjs/SwcAppEngine.js.map +2 -2
  4. package/dist/cjs/decorators/addEventListener.js +10 -0
  5. package/dist/cjs/decorators/addEventListener.js.map +2 -2
  6. package/dist/cjs/decorators/applyAttribute.js +41 -30
  7. package/dist/cjs/decorators/applyAttribute.js.map +2 -2
  8. package/dist/cjs/decorators/applyClass.js +66 -23
  9. package/dist/cjs/decorators/applyClass.js.map +3 -3
  10. package/dist/cjs/decorators/applyNode.js +176 -107
  11. package/dist/cjs/decorators/applyNode.js.map +2 -2
  12. package/dist/cjs/decorators/applyProperty.js +21 -30
  13. package/dist/cjs/decorators/applyProperty.js.map +2 -2
  14. package/dist/cjs/decorators/applySlot.js +11 -2
  15. package/dist/cjs/decorators/applySlot.js.map +2 -2
  16. package/dist/cjs/decorators/applyStyle.js +48 -17
  17. package/dist/cjs/decorators/applyStyle.js.map +3 -3
  18. package/dist/cjs/decorators/{changedAttributeThis.js → changedAttribute.js} +6 -6
  19. package/dist/cjs/decorators/changedAttribute.js.map +7 -0
  20. package/dist/cjs/decorators/elementDefine.js +37 -6
  21. package/dist/cjs/decorators/elementDefine.js.map +3 -3
  22. package/dist/cjs/decorators/emitCustomEvent.js +58 -42
  23. package/dist/cjs/decorators/emitCustomEvent.js.map +2 -2
  24. package/dist/cjs/decorators/index.js +1 -1
  25. package/dist/cjs/decorators/index.js.map +2 -2
  26. package/dist/cjs/decorators/publishSwcAppMessage.js +37 -23
  27. package/dist/cjs/decorators/publishSwcAppMessage.js.map +3 -3
  28. package/dist/cjs/decorators/query.js +96 -145
  29. package/dist/cjs/decorators/query.js.map +3 -3
  30. package/dist/cjs/decorators/queryAll.js +104 -131
  31. package/dist/cjs/decorators/queryAll.js.map +3 -3
  32. package/dist/cjs/decorators/subscribeSwcAppMessageWhileConnected.js +2 -0
  33. package/dist/cjs/decorators/subscribeSwcAppMessageWhileConnected.js.map +2 -2
  34. package/dist/cjs/decorators/subscribeSwcAppRouteChangeWhileConnected.js +2 -0
  35. package/dist/cjs/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +2 -2
  36. package/dist/cjs/elements/SwcAppMixin.js +17 -2
  37. package/dist/cjs/elements/SwcAppMixin.js.map +2 -2
  38. package/dist/cjs/examples/RxJSOperatorsExample.js +285 -0
  39. package/dist/cjs/examples/RxJSOperatorsExample.js.map +7 -0
  40. package/dist/cjs/index.js +1 -0
  41. package/dist/cjs/index.js.map +2 -2
  42. package/dist/cjs/router/ElementRouter.js +4 -0
  43. package/dist/cjs/router/ElementRouter.js.map +2 -2
  44. package/dist/esm/SwcAppEngine.js +3 -1
  45. package/dist/esm/SwcAppEngine.js.map +2 -2
  46. package/dist/esm/decorators/addEventListener.js +10 -0
  47. package/dist/esm/decorators/addEventListener.js.map +2 -2
  48. package/dist/esm/decorators/applyAttribute.js +41 -30
  49. package/dist/esm/decorators/applyAttribute.js.map +2 -2
  50. package/dist/esm/decorators/applyClass.js +66 -23
  51. package/dist/esm/decorators/applyClass.js.map +3 -3
  52. package/dist/esm/decorators/applyNode.js +176 -107
  53. package/dist/esm/decorators/applyNode.js.map +2 -2
  54. package/dist/esm/decorators/applyProperty.js +21 -30
  55. package/dist/esm/decorators/applyProperty.js.map +2 -2
  56. package/dist/esm/decorators/applySlot.js +11 -2
  57. package/dist/esm/decorators/applySlot.js.map +2 -2
  58. package/dist/esm/decorators/applyStyle.js +48 -17
  59. package/dist/esm/decorators/applyStyle.js.map +3 -3
  60. package/dist/esm/decorators/{changedAttributeThis.js → changedAttribute.js} +3 -3
  61. package/dist/esm/decorators/changedAttribute.js.map +7 -0
  62. package/dist/esm/decorators/elementDefine.js +35 -4
  63. package/dist/esm/decorators/elementDefine.js.map +2 -2
  64. package/dist/esm/decorators/emitCustomEvent.js +58 -42
  65. package/dist/esm/decorators/emitCustomEvent.js.map +2 -2
  66. package/dist/esm/decorators/index.js +1 -1
  67. package/dist/esm/decorators/index.js.map +1 -1
  68. package/dist/esm/decorators/publishSwcAppMessage.js +37 -23
  69. package/dist/esm/decorators/publishSwcAppMessage.js.map +3 -3
  70. package/dist/esm/decorators/query.js +96 -145
  71. package/dist/esm/decorators/query.js.map +3 -3
  72. package/dist/esm/decorators/queryAll.js +104 -131
  73. package/dist/esm/decorators/queryAll.js.map +3 -3
  74. package/dist/esm/decorators/subscribeSwcAppMessageWhileConnected.js +2 -0
  75. package/dist/esm/decorators/subscribeSwcAppMessageWhileConnected.js.map +2 -2
  76. package/dist/esm/decorators/subscribeSwcAppRouteChangeWhileConnected.js +2 -0
  77. package/dist/esm/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +2 -2
  78. package/dist/esm/elements/SwcAppMixin.js +18 -3
  79. package/dist/esm/elements/SwcAppMixin.js.map +2 -2
  80. package/dist/esm/examples/RxJSOperatorsExample.js +266 -0
  81. package/dist/esm/examples/RxJSOperatorsExample.js.map +7 -0
  82. package/dist/esm/index.js +1 -0
  83. package/dist/esm/index.js.map +2 -2
  84. package/dist/esm/router/ElementRouter.js +4 -0
  85. package/dist/esm/router/ElementRouter.js.map +2 -2
  86. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +900 -578
  87. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
  88. package/dist/types/SwcAppEngine.d.ts.map +1 -1
  89. package/dist/types/decorators/addEventListener.d.ts +22 -14
  90. package/dist/types/decorators/addEventListener.d.ts.map +1 -1
  91. package/dist/types/decorators/applyAttribute.d.ts +61 -20
  92. package/dist/types/decorators/applyAttribute.d.ts.map +1 -1
  93. package/dist/types/decorators/applyClass.d.ts +22 -36
  94. package/dist/types/decorators/applyClass.d.ts.map +1 -1
  95. package/dist/types/decorators/applyNode.d.ts +178 -30
  96. package/dist/types/decorators/applyNode.d.ts.map +1 -1
  97. package/dist/types/decorators/applyProperty.d.ts +53 -18
  98. package/dist/types/decorators/applyProperty.d.ts.map +1 -1
  99. package/dist/types/decorators/applySlot.d.ts +6 -0
  100. package/dist/types/decorators/applySlot.d.ts.map +1 -1
  101. package/dist/types/decorators/applyStyle.d.ts +13 -7
  102. package/dist/types/decorators/applyStyle.d.ts.map +1 -1
  103. package/dist/types/decorators/{changedAttributeThis.d.ts → changedAttribute.d.ts} +2 -2
  104. package/dist/types/decorators/changedAttribute.d.ts.map +1 -0
  105. package/dist/types/decorators/elementDefine.d.ts.map +1 -1
  106. package/dist/types/decorators/emitCustomEvent.d.ts +20 -10
  107. package/dist/types/decorators/emitCustomEvent.d.ts.map +1 -1
  108. package/dist/types/decorators/index.d.ts +1 -1
  109. package/dist/types/decorators/index.d.ts.map +1 -1
  110. package/dist/types/decorators/publishSwcAppMessage.d.ts +19 -0
  111. package/dist/types/decorators/publishSwcAppMessage.d.ts.map +1 -1
  112. package/dist/types/decorators/query.d.ts +3 -26
  113. package/dist/types/decorators/query.d.ts.map +1 -1
  114. package/dist/types/decorators/queryAll.d.ts +3 -20
  115. package/dist/types/decorators/queryAll.d.ts.map +1 -1
  116. package/dist/types/decorators/subscribeSwcAppMessageWhileConnected.d.ts +1 -0
  117. package/dist/types/decorators/subscribeSwcAppMessageWhileConnected.d.ts.map +1 -1
  118. package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts +2 -0
  119. package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts.map +1 -1
  120. package/dist/types/elements/SwcAppMixin.d.ts +4 -4
  121. package/dist/types/elements/SwcAppMixin.d.ts.map +1 -1
  122. package/dist/types/examples/RxJSOperatorsExample.d.ts +94 -0
  123. package/dist/types/examples/RxJSOperatorsExample.d.ts.map +1 -0
  124. package/dist/types/index.d.ts +1 -0
  125. package/dist/types/index.d.ts.map +1 -1
  126. package/dist/types/router/ElementRouter.d.ts.map +1 -1
  127. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +900 -578
  128. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
  129. package/package.json +7 -9
  130. package/src/SwcAppEngine.ts +3 -1
  131. package/src/decorators/addEventListener.ts +35 -24
  132. package/src/decorators/applyAttribute.ts +167 -65
  133. package/src/decorators/applyClass.ts +113 -17
  134. package/src/decorators/applyNode.ts +383 -102
  135. package/src/decorators/applyProperty.ts +99 -65
  136. package/src/decorators/applySlot.ts +24 -10
  137. package/src/decorators/applyStyle.ts +83 -13
  138. package/src/decorators/{changedAttributeThis.ts → changedAttribute.ts} +1 -1
  139. package/src/decorators/elementDefine.ts +47 -4
  140. package/src/decorators/emitCustomEvent.ts +62 -35
  141. package/src/decorators/index.ts +1 -1
  142. package/src/decorators/publishSwcAppMessage.ts +71 -27
  143. package/src/decorators/query.ts +90 -159
  144. package/src/decorators/queryAll.ts +92 -134
  145. package/src/decorators/subscribeSwcAppMessageWhileConnected.ts +1 -0
  146. package/src/decorators/subscribeSwcAppRouteChangeWhileConnected.ts +3 -1
  147. package/src/elements/SwcAppMixin.ts +43 -24
  148. package/src/examples/RxJSOperatorsExample.ts +279 -0
  149. package/src/index.ts +2 -0
  150. package/src/router/ElementRouter.ts +4 -0
  151. package/dist/cjs/decorators/changedAttributeThis.js.map +0 -7
  152. package/dist/esm/decorators/changedAttributeThis.js.map +0 -7
  153. package/dist/types/decorators/changedAttributeThis.d.ts.map +0 -1
@@ -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,EA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,MAAM,kBAET;IAEK,OAAO,CAAC,MAAM,EAAE,aAAa;IA6CnC,UAAU;CAGX"}
@@ -1,5 +1,5 @@
1
1
  import { SpecialSelector, SwcQueryOptions, HelperHostSet } from '../types';
2
- export interface AddEventListenerBaseOptions extends EventListenerOptions {
2
+ export interface AddEventListenerBaseOptions<TEvent extends Event = Event> extends EventListenerOptions {
3
3
  capture?: boolean;
4
4
  once?: boolean;
5
5
  passive?: boolean;
@@ -11,33 +11,41 @@ export interface AddEventListenerBaseOptions extends EventListenerOptions {
11
11
  currentThis: any;
12
12
  helper: HelperHostSet;
13
13
  }) => boolean;
14
+ debounceTime?: number;
15
+ throttleTime?: number;
16
+ distinctUntilChanged?: boolean | ((prev: TEvent, curr: TEvent) => boolean);
14
17
  }
15
- export interface AddEventListenerMetadata {
18
+ export interface AddEventListenerMetadata<TEvent extends Event = Event> {
16
19
  propertyKey: string | symbol;
17
20
  selector: string;
18
21
  type: string;
19
- options: AddEventListenerBaseOptions & SwcQueryOptions & {
22
+ options: AddEventListenerBaseOptions<TEvent> & SwcQueryOptions & {
20
23
  delegate?: boolean;
21
24
  };
22
25
  }
23
26
  export declare const ADD_EVENT_LISTENER_METADATA_KEY: unique symbol;
24
- export declare function addEventListener(target: SpecialSelector, type: string, options?: AddEventListenerBaseOptions): MethodDecorator;
25
- export declare function addEventListener(selector: string, type: string, options?: AddEventListenerBaseOptions & SwcQueryOptions & {
27
+ export declare function addEventListener<TEvent extends Event = Event>(target: SpecialSelector, type: string, options?: AddEventListenerBaseOptions<TEvent>): MethodDecorator;
28
+ export declare function addEventListener<TEvent extends Event = Event>(selector: string, type: string, options?: AddEventListenerBaseOptions<TEvent> & SwcQueryOptions & {
26
29
  delegate?: boolean;
27
30
  }): MethodDecorator;
28
- export declare function addEventListenerDelegateLightDom(selector: string, type: string, options?: Omit<AddEventListenerBaseOptions, 'delegate'>): MethodDecorator;
29
- export declare function addEventListenerDelegateShadowDom(selector: string, type: string, options?: Omit<AddEventListenerBaseOptions, 'delegate'>): MethodDecorator;
30
- export declare function addEventListenerDelegateAllDom(selector: string, type: string, options?: Omit<AddEventListenerBaseOptions, 'delegate'>): MethodDecorator;
31
- export declare function addEventListenerDelegate(selector: string, type: string, options?: Omit<AddEventListenerBaseOptions, 'delegate'>): MethodDecorator;
31
+ export declare function addEventListenerDelegateLightDom<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerBaseOptions<TEvent>, 'delegate'>): MethodDecorator;
32
+ export declare function addEventListenerDelegateShadowDom<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerBaseOptions<TEvent>, 'delegate'>): MethodDecorator;
33
+ export declare function addEventListenerDelegateAllDom<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerBaseOptions<TEvent>, 'delegate'>): MethodDecorator;
34
+ export declare function addEventListenerDelegate<TEvent extends Event = Event>(selector: string, type: string, options?: Omit<AddEventListenerBaseOptions<TEvent>, 'delegate'>): MethodDecorator;
32
35
  /**
33
36
  * @addEventListenerThis decorator - simplified version of @addEventListener for $this selector
34
37
  */
35
- export declare function addEventListenerThis(type: string, options?: AddEventListenerBaseOptions & SwcQueryOptions): MethodDecorator;
38
+ export declare const event: typeof addEventListener;
39
+ export declare const eventDelegateLightDom: typeof addEventListenerDelegateLightDom;
40
+ export declare const eventDelegateShadowDom: typeof addEventListenerDelegateShadowDom;
41
+ export declare const eventDelegateAllDom: typeof addEventListenerDelegateAllDom;
42
+ export declare const eventDelegate: typeof addEventListenerDelegate;
43
+ export declare function addEventListenerThis<TEvent extends Event = Event>(type: string, options?: AddEventListenerBaseOptions<TEvent> & SwcQueryOptions): MethodDecorator;
36
44
  /**
37
45
  * @addEventListenerAppHost decorator - simplified version of @addEventListener for $appHost selector
38
46
  */
39
- export declare function addEventListenerAppHost(type: string, options?: AddEventListenerBaseOptions & SwcQueryOptions): MethodDecorator;
40
- export declare function addEventListenerWindow(type: string, options?: AddEventListenerBaseOptions & SwcQueryOptions): MethodDecorator;
41
- export declare function addEventListenerDocument(type: string, options?: AddEventListenerBaseOptions & SwcQueryOptions): MethodDecorator;
42
- export declare const getAddEventListenerMetadata: (target: any) => AddEventListenerMetadata[] | undefined;
47
+ export declare function addEventListenerAppHost<TEvent extends Event = Event>(type: string, options?: AddEventListenerBaseOptions<TEvent> & SwcQueryOptions): MethodDecorator;
48
+ export declare function addEventListenerWindow<TEvent extends Event = Event>(type: string, options?: AddEventListenerBaseOptions<TEvent> & SwcQueryOptions): MethodDecorator;
49
+ export declare function addEventListenerDocument<TEvent extends Event = Event>(type: string, options?: AddEventListenerBaseOptions<TEvent> & SwcQueryOptions): MethodDecorator;
50
+ export declare const getAddEventListenerMetadata: (target: any) => AddEventListenerMetadata<Event>[] | undefined;
43
51
  //# 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;IAEzB,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,CAA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,eAAe,CAErK;AAED,eAAO,MAAM,2BAA2B,GAAI,QAAQ,GAAG,KAAG,wBAAwB,CAAC,KAAK,CAAC,EAAE,GAAG,SAG7F,CAAC"}
@@ -6,6 +6,32 @@ export interface AttributeOptions extends SwcQueryOptions {
6
6
  currentThis: any;
7
7
  helper: HelperHostSet;
8
8
  }) => boolean;
9
+ /**
10
+ * Custom key to extract value from return object.
11
+ * If not provided, uses ATTRIBUTE_METADATA_KEY by default.
12
+ * Useful when multiple @setAttribute decorators are on the same method.
13
+ *
14
+ * Example:
15
+ * @setAttribute('selector1', { valueKey: 'attr1' })
16
+ * @setAttribute('selector2', { valueKey: 'attr2' })
17
+ * myMethod() {
18
+ * return {
19
+ * attr1: 'value1',
20
+ * attr2: 'value2'
21
+ * };
22
+ * }
23
+ *
24
+ * Or with symbols:
25
+ * @setAttribute('selector1', { valueKey: Symbol.for('attr1') })
26
+ * @setAttribute('selector2', { valueKey: Symbol.for('attr2') })
27
+ * myMethod() {
28
+ * return {
29
+ * [Symbol.for('attr1')]: 'value1',
30
+ * [Symbol.for('attr2')]: 'value2'
31
+ * };
32
+ * }
33
+ */
34
+ valueKey?: symbol | string;
9
35
  }
10
36
  export interface AttributeMetadata {
11
37
  propertyKey: string | symbol;
@@ -38,29 +64,44 @@ export declare const resolveAttributeTargets: (inst: any, selector: string, opti
38
64
  export declare function applyAttribute(selector: string, targetAttributeName: string, options?: AttributeOptions): MethodDecorator & PropertyDecorator;
39
65
  export declare function applyAttribute(selector: string, options?: AttributeOptions): MethodDecorator & PropertyDecorator;
40
66
  /**
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)
67
+ * @attribute - Field decorator for binding element attributes (read/write)
68
+ *
69
+ * Intelligently distinguishes between attribute names and CSS selectors:
70
+ *
71
+ * Usage patterns:
72
+ * - @attribute('product-id') - Attribute name on $this (auto-detected)
73
+ * - @attribute('#user', 'product-id') - Attribute name on selector
74
+ * - @attribute('product-id', options) - Attribute name on $this with options
75
+ * - @attribute('#user', 'product-id', options) - Attribute name on selector with options
76
+ * - @attribute - Bare decorator (uses property name as attribute on $this)
77
+ *
78
+ * Note: This decorator is for FIELDS ONLY. For methods, use @setAttribute.
54
79
  */
55
- export declare function setAttribute(selector: string, targetAttributeName: string, options?: AttributeOptions): MethodDecorator;
56
- export declare function setAttribute(selector: string, options?: AttributeOptions): MethodDecorator;
80
+ export declare function attribute(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
81
+ export declare function attribute(attributeName: string, options?: AttributeOptions): PropertyDecorator;
82
+ export declare function attribute(selector: string, attributeName: string, options?: AttributeOptions): PropertyDecorator;
57
83
  /**
58
- * @setAttributeThis - Set attribute on $this element
59
- * Can be used as: @setAttributeThis or @setAttributeThis('attrName') or @setAttributeThis({ name: 'attrName' })
84
+ * @setAttribute - Method decorator for setting element attributes from method return value
85
+ *
86
+ * Intelligently distinguishes between attribute names and CSS selectors:
87
+ *
88
+ * Usage patterns:
89
+ * - @setAttribute('data-id') - Attribute name on $this (auto-detected)
90
+ * - @setAttribute('#user', 'data-id') - Attribute name on selector
91
+ * - @setAttribute('data-id', options) - Attribute name on $this with options
92
+ * - @setAttribute('#user', 'data-id', options) - Attribute name on selector with options
93
+ * - @setAttribute - Bare decorator (uses method name as attribute on $this)
94
+ *
95
+ * Note: This decorator is for METHODS ONLY. For fields, use @attribute.
96
+ *
97
+ * Example:
98
+ * @setAttribute('data-status')
99
+ * updateStatus() {
100
+ * return 'active';
101
+ * }
60
102
  */
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;
103
+ export declare function setAttribute(selector: string, attributeName: string, options?: AttributeOptions): MethodDecorator;
104
+ export declare function setAttribute(attributeName: string, options?: AttributeOptions): MethodDecorator;
64
105
  export declare const findAllAttributeMetadata: (target: any) => AttributeMetadata[];
65
106
  export declare const findAllAttributeApplyMetadata: (target: any) => Map<string | symbol, AttributeMetadata>;
66
107
  export default applyAttribute;
@@ -1 +1 @@
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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E,OAAO,CAAC,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;AAChG,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;AA6BlH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAAC;AACnH,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAAC;AA4BjG,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"}
@@ -6,6 +6,12 @@ export interface ClassApplyOptions extends SwcQueryOptions {
6
6
  currentThis: any;
7
7
  helper: HelperHostSet;
8
8
  }) => boolean;
9
+ /**
10
+ * Custom key to extract value from return object.
11
+ * If not provided, uses CLASS_METADATA_KEY by default.
12
+ * Useful when multiple @applyClass decorators are on the same method.
13
+ */
14
+ valueKey?: symbol | string;
9
15
  }
10
16
  export interface ClassApplyMetadata {
11
17
  propertyKey: string | symbol;
@@ -13,57 +19,37 @@ export interface ClassApplyMetadata {
13
19
  action: ClassAction;
14
20
  options: ClassApplyOptions;
15
21
  }
22
+ export declare function applyClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
16
23
  export declare function applyClass(selector: string, action?: ClassAction, options?: ClassApplyOptions): MethodDecorator;
17
- export declare const setClass: (selector: string, classMapOrOptions?: string | {
24
+ export declare function setClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
25
+ export declare function setClass(selector: string, classMapOrOptions?: string | {
18
26
  [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
19
27
  $this: any;
20
28
  }) => boolean;
21
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
22
- export declare const updateClass: (selector: string, classMapOrOptions?: string | {
29
+ } | ClassApplyOptions, options?: ClassApplyOptions): MethodDecorator;
30
+ export declare function updateClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
31
+ export declare function updateClass(selector: string, classMapOrOptions?: string | {
23
32
  [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
24
33
  $this: any;
25
34
  }) => boolean;
26
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
27
- export declare const addClass: (selector: string, classMapOrOptions?: string | {
35
+ } | ClassApplyOptions, options?: ClassApplyOptions): MethodDecorator;
36
+ export declare function addClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
37
+ export declare function addClass(selector: string, classMapOrOptions?: string | {
28
38
  [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
29
39
  $this: any;
30
40
  }) => boolean;
31
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
32
- export declare const removeClass: (selector: string, classMapOrOptions?: string | {
41
+ } | ClassApplyOptions, options?: ClassApplyOptions): MethodDecorator;
42
+ export declare function removeClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
43
+ export declare function removeClass(selector: string, classMapOrOptions?: string | {
33
44
  [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
34
45
  $this: any;
35
46
  }) => boolean;
36
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
37
- export declare const toggleClass: (selector: string, classMapOrOptions?: string | {
47
+ } | ClassApplyOptions, options?: ClassApplyOptions): MethodDecorator;
48
+ export declare function toggleClass(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
49
+ export declare function toggleClass(selector: string, classMapOrOptions?: string | {
38
50
  [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
39
51
  $this: any;
40
52
  }) => boolean;
41
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
42
- export declare function applyClassThis(action?: ClassAction, options?: ClassApplyOptions): MethodDecorator;
43
- export declare const setClassThis: (classMapOrOptions?: string | {
44
- [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
45
- $this: any;
46
- }) => boolean;
47
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
48
- export declare const updateClassThis: (classMapOrOptions?: string | {
49
- [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
50
- $this: any;
51
- }) => boolean;
52
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
53
- export declare const addClassThis: (classMapOrOptions?: string | {
54
- [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
55
- $this: any;
56
- }) => boolean;
57
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
58
- export declare const removeClassThis: (classMapOrOptions?: string | {
59
- [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
60
- $this: any;
61
- }) => boolean;
62
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
63
- export declare const toggleClassThis: (classMapOrOptions?: string | {
64
- [className: string]: (el: HTMLElement, value: any, helper: HelperHostSet & {
65
- $this: any;
66
- }) => boolean;
67
- } | ClassApplyOptions, options?: ClassApplyOptions) => MethodDecorator;
53
+ } | ClassApplyOptions, options?: ClassApplyOptions): MethodDecorator;
68
54
  export declare const findAllClassMetadata: (target: any) => Map<string | symbol, ClassApplyMetadata>;
69
55
  //# sourceMappingURL=applyClass.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"applyClass.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyClass.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,eAAe,EAAE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AM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,kBAAkB,GAAG,kBAAkB,GAAG,IAAI,CAAC;AACrI,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,GAAG;QAAE,KAAK,EAAE,GAAG,CAAA;KAAE,KAAK,OAAO,CAAA;CAAE,GAAG,iBAAiB,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAAC;AAcxP,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,kBAAkB,GAAG,kBAAkB,GAAG,IAAI,CAAC;AACrI,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,GAAG;QAAE,KAAK,EAAE,GAAG,CAAA;KAAE,KAAK,OAAO,CAAA;CAAE,GAAG,iBAAiB,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAAC;AAcxP,eAAO,MAAM,oBAAoB,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CASzF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { HelperHostSet, SwcRootType } from '../types';
2
- export type ApplyNodePosition = 'beforeBegin' | 'afterBegin' | 'beforeEnd' | 'afterEnd' | 'replace' | 'replaceChildren' | 'innerHtml' | 'innerText' | 'remove';
2
+ export type ApplyNodePosition = 'beforeBegin' | 'afterBegin' | 'beforeEnd' | 'afterEnd' | 'replace' | 'replaceChildren' | 'innerHtml' | 'innerText' | 'remove' | 'clearChildren';
3
3
  export interface ApplyNodeOptions {
4
4
  position?: ApplyNodePosition;
5
5
  root?: SwcRootType;
@@ -15,6 +15,12 @@ export interface ApplyNodeOptions {
15
15
  * Optional loading content to display while an async method is executing.
16
16
  */
17
17
  fallback?: (helper: HelperHostSet) => any;
18
+ /**
19
+ * Custom key to extract value from return object.
20
+ * If not provided, uses APPLY_NODE_METADATA_KEY by default.
21
+ * Useful when multiple @applyNode decorators are on the same method.
22
+ */
23
+ valueKey?: symbol | string;
18
24
  }
19
25
  export interface ApplyNodeMetadata {
20
26
  propertyKey: string | symbol;
@@ -24,36 +30,178 @@ export interface ApplyNodeMetadata {
24
30
  export declare const APPLY_NODE_METADATA_KEY: unique symbol;
25
31
  /**
26
32
  * @applyNode decorator to surgically add/replace nodes to a target element.
33
+ *
34
+ * Overloads:
35
+ * - applyNode(selector, options) - Apply to specific selector
36
+ * - applyNode(options) - Apply to $this (current element)
27
37
  */
28
38
  export declare function applyNode(selector: string, options?: ApplyNodeOptions): MethodDecorator;
29
- export declare function applyNodeThis(options: ApplyNodeOptions): MethodDecorator;
30
- export declare function applyNodeThis(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
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;
39
+ export declare function applyNode(options: ApplyNodeOptions): MethodDecorator;
40
+ /**
41
+ * @replaceChildrenNode decorator - replaces children of target element
42
+ *
43
+ * Overloads:
44
+ * - replaceChildrenNode(selector, options) - Replace children of specific selector
45
+ * - replaceChildrenNode(options) - Replace children of $this (current element)
46
+ * - @replaceChildrenNode - Bare decorator, replaces children of $this
47
+ */
48
+ export declare function replaceChildren(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
49
+ export declare function replaceChildren(options: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
50
+ export declare function replaceChildren(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
51
+ /**
52
+ * @clearChildrenNode decorator - clears all children of target element
53
+ *
54
+ * Overloads:
55
+ * - clearChildrenNode(selector, options) - Clear children of specific selector
56
+ * - clearChildrenNode(options) - Clear children of $this (current element)
57
+ * - @clearChildrenNode - Bare decorator, clears children of $this
58
+ */
59
+ export declare function clearChildrenNode(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
60
+ export declare function clearChildrenNode(options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
61
+ export declare function clearChildrenNode(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
62
+ export declare const clearNode: typeof clearChildrenNode;
63
+ /**
64
+ * @innerHtmlNode decorator - sets innerHTML of target element
65
+ *
66
+ * Overloads:
67
+ * - innerHtmlNode(selector, options) - Set innerHTML of specific selector
68
+ * - innerHtmlNode(options) - Set innerHTML of $this (current element)
69
+ * - @innerHtmlNode - Bare decorator, sets innerHTML of $this
70
+ */
71
+ export declare function innerHtml(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
72
+ export declare function innerHtml(options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
73
+ export declare function innerHtml(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
74
+ /**
75
+ * @innerHtmlLightNode decorator - sets innerHTML of light DOM element
76
+ *
77
+ * Overloads:
78
+ * - innerHtmlLightNode(selector, options) - Set innerHTML of specific selector in light DOM
79
+ * - innerHtmlLightNode(options) - Set innerHTML of $this in light DOM
80
+ * - @innerHtmlLightNode - Bare decorator, sets innerHTML of $this in light DOM
81
+ */
82
+ export declare function innerHtmlLight(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
83
+ export declare function innerHtmlLight(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
84
+ export declare function innerHtmlLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
85
+ /**
86
+ * @innerHtmlShadowNode decorator - sets innerHTML of shadow DOM element
87
+ *
88
+ * Overloads:
89
+ * - innerHtmlShadowNode(selector, options) - Set innerHTML of specific selector in shadow DOM
90
+ * - innerHtmlShadowNode(options) - Set innerHTML of $this in shadow DOM
91
+ * - @innerHtmlShadowNode - Bare decorator, sets innerHTML of $this in shadow DOM
92
+ */
93
+ export declare function innerHtmlShadow(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
94
+ export declare function innerHtmlShadow(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
95
+ export declare function innerHtmlShadow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
96
+ /**
97
+ * @innerTextNode decorator - sets innerText of target element
98
+ *
99
+ * Overloads:
100
+ * - innerTextNode(selector, options) - Set innerText of specific selector
101
+ * - innerTextNode(options) - Set innerText of $this (current element)
102
+ * - @innerTextNode - Bare decorator, sets innerText of $this
103
+ */
104
+ export declare function innerText(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
105
+ export declare function innerText(options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
106
+ export declare function innerText(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
107
+ /**
108
+ * @innerTextLightNode decorator - sets innerText of light DOM element
109
+ *
110
+ * Overloads:
111
+ * - innerTextLightNode(selector, options) - Set innerText of specific selector in light DOM
112
+ * - innerTextLightNode(options) - Set innerText of $this in light DOM
113
+ * - @innerTextLightNode - Bare decorator, sets innerText of $this in light DOM
114
+ */
115
+ export declare function innerTextLight(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
116
+ export declare function innerTextLight(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
117
+ export declare function innerTextLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
118
+ /**
119
+ * @innerTextShadowNode decorator - sets innerText of shadow DOM element
120
+ *
121
+ * Overloads:
122
+ * - innerTextShadowNode(selector, options) - Set innerText of specific selector in shadow DOM
123
+ * - innerTextShadowNode(options) - Set innerText of $this in shadow DOM
124
+ * - @innerTextShadowNode - Bare decorator, sets innerText of $this in shadow DOM
125
+ */
126
+ export declare function innerTextShadow(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
127
+ export declare function innerTextShadow(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
128
+ export declare function innerTextShadow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
129
+ /**
130
+ * @beforeEndNode decorator - appends nodes to target element
131
+ *
132
+ * Overloads:
133
+ * - beforeEndNode(selector, options) - Append to specific selector
134
+ * - beforeEndNode(options) - Append to $this (current element)
135
+ * - @beforeEndNode - Bare decorator, appends to $this
136
+ */
137
+ export declare function insertBeforeEnd(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
138
+ export declare function insertBeforeEnd(options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
139
+ export declare function insertBeforeEnd(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
140
+ /**
141
+ * @beforeEndLightNode decorator - appends nodes to light DOM element
142
+ *
143
+ * Overloads:
144
+ * - beforeEndLightNode(selector, options) - Append to specific selector in light DOM
145
+ * - beforeEndLightNode(options) - Append to $this in light DOM
146
+ * - @beforeEndLightNode - Bare decorator, appends to $this in light DOM
147
+ */
148
+ export declare function insertBeforeEndLight(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
149
+ export declare function insertBeforeEndLight(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
150
+ export declare function insertBeforeEndLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
151
+ /**
152
+ * @beforeEndShadowNode decorator - appends nodes to shadow DOM element
153
+ *
154
+ * Overloads:
155
+ * - beforeEndShadowNode(selector, options) - Append to specific selector in shadow DOM
156
+ * - beforeEndShadowNode(options) - Append to $this in shadow DOM
157
+ * - @beforeEndShadowNode - Bare decorator, appends to $this in shadow DOM
158
+ */
159
+ export declare function insertBeforeEndShadow(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
160
+ export declare function insertBeforeEndShadow(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
161
+ export declare function insertBeforeEndShadow(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
162
+ /**
163
+ * @afterBeginNode decorator - prepends nodes to target element
164
+ *
165
+ * Overloads:
166
+ * - afterBeginNode(selector, options) - Prepend to specific selector
167
+ * - afterBeginNode(options) - Prepend to $this (current element)
168
+ * - @afterBeginNode - Bare decorator, prepends to $this
169
+ */
170
+ export declare function insertAfterBegin(selector: string, options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
171
+ export declare function insertAfterBegin(options?: Omit<ApplyNodeOptions, 'position'>): MethodDecorator;
172
+ export declare function insertAfterBegin(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
173
+ /**
174
+ * @afterBeginLightNode decorator - prepends nodes to light DOM element
175
+ *
176
+ * Overloads:
177
+ * - afterBeginLightNode(selector, options) - Prepend to specific selector in light DOM
178
+ * - afterBeginLightNode(options) - Prepend to $this in light DOM
179
+ * - @afterBeginLightNode - Bare decorator, prepends to $this in light DOM
180
+ */
181
+ export declare function insertAfterBeginLight(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
182
+ export declare function insertAfterBeginLight(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
183
+ export declare function insertAfterBeginLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
184
+ /**
185
+ * @replaceChildrenLightNode decorator - replaces children of light DOM element
186
+ *
187
+ * Overloads:
188
+ * - replaceChildrenLightNode(selector, options) - Replace children of specific selector in light DOM
189
+ * - replaceChildrenLightNode(options) - Replace children of $this in light DOM
190
+ * - @replaceChildrenLightNode - Bare decorator, replaces children of $this in light DOM
191
+ */
192
+ export declare function replaceChildrenLight(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
193
+ export declare function replaceChildrenLight(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
194
+ export declare function replaceChildrenLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
195
+ /**
196
+ * @clearChildrenLightNode decorator - clears children of light DOM element
197
+ *
198
+ * Overloads:
199
+ * - clearChildrenLightNode(selector, options) - Clear children of specific selector in light DOM
200
+ * - clearChildrenLightNode(options) - Clear children of $this in light DOM
201
+ * - @clearChildrenLightNode - Bare decorator, clears children of $this in light DOM
202
+ */
203
+ export declare function clearChildrenLight(selector: string, options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
204
+ export declare function clearChildrenLight(options?: Omit<ApplyNodeOptions, 'position' | 'root'>): MethodDecorator;
205
+ export declare function clearChildrenLight(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
58
206
  export declare const findAllApplyNodeMetadata: (target: any) => Map<string | symbol, ApplyNodeMetadata>;
59
207
  //# 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,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE;QAAE,WAAW,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,aAAa,CAAA;KAAE,KAAK,OAAO,CAAC;IACzH;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,GAAG,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,eAAO,MAAM,uBAAuB,eAAgD,CAAC;AA0DrF;;GAEG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAgD,GAAG,eAAe,CA6EtH;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAAC;AAC1E,wBAAgB,a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