@dooboostore/simple-web-component 1.0.6 → 1.0.7

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 (339) hide show
  1. package/README.md +134 -87
  2. package/dist/cjs/decorators/addEventListener.js.map +1 -1
  3. package/dist/cjs/decorators/elementDefine.js +59 -35
  4. package/dist/cjs/decorators/elementDefine.js.map +2 -2
  5. package/dist/cjs/decorators/query.js +27 -5
  6. package/dist/cjs/decorators/query.js.map +2 -2
  7. package/dist/cjs/decorators/queryAll.js +27 -5
  8. package/dist/cjs/decorators/queryAll.js.map +2 -2
  9. package/dist/cjs/decorators/state.js.map +1 -1
  10. package/dist/cjs/elements/SwcChoose.js.map +2 -2
  11. package/dist/cjs/elements/SwcForOf.js +3 -1
  12. package/dist/cjs/elements/SwcForOf.js.map +2 -2
  13. package/dist/cjs/elements/SwcObject.js +8 -6
  14. package/dist/cjs/elements/SwcObject.js.map +2 -2
  15. package/dist/cjs/index.js +3 -6
  16. package/dist/cjs/index.js.map +2 -2
  17. package/dist/cjs/is/SwcIfAnchor.js +1 -1
  18. package/dist/cjs/is/SwcIfAnchor.js.map +2 -2
  19. package/dist/cjs/is/SwcIfArea.js +1 -1
  20. package/dist/cjs/is/SwcIfArea.js.map +2 -2
  21. package/dist/cjs/is/SwcIfAudio.js +1 -1
  22. package/dist/cjs/is/SwcIfAudio.js.map +2 -2
  23. package/dist/cjs/is/SwcIfBase.js +1 -1
  24. package/dist/cjs/is/SwcIfBase.js.map +2 -2
  25. package/dist/cjs/is/SwcIfButton.js +1 -1
  26. package/dist/cjs/is/SwcIfButton.js.map +2 -2
  27. package/dist/cjs/is/SwcIfCanvas.js +1 -1
  28. package/dist/cjs/is/SwcIfCanvas.js.map +2 -2
  29. package/dist/cjs/is/SwcIfData.js +1 -1
  30. package/dist/cjs/is/SwcIfData.js.map +2 -2
  31. package/dist/cjs/is/SwcIfDataList.js +1 -1
  32. package/dist/cjs/is/SwcIfDataList.js.map +2 -2
  33. package/dist/cjs/is/SwcIfDetails.js +1 -1
  34. package/dist/cjs/is/SwcIfDetails.js.map +2 -2
  35. package/dist/cjs/is/SwcIfDialog.js +1 -1
  36. package/dist/cjs/is/SwcIfDialog.js.map +2 -2
  37. package/dist/cjs/is/SwcIfDiv.js +1 -1
  38. package/dist/cjs/is/SwcIfDiv.js.map +2 -2
  39. package/dist/cjs/is/SwcIfDl.js +1 -1
  40. package/dist/cjs/is/SwcIfDl.js.map +2 -2
  41. package/dist/cjs/is/SwcIfEmbed.js +1 -1
  42. package/dist/cjs/is/SwcIfEmbed.js.map +2 -2
  43. package/dist/cjs/is/SwcIfFieldSet.js +1 -1
  44. package/dist/cjs/is/SwcIfFieldSet.js.map +2 -2
  45. package/dist/cjs/is/SwcIfForm.js +1 -1
  46. package/dist/cjs/is/SwcIfForm.js.map +2 -2
  47. package/dist/cjs/is/SwcIfHeading.js +1 -1
  48. package/dist/cjs/is/SwcIfHeading.js.map +2 -2
  49. package/dist/cjs/is/SwcIfHr.js +1 -1
  50. package/dist/cjs/is/SwcIfHr.js.map +2 -2
  51. package/dist/cjs/is/SwcIfIFrame.js +1 -1
  52. package/dist/cjs/is/SwcIfIFrame.js.map +2 -2
  53. package/dist/cjs/is/SwcIfImage.js +1 -1
  54. package/dist/cjs/is/SwcIfImage.js.map +2 -2
  55. package/dist/cjs/is/SwcIfInput.js +1 -1
  56. package/dist/cjs/is/SwcIfInput.js.map +2 -2
  57. package/dist/cjs/is/SwcIfLabel.js +1 -1
  58. package/dist/cjs/is/SwcIfLabel.js.map +2 -2
  59. package/dist/cjs/is/SwcIfLegend.js +1 -1
  60. package/dist/cjs/is/SwcIfLegend.js.map +2 -2
  61. package/dist/cjs/is/SwcIfLi.js +1 -1
  62. package/dist/cjs/is/SwcIfLi.js.map +2 -2
  63. package/dist/cjs/is/SwcIfLink.js +1 -1
  64. package/dist/cjs/is/SwcIfLink.js.map +2 -2
  65. package/dist/cjs/is/SwcIfMap.js +1 -1
  66. package/dist/cjs/is/SwcIfMap.js.map +2 -2
  67. package/dist/cjs/is/SwcIfMeta.js +1 -1
  68. package/dist/cjs/is/SwcIfMeta.js.map +2 -2
  69. package/dist/cjs/is/SwcIfMeter.js +1 -1
  70. package/dist/cjs/is/SwcIfMeter.js.map +2 -2
  71. package/dist/cjs/is/SwcIfMod.js +1 -1
  72. package/dist/cjs/is/SwcIfMod.js.map +2 -2
  73. package/dist/cjs/is/SwcIfObject.js +1 -1
  74. package/dist/cjs/is/SwcIfObject.js.map +2 -2
  75. package/dist/cjs/is/SwcIfOl.js +1 -1
  76. package/dist/cjs/is/SwcIfOl.js.map +2 -2
  77. package/dist/cjs/is/SwcIfOptGroup.js +1 -1
  78. package/dist/cjs/is/SwcIfOptGroup.js.map +2 -2
  79. package/dist/cjs/is/SwcIfOption.js +1 -1
  80. package/dist/cjs/is/SwcIfOption.js.map +2 -2
  81. package/dist/cjs/is/SwcIfOutput.js +1 -1
  82. package/dist/cjs/is/SwcIfOutput.js.map +2 -2
  83. package/dist/cjs/is/SwcIfParagraph.js +1 -1
  84. package/dist/cjs/is/SwcIfParagraph.js.map +2 -2
  85. package/dist/cjs/is/SwcIfParam.js +1 -1
  86. package/dist/cjs/is/SwcIfParam.js.map +2 -2
  87. package/dist/cjs/is/SwcIfPicture.js +1 -1
  88. package/dist/cjs/is/SwcIfPicture.js.map +2 -2
  89. package/dist/cjs/is/SwcIfPre.js +1 -1
  90. package/dist/cjs/is/SwcIfPre.js.map +2 -2
  91. package/dist/cjs/is/SwcIfProgress.js +1 -1
  92. package/dist/cjs/is/SwcIfProgress.js.map +2 -2
  93. package/dist/cjs/is/SwcIfQuote.js +1 -1
  94. package/dist/cjs/is/SwcIfQuote.js.map +2 -2
  95. package/dist/cjs/is/SwcIfScript.js +1 -1
  96. package/dist/cjs/is/SwcIfScript.js.map +2 -2
  97. package/dist/cjs/is/SwcIfSelect.js +1 -1
  98. package/dist/cjs/is/SwcIfSelect.js.map +2 -2
  99. package/dist/cjs/is/SwcIfSlot.js +1 -1
  100. package/dist/cjs/is/SwcIfSlot.js.map +2 -2
  101. package/dist/cjs/is/SwcIfSource.js +1 -1
  102. package/dist/cjs/is/SwcIfSource.js.map +2 -2
  103. package/dist/cjs/is/SwcIfSpan.js +1 -1
  104. package/dist/cjs/is/SwcIfSpan.js.map +2 -2
  105. package/dist/cjs/is/SwcIfStyle.js +1 -1
  106. package/dist/cjs/is/SwcIfStyle.js.map +2 -2
  107. package/dist/cjs/is/SwcIfTable.js +1 -1
  108. package/dist/cjs/is/SwcIfTable.js.map +2 -2
  109. package/dist/cjs/is/SwcIfTableCell.js +1 -1
  110. package/dist/cjs/is/SwcIfTableCell.js.map +2 -2
  111. package/dist/cjs/is/SwcIfTableRow.js +1 -1
  112. package/dist/cjs/is/SwcIfTableRow.js.map +2 -2
  113. package/dist/cjs/is/SwcIfTableSection.js +1 -1
  114. package/dist/cjs/is/SwcIfTableSection.js.map +2 -2
  115. package/dist/cjs/is/SwcIfTemplate.js +1 -1
  116. package/dist/cjs/is/SwcIfTemplate.js.map +2 -2
  117. package/dist/cjs/is/SwcIfTextArea.js +1 -1
  118. package/dist/cjs/is/SwcIfTextArea.js.map +2 -2
  119. package/dist/cjs/is/SwcIfTime.js +1 -1
  120. package/dist/cjs/is/SwcIfTime.js.map +2 -2
  121. package/dist/cjs/is/SwcIfTitle.js +1 -1
  122. package/dist/cjs/is/SwcIfTitle.js.map +2 -2
  123. package/dist/cjs/is/SwcIfTrack.js +1 -1
  124. package/dist/cjs/is/SwcIfTrack.js.map +2 -2
  125. package/dist/cjs/is/SwcIfUl.js +1 -1
  126. package/dist/cjs/is/SwcIfUl.js.map +2 -2
  127. package/dist/cjs/is/SwcIfVideo.js +1 -1
  128. package/dist/cjs/is/SwcIfVideo.js.map +2 -2
  129. package/dist/esm/decorators/addEventListener.js.map +1 -1
  130. package/dist/esm/decorators/elementDefine.js +59 -35
  131. package/dist/esm/decorators/elementDefine.js.map +2 -2
  132. package/dist/esm/decorators/query.js +27 -5
  133. package/dist/esm/decorators/query.js.map +2 -2
  134. package/dist/esm/decorators/queryAll.js +27 -5
  135. package/dist/esm/decorators/queryAll.js.map +2 -2
  136. package/dist/esm/decorators/state.js.map +1 -1
  137. package/dist/esm/elements/SwcChoose.js.map +2 -2
  138. package/dist/esm/elements/SwcForOf.js +3 -1
  139. package/dist/esm/elements/SwcForOf.js.map +2 -2
  140. package/dist/esm/elements/SwcObject.js +8 -6
  141. package/dist/esm/elements/SwcObject.js.map +2 -2
  142. package/dist/esm/index.js +3 -6
  143. package/dist/esm/index.js.map +2 -2
  144. package/dist/esm/is/SwcIfAnchor.js +1 -1
  145. package/dist/esm/is/SwcIfAnchor.js.map +2 -2
  146. package/dist/esm/is/SwcIfArea.js +1 -1
  147. package/dist/esm/is/SwcIfArea.js.map +2 -2
  148. package/dist/esm/is/SwcIfAudio.js +1 -1
  149. package/dist/esm/is/SwcIfAudio.js.map +2 -2
  150. package/dist/esm/is/SwcIfBase.js +1 -1
  151. package/dist/esm/is/SwcIfBase.js.map +2 -2
  152. package/dist/esm/is/SwcIfButton.js +1 -1
  153. package/dist/esm/is/SwcIfButton.js.map +2 -2
  154. package/dist/esm/is/SwcIfCanvas.js +1 -1
  155. package/dist/esm/is/SwcIfCanvas.js.map +2 -2
  156. package/dist/esm/is/SwcIfData.js +1 -1
  157. package/dist/esm/is/SwcIfData.js.map +2 -2
  158. package/dist/esm/is/SwcIfDataList.js +1 -1
  159. package/dist/esm/is/SwcIfDataList.js.map +2 -2
  160. package/dist/esm/is/SwcIfDetails.js +1 -1
  161. package/dist/esm/is/SwcIfDetails.js.map +2 -2
  162. package/dist/esm/is/SwcIfDialog.js +1 -1
  163. package/dist/esm/is/SwcIfDialog.js.map +2 -2
  164. package/dist/esm/is/SwcIfDiv.js +1 -1
  165. package/dist/esm/is/SwcIfDiv.js.map +2 -2
  166. package/dist/esm/is/SwcIfDl.js +1 -1
  167. package/dist/esm/is/SwcIfDl.js.map +2 -2
  168. package/dist/esm/is/SwcIfEmbed.js +1 -1
  169. package/dist/esm/is/SwcIfEmbed.js.map +2 -2
  170. package/dist/esm/is/SwcIfFieldSet.js +1 -1
  171. package/dist/esm/is/SwcIfFieldSet.js.map +2 -2
  172. package/dist/esm/is/SwcIfForm.js +1 -1
  173. package/dist/esm/is/SwcIfForm.js.map +2 -2
  174. package/dist/esm/is/SwcIfHeading.js +1 -1
  175. package/dist/esm/is/SwcIfHeading.js.map +2 -2
  176. package/dist/esm/is/SwcIfHr.js +1 -1
  177. package/dist/esm/is/SwcIfHr.js.map +2 -2
  178. package/dist/esm/is/SwcIfIFrame.js +1 -1
  179. package/dist/esm/is/SwcIfIFrame.js.map +2 -2
  180. package/dist/esm/is/SwcIfImage.js +1 -1
  181. package/dist/esm/is/SwcIfImage.js.map +2 -2
  182. package/dist/esm/is/SwcIfInput.js +1 -1
  183. package/dist/esm/is/SwcIfInput.js.map +2 -2
  184. package/dist/esm/is/SwcIfLabel.js +1 -1
  185. package/dist/esm/is/SwcIfLabel.js.map +2 -2
  186. package/dist/esm/is/SwcIfLegend.js +1 -1
  187. package/dist/esm/is/SwcIfLegend.js.map +2 -2
  188. package/dist/esm/is/SwcIfLi.js +1 -1
  189. package/dist/esm/is/SwcIfLi.js.map +2 -2
  190. package/dist/esm/is/SwcIfLink.js +1 -1
  191. package/dist/esm/is/SwcIfLink.js.map +2 -2
  192. package/dist/esm/is/SwcIfMap.js +1 -1
  193. package/dist/esm/is/SwcIfMap.js.map +2 -2
  194. package/dist/esm/is/SwcIfMeta.js +1 -1
  195. package/dist/esm/is/SwcIfMeta.js.map +2 -2
  196. package/dist/esm/is/SwcIfMeter.js +1 -1
  197. package/dist/esm/is/SwcIfMeter.js.map +2 -2
  198. package/dist/esm/is/SwcIfMod.js +1 -1
  199. package/dist/esm/is/SwcIfMod.js.map +2 -2
  200. package/dist/esm/is/SwcIfObject.js +1 -1
  201. package/dist/esm/is/SwcIfObject.js.map +2 -2
  202. package/dist/esm/is/SwcIfOl.js +1 -1
  203. package/dist/esm/is/SwcIfOl.js.map +2 -2
  204. package/dist/esm/is/SwcIfOptGroup.js +1 -1
  205. package/dist/esm/is/SwcIfOptGroup.js.map +2 -2
  206. package/dist/esm/is/SwcIfOption.js +1 -1
  207. package/dist/esm/is/SwcIfOption.js.map +2 -2
  208. package/dist/esm/is/SwcIfOutput.js +1 -1
  209. package/dist/esm/is/SwcIfOutput.js.map +2 -2
  210. package/dist/esm/is/SwcIfParagraph.js +1 -1
  211. package/dist/esm/is/SwcIfParagraph.js.map +2 -2
  212. package/dist/esm/is/SwcIfParam.js +1 -1
  213. package/dist/esm/is/SwcIfParam.js.map +2 -2
  214. package/dist/esm/is/SwcIfPicture.js +1 -1
  215. package/dist/esm/is/SwcIfPicture.js.map +2 -2
  216. package/dist/esm/is/SwcIfPre.js +1 -1
  217. package/dist/esm/is/SwcIfPre.js.map +2 -2
  218. package/dist/esm/is/SwcIfProgress.js +1 -1
  219. package/dist/esm/is/SwcIfProgress.js.map +2 -2
  220. package/dist/esm/is/SwcIfQuote.js +1 -1
  221. package/dist/esm/is/SwcIfQuote.js.map +2 -2
  222. package/dist/esm/is/SwcIfScript.js +1 -1
  223. package/dist/esm/is/SwcIfScript.js.map +2 -2
  224. package/dist/esm/is/SwcIfSelect.js +1 -1
  225. package/dist/esm/is/SwcIfSelect.js.map +2 -2
  226. package/dist/esm/is/SwcIfSlot.js +1 -1
  227. package/dist/esm/is/SwcIfSlot.js.map +2 -2
  228. package/dist/esm/is/SwcIfSource.js +1 -1
  229. package/dist/esm/is/SwcIfSource.js.map +2 -2
  230. package/dist/esm/is/SwcIfSpan.js +1 -1
  231. package/dist/esm/is/SwcIfSpan.js.map +2 -2
  232. package/dist/esm/is/SwcIfStyle.js +1 -1
  233. package/dist/esm/is/SwcIfStyle.js.map +2 -2
  234. package/dist/esm/is/SwcIfTable.js +1 -1
  235. package/dist/esm/is/SwcIfTable.js.map +2 -2
  236. package/dist/esm/is/SwcIfTableCell.js +1 -1
  237. package/dist/esm/is/SwcIfTableCell.js.map +2 -2
  238. package/dist/esm/is/SwcIfTableRow.js +1 -1
  239. package/dist/esm/is/SwcIfTableRow.js.map +2 -2
  240. package/dist/esm/is/SwcIfTableSection.js +1 -1
  241. package/dist/esm/is/SwcIfTableSection.js.map +2 -2
  242. package/dist/esm/is/SwcIfTemplate.js +1 -1
  243. package/dist/esm/is/SwcIfTemplate.js.map +2 -2
  244. package/dist/esm/is/SwcIfTextArea.js +1 -1
  245. package/dist/esm/is/SwcIfTextArea.js.map +2 -2
  246. package/dist/esm/is/SwcIfTime.js +1 -1
  247. package/dist/esm/is/SwcIfTime.js.map +2 -2
  248. package/dist/esm/is/SwcIfTitle.js +1 -1
  249. package/dist/esm/is/SwcIfTitle.js.map +2 -2
  250. package/dist/esm/is/SwcIfTrack.js +1 -1
  251. package/dist/esm/is/SwcIfTrack.js.map +2 -2
  252. package/dist/esm/is/SwcIfUl.js +1 -1
  253. package/dist/esm/is/SwcIfUl.js.map +2 -2
  254. package/dist/esm/is/SwcIfVideo.js +1 -1
  255. package/dist/esm/is/SwcIfVideo.js.map +2 -2
  256. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +1938 -2014
  257. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
  258. package/dist/types/decorators/addEventListener.d.ts +1 -1
  259. package/dist/types/decorators/addEventListener.d.ts.map +1 -1
  260. package/dist/types/decorators/elementDefine.d.ts.map +1 -1
  261. package/dist/types/decorators/query.d.ts +5 -2
  262. package/dist/types/decorators/query.d.ts.map +1 -1
  263. package/dist/types/decorators/queryAll.d.ts +5 -2
  264. package/dist/types/decorators/queryAll.d.ts.map +1 -1
  265. package/dist/types/decorators/state.d.ts +1 -1
  266. package/dist/types/decorators/state.d.ts.map +1 -1
  267. package/dist/types/elements/SwcChoose.d.ts.map +1 -1
  268. package/dist/types/elements/SwcForOf.d.ts.map +1 -1
  269. package/dist/types/elements/SwcObject.d.ts.map +1 -1
  270. package/dist/types/index.d.ts +3 -6
  271. package/dist/types/index.d.ts.map +1 -1
  272. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +1938 -2014
  273. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
  274. package/package.json +4 -4
  275. package/src/decorators/addEventListener.ts +1 -1
  276. package/src/decorators/elementDefine.ts +64 -35
  277. package/src/decorators/query.ts +35 -8
  278. package/src/decorators/queryAll.ts +35 -8
  279. package/src/decorators/state.ts +1 -1
  280. package/src/elements/SwcChoose.ts +1 -5
  281. package/src/elements/SwcForOf.ts +2 -1
  282. package/src/elements/SwcObject.ts +8 -6
  283. package/src/index.ts +3 -6
  284. package/src/is/SwcIfAnchor.ts +1 -1
  285. package/src/is/SwcIfArea.ts +1 -1
  286. package/src/is/SwcIfAudio.ts +1 -1
  287. package/src/is/SwcIfBase.ts +1 -1
  288. package/src/is/SwcIfButton.ts +1 -1
  289. package/src/is/SwcIfCanvas.ts +1 -1
  290. package/src/is/SwcIfData.ts +1 -1
  291. package/src/is/SwcIfDataList.ts +1 -1
  292. package/src/is/SwcIfDetails.ts +1 -1
  293. package/src/is/SwcIfDialog.ts +1 -1
  294. package/src/is/SwcIfDiv.ts +1 -1
  295. package/src/is/SwcIfDl.ts +1 -1
  296. package/src/is/SwcIfEmbed.ts +1 -1
  297. package/src/is/SwcIfFieldSet.ts +1 -1
  298. package/src/is/SwcIfForm.ts +1 -1
  299. package/src/is/SwcIfHeading.ts +1 -1
  300. package/src/is/SwcIfHr.ts +1 -1
  301. package/src/is/SwcIfIFrame.ts +1 -1
  302. package/src/is/SwcIfImage.ts +1 -1
  303. package/src/is/SwcIfInput.ts +1 -1
  304. package/src/is/SwcIfLabel.ts +1 -1
  305. package/src/is/SwcIfLegend.ts +1 -1
  306. package/src/is/SwcIfLi.ts +1 -1
  307. package/src/is/SwcIfLink.ts +1 -1
  308. package/src/is/SwcIfMap.ts +1 -1
  309. package/src/is/SwcIfMeta.ts +1 -1
  310. package/src/is/SwcIfMeter.ts +1 -1
  311. package/src/is/SwcIfMod.ts +1 -1
  312. package/src/is/SwcIfObject.ts +1 -1
  313. package/src/is/SwcIfOl.ts +1 -1
  314. package/src/is/SwcIfOptGroup.ts +1 -1
  315. package/src/is/SwcIfOption.ts +1 -1
  316. package/src/is/SwcIfOutput.ts +1 -1
  317. package/src/is/SwcIfParagraph.ts +1 -1
  318. package/src/is/SwcIfParam.ts +1 -1
  319. package/src/is/SwcIfPicture.ts +1 -1
  320. package/src/is/SwcIfPre.ts +1 -1
  321. package/src/is/SwcIfProgress.ts +1 -1
  322. package/src/is/SwcIfQuote.ts +1 -1
  323. package/src/is/SwcIfScript.ts +1 -1
  324. package/src/is/SwcIfSelect.ts +1 -1
  325. package/src/is/SwcIfSlot.ts +1 -1
  326. package/src/is/SwcIfSource.ts +1 -1
  327. package/src/is/SwcIfSpan.ts +1 -1
  328. package/src/is/SwcIfStyle.ts +1 -1
  329. package/src/is/SwcIfTable.ts +1 -1
  330. package/src/is/SwcIfTableCell.ts +1 -1
  331. package/src/is/SwcIfTableRow.ts +1 -1
  332. package/src/is/SwcIfTableSection.ts +1 -1
  333. package/src/is/SwcIfTemplate.ts +1 -1
  334. package/src/is/SwcIfTextArea.ts +1 -1
  335. package/src/is/SwcIfTime.ts +1 -1
  336. package/src/is/SwcIfTitle.ts +1 -1
  337. package/src/is/SwcIfTrack.ts +1 -1
  338. package/src/is/SwcIfUl.ts +1 -1
  339. package/src/is/SwcIfVideo.ts +1 -1
