@nova-design-system/nova-webcomponents 3.0.0-beta.30 → 3.0.0-beta.31

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 (475) hide show
  1. package/dist/blazor-docs.json +944 -1609
  2. package/dist/cjs/{app-globals-d8cbb987.js → app-globals-69764290.js} +2 -2
  3. package/dist/cjs/{app-globals-d8cbb987.js.map → app-globals-69764290.js.map} +1 -1
  4. package/dist/cjs/{index-c50face0.js → index-72b8a9ad.js} +856 -497
  5. package/dist/cjs/index-72b8a9ad.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/cjs/native.cjs.js +4 -4
  8. package/dist/cjs/native.cjs.js.map +1 -1
  9. package/dist/cjs/nv-alert.cjs.entry.js +22 -9
  10. package/dist/cjs/nv-alert.cjs.entry.js.map +1 -1
  11. package/dist/cjs/nv-avatar.cjs.entry.js +8 -11
  12. package/dist/cjs/nv-avatar.cjs.entry.js.map +1 -1
  13. package/dist/cjs/nv-badge.cjs.entry.js +145 -0
  14. package/dist/cjs/nv-badge.cjs.entry.js.map +1 -0
  15. package/dist/cjs/nv-base.cjs.entry.js +1 -1
  16. package/dist/cjs/nv-button.cjs.entry.js +40 -8
  17. package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
  18. package/dist/cjs/nv-col.cjs.entry.js +1 -2
  19. package/dist/cjs/nv-col.cjs.entry.js.map +1 -1
  20. package/dist/cjs/nv-datagrid.cjs.entry.js +31 -5
  21. package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
  22. package/dist/cjs/nv-datagridbody.cjs.entry.js +1 -1
  23. package/dist/cjs/nv-datagridcolumn.cjs.entry.js +1 -3
  24. package/dist/cjs/nv-datagridcolumn.cjs.entry.js.map +1 -1
  25. package/dist/cjs/nv-datagriddatacell.cjs.entry.js +1 -2
  26. package/dist/cjs/nv-datagriddatacell.cjs.entry.js.map +1 -1
  27. package/dist/cjs/nv-datagridhead.cjs.entry.js +1 -1
  28. package/dist/cjs/nv-datagridrow.cjs.entry.js +1 -1
  29. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +40 -9
  30. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
  31. package/dist/cjs/nv-fielddropdown.cjs.entry.js +59 -20
  32. package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
  33. package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +13 -7
  34. package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
  35. package/dist/cjs/nv-fieldnumber.cjs.entry.js +48 -22
  36. package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
  37. package/dist/cjs/nv-fieldpassword.cjs.entry.js +65 -24
  38. package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
  39. package/dist/cjs/nv-fieldradio.cjs.entry.js +29 -11
  40. package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -1
  41. package/dist/cjs/nv-fieldselect.cjs.entry.js +65 -24
  42. package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
  43. package/dist/cjs/nv-fieldtext.cjs.entry.js +55 -25
  44. package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
  45. package/dist/cjs/nv-fieldtextarea.cjs.entry.js +61 -23
  46. package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
  47. package/dist/cjs/nv-fieldtoggle.cjs.entry.js +21 -8
  48. package/dist/cjs/nv-fieldtoggle.cjs.entry.js.map +1 -1
  49. package/dist/cjs/nv-icon.cjs.entry.js +5 -10
  50. package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
  51. package/dist/cjs/{nv-iconbutton_2.cjs.entry.js → nv-iconbutton.cjs.entry.js} +44 -31
  52. package/dist/cjs/nv-iconbutton.cjs.entry.js.map +1 -0
  53. package/dist/cjs/nv-loader.cjs.entry.js +35 -0
  54. package/dist/cjs/nv-loader.cjs.entry.js.map +1 -0
  55. package/dist/cjs/nv-menu.cjs.entry.js +21 -2
  56. package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
  57. package/dist/cjs/nv-menuitem.cjs.entry.js +7 -3
  58. package/dist/cjs/nv-menuitem.cjs.entry.js.map +1 -1
  59. package/dist/cjs/nv-popover.cjs.entry.js +49 -13
  60. package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
  61. package/dist/cjs/nv-row.cjs.entry.js +2 -2
  62. package/dist/cjs/nv-stack.cjs.entry.js +8 -6
  63. package/dist/cjs/nv-stack.cjs.entry.js.map +1 -1
  64. package/dist/cjs/nv-table.cjs.entry.js +28 -7
  65. package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
  66. package/dist/cjs/nv-tablebody.cjs.entry.js +2 -2
  67. package/dist/cjs/nv-tablecolumn.cjs.entry.js +16 -5
  68. package/dist/cjs/nv-tablecolumn.cjs.entry.js.map +1 -1
  69. package/dist/cjs/nv-tabledatacell.cjs.entry.js +18 -3
  70. package/dist/cjs/nv-tabledatacell.cjs.entry.js.map +1 -1
  71. package/dist/cjs/nv-tablehead.cjs.entry.js +2 -2
  72. package/dist/cjs/nv-tablerow.cjs.entry.js +2 -2
  73. package/dist/cjs/nv-tooltip.cjs.entry.js +12 -3
  74. package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
  75. package/dist/collection/collection-manifest.json +1 -3
  76. package/dist/collection/components/nv-alert/nv-alert.js +37 -8
  77. package/dist/collection/components/nv-alert/nv-alert.js.map +1 -1
  78. package/dist/collection/components/nv-avatar/nv-avatar.js +31 -10
  79. package/dist/collection/components/nv-avatar/nv-avatar.js.map +1 -1
  80. package/dist/collection/components/nv-badge/nv-badge.css +20 -20
  81. package/dist/collection/components/nv-badge/nv-badge.js +54 -10
  82. package/dist/collection/components/nv-badge/nv-badge.js.map +1 -1
  83. package/dist/collection/components/nv-button/nv-button.js +53 -7
  84. package/dist/collection/components/nv-button/nv-button.js.map +1 -1
  85. package/dist/collection/components/nv-col/nv-col.js +2 -3
  86. package/dist/collection/components/nv-col/nv-col.js.map +1 -1
  87. package/dist/collection/components/nv-datagrid/nv-datagrid.js +42 -4
  88. package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
  89. package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +4 -4
  90. package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +1 -1
  91. package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js +2 -3
  92. package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js.map +1 -1
  93. package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +73 -8
  94. package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +1 -1
  95. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.css +17 -6
  96. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +87 -18
  97. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
  98. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.css +9 -17
  99. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +19 -5
  100. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +1 -1
  101. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +1 -1
  102. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +80 -20
  103. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -1
  104. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +102 -23
  105. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -1
  106. package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +52 -10
  107. package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +1 -1
  108. package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +1 -1
  109. package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +93 -22
  110. package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -1
  111. package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +96 -24
  112. package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
  113. package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +101 -25
  114. package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -1
  115. package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +40 -7
  116. package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js.map +1 -1
  117. package/dist/collection/components/nv-icon/nv-icon.js +20 -9
  118. package/dist/collection/components/nv-icon/nv-icon.js.map +1 -1
  119. package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +58 -9
  120. package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +1 -1
  121. package/dist/collection/components/nv-loader/nv-loader.js +12 -2
  122. package/dist/collection/components/nv-loader/nv-loader.js.map +1 -1
  123. package/dist/collection/components/nv-menu/nv-menu.js +28 -1
  124. package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
  125. package/dist/collection/components/nv-menuitem/nv-menuitem.js +14 -2
  126. package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +1 -1
  127. package/dist/collection/components/nv-popover/nv-popover.js +72 -14
  128. package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
  129. package/dist/collection/components/nv-row/nv-row.js +1 -1
  130. package/dist/collection/components/nv-stack/nv-stack.js +17 -5
  131. package/dist/collection/components/nv-stack/nv-stack.js.map +1 -1
  132. package/dist/collection/components/nv-table/nv-table.js +39 -6
  133. package/dist/collection/components/nv-table/nv-table.js.map +1 -1
  134. package/dist/collection/components/nv-tablebody/nv-tablebody.js +1 -1
  135. package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js +25 -4
  136. package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js.map +1 -1
  137. package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js +23 -2
  138. package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js.map +1 -1
  139. package/dist/collection/components/nv-tablehead/nv-tablehead.js +1 -1
  140. package/dist/collection/components/nv-tablerow/nv-tablerow.js +1 -1
  141. package/dist/collection/components/nv-tooltip/nv-tooltip.js +17 -2
  142. package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +1 -1
  143. package/dist/components/index.js +3 -3
  144. package/dist/components/nv-alert.js +23 -10
  145. package/dist/components/nv-alert.js.map +1 -1
  146. package/dist/components/nv-avatar.js +9 -12
  147. package/dist/components/nv-avatar.js.map +1 -1
  148. package/dist/components/nv-badge.js +173 -1
  149. package/dist/components/nv-badge.js.map +1 -1
  150. package/dist/components/nv-base.js +1 -1
  151. package/dist/components/nv-button.js +41 -9
  152. package/dist/components/nv-button.js.map +1 -1
  153. package/dist/components/nv-col.js +1 -2
  154. package/dist/components/nv-col.js.map +1 -1
  155. package/dist/components/nv-datagrid.js +31 -5
  156. package/dist/components/nv-datagrid.js.map +1 -1
  157. package/dist/components/nv-datagridbody.js +1 -1
  158. package/dist/components/nv-datagridcolumn.js +1 -3
  159. package/dist/components/nv-datagridcolumn.js.map +1 -1
  160. package/dist/components/nv-datagriddatacell.js +1 -2
  161. package/dist/components/nv-datagriddatacell.js.map +1 -1
  162. package/dist/components/nv-datagridhead.js +1 -1
  163. package/dist/components/nv-datagridrow.js +1 -1
  164. package/dist/components/nv-fieldcheckbox.js +152 -1
  165. package/dist/components/nv-fieldcheckbox.js.map +1 -1
  166. package/dist/components/nv-fielddropdown.js +64 -25
  167. package/dist/components/nv-fielddropdown.js.map +1 -1
  168. package/dist/components/nv-fielddropdownitem.js +1 -1
  169. package/dist/components/nv-fieldnumber.js +49 -23
  170. package/dist/components/nv-fieldnumber.js.map +1 -1
  171. package/dist/components/nv-fieldpassword.js +68 -27
  172. package/dist/components/nv-fieldpassword.js.map +1 -1
  173. package/dist/components/nv-fieldradio.js +29 -11
  174. package/dist/components/nv-fieldradio.js.map +1 -1
  175. package/dist/components/nv-fieldselect.js +66 -25
  176. package/dist/components/nv-fieldselect.js.map +1 -1
  177. package/dist/components/nv-fieldtext.js +56 -26
  178. package/dist/components/nv-fieldtext.js.map +1 -1
  179. package/dist/components/nv-fieldtextarea.js +62 -24
  180. package/dist/components/nv-fieldtextarea.js.map +1 -1
  181. package/dist/components/nv-fieldtoggle.js +21 -8
  182. package/dist/components/nv-fieldtoggle.js.map +1 -1
  183. package/dist/components/nv-icon.js +1 -1
  184. package/dist/components/nv-iconbutton.js +1 -1
  185. package/dist/components/nv-loader.js +1 -1
  186. package/dist/components/nv-menu.js +22 -3
  187. package/dist/components/nv-menu.js.map +1 -1
  188. package/dist/components/nv-menuitem.js +8 -4
  189. package/dist/components/nv-menuitem.js.map +1 -1
  190. package/dist/components/nv-popover.js +1 -1
  191. package/dist/components/nv-row.js +2 -2
  192. package/dist/components/nv-stack.js +8 -6
  193. package/dist/components/nv-stack.js.map +1 -1
  194. package/dist/components/nv-table.js +28 -7
  195. package/dist/components/nv-table.js.map +1 -1
  196. package/dist/components/nv-tablebody.js +2 -2
  197. package/dist/components/nv-tablecolumn.js +16 -5
  198. package/dist/components/nv-tablecolumn.js.map +1 -1
  199. package/dist/components/nv-tabledatacell.js +18 -3
  200. package/dist/components/nv-tabledatacell.js.map +1 -1
  201. package/dist/components/nv-tablehead.js +2 -2
  202. package/dist/components/nv-tablerow.js +2 -2
  203. package/dist/components/nv-tooltip.js +13 -4
  204. package/dist/components/nv-tooltip.js.map +1 -1
  205. package/dist/components/{p-d506ae63.js → p-0caa4741.js} +836 -491
  206. package/dist/components/p-0caa4741.js.map +1 -0
  207. package/dist/components/{p-d5dd3def.js → p-1fa35ae5.js} +51 -15
  208. package/dist/components/p-1fa35ae5.js.map +1 -0
  209. package/dist/components/{p-d70df149.js → p-39e93e5b.js} +6 -11
  210. package/dist/components/p-39e93e5b.js.map +1 -0
  211. package/dist/components/{p-a1aa8970.js → p-3ef4ded9.js} +10 -4
  212. package/dist/components/p-3ef4ded9.js.map +1 -0
  213. package/dist/components/{p-ae6a0d80.js → p-c08a278d.js} +207 -172
  214. package/dist/components/p-c08a278d.js.map +1 -0
  215. package/dist/components/{p-b12abc99.js → p-ca5c171f.js} +15 -9
  216. package/dist/components/p-ca5c171f.js.map +1 -0
  217. package/dist/components/{p-8bec002e.js → p-f0d5586a.js} +46 -13
  218. package/dist/components/p-f0d5586a.js.map +1 -0
  219. package/dist/docs.d.ts +8 -0
  220. package/dist/docs.json +941 -1590
  221. package/dist/esm/{app-globals-eea8674a.js → app-globals-c5484a00.js} +2 -2
  222. package/dist/esm/{app-globals-eea8674a.js.map → app-globals-c5484a00.js.map} +1 -1
  223. package/dist/esm/{index-e7b35c14.js → index-b6f70e4a.js} +856 -497
  224. package/dist/esm/index-b6f70e4a.js.map +1 -0
  225. package/dist/esm/loader.js +4 -4
  226. package/dist/esm/native.js +5 -5
  227. package/dist/esm/native.js.map +1 -1
  228. package/dist/esm/nv-alert.entry.js +22 -9
  229. package/dist/esm/nv-alert.entry.js.map +1 -1
  230. package/dist/esm/nv-avatar.entry.js +8 -11
  231. package/dist/esm/nv-avatar.entry.js.map +1 -1
  232. package/dist/esm/nv-badge.entry.js +141 -0
  233. package/dist/esm/nv-badge.entry.js.map +1 -0
  234. package/dist/esm/nv-base.entry.js +1 -1
  235. package/dist/esm/nv-button.entry.js +40 -8
  236. package/dist/esm/nv-button.entry.js.map +1 -1
  237. package/dist/esm/nv-col.entry.js +1 -2
  238. package/dist/esm/nv-col.entry.js.map +1 -1
  239. package/dist/esm/nv-datagrid.entry.js +31 -5
  240. package/dist/esm/nv-datagrid.entry.js.map +1 -1
  241. package/dist/esm/nv-datagridbody.entry.js +1 -1
  242. package/dist/esm/nv-datagridcolumn.entry.js +1 -3
  243. package/dist/esm/nv-datagridcolumn.entry.js.map +1 -1
  244. package/dist/esm/nv-datagriddatacell.entry.js +1 -2
  245. package/dist/esm/nv-datagriddatacell.entry.js.map +1 -1
  246. package/dist/esm/nv-datagridhead.entry.js +1 -1
  247. package/dist/esm/nv-datagridrow.entry.js +1 -1
  248. package/dist/esm/nv-fieldcheckbox.entry.js +40 -9
  249. package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
  250. package/dist/esm/nv-fielddropdown.entry.js +59 -20
  251. package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
  252. package/dist/esm/nv-fielddropdownitem.entry.js +13 -7
  253. package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
  254. package/dist/esm/nv-fieldnumber.entry.js +48 -22
  255. package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
  256. package/dist/esm/nv-fieldpassword.entry.js +65 -24
  257. package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
  258. package/dist/esm/nv-fieldradio.entry.js +29 -11
  259. package/dist/esm/nv-fieldradio.entry.js.map +1 -1
  260. package/dist/esm/nv-fieldselect.entry.js +65 -24
  261. package/dist/esm/nv-fieldselect.entry.js.map +1 -1
  262. package/dist/esm/nv-fieldtext.entry.js +55 -25
  263. package/dist/esm/nv-fieldtext.entry.js.map +1 -1
  264. package/dist/esm/nv-fieldtextarea.entry.js +61 -23
  265. package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
  266. package/dist/esm/nv-fieldtoggle.entry.js +21 -8
  267. package/dist/esm/nv-fieldtoggle.entry.js.map +1 -1
  268. package/dist/esm/nv-icon.entry.js +5 -10
  269. package/dist/esm/nv-icon.entry.js.map +1 -1
  270. package/dist/esm/{nv-iconbutton_2.entry.js → nv-iconbutton.entry.js} +45 -31
  271. package/dist/esm/nv-iconbutton.entry.js.map +1 -0
  272. package/dist/esm/nv-loader.entry.js +31 -0
  273. package/dist/esm/nv-loader.entry.js.map +1 -0
  274. package/dist/esm/nv-menu.entry.js +21 -2
  275. package/dist/esm/nv-menu.entry.js.map +1 -1
  276. package/dist/esm/nv-menuitem.entry.js +7 -3
  277. package/dist/esm/nv-menuitem.entry.js.map +1 -1
  278. package/dist/esm/nv-popover.entry.js +49 -13
  279. package/dist/esm/nv-popover.entry.js.map +1 -1
  280. package/dist/esm/nv-row.entry.js +2 -2
  281. package/dist/esm/nv-stack.entry.js +8 -6
  282. package/dist/esm/nv-stack.entry.js.map +1 -1
  283. package/dist/esm/nv-table.entry.js +28 -7
  284. package/dist/esm/nv-table.entry.js.map +1 -1
  285. package/dist/esm/nv-tablebody.entry.js +2 -2
  286. package/dist/esm/nv-tablecolumn.entry.js +16 -5
  287. package/dist/esm/nv-tablecolumn.entry.js.map +1 -1
  288. package/dist/esm/nv-tabledatacell.entry.js +18 -3
  289. package/dist/esm/nv-tabledatacell.entry.js.map +1 -1
  290. package/dist/esm/nv-tablehead.entry.js +2 -2
  291. package/dist/esm/nv-tablerow.entry.js +2 -2
  292. package/dist/esm/nv-tooltip.entry.js +12 -3
  293. package/dist/esm/nv-tooltip.entry.js.map +1 -1
  294. package/dist/native/native.css +1 -1
  295. package/dist/native/native.esm.js +1 -1
  296. package/dist/native/native.esm.js.map +1 -1
  297. package/dist/native/p-01262eaf.entry.js +2 -0
  298. package/dist/native/p-01262eaf.entry.js.map +1 -0
  299. package/dist/native/p-0bf2007c.entry.js +2 -0
  300. package/dist/native/p-0bf2007c.entry.js.map +1 -0
  301. package/dist/native/{p-69ca8c88.entry.js → p-11faaf31.entry.js} +2 -2
  302. package/dist/native/p-11faaf31.entry.js.map +1 -0
  303. package/dist/native/p-17dba26d.entry.js +2 -0
  304. package/dist/native/{p-c8f36510.entry.js → p-2a6ca749.entry.js} +2 -2
  305. package/dist/native/p-2a6ca749.entry.js.map +1 -0
  306. package/dist/native/{p-91d30cd7.entry.js → p-31367928.entry.js} +2 -2
  307. package/dist/native/p-31367928.entry.js.map +1 -0
  308. package/dist/native/p-327fa1a0.entry.js +2 -0
  309. package/dist/native/{p-dbade286.entry.js → p-380bcc2b.entry.js} +2 -2
  310. package/dist/native/p-380bcc2b.entry.js.map +1 -0
  311. package/dist/native/p-47c78fe4.entry.js +2 -0
  312. package/dist/native/p-47c78fe4.entry.js.map +1 -0
  313. package/dist/native/{p-305951e4.entry.js → p-4a64f5b0.entry.js} +2 -2
  314. package/dist/native/p-4a64f5b0.entry.js.map +1 -0
  315. package/dist/native/{p-13070761.entry.js → p-50c31094.entry.js} +2 -2
  316. package/dist/native/p-50c31094.entry.js.map +1 -0
  317. package/dist/native/{p-a59ec107.entry.js → p-605f8b3d.entry.js} +2 -2
  318. package/dist/native/p-605f8b3d.entry.js.map +1 -0
  319. package/dist/native/p-64ae9a21.entry.js +2 -0
  320. package/dist/native/p-64ae9a21.entry.js.map +1 -0
  321. package/dist/native/{p-20c7fc4d.entry.js → p-6e8bcd5b.entry.js} +2 -2
  322. package/dist/native/p-6e8bcd5b.entry.js.map +1 -0
  323. package/dist/native/{p-92e3e334.entry.js → p-6eb50254.entry.js} +2 -2
  324. package/dist/native/p-6eb50254.entry.js.map +1 -0
  325. package/dist/native/p-6ef216c4.js +3 -0
  326. package/dist/native/p-6ef216c4.js.map +1 -0
  327. package/dist/native/{p-1aaee302.entry.js → p-7701e4cc.entry.js} +2 -2
  328. package/dist/native/p-7701e4cc.entry.js.map +1 -0
  329. package/dist/native/p-86947929.entry.js +2 -0
  330. package/dist/native/{p-982e474f.entry.js.map → p-86947929.entry.js.map} +1 -1
  331. package/dist/native/p-8f95f4fa.entry.js +2 -0
  332. package/dist/native/p-8f95f4fa.entry.js.map +1 -0
  333. package/dist/native/{p-12eaebd6.entry.js → p-919cf3ec.entry.js} +2 -2
  334. package/dist/native/p-919cf3ec.entry.js.map +1 -0
  335. package/dist/native/p-93eea6e1.entry.js +2 -0
  336. package/dist/native/{p-e842220b.entry.js.map → p-93eea6e1.entry.js.map} +1 -1
  337. package/dist/native/p-95714583.js +2 -0
  338. package/dist/native/p-9f89229b.entry.js +2 -0
  339. package/dist/native/{p-2fca31c0.entry.js.map → p-9f89229b.entry.js.map} +1 -1
  340. package/dist/native/p-9fe47948.entry.js +2 -0
  341. package/dist/native/p-9fe47948.entry.js.map +1 -0
  342. package/dist/native/{p-7b2d8b8c.entry.js → p-a89f5542.entry.js} +2 -2
  343. package/dist/native/p-a89f5542.entry.js.map +1 -0
  344. package/dist/native/p-afbc5259.entry.js +2 -0
  345. package/dist/native/p-afbc5259.entry.js.map +1 -0
  346. package/dist/native/p-b3ec71c9.entry.js +2 -0
  347. package/dist/native/p-bbe9a373.entry.js +2 -0
  348. package/dist/native/p-c2dfee1a.entry.js +2 -0
  349. package/dist/native/p-c5e3e234.entry.js +2 -0
  350. package/dist/native/p-c5e3e234.entry.js.map +1 -0
  351. package/dist/native/{p-36d5158c.entry.js → p-c85d031d.entry.js} +3 -3
  352. package/dist/native/p-c85d031d.entry.js.map +1 -0
  353. package/dist/native/{p-5b4bdbe2.entry.js → p-d4277c50.entry.js} +2 -2
  354. package/dist/native/p-d4277c50.entry.js.map +1 -0
  355. package/dist/native/p-dacd68ab.entry.js +2 -0
  356. package/dist/native/p-dacd68ab.entry.js.map +1 -0
  357. package/dist/native/p-de9d0b05.entry.js +2 -0
  358. package/dist/native/p-de9d0b05.entry.js.map +1 -0
  359. package/dist/native/{p-65ad60eb.entry.js → p-df6c9137.entry.js} +2 -2
  360. package/dist/native/p-df6c9137.entry.js.map +1 -0
  361. package/dist/native/p-e05b0c4a.entry.js +2 -0
  362. package/dist/native/p-e05b0c4a.entry.js.map +1 -0
  363. package/dist/native/{p-330c929d.entry.js → p-e71fc762.entry.js} +2 -2
  364. package/dist/native/p-ef7f605a.entry.js +2 -0
  365. package/dist/native/p-f2e31579.entry.js +2 -0
  366. package/dist/native/{p-671699bf.entry.js.map → p-f2e31579.entry.js.map} +1 -1
  367. package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +2 -2
  368. package/dist/types/components.d.ts +8 -337
  369. package/dist/vscode-data.json +4 -328
  370. package/hydrate/index.js +1858 -2215
  371. package/hydrate/index.mjs +1858 -2215
  372. package/package.json +1 -1
  373. package/dist/cjs/index-c50face0.js.map +0 -1
  374. package/dist/cjs/nv-badge_2.cjs.entry.js +0 -159
  375. package/dist/cjs/nv-badge_2.cjs.entry.js.map +0 -1
  376. package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +0 -1038
  377. package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +0 -1
  378. package/dist/cjs/nv-iconbutton_2.cjs.entry.js.map +0 -1
  379. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.css +0 -12
  380. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +0 -6
  381. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js.map +0 -1
  382. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +0 -171
  383. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js.map +0 -1
  384. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.css +0 -201
  385. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +0 -257
  386. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +0 -1
  387. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +0 -1578
  388. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +0 -1
  389. package/dist/components/nv-fielddropdownitemcheck.d.ts +0 -11
  390. package/dist/components/nv-fielddropdownitemcheck.js +0 -8
  391. package/dist/components/nv-fielddropdownitemcheck.js.map +0 -1
  392. package/dist/components/nv-fieldmultiselect.d.ts +0 -11
  393. package/dist/components/nv-fieldmultiselect.js +0 -1129
  394. package/dist/components/nv-fieldmultiselect.js.map +0 -1
  395. package/dist/components/p-5ce661bd.js +0 -125
  396. package/dist/components/p-5ce661bd.js.map +0 -1
  397. package/dist/components/p-8bec002e.js.map +0 -1
  398. package/dist/components/p-a1aa8970.js.map +0 -1
  399. package/dist/components/p-a4802979.js +0 -151
  400. package/dist/components/p-a4802979.js.map +0 -1
  401. package/dist/components/p-ae6a0d80.js.map +0 -1
  402. package/dist/components/p-b12abc99.js.map +0 -1
  403. package/dist/components/p-d506ae63.js.map +0 -1
  404. package/dist/components/p-d5dd3def.js.map +0 -1
  405. package/dist/components/p-d70df149.js.map +0 -1
  406. package/dist/components/p-e4641c41.js +0 -72
  407. package/dist/components/p-e4641c41.js.map +0 -1
  408. package/dist/esm/index-e7b35c14.js.map +0 -1
  409. package/dist/esm/nv-badge_2.entry.js +0 -154
  410. package/dist/esm/nv-badge_2.entry.js.map +0 -1
  411. package/dist/esm/nv-fieldmultiselect.entry.js +0 -1034
  412. package/dist/esm/nv-fieldmultiselect.entry.js.map +0 -1
  413. package/dist/esm/nv-iconbutton_2.entry.js.map +0 -1
  414. package/dist/native/p-0fbb962b.entry.js +0 -2
  415. package/dist/native/p-0fbb962b.entry.js.map +0 -1
  416. package/dist/native/p-12eaebd6.entry.js.map +0 -1
  417. package/dist/native/p-13070761.entry.js.map +0 -1
  418. package/dist/native/p-1aaee302.entry.js.map +0 -1
  419. package/dist/native/p-1c689ec7.entry.js +0 -2
  420. package/dist/native/p-1c689ec7.entry.js.map +0 -1
  421. package/dist/native/p-20c7fc4d.entry.js.map +0 -1
  422. package/dist/native/p-2fca31c0.entry.js +0 -2
  423. package/dist/native/p-305951e4.entry.js.map +0 -1
  424. package/dist/native/p-306d1f04.entry.js +0 -2
  425. package/dist/native/p-306d1f04.entry.js.map +0 -1
  426. package/dist/native/p-36d5158c.entry.js.map +0 -1
  427. package/dist/native/p-39dbb15b.entry.js +0 -2
  428. package/dist/native/p-39dbb15b.entry.js.map +0 -1
  429. package/dist/native/p-3f912745.entry.js +0 -2
  430. package/dist/native/p-3f912745.entry.js.map +0 -1
  431. package/dist/native/p-4e351d8e.entry.js +0 -2
  432. package/dist/native/p-4e351d8e.entry.js.map +0 -1
  433. package/dist/native/p-589eb477.entry.js +0 -2
  434. package/dist/native/p-5b4bdbe2.entry.js.map +0 -1
  435. package/dist/native/p-65ad60eb.entry.js.map +0 -1
  436. package/dist/native/p-671699bf.entry.js +0 -2
  437. package/dist/native/p-69ca8c88.entry.js.map +0 -1
  438. package/dist/native/p-7a7b9b95.entry.js +0 -2
  439. package/dist/native/p-7b2d8b8c.entry.js.map +0 -1
  440. package/dist/native/p-7b3a4cbf.entry.js +0 -2
  441. package/dist/native/p-7b3a4cbf.entry.js.map +0 -1
  442. package/dist/native/p-91d30cd7.entry.js.map +0 -1
  443. package/dist/native/p-92e3e334.entry.js.map +0 -1
  444. package/dist/native/p-982e474f.entry.js +0 -2
  445. package/dist/native/p-a03df637.entry.js +0 -2
  446. package/dist/native/p-a03df637.entry.js.map +0 -1
  447. package/dist/native/p-a5582014.entry.js +0 -2
  448. package/dist/native/p-a5582014.entry.js.map +0 -1
  449. package/dist/native/p-a59ec107.entry.js.map +0 -1
  450. package/dist/native/p-a7a3c45f.entry.js +0 -2
  451. package/dist/native/p-a7be7540.entry.js +0 -2
  452. package/dist/native/p-a7be7540.entry.js.map +0 -1
  453. package/dist/native/p-a8c0fefa.entry.js +0 -2
  454. package/dist/native/p-a8c0fefa.entry.js.map +0 -1
  455. package/dist/native/p-b4aea326.js +0 -3
  456. package/dist/native/p-b4aea326.js.map +0 -1
  457. package/dist/native/p-c8f36510.entry.js.map +0 -1
  458. package/dist/native/p-d3d682a7.entry.js +0 -2
  459. package/dist/native/p-d4c0a1e0.entry.js +0 -2
  460. package/dist/native/p-dbade286.entry.js.map +0 -1
  461. package/dist/native/p-e842220b.entry.js +0 -2
  462. package/dist/native/p-eeb6a3dc.js +0 -2
  463. package/dist/native/p-f7b96c42.entry.js +0 -2
  464. package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.d.ts +0 -52
  465. package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.d.ts +0 -4
  466. package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +0 -405
  467. package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.d.ts +0 -4
  468. /package/dist/native/{p-a7a3c45f.entry.js.map → p-17dba26d.entry.js.map} +0 -0
  469. /package/dist/native/{p-d4c0a1e0.entry.js.map → p-327fa1a0.entry.js.map} +0 -0
  470. /package/dist/native/{p-eeb6a3dc.js.map → p-95714583.js.map} +0 -0
  471. /package/dist/native/{p-589eb477.entry.js.map → p-b3ec71c9.entry.js.map} +0 -0
  472. /package/dist/native/{p-7a7b9b95.entry.js.map → p-bbe9a373.entry.js.map} +0 -0
  473. /package/dist/native/{p-d3d682a7.entry.js.map → p-c2dfee1a.entry.js.map} +0 -0
  474. /package/dist/native/{p-330c929d.entry.js.map → p-e71fc762.entry.js.map} +0 -0
  475. /package/dist/native/{p-f7b96c42.entry.js.map → p-ef7f605a.entry.js.map} +0 -0
