@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,17 +1,26 @@
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", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, 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, transformTagName: false, 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", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, 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, transformTagName: false, 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
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
21
+ var registerInstance = (lazyInstance, hostRef) => {
22
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
23
+ };
15
24
  var registerHost = (hostElement, cmpMeta) => {
16
25
  const hostRef = {
17
26
  $flags$: 0,
@@ -27,7 +36,8 @@ var registerHost = (hostElement, cmpMeta) => {
27
36
  hostElement["s-p"] = [];
28
37
  hostElement["s-rc"] = [];
29
38
  }
30
- return hostRefs.set(hostElement, hostRef);
39
+ const ref = hostRefs.set(hostElement, hostRef);
40
+ return ref;
31
41
  };
32
42
  var isMemberInElement = (elm, memberName) => memberName in elm;
33
43
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -60,6 +70,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
60
70
  return import(
61
71
  /* webpackMode: "lazy" */
62
72
  './nv-avatar.entry.js').then(processMod, consoleError);
73
+ case 'nv-badge':
74
+ return import(
75
+ /* webpackMode: "lazy" */
76
+ './nv-badge.entry.js').then(processMod, consoleError);
63
77
  case 'nv-base':
64
78
  return import(
65
79
  /* webpackMode: "lazy" */
@@ -96,14 +110,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
96
110
  return import(
97
111
  /* webpackMode: "lazy" */
98
112
  './nv-datagridrow.entry.js').then(processMod, consoleError);
99
- case 'nv-fielddropdown':
113
+ case 'nv-fieldcheckbox':
100
114
  return import(
101
115
  /* webpackMode: "lazy" */
102
- './nv-fielddropdown.entry.js').then(processMod, consoleError);
103
- case 'nv-fieldmultiselect':
116
+ './nv-fieldcheckbox.entry.js').then(processMod, consoleError);
117
+ case 'nv-fielddropdown':
104
118
  return import(
105
119
  /* webpackMode: "lazy" */
106
- './nv-fieldmultiselect.entry.js').then(processMod, consoleError);
120
+ './nv-fielddropdown.entry.js').then(processMod, consoleError);
107
121
  case 'nv-fieldnumber':
108
122
  return import(
109
123
  /* webpackMode: "lazy" */
@@ -176,26 +190,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
176
190
  return import(
177
191
  /* webpackMode: "lazy" */
178
192
  './nv-tooltip.entry.js').then(processMod, consoleError);
179
- case 'nv-badge_2':
180
- return import(
181
- /* webpackMode: "lazy" */
182
- './nv-badge_2.entry.js').then(processMod, consoleError);
183
193
  case 'nv-fielddropdownitem':
184
194
  return import(
185
195
  /* webpackMode: "lazy" */
186
196
  './nv-fielddropdownitem.entry.js').then(processMod, consoleError);
187
- case 'nv-fieldcheckbox':
188
- return import(
189
- /* webpackMode: "lazy" */
190
- './nv-fieldcheckbox.entry.js').then(processMod, consoleError);
191
- case 'nv-iconbutton_2':
197
+ case 'nv-iconbutton':
192
198
  return import(
193
199
  /* webpackMode: "lazy" */
194
- './nv-iconbutton_2.entry.js').then(processMod, consoleError);
200
+ './nv-iconbutton.entry.js').then(processMod, consoleError);
195
201
  case 'nv-popover':
196
202
  return import(
197
203
  /* webpackMode: "lazy" */
198
204
  './nv-popover.entry.js').then(processMod, consoleError);
205
+ case 'nv-loader':
206
+ return import(
207
+ /* webpackMode: "lazy" */
208
+ './nv-loader.entry.js').then(processMod, consoleError);
199
209
  case 'nv-icon':
200
210
  return import(
201
211
  /* webpackMode: "lazy" */
@@ -224,6 +234,7 @@ var CONTENT_REF_ID = "r";
224
234
  var ORG_LOCATION_ID = "o";
225
235
  var SLOT_NODE_ID = "s";
226
236
  var TEXT_NODE_ID = "t";
237
+ var COMMENT_NODE_ID = "c";
227
238
  var HYDRATE_ID = "s-id";
228
239
  var HYDRATED_STYLE_ID = "sty-id";
229
240
  var HYDRATE_CHILD_ID = "c-id";
@@ -309,14 +320,6 @@ var flush = () => {
309
320
  };
310
321
  var nextTick = (cb) => promiseResolve().then(cb);
311
322
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
312
-
313
- // src/utils/constants.ts
314
- var EMPTY_OBJ = {};
315
- var SVG_NS = "http://www.w3.org/2000/svg";
316
- var HTML_NS = "http://www.w3.org/1999/xhtml";
317
-
318
- // src/utils/helpers.ts
319
- var isDef = (v) => v != null;
320
323
  var isComplexType = (o) => {
321
324
  o = typeof o;
322
325
  return o === "object" || o === "function";
@@ -376,19 +379,94 @@ var unwrapErr = (result) => {
376
379
  throw result.value;
377
380
  }
378
381
  };
379
- var createTime = (fnName, tagName = "") => {
380
- {
381
- return () => {
382
- return;
383
- };
382
+ var updateFallbackSlotVisibility = (elm) => {
383
+ const childNodes = elm.__childNodes || elm.childNodes;
384
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
385
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
386
+ var _a;
387
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
388
+ if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
389
+ slotNode.hidden = true;
390
+ } else {
391
+ slotNode.hidden = false;
392
+ }
393
+ }
394
+ });
395
+ }
396
+ for (const childNode of childNodes) {
397
+ if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
398
+ updateFallbackSlotVisibility(childNode);
399
+ }
384
400
  }
385
401
  };
386
- var uniqueTime = (key, measureText) => {
387
- {
388
- return () => {
389
- return;
390
- };
402
+ var getHostSlotNodes = (childNodes, hostName, slotName) => {
403
+ let i2 = 0;
404
+ let slottedNodes = [];
405
+ let childNode;
406
+ for (; i2 < childNodes.length; i2++) {
407
+ childNode = childNodes[i2];
408
+ if (childNode["s-sr"] && childNode["s-hn"] === hostName && (!slotName || childNode["s-sn"] === slotName)) {
409
+ slottedNodes.push(childNode);
410
+ if (typeof slotName !== "undefined") return slottedNodes;
411
+ }
412
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
413
+ }
414
+ return slottedNodes;
415
+ };
416
+ var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
417
+ const childNodes = [];
418
+ if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
419
+ while ((node = node.nextSibling) && node["s-sn"] === slotName) {
420
+ childNodes.push(node);
421
+ }
422
+ return childNodes;
423
+ };
424
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
425
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
426
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
427
+ return true;
428
+ }
429
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
430
+ return true;
431
+ }
432
+ return false;
391
433
  }
