@dooboostore/simple-web-component 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/README.md +41 -4
  2. package/dist/cjs/{elements/SwcAppEngine.js → SwcAppEngine.js} +6 -6
  3. package/dist/cjs/SwcAppEngine.js.map +7 -0
  4. package/dist/cjs/decorators/applyNode.js +14 -13
  5. package/dist/cjs/decorators/applyNode.js.map +2 -2
  6. package/dist/cjs/decorators/applySlot.js +122 -0
  7. package/dist/cjs/decorators/applySlot.js.map +7 -0
  8. package/dist/cjs/decorators/elementDefine.js +38 -30
  9. package/dist/cjs/decorators/elementDefine.js.map +2 -2
  10. package/dist/cjs/decorators/index.js +1 -0
  11. package/dist/cjs/decorators/index.js.map +2 -2
  12. package/dist/cjs/decorators/lifecycles.js +56 -8
  13. package/dist/cjs/decorators/lifecycles.js.map +2 -2
  14. package/dist/cjs/elements/{SwcAppMixin.js → SwcApp.js} +107 -57
  15. package/dist/cjs/elements/SwcApp.js.map +7 -0
  16. package/dist/cjs/elements/index.js +21 -2
  17. package/dist/cjs/elements/index.js.map +3 -3
  18. package/dist/cjs/elements/tt/SwcAppMixin.js +1 -0
  19. package/dist/cjs/elements/tt/SwcAppMixin.js.map +7 -0
  20. package/dist/cjs/elements/tt/SwcAsync.js +1 -0
  21. package/dist/cjs/elements/tt/SwcAsync.js.map +7 -0
  22. package/dist/cjs/elements/tt/SwcAsyncTemplate.js +1 -0
  23. package/dist/cjs/elements/tt/SwcAsyncTemplate.js.map +7 -0
  24. package/dist/cjs/elements/tt/SwcChoose.js +1 -0
  25. package/dist/cjs/elements/tt/SwcChoose.js.map +7 -0
  26. package/dist/cjs/elements/tt/SwcChooseTemplate.js +1 -0
  27. package/dist/cjs/elements/tt/SwcChooseTemplate.js.map +7 -0
  28. package/dist/cjs/elements/tt/SwcIf.js +1 -0
  29. package/dist/cjs/elements/tt/SwcIf.js.map +7 -0
  30. package/dist/cjs/elements/tt/SwcIfTemplate.js +1 -0
  31. package/dist/cjs/elements/tt/SwcIfTemplate.js.map +7 -0
  32. package/dist/cjs/elements/tt/SwcLoop.js +1 -0
  33. package/dist/cjs/elements/tt/SwcLoop.js.map +7 -0
  34. package/dist/cjs/elements/tt/SwcLoopTemplate.js +1 -0
  35. package/dist/cjs/elements/tt/SwcLoopTemplate.js.map +7 -0
  36. package/dist/cjs/elements/tt/SwcSubTemplates.js +1 -0
  37. package/dist/cjs/elements/tt/SwcSubTemplates.js.map +7 -0
  38. package/dist/cjs/elements/tt/register.js +1 -0
  39. package/dist/cjs/elements/tt/register.js.map +7 -0
  40. package/dist/cjs/index.js +12 -8
  41. package/dist/cjs/index.js.map +2 -2
  42. package/dist/cjs/types/window.d.js +16 -0
  43. package/dist/cjs/types/window.d.js.map +7 -0
  44. package/dist/cjs/types.js.map +1 -1
  45. package/dist/cjs/utils/Utils.js +9 -6
  46. package/dist/cjs/utils/Utils.js.map +2 -2
  47. package/dist/esm/{elements/SwcAppEngine.js → SwcAppEngine.js} +4 -4
  48. package/dist/esm/SwcAppEngine.js.map +7 -0
  49. package/dist/esm/decorators/applyNode.js +14 -13
  50. package/dist/esm/decorators/applyNode.js.map +2 -2
  51. package/dist/esm/decorators/applySlot.js +103 -0
  52. package/dist/esm/decorators/applySlot.js.map +7 -0
  53. package/dist/esm/decorators/elementDefine.js +41 -33
  54. package/dist/esm/decorators/elementDefine.js.map +2 -2
  55. package/dist/esm/decorators/index.js +1 -0
  56. package/dist/esm/decorators/index.js.map +2 -2
  57. package/dist/esm/decorators/lifecycles.js +56 -8
  58. package/dist/esm/decorators/lifecycles.js.map +2 -2
  59. package/dist/esm/elements/{SwcAppMixin.js → SwcApp.js} +102 -53
  60. package/dist/esm/elements/SwcApp.js.map +7 -0
  61. package/dist/esm/elements/index.js +7 -1
  62. package/dist/esm/elements/index.js.map +2 -2
  63. package/dist/esm/elements/tt/SwcAppMixin.js +1 -0
  64. package/dist/esm/elements/tt/SwcAppMixin.js.map +7 -0
  65. package/dist/esm/elements/tt/SwcAsync.js +1 -0
  66. package/dist/esm/elements/tt/SwcAsync.js.map +7 -0
  67. package/dist/esm/elements/tt/SwcAsyncTemplate.js +1 -0
  68. package/dist/esm/elements/tt/SwcAsyncTemplate.js.map +7 -0
  69. package/dist/esm/elements/tt/SwcChoose.js +1 -0
  70. package/dist/esm/elements/tt/SwcChoose.js.map +7 -0
  71. package/dist/esm/elements/tt/SwcChooseTemplate.js +1 -0
  72. package/dist/esm/elements/tt/SwcChooseTemplate.js.map +7 -0
  73. package/dist/esm/elements/tt/SwcIf.js +1 -0
  74. package/dist/esm/elements/tt/SwcIf.js.map +7 -0
  75. package/dist/esm/elements/tt/SwcIfTemplate.js +1 -0
  76. package/dist/esm/elements/tt/SwcIfTemplate.js.map +7 -0
  77. package/dist/esm/elements/tt/SwcLoop.js +1 -0
  78. package/dist/esm/elements/tt/SwcLoop.js.map +7 -0
  79. package/dist/esm/elements/tt/SwcLoopTemplate.js +1 -0
  80. package/dist/esm/elements/tt/SwcLoopTemplate.js.map +7 -0
  81. package/dist/esm/elements/tt/SwcSubTemplates.js +1 -0
  82. package/dist/esm/elements/tt/SwcSubTemplates.js.map +7 -0
  83. package/dist/esm/elements/tt/register.js +1 -0
  84. package/dist/esm/elements/tt/register.js.map +7 -0
  85. package/dist/esm/index.js +13 -9
  86. package/dist/esm/index.js.map +2 -2
  87. package/dist/esm/types/window.d.js +1 -0
  88. package/dist/esm/types/window.d.js.map +7 -0
  89. package/dist/esm/types.js.map +1 -1
  90. package/dist/esm/utils/Utils.js +9 -6
  91. package/dist/esm/utils/Utils.js.map +2 -2
  92. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +3867 -97
  93. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
  94. package/dist/types/{elements/SwcAppEngine.d.ts → SwcAppEngine.d.ts} +9 -4
  95. package/dist/types/SwcAppEngine.d.ts.map +1 -0
  96. package/dist/types/decorators/applyNode.d.ts +7 -7
  97. package/dist/types/decorators/applyNode.d.ts.map +1 -1
  98. package/dist/types/decorators/applySlot.d.ts +27 -0
  99. package/dist/types/decorators/applySlot.d.ts.map +1 -0
  100. package/dist/types/decorators/elementDefine.d.ts.map +1 -1
  101. package/dist/types/decorators/index.d.ts +1 -0
  102. package/dist/types/decorators/index.d.ts.map +1 -1
  103. package/dist/types/decorators/lifecycles.d.ts +21 -6
  104. package/dist/types/decorators/lifecycles.d.ts.map +1 -1
  105. package/dist/types/elements/SwcApp.d.ts +7 -0
  106. package/dist/types/elements/SwcApp.d.ts.map +1 -0
  107. package/dist/types/elements/index.d.ts +2 -1
  108. package/dist/types/elements/index.d.ts.map +1 -1
  109. package/dist/types/elements/tt/SwcAppMixin.d.ts +1 -0
  110. package/dist/types/elements/tt/SwcAppMixin.d.ts.map +1 -0
  111. package/dist/types/elements/tt/SwcAsync.d.ts +1 -0
  112. package/dist/types/elements/tt/SwcAsync.d.ts.map +1 -0
  113. package/dist/types/elements/tt/SwcAsyncTemplate.d.ts +1 -0
  114. package/dist/types/elements/tt/SwcAsyncTemplate.d.ts.map +1 -0
  115. package/dist/types/elements/tt/SwcChoose.d.ts +1 -0
  116. package/dist/types/elements/tt/SwcChoose.d.ts.map +1 -0
  117. package/dist/types/elements/tt/SwcChooseTemplate.d.ts +1 -0
  118. package/dist/types/elements/tt/SwcChooseTemplate.d.ts.map +1 -0
  119. package/dist/types/elements/tt/SwcIf.d.ts +1 -0
  120. package/dist/types/elements/{SwcIf.d.ts.map → tt/SwcIf.d.ts.map} +1 -1
  121. package/dist/types/elements/tt/SwcIfTemplate.d.ts +1 -0
  122. package/dist/types/elements/tt/SwcIfTemplate.d.ts.map +1 -0
  123. package/dist/types/elements/tt/SwcLoop.d.ts +1 -0
  124. package/dist/types/elements/tt/SwcLoop.d.ts.map +1 -0
  125. package/dist/types/elements/tt/SwcLoopTemplate.d.ts +1 -0
  126. package/dist/types/elements/tt/SwcLoopTemplate.d.ts.map +1 -0
  127. package/dist/types/elements/tt/SwcSubTemplates.d.ts +1 -0
  128. package/dist/types/elements/tt/SwcSubTemplates.d.ts.map +1 -0
  129. package/dist/types/elements/tt/register.d.ts +1 -0
  130. package/dist/types/elements/tt/register.d.ts.map +1 -0
  131. package/dist/types/index.d.ts +2 -2
  132. package/dist/types/index.d.ts.map +1 -1
  133. package/dist/types/types.d.ts +3 -3
  134. package/dist/types/types.d.ts.map +1 -1
  135. package/dist/types/utils/Utils.d.ts +6 -5
  136. package/dist/types/utils/Utils.d.ts.map +1 -1
  137. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +3867 -97
  138. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
  139. package/package.json +2 -2
  140. package/src/{elements/SwcAppEngine.ts → SwcAppEngine.ts} +12 -7
  141. package/src/decorators/applyNode.ts +15 -13
  142. package/src/decorators/applySlot.ts +228 -0
  143. package/src/decorators/elementDefine.ts +59 -37
  144. package/src/decorators/index.ts +1 -0
  145. package/src/decorators/lifecycles.ts +76 -11
  146. package/src/elements/{SwcAppMixin.ts → SwcApp.ts} +98 -31
  147. package/src/elements/index.ts +11 -1
  148. package/src/elements/tt/SwcAppMixin.ts +13 -0
  149. package/src/elements/tt/SwcAsync.ts +139 -0
  150. package/src/elements/tt/SwcAsyncTemplate.ts +126 -0
  151. package/src/elements/tt/SwcChoose.ts +182 -0
  152. package/src/elements/tt/SwcChooseTemplate.ts +229 -0
  153. package/src/elements/tt/SwcIf.ts +145 -0
  154. package/src/elements/tt/SwcIfTemplate.ts +158 -0
  155. package/src/elements/tt/SwcLoop.ts +222 -0
  156. package/src/elements/tt/SwcLoopTemplate.ts +255 -0
  157. package/src/elements/tt/SwcSubTemplates.ts +6 -0
  158. package/src/elements/tt/register.ts +720 -0
  159. package/src/index.ts +13 -9
  160. package/src/types/window.d.ts +43 -0
  161. package/src/types.ts +4 -3
  162. package/src/utils/Utils.ts +11 -6
  163. package/dist/cjs/elements/SwcAppEngine.js.map +0 -7
  164. package/dist/cjs/elements/SwcAppMixin.js.map +0 -7
  165. package/dist/cjs/elements/SwcAsync.js +0 -129
  166. package/dist/cjs/elements/SwcAsync.js.map +0 -7
  167. package/dist/cjs/elements/SwcChoose.js +0 -155
  168. package/dist/cjs/elements/SwcChoose.js.map +0 -7
  169. package/dist/cjs/elements/SwcIf.js +0 -117
  170. package/dist/cjs/elements/SwcIf.js.map +0 -7
  171. package/dist/cjs/elements/SwcLoop.js +0 -176
  172. package/dist/cjs/elements/SwcLoop.js.map +0 -7
  173. package/dist/cjs/elements/SwcSubTemplates.js +0 -13
  174. package/dist/cjs/elements/SwcSubTemplates.js.map +0 -7
  175. package/dist/cjs/elements/register.js +0 -1026
  176. package/dist/cjs/elements/register.js.map +0 -7
  177. package/dist/esm/elements/SwcAppEngine.js.map +0 -7
  178. package/dist/esm/elements/SwcAppMixin.js.map +0 -7
  179. package/dist/esm/elements/SwcAsync.js +0 -129
  180. package/dist/esm/elements/SwcAsync.js.map +0 -7
  181. package/dist/esm/elements/SwcChoose.js +0 -155
  182. package/dist/esm/elements/SwcChoose.js.map +0 -7
  183. package/dist/esm/elements/SwcIf.js +0 -117
  184. package/dist/esm/elements/SwcIf.js.map +0 -7
  185. package/dist/esm/elements/SwcLoop.js +0 -176
  186. package/dist/esm/elements/SwcLoop.js.map +0 -7
  187. package/dist/esm/elements/SwcSubTemplates.js +0 -13
  188. package/dist/esm/elements/SwcSubTemplates.js.map +0 -7
  189. package/dist/esm/elements/register.js +0 -1007
  190. package/dist/esm/elements/register.js.map +0 -7
  191. package/dist/types/elements/SwcAppEngine.d.ts.map +0 -1
  192. package/dist/types/elements/SwcAppMixin.d.ts +0 -386
  193. package/dist/types/elements/SwcAppMixin.d.ts.map +0 -1
  194. package/dist/types/elements/SwcAsync.d.ts +0 -2
  195. package/dist/types/elements/SwcAsync.d.ts.map +0 -1
  196. package/dist/types/elements/SwcChoose.d.ts +0 -2
  197. package/dist/types/elements/SwcChoose.d.ts.map +0 -1
  198. package/dist/types/elements/SwcIf.d.ts +0 -2
  199. package/dist/types/elements/SwcLoop.d.ts +0 -2
  200. package/dist/types/elements/SwcLoop.d.ts.map +0 -1
  201. package/dist/types/elements/SwcSubTemplates.d.ts +0 -13
  202. package/dist/types/elements/SwcSubTemplates.d.ts.map +0 -1
  203. package/dist/types/elements/register.d.ts +0 -4
  204. package/dist/types/elements/register.d.ts.map +0 -1
  205. package/src/elements/SwcAsync.ts +0 -126
  206. package/src/elements/SwcChoose.ts +0 -190
  207. package/src/elements/SwcIf.ts +0 -124
  208. package/src/elements/SwcLoop.ts +0 -205
  209. package/src/elements/SwcSubTemplates.ts +0 -6
  210. package/src/elements/register.ts +0 -1022