@@ -1,14 +1,21 @@
1
1
  const NAMESPACE = 'native';
2
- const BUILD = /* native */ { allRenderFn: true, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: true, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: false, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: true, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* native */ { allRenderFn: true, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: true, experimentalSlotFixes: true, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: false, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: true, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.23.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/utils/constants.ts
14
+ var EMPTY_OBJ = {};
15
+ var SVG_NS = "http://www.w3.org/2000/svg";
16
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
17
+
18
+ // src/client/client-host-ref.ts
12
19
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
20
  var getHostRef = (ref) => hostRefs.get(ref);
14
21
  var registerHost = (hostElement, cmpMeta) => {
@@ -23,7 +30,8 @@ var registerHost = (hostElement, cmpMeta) => {
23
30
  hostElement["s-p"] = [];
24
31
  hostElement["s-rc"] = [];
25
32
  }
26
- return hostRefs.set(hostElement, hostRef);
33
+ const ref = hostRefs.set(hostElement, hostRef);
34
+ return ref;
27
35
  };
28
36
  var isMemberInElement = (elm, memberName) => memberName in elm;
29
37
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -63,6 +71,7 @@ var CONTENT_REF_ID = "r";
63
71
  var ORG_LOCATION_ID = "o";
64
72
  var SLOT_NODE_ID = "s";
65
73
  var TEXT_NODE_ID = "t";
74
+ var COMMENT_NODE_ID = "c";
66
75
  var HYDRATE_ID = "s-id";
67
76
  var HYDRATED_STYLE_ID = "sty-id";
68
77
  var HYDRATE_CHILD_ID = "c-id";
@@ -154,14 +163,6 @@ var getAssetPath = (path) => {
154
163
  return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
155
164
  };
156
165
  var setAssetPath = (path) => plt.$resourcesUrl$ = path;
157
-
158
- // src/utils/constants.ts
159
- var EMPTY_OBJ = {};
160
- var SVG_NS = "http://www.w3.org/2000/svg";
161
- var HTML_NS = "http://www.w3.org/1999/xhtml";
162
-
163
- // src/utils/helpers.ts
164
- var isDef = (v) => v != null;
165
166
  var isComplexType = (o) => {
166
167
  o = typeof o;
167
168
  return o === "object" || o === "function";
@@ -221,19 +222,94 @@ var unwrapErr = (result) => {
221
222
  throw result.value;
222
223
  }
223
224
  };
224
- var createTime = (fnName, tagName = "") => {
225
- {
226
- return () => {
227
- return;
228
- };
225
+ var updateFallbackSlotVisibility = (elm) => {
226
+ const childNodes = elm.__childNodes || elm.childNodes;
227
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
228
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
229
+ var _a;
230
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
231
+ if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
232
+ slotNode.hidden = true;
233
+ } else {
234
+ slotNode.hidden = false;
235
+ }
236
+ }
237
+ });
238
+ }
239
+ for (const childNode of childNodes) {
240
+ if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
241
+ updateFallbackSlotVisibility(childNode);
242
+ }
229
243
  }
