@dooboostore/simple-web-component 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +238 -44
- package/dist/cjs/decorators/applyNode.js +129 -34
- package/dist/cjs/decorators/applyNode.js.map +2 -2
- package/dist/cjs/decorators/attribute.js +21 -2
- package/dist/cjs/decorators/attribute.js.map +2 -2
- package/dist/cjs/decorators/changedAttributeHost.js.map +2 -2
- package/dist/cjs/decorators/classList.js +60 -17
- package/dist/cjs/decorators/classList.js.map +2 -2
- package/dist/cjs/decorators/query.js +77 -2
- package/dist/cjs/decorators/query.js.map +2 -2
- package/dist/cjs/decorators/queryAll.js +77 -2
- package/dist/cjs/decorators/queryAll.js.map +2 -2
- package/dist/cjs/decorators/setAttribute.js +4 -4
- package/dist/cjs/decorators/setAttribute.js.map +2 -2
- package/dist/cjs/decorators/style.js +46 -15
- package/dist/cjs/decorators/style.js.map +2 -2
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/utils/Utils.js +140 -1
- package/dist/cjs/utils/Utils.js.map +2 -2
- package/dist/esm/decorators/applyNode.js +129 -34
- package/dist/esm/decorators/applyNode.js.map +2 -2
- package/dist/esm/decorators/attribute.js +21 -2
- package/dist/esm/decorators/attribute.js.map +2 -2
- package/dist/esm/decorators/changedAttributeHost.js.map +2 -2
- package/dist/esm/decorators/classList.js +60 -17
- package/dist/esm/decorators/classList.js.map +2 -2
- package/dist/esm/decorators/query.js +77 -2
- package/dist/esm/decorators/query.js.map +2 -2
- package/dist/esm/decorators/queryAll.js +77 -2
- package/dist/esm/decorators/queryAll.js.map +2 -2
- package/dist/esm/decorators/setAttribute.js +4 -4
- package/dist/esm/decorators/setAttribute.js.map +2 -2
- package/dist/esm/decorators/style.js +46 -15
- package/dist/esm/decorators/style.js.map +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/utils/Utils.js +140 -1
- package/dist/esm/utils/Utils.js.map +2 -2
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +542 -155
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
- package/dist/types/decorators/applyNode.d.ts +49 -27
- package/dist/types/decorators/applyNode.d.ts.map +1 -1
- package/dist/types/decorators/attribute.d.ts +11 -4
- package/dist/types/decorators/attribute.d.ts.map +1 -1
- package/dist/types/decorators/classList.d.ts +15 -5
- package/dist/types/decorators/classList.d.ts.map +1 -1
- package/dist/types/decorators/query.d.ts +68 -4
- package/dist/types/decorators/query.d.ts.map +1 -1
- package/dist/types/decorators/queryAll.d.ts +70 -1
- package/dist/types/decorators/queryAll.d.ts.map +1 -1
- package/dist/types/decorators/setAttribute.d.ts.map +1 -1
- package/dist/types/decorators/style.d.ts +17 -8
- package/dist/types/decorators/style.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/utils/Utils.d.ts +49 -0
- package/dist/types/utils/Utils.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +542 -155
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
- package/package.json +3 -3
- package/src/decorators/applyNode.ts +179 -60
- package/src/decorators/attribute.ts +43 -10
- package/src/decorators/changedAttributeHost.ts +1 -1
- package/src/decorators/classList.ts +79 -17
- package/src/decorators/query.ts +147 -5
- package/src/decorators/queryAll.ts +148 -2
- package/src/decorators/setAttribute.ts +6 -5
- package/src/decorators/style.ts +67 -22
- package/src/index.ts +6 -6
- package/src/utils/Utils.ts +144 -0
- package/dist/cjs/utils/TemplateUtils.js +0 -109
- package/dist/cjs/utils/TemplateUtils.js.map +0 -7
- package/dist/esm/utils/TemplateUtils.js +0 -90
- package/dist/esm/utils/TemplateUtils.js.map +0 -7
- package/dist/types/utils/TemplateUtils.d.ts +0 -59
- package/dist/types/utils/TemplateUtils.d.ts.map +0 -1
- package/src/utils/TemplateUtils.ts +0 -92
|
@@ -42,80 +42,102 @@ export declare function applyNode(selector: string, options?: ApplyNodeOptions):
|
|
|
42
42
|
export declare const findAllApplyNodeMetadata: (target: any) => Map<string | symbol, ApplyNodeMetadata>;
|
|
43
43
|
/**
|
|
44
44
|
* @applyNodeHost decorator - simplified version of @applyNode for :host selector
|
|
45
|
+
* Usage: @applyNodeHost addItem() { return '<li>New Item</li>'; }
|
|
45
46
|
* Usage: @applyNodeHost() addItem() { return '<li>New Item</li>'; }
|
|
46
47
|
* Usage: @applyNodeHost({ position: 'afterBegin' }) prependItem() { return '<h1>Title</h1>'; }
|
|
47
48
|
*/
|
|
48
|
-
export declare function applyNodeHost(
|
|
49
|
+
export declare function applyNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;
|
|
50
|
+
export declare function applyNodeHost(): MethodDecorator;
|
|
51
|
+
export declare function applyNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
49
52
|
/**
|
|
50
53
|
* @applyBeforeBeginNode - Insert before target element
|
|
51
54
|
*/
|
|
52
|
-
export declare
|
|
55
|
+
export declare function applyBeforeBeginNode(selector: string): MethodDecorator;
|
|
56
|
+
export declare function applyBeforeBeginNode(selector: string, options: ApplyNodeOptions): MethodDecorator;
|
|
53
57
|
/**
|
|
54
58
|
* @applyAfterBeginNode - Prepend to target element
|
|
55
59
|
*/
|
|
56
|
-
export declare
|
|
60
|
+
export declare function applyAfterBeginNode(selector: string): MethodDecorator;
|
|
61
|
+
export declare function applyAfterBeginNode(selector: string, options: ApplyNodeOptions): MethodDecorator;
|
|
57
62
|
/**
|
|
58
63
|
* @applyBeforeEndNode - Append to target element (default)
|
|
59
64
|
*/
|
|
60
|
-
export declare
|
|
65
|
+
export declare function applyBeforeEndNode(selector: string): MethodDecorator;
|
|
66
|
+
export declare function applyBeforeEndNode(selector: string, options: ApplyNodeOptions): MethodDecorator;
|
|
61
67
|
/**
|
|
62
68
|
* @applyAfterEndNode - Insert after target element
|
|
63
69
|
*/
|
|
64
|
-
export declare
|
|
70
|
+
export declare function applyAfterEndNode(selector: string): MethodDecorator;
|
|
71
|
+
export declare function applyAfterEndNode(selector: string, options: ApplyNodeOptions): MethodDecorator;
|
|
65
72
|
/**
|
|
66
73
|
* @applyReplaceNode - Replace entire target element
|
|
67
74
|
*/
|
|
68
|
-
export declare
|
|
75
|
+
export declare function applyReplaceNode(selector: string): MethodDecorator;
|
|
76
|
+
export declare function applyReplaceNode(selector: string, options: ApplyNodeOptions): MethodDecorator;
|
|
69
77
|
/**
|
|
70
78
|
* @applyReplaceChildrenNode - Replace all children of target element
|
|
71
79
|
*/
|
|
72
|
-
export declare
|
|
80
|
+
export declare function applyReplaceChildrenNode(selector: string): MethodDecorator;
|
|
81
|
+
export declare function applyReplaceChildrenNode(selector: string, options: ApplyNodeOptions): MethodDecorator;
|
|
73
82
|
/**
|
|
74
83
|
* @applyInnerHtmlNode - Set target's innerHTML
|
|
75
84
|
*/
|
|
76
|
-
export declare
|
|
85
|
+
export declare function applyInnerHtmlNode(selector: string): MethodDecorator;
|
|
86
|
+
export declare function applyInnerHtmlNode(selector: string, options: ApplyNodeOptions): MethodDecorator;
|
|
77
87
|
/**
|
|
78
88
|
* @applyInnerTextNode - Set target's innerText
|
|
79
89
|
*/
|
|
80
|
-
export declare
|
|
90
|
+
export declare function applyInnerTextNode(selector: string): MethodDecorator;
|
|
91
|
+
export declare function applyInnerTextNode(selector: string, options: ApplyNodeOptions): MethodDecorator;
|
|
81
92
|
/**
|
|
82
93
|
* @applyRemoveNode - Remove target element if truthy
|
|
83
94
|
*/
|
|
84
|
-
export declare
|
|
95
|
+
export declare function applyRemoveNode(selector: string): MethodDecorator;
|
|
96
|
+
export declare function applyRemoveNode(selector: string, options: ApplyNodeOptions): MethodDecorator;
|
|
85
97
|
/**
|
|
86
98
|
* @applyBeforeBeginNodeHost - Insert before :host
|
|
87
99
|
*/
|
|
88
|
-
export declare
|
|
100
|
+
export declare function applyBeforeBeginNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
101
|
+
export declare function applyBeforeBeginNodeHost(): MethodDecorator;
|
|
102
|
+
export declare function applyBeforeBeginNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
89
103
|
/**
|
|
90
104
|
* @applyAfterBeginNodeHost - Prepend to :host
|
|
91
|
-
*/
|
|
92
|
-
export declare
|
|
105
|
+
*/ export declare function applyAfterBeginNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
106
|
+
export declare function applyAfterBeginNodeHost(): MethodDecorator;
|
|
107
|
+
export declare function applyAfterBeginNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
93
108
|
/**
|
|
94
109
|
* @applyBeforeEndNodeHost - Append to :host
|
|
95
|
-
*/
|
|
96
|
-
export declare
|
|
110
|
+
*/ export declare function applyBeforeEndNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
111
|
+
export declare function applyBeforeEndNodeHost(): MethodDecorator;
|
|
112
|
+
export declare function applyBeforeEndNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
97
113
|
/**
|
|
98
114
|
* @applyAfterEndNodeHost - Insert after :host
|
|
99
|
-
*/
|
|
100
|
-
export declare
|
|
115
|
+
*/ export declare function applyAfterEndNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
116
|
+
export declare function applyAfterEndNodeHost(): MethodDecorator;
|
|
117
|
+
export declare function applyAfterEndNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
101
118
|
/**
|
|
102
119
|
* @applyReplaceNodeHost - Replace :host
|
|
103
|
-
*/
|
|
104
|
-
export declare
|
|
120
|
+
*/ export declare function applyReplaceNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
121
|
+
export declare function applyReplaceNodeHost(): MethodDecorator;
|
|
122
|
+
export declare function applyReplaceNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
105
123
|
/**
|
|
106
124
|
* @applyReplaceChildrenNodeHost - Replace children of :host
|
|
107
|
-
*/
|
|
108
|
-
export declare
|
|
125
|
+
*/ export declare function applyReplaceChildrenNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
126
|
+
export declare function applyReplaceChildrenNodeHost(): MethodDecorator;
|
|
127
|
+
export declare function applyReplaceChildrenNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
109
128
|
/**
|
|
110
129
|
* @applyInnerHtmlNodeHost - Set :host innerHTML
|
|
111
|
-
*/
|
|
112
|
-
export declare
|
|
130
|
+
*/ export declare function applyInnerHtmlNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
131
|
+
export declare function applyInnerHtmlNodeHost(): MethodDecorator;
|
|
132
|
+
export declare function applyInnerHtmlNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
113
133
|
/**
|
|
114
134
|
* @applyInnerTextNodeHost - Set :host innerText
|
|
115
|
-
*/
|
|
116
|
-
export declare
|
|
135
|
+
*/ export declare function applyInnerTextNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
136
|
+
export declare function applyInnerTextNodeHost(): MethodDecorator;
|
|
137
|
+
export declare function applyInnerTextNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
117
138
|
/**
|
|
118
139
|
* @applyRemoveNodeHost - Remove :host if truthy
|
|
119
|
-
*/
|
|
120
|
-
export declare
|
|
140
|
+
*/ export declare function applyRemoveNodeHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
141
|
+
export declare function applyRemoveNodeHost(): MethodDecorator;
|
|
142
|
+
export declare function applyRemoveNodeHost(options: ApplyNodeOptions): MethodDecorator;
|
|
121
143
|
//# sourceMappingURL=applyNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyNode.d.ts","sourceRoot":"","sources":["../../../src/decorators/applyNode.ts"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9 +21,16 @@ export declare const resolveTargetEls: (inst: any, selector: string, options: At
|
|
|
21
21
|
export declare function attribute(selector: string, options?: AttributeOptions): PropertyDecorator;
|
|
22
22
|
export declare const findAllAttributeMetadata: (target: any) => AttributeMetadata[];
|
|
23
23
|
/**
|
|
24
|
-
* @
|
|
25
|
-
* Usage: @
|
|
26
|
-
* Usage: @
|
|
24
|
+
* @attributeHost decorator - simplified version of @attribute for :host selector
|
|
25
|
+
* Usage: @attributeHost - uses field name as attribute name
|
|
26
|
+
* Usage: @attributeHost() - uses field name as attribute name
|
|
27
|
+
* Usage: @attributeHost('data-id') - uses custom attribute name
|
|
28
|
+
* Usage: @attributeHost({ type: Boolean }) - uses field name with options
|
|
29
|
+
* Usage: @attributeHost('data-id', { type: Boolean }) - uses custom name with options
|
|
27
30
|
*/
|
|
28
|
-
export declare function attributeHost(
|
|
31
|
+
export declare function attributeHost(target: Object, propertyKey: string | symbol): void;
|
|
32
|
+
export declare function attributeHost(): PropertyDecorator;
|
|
33
|
+
export declare function attributeHost(options: AttributeOptions): PropertyDecorator;
|
|
34
|
+
export declare function attributeHost(attrName: string): PropertyDecorator;
|
|
35
|
+
export declare function attributeHost(attrName: string, options: AttributeOptions): PropertyDecorator;
|
|
29
36
|
//# sourceMappingURL=attribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/attribute.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/attribute.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,eAAe,EAAC,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,MAAM,GAAG,OAAO,OAAO,GAAG,OAAO,MAAM,CAAC;CACvD;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,sBAAsB,eAA2C,CAAC;AAY/E;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,GAAG,EAAE,UAAU,MAAM,EAAE,SAAS,gBAAgB,EAAE,YAAY,GAAG,KAAG,WAAW,EAiDrH,CAAC;AAEF;;GAEG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB,GAAG,iBAAiB,CA2F7F;AAED,eAAO,MAAM,wBAAwB,GAAI,QAAQ,GAAG,KAAG,iBAAiB,EAEvE,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAClF,wBAAgB,aAAa,IAAI,iBAAiB,CAAC;AACnD,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;AAC5E,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAAC;AACnE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,iBAAiB,CAAC"}
|
|
@@ -36,26 +36,36 @@ export declare const toggleClassList: (selector: string, options?: SwcQueryOptio
|
|
|
36
36
|
* @setClassListHost decorator to set classes on :host element.
|
|
37
37
|
* Returns: string | string[]
|
|
38
38
|
*/
|
|
39
|
-
export declare
|
|
39
|
+
export declare function setClassListHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
40
|
+
export declare function setClassListHost(): MethodDecorator;
|
|
41
|
+
export declare function setClassListHost(options: SwcQueryOptions): MethodDecorator;
|
|
40
42
|
/**
|
|
41
43
|
* @updateClassListHost decorator to update specific classes on :host.
|
|
42
44
|
* Returns: Record<string, boolean> (toggle with force) | string | string[] (add)
|
|
43
45
|
*/
|
|
44
|
-
export declare
|
|
46
|
+
export declare function updateClassListHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
47
|
+
export declare function updateClassListHost(): MethodDecorator;
|
|
48
|
+
export declare function updateClassListHost(options: SwcQueryOptions): MethodDecorator;
|
|
45
49
|
/**
|
|
46
50
|
* @addClassListHost decorator to add classes to :host element.
|
|
47
51
|
* Returns: string | string[]
|
|
48
52
|
*/
|
|
49
|
-
export declare
|
|
53
|
+
export declare function addClassListHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
54
|
+
export declare function addClassListHost(): MethodDecorator;
|
|
55
|
+
export declare function addClassListHost(options: SwcQueryOptions): MethodDecorator;
|
|
50
56
|
/**
|
|
51
57
|
* @removeClassListHost decorator to remove classes from :host element.
|
|
52
58
|
* Returns: string | string[]
|
|
53
59
|
*/
|
|
54
|
-
export declare
|
|
60
|
+
export declare function removeClassListHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
61
|
+
export declare function removeClassListHost(): MethodDecorator;
|
|
62
|
+
export declare function removeClassListHost(options: SwcQueryOptions): MethodDecorator;
|
|
55
63
|
/**
|
|
56
64
|
* @toggleClassListHost decorator to toggle classes on :host element.
|
|
57
65
|
* Returns: string | string[]
|
|
58
66
|
*/
|
|
59
|
-
export declare
|
|
67
|
+
export declare function toggleClassListHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
68
|
+
export declare function toggleClassListHost(): MethodDecorator;
|
|
69
|
+
export declare function toggleClassListHost(options: SwcQueryOptions): MethodDecorator;
|
|
60
70
|
export declare const findAllClassListMetadata: (target: any) => Map<string | symbol, ClassListMetadata>;
|
|
61
71
|
//# sourceMappingURL=classList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classList.d.ts","sourceRoot":"","sources":["../../../src/decorators/classList.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,uBAAuB,eAA4C,CAAC;AAEjF,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7E,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,eAAe,CAAC;CAC1B;
|
|
1
|
+
{"version":3,"file":"classList.d.ts","sourceRoot":"","sources":["../../../src/decorators/classList.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,uBAAuB,eAA4C,CAAC;AAEjF,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7E,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAuGD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,EAAE,UAAS,eAAoB,oBAAuD,CAAC;AAEpI;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,UAAS,eAAoB,oBAA0D,CAAC;AAE1I;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,EAAE,UAAS,eAAoB,oBAAuD,CAAC;AAEpI;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,UAAS,eA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AAG,CAAC;AACvH,wBAAgB,mBAAmB,IAAI,eAAe,CAAC;AACvD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,eAAe,GAAG,eAAe,CAAC;AAS/E,eAAO,MAAM,wBAAwB,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,iBAAiB,CAS5F,CAAC"}
|
|
@@ -9,9 +9,73 @@ export declare function query(target: SpecialSelector): PropertyDecorator;
|
|
|
9
9
|
export declare function query(selector: string, options?: SwcQueryOptions): PropertyDecorator;
|
|
10
10
|
export declare const getQueryMetadata: (target: any) => QueryMetadata[] | undefined;
|
|
11
11
|
/**
|
|
12
|
-
* @
|
|
13
|
-
* Usage: @
|
|
14
|
-
* Usage: @
|
|
12
|
+
* @queryHost decorator - simplified version of @query for :host selector
|
|
13
|
+
* Usage: @queryHost testzzs: HTMLElement | undefined;
|
|
14
|
+
* Usage: @queryHost() testzzs: HTMLElement | undefined;
|
|
15
|
+
* Usage: @queryHost({ root: 'shadow' }) testzzs: HTMLElement | undefined;
|
|
15
16
|
*/
|
|
16
|
-
export declare function queryHost(
|
|
17
|
+
export declare function queryHost(target: Object, propertyKey: string | symbol): void;
|
|
18
|
+
export declare function queryHost(): PropertyDecorator;
|
|
19
|
+
export declare function queryHost(options: SwcQueryOptions): PropertyDecorator;
|
|
20
|
+
/**
|
|
21
|
+
* @host - Alias for @queryHost decorator
|
|
22
|
+
* Usage: @host element: HTMLElement | undefined;
|
|
23
|
+
* Usage: @host() element: HTMLElement | undefined;
|
|
24
|
+
* Usage: @host({ root: 'shadow' }) element: HTMLElement | undefined;
|
|
25
|
+
*/
|
|
26
|
+
export declare const host: typeof queryHost;
|
|
27
|
+
/**
|
|
28
|
+
* @parentHost - Query :parentHost (Direct parent SWC component)
|
|
29
|
+
* Usage: @parentHost parent: HTMLElement | undefined;
|
|
30
|
+
* Usage: @parentHost() parent: HTMLElement | undefined;
|
|
31
|
+
* Usage: @parentHost({ root: 'shadow' }) parent: HTMLElement | undefined;
|
|
32
|
+
*/
|
|
33
|
+
export declare function parentHost(target: Object, propertyKey: string | symbol): void;
|
|
34
|
+
export declare function parentHost(): PropertyDecorator;
|
|
35
|
+
export declare function parentHost(options: SwcQueryOptions): PropertyDecorator;
|
|
36
|
+
/**
|
|
37
|
+
* @appHost - Query :appHost (Nearest <swc-app>)
|
|
38
|
+
* Usage: @appHost app: SwcAppInterface | undefined;
|
|
39
|
+
* Usage: @appHost() app: SwcAppInterface | undefined;
|
|
40
|
+
* Usage: @appHost({ root: 'shadow' }) app: SwcAppInterface | undefined;
|
|
41
|
+
*/
|
|
42
|
+
export declare function appHost(target: Object, propertyKey: string | symbol): void;
|
|
43
|
+
export declare function appHost(): PropertyDecorator;
|
|
44
|
+
export declare function appHost(options: SwcQueryOptions): PropertyDecorator;
|
|
45
|
+
/**
|
|
46
|
+
* @firstHost - Query :firstHost (First component in hierarchy)
|
|
47
|
+
* Usage: @firstHost first: HTMLElement | undefined;
|
|
48
|
+
* Usage: @firstHost() first: HTMLElement | undefined;
|
|
49
|
+
* Usage: @firstHost({ root: 'shadow' }) first: HTMLElement | undefined;
|
|
50
|
+
*/
|
|
51
|
+
export declare function firstHost(target: Object, propertyKey: string | symbol): void;
|
|
52
|
+
export declare function firstHost(): PropertyDecorator;
|
|
53
|
+
export declare function firstHost(options: SwcQueryOptions): PropertyDecorator;
|
|
54
|
+
/**
|
|
55
|
+
* @lastHost - Query :lastHost (Last component in hierarchy)
|
|
56
|
+
* Usage: @lastHost last: HTMLElement | undefined;
|
|
57
|
+
* Usage: @lastHost() last: HTMLElement | undefined;
|
|
58
|
+
* Usage: @lastHost({ root: 'shadow' }) last: HTMLElement | undefined;
|
|
59
|
+
*/
|
|
60
|
+
export declare function lastHost(target: Object, propertyKey: string | symbol): void;
|
|
61
|
+
export declare function lastHost(): PropertyDecorator;
|
|
62
|
+
export declare function lastHost(options: SwcQueryOptions): PropertyDecorator;
|
|
63
|
+
/**
|
|
64
|
+
* @firstAppHost - Query :firstAppHost (First <swc-app> in hierarchy)
|
|
65
|
+
* Usage: @firstAppHost app: SwcAppInterface | undefined;
|
|
66
|
+
* Usage: @firstAppHost() app: SwcAppInterface | undefined;
|
|
67
|
+
* Usage: @firstAppHost({ root: 'shadow' }) app: SwcAppInterface | undefined;
|
|
68
|
+
*/
|
|
69
|
+
export declare function firstAppHost(target: Object, propertyKey: string | symbol): void;
|
|
70
|
+
export declare function firstAppHost(): PropertyDecorator;
|
|
71
|
+
export declare function firstAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
72
|
+
/**
|
|
73
|
+
* @lastAppHost - Query :lastAppHost (Last <swc-app> in hierarchy)
|
|
74
|
+
* Usage: @lastAppHost app: SwcAppInterface | undefined;
|
|
75
|
+
* Usage: @lastAppHost() app: SwcAppInterface | undefined;
|
|
76
|
+
* Usage: @lastAppHost({ root: 'shadow' }) app: SwcAppInterface | undefined;
|
|
77
|
+
*/
|
|
78
|
+
export declare function lastAppHost(target: Object, propertyKey: string | symbol): void;
|
|
79
|
+
export declare function lastAppHost(): PropertyDecorator;
|
|
80
|
+
export declare function lastAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
17
81
|
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/decorators/query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,kBAAkB,eAAuC,CAAC;AAEvE,wBAAgB,KAAK,CAAC,MAAM,EAAE,eAAe,GAAG,iBAAiB,CAAC;AAClE,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,e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-
|
|
16
|
+
/**
|
|
17
|
+
* @queryAllHost decorator - simplified version of @queryAll for :host selector
|
|
18
|
+
* Usage: @queryAllHost items: HTMLElement[];
|
|
19
|
+
* Usage: @queryAllHost() items: HTMLElement[];
|
|
20
|
+
* Usage: @queryAllHost({ root: 'shadow' }) items: HTMLElement[];
|
|
21
|
+
*/
|
|
22
|
+
export declare function queryAllHost(target: Object, propertyKey: string | symbol): void;
|
|
23
|
+
export declare function queryAllHost(): PropertyDecorator;
|
|
24
|
+
export declare function queryAllHost(options: SwcQueryOptions): PropertyDecorator;
|
|
25
|
+
/**
|
|
26
|
+
* @allHost - Alias for @queryAllHost decorator
|
|
27
|
+
* Usage: @allHost items: HTMLElement[];
|
|
28
|
+
* Usage: @allHost() items: HTMLElement[];
|
|
29
|
+
* Usage: @allHost({ root: 'shadow' }) items: HTMLElement[];
|
|
30
|
+
*/
|
|
31
|
+
export declare const allHost: typeof queryAllHost;
|
|
32
|
+
/**
|
|
33
|
+
* @allParentHost - Query all :parentHost (All parent SWC components)
|
|
34
|
+
* Usage: @allParentHost parents: HTMLElement[];
|
|
35
|
+
* Usage: @allParentHost() parents: HTMLElement[];
|
|
36
|
+
* Usage: @allParentHost({ root: 'shadow' }) parents: HTMLElement[];
|
|
37
|
+
*/
|
|
38
|
+
export declare function allParentHost(target: Object, propertyKey: string | symbol): void;
|
|
39
|
+
export declare function allParentHost(): PropertyDecorator;
|
|
40
|
+
export declare function allParentHost(options: SwcQueryOptions): PropertyDecorator;
|
|
41
|
+
/**
|
|
42
|
+
* @allAppHost - Query all :appHost (All <swc-app> instances)
|
|
43
|
+
* Usage: @allAppHost apps: SwcAppInterface[];
|
|
44
|
+
* Usage: @allAppHost() apps: SwcAppInterface[];
|
|
45
|
+
* Usage: @allAppHost({ root: 'shadow' }) apps: SwcAppInterface[];
|
|
46
|
+
*/
|
|
47
|
+
export declare function allAppHost(target: Object, propertyKey: string | symbol): void;
|
|
48
|
+
export declare function allAppHost(): PropertyDecorator;
|
|
49
|
+
export declare function allAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
50
|
+
/**
|
|
51
|
+
* @allFirstHost - Query all :firstHost (All first components in hierarchy)
|
|
52
|
+
* Usage: @allFirstHost firsts: HTMLElement[];
|
|
53
|
+
* Usage: @allFirstHost() firsts: HTMLElement[];
|
|
54
|
+
* Usage: @allFirstHost({ root: 'shadow' }) firsts: HTMLElement[];
|
|
55
|
+
*/
|
|
56
|
+
export declare function allFirstHost(target: Object, propertyKey: string | symbol): void;
|
|
57
|
+
export declare function allFirstHost(): PropertyDecorator;
|
|
58
|
+
export declare function allFirstHost(options: SwcQueryOptions): PropertyDecorator;
|
|
59
|
+
/**
|
|
60
|
+
* @allLastHost - Query all :lastHost (All last components in hierarchy)
|
|
61
|
+
* Usage: @allLastHost lasts: HTMLElement[];
|
|
62
|
+
* Usage: @allLastHost() lasts: HTMLElement[];
|
|
63
|
+
* Usage: @allLastHost({ root: 'shadow' }) lasts: HTMLElement[];
|
|
64
|
+
*/
|
|
65
|
+
export declare function allLastHost(target: Object, propertyKey: string | symbol): void;
|
|
66
|
+
export declare function allLastHost(): PropertyDecorator;
|
|
67
|
+
export declare function allLastHost(options: SwcQueryOptions): PropertyDecorator;
|
|
68
|
+
/**
|
|
69
|
+
* @allFirstAppHost - Query all :firstAppHost (All first <swc-app> in hierarchy)
|
|
70
|
+
* Usage: @allFirstAppHost apps: SwcAppInterface[];
|
|
71
|
+
* Usage: @allFirstAppHost() apps: SwcAppInterface[];
|
|
72
|
+
* Usage: @allFirstAppHost({ root: 'shadow' }) apps: SwcAppInterface[];
|
|
73
|
+
*/
|
|
74
|
+
export declare function allFirstAppHost(target: Object, propertyKey: string | symbol): void;
|
|
75
|
+
export declare function allFirstAppHost(): PropertyDecorator;
|
|
76
|
+
export declare function allFirstAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
77
|
+
/**
|
|
78
|
+
* @allLastAppHost - Query all :lastAppHost (All last <swc-app> in hierarchy)
|
|
79
|
+
* Usage: @allLastAppHost apps: SwcAppInterface[];
|
|
80
|
+
* Usage: @allLastAppHost() apps: SwcAppInterface[];
|
|
81
|
+
* Usage: @allLastAppHost({ root: 'shadow' }) apps: SwcAppInterface[];
|
|
82
|
+
*/
|
|
83
|
+
export declare function allLastAppHost(target: Object, propertyKey: string | symbol): void;
|
|
84
|
+
export declare function allLastAppHost(): PropertyDecorator;
|
|
85
|
+
export declare function allLastAppHost(options: SwcQueryOptions): PropertyDecorator;
|
|
17
86
|
//# sourceMappingURL=queryAll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryAll.d.ts","sourceRoot":"","sources":["../../../src/decorators/queryAll.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,eAA2C,CAAC;AAE/E,wBAAgB,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,iBAAiB,CAAC;AACrE,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,iBAAiB,CAAC;AA2FzF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,GAAG,KAAG,gBAAgB,EAAE,GAAG,SAGtE,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"queryAll.d.ts","sourceRoot":"","sources":["../../../src/decorators/queryAll.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,GAAG,MAAM,CAA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gB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"setAttribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/setAttribute.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,0BAA0B,eAA+C,CAAC;AAEvF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC;AAC9E,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CAAC;AAuEzG,eAAO,MAAM,uBAAuB,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,oBAAoB,CAAC,GAAG,SAGlG,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,QAAQ,GAAG,KAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,oBAAoB,CASlG,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CAEzF"}
|
|
@@ -17,10 +17,13 @@ export declare const STYLE_METADATA_KEY: unique symbol;
|
|
|
17
17
|
export declare const setStyle: (selector: string, options?: StyleOptions) => MethodDecorator;
|
|
18
18
|
/**
|
|
19
19
|
* @setStyleHost decorator - simplified version of @setStyle for :host selector.
|
|
20
|
-
* Usage: @setStyleHost
|
|
21
|
-
* Usage: @setStyleHost(
|
|
20
|
+
* Usage: @setStyleHost setHostStyle() { return { color: 'red' }; }
|
|
21
|
+
* Usage: @setStyleHost() setHostStyle() { return { color: 'red' }; }
|
|
22
|
+
* Usage: @setStyleHost({ ... }) setHostStyle() { return { color: 'red' }; }
|
|
22
23
|
*/
|
|
23
|
-
export declare
|
|
24
|
+
export declare function setStyleHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
25
|
+
export declare function setStyleHost(): MethodDecorator;
|
|
26
|
+
export declare function setStyleHost(options: StyleOptions): MethodDecorator;
|
|
24
27
|
/**
|
|
25
28
|
* @updateStyle decorator to surgically update styles on a target element (merges with existing styles).
|
|
26
29
|
* Usage: @updateStyle('#box') updateStyles() { return { color: 'blue' }; }
|
|
@@ -30,9 +33,12 @@ export declare const updateStyle: (selector: string, options?: StyleOptions) =>
|
|
|
30
33
|
/**
|
|
31
34
|
* @updateStyleHost decorator - simplified version of @updateStyle for :host selector.
|
|
32
35
|
* Usage: @updateStyleHost updateStyles() { return { color: 'blue' }; }
|
|
33
|
-
* Usage: @updateStyleHost(
|
|
36
|
+
* Usage: @updateStyleHost() updateStyles() { return { color: 'blue' }; }
|
|
37
|
+
* Usage: @updateStyleHost({ ... }) updateStyles() { return { color: 'blue' }; }
|
|
34
38
|
*/
|
|
35
|
-
export declare
|
|
39
|
+
export declare function updateStyleHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
40
|
+
export declare function updateStyleHost(): MethodDecorator;
|
|
41
|
+
export declare function updateStyleHost(options: StyleOptions): MethodDecorator;
|
|
36
42
|
/**
|
|
37
43
|
* @removeStyle decorator to surgically remove styles from a target element.
|
|
38
44
|
* Usage: @removeStyle('#box') clearStyles() { return ['color', 'display']; }
|
|
@@ -41,9 +47,12 @@ export declare const updateStyleHost: (options?: StyleOptions) => MethodDecorato
|
|
|
41
47
|
export declare const removeStyle: (selector: string, options?: StyleOptions) => MethodDecorator;
|
|
42
48
|
/**
|
|
43
49
|
* @removeStyleHost decorator - simplified version of @removeStyle for :host selector.
|
|
44
|
-
* Usage: @removeStyleHost clearStyles() { return ['color'
|
|
45
|
-
* Usage: @removeStyleHost(
|
|
50
|
+
* Usage: @removeStyleHost clearStyles() { return ['color']; }
|
|
51
|
+
* Usage: @removeStyleHost() clearStyles() { return ['color']; }
|
|
52
|
+
* Usage: @removeStyleHost({ ... }) clearStyles() { return ['color']; }
|
|
46
53
|
*/
|
|
47
|
-
export declare
|
|
54
|
+
export declare function removeStyleHost(target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): any;
|
|
55
|
+
export declare function removeStyleHost(): MethodDecorator;
|
|
56
|
+
export declare function removeStyleHost(options: StyleOptions): MethodDecorator;
|
|
48
57
|
export declare const findAllStyleMetadata: (target: any) => Map<string | symbol, StyleMetadata>;
|
|
49
58
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/decorators/style.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtD,MAAM,WAAW,YAAa,SAAQ,eAAe;
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/decorators/style.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtD,MAAM,WAAW,YAAa,SAAQ,eAAe;CAAG;AAExD,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC;CACvB;AAED,eAAO,M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orators';
|
|
4
4
|
export * from './types';
|
|
5
5
|
export * from './utils/Utils';
|
|
6
|
-
export * from './utils/TemplateUtils';
|
|
7
6
|
export * from './config/config';
|
|
8
|
-
declare const _default: (w: Window, other?: ((w: Window) => ConstructorType<any>)[]) =>
|
|
7
|
+
declare const _default: (w: Window, other?: (((w: Window) => ConstructorType<any>) | any)[]) => void;
|
|
9
8
|
export default _default;
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAGlD,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAGlD,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,eAAe,CAAC;AAG9B,cAAc,iBAAiB,CAAC;yBAGhB,GAAG,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,EAAG;AAAnF,wBASE"}
|
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
import { SwcAppInterface, HostSet, HelperSet, HelperHostSet } from '../types';
|
|
2
2
|
export declare const SWC_NOT_FOUND: unique symbol;
|
|
3
|
+
export declare const htmlFragment: (html: string, doc?: Document) => DocumentFragment;
|
|
4
|
+
export declare const textNode: (text: string | any, doc?: Document) => Text;
|
|
5
|
+
export declare const commentNode: (comment: string | any, doc?: Document) => Comment;
|
|
6
|
+
export declare const createElement: <T extends HTMLElement>(tagName: string, options?: {
|
|
7
|
+
html?: string;
|
|
8
|
+
attrs?: Record<string, any>;
|
|
9
|
+
doc?: Document;
|
|
10
|
+
}) => T;
|
|
11
|
+
export declare const htmlDivElement: (html: string, options?: {
|
|
12
|
+
doc?: Document;
|
|
13
|
+
attrs?: Record<string, any>;
|
|
14
|
+
}) => HTMLDivElement;
|
|
15
|
+
export declare const htmlSpanElement: (html: string, options?: {
|
|
16
|
+
doc?: Document;
|
|
17
|
+
attrs?: Record<string, any>;
|
|
18
|
+
}) => HTMLSpanElement;
|
|
19
|
+
export declare const htmlButtonElement: (html: string, options?: {
|
|
20
|
+
doc?: Document;
|
|
21
|
+
attrs?: Record<string, any>;
|
|
22
|
+
}) => HTMLButtonElement;
|
|
23
|
+
export declare const htmlUlElement: (options?: {
|
|
24
|
+
doc?: Document;
|
|
25
|
+
attrs?: Record<string, any>;
|
|
26
|
+
}) => HTMLUListElement;
|
|
27
|
+
export declare const htmlLiElement: (html: string, options?: {
|
|
28
|
+
doc?: Document;
|
|
29
|
+
attrs?: Record<string, any>;
|
|
30
|
+
}) => HTMLLIElement;
|
|
31
|
+
export declare const htmlAElement: (html: string, options?: {
|
|
32
|
+
href?: string;
|
|
33
|
+
doc?: Document;
|
|
34
|
+
attrs?: Record<string, any>;
|
|
35
|
+
}) => HTMLAnchorElement;
|
|
36
|
+
export declare const htmlPElement: (html: string, options?: {
|
|
37
|
+
doc?: Document;
|
|
38
|
+
attrs?: Record<string, any>;
|
|
39
|
+
}) => HTMLParagraphElement;
|
|
40
|
+
export declare const htmlHeadingElement: (level: 1 | 2 | 3 | 4 | 5 | 6, html: string, options?: {
|
|
41
|
+
doc?: Document;
|
|
42
|
+
attrs?: Record<string, any>;
|
|
43
|
+
}) => HTMLHeadingElement;
|
|
44
|
+
export declare const htmlSectionElement: (options?: {
|
|
45
|
+
doc?: Document;
|
|
46
|
+
attrs?: Record<string, any>;
|
|
47
|
+
}) => HTMLElement;
|
|
48
|
+
export declare const htmlArticleElement: (options?: {
|
|
49
|
+
doc?: Document;
|
|
50
|
+
attrs?: Record<string, any>;
|
|
51
|
+
}) => HTMLElement;
|
|
3
52
|
export declare namespace SwcUtils {
|
|
4
53
|
const getHelperSet: (win: Window) => HelperSet;
|
|
5
54
|
const getHelperAndHostSet: (win: Window, el: HTMLElement) => HelperHostSet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../src/utils/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9E,eAAO,MAAM,aAAa,eAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../src/utils/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9E,eAAO,MAAM,aAAa,eAA0B,CAAC;AAGrD,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,MAAM,QAAQ,KAAG,gBAM3D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,GAAG,GAAG,EAAE,MAAM,QAAQ,KAAG,IAI7D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,GAAG,GAAG,EAAE,MAAM,QAAQ,KAAG,OAInE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,WAAW,EACjD,SAAS,MAAM,EACf,UAAU;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,GAAG,CAAC,EAAE,QAAQ,CAAA;CAAE,KACvE,CASF,CAAC;AAGF,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,EAAE,UAAU;IAAE,GAAG,CAAC,EAAE,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