434
+ if (nodeToRelocate["s-sn"] === slotName) {
435
+ return true;
436
+ }
437
+ return slotName === "";
438
+ };
439
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
440
+ let slottedNodeLocation;
441
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
442
+ slottedNodeLocation = newChild["s-ol"];
443
+ } else {
444
+ slottedNodeLocation = document.createTextNode("");
445
+ slottedNodeLocation["s-nr"] = newChild;
446
+ }
447
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
448
+ const parent = slotNode["s-cr"].parentNode;
449
+ const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
450
+ if (typeof position !== "undefined") {
451
+ {
452
+ slottedNodeLocation["s-oo"] = position;
453
+ const childNodes = parent.__childNodes || parent.childNodes;
454
+ const slotRelocateNodes = [slottedNodeLocation];
455
+ childNodes.forEach((n) => {
456
+ if (n["s-nr"]) slotRelocateNodes.push(n);
457
+ });
458
+ slotRelocateNodes.sort((a, b) => {
459
+ if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
460
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
461
+ return 0;
462
+ });
463
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
464
+ }
465
+ } else {
466
+ appendMethod.call(parent, slottedNodeLocation);
467
+ }
468
+ newChild["s-ol"] = slottedNodeLocation;
469
+ newChild["s-sh"] = slotNode["s-hn"];
392
470
  };
393
471
  var h = (nodeName, vnodeData, ...children) => {
394
472
  let child = null;
@@ -464,394 +542,115 @@ var newVNode = (tag, text) => {
464
542
  };
465
543
  var Host = {};
466
544
  var isHost = (node) => node && node.$tag$ === Host;
467
-
468
- // src/runtime/client-hydrate.ts
469
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
470
- const endHydrate = createTime("hydrateClient", tagName);
471
- const shadowRoot = hostElm.shadowRoot;
472
- const childRenderNodes = [];
473
- const slotNodes = [];
474
- const shadowRootNodes = null;
475
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
476
- if (!plt.$orgLocNodes$) {
477
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
478
- }
479
- hostElm[HYDRATE_ID] = hostId;
480
- hostElm.removeAttribute(HYDRATE_ID);
481
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
482
- childRenderNodes.map((c) => {
483
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
484
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
485
- const node = c.$elm$;
486
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
487
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
488
- }
489
- if (!shadowRoot) {
490
- node["s-hn"] = tagName;
491
- if (orgLocationNode) {
492
- node["s-ol"] = orgLocationNode;
493
- node["s-ol"]["s-nr"] = node;
545
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
546
+ if (oldValue !== newValue) {
547
+ let isProp = isMemberInElement(elm, memberName);
548
+ let ln = memberName.toLowerCase();
549
+ if (memberName === "class") {
550
+ const classList = elm.classList;
551
+ const oldClasses = parseClassList(oldValue);
552
+ let newClasses = parseClassList(newValue);
553
+ if (elm["s-si"]) {
554
+ newClasses.push(elm["s-si"]);
555
+ oldClasses.forEach((c) => {
556
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
557
+ });
558
+ newClasses = [...new Set(newClasses)];
559
+ classList.add(...newClasses);
560
+ delete elm["s-si"];
561
+ } else {
562
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
563
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
494
564
  }
495
- }
496
- plt.$orgLocNodes$.delete(orgLocationId);
497
- });
498
- endHydrate();
499
- };
500
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
501
- let childNodeType;
502
- let childIdSplt;
503
- let childVNode;
504
- let i2;
505
- if (node.nodeType === 1 /* ElementNode */) {
506
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
507
- if (childNodeType) {
508
- childIdSplt = childNodeType.split(".");
509
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
510
- childVNode = {
511
- $flags$: 0,
512
- $hostId$: childIdSplt[0],
513
- $nodeId$: childIdSplt[1],
514
- $depth$: childIdSplt[2],
515
- $index$: childIdSplt[3],
516
- $tag$: node.tagName.toLowerCase(),
517
- $elm$: node,
518
- $attrs$: null,
519
- $children$: null,
520
- $key$: null,
521
- $name$: null,
522
- $text$: null
523
- };
524
- childRenderNodes.push(childVNode);
525
- node.removeAttribute(HYDRATE_CHILD_ID);
526
- if (!parentVNode.$children$) {
527
- parentVNode.$children$ = [];
565
+ } else if (memberName === "style") {
566
+ {
567
+ for (const prop in oldValue) {
568
+ if (!newValue || newValue[prop] == null) {
569
+ if (prop.includes("-")) {
570
+ elm.style.removeProperty(prop);
571
+ } else {
572
+ elm.style[prop] = "";
573
+ }
574
+ }
528
575
  }
529
- parentVNode.$children$[childVNode.$index$] = childVNode;
530
- parentVNode = childVNode;
531
- if (shadowRootNodes && childVNode.$depth$ === "0") {
532
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
576
+ }
577
+ for (const prop in newValue) {
578
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
579
+ if (prop.includes("-")) {
580
+ elm.style.setProperty(prop, newValue[prop]);
581
+ } else {
582
+ elm.style[prop] = newValue[prop];
583
+ }
533
584
  }
534
585
  }
535
- }
536
- if (node.shadowRoot) {
537
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
538
- clientHydrate(
539
- parentVNode,
540
- childRenderNodes,
541
- slotNodes,
542
- shadowRootNodes,
543
- hostElm,
544
- node.shadowRoot.childNodes[i2],
545
- hostId
546
- );
586
+ } else if (memberName === "key") ; else if (memberName === "ref") {
587
+ if (newValue) {
588
+ newValue(elm);
547
589
  }
548
- }
549
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
550
- clientHydrate(
551
- parentVNode,
552
- childRenderNodes,
553
- slotNodes,
554
- shadowRootNodes,
555
- hostElm,
556
- node.childNodes[i2],
557
- hostId
558
- );
559
- }
560
- } else if (node.nodeType === 8 /* CommentNode */) {
561
- childIdSplt = node.nodeValue.split(".");
562
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
563
- childNodeType = childIdSplt[0];
564
- childVNode = {
565
- $flags$: 0,
566
- $hostId$: childIdSplt[1],
567
- $nodeId$: childIdSplt[2],
568
- $depth$: childIdSplt[3],
569
- $index$: childIdSplt[4],
570
- $elm$: node,
571
- $attrs$: null,
572
- $children$: null,
573
- $key$: null,
574
- $name$: null,
575
- $tag$: null,
576
- $text$: null
577
- };
578
- if (childNodeType === TEXT_NODE_ID) {
579
- childVNode.$elm$ = node.nextSibling;
580
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
581
- childVNode.$text$ = childVNode.$elm$.textContent;
582
- childRenderNodes.push(childVNode);
583
- node.remove();
584
- if (!parentVNode.$children$) {
585
- parentVNode.$children$ = [];
586
- }
587
- parentVNode.$children$[childVNode.$index$] = childVNode;
588
- if (shadowRootNodes && childVNode.$depth$ === "0") {
589
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
590
- }
590
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
591
+ if (memberName[2] === "-") {
592
+ memberName = memberName.slice(3);
593
+ } else if (isMemberInElement(win, ln)) {
594
+ memberName = ln.slice(2);
595
+ } else {
596
+ memberName = ln[2] + memberName.slice(3);
597
+ }
598
+ if (oldValue || newValue) {
599
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
600
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
601
+ if (oldValue) {
602
+ plt.rel(elm, memberName, oldValue, capture);
591
603
  }
592
- } else if (childVNode.$hostId$ === hostId) {
593
- if (childNodeType === SLOT_NODE_ID) {
594
- childVNode.$tag$ = "slot";
595
- if (childIdSplt[5]) {
596
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
604
+ if (newValue) {
605
+ plt.ael(elm, memberName, newValue, capture);
606
+ }
607
+ }
608
+ } else {
609
+ const isComplex = isComplexType(newValue);
610
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
611
+ try {
612
+ if (!elm.tagName.includes("-")) {
613
+ const n = newValue == null ? "" : newValue;
614
+ if (memberName === "list") {
615
+ isProp = false;
616
+ } else if (oldValue == null || elm[memberName] != n) {
617
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
618
+ elm[memberName] = n;
619
+ } else {
620
+ elm.setAttribute(memberName, n);
621
+ }
622
+ }
597
623
  } else {
598
- node["s-sn"] = "";
599
- }
600
- node["s-sr"] = true;
601
- slotNodes.push(childVNode);
602
- if (!parentVNode.$children$) {
603
- parentVNode.$children$ = [];
624
+ elm[memberName] = newValue;
604
625
  }
605
- parentVNode.$children$[childVNode.$index$] = childVNode;
606
- } else if (childNodeType === CONTENT_REF_ID) {
626
+ } catch (e) {
627
+ }
628
+ }
629
+ if (newValue == null || newValue === false) {
630
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
607
631
  {
608
- hostElm["s-cr"] = node;
609
- node["s-cn"] = true;
632
+ elm.removeAttribute(memberName);
610
633
  }
611
634
  }
635
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
636
+ newValue = newValue === true ? "" : newValue;
637
+ {
638
+ elm.setAttribute(memberName, newValue);
639
+ }
612
640
  }
613
641
  }
614
- } else if (parentVNode && parentVNode.$tag$ === "style") {
615
- const vnode = newVNode(null, node.textContent);
616
- vnode.$elm$ = node;
617
- vnode.$index$ = "0";
618
- parentVNode.$children$ = [vnode];
619
642
  }
620
643
  };