230
244
  };
231
- var uniqueTime = (key, measureText) => {
232
- {
233
- return () => {
234
- return;
235
- };
245
+ var getHostSlotNodes = (childNodes, hostName, slotName) => {
246
+ let i2 = 0;
247
+ let slottedNodes = [];
248
+ let childNode;
249
+ for (; i2 < childNodes.length; i2++) {
250
+ childNode = childNodes[i2];
251
+ if (childNode["s-sr"] && childNode["s-hn"] === hostName && (!slotName || childNode["s-sn"] === slotName)) {
252
+ slottedNodes.push(childNode);
253
+ if (typeof slotName !== "undefined") return slottedNodes;
254
+ }
255
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
256
+ }
257
+ return slottedNodes;
258
+ };
259
+ var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
260
+ const childNodes = [];
261
+ if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
262
+ while ((node = node.nextSibling) && node["s-sn"] === slotName) {
263
+ childNodes.push(node);
264
+ }
265
+ return childNodes;
266
+ };
267
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
268
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
269
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
270
+ return true;
271
+ }
272
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
273
+ return true;
274
+ }
275
+ return false;
276
+ }
277
+ if (nodeToRelocate["s-sn"] === slotName) {
278
+ return true;
279
+ }
280
+ return slotName === "";
281
+ };
282
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
283
+ let slottedNodeLocation;
284
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
285
+ slottedNodeLocation = newChild["s-ol"];
286
+ } else {
287
+ slottedNodeLocation = document.createTextNode("");
288
+ slottedNodeLocation["s-nr"] = newChild;
289
+ }
290
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
291
+ const parent = slotNode["s-cr"].parentNode;
292
+ const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
293
+ if (typeof position !== "undefined") {
294
+ {
295
+ slottedNodeLocation["s-oo"] = position;
296
+ const childNodes = parent.__childNodes || parent.childNodes;
297
+ const slotRelocateNodes = [slottedNodeLocation];
298
+ childNodes.forEach((n) => {
299
+ if (n["s-nr"]) slotRelocateNodes.push(n);
300
+ });
301
+ slotRelocateNodes.sort((a, b) => {
302
+ if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
303
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
304
+ return 0;
305
+ });
306
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
307
+ }
308
+ } else {
309
+ appendMethod.call(parent, slottedNodeLocation);
236
310
  }
