@nubisco/ui 5.18.0 → 5.19.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 (531) hide show
  1. package/dist/{AccordionItem-Cg8wmypl.js → AccordionItem-BrpJObcb.js} +2 -2
  2. package/dist/{AccordionItem-CCndN0ln.cjs → AccordionItem-DVwcaU3f.cjs} +1 -1
  3. package/dist/ActionGroup-0u17QzT8.js +170 -0
  4. package/dist/ActionGroup-CMuposow.cjs +1 -0
  5. package/dist/{AiLabel-BxCWEOn-.js → AiLabel-BFrehX_F.js} +1 -1
  6. package/dist/{AiLabel-D4gkbAEC.cjs → AiLabel-kmL1-Hdo.cjs} +1 -1
  7. package/dist/{BarChart-DUy6vE_i.js → BarChart-DTStA9jd.js} +4 -4
  8. package/dist/{BarChart-B3B7wH20.cjs → BarChart-Dvrl4xeX.cjs} +1 -1
  9. package/dist/{Blueprint-DzzoerbM.js → Blueprint-CB5a7H5o.js} +2 -2
  10. package/dist/{Blueprint-CnXyZkSE.cjs → Blueprint-DIrWXKml.cjs} +1 -1
  11. package/dist/{BlueprintCard-2Q1zYWcN.js → BlueprintCard-BmuGjOCn.js} +1 -1
  12. package/dist/{BlueprintCard-D3Rr5cKO.cjs → BlueprintCard-DhnoClRB.cjs} +1 -1
  13. package/dist/{BlueprintControls-CuOAdppD.js → BlueprintControls-C0yhBzYT.js} +1 -1
  14. package/dist/{BlueprintControls-LCIgk-cb.cjs → BlueprintControls-Qtd2vep2.cjs} +1 -1
  15. package/dist/Board-CDrukIty.js +553 -0
  16. package/dist/Board-D1BkK3J5.cjs +1 -0
  17. package/dist/Breadcrumbs-B8eAWAvg.js +48 -0
  18. package/dist/Breadcrumbs-cTxSMgeW.cjs +1 -0
  19. package/dist/{Button-BZn2lmMA.cjs → Button-C0UUTgEB.cjs} +1 -1
  20. package/dist/{Button-BAfC7ySK.js → Button-IcCXOoCT.js} +1 -1
  21. package/dist/{Checkbox-BkRL6Ops.js → Checkbox-CXlovpPs.js} +2 -2
  22. package/dist/{Checkbox-D8Curaxc.cjs → Checkbox-CZVNZ2pn.cjs} +1 -1
  23. package/dist/{CheckboxGroup-Hu-wWRto.js → CheckboxGroup-AQ6XgVPU.js} +3 -3
  24. package/dist/{CheckboxGroup-fEs9Ye8M.cjs → CheckboxGroup-BuvjRAeC.cjs} +1 -1
  25. package/dist/{ColorStrip-Doh0adti.cjs → ColorStrip-D4vNVSeW.cjs} +1 -1
  26. package/dist/{ColorStrip-CcMzeYOw.js → ColorStrip-Dknkw-RX.js} +2 -2
  27. package/dist/{Confirm-Br9VOB2-.cjs → Confirm-DCkG5bUZ.cjs} +1 -1
  28. package/dist/{Confirm-DztLfQzB.js → Confirm-OMhu2Fuz.js} +8 -8
  29. package/dist/DataTable-CWMlmjMi.cjs +1 -0
  30. package/dist/DataTable-DaNZAixf.js +389 -0
  31. package/dist/DatePicker-BgMtkY76.cjs +1 -0
  32. package/dist/DatePicker-MDaQ2l8I.js +715 -0
  33. package/dist/{FileUploader-OJJIlvmH.js → FileUploader-DC1nE86P.js} +1 -1
  34. package/dist/{FileUploader-DPIAWehF.cjs → FileUploader-DehZc0gP.cjs} +1 -1
  35. package/dist/FloatingToolbar-J9ucYTsb.js +140 -0
  36. package/dist/FloatingToolbar-vWo7YmH3.cjs +1 -0
  37. package/dist/{Form-j4QMRkL5.js → Form-DJ1Hhwnm.js} +1 -1
  38. package/dist/{Form-u6XCVBqX.cjs → Form-WtS-IVIs.cjs} +1 -1
  39. package/dist/{GanttChart-C6uVsNrq.cjs → GanttChart-BJ_6YCza.cjs} +1 -1
  40. package/dist/{GanttChart-asYYkfjM.js → GanttChart-CwCH8pby.js} +3 -3
  41. package/dist/{ImageCropper-Bl8BjRur.cjs → ImageCropper-BfGyTTY5.cjs} +1 -1
  42. package/dist/{ImageCropper-DBjxzZhN.js → ImageCropper-Ds5Zq1J0.js} +2 -2
  43. package/dist/InfoHint-D35B8g96.cjs +1 -0
  44. package/dist/{InfoHint-CK96hjMo.js → InfoHint-ieo2S-YE.js} +41 -29
  45. package/dist/InlineEdit-9E8-8JQr.cjs +1 -0
  46. package/dist/{InlineEdit-DssyFZM6.js → InlineEdit-BCHxGdSy.js} +58 -25
  47. package/dist/{InlineLoading-DXsOmC3w.cjs → InlineLoading-B2L_asnZ.cjs} +1 -1
  48. package/dist/{InlineLoading-LCwTwjyJ.js → InlineLoading-DQzKEw-L.js} +1 -1
  49. package/dist/{InterpolationChart-w1GgDSDT.cjs → InterpolationChart-BXS1n0dY.cjs} +1 -1
  50. package/dist/{InterpolationChart-CdbT0AvE.js → InterpolationChart-CSEYS5aB.js} +3 -3
  51. package/dist/{LineChart-CmBBttxc.cjs → LineChart-C5bQNxQ-.cjs} +1 -1
  52. package/dist/{LineChart-BgnDKI8u.js → LineChart-DG_ows6r.js} +4 -4
  53. package/dist/Menu-BALfMobG.cjs +1 -0
  54. package/dist/Menu-D-zvh-SA.js +136 -0
  55. package/dist/{MenuBarItem-H1sFt0Mx.js → MenuBarItem-BDqp9LzY.js} +1 -1
  56. package/dist/{MenuBarItem-42bSEdWZ.cjs → MenuBarItem-Dmutkr1p.cjs} +1 -1
  57. package/dist/Modal-BNgLfB88.cjs +1 -0
  58. package/dist/{Modal-BvZulLj2.js → Modal-C97dRTiP.js} +35 -34
  59. package/dist/NotificationCenter-BpUiKPsp.cjs +1 -0
  60. package/dist/NotificationCenter-Br-YtY5w.js +584 -0
  61. package/dist/{NumberInput-DsjKITeI.cjs → NumberInput-1taaS5G3.cjs} +1 -1
  62. package/dist/{NumberInput-CrbTiAkP.js → NumberInput-DWf2LMGN.js} +3 -3
  63. package/dist/{Pagination-JW-O2kLk.js → Pagination-Br-k9zuG.js} +2 -2
  64. package/dist/{Pagination-Di4RPomA.cjs → Pagination-CCMhqtoz.cjs} +1 -1
  65. package/dist/{PieChart-CUckdHre.cjs → PieChart-BABG-xXQ.cjs} +1 -1
  66. package/dist/{PieChart-CpkjCb1W.js → PieChart-CmvfqpXR.js} +3 -3
  67. package/dist/{ProgressBar-Cn-FnvZR.cjs → ProgressBar-BHKgJ4UK.cjs} +1 -1
  68. package/dist/{ProgressBar-BF-2nm2N.js → ProgressBar-Blt5BdgQ.js} +2 -2
  69. package/dist/{Radio-pH924Ch3.js → Radio-DsYitO1Z.js} +3 -3
  70. package/dist/{Radio-CkFwMQZ-.cjs → Radio-zdXHagRQ.cjs} +1 -1
  71. package/dist/ReorderList-hHh9XYQY.cjs +1 -0
  72. package/dist/{ReorderList-DC83oBGi.js → ReorderList-v1aWbXjb.js} +31 -15
  73. package/dist/{Select-Det8tjo1.cjs → Select-ClkEzw5T.cjs} +1 -1
  74. package/dist/{Select-dJWuOWN0.js → Select-DIw08nte.js} +3 -3
  75. package/dist/Shell-CfHe8tIp.js +487 -0
  76. package/dist/Shell-DrXByQxR.cjs +1 -0
  77. package/dist/{SidebarCollapseToggle-VOdswrKP.cjs → SidebarCollapseToggle-BOLWB51F.cjs} +1 -1
  78. package/dist/{SidebarCollapseToggle-pNj344jL.js → SidebarCollapseToggle-IzDpcwPs.js} +2 -2
  79. package/dist/{Skeleton-3N9uC9k_.js → Skeleton-BLn8a0wV.js} +1 -1
  80. package/dist/{Skeleton-DEzKdU7W.cjs → Skeleton-lLu_CakO.cjs} +1 -1
  81. package/dist/{Slider-Clgfp-vI.cjs → Slider-Ca5ru23S.cjs} +1 -1
  82. package/dist/{Slider-Dxh4sXev.js → Slider-CrhYMw5S.js} +4 -4
  83. package/dist/{Spinner-DpldXeXq.js → Spinner-C7NYF-Xf.js} +1 -1
  84. package/dist/{Spinner-Cwlskvjj.cjs → Spinner-UsyGqwVq.cjs} +1 -1
  85. package/dist/{Stepper-BlRuqNKX.cjs → Stepper-BIWoeqFS.cjs} +1 -1
  86. package/dist/{Stepper-SLb_qc9m.js → Stepper-CrVuq2Ba.js} +1 -1
  87. package/dist/{StepperStep-DxQQgCrC.js → StepperStep-CBaZPJV7.js} +4 -4
  88. package/dist/{StepperStep-DoJ3MUEl.cjs → StepperStep-DCpcJbTJ.cjs} +1 -1
  89. package/dist/Submenu-BC9j6dvb.cjs +1 -0
  90. package/dist/Submenu-CnRi1GdL.js +149 -0
  91. package/dist/{Switch-CI_QKz2n.js → Switch-BiqjLsXd.js} +3 -3
  92. package/dist/{Switch-BnzV_QMu.cjs → Switch-CA01aJ7b.cjs} +1 -1
  93. package/dist/{TableOfContents-C6Qnq6aS.cjs → TableOfContents-DCfZ4DYi.cjs} +1 -1
  94. package/dist/{TableOfContents-DwnnMxv5.js → TableOfContents-EYrBCeci.js} +1 -1
  95. package/dist/Tabs-CrrG1hvh.cjs +1 -0
  96. package/dist/Tabs-D3pdOieX.js +180 -0
  97. package/dist/{TextInput--u9htMqc.cjs → TextInput-BdZPqTzI.cjs} +2 -2
  98. package/dist/{TextInput-C_i6Miob.js → TextInput-KQGVZCcT.js} +4 -4
  99. package/dist/{Toaster-sBQX6bee.js → Toaster-B4ce6OBe.js} +1 -1
  100. package/dist/{Toaster-noCUOlwh.cjs → Toaster-CubmjJ_C.cjs} +1 -1
  101. package/dist/{Tree-CR_288A-.cjs → Tree-CnaGeX7W.cjs} +1 -1
  102. package/dist/{Tree-C6rMUOja.js → Tree-E3A0GUIG.js} +1 -1
  103. package/dist/TreeNode-C2W4uFhP.cjs +1 -0
  104. package/dist/TreeNode-xv6es6z2.js +176 -0
  105. package/dist/UserMenu-CVXfSmUQ.cjs +1 -0
  106. package/dist/UserMenu-E-PhzT3T.js +313 -0
  107. package/dist/{Walkthrough-vAJctcje.js → Walkthrough-BxwgYRUB.js} +1 -1
  108. package/dist/{Walkthrough-DRx76ziA.cjs → Walkthrough-Dvyp-4Sr.cjs} +1 -1
  109. package/dist/all.cjs +1 -1
  110. package/dist/all.mjs +207 -203
  111. package/dist/component-styles.json +7 -0
  112. package/dist/components/AccordionItem.cjs +1 -1
  113. package/dist/components/AccordionItem.mjs +1 -1
  114. package/dist/components/AccordionItem.vue.d.ts.map +1 -1
  115. package/dist/components/ActionGroup.cjs +1 -0
  116. package/dist/components/ActionGroup.d.ts +64 -0
  117. package/dist/components/ActionGroup.mjs +2 -0
  118. package/dist/components/ActionGroup.vue.d.ts +24 -0
  119. package/dist/components/ActionGroup.vue.d.ts.map +1 -0
  120. package/dist/components/AiLabel.cjs +1 -1
  121. package/dist/components/AiLabel.mjs +1 -1
  122. package/dist/components/Avatar.cjs +1 -1
  123. package/dist/components/Avatar.mjs +1 -1
  124. package/dist/components/Badge.cjs +1 -1
  125. package/dist/components/Badge.mjs +1 -1
  126. package/dist/components/Banner.cjs +1 -1
  127. package/dist/components/Banner.mjs +1 -1
  128. package/dist/components/Blueprint.cjs +1 -1
  129. package/dist/components/Blueprint.mjs +1 -1
  130. package/dist/components/BlueprintBackground.cjs +1 -1
  131. package/dist/components/BlueprintBackground.mjs +1 -1
  132. package/dist/components/BlueprintCard.cjs +1 -1
  133. package/dist/components/BlueprintCard.mjs +1 -1
  134. package/dist/components/BlueprintCard.vue.d.ts +1 -1
  135. package/dist/components/BlueprintControls.cjs +1 -1
  136. package/dist/components/BlueprintControls.mjs +1 -1
  137. package/dist/components/BlueprintMinimap.cjs +1 -1
  138. package/dist/components/BlueprintMinimap.mjs +1 -1
  139. package/dist/components/Board.cjs +1 -1
  140. package/dist/components/Board.d.ts +8 -0
  141. package/dist/components/Board.mjs +1 -1
  142. package/dist/components/Board.vue.d.ts +7 -3
  143. package/dist/components/Board.vue.d.ts.map +1 -1
  144. package/dist/components/BottomPanel.cjs +1 -1
  145. package/dist/components/BottomPanel.mjs +1 -1
  146. package/dist/components/Breadcrumbs.cjs +1 -1
  147. package/dist/components/Breadcrumbs.mjs +1 -1
  148. package/dist/components/Breadcrumbs.vue.d.ts +12 -1
  149. package/dist/components/Breadcrumbs.vue.d.ts.map +1 -1
  150. package/dist/components/Button.cjs +1 -1
  151. package/dist/components/Button.mjs +1 -1
  152. package/dist/components/Button.vue.d.ts +3 -3
  153. package/dist/components/Button.vue.d.ts.map +1 -1
  154. package/dist/components/Calendar.cjs +1 -1
  155. package/dist/components/Calendar.mjs +1 -1
  156. package/dist/components/Card.cjs +1 -1
  157. package/dist/components/Card.mjs +1 -1
  158. package/dist/components/Card.vue.d.ts +1 -1
  159. package/dist/components/CardGrid.cjs +1 -1
  160. package/dist/components/CardGrid.mjs +1 -1
  161. package/dist/components/Charts/BarChart.cjs +1 -1
  162. package/dist/components/Charts/BarChart.mjs +1 -1
  163. package/dist/components/Charts/GanttChart.cjs +1 -1
  164. package/dist/components/Charts/GanttChart.mjs +1 -1
  165. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  166. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  167. package/dist/components/Charts/LineChart.cjs +1 -1
  168. package/dist/components/Charts/LineChart.mjs +1 -1
  169. package/dist/components/Charts/PieChart.cjs +1 -1
  170. package/dist/components/Charts/PieChart.mjs +1 -1
  171. package/dist/components/Charts/Sparkline.cjs +1 -1
  172. package/dist/components/Charts/Sparkline.mjs +1 -1
  173. package/dist/components/Checkbox.cjs +1 -1
  174. package/dist/components/Checkbox.mjs +1 -1
  175. package/dist/components/Checkbox.vue.d.ts.map +1 -1
  176. package/dist/components/CheckboxGroup.cjs +1 -1
  177. package/dist/components/CheckboxGroup.mjs +1 -1
  178. package/dist/components/ColorStrip.cjs +1 -1
  179. package/dist/components/ColorStrip.mjs +1 -1
  180. package/dist/components/CommandPalette.cjs +1 -1
  181. package/dist/components/CommandPalette.mjs +1 -1
  182. package/dist/components/CommandPalette.vue.d.ts.map +1 -1
  183. package/dist/components/Confirm.cjs +1 -1
  184. package/dist/components/Confirm.mjs +1 -1
  185. package/dist/components/DataTable.cjs +1 -1
  186. package/dist/components/DataTable.d.ts +23 -0
  187. package/dist/components/DataTable.mjs +1 -1
  188. package/dist/components/DataTable.vue.d.ts.map +1 -1
  189. package/dist/components/DatePicker.cjs +1 -1
  190. package/dist/components/DatePicker.mjs +1 -1
  191. package/dist/components/DatePicker.vue.d.ts +1 -1
  192. package/dist/components/DatePicker.vue.d.ts.map +1 -1
  193. package/dist/components/DefinitionList.cjs +1 -1
  194. package/dist/components/DefinitionList.mjs +1 -1
  195. package/dist/components/DefinitionListItem.cjs +1 -1
  196. package/dist/components/DefinitionListItem.mjs +1 -1
  197. package/dist/components/DragHandle.cjs +1 -1
  198. package/dist/components/DragHandle.mjs +1 -1
  199. package/dist/components/EmptyState.cjs +1 -1
  200. package/dist/components/EmptyState.mjs +1 -1
  201. package/dist/components/Field.cjs +1 -1
  202. package/dist/components/Field.mjs +1 -1
  203. package/dist/components/FileUploader.cjs +1 -1
  204. package/dist/components/FileUploader.mjs +1 -1
  205. package/dist/components/Flag.cjs +1 -1
  206. package/dist/components/Flag.mjs +1 -1
  207. package/dist/components/FloatingToolbar.cjs +1 -1
  208. package/dist/components/FloatingToolbar.d.ts +11 -0
  209. package/dist/components/FloatingToolbar.mjs +1 -1
  210. package/dist/components/FloatingToolbar.vue.d.ts +1 -0
  211. package/dist/components/FloatingToolbar.vue.d.ts.map +1 -1
  212. package/dist/components/Form.cjs +1 -1
  213. package/dist/components/Form.mjs +1 -1
  214. package/dist/components/Grid.cjs +1 -1
  215. package/dist/components/Grid.mjs +1 -1
  216. package/dist/components/ImageCropper.cjs +1 -1
  217. package/dist/components/ImageCropper.mjs +1 -1
  218. package/dist/components/InfoHint.cjs +1 -1
  219. package/dist/components/InfoHint.mjs +1 -1
  220. package/dist/components/InfoHint.vue.d.ts.map +1 -1
  221. package/dist/components/InlineEdit.cjs +1 -1
  222. package/dist/components/InlineEdit.d.ts +5 -0
  223. package/dist/components/InlineEdit.mjs +1 -1
  224. package/dist/components/InlineEdit.vue.d.ts +1 -0
  225. package/dist/components/InlineEdit.vue.d.ts.map +1 -1
  226. package/dist/components/InlineLoading.cjs +1 -1
  227. package/dist/components/InlineLoading.mjs +1 -1
  228. package/dist/components/JsonTree.cjs +1 -1
  229. package/dist/components/JsonTree.mjs +1 -1
  230. package/dist/components/Label.cjs +1 -1
  231. package/dist/components/Label.mjs +1 -1
  232. package/dist/components/Layer.cjs +1 -1
  233. package/dist/components/Layer.mjs +1 -1
  234. package/dist/components/Menu.cjs +1 -1
  235. package/dist/components/Menu.mjs +1 -1
  236. package/dist/components/Menu.vue.d.ts.map +1 -1
  237. package/dist/components/MenuBar.cjs +1 -1
  238. package/dist/components/MenuBar.mjs +1 -1
  239. package/dist/components/MenuBarItem.cjs +1 -1
  240. package/dist/components/MenuBarItem.mjs +1 -1
  241. package/dist/components/MenuDivider.cjs +1 -1
  242. package/dist/components/MenuDivider.mjs +1 -1
  243. package/dist/components/MenuItem.cjs +1 -1
  244. package/dist/components/MenuItem.mjs +1 -1
  245. package/dist/components/MenuItem.vue.d.ts +1 -1
  246. package/dist/components/MenuItem.vue.d.ts.map +1 -1
  247. package/dist/components/Message.cjs +1 -1
  248. package/dist/components/Message.mjs +1 -1
  249. package/dist/components/Modal.cjs +1 -1
  250. package/dist/components/Modal.mjs +1 -1
  251. package/dist/components/Modal.vue.d.ts.map +1 -1
  252. package/dist/components/NotificationCenter.cjs +1 -1
  253. package/dist/components/NotificationCenter.d.ts +6 -1
  254. package/dist/components/NotificationCenter.mjs +1 -1
  255. package/dist/components/NotificationCenter.vue.d.ts +2 -1
  256. package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
  257. package/dist/components/NotificationCenterItem.cjs +1 -1
  258. package/dist/components/NotificationCenterItem.mjs +1 -1
  259. package/dist/components/NotificationCenterItem.vue.d.ts +1 -1
  260. package/dist/components/NubiscoMark.cjs +1 -1
  261. package/dist/components/NubiscoMark.mjs +1 -1
  262. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  263. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  264. package/dist/components/NumberInput.cjs +1 -1
  265. package/dist/components/NumberInput.mjs +1 -1
  266. package/dist/components/NumberInput.vue.d.ts +1 -1
  267. package/dist/components/NumberInput.vue.d.ts.map +1 -1
  268. package/dist/components/Pagination.cjs +1 -1
  269. package/dist/components/Pagination.mjs +1 -1
  270. package/dist/components/Panel.cjs +1 -1
  271. package/dist/components/Panel.mjs +1 -1
  272. package/dist/components/ProgressBar.cjs +1 -1
  273. package/dist/components/ProgressBar.mjs +1 -1
  274. package/dist/components/Radio.cjs +1 -1
  275. package/dist/components/Radio.mjs +1 -1
  276. package/dist/components/Radio.vue.d.ts.map +1 -1
  277. package/dist/components/ReorderList.cjs +1 -1
  278. package/dist/components/ReorderList.mjs +1 -1
  279. package/dist/components/ReorderList.vue.d.ts.map +1 -1
  280. package/dist/components/Select.cjs +1 -1
  281. package/dist/components/Select.mjs +1 -1
  282. package/dist/components/Select.vue.d.ts.map +1 -1
  283. package/dist/components/Shell.cjs +1 -1
  284. package/dist/components/Shell.mjs +1 -1
  285. package/dist/components/Shell.vue.d.ts +14 -1
  286. package/dist/components/Shell.vue.d.ts.map +1 -1
  287. package/dist/components/ShellPanel.cjs +1 -1
  288. package/dist/components/ShellPanel.mjs +1 -1
  289. package/dist/components/SidebarBrand.cjs +1 -1
  290. package/dist/components/SidebarBrand.mjs +1 -1
  291. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  292. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  293. package/dist/components/SidebarLink.cjs +1 -1
  294. package/dist/components/SidebarLink.mjs +1 -1
  295. package/dist/components/SidebarMenu.cjs +1 -1
  296. package/dist/components/SidebarMenu.mjs +1 -1
  297. package/dist/components/SidebarMenuGroup.cjs +1 -1
  298. package/dist/components/SidebarMenuGroup.mjs +1 -1
  299. package/dist/components/SidebarMenuItem.cjs +1 -1
  300. package/dist/components/SidebarMenuItem.mjs +1 -1
  301. package/dist/components/Skeleton.cjs +1 -1
  302. package/dist/components/Skeleton.mjs +1 -1
  303. package/dist/components/Slider.cjs +1 -1
  304. package/dist/components/Slider.mjs +1 -1
  305. package/dist/components/Slider.vue.d.ts +1 -1
  306. package/dist/components/Spinner.cjs +1 -1
  307. package/dist/components/Spinner.mjs +1 -1
  308. package/dist/components/Stepper.cjs +1 -1
  309. package/dist/components/Stepper.mjs +1 -1
  310. package/dist/components/StepperStep.cjs +1 -1
  311. package/dist/components/StepperStep.mjs +1 -1
  312. package/dist/components/Submenu.cjs +1 -1
  313. package/dist/components/Submenu.mjs +1 -1
  314. package/dist/components/Submenu.vue.d.ts.map +1 -1
  315. package/dist/components/Switch.cjs +1 -1
  316. package/dist/components/Switch.mjs +1 -1
  317. package/dist/components/Switch.vue.d.ts.map +1 -1
  318. package/dist/components/TableOfContents.cjs +1 -1
  319. package/dist/components/TableOfContents.mjs +1 -1
  320. package/dist/components/Tabs.cjs +1 -1
  321. package/dist/components/Tabs.mjs +1 -1
  322. package/dist/components/Tabs.vue.d.ts.map +1 -1
  323. package/dist/components/TextInput.cjs +1 -1
  324. package/dist/components/TextInput.mjs +1 -1
  325. package/dist/components/TextInput.vue.d.ts +4 -4
  326. package/dist/components/TextInput.vue.d.ts.map +1 -1
  327. package/dist/components/Toast.cjs +1 -1
  328. package/dist/components/Toast.mjs +1 -1
  329. package/dist/components/Toast.vue.d.ts +1 -1
  330. package/dist/components/Toast.vue.d.ts.map +1 -1
  331. package/dist/components/Toaster.cjs +1 -1
  332. package/dist/components/Toaster.mjs +1 -1
  333. package/dist/components/Tree.cjs +1 -1
  334. package/dist/components/Tree.mjs +1 -1
  335. package/dist/components/TreeNode.cjs +1 -1
  336. package/dist/components/TreeNode.mjs +1 -1
  337. package/dist/components/TreeNode.vue.d.ts.map +1 -1
  338. package/dist/components/UserMenu.cjs +1 -1
  339. package/dist/components/UserMenu.mjs +1 -1
  340. package/dist/components/UserMenu.vue.d.ts.map +1 -1
  341. package/dist/components/Walkthrough.cjs +1 -1
  342. package/dist/components/Walkthrough.mjs +1 -1
  343. package/dist/components/Wireframe.cjs +1 -1
  344. package/dist/components/Wireframe.mjs +1 -1
  345. package/dist/components/index.d.ts.map +1 -1
  346. package/dist/components/manifest.d.ts +1 -0
  347. package/dist/components/manifest.d.ts.map +1 -1
  348. package/dist/components/manifest.js +1 -0
  349. package/dist/composables/useBlueprint.composable.cjs +1 -1
  350. package/dist/composables/useBlueprint.composable.mjs +1 -1
  351. package/dist/composables/useConfirm.composable.cjs +1 -1
  352. package/dist/composables/useConfirm.composable.mjs +3 -3
  353. package/dist/composables/useInlineLoading.composable.cjs +1 -1
  354. package/dist/composables/useInlineLoading.composable.mjs +1 -1
  355. package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
  356. package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
  357. package/dist/composables/usePhoneLayout.composable.cjs +1 -0
  358. package/dist/composables/usePhoneLayout.composable.d.ts +28 -0
  359. package/dist/composables/usePhoneLayout.composable.d.ts.map +1 -0
  360. package/dist/composables/usePhoneLayout.composable.mjs +25 -0
  361. package/dist/composables/useShellLayout.composable.cjs +1 -0
  362. package/dist/composables/useShellLayout.composable.d.ts +24 -0
  363. package/dist/composables/useShellLayout.composable.d.ts.map +1 -0
  364. package/dist/composables/useShellLayout.composable.mjs +14 -0
  365. package/dist/composables/useVisualViewportVar.composable.cjs +1 -0
  366. package/dist/composables/useVisualViewportVar.composable.d.ts +36 -0
  367. package/dist/composables/useVisualViewportVar.composable.d.ts.map +1 -0
  368. package/dist/composables/useVisualViewportVar.composable.mjs +30 -0
  369. package/dist/directives/ToolTip.directive.d.ts.map +1 -1
  370. package/dist/global.d.ts +2 -0
  371. package/dist/index.cjs +1 -1
  372. package/dist/index.mjs +113 -110
  373. package/dist/{main-DgTv5UiQ.js → main-3k7sSIY5.js} +102 -99
  374. package/dist/main-DmyKNXAy.cjs +4 -0
  375. package/dist/main.d.ts +5 -0
  376. package/dist/main.d.ts.map +1 -1
  377. package/dist/styles/AccordionItem.css +1 -1
  378. package/dist/styles/ActionGroup.css +1 -0
  379. package/dist/styles/Board.css +1 -1
  380. package/dist/styles/Breadcrumbs.css +1 -1
  381. package/dist/styles/Button.css +1 -1
  382. package/dist/styles/Checkbox.css +1 -1
  383. package/dist/styles/CommandPalette.css +1 -1
  384. package/dist/styles/DataTable.css +1 -1
  385. package/dist/styles/DatePicker.css +1 -1
  386. package/dist/styles/FloatingToolbar.css +1 -1
  387. package/dist/styles/InfoHint.css +1 -1
  388. package/dist/styles/InlineEdit.css +1 -1
  389. package/dist/styles/MenuItem.css +1 -1
  390. package/dist/styles/Modal.css +1 -1
  391. package/dist/styles/NotificationCenter.css +1 -1
  392. package/dist/styles/NumberInput.css +1 -1
  393. package/dist/styles/Radio.css +1 -1
  394. package/dist/styles/ReorderList.css +1 -1
  395. package/dist/styles/Select.css +1 -1
  396. package/dist/styles/Shell.css +1 -1
  397. package/dist/styles/Switch.css +1 -1
  398. package/dist/styles/Tabs.css +1 -1
  399. package/dist/styles/TextInput.css +1 -1
  400. package/dist/styles/TreeNode.css +1 -1
  401. package/dist/styles/UserMenu.css +1 -1
  402. package/dist/ui.css +26 -25
  403. package/package.json +1 -1
  404. package/src/styles/logic/_touch.scss +31 -0
  405. package/src/styles/logic/index.scss +1 -0
  406. package/src/styles/variables/_breakpoints.scss +36 -0
  407. package/dist/Board-6D49Yld8.js +0 -524
  408. package/dist/Board-Cp8XfgZm.cjs +0 -1
  409. package/dist/Breadcrumbs-BXsbR60g.js +0 -46
  410. package/dist/Breadcrumbs-CPucjD0z.cjs +0 -1
  411. package/dist/DataTable-8VaU0T7V.js +0 -358
  412. package/dist/DataTable-Mq7v4Dyk.cjs +0 -1
  413. package/dist/DatePicker-Cgnm0ku3.js +0 -704
  414. package/dist/DatePicker-DytDcACW.cjs +0 -1
  415. package/dist/FloatingToolbar-DpBbWZL6.cjs +0 -1
  416. package/dist/FloatingToolbar-_loB4pae.js +0 -134
  417. package/dist/InfoHint-Cs9-C043.cjs +0 -1
  418. package/dist/InlineEdit-CR9vOw3i.cjs +0 -1
  419. package/dist/Menu-CsA8dtMR.js +0 -128
  420. package/dist/Menu-Xt1MCf-q.cjs +0 -1
  421. package/dist/Modal-Xa9TIGNi.cjs +0 -1
  422. package/dist/NotificationCenter-B12PMiat.cjs +0 -1
  423. package/dist/NotificationCenter-B2kJXtA9.js +0 -569
  424. package/dist/ReorderList-CigXh_u8.cjs +0 -1
  425. package/dist/Shell-BzAv4AWb.cjs +0 -1
  426. package/dist/Shell-COpscGYO.js +0 -448
  427. package/dist/Submenu-QgPVi2bN.cjs +0 -1
  428. package/dist/Submenu-SQTJc81U.js +0 -148
  429. package/dist/Tabs-B5crovQe.cjs +0 -1
  430. package/dist/Tabs-DRrq4YCX.js +0 -149
  431. package/dist/TreeNode-CXaEp3-m.js +0 -175
  432. package/dist/TreeNode-kgKGox1Y.cjs +0 -1
  433. package/dist/UserMenu-C65Ky9ov.cjs +0 -1
  434. package/dist/UserMenu-ClcDEyTu.js +0 -301
  435. package/dist/main-BNXD4cwz.cjs +0 -4
  436. /package/dist/{Avatar-uYRUtK1R.js → Avatar-B8JS0B-W.js} +0 -0
  437. /package/dist/{Avatar-CLL3i8dn.cjs → Avatar-C-yA5Rqn.cjs} +0 -0
  438. /package/dist/{Badge-wDtZdOfk.js → Badge-D3oJVwDo.js} +0 -0
  439. /package/dist/{Badge-ouVFB318.cjs → Badge-Dkm7PBJ8.cjs} +0 -0
  440. /package/dist/{Banner-DKMPZuXR.js → Banner-C2DFPW-D.js} +0 -0
  441. /package/dist/{Banner-CtaMbfyG.cjs → Banner-DXfzpyxc.cjs} +0 -0
  442. /package/dist/{Blueprint.context-DQAE9pH9.cjs → Blueprint.context-CNt0_OyK.cjs} +0 -0
  443. /package/dist/{Blueprint.context-C51gyX3c.js → Blueprint.context-Cp__sufg.js} +0 -0
  444. /package/dist/{BlueprintBackground-CCuLvvq5.cjs → BlueprintBackground-CRbAZfZP.cjs} +0 -0
  445. /package/dist/{BlueprintBackground-DJhMflIN.js → BlueprintBackground-DqRpS-jP.js} +0 -0
  446. /package/dist/{BlueprintMinimap-C4hKP0wV.cjs → BlueprintMinimap-Bk6V5xcq.cjs} +0 -0
  447. /package/dist/{BlueprintMinimap-CUNeYFVd.js → BlueprintMinimap-KRlkpH14.js} +0 -0
  448. /package/dist/{BottomPanel-BkD7euB4.js → BottomPanel-Bt4k2PJn.js} +0 -0
  449. /package/dist/{BottomPanel-DvS5Q8c8.cjs → BottomPanel-C1mT0_I0.cjs} +0 -0
  450. /package/dist/{Calendar-D3ExPJ2t.cjs → Calendar-CI6TG85W.cjs} +0 -0
  451. /package/dist/{Calendar-DCoZLEcA.js → Calendar-CV-B4qeT.js} +0 -0
  452. /package/dist/{Card-ChgbYLJP.js → Card-BqIF-svL.js} +0 -0
  453. /package/dist/{Card-duvlUAg9.cjs → Card-Xmv6oz9a.cjs} +0 -0
  454. /package/dist/{CardGrid-Desk_vNP.cjs → CardGrid-BbGLqQmb.cjs} +0 -0
  455. /package/dist/{CardGrid-ChwQuHLa.js → CardGrid-CphjVIvE.js} +0 -0
  456. /package/dist/{ChartLegend-B_Y9TNfO.js → ChartLegend-BLTbVV2E.js} +0 -0
  457. /package/dist/{ChartLegend-k-7LH8-7.cjs → ChartLegend-DGgW0yjG.cjs} +0 -0
  458. /package/dist/{CheckboxGroup.context-DYPnnK72.cjs → CheckboxGroup.context-CBJMSIiT.cjs} +0 -0
  459. /package/dist/{CheckboxGroup.context-BssNljp4.js → CheckboxGroup.context-D-C4RVyg.js} +0 -0
  460. /package/dist/{CommandPalette-dNJMbapr.cjs → CommandPalette-C56CkOfF.cjs} +0 -0
  461. /package/dist/{CommandPalette-Bv_AnaSi.js → CommandPalette-CubX_Udj.js} +0 -0
  462. /package/dist/{DefinitionList-C5cqvaLy.cjs → DefinitionList-CSBl-Ogy.cjs} +0 -0
  463. /package/dist/{DefinitionList-fmy6J4Re.js → DefinitionList-MsqB9Lxo.js} +0 -0
  464. /package/dist/{DefinitionListItem-CJK5RkIw.js → DefinitionListItem-Ddz2wLyc.js} +0 -0
  465. /package/dist/{DefinitionListItem-CWqjObrZ.cjs → DefinitionListItem-DnphEEw1.cjs} +0 -0
  466. /package/dist/{DragHandle-CoJEyCLX.cjs → DragHandle-B_rMbMxm.cjs} +0 -0
  467. /package/dist/{DragHandle-DDJ1Hsmo.js → DragHandle-D9NnsyJc.js} +0 -0
  468. /package/dist/{EmptyState-xU5I0laM.js → EmptyState-B6pEj4jk.js} +0 -0
  469. /package/dist/{EmptyState-u1iAtZUB.cjs → EmptyState-DRbjP890.cjs} +0 -0
  470. /package/dist/{Field-CfktrvRe.cjs → Field-BZ2cHQlw.cjs} +0 -0
  471. /package/dist/{Field-D7ImyCWp.js → Field-tNwOATAd.js} +0 -0
  472. /package/dist/{Flag-k-Aakupd.js → Flag-C4SjTXTD.js} +0 -0
  473. /package/dist/{Flag-Pk2LFD1t.cjs → Flag-DFg5FTus.cjs} +0 -0
  474. /package/dist/{Grid-HifmWSUS.cjs → Grid-DiCxrPaO.cjs} +0 -0
  475. /package/dist/{Grid-DA2jibMM.js → Grid-iox-7xyH.js} +0 -0
  476. /package/dist/{JsonTree-BLgpxnrT.js → JsonTree-Do_bunoq.js} +0 -0
  477. /package/dist/{JsonTree-DGzMCcSN.cjs → JsonTree-DygODsNE.cjs} +0 -0
  478. /package/dist/{Label-BIM21I7D.cjs → Label-CZhQEyoi.cjs} +0 -0
  479. /package/dist/{Label-CiWiUQ_H.js → Label-DGK5nxFy.js} +0 -0
  480. /package/dist/{Layer-B47tXgJm.js → Layer-CPWK7fSy.js} +0 -0
  481. /package/dist/{Layer-Csk6CZPD.cjs → Layer-Dn8JBO94.cjs} +0 -0
  482. /package/dist/{MenuBar-cNc__THT.cjs → MenuBar-Cmty676_.cjs} +0 -0
  483. /package/dist/{MenuBar-CdBcgokD.js → MenuBar-DgoQm2e6.js} +0 -0
  484. /package/dist/{MenuDivider-DEy1DSW1.js → MenuDivider-Clt77czV.js} +0 -0
  485. /package/dist/{MenuDivider-GuRZ5Dek.cjs → MenuDivider-SpMk4am3.cjs} +0 -0
  486. /package/dist/{MenuItem-BKjhq9o2.js → MenuItem-BDLX2QWw.js} +0 -0
  487. /package/dist/{MenuItem-B-Q5sVlO.cjs → MenuItem-ZQcFYe4m.cjs} +0 -0
  488. /package/dist/{Message-DjxOb8mu.cjs → Message-C44ftsaT.cjs} +0 -0
  489. /package/dist/{Message-SQvoXiWl.js → Message-CHkTWe0K.js} +0 -0
  490. /package/dist/{NotificationCenterItem-pWiBpKMc.cjs → NotificationCenterItem-BP0VBTaB.cjs} +0 -0
  491. /package/dist/{NotificationCenterItem-yqlKqwI2.js → NotificationCenterItem-CjJh9W_a.js} +0 -0
  492. /package/dist/{NubiscoMark-BN6bzMMG.cjs → NubiscoMark-BumRk78m.cjs} +0 -0
  493. /package/dist/{NubiscoMark-Bj6eID79.js → NubiscoMark-eVqSGOjI.js} +0 -0
  494. /package/dist/{NubiscoPlatformMark-C0OeymWK.js → NubiscoPlatformMark-Ch6dCICn.js} +0 -0
  495. /package/dist/{NubiscoPlatformMark-CE-poDEU.cjs → NubiscoPlatformMark-IX-E5QQ_.cjs} +0 -0
  496. /package/dist/{Panel-PtasWgYu.cjs → Panel-Cd29GNxw.cjs} +0 -0
  497. /package/dist/{Panel-MK5IWy0W.js → Panel-Y8gOQKuw.js} +0 -0
  498. /package/dist/{ShellPanel-f75v2_V2.js → ShellPanel-BA7QLnzE.js} +0 -0
  499. /package/dist/{ShellPanel-DzMmoG81.cjs → ShellPanel-CC_QJlLu.cjs} +0 -0
  500. /package/dist/{SidebarBrand-B3hJvpkF.js → SidebarBrand-8yDIYIQZ.js} +0 -0
  501. /package/dist/{SidebarBrand-CHxEUgzI.cjs → SidebarBrand-u8Oau9DK.cjs} +0 -0
  502. /package/dist/{SidebarLink-QG3kJ2EO.js → SidebarLink-XVXCHDBm.js} +0 -0
  503. /package/dist/{SidebarLink-B_5TV_Y_.cjs → SidebarLink-pgjUnWzl.cjs} +0 -0
  504. /package/dist/{SidebarMenu-CHra29Qu.cjs → SidebarMenu-CA0y5Zle.cjs} +0 -0
  505. /package/dist/{SidebarMenu-B4oKxxC9.js → SidebarMenu-e0qP4Nh-.js} +0 -0
  506. /package/dist/{SidebarMenuGroup-D4zw60k-.js → SidebarMenuGroup-CGnMAAUM.js} +0 -0
  507. /package/dist/{SidebarMenuGroup-D3-id6rV.cjs → SidebarMenuGroup-VQLxJ1CS.cjs} +0 -0
  508. /package/dist/{SidebarMenuItem-rDAFayv3.cjs → SidebarMenuItem-CqDbzAAk.cjs} +0 -0
  509. /package/dist/{SidebarMenuItem-DKfynXs8.js → SidebarMenuItem-DwBLBW-N.js} +0 -0
  510. /package/dist/{Sparkline-C__UzqcW.js → Sparkline-Bbt4vFjI.js} +0 -0
  511. /package/dist/{Sparkline-hfnHBqr_.cjs → Sparkline-CdLiYBEr.cjs} +0 -0
  512. /package/dist/{Stepper.context-DtdxFiTP.js → Stepper.context-BgQfa8xl.js} +0 -0
  513. /package/dist/{Stepper.context-OTxRDrqb.cjs → Stepper.context-DBNE-GYb.cjs} +0 -0
  514. /package/dist/{Toast-DdjLfZW7.cjs → Toast-XjSCXTx8.cjs} +0 -0
  515. /package/dist/{Toast-C7ZcSqjz.js → Toast-q9KByfYq.js} +0 -0
  516. /package/dist/{TreeContext-CN8Jmm3J.js → TreeContext-BN1eHAL6.js} +0 -0
  517. /package/dist/{TreeContext-CRgX277A.cjs → TreeContext-PgcV87_V.cjs} +0 -0
  518. /package/dist/{Wireframe-yxCSPLE-.cjs → Wireframe-DDRVqrll.cjs} +0 -0
  519. /package/dist/{Wireframe-Lb8viOfl.js → Wireframe-ql6EOtd2.js} +0 -0
  520. /package/dist/{palette-CP7R55wd.cjs → palette-Cy2_8mLH.cjs} +0 -0
  521. /package/dist/{palette-BVXsOJol.js → palette-StNyj_sM.js} +0 -0
  522. /package/dist/{pixi-scene-CjZJN5UI.js → pixi-scene-CuO3As43.js} +0 -0
  523. /package/dist/{pixi-scene-Be5EU7HP.cjs → pixi-scene-DE1dBR9n.cjs} +0 -0
  524. /package/dist/{scales-DJ_hCmZX.cjs → scales-4WxjhxBm.cjs} +0 -0
  525. /package/dist/{scales-CsGzsNm7.js → scales-DlFF1BRk.js} +0 -0
  526. /package/dist/{useChartSize-DGUae61E.cjs → useChartSize-C-BIN0vc.cjs} +0 -0
  527. /package/dist/{useChartSize-6K6L_Xnm.js → useChartSize-UdZSuP3G.js} +0 -0
  528. /package/dist/{useLoadingAnnouncer.composable-TdYpHGvK.js → useLoadingAnnouncer.composable-C7FA-Ui1.js} +0 -0
  529. /package/dist/{useLoadingAnnouncer.composable-DeoNGDYL.cjs → useLoadingAnnouncer.composable-DMycMLn-.cjs} +0 -0
  530. /package/dist/{vue-i18n-CkVGSKx4.js → vue-i18n-B2FDvjI1.js} +0 -0
  531. /package/dist/{vue-i18n-Bhwom92P.cjs → vue-i18n-D3Ga_miE.cjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
- import { t } from "./CheckboxGroup.context-BssNljp4.js";
2
+ import { t } from "./CheckboxGroup.context-D-C4RVyg.js";
3
3
  import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, inject as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d } from "vue";