621
- var initializeDocumentHydrate = (node, orgLocNodes) => {
622
- if (node.nodeType === 1 /* ElementNode */) {
623
- let i2 = 0;
624
- if (node.shadowRoot) {
625
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
626
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
627
- }
628
- }
629
- for (i2 = 0; i2 < node.childNodes.length; i2++) {
630
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
631
- }
632
- } else if (node.nodeType === 8 /* CommentNode */) {
633
- const childIdSplt = node.nodeValue.split(".");
634
- if (childIdSplt[0] === ORG_LOCATION_ID) {
635
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
636
- node.nodeValue = "";
637
- node["s-en"] = childIdSplt[3];
638
- }
639
- }
640
- };
641
- var parsePropertyValue = (propValue, propType) => {
642
- if (propValue != null && !isComplexType(propValue)) {
643
- if (propType & 4 /* Boolean */) {
644
- return propValue === "false" ? false : propValue === "" || !!propValue;
645
- }
646
- if (propType & 2 /* Number */) {
647
- return parseFloat(propValue);
648
- }
649
- if (propType & 1 /* String */) {
650
- return String(propValue);
651
- }
652
- return propValue;
653
- }
654
- return propValue;
655
- };
656
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
657
-
658
- // src/runtime/event-emitter.ts
659
- var createEvent = (ref, name, flags) => {
660
- const elm = getElement(ref);
661
- return {
662
- emit: (detail) => {
663
- return emitEvent(elm, name, {
664
- bubbles: !!(flags & 4 /* Bubbles */),
665
- composed: !!(flags & 2 /* Composed */),
666
- cancelable: !!(flags & 1 /* Cancellable */),
667
- detail
668
- });
669
- }
670
- };
671
- };
672
- var emitEvent = (elm, name, opts) => {
673
- const ev = plt.ce(name, opts);
674
- elm.dispatchEvent(ev);
675
- return ev;
676
- };
677
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
678
- var registerStyle = (scopeId2, cssText, allowCS) => {
679
- let style = styles.get(scopeId2);
680
- if (supportsConstructableStylesheets && allowCS) {
681
- style = style || new CSSStyleSheet();
682
- if (typeof style === "string") {
683
- style = cssText;
684
- } else {
685
- style.replaceSync(cssText);
686
- }
687
- } else {
688
- style = cssText;
689
- }
690
- styles.set(scopeId2, style);
691
- };
692
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
693
- var _a;
694
- const scopeId2 = getScopeId(cmpMeta);
695
- const style = styles.get(scopeId2);
696
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
697
- if (style) {
698
- if (typeof style === "string") {
699
- styleContainerNode = styleContainerNode.head || styleContainerNode;
700
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
701
- let styleElm;
702
- if (!appliedStyles) {
703
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
704
- }
705
- if (!appliedStyles.has(scopeId2)) {
706
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
707
- styleElm.innerHTML = style;
708
- } else {
709
- styleElm = doc.createElement("style");
710
- styleElm.innerHTML = style;
711
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
712
- if (nonce != null) {
713
- styleElm.setAttribute("nonce", nonce);
714
- }
715
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
716
- if (styleContainerNode.nodeName === "HEAD") {
717
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
718
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
719
- styleContainerNode.insertBefore(styleElm, referenceNode2);
720
- } else if ("host" in styleContainerNode) {
721
- if (supportsConstructableStylesheets) {
722
- const stylesheet = new CSSStyleSheet();
723
- stylesheet.replaceSync(style);
724
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
725
- } else {
726
- const existingStyleContainer = styleContainerNode.querySelector("style");
727
- if (existingStyleContainer) {
728
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
729
- } else {
730
- styleContainerNode.prepend(styleElm);
731
- }
732
- }
733
- } else {
734
- styleContainerNode.append(styleElm);
735
- }
736
- }
737
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
738
- styleContainerNode.insertBefore(styleElm, null);
739
- }
740
- }
741
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
742
- styleElm.innerHTML += SLOT_FB_CSS;
743
- }
744
- if (appliedStyles) {
745
- appliedStyles.add(scopeId2);
746
- }
747
- }
748
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
749
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
750
- }
644
+ var parseClassListRegex = /\s/;
645
+ var parseClassList = (value) => {
646
+ if (typeof value === "object" && "baseVal" in value) {
647
+ value = value.baseVal;
751
648
  }
752
- return scopeId2;
753
- };
754
- var attachStyles = (hostRef) => {
755
- const cmpMeta = hostRef.$cmpMeta$;
756
- const elm = hostRef.$hostElement$;
757
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
758
- addStyle(
759
- elm.getRootNode(),
760
- cmpMeta);
761
- endAttachStyles();
762
- };
763
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
764
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
765
- if (oldValue !== newValue) {
766
- let isProp = isMemberInElement(elm, memberName);
767
- let ln = memberName.toLowerCase();
768
- if (memberName === "class") {
769
- const classList = elm.classList;
770
- const oldClasses = parseClassList(oldValue);
771
- const newClasses = parseClassList(newValue);
772
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
773
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
774
- } else if (memberName === "style") {
775
- {
776
- for (const prop in oldValue) {
777
- if (!newValue || newValue[prop] == null) {
778
- if (prop.includes("-")) {
779
- elm.style.removeProperty(prop);
780
- } else {
781
- elm.style[prop] = "";
782
- }
783
- }
784
- }
785
- }
786
- for (const prop in newValue) {
787
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
788
- if (prop.includes("-")) {
789
- elm.style.setProperty(prop, newValue[prop]);
790
- } else {
791
- elm.style[prop] = newValue[prop];
792
- }
793
- }
794
- }
795
- } else if (memberName === "key") ; else if (memberName === "ref") {
796
- if (newValue) {
797
- newValue(elm);
798
- }
799
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
800
- if (memberName[2] === "-") {
801
- memberName = memberName.slice(3);
802
- } else if (isMemberInElement(win, ln)) {
803
- memberName = ln.slice(2);
804
- } else {
805
- memberName = ln[2] + memberName.slice(3);
806
- }
807
- if (oldValue || newValue) {
808
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
809
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
810
- if (oldValue) {
811
- plt.rel(elm, memberName, oldValue, capture);
812
- }
813
- if (newValue) {
814
- plt.ael(elm, memberName, newValue, capture);
815
- }
816
- }
817
- } else {
818
- const isComplex = isComplexType(newValue);
819
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
820
- try {
821
- if (!elm.tagName.includes("-")) {
822
- const n = newValue == null ? "" : newValue;
823
- if (memberName === "list") {
824
- isProp = false;
825
- } else if (oldValue == null || elm[memberName] != n) {
826
- if (typeof elm.__lookupSetter__(memberName) === "function") {
827
- elm[memberName] = n;
828
- } else {
829
- elm.setAttribute(memberName, n);
830
- }
831
- }
832
- } else {
833
- elm[memberName] = newValue;
834
- }
835
- } catch (e) {
836
- }
837
- }
838
- if (newValue == null || newValue === false) {
839
- if (newValue !== false || elm.getAttribute(memberName) === "") {
840
- {
841
- elm.removeAttribute(memberName);
842
- }
843
- }
844
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
845
- newValue = newValue === true ? "" : newValue;
846
- {
847
- elm.setAttribute(memberName, newValue);
848
- }
849
- }
850
- }
649
+ if (!value) {
650
+ return [];
851
651
  }