311
+ newChild["s-ol"] = slottedNodeLocation;
312
+ newChild["s-sh"] = slotNode["s-hn"];
237
313
  };
238
314
  var h = (nodeName, vnodeData, ...children) => {
239
315
  let child = null;
@@ -309,394 +385,115 @@ var newVNode = (tag, text) => {
309
385
  };
310
386
  var Host = {};
311
387
  var isHost = (node) => node && node.$tag$ === Host;
312
-
313
- // src/runtime/client-hydrate.ts
314
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
315
- const endHydrate = createTime("hydrateClient", tagName);
316
- const shadowRoot = hostElm.shadowRoot;
317
- const childRenderNodes = [];
318
- const slotNodes = [];
319
- const shadowRootNodes = null;
320
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
321
- if (!plt.$orgLocNodes$) {
322
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
323
- }
324
- hostElm[HYDRATE_ID] = hostId;
325
- hostElm.removeAttribute(HYDRATE_ID);
326
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
327
- childRenderNodes.map((c) => {
328
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
329
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
330
- const node = c.$elm$;
331
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
332
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
333
- }
334
- if (!shadowRoot) {
335
- node["s-hn"] = tagName;
336
- if (orgLocationNode) {
337
- node["s-ol"] = orgLocationNode;
338
- node["s-ol"]["s-nr"] = node;
388
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
389
+ if (oldValue !== newValue) {
390
+ let isProp = isMemberInElement(elm, memberName);
391
+ let ln = memberName.toLowerCase();
392
+ if (memberName === "class") {
393
+ const classList = elm.classList;
394
+ const oldClasses = parseClassList(oldValue);
395
+ let newClasses = parseClassList(newValue);
396
+ if (elm["s-si"]) {
397
+ newClasses.push(elm["s-si"]);
398
+ oldClasses.forEach((c) => {
399
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
400
+ });
401
+ newClasses = [...new Set(newClasses)];
402
+ classList.add(...newClasses);
403
+ delete elm["s-si"];
404
+ } else {
405
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
406
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
339
407
  }
340
- }
341
- plt.$orgLocNodes$.delete(orgLocationId);
342
- });
343
- endHydrate();
344
- };
345
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
346
- let childNodeType;
347
- let childIdSplt;
348
- let childVNode;
349
- let i2;
350
- if (node.nodeType === 1 /* ElementNode */) {
351
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
352
- if (childNodeType) {
353
- childIdSplt = childNodeType.split(".");
354
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
355
- childVNode = {
356
- $flags$: 0,
357
- $hostId$: childIdSplt[0],
358
- $nodeId$: childIdSplt[1],
359
- $depth$: childIdSplt[2],
360
- $index$: childIdSplt[3],
361
- $tag$: node.tagName.toLowerCase(),
362
- $elm$: node,
363
- $attrs$: null,
364
- $children$: null,
365
- $key$: null,
366
- $name$: null,
367
- $text$: null
368
- };
369
- childRenderNodes.push(childVNode);
370
- node.removeAttribute(HYDRATE_CHILD_ID);
371
- if (!parentVNode.$children$) {
372
- parentVNode.$children$ = [];
408
+ } else if (memberName === "style") {
409
+ {
410
+ for (const prop in oldValue) {
411
+ if (!newValue || newValue[prop] == null) {
412
+ if (prop.includes("-")) {
413
+ elm.style.removeProperty(prop);
414
+ } else {
415
+ elm.style[prop] = "";
416
+ }
417
+ }
373
418
  }
374
- parentVNode.$children$[childVNode.$index$] = childVNode;
375
- parentVNode = childVNode;
376
- if (shadowRootNodes && childVNode.$depth$ === "0") {
377
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
419
+ }
420
+ for (const prop in newValue) {
421
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
422
+ if (prop.includes("-")) {
423
+ elm.style.setProperty(prop, newValue[prop]);
424
+ } else {
425
+ elm.style[prop] = newValue[prop];
426
+ }
378
427
  }
379
428
  }
380
- }
381
- if (node.shadowRoot) {
382
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
383
- clientHydrate(
384
- parentVNode,
385
- childRenderNodes,
386
- slotNodes,
387
- shadowRootNodes,
388
- hostElm,
389
- node.shadowRoot.childNodes[i2],
390
- hostId
391
- );
429
+ } else if (memberName === "key") ; else if (memberName === "ref") {
430
+ if (newValue) {
431
+ newValue(elm);
392
432
  }
393
- }
394
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
395
- clientHydrate(
396
- parentVNode,
397
- childRenderNodes,
398
- slotNodes,
399
- shadowRootNodes,
400
- hostElm,
401
- node.childNodes[i2],
402
- hostId
403
- );
404
- }
405
- } else if (node.nodeType === 8 /* CommentNode */) {
406
- childIdSplt = node.nodeValue.split(".");
407
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
408
- childNodeType = childIdSplt[0];
409
- childVNode = {
410
- $flags$: 0,
411
- $hostId$: childIdSplt[1],
412
- $nodeId$: childIdSplt[2],
413
- $depth$: childIdSplt[3],
414
- $index$: childIdSplt[4],
415
- $elm$: node,
416
- $attrs$: null,
417
- $children$: null,
418
- $key$: null,
419
- $name$: null,
420
- $tag$: null,
421
- $text$: null
422
- };
423
- if (childNodeType === TEXT_NODE_ID) {
424
- childVNode.$elm$ = node.nextSibling;
425
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
426
- childVNode.$text$ = childVNode.$elm$.textContent;
427
- childRenderNodes.push(childVNode);
428
- node.remove();
429
- if (!parentVNode.$children$) {
430
- parentVNode.$children$ = [];
431
- }
432
- parentVNode.$children$[childVNode.$index$] = childVNode;
433
- if (shadowRootNodes && childVNode.$depth$ === "0") {
434
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
435
- }
433
+ } else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
434
+ if (memberName[2] === "-") {
435
+ memberName = memberName.slice(3);
436
+ } else if (isMemberInElement(win, ln)) {
437
+ memberName = ln.slice(2);
438
+ } else {
439
+ memberName = ln[2] + memberName.slice(3);
440
+ }
441
+ if (oldValue || newValue) {
442
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
443
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
444
+ if (oldValue) {
445
+ plt.rel(elm, memberName, oldValue, capture);
436
446
  }
437
- } else if (childVNode.$hostId$ === hostId) {
438
- if (childNodeType === SLOT_NODE_ID) {
439
- childVNode.$tag$ = "slot";
440
- if (childIdSplt[5]) {
441
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
447
+ if (newValue) {
448
+ plt.ael(elm, memberName, newValue, capture);
449
+ }
450
+ }
451
+ } else {
452
+ const isComplex = isComplexType(newValue);
453
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
454
+ try {
455
+ if (!elm.tagName.includes("-")) {
456
+ const n = newValue == null ? "" : newValue;
457
+ if (memberName === "list") {
458
+ isProp = false;
459
+ } else if (oldValue == null || elm[memberName] != n) {
460
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
461
+ elm[memberName] = n;
462
+ } else {
463
+ elm.setAttribute(memberName, n);
464
+ }
465
+ }
442
466
  } else {
443
- node["s-sn"] = "";
444
- }
445
- node["s-sr"] = true;
446
- slotNodes.push(childVNode);
447
- if (!parentVNode.$children$) {
448
- parentVNode.$children$ = [];
467
+ elm[memberName] = newValue;
449
468
  }
450
- parentVNode.$children$[childVNode.$index$] = childVNode;
451
- } else if (childNodeType === CONTENT_REF_ID) {
469
+ } catch (e) {
470
+ }
471
+ }
472
+ if (newValue == null || newValue === false) {
473
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
452
474
  {
453
- hostElm["s-cr"] = node;
454
- node["s-cn"] = true;
475
+ elm.removeAttribute(memberName);
455
476
  }
456
477
  }
478
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
479
+ newValue = newValue === true ? "" : newValue;
480
+ {
481
+ elm.setAttribute(memberName, newValue);
482
+ }
457
483
  }
458
484
  }
459
- } else if (parentVNode && parentVNode.$tag$ === "style") {
460
- const vnode = newVNode(null, node.textContent);
461
- vnode.$elm$ = node;
462
- vnode.$index$ = "0";
463
- parentVNode.$children$ = [vnode];
464
485
  }
