@nova-design-system/nova-webcomponents 3.29.0 → 3.31.0

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 (427) hide show
  1. package/dist/cjs/{constants-BugGJYqL.js → constants-BSdCE1ZF.js} +5 -0
  2. package/dist/cjs/index-Bj9nnTVm.js +4856 -0
  3. package/dist/cjs/index.cjs.js +14 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/native.cjs.js +2 -2
  6. package/dist/cjs/nv-accordion-item.cjs.entry.js +3 -3
  7. package/dist/cjs/nv-accordion.cjs.entry.js +2 -2
  8. package/dist/cjs/nv-alert.cjs.entry.js +3 -3
  9. package/dist/cjs/nv-avatar.cjs.entry.js +3 -3
  10. package/dist/cjs/nv-badge_2.cjs.entry.js +5 -5
  11. package/dist/cjs/nv-breadcrumb.cjs.entry.js +2 -2
  12. package/dist/cjs/nv-breadcrumbs.cjs.entry.js +2 -2
  13. package/dist/cjs/nv-button.cjs.entry.js +3 -3
  14. package/dist/cjs/nv-buttongroup.cjs.entry.js +2 -2
  15. package/dist/cjs/nv-calendar.cjs.entry.js +4 -4
  16. package/dist/cjs/nv-col.cjs.entry.js +2 -2
  17. package/dist/cjs/nv-datagrid.cjs.entry.js +4 -4
  18. package/dist/cjs/nv-datagridcolumn.cjs.entry.js +2 -2
  19. package/dist/cjs/nv-datetest.cjs.entry.js +2 -2
  20. package/dist/cjs/nv-datetimetest.cjs.entry.js +1 -1
  21. package/dist/cjs/nv-dialog.cjs.entry.js +3 -3
  22. package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +4 -4
  23. package/dist/cjs/nv-drawer.cjs.entry.js +3 -3
  24. package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +4 -4
  25. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +5 -5
  26. package/dist/cjs/nv-fielddate.cjs.entry.js +7 -7
  27. package/dist/cjs/nv-fielddaterange.cjs.entry.js +7 -7
  28. package/dist/cjs/nv-fielddropdown.cjs.entry.js +101 -23
  29. package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +2 -2
  30. package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +1 -1
  31. package/dist/cjs/nv-fieldnumber.cjs.entry.js +5 -5
  32. package/dist/cjs/nv-fieldpassword.cjs.entry.js +5 -5
  33. package/dist/cjs/nv-fieldradio.cjs.entry.js +4 -4
  34. package/dist/cjs/nv-fieldselect.cjs.entry.js +45 -7
  35. package/dist/cjs/nv-fieldslider.cjs.entry.js +4 -4
  36. package/dist/cjs/nv-fieldtext.cjs.entry.js +5 -5
  37. package/dist/cjs/nv-fieldtextarea.cjs.entry.js +4 -4
  38. package/dist/cjs/nv-fieldtime.cjs.entry.js +5 -5
  39. package/dist/cjs/nv-icon.cjs.entry.js +4 -4
  40. package/dist/cjs/nv-iconbutton_2.cjs.entry.js +3 -3
  41. package/dist/cjs/nv-menu.cjs.entry.js +2 -2
  42. package/dist/cjs/nv-menuitem.cjs.entry.js +2 -2
  43. package/dist/cjs/nv-notification-bullet.cjs.entry.js +1 -1
  44. package/dist/cjs/nv-notification.cjs.entry.js +3 -3
  45. package/dist/cjs/nv-notificationcontainer.cjs.entry.js +2 -2
  46. package/dist/cjs/nv-pagination-nav.cjs.entry.js +2 -2
  47. package/dist/cjs/nv-paginationtable.cjs.entry.js +19 -3
  48. package/dist/cjs/nv-popover.cjs.entry.js +2 -2
  49. package/dist/cjs/nv-row.cjs.entry.js +2 -2
  50. package/dist/cjs/nv-sidebar.cjs.entry.js +178 -4
  51. package/dist/cjs/nv-sidebarcontent.cjs.entry.js +2 -2
  52. package/dist/cjs/nv-sidebardivider.cjs.entry.js +2 -2
  53. package/dist/cjs/nv-sidebarfooter.cjs.entry.js +2 -2
  54. package/dist/cjs/nv-sidebargroup.cjs.entry.js +2 -2
  55. package/dist/cjs/nv-sidebarheader.cjs.entry.js +2 -2
  56. package/dist/cjs/nv-sidebarlogo.cjs.entry.js +2 -2
  57. package/dist/cjs/nv-sidebarnavitem.cjs.entry.js +3 -3
  58. package/dist/cjs/nv-sidebarnavsubitem.cjs.entry.js +2 -2
  59. package/dist/cjs/nv-split.cjs.entry.js +2 -2
  60. package/dist/cjs/nv-stack.cjs.entry.js +2 -2
  61. package/dist/cjs/nv-statusindicator.cjs.entry.js +39 -0
  62. package/dist/cjs/nv-table.cjs.entry.js +3 -3
  63. package/dist/cjs/nv-tableheader.cjs.entry.js +2 -2
  64. package/dist/cjs/nv-tag.cjs.entry.js +82 -0
  65. package/dist/cjs/nv-timetest.cjs.entry.js +2 -2
  66. package/dist/cjs/nv-toggle.cjs.entry.js +3 -3
  67. package/dist/cjs/nv-togglebutton.cjs.entry.js +2 -2
  68. package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +2 -2
  69. package/dist/cjs/nv-tooltip.cjs.entry.js +2 -2
  70. package/dist/collection/collection-manifest.json +2 -0
  71. package/dist/collection/components/nv-accordion/nv-accordion.js +1 -1
  72. package/dist/collection/components/nv-accordion-item/nv-accordion-item.js +2 -2
  73. package/dist/collection/components/nv-alert/nv-alert.js +2 -2
  74. package/dist/collection/components/nv-avatar/nv-avatar.js +1 -1
  75. package/dist/collection/components/nv-badge/nv-badge.js +5 -5
  76. package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +1 -1
  77. package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +1 -1
  78. package/dist/collection/components/nv-button/nv-button.js +1 -1
  79. package/dist/collection/components/nv-buttongroup/nv-buttongroup.js +1 -1
  80. package/dist/collection/components/nv-calendar/nv-calendar.js +2 -2
  81. package/dist/collection/components/nv-col/nv-col.js +1 -1
  82. package/dist/collection/components/nv-datagrid/nv-datagrid.js +2 -2
  83. package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +1 -1
  84. package/dist/collection/components/nv-datetest/nv-datetest.js +1 -1
  85. package/dist/collection/components/nv-dialog/nv-dialog.js +1 -1
  86. package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +3 -3
  87. package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +1 -1
  88. package/dist/collection/components/nv-drawer/nv-drawer.js +1 -1
  89. package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js +3 -3
  90. package/dist/collection/components/nv-drawerheader/nv-drawerheader.js +1 -1
  91. package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +4 -4
  92. package/dist/collection/components/nv-fielddate/nv-fielddate.js +6 -6
  93. package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +6 -6
  94. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +11 -0
  95. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +151 -22
  96. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js +7 -7
  97. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
  98. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
  99. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +4 -4
  100. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +4 -4
  101. package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
  102. package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +11 -0
  103. package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +98 -5
  104. package/dist/collection/components/nv-fieldselect/styles/nv-fieldselect.css +3 -0
  105. package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +3 -3
  106. package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +4 -4
  107. package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
  108. package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +3 -3
  109. package/dist/collection/components/nv-icon/nv-icon.js +2 -2
  110. package/dist/collection/components/nv-icon/nv-icons.js +9 -0
  111. package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +2 -2
  112. package/dist/collection/components/nv-loader/nv-loader.js +1 -1
  113. package/dist/collection/components/nv-menu/nv-menu.js +1 -1
  114. package/dist/collection/components/nv-menuitem/nv-menuitem.js +2 -2
  115. package/dist/collection/components/nv-notification/nv-notification.js +2 -2
  116. package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +1 -1
  117. package/dist/collection/components/nv-pagination-nav/nv-pagination-nav.js +1 -1
  118. package/dist/collection/components/nv-paginationtable/nv-paginationtable.js +6 -3
  119. package/dist/collection/components/nv-paginationtable/nv-paginationtable.utils.js +13 -0
  120. package/dist/collection/components/nv-paginationtable/test/nv-paginationtable.utils.test.js +26 -1
  121. package/dist/collection/components/nv-popover/nv-popover.js +1 -1
  122. package/dist/collection/components/nv-row/nv-row.js +1 -1
  123. package/dist/collection/components/nv-sidebar/nv-sidebar.docs.js +7 -0
  124. package/dist/collection/components/nv-sidebar/nv-sidebar.js +274 -2
  125. package/dist/collection/components/nv-sidebar/styles/nv-sidebar.css +26 -0
  126. package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js +1 -1
  127. package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js +1 -1
  128. package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js +1 -1
  129. package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js +1 -1
  130. package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js +1 -1
  131. package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js +1 -1
  132. package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js +3 -3
  133. package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js +1 -1
  134. package/dist/collection/components/nv-split/nv-split.js +2 -1
  135. package/dist/collection/components/nv-stack/nv-stack.js +1 -1
  136. package/dist/collection/components/nv-statusindicator/nv-statusindicator.css +73 -0
  137. package/dist/collection/components/nv-statusindicator/nv-statusindicator.docs.js +34 -0
  138. package/dist/collection/components/nv-statusindicator/nv-statusindicator.js +122 -0
  139. package/dist/collection/components/nv-table/nv-table.js +1 -1
  140. package/dist/collection/components/nv-table/styles/nv-table.css +22 -3
  141. package/dist/collection/components/nv-tableheader/nv-tableheader.js +1 -1
  142. package/dist/collection/components/nv-tag/nv-tag.css +228 -0
  143. package/dist/collection/components/nv-tag/nv-tag.docs.js +114 -0
  144. package/dist/collection/components/nv-tag/nv-tag.js +251 -0
  145. package/dist/collection/components/nv-timetest/nv-timetest.js +1 -1
  146. package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
  147. package/dist/collection/components/nv-togglebutton/nv-togglebutton.js +1 -1
  148. package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +1 -1
  149. package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
  150. package/dist/collection/utils/constants.js +5 -0
  151. package/dist/components/index.js +1 -1
  152. package/dist/components/nv-accordion-item.js +1 -1
  153. package/dist/components/nv-accordion.js +1 -1
  154. package/dist/components/nv-alert.js +1 -1
  155. package/dist/components/nv-avatar.js +1 -1
  156. package/dist/components/nv-badge.js +1 -1
  157. package/dist/components/nv-breadcrumb.js +1 -1
  158. package/dist/components/nv-breadcrumbs.js +1 -1
  159. package/dist/components/nv-button.js +1 -1
  160. package/dist/components/nv-buttongroup.js +1 -1
  161. package/dist/components/nv-calendar.js +1 -1
  162. package/dist/components/nv-col.js +1 -1
  163. package/dist/components/nv-datagrid.js +1 -1
  164. package/dist/components/nv-datagridcolumn.js +1 -1
  165. package/dist/components/nv-datetest.js +1 -1
  166. package/dist/components/nv-datetimetest.js +1 -1
  167. package/dist/components/nv-dialog.js +1 -1
  168. package/dist/components/nv-dialogfooter.js +1 -1
  169. package/dist/components/nv-dialogheader.js +1 -1
  170. package/dist/components/nv-drawer.js +1 -1
  171. package/dist/components/nv-drawerfooter.js +1 -1
  172. package/dist/components/nv-drawerheader.js +1 -1
  173. package/dist/components/nv-fieldcheckbox.js +1 -1
  174. package/dist/components/nv-fielddate.js +1 -1
  175. package/dist/components/nv-fielddaterange.js +1 -1
  176. package/dist/components/nv-fielddropdown.js +1 -1
  177. package/dist/components/nv-fielddropdownitem.js +1 -1
  178. package/dist/components/nv-fielddropdownitemcheck.js +1 -1
  179. package/dist/components/nv-fieldmultiselect.js +1 -1
  180. package/dist/components/nv-fieldnumber.js +1 -1
  181. package/dist/components/nv-fieldpassword.js +1 -1
  182. package/dist/components/nv-fieldradio.js +1 -1
  183. package/dist/components/nv-fieldselect.js +1 -1
  184. package/dist/components/nv-fieldslider.js +1 -1
  185. package/dist/components/nv-fieldtext.js +1 -1
  186. package/dist/components/nv-fieldtextarea.js +1 -1
  187. package/dist/components/nv-fieldtime.js +1 -1
  188. package/dist/components/nv-icon.js +1 -1
  189. package/dist/components/nv-iconbutton.js +1 -1
  190. package/dist/components/nv-loader.js +1 -1
  191. package/dist/components/nv-menu.js +1 -1
  192. package/dist/components/nv-menuitem.js +1 -1
  193. package/dist/components/nv-notification-bullet.js +1 -1
  194. package/dist/components/nv-notification.js +1 -1
  195. package/dist/components/nv-notificationcontainer.js +1 -1
  196. package/dist/components/nv-pagination-nav.js +1 -1
  197. package/dist/components/nv-paginationtable.js +1 -1
  198. package/dist/components/nv-popover.js +1 -1
  199. package/dist/components/nv-row.js +1 -1
  200. package/dist/components/nv-sidebar.js +1 -1
  201. package/dist/components/nv-sidebarcontent.js +1 -1
  202. package/dist/components/nv-sidebardivider.js +1 -1
  203. package/dist/components/nv-sidebarfooter.js +1 -1
  204. package/dist/components/nv-sidebargroup.js +1 -1
  205. package/dist/components/nv-sidebarheader.js +1 -1
  206. package/dist/components/nv-sidebarlogo.js +1 -1
  207. package/dist/components/nv-sidebarnavitem.js +1 -1
  208. package/dist/components/nv-sidebarnavsubitem.js +1 -1
  209. package/dist/components/nv-split.js +1 -1
  210. package/dist/components/nv-stack.js +1 -1
  211. package/dist/components/nv-statusindicator.d.ts +11 -0
  212. package/dist/components/nv-statusindicator.js +1 -0
  213. package/dist/components/nv-table.js +1 -1
  214. package/dist/components/nv-tableheader.js +1 -1
  215. package/dist/components/nv-tag.d.ts +11 -0
  216. package/dist/components/nv-tag.js +1 -0
  217. package/dist/components/nv-timetest.js +1 -1
  218. package/dist/components/nv-toggle.js +1 -1
  219. package/dist/components/nv-togglebutton.js +1 -1
  220. package/dist/components/nv-togglebuttongroup.js +1 -1
  221. package/dist/components/nv-tooltip.js +1 -1
  222. package/dist/components/{p-CUjRfVPl.js → p-1Zs1aHJ4.js} +1 -1
  223. package/dist/components/{p-_zOMJBOq.js → p-B4Uw_U8V.js} +1 -1
  224. package/dist/components/{p-CfOVizcp.js → p-BFM_8Jgq.js} +1 -1
  225. package/dist/components/{p-CBlrNW6n.js → p-BU3AWnne.js} +1 -1
  226. package/dist/components/{p-DKgmDzJ1.js → p-B_SethFg.js} +1 -1
  227. package/dist/components/{p-D3JDACHw.js → p-Bt5_pj49.js} +1 -1
  228. package/dist/components/{p-RYxAzR3m.js → p-C-Rs6wG9.js} +1 -1
  229. package/dist/components/{p-Cuq_uNwY.js → p-CObbk0-q.js} +1 -1
  230. package/dist/components/{p-CD12QIMB.js → p-CTISxdir.js} +1 -1
  231. package/dist/components/p-C_eOV3Z7.js +1 -0
  232. package/dist/components/{p-CT782LKx.js → p-Co54UCK_.js} +1 -1
  233. package/dist/components/{p-DdcXhR3I.js → p-CsPx96EZ.js} +1 -1
  234. package/dist/components/{p-Bl7rc9YV.js → p-Cyn4-37z.js} +1 -1
  235. package/dist/components/{p-EV8CtE4q.js → p-CzRJpv7x.js} +1 -1
  236. package/dist/components/p-DCYvyQ_j.js +1 -0
  237. package/dist/components/{p-Cnlbk416.js → p-DWvQs_c-.js} +1 -1
  238. package/dist/components/{p-p1ofW2Cs.js → p-DZdOQQrW.js} +1 -1
  239. package/dist/components/p-DiwYO24j.js +2 -0
  240. package/dist/components/{p-ChVdX6FG.js → p-GDyaHbt9.js} +1 -1
  241. package/dist/components/p-Ghb9L_N-.js +1 -0
  242. package/dist/components/{p-CgufQqes.js → p-Oger3lC0.js} +1 -1
  243. package/dist/components/{p-Bytxo1iR.js → p-VppCgviO.js} +1 -1
  244. package/dist/components/{p-D1psKXwD.js → p-YhjPEgIT.js} +1 -1
  245. package/dist/components/p-gOKBmbgZ.js +1 -0
  246. package/dist/esm/{constants-BReL3Lsa.js → constants-gOKBmbgZ.js} +6 -1
  247. package/dist/esm/index-CTmBvINI.js +4820 -0
  248. package/dist/esm/index.js +10 -1
  249. package/dist/esm/loader.js +3 -3
  250. package/dist/esm/native.js +3 -3
  251. package/dist/esm/nv-accordion-item.entry.js +3 -3
  252. package/dist/esm/nv-accordion.entry.js +2 -2
  253. package/dist/esm/nv-alert.entry.js +3 -3
  254. package/dist/esm/nv-avatar.entry.js +3 -3
  255. package/dist/esm/nv-badge_2.entry.js +5 -5
  256. package/dist/esm/nv-breadcrumb.entry.js +2 -2
  257. package/dist/esm/nv-breadcrumbs.entry.js +2 -2
  258. package/dist/esm/nv-button.entry.js +3 -3
  259. package/dist/esm/nv-buttongroup.entry.js +2 -2
  260. package/dist/esm/nv-calendar.entry.js +4 -4
  261. package/dist/esm/nv-col.entry.js +2 -2
  262. package/dist/esm/nv-datagrid.entry.js +4 -4
  263. package/dist/esm/nv-datagridcolumn.entry.js +2 -2
  264. package/dist/esm/nv-datetest.entry.js +2 -2
  265. package/dist/esm/nv-datetimetest.entry.js +1 -1
  266. package/dist/esm/nv-dialog.entry.js +3 -3
  267. package/dist/esm/nv-dialogfooter_2.entry.js +4 -4
  268. package/dist/esm/nv-drawer.entry.js +3 -3
  269. package/dist/esm/nv-drawerfooter_2.entry.js +4 -4
  270. package/dist/esm/nv-fieldcheckbox.entry.js +5 -5
  271. package/dist/esm/nv-fielddate.entry.js +7 -7
  272. package/dist/esm/nv-fielddaterange.entry.js +7 -7
  273. package/dist/esm/nv-fielddropdown.entry.js +101 -23
  274. package/dist/esm/nv-fielddropdownitem.entry.js +2 -2
  275. package/dist/esm/nv-fieldmultiselect.entry.js +1 -1
  276. package/dist/esm/nv-fieldnumber.entry.js +5 -5
  277. package/dist/esm/nv-fieldpassword.entry.js +5 -5
  278. package/dist/esm/nv-fieldradio.entry.js +4 -4
  279. package/dist/esm/nv-fieldselect.entry.js +45 -7
  280. package/dist/esm/nv-fieldslider.entry.js +4 -4
  281. package/dist/esm/nv-fieldtext.entry.js +5 -5
  282. package/dist/esm/nv-fieldtextarea.entry.js +4 -4
  283. package/dist/esm/nv-fieldtime.entry.js +5 -5
  284. package/dist/esm/nv-icon.entry.js +4 -4
  285. package/dist/esm/nv-iconbutton_2.entry.js +3 -3
  286. package/dist/esm/nv-menu.entry.js +2 -2
  287. package/dist/esm/nv-menuitem.entry.js +2 -2
  288. package/dist/esm/nv-notification-bullet.entry.js +1 -1
  289. package/dist/esm/nv-notification.entry.js +3 -3
  290. package/dist/esm/nv-notificationcontainer.entry.js +2 -2
  291. package/dist/esm/nv-pagination-nav.entry.js +2 -2
  292. package/dist/esm/nv-paginationtable.entry.js +19 -3
  293. package/dist/esm/nv-popover.entry.js +2 -2
  294. package/dist/esm/nv-row.entry.js +2 -2
  295. package/dist/esm/nv-sidebar.entry.js +178 -4
  296. package/dist/esm/nv-sidebarcontent.entry.js +2 -2
  297. package/dist/esm/nv-sidebardivider.entry.js +2 -2
  298. package/dist/esm/nv-sidebarfooter.entry.js +2 -2
  299. package/dist/esm/nv-sidebargroup.entry.js +2 -2
  300. package/dist/esm/nv-sidebarheader.entry.js +2 -2
  301. package/dist/esm/nv-sidebarlogo.entry.js +2 -2
  302. package/dist/esm/nv-sidebarnavitem.entry.js +3 -3
  303. package/dist/esm/nv-sidebarnavsubitem.entry.js +2 -2
  304. package/dist/esm/nv-split.entry.js +2 -2
  305. package/dist/esm/nv-stack.entry.js +2 -2
  306. package/dist/esm/nv-statusindicator.entry.js +37 -0
  307. package/dist/esm/nv-table.entry.js +3 -3
  308. package/dist/esm/nv-tableheader.entry.js +2 -2
  309. package/dist/esm/nv-tag.entry.js +80 -0
  310. package/dist/esm/nv-timetest.entry.js +2 -2
  311. package/dist/esm/nv-toggle.entry.js +3 -3
  312. package/dist/esm/nv-togglebutton.entry.js +2 -2
  313. package/dist/esm/nv-togglebuttongroup.entry.js +2 -2
  314. package/dist/esm/nv-tooltip.entry.js +2 -2
  315. package/dist/native/index.esm.js +1 -1
  316. package/dist/native/native.css +5711 -1
  317. package/dist/native/native.esm.js +1 -1
  318. package/dist/native/{p-568fbdac.entry.js → p-007fef99.entry.js} +1 -1
  319. package/dist/native/{p-9b8478a7.entry.js → p-00f4c8d3.entry.js} +1 -1
  320. package/dist/native/{p-b7436a14.entry.js → p-06eb42e0.entry.js} +1 -1
  321. package/dist/native/{p-1bc76216.entry.js → p-13c507cd.entry.js} +1 -1
  322. package/dist/native/{p-5cefca3c.entry.js → p-144ab827.entry.js} +1 -1
  323. package/dist/native/p-16037ec8.entry.js +1 -0
  324. package/dist/native/{p-0d03b6ed.entry.js → p-270bf467.entry.js} +1 -1
  325. package/dist/native/{p-48c1bab4.entry.js → p-29acf903.entry.js} +1 -1
  326. package/dist/native/{p-706eeea4.entry.js → p-29b23e1d.entry.js} +1 -1
  327. package/dist/native/{p-07f3200b.entry.js → p-2b20125e.entry.js} +1 -1
  328. package/dist/native/p-31e192d9.entry.js +1 -0
  329. package/dist/native/p-34d30b90.entry.js +1 -0
  330. package/dist/native/{p-04e40a1e.entry.js → p-352854eb.entry.js} +1 -1
  331. package/dist/native/{p-26c0c34b.entry.js → p-3855de15.entry.js} +1 -1
  332. package/dist/native/{p-c20e0b5f.entry.js → p-3969a700.entry.js} +1 -1
  333. package/dist/native/{p-8e05077a.entry.js → p-39d5af96.entry.js} +1 -1
  334. package/dist/native/p-3bed118d.entry.js +1 -0
  335. package/dist/native/{p-eb737344.entry.js → p-410c21e3.entry.js} +1 -1
  336. package/dist/native/{p-1ea2a804.entry.js → p-42dc404a.entry.js} +1 -1
  337. package/dist/native/p-49ceb38e.entry.js +1 -0
  338. package/dist/native/{p-d468c445.entry.js → p-4b8945c0.entry.js} +1 -1
  339. package/dist/native/{p-4bb9b387.entry.js → p-4cff908a.entry.js} +1 -1
  340. package/dist/native/{p-3ddc967e.entry.js → p-513fb9e7.entry.js} +1 -1
  341. package/dist/native/p-5adac760.entry.js +1 -0
  342. package/dist/native/p-5c321768.entry.js +1 -0
  343. package/dist/native/{p-7fd6f0b0.entry.js → p-5df9c196.entry.js} +1 -1
  344. package/dist/native/{p-9a05395d.entry.js → p-5ef11914.entry.js} +1 -1
  345. package/dist/native/{p-59ecaf60.entry.js → p-64649214.entry.js} +1 -1
  346. package/dist/native/{p-27ecae3c.entry.js → p-6bb02337.entry.js} +1 -1
  347. package/dist/native/{p-2e932ca4.entry.js → p-6dab2e90.entry.js} +1 -1
  348. package/dist/native/p-6e49d3a1.entry.js +1 -0
  349. package/dist/native/{p-1450d746.entry.js → p-728f09d5.entry.js} +1 -1
  350. package/dist/native/{p-d5e931c9.entry.js → p-72c461ac.entry.js} +1 -1
  351. package/dist/native/{p-2d5189eb.entry.js → p-77bc9afe.entry.js} +1 -1
  352. package/dist/native/p-789fdae9.entry.js +1 -0
  353. package/dist/native/{p-49c6d122.entry.js → p-7b1c369b.entry.js} +1 -1
  354. package/dist/native/p-7b3853be.entry.js +1 -0
  355. package/dist/native/{p-2b1efb98.entry.js → p-80ba6f84.entry.js} +1 -1
  356. package/dist/native/{p-0d3ab890.entry.js → p-8dfcfb72.entry.js} +1 -1
  357. package/dist/native/p-90397b9d.entry.js +1 -0
  358. package/dist/native/p-915fe20c.entry.js +1 -0
  359. package/dist/native/{p-7bb2536f.entry.js → p-91719d87.entry.js} +1 -1
  360. package/dist/native/p-91cb5c65.entry.js +1 -0
  361. package/dist/native/{p-16600d93.entry.js → p-9affde0d.entry.js} +1 -1
  362. package/dist/native/p-CTmBvINI.js +2 -0
  363. package/dist/native/{p-f7fdca43.entry.js → p-a1ef6740.entry.js} +1 -1
  364. package/dist/native/p-a5d647f1.entry.js +1 -0
  365. package/dist/native/{p-0f9a284e.entry.js → p-a6554d37.entry.js} +1 -1
  366. package/dist/native/p-b2c31350.entry.js +1 -0
  367. package/dist/native/p-b76682bb.entry.js +1 -0
  368. package/dist/native/{p-a5e39524.entry.js → p-b7a10751.entry.js} +1 -1
  369. package/dist/native/{p-ca4ab8a5.entry.js → p-b88dcd21.entry.js} +1 -1
  370. package/dist/native/{p-0f59cb66.entry.js → p-bc0b637f.entry.js} +1 -1
  371. package/dist/native/p-bebf7bf7.entry.js +1 -0
  372. package/dist/native/{p-0770997b.entry.js → p-befb5e4e.entry.js} +1 -1
  373. package/dist/native/{p-0a17050f.entry.js → p-c81532c9.entry.js} +1 -1
  374. package/dist/native/{p-12269ed5.entry.js → p-cd21a60d.entry.js} +1 -1
  375. package/dist/native/p-cec93106.entry.js +1 -0
  376. package/dist/native/{p-f078f10a.entry.js → p-cfe99a3f.entry.js} +1 -1
  377. package/dist/native/{p-4badca4e.entry.js → p-d0c5f580.entry.js} +1 -1
  378. package/dist/native/{p-336d63c4.entry.js → p-dc000c85.entry.js} +1 -1
  379. package/dist/native/p-df3ab86a.entry.js +1 -0
  380. package/dist/native/p-ef90ca99.entry.js +1 -0
  381. package/dist/native/{p-2e40d5d9.entry.js → p-f6341ac4.entry.js} +1 -1
  382. package/dist/native/{p-2d37df11.entry.js → p-f986b4e5.entry.js} +1 -1
  383. package/dist/native/p-gOKBmbgZ.js +1 -0
  384. package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +39 -0
  385. package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +28 -0
  386. package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
  387. package/dist/types/components/nv-paginationtable/nv-paginationtable.utils.d.ts +9 -0
  388. package/dist/types/components/nv-sidebar/nv-sidebar.d.ts +43 -0
  389. package/dist/types/components/nv-split/nv-split.d.ts +1 -0
  390. package/dist/types/components/nv-statusindicator/nv-statusindicator.d.ts +22 -0
  391. package/dist/types/components/nv-statusindicator/nv-statusindicator.docs.d.ts +4 -0
  392. package/dist/types/components/nv-tag/nv-tag.d.ts +64 -0
  393. package/dist/types/components/nv-tag/nv-tag.docs.d.ts +4 -0
  394. package/dist/types/components.d.ts +248 -2
  395. package/dist/types/index.d.ts +1 -1
  396. package/dist/types/utils/constants.d.ts +4 -0
  397. package/dist/vscode-data.json +477 -0
  398. package/hydrate/index.js +604 -137
  399. package/hydrate/index.mjs +604 -137
  400. package/package.json +21 -9
  401. package/dist/cjs/index-eLt3bBQs.js +0 -4848
  402. package/dist/components/p-BReL3Lsa.js +0 -1
  403. package/dist/components/p-C47vpaBp.js +0 -1
  404. package/dist/components/p-C99g_PrG.js +0 -1
  405. package/dist/components/p-Cr_-lRNo.js +0 -1
  406. package/dist/components/p-flcatmxD.js +0 -2
  407. package/dist/esm/index-DU3Vhh_k.js +0 -4812
  408. package/dist/native/p-3afa34d1.entry.js +0 -1
  409. package/dist/native/p-5f6e45ca.entry.js +0 -1
  410. package/dist/native/p-6f1213fb.entry.js +0 -1
  411. package/dist/native/p-6f91712c.entry.js +0 -1
  412. package/dist/native/p-7126f67e.entry.js +0 -1
  413. package/dist/native/p-748661f0.entry.js +0 -1
  414. package/dist/native/p-7b545176.entry.js +0 -1
  415. package/dist/native/p-803759ef.entry.js +0 -1
  416. package/dist/native/p-92539825.entry.js +0 -1
  417. package/dist/native/p-943a4dfd.entry.js +0 -1
  418. package/dist/native/p-96078a63.entry.js +0 -1
  419. package/dist/native/p-BReL3Lsa.js +0 -1
  420. package/dist/native/p-DU3Vhh_k.js +0 -2
  421. package/dist/native/p-bff549dd.entry.js +0 -1
  422. package/dist/native/p-d5060f92.entry.js +0 -1
  423. package/dist/native/p-dc647a64.entry.js +0 -1
  424. package/dist/native/p-df5c6b0c.entry.js +0 -1
  425. package/dist/native/p-e8569a99.entry.js +0 -1
  426. package/dist/native/p-f3756dfd.entry.js +0 -1
  427. package/dist/native/p-f3ded7e8.entry.js +0 -1
