@dooboostore/simple-web-component 1.0.5 → 1.0.6

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 (1020) hide show
  1. package/README.md +112 -66
  2. package/dist/cjs/decorators/addEventListener.js +3 -2
  3. package/dist/cjs/decorators/addEventListener.js.map +2 -2
  4. package/dist/cjs/decorators/attribute.js +79 -0
  5. package/dist/cjs/decorators/attribute.js.map +7 -0
  6. package/dist/cjs/decorators/elementDefine.js +217 -86
  7. package/dist/cjs/decorators/elementDefine.js.map +2 -2
  8. package/dist/cjs/decorators/emitCustomEvent.js +60 -0
  9. package/dist/cjs/decorators/emitCustomEvent.js.map +7 -0
  10. package/dist/cjs/decorators/lifecycles.js +38 -0
  11. package/dist/cjs/decorators/lifecycles.js.map +2 -2
  12. package/dist/cjs/decorators/state.js +50 -0
  13. package/dist/cjs/decorators/state.js.map +7 -0
  14. package/dist/cjs/index.js +3 -1
  15. package/dist/cjs/index.js.map +2 -2
  16. package/dist/cjs/is/SwcChooseAnchor.js.map +2 -2
  17. package/dist/cjs/is/SwcChooseArea.js.map +2 -2
  18. package/dist/cjs/is/SwcChooseAudio.js.map +2 -2
  19. package/dist/cjs/is/SwcChooseBase.js.map +2 -2
  20. package/dist/cjs/is/SwcChooseButton.js.map +2 -2
  21. package/dist/cjs/is/SwcChooseCanvas.js.map +2 -2
  22. package/dist/cjs/is/SwcChooseData.js.map +2 -2
  23. package/dist/cjs/is/SwcChooseDataList.js.map +2 -2
  24. package/dist/cjs/is/SwcChooseDetails.js.map +2 -2
  25. package/dist/cjs/is/SwcChooseDialog.js.map +2 -2
  26. package/dist/cjs/is/SwcChooseDiv.js.map +2 -2
  27. package/dist/cjs/is/SwcChooseDl.js.map +2 -2
  28. package/dist/cjs/is/SwcChooseEmbed.js.map +2 -2
  29. package/dist/cjs/is/SwcChooseFieldSet.js.map +2 -2
  30. package/dist/cjs/is/SwcChooseForm.js.map +2 -2
  31. package/dist/cjs/is/SwcChooseHeading.js.map +2 -2
  32. package/dist/cjs/is/SwcChooseHr.js.map +2 -2
  33. package/dist/cjs/is/SwcChooseIFrame.js.map +2 -2
  34. package/dist/cjs/is/SwcChooseImage.js.map +2 -2
  35. package/dist/cjs/is/SwcChooseInput.js.map +2 -2
  36. package/dist/cjs/is/SwcChooseLabel.js.map +2 -2
  37. package/dist/cjs/is/SwcChooseLegend.js.map +2 -2
  38. package/dist/cjs/is/SwcChooseLi.js.map +2 -2
  39. package/dist/cjs/is/SwcChooseLink.js.map +2 -2
  40. package/dist/cjs/is/SwcChooseMap.js.map +2 -2
  41. package/dist/cjs/is/SwcChooseMeta.js.map +2 -2
  42. package/dist/cjs/is/SwcChooseMeter.js.map +2 -2
  43. package/dist/cjs/is/SwcChooseMod.js.map +2 -2
  44. package/dist/cjs/is/SwcChooseObject.js.map +2 -2
  45. package/dist/cjs/is/SwcChooseOl.js.map +2 -2
  46. package/dist/cjs/is/SwcChooseOptGroup.js.map +2 -2
  47. package/dist/cjs/is/SwcChooseOption.js.map +2 -2
  48. package/dist/cjs/is/SwcChooseOutput.js.map +2 -2
  49. package/dist/cjs/is/SwcChooseParagraph.js.map +2 -2
  50. package/dist/cjs/is/SwcChooseParam.js.map +2 -2
  51. package/dist/cjs/is/SwcChoosePicture.js.map +2 -2
  52. package/dist/cjs/is/SwcChoosePre.js.map +2 -2
  53. package/dist/cjs/is/SwcChooseProgress.js.map +2 -2
  54. package/dist/cjs/is/SwcChooseQuote.js.map +2 -2
  55. package/dist/cjs/is/SwcChooseScript.js.map +2 -2
  56. package/dist/cjs/is/SwcChooseSelect.js.map +2 -2
  57. package/dist/cjs/is/SwcChooseSlot.js.map +2 -2
  58. package/dist/cjs/is/SwcChooseSource.js.map +2 -2
  59. package/dist/cjs/is/SwcChooseSpan.js.map +2 -2
  60. package/dist/cjs/is/SwcChooseStyle.js.map +2 -2
  61. package/dist/cjs/is/SwcChooseTable.js.map +2 -2
  62. package/dist/cjs/is/SwcChooseTableCell.js.map +2 -2
  63. package/dist/cjs/is/SwcChooseTableRow.js.map +2 -2
  64. package/dist/cjs/is/SwcChooseTableSection.js.map +2 -2
  65. package/dist/cjs/is/SwcChooseTemplate.js.map +2 -2
  66. package/dist/cjs/is/SwcChooseTextArea.js.map +2 -2
  67. package/dist/cjs/is/SwcChooseTime.js.map +2 -2
  68. package/dist/cjs/is/SwcChooseTitle.js.map +2 -2
  69. package/dist/cjs/is/SwcChooseTrack.js.map +2 -2
  70. package/dist/cjs/is/SwcChooseUl.js.map +2 -2
  71. package/dist/cjs/is/SwcChooseVideo.js.map +2 -2
  72. package/dist/cjs/is/SwcIfAnchor.js +1 -1
  73. package/dist/cjs/is/SwcIfAnchor.js.map +2 -2
  74. package/dist/cjs/is/SwcIfArea.js +1 -1
  75. package/dist/cjs/is/SwcIfArea.js.map +2 -2
  76. package/dist/cjs/is/SwcIfAudio.js +1 -1
  77. package/dist/cjs/is/SwcIfAudio.js.map +2 -2
  78. package/dist/cjs/is/SwcIfBase.js +1 -1
  79. package/dist/cjs/is/SwcIfBase.js.map +2 -2
  80. package/dist/cjs/is/SwcIfButton.js +1 -1
  81. package/dist/cjs/is/SwcIfButton.js.map +2 -2
  82. package/dist/cjs/is/SwcIfCanvas.js +1 -1
  83. package/dist/cjs/is/SwcIfCanvas.js.map +2 -2
  84. package/dist/cjs/is/SwcIfData.js +1 -1
  85. package/dist/cjs/is/SwcIfData.js.map +2 -2
  86. package/dist/cjs/is/SwcIfDataList.js +1 -1
  87. package/dist/cjs/is/SwcIfDataList.js.map +2 -2
  88. package/dist/cjs/is/SwcIfDetails.js +1 -1
  89. package/dist/cjs/is/SwcIfDetails.js.map +2 -2
  90. package/dist/cjs/is/SwcIfDialog.js +1 -1
  91. package/dist/cjs/is/SwcIfDialog.js.map +2 -2
  92. package/dist/cjs/is/SwcIfDiv.js +1 -1
  93. package/dist/cjs/is/SwcIfDiv.js.map +2 -2
  94. package/dist/cjs/is/SwcIfDl.js +1 -1
  95. package/dist/cjs/is/SwcIfDl.js.map +2 -2
  96. package/dist/cjs/is/SwcIfEmbed.js +1 -1
  97. package/dist/cjs/is/SwcIfEmbed.js.map +2 -2
  98. package/dist/cjs/is/SwcIfFieldSet.js +1 -1
  99. package/dist/cjs/is/SwcIfFieldSet.js.map +2 -2
  100. package/dist/cjs/is/SwcIfForm.js +1 -1
  101. package/dist/cjs/is/SwcIfForm.js.map +2 -2
  102. package/dist/cjs/is/SwcIfHeading.js +1 -1
  103. package/dist/cjs/is/SwcIfHeading.js.map +2 -2
  104. package/dist/cjs/is/SwcIfHr.js +1 -1
  105. package/dist/cjs/is/SwcIfHr.js.map +2 -2
  106. package/dist/cjs/is/SwcIfIFrame.js +1 -1
  107. package/dist/cjs/is/SwcIfIFrame.js.map +2 -2
  108. package/dist/cjs/is/SwcIfImage.js +1 -1
  109. package/dist/cjs/is/SwcIfImage.js.map +2 -2
  110. package/dist/cjs/is/SwcIfInput.js +1 -1
  111. package/dist/cjs/is/SwcIfInput.js.map +2 -2
  112. package/dist/cjs/is/SwcIfLabel.js +1 -1
  113. package/dist/cjs/is/SwcIfLabel.js.map +2 -2
  114. package/dist/cjs/is/SwcIfLegend.js +1 -1
  115. package/dist/cjs/is/SwcIfLegend.js.map +2 -2
  116. package/dist/cjs/is/SwcIfLi.js +1 -1
  117. package/dist/cjs/is/SwcIfLi.js.map +2 -2
  118. package/dist/cjs/is/SwcIfLink.js +1 -1
  119. package/dist/cjs/is/SwcIfLink.js.map +2 -2
  120. package/dist/cjs/is/SwcIfMap.js +1 -1
  121. package/dist/cjs/is/SwcIfMap.js.map +2 -2
  122. package/dist/cjs/is/SwcIfMeta.js +1 -1
  123. package/dist/cjs/is/SwcIfMeta.js.map +2 -2
  124. package/dist/cjs/is/SwcIfMeter.js +1 -1
  125. package/dist/cjs/is/SwcIfMeter.js.map +2 -2
  126. package/dist/cjs/is/SwcIfMod.js +1 -1
  127. package/dist/cjs/is/SwcIfMod.js.map +2 -2
  128. package/dist/cjs/is/SwcIfObject.js +1 -1
  129. package/dist/cjs/is/SwcIfObject.js.map +2 -2
  130. package/dist/cjs/is/SwcIfOl.js +1 -1
  131. package/dist/cjs/is/SwcIfOl.js.map +2 -2
  132. package/dist/cjs/is/SwcIfOptGroup.js +1 -1
  133. package/dist/cjs/is/SwcIfOptGroup.js.map +2 -2
  134. package/dist/cjs/is/SwcIfOption.js +1 -1
  135. package/dist/cjs/is/SwcIfOption.js.map +2 -2
  136. package/dist/cjs/is/SwcIfOutput.js +1 -1
  137. package/dist/cjs/is/SwcIfOutput.js.map +2 -2
  138. package/dist/cjs/is/SwcIfParagraph.js +1 -1
  139. package/dist/cjs/is/SwcIfParagraph.js.map +2 -2
  140. package/dist/cjs/is/SwcIfParam.js +1 -1
  141. package/dist/cjs/is/SwcIfParam.js.map +2 -2
  142. package/dist/cjs/is/SwcIfPicture.js +1 -1
  143. package/dist/cjs/is/SwcIfPicture.js.map +2 -2
  144. package/dist/cjs/is/SwcIfPre.js +1 -1
  145. package/dist/cjs/is/SwcIfPre.js.map +2 -2
  146. package/dist/cjs/is/SwcIfProgress.js +1 -1
  147. package/dist/cjs/is/SwcIfProgress.js.map +2 -2
  148. package/dist/cjs/is/SwcIfQuote.js +1 -1
  149. package/dist/cjs/is/SwcIfQuote.js.map +2 -2
  150. package/dist/cjs/is/SwcIfScript.js +1 -1
  151. package/dist/cjs/is/SwcIfScript.js.map +2 -2
  152. package/dist/cjs/is/SwcIfSelect.js +1 -1
  153. package/dist/cjs/is/SwcIfSelect.js.map +2 -2
  154. package/dist/cjs/is/SwcIfSlot.js +1 -1
  155. package/dist/cjs/is/SwcIfSlot.js.map +2 -2
  156. package/dist/cjs/is/SwcIfSource.js +1 -1
  157. package/dist/cjs/is/SwcIfSource.js.map +2 -2
  158. package/dist/cjs/is/SwcIfSpan.js +1 -1
  159. package/dist/cjs/is/SwcIfSpan.js.map +2 -2
  160. package/dist/cjs/is/SwcIfStyle.js +1 -1
  161. package/dist/cjs/is/SwcIfStyle.js.map +2 -2
  162. package/dist/cjs/is/SwcIfTable.js +1 -1
  163. package/dist/cjs/is/SwcIfTable.js.map +2 -2
  164. package/dist/cjs/is/SwcIfTableCell.js +1 -1
  165. package/dist/cjs/is/SwcIfTableCell.js.map +2 -2
  166. package/dist/cjs/is/SwcIfTableRow.js +1 -1
  167. package/dist/cjs/is/SwcIfTableRow.js.map +2 -2
  168. package/dist/cjs/is/SwcIfTableSection.js +1 -1
  169. package/dist/cjs/is/SwcIfTableSection.js.map +2 -2
  170. package/dist/cjs/is/SwcIfTemplate.js +1 -1
  171. package/dist/cjs/is/SwcIfTemplate.js.map +2 -2
  172. package/dist/cjs/is/SwcIfTextArea.js +1 -1
  173. package/dist/cjs/is/SwcIfTextArea.js.map +2 -2
  174. package/dist/cjs/is/SwcIfTime.js +1 -1
  175. package/dist/cjs/is/SwcIfTime.js.map +2 -2
  176. package/dist/cjs/is/SwcIfTitle.js +1 -1
  177. package/dist/cjs/is/SwcIfTitle.js.map +2 -2
  178. package/dist/cjs/is/SwcIfTrack.js +1 -1
  179. package/dist/cjs/is/SwcIfTrack.js.map +2 -2
  180. package/dist/cjs/is/SwcIfUl.js +1 -1
  181. package/dist/cjs/is/SwcIfUl.js.map +2 -2
  182. package/dist/cjs/is/SwcIfVideo.js +1 -1
  183. package/dist/cjs/is/SwcIfVideo.js.map +2 -2
  184. package/dist/cjs/is/SwcOtherAnchor.js.map +2 -2
  185. package/dist/cjs/is/SwcOtherArea.js.map +2 -2
  186. package/dist/cjs/is/SwcOtherAudio.js.map +2 -2
  187. package/dist/cjs/is/SwcOtherBase.js.map +2 -2
  188. package/dist/cjs/is/SwcOtherButton.js.map +2 -2
  189. package/dist/cjs/is/SwcOtherCanvas.js.map +2 -2
  190. package/dist/cjs/is/SwcOtherData.js.map +2 -2
  191. package/dist/cjs/is/SwcOtherDataList.js.map +2 -2
  192. package/dist/cjs/is/SwcOtherDetails.js.map +2 -2
  193. package/dist/cjs/is/SwcOtherDialog.js.map +2 -2
  194. package/dist/cjs/is/SwcOtherDiv.js.map +2 -2
  195. package/dist/cjs/is/SwcOtherDl.js.map +2 -2
  196. package/dist/cjs/is/SwcOtherEmbed.js.map +2 -2
  197. package/dist/cjs/is/SwcOtherFieldSet.js.map +2 -2
  198. package/dist/cjs/is/SwcOtherForm.js.map +2 -2
  199. package/dist/cjs/is/SwcOtherHeading.js.map +2 -2
  200. package/dist/cjs/is/SwcOtherHr.js.map +2 -2
  201. package/dist/cjs/is/SwcOtherIFrame.js.map +2 -2
  202. package/dist/cjs/is/SwcOtherImage.js.map +2 -2
  203. package/dist/cjs/is/SwcOtherInput.js.map +2 -2
  204. package/dist/cjs/is/SwcOtherLabel.js.map +2 -2
  205. package/dist/cjs/is/SwcOtherLegend.js.map +2 -2
  206. package/dist/cjs/is/SwcOtherLi.js.map +2 -2
  207. package/dist/cjs/is/SwcOtherLink.js.map +2 -2
  208. package/dist/cjs/is/SwcOtherMap.js.map +2 -2
  209. package/dist/cjs/is/SwcOtherMeta.js.map +2 -2
  210. package/dist/cjs/is/SwcOtherMeter.js.map +2 -2
  211. package/dist/cjs/is/SwcOtherMod.js.map +2 -2
  212. package/dist/cjs/is/SwcOtherObject.js.map +2 -2
  213. package/dist/cjs/is/SwcOtherOl.js.map +2 -2
  214. package/dist/cjs/is/SwcOtherOptGroup.js.map +2 -2
  215. package/dist/cjs/is/SwcOtherOption.js.map +2 -2
  216. package/dist/cjs/is/SwcOtherOutput.js.map +2 -2
  217. package/dist/cjs/is/SwcOtherParagraph.js.map +2 -2
  218. package/dist/cjs/is/SwcOtherParam.js.map +2 -2
  219. package/dist/cjs/is/SwcOtherPicture.js.map +2 -2
  220. package/dist/cjs/is/SwcOtherPre.js.map +2 -2
  221. package/dist/cjs/is/SwcOtherProgress.js.map +2 -2
  222. package/dist/cjs/is/SwcOtherQuote.js.map +2 -2
  223. package/dist/cjs/is/SwcOtherScript.js.map +2 -2
  224. package/dist/cjs/is/SwcOtherSelect.js.map +2 -2
  225. package/dist/cjs/is/SwcOtherSlot.js.map +2 -2
  226. package/dist/cjs/is/SwcOtherSource.js.map +2 -2
  227. package/dist/cjs/is/SwcOtherSpan.js.map +2 -2
  228. package/dist/cjs/is/SwcOtherStyle.js.map +2 -2
  229. package/dist/cjs/is/SwcOtherTable.js.map +2 -2
  230. package/dist/cjs/is/SwcOtherTableCell.js.map +2 -2
  231. package/dist/cjs/is/SwcOtherTableRow.js.map +2 -2
  232. package/dist/cjs/is/SwcOtherTableSection.js.map +2 -2
  233. package/dist/cjs/is/SwcOtherTemplate.js.map +2 -2
  234. package/dist/cjs/is/SwcOtherTextArea.js.map +2 -2
  235. package/dist/cjs/is/SwcOtherTime.js.map +2 -2
  236. package/dist/cjs/is/SwcOtherTitle.js.map +2 -2
  237. package/dist/cjs/is/SwcOtherTrack.js.map +2 -2
  238. package/dist/cjs/is/SwcOtherUl.js.map +2 -2
  239. package/dist/cjs/is/SwcOtherVideo.js.map +2 -2
  240. package/dist/cjs/is/SwcWhenAnchor.js.map +2 -2
  241. package/dist/cjs/is/SwcWhenArea.js.map +2 -2
  242. package/dist/cjs/is/SwcWhenAudio.js.map +2 -2
  243. package/dist/cjs/is/SwcWhenBase.js.map +2 -2
  244. package/dist/cjs/is/SwcWhenButton.js.map +2 -2
  245. package/dist/cjs/is/SwcWhenCanvas.js.map +2 -2
  246. package/dist/cjs/is/SwcWhenData.js.map +2 -2
  247. package/dist/cjs/is/SwcWhenDataList.js.map +2 -2
  248. package/dist/cjs/is/SwcWhenDetails.js.map +2 -2
  249. package/dist/cjs/is/SwcWhenDialog.js.map +2 -2
  250. package/dist/cjs/is/SwcWhenDiv.js.map +2 -2
  251. package/dist/cjs/is/SwcWhenDl.js.map +2 -2
  252. package/dist/cjs/is/SwcWhenEmbed.js.map +2 -2
  253. package/dist/cjs/is/SwcWhenFieldSet.js.map +2 -2
  254. package/dist/cjs/is/SwcWhenForm.js.map +2 -2
  255. package/dist/cjs/is/SwcWhenHeading.js.map +2 -2
  256. package/dist/cjs/is/SwcWhenHr.js.map +2 -2
  257. package/dist/cjs/is/SwcWhenIFrame.js.map +2 -2
  258. package/dist/cjs/is/SwcWhenImage.js.map +2 -2
  259. package/dist/cjs/is/SwcWhenInput.js.map +2 -2
  260. package/dist/cjs/is/SwcWhenLabel.js.map +2 -2
  261. package/dist/cjs/is/SwcWhenLegend.js.map +2 -2
  262. package/dist/cjs/is/SwcWhenLi.js.map +2 -2
  263. package/dist/cjs/is/SwcWhenLink.js.map +2 -2
  264. package/dist/cjs/is/SwcWhenMap.js.map +2 -2
  265. package/dist/cjs/is/SwcWhenMeta.js.map +2 -2
  266. package/dist/cjs/is/SwcWhenMeter.js.map +2 -2
  267. package/dist/cjs/is/SwcWhenMod.js.map +2 -2
  268. package/dist/cjs/is/SwcWhenObject.js.map +2 -2
  269. package/dist/cjs/is/SwcWhenOl.js.map +2 -2
  270. package/dist/cjs/is/SwcWhenOptGroup.js.map +2 -2
  271. package/dist/cjs/is/SwcWhenOption.js.map +2 -2
  272. package/dist/cjs/is/SwcWhenOutput.js.map +2 -2
  273. package/dist/cjs/is/SwcWhenParagraph.js.map +2 -2
  274. package/dist/cjs/is/SwcWhenParam.js.map +2 -2
  275. package/dist/cjs/is/SwcWhenPicture.js.map +2 -2
  276. package/dist/cjs/is/SwcWhenPre.js.map +2 -2
  277. package/dist/cjs/is/SwcWhenProgress.js.map +2 -2
  278. package/dist/cjs/is/SwcWhenQuote.js.map +2 -2
  279. package/dist/cjs/is/SwcWhenScript.js.map +2 -2
  280. package/dist/cjs/is/SwcWhenSelect.js.map +2 -2
  281. package/dist/cjs/is/SwcWhenSlot.js.map +2 -2
  282. package/dist/cjs/is/SwcWhenSource.js.map +2 -2
  283. package/dist/cjs/is/SwcWhenSpan.js.map +2 -2
  284. package/dist/cjs/is/SwcWhenStyle.js.map +2 -2
  285. package/dist/cjs/is/SwcWhenTable.js.map +2 -2
  286. package/dist/cjs/is/SwcWhenTableCell.js.map +2 -2
  287. package/dist/cjs/is/SwcWhenTableRow.js.map +2 -2
  288. package/dist/cjs/is/SwcWhenTableSection.js.map +2 -2
  289. package/dist/cjs/is/SwcWhenTemplate.js.map +2 -2
  290. package/dist/cjs/is/SwcWhenTextArea.js.map +2 -2
  291. package/dist/cjs/is/SwcWhenTime.js.map +2 -2
  292. package/dist/cjs/is/SwcWhenTitle.js.map +2 -2
  293. package/dist/cjs/is/SwcWhenTrack.js.map +2 -2
  294. package/dist/cjs/is/SwcWhenUl.js.map +2 -2
  295. package/dist/cjs/is/SwcWhenVideo.js.map +2 -2
  296. package/dist/cjs/utils/Utils.js +49 -17
  297. package/dist/cjs/utils/Utils.js.map +2 -2
  298. package/dist/esm/decorators/addEventListener.js +3 -2
  299. package/dist/esm/decorators/addEventListener.js.map +2 -2
  300. package/dist/esm/decorators/attribute.js +60 -0
  301. package/dist/esm/decorators/attribute.js.map +7 -0
  302. package/dist/esm/decorators/elementDefine.js +218 -87
  303. package/dist/esm/decorators/elementDefine.js.map +2 -2
  304. package/dist/esm/decorators/emitCustomEvent.js +41 -0
  305. package/dist/esm/decorators/emitCustomEvent.js.map +7 -0
  306. package/dist/esm/decorators/lifecycles.js +38 -0
  307. package/dist/esm/decorators/lifecycles.js.map +2 -2
  308. package/dist/esm/decorators/state.js +31 -0
  309. package/dist/esm/decorators/state.js.map +7 -0
  310. package/dist/esm/index.js +3 -1
  311. package/dist/esm/index.js.map +2 -2
  312. package/dist/esm/is/SwcChooseAnchor.js.map +2 -2
  313. package/dist/esm/is/SwcChooseArea.js.map +2 -2
  314. package/dist/esm/is/SwcChooseAudio.js.map +2 -2
  315. package/dist/esm/is/SwcChooseBase.js.map +2 -2
  316. package/dist/esm/is/SwcChooseButton.js.map +2 -2
  317. package/dist/esm/is/SwcChooseCanvas.js.map +2 -2
  318. package/dist/esm/is/SwcChooseData.js.map +2 -2
  319. package/dist/esm/is/SwcChooseDataList.js.map +2 -2
  320. package/dist/esm/is/SwcChooseDetails.js.map +2 -2
  321. package/dist/esm/is/SwcChooseDialog.js.map +2 -2
  322. package/dist/esm/is/SwcChooseDiv.js.map +2 -2
  323. package/dist/esm/is/SwcChooseDl.js.map +2 -2
  324. package/dist/esm/is/SwcChooseEmbed.js.map +2 -2
  325. package/dist/esm/is/SwcChooseFieldSet.js.map +2 -2
  326. package/dist/esm/is/SwcChooseForm.js.map +2 -2
  327. package/dist/esm/is/SwcChooseHeading.js.map +2 -2
  328. package/dist/esm/is/SwcChooseHr.js.map +2 -2
  329. package/dist/esm/is/SwcChooseIFrame.js.map +2 -2
  330. package/dist/esm/is/SwcChooseImage.js.map +2 -2
  331. package/dist/esm/is/SwcChooseInput.js.map +2 -2
  332. package/dist/esm/is/SwcChooseLabel.js.map +2 -2
  333. package/dist/esm/is/SwcChooseLegend.js.map +2 -2
  334. package/dist/esm/is/SwcChooseLi.js.map +2 -2
  335. package/dist/esm/is/SwcChooseLink.js.map +2 -2
  336. package/dist/esm/is/SwcChooseMap.js.map +2 -2
  337. package/dist/esm/is/SwcChooseMeta.js.map +2 -2
  338. package/dist/esm/is/SwcChooseMeter.js.map +2 -2
  339. package/dist/esm/is/SwcChooseMod.js.map +2 -2
  340. package/dist/esm/is/SwcChooseObject.js.map +2 -2
  341. package/dist/esm/is/SwcChooseOl.js.map +2 -2
  342. package/dist/esm/is/SwcChooseOptGroup.js.map +2 -2
  343. package/dist/esm/is/SwcChooseOption.js.map +2 -2
  344. package/dist/esm/is/SwcChooseOutput.js.map +2 -2
  345. package/dist/esm/is/SwcChooseParagraph.js.map +2 -2
  346. package/dist/esm/is/SwcChooseParam.js.map +2 -2
  347. package/dist/esm/is/SwcChoosePicture.js.map +2 -2
  348. package/dist/esm/is/SwcChoosePre.js.map +2 -2
  349. package/dist/esm/is/SwcChooseProgress.js.map +2 -2
  350. package/dist/esm/is/SwcChooseQuote.js.map +2 -2
  351. package/dist/esm/is/SwcChooseScript.js.map +2 -2
  352. package/dist/esm/is/SwcChooseSelect.js.map +2 -2
  353. package/dist/esm/is/SwcChooseSlot.js.map +2 -2
  354. package/dist/esm/is/SwcChooseSource.js.map +2 -2
  355. package/dist/esm/is/SwcChooseSpan.js.map +2 -2
  356. package/dist/esm/is/SwcChooseStyle.js.map +2 -2
  357. package/dist/esm/is/SwcChooseTable.js.map +2 -2
  358. package/dist/esm/is/SwcChooseTableCell.js.map +2 -2
  359. package/dist/esm/is/SwcChooseTableRow.js.map +2 -2
  360. package/dist/esm/is/SwcChooseTableSection.js.map +2 -2
  361. package/dist/esm/is/SwcChooseTemplate.js.map +2 -2
  362. package/dist/esm/is/SwcChooseTextArea.js.map +2 -2
  363. package/dist/esm/is/SwcChooseTime.js.map +2 -2
  364. package/dist/esm/is/SwcChooseTitle.js.map +2 -2
  365. package/dist/esm/is/SwcChooseTrack.js.map +2 -2
  366. package/dist/esm/is/SwcChooseUl.js.map +2 -2
  367. package/dist/esm/is/SwcChooseVideo.js.map +2 -2
  368. package/dist/esm/is/SwcIfAnchor.js +1 -1
  369. package/dist/esm/is/SwcIfAnchor.js.map +2 -2
  370. package/dist/esm/is/SwcIfArea.js +1 -1
  371. package/dist/esm/is/SwcIfArea.js.map +2 -2
  372. package/dist/esm/is/SwcIfAudio.js +1 -1
  373. package/dist/esm/is/SwcIfAudio.js.map +2 -2
  374. package/dist/esm/is/SwcIfBase.js +1 -1
  375. package/dist/esm/is/SwcIfBase.js.map +2 -2
  376. package/dist/esm/is/SwcIfButton.js +1 -1
  377. package/dist/esm/is/SwcIfButton.js.map +2 -2
  378. package/dist/esm/is/SwcIfCanvas.js +1 -1
  379. package/dist/esm/is/SwcIfCanvas.js.map +2 -2
  380. package/dist/esm/is/SwcIfData.js +1 -1
  381. package/dist/esm/is/SwcIfData.js.map +2 -2
  382. package/dist/esm/is/SwcIfDataList.js +1 -1
  383. package/dist/esm/is/SwcIfDataList.js.map +2 -2
  384. package/dist/esm/is/SwcIfDetails.js +1 -1
  385. package/dist/esm/is/SwcIfDetails.js.map +2 -2
  386. package/dist/esm/is/SwcIfDialog.js +1 -1
  387. package/dist/esm/is/SwcIfDialog.js.map +2 -2
  388. package/dist/esm/is/SwcIfDiv.js +1 -1
  389. package/dist/esm/is/SwcIfDiv.js.map +2 -2
  390. package/dist/esm/is/SwcIfDl.js +1 -1
  391. package/dist/esm/is/SwcIfDl.js.map +2 -2
  392. package/dist/esm/is/SwcIfEmbed.js +1 -1
  393. package/dist/esm/is/SwcIfEmbed.js.map +2 -2
  394. package/dist/esm/is/SwcIfFieldSet.js +1 -1
  395. package/dist/esm/is/SwcIfFieldSet.js.map +2 -2
  396. package/dist/esm/is/SwcIfForm.js +1 -1
  397. package/dist/esm/is/SwcIfForm.js.map +2 -2
  398. package/dist/esm/is/SwcIfHeading.js +1 -1
  399. package/dist/esm/is/SwcIfHeading.js.map +2 -2
  400. package/dist/esm/is/SwcIfHr.js +1 -1
  401. package/dist/esm/is/SwcIfHr.js.map +2 -2
  402. package/dist/esm/is/SwcIfIFrame.js +1 -1
  403. package/dist/esm/is/SwcIfIFrame.js.map +2 -2
  404. package/dist/esm/is/SwcIfImage.js +1 -1
  405. package/dist/esm/is/SwcIfImage.js.map +2 -2
  406. package/dist/esm/is/SwcIfInput.js +1 -1
  407. package/dist/esm/is/SwcIfInput.js.map +2 -2
  408. package/dist/esm/is/SwcIfLabel.js +1 -1
  409. package/dist/esm/is/SwcIfLabel.js.map +2 -2
  410. package/dist/esm/is/SwcIfLegend.js +1 -1
  411. package/dist/esm/is/SwcIfLegend.js.map +2 -2
  412. package/dist/esm/is/SwcIfLi.js +1 -1
  413. package/dist/esm/is/SwcIfLi.js.map +2 -2
  414. package/dist/esm/is/SwcIfLink.js +1 -1
  415. package/dist/esm/is/SwcIfLink.js.map +2 -2
  416. package/dist/esm/is/SwcIfMap.js +1 -1
  417. package/dist/esm/is/SwcIfMap.js.map +2 -2
  418. package/dist/esm/is/SwcIfMeta.js +1 -1
  419. package/dist/esm/is/SwcIfMeta.js.map +2 -2
  420. package/dist/esm/is/SwcIfMeter.js +1 -1
  421. package/dist/esm/is/SwcIfMeter.js.map +2 -2
  422. package/dist/esm/is/SwcIfMod.js +1 -1
  423. package/dist/esm/is/SwcIfMod.js.map +2 -2
  424. package/dist/esm/is/SwcIfObject.js +1 -1
  425. package/dist/esm/is/SwcIfObject.js.map +2 -2
  426. package/dist/esm/is/SwcIfOl.js +1 -1
  427. package/dist/esm/is/SwcIfOl.js.map +2 -2
  428. package/dist/esm/is/SwcIfOptGroup.js +1 -1
  429. package/dist/esm/is/SwcIfOptGroup.js.map +2 -2
  430. package/dist/esm/is/SwcIfOption.js +1 -1
  431. package/dist/esm/is/SwcIfOption.js.map +2 -2
  432. package/dist/esm/is/SwcIfOutput.js +1 -1
  433. package/dist/esm/is/SwcIfOutput.js.map +2 -2
  434. package/dist/esm/is/SwcIfParagraph.js +1 -1
  435. package/dist/esm/is/SwcIfParagraph.js.map +2 -2
  436. package/dist/esm/is/SwcIfParam.js +1 -1
  437. package/dist/esm/is/SwcIfParam.js.map +2 -2
  438. package/dist/esm/is/SwcIfPicture.js +1 -1
  439. package/dist/esm/is/SwcIfPicture.js.map +2 -2
  440. package/dist/esm/is/SwcIfPre.js +1 -1
  441. package/dist/esm/is/SwcIfPre.js.map +2 -2
  442. package/dist/esm/is/SwcIfProgress.js +1 -1
  443. package/dist/esm/is/SwcIfProgress.js.map +2 -2
  444. package/dist/esm/is/SwcIfQuote.js +1 -1
  445. package/dist/esm/is/SwcIfQuote.js.map +2 -2
  446. package/dist/esm/is/SwcIfScript.js +1 -1
  447. package/dist/esm/is/SwcIfScript.js.map +2 -2
  448. package/dist/esm/is/SwcIfSelect.js +1 -1
  449. package/dist/esm/is/SwcIfSelect.js.map +2 -2
  450. package/dist/esm/is/SwcIfSlot.js +1 -1
  451. package/dist/esm/is/SwcIfSlot.js.map +2 -2
  452. package/dist/esm/is/SwcIfSource.js +1 -1
  453. package/dist/esm/is/SwcIfSource.js.map +2 -2
  454. package/dist/esm/is/SwcIfSpan.js +1 -1
  455. package/dist/esm/is/SwcIfSpan.js.map +2 -2
  456. package/dist/esm/is/SwcIfStyle.js +1 -1
  457. package/dist/esm/is/SwcIfStyle.js.map +2 -2
  458. package/dist/esm/is/SwcIfTable.js +1 -1
  459. package/dist/esm/is/SwcIfTable.js.map +2 -2
  460. package/dist/esm/is/SwcIfTableCell.js +1 -1
  461. package/dist/esm/is/SwcIfTableCell.js.map +2 -2
  462. package/dist/esm/is/SwcIfTableRow.js +1 -1
  463. package/dist/esm/is/SwcIfTableRow.js.map +2 -2
  464. package/dist/esm/is/SwcIfTableSection.js +1 -1
  465. package/dist/esm/is/SwcIfTableSection.js.map +2 -2
  466. package/dist/esm/is/SwcIfTemplate.js +1 -1
  467. package/dist/esm/is/SwcIfTemplate.js.map +2 -2
  468. package/dist/esm/is/SwcIfTextArea.js +1 -1
  469. package/dist/esm/is/SwcIfTextArea.js.map +2 -2
  470. package/dist/esm/is/SwcIfTime.js +1 -1
  471. package/dist/esm/is/SwcIfTime.js.map +2 -2
  472. package/dist/esm/is/SwcIfTitle.js +1 -1
  473. package/dist/esm/is/SwcIfTitle.js.map +2 -2
  474. package/dist/esm/is/SwcIfTrack.js +1 -1
  475. package/dist/esm/is/SwcIfTrack.js.map +2 -2
  476. package/dist/esm/is/SwcIfUl.js +1 -1
  477. package/dist/esm/is/SwcIfUl.js.map +2 -2
  478. package/dist/esm/is/SwcIfVideo.js +1 -1
  479. package/dist/esm/is/SwcIfVideo.js.map +2 -2
  480. package/dist/esm/is/SwcOtherAnchor.js.map +2 -2
  481. package/dist/esm/is/SwcOtherArea.js.map +2 -2
  482. package/dist/esm/is/SwcOtherAudio.js.map +2 -2
  483. package/dist/esm/is/SwcOtherBase.js.map +2 -2
  484. package/dist/esm/is/SwcOtherButton.js.map +2 -2
  485. package/dist/esm/is/SwcOtherCanvas.js.map +2 -2
  486. package/dist/esm/is/SwcOtherData.js.map +2 -2
  487. package/dist/esm/is/SwcOtherDataList.js.map +2 -2
  488. package/dist/esm/is/SwcOtherDetails.js.map +2 -2
  489. package/dist/esm/is/SwcOtherDialog.js.map +2 -2
  490. package/dist/esm/is/SwcOtherDiv.js.map +2 -2
  491. package/dist/esm/is/SwcOtherDl.js.map +2 -2
  492. package/dist/esm/is/SwcOtherEmbed.js.map +2 -2
  493. package/dist/esm/is/SwcOtherFieldSet.js.map +2 -2
  494. package/dist/esm/is/SwcOtherForm.js.map +2 -2
  495. package/dist/esm/is/SwcOtherHeading.js.map +2 -2
  496. package/dist/esm/is/SwcOtherHr.js.map +2 -2
  497. package/dist/esm/is/SwcOtherIFrame.js.map +2 -2
  498. package/dist/esm/is/SwcOtherImage.js.map +2 -2
  499. package/dist/esm/is/SwcOtherInput.js.map +2 -2
  500. package/dist/esm/is/SwcOtherLabel.js.map +2 -2
  501. package/dist/esm/is/SwcOtherLegend.js.map +2 -2
  502. package/dist/esm/is/SwcOtherLi.js.map +2 -2
  503. package/dist/esm/is/SwcOtherLink.js.map +2 -2
  504. package/dist/esm/is/SwcOtherMap.js.map +2 -2
  505. package/dist/esm/is/SwcOtherMeta.js.map +2 -2
  506. package/dist/esm/is/SwcOtherMeter.js.map +2 -2
  507. package/dist/esm/is/SwcOtherMod.js.map +2 -2
  508. package/dist/esm/is/SwcOtherObject.js.map +2 -2
  509. package/dist/esm/is/SwcOtherOl.js.map +2 -2
  510. package/dist/esm/is/SwcOtherOptGroup.js.map +2 -2
  511. package/dist/esm/is/SwcOtherOption.js.map +2 -2
  512. package/dist/esm/is/SwcOtherOutput.js.map +2 -2
  513. package/dist/esm/is/SwcOtherParagraph.js.map +2 -2
  514. package/dist/esm/is/SwcOtherParam.js.map +2 -2
  515. package/dist/esm/is/SwcOtherPicture.js.map +2 -2
  516. package/dist/esm/is/SwcOtherPre.js.map +2 -2
  517. package/dist/esm/is/SwcOtherProgress.js.map +2 -2
  518. package/dist/esm/is/SwcOtherQuote.js.map +2 -2
  519. package/dist/esm/is/SwcOtherScript.js.map +2 -2
  520. package/dist/esm/is/SwcOtherSelect.js.map +2 -2
  521. package/dist/esm/is/SwcOtherSlot.js.map +2 -2
  522. package/dist/esm/is/SwcOtherSource.js.map +2 -2
  523. package/dist/esm/is/SwcOtherSpan.js.map +2 -2
  524. package/dist/esm/is/SwcOtherStyle.js.map +2 -2
  525. package/dist/esm/is/SwcOtherTable.js.map +2 -2
  526. package/dist/esm/is/SwcOtherTableCell.js.map +2 -2
  527. package/dist/esm/is/SwcOtherTableRow.js.map +2 -2
  528. package/dist/esm/is/SwcOtherTableSection.js.map +2 -2
  529. package/dist/esm/is/SwcOtherTemplate.js.map +2 -2
  530. package/dist/esm/is/SwcOtherTextArea.js.map +2 -2
  531. package/dist/esm/is/SwcOtherTime.js.map +2 -2
  532. package/dist/esm/is/SwcOtherTitle.js.map +2 -2
  533. package/dist/esm/is/SwcOtherTrack.js.map +2 -2
  534. package/dist/esm/is/SwcOtherUl.js.map +2 -2
  535. package/dist/esm/is/SwcOtherVideo.js.map +2 -2
  536. package/dist/esm/is/SwcWhenAnchor.js.map +2 -2
  537. package/dist/esm/is/SwcWhenArea.js.map +2 -2
  538. package/dist/esm/is/SwcWhenAudio.js.map +2 -2
  539. package/dist/esm/is/SwcWhenBase.js.map +2 -2
  540. package/dist/esm/is/SwcWhenButton.js.map +2 -2
  541. package/dist/esm/is/SwcWhenCanvas.js.map +2 -2
  542. package/dist/esm/is/SwcWhenData.js.map +2 -2
  543. package/dist/esm/is/SwcWhenDataList.js.map +2 -2
  544. package/dist/esm/is/SwcWhenDetails.js.map +2 -2
  545. package/dist/esm/is/SwcWhenDialog.js.map +2 -2
  546. package/dist/esm/is/SwcWhenDiv.js.map +2 -2
  547. package/dist/esm/is/SwcWhenDl.js.map +2 -2
  548. package/dist/esm/is/SwcWhenEmbed.js.map +2 -2
  549. package/dist/esm/is/SwcWhenFieldSet.js.map +2 -2
  550. package/dist/esm/is/SwcWhenForm.js.map +2 -2
  551. package/dist/esm/is/SwcWhenHeading.js.map +2 -2
  552. package/dist/esm/is/SwcWhenHr.js.map +2 -2
  553. package/dist/esm/is/SwcWhenIFrame.js.map +2 -2
  554. package/dist/esm/is/SwcWhenImage.js.map +2 -2
  555. package/dist/esm/is/SwcWhenInput.js.map +2 -2
  556. package/dist/esm/is/SwcWhenLabel.js.map +2 -2
  557. package/dist/esm/is/SwcWhenLegend.js.map +2 -2
  558. package/dist/esm/is/SwcWhenLi.js.map +2 -2
  559. package/dist/esm/is/SwcWhenLink.js.map +2 -2
  560. package/dist/esm/is/SwcWhenMap.js.map +2 -2
  561. package/dist/esm/is/SwcWhenMeta.js.map +2 -2
  562. package/dist/esm/is/SwcWhenMeter.js.map +2 -2
  563. package/dist/esm/is/SwcWhenMod.js.map +2 -2
  564. package/dist/esm/is/SwcWhenObject.js.map +2 -2
  565. package/dist/esm/is/SwcWhenOl.js.map +2 -2
  566. package/dist/esm/is/SwcWhenOptGroup.js.map +2 -2
  567. package/dist/esm/is/SwcWhenOption.js.map +2 -2
  568. package/dist/esm/is/SwcWhenOutput.js.map +2 -2
  569. package/dist/esm/is/SwcWhenParagraph.js.map +2 -2
  570. package/dist/esm/is/SwcWhenParam.js.map +2 -2
  571. package/dist/esm/is/SwcWhenPicture.js.map +2 -2
  572. package/dist/esm/is/SwcWhenPre.js.map +2 -2
  573. package/dist/esm/is/SwcWhenProgress.js.map +2 -2
  574. package/dist/esm/is/SwcWhenQuote.js.map +2 -2
  575. package/dist/esm/is/SwcWhenScript.js.map +2 -2
  576. package/dist/esm/is/SwcWhenSelect.js.map +2 -2
  577. package/dist/esm/is/SwcWhenSlot.js.map +2 -2
  578. package/dist/esm/is/SwcWhenSource.js.map +2 -2
  579. package/dist/esm/is/SwcWhenSpan.js.map +2 -2
  580. package/dist/esm/is/SwcWhenStyle.js.map +2 -2
  581. package/dist/esm/is/SwcWhenTable.js.map +2 -2
  582. package/dist/esm/is/SwcWhenTableCell.js.map +2 -2
  583. package/dist/esm/is/SwcWhenTableRow.js.map +2 -2
  584. package/dist/esm/is/SwcWhenTableSection.js.map +2 -2
  585. package/dist/esm/is/SwcWhenTemplate.js.map +2 -2
  586. package/dist/esm/is/SwcWhenTextArea.js.map +2 -2
  587. package/dist/esm/is/SwcWhenTime.js.map +2 -2
  588. package/dist/esm/is/SwcWhenTitle.js.map +2 -2
  589. package/dist/esm/is/SwcWhenTrack.js.map +2 -2
  590. package/dist/esm/is/SwcWhenUl.js.map +2 -2
  591. package/dist/esm/is/SwcWhenVideo.js.map +2 -2
  592. package/dist/esm/utils/Utils.js +49 -17
  593. package/dist/esm/utils/Utils.js.map +2 -2
  594. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +533 -249
  595. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
  596. package/dist/types/decorators/addEventListener.d.ts +7 -3
  597. package/dist/types/decorators/addEventListener.d.ts.map +1 -1
  598. package/dist/types/decorators/attribute.d.ts +13 -0
  599. package/dist/types/decorators/attribute.d.ts.map +1 -0
  600. package/dist/types/decorators/elementDefine.d.ts +2 -0
  601. package/dist/types/decorators/elementDefine.d.ts.map +1 -1
  602. package/dist/types/decorators/emitCustomEvent.d.ts +15 -0
  603. package/dist/types/decorators/emitCustomEvent.d.ts.map +1 -0
  604. package/dist/types/decorators/lifecycles.d.ts +7 -1
  605. package/dist/types/decorators/lifecycles.d.ts.map +1 -1
  606. package/dist/types/decorators/state.d.ts +12 -0
  607. package/dist/types/decorators/state.d.ts.map +1 -0
  608. package/dist/types/index.d.ts +3 -1
  609. package/dist/types/index.d.ts.map +1 -1
  610. package/dist/types/is/SwcChooseAnchor.d.ts.map +1 -1
  611. package/dist/types/is/SwcChooseArea.d.ts.map +1 -1
  612. package/dist/types/is/SwcChooseAudio.d.ts.map +1 -1
  613. package/dist/types/is/SwcChooseBase.d.ts.map +1 -1
  614. package/dist/types/is/SwcChooseButton.d.ts.map +1 -1
  615. package/dist/types/is/SwcChooseCanvas.d.ts.map +1 -1
  616. package/dist/types/is/SwcChooseData.d.ts.map +1 -1
  617. package/dist/types/is/SwcChooseDataList.d.ts.map +1 -1
  618. package/dist/types/is/SwcChooseDetails.d.ts.map +1 -1
  619. package/dist/types/is/SwcChooseDialog.d.ts.map +1 -1
  620. package/dist/types/is/SwcChooseDiv.d.ts.map +1 -1
  621. package/dist/types/is/SwcChooseDl.d.ts.map +1 -1
  622. package/dist/types/is/SwcChooseEmbed.d.ts.map +1 -1
  623. package/dist/types/is/SwcChooseFieldSet.d.ts.map +1 -1
  624. package/dist/types/is/SwcChooseForm.d.ts.map +1 -1
  625. package/dist/types/is/SwcChooseHeading.d.ts.map +1 -1
  626. package/dist/types/is/SwcChooseHr.d.ts.map +1 -1
  627. package/dist/types/is/SwcChooseIFrame.d.ts.map +1 -1
  628. package/dist/types/is/SwcChooseImage.d.ts.map +1 -1
  629. package/dist/types/is/SwcChooseInput.d.ts.map +1 -1
  630. package/dist/types/is/SwcChooseLabel.d.ts.map +1 -1
  631. package/dist/types/is/SwcChooseLegend.d.ts.map +1 -1
  632. package/dist/types/is/SwcChooseLi.d.ts.map +1 -1
  633. package/dist/types/is/SwcChooseLink.d.ts.map +1 -1
  634. package/dist/types/is/SwcChooseMap.d.ts.map +1 -1
  635. package/dist/types/is/SwcChooseMeta.d.ts.map +1 -1
  636. package/dist/types/is/SwcChooseMeter.d.ts.map +1 -1
  637. package/dist/types/is/SwcChooseMod.d.ts.map +1 -1
  638. package/dist/types/is/SwcChooseObject.d.ts.map +1 -1
  639. package/dist/types/is/SwcChooseOl.d.ts.map +1 -1
  640. package/dist/types/is/SwcChooseOptGroup.d.ts.map +1 -1
  641. package/dist/types/is/SwcChooseOption.d.ts.map +1 -1
  642. package/dist/types/is/SwcChooseOutput.d.ts.map +1 -1
  643. package/dist/types/is/SwcChooseParagraph.d.ts.map +1 -1
  644. package/dist/types/is/SwcChooseParam.d.ts.map +1 -1
  645. package/dist/types/is/SwcChoosePicture.d.ts.map +1 -1
  646. package/dist/types/is/SwcChoosePre.d.ts.map +1 -1
  647. package/dist/types/is/SwcChooseProgress.d.ts.map +1 -1
  648. package/dist/types/is/SwcChooseQuote.d.ts.map +1 -1
  649. package/dist/types/is/SwcChooseScript.d.ts.map +1 -1
  650. package/dist/types/is/SwcChooseSelect.d.ts.map +1 -1
  651. package/dist/types/is/SwcChooseSlot.d.ts.map +1 -1
  652. package/dist/types/is/SwcChooseSource.d.ts.map +1 -1
  653. package/dist/types/is/SwcChooseSpan.d.ts.map +1 -1
  654. package/dist/types/is/SwcChooseStyle.d.ts.map +1 -1
  655. package/dist/types/is/SwcChooseTable.d.ts.map +1 -1
  656. package/dist/types/is/SwcChooseTableCell.d.ts.map +1 -1
  657. package/dist/types/is/SwcChooseTableRow.d.ts.map +1 -1
  658. package/dist/types/is/SwcChooseTableSection.d.ts.map +1 -1
  659. package/dist/types/is/SwcChooseTemplate.d.ts.map +1 -1
  660. package/dist/types/is/SwcChooseTextArea.d.ts.map +1 -1
  661. package/dist/types/is/SwcChooseTime.d.ts.map +1 -1
  662. package/dist/types/is/SwcChooseTitle.d.ts.map +1 -1
  663. package/dist/types/is/SwcChooseTrack.d.ts.map +1 -1
  664. package/dist/types/is/SwcChooseUl.d.ts.map +1 -1
  665. package/dist/types/is/SwcChooseVideo.d.ts.map +1 -1
  666. package/dist/types/is/SwcIfAnchor.d.ts.map +1 -1
  667. package/dist/types/is/SwcIfArea.d.ts.map +1 -1
  668. package/dist/types/is/SwcIfAudio.d.ts.map +1 -1
  669. package/dist/types/is/SwcIfBase.d.ts.map +1 -1
  670. package/dist/types/is/SwcIfButton.d.ts.map +1 -1
  671. package/dist/types/is/SwcIfCanvas.d.ts.map +1 -1
  672. package/dist/types/is/SwcIfData.d.ts.map +1 -1
  673. package/dist/types/is/SwcIfDataList.d.ts.map +1 -1
  674. package/dist/types/is/SwcIfDetails.d.ts.map +1 -1
  675. package/dist/types/is/SwcIfDialog.d.ts.map +1 -1
  676. package/dist/types/is/SwcIfDiv.d.ts.map +1 -1
  677. package/dist/types/is/SwcIfDl.d.ts.map +1 -1
  678. package/dist/types/is/SwcIfEmbed.d.ts.map +1 -1
  679. package/dist/types/is/SwcIfFieldSet.d.ts.map +1 -1
  680. package/dist/types/is/SwcIfForm.d.ts.map +1 -1
  681. package/dist/types/is/SwcIfHeading.d.ts.map +1 -1
  682. package/dist/types/is/SwcIfHr.d.ts.map +1 -1
  683. package/dist/types/is/SwcIfIFrame.d.ts.map +1 -1
  684. package/dist/types/is/SwcIfImage.d.ts.map +1 -1
  685. package/dist/types/is/SwcIfInput.d.ts.map +1 -1
  686. package/dist/types/is/SwcIfLabel.d.ts.map +1 -1
  687. package/dist/types/is/SwcIfLegend.d.ts.map +1 -1
  688. package/dist/types/is/SwcIfLi.d.ts.map +1 -1
  689. package/dist/types/is/SwcIfLink.d.ts.map +1 -1
  690. package/dist/types/is/SwcIfMap.d.ts.map +1 -1
  691. package/dist/types/is/SwcIfMeta.d.ts.map +1 -1
  692. package/dist/types/is/SwcIfMeter.d.ts.map +1 -1
  693. package/dist/types/is/SwcIfMod.d.ts.map +1 -1
  694. package/dist/types/is/SwcIfObject.d.ts.map +1 -1
  695. package/dist/types/is/SwcIfOl.d.ts.map +1 -1
  696. package/dist/types/is/SwcIfOptGroup.d.ts.map +1 -1
  697. package/dist/types/is/SwcIfOption.d.ts.map +1 -1
  698. package/dist/types/is/SwcIfOutput.d.ts.map +1 -1
  699. package/dist/types/is/SwcIfParagraph.d.ts.map +1 -1
  700. package/dist/types/is/SwcIfParam.d.ts.map +1 -1
  701. package/dist/types/is/SwcIfPicture.d.ts.map +1 -1
  702. package/dist/types/is/SwcIfPre.d.ts.map +1 -1
  703. package/dist/types/is/SwcIfProgress.d.ts.map +1 -1
  704. package/dist/types/is/SwcIfQuote.d.ts.map +1 -1
  705. package/dist/types/is/SwcIfScript.d.ts.map +1 -1
  706. package/dist/types/is/SwcIfSelect.d.ts.map +1 -1
  707. package/dist/types/is/SwcIfSlot.d.ts.map +1 -1
  708. package/dist/types/is/SwcIfSource.d.ts.map +1 -1
  709. package/dist/types/is/SwcIfSpan.d.ts.map +1 -1
  710. package/dist/types/is/SwcIfStyle.d.ts.map +1 -1
  711. package/dist/types/is/SwcIfTable.d.ts.map +1 -1
  712. package/dist/types/is/SwcIfTableCell.d.ts.map +1 -1
  713. package/dist/types/is/SwcIfTableRow.d.ts.map +1 -1
  714. package/dist/types/is/SwcIfTableSection.d.ts.map +1 -1
  715. package/dist/types/is/SwcIfTemplate.d.ts.map +1 -1
  716. package/dist/types/is/SwcIfTextArea.d.ts.map +1 -1
  717. package/dist/types/is/SwcIfTime.d.ts.map +1 -1
  718. package/dist/types/is/SwcIfTitle.d.ts.map +1 -1
  719. package/dist/types/is/SwcIfTrack.d.ts.map +1 -1
  720. package/dist/types/is/SwcIfUl.d.ts.map +1 -1
  721. package/dist/types/is/SwcIfVideo.d.ts.map +1 -1
  722. package/dist/types/is/SwcWhenAnchor.d.ts.map +1 -1
  723. package/dist/types/is/SwcWhenArea.d.ts.map +1 -1
  724. package/dist/types/is/SwcWhenAudio.d.ts.map +1 -1
  725. package/dist/types/is/SwcWhenBase.d.ts.map +1 -1
  726. package/dist/types/is/SwcWhenButton.d.ts.map +1 -1
  727. package/dist/types/is/SwcWhenCanvas.d.ts.map +1 -1
  728. package/dist/types/is/SwcWhenData.d.ts.map +1 -1
  729. package/dist/types/is/SwcWhenDataList.d.ts.map +1 -1
  730. package/dist/types/is/SwcWhenDetails.d.ts.map +1 -1
  731. package/dist/types/is/SwcWhenDialog.d.ts.map +1 -1
  732. package/dist/types/is/SwcWhenDiv.d.ts.map +1 -1
  733. package/dist/types/is/SwcWhenDl.d.ts.map +1 -1
  734. package/dist/types/is/SwcWhenEmbed.d.ts.map +1 -1
  735. package/dist/types/is/SwcWhenFieldSet.d.ts.map +1 -1
  736. package/dist/types/is/SwcWhenForm.d.ts.map +1 -1
  737. package/dist/types/is/SwcWhenHeading.d.ts.map +1 -1
  738. package/dist/types/is/SwcWhenHr.d.ts.map +1 -1
  739. package/dist/types/is/SwcWhenIFrame.d.ts.map +1 -1
  740. package/dist/types/is/SwcWhenImage.d.ts.map +1 -1
  741. package/dist/types/is/SwcWhenInput.d.ts.map +1 -1
  742. package/dist/types/is/SwcWhenLabel.d.ts.map +1 -1
  743. package/dist/types/is/SwcWhenLegend.d.ts.map +1 -1
  744. package/dist/types/is/SwcWhenLi.d.ts.map +1 -1
  745. package/dist/types/is/SwcWhenLink.d.ts.map +1 -1
  746. package/dist/types/is/SwcWhenMap.d.ts.map +1 -1
  747. package/dist/types/is/SwcWhenMeta.d.ts.map +1 -1
  748. package/dist/types/is/SwcWhenMeter.d.ts.map +1 -1
  749. package/dist/types/is/SwcWhenMod.d.ts.map +1 -1
  750. package/dist/types/is/SwcWhenObject.d.ts.map +1 -1
  751. package/dist/types/is/SwcWhenOl.d.ts.map +1 -1
  752. package/dist/types/is/SwcWhenOptGroup.d.ts.map +1 -1
  753. package/dist/types/is/SwcWhenOption.d.ts.map +1 -1
  754. package/dist/types/is/SwcWhenOutput.d.ts.map +1 -1
  755. package/dist/types/is/SwcWhenParagraph.d.ts.map +1 -1
  756. package/dist/types/is/SwcWhenParam.d.ts.map +1 -1
  757. package/dist/types/is/SwcWhenPicture.d.ts.map +1 -1
  758. package/dist/types/is/SwcWhenPre.d.ts.map +1 -1
  759. package/dist/types/is/SwcWhenProgress.d.ts.map +1 -1
  760. package/dist/types/is/SwcWhenQuote.d.ts.map +1 -1
  761. package/dist/types/is/SwcWhenScript.d.ts.map +1 -1
  762. package/dist/types/is/SwcWhenSelect.d.ts.map +1 -1
  763. package/dist/types/is/SwcWhenSlot.d.ts.map +1 -1
  764. package/dist/types/is/SwcWhenSource.d.ts.map +1 -1
  765. package/dist/types/is/SwcWhenSpan.d.ts.map +1 -1
  766. package/dist/types/is/SwcWhenStyle.d.ts.map +1 -1
  767. package/dist/types/is/SwcWhenTable.d.ts.map +1 -1
  768. package/dist/types/is/SwcWhenTableCell.d.ts.map +1 -1
  769. package/dist/types/is/SwcWhenTableRow.d.ts.map +1 -1
  770. package/dist/types/is/SwcWhenTableSection.d.ts.map +1 -1
  771. package/dist/types/is/SwcWhenTemplate.d.ts.map +1 -1
  772. package/dist/types/is/SwcWhenTextArea.d.ts.map +1 -1
  773. package/dist/types/is/SwcWhenTime.d.ts.map +1 -1
  774. package/dist/types/is/SwcWhenTitle.d.ts.map +1 -1
  775. package/dist/types/is/SwcWhenTrack.d.ts.map +1 -1
  776. package/dist/types/is/SwcWhenUl.d.ts.map +1 -1
  777. package/dist/types/is/SwcWhenVideo.d.ts.map +1 -1
  778. package/dist/types/utils/Utils.d.ts.map +1 -1
  779. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +533 -249
  780. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
  781. package/package.json +1 -1
  782. package/src/decorators/addEventListener.ts +10 -4
  783. package/src/decorators/attribute.ts +77 -0
  784. package/src/decorators/elementDefine.ts +222 -131
  785. package/src/decorators/emitCustomEvent.ts +57 -0
  786. package/src/decorators/lifecycles.ts +44 -4
  787. package/src/decorators/state.ts +44 -0
  788. package/src/index.ts +3 -1
  789. package/src/is/SwcChooseAnchor.ts +0 -1
  790. package/src/is/SwcChooseArea.ts +0 -1
  791. package/src/is/SwcChooseAudio.ts +0 -1
  792. package/src/is/SwcChooseBase.ts +0 -1
  793. package/src/is/SwcChooseButton.ts +0 -1
  794. package/src/is/SwcChooseCanvas.ts +0 -1
  795. package/src/is/SwcChooseData.ts +0 -1
  796. package/src/is/SwcChooseDataList.ts +0 -1
  797. package/src/is/SwcChooseDetails.ts +0 -1
  798. package/src/is/SwcChooseDialog.ts +0 -1
  799. package/src/is/SwcChooseDiv.ts +0 -1
  800. package/src/is/SwcChooseDl.ts +0 -1
  801. package/src/is/SwcChooseEmbed.ts +0 -1
  802. package/src/is/SwcChooseFieldSet.ts +0 -1
  803. package/src/is/SwcChooseForm.ts +0 -1
  804. package/src/is/SwcChooseHeading.ts +0 -1
  805. package/src/is/SwcChooseHr.ts +0 -1
  806. package/src/is/SwcChooseIFrame.ts +0 -1
  807. package/src/is/SwcChooseImage.ts +0 -1
  808. package/src/is/SwcChooseInput.ts +0 -1
  809. package/src/is/SwcChooseLabel.ts +0 -1
  810. package/src/is/SwcChooseLegend.ts +0 -1
  811. package/src/is/SwcChooseLi.ts +0 -1
  812. package/src/is/SwcChooseLink.ts +0 -1
  813. package/src/is/SwcChooseMap.ts +0 -1
  814. package/src/is/SwcChooseMeta.ts +0 -1
  815. package/src/is/SwcChooseMeter.ts +0 -1
  816. package/src/is/SwcChooseMod.ts +0 -1
  817. package/src/is/SwcChooseObject.ts +0 -1
  818. package/src/is/SwcChooseOl.ts +0 -1
  819. package/src/is/SwcChooseOptGroup.ts +0 -1
  820. package/src/is/SwcChooseOption.ts +0 -1
  821. package/src/is/SwcChooseOutput.ts +0 -1
  822. package/src/is/SwcChooseParagraph.ts +0 -1
  823. package/src/is/SwcChooseParam.ts +0 -1
  824. package/src/is/SwcChoosePicture.ts +0 -1
  825. package/src/is/SwcChoosePre.ts +0 -1
  826. package/src/is/SwcChooseProgress.ts +0 -1
  827. package/src/is/SwcChooseQuote.ts +0 -1
  828. package/src/is/SwcChooseScript.ts +0 -1
  829. package/src/is/SwcChooseSelect.ts +0 -1
  830. package/src/is/SwcChooseSlot.ts +0 -1
  831. package/src/is/SwcChooseSource.ts +0 -1
  832. package/src/is/SwcChooseSpan.ts +0 -1
  833. package/src/is/SwcChooseStyle.ts +0 -1
  834. package/src/is/SwcChooseTable.ts +0 -1
  835. package/src/is/SwcChooseTableCell.ts +0 -1
  836. package/src/is/SwcChooseTableRow.ts +0 -1
  837. package/src/is/SwcChooseTableSection.ts +0 -1
  838. package/src/is/SwcChooseTemplate.ts +0 -1
  839. package/src/is/SwcChooseTextArea.ts +0 -1
  840. package/src/is/SwcChooseTime.ts +0 -1
  841. package/src/is/SwcChooseTitle.ts +0 -1
  842. package/src/is/SwcChooseTrack.ts +0 -1
  843. package/src/is/SwcChooseUl.ts +0 -1
  844. package/src/is/SwcChooseVideo.ts +0 -1
  845. package/src/is/SwcIfAnchor.ts +1 -2
  846. package/src/is/SwcIfArea.ts +1 -2
  847. package/src/is/SwcIfAudio.ts +1 -2
  848. package/src/is/SwcIfBase.ts +1 -2
  849. package/src/is/SwcIfButton.ts +1 -2
  850. package/src/is/SwcIfCanvas.ts +1 -2
  851. package/src/is/SwcIfData.ts +1 -2
  852. package/src/is/SwcIfDataList.ts +1 -2
  853. package/src/is/SwcIfDetails.ts +1 -2
  854. package/src/is/SwcIfDialog.ts +1 -2
  855. package/src/is/SwcIfDiv.ts +1 -2
  856. package/src/is/SwcIfDl.ts +1 -2
  857. package/src/is/SwcIfEmbed.ts +1 -2
  858. package/src/is/SwcIfFieldSet.ts +1 -2
  859. package/src/is/SwcIfForm.ts +1 -2
  860. package/src/is/SwcIfHeading.ts +1 -2
  861. package/src/is/SwcIfHr.ts +1 -2
  862. package/src/is/SwcIfIFrame.ts +1 -2
  863. package/src/is/SwcIfImage.ts +1 -2
  864. package/src/is/SwcIfInput.ts +1 -2
  865. package/src/is/SwcIfLabel.ts +1 -2
  866. package/src/is/SwcIfLegend.ts +1 -2
  867. package/src/is/SwcIfLi.ts +1 -2
  868. package/src/is/SwcIfLink.ts +1 -2
  869. package/src/is/SwcIfMap.ts +1 -2
  870. package/src/is/SwcIfMeta.ts +1 -2
  871. package/src/is/SwcIfMeter.ts +1 -2
  872. package/src/is/SwcIfMod.ts +1 -2
  873. package/src/is/SwcIfObject.ts +1 -2
  874. package/src/is/SwcIfOl.ts +1 -2
  875. package/src/is/SwcIfOptGroup.ts +1 -2
  876. package/src/is/SwcIfOption.ts +1 -2
  877. package/src/is/SwcIfOutput.ts +1 -2
  878. package/src/is/SwcIfParagraph.ts +1 -2
  879. package/src/is/SwcIfParam.ts +1 -2
  880. package/src/is/SwcIfPicture.ts +1 -2
  881. package/src/is/SwcIfPre.ts +1 -2
  882. package/src/is/SwcIfProgress.ts +1 -2
  883. package/src/is/SwcIfQuote.ts +1 -2
  884. package/src/is/SwcIfScript.ts +1 -2
  885. package/src/is/SwcIfSelect.ts +1 -2
  886. package/src/is/SwcIfSlot.ts +1 -2
  887. package/src/is/SwcIfSource.ts +1 -2
  888. package/src/is/SwcIfSpan.ts +1 -2
  889. package/src/is/SwcIfStyle.ts +1 -2
  890. package/src/is/SwcIfTable.ts +1 -2
  891. package/src/is/SwcIfTableCell.ts +1 -2
  892. package/src/is/SwcIfTableRow.ts +1 -2
  893. package/src/is/SwcIfTableSection.ts +1 -2
  894. package/src/is/SwcIfTemplate.ts +1 -2
  895. package/src/is/SwcIfTextArea.ts +1 -2
  896. package/src/is/SwcIfTime.ts +1 -2
  897. package/src/is/SwcIfTitle.ts +1 -2
  898. package/src/is/SwcIfTrack.ts +1 -2
  899. package/src/is/SwcIfUl.ts +1 -2
  900. package/src/is/SwcIfVideo.ts +1 -2
  901. package/src/is/SwcOtherAnchor.ts +1 -1
  902. package/src/is/SwcOtherArea.ts +1 -1
  903. package/src/is/SwcOtherAudio.ts +1 -1
  904. package/src/is/SwcOtherBase.ts +1 -1
  905. package/src/is/SwcOtherButton.ts +1 -1
  906. package/src/is/SwcOtherCanvas.ts +1 -1
  907. package/src/is/SwcOtherData.ts +1 -1
  908. package/src/is/SwcOtherDataList.ts +1 -1
  909. package/src/is/SwcOtherDetails.ts +1 -1
  910. package/src/is/SwcOtherDialog.ts +1 -1
  911. package/src/is/SwcOtherDiv.ts +1 -1
  912. package/src/is/SwcOtherDl.ts +1 -1
  913. package/src/is/SwcOtherEmbed.ts +1 -1
  914. package/src/is/SwcOtherFieldSet.ts +1 -1
  915. package/src/is/SwcOtherForm.ts +1 -1
  916. package/src/is/SwcOtherHeading.ts +1 -1
  917. package/src/is/SwcOtherHr.ts +1 -1
  918. package/src/is/SwcOtherIFrame.ts +1 -1
  919. package/src/is/SwcOtherImage.ts +1 -1
  920. package/src/is/SwcOtherInput.ts +1 -1
  921. package/src/is/SwcOtherLabel.ts +1 -1
  922. package/src/is/SwcOtherLegend.ts +1 -1
  923. package/src/is/SwcOtherLi.ts +1 -1
  924. package/src/is/SwcOtherLink.ts +1 -1
  925. package/src/is/SwcOtherMap.ts +1 -1
  926. package/src/is/SwcOtherMeta.ts +1 -1
  927. package/src/is/SwcOtherMeter.ts +1 -1
  928. package/src/is/SwcOtherMod.ts +1 -1
  929. package/src/is/SwcOtherObject.ts +1 -1
  930. package/src/is/SwcOtherOl.ts +1 -1
  931. package/src/is/SwcOtherOptGroup.ts +1 -1
  932. package/src/is/SwcOtherOption.ts +1 -1
  933. package/src/is/SwcOtherOutput.ts +1 -1
  934. package/src/is/SwcOtherParagraph.ts +1 -1
  935. package/src/is/SwcOtherParam.ts +1 -1
  936. package/src/is/SwcOtherPicture.ts +1 -1
  937. package/src/is/SwcOtherPre.ts +1 -1
  938. package/src/is/SwcOtherProgress.ts +1 -1
  939. package/src/is/SwcOtherQuote.ts +1 -1
  940. package/src/is/SwcOtherScript.ts +1 -1
  941. package/src/is/SwcOtherSelect.ts +1 -1
  942. package/src/is/SwcOtherSlot.ts +1 -1
  943. package/src/is/SwcOtherSource.ts +1 -1
  944. package/src/is/SwcOtherSpan.ts +1 -1
  945. package/src/is/SwcOtherStyle.ts +1 -1
  946. package/src/is/SwcOtherTable.ts +1 -1
  947. package/src/is/SwcOtherTableCell.ts +1 -1
  948. package/src/is/SwcOtherTableRow.ts +1 -1
  949. package/src/is/SwcOtherTableSection.ts +1 -1
  950. package/src/is/SwcOtherTemplate.ts +1 -1
  951. package/src/is/SwcOtherTextArea.ts +1 -1
  952. package/src/is/SwcOtherTime.ts +1 -1
  953. package/src/is/SwcOtherTitle.ts +1 -1
  954. package/src/is/SwcOtherTrack.ts +1 -1
  955. package/src/is/SwcOtherUl.ts +1 -1
  956. package/src/is/SwcOtherVideo.ts +1 -1
  957. package/src/is/SwcWhenAnchor.ts +1 -3
  958. package/src/is/SwcWhenArea.ts +1 -3
  959. package/src/is/SwcWhenAudio.ts +1 -3
  960. package/src/is/SwcWhenBase.ts +1 -3
  961. package/src/is/SwcWhenButton.ts +1 -3
  962. package/src/is/SwcWhenCanvas.ts +1 -3
  963. package/src/is/SwcWhenData.ts +1 -3
  964. package/src/is/SwcWhenDataList.ts +1 -3
  965. package/src/is/SwcWhenDetails.ts +1 -3
  966. package/src/is/SwcWhenDialog.ts +1 -3
  967. package/src/is/SwcWhenDiv.ts +1 -3
  968. package/src/is/SwcWhenDl.ts +1 -3
  969. package/src/is/SwcWhenEmbed.ts +1 -3
  970. package/src/is/SwcWhenFieldSet.ts +1 -3
  971. package/src/is/SwcWhenForm.ts +1 -3
  972. package/src/is/SwcWhenHeading.ts +1 -3
  973. package/src/is/SwcWhenHr.ts +1 -3
  974. package/src/is/SwcWhenIFrame.ts +1 -3
  975. package/src/is/SwcWhenImage.ts +1 -3
  976. package/src/is/SwcWhenInput.ts +1 -3
  977. package/src/is/SwcWhenLabel.ts +1 -3
  978. package/src/is/SwcWhenLegend.ts +1 -3
  979. package/src/is/SwcWhenLi.ts +1 -3
  980. package/src/is/SwcWhenLink.ts +1 -3
  981. package/src/is/SwcWhenMap.ts +1 -3
  982. package/src/is/SwcWhenMeta.ts +1 -3
  983. package/src/is/SwcWhenMeter.ts +1 -3
  984. package/src/is/SwcWhenMod.ts +1 -3
  985. package/src/is/SwcWhenObject.ts +1 -3
  986. package/src/is/SwcWhenOl.ts +1 -3
  987. package/src/is/SwcWhenOptGroup.ts +1 -3
  988. package/src/is/SwcWhenOption.ts +1 -3
  989. package/src/is/SwcWhenOutput.ts +1 -3
  990. package/src/is/SwcWhenParagraph.ts +1 -3
  991. package/src/is/SwcWhenParam.ts +1 -3
  992. package/src/is/SwcWhenPicture.ts +1 -3
  993. package/src/is/SwcWhenPre.ts +1 -3
  994. package/src/is/SwcWhenProgress.ts +1 -3
  995. package/src/is/SwcWhenQuote.ts +1 -3
  996. package/src/is/SwcWhenScript.ts +1 -3
  997. package/src/is/SwcWhenSelect.ts +1 -3
  998. package/src/is/SwcWhenSlot.ts +1 -3
  999. package/src/is/SwcWhenSource.ts +1 -3
  1000. package/src/is/SwcWhenSpan.ts +1 -3
  1001. package/src/is/SwcWhenStyle.ts +1 -3
  1002. package/src/is/SwcWhenTable.ts +1 -3
  1003. package/src/is/SwcWhenTableCell.ts +1 -3
  1004. package/src/is/SwcWhenTableRow.ts +1 -3
  1005. package/src/is/SwcWhenTableSection.ts +1 -3
  1006. package/src/is/SwcWhenTemplate.ts +1 -3
  1007. package/src/is/SwcWhenTextArea.ts +1 -3
  1008. package/src/is/SwcWhenTime.ts +1 -3
  1009. package/src/is/SwcWhenTitle.ts +1 -3
  1010. package/src/is/SwcWhenTrack.ts +1 -3
  1011. package/src/is/SwcWhenUl.ts +1 -3
  1012. package/src/is/SwcWhenVideo.ts +1 -3
  1013. package/src/utils/Utils.ts +65 -22
  1014. package/dist/cjs/decorators/attributeChanged.js +0 -62
  1015. package/dist/cjs/decorators/attributeChanged.js.map +0 -7
  1016. package/dist/esm/decorators/attributeChanged.js +0 -43
  1017. package/dist/esm/decorators/attributeChanged.js.map +0 -7
  1018. package/dist/types/decorators/attributeChanged.d.ts +0 -6
  1019. package/dist/types/decorators/attributeChanged.d.ts.map +0 -1
  1020. package/src/decorators/attributeChanged.ts +0 -43