465
486
  };
466
- var initializeDocumentHydrate = (node, orgLocNodes) => {
467
- if (node.nodeType === 1 /* ElementNode */) {
468
- let i2 = 0;
469
- if (node.shadowRoot) {
470
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
471
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
472
- }
473
- }
474
- for (i2 = 0; i2 < node.childNodes.length; i2++) {
475
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
476
- }
477
- } else if (node.nodeType === 8 /* CommentNode */) {
478
- const childIdSplt = node.nodeValue.split(".");
479
- if (childIdSplt[0] === ORG_LOCATION_ID) {
480
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
481
- node.nodeValue = "";
482
- node["s-en"] = childIdSplt[3];
483
- }
487
+ var parseClassListRegex = /\s/;
488
+ var parseClassList = (value) => {
489
+ if (typeof value === "object" && "baseVal" in value) {
490
+ value = value.baseVal;
491
+ }
492
+ if (!value) {
493
+ return [];
484
494
  }
495
+ return value.split(parseClassListRegex);
485
496
  };
486
- var parsePropertyValue = (propValue, propType) => {
487
- if (propValue != null && !isComplexType(propValue)) {
488
- if (propType & 4 /* Boolean */) {
489
- return propValue === "false" ? false : propValue === "" || !!propValue;
490
- }
491
- if (propType & 2 /* Number */) {
492
- return parseFloat(propValue);
493
- }
494
- if (propType & 1 /* String */) {
495
- return String(propValue);
496
- }
497
- return propValue;
498
- }
499
- return propValue;
500
- };
501
- var getElement = (ref) => ref;
502
-
503
- // src/runtime/event-emitter.ts
504
- var createEvent = (ref, name, flags) => {
505
- const elm = getElement(ref);
506
- return {
507
- emit: (detail) => {
508
- return emitEvent(elm, name, {
509
- bubbles: !!(flags & 4 /* Bubbles */),
510
- composed: !!(flags & 2 /* Composed */),
511
- cancelable: !!(flags & 1 /* Cancellable */),
512
- detail
513
- });
514
- }
515
- };
516
- };
517
- var emitEvent = (elm, name, opts) => {
518
- const ev = plt.ce(name, opts);
519
- elm.dispatchEvent(ev);
520
- return ev;
521
- };
522
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
523
- var registerStyle = (scopeId2, cssText, allowCS) => {
524
- let style = styles.get(scopeId2);
525
- if (supportsConstructableStylesheets && allowCS) {
526
- style = style || new CSSStyleSheet();
527
- if (typeof style === "string") {
528
- style = cssText;
529
- } else {
530
- style.replaceSync(cssText);
531
- }
532
- } else {
533
- style = cssText;
534
- }
535
- styles.set(scopeId2, style);
536
- };
537
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
538
- var _a;
539
- const scopeId2 = getScopeId(cmpMeta);
540
- const style = styles.get(scopeId2);
541
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
542
- if (style) {
543
- if (typeof style === "string") {
544
- styleContainerNode = styleContainerNode.head || styleContainerNode;
545
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
546
- let styleElm;
547
- if (!appliedStyles) {
548
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
549
- }
550
- if (!appliedStyles.has(scopeId2)) {
551
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
552
- styleElm.innerHTML = style;
553
- } else {
554
- styleElm = doc.createElement("style");
555
- styleElm.innerHTML = style;
556
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
557
- if (nonce != null) {
558
- styleElm.setAttribute("nonce", nonce);
559
- }
560
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
561
- if (styleContainerNode.nodeName === "HEAD") {
562
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
563
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
564
- styleContainerNode.insertBefore(styleElm, referenceNode2);
565
- } else if ("host" in styleContainerNode) {
566
- if (supportsConstructableStylesheets) {
567
- const stylesheet = new CSSStyleSheet();
568
- stylesheet.replaceSync(style);
569
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
570
- } else {
571
- const existingStyleContainer = styleContainerNode.querySelector("style");
572
- if (existingStyleContainer) {
573
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
574
- } else {
575
- styleContainerNode.prepend(styleElm);
576
- }
577
- }
578
- } else {
579
- styleContainerNode.append(styleElm);
580
- }
581
- }
582
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
583
- styleContainerNode.insertBefore(styleElm, null);
584
- }
585
- }
586
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
587
- styleElm.innerHTML += SLOT_FB_CSS;
588
- }
589
- if (appliedStyles) {
590
- appliedStyles.add(scopeId2);
591
- }
592
- }
593
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
594
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
595
- }
596
- }
597
- return scopeId2;
598
- };
599
- var attachStyles = (hostRef) => {
600
- const cmpMeta = hostRef.$cmpMeta$;
601
- const elm = hostRef.$hostElement$;
602
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
603
- addStyle(
604
- elm.getRootNode(),
605
- cmpMeta);
606
- endAttachStyles();
607
- };
608
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
609
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
610
- if (oldValue !== newValue) {
611
- let isProp = isMemberInElement(elm, memberName);
612
- let ln = memberName.toLowerCase();
613
- if (memberName === "class") {
614
- const classList = elm.classList;
615
- const oldClasses = parseClassList(oldValue);
616
- const newClasses = parseClassList(newValue);
617
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
618
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
619
- } else if (memberName === "style") {
620
- {
621
- for (const prop in oldValue) {
622
- if (!newValue || newValue[prop] == null) {
623
- if (prop.includes("-")) {
624
- elm.style.removeProperty(prop);
625
- } else {
626
- elm.style[prop] = "";
627
- }
628
- }
629
- }
630
- }
631
- for (const prop in newValue) {
632
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
633
- if (prop.includes("-")) {
634
- elm.style.setProperty(prop, newValue[prop]);
635
- } else {
636
- elm.style[prop] = newValue[prop];
637
- }
638
- }
639
- }
640
- } else if (memberName === "key") ; else if (memberName === "ref") {
641
- if (newValue) {
642
- newValue(elm);
643
- }
644
- } else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
645
- if (memberName[2] === "-") {
646
- memberName = memberName.slice(3);
647
- } else if (isMemberInElement(win, ln)) {
648
- memberName = ln.slice(2);
649
- } else {
650
- memberName = ln[2] + memberName.slice(3);
651
- }
652
- if (oldValue || newValue) {
653
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
654
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
655
- if (oldValue) {
656
- plt.rel(elm, memberName, oldValue, capture);
657
- }
658
- if (newValue) {
659
- plt.ael(elm, memberName, newValue, capture);
660
- }
661
- }
662
- } else {
663
- const isComplex = isComplexType(newValue);
664
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
665
- try {
666
- if (!elm.tagName.includes("-")) {
667
- const n = newValue == null ? "" : newValue;
668
- if (memberName === "list") {
669
- isProp = false;
670
- } else if (oldValue == null || elm[memberName] != n) {
671
- if (typeof elm.__lookupSetter__(memberName) === "function") {
672
- elm[memberName] = n;
673
- } else {
674
- elm.setAttribute(memberName, n);
675
- }
676
- }
677
- } else {
678
- elm[memberName] = newValue;
679
- }
680
- } catch (e) {
681
- }
682
- }
683
- if (newValue == null || newValue === false) {
684
- if (newValue !== false || elm.getAttribute(memberName) === "") {
685
- {
686
- elm.removeAttribute(memberName);
687
- }
688
- }
689
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
690
- newValue = newValue === true ? "" : newValue;
691
- {
692
- elm.setAttribute(memberName, newValue);
693
- }
694
- }
695
- }
696
- }
697
- };
698
- var parseClassListRegex = /\s/;
699
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
700
497
  var CAPTURE_EVENT_SUFFIX = "Capture";