4
4
  //#region src/components/Checkbox.vue?vue&type=script&setup=true&lang.ts
5
5
  var f = { class: "nb-checkbox__control" }, p = [
@@ -58,6 +58,6 @@ var f = { class: "nb-checkbox__control" }, p = [
58
58
  "stroke-linejoin": "round"
59
59
  }, null, -1)]])) : r("", !0), e.indeterminate ? (l(), i("span", g)) : r("", !0)])]), e.label ? (l(), i("span", _, d(e.label), 1)) : u(t.$slots, "default", { key: 1 }, void 0, !0)], 2));
60
60
  }
61
- }), [["__scopeId", "data-v-3f69d297"]]);
61
+ }), [["__scopeId", "data-v-e6cd7a41"]]);
62
62
  //#endregion
63
63
  export { v as t };
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./CheckboxGroup.context-DYPnnK72.cjs`);let n=require(`vue`);var r={class:`nb-checkbox__control`},i=[`checked`,`disabled`,`indeterminate`],a={class:`nb-checkbox__box`},o={key:0,class:`nb-checkbox__check`,viewBox:`0 0 10 8`,fill:`none`},s={key:1,class:`nb-checkbox__dash`},c={key:0,class:`nb-checkbox__label`},l=(0,n.defineComponent)({__name:`Checkbox`,props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox`},label:{}},emits:[`update:modelValue`],setup(e,{emit:l}){let u=e,d=l,f=(0,n.inject)(t.t,null),p=(0,n.computed)(()=>u.disabled||!!f?.disabled.value);function m(e){p.value||d(`update:modelValue`,e.target.checked)}return(t,l)=>((0,n.openBlock)(),(0,n.createElementBlock)(`label`,{class:(0,n.normalizeClass)([`nb-checkbox`,{"nb-checkbox--disabled":p.value}])},[(0,n.createElementVNode)(`span`,r,[(0,n.createElementVNode)(`input`,{type:`checkbox`,checked:e.modelValue,disabled:p.value,indeterminate:e.indeterminate,class:`nb-checkbox__input`,onChange:m},null,40,i),(0,n.createElementVNode)(`span`,a,[e.modelValue&&!e.indeterminate?((0,n.openBlock)(),(0,n.createElementBlock)(`svg`,o,[...l[0]||=[(0,n.createElementVNode)(`path`,{d:`M1 4l3 3 5-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])):(0,n.createCommentVNode)(``,!0),e.indeterminate?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,s)):(0,n.createCommentVNode)(``,!0)])]),e.label?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,c,(0,n.toDisplayString)(e.label),1)):(0,n.renderSlot)(t.$slots,`default`,{key:1},void 0,!0)],2))}}),u=e.t(l,[[`__scopeId`,`data-v-3f69d297`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./CheckboxGroup.context-CBJMSIiT.cjs`);let n=require(`vue`);var r={class:`nb-checkbox__control`},i=[`checked`,`disabled`,`indeterminate`],a={class:`nb-checkbox__box`},o={key:0,class:`nb-checkbox__check`,viewBox:`0 0 10 8`,fill:`none`},s={key:1,class:`nb-checkbox__dash`},c={key:0,class:`nb-checkbox__label`},l=(0,n.defineComponent)({__name:`Checkbox`,props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox`},label:{}},emits:[`update:modelValue`],setup(e,{emit:l}){let u=e,d=l,f=(0,n.inject)(t.t,null),p=(0,n.computed)(()=>u.disabled||!!f?.disabled.value);function m(e){p.value||d(`update:modelValue`,e.target.checked)}return(t,l)=>((0,n.openBlock)(),(0,n.createElementBlock)(`label`,{class:(0,n.normalizeClass)([`nb-checkbox`,{"nb-checkbox--disabled":p.value}])},[(0,n.createElementVNode)(`span`,r,[(0,n.createElementVNode)(`input`,{type:`checkbox`,checked:e.modelValue,disabled:p.value,indeterminate:e.indeterminate,class:`nb-checkbox__input`,onChange:m},null,40,i),(0,n.createElementVNode)(`span`,a,[e.modelValue&&!e.indeterminate?((0,n.openBlock)(),(0,n.createElementBlock)(`svg`,o,[...l[0]||=[(0,n.createElementVNode)(`path`,{d:`M1 4l3 3 5-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])):(0,n.createCommentVNode)(``,!0),e.indeterminate?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,s)):(0,n.createCommentVNode)(``,!0)])]),e.label?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,c,(0,n.toDisplayString)(e.label),1)):(0,n.renderSlot)(t.$slots,`default`,{key:1},void 0,!0)],2))}}),u=e.t(l,[[`__scopeId`,`data-v-e6cd7a41`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
- import { t } from "./Label-CiWiUQ_H.js";
3
- import { t as n } from "./Message-SQvoXiWl.js";
4
- import { t as r } from "./CheckboxGroup.context-BssNljp4.js";
2
+ import { t } from "./Label-DGK5nxFy.js";
3
+ import { t as n } from "./Message-CHkTWe0K.js";
4
+ import { t as r } from "./CheckboxGroup.context-D-C4RVyg.js";
5
5
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, provide as p, renderSlot as m, toDisplayString as h, withCtx as g } from "vue";
6
6
  //#region src/components/CheckboxGroup.d.ts
7
7
  var _ = /* @__PURE__ */ function(e) {
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-BIM21I7D.cjs`),n=require(`./Message-DjxOb8mu.cjs`),r=require(`./CheckboxGroup.context-DYPnnK72.cjs`);let i=require(`vue`);var a=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}(a||{}),o=[`aria-label`],s=(0,i.defineComponent)({__name:`CheckboxGroup`,props:{direction:{default:a.Vertical},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox-group`},label:{},error:{default:void 0},warning:{default:void 0},helper:{default:void 0}},setup(e){let a=e;(0,i.provide)(r.t,{disabled:(0,i.computed)(()=>a.disabled)});let s=(0,i.computed)(()=>[`nb-checkbox-group`,{"nb-checkbox-group--error":!!a.error,"nb-checkbox-group--warning":!a.error&&!!a.warning,"nb-checkbox-group--disabled":a.disabled}]);return(r,a)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)(s.value),role:`group`,"aria-label":e.label||void 0},[e.label?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:0,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-checkbox-group__items`,`nb-checkbox-group__items--${e.direction}`])},[(0,i.renderSlot)(r.$slots,`default`,{},void 0,!0)],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:1,variant:`error`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:`warning`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:3,variant:`helper`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],10,o))}}),c=e.t(s,[[`__scopeId`,`data-v-01e35535`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-CZhQEyoi.cjs`),n=require(`./Message-C44ftsaT.cjs`),r=require(`./CheckboxGroup.context-CBJMSIiT.cjs`);let i=require(`vue`);var a=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}(a||{}),o=[`aria-label`],s=(0,i.defineComponent)({__name:`CheckboxGroup`,props:{direction:{default:a.Vertical},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox-group`},label:{},error:{default:void 0},warning:{default:void 0},helper:{default:void 0}},setup(e){let a=e;(0,i.provide)(r.t,{disabled:(0,i.computed)(()=>a.disabled)});let s=(0,i.computed)(()=>[`nb-checkbox-group`,{"nb-checkbox-group--error":!!a.error,"nb-checkbox-group--warning":!a.error&&!!a.warning,"nb-checkbox-group--disabled":a.disabled}]);return(r,a)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)(s.value),role:`group`,"aria-label":e.label||void 0},[e.label?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:0,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-checkbox-group__items`,`nb-checkbox-group__items--${e.direction}`])},[(0,i.renderSlot)(r.$slots,`default`,{},void 0,!0)],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:1,variant:`error`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:`warning`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:3,variant:`helper`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],10,o))}}),c=e.t(s,[[`__scopeId`,`data-v-01e35535`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Label-BIM21I7D.cjs`),i=require(`./Grid-HifmWSUS.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`),s=require(`@nubisco/ui/icons/empty`);s=e.n(s);var c={key:1,class:`nb-color-strip-wrapper__inner-header`},l={key:1,class:`nb-color-strip-wrapper__inner-label`},u=30,d=8,f=(0,a.defineComponent)({__name:`ColorStrip`,props:(0,a.mergeModels)({options:{default:()=>[`#DCDCDC`,`#C0C0C0`,`#808080`]},onlyView:{type:Boolean,default:!1},allowMultiple:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},showNull:{type:Boolean,default:!1},variant:{default:`default`},id:{default:void 0},label:{default:void 0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,f=`nb-color-strip-${(0,a.useId)()}`,p=(0,a.computed)(()=>t.id??f),m=(0,a.useModel)(e,`modelValue`,{set:e=>e}),h=(0,a.computed)(()=>t.options.map(e=>typeof e==`string`?{value:e,color:e}:{...e,color:e.color||`#FFFFFF`,value:e.value===void 0?e.color:e.value})),g={id:`null-option`,value:null,color:`transparent`,label:`None`},_=(0,a.ref)(m.value==null);(0,a.watch)(()=>m.value,e=>{e??(_.value=!0)});let v=(0,a.computed)(()=>t.allowMultiple?!1:t.onlyView?t.showNull:t.showNull||_.value),y=(0,a.computed)(()=>v.value?[g,...h.value]:h.value),b=(0,a.computed)(()=>{if(!t.wrap)return{maxWidth:`none`,flexWrap:`nowrap`};let e=y.value.length;if(e<=0)return;let n=Math.ceil(Math.sqrt(e));return{maxWidth:`${n*u+(n-1)*d}px`,flexWrap:`wrap`}}),x=(0,a.computed)(()=>({"nb-color-strip":!0,"only-view":t.onlyView})),S=e=>t.onlyView?!1:e===null?m.value==null:e===void 0?!1:t.allowMultiple?Array.isArray(m.value)&&m.value.includes(e):m.value===e,C=e=>({"nb-color-strip-color":!0,"nb-color-strip-color-null":T(e),selected:!t.onlyView&&S(e.value)}),w=e=>{if(!T(e))return{backgroundColor:e.color}},T=e=>e.id===`null-option`,E=e=>S(e.value)?`duotone`:`regular`,D=e=>{if(e!==void 0){if(!t.allowMultiple&&e===null){m.value=null;return}if(t.allowMultiple){let t=Array.isArray(m.value)?m.value.slice():[],n=t.indexOf(e);n===-1?t.push(e):t.splice(n,1),m.value=t}else m.value=e}};function O(e){let t=typeof e==`string`?e:e.color,{r:n,g:r,b:i}=k((t&&t.startsWith(`var(`)?getComputedStyle(document.documentElement).getPropertyValue(t.slice(4,-1).trim()).trim():t)||`#FFFFFF`);return(.299*n+.587*r+.114*i)/255>.5?`black`:`white`}function k(e){let t=e.replace(`#`,``);t.length===3&&(t=t.split(``).map(e=>e+e).join(``));let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}return(t,u)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-color-strip-wrapper`,`nb-color-strip-wrapper--${e.variant}`])},[e.variant===`default`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):e.label?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:1,for:p.value,disabled:!1},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]),_:1},8,[`for`])):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0),e.variant===`fluid`&&(e.label||t.$slots.label)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,c,[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):((0,a.openBlock)(),(0,a.createElementBlock)(`label`,l,(0,a.toDisplayString)(e.label),1))])):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(i.t,{id:p.value,dir:`row`,gap:`xs`,class:(0,a.normalizeClass)(x.value),shrink:!1,style:(0,a.normalizeStyle)(b.value)},{default:(0,a.withCtx)(()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(y.value,t=>((0,a.openBlock)(),(0,a.createBlock)(i.t,{is:`button`,key:`option-${t.id||t.value}`,align:`center`,justify:`center`,class:(0,a.normalizeClass)(C(t)),style:(0,a.normalizeStyle)(w(t)),disabled:t.disabled,onClick:n=>!e.onlyView&&D(t.value)},{default:(0,a.withCtx)(()=>[!e.onlyView&&S(t.value)&&!T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:(0,a.unref)(o.light),weight:`light`,color:O(t)},null,8,[`name`,`color`])):(0,a.createCommentVNode)(``,!0),T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,name:s,weight:E(t)},null,8,[`weight`])):(0,a.createCommentVNode)(``,!0)]),_:2},1032,[`class`,`style`,`disabled`,`onClick`]))),128))]),_:1},8,[`id`,`class`,`style`])],2))}}),p=t.t(f,[[`__scopeId`,`data-v-ddc31632`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Label-CZhQEyoi.cjs`),i=require(`./Grid-DiCxrPaO.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`),s=require(`@nubisco/ui/icons/empty`);s=e.n(s);var c={key:1,class:`nb-color-strip-wrapper__inner-header`},l={key:1,class:`nb-color-strip-wrapper__inner-label`},u=30,d=8,f=(0,a.defineComponent)({__name:`ColorStrip`,props:(0,a.mergeModels)({options:{default:()=>[`#DCDCDC`,`#C0C0C0`,`#808080`]},onlyView:{type:Boolean,default:!1},allowMultiple:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},showNull:{type:Boolean,default:!1},variant:{default:`default`},id:{default:void 0},label:{default:void 0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,f=`nb-color-strip-${(0,a.useId)()}`,p=(0,a.computed)(()=>t.id??f),m=(0,a.useModel)(e,`modelValue`,{set:e=>e}),h=(0,a.computed)(()=>t.options.map(e=>typeof e==`string`?{value:e,color:e}:{...e,color:e.color||`#FFFFFF`,value:e.value===void 0?e.color:e.value})),g={id:`null-option`,value:null,color:`transparent`,label:`None`},_=(0,a.ref)(m.value==null);(0,a.watch)(()=>m.value,e=>{e??(_.value=!0)});let v=(0,a.computed)(()=>t.allowMultiple?!1:t.onlyView?t.showNull:t.showNull||_.value),y=(0,a.computed)(()=>v.value?[g,...h.value]:h.value),b=(0,a.computed)(()=>{if(!t.wrap)return{maxWidth:`none`,flexWrap:`nowrap`};let e=y.value.length;if(e<=0)return;let n=Math.ceil(Math.sqrt(e));return{maxWidth:`${n*u+(n-1)*d}px`,flexWrap:`wrap`}}),x=(0,a.computed)(()=>({"nb-color-strip":!0,"only-view":t.onlyView})),S=e=>t.onlyView?!1:e===null?m.value==null:e===void 0?!1:t.allowMultiple?Array.isArray(m.value)&&m.value.includes(e):m.value===e,C=e=>({"nb-color-strip-color":!0,"nb-color-strip-color-null":T(e),selected:!t.onlyView&&S(e.value)}),w=e=>{if(!T(e))return{backgroundColor:e.color}},T=e=>e.id===`null-option`,E=e=>S(e.value)?`duotone`:`regular`,D=e=>{if(e!==void 0){if(!t.allowMultiple&&e===null){m.value=null;return}if(t.allowMultiple){let t=Array.isArray(m.value)?m.value.slice():[],n=t.indexOf(e);n===-1?t.push(e):t.splice(n,1),m.value=t}else m.value=e}};function O(e){let t=typeof e==`string`?e:e.color,{r:n,g:r,b:i}=k((t&&t.startsWith(`var(`)?getComputedStyle(document.documentElement).getPropertyValue(t.slice(4,-1).trim()).trim():t)||`#FFFFFF`);return(.299*n+.587*r+.114*i)/255>.5?`black`:`white`}function k(e){let t=e.replace(`#`,``);t.length===3&&(t=t.split(``).map(e=>e+e).join(``));let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}return(t,u)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-color-strip-wrapper`,`nb-color-strip-wrapper--${e.variant}`])},[e.variant===`default`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):e.label?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:1,for:p.value,disabled:!1},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]),_:1},8,[`for`])):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0),e.variant===`fluid`&&(e.label||t.$slots.label)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,c,[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):((0,a.openBlock)(),(0,a.createElementBlock)(`label`,l,(0,a.toDisplayString)(e.label),1))])):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(i.t,{id:p.value,dir:`row`,gap:`xs`,class:(0,a.normalizeClass)(x.value),shrink:!1,style:(0,a.normalizeStyle)(b.value)},{default:(0,a.withCtx)(()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(y.value,t=>((0,a.openBlock)(),(0,a.createBlock)(i.t,{is:`button`,key:`option-${t.id||t.value}`,align:`center`,justify:`center`,class:(0,a.normalizeClass)(C(t)),style:(0,a.normalizeStyle)(w(t)),disabled:t.disabled,onClick:n=>!e.onlyView&&D(t.value)},{default:(0,a.withCtx)(()=>[!e.onlyView&&S(t.value)&&!T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:(0,a.unref)(o.light),weight:`light`,color:O(t)},null,8,[`name`,`color`])):(0,a.createCommentVNode)(``,!0),T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,name:s,weight:E(t)},null,8,[`weight`])):(0,a.createCommentVNode)(``,!0)]),_:2},1032,[`class`,`style`,`disabled`,`onClick`]))),128))]),_:1},8,[`id`,`class`,`style`])],2))}}),p=t.t(f,[[`__scopeId`,`data-v-ddc31632`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
2
  import { t } from "./Icon-rREAqsu0.js";
3
- import { t as n } from "./Label-CiWiUQ_H.js";
4
- import { t as r } from "./Grid-DA2jibMM.js";
3
+ import { t as n } from "./Label-DGK5nxFy.js";
4
+ import { t as r } from "./Grid-iox-7xyH.js";
5
5
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, normalizeStyle as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useId as x, useModel as S, watch as C, withCtx as w } from "vue";
6
6
  import { light as T } from "@nubisco/ui/icons/check";
7
7
  import * as E from "@nubisco/ui/icons/empty";
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Button-BZn2lmMA.cjs`),i=require(`./Message-DjxOb8mu.cjs`),a=require(`./Modal-Xa9TIGNi.cjs`),o=require(`./TextInput--u9htMqc.cjs`);let s=require(`vue`),c=require(`@nubisco/ui/icons/warning`),ee=require(`@nubisco/ui/icons/check`);var te={key:0,class:`nb-confirm__message`},ne={key:0,class:`nb-confirm__subject-kind`},l={class:`nb-confirm__subject-name`},u={key:1,class:`nb-confirm__gate`},d={class:`nb-confirm__live`},f={key:0,class:`nb-confirm__status`,role:`status`},p={key:1,class:`nb-confirm__status nb-confirm__status--success`,role:`status`},m=(0,s.defineComponent)({__name:`Confirm`,props:{open:{type:Boolean,default:!1},title:{},message:{default:void 0},subject:{default:void 0},subjectLabel:{default:void 0},confirmLabel:{default:`Confirm`},cancelLabel:{default:`Cancel`},tone:{default:`danger`},typeToConfirm:{default:void 0},typeToConfirmLabel:{default:void 0},typeToConfirmHelper:{default:void 0},busy:{type:Boolean,default:!1},busyLabel:{default:`Working...`},succeeded:{type:Boolean,default:!1},successLabel:{default:void 0},error:{default:void 0},size:{default:`sm`},floatingSelectors:{default:()=>[]},contentClass:{default:void 0}},emits:[`confirm`,`cancel`],setup(t,{expose:m,emit:h}){let g=t,_=h,v=(0,s.useId)(),y=`nb-confirm-title-${v}`,b=`nb-confirm-body-${v}`,x=(0,s.useSlots)(),S=(0,s.ref)(null),C=(0,s.ref)(null),w=(0,s.ref)(null),T=(0,s.ref)(``),E=e.useReducedMotion(),D=(0,s.computed)(()=>g.busy||g.succeeded);function O(){return!!g.message||!!g.subject||!!x.default}let k=(0,s.computed)(()=>g.tone===`danger`?`danger`:`primary`),A=(0,s.computed)(()=>g.typeToConfirmLabel??`Type ${g.typeToConfirm} to confirm`),j=(0,s.computed)(()=>!g.typeToConfirm||T.value.trim()===g.typeToConfirm),M=(0,s.computed)(()=>j.value&&!D.value);function N(){M.value&&_(`confirm`)}function P(){let e=w.value?.$el;return e instanceof HTMLElement?e:null}function F(){return S.value?.closest(`[role="dialog"],[role="alertdialog"]`)??null}function re(){return typeof document>`u`?[]:Array.from(document.querySelectorAll(`[aria-modal="true"]`))}function I(){let e=F();if(!e)return!1;let t=re();return t.length===0||t[t.length-1]===e}let L=[`a[href]:not([tabindex="-1"])`,`area[href]:not([tabindex="-1"])`,`button:not([disabled]):not([tabindex="-1"])`,`input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])`,`select:not([disabled]):not([tabindex="-1"])`,`textarea:not([disabled]):not([tabindex="-1"])`,`summary:not([tabindex="-1"])`,`audio[controls]:not([tabindex="-1"])`,`video[controls]:not([tabindex="-1"])`,`iframe:not([tabindex="-1"])`,`[contenteditable]:not([contenteditable="false"]):not([tabindex="-1"])`,`[tabindex]:not([tabindex="-1"])`].map(e=>`${e}:not([hidden]):not([aria-hidden="true"])`).join(`,`);function R(){return a.i(g.floatingSelectors)}function z(e){return e instanceof Element?!!e.closest(R()):!1}function B(e){let t=F();return!!t&&!!e&&t.contains(e)}function V(){let e=F();return e?Array.from(e.querySelectorAll(L)).filter(e=>e.getAttribute(`aria-disabled`)!==`true`):[]}function H(){let e=F();return e?(e.focus(),!0):!1}function U(){let e=V()[0];e?e.focus():H()}let W=null;function G(){let e=W;W=null,e?.isConnected&&e.focus()}function K(){a.r(F(),E.value)}(0,s.watch)(E,()=>{g.open&&K()}),(0,s.watch)(()=>[g.busy,g.error],async(e,t)=>{if(!g.open)return;let[n,r]=e,i=t?.[0]??!1;if(await(0,s.nextTick)(),n){V().length===0&&H();return}if(i&&r){let e=C.value;e?e.focus():U();return}let a=document.activeElement;!B(a)&&!z(a)&&U()}),(0,s.watch)(()=>g.open,async e=>{e?(W=document.activeElement instanceof HTMLElement?document.activeElement:null,T.value=``,await(0,s.nextTick)(),K(),P()?P()?.focus():H()):G()},{immediate:!0});function q(){D.value||_(`cancel`)}let J=!1,Y=!1;function X(e){let t=e.target;J=B(t)||z(t)}function Z(e){Y=B(e.target)}function ie(){let e=J&&!Y;J=!1,!e&&q()}function Q(e){if(!g.open||z(document.activeElement))return;if(e.key===`Escape`){if(!I())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),q();return}if(e.key!==`Tab`||!I())return;let t=V();if(t.length===0){e.preventDefault(),B(document.activeElement)||H();return}let n=t[0],r=t[t.length-1],i=document.activeElement;e.shiftKey&&(i===n||!B(i))?(e.preventDefault(),r.focus()):!e.shiftKey&&i===r?(e.preventDefault(),n.focus()):B(i)||(e.preventDefault(),n.focus())}function $(e){if(!g.open)return;let t=e.relatedTarget;if(t instanceof Element){if(B(t)||z(t))return}else if(t!==null)return;requestAnimationFrame(()=>{if(!g.open)return;let e=document.activeElement;B(e)||z(e)||e&&e!==document.body&&!e.isConnected||I()&&U()})}return typeof document<`u`&&(document.addEventListener(`keydown`,Q,!0),document.addEventListener(`focusout`,$,!0),document.addEventListener(`mousedown`,X,!0),document.addEventListener(`touchstart`,X,!0),document.addEventListener(`click`,Z,!0)),(0,s.onMounted)(()=>{g.open&&(K(),P()?P()?.focus():H())}),(0,s.onUnmounted)(()=>{typeof document<`u`&&(document.removeEventListener(`keydown`,Q,!0),document.removeEventListener(`focusout`,$,!0),document.removeEventListener(`mousedown`,X,!0),document.removeEventListener(`touchstart`,X,!0),document.removeEventListener(`click`,Z,!0)),G()}),m({focusCancel:()=>P()?.focus(),restoreFocus:G,isTopmost:I}),(e,m)=>((0,s.openBlock)(),(0,s.createBlock)(a.t,{open:t.open,size:t.size,role:t.tone===`danger`?`alertdialog`:`dialog`,"labelled-by":y,"described-by":O()?b:void 0,busy:t.busy,"close-on-overlay":!D.value,"close-disabled":D.value,"close-on-escape":!1,"trap-focus":!1,onClose:ie},{header:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`span`,{id:y,class:(0,s.normalizeClass)([`nb-confirm__heading`,`nb-confirm__heading--${t.tone}`])},[t.tone===`danger`?((0,s.openBlock)(),(0,s.createBlock)(n.t,{key:0,name:(0,s.unref)(c.regular),size:16,"aria-hidden":`true`},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.title),1)],2)]),footer:(0,s.withCtx)(()=>[(0,s.createVNode)(r.t,{ref_key:`cancelRef`,ref:w,class:`nb-confirm__action nb-confirm__action--cancel`,variant:`ghost`,size:`lg`,disabled:D.value,"data-nb-confirm":`cancel`,onClick:q},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.cancelLabel),1)]),_:1},8,[`disabled`]),(0,s.createVNode)(r.t,{class:`nb-confirm__action nb-confirm__action--confirm`,variant:k.value,size:`lg`,disabled:!M.value,loading:t.busy,"data-nb-confirm":`confirm`,onClick:N},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.confirmLabel),1)]),_:1},8,[`variant`,`disabled`,`loading`])]),default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{ref_key:`rootRef`,ref:S,class:(0,s.normalizeClass)([`nb-confirm`,t.contentClass])},[O()?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,id:b,class:`nb-confirm__body`},[(0,s.renderSlot)(e.$slots,`default`,{},()=>[t.message?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,te,(0,s.toDisplayString)(t.message),1)):(0,s.createCommentVNode)(``,!0)],!0),t.subject?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,{key:0,class:(0,s.normalizeClass)([`nb-confirm__subject`,`nb-confirm__subject--${t.tone}`])},[t.subjectLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,ne,(0,s.toDisplayString)(t.subjectLabel),1)):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,l,(0,s.toDisplayString)(t.subject),1)],2)):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0),t.typeToConfirm?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,u,[(0,s.createVNode)(o.t,{modelValue:T.value,"onUpdate:modelValue":m[0]||=e=>T.value=e,class:`nb-confirm__gate-field`,label:A.value,helper:t.typeToConfirmHelper,disabled:D.value,autocomplete:`off`,spellcheck:`false`,"data-nb-confirm":`gate`,onKeydown:m[1]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`prevent`]),[`enter`])},null,8,[`modelValue`,`label`,`helper`,`disabled`])])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,d,[t.busy?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,f,(0,s.toDisplayString)(t.busyLabel),1)):(0,s.createCommentVNode)(``,!0),t.succeeded&&t.successLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,p,[(0,s.createVNode)(n.t,{name:(0,s.unref)(ee.regular),size:14,"aria-hidden":`true`},null,8,[`name`]),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.successLabel),1)])):(0,s.createCommentVNode)(``,!0),t.error?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:2,ref_key:`errorRef`,ref:C,class:`nb-confirm__error`,tabindex:`-1`},[(0,s.createVNode)(i.t,{variant:`error`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.error),1)]),_:1})],512)):(0,s.createCommentVNode)(``,!0)])],2)]),_:3},8,[`open`,`size`,`role`,`described-by`,`busy`,`close-on-overlay`,`close-disabled`]))}}),h=t.t(m,[[`__scopeId`,`data-v-683eafb1`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Button-C0UUTgEB.cjs`),i=require(`./Message-C44ftsaT.cjs`),a=require(`./Modal-BNgLfB88.cjs`),o=require(`./TextInput-BdZPqTzI.cjs`);let s=require(`vue`),c=require(`@nubisco/ui/icons/check`),ee=require(`@nubisco/ui/icons/warning`);var te={key:0,class:`nb-confirm__message`},ne={key:0,class:`nb-confirm__subject-kind`},l={class:`nb-confirm__subject-name`},u={key:1,class:`nb-confirm__gate`},d={class:`nb-confirm__live`},f={key:0,class:`nb-confirm__status`,role:`status`},p={key:1,class:`nb-confirm__status nb-confirm__status--success`,role:`status`},m=(0,s.defineComponent)({__name:`Confirm`,props:{open:{type:Boolean,default:!1},title:{},message:{default:void 0},subject:{default:void 0},subjectLabel:{default:void 0},confirmLabel:{default:`Confirm`},cancelLabel:{default:`Cancel`},tone:{default:`danger`},typeToConfirm:{default:void 0},typeToConfirmLabel:{default:void 0},typeToConfirmHelper:{default:void 0},busy:{type:Boolean,default:!1},busyLabel:{default:`Working...`},succeeded:{type:Boolean,default:!1},successLabel:{default:void 0},error:{default:void 0},size:{default:`sm`},floatingSelectors:{default:()=>[]},contentClass:{default:void 0}},emits:[`confirm`,`cancel`],setup(t,{expose:m,emit:h}){let g=t,_=h,v=(0,s.useId)(),y=`nb-confirm-title-${v}`,b=`nb-confirm-body-${v}`,x=(0,s.useSlots)(),S=(0,s.ref)(null),C=(0,s.ref)(null),w=(0,s.ref)(null),T=(0,s.ref)(``),E=e.useReducedMotion(),D=(0,s.computed)(()=>g.busy||g.succeeded);function O(){return!!g.message||!!g.subject||!!x.default}let k=(0,s.computed)(()=>g.tone===`danger`?`danger`:`primary`),A=(0,s.computed)(()=>g.typeToConfirmLabel??`Type ${g.typeToConfirm} to confirm`),j=(0,s.computed)(()=>!g.typeToConfirm||T.value.trim()===g.typeToConfirm),M=(0,s.computed)(()=>j.value&&!D.value);function N(){M.value&&_(`confirm`)}function P(){let e=w.value?.$el;return e instanceof HTMLElement?e:null}function F(){return S.value?.closest(`[role="dialog"],[role="alertdialog"]`)??null}function re(){return typeof document>`u`?[]:Array.from(document.querySelectorAll(`[aria-modal="true"]`))}function I(){let e=F();if(!e)return!1;let t=re();return t.length===0||t[t.length-1]===e}let L=[`a[href]:not([tabindex="-1"])`,`area[href]:not([tabindex="-1"])`,`button:not([disabled]):not([tabindex="-1"])`,`input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])`,`select:not([disabled]):not([tabindex="-1"])`,`textarea:not([disabled]):not([tabindex="-1"])`,`summary:not([tabindex="-1"])`,`audio[controls]:not([tabindex="-1"])`,`video[controls]:not([tabindex="-1"])`,`iframe:not([tabindex="-1"])`,`[contenteditable]:not([contenteditable="false"]):not([tabindex="-1"])`,`[tabindex]:not([tabindex="-1"])`].map(e=>`${e}:not([hidden]):not([aria-hidden="true"])`).join(`,`);function R(){return a.i(g.floatingSelectors)}function z(e){return e instanceof Element?!!e.closest(R()):!1}function B(e){let t=F();return!!t&&!!e&&t.contains(e)}function V(){let e=F();return e?Array.from(e.querySelectorAll(L)).filter(e=>e.getAttribute(`aria-disabled`)!==`true`):[]}function H(){let e=F();return e?(e.focus(),!0):!1}function U(){let e=V()[0];e?e.focus():H()}let W=null;function G(){let e=W;W=null,e?.isConnected&&e.focus()}function K(){a.r(F(),E.value)}(0,s.watch)(E,()=>{g.open&&K()}),(0,s.watch)(()=>[g.busy,g.error],async(e,t)=>{if(!g.open)return;let[n,r]=e,i=t?.[0]??!1;if(await(0,s.nextTick)(),n){V().length===0&&H();return}if(i&&r){let e=C.value;e?e.focus():U();return}let a=document.activeElement;!B(a)&&!z(a)&&U()}),(0,s.watch)(()=>g.open,async e=>{e?(W=document.activeElement instanceof HTMLElement?document.activeElement:null,T.value=``,await(0,s.nextTick)(),K(),P()?P()?.focus():H()):G()},{immediate:!0});function q(){D.value||_(`cancel`)}let J=!1,Y=!1;function X(e){let t=e.target;J=B(t)||z(t)}function Z(e){Y=B(e.target)}function ie(){let e=J&&!Y;J=!1,!e&&q()}function Q(e){if(!g.open||z(document.activeElement))return;if(e.key===`Escape`){if(!I())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),q();return}if(e.key!==`Tab`||!I())return;let t=V();if(t.length===0){e.preventDefault(),B(document.activeElement)||H();return}let n=t[0],r=t[t.length-1],i=document.activeElement;e.shiftKey&&(i===n||!B(i))?(e.preventDefault(),r.focus()):!e.shiftKey&&i===r?(e.preventDefault(),n.focus()):B(i)||(e.preventDefault(),n.focus())}function $(e){if(!g.open)return;let t=e.relatedTarget;if(t instanceof Element){if(B(t)||z(t))return}else if(t!==null)return;requestAnimationFrame(()=>{if(!g.open)return;let e=document.activeElement;B(e)||z(e)||e&&e!==document.body&&!e.isConnected||I()&&U()})}return typeof document<`u`&&(document.addEventListener(`keydown`,Q,!0),document.addEventListener(`focusout`,$,!0),document.addEventListener(`mousedown`,X,!0),document.addEventListener(`touchstart`,X,!0),document.addEventListener(`click`,Z,!0)),(0,s.onMounted)(()=>{g.open&&(K(),P()?P()?.focus():H())}),(0,s.onUnmounted)(()=>{typeof document<`u`&&(document.removeEventListener(`keydown`,Q,!0),document.removeEventListener(`focusout`,$,!0),document.removeEventListener(`mousedown`,X,!0),document.removeEventListener(`touchstart`,X,!0),document.removeEventListener(`click`,Z,!0)),G()}),m({focusCancel:()=>P()?.focus(),restoreFocus:G,isTopmost:I}),(e,m)=>((0,s.openBlock)(),(0,s.createBlock)(a.t,{open:t.open,size:t.size,role:t.tone===`danger`?`alertdialog`:`dialog`,"labelled-by":y,"described-by":O()?b:void 0,busy:t.busy,"close-on-overlay":!D.value,"close-disabled":D.value,"close-on-escape":!1,"trap-focus":!1,onClose:ie},{header:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`span`,{id:y,class:(0,s.normalizeClass)([`nb-confirm__heading`,`nb-confirm__heading--${t.tone}`])},[t.tone===`danger`?((0,s.openBlock)(),(0,s.createBlock)(n.t,{key:0,name:(0,s.unref)(ee.regular),size:16,"aria-hidden":`true`},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.title),1)],2)]),footer:(0,s.withCtx)(()=>[(0,s.createVNode)(r.t,{ref_key:`cancelRef`,ref:w,class:`nb-confirm__action nb-confirm__action--cancel`,variant:`ghost`,size:`lg`,disabled:D.value,"data-nb-confirm":`cancel`,onClick:q},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.cancelLabel),1)]),_:1},8,[`disabled`]),(0,s.createVNode)(r.t,{class:`nb-confirm__action nb-confirm__action--confirm`,variant:k.value,size:`lg`,disabled:!M.value,loading:t.busy,"data-nb-confirm":`confirm`,onClick:N},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.confirmLabel),1)]),_:1},8,[`variant`,`disabled`,`loading`])]),default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{ref_key:`rootRef`,ref:S,class:(0,s.normalizeClass)([`nb-confirm`,t.contentClass])},[O()?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,id:b,class:`nb-confirm__body`},[(0,s.renderSlot)(e.$slots,`default`,{},()=>[t.message?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,te,(0,s.toDisplayString)(t.message),1)):(0,s.createCommentVNode)(``,!0)],!0),t.subject?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,{key:0,class:(0,s.normalizeClass)([`nb-confirm__subject`,`nb-confirm__subject--${t.tone}`])},[t.subjectLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,ne,(0,s.toDisplayString)(t.subjectLabel),1)):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,l,(0,s.toDisplayString)(t.subject),1)],2)):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0),t.typeToConfirm?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,u,[(0,s.createVNode)(o.t,{modelValue:T.value,"onUpdate:modelValue":m[0]||=e=>T.value=e,class:`nb-confirm__gate-field`,label:A.value,helper:t.typeToConfirmHelper,disabled:D.value,autocomplete:`off`,spellcheck:`false`,"data-nb-confirm":`gate`,onKeydown:m[1]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`prevent`]),[`enter`])},null,8,[`modelValue`,`label`,`helper`,`disabled`])])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,d,[t.busy?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,f,(0,s.toDisplayString)(t.busyLabel),1)):(0,s.createCommentVNode)(``,!0),t.succeeded&&t.successLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,p,[(0,s.createVNode)(n.t,{name:(0,s.unref)(c.regular),size:14,"aria-hidden":`true`},null,8,[`name`]),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.successLabel),1)])):(0,s.createCommentVNode)(``,!0),t.error?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:2,ref_key:`errorRef`,ref:C,class:`nb-confirm__error`,tabindex:`-1`},[(0,s.createVNode)(i.t,{variant:`error`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.error),1)]),_:1})],512)):(0,s.createCommentVNode)(``,!0)])],2)]),_:3},8,[`open`,`size`,`role`,`described-by`,`busy`,`close-on-overlay`,`close-disabled`]))}}),h=t.t(m,[[`__scopeId`,`data-v-683eafb1`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
@@ -1,13 +1,13 @@
1
1
  import { useReducedMotion as e } from "./composables/useReducedMotion.composable.mjs";
2
2
  import { t } from "./_plugin-vue_export-helper-O4QQSku4.js";
3
3
  import { t as n } from "./Icon-rREAqsu0.js";
4
- import { t as r } from "./Button-BAfC7ySK.js";
5
- import { t as i } from "./Message-SQvoXiWl.js";
6
- import { i as a, r as ee, t as te } from "./Modal-BvZulLj2.js";
7
- import { t as ne } from "./TextInput-C_i6Miob.js";
4
+ import { t as r } from "./Button-IcCXOoCT.js";
5
+ import { t as i } from "./Message-CHkTWe0K.js";
6
+ import { i as a, r as ee, t as te } from "./Modal-C97dRTiP.js";
7
+ import { t as ne } from "./TextInput-KQGVZCcT.js";
8
8
  import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, onMounted as re, onUnmounted as ie, openBlock as g, ref as _, renderSlot as ae, toDisplayString as v, unref as y, useId as oe, useSlots as se, watch as b, withCtx as x, withKeys as ce, withModifiers as le } from "vue";
9
- import { regular as ue } from "@nubisco/ui/icons/warning";
10
- import { regular as de } from "@nubisco/ui/icons/check";
9
+ import { regular as ue } from "@nubisco/ui/icons/check";
10
+ import { regular as de } from "@nubisco/ui/icons/warning";
11
11
  //#region src/components/Confirm.vue?vue&type=script&setup=true&lang.ts
12
12
  var fe = {
13
13
  key: 0,
@@ -216,7 +216,7 @@ var fe = {
216
216
  class: h(["nb-confirm__heading", `nb-confirm__heading--${t.tone}`])
217
217
  }, [t.tone === "danger" ? (g(), s(n, {
218
218
  key: 0,
219
- name: y(ue),
219
+ name: y(de),
220
220
  size: 16,
221
221
  "aria-hidden": "true"
222
222
  }, null, 8, ["name"])) : c("", !0), u("span", null, v(t.title), 1)], 2)]),