@@ -1167,43 +1167,6 @@ var ReflectUtils;
1167
1167
  };
1168
1168
  })(ReflectUtils || (ReflectUtils = {}));
1169
1169
 
1170
- // src/decorators/attributeChanged.ts
1171
- var ATTRIBUTE_CHANGED_METADATA_KEY = Symbol("simple-web-component:attribute-changed");
1172
- var ATTRIBUTE_CHANGED_WILDCARD = "*";
1173
- function attributeChanged(arg1, arg2, arg3) {
1174
- const decorator = (attributeName, target, propertyKey) => {
1175
- const constructor = target.constructor;
1176
- let meta = ReflectUtils.getMetadata(ATTRIBUTE_CHANGED_METADATA_KEY, constructor);
1177
- if (!meta) {
1178
- meta = /* @__PURE__ */ new Map();
1179
- ReflectUtils.defineMetadata(ATTRIBUTE_CHANGED_METADATA_KEY, meta, constructor);
1180
- }
1181
- let methods = meta.get(attributeName);
1182
- if (!methods) {
1183
- methods = [];
1184
- meta.set(attributeName, methods);
1185
- }
1186
- if (!methods.includes(propertyKey)) {
1187
- methods.push(propertyKey);
1188
- }
1189
- };
1190
- if (typeof arg1 === "string") {
1191
- return (target, propertyKey) => {
1192
- decorator(arg1, target, propertyKey);
1193
- };
1194
- } else if (Array.isArray(arg1)) {
1195
- return (target, propertyKey) => {
1196
- arg1.forEach((name) => decorator(name, target, propertyKey));
1197
- };
1198
- } else if (arg1 && arg2) {
1199
- decorator(ATTRIBUTE_CHANGED_WILDCARD, arg1, arg2);
1200
- }
1201
- }
1202
- var getAttributeChangedMap = (target) => {
1203
- const constructor = target instanceof Function ? target : target.constructor;
1204
- return ReflectUtils.getMetadata(ATTRIBUTE_CHANGED_METADATA_KEY, constructor);
1205
- };
1206
-
1207
1170
  // src/decorators/innerHtml.ts
