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

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