@@ -1 +1 @@
1
- import{S as t,r as e,a as n,h as o,d as i,e as r}from"./p-DU3Vhh_k.js";import{u as s}from"./p-13YSIyGW.js";import{u as a}from"./p-Blc6XEY7.js";import"./p-xlgmw4x8.js";import{a as c,r as l}from"./p-B6GgGra-.js";import{a as u}from"./p-CuXVGECR.js";const f=Math.min,d=Math.max,h=Math.round,p=t=>({x:t,y:t}),m={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function g(t,e,n){return d(t,f(e,n))}function v(t,e){return"function"==typeof t?t(e):t}function w(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function x(t){return"x"===t?"y":"x"}function k(t){return"y"===t?"height":"width"}function A(t){return["top","bottom"].includes(w(t))?"y":"x"}function T(t){return x(A(t))}function O(t){return t.replace(/start|end/g,(t=>y[t]))}function S(t){return t.replace(/left|right|bottom|top/g,(t=>m[t]))}function C(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function j(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function P(t,e,n){let{reference:o,floating:i}=t;const r=A(e),s=T(e),a=k(s),c=w(e),l="y"===r,u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[a]/2-i[a]/2;let h;switch(c){case"top":h={x:u,y:o.y-i.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-i.width,y:f};break;default:h={x:o.x,y:o.y}}switch(b(e)){case"start":h[s]-=d*(n&&l?-1:1);break;case"end":h[s]+=d*(n&&l?-1:1)}return h}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=v(e,t),p=C(h),m=a[d?"floating"===f?"reference":"floating":f],y=j(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),b=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},x=j(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:c}):g);return{top:(y.top-x.top+p.top)/b.y,bottom:(x.bottom-y.bottom+p.bottom)/b.y,left:(y.left-x.left+p.left)/b.x,right:(x.right-y.right+p.right)/b.x}}function D(){return"undefined"!=typeof window}function M(t){return B(t)?(t.nodeName||"").toLowerCase():"#document"}function E(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function L(t){var e;return null==(e=(B(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function B(t){return!!D()&&(t instanceof Node||t instanceof E(t).Node)}function F(t){return!!D()&&(t instanceof Element||t instanceof E(t).Element)}function $(t){return!!D()&&(t instanceof HTMLElement||t instanceof E(t).HTMLElement)}function G(t){return!(!D()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof E(t).ShadowRoot)}function H(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=X(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function N(t){return["table","td","th"].includes(M(t))}function W(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function z(t){const e=I(),n=F(t)?X(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function I(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function V(t){return["html","body","#document"].includes(M(t))}function X(t){return E(t).getComputedStyle(t)}function Y(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _(t){if("html"===M(t))return t;const e=t.assignedSlot||t.parentNode||G(t)&&t.host||L(t);return G(e)?e.host:e}function U(t){const e=_(t);return V(e)?t.ownerDocument?t.ownerDocument.body:t.body:$(e)&&H(e)?e:U(e)}function K(t,e){var n;void 0===e&&(e=[]);const o=U(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=E(o);return i?e.concat(r,r.visualViewport||[],H(o)?o:[],[]):e.concat(o,K(o,[]))}function q(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function J(t){const e=X(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=$(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,a=h(n)!==r||h(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Q(t){return F(t)?t:t.contextElement}function Z(t){const e=Q(t);if(!$(e))return p(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=J(e);let s=(r?h(n.width):n.width)/o,a=(r?h(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const tt=p(0);function et(t){const e=E(t);return I()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:tt}function nt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=Q(t);let s=p(1);e&&(o?F(o)&&(s=Z(o)):s=Z(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==E(t))&&e}(r,n,o)?et(r):p(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,f=i.height/s.y;if(r){const t=E(r),e=o&&F(o)?E(o):o;let n=t,i=q(n);for(;i&&o&&e!==n;){const t=Z(i),e=i.getBoundingClientRect(),o=X(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,l*=t.y,u*=t.x,f*=t.y,c+=r,l+=s,n=E(i),i=q(n)}}return j({width:u,height:f,x:c,y:l})}function ot(t,e){const n=Y(t).scrollLeft;return e?e.left+n:nt(L(t)).left+n}function it(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=E(t),o=L(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;const t=I();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=L(t),n=Y(t),o=t.ownerDocument.body,i=d(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=d(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ot(t);const a=-n.scrollTop;return"rtl"===X(o).direction&&(s+=d(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}(L(t));else if(F(e))o=function(t,e){const n=nt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=$(t)?Z(t):p(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=et(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return j(o)}function rt(t,e){const n=_(t);return!(n===e||!F(n)||V(n))&&("fixed"===X(n).position||rt(n,e))}function st(t,e,n){const o=$(e),i=L(e),r="fixed"===n,s=nt(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const c=p(0);if(o||!o&&!r)if(("body"!==M(e)||H(i))&&(a=Y(e)),o){const t=nt(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=ot(i));let l=0,u=0;if(i&&!o&&!r){const t=i.getBoundingClientRect();u=t.top+a.scrollTop,l=t.left+a.scrollLeft-ot(i,t)}return{x:s.left+a.scrollLeft-c.x-l,y:s.top+a.scrollTop-c.y-u,width:s.width,height:s.height}}function at(t){return"static"===X(t).position}function ct(t,e){if(!$(t)||"fixed"===X(t).position)return null;if(e)return e(t);let n=t.offsetParent;return L(t)===n&&(n=n.ownerDocument.body),n}function lt(t,e){const n=E(t);if(W(t))return n;if(!$(t)){let e=_(t);for(;e&&!V(e);){if(F(e)&&!at(e))return e;e=_(e)}return n}let o=ct(t,e);for(;o&&N(o)&&at(o);)o=ct(o,e);return o&&V(o)&&at(o)&&!z(o)?n:o||function(t){let e=_(t);for(;$(e)&&!V(e);){if(z(e))return e;if(W(e))return null;e=_(e)}return null}(t)||n}const ut={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,s=L(o),a=!!e&&W(e.floating);if(o===s||a&&r)return n;let c={scrollLeft:0,scrollTop:0},l=p(1);const u=p(0),f=$(o);if((f||!f&&!r)&&(("body"!==M(o)||H(s))&&(c=Y(o)),$(o))){const t=nt(o);l=Z(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:L,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?W(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=K(t,[]).filter((t=>F(t)&&"body"!==M(t))),i=null;const r="fixed"===X(t).position;let s=r?_(t):t;for(;F(s)&&!V(s);){const e=X(s),n=z(s);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||H(s)&&!n&&rt(t,s))?o=o.filter((t=>t!==s)):i=e,s=_(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=r.reduce(((t,n)=>{const o=it(e,n,i);return t.top=d(o.top,t.top),t.right=f(o.right,t.right),t.bottom=f(o.bottom,t.bottom),t.left=d(o.left,t.left),t}),it(e,r[0],i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:lt,getElementRects:async function(t){const e=this.getOffsetParent||lt,n=this.getDimensions,o=await n(t.floating);return{reference:st(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=J(t);return{width:e,height:n}},getScale:Z,isElement:F,isRTL:function(t){return"rtl"===X(t).direction}},ft=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=v(t,e),l={x:n,y:o},u=await R(e,c),f=A(w(i)),d=x(f);let h=l[d],p=l[f];r&&(h=g(h+u["y"===d?"top":"left"],h,h-u["y"===d?"bottom":"right"])),s&&(p=g(p+u["y"===f?"top":"left"],p,p-u["y"===f?"bottom":"right"]));const m=a.fn({...e,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-o}}}}},dt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...y}=v(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const g=w(i),x=w(a)===a,A=await(null==c.isRTL?void 0:c.isRTL(l.floating)),C=d||(x||!m?[S(a)]:function(t){const e=S(t);return[O(t),e,O(e)]}(a));d||"none"===p||C.push(...function(t,e,n,o){const i=b(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}(w(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(O)))),r}(a,m,p,A));const j=[a,...C],P=await R(e,y),D=[];let M=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&D.push(P[g]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=b(t),i=T(t),r=k(i);let s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=S(s)),[s,S(s)]}(i,s,A);D.push(P[t[0]],P[t[1]])}if(M=[...M,{placement:i,overflows:D}],!D.every((t=>t<=0))){var E,L;const t=((null==(E=r.flip)?void 0:E.index)||0)+1,e=j[t];if(e)return{data:{index:t,overflows:M},reset:{placement:e}};let n=null==(L=M.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:L.placement;if(!n)switch(h){case"bestFit":{var B;const t=null==(B=M.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:B[0];t&&(n=t);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},ht=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=v(t,e)||{};if(null==l)return{};const d=C(u),h={x:n,y:o},p=T(i),m=k(p),y=await s.getDimensions(l),w="y"===p,x=w?"top":"left",A=w?"bottom":"right",O=w?"clientHeight":"clientWidth",S=r.reference[m]+r.reference[p]-h[p]-r.floating[m],j=h[p]-r.reference[p],P=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let R=P?P[O]:0;R&&await(null==s.isElement?void 0:s.isElement(P))||(R=a.floating[O]||r.floating[m]);const D=S/2-j/2,M=R/2-y[m]/2-1,E=f(d[x],M),L=f(d[A],M),B=E,F=R-y[m]-L,$=R/2-y[m]/2+D,G=g(B,$,F),H=!c.arrow&&null!=b(i)&&$!==G&&r.reference[m]/2-($<B?E:L)-y[m]/2<0,N=H?$<B?$-B:$-F:0;return{[p]:h[p]+N,data:{[p]:G,centerOffset:$-G-N,...H&&{alignmentOffset:N}},reset:H}}}),pt=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys()){const n=t.get(e).filter((t=>{const e=t.deref();return e&&(!("isConnected"in(n=e))||n.isConnected);var n}));t.set(e,n)}})(...e)}),2e3)}})(),mt=t.forceUpdate,yt=t.getRenderingRef,gt=(t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)},{state:vt}=(()=>{const t=((t,e=(t,e)=>t!==e)=>{const n=()=>{return("function"==typeof(e=t)?e():e)??{};var e},o=n();let i=new Map(Object.entries(o));const r="undefined"!=typeof Proxy,s=r?null:{},a={dispose:[],get:[],set:[],reset:[]},c=new Map,l=()=>{i=new Map(Object.entries(n())),r||m(),a.reset.forEach((t=>t()))},u=t=>(a.get.forEach((e=>e(t))),i.get(t)),f=(t,n)=>{const o=i.get(t);e(n,o,t)&&(i.set(t,n),r||p(t),a.set.forEach((e=>e(t,n,o))))},d=r?new Proxy(o,{get:(t,e)=>u(e),ownKeys:()=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>i.has(e),set:(t,e,n)=>(f(e,n),!0)}):(m(),s),h=(t,e)=>(a[t].push(e),()=>{gt(a[t],e)});function p(t){!r&&s&&(Object.prototype.hasOwnProperty.call(s,t)||Object.defineProperty(s,t,{configurable:!0,enumerable:!0,get:()=>u(t),set(e){f(t,e)}}))}function m(){if(r||!s)return;const t=new Set(i.keys());for(const e of Object.keys(s))t.has(e)||delete s[e];for(const e of t)p(e)}return{state:d,get:u,set:f,on:h,onChange:(t,e)=>{const o=(n,o)=>{n===t&&e(o)},i=()=>{const o=n();e(o[t])},r=h("set",o),s=h("reset",i);return c.set(e,{setHandler:o,resetHandler:i,propName:t}),()=>{r(),s(),c.delete(e)}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(h("set",e.set)),e.get&&t.push(h("get",e.get)),e.reset&&t.push(h("reset",e.reset)),e.dispose&&t.push(h("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{a.dispose.forEach((t=>t())),l()},reset:l,forceUpdate:t=>{const e=i.get(t);a.set.forEach((n=>n(t,e,e)))},removeListener:(t,e)=>{const n=c.get(e);n&&n.propName===t&&(gt(a.set,n.setHandler),gt(a.reset,n.resetHandler),c.delete(e))}}})({groups:new Map},void 0);return t.use((()=>{if("function"!=typeof yt||"function"!=typeof mt)return{};const t=mt,e=yt,n=new Map;return{dispose:()=>n.clear(),get:t=>{const o=e();o&&((t,e,n)=>{let o=t.get(e);o||(o=[],t.set(e,o)),o.some((t=>t.deref()===n))||o.push(new WeakRef(n))})(n,t,o)},set:e=>{const o=n.get(e);if(o){const i=o.filter((e=>{const n=e.deref();return!!n&&t(n)}));n.set(e,i)}pt(n)},reset:()=>{n.forEach((e=>{e.forEach((e=>{const n=e.deref();n&&t(n)}))})),pt(n)}}})()),t})(),wt=class{constructor(t){e(this,t),this.openChanged=n(this,"openChanged",3),this.eventsAttached=!1,this.isAnimating=!1,this.clickEvents=[["click",()=>this.open=!this.open]],this.hoverEvents=[["focus",()=>{clearTimeout(this.hideTimeout),this.showTimeout=setTimeout((()=>this.open=!0),this.enterDelay)}],["blur",()=>{clearTimeout(this.showTimeout),this.hideTimeout=setTimeout((()=>this.open=!1),50)}],["mouseenter",()=>{clearTimeout(this.hideTimeout),this.showTimeout=setTimeout((()=>this.open=!0),this.enterDelay)}],["mouseleave",()=>{clearTimeout(this.showTimeout),this.hideTimeout=setTimeout((()=>this.open=!1),100)}]],this.closeEvents=[["keydown",t=>{"Escape"===t.key&&"controlled"!==this.triggerMode&&(this.open=!1)}]],this.open=!1,this.triggerMode="click",this.placement="bottom",this.strategy="absolute",this.offset=6,this.hasArrow=!1,this.disableFlip=!1,this.shiftPadding=0,this.enterDelay=0,this.nested=!1,this.handleClickOutside=t=>{this.el.contains(t.target)||this.triggerElement?.contains(t.target)||(this.open=!1)},this.outsideClickEvents=[["click",this.handleClickOutside],["touchstart",this.handleClickOutside]]}async show(){this.open=!0}async hide(){this.open=!1}async toggle(){this.open=!this.open}attachEventListeners(){this.triggerElement&&!this.eventsAttached&&(c(this.closeEvents,document,this),"click"===this.triggerMode&&(c(this.clickEvents,this.triggerElement,this),c(this.outsideClickEvents,document,this)),"hover"===this.triggerMode&&c(this.hoverEvents,this.triggerElement,this),this.eventsAttached=!0)}positionPopover(){var t;this.triggerElement&&((t,e,n)=>{const o=new Map,i={platform:ut,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=P(l,o,c),d=o,h={},p=0;for(let n=0;n<a.length;n++){const{name:r,fn:m}=a[n],{x:y,y:g,data:v,reset:w}=await m({x:u,y:f,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:t,floating:e}});u=null!=y?y:u,f=null!=g?g:f,h={...h,[r]:{...h[r],...v}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(l=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):w.rects),({x:u,y:f}=P(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:i,middlewareData:h}})(t,e,{...i,platform:r})})(u(this.triggerElement),this.popoverElement,{placement:this.placement,strategy:this.strategy,middleware:[(t=this.offset,void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=w(n),a=b(n),c="y"===A(n),l=["left","top"].includes(s)?-1:1,u=r&&c?-1:1,f=v(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),c?{x:h*u,y:d*l}:{x:d*l,y:h*u}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}),!this.disableFlip&&dt({fallbackStrategy:"bestFit",crossAxis:!0,fallbackPlacements:["bottom"]}),ft({padding:this.shiftPadding}),this.hasArrow&&ht({element:this.arrowElement})]}).then((({x:t,y:e,placement:n,middlewareData:o,strategy:i})=>{if(Object.assign(this.popoverElement.style,{left:`${t}px`,top:`${e}px`,position:i}),this.hasArrow){const t={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],e={top:"rotate(225deg)",right:"rotate(315deg)",bottom:"rotate(45deg)",left:"rotate(135deg)"}[n.split("-")[0]],{x:i,y:r}=o.arrow;Object.assign(this.arrowElement.style,{left:null!=i?`${i}px`:"",top:null!=r?`${r}px`:"",right:"",bottom:"",transform:e,[t]:"-4px"})}}))}async handleOpenChange(t){for(;this.isAnimating;)await new Promise((t=>setTimeout(t,50)));this.isAnimating=!0;const e=vt.groups.get(this.groupName),n=e&&e.openedBy!==this.el,o=e&&e.openedBy===this.el;t&&this.popoverElement.style.removeProperty("display"),o&&!t&&vt.groups.delete(this.groupName),this.groupName&&t&&vt.groups.set(this.groupName,{openedBy:this.el});const{growIn:i}=a(this.popoverElement,{duration:n?0:100,amount:.85}),{fadeOut:r}=s(this.popoverElement,{duration:n?0:100});!0===t&&(this.popoverElement.removeAttribute("hidden"),this.positionPopover(),await i()),!1===t&&(await r(),this.popoverElement.setAttribute("hidden","")),this.isAnimating=!1,this.openChanged.emit(t)}handleStrategyChange(){this.open&&this.positionPopover()}componentWillRender(){this.triggerElement||(this.triggerElement=this.el.querySelector('[slot="trigger"]')),this.attachEventListeners()}componentDidLoad(){if(this.open){const{setFadeIn:t}=s(this.popoverElement);t(),this.popoverElement.removeAttribute("hidden")}else{const{setGrowOut:t}=a(this.popoverElement);t()}this.positionPopover()}disconnectedCallback(){l(this.closeEvents,document,this),"click"===this.triggerMode&&(l(this.clickEvents,this.triggerElement,this),l(this.outsideClickEvents,document,this)),"hover"===this.triggerMode&&l(this.hoverEvents,this.triggerElement,this),this.eventsAttached=!1,this.hideTimeout&&clearTimeout(this.hideTimeout),this.showTimeout&&clearTimeout(this.showTimeout)}render(){return o(i,{key:"8f9429a26146be5feff838bff9861c8016bcae72"},o("slot",{key:"507917d729f202d0ec29e2011b0aae958a4474b5",name:"trigger"}),o("div",{key:"cc85ae4610b0554b2cddd2fb62a8e8df5b8de21f","data-scope":"popover","data-strategy":this.strategy,hidden:!0,ref:t=>this.popoverElement=t},this.hasArrow&&o("div",{key:"e53a79dc2a4d439271d55391ad087c0db8abaf19","data-scope":"arrow",ref:t=>this.arrowElement=t}),o("slot",{key:"ef72627c588727dff2f558133d46e1689a89fc24",name:"content"})))}get el(){return r(this)}static get watchers(){return{open:[{handleOpenChange:0}],strategy:[{handleStrategyChange:0}]}}};wt.style="nv-popover{display:inline-block;position:relative}nv-popover:has([fluid]:not([fluid=false])){display:block}nv-popover[strategy=fixed]{position:static}nv-popover>[data-scope=popover]{width:max-content;background-color:var(--components-popover-background);border-color:var(--components-popover-border);font-weight:var(--font-weight-medium-emphasis);border-width:1px;border-style:solid;border-radius:var(--popover-radius);padding:var(--popover-padding-y) var(--popover-padding-x);position:absolute;top:0;left:0;z-index:1;box-shadow:var(--popover-shadow-1-x) var(--popover-shadow-1-y) var(--popover-shadow-1-blur) -2px var(--popover-shadow-1-opacity), var(--popover-shadow-2-x) var(--popover-shadow-2-y) var(--popover-shadow-2-blur) var(--shadow-spread-lg-2) var(--popover-shadow-2-opacity)}nv-popover>[data-scope=popover][hidden]:not([hidden=false]){display:none}nv-popover>[data-scope=popover][data-strategy=fixed]{position:fixed;z-index:9999}nv-popover>[data-scope=popover]>[data-scope=arrow]{background-color:var(--components-popover-background);position:absolute;border-color:var(--components-popover-border);border-width:1px;border-style:solid;border-bottom-color:transparent;border-right-color:transparent;width:8px;height:8px;transform:rotate(45deg);border-radius:1px}nv-popover>[data-scope=popover]>[slot=content]{position:relative;z-index:1}nv-popover>slot-fb{display:none}";export{wt as nv_popover}
1
+ import{S as t,r as e,a as n,h as o,d as i,e as r}from"./p-CTmBvINI.js";import{u as s}from"./p-13YSIyGW.js";import{u as a}from"./p-Blc6XEY7.js";import"./p-xlgmw4x8.js";import{a as c,r as l}from"./p-B6GgGra-.js";import{a as u}from"./p-CuXVGECR.js";const f=Math.min,d=Math.max,h=Math.round,p=t=>({x:t,y:t}),m={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function g(t,e,n){return d(t,f(e,n))}function v(t,e){return"function"==typeof t?t(e):t}function w(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function x(t){return"x"===t?"y":"x"}function k(t){return"y"===t?"height":"width"}function T(t){return["top","bottom"].includes(w(t))?"y":"x"}function A(t){return x(T(t))}function C(t){return t.replace(/start|end/g,(t=>y[t]))}function O(t){return t.replace(/left|right|bottom|top/g,(t=>m[t]))}function S(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function j(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function P(t,e,n){let{reference:o,floating:i}=t;const r=T(e),s=A(e),a=k(s),c=w(e),l="y"===r,u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[a]/2-i[a]/2;let h;switch(c){case"top":h={x:u,y:o.y-i.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-i.width,y:f};break;default:h={x:o.x,y:o.y}}switch(b(e)){case"start":h[s]-=d*(n&&l?-1:1);break;case"end":h[s]+=d*(n&&l?-1:1)}return h}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=v(e,t),p=S(h),m=a[d?"floating"===f?"reference":"floating":f],y=j(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),b=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},x=j(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:c}):g);return{top:(y.top-x.top+p.top)/b.y,bottom:(x.bottom-y.bottom+p.bottom)/b.y,left:(y.left-x.left+p.left)/b.x,right:(x.right-y.right+p.right)/b.x}}function D(){return"undefined"!=typeof window}function M(t){return L(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function E(t){var e;return null==(e=(L(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function L(t){return!!D()&&(t instanceof Node||t instanceof B(t).Node)}function F(t){return!!D()&&(t instanceof Element||t instanceof B(t).Element)}function $(t){return!!D()&&(t instanceof HTMLElement||t instanceof B(t).HTMLElement)}function G(t){return!(!D()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof B(t).ShadowRoot)}function I(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=Y(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function N(t){return["table","td","th"].includes(M(t))}function H(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function W(t){const e=z(),n=F(t)?Y(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function X(t){return["html","body","#document"].includes(M(t))}function Y(t){return B(t).getComputedStyle(t)}function V(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _(t){if("html"===M(t))return t;const e=t.assignedSlot||t.parentNode||G(t)&&t.host||E(t);return G(e)?e.host:e}function K(t){const e=_(t);return X(e)?t.ownerDocument?t.ownerDocument.body:t.body:$(e)&&I(e)?e:K(e)}function U(t,e){var n;void 0===e&&(e=[]);const o=K(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=B(o);return i?e.concat(r,r.visualViewport||[],I(o)?o:[],[]):e.concat(o,U(o,[]))}function q(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function J(t){const e=Y(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=$(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,a=h(n)!==r||h(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Q(t){return F(t)?t:t.contextElement}function Z(t){const e=Q(t);if(!$(e))return p(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=J(e);let s=(r?h(n.width):n.width)/o,a=(r?h(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const tt=p(0);function et(t){const e=B(t);return z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:tt}function nt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=Q(t);let s=p(1);e&&(o?F(o)&&(s=Z(o)):s=Z(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==B(t))&&e}(r,n,o)?et(r):p(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,f=i.height/s.y;if(r){const t=B(r),e=o&&F(o)?B(o):o;let n=t,i=q(n);for(;i&&o&&e!==n;){const t=Z(i),e=i.getBoundingClientRect(),o=Y(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,l*=t.y,u*=t.x,f*=t.y,c+=r,l+=s,n=B(i),i=q(n)}}return j({width:u,height:f,x:c,y:l})}function ot(t,e){const n=V(t).scrollLeft;return e?e.left+n:nt(E(t)).left+n}function it(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=B(t),o=E(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;const t=z();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=E(t),n=V(t),o=t.ownerDocument.body,i=d(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=d(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ot(t);const a=-n.scrollTop;return"rtl"===Y(o).direction&&(s+=d(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}(E(t));else if(F(e))o=function(t,e){const n=nt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=$(t)?Z(t):p(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=et(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return j(o)}function rt(t,e){const n=_(t);return!(n===e||!F(n)||X(n))&&("fixed"===Y(n).position||rt(n,e))}function st(t,e,n){const o=$(e),i=E(e),r="fixed"===n,s=nt(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const c=p(0);if(o||!o&&!r)if(("body"!==M(e)||I(i))&&(a=V(e)),o){const t=nt(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=ot(i));let l=0,u=0;if(i&&!o&&!r){const t=i.getBoundingClientRect();u=t.top+a.scrollTop,l=t.left+a.scrollLeft-ot(i,t)}return{x:s.left+a.scrollLeft-c.x-l,y:s.top+a.scrollTop-c.y-u,width:s.width,height:s.height}}function at(t){return"static"===Y(t).position}function ct(t,e){if(!$(t)||"fixed"===Y(t).position)return null;if(e)return e(t);let n=t.offsetParent;return E(t)===n&&(n=n.ownerDocument.body),n}function lt(t,e){const n=B(t);if(H(t))return n;if(!$(t)){let e=_(t);for(;e&&!X(e);){if(F(e)&&!at(e))return e;e=_(e)}return n}let o=ct(t,e);for(;o&&N(o)&&at(o);)o=ct(o,e);return o&&X(o)&&at(o)&&!W(o)?n:o||function(t){let e=_(t);for(;$(e)&&!X(e);){if(W(e))return e;if(H(e))return null;e=_(e)}return null}(t)||n}const ut={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,s=E(o),a=!!e&&H(e.floating);if(o===s||a&&r)return n;let c={scrollLeft:0,scrollTop:0},l=p(1);const u=p(0),f=$(o);if((f||!f&&!r)&&(("body"!==M(o)||I(s))&&(c=V(o)),$(o))){const t=nt(o);l=Z(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:E,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?H(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=U(t,[]).filter((t=>F(t)&&"body"!==M(t))),i=null;const r="fixed"===Y(t).position;let s=r?_(t):t;for(;F(s)&&!X(s);){const e=Y(s),n=W(s);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||I(s)&&!n&&rt(t,s))?o=o.filter((t=>t!==s)):i=e,s=_(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=r.reduce(((t,n)=>{const o=it(e,n,i);return t.top=d(o.top,t.top),t.right=f(o.right,t.right),t.bottom=f(o.bottom,t.bottom),t.left=d(o.left,t.left),t}),it(e,r[0],i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:lt,getElementRects:async function(t){const e=this.getOffsetParent||lt,n=this.getDimensions,o=await n(t.floating);return{reference:st(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=J(t);return{width:e,height:n}},getScale:Z,isElement:F,isRTL:function(t){return"rtl"===Y(t).direction}},ft=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=v(t,e),l={x:n,y:o},u=await R(e,c),f=T(w(i)),d=x(f);let h=l[d],p=l[f];r&&(h=g(h+u["y"===d?"top":"left"],h,h-u["y"===d?"bottom":"right"])),s&&(p=g(p+u["y"===f?"top":"left"],p,p-u["y"===f?"bottom":"right"]));const m=a.fn({...e,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-o}}}}},dt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...y}=v(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const g=w(i),x=w(a)===a,T=await(null==c.isRTL?void 0:c.isRTL(l.floating)),S=d||(x||!m?[O(a)]:function(t){const e=O(t);return[C(t),e,C(e)]}(a));d||"none"===p||S.push(...function(t,e,n,o){const i=b(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}(w(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(C)))),r}(a,m,p,T));const j=[a,...S],P=await R(e,y),D=[];let M=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&D.push(P[g]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=b(t),i=A(t),r=k(i);let s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=O(s)),[s,O(s)]}(i,s,T);D.push(P[t[0]],P[t[1]])}if(M=[...M,{placement:i,overflows:D}],!D.every((t=>t<=0))){var B,E;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=j[t];if(e)return{data:{index:t,overflows:M},reset:{placement:e}};let n=null==(E=M.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:E.placement;if(!n)switch(h){case"bestFit":{var L;const t=null==(L=M.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0];t&&(n=t);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},ht=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=v(t,e)||{};if(null==l)return{};const d=S(u),h={x:n,y:o},p=A(i),m=k(p),y=await s.getDimensions(l),w="y"===p,x=w?"top":"left",T=w?"bottom":"right",C=w?"clientHeight":"clientWidth",O=r.reference[m]+r.reference[p]-h[p]-r.floating[m],j=h[p]-r.reference[p],P=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let R=P?P[C]:0;R&&await(null==s.isElement?void 0:s.isElement(P))||(R=a.floating[C]||r.floating[m]);const D=O/2-j/2,M=R/2-y[m]/2-1,B=f(d[x],M),E=f(d[T],M),L=B,F=R-y[m]-E,$=R/2-y[m]/2+D,G=g(L,$,F),I=!c.arrow&&null!=b(i)&&$!==G&&r.reference[m]/2-($<L?B:E)-y[m]/2<0,N=I?$<L?$-L:$-F:0;return{[p]:h[p]+N,data:{[p]:G,centerOffset:$-G-N,...I&&{alignmentOffset:N}},reset:I}}}),pt=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys()){const n=t.get(e).filter((t=>{const e=t.deref();return e&&(!("isConnected"in(n=e))||n.isConnected);var n}));t.set(e,n)}})(...e)}),2e3)}})(),mt=t.forceUpdate,yt=t.getRenderingRef,gt=(t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)},{state:vt}=(()=>{const t=((t,e=(t,e)=>t!==e)=>{const n=()=>{return("function"==typeof(e=t)?e():e)??{};var e},o=n();let i=new Map(Object.entries(o));const r="undefined"!=typeof Proxy,s=r?null:{},a={dispose:[],get:[],set:[],reset:[]},c=new Map,l=()=>{i=new Map(Object.entries(n())),r||m(),a.reset.forEach((t=>t()))},u=t=>(a.get.forEach((e=>e(t))),i.get(t)),f=(t,n)=>{const o=i.get(t);e(n,o,t)&&(i.set(t,n),r||p(t),a.set.forEach((e=>e(t,n,o))))},d=r?new Proxy(o,{get:(t,e)=>u(e),ownKeys:()=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>i.has(e),set:(t,e,n)=>(f(e,n),!0)}):(m(),s),h=(t,e)=>(a[t].push(e),()=>{gt(a[t],e)});function p(t){!r&&s&&(Object.prototype.hasOwnProperty.call(s,t)||Object.defineProperty(s,t,{configurable:!0,enumerable:!0,get:()=>u(t),set(e){f(t,e)}}))}function m(){if(r||!s)return;const t=new Set(i.keys());for(const e of Object.keys(s))t.has(e)||delete s[e];for(const e of t)p(e)}return{state:d,get:u,set:f,on:h,onChange:(t,e)=>{const o=(n,o)=>{n===t&&e(o)},i=()=>{const o=n();e(o[t])},r=h("set",o),s=h("reset",i);return c.set(e,{setHandler:o,resetHandler:i,propName:t}),()=>{r(),s(),c.delete(e)}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(h("set",e.set)),e.get&&t.push(h("get",e.get)),e.reset&&t.push(h("reset",e.reset)),e.dispose&&t.push(h("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{a.dispose.forEach((t=>t())),l()},reset:l,forceUpdate:t=>{const e=i.get(t);a.set.forEach((n=>n(t,e,e)))},removeListener:(t,e)=>{const n=c.get(e);n&&n.propName===t&&(gt(a.set,n.setHandler),gt(a.reset,n.resetHandler),c.delete(e))}}})({groups:new Map},void 0);return t.use((()=>{if("function"!=typeof yt||"function"!=typeof mt)return{};const t=mt,e=yt,n=new Map;return{dispose:()=>n.clear(),get:t=>{const o=e();o&&((t,e,n)=>{let o=t.get(e);o||(o=[],t.set(e,o)),o.some((t=>t.deref()===n))||o.push(new WeakRef(n))})(n,t,o)},set:e=>{const o=n.get(e);if(o){const i=o.filter((e=>{const n=e.deref();return!!n&&t(n)}));n.set(e,i)}pt(n)},reset:()=>{n.forEach((e=>{e.forEach((e=>{const n=e.deref();n&&t(n)}))})),pt(n)}}})()),t})(),wt=class{constructor(t){e(this,t),this.openChanged=n(this,"openChanged",3),this.eventsAttached=!1,this.isAnimating=!1,this.clickEvents=[["click",()=>this.open=!this.open]],this.hoverEvents=[["focus",()=>{clearTimeout(this.hideTimeout),this.showTimeout=setTimeout((()=>this.open=!0),this.enterDelay)}],["blur",()=>{clearTimeout(this.showTimeout),this.hideTimeout=setTimeout((()=>this.open=!1),50)}],["mouseenter",()=>{clearTimeout(this.hideTimeout),this.showTimeout=setTimeout((()=>this.open=!0),this.enterDelay)}],["mouseleave",()=>{clearTimeout(this.showTimeout),this.hideTimeout=setTimeout((()=>this.open=!1),100)}]],this.closeEvents=[["keydown",t=>{"Escape"===t.key&&"controlled"!==this.triggerMode&&(this.open=!1)}]],this.open=!1,this.triggerMode="click",this.placement="bottom",this.strategy="absolute",this.offset=6,this.hasArrow=!1,this.disableFlip=!1,this.shiftPadding=0,this.enterDelay=0,this.nested=!1,this.handleClickOutside=t=>{this.el.contains(t.target)||this.triggerElement?.contains(t.target)||(this.open=!1)},this.outsideClickEvents=[["click",this.handleClickOutside],["touchstart",this.handleClickOutside]]}async show(){this.open=!0}async hide(){this.open=!1}async toggle(){this.open=!this.open}attachEventListeners(){this.triggerElement&&!this.eventsAttached&&(c(this.closeEvents,document,this),"click"===this.triggerMode&&(c(this.clickEvents,this.triggerElement,this),c(this.outsideClickEvents,document,this)),"hover"===this.triggerMode&&c(this.hoverEvents,this.triggerElement,this),this.eventsAttached=!0)}positionPopover(){var t;this.triggerElement&&((t,e,n)=>{const o=new Map,i={platform:ut,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=P(l,o,c),d=o,h={},p=0;for(let n=0;n<a.length;n++){const{name:r,fn:m}=a[n],{x:y,y:g,data:v,reset:w}=await m({x:u,y:f,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:t,floating:e}});u=null!=y?y:u,f=null!=g?g:f,h={...h,[r]:{...h[r],...v}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(l=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):w.rects),({x:u,y:f}=P(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:i,middlewareData:h}})(t,e,{...i,platform:r})})(u(this.triggerElement),this.popoverElement,{placement:this.placement,strategy:this.strategy,middleware:[(t=this.offset,void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=w(n),a=b(n),c="y"===T(n),l=["left","top"].includes(s)?-1:1,u=r&&c?-1:1,f=v(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),c?{x:h*u,y:d*l}:{x:d*l,y:h*u}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}),!this.disableFlip&&dt({fallbackStrategy:"bestFit",crossAxis:!0,fallbackPlacements:["bottom"]}),ft({padding:this.shiftPadding}),this.hasArrow&&ht({element:this.arrowElement})]}).then((({x:t,y:e,placement:n,middlewareData:o,strategy:i})=>{if(Object.assign(this.popoverElement.style,{left:`${t}px`,top:`${e}px`,position:i}),this.hasArrow){const t={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],e={top:"rotate(225deg)",right:"rotate(315deg)",bottom:"rotate(45deg)",left:"rotate(135deg)"}[n.split("-")[0]],{x:i,y:r}=o.arrow;Object.assign(this.arrowElement.style,{left:null!=i?`${i}px`:"",top:null!=r?`${r}px`:"",right:"",bottom:"",transform:e,[t]:"-4px"})}}))}async handleOpenChange(t){for(;this.isAnimating;)await new Promise((t=>setTimeout(t,50)));this.isAnimating=!0;const e=vt.groups.get(this.groupName),n=e&&e.openedBy!==this.el,o=e&&e.openedBy===this.el;t&&this.popoverElement.style.removeProperty("display"),o&&!t&&vt.groups.delete(this.groupName),this.groupName&&t&&vt.groups.set(this.groupName,{openedBy:this.el});const{growIn:i}=a(this.popoverElement,{duration:n?0:100,amount:.85}),{fadeOut:r}=s(this.popoverElement,{duration:n?0:100});!0===t&&(this.popoverElement.removeAttribute("hidden"),this.positionPopover(),await i()),!1===t&&(await r(),this.popoverElement.setAttribute("hidden","")),this.isAnimating=!1,this.openChanged.emit(t)}handleStrategyChange(){this.open&&this.positionPopover()}componentWillRender(){this.triggerElement||(this.triggerElement=this.el.querySelector('[slot="trigger"]')),this.attachEventListeners()}componentDidLoad(){if(this.open){const{setFadeIn:t}=s(this.popoverElement);t(),this.popoverElement.removeAttribute("hidden")}else{const{setGrowOut:t}=a(this.popoverElement);t()}this.positionPopover()}disconnectedCallback(){l(this.closeEvents,document,this),"click"===this.triggerMode&&(l(this.clickEvents,this.triggerElement,this),l(this.outsideClickEvents,document,this)),"hover"===this.triggerMode&&l(this.hoverEvents,this.triggerElement,this),this.eventsAttached=!1,this.hideTimeout&&clearTimeout(this.hideTimeout),this.showTimeout&&clearTimeout(this.showTimeout)}render(){return o(i,{key:"bf65e878d126fd511b574bf0262dde4f60e89750"},o("slot",{key:"5482a6bc3d6eb3edfa6653623f6c3024c6d150be",name:"trigger"}),o("div",{key:"6cd445d44ad05def95647d2898dc19092716a8ee","data-scope":"popover","data-strategy":this.strategy,hidden:!0,ref:t=>this.popoverElement=t},this.hasArrow&&o("div",{key:"b23f0f9709f733a44d239a05b99f965d5ba036fb","data-scope":"arrow",ref:t=>this.arrowElement=t}),o("slot",{key:"423901f5afaf3418edc8870b4de7b113151c685d",name:"content"})))}get el(){return r(this)}static get watchers(){return{open:[{handleOpenChange:0}],strategy:[{handleStrategyChange:0}]}}};wt.style="nv-popover{display:inline-block;position:relative}nv-popover:has([fluid]:not([fluid=false])){display:block}nv-popover[strategy=fixed]{position:static}nv-popover>[data-scope=popover]{width:max-content;background-color:var(--components-popover-background);border-color:var(--components-popover-border);font-weight:var(--font-weight-medium-emphasis);border-width:1px;border-style:solid;border-radius:var(--popover-radius);padding:var(--popover-padding-y) var(--popover-padding-x);position:absolute;top:0;left:0;z-index:1;box-shadow:var(--popover-shadow-1-x) var(--popover-shadow-1-y) var(--popover-shadow-1-blur) -2px var(--popover-shadow-1-opacity), var(--popover-shadow-2-x) var(--popover-shadow-2-y) var(--popover-shadow-2-blur) var(--shadow-spread-lg-2) var(--popover-shadow-2-opacity)}nv-popover>[data-scope=popover][hidden]:not([hidden=false]){display:none}nv-popover>[data-scope=popover][data-strategy=fixed]{position:fixed;z-index:9999}nv-popover>[data-scope=popover]>[data-scope=arrow]{background-color:var(--components-popover-background);position:absolute;border-color:var(--components-popover-border);border-width:1px;border-style:solid;border-bottom-color:transparent;border-right-color:transparent;width:8px;height:8px;transform:rotate(45deg);border-radius:1px}nv-popover>[data-scope=popover]>[slot=content]{position:relative;z-index:1}nv-popover>slot-fb{display:none}";export{wt as nv_popover}