701
498
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
702
499
 
@@ -725,16 +522,13 @@ function sortedAttrNames(attrNames) {
725
522
  attrNames
726
523
  );
727
524
  }
728
-
729
- // src/runtime/vdom/vdom-render.ts
730
- var scopeId;
731
525
  var contentRef;
732
526
  var hostTagName;
733
527
  var useNativeShadowDom = false;
734
528
  var checkSlotFallbackVisibility = false;
735
529
  var checkSlotRelocate = false;
736
530
  var isSvgMode = false;
737
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
531
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
738
532
  var _a;
739
533
  const newVNode2 = newParentVNode.$children$[childIndex];
740
534
  let i2 = 0;
@@ -774,11 +568,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
774
568
  {
775
569
  updateElement(null, newVNode2, isSvgMode);
776
570
  }
777
- const rootNode = elm.getRootNode();
778
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
779
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
780
- elm.classList.add(elm["s-si"] = scopeId);
781
- }
782
571
  if (newVNode2.$children$) {
783
572
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
784
573
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -816,8 +605,12 @@ var relocateToHostRoot = (parentElm) => {
816
605
  plt.$flags$ |= 1 /* isTmpDisconnected */;
817
606
  const host = parentElm.closest(hostTagName.toLowerCase());
818
607
  if (host != null) {
819
- const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
820
- const childNodeArray = Array.from(parentElm.childNodes);
608
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
609
+ (ref) => ref["s-cr"]
610
+ );
611
+ const childNodeArray = Array.from(
612
+ parentElm.__childNodes || parentElm.childNodes
613
+ );
821
614
  for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
822
615
  if (childNode["s-sh"] != null) {
823
616
  insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
@@ -830,7 +623,7 @@ var relocateToHostRoot = (parentElm) => {
830
623
  };
831
624
  var putBackInOriginalLocation = (parentElm, recursive) => {
832
625
  plt.$flags$ |= 1 /* isTmpDisconnected */;
833
- const oldSlotChildNodes = Array.from(parentElm.childNodes);
626
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
834
627
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
835
628
  let node = parentElm;
836
629
  while (node = node.nextSibling) {
@@ -842,7 +635,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
842
635
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
843
636
  const childNode = oldSlotChildNodes[i2];
844
637
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
845
- insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
638
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
846
639
  childNode["s-ol"].remove();
847
640
  childNode["s-ol"] = void 0;
848
641
  childNode["s-sh"] = void 0;
@@ -959,7 +752,11 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
959
752
  }
960
753
  if (node) {
961
754
  {
962
- insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
755
+ insertBefore(
756
+ referenceNode(oldStartVnode.$elm$).parentNode,
757
+ node,
758
+ referenceNode(oldStartVnode.$elm$)
759
+ );
963
760
  }
964
761
  }
965
762
  }
@@ -980,28 +777,19 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
980
777
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
981
778
  if (leftVNode.$tag$ === rightVNode.$tag$) {
982
779
  if (leftVNode.$tag$ === "slot") {
983
- if (
984
- // The component gets hydrated and no VDOM has been initialized.
985
- // Here the comparison can't happen as $name$ property is not set for `leftNode`.
986
- "$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
987
- // hydration comments to be removed
988
- leftVNode.$elm$.nodeType !== 8
989
- ) {
990
- return false;
991
- }
992
780
  return leftVNode.$name$ === rightVNode.$name$;
993
781
  }
994
782
  if (!isInitialRender) {
995
783
  return leftVNode.$key$ === rightVNode.$key$;
996
784
  }
785
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
786
+ leftVNode.$key$ = rightVNode.$key$;
787
+ }
997
788
  return true;
998
789
  }
999
790
  return false;
1000
791
  };
1001
- var referenceNode = (node) => {
1002
- return node && node["s-ol"] || node;
1003
- };
1004
- var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
792
+ var referenceNode = (node) => node && node["s-ol"] || node;
1005
793
  var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1006
794
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
1007
795
  const oldChildren = oldVNode.$children$;
@@ -1045,41 +833,15 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1045
833
  elm.data = text;
1046
834
  }
1047
835
  };
1048
- var updateFallbackSlotVisibility = (elm) => {
1049
- const childNodes = elm.childNodes;
1050
- for (const childNode of childNodes) {
1051
- if (childNode.nodeType === 1 /* ElementNode */) {
1052
- if (childNode["s-sr"]) {
1053
- const slotName = childNode["s-sn"];
1054
- childNode.hidden = false;
1055
- for (const siblingNode of childNodes) {
1056
- if (siblingNode !== childNode) {
1057
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1058
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
1059
- childNode.hidden = true;
1060
- break;
1061
- }
1062
- } else {
1063
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1064
- childNode.hidden = true;
1065
- break;
1066
- }
1067
- }
1068
- }
1069
- }
1070
- }
1071
- updateFallbackSlotVisibility(childNode);
1072
- }
1073
- }
1074
- };
1075
836
  var relocateNodes = [];
1076
837
  var markSlotContentForRelocation = (elm) => {
1077
838
  let node;
1078
839
  let hostContentNodes;
1079
840
  let j;
1080
- for (const childNode of elm.childNodes) {
841
+ const children = elm.__childNodes || elm.childNodes;
842
+ for (const childNode of children) {
1081
843
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1082
- hostContentNodes = node.parentNode.childNodes;
844
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1083
845
  const slotName = childNode["s-sn"];
1084
846
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1085
847
  node = hostContentNodes[j];
@@ -1121,21 +883,6 @@ var markSlotContentForRelocation = (elm) => {
1121
883
  }
1122
884
  }
1123
885
  };
1124
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1125
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1126
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1127
- return true;
1128
- }
1129
- if (nodeToRelocate.getAttribute("slot") === slotName) {
1130
- return true;
1131
- }
1132
- return false;
1133
- }
1134
- if (nodeToRelocate["s-sn"] === slotName) {
1135
- return true;
1136
- }
1137
- return slotName === "";
1138
- };
1139
886
  var nullifyVNodeRefs = (vNode) => {
1140
887
  {
1141
888
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
@@ -1147,7 +894,7 @@ var insertBefore = (parent, newNode, reference) => {
1147
894
  return inserted;
1148
895
  };
1149
896
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1150
- var _a, _b, _c, _d;
897
+ var _a, _b, _c, _d, _e;
1151
898
  const hostElm = hostRef.$hostElement$;
1152
899
  const cmpMeta = hostRef.$cmpMeta$;
1153
900
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1194,7 +941,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1194
941
  if (slotRefNode) {
1195
942
  const parentNodeRef = slotRefNode.parentNode;
1196
943
  let insertBeforeNode = slotRefNode.nextSibling;
1197
- if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
944
+ if ((insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */)) {
1198
945
  let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1199
946
  while (orgLocationNode) {
1200
947
  let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
@@ -1214,7 +961,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1214
961
  if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1215
962
  if (nodeToRelocate !== insertBeforeNode) {
1216
963
  insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1217
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
964
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1218
965
  nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1219
966
  }
1220
967
  }
@@ -1236,19 +983,580 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1236
983
  plt.$flags$ &= ~1 /* isTmpDisconnected */;
1237
984
  relocateNodes.length = 0;
1238
985
  }
986
+ if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
987
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
988
+ for (const childNode of children) {
989
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
990
+ if (isInitialLoad && childNode["s-ih"] == null) {
991
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
992
+ }
993
+ childNode.hidden = true;
994
+ }
995
+ }
996
+ }
1239
997
  contentRef = void 0;
1240
998
  };