1208
1171
  var INNER_HTML_METADATA_KEY = Symbol("simple-web-component:inner-html");
1209
1172
  function innerHtml(arg1, arg2, arg3) {
@@ -1288,9 +1251,10 @@ var getQueryAllMetadata = (target) => {
1288
1251
 
1289
1252
  // src/decorators/addEventListener.ts
1290
1253
  var ADD_EVENT_LISTENER_METADATA_KEY = Symbol("simple-web-component:add-event-listener");
1291
- var addEventListener = (options) => {
1254
+ function addEventListener(arg1, arg2) {
1292
1255
  return (target, propertyKey, descriptor) => {
1293
1256
  const constructor = target.constructor;
1257
+ const options = typeof arg1 === "string" ? { type: arg1, query: arg2 } : arg1;
1294
1258
  let listeners = ReflectUtils.getMetadata(ADD_EVENT_LISTENER_METADATA_KEY, constructor);
1295
1259
  if (!listeners) {
1296
1260
  listeners = [];
@@ -1298,7 +1262,7 @@ var addEventListener = (options) => {
1298
1262
  }
1299
1263
  listeners.push({ options, propertyKey });
1300
1264
  };
1301
- };
1265
+ }
1302
1266
  var getAddEventListenerMetadata = (target) => {
1303
1267
  const constructor = target instanceof Function ? target : target.constructor;
1304
1268
  return ReflectUtils.getMetadata(ADD_EVENT_LISTENER_METADATA_KEY, constructor);
@@ -1311,6 +1275,9 @@ var ON_BEFORE_DISCONNECTED_METADATA_KEY = Symbol("simple-web-component:on-before
1311
1275
  var ON_AFTER_DISCONNECTED_METADATA_KEY = Symbol("simple-web-component:on-after-disconnected");
1312
1276
  var ON_BEFORE_ADOPTED_METADATA_KEY = Symbol("simple-web-component:on-before-adopted");
1313
1277
  var ON_AFTER_ADOPTED_METADATA_KEY = Symbol("simple-web-component:on-after-adopted");
1278
+ var ON_ADD_EVENT_LISTENER_METADATA_KEY = Symbol("simple-web-component:on-add-event-listener");
1279
+ var ON_ATTRIBUTE_CHANGED_METADATA_KEY = Symbol("simple-web-component:on-attribute-changed");
1280
+ var ATTRIBUTE_CHANGED_WILDCARD = "*";
1314
1281
  function createLifecycleDecorator(metadataKey) {
1315
1282
  return (target, propertyKey) => {
1316
1283
  const constructor = target.constructor;
@@ -1331,13 +1298,258 @@ var onDisconnected = onAfterDisconnected;
1331
1298
  var onBeforeAdopted = createLifecycleDecorator(ON_BEFORE_ADOPTED_METADATA_KEY);
1332
1299
  var onAfterAdopted = createLifecycleDecorator(ON_AFTER_ADOPTED_METADATA_KEY);
1333
1300
  var onAdopted = onAfterAdopted;
1301
+ var onAddEventListener = createLifecycleDecorator(ON_ADD_EVENT_LISTENER_METADATA_KEY);
1302
+ function onAttributeChanged(arg1, arg2, arg3) {
1303
+ const decorator = (attributeName, target, propertyKey) => {
1304
+ const constructor = target.constructor;
1305
+ let meta = ReflectUtils.getMetadata(ON_ATTRIBUTE_CHANGED_METADATA_KEY, constructor);
1306
+ if (!meta) {
1307
+ meta = /* @__PURE__ */ new Map();
1308
+ ReflectUtils.defineMetadata(ON_ATTRIBUTE_CHANGED_METADATA_KEY, meta, constructor);
1309
+ }
1310
+ let methods = meta.get(attributeName);
1311
+ if (!methods) {
1312
+ methods = [];
1313
+ meta.set(attributeName, methods);
1314
+ }
1315
+ if (!methods.includes(propertyKey)) {
1316
+ methods.push(propertyKey);
1317
+ }
1318
+ };
1319
+ if (typeof arg1 === "string") {
1320
+ return (target, propertyKey) => {
1321
+ decorator(arg1, target, propertyKey);
1322
+ };
1323
+ } else if (Array.isArray(arg1)) {
1324
+ return (target, propertyKey) => {
1325
+ arg1.forEach((name) => decorator(name, target, propertyKey));
1326
+ };
1327
+ } else if (arg1 && arg2) {
1328
+ decorator(ATTRIBUTE_CHANGED_WILDCARD, arg1, arg2);
1329
+ }
1330
+ }
1334
1331
  var getLifecycleMetadata = (target, metadataKey) => {
1335
1332
  const constructor = target instanceof Function ? target : target.constructor;
1336
1333
  return ReflectUtils.getMetadata(metadataKey, constructor);
1337
1334
  };
1338
1335
 
1336
+ // src/decorators/attribute.ts
1337
+ var ATTRIBUTE_METADATA_KEY = Symbol("simple-web-component:attribute");
1338
+ function attribute(nameOrOptions) {
1339
+ return (target, propertyKey) => {
1340
+ const constructor = target.constructor;
1341
+ const options = typeof nameOrOptions === "string" ? { name: nameOrOptions } : nameOrOptions || {};
1342
+ if (!options.name) options.name = String(propertyKey);
1343
+ if (!options.type) options.type = String;
1344
+ if (options.disableReflect === void 0) options.disableReflect = false;
1345
+ let list = ReflectUtils.getMetadata(ATTRIBUTE_METADATA_KEY, constructor);
1346
+ if (!list) {
1347
+ list = [];
1348
+ ReflectUtils.defineMetadata(ATTRIBUTE_METADATA_KEY, list, constructor);
1349
+ }
1350
+ list.push({ propertyKey, options });
1351
+ const internalKey = Symbol(String(propertyKey));
1352
+ Object.defineProperty(target, propertyKey, {
1353
+ get() {
1354
+ return this[internalKey];
1355
+ },
1356
+ set(val) {
1357
+ const oldVal = this[internalKey];
1358
+ if (oldVal === val) return;
1359
+ let convertedVal = val;
1360
+ if (options.type === Number) convertedVal = Number(val);
1361
+ else if (options.type === Boolean) convertedVal = Boolean(val);
1362
+ else if (options.type === Object && typeof val === "string") {
1363
+ try {
1364
+ convertedVal = JSON.parse(val);
1365
+ } catch (e) {
1366
+ convertedVal = val;
1367
+ }
1368
+ }
1369
+ this[internalKey] = convertedVal;
1370
+ if (!options.disableReflect && this.setAttribute) {
1371
+ if (convertedVal === null || convertedVal === void 0 || convertedVal === false) {
1372
+ this.removeAttribute(options.name);
1373
+ } else {
1374
+ const attrVal = typeof convertedVal === "object" ? JSON.stringify(convertedVal) : String(convertedVal);
1375
+ if (this.getAttribute(options.name) !== attrVal) {
1376
+ this.setAttribute(options.name, attrVal);
1377
+ }
1378
+ }
1379
+ }
1380
+ },
1381
+ enumerable: true,
1382
+ configurable: true
1383
+ });
1384
+ };
1385
+ }
1386
+ var getAttributeMetadataList = (target) => {
1387
+ const constructor = target instanceof Function ? target : target.constructor;
1388
+ return ReflectUtils.getMetadata(ATTRIBUTE_METADATA_KEY, constructor);
1389
+ };
1390
+
1391
+ // src/decorators/state.ts
1392
+ var STATE_METADATA_KEY = Symbol("simple-web-component:state");
1393
+ function state(arg1, arg2) {
1394
+ const decorator = (options, target, propertyKey) => {
1395
+ const constructor = target.constructor;
1396
+ if (!options.name) options.name = String(propertyKey);
1397
+ let list = ReflectUtils.getMetadata(STATE_METADATA_KEY, constructor);
1398
+ if (!list) {
1399
+ list = [];
1400
+ ReflectUtils.defineMetadata(STATE_METADATA_KEY, list, constructor);
1401
+ }
1402
+ list.push({ propertyKey, options });
1403
+ };
1404
+ if (arg2) {
1405
+ return decorator({}, arg1, arg2);
1406
+ }
1407
+ return (target, propertyKey) => {
1408
+ const options = typeof arg1 === "string" ? { name: arg1 } : arg1 || {};
1409
+ decorator(options, target, propertyKey);
1410
+ };
1411
+ }
1412
+ var getStateMetadataList = (target) => {
1413
+ const constructor = target instanceof Function ? target : target.constructor;
1414
+ return ReflectUtils.getMetadata(STATE_METADATA_KEY, constructor);
1415
+ };
1416
+
1417
+ // src/decorators/emitCustomEvent.ts
1418
+ var EMIT_CUSTOM_EVENT_METADATA_KEY = Symbol("simple-web-component:emit-custom-event");
1419
+ function emitCustomEvent(typeOrOptions) {
1420
+ return (target, propertyKey, descriptor) => {
1421
+ const constructor = target.constructor;
1422
+ const options = typeof typeOrOptions === "string" ? { type: typeOrOptions } : typeOrOptions;
1423
+ if (!options.attributeName) {
1424
+ options.attributeName = `on${options.type}`;
1425
+ }
1426
+ if (options.bubbles === void 0) options.bubbles = true;
1427
+ if (options.composed === void 0) options.composed = true;
1428
+ let list = ReflectUtils.getMetadata(EMIT_CUSTOM_EVENT_METADATA_KEY, constructor);
1429
+ if (!list) {
1430
+ list = [];
1431
+ ReflectUtils.defineMetadata(EMIT_CUSTOM_EVENT_METADATA_KEY, list, constructor);
1432
+ }
1433
+ list.push({ propertyKey, options });
1434
+ const originalMethod = descriptor.value;
1435
+ descriptor.value = function(...args) {
1436
+ const detail = originalMethod.apply(this, args);
1437
+ const event = new CustomEvent(options.type, {
1438
+ detail,
1439
+ bubbles: options.bubbles,
1440
+ composed: options.composed,
1441
+ cancelable: options.cancelable
1442
+ });
1443
+ this.dispatchEvent(event);
1444
+ return detail;
1445
+ };
1446
+ };
1447
+ }
1448
+ var getEmitCustomEventMetadataList = (target) => {
1449
+ const constructor = target instanceof Function ? target : target.constructor;
1450
+ return ReflectUtils.getMetadata(EMIT_CUSTOM_EVENT_METADATA_KEY, constructor);
1451
+ };
1452
+
1453
+ // src/utils/Utils.ts
1454
+ var SwcUtils = class _SwcUtils {
1455
+ static getValueByPath(obj, path, asKey) {
1456
+ if (!obj || !path) return void 0;
1457
+ const parts = path.split(".");
1458
+ let result = obj;
1459
+ let success = true;
1460
+ for (const part of parts) {
1461
+ if (result !== null && typeof result === "object" && part in result) {
1462
+ result = result[part];
1463
+ } else {
1464
+ success = false;
1465
+ break;
1466
+ }
1467
+ }
1468
+ if (success && result !== obj && !(result instanceof HTMLElement)) {
1469
+ return result;
1470
+ }
1471
+ if (path === asKey) return obj;
1472
+ if (path.startsWith(asKey + ".")) {
1473
+ const subParts = parts.slice(1);
1474
+ let subResult = obj;
1475
+ for (const part of subParts) {
1476
+ if (subResult !== null && typeof subResult === "object" && part in subResult) {
1477
+ subResult = subResult[part];
1478
+ } else {
1479
+ return void 0;
1480
+ }
1481
+ }
1482
+ return subResult;
1483
+ }
1484
+ if (obj instanceof HTMLElement && obj.parentElement) {
1485
+ }
1486
+ return void 0;
1487
+ }
1488
+ static applyData(node, data, options) {
1489
+ const { asKey, asIndexKey, index } = options;
1490
+ const context = {};
1491
+ if (index !== void 0) {
1492
+ context[asIndexKey] = index.toString();
1493
+ }
1494
+ const walk = (n) => {
1495
+ if (n.nodeType === Node.TEXT_NODE) {
1496
+ if (!n._original) n._original = n.textContent;
1497
+ let text = n._original;
1498
+ text = text.replace(/{{(.*?)}}/g, (match, path) => {
1499
+ path = path.trim();
1500
+ if (context[path] !== void 0) return context[path];
1501
+ const val = _SwcUtils.getValueByPath(data, path, asKey);
1502
+ return val !== void 0 ? val : match;
1503
+ });
1504
+ if (n.textContent !== text) n.textContent = text;
1505
+ } else if (n.nodeType === Node.ELEMENT_NODE) {
1506
+ const el = n;
1507
+ Array.from(el.attributes).forEach((a) => {
1508
+ if (!a._original) a._original = a.value;
1509
+ let val = a._original;
1510
+ val = val.replace(/{{(.*?)}}/g, (match, path) => {
1511
+ path = path.trim();
1512
+ if (context[path] !== void 0) return context[path];
1513
+ const v = _SwcUtils.getValueByPath(data, path, asKey);
1514
+ return v !== void 0 ? v : match;
1515
+ });
1516
+ if (a.value !== val) a.value = val;
1517
+ });
1518
+ el.childNodes.forEach(walk);
1519
+ }
1520
+ };
1521
+ walk(node);
1522
+ }
1523
+ static createReactiveProxy(target, onChange, onIndexChange) {
1524
+ const makeRecursiveProxy = (obj) => {
1525
+ if (typeof obj !== "object" || obj === null || obj instanceof Node) return obj;
1526
+ return new Proxy(obj, {
1527
+ set: (t, prop, val) => {
1528
+ const oldVal = t[prop];
1529
+ if (oldVal === val) return true;
1530
+ t[prop] = makeRecursiveProxy(val);
1531
+ const isIndex = !isNaN(Number(prop)) && Array.isArray(t);
1532
+ if (isIndex && onIndexChange) {
1533
+ onIndexChange(Number(prop), val);
1534
+ } else {
1535
+ onChange();
1536
+ }
1537
+ return true;
1538
+ },
1539
+ deleteProperty: (t, prop) => {
1540
+ delete t[prop];
1541
+ onChange();
1542
+ return true;
1543
+ }
1544
+ });
1545
+ };
1546
+ return makeRecursiveProxy(target);
1547
+ }
1548
+ };
1549
+
1339
1550
  // src/decorators/elementDefine.ts
1340
1551
  var ELEMENT_CONFIG_KEY = Symbol("simple-web-component:element-config");
1552
+ var STATE_CHANGE_EVENT = "swc:state-change";
1341
1553
  var BUILT_IN_TAG_MAP = /* @__PURE__ */ new Map();
1342
1554
  var registerTag = (className, tagName) => {
1343
1555
  if (typeof globalThis !== "undefined" && globalThis[className]) {
@@ -1413,17 +1625,49 @@ var elementDefine = (inConfig) => (constructor) => {
1413
1625
  proto = Object.getPrototypeOf(proto);
1414
1626
  }
1415
1627
  }
1416
- const attributeChangedMap = getAttributeChangedMap(constructor);
1417
- const observedFromDecorators = attributeChangedMap ? Array.from(attributeChangedMap.keys()).filter((it) => it !== ATTRIBUTE_CHANGED_WILDCARD) : [];
1418
- const mergedObservedAttributes = [.../* @__PURE__ */ new Set([...config.observedAttributes ?? [], ...observedFromDecorators])];
1628
+ const attributePropsList = getAttributeMetadataList(constructor);
1629
+ const emitCustomEventList = getEmitCustomEventMetadataList(constructor);
1630
+ const stateList = getStateMetadataList(constructor);
1631
+ const observedFromProps = attributePropsList ? attributePropsList.map((it) => it.options.name) : [];
1632
+ const observedFromEmits = emitCustomEventList ? emitCustomEventList.map((it) => it.options.attributeName) : [];
1633
+ const mergedObservedAttributes = [.../* @__PURE__ */ new Set([...config.observedAttributes ?? [], ...observedFromProps, ...observedFromEmits])];
1419
1634
  const NewClass = class extends constructor {
1420
1635
  constructor(...args) {
1421
1636
  super(...args);
1637
+ this._swcId = Math.random().toString(36).substring(2, 11);
1422
1638
  this._observer = null;
1423
1639
  this._boundElements = /* @__PURE__ */ new WeakMap();
1640
+ this._activeListeners = [];
1641
+ this._emitHandlers = /* @__PURE__ */ new Map();
1642
+ this._stateBindings = /* @__PURE__ */ new Map();
1643
+ this._internalStates = /* @__PURE__ */ new Map();
1644
+ this._externalSources = /* @__PURE__ */ new Map();
1645
+ if (stateList) {
1646
+ stateList.forEach((meta) => {
1647
+ const key = meta.propertyKey;
1648
+ const stateName = meta.options.name;
1649
+ const initialVal = this[key];
1650
+ this._internalStates.set(
1651
+ key,
1652
+ SwcUtils.createReactiveProxy(initialVal, () => this._updateState(stateName))
1653
+ );
1654
+ Object.defineProperty(this, key, {
1655
+ get: () => this._internalStates.get(key),
1656
+ set: (newVal) => {
1657
+ if (this._internalStates.get(key) === newVal) return;
1658
+ this._internalStates.set(
1659
+ key,
1660
+ SwcUtils.createReactiveProxy(newVal, () => this._updateState(stateName))
1661
+ );
1662
+ this._updateState(stateName);
1663
+ },
1664
+ enumerable: true,
1665
+ configurable: true
1666
+ });
1667
+ });
1668
+ }
1424
1669
  const innerHtmlList = getInnerHtmlMetadataList(this);
1425
- const useShadow = innerHtmlList?.some((it) => it.options.useShadow === true);
1426
- if (useShadow === true && !this.shadowRoot) {
1670
+ if (innerHtmlList?.some((it) => it.options.useShadow === true) && !this.shadowRoot) {
1427
1671
  this.attachShadow({ mode: "open" });
1428
1672
  }
1429
1673
  }
@@ -1431,6 +1675,7 @@ var elementDefine = (inConfig) => (constructor) => {
1431
1675
  return mergedObservedAttributes;
1432
1676
  }
1433
1677
  _syncDecorators() {
1678
+ this._buildStateMap();
1434
1679
  const queryMetadata = getQueryMetadata(this);
1435
1680
  if (queryMetadata) {
1436
1681
  queryMetadata.filter((it) => it.isMethod).forEach((it) => {
@@ -1460,9 +1705,9 @@ var elementDefine = (inConfig) => (constructor) => {
1460
1705
  const eventListeners = getAddEventListenerMetadata(this);
1461
1706
  if (eventListeners) {
1462
1707
  eventListeners.forEach((it) => {
1463
- const { selector, eventName, useShadow, ...options } = it.options;
1708
+ const { query: query2, type, useShadow, ...options } = it.options;
1464
1709
  const root = useShadow !== false && this.shadowRoot ? this.shadowRoot : this;
1465
- const targetElements = selector ? root.querySelectorAll(selector) : [this];
1710
+ const targetElements = query2 ? root.querySelectorAll(query2) : [this];
1466
1711
  targetElements.forEach((targetElement) => {
1467
1712
  if (targetElement) {
1468
1713
  let bound = this._boundElements.get(targetElement);
@@ -1470,127 +1715,220 @@ var elementDefine = (inConfig) => (constructor) => {
1470
1715
  bound = /* @__PURE__ */ new Set();
1471
1716
  this._boundElements.set(targetElement, bound);
1472
1717
  }
1473
- const eventKey = `event:${String(it.propertyKey)}:${eventName}`;
1718
+ const eventKey = `event:${String(it.propertyKey)}:${type}`;
1474
1719
  if (!bound.has(eventKey)) {
1475
- targetElement.addEventListener(
1476
- eventName,
1477
- (event) => {
1478
- this[it.propertyKey](event);
1479
- },
1480
- options
1481
- );
1720
+ const handler = (event) => {
1721
+ if (it.options.stopImmediatePropagation) event.stopImmediatePropagation();
1722
+ if (it.options.stopPropagation) event.stopPropagation();
1723
+ if (it.options.preventDefault) event.preventDefault();
1724
+ this[it.propertyKey](event, targetElement);
1725
+ };
1726
+ targetElement.addEventListener(type, handler, options);
1482
1727
  bound.add(eventKey);
1728
+ if (config.autoRemoveEventListeners) this._activeListeners.push({ el: targetElement, type, handler, options });
1729
+ const addEventMethods = getLifecycleMetadata(this, ON_ADD_EVENT_LISTENER_METADATA_KEY);
1730
+ addEventMethods?.forEach((m) => {
1731
+ if (typeof this[m] === "function") this[m](targetElement, type, handler);
1732
+ });
1483
1733
  }
1484
1734
  }
1485
1735
  });
1486
1736
  });
1487
1737
  }
1488
1738
  }
1739
+ _buildStateMap() {
1740
+ this._stateBindings.clear();
1741
+ this._externalSources.clear();
1742
+ const scan = (root) => {
1743
+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT);
1744
+ let node = null;
1745
+ while (node = walker.nextNode()) {
1746
+ if (node.nodeType === Node.TEXT_NODE) this._parseAndBind(node, "text");
1747
+ else if (node.nodeType === Node.ELEMENT_NODE) {
1748
+ const el = node;
1749
+ const alias = el.getAttribute("as");
1750
+ if (alias) {
1751
+ this._externalSources.set(alias, el);
1752
+ el.addEventListener(STATE_CHANGE_EVENT, () => this._updateState(alias));
1753
+ }
1754
+ Array.from(el.attributes).forEach((attr) => this._parseAndBind(attr, "attribute", el));
1755
+ }
1756
+ }
1757
+ };
1758
+ if (this.shadowRoot) scan(this.shadowRoot);
1759
+ scan(this);
1760
+ }
1761
+ _parseAndBind(node, type, owner) {
1762
+ const content = node.textContent || "";
1763
+ const matches = Array.from(content.matchAll(/{{(.*?)}}/g));
1764
+ if (matches.length === 0) return;
1765
+ matches.forEach((match) => {
1766
+ const fullPath = match[1].trim();
1767
+ const rootName = fullPath.split(".")[0];
1768
+ const isState = stateList?.some((s) => s.options.name === rootName);
1769
+ const isLogicKey = this._asKey === rootName || this._asIndexKey === rootName;
1770
+ const isExternal = this._externalSources.has(rootName);
1771
+ const isSelfAlias = this.getAttribute("as") === rootName;
1772
+ if (!isState && !isLogicKey && !isExternal && !isSelfAlias) return;
1773
+ if (!this._stateBindings.has(rootName)) this._stateBindings.set(rootName, []);
1774
+ const tplKey = `__swc_original_${this._swcId}`;
1775
+ if (!node[tplKey]) node[tplKey] = content;
1776
+ this._stateBindings.get(rootName).push({ node, type, owner, path: fullPath });
1777
+ this._updateState(rootName);
1778
+ });
1779
+ }
1780
+ _updateState(stateName) {
1781
+ if (!this._stateBindings) return;
1782
+ this._executeBindingUpdate(stateName);
1783
+ const selfAlias = this.getAttribute("as");
1784
+ if (selfAlias && selfAlias !== stateName) this._executeBindingUpdate(selfAlias);
1785
+ this.dispatchEvent(new CustomEvent(STATE_CHANGE_EVENT, { bubbles: true, composed: true }));
1786
+ }
1787
+ _executeBindingUpdate(stateName) {
1788
+ const bindings = this._stateBindings.get(stateName);
1789
+ if (!bindings) return;
1790
+ const tplKey = `__swc_original_${this._swcId}`;
1791
+ bindings.forEach((bin) => {
1792
+ let text = bin.node[tplKey];
1793
+ const matches = Array.from(text.matchAll(/{{(.*?)}}/g));
1794
+ for (const match of matches) {
1795
+ const path = match[1].trim();
1796
+ const root = path.split(".")[0];
1797
+ let val = void 0;
1798
+ let current = this;
1799
+ while (current) {
1800
+ const currentNewClass = current;
1801
+ if (current.getAttribute("as") === root) {
1802
+ val = SwcUtils.getValueByPath(current, path.split(".").slice(1).join(".") || "value", "value");
1803
+ if (val !== void 0) break;
1804
+ }
1805
+ const externalSource = currentNewClass._externalSources?.get(root);
1806
+ if (externalSource) {
1807
+ val = SwcUtils.getValueByPath(externalSource, path.split(".").slice(1).join(".") || "value", "value");
1808
+ if (val !== void 0) break;
1809
+ }
1810
+ const cStates = getStateMetadataList(current.constructor);
1811
+ const cAttrs = getAttributeMetadataList(current.constructor);
1812
+ const sMeta = cStates?.find((s) => s.options.name === root);
1813
+ const aMeta = cAttrs?.find((a) => a.options.name === root);
1814
+ if (sMeta || aMeta) {
1815
+ let aPath = path;
1816
+ if (sMeta && sMeta.options.name !== String(sMeta.propertyKey)) aPath = path.replace(sMeta.options.name, String(sMeta.propertyKey));
1817
+ else if (aMeta && aMeta.options.name !== String(aMeta.propertyKey)) aPath = path.replace(aMeta.options.name, String(aMeta.propertyKey));
1818
+ val = SwcUtils.getValueByPath(current, aPath, root);
1819
+ if (val !== void 0) break;
1820
+ }
1821
+ current = current.parentElement || current.getRootNode().host;
1822
+ }
1823
+ if (val !== void 0) {
1824
+ const strVal = val === null || val === void 0 ? "" : typeof val === "object" ? "[Object]" : String(val);
1825
+ text = text.replace(match[0], strVal);
1826
+ if (bin.type === "attribute" && bin.owner) {
1827
+ if (val === null || val === void 0) bin.owner.removeAttribute(bin.attrName);
1828
+ else bin.owner.setAttribute(bin.attrName, text);
1829
+ }
1830
+ }
1831
+ }
1832
+ if (bin.type === "text") bin.node.textContent = text;
1833
+ });
1834
+ }
1489
1835
  disconnectedCallback() {
1490
- const beforeMethods = getLifecycleMetadata(this, ON_BEFORE_DISCONNECTED_METADATA_KEY);
1491
- beforeMethods?.forEach((m) => {
1836
+ const bMethods = getLifecycleMetadata(this, ON_BEFORE_DISCONNECTED_METADATA_KEY);
1837
+ bMethods?.forEach((m) => {
1492
1838
  if (typeof this[m] === "function") this[m]();
1493
1839
  });
1494
- if (this._observer) {
1495
- this._observer.disconnect();
1496
- }
1497
- if (super.disconnectedCallback) {
1498
- super.disconnectedCallback();
1840
+ if (this._observer) this._observer.disconnect();
1841
+ if (config.autoRemoveEventListeners) {
1842
+ this._activeListeners.forEach(({ el, type, handler, options }) => el.removeEventListener(type, handler, options));
1843
+ this._activeListeners = [];
1499
1844
  }
1500
- const afterMethods = getLifecycleMetadata(this, ON_AFTER_DISCONNECTED_METADATA_KEY);
1501
- afterMethods?.forEach((m) => {
1845
+ if (super.disconnectedCallback) super.disconnectedCallback();
1846
+ const aMethods = getLifecycleMetadata(this, ON_AFTER_DISCONNECTED_METADATA_KEY);
1847
+ aMethods?.forEach((m) => {
1502
1848
  if (typeof this[m] === "function") this[m]();
1503
1849
  });
1504
1850
  }
1505
1851
  adoptedCallback() {
1506
- const beforeMethods = getLifecycleMetadata(this, ON_BEFORE_ADOPTED_METADATA_KEY);
1507
- beforeMethods?.forEach((m) => {
1852
+ const bMethods = getLifecycleMetadata(this, ON_BEFORE_ADOPTED_METADATA_KEY);
1853
+ bMethods?.forEach((m) => {
1508
1854
  if (typeof this[m] === "function") this[m]();
1509
1855
  });
1510
- if (super.adoptedCallback) {
1511
- super.adoptedCallback();
1512
- }
1513
- const afterMethods = getLifecycleMetadata(this, ON_AFTER_ADOPTED_METADATA_KEY);
1514
- afterMethods?.forEach((m) => {
1856
+ if (super.adoptedCallback) super.adoptedCallback();
1857
+ const aMethods = getLifecycleMetadata(this, ON_AFTER_ADOPTED_METADATA_KEY);
1858
+ aMethods?.forEach((m) => {
1515
1859
  if (typeof this[m] === "function") this[m]();
1516
1860
  });
1517
1861
  }
1518
1862
  async connectedCallback() {
1519
- const beforeMethods = getLifecycleMetadata(this, ON_BEFORE_CONNECTED_METADATA_KEY);
1520
- beforeMethods?.forEach((m) => {
1863
+ const bMethods = getLifecycleMetadata(this, ON_BEFORE_CONNECTED_METADATA_KEY);
1864
+ bMethods?.forEach((m) => {
1521
1865
  if (typeof this[m] === "function") this[m]();
1522
1866
  });
1523
- if (typeof this.initCore === "function") {
1524
- this.initCore();
1525
- }
1526
- const innerHtmlList = getInnerHtmlMetadataList(this);
1527
- let shadowContent = "";
1528
- let lightContent = "";
1529
- if (innerHtmlList) {
1530
- for (const meta of innerHtmlList) {
1867
+ if (typeof this.initCore === "function") this.initCore();
1868
+ const iHtmlList = getInnerHtmlMetadataList(this);
1869
+ let sContent = "";
1870
+ let lContent = "";
1871
+ if (iHtmlList) {
1872
+ for (const meta of iHtmlList) {
1531
1873
  const result = await this[meta.propertyKey]();
1532
1874
  if (result !== void 0) {
1533
- if (meta.options.useShadow === true) {
1534
- shadowContent += result;
1535
- } else {
1536
- lightContent += result;
1537
- }
1875
+ if (meta.options.useShadow === true) sContent += result;
1876
+ else lContent += result;
1538
1877
  }
1539
1878
  }
1540
1879
  }
1541
- if (this.shadowRoot) {
1542
- this.shadowRoot.innerHTML = shadowContent;
1543
- }
1544
- if (lightContent) {
1545
- this.innerHTML = lightContent;
1546
- }
1880
+ if (this.shadowRoot) this.shadowRoot.innerHTML = sContent;
1881
+ if (lContent) this.innerHTML = lContent;
1547
1882
  this._syncDecorators();
1548
- this._observer = new MutationObserver(() => {
1549
- this._syncDecorators();
1550
- });
1551
- const target = this.shadowRoot || this;
1552
- this._observer.observe(target, { childList: true, subtree: true });
1553
- if (super.connectedCallback) {
1554
- await super.connectedCallback();
1555
- }
1556
- const afterMethods = getLifecycleMetadata(this, ON_AFTER_CONNECTED_METADATA_KEY);
1557
- afterMethods?.forEach((m) => {
1883
+ this._observer = new MutationObserver(() => this._syncDecorators());
1884
+ this._observer.observe(this.shadowRoot || this, { childList: true, subtree: true });
1885
+ if (super.connectedCallback) await super.connectedCallback();
1886
+ const aMethods = getLifecycleMetadata(this, ON_AFTER_CONNECTED_METADATA_KEY);
1887
+ aMethods?.forEach((m) => {
1558
1888
  if (typeof this[m] === "function") this[m]();
1559
1889
  });
1560
1890
  }
1561
- // 4. Handle attribute changes and route to decorated methods
1562
1891
  attributeChangedCallback(name, oldValue, newValue) {
1563
- if (super.attributeChangedCallback) {
1564
- super.attributeChangedCallback(name, oldValue, newValue);
1565
- }
1566
- const methodKeys = attributeChangedMap?.get(name);
1567
- if (methodKeys && Array.isArray(methodKeys)) {
1568
- methodKeys.forEach((key) => {
1569
- if (typeof this[key] === "function") {
1570
- this[key](newValue, oldValue, name);
1892
+ if (super.attributeChangedCallback) super.attributeChangedCallback(name, oldValue, newValue);
1893
+ if (attributePropsList) {
1894
+ attributePropsList.forEach((meta) => {
1895
+ if (meta.options.name === name) {
1896
+ if (String(this[meta.propertyKey]) !== String(newValue)) this[meta.propertyKey] = newValue;
1571
1897
  }
1572
1898
  });
1573
1899
  }
1574
- const wildcardMethodKeys = attributeChangedMap?.get(ATTRIBUTE_CHANGED_WILDCARD);
1575
- if (wildcardMethodKeys && Array.isArray(wildcardMethodKeys)) {
1576
- wildcardMethodKeys.forEach((key) => {
1577
- if (typeof this[key] === "function") {
1578
- this[key](newValue, oldValue, name);
1579
- }
1900
+ if (typeof this._updateState === "function") this._updateState(name);
1901
+ const aMethodsMap = getLifecycleMetadata(constructor, ON_ATTRIBUTE_CHANGED_METADATA_KEY);
1902
+ const mKeys = aMethodsMap?.get(name);
1903
+ if (mKeys && Array.isArray(mKeys))
1904
+ mKeys.forEach((key) => {
1905
+ if (typeof this[key] === "function") this[key](newValue, oldValue, name);
1580
1906
  });
1907
+ if (emitCustomEventList) {
1908
+ const eMeta = emitCustomEventList.find((it) => it.options.attributeName === name);
1909
+ if (eMeta) {
1910
+ const eType = eMeta.options.type;
1911
+ const oHandler = this._emitHandlers.get(eType);
1912
+ if (oHandler) this.removeEventListener(eType, oHandler);
1913
+ if (newValue) {
1914
+ const nHandler = (e) => {
1915
+ new Function("event", "$data", newValue).call(this, e, e.detail);
1916
+ };
1917
+ this.addEventListener(eType, nHandler);
1918
+ this._emitHandlers.set(eType, nHandler);
1919
+ }
1920
+ }
1581
1921
  }
1922
+ const wMethodsKeys = aMethodsMap?.get(ATTRIBUTE_CHANGED_WILDCARD);
1923
+ if (wMethodsKeys && Array.isArray(wMethodsKeys))
1924
+ wMethodsKeys.forEach((key) => {
1925
+ if (typeof this[key] === "function") this[key](newValue, oldValue, name);
1926
+ });
1582
1927
  }
1583
1928
  };
1584
1929
  const registry = config.customElementRegistry || (typeof customElements !== "undefined" ? customElements : void 0);
1585
1930
  if (registry && !registry.get(config.name)) {
1586
- const options = extendsTagName ? { extends: extendsTagName } : void 0;
1587
- if (extendsTagName && typeof document !== "undefined") {
1588
- const isSupported = document.createElement(extendsTagName, { is: "any" }).outerHTML.indexOf("is=") !== -1;
1589
- if (!isSupported) {
1590
- console.warn(`[SWC] Browser does not support 'is' attribute (Customized Built-in Elements). If you are on Safari, please include '@ungap/custom-elements' polyfill.`);
1591
- }
1592
- }
1593
- registry.define(config.name, NewClass, options);
1931
+ registry.define(config.name, NewClass, config.extends ? { extends: config.extends } : void 0);
1594
1932
  }
1595
1933
  ReflectUtils.defineMetadata(ELEMENT_CONFIG_KEY, config, NewClass);
1596
1934
  return NewClass;
@@ -1600,71 +1938,6 @@ var getElementConfig = (target) => {
1600
1938
  return ReflectUtils.getMetadata(ELEMENT_CONFIG_KEY, constructor);
1601
1939
  };
1602
1940
 
1603
- // src/utils/Utils.ts
1604
- var SwcUtils = class _SwcUtils {
1605
- static getValueByPath(obj, path, asKey) {
1606
- if (path === asKey) return obj;
1607
- if (path.startsWith(`${asKey}.`)) {
1608
- return path.split(".").slice(1).reduce((acc, part) => acc && acc[part], obj);
1609
- }
1610
- return void 0;
1611
- }
1612
- static applyData(node, data, options) {
1613
- const { asKey, asIndexKey, index } = options;
1614
- const context = {};
1615
- if (index !== void 0) {
1616
- context[asIndexKey] = index.toString();
1617
- }
1618
- const walk = (n) => {
1619
- if (n.nodeType === Node.TEXT_NODE) {
1620
- if (!n._original) n._original = n.textContent;
1621
- let text = n._original;
1622
- text = text.replace(/{{(.*?)}}/g, (match, path) => {
1623
- path = path.trim();
1624
- if (context[path] !== void 0) return context[path];
1625
- const val = _SwcUtils.getValueByPath(data, path, asKey);
1626
- return val !== void 0 ? val : match;
1627
- });
1628
- if (n.textContent !== text) n.textContent = text;
1629
- } else if (n.nodeType === Node.ELEMENT_NODE) {
1630
- const el = n;
1631
- Array.from(el.attributes).forEach((a) => {
1632
- if (!a._original) a._original = a.value;
1633
- let val = a._original;
1634
- val = val.replace(/{{(.*?)}}/g, (match, path) => {
1635
- path = path.trim();
1636
- if (context[path] !== void 0) return context[path];
1637
- const v = _SwcUtils.getValueByPath(data, path, asKey);
1638
- return v !== void 0 ? v : match;
1639
- });
1640
- if (a.value !== val) a.value = val;
1641
- });
1642
- el.childNodes.forEach(walk);
1643
- }
1644
- };
1645
- walk(node);
1646
- }
1647
- static createReactiveProxy(target, onChange, onIndexChange) {
1648
- return new Proxy(target, {
1649
- set: (t, prop, val) => {
1650
- const isIndex = !isNaN(Number(prop));
1651
- t[prop] = val;
1652
- if (isIndex && onIndexChange) {
1653
- onIndexChange(Number(prop), val);
1654
- } else {
1655
- onChange();
1656
- }
1657
- return true;
1658
- },
1659
- deleteProperty: (t, prop) => {
1660
- delete t[prop];
1661
- onChange();
1662
- return true;
1663
- }
1664
- });
1665
- }
1666
- };
1667
-
1668
1941
  // src/elements/SwcHTMLElementBase.ts
1669
1942
  var SwcHTMLElementBase = class extends HTMLElement {
1670
1943
  constructor() {
@@ -2284,9 +2557,9 @@ var SwcIfAnchor = class SwcIfAnchor2 extends SwcHTMLAnchorElementBase {
2284
2557
  if (isTruthy && this._masterTplNodes.length > 0) {
2285
2558
  this._masterTplNodes.forEach((tplNode) => {
2286
2559
  const clone = tplNode.cloneNode(true);
2287
- this.appendChild(clone);
2288
2560
  if (clone.style)
2289
2561
  clone.style.display = "contents";
2562
+ this.appendChild(clone);
2290
2563
  this.applyData(clone, this._swcValue);
2291
2564
  });
2292
2565
  }
@@ -2666,9 +2939,9 @@ var SwcIfArea = class SwcIfArea2 extends SwcHTMLAreaElementBase {
2666
2939
  if (isTruthy && this._masterTplNodes.length > 0) {
2667
2940
  this._masterTplNodes.forEach((tplNode) => {
2668
2941
  const clone = tplNode.cloneNode(true);
2669
- this.appendChild(clone);
2670
2942
  if (clone.style)
2671
2943
  clone.style.display = "contents";
2944
+ this.appendChild(clone);
2672
2945
  this.applyData(clone, this._swcValue);
2673
2946
  });
2674
2947
  }
@@ -3048,9 +3321,9 @@ var SwcIfAudio = class SwcIfAudio2 extends SwcHTMLAudioElementBase {
3048
3321
  if (isTruthy && this._masterTplNodes.length > 0) {
3049
3322
  this._masterTplNodes.forEach((tplNode) => {
3050
3323
  const clone = tplNode.cloneNode(true);
3051
- this.appendChild(clone);
3052
3324
  if (clone.style)
3053
3325
  clone.style.display = "contents";
3326
+ this.appendChild(clone);
3054
3327
  this.applyData(clone, this._swcValue);
3055
3328
  });
3056
3329
  }
@@ -3430,9 +3703,9 @@ var SwcIfBase = class SwcIfBase2 extends SwcHTMLBaseElementBase {
3430
3703
  if (isTruthy && this._masterTplNodes.length > 0) {
3431
3704
  this._masterTplNodes.forEach((tplNode) => {
3432
3705
  const clone = tplNode.cloneNode(true);
3433
- this.appendChild(clone);
3434
3706
  if (clone.style)
3435
3707
  clone.style.display = "contents";
3708
+ this.appendChild(clone);
3436
3709
  this.applyData(clone, this._swcValue);
3437
3710
  });
3438
3711
  }
@@ -3812,9 +4085,9 @@ var SwcIfButton = class SwcIfButton2 extends SwcHTMLButtonElementBase {
3812
4085
  if (isTruthy && this._masterTplNodes.length > 0) {
3813
4086
  this._masterTplNodes.forEach((tplNode) => {
3814
4087
  const clone = tplNode.cloneNode(true);
3815
- this.appendChild(clone);
3816
4088
  if (clone.style)
3817
4089
  clone.style.display = "contents";
4090
+ this.appendChild(clone);
3818
4091
  this.applyData(clone, this._swcValue);
3819
4092
  });
3820
4093
  }
@@ -4194,9 +4467,9 @@ var SwcIfCanvas = class SwcIfCanvas2 extends SwcHTMLCanvasElementBase {
4194
4467
  if (isTruthy && this._masterTplNodes.length > 0) {
4195
4468
  this._masterTplNodes.forEach((tplNode) => {
4196
4469
  const clone = tplNode.cloneNode(true);
4197
- this.appendChild(clone);
4198
4470
  if (clone.style)
4199
4471
  clone.style.display = "contents";
4472
+ this.appendChild(clone);
4200
4473
  this.applyData(clone, this._swcValue);
4201
4474
  });
4202
4475
  }
@@ -4576,9 +4849,9 @@ var SwcIfData = class SwcIfData2 extends SwcHTMLDataElementBase {
4576
4849
  if (isTruthy && this._masterTplNodes.length > 0) {
4577
4850
  this._masterTplNodes.forEach((tplNode) => {
4578
4851
  const clone = tplNode.cloneNode(true);
4579
- this.appendChild(clone);
4580
4852
  if (clone.style)
4581
4853
  clone.style.display = "contents";
4854
+ this.appendChild(clone);
4582
4855
  this.applyData(clone, this._swcValue);
4583
4856
  });
4584
4857
  }
@@ -4958,9 +5231,9 @@ var SwcIfDataList = class SwcIfDataList2 extends SwcHTMLDataListElementBase {
4958
5231
  if (isTruthy && this._masterTplNodes.length > 0) {
4959
5232
  this._masterTplNodes.forEach((tplNode) => {
4960
5233
  const clone = tplNode.cloneNode(true);
4961
- this.appendChild(clone);
4962
5234
  if (clone.style)
4963
5235
  clone.style.display = "contents";
5236
+ this.appendChild(clone);
4964
5237
  this.applyData(clone, this._swcValue);
4965
5238
  });
4966
5239
  }
@@ -5340,9 +5613,9 @@ var SwcIfDetails = class SwcIfDetails2 extends SwcHTMLDetailsElementBase {
5340
5613
  if (isTruthy && this._masterTplNodes.length > 0) {
5341
5614
  this._masterTplNodes.forEach((tplNode) => {
5342
5615
  const clone = tplNode.cloneNode(true);
5343
- this.appendChild(clone);
5344
5616
  if (clone.style)
5345
5617
  clone.style.display = "contents";
5618
+ this.appendChild(clone);
5346
5619
  this.applyData(clone, this._swcValue);
5347
5620
  });
5348
5621
  }
@@ -5722,9 +5995,9 @@ var SwcIfDialog = class SwcIfDialog2 extends SwcHTMLDialogElementBase {
5722
5995
  if (isTruthy && this._masterTplNodes.length > 0) {
5723
5996
  this._masterTplNodes.forEach((tplNode) => {
5724
5997
  const clone = tplNode.cloneNode(true);
5725
- this.appendChild(clone);
5726
5998
  if (clone.style)
5727
5999
  clone.style.display = "contents";
6000
+ this.appendChild(clone);
5728
6001
  this.applyData(clone, this._swcValue);
5729
6002
  });
5730
6003
  }
@@ -6104,9 +6377,9 @@ var SwcIfDiv = class SwcIfDiv2 extends SwcHTMLDivElementBase {
6104
6377
  if (isTruthy && this._masterTplNodes.length > 0) {
6105
6378
  this._masterTplNodes.forEach((tplNode) => {
6106
6379
  const clone = tplNode.cloneNode(true);
6107
- this.appendChild(clone);
6108
6380
  if (clone.style)
6109
6381
  clone.style.display = "contents";
6382
+ this.appendChild(clone);
6110
6383
  this.applyData(clone, this._swcValue);
6111
6384
  });
6112
6385
  }
@@ -6486,9 +6759,9 @@ var SwcIfDl = class SwcIfDl2 extends SwcHTMLDListElementBase {
6486
6759
  if (isTruthy && this._masterTplNodes.length > 0) {
6487
6760
  this._masterTplNodes.forEach((tplNode) => {
6488
6761
  const clone = tplNode.cloneNode(true);
6489
- this.appendChild(clone);
6490
6762
  if (clone.style)
6491
6763
  clone.style.display = "contents";
6764
+ this.appendChild(clone);
6492
6765
  this.applyData(clone, this._swcValue);
6493
6766
  });
6494
6767
  }
@@ -6868,9 +7141,9 @@ var SwcIfEmbed = class SwcIfEmbed2 extends SwcHTMLEmbedElementBase {
6868
7141
  if (isTruthy && this._masterTplNodes.length > 0) {
6869
7142
  this._masterTplNodes.forEach((tplNode) => {
6870
7143
  const clone = tplNode.cloneNode(true);
6871
- this.appendChild(clone);
6872
7144
  if (clone.style)
6873
7145
  clone.style.display = "contents";
7146
+ this.appendChild(clone);
6874
7147
  this.applyData(clone, this._swcValue);
6875
7148
  });
6876
7149
  }
@@ -7250,9 +7523,9 @@ var SwcIfFieldSet = class SwcIfFieldSet2 extends SwcHTMLFieldSetElementBase {
7250
7523
  if (isTruthy && this._masterTplNodes.length > 0) {
7251
7524
  this._masterTplNodes.forEach((tplNode) => {
7252
7525
  const clone = tplNode.cloneNode(true);
7253
- this.appendChild(clone);
7254
7526
  if (clone.style)
7255
7527
  clone.style.display = "contents";
7528
+ this.appendChild(clone);
7256
7529
  this.applyData(clone, this._swcValue);
7257
7530
  });
7258
7531
  }
@@ -7632,9 +7905,9 @@ var SwcIfForm = class SwcIfForm2 extends SwcHTMLFormElementBase {
7632
7905
  if (isTruthy && this._masterTplNodes.length > 0) {
7633
7906
  this._masterTplNodes.forEach((tplNode) => {
7634
7907
  const clone = tplNode.cloneNode(true);
7635
- this.appendChild(clone);
7636
7908
  if (clone.style)
7637
7909
  clone.style.display = "contents";
7910
+ this.appendChild(clone);
7638
7911
  this.applyData(clone, this._swcValue);
7639
7912
  });
7640
7913
  }
@@ -8014,9 +8287,9 @@ var SwcIfHr = class SwcIfHr2 extends SwcHTMLHRElementBase {
8014
8287
  if (isTruthy && this._masterTplNodes.length > 0) {
8015
8288
  this._masterTplNodes.forEach((tplNode) => {
8016
8289
  const clone = tplNode.cloneNode(true);
8017
- this.appendChild(clone);
8018
8290
  if (clone.style)
8019
8291
  clone.style.display = "contents";
8292
+ this.appendChild(clone);
8020
8293
  this.applyData(clone, this._swcValue);
8021
8294
  });
8022
8295
  }
@@ -8396,9 +8669,9 @@ var SwcIfIFrame = class SwcIfIFrame2 extends SwcHTMLIFrameElementBase {
8396
8669
  if (isTruthy && this._masterTplNodes.length > 0) {
8397
8670
  this._masterTplNodes.forEach((tplNode) => {
8398
8671
  const clone = tplNode.cloneNode(true);
8399
- this.appendChild(clone);
8400
8672
  if (clone.style)
8401
8673
  clone.style.display = "contents";
8674
+ this.appendChild(clone);
8402
8675
  this.applyData(clone, this._swcValue);
8403
8676
  });
8404
8677
  }
@@ -8778,9 +9051,9 @@ var SwcIfImage = class SwcIfImage2 extends SwcHTMLImageElementBase {
8778
9051
  if (isTruthy && this._masterTplNodes.length > 0) {
8779
9052
  this._masterTplNodes.forEach((tplNode) => {
8780
9053
  const clone = tplNode.cloneNode(true);
8781
- this.appendChild(clone);
8782
9054
  if (clone.style)
8783
9055
  clone.style.display = "contents";
9056
+ this.appendChild(clone);
8784
9057
  this.applyData(clone, this._swcValue);
8785
9058
  });
8786
9059
  }
@@ -9160,9 +9433,9 @@ var SwcIfInput = class SwcIfInput2 extends SwcHTMLInputElementBase {
9160
9433
  if (isTruthy && this._masterTplNodes.length > 0) {
9161
9434
  this._masterTplNodes.forEach((tplNode) => {
9162
9435
  const clone = tplNode.cloneNode(true);
9163
- this.appendChild(clone);
9164
9436
  if (clone.style)
9165
9437
  clone.style.display = "contents";
9438
+ this.appendChild(clone);
9166
9439
  this.applyData(clone, this._swcValue);
9167
9440
  });
9168
9441
  }
@@ -9542,9 +9815,9 @@ var SwcIfLabel = class SwcIfLabel2 extends SwcHTMLLabelElementBase {
9542
9815
  if (isTruthy && this._masterTplNodes.length > 0) {
9543
9816
  this._masterTplNodes.forEach((tplNode) => {
9544
9817
  const clone = tplNode.cloneNode(true);
9545
- this.appendChild(clone);
9546
9818
  if (clone.style)
9547
9819
  clone.style.display = "contents";
9820
+ this.appendChild(clone);
9548
9821
  this.applyData(clone, this._swcValue);
9549
9822
  });
9550
9823
  }
@@ -9924,9 +10197,9 @@ var SwcIfLegend = class SwcIfLegend2 extends SwcHTMLLegendElementBase {
9924
10197
  if (isTruthy && this._masterTplNodes.length > 0) {
9925
10198
  this._masterTplNodes.forEach((tplNode) => {
9926
10199
  const clone = tplNode.cloneNode(true);
9927
- this.appendChild(clone);
9928
10200
  if (clone.style)
9929
10201
  clone.style.display = "contents";
10202
+ this.appendChild(clone);
9930
10203
  this.applyData(clone, this._swcValue);
9931
10204
  });
9932
10205
  }
@@ -10306,9 +10579,9 @@ var SwcIfLi = class SwcIfLi2 extends SwcHTMLLIElementBase {
10306
10579
  if (isTruthy && this._masterTplNodes.length > 0) {
10307
10580
  this._masterTplNodes.forEach((tplNode) => {
10308
10581
  const clone = tplNode.cloneNode(true);
10309
- this.appendChild(clone);
10310
10582
  if (clone.style)
10311
10583
  clone.style.display = "contents";
10584
+ this.appendChild(clone);
10312
10585
  this.applyData(clone, this._swcValue);
10313
10586
  });
10314
10587
  }
@@ -10688,9 +10961,9 @@ var SwcIfLink = class SwcIfLink2 extends SwcHTMLLinkElementBase {
10688
10961
  if (isTruthy && this._masterTplNodes.length > 0) {
10689
10962
  this._masterTplNodes.forEach((tplNode) => {
10690
10963
  const clone = tplNode.cloneNode(true);
10691
- this.appendChild(clone);
10692
10964
  if (clone.style)
10693
10965
  clone.style.display = "contents";
10966
+ this.appendChild(clone);
10694
10967
  this.applyData(clone, this._swcValue);
10695
10968
  });
10696
10969
  }
@@ -11070,9 +11343,9 @@ var SwcIfMap = class SwcIfMap2 extends SwcHTMLMapElementBase {
11070
11343
  if (isTruthy && this._masterTplNodes.length > 0) {
11071
11344
  this._masterTplNodes.forEach((tplNode) => {
11072
11345
  const clone = tplNode.cloneNode(true);
11073
- this.appendChild(clone);
11074
11346
  if (clone.style)
11075
11347
  clone.style.display = "contents";
11348
+ this.appendChild(clone);
11076
11349
  this.applyData(clone, this._swcValue);
11077
11350
  });
11078
11351
  }
@@ -11452,9 +11725,9 @@ var SwcIfMeta = class SwcIfMeta2 extends SwcHTMLMetaElementBase {
11452
11725
  if (isTruthy && this._masterTplNodes.length > 0) {
11453
11726
  this._masterTplNodes.forEach((tplNode) => {
11454
11727
  const clone = tplNode.cloneNode(true);
11455
- this.appendChild(clone);
11456
11728
  if (clone.style)
11457
11729
  clone.style.display = "contents";
11730
+ this.appendChild(clone);
11458
11731
  this.applyData(clone, this._swcValue);
11459
11732
  });
11460
11733
  }
@@ -11834,9 +12107,9 @@ var SwcIfMeter = class SwcIfMeter2 extends SwcHTMLMeterElementBase {
11834
12107
  if (isTruthy && this._masterTplNodes.length > 0) {
11835
12108
  this._masterTplNodes.forEach((tplNode) => {
11836
12109
  const clone = tplNode.cloneNode(true);
11837
- this.appendChild(clone);
11838
12110
  if (clone.style)
11839
12111
  clone.style.display = "contents";
12112
+ this.appendChild(clone);
11840
12113
  this.applyData(clone, this._swcValue);
11841
12114
  });
11842
12115
  }
@@ -12216,9 +12489,9 @@ var SwcIfMod = class SwcIfMod2 extends SwcHTMLModElementBase {
12216
12489
  if (isTruthy && this._masterTplNodes.length > 0) {
12217
12490
  this._masterTplNodes.forEach((tplNode) => {
12218
12491
  const clone = tplNode.cloneNode(true);
12219
- this.appendChild(clone);
12220
12492
  if (clone.style)
12221
12493
  clone.style.display = "contents";
12494
+ this.appendChild(clone);
12222
12495
  this.applyData(clone, this._swcValue);
12223
12496
  });
12224
12497
  }
@@ -12598,9 +12871,9 @@ var SwcIfObject = class SwcIfObject2 extends SwcHTMLObjectElementBase {
12598
12871
  if (isTruthy && this._masterTplNodes.length > 0) {
12599
12872
  this._masterTplNodes.forEach((tplNode) => {
12600
12873
  const clone = tplNode.cloneNode(true);
12601
- this.appendChild(clone);
12602
12874
  if (clone.style)
12603
12875
  clone.style.display = "contents";
12876
+ this.appendChild(clone);
12604
12877
  this.applyData(clone, this._swcValue);
12605
12878
  });
12606
12879
  }
@@ -12980,9 +13253,9 @@ var SwcIfOl = class SwcIfOl2 extends SwcHTMLOListElementBase {
12980
13253
  if (isTruthy && this._masterTplNodes.length > 0) {
12981
13254
  this._masterTplNodes.forEach((tplNode) => {
12982
13255
  const clone = tplNode.cloneNode(true);
12983
- this.appendChild(clone);
12984
13256
  if (clone.style)
12985
13257
  clone.style.display = "contents";
13258
+ this.appendChild(clone);
12986
13259
  this.applyData(clone, this._swcValue);
12987
13260
  });
12988
13261
  }
@@ -13362,9 +13635,9 @@ var SwcIfOptGroup = class SwcIfOptGroup2 extends SwcHTMLOptGroupElementBase {
13362
13635
  if (isTruthy && this._masterTplNodes.length > 0) {
13363
13636
  this._masterTplNodes.forEach((tplNode) => {
13364
13637
  const clone = tplNode.cloneNode(true);
13365
- this.appendChild(clone);
13366
13638
  if (clone.style)
13367
13639
  clone.style.display = "contents";
13640
+ this.appendChild(clone);
13368
13641
  this.applyData(clone, this._swcValue);
13369
13642
  });
13370
13643
  }
@@ -13744,9 +14017,9 @@ var SwcIfOption = class SwcIfOption2 extends SwcHTMLOptionElementBase {
13744
14017
  if (isTruthy && this._masterTplNodes.length > 0) {
13745
14018
  this._masterTplNodes.forEach((tplNode) => {
13746
14019
  const clone = tplNode.cloneNode(true);
13747
- this.appendChild(clone);
13748
14020
  if (clone.style)
13749
14021
  clone.style.display = "contents";
14022
+ this.appendChild(clone);
13750
14023
  this.applyData(clone, this._swcValue);
13751
14024
  });
13752
14025
  }
@@ -14126,9 +14399,9 @@ var SwcIfOutput = class SwcIfOutput2 extends SwcHTMLOutputElementBase {
14126
14399
  if (isTruthy && this._masterTplNodes.length > 0) {
14127
14400
  this._masterTplNodes.forEach((tplNode) => {
14128
14401
  const clone = tplNode.cloneNode(true);
14129
- this.appendChild(clone);
14130
14402
  if (clone.style)
14131
14403
  clone.style.display = "contents";
14404
+ this.appendChild(clone);
14132
14405
  this.applyData(clone, this._swcValue);
14133
14406
  });
14134
14407
  }
@@ -14508,9 +14781,9 @@ var SwcIfParagraph = class SwcIfParagraph2 extends SwcHTMLParagraphElementBase {
14508
14781
  if (isTruthy && this._masterTplNodes.length > 0) {
14509
14782
  this._masterTplNodes.forEach((tplNode) => {
14510
14783
  const clone = tplNode.cloneNode(true);
14511
- this.appendChild(clone);
14512
14784
  if (clone.style)
14513
14785
  clone.style.display = "contents";
14786
+ this.appendChild(clone);
14514
14787
  this.applyData(clone, this._swcValue);
14515
14788
  });
14516
14789
  }
@@ -14890,9 +15163,9 @@ var SwcIfParam = class SwcIfParam2 extends SwcHTMLParamElementBase {
14890
15163
  if (isTruthy && this._masterTplNodes.length > 0) {
14891
15164
  this._masterTplNodes.forEach((tplNode) => {
14892
15165
  const clone = tplNode.cloneNode(true);
14893
- this.appendChild(clone);
14894
15166
  if (clone.style)
14895
15167
  clone.style.display = "contents";
15168
+ this.appendChild(clone);
14896
15169
  this.applyData(clone, this._swcValue);
14897
15170
  });
14898
15171
  }
@@ -15272,9 +15545,9 @@ var SwcIfPicture = class SwcIfPicture2 extends SwcHTMLPictureElementBase {
15272
15545
  if (isTruthy && this._masterTplNodes.length > 0) {
15273
15546
  this._masterTplNodes.forEach((tplNode) => {
15274
15547
  const clone = tplNode.cloneNode(true);
15275
- this.appendChild(clone);
15276
15548
  if (clone.style)
15277
15549
  clone.style.display = "contents";
15550
+ this.appendChild(clone);
15278
15551
  this.applyData(clone, this._swcValue);
15279
15552
  });
15280
15553
  }
@@ -15654,9 +15927,9 @@ var SwcIfPre = class SwcIfPre2 extends SwcHTMLPreElementBase {
15654
15927
  if (isTruthy && this._masterTplNodes.length > 0) {
15655
15928
  this._masterTplNodes.forEach((tplNode) => {
15656
15929
  const clone = tplNode.cloneNode(true);
15657
- this.appendChild(clone);
15658
15930
  if (clone.style)
15659
15931
  clone.style.display = "contents";
15932
+ this.appendChild(clone);
15660
15933
  this.applyData(clone, this._swcValue);
15661
15934
  });
15662
15935
  }
@@ -16036,9 +16309,9 @@ var SwcIfProgress = class SwcIfProgress2 extends SwcHTMLProgressElementBase {
16036
16309
  if (isTruthy && this._masterTplNodes.length > 0) {
16037
16310
  this._masterTplNodes.forEach((tplNode) => {
16038
16311
  const clone = tplNode.cloneNode(true);
16039
- this.appendChild(clone);
16040
16312
  if (clone.style)
16041
16313
  clone.style.display = "contents";
16314
+ this.appendChild(clone);
16042
16315
  this.applyData(clone, this._swcValue);
16043
16316
  });
16044
16317
  }
@@ -16418,9 +16691,9 @@ var SwcIfQuote = class SwcIfQuote2 extends SwcHTMLQuoteElementBase {
16418
16691
  if (isTruthy && this._masterTplNodes.length > 0) {
16419
16692
  this._masterTplNodes.forEach((tplNode) => {
16420
16693
  const clone = tplNode.cloneNode(true);
16421
- this.appendChild(clone);
16422
16694
  if (clone.style)
16423
16695
  clone.style.display = "contents";
16696
+ this.appendChild(clone);
16424
16697
  this.applyData(clone, this._swcValue);
16425
16698
  });
16426
16699
  }
@@ -16800,9 +17073,9 @@ var SwcIfScript = class SwcIfScript2 extends SwcHTMLScriptElementBase {
16800
17073
  if (isTruthy && this._masterTplNodes.length > 0) {
16801
17074
  this._masterTplNodes.forEach((tplNode) => {
16802
17075
  const clone = tplNode.cloneNode(true);
16803
- this.appendChild(clone);
16804
17076
  if (clone.style)
16805
17077
  clone.style.display = "contents";
17078
+ this.appendChild(clone);
16806
17079
  this.applyData(clone, this._swcValue);
16807
17080
  });
16808
17081
  }
@@ -17182,9 +17455,9 @@ var SwcIfSelect = class SwcIfSelect2 extends SwcHTMLSelectElementBase {
17182
17455
  if (isTruthy && this._masterTplNodes.length > 0) {
17183
17456
  this._masterTplNodes.forEach((tplNode) => {
17184
17457
  const clone = tplNode.cloneNode(true);
17185
- this.appendChild(clone);
17186
17458
  if (clone.style)
17187
17459
  clone.style.display = "contents";
17460
+ this.appendChild(clone);
17188
17461
  this.applyData(clone, this._swcValue);
17189
17462
  });
17190
17463
  }
@@ -17564,9 +17837,9 @@ var SwcIfSlot = class SwcIfSlot2 extends SwcHTMLSlotElementBase {
17564
17837
  if (isTruthy && this._masterTplNodes.length > 0) {
17565
17838
  this._masterTplNodes.forEach((tplNode) => {
17566
17839
  const clone = tplNode.cloneNode(true);
17567
- this.appendChild(clone);
17568
17840
  if (clone.style)
17569
17841
  clone.style.display = "contents";
17842
+ this.appendChild(clone);
17570
17843
  this.applyData(clone, this._swcValue);
17571
17844
  });
17572
17845
  }
@@ -17946,9 +18219,9 @@ var SwcIfSource = class SwcIfSource2 extends SwcHTMLSourceElementBase {
17946
18219
  if (isTruthy && this._masterTplNodes.length > 0) {
17947
18220
  this._masterTplNodes.forEach((tplNode) => {
17948
18221
  const clone = tplNode.cloneNode(true);
17949
- this.appendChild(clone);
17950
18222
  if (clone.style)
17951
18223
  clone.style.display = "contents";
18224
+ this.appendChild(clone);
17952
18225
  this.applyData(clone, this._swcValue);
17953
18226
  });
17954
18227
  }
@@ -18328,9 +18601,9 @@ var SwcIfSpan = class SwcIfSpan2 extends SwcHTMLSpanElementBase {
18328
18601
  if (isTruthy && this._masterTplNodes.length > 0) {
18329
18602
  this._masterTplNodes.forEach((tplNode) => {
18330
18603
  const clone = tplNode.cloneNode(true);
18331
- this.appendChild(clone);
18332
18604
  if (clone.style)
18333
18605
  clone.style.display = "contents";
18606
+ this.appendChild(clone);
18334
18607
  this.applyData(clone, this._swcValue);
18335
18608
  });
18336
18609
  }
@@ -18710,9 +18983,9 @@ var SwcIfStyle = class SwcIfStyle2 extends SwcHTMLStyleElementBase {
18710
18983
  if (isTruthy && this._masterTplNodes.length > 0) {
18711
18984
  this._masterTplNodes.forEach((tplNode) => {
18712
18985
  const clone = tplNode.cloneNode(true);
18713
- this.appendChild(clone);
18714
18986
  if (clone.style)
18715
18987
  clone.style.display = "contents";
18988
+ this.appendChild(clone);
18716
18989
  this.applyData(clone, this._swcValue);
18717
18990
  });
18718
18991
  }
@@ -19092,9 +19365,9 @@ var SwcIfTable = class SwcIfTable2 extends SwcHTMLTableElementBase {
19092
19365
  if (isTruthy && this._masterTplNodes.length > 0) {
19093
19366
  this._masterTplNodes.forEach((tplNode) => {
19094
19367
  const clone = tplNode.cloneNode(true);
19095
- this.appendChild(clone);
19096
19368
  if (clone.style)
19097
19369
  clone.style.display = "contents";
19370
+ this.appendChild(clone);
19098
19371
  this.applyData(clone, this._swcValue);
19099
19372
  });
19100
19373
  }
@@ -19474,9 +19747,9 @@ var SwcIfTableSection = class SwcIfTableSection2 extends SwcHTMLTableSectionElem
19474
19747
  if (isTruthy && this._masterTplNodes.length > 0) {
19475
19748
  this._masterTplNodes.forEach((tplNode) => {
19476
19749
  const clone = tplNode.cloneNode(true);
19477
- this.appendChild(clone);
19478
19750
  if (clone.style)
19479
19751
  clone.style.display = "contents";
19752
+ this.appendChild(clone);
19480
19753
  this.applyData(clone, this._swcValue);
19481
19754
  });
19482
19755
  }
@@ -19856,9 +20129,9 @@ var SwcIfTableCell = class SwcIfTableCell2 extends SwcHTMLTableCellElementBase {
19856
20129
  if (isTruthy && this._masterTplNodes.length > 0) {
19857
20130
  this._masterTplNodes.forEach((tplNode) => {
19858
20131
  const clone = tplNode.cloneNode(true);
19859
- this.appendChild(clone);
19860
20132
  if (clone.style)
19861
20133
  clone.style.display = "contents";
20134
+ this.appendChild(clone);
19862
20135
  this.applyData(clone, this._swcValue);
19863
20136
  });
19864
20137
  }
@@ -20238,9 +20511,9 @@ var SwcIfTemplate = class SwcIfTemplate2 extends SwcHTMLTemplateElementBase {
20238
20511
  if (isTruthy && this._masterTplNodes.length > 0) {
20239
20512
  this._masterTplNodes.forEach((tplNode) => {
20240
20513
  const clone = tplNode.cloneNode(true);
20241
- this.appendChild(clone);
20242
20514
  if (clone.style)
20243
20515
  clone.style.display = "contents";
20516
+ this.appendChild(clone);
20244
20517
  this.applyData(clone, this._swcValue);
20245
20518
  });
20246
20519
  }
@@ -20620,9 +20893,9 @@ var SwcIfTextArea = class SwcIfTextArea2 extends SwcHTMLTextAreaElementBase {
20620
20893
  if (isTruthy && this._masterTplNodes.length > 0) {
20621
20894
  this._masterTplNodes.forEach((tplNode) => {
20622
20895
  const clone = tplNode.cloneNode(true);
20623
- this.appendChild(clone);
20624
20896
  if (clone.style)
20625
20897
  clone.style.display = "contents";
20898
+ this.appendChild(clone);
20626
20899
  this.applyData(clone, this._swcValue);
20627
20900
  });
20628
20901
  }
@@ -21002,9 +21275,9 @@ var SwcIfTime = class SwcIfTime2 extends SwcHTMLTimeElementBase {
21002
21275
  if (isTruthy && this._masterTplNodes.length > 0) {
21003
21276
  this._masterTplNodes.forEach((tplNode) => {
21004
21277
  const clone = tplNode.cloneNode(true);
21005
- this.appendChild(clone);
21006
21278
  if (clone.style)
21007
21279
  clone.style.display = "contents";
21280
+ this.appendChild(clone);
21008
21281
  this.applyData(clone, this._swcValue);
21009
21282
  });
21010
21283
  }
@@ -21384,9 +21657,9 @@ var SwcIfTitle = class SwcIfTitle2 extends SwcHTMLTitleElementBase {
21384
21657
  if (isTruthy && this._masterTplNodes.length > 0) {
21385
21658
  this._masterTplNodes.forEach((tplNode) => {
21386
21659
  const clone = tplNode.cloneNode(true);
21387
- this.appendChild(clone);
21388
21660
  if (clone.style)
21389
21661
  clone.style.display = "contents";
21662
+ this.appendChild(clone);
21390
21663
  this.applyData(clone, this._swcValue);
21391
21664
  });
21392
21665
  }
@@ -21766,9 +22039,9 @@ var SwcIfTableRow = class SwcIfTableRow2 extends SwcHTMLTableRowElementBase {
21766
22039
  if (isTruthy && this._masterTplNodes.length > 0) {
21767
22040
  this._masterTplNodes.forEach((tplNode) => {
21768
22041
  const clone = tplNode.cloneNode(true);
21769
- this.appendChild(clone);
21770
22042
  if (clone.style)
21771
22043
  clone.style.display = "contents";
22044
+ this.appendChild(clone);
21772
22045
  this.applyData(clone, this._swcValue);
21773
22046
  });
21774
22047
  }
@@ -22148,9 +22421,9 @@ var SwcIfTrack = class SwcIfTrack2 extends SwcHTMLTrackElementBase {
22148
22421
  if (isTruthy && this._masterTplNodes.length > 0) {
22149
22422
  this._masterTplNodes.forEach((tplNode) => {
22150
22423
  const clone = tplNode.cloneNode(true);
22151
- this.appendChild(clone);
22152
22424
  if (clone.style)
22153
22425
  clone.style.display = "contents";
22426
+ this.appendChild(clone);
22154
22427
  this.applyData(clone, this._swcValue);
22155
22428
  });
22156
22429
  }
@@ -22530,9 +22803,9 @@ var SwcIfUl = class SwcIfUl2 extends SwcHTMLUListElementBase {
22530
22803
  if (isTruthy && this._masterTplNodes.length > 0) {
22531
22804
  this._masterTplNodes.forEach((tplNode) => {
22532
22805
  const clone = tplNode.cloneNode(true);
22533
- this.appendChild(clone);
22534
22806
  if (clone.style)
22535
22807
  clone.style.display = "contents";
22808
+ this.appendChild(clone);
22536
22809
  this.applyData(clone, this._swcValue);
22537
22810
  });
22538
22811
  }
@@ -22912,9 +23185,9 @@ var SwcIfVideo = class SwcIfVideo2 extends SwcHTMLVideoElementBase {
22912
23185
  if (isTruthy && this._masterTplNodes.length > 0) {
22913
23186
  this._masterTplNodes.forEach((tplNode) => {
22914
23187
  const clone = tplNode.cloneNode(true);
22915
- this.appendChild(clone);
22916
23188
  if (clone.style)
22917
23189
  clone.style.display = "contents";
23190
+ this.appendChild(clone);
22918
23191
  this.applyData(clone, this._swcValue);
22919
23192
  });
22920
23193
  }
@@ -23294,9 +23567,9 @@ var SwcIfHeading = class SwcIfHeading2 extends SwcHTMLHeadingElementBase {
23294
23567
  if (isTruthy && this._masterTplNodes.length > 0) {
23295
23568
  this._masterTplNodes.forEach((tplNode) => {
23296
23569
  const clone = tplNode.cloneNode(true);
23297
- this.appendChild(clone);
23298
23570
  if (clone.style)
23299
23571
  clone.style.display = "contents";
23572
+ this.appendChild(clone);
23300
23573
  this.applyData(clone, this._swcValue);
23301
23574
  });
23302
23575
  }
@@ -23517,18 +23790,23 @@ SwcOtherHeading = __decorate342([
23517
23790
  ], SwcOtherHeading);
23518
23791
  export {
23519
23792
  ADD_EVENT_LISTENER_METADATA_KEY,
23520
- ATTRIBUTE_CHANGED_METADATA_KEY,
23521
23793
  ATTRIBUTE_CHANGED_WILDCARD,
23794
+ ATTRIBUTE_METADATA_KEY,
23522
23795
  ELEMENT_CONFIG_KEY,
23796
+ EMIT_CUSTOM_EVENT_METADATA_KEY,
23523
23797
  INNER_HTML_METADATA_KEY,
23798
+ ON_ADD_EVENT_LISTENER_METADATA_KEY,
23524
23799
  ON_AFTER_ADOPTED_METADATA_KEY,
23525
23800
  ON_AFTER_CONNECTED_METADATA_KEY,
23526
23801
  ON_AFTER_DISCONNECTED_METADATA_KEY,
23802
+ ON_ATTRIBUTE_CHANGED_METADATA_KEY,
23527
23803
  ON_BEFORE_ADOPTED_METADATA_KEY,
23528
23804
  ON_BEFORE_CONNECTED_METADATA_KEY,
23529
23805
  ON_BEFORE_DISCONNECTED_METADATA_KEY,
23530
23806
  QUERY_ALL_METADATA_KEY,
23531
23807
  QUERY_METADATA_KEY,
23808
+ STATE_CHANGE_EVENT,
23809
+ STATE_METADATA_KEY,
23532
23810
  SwcChoose,
23533
23811
  SwcChooseAnchor,
23534
23812
  SwcChooseArea,
@@ -23930,27 +24208,33 @@ export {
23930
24208
  SwcWhenUl,
23931
24209
  SwcWhenVideo,
23932
24210
  addEventListener,
23933
- attributeChanged,
24211
+ attribute,
23934
24212
  elementDefine,
24213
+ emitCustomEvent,
23935
24214
  getAddEventListenerMetadata,
23936
- getAttributeChangedMap,
24215
+ getAttributeMetadataList,
23937
24216
  getElementConfig,
24217
+ getEmitCustomEventMetadataList,
23938
24218
  getInnerHtmlMetadataList,
23939
24219
  getLifecycleMetadata,
23940
24220
  getQueryAllMetadata,
23941
24221
  getQueryMetadata,
24222
+ getStateMetadataList,
23942
24223
  innerHtml,
24224
+ onAddEventListener,
23943
24225
  onAdopted,
23944
24226
  onAfterAdopted,
23945
24227
  onAfterConnected,
23946
24228
  onAfterDisconnected,
24229
+ onAttributeChanged,
23947
24230
  onBeforeAdopted,
23948
24231
  onBeforeConnected,
23949
24232
  onBeforeDisconnected,
23950
24233
  onConnected,
23951
24234
  onDisconnected,
23952
24235
  query,
23953
- queryAll
24236
+ queryAll,
24237
+ state
23954
24238
  };
23955
24239
  /*! Bundled license information:
23956
24240