652
+ return value.split(parseClassListRegex);
852
653
  };
853
- var parseClassListRegex = /\s/;
854
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
855
654
  var CAPTURE_EVENT_SUFFIX = "Capture";
856
655
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
857
656
 
@@ -880,16 +679,13 @@ function sortedAttrNames(attrNames) {
880
679
  attrNames
881
680
  );
882
681
  }
883
-
884
- // src/runtime/vdom/vdom-render.ts
885
- var scopeId;
886
682
  var contentRef;
887
683
  var hostTagName;
888
684
  var useNativeShadowDom = false;
889
685
  var checkSlotFallbackVisibility = false;
890
686
  var checkSlotRelocate = false;
891
687
  var isSvgMode = false;
892
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
688
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
893
689
  var _a;
894
690
  const newVNode2 = newParentVNode.$children$[childIndex];
895
691
  let i2 = 0;
@@ -929,11 +725,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
929
725
  {
930
726
  updateElement(null, newVNode2, isSvgMode);
931
727
  }
932
- const rootNode = elm.getRootNode();
933
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
934
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
935
- elm.classList.add(elm["s-si"] = scopeId);
936
- }
937
728
  if (newVNode2.$children$) {
938
729
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
939
730
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -971,8 +762,12 @@ var relocateToHostRoot = (parentElm) => {
971
762
  plt.$flags$ |= 1 /* isTmpDisconnected */;
972
763
  const host = parentElm.closest(hostTagName.toLowerCase());
973
764
  if (host != null) {
974
- const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
975
- const childNodeArray = Array.from(parentElm.childNodes);
765
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
766
+ (ref) => ref["s-cr"]
767
+ );
768
+ const childNodeArray = Array.from(
769
+ parentElm.__childNodes || parentElm.childNodes
770
+ );
976
771
  for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
977
772
  if (childNode["s-sh"] != null) {
978
773
  insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
@@ -985,7 +780,7 @@ var relocateToHostRoot = (parentElm) => {
985
780
  };
986
781
  var putBackInOriginalLocation = (parentElm, recursive) => {
987
782
  plt.$flags$ |= 1 /* isTmpDisconnected */;
988
- const oldSlotChildNodes = Array.from(parentElm.childNodes);
783
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
989
784
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
990
785
  let node = parentElm;
991
786
  while (node = node.nextSibling) {
@@ -997,7 +792,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
997
792
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
998
793
  const childNode = oldSlotChildNodes[i2];
999
794
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1000
- insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
795
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1001
796
  childNode["s-ol"].remove();
1002
797
  childNode["s-ol"] = void 0;
1003
798
  childNode["s-sh"] = void 0;
@@ -1114,7 +909,11 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1114
909
  }
1115
910
  if (node) {
1116
911
  {
1117
- insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
912
+ insertBefore(
913
+ referenceNode(oldStartVnode.$elm$).parentNode,
914
+ node,
915
+ referenceNode(oldStartVnode.$elm$)
916
+ );
1118
917
  }
1119
918
  }
1120
919
  }
@@ -1135,28 +934,19 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1135
934
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1136
935
  if (leftVNode.$tag$ === rightVNode.$tag$) {
1137
936
  if (leftVNode.$tag$ === "slot") {
1138
- if (
1139
- // The component gets hydrated and no VDOM has been initialized.
1140
- // Here the comparison can't happen as $name$ property is not set for `leftNode`.
1141
- "$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
1142
- // hydration comments to be removed
1143
- leftVNode.$elm$.nodeType !== 8
1144
- ) {
1145
- return false;
1146
- }
1147
937
  return leftVNode.$name$ === rightVNode.$name$;
1148
938
  }
1149
939
  if (!isInitialRender) {
1150
940
  return leftVNode.$key$ === rightVNode.$key$;
1151
941
  }
942
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
943
+ leftVNode.$key$ = rightVNode.$key$;
944
+ }
1152
945
  return true;
1153
946
  }
1154
947
  return false;
1155
948
  };
1156
- var referenceNode = (node) => {
1157
- return node && node["s-ol"] || node;
1158
- };
1159
- var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
949
+ var referenceNode = (node) => node && node["s-ol"] || node;
1160
950
  var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1161
951
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
1162
952
  const oldChildren = oldVNode.$children$;
@@ -1200,41 +990,15 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1200
990
  elm.data = text;
1201
991
  }