@@ -0,0 +1,720 @@
1
+ // import { getElementConfig, elementDefine, attributeThis, changedAttributeThis, getAttributeValue } from '../../decorators';
2
+ // import { SwcAppMixin } from './SwcAppMixin';
3
+ // import { SwcUtils } from '../../utils/Utils';
4
+ // import { FunctionUtils,ActionExpression } from '@dooboostore/core';
5
+ // import { ConvertUtils } from '@dooboostore/core-web';
6
+ //
7
+ // type Constructor<T> = new (...args: any[]) => T;
8
+ //
9
+ // const getBaseClass = (w: Window, name: string) => {
10
+ // const _cls = (w as any)[name];
11
+ // return _cls as typeof globalThis[keyof typeof globalThis];
12
+ // }
13
+ //
14
+ // const extractBaseClasses = (w: Window) => {
15
+ // return {
16
+ // HTMLElement: getBaseClass(w, 'HTMLElement') as typeof globalThis.HTMLElement,
17
+ // HTMLTemplateElement: getBaseClass(w, 'HTMLTemplateElement') as typeof globalThis.HTMLTemplateElement,
18
+ // Node: getBaseClass(w, 'Node') as typeof globalThis.Node,
19
+ // Element: getBaseClass(w, 'Element') as typeof globalThis.Element,
20
+ // DocumentFragment: getBaseClass(w, 'DocumentFragment') as typeof globalThis.DocumentFragment,
21
+ // };
22
+ // }
23
+ //
24
+ //
25
+ //
26
+ // // --- "is" Elements ---
27
+ // export const registerSwcAppAnchor = async (w: Window): Promise<CustomElementConstructor> => {
28
+ // const tagName = 'swc-app-a';
29
+ // const existing = w.customElements.get(tagName);
30
+ // if (existing) return existing;
31
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
32
+ // const HTMLAnchorElement = getBaseClass(w, 'HTMLAnchorElement') as typeof globalThis.HTMLAnchorElement;
33
+ // @elementDefine(tagName, { extends: 'a', window: w })
34
+ // class SwcAppAnchor extends SwcAppMixin(HTMLAnchorElement) {}
35
+ // return await w.customElements.whenDefined(tagName);
36
+ // };
37
+ //
38
+ // export const registerSwcAppArea = async (w: Window): Promise<CustomElementConstructor> => {
39
+ // const tagName = 'swc-app-area';
40
+ // const existing = w.customElements.get(tagName);
41
+ // if (existing) return existing;
42
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
43
+ // const HTMLAreaElement = getBaseClass(w, 'HTMLAreaElement') as typeof globalThis.HTMLAreaElement;
44
+ // @elementDefine(tagName, { extends: 'area', window: w })
45
+ // class SwcAppArea extends SwcAppMixin(HTMLAreaElement) {}
46
+ // return await w.customElements.whenDefined(tagName);
47
+ // };
48
+ //
49
+ // export const registerSwcAppAudio = async (w: Window): Promise<CustomElementConstructor> => {
50
+ // const tagName = 'swc-app-audio';
51
+ // const existing = w.customElements.get(tagName);
52
+ // if (existing) return existing;
53
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
54
+ // const HTMLAudioElement = getBaseClass(w, 'HTMLAudioElement') as typeof globalThis.HTMLAudioElement;
55
+ // @elementDefine(tagName, { extends: 'audio', window: w })
56
+ // class SwcAppAudio extends SwcAppMixin(HTMLAudioElement) {}
57
+ // return await w.customElements.whenDefined(tagName);
58
+ // };
59
+ //
60
+ // export const registerSwcAppBase = async (w: Window): Promise<CustomElementConstructor> => {
61
+ // const tagName = 'swc-app-base';
62
+ // const existing = w.customElements.get(tagName);
63
+ // if (existing) return existing;
64
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
65
+ // const HTMLBaseElement = getBaseClass(w, 'HTMLBaseElement') as typeof globalThis.HTMLBaseElement;
66
+ // @elementDefine(tagName, { extends: 'base', window: w })
67
+ // class SwcAppBase extends SwcAppMixin(HTMLBaseElement) {}
68
+ // return await w.customElements.whenDefined(tagName);
69
+ // };
70
+ //
71
+ // export const registerSwcAppButton = async (w: Window): Promise<CustomElementConstructor> => {
72
+ // const tagName = 'swc-app-button';
73
+ // const existing = w.customElements.get(tagName);
74
+ // if (existing) return existing;
75
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
76
+ // const HTMLButtonElement = getBaseClass(w, 'HTMLButtonElement') as typeof globalThis.HTMLButtonElement;
77
+ // @elementDefine(tagName, { extends: 'button', window: w })
78
+ // class SwcAppButton extends SwcAppMixin(HTMLButtonElement) {}
79
+ // return await w.customElements.whenDefined(tagName);
80
+ // };
81
+ //
82
+ // export const registerSwcAppCanvas = async (w: Window): Promise<CustomElementConstructor> => {
83
+ // const tagName = 'swc-app-canvas';
84
+ // const existing = w.customElements.get(tagName);
85
+ // if (existing) return existing;
86
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
87
+ // const HTMLCanvasElement = getBaseClass(w, 'HTMLCanvasElement') as typeof globalThis.HTMLCanvasElement;
88
+ // @elementDefine(tagName, { extends: 'canvas', window: w })
89
+ // class SwcAppCanvas extends SwcAppMixin(HTMLCanvasElement) {}
90
+ // return await w.customElements.whenDefined(tagName);
91
+ // };
92
+ //
93
+ // export const registerSwcAppData = async (w: Window): Promise<CustomElementConstructor> => {
94
+ // const tagName = 'swc-app-data';
95
+ // const existing = w.customElements.get(tagName);
96
+ // if (existing) return existing;
97
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
98
+ // const HTMLDataElement = getBaseClass(w, 'HTMLDataElement') as typeof globalThis.HTMLDataElement;
99
+ // @elementDefine(tagName, { extends: 'data', window: w })
100
+ // class SwcAppData extends SwcAppMixin(HTMLDataElement) {}
101
+ // return await w.customElements.whenDefined(tagName);
102
+ // };
103
+ //
104
+ // export const registerSwcAppDataList = async (w: Window): Promise<CustomElementConstructor> => {
105
+ // const tagName = 'swc-app-datalist';
106
+ // const existing = w.customElements.get(tagName);
107
+ // if (existing) return existing;
108
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
109
+ // const HTMLDataListElement = getBaseClass(w, 'HTMLDataListElement') as typeof globalThis.HTMLDataListElement;
110
+ // @elementDefine(tagName, { extends: 'datalist', window: w })
111
+ // class SwcAppDataList extends SwcAppMixin(HTMLDataListElement) {}
112
+ // return await w.customElements.whenDefined(tagName);
113
+ // };
114
+ //
115
+ // export const registerSwcAppDetails = async (w: Window): Promise<CustomElementConstructor> => {
116
+ // const tagName = 'swc-app-details';
117
+ // const existing = w.customElements.get(tagName);
118
+ // if (existing) return existing;
119
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
120
+ // const HTMLDetailsElement = getBaseClass(w, 'HTMLDetailsElement') as typeof globalThis.HTMLDetailsElement;
121
+ // @elementDefine(tagName, { extends: 'details', window: w })
122
+ // class SwcAppDetails extends SwcAppMixin(HTMLDetailsElement) {}
123
+ // return await w.customElements.whenDefined(tagName);
124
+ // };
125
+ //
126
+ // export const registerSwcAppDialog = async (w: Window): Promise<CustomElementConstructor> => {
127
+ // const tagName = 'swc-app-dialog';
128
+ // const existing = w.customElements.get(tagName);
129
+ // if (existing) return existing;
130
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
131
+ // const HTMLDialogElement = getBaseClass(w, 'HTMLDialogElement') as typeof globalThis.HTMLDialogElement;
132
+ // @elementDefine(tagName, { extends: 'dialog', window: w })
133
+ // class SwcAppDialog extends SwcAppMixin(HTMLDialogElement) {}
134
+ // return await w.customElements.whenDefined(tagName);
135
+ // };
136
+ //
137
+ // export const registerSwcAppDiv = async (w: Window): Promise<CustomElementConstructor> => {
138
+ // const tagName = 'swc-app-div';
139
+ // const existing = w.customElements.get(tagName);
140
+ // if (existing) return existing;
141
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
142
+ // const HTMLDivElement = getBaseClass(w, 'HTMLDivElement') as typeof globalThis.HTMLDivElement;
143
+ // @elementDefine(tagName, { extends: 'div', window: w })
144
+ // class SwcAppDiv extends SwcAppMixin(HTMLDivElement) {}
145
+ // return await w.customElements.whenDefined(tagName);
146
+ // };
147
+ //
148
+ // export const registerSwcAppDList = async (w: Window): Promise<CustomElementConstructor> => {
149
+ // const tagName = 'swc-app-dl';
150
+ // const existing = w.customElements.get(tagName);
151
+ // if (existing) return existing;
152
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
153
+ // const HTMLDListElement = getBaseClass(w, 'HTMLDListElement') as typeof globalThis.HTMLDListElement;
154
+ // @elementDefine(tagName, { extends: 'dl', window: w })
155
+ // class SwcAppDList extends SwcAppMixin(HTMLDListElement) {}
156
+ // return await w.customElements.whenDefined(tagName);
157
+ // };
158
+ //
159
+ // export const registerSwcAppEmbed = async (w: Window): Promise<CustomElementConstructor> => {
160
+ // const tagName = 'swc-app-embed';
161
+ // const existing = w.customElements.get(tagName);
162
+ // if (existing) return existing;
163
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
164
+ // const HTMLEmbedElement = getBaseClass(w, 'HTMLEmbedElement') as typeof globalThis.HTMLEmbedElement;
165
+ // @elementDefine(tagName, { extends: 'embed', window: w })
166
+ // class SwcAppEmbed extends SwcAppMixin(HTMLEmbedElement) {}
167
+ // return await w.customElements.whenDefined(tagName);
168
+ // };
169
+ //
170
+ // export const registerSwcAppFieldSet = async (w: Window): Promise<CustomElementConstructor> => {
171
+ // const tagName = 'swc-app-fieldset';
172
+ // const existing = w.customElements.get(tagName);
173
+ // if (existing) return existing;
174
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
175
+ // const HTMLFieldSetElement = getBaseClass(w, 'HTMLFieldSetElement') as typeof globalThis.HTMLFieldSetElement;
176
+ // @elementDefine(tagName, { extends: 'fieldset', window: w })
177
+ // class SwcAppFieldSet extends SwcAppMixin(HTMLFieldSetElement) {}
178
+ // return await w.customElements.whenDefined(tagName);
179
+ // };
180
+ //
181
+ // export const registerSwcAppForm = async (w: Window): Promise<CustomElementConstructor> => {
182
+ // const tagName = 'swc-app-form';
183
+ // const existing = w.customElements.get(tagName);
184
+ // if (existing) return existing;
185
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
186
+ // const HTMLFormElement = getBaseClass(w, 'HTMLFormElement') as typeof globalThis.HTMLFormElement;
187
+ // @elementDefine(tagName, { extends: 'form', window: w })
188
+ // class SwcAppForm extends SwcAppMixin(HTMLFormElement) {}
189
+ // return await w.customElements.whenDefined(tagName);
190
+ // };
191
+ //
192
+ // export const registerSwcAppHR = async (w: Window): Promise<CustomElementConstructor> => {
193
+ // const tagName = 'swc-app-hr';
194
+ // const existing = w.customElements.get(tagName);
195
+ // if (existing) return existing;
196
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
197
+ // const HTMLHRElement = getBaseClass(w, 'HTMLHRElement') as typeof globalThis.HTMLHRElement;
198
+ // @elementDefine(tagName, { extends: 'hr', window: w })
199
+ // class SwcAppHR extends SwcAppMixin(HTMLHRElement) {}
200
+ // return await w.customElements.whenDefined(tagName);
201
+ // };
202
+ //
203
+ // export const registerSwcAppIFrame = async (w: Window): Promise<CustomElementConstructor> => {
204
+ // const tagName = 'swc-app-iframe';
205
+ // const existing = w.customElements.get(tagName);
206
+ // if (existing) return existing;
207
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
208
+ // const HTMLIFrameElement = getBaseClass(w, 'HTMLIFrameElement') as typeof globalThis.HTMLIFrameElement;
209
+ // @elementDefine(tagName, { extends: 'iframe', window: w })
210
+ // class SwcAppIFrame extends SwcAppMixin(HTMLIFrameElement) {}
211
+ // return await w.customElements.whenDefined(tagName);
212
+ // };
213
+ //
214
+ // export const registerSwcAppImage = async (w: Window): Promise<CustomElementConstructor> => {
215
+ // const tagName = 'swc-app-img';
216
+ // const existing = w.customElements.get(tagName);
217
+ // if (existing) return existing;
218
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
219
+ // const HTMLImageElement = getBaseClass(w, 'HTMLImageElement') as typeof globalThis.HTMLImageElement;
220
+ // @elementDefine(tagName, { extends: 'img', window: w })
221
+ // class SwcAppImage extends SwcAppMixin(HTMLImageElement) {}
222
+ // return await w.customElements.whenDefined(tagName);
223
+ // };
224
+ //
225
+ // export const registerSwcAppInput = async (w: Window): Promise<CustomElementConstructor> => {
226
+ // const tagName = 'swc-app-input';
227
+ // const existing = w.customElements.get(tagName);
228
+ // if (existing) return existing;
229
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
230
+ // const HTMLInputElement = getBaseClass(w, 'HTMLInputElement') as typeof globalThis.HTMLInputElement;
231
+ // @elementDefine(tagName, { extends: 'input', window: w })
232
+ // class SwcAppInput extends SwcAppMixin(HTMLInputElement) {}
233
+ // return await w.customElements.whenDefined(tagName);
234
+ // };
235
+ //
236
+ // export const registerSwcAppLabel = async (w: Window): Promise<CustomElementConstructor> => {
237
+ // const tagName = 'swc-app-label';
238
+ // const existing = w.customElements.get(tagName);
239
+ // if (existing) return existing;
240
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
241
+ // const HTMLLabelElement = getBaseClass(w, 'HTMLLabelElement') as typeof globalThis.HTMLLabelElement;
242
+ // @elementDefine(tagName, { extends: 'label', window: w })
243
+ // class SwcAppLabel extends SwcAppMixin(HTMLLabelElement) {}
244
+ // return await w.customElements.whenDefined(tagName);
245
+ // };
246
+ //
247
+ // export const registerSwcAppLegend = async (w: Window): Promise<CustomElementConstructor> => {
248
+ // const tagName = 'swc-app-legend';
249
+ // const existing = w.customElements.get(tagName);
250
+ // if (existing) return existing;
251
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
252
+ // const HTMLLegendElement = getBaseClass(w, 'HTMLLegendElement') as typeof globalThis.HTMLLegendElement;
253
+ // @elementDefine(tagName, { extends: 'legend', window: w })
254
+ // class SwcAppLegend extends SwcAppMixin(HTMLLegendElement) {}
255
+ // return await w.customElements.whenDefined(tagName);
256
+ // };
257
+ //
258
+ // export const registerSwcAppLI = async (w: Window): Promise<CustomElementConstructor> => {
259
+ // const tagName = 'swc-app-li';
260
+ // const existing = w.customElements.get(tagName);
261
+ // if (existing) return existing;
262
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
263
+ // const HTMLLIElement = getBaseClass(w, 'HTMLLIElement') as typeof globalThis.HTMLLIElement;
264
+ // @elementDefine(tagName, { extends: 'li', window: w })
265
+ // class SwcAppLI extends SwcAppMixin(HTMLLIElement) {}
266
+ // return await w.customElements.whenDefined(tagName);
267
+ // };
268
+ //
269
+ // export const registerSwcAppLink = async (w: Window): Promise<CustomElementConstructor> => {
270
+ // const tagName = 'swc-app-link';
271
+ // const existing = w.customElements.get(tagName);
272
+ // if (existing) return existing;
273
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
274
+ // const HTMLLinkElement = getBaseClass(w, 'HTMLLinkElement') as typeof globalThis.HTMLLinkElement;
275
+ // @elementDefine(tagName, { extends: 'link', window: w })
276
+ // class SwcAppLink extends SwcAppMixin(HTMLLinkElement) {}
277
+ // return await w.customElements.whenDefined(tagName);
278
+ // };
279
+ //
280
+ // export const registerSwcAppMap = async (w: Window): Promise<CustomElementConstructor> => {
281
+ // const tagName = 'swc-app-map';
282
+ // const existing = w.customElements.get(tagName);
283
+ // if (existing) return existing;
284
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
285
+ // const HTMLMapElement = getBaseClass(w, 'HTMLMapElement') as typeof globalThis.HTMLMapElement;
286
+ // @elementDefine(tagName, { extends: 'map', window: w })
287
+ // class SwcAppMap extends SwcAppMixin(HTMLMapElement) {}
288
+ // return await w.customElements.whenDefined(tagName);
289
+ // };
290
+ //
291
+ // export const registerSwcAppMeta = async (w: Window): Promise<CustomElementConstructor> => {
292
+ // const tagName = 'swc-app-meta';
293
+ // const existing = w.customElements.get(tagName);
294
+ // if (existing) return existing;
295
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
296
+ // const HTMLMetaElement = getBaseClass(w, 'HTMLMetaElement') as typeof globalThis.HTMLMetaElement;
297
+ // @elementDefine(tagName, { extends: 'meta', window: w })
298
+ // class SwcAppMeta extends SwcAppMixin(HTMLMetaElement) {}
299
+ // return await w.customElements.whenDefined(tagName);
300
+ // };
301
+ //
302
+ // export const registerSwcAppMeter = async (w: Window): Promise<CustomElementConstructor> => {
303
+ // const tagName = 'swc-app-meter';
304
+ // const existing = w.customElements.get(tagName);
305
+ // if (existing) return existing;
306
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
307
+ // const HTMLMeterElement = getBaseClass(w, 'HTMLMeterElement') as typeof globalThis.HTMLMeterElement;
308
+ // @elementDefine(tagName, { extends: 'meter', window: w })
309
+ // class SwcAppMeter extends SwcAppMixin(HTMLMeterElement) {}
310
+ // return await w.customElements.whenDefined(tagName);
311
+ // };
312
+ //
313
+ // export const registerSwcAppMod = async (w: Window): Promise<CustomElementConstructor> => {
314
+ // const tagName = 'swc-app-del';
315
+ // const existing = w.customElements.get(tagName);
316
+ // if (existing) return existing;
317
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
318
+ // const HTMLModElement = getBaseClass(w, 'HTMLModElement') as typeof globalThis.HTMLModElement;
319
+ // @elementDefine(tagName, { extends: 'del', window: w })
320
+ // class SwcAppMod extends SwcAppMixin(HTMLModElement) {}
321
+ // return await w.customElements.whenDefined(tagName);
322
+ // };
323
+ //
324
+ // export const registerSwcAppObject = async (w: Window): Promise<CustomElementConstructor> => {
325
+ // const tagName = 'swc-app-object';
326
+ // const existing = w.customElements.get(tagName);
327
+ // if (existing) return existing;
328
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
329
+ // const HTMLObjectElement = getBaseClass(w, 'HTMLObjectElement') as typeof globalThis.HTMLObjectElement;
330
+ // @elementDefine(tagName, { extends: 'object', window: w })
331
+ // class SwcAppObject extends SwcAppMixin(HTMLObjectElement) {}
332
+ // return await w.customElements.whenDefined(tagName);
333
+ // };
334
+ //
335
+ // export const registerSwcAppOList = async (w: Window): Promise<CustomElementConstructor> => {
336
+ // const tagName = 'swc-app-ol';
337
+ // const existing = w.customElements.get(tagName);
338
+ // if (existing) return existing;
339
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
340
+ // const HTMLOListElement = getBaseClass(w, 'HTMLOListElement') as typeof globalThis.HTMLOListElement;
341
+ // @elementDefine(tagName, { extends: 'ol', window: w })
342
+ // class SwcAppOList extends SwcAppMixin(HTMLOListElement) {}
343
+ // return await w.customElements.whenDefined(tagName);
344
+ // };
345
+ //
346
+ // export const registerSwcAppOptGroup = async (w: Window): Promise<CustomElementConstructor> => {
347
+ // const tagName = 'swc-app-optgroup';
348
+ // const existing = w.customElements.get(tagName);
349
+ // if (existing) return existing;
350
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
351
+ // const HTMLOptGroupElement = getBaseClass(w, 'HTMLOptGroupElement') as typeof globalThis.HTMLOptGroupElement;
352
+ // @elementDefine(tagName, { extends: 'optgroup', window: w })
353
+ // class SwcAppOptGroup extends SwcAppMixin(HTMLOptGroupElement) {}
354
+ // return await w.customElements.whenDefined(tagName);
355
+ // };
356
+ //
357
+ // export const registerSwcAppOption = async (w: Window): Promise<CustomElementConstructor> => {
358
+ // const tagName = 'swc-app-option';
359
+ // const existing = w.customElements.get(tagName);
360
+ // if (existing) return existing;
361
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
362
+ // const HTMLOptionElement = getBaseClass(w, 'HTMLOptionElement') as typeof globalThis.HTMLOptionElement;
363
+ // @elementDefine(tagName, { extends: 'option', window: w })
364
+ // class SwcAppOption extends SwcAppMixin(HTMLOptionElement) {}
365
+ // return await w.customElements.whenDefined(tagName);
366
+ // };
367
+ //
368
+ // export const registerSwcAppOutput = async (w: Window): Promise<CustomElementConstructor> => {
369
+ // const tagName = 'swc-app-output';
370
+ // const existing = w.customElements.get(tagName);
371
+ // if (existing) return existing;
372
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
373
+ // const HTMLOutputElement = getBaseClass(w, 'HTMLOutputElement') as typeof globalThis.HTMLOutputElement;
374
+ // @elementDefine(tagName, { extends: 'output', window: w })
375
+ // class SwcAppOutput extends SwcAppMixin(HTMLOutputElement) {}
376
+ // return await w.customElements.whenDefined(tagName);
377
+ // };
378
+ //
379
+ // export const registerSwcAppParagraph = async (w: Window): Promise<CustomElementConstructor> => {
380
+ // const tagName = 'swc-app-p';
381
+ // const existing = w.customElements.get(tagName);
382
+ // if (existing) return existing;
383
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
384
+ // const HTMLParagraphElement = getBaseClass(w, 'HTMLParagraphElement') as typeof globalThis.HTMLParagraphElement;
385
+ // @elementDefine(tagName, { extends: 'p', window: w })
386
+ // class SwcAppParagraph extends SwcAppMixin(HTMLParagraphElement) {}
387
+ // return await w.customElements.whenDefined(tagName);
388
+ // };
389
+ //
390
+ // export const registerSwcAppParam = async (w: Window): Promise<CustomElementConstructor> => {
391
+ // const tagName = 'swc-app-param';
392
+ // const existing = w.customElements.get(tagName);
393
+ // if (existing) return existing;
394
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
395
+ // const HTMLParamElement = getBaseClass(w, 'HTMLParamElement') as typeof globalThis.HTMLParamElement;
396
+ // @elementDefine(tagName, { extends: 'param', window: w })
397
+ // class SwcAppParam extends SwcAppMixin(HTMLParamElement) {}
398
+ // return await w.customElements.whenDefined(tagName);
399
+ // };
400
+ //
401
+ // export const registerSwcAppPicture = async (w: Window): Promise<CustomElementConstructor> => {
402
+ // const tagName = 'swc-app-picture';
403
+ // const existing = w.customElements.get(tagName);
404
+ // if (existing) return existing;
405
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
406
+ // const HTMLPictureElement = getBaseClass(w, 'HTMLPictureElement') as typeof globalThis.HTMLPictureElement;
407
+ // @elementDefine(tagName, { extends: 'picture', window: w })
408
+ // class SwcAppPicture extends SwcAppMixin(HTMLPictureElement) {}
409
+ // return await w.customElements.whenDefined(tagName);
410
+ // };
411
+ //
412
+ // export const registerSwcAppPre = async (w: Window): Promise<CustomElementConstructor> => {
413
+ // const tagName = 'swc-app-pre';
414
+ // const existing = w.customElements.get(tagName);
415
+ // if (existing) return existing;
416
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
417
+ // const HTMLPreElement = getBaseClass(w, 'HTMLPreElement') as typeof globalThis.HTMLPreElement;
418
+ // @elementDefine(tagName, { extends: 'pre', window: w })
419
+ // class SwcAppPre extends SwcAppMixin(HTMLPreElement) {}
420
+ // return await w.customElements.whenDefined(tagName);
421
+ // };
422
+ //
423
+ // export const registerSwcAppProgress = async (w: Window): Promise<CustomElementConstructor> => {
424
+ // const tagName = 'swc-app-progress';
425
+ // const existing = w.customElements.get(tagName);
426
+ // if (existing) return existing;
427
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
428
+ // const HTMLProgressElement = getBaseClass(w, 'HTMLProgressElement') as typeof globalThis.HTMLProgressElement;
429
+ // @elementDefine(tagName, { extends: 'progress', window: w })
430
+ // class SwcAppProgress extends SwcAppMixin(HTMLProgressElement) {}
431
+ // return await w.customElements.whenDefined(tagName);
432
+ // };
433
+ //
434
+ // export const registerSwcAppQuote = async (w: Window): Promise<CustomElementConstructor> => {
435
+ // const tagName = 'swc-app-blockquote';
436
+ // const existing = w.customElements.get(tagName);
437
+ // if (existing) return existing;
438
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
439
+ // const HTMLQuoteElement = getBaseClass(w, 'HTMLQuoteElement') as typeof globalThis.HTMLQuoteElement;
440
+ // @elementDefine(tagName, { extends: 'blockquote', window: w })
441
+ // class SwcAppQuote extends SwcAppMixin(HTMLQuoteElement) {}
442
+ // return await w.customElements.whenDefined(tagName);
443
+ // };
444
+ //
445
+ // export const registerSwcAppScript = async (w: Window): Promise<CustomElementConstructor> => {
446
+ // const tagName = 'swc-app-script';
447
+ // const existing = w.customElements.get(tagName);
448
+ // if (existing) return existing;
449
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
450
+ // const HTMLScriptElement = getBaseClass(w, 'HTMLScriptElement') as typeof globalThis.HTMLScriptElement;
451
+ // @elementDefine(tagName, { extends: 'script', window: w })
452
+ // class SwcAppScript extends SwcAppMixin(HTMLScriptElement) {}
453
+ // return await w.customElements.whenDefined(tagName);
454
+ // };
455
+ //
456
+ // export const registerSwcAppSelect = async (w: Window): Promise<CustomElementConstructor> => {
457
+ // const tagName = 'swc-app-select';
458
+ // const existing = w.customElements.get(tagName);
459
+ // if (existing) return existing;
460
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
461
+ // const HTMLSelectElement = getBaseClass(w, 'HTMLSelectElement') as typeof globalThis.HTMLSelectElement;
462
+ // @elementDefine(tagName, { extends: 'select', window: w })
463
+ // class SwcAppSelect extends SwcAppMixin(HTMLSelectElement) {}
464
+ // return await w.customElements.whenDefined(tagName);
465
+ // };
466
+ //
467
+ // export const registerSwcAppSlot = async (w: Window): Promise<CustomElementConstructor> => {
468
+ // const tagName = 'swc-app-slot';
469
+ // const existing = w.customElements.get(tagName);
470
+ // if (existing) return existing;
471
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
472
+ // const HTMLSlotElement = getBaseClass(w, 'HTMLSlotElement') as typeof globalThis.HTMLSlotElement;
473
+ // @elementDefine(tagName, { extends: 'slot', window: w })
474
+ // class SwcAppSlot extends SwcAppMixin(HTMLSlotElement) {}
475
+ // return await w.customElements.whenDefined(tagName);
476
+ // };
477
+ //
478
+ // export const registerSwcAppSource = async (w: Window): Promise<CustomElementConstructor> => {
479
+ // const tagName = 'swc-app-source';
480
+ // const existing = w.customElements.get(tagName);
481
+ // if (existing) return existing;
482
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
483
+ // const HTMLSourceElement = getBaseClass(w, 'HTMLSourceElement') as typeof globalThis.HTMLSourceElement;
484
+ // @elementDefine(tagName, { extends: 'source', window: w })
485
+ // class SwcAppSource extends SwcAppMixin(HTMLSourceElement) {}
486
+ // return await w.customElements.whenDefined(tagName);
487
+ // };
488
+ //
489
+ // export const registerSwcAppSpan = async (w: Window): Promise<CustomElementConstructor> => {
490
+ // const tagName = 'swc-app-span';
491
+ // const existing = w.customElements.get(tagName);
492
+ // if (existing) return existing;
493
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
494
+ // const HTMLSpanElement = getBaseClass(w, 'HTMLSpanElement') as typeof globalThis.HTMLSpanElement;
495
+ // @elementDefine(tagName, { extends: 'span', window: w })
496
+ // class SwcAppSpan extends SwcAppMixin(HTMLSpanElement) {}
497
+ // return await w.customElements.whenDefined(tagName);
498
+ // };
499
+ //
500
+ // export const registerSwcAppStyle = async (w: Window): Promise<CustomElementConstructor> => {
501
+ // const tagName = 'swc-app-style';
502
+ // const existing = w.customElements.get(tagName);
503
+ // if (existing) return existing;
504
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
505
+ // const HTMLStyleElement = getBaseClass(w, 'HTMLStyleElement') as typeof globalThis.HTMLStyleElement;
506
+ // @elementDefine(tagName, { extends: 'style', window: w })
507
+ // class SwcAppStyle extends SwcAppMixin(HTMLStyleElement) {}
508
+ // return await w.customElements.whenDefined(tagName);
509
+ // };
510
+ //
511
+ // export const registerSwcAppTable = async (w: Window): Promise<CustomElementConstructor> => {
512
+ // const tagName = 'swc-app-table';
513
+ // const existing = w.customElements.get(tagName);
514
+ // if (existing) return existing;
515
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
516
+ // const HTMLTableElement = getBaseClass(w, 'HTMLTableElement') as typeof globalThis.HTMLTableElement;
517
+ // @elementDefine(tagName, { extends: 'table', window: w })
518
+ // class SwcAppTable extends SwcAppMixin(HTMLTableElement) {}
519
+ // return await w.customElements.whenDefined(tagName);
520
+ // };
521
+ //
522
+ // export const registerSwcAppTableSection = async (w: Window): Promise<CustomElementConstructor> => {
523
+ // const tagName = 'swc-app-tbody';
524
+ // const existing = w.customElements.get(tagName);
525
+ // if (existing) return existing;
526
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
527
+ // const HTMLTableSectionElement = getBaseClass(w, 'HTMLTableSectionElement') as typeof globalThis.HTMLTableSectionElement;
528
+ // @elementDefine(tagName, { extends: 'tbody', window: w })
529
+ // class SwcAppTableSection extends SwcAppMixin(HTMLTableSectionElement) {}
530
+ // return await w.customElements.whenDefined(tagName);
531
+ // };
532
+ //
533
+ // export const registerSwcAppTableCell = async (w: Window): Promise<CustomElementConstructor> => {
534
+ // const tagName = 'swc-app-td';
535
+ // const existing = w.customElements.get(tagName);
536
+ // if (existing) return existing;
537
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
538
+ // const HTMLTableCellElement = getBaseClass(w, 'HTMLTableCellElement') as typeof globalThis.HTMLTableCellElement;
539
+ // @elementDefine(tagName, { extends: 'td', window: w })
540
+ // class SwcAppTableCell extends SwcAppMixin(HTMLTableCellElement) {}
541
+ // return await w.customElements.whenDefined(tagName);
542
+ // };
543
+ //
544
+ // export const registerSwcAppTemplate = async (w: Window): Promise<CustomElementConstructor> => {
545
+ // const tagName = 'swc-app-template';
546
+ // const existing = w.customElements.get(tagName);
547
+ // if (existing) return existing;
548
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
549
+ // const HTMLTemplateElement = getBaseClass(w, 'HTMLTemplateElement') as typeof globalThis.HTMLTemplateElement;
550
+ // @elementDefine(tagName, { extends: 'template', window: w })
551
+ // class SwcAppTemplate extends SwcAppMixin(HTMLTemplateElement) {}
552
+ // return await w.customElements.whenDefined(tagName);
553
+ // };
554
+ //
555
+ // export const registerSwcAppTextArea = async (w: Window): Promise<CustomElementConstructor> => {
556
+ // const tagName = 'swc-app-textarea';
557
+ // const existing = w.customElements.get(tagName);
558
+ // if (existing) return existing;
559
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
560
+ // const HTMLTextAreaElement = getBaseClass(w, 'HTMLTextAreaElement') as typeof globalThis.HTMLTextAreaElement;
561
+ // @elementDefine(tagName, { extends: 'textarea', window: w })
562
+ // class SwcAppTextArea extends SwcAppMixin(HTMLTextAreaElement) {}
563
+ // return await w.customElements.whenDefined(tagName);
564
+ // };
565
+ //
566
+ // export const registerSwcAppTime = async (w: Window): Promise<CustomElementConstructor> => {
567
+ // const tagName = 'swc-app-time';
568
+ // const existing = w.customElements.get(tagName);
569
+ // if (existing) return existing;
570
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
571
+ // const HTMLTimeElement = getBaseClass(w, 'HTMLTimeElement') as typeof globalThis.HTMLTimeElement;
572
+ // @elementDefine(tagName, { extends: 'time', window: w })
573
+ // class SwcAppTime extends SwcAppMixin(HTMLTimeElement) {}
574
+ // return await w.customElements.whenDefined(tagName);
575
+ // };
576
+ //
577
+ // export const registerSwcAppTitle = async (w: Window): Promise<CustomElementConstructor> => {
578
+ // const tagName = 'swc-app-title';
579
+ // const existing = w.customElements.get(tagName);
580
+ // if (existing) return existing;
581
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
582
+ // const HTMLTitleElement = getBaseClass(w, 'HTMLTitleElement') as typeof globalThis.HTMLTitleElement;
583
+ // @elementDefine(tagName, { extends: 'title', window: w })
584
+ // class SwcAppTitle extends SwcAppMixin(HTMLTitleElement) {}
585
+ // return await w.customElements.whenDefined(tagName);
586
+ // };
587
+ //
588
+ // export const registerSwcAppTableRow = async (w: Window): Promise<CustomElementConstructor> => {
589
+ // const tagName = 'swc-app-tr';
590
+ // const existing = w.customElements.get(tagName);
591
+ // if (existing) return existing;
592
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
593
+ // const HTMLTableRowElement = getBaseClass(w, 'HTMLTableRowElement') as typeof globalThis.HTMLTableRowElement;
594
+ // @elementDefine(tagName, { extends: 'tr', window: w })
595
+ // class SwcAppTableRow extends SwcAppMixin(HTMLTableRowElement) {}
596
+ // return await w.customElements.whenDefined(tagName);
597
+ // };
598
+ //
599
+ // export const registerSwcAppTrack = async (w: Window): Promise<CustomElementConstructor> => {
600
+ // const tagName = 'swc-app-track';
601
+ // const existing = w.customElements.get(tagName);
602
+ // if (existing) return existing;
603
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
604
+ // const HTMLTrackElement = getBaseClass(w, 'HTMLTrackElement') as typeof globalThis.HTMLTrackElement;
605
+ // @elementDefine(tagName, { extends: 'track', window: w })
606
+ // class SwcAppTrack extends SwcAppMixin(HTMLTrackElement) {}
607
+ // return await w.customElements.whenDefined(tagName);
608
+ // };
609
+ //
610
+ // export const registerSwcAppUList = async (w: Window): Promise<CustomElementConstructor> => {
611
+ // const tagName = 'swc-app-ul';
612
+ // const existing = w.customElements.get(tagName);
613
+ // if (existing) return existing;
614
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
615
+ // const HTMLUListElement = getBaseClass(w, 'HTMLUListElement') as typeof globalThis.HTMLUListElement;
616
+ // @elementDefine(tagName, { extends: 'ul', window: w })
617
+ // class SwcAppUList extends SwcAppMixin(HTMLUListElement) {}
618
+ // return await w.customElements.whenDefined(tagName);
619
+ // };
620
+ //
621
+ // export const registerSwcAppVideo = async (w: Window): Promise<CustomElementConstructor> => {
622
+ // const tagName = 'swc-app-video';
623
+ // const existing = w.customElements.get(tagName);
624
+ // if (existing) return existing;
625
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
626
+ // const HTMLVideoElement = getBaseClass(w, 'HTMLVideoElement') as typeof globalThis.HTMLVideoElement;
627
+ // @elementDefine(tagName, { extends: 'video', window: w })
628
+ // class SwcAppVideo extends SwcAppMixin(HTMLVideoElement) {}
629
+ // return await w.customElements.whenDefined(tagName);
630
+ // };
631
+ //
632
+ // export const registerSwcAppHeading = async (w: Window): Promise<CustomElementConstructor> => {
633
+ // const tagName = 'swc-app-h1';
634
+ // const existing = w.customElements.get(tagName);
635
+ // if (existing) return existing;
636
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
637
+ // const HTMLHeadingElement = getBaseClass(w, 'HTMLHeadingElement') as typeof globalThis.HTMLHeadingElement;
638
+ // @elementDefine(tagName, { extends: 'h1', window: w })
639
+ // class SwcAppHeading extends SwcAppMixin(HTMLHeadingElement) {}
640
+ // return await w.customElements.whenDefined(tagName);
641
+ // };
642
+ //
643
+ // export const registerSwcAppBody = async (w: Window): Promise<CustomElementConstructor> => {
644
+ // const tagName = 'swc-app-body';
645
+ // const existing = w.customElements.get(tagName);
646
+ // if (existing) return existing;
647
+ // const { SwcAppMixin: _SwcAppMixin } = { SwcAppMixin };
648
+ // const HTMLBodyElement = getBaseClass(w, 'HTMLBodyElement') as typeof globalThis.HTMLBodyElement;
649
+ // @elementDefine(tagName, { extends: 'body', window: w })
650
+ // class SwcAppBody extends SwcAppMixin(HTMLBodyElement) {}
651
+ // return await w.customElements.whenDefined(tagName);
652
+ // };
653
+ //
654
+ //
655
+ // export const registerAllElements = async (w: Window): Promise<Record<string, CustomElementConstructor>> => {
656
+ // return {
657
+ // SwcApp: await registerSwcApp(w),
658
+ // SwcIf: await registerSwcIf(w),
659
+ // SwcLoop: await registerSwcLoop(w),
660
+ // SwcChoose: await registerSwcChoose(w),
661
+ // SwcAsync: await registerSwcAsync(w),
662
+ // SwcAppAnchor: await registerSwcAppAnchor(w),
663
+ // SwcAppArea: await registerSwcAppArea(w),
664
+ // SwcAppAudio: await registerSwcAppAudio(w),
665
+ // SwcAppBase: await registerSwcAppBase(w),
666
+ // SwcAppButton: await registerSwcAppButton(w),
667
+ // SwcAppCanvas: await registerSwcAppCanvas(w),
668
+ // SwcAppData: await registerSwcAppData(w),
669
+ // SwcAppDataList: await registerSwcAppDataList(w),
670
+ // SwcAppDetails: await registerSwcAppDetails(w),
671
+ // SwcAppDialog: await registerSwcAppDialog(w),
672
+ // SwcAppDiv: await registerSwcAppDiv(w),
673
+ // SwcAppDList: await registerSwcAppDList(w),
674
+ // SwcAppEmbed: await registerSwcAppEmbed(w),
675
+ // SwcAppFieldSet: await registerSwcAppFieldSet(w),
676
+ // SwcAppForm: await registerSwcAppForm(w),
677
+ // SwcAppHR: await registerSwcAppHR(w),
678
+ // SwcAppIFrame: await registerSwcAppIFrame(w),
679
+ // SwcAppImage: await registerSwcAppImage(w),
680
+ // SwcAppInput: await registerSwcAppInput(w),
681
+ // SwcAppLabel: await registerSwcAppLabel(w),
682
+ // SwcAppLegend: await registerSwcAppLegend(w),
683
+ // SwcAppLI: await registerSwcAppLI(w),
684
+ // SwcAppLink: await registerSwcAppLink(w),
685
+ // SwcAppMap: await registerSwcAppMap(w),
686
+ // SwcAppMeta: await registerSwcAppMeta(w),
687
+ // SwcAppMeter: await registerSwcAppMeter(w),
688
+ // SwcAppMod: await registerSwcAppMod(w),
689
+ // SwcAppObject: await registerSwcAppObject(w),
690
+ // SwcAppOList: await registerSwcAppOList(w),
691
+ // SwcAppOptGroup: await registerSwcAppOptGroup(w),
692
+ // SwcAppOption: await registerSwcAppOption(w),
693
+ // SwcAppOutput: await registerSwcAppOutput(w),
694
+ // SwcAppParagraph: await registerSwcAppParagraph(w),
695
+ // SwcAppParam: await registerSwcAppParam(w),
696
+ // SwcAppPicture: await registerSwcAppPicture(w),
697
+ // SwcAppPre: await registerSwcAppPre(w),
698
+ // SwcAppProgress: await registerSwcAppProgress(w),
699
+ // SwcAppQuote: await registerSwcAppQuote(w),
700
+ // SwcAppScript: await registerSwcAppScript(w),
701
+ // SwcAppSelect: await registerSwcAppSelect(w),
702
+ // SwcAppSlot: await registerSwcAppSlot(w),
703
+ // SwcAppSource: await registerSwcAppSource(w),
704
+ // SwcAppSpan: await registerSwcAppSpan(w),
705
+ // SwcAppStyle: await registerSwcAppStyle(w),
706
+ // SwcAppTable: await registerSwcAppTable(w),
707
+ // SwcAppTableSection: await registerSwcAppTableSection(w),
708
+ // SwcAppTableCell: await registerSwcAppTableCell(w),
709
+ // SwcAppTemplate: await registerSwcAppTemplate(w),
710
+ // SwcAppTextArea: await registerSwcAppTextArea(w),
711
+ // SwcAppTime: await registerSwcAppTime(w),
712
+ // SwcAppTitle: await registerSwcAppTitle(w),
713
+ // SwcAppTableRow: await registerSwcAppTableRow(w),
714
+ // SwcAppTrack: await registerSwcAppTrack(w),
715
+ // SwcAppUList: await registerSwcAppUList(w),
716
+ // SwcAppVideo: await registerSwcAppVideo(w),
717
+ // SwcAppHeading: await registerSwcAppHeading(w),
718
+ // SwcAppBody: await registerSwcAppBody(w),
719
+ // };
720
+ // };