@@ -281,7 +281,7 @@ var fe = {
281
281
  u("div", ge, [
282
282
  t.busy ? (g(), l("p", _e, v(t.busyLabel), 1)) : c("", !0),
283
283
  t.succeeded && t.successLabel ? (g(), l("p", ve, [f(n, {
284
- name: y(de),
284
+ name: y(ue),
285
285
  size: 14,
286
286
  "aria-hidden": "true"
287
287
  }, null, 8, ["name"]), u("span", null, v(t.successLabel), 1)])) : c("", !0),
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Size.d-GBIblj2D.cjs`),r=require(`./Icon-C8R_r_In.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./composables/usePhoneLayout.composable.cjs`),o=require(`./Button-C0UUTgEB.cjs`),s=require(`./Grid-DiCxrPaO.cjs`),c=require(`./Checkbox-CZVNZ2pn.cjs`);let l=require(`vue`),u=require(`@nubisco/ui/icons/arrows-down-up`);u=e.n(u);let d=require(`@nubisco/ui/icons/arrow-up`);d=e.n(d);let f=require(`@nubisco/ui/icons/arrow-down`);f=e.n(f);var p={key:0,class:`nb-data-table__toolbar`},m=[`inert`,`aria-hidden`],h={key:0},g={key:0,class:`nb-data-table__title`},_={key:1,class:`nb-data-table__description`},v=[`inert`,`aria-hidden`],y={key:1,class:`nb-data-table__batch`,role:`region`,"aria-label":`Table batch actions`},ee={class:`nb-data-table__batch-count`},te={class:`nb-data-table__batch-actions`},ne={class:`nb-data-table__scroll`},re=[`role`,`aria-label`,`aria-busy`],ie={key:0,class:`nb-data-table__col-select`},ae={key:1,class:`nb-data-table__col-actions`},oe=[`role`],se=[`role`],ce={key:0,scope:`col`,class:`nb-data-table__th nb-data-table__select-cell`},le=[`aria-sort`],ue=[`onClick`],de={class:`nb-data-table__th-label`},fe={key:1,class:`nb-data-table__th-label`},pe={key:1,scope:`col`,class:`nb-data-table__th nb-data-table__actions-cell`},me=[`role`],he={key:0,class:`nb-data-table__td`},ge={key:1,class:`nb-data-table__td`},_e={key:1,class:`nb-data-table__state-row`},b=[`colspan`],x={key:2,class:`nb-data-table__state-row`},S=[`colspan`],C=[`role`,`aria-selected`,`onClick`],w=[`checked`,`aria-label`,`onChange`],T=[`role`,`data-label`],E={key:1,class:`nb-data-table__footer`},D=(0,l.defineComponent)({__name:`DataTable`,props:{columns:{},rows:{},rowKey:{},size:{default:n.r.Medium},sortState:{default:null},selectable:{default:`none`},selected:{default:()=>[]},loading:{type:Boolean,default:!1},skeletonRows:{default:5},error:{default:void 0},emptyMessage:{default:void 0},stickyHeader:{type:Boolean,default:!0},zebra:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},title:{default:void 0},description:{default:void 0},ariaLabel:{default:void 0},stackOnPhone:{type:Boolean,default:!1}},emits:[`sort`,`update:selected`,`row-click`],setup(e,{emit:t}){let n=e,{layerProps:D}=i.useSurfaceLayer(),O=t,k=(0,l.useSlots)(),A=`nb-data-table-select-${(0,l.useId)()}`,j=(0,l.computed)(()=>n.size),M=(0,l.computed)(()=>n.columns.filter(e=>!e.hidden)),N=(0,l.computed)(()=>n.selectable!==`none`),P=(0,l.computed)(()=>!!k[`row-actions`]),F=(0,l.computed)(()=>M.value.length+(N.value?1:0)+(P.value?1:0)),{phone:I}=a.usePhoneLayout(),L=(0,l.computed)(()=>n.stackOnPhone&&I.value),ve=(0,l.computed)(()=>(M.value.find(e=>e.primary)??M.value.find(e=>!e.phoneHidden&&!e.phoneMeta))?.key);function ye(e){return e.phoneHidden?`nb-data-table__td--phone-hidden`:e.key===ve.value?`nb-data-table__td--primary`:e.phoneMeta?`nb-data-table__td--meta`:`nb-data-table__td--field`}let be=(0,l.computed)(()=>!n.loading&&!n.error&&n.rows.length>0&&(n.selectable===`multiple`||M.value.some(e=>e.sortable&&!e.phoneHidden)));function xe(e){if(e.width!=null)return{width:typeof e.width==`number`?`${e.width}px`:e.width}}function R(e,t){return t[e.key]}function Se(e){return e==null?``:String(e)}let z=e=>e.column.render?.(e.row,R(e.column,e.row),e.rowIndex)??null;z.props=[`column`,`row`,`rowIndex`];function B(e){let t=n.rowKey;return typeof t==`function`?t(e):e[t]}let V=(0,l.computed)(()=>new Set(n.selected)),Ce=(0,l.computed)(()=>n.selected),H=(0,l.computed)(()=>n.selected.length);function U(e){return V.value.has(B(e))}let W=(0,l.computed)(()=>n.rows.map(e=>B(e))),G=(0,l.computed)(()=>W.value.length>0&&W.value.every(e=>V.value.has(e))),we=(0,l.computed)(()=>!G.value&&W.value.some(e=>V.value.has(e))),K=(0,l.ref)(null),q=!1;function J(e){q=e.shiftKey}(0,l.watch)(W,()=>{K.value=null});function Te(e,t){let r=B(e),i=new Set(n.selected),a=!i.has(r),o=K.value,s=e=>{a?i.add(e):i.delete(e)};if(q&&o!==null&&o!==t){let e=Math.min(o,t),r=Math.max(o,t);for(let t=e;t<=r;t++){let e=n.rows[t];e&&s(B(e))}}else s(r),K.value=t;q=!1,O(`update:selected`,[...i])}function Ee(e){O(`update:selected`,[B(e)])}function De(){let e=new Set(n.selected);G.value?W.value.forEach(t=>e.delete(t)):W.value.forEach(t=>e.add(t)),O(`update:selected`,[...e])}function Y(){O(`update:selected`,[])}let X=(0,l.computed)(()=>n.selectable!==`none`&&!!k[`batch-actions`]),Z=(0,l.computed)(()=>X.value&&H.value>0),Oe=(0,l.computed)(()=>!!n.title||!!n.description||!!k.toolbar||!!k.search||!!k[`toolbar-actions`]),ke=(0,l.computed)(()=>Oe.value||X.value);function Q(e){return!!n.sortState&&n.sortState.key===e.key&&n.sortState.direction!==`none`}function Ae(e){return Q(e)?n.sortState.direction===`asc`?`ascending`:`descending`:`none`}function $(e){return Q(e)?n.sortState.direction===`asc`?d:f:u}function je(e){return e===`asc`?`desc`:e===`desc`?`none`:`asc`}function Me(e){let t=n.sortState&&n.sortState.key===e.key?n.sortState.direction:`none`;O(`sort`,{key:e.key,direction:je(t)})}let Ne=(0,l.getCurrentInstance)(),Pe=(0,l.computed)(()=>!!Ne?.vnode.props?.onRowClick);function Fe(e,t){O(`row-click`,e,t)}return(t,n)=>((0,l.openBlock)(),(0,l.createElementBlock)(`div`,(0,l.mergeProps)({class:[`nb-data-table`,`nb-data-table--${e.size}`,{"nb-data-table--zebra":e.zebra},{"nb-data-table--sticky":e.stickyHeader},{"nb-data-table--fill":e.fill},{"nb-data-table--stacked":L.value},{"nb-data-table--stacked-headless":L.value&&!be.value}]},(0,l.unref)(D)),[ke.value?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,p,[(0,l.createElementVNode)(`div`,{class:`nb-data-table__toolbar-heading`,inert:Z.value||void 0,"aria-hidden":Z.value||void 0},[(0,l.renderSlot)(t.$slots,`toolbar`,{selectedCount:H.value},()=>[e.title||e.description?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,h,[e.title?((0,l.openBlock)(),(0,l.createElementBlock)(`h2`,g,(0,l.toDisplayString)(e.title),1)):(0,l.createCommentVNode)(``,!0),e.description?((0,l.openBlock)(),(0,l.createElementBlock)(`p`,_,(0,l.toDisplayString)(e.description),1)):(0,l.createCommentVNode)(``,!0)])):(0,l.createCommentVNode)(``,!0)],!0)],8,m),t.$slots.search||t.$slots[`toolbar-actions`]?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,{key:0,class:`nb-data-table__toolbar-tools`,inert:Z.value||void 0,"aria-hidden":Z.value||void 0},[(0,l.renderSlot)(t.$slots,`search`,{},void 0,!0),(0,l.renderSlot)(t.$slots,`toolbar-actions`,{},void 0,!0)],8,v)):(0,l.createCommentVNode)(``,!0),Z.value?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,y,[(0,l.createElementVNode)(`span`,ee,(0,l.toDisplayString)(H.value)+` selected `,1),(0,l.createElementVNode)(`div`,te,[(0,l.renderSlot)(t.$slots,`batch-actions`,{selectedKeys:Ce.value,clear:Y},void 0,!0)]),(0,l.createVNode)(o.t,{class:`nb-data-table__batch-cancel`,variant:`ghost`,size:j.value,onClick:Y},{default:(0,l.withCtx)(()=>[...n[2]||=[(0,l.createTextVNode)(` Cancel `,-1)]]),_:1},8,[`size`])])):(0,l.createCommentVNode)(``,!0)])):(0,l.createCommentVNode)(``,!0),(0,l.createElementVNode)(`div`,ne,[(0,l.createElementVNode)(`table`,{class:`nb-data-table__table`,role:L.value?`table`:void 0,"aria-label":e.ariaLabel||e.title||void 0,"aria-busy":e.loading||void 0},[(0,l.createElementVNode)(`colgroup`,null,[N.value?((0,l.openBlock)(),(0,l.createElementBlock)(`col`,ie)):(0,l.createCommentVNode)(``,!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(M.value,e=>((0,l.openBlock)(),(0,l.createElementBlock)(`col`,{key:`col-${e.key}`,style:(0,l.normalizeStyle)(xe(e))},null,4))),128)),P.value?((0,l.openBlock)(),(0,l.createElementBlock)(`col`,ae)):(0,l.createCommentVNode)(``,!0)]),(0,l.createElementVNode)(`thead`,{class:`nb-data-table__head`,role:L.value?`rowgroup`:void 0},[(0,l.createElementVNode)(`tr`,{role:L.value?`row`:void 0},[N.value?((0,l.openBlock)(),(0,l.createElementBlock)(`th`,ce,[e.selectable===`multiple`?((0,l.openBlock)(),(0,l.createBlock)(c.t,{key:0,"model-value":G.value,indeterminate:we.value,"aria-label":`Select all rows`,"onUpdate:modelValue":De},null,8,[`model-value`,`indeterminate`])):(0,l.createCommentVNode)(``,!0)])):(0,l.createCommentVNode)(``,!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(M.value,e=>((0,l.openBlock)(),(0,l.createElementBlock)(`th`,{key:`th-${e.key}`,scope:`col`,class:(0,l.normalizeClass)([`nb-data-table__th`,`nb-data-table__th--${e.align||`left`}`,{"nb-data-table__th--sortable":e.sortable},{"nb-data-table__th--sorted":Q(e)},L.value&&e.phoneHidden&&`nb-data-table__th--phone-hidden`]),"aria-sort":e.sortable?Ae(e):void 0},[e.sortable?((0,l.openBlock)(),(0,l.createElementBlock)(`button`,{key:0,type:`button`,class:`nb-data-table__sort`,onClick:t=>Me(e)},[(0,l.createElementVNode)(`span`,de,[(0,l.renderSlot)(t.$slots,`header-${e.key}`,{column:e},()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.header),1)],!0)]),(0,l.createVNode)(r.t,{name:$(e),class:`nb-data-table__sort-icon`,"aria-hidden":`true`},null,8,[`name`])],8,ue)):((0,l.openBlock)(),(0,l.createElementBlock)(`span`,fe,[(0,l.renderSlot)(t.$slots,`header-${e.key}`,{column:e},()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.header),1)],!0)]))],10,le))),128)),P.value?((0,l.openBlock)(),(0,l.createElementBlock)(`th`,pe,[...n[3]||=[(0,l.createElementVNode)(`span`,{class:`nb-sr-only`},`Row actions`,-1)]])):(0,l.createCommentVNode)(``,!0)],8,se)],8,oe),(0,l.createElementVNode)(`tbody`,{class:`nb-data-table__body`,role:L.value?`rowgroup`:void 0},[e.loading?((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,{key:0},(0,l.renderList)(e.skeletonRows,e=>((0,l.openBlock)(),(0,l.createElementBlock)(`tr`,{key:`skeleton-${e}`,class:`nb-data-table__row nb-data-table__row--skeleton`},[N.value?((0,l.openBlock)(),(0,l.createElementBlock)(`td`,he,[...n[4]||=[(0,l.createElementVNode)(`span`,{class:`nb-data-table__skeleton nb-data-table__skeleton--box`},null,-1)]])):(0,l.createCommentVNode)(``,!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(M.value,t=>((0,l.openBlock)(),(0,l.createElementBlock)(`td`,{key:`sk-${e}-${t.key}`,class:`nb-data-table__td`},[...n[5]||=[(0,l.createElementVNode)(`span`,{class:`nb-data-table__skeleton`},null,-1)]]))),128)),P.value?((0,l.openBlock)(),(0,l.createElementBlock)(`td`,ge,[...n[6]||=[(0,l.createElementVNode)(`span`,{class:`nb-data-table__skeleton nb-data-table__skeleton--box`},null,-1)]])):(0,l.createCommentVNode)(``,!0)]))),128)):e.error?((0,l.openBlock)(),(0,l.createElementBlock)(`tr`,_e,[(0,l.createElementVNode)(`td`,{colspan:F.value,class:`nb-data-table__state nb-data-table__state--error`},[(0,l.renderSlot)(t.$slots,`error`,{error:e.error},()=>[(0,l.createVNode)(s.t,{is:`span`,align:`center`,justify:`center`,gap:`xs`,class:`nb-data-table__state-inner`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(r.t,{name:`warning-circle-fill`,"aria-hidden":`true`}),(0,l.createElementVNode)(`span`,null,(0,l.toDisplayString)(e.error),1)]),_:1})],!0)],8,b)])):e.rows.length?((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,{key:3},(0,l.renderList)(e.rows,(r,i)=>((0,l.openBlock)(),(0,l.createElementBlock)(`tr`,{key:B(r),class:(0,l.normalizeClass)([`nb-data-table__row`,{"nb-data-table__row--selected":U(r)},{"nb-data-table__row--clickable":Pe.value}]),role:L.value?`row`:void 0,"aria-selected":e.selectable===`none`?void 0:U(r),onClick:e=>Fe(r,i)},[N.value?((0,l.openBlock)(),(0,l.createElementBlock)(`td`,{key:0,class:`nb-data-table__td nb-data-table__select-cell`,onClick:n[0]||=(0,l.withModifiers)(()=>{},[`stop`]),onMousedown:J,onKeydown:J},[e.selectable===`multiple`?((0,l.openBlock)(),(0,l.createBlock)(c.t,{key:0,"model-value":U(r),"aria-label":`Select row ${i+1}`,"onUpdate:modelValue":e=>Te(r,i)},null,8,[`model-value`,`aria-label`,`onUpdate:modelValue`])):((0,l.openBlock)(),(0,l.createElementBlock)(`input`,{key:1,type:`radio`,class:`nb-data-table__radio`,name:A,checked:U(r),"aria-label":`Select row ${i+1}`,onChange:e=>Ee(r)},null,40,w))],32)):(0,l.createCommentVNode)(``,!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(M.value,n=>((0,l.openBlock)(),(0,l.createElementBlock)(`td`,{key:`td-${B(r)}-${n.key}`,class:(0,l.normalizeClass)([`nb-data-table__td`,`nb-data-table__td--${n.align||`left`}`,n.cellClass,L.value&&ye(n)]),role:L.value?`cell`:void 0,"data-label":e.stackOnPhone?n.header:void 0},[(0,l.renderSlot)(t.$slots,`cell-${n.key}`,{row:r,value:R(n,r),column:n,rowIndex:i},()=>[n.render?((0,l.openBlock)(),(0,l.createBlock)(z,{key:0,column:n,row:r,"row-index":i},null,8,[`column`,`row`,`row-index`])):((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:1},[(0,l.createTextVNode)((0,l.toDisplayString)(Se(R(n,r))),1)],64))],!0)],10,T))),128)),P.value?((0,l.openBlock)(),(0,l.createElementBlock)(`td`,{key:1,class:`nb-data-table__td nb-data-table__actions-cell`,onClick:n[1]||=(0,l.withModifiers)(()=>{},[`stop`])},[(0,l.renderSlot)(t.$slots,`row-actions`,{row:r,rowIndex:i},void 0,!0)])):(0,l.createCommentVNode)(``,!0)],10,C))),128)):((0,l.openBlock)(),(0,l.createElementBlock)(`tr`,x,[(0,l.createElementVNode)(`td`,{colspan:F.value,class:`nb-data-table__state nb-data-table__state--empty`},[(0,l.renderSlot)(t.$slots,`empty`,{},()=>[(0,l.createElementVNode)(`span`,null,(0,l.toDisplayString)(e.emptyMessage||`No data to display`),1)],!0)],8,S)]))],8,me)],8,re)]),t.$slots.footer?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,E,[(0,l.renderSlot)(t.$slots,`footer`,{},void 0,!0)])):(0,l.createCommentVNode)(``,!0)],16))}}),O=t.t(D,[[`__scopeId`,`data-v-a4bea523`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return O}});
@@ -0,0 +1,389 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
+ import { r as t } from "./Size.d-Bah6vMl3.js";
3
+ import { t as n } from "./Icon-rREAqsu0.js";
4
+ import { useSurfaceLayer as r } from "./composables/useSurfaceLayer.composable.mjs";
5
+ import { usePhoneLayout as i } from "./composables/usePhoneLayout.composable.mjs";
6
+ import { t as a } from "./Button-IcCXOoCT.js";
7
+ import { t as o } from "./Grid-iox-7xyH.js";
8
+ import { t as s } from "./Checkbox-CXlovpPs.js";
9
+ import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as ee, mergeProps as te, normalizeClass as _, normalizeStyle as ne, openBlock as v, ref as re, renderList as y, renderSlot as b, toDisplayString as x, unref as ie, useId as ae, useSlots as oe, watch as se, withCtx as S, withModifiers as C } from "vue";
10
+ import * as ce from "@nubisco/ui/icons/arrows-down-up";
11
+ import * as le from "@nubisco/ui/icons/arrow-up";
12
+ import * as ue from "@nubisco/ui/icons/arrow-down";
13
+ //#region src/components/DataTable.vue?vue&type=script&setup=true&lang.ts
14
+ var de = {
15
+ key: 0,
16
+ class: "nb-data-table__toolbar"
17
+ }, fe = ["inert", "aria-hidden"], pe = { key: 0 }, me = {
18
+ key: 0,
19
+ class: "nb-data-table__title"
20
+ }, he = {
21
+ key: 1,
22
+ class: "nb-data-table__description"
23
+ }, ge = ["inert", "aria-hidden"], _e = {
24
+ key: 1,
25
+ class: "nb-data-table__batch",
26
+ role: "region",
27
+ "aria-label": "Table batch actions"
28
+ }, ve = { class: "nb-data-table__batch-count" }, ye = { class: "nb-data-table__batch-actions" }, be = { class: "nb-data-table__scroll" }, xe = [
29
+ "role",
30
+ "aria-label",
31
+ "aria-busy"
32
+ ], Se = {
33
+ key: 0,
34
+ class: "nb-data-table__col-select"
35
+ }, Ce = {
36
+ key: 1,
37
+ class: "nb-data-table__col-actions"
38
+ }, we = ["role"], w = ["role"], T = {
39
+ key: 0,
40
+ scope: "col",
41
+ class: "nb-data-table__th nb-data-table__select-cell"
42
+ }, E = ["aria-sort"], D = ["onClick"], O = { class: "nb-data-table__th-label" }, k = {
43
+ key: 1,
44
+ class: "nb-data-table__th-label"
45
+ }, Te = {
46
+ key: 1,
47
+ scope: "col",
48
+ class: "nb-data-table__th nb-data-table__actions-cell"
49
+ }, Ee = ["role"], De = {
50
+ key: 0,
51
+ class: "nb-data-table__td"
52
+ }, Oe = {
53
+ key: 1,
54
+ class: "nb-data-table__td"
55
+ }, ke = {
56
+ key: 1,
57
+ class: "nb-data-table__state-row"
58
+ }, Ae = ["colspan"], je = {
59
+ key: 2,
60
+ class: "nb-data-table__state-row"
61
+ }, Me = ["colspan"], Ne = [
62
+ "role",
63
+ "aria-selected",
64
+ "onClick"
65
+ ], Pe = [
66
+ "checked",
67
+ "aria-label",
68
+ "onChange"
69
+ ], Fe = ["role", "data-label"], Ie = {
70
+ key: 1,
71
+ class: "nb-data-table__footer"
72
+ }, A = /* @__PURE__ */ e(/* @__PURE__ */ g({
73
+ __name: "DataTable",
74
+ props: {
75
+ columns: {},
76
+ rows: {},
77
+ rowKey: {},
78
+ size: { default: t.Medium },
79
+ sortState: { default: null },
80
+ selectable: { default: "none" },
81
+ selected: { default: () => [] },
82
+ loading: {
83
+ type: Boolean,
84
+ default: !1
85
+ },
86
+ skeletonRows: { default: 5 },
87
+ error: { default: void 0 },
88
+ emptyMessage: { default: void 0 },
89
+ stickyHeader: {
90
+ type: Boolean,
91
+ default: !0
92
+ },
93
+ zebra: {
94
+ type: Boolean,
95
+ default: !1
96
+ },
97
+ fill: {
98
+ type: Boolean,
99
+ default: !1
100
+ },
101
+ title: { default: void 0 },
102
+ description: { default: void 0 },
103
+ ariaLabel: { default: void 0 },
104
+ stackOnPhone: {
105
+ type: Boolean,
106
+ default: !1
107
+ }
108
+ },
109
+ emits: [
110
+ "sort",
111
+ "update:selected",
112
+ "row-click"
113
+ ],
114
+ setup(e, { emit: t }) {
115
+ let g = e, { layerProps: A } = r(), j = t, M = oe(), Le = `nb-data-table-select-${ae()}`, Re = l(() => g.size), N = l(() => g.columns.filter((e) => !e.hidden)), P = l(() => g.selectable !== "none"), F = l(() => !!M["row-actions"]), I = l(() => N.value.length + (P.value ? 1 : 0) + (F.value ? 1 : 0)), { phone: ze } = i(), L = l(() => g.stackOnPhone && ze.value), Be = l(() => (N.value.find((e) => e.primary) ?? N.value.find((e) => !e.phoneHidden && !e.phoneMeta))?.key);
116
+ function Ve(e) {
117
+ return e.phoneHidden ? "nb-data-table__td--phone-hidden" : e.key === Be.value ? "nb-data-table__td--primary" : e.phoneMeta ? "nb-data-table__td--meta" : "nb-data-table__td--field";
118
+ }
119
+ let He = l(() => !g.loading && !g.error && g.rows.length > 0 && (g.selectable === "multiple" || N.value.some((e) => e.sortable && !e.phoneHidden)));
120
+ function Ue(e) {
121
+ if (e.width != null) return { width: typeof e.width == "number" ? `${e.width}px` : e.width };
122
+ }
123
+ function R(e, t) {
124
+ return t[e.key];
125
+ }
126
+ function We(e) {
127
+ return e == null ? "" : String(e);
128
+ }
129
+ let z = (e) => e.column.render?.(e.row, R(e.column, e.row), e.rowIndex) ?? null;
130
+ z.props = [
131
+ "column",
132
+ "row",
133
+ "rowIndex"
134
+ ];
135
+ function B(e) {
136
+ let t = g.rowKey;
137
+ return typeof t == "function" ? t(e) : e[t];
138
+ }
139
+ let V = l(() => new Set(g.selected)), Ge = l(() => g.selected), H = l(() => g.selected.length);
140
+ function U(e) {
141
+ return V.value.has(B(e));
142
+ }
143
+ let W = l(() => g.rows.map((e) => B(e))), G = l(() => W.value.length > 0 && W.value.every((e) => V.value.has(e))), Ke = l(() => !G.value && W.value.some((e) => V.value.has(e))), K = re(null), q = !1;
144
+ function J(e) {
145
+ q = e.shiftKey;
146
+ }
147
+ se(W, () => {
148
+ K.value = null;
149
+ });
150
+ function qe(e, t) {
151
+ let n = B(e), r = new Set(g.selected), i = !r.has(n), a = K.value, o = (e) => {
152
+ i ? r.add(e) : r.delete(e);
153
+ };
154
+ if (q && a !== null && a !== t) {
155
+ let e = Math.min(a, t), n = Math.max(a, t);
156
+ for (let t = e; t <= n; t++) {
157
+ let e = g.rows[t];
158
+ e && o(B(e));
159
+ }
160
+ } else o(n), K.value = t;
161
+ q = !1, j("update:selected", [...r]);
162
+ }
163
+ function Je(e) {
164
+ j("update:selected", [B(e)]);
165
+ }
166
+ function Ye() {
167
+ let e = new Set(g.selected);
168
+ G.value ? W.value.forEach((t) => e.delete(t)) : W.value.forEach((t) => e.add(t)), j("update:selected", [...e]);
169
+ }
170
+ function Y() {
171
+ j("update:selected", []);
172
+ }
173
+ let X = l(() => g.selectable !== "none" && !!M["batch-actions"]), Z = l(() => X.value && H.value > 0), Q = l(() => !!g.title || !!g.description || !!M.toolbar || !!M.search || !!M["toolbar-actions"]), Xe = l(() => Q.value || X.value);
174
+ function $(e) {
175
+ return !!g.sortState && g.sortState.key === e.key && g.sortState.direction !== "none";
176
+ }
177
+ function Ze(e) {
178
+ return $(e) ? g.sortState.direction === "asc" ? "ascending" : "descending" : "none";
179
+ }
180
+ function Qe(e) {
181
+ return $(e) ? g.sortState.direction === "asc" ? le : ue : ce;
182
+ }
183
+ function $e(e) {
184
+ return e === "asc" ? "desc" : e === "desc" ? "none" : "asc";
185
+ }
186
+ function et(e) {
187
+ let t = g.sortState && g.sortState.key === e.key ? g.sortState.direction : "none";
188
+ j("sort", {
189
+ key: e.key,
190
+ direction: $e(t)
191
+ });
192
+ }
193
+ let tt = ee(), nt = l(() => !!tt?.vnode.props?.onRowClick);
194
+ function rt(e, t) {
195
+ j("row-click", e, t);
196
+ }
197
+ return (t, r) => (v(), f("div", te({ class: [
198
+ "nb-data-table",
199
+ `nb-data-table--${e.size}`,
200
+ { "nb-data-table--zebra": e.zebra },
201
+ { "nb-data-table--sticky": e.stickyHeader },
202
+ { "nb-data-table--fill": e.fill },
203
+ { "nb-data-table--stacked": L.value },
204
+ { "nb-data-table--stacked-headless": L.value && !He.value }
205
+ ] }, ie(A)), [
206
+ Xe.value ? (v(), f("div", de, [
207
+ p("div", {
208
+ class: "nb-data-table__toolbar-heading",
209
+ inert: Z.value || void 0,
210
+ "aria-hidden": Z.value || void 0
211
+ }, [b(t.$slots, "toolbar", { selectedCount: H.value }, () => [e.title || e.description ? (v(), f("div", pe, [e.title ? (v(), f("h2", me, x(e.title), 1)) : d("", !0), e.description ? (v(), f("p", he, x(e.description), 1)) : d("", !0)])) : d("", !0)], !0)], 8, fe),
212
+ t.$slots.search || t.$slots["toolbar-actions"] ? (v(), f("div", {
213
+ key: 0,
214
+ class: "nb-data-table__toolbar-tools",
215
+ inert: Z.value || void 0,
216
+ "aria-hidden": Z.value || void 0
217
+ }, [b(t.$slots, "search", {}, void 0, !0), b(t.$slots, "toolbar-actions", {}, void 0, !0)], 8, ge)) : d("", !0),
218
+ Z.value ? (v(), f("div", _e, [
219
+ p("span", ve, x(H.value) + " selected ", 1),
220
+ p("div", ye, [b(t.$slots, "batch-actions", {
221
+ selectedKeys: Ge.value,
222
+ clear: Y
223
+ }, void 0, !0)]),
224
+ h(a, {
225
+ class: "nb-data-table__batch-cancel",
226
+ variant: "ghost",
227
+ size: Re.value,
228
+ onClick: Y
229
+ }, {
230
+ default: S(() => [...r[2] ||= [m(" Cancel ", -1)]]),
231
+ _: 1
232
+ }, 8, ["size"])
233
+ ])) : d("", !0)
234
+ ])) : d("", !0),
235
+ p("div", be, [p("table", {
236
+ class: "nb-data-table__table",
237
+ role: L.value ? "table" : void 0,
238
+ "aria-label": e.ariaLabel || e.title || void 0,
239
+ "aria-busy": e.loading || void 0
240
+ }, [
241
+ p("colgroup", null, [
242
+ P.value ? (v(), f("col", Se)) : d("", !0),
243
+ (v(!0), f(c, null, y(N.value, (e) => (v(), f("col", {
244
+ key: `col-${e.key}`,
245
+ style: ne(Ue(e))
246
+ }, null, 4))), 128)),
247
+ F.value ? (v(), f("col", Ce)) : d("", !0)
248
+ ]),
249
+ p("thead", {
250
+ class: "nb-data-table__head",
251
+ role: L.value ? "rowgroup" : void 0
252
+ }, [p("tr", { role: L.value ? "row" : void 0 }, [
253
+ P.value ? (v(), f("th", T, [e.selectable === "multiple" ? (v(), u(s, {
254
+ key: 0,
255
+ "model-value": G.value,
256
+ indeterminate: Ke.value,
257
+ "aria-label": "Select all rows",
258
+ "onUpdate:modelValue": Ye
259
+ }, null, 8, ["model-value", "indeterminate"])) : d("", !0)])) : d("", !0),
260
+ (v(!0), f(c, null, y(N.value, (e) => (v(), f("th", {
261
+ key: `th-${e.key}`,
262
+ scope: "col",
263
+ class: _([
264
+ "nb-data-table__th",
265
+ `nb-data-table__th--${e.align || "left"}`,
266
+ { "nb-data-table__th--sortable": e.sortable },
267
+ { "nb-data-table__th--sorted": $(e) },
268
+ L.value && e.phoneHidden && "nb-data-table__th--phone-hidden"
269
+ ]),
270
+ "aria-sort": e.sortable ? Ze(e) : void 0
271
+ }, [e.sortable ? (v(), f("button", {
272
+ key: 0,
273
+ type: "button",
274
+ class: "nb-data-table__sort",
275
+ onClick: (t) => et(e)
276
+ }, [p("span", O, [b(t.$slots, `header-${e.key}`, { column: e }, () => [m(x(e.header), 1)], !0)]), h(n, {
277
+ name: Qe(e),
278
+ class: "nb-data-table__sort-icon",
279
+ "aria-hidden": "true"
280
+ }, null, 8, ["name"])], 8, D)) : (v(), f("span", k, [b(t.$slots, `header-${e.key}`, { column: e }, () => [m(x(e.header), 1)], !0)]))], 10, E))), 128)),
281
+ F.value ? (v(), f("th", Te, [...r[3] ||= [p("span", { class: "nb-sr-only" }, "Row actions", -1)]])) : d("", !0)
282
+ ], 8, w)], 8, we),
283
+ p("tbody", {
284
+ class: "nb-data-table__body",
285
+ role: L.value ? "rowgroup" : void 0
286
+ }, [e.loading ? (v(!0), f(c, { key: 0 }, y(e.skeletonRows, (e) => (v(), f("tr", {
287
+ key: `skeleton-${e}`,
288
+ class: "nb-data-table__row nb-data-table__row--skeleton"
289
+ }, [
290
+ P.value ? (v(), f("td", De, [...r[4] ||= [p("span", { class: "nb-data-table__skeleton nb-data-table__skeleton--box" }, null, -1)]])) : d("", !0),
291
+ (v(!0), f(c, null, y(N.value, (t) => (v(), f("td", {
292
+ key: `sk-${e}-${t.key}`,
293
+ class: "nb-data-table__td"
294
+ }, [...r[5] ||= [p("span", { class: "nb-data-table__skeleton" }, null, -1)]]))), 128)),
295
+ F.value ? (v(), f("td", Oe, [...r[6] ||= [p("span", { class: "nb-data-table__skeleton nb-data-table__skeleton--box" }, null, -1)]])) : d("", !0)
296
+ ]))), 128)) : e.error ? (v(), f("tr", ke, [p("td", {
297
+ colspan: I.value,
298
+ class: "nb-data-table__state nb-data-table__state--error"
299
+ }, [b(t.$slots, "error", { error: e.error }, () => [h(o, {
300
+ is: "span",
301
+ align: "center",
302
+ justify: "center",
303
+ gap: "xs",
304
+ class: "nb-data-table__state-inner"
305
+ }, {
306
+ default: S(() => [h(n, {
307
+ name: "warning-circle-fill",
308
+ "aria-hidden": "true"
309
+ }), p("span", null, x(e.error), 1)]),
310
+ _: 1
311
+ })], !0)], 8, Ae)])) : e.rows.length ? (v(!0), f(c, { key: 3 }, y(e.rows, (n, i) => (v(), f("tr", {
312
+ key: B(n),
313
+ class: _([
314
+ "nb-data-table__row",
315
+ { "nb-data-table__row--selected": U(n) },
316
+ { "nb-data-table__row--clickable": nt.value }
317
+ ]),
318
+ role: L.value ? "row" : void 0,
319
+ "aria-selected": e.selectable === "none" ? void 0 : U(n),
320
+ onClick: (e) => rt(n, i)
321
+ }, [
322
+ P.value ? (v(), f("td", {
323
+ key: 0,
324
+ class: "nb-data-table__td nb-data-table__select-cell",
325
+ onClick: r[0] ||= C(() => {}, ["stop"]),
326
+ onMousedown: J,
327
+ onKeydown: J
328
+ }, [e.selectable === "multiple" ? (v(), u(s, {
329
+ key: 0,
330
+ "model-value": U(n),
331
+ "aria-label": `Select row ${i + 1}`,
332
+ "onUpdate:modelValue": (e) => qe(n, i)
333
+ }, null, 8, [
334
+ "model-value",
335
+ "aria-label",
336
+ "onUpdate:modelValue"
337
+ ])) : (v(), f("input", {
338
+ key: 1,
339
+ type: "radio",
340
+ class: "nb-data-table__radio",
341
+ name: Le,
342
+ checked: U(n),
343
+ "aria-label": `Select row ${i + 1}`,
344
+ onChange: (e) => Je(n)
345
+ }, null, 40, Pe))], 32)) : d("", !0),
346
+ (v(!0), f(c, null, y(N.value, (r) => (v(), f("td", {
347
+ key: `td-${B(n)}-${r.key}`,
348
+ class: _([
349
+ "nb-data-table__td",
350
+ `nb-data-table__td--${r.align || "left"}`,
351
+ r.cellClass,
352
+ L.value && Ve(r)
353
+ ]),
354
+ role: L.value ? "cell" : void 0,
355
+ "data-label": e.stackOnPhone ? r.header : void 0
356
+ }, [b(t.$slots, `cell-${r.key}`, {
357
+ row: n,
358
+ value: R(r, n),
359
+ column: r,
360
+ rowIndex: i
361
+ }, () => [r.render ? (v(), u(z, {
362
+ key: 0,
363
+ column: r,
364
+ row: n,
365
+ "row-index": i
366
+ }, null, 8, [
367
+ "column",
368
+ "row",
369
+ "row-index"
370
+ ])) : (v(), f(c, { key: 1 }, [m(x(We(R(r, n))), 1)], 64))], !0)], 10, Fe))), 128)),
371
+ F.value ? (v(), f("td", {
372
+ key: 1,
373
+ class: "nb-data-table__td nb-data-table__actions-cell",
374
+ onClick: r[1] ||= C(() => {}, ["stop"])
375
+ }, [b(t.$slots, "row-actions", {
376
+ row: n,
377
+ rowIndex: i
378
+ }, void 0, !0)])) : d("", !0)
379
+ ], 10, Ne))), 128)) : (v(), f("tr", je, [p("td", {
380
+ colspan: I.value,
381
+ class: "nb-data-table__state nb-data-table__state--empty"
382
+ }, [b(t.$slots, "empty", {}, () => [p("span", null, x(e.emptyMessage || "No data to display"), 1)], !0)], 8, Me)]))], 8, Ee)
383
+ ], 8, xe)]),
384
+ t.$slots.footer ? (v(), f("div", Ie, [b(t.$slots, "footer", {}, void 0, !0)])) : d("", !0)
385
+ ], 16));
386
+ }
387
+ }), [["__scopeId", "data-v-a4bea523"]]);
388
+ //#endregion
389
+ export { A as t };