1241
-
1242
- // src/runtime/update-component.ts
1243
- var attachToAncestor = (hostRef, ancestorComponent) => {
1244
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1245
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
999
+ var patchNextPrev = (node) => {
1000
+ if (!node || node.__nextSibling || !globalThis.Node) return;
1001
+ patchNextSibling(node);
1002
+ patchPreviousSibling(node);
1003
+ if (node.nodeType === Node.ELEMENT_NODE) {
1004
+ patchNextElementSibling(node);
1005
+ patchPreviousElementSibling(node);
1246
1006
  }
1247
1007
  };
1248
- var scheduleUpdate = (hostRef, isInitialLoad) => {
1249
- {
1250
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1251
- }
1008
+ var patchNextSibling = (node) => {
1009
+ if (!node || node.__nextSibling) return;
1010
+ patchHostOriginalAccessor("nextSibling", node);
1011
+ Object.defineProperty(node, "nextSibling", {
1012
+ get: function() {
1013
+ var _a;
1014
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1015
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1016
+ if (parentNodes && index > -1) {
1017
+ return parentNodes[index + 1];
1018
+ }
1019
+ return this.__nextSibling;
1020
+ }
1021
+ });
1022
+ };
1023
+ var patchNextElementSibling = (element) => {
1024
+ if (!element || element.__nextElementSibling) return;
1025
+ patchHostOriginalAccessor("nextElementSibling", element);
1026
+ Object.defineProperty(element, "nextElementSibling", {
1027
+ get: function() {
1028
+ var _a;
1029
+ const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1030
+ const index = parentEles == null ? void 0 : parentEles.indexOf(this);
1031
+ if (parentEles && index > -1) {
1032
+ return parentEles[index + 1];
1033
+ }
1034
+ return this.__nextElementSibling;
1035
+ }
1036
+ });
1037
+ };
1038
+ var patchPreviousSibling = (node) => {
1039
+ if (!node || node.__previousSibling) return;
1040
+ patchHostOriginalAccessor("previousSibling", node);
1041
+ Object.defineProperty(node, "previousSibling", {
1042
+ get: function() {
1043
+ var _a;
1044
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1045
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1046
+ if (parentNodes && index > -1) {
1047
+ return parentNodes[index - 1];
1048
+ }
1049
+ return this.__previousSibling;
1050
+ }
1051
+ });
1052
+ };
1053
+ var patchPreviousElementSibling = (element) => {
1054
+ if (!element || element.__previousElementSibling) return;
1055
+ patchHostOriginalAccessor("previousElementSibling", element);
1056
+ Object.defineProperty(element, "previousElementSibling", {
1057
+ get: function() {
1058
+ var _a;
1059
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1060
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1061
+ if (parentNodes && index > -1) {
1062
+ return parentNodes[index - 1];
1063
+ }
1064
+ return this.__previousElementSibling;
1065
+ }
1066
+ });
1067
+ };
1068
+ var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
1069
+ var validNodesPatches = [
1070
+ "childNodes",
1071
+ "firstChild",
1072
+ "lastChild",
1073
+ "nextSibling",
1074
+ "previousSibling",
1075
+ "textContent"
1076
+ ];
1077
+ function patchHostOriginalAccessor(accessorName, node) {
1078
+ let accessor;
1079
+ if (validElementPatches.includes(accessorName)) {
1080
+ accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
1081
+ } else if (validNodesPatches.includes(accessorName)) {
1082
+ accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
1083
+ }
1084
+ if (!accessor) {
1085
+ accessor = Object.getOwnPropertyDescriptor(node, accessorName);
1086
+ }
1087
+ if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
1088
+ }
1089
+ var createTime = (fnName, tagName = "") => {
1090
+ {
1091
+ return () => {
1092
+ return;
1093
+ };
1094
+ }
1095
+ };
1096
+ var uniqueTime = (key, measureText) => {
1097
+ {
1098
+ return () => {
1099
+ return;
1100
+ };
1101
+ }
1102
+ };
1103
+
1104
+ // src/runtime/client-hydrate.ts
1105
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1106
+ const endHydrate = createTime("hydrateClient", tagName);
1107
+ const shadowRoot = hostElm.shadowRoot;
1108
+ const childRenderNodes = [];
1109
+ const slotNodes = [];
1110
+ const slottedNodes = [];
1111
+ const shadowRootNodes = null;
1112
+ const vnode = newVNode(tagName, null);
1113
+ vnode.$elm$ = hostElm;
1114
+ if (!plt.$orgLocNodes$) {
1115
+ initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1116
+ }
1117
+ hostElm[HYDRATE_ID] = hostId;
1118
+ hostElm.removeAttribute(HYDRATE_ID);
1119
+ hostRef.$vnode$ = clientHydrate(
1120
+ vnode,
1121
+ childRenderNodes,
1122
+ slotNodes,
1123
+ shadowRootNodes,
1124
+ hostElm,
1125
+ hostElm,
1126
+ hostId,
1127
+ slottedNodes
1128
+ );
1129
+ let crIndex = 0;
1130
+ const crLength = childRenderNodes.length;
1131
+ let childRenderNode;
1132
+ for (crIndex; crIndex < crLength; crIndex++) {
1133
+ childRenderNode = childRenderNodes[crIndex];
1134
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1135
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1136
+ const node = childRenderNode.$elm$;
1137
+ if (!shadowRoot) {
1138
+ node["s-hn"] = tagName.toUpperCase();
1139
+ if (childRenderNode.$tag$ === "slot") {
1140
+ node["s-cr"] = hostElm["s-cr"];
1141
+ }
1142
+ }
1143
+ if (childRenderNode.$tag$ === "slot") {
1144
+ if (childRenderNode.$children$) {
1145
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
1146
+ if (!childRenderNode.$elm$.childNodes.length) {
1147
+ childRenderNode.$children$.forEach((c) => {
1148
+ childRenderNode.$elm$.appendChild(c.$elm$);
1149
+ });
1150
+ }
1151
+ } else {
1152
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
1153
+ }
1154
+ }
1155
+ if (orgLocationNode && orgLocationNode.isConnected) {
1156
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
1157
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1158
+ }
1159
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
1160
+ if (!shadowRoot) {
1161
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1162
+ }
1163
+ }
1164
+ plt.$orgLocNodes$.delete(orgLocationId);
1165
+ }
1166
+ const hosts = [];
1167
+ const snLen = slottedNodes.length;
1168
+ let snIndex = 0;
1169
+ let slotGroup;
1170
+ let snGroupIdx;
1171
+ let snGroupLen;
1172
+ let slottedItem;
1173
+ for (snIndex; snIndex < snLen; snIndex++) {
1174
+ slotGroup = slottedNodes[snIndex];
1175
+ if (!slotGroup || !slotGroup.length) continue;
1176
+ snGroupLen = slotGroup.length;
1177
+ snGroupIdx = 0;
1178
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1179
+ slottedItem = slotGroup[snGroupIdx];
1180
+ if (!hosts[slottedItem.hostId]) {
1181
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1182
+ }
1183
+ if (!hosts[slottedItem.hostId]) continue;
1184
+ const hostEle = hosts[slottedItem.hostId];
1185
+ if (!hostEle.shadowRoot || !shadowRoot) {
1186
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
1187
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1188
+ slottedItem.slot["s-cr"] = hostEle;
1189
+ } else {
1190
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
1191
+ }
1192
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
1193
+ {
1194
+ patchNextPrev(slottedItem.node);
1195
+ }
1196
+ }
1197
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1198
+ hostEle.appendChild(slottedItem.node);
1199
+ }
1200
+ }
1201
+ }
1202
+ hostRef.$hostElement$ = hostElm;
1203
+ endHydrate();
1204
+ };
1205
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1206
+ let childNodeType;
1207
+ let childIdSplt;
1208
+ let childVNode;
1209
+ let i2;
1210
+ if (node.nodeType === 1 /* ElementNode */) {
1211
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1212
+ if (childNodeType) {
1213
+ childIdSplt = childNodeType.split(".");
1214
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1215
+ childVNode = createSimpleVNode({
1216
+ $flags$: 0,
1217
+ $hostId$: childIdSplt[0],
1218
+ $nodeId$: childIdSplt[1],
1219
+ $depth$: childIdSplt[2],
1220
+ $index$: childIdSplt[3],
1221
+ $tag$: node.tagName.toLowerCase(),
1222
+ $elm$: node,
1223
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
1224
+ // won't try to reconcile them. Classes set on the node will be blown away.
1225
+ $attrs$: { class: node.className || "" }
1226
+ });
1227
+ childRenderNodes.push(childVNode);
1228
+ node.removeAttribute(HYDRATE_CHILD_ID);
1229
+ if (!parentVNode.$children$) {
1230
+ parentVNode.$children$ = [];
1231
+ }
1232
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
1233
+ if (typeof slotName === "string") {
1234
+ if (childVNode.$tag$ === "slot-fb") {
1235
+ addSlot(
1236
+ slotName,
1237
+ childIdSplt[2],
1238
+ childVNode,
1239
+ node,
1240
+ parentVNode,
1241
+ childRenderNodes,
1242
+ slotNodes,
1243
+ shadowRootNodes,
1244
+ slottedNodes
1245
+ );
1246
+ }
1247
+ childVNode.$elm$["s-sn"] = slotName;
1248
+ childVNode.$elm$.removeAttribute("s-sn");
1249
+ }
1250
+ if (childVNode.$index$ !== void 0) {
1251
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1252
+ }
1253
+ parentVNode = childVNode;
1254
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1255
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1256
+ }
1257
+ }
1258
+ }
1259
+ if (node.shadowRoot) {
1260
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1261
+ clientHydrate(
1262
+ parentVNode,
1263
+ childRenderNodes,
1264
+ slotNodes,
1265
+ shadowRootNodes,
1266
+ hostElm,
1267
+ node.shadowRoot.childNodes[i2],
1268
+ hostId,
1269
+ slottedNodes
1270
+ );
1271
+ }
1272
+ }
1273
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1274
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1275
+ clientHydrate(
1276
+ parentVNode,
1277
+ childRenderNodes,
1278
+ slotNodes,
1279
+ shadowRootNodes,
1280
+ hostElm,
1281
+ nonShadowNodes[i2],
1282
+ hostId,
1283
+ slottedNodes
1284
+ );
1285
+ }
1286
+ } else if (node.nodeType === 8 /* CommentNode */) {
1287
+ childIdSplt = node.nodeValue.split(".");
1288
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1289
+ childNodeType = childIdSplt[0];
1290
+ childVNode = createSimpleVNode({
1291
+ $hostId$: childIdSplt[1],
1292
+ $nodeId$: childIdSplt[2],
1293
+ $depth$: childIdSplt[3],
1294
+ $index$: childIdSplt[4] || "0",
1295
+ $elm$: node,
1296
+ $attrs$: null,
1297
+ $children$: null,
1298
+ $key$: null,
1299
+ $name$: null,
1300
+ $tag$: null,
1301
+ $text$: null
1302
+ });
1303
+ if (childNodeType === TEXT_NODE_ID) {
1304
+ childVNode.$elm$ = node.nextSibling;
1305
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1306
+ childVNode.$text$ = childVNode.$elm$.textContent;
1307
+ childRenderNodes.push(childVNode);
1308
+ node.remove();
1309
+ if (hostId === childVNode.$hostId$) {
1310
+ if (!parentVNode.$children$) {
1311
+ parentVNode.$children$ = [];
1312
+ }
1313
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1314
+ }
1315
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1316
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1317
+ }
1318
+ }
1319
+ } else if (childNodeType === COMMENT_NODE_ID) {
1320
+ childVNode.$elm$ = node.nextSibling;
1321
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1322
+ childRenderNodes.push(childVNode);
1323
+ node.remove();
1324
+ }
1325
+ } else if (childVNode.$hostId$ === hostId) {
1326
+ if (childNodeType === SLOT_NODE_ID) {
1327
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
1328
+ addSlot(
1329
+ slotName,
1330
+ childIdSplt[2],
1331
+ childVNode,
1332
+ node,
1333
+ parentVNode,
1334
+ childRenderNodes,
1335
+ slotNodes,
1336
+ shadowRootNodes,
1337
+ slottedNodes
1338
+ );
1339
+ } else if (childNodeType === CONTENT_REF_ID) {
1340
+ {
1341
+ hostElm["s-cr"] = node;
1342
+ node["s-cn"] = true;
1343
+ }
1344
+ }
1345
+ }
1346
+ }
1347
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
1348
+ const vnode = newVNode(null, node.textContent);
1349
+ vnode.$elm$ = node;
1350
+ vnode.$index$ = "0";
1351
+ parentVNode.$children$ = [vnode];
1352
+ }
1353
+ return parentVNode;
1354
+ };
1355
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1356
+ if (node.nodeType === 1 /* ElementNode */) {
1357
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1358
+ if (componentId) {
1359
+ orgLocNodes.set(componentId, node);
1360
+ }
1361
+ let i2 = 0;
1362
+ if (node.shadowRoot) {
1363
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1364
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1365
+ }
1366
+ }
1367
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1368
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1369
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1370
+ }
1371
+ } else if (node.nodeType === 8 /* CommentNode */) {
1372
+ const childIdSplt = node.nodeValue.split(".");
1373
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1374
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1375
+ node.nodeValue = "";
1376
+ node["s-en"] = childIdSplt[3];
1377
+ }
1378
+ }
1379
+ };
1380
+ var createSimpleVNode = (vnode) => {
1381
+ const defaultVNode = {
1382
+ $flags$: 0,
1383
+ $hostId$: null,
1384
+ $nodeId$: null,
1385
+ $depth$: null,
1386
+ $index$: "0",
1387
+ $elm$: null,
1388
+ $attrs$: null,
1389
+ $children$: null,
1390
+ $key$: null,
1391
+ $name$: null,
1392
+ $tag$: null,
1393
+ $text$: null
1394
+ };
1395
+ return { ...defaultVNode, ...vnode };
1396
+ };
1397
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1398
+ node["s-sr"] = true;
1399
+ childVNode.$name$ = slotName || null;
1400
+ childVNode.$tag$ = "slot";
1401
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1402
+ {
1403
+ const slot = childVNode.$elm$;
1404
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1405
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1406
+ if (shouldMove) {
1407
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1408
+ }
1409
+ childRenderNodes.push(childVNode);
1410
+ }
1411
+ slotNodes.push(childVNode);
1412
+ if (!parentVNode.$children$) {
1413
+ parentVNode.$children$ = [];
1414
+ }
1415
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1416
+ }
1417
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1418
+ let slottedNode = slotNode.nextSibling;
1419
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1420
+ while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
1421
+ slottedNode["s-sn"] = slotName;
1422
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1423
+ slottedNode = slottedNode.nextSibling;
1424
+ }
1425
+ };
1426
+ var parsePropertyValue = (propValue, propType) => {
1427
+ if (propValue != null && !isComplexType(propValue)) {
1428
+ if (propType & 4 /* Boolean */) {
1429
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1430
+ }
1431
+ if (propType & 2 /* Number */) {
1432
+ return parseFloat(propValue);
1433
+ }
1434
+ if (propType & 1 /* String */) {
1435
+ return String(propValue);
1436
+ }
1437
+ return propValue;
1438
+ }
1439
+ return propValue;
1440
+ };
1441
+ var getElement = (ref) => ref;
1442
+
1443
+ // src/runtime/event-emitter.ts
1444
+ var createEvent = (ref, name, flags) => {
1445
+ const elm = getElement(ref);
1446
+ return {
1447
+ emit: (detail) => {
1448
+ return emitEvent(elm, name, {
1449
+ bubbles: !!(flags & 4 /* Bubbles */),
1450
+ composed: !!(flags & 2 /* Composed */),
1451
+ cancelable: !!(flags & 1 /* Cancellable */),
1452
+ detail
1453
+ });
1454
+ }
1455
+ };
1456
+ };
1457
+ var emitEvent = (elm, name, opts) => {
1458
+ const ev = plt.ce(name, opts);
1459
+ elm.dispatchEvent(ev);
1460
+ return ev;
1461
+ };
1462
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1463
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1464
+ let style = styles.get(scopeId2);
1465
+ if (supportsConstructableStylesheets && allowCS) {
1466
+ style = style || new CSSStyleSheet();
1467
+ if (typeof style === "string") {
1468
+ style = cssText;
1469
+ } else {
1470
+ style.replaceSync(cssText);
1471
+ }
1472
+ } else {
1473
+ style = cssText;
1474
+ }
1475
+ styles.set(scopeId2, style);
1476
+ };
1477
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1478
+ var _a;
1479
+ const scopeId2 = getScopeId(cmpMeta);
1480
+ const style = styles.get(scopeId2);
1481
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
1482
+ if (style) {
1483
+ if (typeof style === "string") {
1484
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1485
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1486
+ let styleElm;
1487
+ if (!appliedStyles) {
1488
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1489
+ }
1490
+ if (!appliedStyles.has(scopeId2)) {
1491
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1492
+ styleElm.innerHTML = style;
1493
+ } else {
1494
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
1495
+ styleElm.innerHTML = style;
1496
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1497
+ if (nonce != null) {
1498
+ styleElm.setAttribute("nonce", nonce);
1499
+ }
1500
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1501
+ if (styleContainerNode.nodeName === "HEAD") {
1502
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1503
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1504
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
1505
+ } else if ("host" in styleContainerNode) {
1506
+ if (supportsConstructableStylesheets) {
1507
+ const stylesheet = new CSSStyleSheet();
1508
+ stylesheet.replaceSync(style);
1509
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1510
+ } else {
1511
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1512
+ if (existingStyleContainer) {
1513
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1514
+ } else {
1515
+ styleContainerNode.prepend(styleElm);
1516
+ }
1517
+ }
1518
+ } else {
1519
+ styleContainerNode.append(styleElm);
1520
+ }
1521
+ }
1522
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
1523
+ styleContainerNode.insertBefore(styleElm, null);
1524
+ }
1525
+ }
1526
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1527
+ styleElm.innerHTML += SLOT_FB_CSS;
1528
+ }
1529
+ if (appliedStyles) {
1530
+ appliedStyles.add(scopeId2);
1531
+ }
1532
+ }
1533
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1534
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1535
+ }
1536
+ }
1537
+ return scopeId2;
1538
+ };
1539
+ var attachStyles = (hostRef) => {
1540
+ const cmpMeta = hostRef.$cmpMeta$;
1541
+ const elm = hostRef.$hostElement$;
1542
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1543
+ addStyle(
1544
+ elm.getRootNode(),
1545
+ cmpMeta);
1546
+ endAttachStyles();
1547
+ };
1548
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1549
+
1550
+ // src/runtime/update-component.ts
1551
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1552
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1553
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1554
+ }
1555
+ };
1556
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1557
+ {
1558
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1559
+ }
1252
1560
  if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1253