1202
992
  };
1203
- var updateFallbackSlotVisibility = (elm) => {
1204
- const childNodes = elm.childNodes;
1205
- for (const childNode of childNodes) {
1206
- if (childNode.nodeType === 1 /* ElementNode */) {
1207
- if (childNode["s-sr"]) {
1208
- const slotName = childNode["s-sn"];
1209
- childNode.hidden = false;
1210
- for (const siblingNode of childNodes) {
1211
- if (siblingNode !== childNode) {
1212
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1213
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
1214
- childNode.hidden = true;
1215
- break;
1216
- }
1217
- } else {
1218
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1219
- childNode.hidden = true;
1220
- break;
1221
- }
1222
- }
1223
- }
1224
- }
1225
- }
1226
- updateFallbackSlotVisibility(childNode);
1227
- }
1228
- }
1229
- };
1230
993
  var relocateNodes = [];
1231
994
  var markSlotContentForRelocation = (elm) => {
1232
995
  let node;
1233
996
  let hostContentNodes;
1234
997
  let j;
1235
- for (const childNode of elm.childNodes) {
998
+ const children = elm.__childNodes || elm.childNodes;
999
+ for (const childNode of children) {
1236
1000
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1237
- hostContentNodes = node.parentNode.childNodes;
1001
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1238
1002
  const slotName = childNode["s-sn"];
1239
1003
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1240
1004
  node = hostContentNodes[j];
@@ -1276,25 +1040,10 @@ var markSlotContentForRelocation = (elm) => {
1276
1040
  }
1277
1041
  }
1278
1042
  };
1279
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1280
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1281
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1282
- return true;
1283
- }
1284
- if (nodeToRelocate.getAttribute("slot") === slotName) {
1285
- return true;
1286
- }
1287
- return false;
1288
- }
1289
- if (nodeToRelocate["s-sn"] === slotName) {
1290
- return true;
1291
- }
1292
- return slotName === "";
1293
- };
1294
- var nullifyVNodeRefs = (vNode) => {
1295
- {
1296
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1297
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1043
+ var nullifyVNodeRefs = (vNode) => {
1044
+ {
1045
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1046
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1298
1047
  }
1299
1048
  };
1300
1049
  var insertBefore = (parent, newNode, reference) => {
@@ -1302,7 +1051,7 @@ var insertBefore = (parent, newNode, reference) => {
1302
1051
  return inserted;
1303
1052
  };
1304
1053
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1305
- var _a, _b, _c, _d;
1054
+ var _a, _b, _c, _d, _e;
1306
1055
  const hostElm = hostRef.$hostElement$;
1307
1056
  const cmpMeta = hostRef.$cmpMeta$;
1308
1057
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1349,7 +1098,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1349
1098
  if (slotRefNode) {
1350
1099
  const parentNodeRef = slotRefNode.parentNode;
1351
1100
  let insertBeforeNode = slotRefNode.nextSibling;
1352
- if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1101
+ if ((insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */)) {
1353
1102
  let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1354
1103
  while (orgLocationNode) {
1355
1104
  let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
@@ -1369,7 +1118,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1369
1118
  if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1370
1119
  if (nodeToRelocate !== insertBeforeNode) {
1371
1120
  insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1372
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1121
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1373
1122
  nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1374
1123
  }
1375
1124
  }
@@ -1391,8 +1140,569 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1391
1140
  plt.$flags$ &= ~1 /* isTmpDisconnected */;
1392
1141
  relocateNodes.length = 0;
1393
1142
  }
1143
+ if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1144
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1145
+ for (const childNode of children) {
1146
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1147
+ if (isInitialLoad && childNode["s-ih"] == null) {
1148
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1149
+ }
1150
+ childNode.hidden = true;
1151
+ }
1152
+ }
1153
+ }
1394
1154
  contentRef = void 0;
1395
1155
  };
1156
+ var patchNextPrev = (node) => {
1157
+ if (!node || node.__nextSibling || !globalThis.Node) return;
1158
+ patchNextSibling(node);
1159
+ patchPreviousSibling(node);
1160
+ if (node.nodeType === Node.ELEMENT_NODE) {
1161
+ patchNextElementSibling(node);
1162
+ patchPreviousElementSibling(node);
1163
+ }
1164
+ };
1165
+ var patchNextSibling = (node) => {
1166
+ if (!node || node.__nextSibling) return;
1167
+ patchHostOriginalAccessor("nextSibling", node);
1168
+ Object.defineProperty(node, "nextSibling", {
1169
+ get: function() {
1170
+ var _a;
1171
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1172
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1173
+ if (parentNodes && index > -1) {
1174
+ return parentNodes[index + 1];
1175
+ }
1176
+ return this.__nextSibling;
1177
+ }
1178
+ });
1179
+ };
1180
+ var patchNextElementSibling = (element) => {
1181
+ if (!element || element.__nextElementSibling) return;
1182
+ patchHostOriginalAccessor("nextElementSibling", element);
1183
+ Object.defineProperty(element, "nextElementSibling", {
1184
+ get: function() {
1185
+ var _a;
1186
+ const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1187
+ const index = parentEles == null ? void 0 : parentEles.indexOf(this);
1188
+ if (parentEles && index > -1) {
1189
+ return parentEles[index + 1];
1190
+ }
1191
+ return this.__nextElementSibling;
1192
+ }
1193
+ });
1194
+ };
1195
+ var patchPreviousSibling = (node) => {
1196
+ if (!node || node.__previousSibling) return;
1197
+ patchHostOriginalAccessor("previousSibling", node);
1198
+ Object.defineProperty(node, "previousSibling", {
1199
+ get: function() {
1200
+ var _a;
1201
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1202
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1203
+ if (parentNodes && index > -1) {
1204
+ return parentNodes[index - 1];
1205
+ }
1206
+ return this.__previousSibling;
1207
+ }
1208
+ });
1209
+ };
1210
+ var patchPreviousElementSibling = (element) => {
1211
+ if (!element || element.__previousElementSibling) return;
1212
+ patchHostOriginalAccessor("previousElementSibling", element);
1213
+ Object.defineProperty(element, "previousElementSibling", {
1214
+ get: function() {
1215
+ var _a;
1216
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1217
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1218
+ if (parentNodes && index > -1) {
1219
+ return parentNodes[index - 1];
1220
+ }
1221
+ return this.__previousElementSibling;
1222
+ }
1223
+ });
1224
+ };
1225
+ var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
1226
+ var validNodesPatches = [
1227
+ "childNodes",
1228
+ "firstChild",
1229
+ "lastChild",
1230
+ "nextSibling",
1231
+ "previousSibling",
1232
+ "textContent"
1233
+ ];
1234
+ function patchHostOriginalAccessor(accessorName, node) {
1235
+ let accessor;
1236
+ if (validElementPatches.includes(accessorName)) {
1237
+ accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
1238
+ } else if (validNodesPatches.includes(accessorName)) {
1239
+ accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
1240
+ }
1241
+ if (!accessor) {
1242
+ accessor = Object.getOwnPropertyDescriptor(node, accessorName);
1243
+ }
1244
+ if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
1245
+ }
1246
+ var createTime = (fnName, tagName = "") => {
1247
+ {
1248
+ return () => {
1249
+ return;
1250
+ };
1251
+ }
1252
+ };
1253
+ var uniqueTime = (key, measureText) => {
1254
+ {
1255
+ return () => {
1256
+ return;
1257
+ };
1258
+ }
1259
+ };
1260
+
1261
+ // src/runtime/client-hydrate.ts
1262
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1263
+ const endHydrate = createTime("hydrateClient", tagName);
1264
+ const shadowRoot = hostElm.shadowRoot;
1265
+ const childRenderNodes = [];
1266
+ const slotNodes = [];
1267
+ const slottedNodes = [];
1268
+ const shadowRootNodes = null;
1269
+ const vnode = newVNode(tagName, null);
1270
+ vnode.$elm$ = hostElm;
1271
+ if (!plt.$orgLocNodes$) {
1272
+ initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1273
+ }
1274
+ hostElm[HYDRATE_ID] = hostId;
1275
+ hostElm.removeAttribute(HYDRATE_ID);
1276
+ hostRef.$vnode$ = clientHydrate(
1277
+ vnode,
1278
+ childRenderNodes,
1279
+ slotNodes,
1280
+ shadowRootNodes,
1281
+ hostElm,
1282
+ hostElm,
1283
+ hostId,
1284
+ slottedNodes
1285
+ );
1286
+ let crIndex = 0;
1287
+ const crLength = childRenderNodes.length;
1288
+ let childRenderNode;
1289
+ for (crIndex; crIndex < crLength; crIndex++) {
1290
+ childRenderNode = childRenderNodes[crIndex];
1291
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1292
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1293
+ const node = childRenderNode.$elm$;
1294
+ if (!shadowRoot) {
1295
+ node["s-hn"] = tagName.toUpperCase();
1296
+ if (childRenderNode.$tag$ === "slot") {
1297
+ node["s-cr"] = hostElm["s-cr"];
1298
+ }
1299
+ }
1300
+ if (childRenderNode.$tag$ === "slot") {
1301
+ if (childRenderNode.$children$) {
1302
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
1303
+ if (!childRenderNode.$elm$.childNodes.length) {
1304
+ childRenderNode.$children$.forEach((c) => {
1305
+ childRenderNode.$elm$.appendChild(c.$elm$);
1306
+ });
1307
+ }
1308
+ } else {
1309
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
1310
+ }
1311
+ }
1312
+ if (orgLocationNode && orgLocationNode.isConnected) {
1313
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
1314
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1315
+ }
1316
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
1317
+ if (!shadowRoot) {
1318
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1319
+ }
1320
+ }
1321
+ plt.$orgLocNodes$.delete(orgLocationId);
1322
+ }
1323
+ const hosts = [];
1324
+ const snLen = slottedNodes.length;
1325
+ let snIndex = 0;
1326
+ let slotGroup;
1327
+ let snGroupIdx;
1328
+ let snGroupLen;
1329
+ let slottedItem;
1330
+ for (snIndex; snIndex < snLen; snIndex++) {
1331
+ slotGroup = slottedNodes[snIndex];
1332
+ if (!slotGroup || !slotGroup.length) continue;
1333
+ snGroupLen = slotGroup.length;
1334
+ snGroupIdx = 0;
1335
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1336
+ slottedItem = slotGroup[snGroupIdx];
1337
+ if (!hosts[slottedItem.hostId]) {
1338
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1339
+ }
1340
+ if (!hosts[slottedItem.hostId]) continue;
1341
+ const hostEle = hosts[slottedItem.hostId];
1342
+ if (!hostEle.shadowRoot || !shadowRoot) {
1343
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
1344
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1345
+ slottedItem.slot["s-cr"] = hostEle;
1346
+ } else {
1347
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
1348
+ }
1349
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
1350
+ {
1351
+ patchNextPrev(slottedItem.node);
1352
+ }
1353
+ }
1354
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1355
+ hostEle.appendChild(slottedItem.node);
1356
+ }
1357
+ }
1358
+ }
1359
+ hostRef.$hostElement$ = hostElm;
1360
+ endHydrate();
1361
+ };
1362
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1363
+ let childNodeType;
1364
+ let childIdSplt;
1365
+ let childVNode;
1366
+ let i2;
1367
+ if (node.nodeType === 1 /* ElementNode */) {
1368
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1369
+ if (childNodeType) {
1370
+ childIdSplt = childNodeType.split(".");
1371
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1372
+ childVNode = createSimpleVNode({
1373
+ $flags$: 0,
1374
+ $hostId$: childIdSplt[0],
1375
+ $nodeId$: childIdSplt[1],
1376
+ $depth$: childIdSplt[2],
1377
+ $index$: childIdSplt[3],
1378
+ $tag$: node.tagName.toLowerCase(),
1379
+ $elm$: node,
1380
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
1381
+ // won't try to reconcile them. Classes set on the node will be blown away.
1382
+ $attrs$: { class: node.className || "" }
1383
+ });
1384
+ childRenderNodes.push(childVNode);
1385
+ node.removeAttribute(HYDRATE_CHILD_ID);
1386
+ if (!parentVNode.$children$) {
1387
+ parentVNode.$children$ = [];
1388
+ }
1389
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
1390
+ if (typeof slotName === "string") {
1391
+ if (childVNode.$tag$ === "slot-fb") {
1392
+ addSlot(
1393
+ slotName,
1394
+ childIdSplt[2],
1395
+ childVNode,
1396
+ node,
1397
+ parentVNode,
1398
+ childRenderNodes,
1399
+ slotNodes,
1400
+ shadowRootNodes,
1401
+ slottedNodes
1402
+ );
1403
+ }
1404
+ childVNode.$elm$["s-sn"] = slotName;
1405
+ childVNode.$elm$.removeAttribute("s-sn");
1406
+ }
1407
+ if (childVNode.$index$ !== void 0) {
1408
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1409
+ }
1410
+ parentVNode = childVNode;
1411
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1412
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1413
+ }
1414
+ }
1415
+ }
1416
+ if (node.shadowRoot) {
1417
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1418
+ clientHydrate(
1419
+ parentVNode,
1420
+ childRenderNodes,
1421
+ slotNodes,
1422
+ shadowRootNodes,
1423
+ hostElm,
1424
+ node.shadowRoot.childNodes[i2],
1425
+ hostId,
1426
+ slottedNodes
1427
+ );
1428
+ }
1429
+ }
1430
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1431
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1432
+ clientHydrate(
1433
+ parentVNode,
1434
+ childRenderNodes,
1435
+ slotNodes,
1436
+ shadowRootNodes,
1437
+ hostElm,
1438
+ nonShadowNodes[i2],
1439
+ hostId,
1440
+ slottedNodes
1441
+ );
1442
+ }
1443
+ } else if (node.nodeType === 8 /* CommentNode */) {
1444
+ childIdSplt = node.nodeValue.split(".");
1445
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1446
+ childNodeType = childIdSplt[0];
1447
+ childVNode = createSimpleVNode({
1448
+ $hostId$: childIdSplt[1],
1449
+ $nodeId$: childIdSplt[2],
1450
+ $depth$: childIdSplt[3],
1451
+ $index$: childIdSplt[4] || "0",
1452
+ $elm$: node,
1453
+ $attrs$: null,
1454
+ $children$: null,
1455
+ $key$: null,
1456
+ $name$: null,
1457
+ $tag$: null,
1458
+ $text$: null
1459
+ });
1460
+ if (childNodeType === TEXT_NODE_ID) {
1461
+ childVNode.$elm$ = node.nextSibling;
1462
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1463
+ childVNode.$text$ = childVNode.$elm$.textContent;
1464
+ childRenderNodes.push(childVNode);
1465
+ node.remove();
1466
+ if (hostId === childVNode.$hostId$) {
1467
+ if (!parentVNode.$children$) {
1468
+ parentVNode.$children$ = [];
1469
+ }
1470
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1471
+ }
1472
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1473
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1474
+ }
1475
+ }
1476
+ } else if (childNodeType === COMMENT_NODE_ID) {
1477
+ childVNode.$elm$ = node.nextSibling;
1478
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1479
+ childRenderNodes.push(childVNode);
1480
+ node.remove();
1481
+ }
1482
+ } else if (childVNode.$hostId$ === hostId) {
1483
+ if (childNodeType === SLOT_NODE_ID) {
1484
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
1485
+ addSlot(
1486
+ slotName,
1487
+ childIdSplt[2],
1488
+ childVNode,
1489
+ node,
1490
+ parentVNode,
1491
+ childRenderNodes,
1492
+ slotNodes,
1493
+ shadowRootNodes,
1494
+ slottedNodes
1495
+ );
1496
+ } else if (childNodeType === CONTENT_REF_ID) {
1497
+ {
1498
+ hostElm["s-cr"] = node;
1499
+ node["s-cn"] = true;
1500
+ }
1501
+ }
1502
+ }
1503
+ }
1504
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
1505
+ const vnode = newVNode(null, node.textContent);
1506
+ vnode.$elm$ = node;
1507
+ vnode.$index$ = "0";
1508
+ parentVNode.$children$ = [vnode];
1509
+ }
1510
+ return parentVNode;
1511
+ };
1512
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1513
+ if (node.nodeType === 1 /* ElementNode */) {
1514
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1515
+ if (componentId) {
1516
+ orgLocNodes.set(componentId, node);
1517
+ }
1518
+ let i2 = 0;
1519
+ if (node.shadowRoot) {
1520
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1521
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1522
+ }
1523
+ }
1524
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1525
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1526
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1527
+ }
1528
+ } else if (node.nodeType === 8 /* CommentNode */) {
1529
+ const childIdSplt = node.nodeValue.split(".");
1530
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1531
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1532
+ node.nodeValue = "";
1533
+ node["s-en"] = childIdSplt[3];
1534
+ }
1535
+ }
1536
+ };
1537
+ var createSimpleVNode = (vnode) => {
1538
+ const defaultVNode = {
1539
+ $flags$: 0,
1540
+ $hostId$: null,
1541
+ $nodeId$: null,
1542
+ $depth$: null,
1543
+ $index$: "0",
1544
+ $elm$: null,
1545
+ $attrs$: null,
1546
+ $children$: null,
1547
+ $key$: null,
1548
+ $name$: null,
1549
+ $tag$: null,
1550
+ $text$: null
1551
+ };
1552
+ return { ...defaultVNode, ...vnode };
1553
+ };
1554
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1555
+ node["s-sr"] = true;
1556
+ childVNode.$name$ = slotName || null;
1557
+ childVNode.$tag$ = "slot";
1558
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1559
+ {
1560
+ const slot = childVNode.$elm$;
1561
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1562
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1563
+ if (shouldMove) {
1564
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1565
+ }
1566
+ childRenderNodes.push(childVNode);
1567
+ }
1568
+ slotNodes.push(childVNode);
1569
+ if (!parentVNode.$children$) {
1570
+ parentVNode.$children$ = [];
1571
+ }
1572
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1573
+ }
1574
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1575
+ let slottedNode = slotNode.nextSibling;
1576
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1577
+ 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 */))) {
1578
+ slottedNode["s-sn"] = slotName;
1579
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1580
+ slottedNode = slottedNode.nextSibling;
1581
+ }
1582
+ };
1583
+ var parsePropertyValue = (propValue, propType) => {
1584
+ if (propValue != null && !isComplexType(propValue)) {
1585
+ if (propType & 4 /* Boolean */) {
1586
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1587
+ }
1588
+ if (propType & 2 /* Number */) {
1589
+ return parseFloat(propValue);
1590
+ }
1591
+ if (propType & 1 /* String */) {
1592
+ return String(propValue);
1593
+ }
1594
+ return propValue;
1595
+ }
1596
+ return propValue;
1597
+ };
1598
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1599
+
1600
+ // src/runtime/event-emitter.ts
1601
+ var createEvent = (ref, name, flags) => {
1602
+ const elm = getElement(ref);
1603
+ return {
1604
+ emit: (detail) => {
1605
+ return emitEvent(elm, name, {
1606
+ bubbles: !!(flags & 4 /* Bubbles */),
1607
+ composed: !!(flags & 2 /* Composed */),
1608
+ cancelable: !!(flags & 1 /* Cancellable */),
1609
+ detail
1610
+ });
1611
+ }
1612
+ };
1613
+ };
1614
+ var emitEvent = (elm, name, opts) => {
1615
+ const ev = plt.ce(name, opts);
1616
+ elm.dispatchEvent(ev);
1617
+ return ev;
1618
+ };
1619
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1620
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1621
+ let style = styles.get(scopeId2);
1622
+ if (supportsConstructableStylesheets && allowCS) {
1623
+ style = style || new CSSStyleSheet();
1624
+ if (typeof style === "string") {
1625
+ style = cssText;
1626
+ } else {
1627
+ style.replaceSync(cssText);
1628
+ }
1629
+ } else {
1630
+ style = cssText;
1631
+ }
1632
+ styles.set(scopeId2, style);
1633
+ };
1634
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1635
+ var _a;
1636
+ const scopeId2 = getScopeId(cmpMeta);
1637
+ const style = styles.get(scopeId2);
1638
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
1639
+ if (style) {
1640
+ if (typeof style === "string") {
1641
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1642
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1643
+ let styleElm;
1644
+ if (!appliedStyles) {
1645
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1646
+ }
1647
+ if (!appliedStyles.has(scopeId2)) {
1648
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1649
+ styleElm.innerHTML = style;
1650
+ } else {
1651
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
1652
+ styleElm.innerHTML = style;
1653
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1654
+ if (nonce != null) {
1655
+ styleElm.setAttribute("nonce", nonce);
1656
+ }
1657
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1658
+ if (styleContainerNode.nodeName === "HEAD") {
1659
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1660
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1661
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
1662
+ } else if ("host" in styleContainerNode) {
1663
+ if (supportsConstructableStylesheets) {
1664
+ const stylesheet = new CSSStyleSheet();
1665
+ stylesheet.replaceSync(style);
1666
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1667
+ } else {
1668
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1669
+ if (existingStyleContainer) {
1670
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1671
+ } else {
1672
+ styleContainerNode.prepend(styleElm);
1673
+ }
1674
+ }
1675
+ } else {
1676
+ styleContainerNode.append(styleElm);
1677
+ }
1678
+ }
1679
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
1680
+ styleContainerNode.insertBefore(styleElm, null);
1681
+ }
1682
+ }
1683
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1684
+ styleElm.innerHTML += SLOT_FB_CSS;
1685
+ }
1686
+ if (appliedStyles) {
1687
+ appliedStyles.add(scopeId2);
1688
+ }
1689
+ }
1690
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1691
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1692
+ }
1693
+ }
1694
+ return scopeId2;
1695
+ };
1696
+ var attachStyles = (hostRef) => {
1697
+ const cmpMeta = hostRef.$cmpMeta$;
1698
+ const elm = hostRef.$hostElement$;
1699
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1700
+ addStyle(
1701
+ elm.getRootNode(),
1702
+ cmpMeta);
1703
+ endAttachStyles();
1704
+ };
1705
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1396
1706
 