@@ -24,8 +24,8 @@ __export(query_exports, {
24
24
  module.exports = __toCommonJS(query_exports);
25
25
  var import_ReflectUtils = require("@dooboostore/core/reflect/ReflectUtils");
26
26
  const QUERY_METADATA_KEY = Symbol("simple-web-component:query");
27
- const query = (selector, options = { useShadow: true }) => {
28
- return (target, propertyKey, descriptor) => {
27
+ function query(arg1, arg2) {
28
+ const decorator = (selector, options, target, propertyKey, descriptor) => {
29
29
  const isMethod = !!descriptor;
30
30
  const constructor = target.constructor;
31
31
  let queries = import_ReflectUtils.ReflectUtils.getMetadata(QUERY_METADATA_KEY, constructor);
@@ -37,15 +37,37 @@ const query = (selector, options = { useShadow: true }) => {
37
37
  if (!isMethod) {
38
38
  Object.defineProperty(target, propertyKey, {
39
39
  get() {
40
- const root = options.useShadow !== false && this.shadowRoot ? this.shadowRoot : this;
41
- return root.querySelector(selector);
40
+ if (!selector)
41
+ return this;
42
+ let searchRoot = this;
43
+ if (options.root === "shadow")
44
+ searchRoot = this.shadowRoot || this;
45
+ else if (options.root === "light")
46
+ searchRoot = this;
47
+ else
48
+ searchRoot = this.shadowRoot || this;
49
+ return searchRoot.querySelector(selector);
42
50
  },
43
51
  enumerable: true,
44
52
  configurable: true
45
53
  });
46
54
  }
47
55
  };
48
- };
56
+ if (arg1 && typeof arg2 === "string") {
57
+ return decorator("", {}, arg1, arg2);
58
+ }
59
+ return (target, propertyKey, descriptor) => {
60
+ let selector = "";
61
+ let options = {};
62
+ if (typeof arg1 === "string") {
63
+ selector = arg1;
64
+ } else if (typeof arg1 === "object") {
65
+ options = arg1;
66
+ selector = options.selector || "";
67
+ }
68
+ decorator(selector, options, target, propertyKey, descriptor);
69
+ };
70
+ }
49
71
  const getQueryMetadata = (target) => {
50
72
  const constructor = target instanceof Function ? target : target.constructor;
51
73
  return import_ReflectUtils.ReflectUtils.getMetadata(QUERY_METADATA_KEY, constructor);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/decorators/query.ts"],
4
- "sourcesContent": ["import { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';\n\nexport interface QueryOptions {\n useShadow?: boolean;\n}\n\nexport interface QueryMetadata {\n selector: string;\n options: QueryOptions;\n propertyKey: string | symbol;\n isMethod: boolean;\n}\n\nexport const QUERY_METADATA_KEY = Symbol('simple-web-component:query');\n\nexport const query = (selector: string, options: QueryOptions = { useShadow: true }): any => {\n return (target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {\n const isMethod = !!descriptor;\n const constructor = target.constructor;\n\n // \uBA54\uD0C0\uB370\uC774\uD130 \uC800\uC7A5 (\uB098\uC911\uC5D0 elementDefine\uC5D0\uC11C \uC0AC\uC6A9)\n let queries = ReflectUtils.getMetadata<QueryMetadata[]>(QUERY_METADATA_KEY, constructor);\n if (!queries) {\n queries = [];\n ReflectUtils.defineMetadata(QUERY_METADATA_KEY, queries, constructor);\n }\n queries.push({ selector, options, propertyKey, isMethod });\n\n if (!isMethod) {\n // \uC18D\uC131 \uB370\uCF54\uB808\uC774\uD130\uC778 \uACBD\uC6B0: \uAE30\uC874\uCC98\uB7FC Lazy Getter \uC124\uC815\n Object.defineProperty(target, propertyKey, {\n get(this: HTMLElement) {\n const root = options.useShadow !== false && this.shadowRoot ? this.shadowRoot : this;\n return root.querySelector(selector);\n },\n enumerable: true,\n configurable: true\n });\n }\n };\n};\n\nexport const getQueryMetadata = (target: any): QueryMetadata[] | undefined => {\n const constructor = target instanceof Function ? target : target.constructor;\n return ReflectUtils.getMetadata(QUERY_METADATA_KEY, constructor);\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA6B;AAatB,MAAM,qBAAqB,OAAO,4BAA4B;AAE9D,MAAM,QAAQ,CAAC,UAAkB,UAAwB,EAAE,WAAW,KAAK,MAAW;AAC3F,SAAO,CAAC,QAAgB,aAA8B,eAAoC;AACxF,UAAM,WAAW,CAAC,CAAC;AACnB,UAAM,cAAc,OAAO;AAG3B,QAAI,UAAU,iCAAa,YAA6B,oBAAoB,WAAW;AACvF,QAAI,CAAC,SAAS;AACZ,gBAAU,CAAC;AACX,uCAAa,eAAe,oBAAoB,SAAS,WAAW;AAAA,IACtE;AACA,YAAQ,KAAK,EAAE,UAAU,SAAS,aAAa,SAAS,CAAC;AAEzD,QAAI,CAAC,UAAU;AAEb,aAAO,eAAe,QAAQ,aAAa;AAAA,QACzC,MAAuB;AACrB,gBAAM,OAAO,QAAQ,cAAc,SAAS,KAAK,aAAa,KAAK,aAAa;AAChF,iBAAO,KAAK,cAAc,QAAQ;AAAA,QACpC;AAAA,QACA,YAAY;AAAA,QACZ,cAAc;AAAA,MAChB,CAAC;AAAA,IACH;AAAA,EACF;AACF;AAEO,MAAM,mBAAmB,CAAC,WAA6C;AAC5E,QAAM,cAAc,kBAAkB,WAAW,SAAS,OAAO;AACjE,SAAO,iCAAa,YAAY,oBAAoB,WAAW;AACjE;",
4
+ "sourcesContent": ["import { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';\n\nexport interface QueryOptions {\n selector?: string;\n root?: 'light' | 'shadow' | 'all' | 'auto';\n}\n\nexport interface QueryMetadata {\n selector: string;\n options: QueryOptions;\n propertyKey: string | symbol;\n isMethod: boolean;\n}\n\nexport const QUERY_METADATA_KEY = Symbol('simple-web-component:query');\n\nexport function query(selector: string): any;\nexport function query(options: QueryOptions): any;\nexport function query(target: Object, propertyKey: string | symbol): void;\nexport function query(arg1?: string | QueryOptions | Object, arg2?: string | symbol): any {\n const decorator = (selector: string, options: QueryOptions, target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {\n const isMethod = !!descriptor;\n const constructor = target.constructor;\n\n let queries = ReflectUtils.getMetadata<QueryMetadata[]>(QUERY_METADATA_KEY, constructor);\n if (!queries) {\n queries = [];\n ReflectUtils.defineMetadata(QUERY_METADATA_KEY, queries, constructor);\n }\n queries.push({ selector, options, propertyKey, isMethod });\n\n if (!isMethod) {\n Object.defineProperty(target, propertyKey, {\n get(this: HTMLElement) {\n if (!selector) return this;\n let searchRoot: Node = this;\n if (options.root === 'shadow') searchRoot = this.shadowRoot || this;\n else if (options.root === 'light') searchRoot = this;\n else searchRoot = this.shadowRoot || this; // Default: Auto (Shadow-First)\n\n return (searchRoot as HTMLElement).querySelector(selector);\n },\n enumerable: true,\n configurable: true\n });\n }\n };\n\n // Case: @query (parameterless decorator)\n if (arg1 && typeof arg2 === 'string') {\n return decorator('', {}, arg1 as Object, arg2 as string | symbol);\n }\n\n // Case: @query('selector') or @query({ selector: '...', ... })\n return (target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {\n let selector = '';\n let options: QueryOptions = {};\n\n if (typeof arg1 === 'string') {\n selector = arg1;\n } else if (typeof arg1 === 'object') {\n options = arg1 as QueryOptions;\n selector = options.selector || '';\n }\n\n decorator(selector, options, target, propertyKey, descriptor);\n };\n}\n\nexport const getQueryMetadata = (target: any): QueryMetadata[] | undefined => {\n const constructor = target instanceof Function ? target : target.constructor;\n return ReflectUtils.getMetadata(QUERY_METADATA_KEY, constructor);\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;;;;;;;0BAA6B;AActB,MAAM,qBAAqB,OAAO,4BAA4B;AAK/D,SAAU,MAAM,MAAuC,MAAsB;AACjF,QAAM,YAAY,CAAC,UAAkB,SAAuB,QAAgB,aAA8B,eAAmC;AAC3I,UAAM,WAAW,CAAC,CAAC;AACnB,UAAM,cAAc,OAAO;AAE3B,QAAI,UAAU,iCAAa,YAA6B,oBAAoB,WAAW;AACvF,QAAI,CAAC,SAAS;AACZ,gBAAU,CAAA;AACV,uCAAa,eAAe,oBAAoB,SAAS,WAAW;IACtE;AACA,YAAQ,KAAK,EAAE,UAAU,SAAS,aAAa,SAAQ,CAAE;AAEzD,QAAI,CAAC,UAAU;AACb,aAAO,eAAe,QAAQ,aAAa;QACzC,MAAG;AACD,cAAI,CAAC;AAAU,mBAAO;AACtB,cAAI,aAAmB;AACvB,cAAI,QAAQ,SAAS;AAAU,yBAAa,KAAK,cAAc;mBACtD,QAAQ,SAAS;AAAS,yBAAa;;AAC3C,yBAAa,KAAK,cAAc;AAErC,iBAAQ,WAA2B,cAAc,QAAQ;QAC3D;QACA,YAAY;QACZ,cAAc;OACf;IACH;EACF;AAGA,MAAI,QAAQ,OAAO,SAAS,UAAU;AACpC,WAAO,UAAU,IAAI,CAAA,GAAI,MAAgB,IAAuB;EAClE;AAGA,SAAO,CAAC,QAAgB,aAA8B,eAAmC;AACvF,QAAI,WAAW;AACf,QAAI,UAAwB,CAAA;AAE5B,QAAI,OAAO,SAAS,UAAU;AAC5B,iBAAW;IACb,WAAW,OAAO,SAAS,UAAU;AACnC,gBAAU;AACV,iBAAW,QAAQ,YAAY;IACjC;AAEA,cAAU,UAAU,SAAS,QAAQ,aAAa,UAAU;EAC9D;AACF;AAEO,MAAM,mBAAmB,CAAC,WAA4C;AAC3E,QAAM,cAAc,kBAAkB,WAAW,SAAS,OAAO;AACjE,SAAO,iCAAa,YAAY,oBAAoB,WAAW;AACjE;",
6
6
  "names": []
7
7
  }
@@ -24,8 +24,8 @@ __export(queryAll_exports, {
24
24
  module.exports = __toCommonJS(queryAll_exports);
25
25
  var import_ReflectUtils = require("@dooboostore/core/reflect/ReflectUtils");
26
26
  const QUERY_ALL_METADATA_KEY = Symbol("simple-web-component:query-all");
27
- const queryAll = (selector, options = { useShadow: true }) => {
28
- return (target, propertyKey, descriptor) => {
27
+ function queryAll(arg1, arg2) {
28
+ const decorator = (selector, options, target, propertyKey, descriptor) => {
29
29
  const isMethod = !!descriptor;
30
30
  const constructor = target.constructor;
31
31
  let queries = import_ReflectUtils.ReflectUtils.getMetadata(QUERY_ALL_METADATA_KEY, constructor);
@@ -37,15 +37,37 @@ const queryAll = (selector, options = { useShadow: true }) => {
37
37
  if (!isMethod) {
38
38
  Object.defineProperty(target, propertyKey, {
39
39
  get() {
40
- const root = options.useShadow !== false && this.shadowRoot ? this.shadowRoot : this;
41
- return root.querySelectorAll(selector);
40
+ if (!selector)
41
+ return [this];
42
+ let searchRoot = this;
43
+ if (options.root === "shadow")
44
+ searchRoot = this.shadowRoot || this;
45
+ else if (options.root === "light")
46
+ searchRoot = this;
47
+ else
48
+ searchRoot = this.shadowRoot || this;
49
+ return searchRoot.querySelectorAll(selector);
42
50
  },
43
51
  enumerable: true,
44
52
  configurable: true
45
53
  });
46
54
  }
47
55
  };
48
- };
56
+ if (arg1 && typeof arg2 === "string") {
57
+ return decorator("", {}, arg1, arg2);
58
+ }
59
+ return (target, propertyKey, descriptor) => {
60
+ let selector = "";
61
+ let options = {};
62
+ if (typeof arg1 === "string") {
63
+ selector = arg1;
64
+ } else if (typeof arg1 === "object") {
65
+ options = arg1;
66
+ selector = options.selector || "";
67
+ }
68
+ decorator(selector, options, target, propertyKey, descriptor);
69
+ };
70
+ }
49
71
  const getQueryAllMetadata = (target) => {
50
72
  const constructor = target instanceof Function ? target : target.constructor;
51
73
  return import_ReflectUtils.ReflectUtils.getMetadata(QUERY_ALL_METADATA_KEY, constructor);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/decorators/queryAll.ts"],
4
- "sourcesContent": ["import { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';\n\nexport interface QueryAllOptions {\n useShadow?: boolean;\n}\n\nexport interface QueryAllMetadata {\n selector: string;\n options: QueryAllOptions;\n propertyKey: string | symbol;\n isMethod: boolean;\n}\n\nexport const QUERY_ALL_METADATA_KEY = Symbol('simple-web-component:query-all');\n\nexport const queryAll = (selector: string, options: QueryAllOptions = { useShadow: true }): any => {\n return (target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {\n const isMethod = !!descriptor;\n const constructor = target.constructor;\n\n // \uBA54\uD0C0\uB370\uC774\uD130 \uC800\uC7A5 (\uB098\uC911\uC5D0 elementDefine\uC5D0\uC11C \uC0AC\uC6A9)\n let queries = ReflectUtils.getMetadata<QueryAllMetadata[]>(QUERY_ALL_METADATA_KEY, constructor);\n if (!queries) {\n queries = [];\n ReflectUtils.defineMetadata(QUERY_ALL_METADATA_KEY, queries, constructor);\n }\n queries.push({ selector, options, propertyKey, isMethod });\n\n if (!isMethod) {\n // \uC18D\uC131 \uB370\uCF54\uB808\uC774\uD130\uC778 \uACBD\uC6B0: \uAE30\uC874\uCC98\uB7FC Lazy Getter \uC124\uC815\n Object.defineProperty(target, propertyKey, {\n get(this: HTMLElement) {\n const root = options.useShadow !== false && this.shadowRoot ? this.shadowRoot : this;\n return root.querySelectorAll(selector);\n },\n enumerable: true,\n configurable: true\n });\n }\n };\n};\n\nexport const getQueryAllMetadata = (target: any): QueryAllMetadata[] | undefined => {\n const constructor = target instanceof Function ? target : target.constructor;\n return ReflectUtils.getMetadata(QUERY_ALL_METADATA_KEY, constructor);\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA6B;AAatB,MAAM,yBAAyB,OAAO,gCAAgC;AAEtE,MAAM,WAAW,CAAC,UAAkB,UAA2B,EAAE,WAAW,KAAK,MAAW;AACjG,SAAO,CAAC,QAAgB,aAA8B,eAAoC;AACxF,UAAM,WAAW,CAAC,CAAC;AACnB,UAAM,cAAc,OAAO;AAG3B,QAAI,UAAU,iCAAa,YAAgC,wBAAwB,WAAW;AAC9F,QAAI,CAAC,SAAS;AACZ,gBAAU,CAAC;AACX,uCAAa,eAAe,wBAAwB,SAAS,WAAW;AAAA,IAC1E;AACA,YAAQ,KAAK,EAAE,UAAU,SAAS,aAAa,SAAS,CAAC;AAEzD,QAAI,CAAC,UAAU;AAEb,aAAO,eAAe,QAAQ,aAAa;AAAA,QACzC,MAAuB;AACrB,gBAAM,OAAO,QAAQ,cAAc,SAAS,KAAK,aAAa,KAAK,aAAa;AAChF,iBAAO,KAAK,iBAAiB,QAAQ;AAAA,QACvC;AAAA,QACA,YAAY;AAAA,QACZ,cAAc;AAAA,MAChB,CAAC;AAAA,IACH;AAAA,EACF;AACF;AAEO,MAAM,sBAAsB,CAAC,WAAgD;AAClF,QAAM,cAAc,kBAAkB,WAAW,SAAS,OAAO;AACjE,SAAO,iCAAa,YAAY,wBAAwB,WAAW;AACrE;",
4
+ "sourcesContent": ["import { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';\n\nexport interface QueryAllOptions {\n selector?: string;\n root?: 'light' | 'shadow' | 'all' | 'auto';\n}\n\nexport interface QueryAllMetadata {\n selector: string;\n options: QueryAllOptions;\n propertyKey: string | symbol;\n isMethod: boolean;\n}\n\nexport const QUERY_ALL_METADATA_KEY = Symbol('simple-web-component:query-all');\n\nexport function queryAll(selector: string): any;\nexport function queryAll(options: QueryAllOptions): any;\nexport function queryAll(target: Object, propertyKey: string | symbol): void;\nexport function queryAll(arg1?: string | QueryAllOptions | Object, arg2?: string | symbol): any {\n const decorator = (selector: string, options: QueryAllOptions, target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {\n const isMethod = !!descriptor;\n const constructor = target.constructor;\n\n let queries = ReflectUtils.getMetadata<QueryAllMetadata[]>(QUERY_ALL_METADATA_KEY, constructor);\n if (!queries) {\n queries = [];\n ReflectUtils.defineMetadata(QUERY_ALL_METADATA_KEY, queries, constructor);\n }\n queries.push({ selector, options, propertyKey, isMethod });\n\n if (!isMethod) {\n Object.defineProperty(target, propertyKey, {\n get(this: HTMLElement) {\n if (!selector) return [this];\n let searchRoot: Node = this;\n if (options.root === 'shadow') searchRoot = this.shadowRoot || this;\n else if (options.root === 'light') searchRoot = this;\n else searchRoot = this.shadowRoot || this; // Default: Auto (Shadow-First)\n\n return (searchRoot as HTMLElement).querySelectorAll(selector);\n },\n enumerable: true,\n configurable: true\n });\n }\n };\n\n // Case: @queryAll (parameterless decorator)\n if (arg1 && typeof arg2 === 'string') {\n return decorator('', {}, arg1 as Object, arg2 as string | symbol);\n }\n\n // Case: @queryAll('selector') or @queryAll({ selector: '...', ... })\n return (target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {\n let selector = '';\n let options: QueryAllOptions = {};\n\n if (typeof arg1 === 'string') {\n selector = arg1;\n } else if (typeof arg1 === 'object') {\n options = arg1 as QueryAllOptions;\n selector = options.selector || '';\n }\n\n decorator(selector, options, target, propertyKey, descriptor);\n };\n}\n\nexport const getQueryAllMetadata = (target: any): QueryAllMetadata[] | undefined => {\n const constructor = target instanceof Function ? target : target.constructor;\n return ReflectUtils.getMetadata(QUERY_ALL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Y,wBAAwB,WAAW;AACrE;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/decorators/state.ts"],
4
- "sourcesContent": ["import { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';\n\nexport interface StateOptions {\n name?: string;\n}\n\nexport interface StateMetadata {\n propertyKey: string | symbol;\n options: StateOptions;\n}\n\nexport const STATE_METADATA_KEY = Symbol('simple-web-component:state');\n\nexport function state(nameOrOptions: string | StateOptions): PropertyDecorator;\nexport function state(target: Object, propertyKey: string | symbol): void;\nexport function state(arg1?: string | StateOptions | Object, arg2?: string | symbol): PropertyDecorator | void {\n const decorator = (options: StateOptions, target: Object, propertyKey: string | symbol) => {\n const constructor = target.constructor;\n if (!options.name) options.name = String(propertyKey);\n\n let list = ReflectUtils.getMetadata<StateMetadata[]>(STATE_METADATA_KEY, constructor);\n if (!list) {\n list = [];\n ReflectUtils.defineMetadata(STATE_METADATA_KEY, list, constructor);\n }\n list.push({ propertyKey, options });\n };\n\n if (arg2) {\n // Used as @state\n return decorator({}, arg1!, arg2);\n }\n\n // Used as @state(options)\n return (target: Object, propertyKey: string | symbol) => {\n const options: StateOptions = typeof arg1 === 'string' ? { name: arg1 } : (arg1 as StateOptions) || {};\n decorator(options, target, propertyKey);\n };\n}\n\nexport const getStateMetadataList = (target: any): StateMetadata[] | undefined => {\n const constructor = target instanceof Function ? target : target.constructor;\n return ReflectUtils.getMetadata(STATE_METADATA_KEY, constructor);\n};\n"],
4
+ "sourcesContent": ["import { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';\n\nexport interface StateOptions {\n name?: string;\n}\n\nexport interface StateMetadata {\n propertyKey: string | symbol;\n options: StateOptions;\n}\n\nexport const STATE_METADATA_KEY = Symbol('simple-web-component:state');\n\nexport function state(nameOrOptions?: string | StateOptions): PropertyDecorator;\nexport function state(target: Object, propertyKey: string | symbol): void;\nexport function state(arg1?: string | StateOptions | Object, arg2?: string | symbol): PropertyDecorator | void {\n const decorator = (options: StateOptions, target: Object, propertyKey: string | symbol) => {\n const constructor = target.constructor;\n if (!options.name) options.name = String(propertyKey);\n\n let list = ReflectUtils.getMetadata<StateMetadata[]>(STATE_METADATA_KEY, constructor);\n if (!list) {\n list = [];\n ReflectUtils.defineMetadata(STATE_METADATA_KEY, list, constructor);\n }\n list.push({ propertyKey, options });\n };\n\n if (arg2) {\n // Used as @state\n return decorator({}, arg1!, arg2);\n }\n\n // Used as @state(options)\n return (target: Object, propertyKey: string | symbol) => {\n const options: StateOptions = typeof arg1 === 'string' ? { name: arg1 } : (arg1 as StateOptions) || {};\n decorator(options, target, propertyKey);\n };\n}\n\nexport const getStateMetadataList = (target: any): StateMetadata[] | undefined => {\n const constructor = target instanceof Function ? target : target.constructor;\n return ReflectUtils.getMetadata(STATE_METADATA_KEY, constructor);\n};\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA6B;AAWtB,MAAM,qBAAqB,OAAO,4BAA4B;AAI9D,SAAS,MAAM,MAAuC,MAAkD;AAC7G,QAAM,YAAY,CAAC,SAAuB,QAAgB,gBAAiC;AACzF,UAAM,cAAc,OAAO;AAC3B,QAAI,CAAC,QAAQ,KAAM,SAAQ,OAAO,OAAO,WAAW;AAEpD,QAAI,OAAO,iCAAa,YAA6B,oBAAoB,WAAW;AACpF,QAAI,CAAC,MAAM;AACT,aAAO,CAAC;AACR,uCAAa,eAAe,oBAAoB,MAAM,WAAW;AAAA,IACnE;AACA,SAAK,KAAK,EAAE,aAAa,QAAQ,CAAC;AAAA,EACpC;AAEA,MAAI,MAAM;AAER,WAAO,UAAU,CAAC,GAAG,MAAO,IAAI;AAAA,EAClC;AAGA,SAAO,CAAC,QAAgB,gBAAiC;AACvD,UAAM,UAAwB,OAAO,SAAS,WAAW,EAAE,MAAM,KAAK,IAAK,QAAyB,CAAC;AACrG,cAAU,SAAS,QAAQ,WAAW;AAAA,EACxC;AACF;AAEO,MAAM,uBAAuB,CAAC,WAA6C;AAChF,QAAM,cAAc,kBAAkB,WAAW,SAAS,OAAO;AACjE,SAAO,iCAAa,YAAY,oBAAoB,WAAW;AACjE;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/elements/SwcChoose.ts"],
4
- "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\n\n@elementDefine({ name: 'swc-choose' })\nexport class SwcChoose extends HTMLElement {\n private _observer: MutationObserver | null = null;\n private _swcValue: any = undefined;\n\n set swcValue(val: any) {\n this._swcValue = val;\n this.evaluate();\n }\n\n get swcValue() {\n return this._swcValue;\n }\n\n @innerHtml({ useShadow: true })\n render() {\n return `\n <style>:host { display: contents; }</style>\n <slot id=\"choose-slot\"></slot>\n `;\n }\n\n connectedCallback() {\n this._observer = new MutationObserver(() => this.evaluate());\n this._observer.observe(this, { attributes: true, subtree: true, childList: true });\n this.evaluate();\n }\n\n disconnectedCallback() {\n this._observer?.disconnect();\n }\n\n private evaluate() {\n const whens = Array.from(this.querySelectorAll('swc-when'));\n const other = this.querySelector('swc-other');\n let matched = false;\n\n // 현재 choose에 설정된 value (swc-value 우선)\n const chooseValue = this.getAttribute('swc-value') ?? this.getAttribute('value') ?? this._swcValue;\n\n whens.forEach(when => {\n if (matched) {\n (when as HTMLElement).style.display = 'none';\n return;\n }\n\n const testAttr = when.getAttribute('test');\n if (testAttr === null) return;\n if (testAttr.includes('{{')) return; // 아직 치환 전이면 스킵\n\n let isConditionMet = false;\n\n if (chooseValue !== undefined && chooseValue !== null) {\n // 1. 매칭 모드: choose의 value와 when의 test값이 같은지 비교\n isConditionMet = String(chooseValue) === String(testAttr);\n } else {\n // 2. 표현식 모드: testAttr 자체가 실행 가능한 코드인 경우\n try {\n if (testAttr === 'true') isConditionMet = true;\n else if (testAttr === 'false') isConditionMet = false;\n else isConditionMet = !!new Function(`return ${testAttr}`)();\n } catch (e) {\n isConditionMet = false;\n }\n }\n\n if (isConditionMet) {\n (when as HTMLElement).style.display = '';\n matched = true;\n } else {\n (when as HTMLElement).style.display = 'none';\n }\n });\n\n if (other) {\n (other as HTMLElement).style.display = matched ? 'none' : '';\n }\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,eAAyC;;;;;;;;;;AAGlC,IAAM,YAAN,MAAMA,mBAAkB,YAAW;EAAnC,cAAA;;AACG,SAAA,YAAqC;AACrC,SAAA,YAAiB;EA2E3B;EAzEE,IAAI,SAAS,KAAQ;AACnB,SAAK,YAAY;AACjB,SAAK,SAAQ;EACf;EAEA,IAAI,WAAQ;AACV,WAAO,KAAK;EACd;EAGA,SAAM;AACJ,WAAO;;;;EAIT;EAEA,oBAAiB;AACf,SAAK,YAAY,IAAI,iBAAiB,MAAM,KAAK,SAAQ,CAAE;AAC3D,SAAK,UAAU,QAAQ,MAAM,EAAE,YAAY,MAAM,SAAS,MAAM,WAAW,KAAI,CAAE;AACjF,SAAK,SAAQ;EACf;EAEA,uBAAoB;AAClB,SAAK,WAAW,WAAU;EAC5B;EAEQ,WAAQ;AACd,UAAM,QAAQ,MAAM,KAAK,KAAK,iBAAiB,UAAU,CAAC;AAC1D,UAAM,QAAQ,KAAK,cAAc,WAAW;AAC5C,QAAI,UAAU;AAGd,UAAM,cAAc,KAAK,aAAa,WAAW,KAAK,KAAK,aAAa,OAAO,KAAK,KAAK;AAEzF,UAAM,QAAQ,UAAO;AACnB,UAAI,SAAS;AACV,aAAqB,MAAM,UAAU;AACtC;MACF;AAEA,YAAM,WAAW,KAAK,aAAa,MAAM;AACzC,UAAI,aAAa;AAAM;AACvB,UAAI,SAAS,SAAS,IAAI;AAAG;AAE7B,UAAI,iBAAiB;AAErB,UAAI,gBAAgB,UAAa,gBAAgB,MAAM;AAErD,yBAAiB,OAAO,WAAW,MAAM,OAAO,QAAQ;MAC1D,OAAO;AAEL,YAAI;AACF,cAAI,aAAa;AAAQ,6BAAiB;mBACjC,aAAa;AAAS,6BAAiB;;AAC3C,6BAAiB,CAAC,CAAC,IAAI,SAAS,UAAU,QAAQ,EAAE,EAAC;QAC5D,SAAS,GAAG;AACV,2BAAiB;QACnB;MACF;AAEA,UAAI,gBAAgB;AACjB,aAAqB,MAAM,UAAU;AACtC,kBAAU;MACZ,OAAO;AACJ,aAAqB,MAAM,UAAU;MACxC;IACF,CAAC;AAED,QAAI,OAAO;AACR,YAAsB,MAAM,UAAU,UAAU,SAAS;IAC5D;EACF;;AA9DA,WAAA;MADC,oBAAU,EAAE,WAAW,KAAI,CAAE;;;;;AAbnB,YAAS,WAAA;MADrB,wBAAc,EAAE,MAAM,aAAY,CAAE;GACxB,SAAS;",
4
+ "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\n\n@elementDefine({ name: 'swc-choose' })\nexport class SwcChoose extends HTMLElement {\n private _observer: MutationObserver | null = null;\n private _swcValue: any = undefined;\n\n set swcValue(val: any) {\n this._swcValue = val;\n this.evaluate();\n }\n\n get swcValue() {\n return this._swcValue;\n }\n\n @innerHtml({ useShadow: true })\n render() {\n return `\n <style>:host { display: contents; }</style>\n <slot id=\"choose-slot\"></slot>\n `;\n }\n\n connectedCallback() {\n this._observer = new MutationObserver(() => this.evaluate());\n this._observer.observe(this, { attributes: true, subtree: true, childList: true });\n this.evaluate();\n }\n\n disconnectedCallback() {\n this._observer?.disconnect();\n }\n\n private evaluate() {\n const whens = Array.from(this.querySelectorAll('swc-when'));\n const other = this.querySelector('swc-other');\n let matched = false;\n\n const chooseValue = this.getAttribute('swc-value') ?? this.getAttribute('value') ?? this._swcValue;\n\n whens.forEach(when => {\n if (matched) {\n (when as HTMLElement).style.display = 'none';\n return;\n }\n\n const testAttr = when.getAttribute('test');\n if (testAttr === null) return;\n if (testAttr.includes('{{')) return;\n\n let isConditionMet = false;\n if (chooseValue !== undefined && chooseValue !== null) {\n isConditionMet = String(chooseValue) === String(testAttr);\n } else {\n try {\n if (testAttr === 'true') isConditionMet = true;\n else if (testAttr === 'false') isConditionMet = false;\n else isConditionMet = !!new Function(`return ${testAttr}`)();\n } catch (e) {\n isConditionMet = false;\n }\n }\n\n if (isConditionMet) {\n (when as HTMLElement).style.display = '';\n matched = true;\n } else {\n (when as HTMLElement).style.display = 'none';\n }\n });\n\n if (other) {\n (other as HTMLElement).style.display = matched ? 'none' : '';\n }\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,eAAyC;;;;;;;;;;AAGlC,IAAM,YAAN,MAAMA,mBAAkB,YAAW;EAAnC,cAAA;;AACG,SAAA,YAAqC;AACrC,SAAA,YAAiB;EAuE3B;EArEE,IAAI,SAAS,KAAQ;AACnB,SAAK,YAAY;AACjB,SAAK,SAAQ;EACf;EAEA,IAAI,WAAQ;AACV,WAAO,KAAK;EACd;EAGA,SAAM;AACJ,WAAO;;;;EAIT;EAEA,oBAAiB;AACf,SAAK,YAAY,IAAI,iBAAiB,MAAM,KAAK,SAAQ,CAAE;AAC3D,SAAK,UAAU,QAAQ,MAAM,EAAE,YAAY,MAAM,SAAS,MAAM,WAAW,KAAI,CAAE;AACjF,SAAK,SAAQ;EACf;EAEA,uBAAoB;AAClB,SAAK,WAAW,WAAU;EAC5B;EAEQ,WAAQ;AACd,UAAM,QAAQ,MAAM,KAAK,KAAK,iBAAiB,UAAU,CAAC;AAC1D,UAAM,QAAQ,KAAK,cAAc,WAAW;AAC5C,QAAI,UAAU;AAEd,UAAM,cAAc,KAAK,aAAa,WAAW,KAAK,KAAK,aAAa,OAAO,KAAK,KAAK;AAEzF,UAAM,QAAQ,UAAO;AACnB,UAAI,SAAS;AACV,aAAqB,MAAM,UAAU;AACtC;MACF;AAEA,YAAM,WAAW,KAAK,aAAa,MAAM;AACzC,UAAI,aAAa;AAAM;AACvB,UAAI,SAAS,SAAS,IAAI;AAAG;AAE7B,UAAI,iBAAiB;AACrB,UAAI,gBAAgB,UAAa,gBAAgB,MAAM;AACrD,yBAAiB,OAAO,WAAW,MAAM,OAAO,QAAQ;MAC1D,OAAO;AACL,YAAI;AACF,cAAI,aAAa;AAAQ,6BAAiB;mBACjC,aAAa;AAAS,6BAAiB;;AAC3C,6BAAiB,CAAC,CAAC,IAAI,SAAS,UAAU,QAAQ,EAAE,EAAC;QAC5D,SAAS,GAAG;AACV,2BAAiB;QACnB;MACF;AAEA,UAAI,gBAAgB;AACjB,aAAqB,MAAM,UAAU;AACtC,kBAAU;MACZ,OAAO;AACJ,aAAqB,MAAM,UAAU;MACxC;IACF,CAAC;AAED,QAAI,OAAO;AACR,YAAsB,MAAM,UAAU,UAAU,SAAS;IAC5D;EACF;;AA1DA,WAAA;MADC,oBAAU,EAAE,WAAW,KAAI,CAAE;;;;;AAbnB,YAAS,WAAA;MADrB,wBAAc,EAAE,MAAM,aAAY,CAAE;GACxB,SAAS;",
6
6
  "names": ["SwcChoose"]
7
7
  }
@@ -39,7 +39,9 @@ let SwcForOf = class SwcForOf2 extends import_SwcHTMLElementBase.SwcHTMLElementB
39
39
  set swcValue(val) {
40
40
  if (!Array.isArray(val))
41
41
  val = [];
42
- this._swcValue = this.createReactiveProxy(val, () => this.renderAll(), (idx, v) => this.updateSingleRow(idx, v));
42
+ this._swcValue = this.createReactiveProxy(val, () => this._updateState(this._asKey), (idx, v) => this.updateSingleRow(idx, v));
43
+ if (this._masterTplNodes.length === 0)
44
+ this.initCore();
43
45
  this.renderAll();
44
46
  }
45
47
  get swcValue() {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/elements/SwcForOf.ts"],
4
- "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\nimport { SwcHTMLElementBase } from './SwcHTMLElementBase';\n\n@elementDefine({ name: 'swc-for-of' })\nexport class SwcForOf extends SwcHTMLElementBase {\n private _swcValue: any[] = [];\n\n constructor() {\n super();\n }\n\n set swcValue(val: any[]) {\n if (!Array.isArray(val)) val = [];\n this._swcValue = this.createReactiveProxy(\n val,\n () => this.renderAll(),\n (idx, v) => this.updateSingleRow(idx, v)\n );\n this.renderAll();\n }\n\n get swcValue(): any[] {\n return this._swcValue;\n }\n\n @innerHtml({ useShadow: true })\n renderTemplate() {\n return `\n <style>:host { display: contents; }</style>\n <slot id=\"tpl-slot\" style=\"display:none;\"></slot>\n `;\n }\n\n connectedCallback() {\n this.initCore();\n this.renderAll();\n }\n\n public updateSingleRow(index: number, newValue: any) {\n const targets = this.querySelectorAll(`[slot=\"row-${index}\"]`);\n if (targets.length > 0) {\n targets.forEach(target => this.applyData(target, newValue, index));\n } else {\n this.renderRow(newValue, index);\n }\n }\n\n private renderRow(item: any, index: number) {\n if (!this.shadowRoot || this._masterTplNodes.length === 0) return;\n\n const slotName = `row-${index}`;\n if (!this.shadowRoot.querySelector(`slot[name=\"${slotName}\"]`)) {\n const slot = document.createElement('slot');\n slot.name = slotName;\n this.shadowRoot.appendChild(slot);\n }\n\n this._masterTplNodes.forEach(tplNode => {\n const clone = tplNode.cloneNode(true);\n if (clone.nodeType === Node.ELEMENT_NODE) {\n (clone as HTMLElement).setAttribute('slot', slotName);\n (clone as HTMLElement).style.display = '';\n } else if (clone.nodeType === Node.TEXT_NODE) {\n if (clone.textContent?.trim().length === 0) return;\n const span = document.createElement('span');\n span.setAttribute('slot', slotName);\n span.appendChild(clone);\n this.appendChild(span);\n this.applyData(span, item, index);\n return;\n }\n this.appendChild(clone);\n this.applyData(clone, item, index);\n });\n }\n\n private renderAll() {\n if (this._masterTplNodes.length === 0 || !this.shadowRoot) return;\n\n Array.from(this.children).forEach(c => {\n const slot = c.getAttribute('slot');\n if (slot && slot.startsWith('row-')) {\n c.remove();\n }\n });\n\n Array.from(this.shadowRoot.querySelectorAll('slot')).forEach(s => {\n if (s.id !== 'tpl-slot') s.remove();\n });\n\n this._swcValue.forEach((item, index) => this.renderRow(item, index));\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,eAAyC;AACzC,gCAAmC;;;;;;;;;;AA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1C,aAAK,aAAa,QAAQ,QAAQ;AAClC,aAAK,YAAY,KAAK;AACtB,aAAK,YAAY,IAAI;AACrB,aAAK,UAAU,MAAM,MAAM,KAAK;AAChC;MACF;AACA,WAAK,YAAY,KAAK;AACtB,WAAK,UAAU,OAAO,MAAM,KAAK;IACnC,CAAC;EACH;EAEQ,YAAS;AACf,QAAI,KAAK,gBAAgB,WAAW,KAAK,CAAC,KAAK;AAAY;AAE3D,UAAM,KAAK,KAAK,QAAQ,EAAE,QAAQ,OAAI;AACpC,YAAM,OAAO,EAAE,aAAa,MAAM;AAClC,UAAI,QAAQ,KAAK,WAAW,MAAM,GAAG;AACnC,UAAE,OAAM;MACV;IACF,CAAC;AAED,UAAM,KAAK,KAAK,WAAW,iBAAiB,MAAM,CAAC,EAAE,QAAQ,OAAI;AAC/D,UAAI,EAAE,OAAO;AAAY,UAAE,OAAM;IACnC,CAAC;AAED,SAAK,UAAU,QAAQ,CAAC,MAAM,UAAU,KAAK,UAAU,MAAM,KAAK,CAAC;EACrE;;AAjEA,WAAA;MADC,oBAAU,EAAE,WAAW,KAAI,CAAE;;;;;AArBnB,WAAQ,WAAA;MADpB,wBAAc,EAAE,MAAM,aAAY,CAAE;;GACxB,QAAQ;",
4
+ "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\nimport { SwcHTMLElementBase } from './SwcHTMLElementBase';\n\n@elementDefine({ name: 'swc-for-of' })\nexport class SwcForOf extends SwcHTMLElementBase {\n private _swcValue: any[] = [];\n\n constructor() {\n super();\n }\n\n set swcValue(val: any[]) {\n if (!Array.isArray(val)) val = [];\n this._swcValue = this.createReactiveProxy(\n val,\n () => (this as any)._updateState((this as any)._asKey),\n (idx, v) => this.updateSingleRow(idx, v)\n );\n if (this._masterTplNodes.length === 0) this.initCore();\n this.renderAll();\n }\n\n get swcValue(): any[] {\n return this._swcValue;\n }\n\n @innerHtml({ useShadow: true })\n renderTemplate() {\n return `\n <style>:host { display: contents; }</style>\n <slot id=\"tpl-slot\" style=\"display:none;\"></slot>\n `;\n }\n\n connectedCallback() {\n this.initCore();\n this.renderAll();\n }\n\n public updateSingleRow(index: number, newValue: any) {\n const targets = this.querySelectorAll(`[slot=\"row-${index}\"]`);\n if (targets.length > 0) {\n targets.forEach(target => this.applyData(target, newValue, index));\n } else {\n this.renderRow(newValue, index);\n }\n }\n\n private renderRow(item: any, index: number) {\n if (!this.shadowRoot || this._masterTplNodes.length === 0) return;\n\n const slotName = `row-${index}`;\n if (!this.shadowRoot.querySelector(`slot[name=\"${slotName}\"]`)) {\n const slot = document.createElement('slot');\n slot.name = slotName;\n this.shadowRoot.appendChild(slot);\n }\n\n this._masterTplNodes.forEach(tplNode => {\n const clone = tplNode.cloneNode(true);\n if (clone.nodeType === Node.ELEMENT_NODE) {\n (clone as HTMLElement).setAttribute('slot', slotName);\n (clone as HTMLElement).style.display = '';\n } else if (clone.nodeType === Node.TEXT_NODE) {\n if (clone.textContent?.trim().length === 0) return;\n const span = document.createElement('span');\n span.setAttribute('slot', slotName);\n span.appendChild(clone);\n this.appendChild(span);\n this.applyData(span, item, index);\n return;\n }\n this.appendChild(clone);\n this.applyData(clone, item, index);\n });\n }\n\n private renderAll() {\n if (this._masterTplNodes.length === 0 || !this.shadowRoot) return;\n\n Array.from(this.children).forEach(c => {\n const slot = c.getAttribute('slot');\n if (slot && slot.startsWith('row-')) {\n c.remove();\n }\n });\n\n Array.from(this.shadowRoot.querySelectorAll('slot')).forEach(s => {\n if (s.id !== 'tpl-slot') s.remove();\n });\n\n this._swcValue.forEach((item, index) => this.renderRow(item, index));\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,eAAyC;AACzC,gCAAmC;;;;;;;;;;AAG5B,IAAM,WAAN,MAAMA,kBAAiB,6CAAkB;EAG9C,cAAA;AACE,UAAK;AAHC,SAAA,YAAmB,CAAA;EAI3B;EAEA,IAAI,SAAS,KAAU;AACrB,QAAI,CAAC,MAAM,QAAQ,GAAG;AAAG,YAAM,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,KAAK;AAChC;MACF;AACA,WAAK,YAAY,KAAK;AACtB,WAAK,UAAU,OAAO,MAAM,KAAK;IACnC,CAAC;EACH;EAEQ,YAAS;AACf,QAAI,KAAK,gBAAgB,WAAW,KAAK,CAAC,KAAK;AAAY;AAE3D,UAAM,KAAK,KAAK,QAAQ,EAAE,QAAQ,OAAI;AACpC,YAAM,OAAO,EAAE,aAAa,MAAM;AAClC,UAAI,QAAQ,KAAK,WAAW,MAAM,GAAG;AACnC,UAAE,OAAM;MACV;IACF,CAAC;AAED,UAAM,KAAK,KAAK,WAAW,iBAAiB,MAAM,CAAC,EAAE,QAAQ,OAAI;AAC/D,UAAI,EAAE,OAAO;AAAY,UAAE,OAAM;IACnC,CAAC;AAED,SAAK,UAAU,QAAQ,CAAC,MAAM,UAAU,KAAK,UAAU,MAAM,KAAK,CAAC;EACrE;;AAjEA,WAAA;MADC,oBAAU,EAAE,WAAW,KAAI,CAAE;;;;;AAtBnB,WAAQ,WAAA;MADpB,wBAAc,EAAE,MAAM,aAAY,CAAE;;GACxB,QAAQ;",
6
6
  "names": ["SwcForOf"]
7
7
  }
@@ -40,7 +40,12 @@ let SwcObject = class SwcObject2 extends import_SwcHTMLElementBase.SwcHTMLElemen
40
40
  set swcValue(val) {
41
41
  if (typeof val !== "object" || val === null)
42
42
  val = {};
43
- this._swcValue = this.createReactiveProxy(val, () => this.updateUI());
43
+ this._swcValue = this.createReactiveProxy(val, () => {
44
+ if (typeof this._updateState === "function") {
45
+ this._updateState(this._asKey);
46
+ }
47
+ this.updateUI();
48
+ });
44
49
  if (this._masterTplNodes.length === 0)
45
50
  this.initCore();
46
51
  this.render();
@@ -64,13 +69,10 @@ let SwcObject = class SwcObject2 extends import_SwcHTMLElementBase.SwcHTMLElemen
64
69
  });
65
70
  }
66
71
  render() {
72
+ this.innerHTML = "";
73
+ this._renderedNodes = [];
67
74
  if (!this.shadowRoot || this._masterTplNodes.length === 0)
68
75
  return;
69
- this._renderedNodes.forEach((n) => {
70
- if (n.parentElement === this)
71
- this.removeChild(n);
72
- });
73
- this._renderedNodes = [];
74
76
  let slot = this.shadowRoot.querySelector('slot[name="obj-content"]');
75
77
  if (!slot) {
76
78
  slot = document.createElement("slot");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/elements/SwcObject.ts"],
4
- "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\nimport { SwcHTMLElementBase } from './SwcHTMLElementBase';\n\n@elementDefine({ name: 'swc-object' })\nexport class SwcObject extends SwcHTMLElementBase {\n private _swcValue: any = {};\n private _renderedNodes: Node[] = [];\n\n constructor() {\n super();\n }\n\n set swcValue(val: any) {\n if (typeof val !== 'object' || val === null) val = {};\n this._swcValue = this.createReactiveProxy(val, () => this.updateUI());\n if (this._masterTplNodes.length === 0) this.initCore();\n this.render();\n }\n\n get swcValue(): any {\n return this._swcValue;\n }\n\n @innerHtml({ useShadow: true })\n renderTemplate() {\n return `\n <style>:host { display: contents; }</style>\n <slot id=\"tpl-slot\" style=\"display:none;\"></slot>\n `;\n }\n\n connectedCallback() {\n this.initCore();\n this.render();\n }\n\n private updateUI() {\n this._renderedNodes.forEach(node => {\n this.applyData(node, this._swcValue);\n });\n }\n\n private render() {\n if (!this.shadowRoot || this._masterTplNodes.length === 0) return;\n\n this._renderedNodes.forEach(n => {\n if (n.parentElement === this) this.removeChild(n);\n });\n this._renderedNodes = [];\n\n let slot = this.shadowRoot.querySelector('slot[name=\"obj-content\"]');\n if (!slot) {\n slot = document.createElement('slot');\n (slot as HTMLSlotElement).name = 'obj-content';\n this.shadowRoot.appendChild(slot);\n }\n\n this._masterTplNodes.forEach(tplNode => {\n const clone = tplNode.cloneNode(true);\n if (clone.nodeType === Node.ELEMENT_NODE) {\n (clone as HTMLElement).setAttribute('slot', 'obj-content');\n } else if (clone.nodeType === Node.TEXT_NODE) {\n if (clone.textContent?.trim().length === 0) return;\n const span = document.createElement('span');\n span.setAttribute('slot', 'obj-content');\n span.appendChild(clone);\n this.appendChild(span);\n this._renderedNodes.push(span);\n this.applyData(span, this._swcValue);\n return;\n }\n this.appendChild(clone);\n this._renderedNodes.push(clone);\n this.applyData(clone, this._swcValue);\n });\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,eAAyC;AACzC,gCAAmC;;;;;;;;;;AAG5B,IAAM,YAAN,MAAMA,mBAAkB,6CAAkB;EAI/C,cAAA;AACE,UAAK;AAJC,SAAA,YAAiB,CAAA;AACjB,SAAA,iBAAyB,CAAA;EAIjC;EAEA,IAAI,SAAS,KAAQ;AACnB,QAAI,OAAO,QAAQ,YAAY,QAAQ;AAAM,YAAM,CAAA;AACnD,SAAK,YAAY,KAAK,oBAAoB,KAAK,MAAM,KAAK,SAAQ,CAAE;AACpE,QAAI,KAAK,gBAAgB,WAAW;AAAG,WAAK,SAAQ;AACpD,SAAK,OAAM;EACb;EAEA,IAAI,WAAQ;AACV,WAAO,KAAK;EACd;EAGA,iBAAc;AACZ,WAAO;;;;EAIT;EAEA,oBAAiB;AACf,SAAK,SAAQ;AACb,SAAK,OAAM;EACb;EAEQ,WAAQ;AACd,SAAK,eAAe,QAAQ,UAAO;AACjC,WAAK,UAAU,MAAM,KAAK,SAAS;IACrC,CAAC;EACH;EAEQ,SAAM;AACZ,QAAI,CAAC,KAAK,cAAc,KAAK,gBAAgB,WAAW;AAAG;AAE3D,SAAK,eAAe,QAAQ,OAAI;AAC9B,UAAI,EAAE,kBAAkB;AAAM,aAAK,YAAY,CAAC;IAClD,CAAC;AACD,SAAK,iBAAiB,CAAA;AAEtB,QAAI,OAAO,KAAK,WAAW,cAAc,0BAA0B;AACnE,QAAI,CAAC,MAAM;AACT,aAAO,SAAS,cAAc,MAAM;AACnC,WAAyB,OAAO;AACjC,WAAK,WAAW,YAAY,IAAI;IAClC;AAEA,SAAK,gBAAgB,QAAQ,aAAU;AACrC,YAAM,QAAQ,QAAQ,UAAU,IAAI;AACpC,UAAI,MAAM,aAAa,KAAK,cAAc;AACvC,cAAsB,aAAa,QAAQ,aAAa;MAC3D,WAAW,MAAM,aAAa,KAAK,WAAW;AAC5C,YAAI,MAAM,aAAa,KAAI,EAAG,WAAW;AAAG;AAC5C,cAAM,OAAO,SAAS,cAAc,MAAM;AAC1C,aAAK,aAAa,QAAQ,aAAa;AACvC,aAAK,YAAY,KAAK;AACtB,aAAK,YAAY,IAAI;AACrB,aAAK,eAAe,KAAK,IAAI;AAC7B,aAAK,UAAU,MAAM,KAAK,SAAS;AACnC;MACF;AACA,WAAK,YAAY,KAAK;AACtB,WAAK,eAAe,KAAK,KAAK;AAC9B,WAAK,UAAU,OAAO,KAAK,SAAS;IACtC,CAAC;EACH;;AAnDA,WAAA;MADC,oBAAU,EAAE,WAAW,KAAI,CAAE;;;;;AAnBnB,YAAS,WAAA;MADrB,wBAAc,EAAE,MAAM,aAAY,CAAE;;GACxB,SAAS;",
4
+ "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\nimport { SwcHTMLElementBase } from './SwcHTMLElementBase';\n\n@elementDefine({ name: 'swc-object' })\nexport class SwcObject extends SwcHTMLElementBase {\n private _swcValue: any = {};\n private _renderedNodes: Node[] = [];\n\n constructor() {\n super();\n }\n\n set swcValue(val: any) {\n if (typeof val !== 'object' || val === null) val = {};\n this._swcValue = this.createReactiveProxy(val, () => {\n if (typeof (this as any)._updateState === 'function') {\n (this as any)._updateState((this as any)._asKey);\n }\n this.updateUI();\n });\n if (this._masterTplNodes.length === 0) this.initCore();\n this.render();\n }\n\n get swcValue(): any {\n return this._swcValue;\n }\n\n @innerHtml({ useShadow: true })\n renderTemplate() {\n return `\n <style>:host { display: contents; }</style>\n <slot id=\"tpl-slot\" style=\"display:none;\"></slot>\n `;\n }\n\n connectedCallback() {\n this.initCore();\n this.render();\n }\n\n private updateUI() {\n this._renderedNodes.forEach(node => {\n this.applyData(node, this._swcValue);\n });\n }\n\n private render() {\n this.innerHTML = '';\n this._renderedNodes = [];\n if (!this.shadowRoot || this._masterTplNodes.length === 0) return;\n\n let slot = this.shadowRoot.querySelector('slot[name=\"obj-content\"]');\n if (!slot) {\n slot = document.createElement('slot');\n (slot as HTMLSlotElement).name = 'obj-content';\n this.shadowRoot.appendChild(slot);\n }\n\n this._masterTplNodes.forEach(tplNode => {\n const clone = tplNode.cloneNode(true);\n if (clone.nodeType === Node.ELEMENT_NODE) {\n (clone as HTMLElement).setAttribute('slot', 'obj-content');\n } else if (clone.nodeType === Node.TEXT_NODE) {\n if (clone.textContent?.trim().length === 0) return;\n const span = document.createElement('span');\n span.setAttribute('slot', 'obj-content');\n span.appendChild(clone);\n this.appendChild(span);\n this._renderedNodes.push(span);\n this.applyData(span, this._swcValue);\n return;\n }\n this.appendChild(clone);\n this._renderedNodes.push(clone);\n this.applyData(clone, this._swcValue);\n });\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,eAAyC;AACzC,gCAAmC;;;;;;;;;;AAG5B,IAAM,YAAN,MAAMA,mBAAkB,6CAAkB;EAI/C,cAAA;AACE,UAAK;AAJC,SAAA,YAAiB,CAAA;AACjB,SAAA,iBAAyB,CAAA;EAIjC;EAEA,IAAI,SAAS,KAAQ;AACnB,QAAI,OAAO,QAAQ,YAAY,QAAQ;AAAM,YAAM,CAAA;AACnD,SAAK,YAAY,KAAK,oBAAoB,KAAK,MAAK;AAClD,UAAI,OAAQ,KAAa,iBAAiB,YAAY;AACnD,aAAa,aAAc,KAAa,MAAM;MACjD;AACA,WAAK,SAAQ;IACf,CAAC;AACD,QAAI,KAAK,gBAAgB,WAAW;AAAG,WAAK,SAAQ;AACpD,SAAK,OAAM;EACb;EAEA,IAAI,WAAQ;AACV,WAAO,KAAK;EACd;EAGA,iBAAc;AACZ,WAAO;;;;EAIT;EAEA,oBAAiB;AACf,SAAK,SAAQ;AACb,SAAK,OAAM;EACb;EAEQ,WAAQ;AACd,SAAK,eAAe,QAAQ,UAAO;AACjC,WAAK,UAAU,MAAM,KAAK,SAAS;IACrC,CAAC;EACH;EAEQ,SAAM;AACZ,SAAK,YAAY;AACjB,SAAK,iBAAiB,CAAA;AACtB,QAAI,CAAC,KAAK,cAAc,KAAK,gBAAgB,WAAW;AAAG;AAE3D,QAAI,OAAO,KAAK,WAAW,cAAc,0BAA0B;AACnE,QAAI,CAAC,MAAM;AACT,aAAO,SAAS,cAAc,MAAM;AACnC,WAAyB,OAAO;AACjC,WAAK,WAAW,YAAY,IAAI;IAClC;AAEA,SAAK,gBAAgB,QAAQ,aAAU;AACrC,YAAM,QAAQ,QAAQ,UAAU,IAAI;AACpC,UAAI,MAAM,aAAa,KAAK,cAAc;AACvC,cAAsB,aAAa,QAAQ,aAAa;MAC3D,WAAW,MAAM,aAAa,KAAK,WAAW;AAC5C,YAAI,MAAM,aAAa,KAAI,EAAG,WAAW;AAAG;AAC5C,cAAM,OAAO,SAAS,cAAc,MAAM;AAC1C,aAAK,aAAa,QAAQ,aAAa;AACvC,aAAK,YAAY,KAAK;AACtB,aAAK,YAAY,IAAI;AACrB,aAAK,eAAe,KAAK,IAAI;AAC7B,aAAK,UAAU,MAAM,KAAK,SAAS;AACnC;MACF;AACA,WAAK,YAAY,KAAK;AACtB,WAAK,eAAe,KAAK,KAAK;AAC9B,WAAK,UAAU,OAAO,KAAK,SAAS;IACtC,CAAC;EACH;;AAhDA,WAAA;MADC,oBAAU,EAAE,WAAW,KAAI,CAAE;;;;;AAxBnB,YAAS,WAAA;MADrB,wBAAc,EAAE,MAAM,aAAY,CAAE;;GACxB,SAAS;",
6
6
  "names": ["SwcObject"]
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -24,13 +24,10 @@ __reExport(src_exports, require("./decorators/lifecycles"), module.exports);
24
24
  __reExport(src_exports, require("./decorators/query"), module.exports);
25
25
  __reExport(src_exports, require("./decorators/queryAll"), module.exports);
26
26
  __reExport(src_exports, require("./decorators/addEventListener"), module.exports);
27
- __reExport(src_exports, require("./elements/SwcForOf"), module.exports);
28
- __reExport(src_exports, require("./elements/SwcIf"), module.exports);
29
- __reExport(src_exports, require("./elements/SwcChoose"), module.exports);
30
- __reExport(src_exports, require("./elements/SwcWhen"), module.exports);
31
- __reExport(src_exports, require("./elements/SwcOther"), module.exports);
32
- __reExport(src_exports, require("./elements/SwcObject"), module.exports);
33
27
  __reExport(src_exports, require("./elements/SwcHTMLElementBase"), module.exports);
28
+ __reExport(src_exports, require("./elements/SwcObject"), module.exports);
29
+ __reExport(src_exports, require("./elements/SwcIf"), module.exports);
30
+ __reExport(src_exports, require("./elements/SwcForOf"), module.exports);
34
31
  __reExport(src_exports, require("./utils/Utils"), module.exports);
35
32
  __reExport(src_exports, require("./is/SwcHTMLAnchorElementBase"), module.exports);
36
33
  __reExport(src_exports, require("./is/SwcForOfAnchor"), module.exports);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["import 'reflect-metadata';\nexport * from './decorators/elementDefine';\nexport * from './decorators/innerHtml';\nexport * from './decorators/attribute';\nexport * from './decorators/state';\nexport * from './decorators/emitCustomEvent';\nexport * from './decorators/lifecycles';\nexport * from './decorators/query';\nexport * from './decorators/queryAll';\nexport * from './decorators/addEventListener';\nexport * from './elements/SwcForOf';\nexport * from './elements/SwcIf';\nexport * from './elements/SwcChoose';\nexport * from './elements/SwcWhen';\nexport * from './elements/SwcOther';\nexport * from './elements/SwcObject';\nexport * from './elements/SwcHTMLElementBase';\nexport * from './utils/Utils';\nexport * from './is/SwcHTMLAnchorElementBase';\nexport * from './is/SwcForOfAnchor';\nexport * from './is/SwcIfAnchor';\nexport * from './is/SwcObjectAnchor';\nexport * from './is/SwcChooseAnchor';\nexport * from './is/SwcWhenAnchor';\nexport * from './is/SwcOtherAnchor';\nexport * from './is/SwcHTMLAreaElementBase';\nexport * from './is/SwcForOfArea';\nexport * from './is/SwcIfArea';\nexport * from './is/SwcObjectArea';\nexport * from './is/SwcChooseArea';\nexport * from './is/SwcWhenArea';\nexport * from './is/SwcOtherArea';\nexport * from './is/SwcHTMLAudioElementBase';\nexport * from './is/SwcForOfAudio';\nexport * from './is/SwcIfAudio';\nexport * from './is/SwcObjectAudio';\nexport * from './is/SwcChooseAudio';\nexport * from './is/SwcWhenAudio';\nexport * from './is/SwcOtherAudio';\nexport * from './is/SwcHTMLBaseElementBase';\nexport * from './is/SwcForOfBase';\nexport * from './is/SwcIfBase';\nexport * from './is/SwcObjectBase';\nexport * from './is/SwcChooseBase';\nexport * from './is/SwcWhenBase';\nexport * from './is/SwcOtherBase';\nexport * from './is/SwcHTMLButtonElementBase';\nexport * from './is/SwcForOfButton';\nexport * from './is/SwcIfButton';\nexport * from './is/SwcObjectButton';\nexport * from './is/SwcChooseButton';\nexport * from './is/SwcWhenButton';\nexport * from './is/SwcOtherButton';\nexport * from './is/SwcHTMLCanvasElementBase';\nexport * from './is/SwcForOfCanvas';\nexport * from './is/SwcIfCanvas';\nexport * from './is/SwcObjectCanvas';\nexport * from './is/SwcChooseCanvas';\nexport * from './is/SwcWhenCanvas';\nexport * from './is/SwcOtherCanvas';\nexport * from './is/SwcHTMLDataElementBase';\nexport * from './is/SwcForOfData';\nexport * from './is/SwcIfData';\nexport * from './is/SwcObjectData';\nexport * from './is/SwcChooseData';\nexport * from './is/SwcWhenData';\nexport * from './is/SwcOtherData';\nexport * from './is/SwcHTMLDataListElementBase';\nexport * from './is/SwcForOfDataList';\nexport * from './is/SwcIfDataList';\nexport * from './is/SwcObjectDataList';\nexport * from './is/SwcChooseDataList';\nexport * from './is/SwcWhenDataList';\nexport * from './is/SwcOtherDataList';\nexport * from './is/SwcHTMLDetailsElementBase';\nexport * from './is/SwcForOfDetails';\nexport * from './is/SwcIfDetails';\nexport * from './is/SwcObjectDetails';\nexport * from './is/SwcChooseDetails';\nexport * from './is/SwcWhenDetails';\nexport * from './is/SwcOtherDetails';\nexport * from './is/SwcHTMLDialogElementBase';\nexport * from './is/SwcForOfDialog';\nexport * from './is/SwcIfDialog';\nexport * from './is/SwcObjectDialog';\nexport * from './is/SwcChooseDialog';\nexport * from './is/SwcWhenDialog';\nexport * from './is/SwcOtherDialog';\nexport * from './is/SwcHTMLDivElementBase';\nexport * from './is/SwcForOfDiv';\nexport * from './is/SwcIfDiv';\nexport * from './is/SwcObjectDiv';\nexport * from './is/SwcChooseDiv';\nexport * from './is/SwcWhenDiv';\nexport * from './is/SwcOtherDiv';\nexport * from './is/SwcHTMLDListElementBase';\nexport * from './is/SwcForOfDl';\nexport * from './is/SwcIfDl';\nexport * from './is/SwcObjectDl';\nexport * from './is/SwcChooseDl';\nexport * from './is/SwcWhenDl';\nexport * from './is/SwcOtherDl';\nexport * from './is/SwcHTMLEmbedElementBase';\nexport * from './is/SwcForOfEmbed';\nexport * from './is/SwcIfEmbed';\nexport * from './is/SwcObjectEmbed';\nexport * from './is/SwcChooseEmbed';\nexport * from './is/SwcWhenEmbed';\nexport * from './is/SwcOtherEmbed';\nexport * from './is/SwcHTMLFieldSetElementBase';\nexport * from './is/SwcForOfFieldSet';\nexport * from './is/SwcIfFieldSet';\nexport * from './is/SwcObjectFieldSet';\nexport * from './is/SwcChooseFieldSet';\nexport * from './is/SwcWhenFieldSet';\nexport * from './is/SwcOtherFieldSet';\nexport * from './is/SwcHTMLFormElementBase';\nexport * from './is/SwcForOfForm';\nexport * from './is/SwcIfForm';\nexport * from './is/SwcObjectForm';\nexport * from './is/SwcChooseForm';\nexport * from './is/SwcWhenForm';\nexport * from './is/SwcOtherForm';\nexport * from './is/SwcHTMLHRElementBase';\nexport * from './is/SwcForOfHr';\nexport * from './is/SwcIfHr';\nexport * from './is/SwcObjectHr';\nexport * from './is/SwcChooseHr';\nexport * from './is/SwcWhenHr';\nexport * from './is/SwcOtherHr';\nexport * from './is/SwcHTMLIFrameElementBase';\nexport * from './is/SwcForOfIFrame';\nexport * from './is/SwcIfIFrame';\nexport * from './is/SwcObjectIFrame';\nexport * from './is/SwcChooseIFrame';\nexport * from './is/SwcWhenIFrame';\nexport * from './is/SwcOtherIFrame';\nexport * from './is/SwcHTMLImageElementBase';\nexport * from './is/SwcForOfImage';\nexport * from './is/SwcIfImage';\nexport * from './is/SwcObjectImage';\nexport * from './is/SwcChooseImage';\nexport * from './is/SwcWhenImage';\nexport * from './is/SwcOtherImage';\nexport * from './is/SwcHTMLInputElementBase';\nexport * from './is/SwcForOfInput';\nexport * from './is/SwcIfInput';\nexport * from './is/SwcObjectInput';\nexport * from './is/SwcChooseInput';\nexport * from './is/SwcWhenInput';\nexport * from './is/SwcOtherInput';\nexport * from './is/SwcHTMLLabelElementBase';\nexport * from './is/SwcForOfLabel';\nexport * from './is/SwcIfLabel';\nexport * from './is/SwcObjectLabel';\nexport * from './is/SwcChooseLabel';\nexport * from './is/SwcWhenLabel';\nexport * from './is/SwcOtherLabel';\nexport * from './is/SwcHTMLLegendElementBase';\nexport * from './is/SwcForOfLegend';\nexport * from './is/SwcIfLegend';\nexport * from './is/SwcObjectLegend';\nexport * from './is/SwcChooseLegend';\nexport * from './is/SwcWhenLegend';\nexport * from './is/SwcOtherLegend';\nexport * from './is/SwcHTMLLIElementBase';\nexport * from './is/SwcForOfLi';\nexport * from './is/SwcIfLi';\nexport * from './is/SwcObjectLi';\nexport * from './is/SwcChooseLi';\nexport * from './is/SwcWhenLi';\nexport * from './is/SwcOtherLi';\nexport * from './is/SwcHTMLLinkElementBase';\nexport * from './is/SwcForOfLink';\nexport * from './is/SwcIfLink';\nexport * from './is/SwcObjectLink';\nexport * from './is/SwcChooseLink';\nexport * from './is/SwcWhenLink';\nexport * from './is/SwcOtherLink';\nexport * from './is/SwcHTMLMapElementBase';\nexport * from './is/SwcForOfMap';\nexport * from './is/SwcIfMap';\nexport * from './is/SwcObjectMap';\nexport * from './is/SwcChooseMap';\nexport * from './is/SwcWhenMap';\nexport * from './is/SwcOtherMap';\nexport * from './is/SwcHTMLMetaElementBase';\nexport * from './is/SwcForOfMeta';\nexport * from './is/SwcIfMeta';\nexport * from './is/SwcObjectMeta';\nexport * from './is/SwcChooseMeta';\nexport * from './is/SwcWhenMeta';\nexport * from './is/SwcOtherMeta';\nexport * from './is/SwcHTMLMeterElementBase';\nexport * from './is/SwcForOfMeter';\nexport * from './is/SwcIfMeter';\nexport * from './is/SwcObjectMeter';\nexport * from './is/SwcChooseMeter';\nexport * from './is/SwcWhenMeter';\nexport * from './is/SwcOtherMeter';\nexport * from './is/SwcHTMLModElementBase';\nexport * from './is/SwcForOfMod';\nexport * from './is/SwcIfMod';\nexport * from './is/SwcObjectMod';\nexport * from './is/SwcChooseMod';\nexport * from './is/SwcWhenMod';\nexport * from './is/SwcOtherMod';\nexport * from './is/SwcHTMLObjectElementBase';\nexport * from './is/SwcForOfObject';\nexport * from './is/SwcIfObject';\nexport * from './is/SwcObjectObject';\nexport * from './is/SwcChooseObject';\nexport * from './is/SwcWhenObject';\nexport * from './is/SwcOtherObject';\nexport * from './is/SwcHTMLOListElementBase';\nexport * from './is/SwcForOfOl';\nexport * from './is/SwcIfOl';\nexport * from './is/SwcObjectOl';\nexport * from './is/SwcChooseOl';\nexport * from './is/SwcWhenOl';\nexport * from './is/SwcOtherOl';\nexport * from './is/SwcHTMLOptGroupElementBase';\nexport * from './is/SwcForOfOptGroup';\nexport * from './is/SwcIfOptGroup';\nexport * from './is/SwcObjectOptGroup';\nexport * from './is/SwcChooseOptGroup';\nexport * from './is/SwcWhenOptGroup';\nexport * from './is/SwcOtherOptGroup';\nexport * from './is/SwcHTMLOptionElementBase';\nexport * from './is/SwcForOfOption';\nexport * from './is/SwcIfOption';\nexport * from './is/SwcObjectOption';\nexport * from './is/SwcChooseOption';\nexport * from './is/SwcWhenOption';\nexport * from './is/SwcOtherOption';\nexport * from './is/SwcHTMLOutputElementBase';\nexport * from './is/SwcForOfOutput';\nexport * from './is/SwcIfOutput';\nexport * from './is/SwcObjectOutput';\nexport * from './is/SwcChooseOutput';\nexport * from './is/SwcWhenOutput';\nexport * from './is/SwcOtherOutput';\nexport * from './is/SwcHTMLParagraphElementBase';\nexport * from './is/SwcForOfParagraph';\nexport * from './is/SwcIfParagraph';\nexport * from './is/SwcObjectParagraph';\nexport * from './is/SwcChooseParagraph';\nexport * from './is/SwcWhenParagraph';\nexport * from './is/SwcOtherParagraph';\nexport * from './is/SwcHTMLParamElementBase';\nexport * from './is/SwcForOfParam';\nexport * from './is/SwcIfParam';\nexport * from './is/SwcObjectParam';\nexport * from './is/SwcChooseParam';\nexport * from './is/SwcWhenParam';\nexport * from './is/SwcOtherParam';\nexport * from './is/SwcHTMLPictureElementBase';\nexport * from './is/SwcForOfPicture';\nexport * from './is/SwcIfPicture';\nexport * from './is/SwcObjectPicture';\nexport * from './is/SwcChoosePicture';\nexport * from './is/SwcWhenPicture';\nexport * from './is/SwcOtherPicture';\nexport * from './is/SwcHTMLPreElementBase';\nexport * from './is/SwcForOfPre';\nexport * from './is/SwcIfPre';\nexport * from './is/SwcObjectPre';\nexport * from './is/SwcChoosePre';\nexport * from './is/SwcWhenPre';\nexport * from './is/SwcOtherPre';\nexport * from './is/SwcHTMLProgressElementBase';\nexport * from './is/SwcForOfProgress';\nexport * from './is/SwcIfProgress';\nexport * from './is/SwcObjectProgress';\nexport * from './is/SwcChooseProgress';\nexport * from './is/SwcWhenProgress';\nexport * from './is/SwcOtherProgress';\nexport * from './is/SwcHTMLQuoteElementBase';\nexport * from './is/SwcForOfQuote';\nexport * from './is/SwcIfQuote';\nexport * from './is/SwcObjectQuote';\nexport * from './is/SwcChooseQuote';\nexport * from './is/SwcWhenQuote';\nexport * from './is/SwcOtherQuote';\nexport * from './is/SwcHTMLScriptElementBase';\nexport * from './is/SwcForOfScript';\nexport * from './is/SwcIfScript';\nexport * from './is/SwcObjectScript';\nexport * from './is/SwcChooseScript';\nexport * from './is/SwcWhenScript';\nexport * from './is/SwcOtherScript';\nexport * from './is/SwcHTMLSelectElementBase';\nexport * from './is/SwcForOfSelect';\nexport * from './is/SwcIfSelect';\nexport * from './is/SwcObjectSelect';\nexport * from './is/SwcChooseSelect';\nexport * from './is/SwcWhenSelect';\nexport * from './is/SwcOtherSelect';\nexport * from './is/SwcHTMLSlotElementBase';\nexport * from './is/SwcForOfSlot';\nexport * from './is/SwcIfSlot';\nexport * from './is/SwcObjectSlot';\nexport * from './is/SwcChooseSlot';\nexport * from './is/SwcWhenSlot';\nexport * from './is/SwcOtherSlot';\nexport * from './is/SwcHTMLSourceElementBase';\nexport * from './is/SwcForOfSource';\nexport * from './is/SwcIfSource';\nexport * from './is/SwcObjectSource';\nexport * from './is/SwcChooseSource';\nexport * from './is/SwcWhenSource';\nexport * from './is/SwcOtherSource';\nexport * from './is/SwcHTMLSpanElementBase';\nexport * from './is/SwcForOfSpan';\nexport * from './is/SwcIfSpan';\nexport * from './is/SwcObjectSpan';\nexport * from './is/SwcChooseSpan';\nexport * from './is/SwcWhenSpan';\nexport * from './is/SwcOtherSpan';\nexport * from './is/SwcHTMLStyleElementBase';\nexport * from './is/SwcForOfStyle';\nexport * from './is/SwcIfStyle';\nexport * from './is/SwcObjectStyle';\nexport * from './is/SwcChooseStyle';\nexport * from './is/SwcWhenStyle';\nexport * from './is/SwcOtherStyle';\nexport * from './is/SwcHTMLTableElementBase';\nexport * from './is/SwcForOfTable';\nexport * from './is/SwcIfTable';\nexport * from './is/SwcObjectTable';\nexport * from './is/SwcChooseTable';\nexport * from './is/SwcWhenTable';\nexport * from './is/SwcOtherTable';\nexport * from './is/SwcHTMLTableSectionElementBase';\nexport * from './is/SwcForOfTableSection';\nexport * from './is/SwcIfTableSection';\nexport * from './is/SwcObjectTableSection';\nexport * from './is/SwcChooseTableSection';\nexport * from './is/SwcWhenTableSection';\nexport * from './is/SwcOtherTableSection';\nexport * from './is/SwcHTMLTableCellElementBase';\nexport * from './is/SwcForOfTableCell';\nexport * from './is/SwcIfTableCell';\nexport * from './is/SwcObjectTableCell';\nexport * from './is/SwcChooseTableCell';\nexport * from './is/SwcWhenTableCell';\nexport * from './is/SwcOtherTableCell';\nexport * from './is/SwcHTMLTemplateElementBase';\nexport * from './is/SwcForOfTemplate';\nexport * from './is/SwcIfTemplate';\nexport * from './is/SwcObjectTemplate';\nexport * from './is/SwcChooseTemplate';\nexport * from './is/SwcWhenTemplate';\nexport * from './is/SwcOtherTemplate';\nexport * from './is/SwcHTMLTextAreaElementBase';\nexport * from './is/SwcForOfTextArea';\nexport * from './is/SwcIfTextArea';\nexport * from './is/SwcObjectTextArea';\nexport * from './is/SwcChooseTextArea';\nexport * from './is/SwcWhenTextArea';\nexport * from './is/SwcOtherTextArea';\nexport * from './is/SwcHTMLTimeElementBase';\nexport * from './is/SwcForOfTime';\nexport * from './is/SwcIfTime';\nexport * from './is/SwcObjectTime';\nexport * from './is/SwcChooseTime';\nexport * from './is/SwcWhenTime';\nexport * from './is/SwcOtherTime';\nexport * from './is/SwcHTMLTitleElementBase';\nexport * from './is/SwcForOfTitle';\nexport * from './is/SwcIfTitle';\nexport * from './is/SwcObjectTitle';\nexport * from './is/SwcChooseTitle';\nexport * from './is/SwcWhenTitle';\nexport * from './is/SwcOtherTitle';\nexport * from './is/SwcHTMLTableRowElementBase';\nexport * from './is/SwcForOfTableRow';\nexport * from './is/SwcIfTableRow';\nexport * from './is/SwcObjectTableRow';\nexport * from './is/SwcChooseTableRow';\nexport * from './is/SwcWhenTableRow';\nexport * from './is/SwcOtherTableRow';\nexport * from './is/SwcHTMLTrackElementBase';\nexport * from './is/SwcForOfTrack';\nexport * from './is/SwcIfTrack';\nexport * from './is/SwcObjectTrack';\nexport * from './is/SwcChooseTrack';\nexport * from './is/SwcWhenTrack';\nexport * from './is/SwcOtherTrack';\nexport * from './is/SwcHTMLUListElementBase';\nexport * from './is/SwcForOfUl';\nexport * from './is/SwcIfUl';\nexport * from './is/SwcObjectUl';\nexport * from './is/SwcChooseUl';\nexport * from './is/SwcWhenUl';\nexport * from './is/SwcOtherUl';\nexport * from './is/SwcHTMLVideoElementBase';\nexport * from './is/SwcForOfVideo';\nexport * from './is/SwcIfVideo';\nexport * from './is/SwcObjectVideo';\nexport * from './is/SwcChooseVideo';\nexport * from './is/SwcWhenVideo';\nexport * from './is/SwcOtherVideo';\nexport * from './is/SwcHTMLHeadingElementBase';\nexport * from './is/SwcForOfHeading';\nexport * from './is/SwcIfHeading';\nexport * from './is/SwcObjectHeading';\nexport * from './is/SwcChooseHeading';\nexport * from './is/SwcWhenHeading';\nexport * from './is/SwcOtherHeading';\n"],
5
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA,8BAAO;AACP,wBAAc,uCADd;AAEA,wBAAc,mCAFd;AAGA,wBAAc,mCAHd;AAIA,wBAAc,+BAJd;AAKA,wBAAc,yCALd;AAMA,wBAAc,oCANd;AAOA,wBAAc,+BAPd;AAQA,wBAAc,kCARd;AASA,wBAAc,0CATd;AAUA,wBAAc,gCAVd;AAWA,wBAAc,6BAXd;AAYA,wBAAc,iCAZd;AAaA,wBAAc,+BAbd;AAcA,wBAAc,gCAdd;AAeA,wBAAc,iCAfd;AAgBA,wBAAc,0CAhBd;AAiBA,wBAAc,0BAjBd;AAkBA,wBAAc,0CAlBd;AAmBA,wBAAc,gCAnBd;AAoBA,wBAAc,6BApBd;AAqBA,wBAAc,iCArBd;AAsBA,wBAAc,iCAtBd;AAuBA,wBAAc,+BAvBd;AAwBA,wBAAc,gCAxBd;AAyBA,wBAAc,wCAzBd;AA0BA,wBAAc,8BA1Bd;AA2BA,wBAAc,2BA3Bd;AA4BA,wBAAc,+BA5Bd;AA6BA,wBAAc,+BA7Bd;AA8BA,wBAAc,6BA9Bd;AA+BA,wBAAc,8BA/Bd;AAgCA,wBAAc,yCAhCd;AAiCA,wBAAc,+BAjCd;AAkCA,wBAAc,4BAlCd;AAmCA,wBAAc,gCAnCd;AAoCA,wBAAc,gCApCd;AAqCA,wBAAc,8BArCd;AAsCA,wBAAc,+BAtCd;AAuCA,wBAAc,wCAvCd;AAwCA,wBAAc,8BAxCd;AAyCA,wBAAc,2BAzCd;AA0CA,wBAAc,+BA1Cd;AA2CA,wBAAc,+BA3Cd;AA4CA,wBAAc,6B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BA7Wd;AA8WA,wBAAc,6BA9Wd;AA+WA,wBAAc,8BA/Wd;AAgXA,wBAAc,yCAhXd;AAiXA,wBAAc,+BAjXd;AAkXA,wBAAc,4BAlXd;AAmXA,wBAAc,gCAnXd;AAoXA,wBAAc,gCApXd;AAqXA,wBAAc,8BArXd;AAsXA,wBAAc,+BAtXd;AAuXA,wBAAc,4CAvXd;AAwXA,wBAAc,kCAxXd;AAyXA,wBAAc,+BAzXd;AA0XA,wBAAc,mCA1Xd;AA2XA,wBAAc,mCA3Xd;AA4XA,wBAAc,iCA5Xd;AA6XA,wBAAc,kCA7Xd;AA8XA,wBAAc,yCA9Xd;AA+XA,wBAAc,+BA/Xd;AAgYA,wBAAc,4BAhYd;AAiYA,wBAAc,gCAjYd;AAkYA,wBAAc,gCAlYd;AAmYA,wBAAc,8BAnYd;AAoYA,wBAAc,+BApYd;AAqYA,wBAAc,yCArYd;AAsYA,wBAAc,4BAtYd;AAuYA,wBAAc,yBAvYd;AAwYA,wBAAc,6BAxYd;AAyYA,wBAAc,6BAzYd;AA0YA,wBAAc,2BA1Yd;AA2YA,wBAAc,4BA3Yd;AA4YA,wBAAc,yCA5Yd;AA6YA,wBAAc,+BA7Yd;AA8YA,wBAAc,4BA9Yd;AA+YA,wBAAc,gCA/Yd;AAgZA,wBAAc,gCAhZd;AAiZA,wBAAc,8BAjZd;AAkZA,wBAAc,+BAlZd;AAmZA,wBAAc,2CAnZd;AAoZA,wBAAc,iCApZd;AAqZA,wBAAc,8BArZd;AAsZA,wBAAc,kCAtZd;AAuZA,wBAAc,kCAvZd;AAwZA,wBAAc,gCAxZd;AAyZA,wBAAc,iCAzZd;",
4
+ "sourcesContent": ["import 'reflect-metadata';\nexport * from './decorators/elementDefine';\nexport * from './decorators/innerHtml';\nexport * from './decorators/attribute';\nexport * from './decorators/state';\nexport * from './decorators/emitCustomEvent';\nexport * from './decorators/lifecycles';\nexport * from './decorators/query';\nexport * from './decorators/queryAll';\nexport * from './decorators/addEventListener';\nexport * from './elements/SwcHTMLElementBase';\nexport * from './elements/SwcObject';\nexport * from './elements/SwcIf';\nexport * from './elements/SwcForOf';\nexport * from './utils/Utils';\nexport * from './is/SwcHTMLAnchorElementBase';\nexport * from './is/SwcForOfAnchor';\nexport * from './is/SwcIfAnchor';\nexport * from './is/SwcObjectAnchor';\nexport * from './is/SwcChooseAnchor';\nexport * from './is/SwcWhenAnchor';\nexport * from './is/SwcOtherAnchor';\nexport * from './is/SwcHTMLAreaElementBase';\nexport * from './is/SwcForOfArea';\nexport * from './is/SwcIfArea';\nexport * from './is/SwcObjectArea';\nexport * from './is/SwcChooseArea';\nexport * from './is/SwcWhenArea';\nexport * from './is/SwcOtherArea';\nexport * from './is/SwcHTMLAudioElementBase';\nexport * from './is/SwcForOfAudio';\nexport * from './is/SwcIfAudio';\nexport * from './is/SwcObjectAudio';\nexport * from './is/SwcChooseAudio';\nexport * from './is/SwcWhenAudio';\nexport * from './is/SwcOtherAudio';\nexport * from './is/SwcHTMLBaseElementBase';\nexport * from './is/SwcForOfBase';\nexport * from './is/SwcIfBase';\nexport * from './is/SwcObjectBase';\nexport * from './is/SwcChooseBase';\nexport * from './is/SwcWhenBase';\nexport * from './is/SwcOtherBase';\nexport * from './is/SwcHTMLButtonElementBase';\nexport * from './is/SwcForOfButton';\nexport * from './is/SwcIfButton';\nexport * from './is/SwcObjectButton';\nexport * from './is/SwcChooseButton';\nexport * from './is/SwcWhenButton';\nexport * from './is/SwcOtherButton';\nexport * from './is/SwcHTMLCanvasElementBase';\nexport * from './is/SwcForOfCanvas';\nexport * from './is/SwcIfCanvas';\nexport * from './is/SwcObjectCanvas';\nexport * from './is/SwcChooseCanvas';\nexport * from './is/SwcWhenCanvas';\nexport * from './is/SwcOtherCanvas';\nexport * from './is/SwcHTMLDataElementBase';\nexport * from './is/SwcForOfData';\nexport * from './is/SwcIfData';\nexport * from './is/SwcObjectData';\nexport * from './is/SwcChooseData';\nexport * from './is/SwcWhenData';\nexport * from './is/SwcOtherData';\nexport * from './is/SwcHTMLDataListElementBase';\nexport * from './is/SwcForOfDataList';\nexport * from './is/SwcIfDataList';\nexport * from './is/SwcObjectDataList';\nexport * from './is/SwcChooseDataList';\nexport * from './is/SwcWhenDataList';\nexport * from './is/SwcOtherDataList';\nexport * from './is/SwcHTMLDetailsElementBase';\nexport * from './is/SwcForOfDetails';\nexport * from './is/SwcIfDetails';\nexport * from './is/SwcObjectDetails';\nexport * from './is/SwcChooseDetails';\nexport * from './is/SwcWhenDetails';\nexport * from './is/SwcOtherDetails';\nexport * from './is/SwcHTMLDialogElementBase';\nexport * from './is/SwcForOfDialog';\nexport * from './is/SwcIfDialog';\nexport * from './is/SwcObjectDialog';\nexport * from './is/SwcChooseDialog';\nexport * from './is/SwcWhenDialog';\nexport * from './is/SwcOtherDialog';\nexport * from './is/SwcHTMLDivElementBase';\nexport * from './is/SwcForOfDiv';\nexport * from './is/SwcIfDiv';\nexport * from './is/SwcObjectDiv';\nexport * from './is/SwcChooseDiv';\nexport * from './is/SwcWhenDiv';\nexport * from './is/SwcOtherDiv';\nexport * from './is/SwcHTMLDListElementBase';\nexport * from './is/SwcForOfDl';\nexport * from './is/SwcIfDl';\nexport * from './is/SwcObjectDl';\nexport * from './is/SwcChooseDl';\nexport * from './is/SwcWhenDl';\nexport * from './is/SwcOtherDl';\nexport * from './is/SwcHTMLEmbedElementBase';\nexport * from './is/SwcForOfEmbed';\nexport * from './is/SwcIfEmbed';\nexport * from './is/SwcObjectEmbed';\nexport * from './is/SwcChooseEmbed';\nexport * from './is/SwcWhenEmbed';\nexport * from './is/SwcOtherEmbed';\nexport * from './is/SwcHTMLFieldSetElementBase';\nexport * from './is/SwcForOfFieldSet';\nexport * from './is/SwcIfFieldSet';\nexport * from './is/SwcObjectFieldSet';\nexport * from './is/SwcChooseFieldSet';\nexport * from './is/SwcWhenFieldSet';\nexport * from './is/SwcOtherFieldSet';\nexport * from './is/SwcHTMLFormElementBase';\nexport * from './is/SwcForOfForm';\nexport * from './is/SwcIfForm';\nexport * from './is/SwcObjectForm';\nexport * from './is/SwcChooseForm';\nexport * from './is/SwcWhenForm';\nexport * from './is/SwcOtherForm';\nexport * from './is/SwcHTMLHRElementBase';\nexport * from './is/SwcForOfHr';\nexport * from './is/SwcIfHr';\nexport * from './is/SwcObjectHr';\nexport * from './is/SwcChooseHr';\nexport * from './is/SwcWhenHr';\nexport * from './is/SwcOtherHr';\nexport * from './is/SwcHTMLIFrameElementBase';\nexport * from './is/SwcForOfIFrame';\nexport * from './is/SwcIfIFrame';\nexport * from './is/SwcObjectIFrame';\nexport * from './is/SwcChooseIFrame';\nexport * from './is/SwcWhenIFrame';\nexport * from './is/SwcOtherIFrame';\nexport * from './is/SwcHTMLImageElementBase';\nexport * from './is/SwcForOfImage';\nexport * from './is/SwcIfImage';\nexport * from './is/SwcObjectImage';\nexport * from './is/SwcChooseImage';\nexport * from './is/SwcWhenImage';\nexport * from './is/SwcOtherImage';\nexport * from './is/SwcHTMLInputElementBase';\nexport * from './is/SwcForOfInput';\nexport * from './is/SwcIfInput';\nexport * from './is/SwcObjectInput';\nexport * from './is/SwcChooseInput';\nexport * from './is/SwcWhenInput';\nexport * from './is/SwcOtherInput';\nexport * from './is/SwcHTMLLabelElementBase';\nexport * from './is/SwcForOfLabel';\nexport * from './is/SwcIfLabel';\nexport * from './is/SwcObjectLabel';\nexport * from './is/SwcChooseLabel';\nexport * from './is/SwcWhenLabel';\nexport * from './is/SwcOtherLabel';\nexport * from './is/SwcHTMLLegendElementBase';\nexport * from './is/SwcForOfLegend';\nexport * from './is/SwcIfLegend';\nexport * from './is/SwcObjectLegend';\nexport * from './is/SwcChooseLegend';\nexport * from './is/SwcWhenLegend';\nexport * from './is/SwcOtherLegend';\nexport * from './is/SwcHTMLLIElementBase';\nexport * from './is/SwcForOfLi';\nexport * from './is/SwcIfLi';\nexport * from './is/SwcObjectLi';\nexport * from './is/SwcChooseLi';\nexport * from './is/SwcWhenLi';\nexport * from './is/SwcOtherLi';\nexport * from './is/SwcHTMLLinkElementBase';\nexport * from './is/SwcForOfLink';\nexport * from './is/SwcIfLink';\nexport * from './is/SwcObjectLink';\nexport * from './is/SwcChooseLink';\nexport * from './is/SwcWhenLink';\nexport * from './is/SwcOtherLink';\nexport * from './is/SwcHTMLMapElementBase';\nexport * from './is/SwcForOfMap';\nexport * from './is/SwcIfMap';\nexport * from './is/SwcObjectMap';\nexport * from './is/SwcChooseMap';\nexport * from './is/SwcWhenMap';\nexport * from './is/SwcOtherMap';\nexport * from './is/SwcHTMLMetaElementBase';\nexport * from './is/SwcForOfMeta';\nexport * from './is/SwcIfMeta';\nexport * from './is/SwcObjectMeta';\nexport * from './is/SwcChooseMeta';\nexport * from './is/SwcWhenMeta';\nexport * from './is/SwcOtherMeta';\nexport * from './is/SwcHTMLMeterElementBase';\nexport * from './is/SwcForOfMeter';\nexport * from './is/SwcIfMeter';\nexport * from './is/SwcObjectMeter';\nexport * from './is/SwcChooseMeter';\nexport * from './is/SwcWhenMeter';\nexport * from './is/SwcOtherMeter';\nexport * from './is/SwcHTMLModElementBase';\nexport * from './is/SwcForOfMod';\nexport * from './is/SwcIfMod';\nexport * from './is/SwcObjectMod';\nexport * from './is/SwcChooseMod';\nexport * from './is/SwcWhenMod';\nexport * from './is/SwcOtherMod';\nexport * from './is/SwcHTMLObjectElementBase';\nexport * from './is/SwcForOfObject';\nexport * from './is/SwcIfObject';\nexport * from './is/SwcObjectObject';\nexport * from './is/SwcChooseObject';\nexport * from './is/SwcWhenObject';\nexport * from './is/SwcOtherObject';\nexport * from './is/SwcHTMLOListElementBase';\nexport * from './is/SwcForOfOl';\nexport * from './is/SwcIfOl';\nexport * from './is/SwcObjectOl';\nexport * from './is/SwcChooseOl';\nexport * from './is/SwcWhenOl';\nexport * from './is/SwcOtherOl';\nexport * from './is/SwcHTMLOptGroupElementBase';\nexport * from './is/SwcForOfOptGroup';\nexport * from './is/SwcIfOptGroup';\nexport * from './is/SwcObjectOptGroup';\nexport * from './is/SwcChooseOptGroup';\nexport * from './is/SwcWhenOptGroup';\nexport * from './is/SwcOtherOptGroup';\nexport * from './is/SwcHTMLOptionElementBase';\nexport * from './is/SwcForOfOption';\nexport * from './is/SwcIfOption';\nexport * from './is/SwcObjectOption';\nexport * from './is/SwcChooseOption';\nexport * from './is/SwcWhenOption';\nexport * from './is/SwcOtherOption';\nexport * from './is/SwcHTMLOutputElementBase';\nexport * from './is/SwcForOfOutput';\nexport * from './is/SwcIfOutput';\nexport * from './is/SwcObjectOutput';\nexport * from './is/SwcChooseOutput';\nexport * from './is/SwcWhenOutput';\nexport * from './is/SwcOtherOutput';\nexport * from './is/SwcHTMLParagraphElementBase';\nexport * from './is/SwcForOfParagraph';\nexport * from './is/SwcIfParagraph';\nexport * from './is/SwcObjectParagraph';\nexport * from './is/SwcChooseParagraph';\nexport * from './is/SwcWhenParagraph';\nexport * from './is/SwcOtherParagraph';\nexport * from './is/SwcHTMLParamElementBase';\nexport * from './is/SwcForOfParam';\nexport * from './is/SwcIfParam';\nexport * from './is/SwcObjectParam';\nexport * from './is/SwcChooseParam';\nexport * from './is/SwcWhenParam';\nexport * from './is/SwcOtherParam';\nexport * from './is/SwcHTMLPictureElementBase';\nexport * from './is/SwcForOfPicture';\nexport * from './is/SwcIfPicture';\nexport * from './is/SwcObjectPicture';\nexport * from './is/SwcChoosePicture';\nexport * from './is/SwcWhenPicture';\nexport * from './is/SwcOtherPicture';\nexport * from './is/SwcHTMLPreElementBase';\nexport * from './is/SwcForOfPre';\nexport * from './is/SwcIfPre';\nexport * from './is/SwcObjectPre';\nexport * from './is/SwcChoosePre';\nexport * from './is/SwcWhenPre';\nexport * from './is/SwcOtherPre';\nexport * from './is/SwcHTMLProgressElementBase';\nexport * from './is/SwcForOfProgress';\nexport * from './is/SwcIfProgress';\nexport * from './is/SwcObjectProgress';\nexport * from './is/SwcChooseProgress';\nexport * from './is/SwcWhenProgress';\nexport * from './is/SwcOtherProgress';\nexport * from './is/SwcHTMLQuoteElementBase';\nexport * from './is/SwcForOfQuote';\nexport * from './is/SwcIfQuote';\nexport * from './is/SwcObjectQuote';\nexport * from './is/SwcChooseQuote';\nexport * from './is/SwcWhenQuote';\nexport * from './is/SwcOtherQuote';\nexport * from './is/SwcHTMLScriptElementBase';\nexport * from './is/SwcForOfScript';\nexport * from './is/SwcIfScript';\nexport * from './is/SwcObjectScript';\nexport * from './is/SwcChooseScript';\nexport * from './is/SwcWhenScript';\nexport * from './is/SwcOtherScript';\nexport * from './is/SwcHTMLSelectElementBase';\nexport * from './is/SwcForOfSelect';\nexport * from './is/SwcIfSelect';\nexport * from './is/SwcObjectSelect';\nexport * from './is/SwcChooseSelect';\nexport * from './is/SwcWhenSelect';\nexport * from './is/SwcOtherSelect';\nexport * from './is/SwcHTMLSlotElementBase';\nexport * from './is/SwcForOfSlot';\nexport * from './is/SwcIfSlot';\nexport * from './is/SwcObjectSlot';\nexport * from './is/SwcChooseSlot';\nexport * from './is/SwcWhenSlot';\nexport * from './is/SwcOtherSlot';\nexport * from './is/SwcHTMLSourceElementBase';\nexport * from './is/SwcForOfSource';\nexport * from './is/SwcIfSource';\nexport * from './is/SwcObjectSource';\nexport * from './is/SwcChooseSource';\nexport * from './is/SwcWhenSource';\nexport * from './is/SwcOtherSource';\nexport * from './is/SwcHTMLSpanElementBase';\nexport * from './is/SwcForOfSpan';\nexport * from './is/SwcIfSpan';\nexport * from './is/SwcObjectSpan';\nexport * from './is/SwcChooseSpan';\nexport * from './is/SwcWhenSpan';\nexport * from './is/SwcOtherSpan';\nexport * from './is/SwcHTMLStyleElementBase';\nexport * from './is/SwcForOfStyle';\nexport * from './is/SwcIfStyle';\nexport * from './is/SwcObjectStyle';\nexport * from './is/SwcChooseStyle';\nexport * from './is/SwcWhenStyle';\nexport * from './is/SwcOtherStyle';\nexport * from './is/SwcHTMLTableElementBase';\nexport * from './is/SwcForOfTable';\nexport * from './is/SwcIfTable';\nexport * from './is/SwcObjectTable';\nexport * from './is/SwcChooseTable';\nexport * from './is/SwcWhenTable';\nexport * from './is/SwcOtherTable';\nexport * from './is/SwcHTMLTableSectionElementBase';\nexport * from './is/SwcForOfTableSection';\nexport * from './is/SwcIfTableSection';\nexport * from './is/SwcObjectTableSection';\nexport * from './is/SwcChooseTableSection';\nexport * from './is/SwcWhenTableSection';\nexport * from './is/SwcOtherTableSection';\nexport * from './is/SwcHTMLTableCellElementBase';\nexport * from './is/SwcForOfTableCell';\nexport * from './is/SwcIfTableCell';\nexport * from './is/SwcObjectTableCell';\nexport * from './is/SwcChooseTableCell';\nexport * from './is/SwcWhenTableCell';\nexport * from './is/SwcOtherTableCell';\nexport * from './is/SwcHTMLTemplateElementBase';\nexport * from './is/SwcForOfTemplate';\nexport * from './is/SwcIfTemplate';\nexport * from './is/SwcObjectTemplate';\nexport * from './is/SwcChooseTemplate';\nexport * from './is/SwcWhenTemplate';\nexport * from './is/SwcOtherTemplate';\nexport * from './is/SwcHTMLTextAreaElementBase';\nexport * from './is/SwcForOfTextArea';\nexport * from './is/SwcIfTextArea';\nexport * from './is/SwcObjectTextArea';\nexport * from './is/SwcChooseTextArea';\nexport * from './is/SwcWhenTextArea';\nexport * from './is/SwcOtherTextArea';\nexport * from './is/SwcHTMLTimeElementBase';\nexport * from './is/SwcForOfTime';\nexport * from './is/SwcIfTime';\nexport * from './is/SwcObjectTime';\nexport * from './is/SwcChooseTime';\nexport * from './is/SwcWhenTime';\nexport * from './is/SwcOtherTime';\nexport * from './is/SwcHTMLTitleElementBase';\nexport * from './is/SwcForOfTitle';\nexport * from './is/SwcIfTitle';\nexport * from './is/SwcObjectTitle';\nexport * from './is/SwcChooseTitle';\nexport * from './is/SwcWhenTitle';\nexport * from './is/SwcOtherTitle';\nexport * from './is/SwcHTMLTableRowElementBase';\nexport * from './is/SwcForOfTableRow';\nexport * from './is/SwcIfTableRow';\nexport * from './is/SwcObjectTableRow';\nexport * from './is/SwcChooseTableRow';\nexport * from './is/SwcWhenTableRow';\nexport * from './is/SwcOtherTableRow';\nexport * from './is/SwcHTMLTrackElementBase';\nexport * from './is/SwcForOfTrack';\nexport * from './is/SwcIfTrack';\nexport * from './is/SwcObjectTrack';\nexport * from './is/SwcChooseTrack';\nexport * from './is/SwcWhenTrack';\nexport * from './is/SwcOtherTrack';\nexport * from './is/SwcHTMLUListElementBase';\nexport * from './is/SwcForOfUl';\nexport * from './is/SwcIfUl';\nexport * from './is/SwcObjectUl';\nexport * from './is/SwcChooseUl';\nexport * from './is/SwcWhenUl';\nexport * from './is/SwcOtherUl';\nexport * from './is/SwcHTMLVideoElementBase';\nexport * from './is/SwcForOfVideo';\nexport * from './is/SwcIfVideo';\nexport * from './is/SwcObjectVideo';\nexport * from './is/SwcChooseVideo';\nexport * from './is/SwcWhenVideo';\nexport * from './is/SwcOtherVideo';\nexport * from './is/SwcHTMLHeadingElementBase';\nexport * from './is/SwcForOfHeading';\nexport * from './is/SwcIfHeading';\nexport * from './is/SwcObjectHeading';\nexport * from './is/SwcChooseHeading';\nexport * from './is/SwcWhenHeading';\nexport * from './is/SwcOtherHeading';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA,8BAAO;AACP,wBAAc,uCADd;AAEA,wBAAc,mCAFd;AAGA,wBAAc,mCAHd;AAIA,wBAAc,+BAJd;AAKA,wBAAc,yCALd;AAMA,wBAAc,oCANd;AAOA,wBAAc,+BAPd;AAQA,wBAAc,kCARd;AASA,wBAAc,0CATd;AAUA,wBAAc,0CAVd;AAWA,wBAAc,iCAXd;AAYA,wBAAc,6BAZd;AAaA,wBAAc,gCAbd;AAcA,wBAAc,0BAdd;AAeA,wBAAc,0CAfd;AAgBA,wBAAc,gCAhBd;AAiBA,wBAAc,6BAjBd;AAkBA,wBAAc,iCAlBd;AAmBA,wBAAc,iCAnBd;AAoBA,wBAAc,+BApBd;AAqBA,wBAAc,gCArBd;AAsBA,wBAAc,wCAtBd;AAuBA,wBAAc,8BAvBd;AAwBA,wBAAc,2BAxBd;AAyBA,wBAAc,+BAzBd;AA0BA,w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wBAAc,2CAhZd;AAiZA,wBAAc,iCAjZd;AAkZA,wBAAc,8BAlZd;AAmZA,wBAAc,kCAnZd;AAoZA,wBAAc,kCApZd;AAqZA,wBAAc,gCArZd;AAsZA,wBAAc,iCAtZd;",
6
6
  "names": []
7
7
  }
@@ -76,9 +76,9 @@ let SwcIfAnchor = class SwcIfAnchor2 extends import_SwcHTMLAnchorElementBase.Swc
76
76
  if (isTruthy && this._masterTplNodes.length > 0) {
77
77
  this._masterTplNodes.forEach((tplNode) => {
78
78
  const clone = tplNode.cloneNode(true);
79
+ this.appendChild(clone);
79
80
  if (clone.style)
80
81
  clone.style.display = "contents";
81
- this.appendChild(clone);
82
82
  this.applyData(clone, this._swcValue);
83
83
  });
84
84
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/is/SwcIfAnchor.ts"],
4
- "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\nimport { SwcHTMLAnchorElementBase } from './SwcHTMLAnchorElementBase';\n\n@elementDefine({ name: 'swc-if-a', extends: 'a' })\nexport class SwcIfAnchor extends SwcHTMLAnchorElementBase {\n private _swcValue: any = false;\n\n constructor() {\n super();\n }\n\n set swcValue(val: any) {\n this._swcValue = val;\n if (this._masterTplNodes.length === 0) this.initCore();\n this.render();\n }\n\n get swcValue(): any {\n return this._swcValue;\n }\n\n @innerHtml\n renderTemplate() {\n return `<slot id=\"tpl-slot\" style=\"display:none;\"></slot>`;\n }\n\n connectedCallback() {\n this.initCore();\n if (this._masterTplNodes.length > 0) {\n this.innerHTML = '';\n this.render();\n }\n }\n\n private render() {\n const attrValue = this.getAttribute('swc-value') || this.getAttribute('value');\n if (attrValue !== null && attrValue.includes('{{')) return;\n\n let displayValue = attrValue !== null ? attrValue : this._swcValue;\n let isTruthy = !!displayValue;\n if (typeof displayValue === 'string') {\n if (displayValue === 'false' || displayValue === '0' || displayValue === '') isTruthy = false;\n else {\n try {\n isTruthy = !!new Function('return ' + displayValue)();\n } catch (e) {\n isTruthy = true;\n }\n }\n }\n\n this.innerHTML = '';\n if (isTruthy && this._masterTplNodes.length > 0) {\n this._masterTplNodes.forEach(tplNode => {\n const clone = tplNode.cloneNode(true) as HTMLElement;\n if (clone.style) clone.style.display = 'contents';\n this.appendChild(clone);\n this.applyData(clone, this._swcValue);\n });\n }\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,eAAyC;AACzC,sCAAyC;;;;;;;;;;AAGlC,IAAM,cAAN,MAAMA,qBAAoB,yDAAwB;EAGvD,cAAA;AACE,UAAK;AAHC,SAAA,YAAiB;EAIzB;EAEA,IAAI,SAAS,KAAQ;AACnB,SAAK,YAAY;AACjB,QAAI,KAAK,gBAAgB,WAAW;AAAG,WAAK,SAAQ;AACpD,SAAK,OAAM;EACb;EAEA,IAAI,WAAQ;AACV,WAAO,KAAK;EACd;EAGA,iBAAc;AACZ,WAAO;EACT;EAEA,oBAAiB;AACf,SAAK,SAAQ;AACb,QAAI,KAAK,gBAAgB,SAAS,GAAG;AACnC,WAAK,YAAY;AACjB,WAAK,OAAM;IACb;EACF;EAEQ,SAAM;AACZ,UAAM,YAAY,KAAK,aAAa,WAAW,KAAK,KAAK,aAAa,OAAO;AAC7E,QAAI,cAAc,QAAQ,UAAU,SAAS,IAAI;AAAG;AAEpD,QAAI,eAAe,cAAc,OAAO,YAAY,KAAK;AACzD,QAAI,WAAW,CAAC,CAAC;AACjB,QAAI,OAAO,iBAAiB,UAAU;AACpC,UAAI,iBAAiB,WAAW,iBAAiB,OAAO,iBAAiB;AAAI,mBAAW;WACnF;AACH,YAAI;AACF,qBAAW,CAAC,CAAC,IAAI,SAAS,YAAY,YAAY,EAAC;QACrD,SAAS,GAAG;AACV,qBAAW;QACb;MACF;IACF;AAEA,SAAK,YAAY;AACjB,QAAI,YAAY,KAAK,gBAAgB,SAAS,GAAG;AAC/C,WAAK,gBAAgB,QAAQ,aAAU;AACrC,cAAM,QAAQ,QAAQ,UAAU,IAAI;AACpC,YAAI,MAAM;AAAO,gBAAM,MAAM,UAAU;AACvC,aAAK,YAAY,KAAK;AACtB,aAAK,UAAU,OAAO,KAAK,SAAS;MACtC,CAAC;IACH;EACF;;AAtCA,WAAA;EADC;;;;;AAjBU,cAAW,WAAA;MADvB,wBAAc,EAAE,MAAM,YAAY,SAAS,IAAG,CAAE;;GACpC,WAAW;",
4
+ "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\nimport { SwcHTMLAnchorElementBase } from './SwcHTMLAnchorElementBase';\n\n@elementDefine({ name: 'swc-if-a', extends: 'a' })\nexport class SwcIfAnchor extends SwcHTMLAnchorElementBase {\n private _swcValue: any = false;\n\n constructor() {\n super();\n }\n\n set swcValue(val: any) {\n this._swcValue = val;\n if (this._masterTplNodes.length === 0) this.initCore();\n this.render();\n }\n\n get swcValue(): any {\n return this._swcValue;\n }\n\n @innerHtml\n renderTemplate() {\n return `<slot id=\"tpl-slot\" style=\"display:none;\"></slot>`;\n }\n\n connectedCallback() {\n this.initCore();\n if (this._masterTplNodes.length > 0) {\n this.innerHTML = '';\n this.render();\n }\n }\n\n private render() {\n const attrValue = this.getAttribute('swc-value') || this.getAttribute('value');\n if (attrValue !== null && attrValue.includes('{{')) return;\n\n let displayValue = attrValue !== null ? attrValue : this._swcValue;\n let isTruthy = !!displayValue;\n if (typeof displayValue === 'string') {\n if (displayValue === 'false' || displayValue === '0' || displayValue === '') isTruthy = false;\n else {\n try {\n isTruthy = !!new Function('return ' + displayValue)();\n } catch (e) {\n isTruthy = true;\n }\n }\n }\n\n this.innerHTML = '';\n if (isTruthy && this._masterTplNodes.length > 0) {\n this._masterTplNodes.forEach(tplNode => {\n const clone = tplNode.cloneNode(true) as HTMLElement;\n this.appendChild(clone);\n if (clone.style) clone.style.display = 'contents';\n this.applyData(clone, this._swcValue);\n });\n }\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,eAAyC;AACzC,sCAAyC;;;;;;;;;;AAGlC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ea = class SwcIfArea2 extends import_SwcHTMLAreaElementBase.SwcHTMLAr
76
76
  if (isTruthy && this._masterTplNodes.length > 0) {
77
77
  this._masterTplNodes.forEach((tplNode) => {
78
78
  const clone = tplNode.cloneNode(true);
79
+ this.appendChild(clone);
79
80
  if (clone.style)
80
81
  clone.style.display = "contents";
81
- this.appendChild(clone);
82
82
  this.applyData(clone, this._swcValue);
83
83
  });
84
84
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/is/SwcIfArea.ts"],
4
- "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\nimport { SwcHTMLAreaElementBase } from './SwcHTMLAreaElementBase';\n\n@elementDefine({ name: 'swc-if-area', extends: 'area' })\nexport class SwcIfArea extends SwcHTMLAreaElementBase {\n private _swcValue: any = false;\n\n constructor() {\n super();\n }\n\n set swcValue(val: any) {\n this._swcValue = val;\n if (this._masterTplNodes.length === 0) this.initCore();\n this.render();\n }\n\n get swcValue(): any {\n return this._swcValue;\n }\n\n @innerHtml\n renderTemplate() {\n return `<slot id=\"tpl-slot\" style=\"display:none;\"></slot>`;\n }\n\n connectedCallback() {\n this.initCore();\n if (this._masterTplNodes.length > 0) {\n this.innerHTML = '';\n this.render();\n }\n }\n\n private render() {\n const attrValue = this.getAttribute('swc-value') || this.getAttribute('value');\n if (attrValue !== null && attrValue.includes('{{')) return;\n\n let displayValue = attrValue !== null ? attrValue : this._swcValue;\n let isTruthy = !!displayValue;\n if (typeof displayValue === 'string') {\n if (displayValue === 'false' || displayValue === '0' || displayValue === '') isTruthy = false;\n else {\n try {\n isTruthy = !!new Function('return ' + displayValue)();\n } catch (e) {\n isTruthy = true;\n }\n }\n }\n\n this.innerHTML = '';\n if (isTruthy && this._masterTplNodes.length > 0) {\n this._masterTplNodes.forEach(tplNode => {\n const clone = tplNode.cloneNode(true) as HTMLElement;\n if (clone.style) clone.style.display = 'contents';\n this.appendChild(clone);\n this.applyData(clone, this._swcValue);\n });\n }\n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S,OAAM,CAAE;;GAC1C,SAAS;",
4
+ "sourcesContent": ["import { elementDefine, innerHtml } from '../index';\nimport { SwcHTMLAreaElementBase } from './SwcHTMLAreaElementBase';\n\n@elementDefine({ name: 'swc-if-area', extends: 'area' })\nexport class SwcIfArea extends SwcHTMLAreaElementBase {\n private _swcValue: any = false;\n\n constructor() {\n super();\n }\n\n set swcValue(val: any) {\n this._swcValue = val;\n if (this._masterTplNodes.length === 0) this.initCore();\n this.render();\n }\n\n get swcValue(): any {\n return this._swcValue;\n }\n\n @innerHtml\n renderTemplate() {\n return `<slot id=\"tpl-slot\" style=\"display:none;\"></slot>`;\n }\n\n connectedCallback() {\n this.initCore();\n if (this._masterTplNodes.length > 0) {\n this.innerHTML = '';\n this.render();\n }\n }\n\n private render() {\n const attrValue = this.getAttribute('swc-value') || this.getAttribute('value');\n if (attrValue !== null && attrValue.includes('{{')) return;\n\n let displayValue = attrValue !== null ? attrValue : this._swcValue;\n let isTruthy = !!displayValue;\n if (typeof displayValue === 'string') {\n if (displayValue === 'false' || displayValue === '0' || displayValue === '') isTruthy = false;\n else {\n try {\n isTruthy = !!new Function('return ' + displayValue)();\n } catch (e) {\n isTruthy = true;\n }\n }\n }\n\n this.innerHTML = '';\n if (isTruthy && this._masterTplNodes.length > 0) {\n this._masterTplNodes.forEach(tplNode => {\n const clone = tplNode.cloneNode(true) as HTMLElement;\n this.appendChild(clone);\n if (clone.style) clone.style.display = 'contents';\n this.applyData(clone, this._swcValue);\n });\n }\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,eAAyC;AACzC,oCAAuC;;;;;;;;;;AAGhC,IAAM,YAAN,MAAMA,mBAAkB,qDAAsB;EAGnD,cAAA;AACE,UAAK;AAHC,SAAA,YAAiB;EAIzB;EAEA,IAAI,SAAS,KAAQ;AACnB,SAAK,YAAY;AACjB,QAAI,KAAK,gBAAgB,WAAW;AAAG,WAAK,SAAQ;AACpD,SAAK,OAAM;EACb;EAEA,IAAI,WAAQ;AACV,WAAO,KAAK;EACd;EAGA,iBAAc;AACZ,WAAO;EACT;EAEA,oBAAiB;AACf,SAAK,SAAQ;AACb,QAAI,KAAK,gBAAgB,SAAS,GAAG;AACnC,WAAK,YAAY;AACjB,WAAK,OAAM;IACb;EACF;EAEQ,SAAM;AACZ,UAAM,YAAY,KAAK,aAAa,WAAW,KAAK,KAAK,aAAa,OAAO;AAC7E,QAAI,cAAc,QAAQ,UAAU,SAAS,IAAI;AAAG;AAEpD,QAAI,eAAe,cAAc,OAAO,YAAY,KAAK;AACzD,QAAI,WAAW,CAAC,CAAC;AACjB,QAAI,OAAO,iBAAiB,UAAU;AACpC,UAAI,iBAAiB,WAAW,iBAAiB,OAAO,iBAAiB;AAAI,mBAAW;WACnF;AACH,YAAI;AACF,qBAAW,CAAC,CAAC,IAAI,SAAS,YAAY,YAAY,EAAC;QACrD,SAAS,GAAG;AACV,qBAAW;QACb;MACF;IACF;AAEA,SAAK,YAAY;AACjB,QAAI,YAAY,KAAK,gBAAgB,SAAS,GAAG;AAC/C,WAAK,gBAAgB,QAAQ,aAAU;AACrC,cAAM,QAAQ,QAAQ,UAAU,IAAI;AACpC,aAAK,YAAY,KAAK;AACtB,YAAI,MAAM;AAAO,gBAAM,MAAM,UAAU;AACvC,aAAK,UAAU,OAAO,KAAK,SAAS;MACtC,CAAC;IACH;EACF;;AAtCA,WAAA;EADC;;;;;AAjBU,YAAS,WAAA;MADrB,wBAAc,EAAE,MAAM,eAAe,SAAS,OAAM,CAAE;;GAC1C,SAAS;",
6
6
  "names": ["SwcIfArea"]
7
7
  }
@@ -76,9 +76,9 @@ let SwcIfAudio = class SwcIfAudio2 extends import_SwcHTMLAudioElementBase.SwcHTM
76
76
  if (isTruthy && this._masterTplNodes.length > 0) {
77
77
  this._masterTplNodes.forEach((tplNode) => {
78
78
  const clone = tplNode.cloneNode(true);
79
+ this.appendChild(clone);
79
80
  if (clone.style)
80
81
  clone.style.display = "contents";
81
- this.appendChild(clone);
82
82
  this.applyData(clone, this._swcValue);
83
83
  });
84
84
  }