1561
  hostRef.$flags$ |= 512 /* needsRerender */;
1254
1562
  return;
@@ -1454,16 +1762,50 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1454
1762
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1455
1763
  members.map(([memberName, [memberFlags]]) => {
1456
1764
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
1457
- Object.defineProperty(prototype, memberName, {
1458
- get() {
1459
- return getValue(this, memberName);
1460
- },
1461
- set(newValue) {
1462
- setValue(this, memberName, newValue, cmpMeta);
1463
- },
1464
- configurable: true,
1465
- enumerable: true
1466
- });
1765
+ if ((memberFlags & 2048 /* Getter */) === 0) {
1766
+ Object.defineProperty(prototype, memberName, {
1767
+ get() {
1768
+ return getValue(this, memberName);
1769
+ },
1770
+ set(newValue) {
1771
+ setValue(this, memberName, newValue, cmpMeta);
1772
+ },
1773
+ configurable: true,
1774
+ enumerable: true
1775
+ });
1776
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
1777
+ if (memberFlags & 4096 /* Setter */) {
1778
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
1779
+ Object.defineProperty(prototype, memberName, {
1780
+ set(newValue) {
1781
+ const ref = getHostRef(this);
1782
+ if (origSetter) {
1783
+ const currentValue = ref.$hostElement$[memberName];
1784
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1785
+ ref.$instanceValues$.set(memberName, currentValue);
1786
+ }
1787
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
1788
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
1789
+ return;
1790
+ }
1791
+ if (!ref) return;
1792
+ const setterSetVal = () => {
1793
+ const currentValue = ref.$lazyInstance$[memberName];
1794
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1795
+ ref.$instanceValues$.set(memberName, currentValue);
1796
+ }
1797
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
1798
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1799
+ };
1800
+ if (ref.$lazyInstance$) {
1801
+ setterSetVal();
1802
+ } else {
1803
+ ref.$onReadyPromise$.then(() => setterSetVal());
1804
+ }
1805
+ }
1806
+ });
1807
+ }
1808
+ }
1467
1809
  }
1468
1810
  });
1469
1811
  {
@@ -1472,7 +1814,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1472
1814
  plt.jmp(() => {
1473
1815
  var _a2;
1474
1816
  const propName = attrNameToPropName.get(attrName);
1475
- if (this.hasOwnProperty(propName)) {
1817
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1476
1818
  newValue = this[propName];
1477
1819
  delete this[propName];
1478
1820
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1493,7 +1835,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1493
1835
  }
1494
1836
  return;
1495
1837
  }
1496
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1838
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1839
+ if (!propDesc.get || !!propDesc.set) {
1840
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1841
+ }
1497
1842
  });
1498
1843
  };
1499
1844
  Cstr.observedAttributes = Array.from(
@@ -1673,16 +2018,16 @@ var proxyCustomElement = (Cstr, compactMeta) => {
1673
2018
  }
1674
2019
  const originalConnectedCallback = Cstr.prototype.connectedCallback;
1675
2020
  const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
1676
- let hasHostListenerAttached = false;
1677
2021
  Object.assign(Cstr.prototype, {
2022
+ __hasHostListenerAttached: false,
1678
2023
  __registerHost() {
1679
2024
  registerHost(this, cmpMeta);
1680
2025
  },
1681
2026
  connectedCallback() {
1682
- if (!hasHostListenerAttached) {
2027
+ if (!this.__hasHostListenerAttached) {
1683
2028
  const hostRef = getHostRef(this);
1684
2029
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
1685
- hasHostListenerAttached = true;
2030
+ this.__hasHostListenerAttached = true;
1686
2031
  }
1687
2032
  connectedCallback(this);
1688
2033
  if (originalConnectedCallback) {
@@ -1741,4 +2086,4 @@ var setPlatformOptions = (opts) => Object.assign(plt, opts);
1741
2086
 
1742
2087
  export { BUILD as B, H, NAMESPACE as N, setNonce as a, setPlatformOptions as b, createEvent as c, Host as d, getAssetPath as g, h, proxyCustomElement as p, setAssetPath as s };
1743
2088
 
1744
- //# sourceMappingURL=p-d506ae63.js.map
2089
+ //# sourceMappingURL=p-0caa4741.js.map