1397
1707
  // src/runtime/update-component.ts
1398
1708
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -1637,16 +1947,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1637
1947
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1638
1948
  members.map(([memberName, [memberFlags]]) => {
1639
1949
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1640
- Object.defineProperty(prototype, memberName, {
1641
- get() {
1642
- return getValue(this, memberName);
1643
- },
1644
- set(newValue) {
1645
- setValue(this, memberName, newValue, cmpMeta);
1646
- },
1647
- configurable: true,
1648
- enumerable: true
1649
- });
1950
+ if ((memberFlags & 2048 /* Getter */) === 0) {
1951
+ Object.defineProperty(prototype, memberName, {
1952
+ get() {
1953
+ return getValue(this, memberName);
1954
+ },
1955
+ set(newValue) {
1956
+ setValue(this, memberName, newValue, cmpMeta);
1957
+ },
1958
+ configurable: true,
1959
+ enumerable: true
1960
+ });
1961
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
1962
+ {
1963
+ Object.defineProperty(prototype, memberName, {
1964
+ get() {
1965
+ const ref = getHostRef(this);
1966
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1967
+ if (!instance) return;
1968
+ return instance[memberName];
1969
+ },
1970
+ configurable: true,
1971
+ enumerable: true
1972
+ });
1973
+ }
1974
+ if (memberFlags & 4096 /* Setter */) {
1975
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
1976
+ Object.defineProperty(prototype, memberName, {
1977
+ set(newValue) {
1978
+ const ref = getHostRef(this);
1979
+ if (origSetter) {
1980
+ const currentValue = ref.$hostElement$[memberName];
1981
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1982
+ ref.$instanceValues$.set(memberName, currentValue);
1983
+ }
1984
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
1985
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
1986
+ return;
1987
+ }
1988
+ if (!ref) return;
1989
+ const setterSetVal = () => {
1990
+ const currentValue = ref.$lazyInstance$[memberName];
1991
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1992
+ ref.$instanceValues$.set(memberName, currentValue);
1993
+ }
1994
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
1995
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1996
+ };
1997
+ if (ref.$lazyInstance$) {
1998
+ setterSetVal();
1999
+ } else {
2000
+ ref.$onReadyPromise$.then(() => setterSetVal());
2001
+ }
2002
+ }
2003
+ });
2004
+ }
2005
+ }
1650
2006
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1651
2007
  Object.defineProperty(prototype, memberName, {
1652
2008
  value(...args) {
@@ -1666,7 +2022,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1666
2022
  plt.jmp(() => {
1667
2023
  var _a2;
1668
2024
  const propName = attrNameToPropName.get(attrName);
1669
- if (this.hasOwnProperty(propName)) {
2025
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1670
2026
  newValue = this[propName];
1671
2027
  delete this[propName];
1672
2028
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1686,7 +2042,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1686
2042
  }
1687
2043
  return;
1688
2044
  }
1689
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2045
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2046
+ if (!propDesc.get || !!propDesc.set) {
2047
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2048
+ }
1690
2049
  });
1691
2050
  };
1692
2051
  Cstr.observedAttributes = Array.from(
@@ -2017,4 +2376,4 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
2017
2376
 
2018
2377
  export { H, Host as a, bootstrapLazy as b, createEvent as c, getRenderingRef as d, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2019
2378
 
2020
- //# sourceMappingURL=index-e7b35c14.js.map
2379
+ //# sourceMappingURL=index-b6f70e4a.js.map