@nubisco/ui 5.18.1 → 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
@@ -0,0 +1,553 @@
1
+ import { useStableId as e } from "./composables/useStableId.composable.mjs";
2
+ import { useSurfaceLayer as t } from "./composables/useSurfaceLayer.composable.mjs";
3
+ import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
4
+ import { t as r } from "./Button-IcCXOoCT.js";
5
+ import { Fragment as i, Teleport as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, mergeProps as ee, nextTick as p, normalizeClass as m, normalizeStyle as h, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useSlots as te, withCtx as ne, withModifiers as S } from "vue";
6
+ import * as re from "@nubisco/ui/icons/x";
7
+ //#region src/components/Board.vue?vue&type=script&setup=true&lang.ts
8
+ var ie = [
9
+ "draggable",
10
+ "onDragstart",
11
+ "onDragover"
12
+ ], ae = { class: "nb-board__col-title" }, oe = { class: "nb-board__col-count" }, se = ["onClick"], ce = ["aria-label"], le = { class: "nb-board__lane-label" }, ue = { class: "nb-board__lane-count" }, de = ["onDragover", "onDrop"], fe = ["aria-label"], pe = [
13
+ "data-item-id",
14
+ "aria-selected",
15
+ "aria-label",
16
+ "aria-describedby",
17
+ "onDragstart",
18
+ "onDragover",
19
+ "onKeydown",
20
+ "onClickCapture",
21
+ "onBlur"
22
+ ], me = {
23
+ key: 0,
24
+ class: "nb-board__empty-cell",
25
+ "aria-hidden": "true"
26
+ }, he = {
27
+ key: 0,
28
+ class: "nb-board__cell-footer"
29
+ }, ge = {
30
+ key: 0,
31
+ class: "nb-board__batch",
32
+ role: "region",
33
+ "aria-label": "Actions for the selected cards"
34
+ }, _e = { class: "nb-board__batch-count" }, ve = { class: "nb-board__batch-actions" }, ye = ["id"], be = {
35
+ class: "nb-board__sr",
36
+ "aria-live": "assertive"
37
+ }, xe = .5, Se = 44, C = /* @__PURE__ */ f({
38
+ __name: "Board",
39
+ props: {
40
+ columns: {},
41
+ items: {},
42
+ lanes: { default: void 0 },
43
+ reorderableColumns: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ nestable: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ selectable: {
52
+ type: Boolean,
53
+ default: !1
54
+ },
55
+ selected: { default: void 0 },
56
+ selectMode: {
57
+ type: Boolean,
58
+ default: !1
59
+ }
60
+ },
61
+ emits: [
62
+ "move",
63
+ "nest",
64
+ "column-move",
65
+ "move-many",
66
+ "update:selected",
67
+ "update:selectMode"
68
+ ],
69
+ setup(f, { emit: C }) {
70
+ let w = f, { phone: T } = n(), Ce = te(), { layerProps: we } = t(), E = C, D = o(() => w.selectable ? w.selected ?? [] : []), Te = o(() => new Set(D.value)), O = null;
71
+ function k(e) {
72
+ return Te.value.has(e);
73
+ }
74
+ function A(e) {
75
+ E("update:selected", e), W.value = e.length === 0 ? "Selection cleared" : `${e.length} ${e.length === 1 ? "card" : "cards"} selected`;
76
+ }
77
+ function j() {
78
+ O = null, A([]), N.value && E("update:selectMode", !1);
79
+ }
80
+ let M = o(() => w.selectable && D.value.length > 0 && !!Ce["batch-actions"]), N = o(() => w.selectable && w.selectMode);
81
+ function P(e) {
82
+ O = e, A(k(e) ? D.value.filter((t) => t !== e) : [...D.value, e]);
83
+ }
84
+ function Ee(e, t, n) {
85
+ let r = R(t, n), i = O ? r.findIndex((e) => e.id === O) : -1, a = r.findIndex((t) => t.id === e.id);
86
+ if (i === -1 || a === -1) return P(e.id);
87
+ let o = r.slice(Math.min(i, a), Math.max(i, a) + 1).map((e) => e.id);
88
+ A([...new Set([...D.value, ...o])]);
89
+ }
90
+ function De(e, t, n, r) {
91
+ w.selectable && (!N.value && !(e.metaKey || e.ctrlKey || e.shiftKey) || (e.preventDefault(), e.stopPropagation(), e.shiftKey ? Ee(t, I(n), r) : P(t.id)));
92
+ }
93
+ function Oe() {
94
+ let e = [];
95
+ for (let t of w.columns) for (let n of F.value) for (let r of R(I(n), t.id)) k(r.id) && !e.includes(r.id) && e.push(r.id);
96
+ return e;
97
+ }
98
+ function ke(e, t, n, r, i) {
99
+ let a = new Set(e), o = R(n, r).filter((e) => e.id !== t), s = null;
100
+ for (let e = Math.min(i, o.length) - 1; e >= 0; e--) if (!a.has(o[e].id)) {
101
+ s = o[e].id;
102
+ break;
103
+ }
104
+ let c = null;
105
+ for (let e = Math.max(i, 0); e < o.length; e++) if (!a.has(o[e].id)) {
106
+ c = o[e].id;
107
+ break;
108
+ }
109
+ E("move-many", {
110
+ itemIds: e,
111
+ toColumnId: r,
112
+ ...w.lanes ? { toLaneId: n } : {},
113
+ beforeItemId: s,
114
+ afterItemId: c
115
+ });
116
+ let l = z(r);
117
+ W.value = `${e.length} cards moved to ${l?.label ?? r}`;
118
+ }
119
+ let Ae = e({}), je = _(null), Me = o(() => ({
120
+ gridTemplateColumns: `repeat(${w.columns.length}, var(--nb-board-column-track, minmax(200px, 1fr)))`,
121
+ ...T.value ? { "--nb-board-cols": String(w.columns.length) } : {}
122
+ })), F = o(() => w.lanes && w.lanes.length > 0 ? w.lanes : [null]);
123
+ function I(e) {
124
+ return e ? e.id ?? null : null;
125
+ }
126
+ function Ne(e) {
127
+ return e ? L(e.id) : "__flat__";
128
+ }
129
+ function Pe(e) {
130
+ return w.items.filter((t) => t.columnId === e).length;
131
+ }
132
+ function L(e) {
133
+ return e ?? "__none__";
134
+ }
135
+ function Fe(e) {
136
+ return w.lanes ? w.items.filter((t) => (t.laneId ?? null) === e).length : 0;
137
+ }
138
+ function R(e, t) {
139
+ return !w.lanes || w.lanes.length === 0 ? w.items.filter((e) => e.columnId === t) : w.items.filter((n) => n.columnId === t && (n.laneId ?? null) === e);
140
+ }
141
+ function z(e) {
142
+ return w.columns.find((t) => t.id === e);
143
+ }
144
+ let B = _(/* @__PURE__ */ new Set());
145
+ function Ie(e) {
146
+ let t = L(e), n = new Set(B.value);
147
+ n.has(t) ? n.delete(t) : n.add(t), B.value = n;
148
+ }
149
+ function V(e) {
150
+ return B.value.has(L(e));
151
+ }
152
+ function H(e) {
153
+ let t = e.label ?? e.name ?? e.title;
154
+ return typeof t == "string" ? t : `Item ${e.id}`;
155
+ }
156
+ function U(e, t) {
157
+ return e ? `${t.label}, ${e.label}` : t.label;
158
+ }
159
+ function Le(e, t) {
160
+ return U(e, t);
161
+ }
162
+ function Re(e, t, n) {
163
+ let r = R(I(t), n.id), i = r.findIndex((t) => t.id === e.id), a = `${H(e)}, ${i + 1} of ${r.length} in ${U(t, n)}`;
164
+ return Y.value?.item.id === e.id ? `${a}, picked up` : a;
165
+ }
166
+ let W = _("");
167
+ function ze(e, t, n, r) {
168
+ let i = R(t, n).filter((t) => t.id !== e.item.id), a = Math.max(0, Math.min(r, i.length));
169
+ return e.fromColumnId === n && e.fromLaneId === t && a === R(t, n).findIndex((t) => t.id === e.item.id) ? !1 : (E("move", {
170
+ itemId: e.item.id,
171
+ fromColumnId: e.fromColumnId,
172
+ toColumnId: n,
173
+ fromLaneId: e.fromLaneId,
174
+ toLaneId: t,
175
+ toIndex: a,
176
+ beforeItemId: i[a - 1]?.id ?? null,
177
+ afterItemId: i[a]?.id ?? null
178
+ }), !0);
179
+ }
180
+ let G = _(null), K = _(null), q = _(null);
181
+ function Be(e, t, n) {
182
+ Y.value = null;
183
+ let r = k(e.id) && D.value.length > 1 ? Oe() : void 0;
184
+ G.value = {
185
+ item: e,
186
+ fromLaneId: I(t),
187
+ fromColumnId: n,
188
+ group: r
189
+ }, r && (W.value = `Moving ${r.length} cards`);
190
+ }
191
+ function Ve(e, t, n, r, i) {
192
+ if (!G.value) return;
193
+ let a = e.currentTarget.getBoundingClientRect();
194
+ if (w.nestable && !G.value.group && a.height >= Se) {
195
+ let r = (e.clientY - a.top) / a.height, o = (1 - xe) / 2;
196
+ if (r > o && r < 1 - o && i.id !== G.value.item.id) {
197
+ q.value = {
198
+ laneId: I(t),
199
+ colId: n,
200
+ itemId: i.id
201
+ }, K.value = null;
202
+ return;
203
+ }
204
+ }
205
+ q.value = null;
206
+ let o = e.clientY >= a.top + a.height / 2;
207
+ K.value = {
208
+ laneId: I(t),
209
+ colId: n,
210
+ index: r + (o ? 1 : 0)
211
+ };
212
+ }
213
+ function He(e, t) {
214
+ if (!G.value) return;
215
+ let n = I(e);
216
+ K.value = {
217
+ laneId: n,
218
+ colId: t,
219
+ index: R(n, t).length
220
+ };
221
+ }
222
+ function Ue() {
223
+ K.value = null, q.value = null;
224
+ }
225
+ function We() {
226
+ G.value = null, K.value = null, q.value = null;
227
+ }
228
+ function Ge(e, t) {
229
+ return J(e, t) !== null;
230
+ }
231
+ function J(e, t) {
232
+ let n = I(e), r = K.value;
233
+ if (G.value && r && r.laneId === n && r.colId === t) return r.index;
234
+ let i = Y.value;
235
+ if (i && i.laneId === n && i.colId === t) {
236
+ let e = R(n, t).findIndex((e) => e.id === i.item.id);
237
+ return e !== -1 && e <= i.index ? i.index + 1 : i.index;
238
+ }
239
+ return null;
240
+ }
241
+ function Ke(e, t, n) {
242
+ let r = q.value;
243
+ return r !== null && r.laneId === I(e) && r.colId === t && r.itemId === n.id;
244
+ }
245
+ function qe(e, t, n) {
246
+ return n === R(I(e), t).length - 1 && J(e, t) === n + 1;
247
+ }
248
+ function Je(e, t) {
249
+ if (Z.value !== null) return;
250
+ let n = K.value, r = q.value;
251
+ K.value = null, q.value = null;
252
+ let i = G.value;
253
+ if (G.value = null, !i) return;
254
+ if (r) {
255
+ E("nest", {
256
+ itemId: i.item.id,
257
+ ontoItemId: r.itemId,
258
+ fromColumnId: i.fromColumnId,
259
+ ...w.lanes ? { fromLaneId: i.fromLaneId } : {}
260
+ }), W.value = `${H(i.item)} dropped onto ${H(w.items.find((e) => e.id === r.itemId) ?? i.item)}`;
261
+ return;
262
+ }
263
+ let a = I(e), o = R(a, t), s = n && n.laneId === a && n.colId === t ? n.index : o.length, c = o.findIndex((e) => e.id === i.item.id), l = c !== -1 && c < s ? s - 1 : s;
264
+ if (i.group) {
265
+ ke(i.group, i.item.id, a, t, l);
266
+ return;
267
+ }
268
+ ze(i, a, t, l);
269
+ }
270
+ let Y = _(null);
271
+ function Ye(e, t, n, r) {
272
+ let i = I(n);
273
+ if (w.selectable && (e.key === "x" || e.key === "X") && !Y.value) {
274
+ e.preventDefault(), P(t.id);
275
+ return;
276
+ }
277
+ if (e.key === "Escape") {
278
+ if (!Y.value) {
279
+ w.selectable && D.value.length > 0 && (e.preventDefault(), j());
280
+ return;
281
+ }
282
+ e.preventDefault(), Y.value = null, W.value = "Move cancelled";
283
+ return;
284
+ }
285
+ if (e.key === " " || e.key === "Enter") {
286
+ if (e.preventDefault(), Y.value?.item.id !== t.id) {
287
+ Xe(t, i, r);
288
+ return;
289
+ }
290
+ if (w.nestable && e.shiftKey && et()) {
291
+ tt();
292
+ return;
293
+ }
294
+ nt();
295
+ return;
296
+ }
297
+ [
298
+ "ArrowUp",
299
+ "ArrowDown",
300
+ "ArrowLeft",
301
+ "ArrowRight"
302
+ ].includes(e.key) && (e.preventDefault(), Y.value?.item.id === t.id ? $e(e.key) : rt(e.key, t, i, r));
303
+ }
304
+ function Xe(e, t, n) {
305
+ Y.value = {
306
+ item: e,
307
+ fromLaneId: t,
308
+ fromColumnId: n,
309
+ laneId: t,
310
+ colId: n,
311
+ index: R(t, n).findIndex((t) => t.id === e.id)
312
+ }, W.value = `${H(e)} picked up, ${Ze()}`;
313
+ }
314
+ function Ze() {
315
+ let e = Y.value;
316
+ if (!e) return "";
317
+ let t = R(e.laneId, e.colId).filter((t) => t.id !== e.item.id), n = z(e.colId), r = w.lanes?.find((t) => (t.id ?? null) === e.laneId) ?? null, i = n ? U(r, n) : e.colId;
318
+ return `position ${e.index + 1} of ${t.length + 1} in ${i}`;
319
+ }
320
+ function Qe() {
321
+ return !w.lanes || w.lanes.length === 0 ? [null] : w.lanes.filter((e) => !V(e.id)).map((e) => e.id ?? null);
322
+ }
323
+ function $e(e) {
324
+ let t = Y.value;
325
+ if (!t) return;
326
+ let n = R(t.laneId, t.colId).filter((e) => e.id !== t.item.id);
327
+ if (e === "ArrowUp" || e === "ArrowDown") {
328
+ let r = e === "ArrowUp" ? -1 : 1, i = t.index + r;
329
+ if (i >= 0 && i <= n.length) t.index = i;
330
+ else {
331
+ let e = Qe(), n = e.indexOf(t.laneId), i = n + r;
332
+ if (n === -1 || i < 0 || i >= e.length) return;
333
+ let a = e[i];
334
+ t.laneId = a, t.index = r === 1 ? 0 : R(a, t.colId).filter((e) => e.id !== t.item.id).length;
335
+ }
336
+ } else {
337
+ let n = e === "ArrowLeft" ? -1 : 1, r = w.columns.findIndex((e) => e.id === t.colId), i = w.columns[r + n];
338
+ if (r === -1 || !i) return;
339
+ t.colId = i.id;
340
+ let a = R(t.laneId, t.colId).filter((e) => e.id !== t.item.id);
341
+ t.index = Math.min(t.index, a.length);
342
+ }
343
+ W.value = `${H(t.item)}, ${Ze()}`;
344
+ }
345
+ function et() {
346
+ let e = Y.value;
347
+ if (!e) return null;
348
+ let t = R(e.laneId, e.colId).filter((t) => t.id !== e.item.id);
349
+ return t.length === 0 ? null : t[Math.min(e.index, t.length - 1)] ?? null;
350
+ }
351
+ function tt() {
352
+ let e = Y.value, t = et();
353
+ !e || !t || (Y.value = null, E("nest", {
354
+ itemId: e.item.id,
355
+ ontoItemId: t.id,
356
+ fromColumnId: e.fromColumnId,
357
+ ...w.lanes ? { fromLaneId: e.fromLaneId } : {}
358
+ }), W.value = `${H(e.item)} dropped onto ${H(t)}`);
359
+ }
360
+ function nt() {
361
+ let e = Y.value;
362
+ if (!e) return;
363
+ if (Y.value = null, k(e.item.id) && D.value.length > 1) {
364
+ ke(Oe(), e.item.id, e.laneId, e.colId, e.index), it(e.item.id);
365
+ return;
366
+ }
367
+ let t = ze({
368
+ item: e.item,
369
+ fromLaneId: e.fromLaneId,
370
+ fromColumnId: e.fromColumnId
371
+ }, e.laneId, e.colId, e.index), n = z(e.colId), r = w.lanes?.find((t) => (t.id ?? null) === e.laneId) ?? null, i = n ? U(r, n) : e.colId;
372
+ W.value = t ? `${H(e.item)} dropped, position ${e.index + 1} in ${i}` : `${H(e.item)} dropped`, it(e.item.id);
373
+ }
374
+ function rt(e, t, n, r) {
375
+ let i = R(n, r), a = i.findIndex((e) => e.id === t.id);
376
+ if (e === "ArrowUp" || e === "ArrowDown") {
377
+ let t = a + (e === "ArrowDown" ? 1 : -1);
378
+ t >= 0 && t < i.length && X(i[t].id);
379
+ } else {
380
+ let t = w.columns.findIndex((e) => e.id === r), i = w.columns[t + (e === "ArrowRight" ? 1 : -1)];
381
+ if (t === -1 || !i) return;
382
+ let o = R(n, i.id);
383
+ if (o.length === 0) return;
384
+ X(o[Math.min(a, o.length - 1)].id);
385
+ }
386
+ }
387
+ function X(e) {
388
+ let t = je.value?.querySelectorAll("[data-item-id]");
389
+ if (t) {
390
+ for (let n of t) if (n.dataset.itemId === e) {
391
+ n.focus();
392
+ return;
393
+ }
394
+ }
395
+ }
396
+ async function it(e) {
397
+ await p(), await p(), X(e);
398
+ }
399
+ function at(e) {
400
+ Y.value?.item.id === e.id && (Y.value = null);
401
+ }
402
+ let Z = _(null), Q = _(null);
403
+ function ot(e, t) {
404
+ if (!w.reorderableColumns) {
405
+ t.preventDefault();
406
+ return;
407
+ }
408
+ Z.value = e, Q.value = e;
409
+ }
410
+ function st(e, t) {
411
+ if (Z.value === null) return;
412
+ t.preventDefault();
413
+ let n = t.currentTarget.getBoundingClientRect();
414
+ Q.value = t.clientX < n.left + n.width / 2 ? e : e + 1;
415
+ }
416
+ function ct(e) {
417
+ let t = Z.value, n = Q.value;
418
+ if ($(), t === null || n === null) return;
419
+ e.preventDefault();
420
+ let r = n > t ? n - 1 : n;
421
+ r !== t && E("column-move", {
422
+ columnId: w.columns[t].id,
423
+ toIndex: r
424
+ });
425
+ }
426
+ function $() {
427
+ Z.value = null, Q.value = null;
428
+ }
429
+ return (e, t) => (g(), l("div", ee({
430
+ ref_key: "boardRef",
431
+ ref: je,
432
+ class: ["nb-board", {
433
+ "nb-board--flat": x(T) && F.value[0] === null,
434
+ "nb-board--batching": x(T) && M.value,
435
+ "nb-board--select-mode": N.value
436
+ }]
437
+ }, x(we)), [
438
+ u("div", {
439
+ class: "nb-board__grid",
440
+ style: h(Me.value)
441
+ }, [(g(!0), l(i, null, v(f.columns, (t, n) => (g(), l("div", {
442
+ key: t.id,
443
+ class: m(["nb-board__col-header", {
444
+ "nb-board__col-header--reorderable": f.reorderableColumns,
445
+ "nb-board__col-header--dragging": Z.value === n,
446
+ "nb-board__col-header--drop-before": Q.value === n,
447
+ "nb-board__col-header--drop-after": Q.value === n + 1 && n === f.columns.length - 1
448
+ }]),
449
+ style: h(t.color ? { borderTopColor: t.color } : void 0),
450
+ draggable: f.reorderableColumns || void 0,
451
+ onDragstart: (e) => ot(n, e),
452
+ onDragover: (e) => st(n, e),
453
+ onDrop: ct,
454
+ onDragend: $
455
+ }, [y(e.$slots, "column-header", {
456
+ column: t,
457
+ count: Pe(t.id)
458
+ }, () => [u("span", ae, b(t.label), 1), u("span", oe, b(Pe(t.id)), 1)])], 46, ie))), 128)), (g(!0), l(i, null, v(F.value, (t) => (g(), l(i, { key: Ne(t) }, [t ? (g(), l("div", {
459
+ key: 0,
460
+ class: "nb-board__lane-header",
461
+ onClick: (e) => Ie(t.id)
462
+ }, [
463
+ u("button", {
464
+ class: "nb-board__collapse-btn",
465
+ "aria-label": V(t.id) ? "Expand" : "Collapse"
466
+ }, b(V(t.id) ? "▶" : "▼"), 9, ce),
467
+ y(e.$slots, "lane-header", { lane: t }, () => [u("span", le, b(t.label), 1)]),
468
+ u("span", ue, b(Fe(t.id)), 1)
469
+ ], 8, se)) : c("", !0), !t || !V(t.id) ? (g(!0), l(i, { key: 1 }, v(f.columns, (n) => (g(), l("div", {
470
+ key: Ne(t) + "-" + n.id,
471
+ class: m(["nb-board__cell", { "nb-board__cell--drag-over": Ge(t, n.id) }]),
472
+ onDragover: S((e) => He(t, n.id), ["prevent"]),
473
+ onDragleave: Ue,
474
+ onDrop: S((e) => Je(t, n.id), ["prevent"])
475
+ }, [u("div", {
476
+ class: "nb-board__cell-items",
477
+ role: "list",
478
+ "aria-label": Le(t, n)
479
+ }, [(g(!0), l(i, null, v(R(I(t), n.id), (r, i) => (g(), l("div", {
480
+ key: r.id,
481
+ class: m(["nb-board__card", {
482
+ "nb-board__card--lifted": Y.value?.item.id === r.id,
483
+ "nb-board__card--selected": k(r.id),
484
+ "nb-board__card--carried": !!G.value?.group && k(r.id),
485
+ "nb-board__card--drop-before": J(t, n.id) === i,
486
+ "nb-board__card--drop-after": qe(t, n.id, i),
487
+ "nb-board__card--drop-into": Ke(t, n.id, r)
488
+ }]),
489
+ role: "listitem",
490
+ tabindex: "0",
491
+ "data-item-id": r.id,
492
+ "aria-selected": f.selectable ? k(r.id) : void 0,
493
+ "aria-label": Re(r, t, n),
494
+ "aria-describedby": `${x(Ae)}-hint`,
495
+ draggable: "true",
496
+ onDragstart: (e) => Be(r, t, n.id),
497
+ onDragover: S((e) => Ve(e, t, n.id, i, r), ["prevent", "stop"]),
498
+ onDragend: We,
499
+ onKeydown: (e) => Ye(e, r, t, n.id),
500
+ onClickCapture: (e) => De(e, r, t, n.id),
501
+ onBlur: (e) => at(r)
502
+ }, [y(e.$slots, "card", {
503
+ item: r,
504
+ column: n,
505
+ lane: t ?? void 0
506
+ })], 42, pe))), 128)), R(I(t), n.id).length === 0 ? (g(), l("div", me)) : c("", !0)], 8, fe), e.$slots["column-footer"] ? (g(), l("div", he, [y(e.$slots, "column-footer", {
507
+ column: n,
508
+ lane: t ?? void 0
509
+ })])) : c("", !0)], 42, de))), 128)) : c("", !0)], 64))), 128))], 4),
510
+ (g(), s(a, {
511
+ to: "body",
512
+ disabled: !x(T)
513
+ }, [M.value ? (g(), l("div", ge, [
514
+ u("span", _e, b(D.value.length) + " selected ", 1),
515
+ u("div", ve, [y(e.$slots, "batch-actions", {
516
+ selected: D.value,
517
+ clear: j,
518
+ phone: x(T)
519
+ })]),
520
+ x(T) ? (g(), s(r, {
521
+ key: 0,
522
+ class: "nb-board__batch-cancel",
523
+ variant: "ghost",
524
+ size: "sm",
525
+ icon: re,
526
+ "aria-label": "Clear selection",
527
+ onClick: j
528
+ })) : (g(), s(r, {
529
+ key: 1,
530
+ class: "nb-board__batch-cancel",
531
+ variant: "ghost",
532
+ size: "sm",
533
+ onClick: j
534
+ }, {
535
+ default: ne(() => [...t[0] ||= [d(" Clear selection ", -1)]]),
536
+ _: 1
537
+ }))
538
+ ])) : c("", !0)], 8, ["disabled"])),
539
+ u("span", {
540
+ id: `${x(Ae)}-hint`,
541
+ class: "nb-board__sr"
542
+ }, [
543
+ t[1] ||= d(" Press Space or Enter to pick up, arrow keys to move, Space or Enter to drop, Escape to cancel.", -1),
544
+ f.nestable ? (g(), l(i, { key: 0 }, [d(" Shift with Space or Enter drops onto the card below instead, putting this one inside it.")], 64)) : c("", !0),
545
+ f.selectable ? (g(), l(i, { key: 1 }, [d(" X selects the card, or removes it from the selection. Picking up a selected card moves every selected card. Escape clears the selection.")], 64)) : c("", !0),
546
+ N.value ? (g(), l(i, { key: 2 }, [d(" Selecting: activating a card selects it, or removes it from the selection.")], 64)) : c("", !0)
547
+ ], 8, ye),
548
+ u("span", be, b(W.value), 1)
549
+ ], 16));
550
+ }
551
+ });
552
+ //#endregion
553
+ export { C as t };
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./composables/useSurfaceLayer.composable.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./Button-C0UUTgEB.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/x`);o=e.n(o);var s=[`draggable`,`onDragstart`,`onDragover`],c={class:`nb-board__col-title`},l={class:`nb-board__col-count`},ee=[`onClick`],te=[`aria-label`],ne={class:`nb-board__lane-label`},re={class:`nb-board__lane-count`},ie=[`onDragover`,`onDrop`],ae=[`aria-label`],oe=[`data-item-id`,`aria-selected`,`aria-label`,`aria-describedby`,`onDragstart`,`onDragover`,`onKeydown`,`onClickCapture`,`onBlur`],se={key:0,class:`nb-board__empty-cell`,"aria-hidden":`true`},ce={key:0,class:`nb-board__cell-footer`},u={key:0,class:`nb-board__batch`,role:`region`,"aria-label":`Actions for the selected cards`},le={class:`nb-board__batch-count`},ue={class:`nb-board__batch-actions`},de=[`id`],fe={class:`nb-board__sr`,"aria-live":`assertive`},pe=.5,me=44,d=(0,a.defineComponent)({__name:`Board`,props:{columns:{},items:{},lanes:{default:void 0},reorderableColumns:{type:Boolean,default:!1},nestable:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},selected:{default:void 0},selectMode:{type:Boolean,default:!1}},emits:[`move`,`nest`,`column-move`,`move-many`,`update:selected`,`update:selectMode`],setup(e,{emit:d}){let f=e,{phone:p}=r.usePhoneLayout(),he=(0,a.useSlots)(),{layerProps:ge}=n.useSurfaceLayer(),m=d,h=(0,a.computed)(()=>f.selectable?f.selected??[]:[]),_e=(0,a.computed)(()=>new Set(h.value)),g=null;function _(e){return _e.value.has(e)}function v(e){m(`update:selected`,e),z.value=e.length===0?`Selection cleared`:`${e.length} ${e.length===1?`card`:`cards`} selected`}function y(){g=null,v([]),x.value&&m(`update:selectMode`,!1)}let b=(0,a.computed)(()=>f.selectable&&h.value.length>0&&!!he[`batch-actions`]),x=(0,a.computed)(()=>f.selectable&&f.selectMode);function S(e){g=e,v(_(e)?h.value.filter(t=>t!==e):[...h.value,e])}function ve(e,t,n){let r=N(t,n),i=g?r.findIndex(e=>e.id===g):-1,a=r.findIndex(t=>t.id===e.id);if(i===-1||a===-1)return S(e.id);let o=r.slice(Math.min(i,a),Math.max(i,a)+1).map(e=>e.id);v([...new Set([...h.value,...o])])}function ye(e,t,n,r){f.selectable&&(!x.value&&!(e.metaKey||e.ctrlKey||e.shiftKey)||(e.preventDefault(),e.stopPropagation(),e.shiftKey?ve(t,O(n),r):S(t.id)))}function C(){let e=[];for(let t of f.columns)for(let n of D.value)for(let r of N(O(n),t.id))_(r.id)&&!e.includes(r.id)&&e.push(r.id);return e}function w(e,t,n,r,i){let a=new Set(e),o=N(n,r).filter(e=>e.id!==t),s=null;for(let e=Math.min(i,o.length)-1;e>=0;e--)if(!a.has(o[e].id)){s=o[e].id;break}let c=null;for(let e=Math.max(i,0);e<o.length;e++)if(!a.has(o[e].id)){c=o[e].id;break}m(`move-many`,{itemIds:e,toColumnId:r,...f.lanes?{toLaneId:n}:{},beforeItemId:s,afterItemId:c});let l=P(r);z.value=`${e.length} cards moved to ${l?.label??r}`}let T=t.useStableId({}),E=(0,a.ref)(null),be=(0,a.computed)(()=>({gridTemplateColumns:`repeat(${f.columns.length}, var(--nb-board-column-track, minmax(200px, 1fr)))`,...p.value?{"--nb-board-cols":String(f.columns.length)}:{}})),D=(0,a.computed)(()=>f.lanes&&f.lanes.length>0?f.lanes:[null]);function O(e){return e?e.id??null:null}function k(e){return e?j(e.id):`__flat__`}function A(e){return f.items.filter(t=>t.columnId===e).length}function j(e){return e??`__none__`}function M(e){return f.lanes?f.items.filter(t=>(t.laneId??null)===e).length:0}function N(e,t){return!f.lanes||f.lanes.length===0?f.items.filter(e=>e.columnId===t):f.items.filter(n=>n.columnId===t&&(n.laneId??null)===e)}function P(e){return f.columns.find(t=>t.id===e)}let F=(0,a.ref)(new Set);function xe(e){let t=j(e),n=new Set(F.value);n.has(t)?n.delete(t):n.add(t),F.value=n}function I(e){return F.value.has(j(e))}function L(e){let t=e.label??e.name??e.title;return typeof t==`string`?t:`Item ${e.id}`}function R(e,t){return e?`${t.label}, ${e.label}`:t.label}function Se(e,t){return R(e,t)}function Ce(e,t,n){let r=N(O(t),n.id),i=r.findIndex(t=>t.id===e.id),a=`${L(e)}, ${i+1} of ${r.length} in ${R(t,n)}`;return K.value?.item.id===e.id?`${a}, picked up`:a}let z=(0,a.ref)(``);function B(e,t,n,r){let i=N(t,n).filter(t=>t.id!==e.item.id),a=Math.max(0,Math.min(r,i.length));return e.fromColumnId===n&&e.fromLaneId===t&&a===N(t,n).findIndex(t=>t.id===e.item.id)?!1:(m(`move`,{itemId:e.item.id,fromColumnId:e.fromColumnId,toColumnId:n,fromLaneId:e.fromLaneId,toLaneId:t,toIndex:a,beforeItemId:i[a-1]?.id??null,afterItemId:i[a]?.id??null}),!0)}let V=(0,a.ref)(null),H=(0,a.ref)(null),U=(0,a.ref)(null);function we(e,t,n){K.value=null;let r=_(e.id)&&h.value.length>1?C():void 0;V.value={item:e,fromLaneId:O(t),fromColumnId:n,group:r},r&&(z.value=`Moving ${r.length} cards`)}function Te(e,t,n,r,i){if(!V.value)return;let a=e.currentTarget.getBoundingClientRect();if(f.nestable&&!V.value.group&&a.height>=me){let r=(e.clientY-a.top)/a.height,o=(1-pe)/2;if(r>o&&r<1-o&&i.id!==V.value.item.id){U.value={laneId:O(t),colId:n,itemId:i.id},H.value=null;return}}U.value=null;let o=e.clientY>=a.top+a.height/2;H.value={laneId:O(t),colId:n,index:r+(o?1:0)}}function W(e,t){if(!V.value)return;let n=O(e);H.value={laneId:n,colId:t,index:N(n,t).length}}function Ee(){H.value=null,U.value=null}function De(){V.value=null,H.value=null,U.value=null}function Oe(e,t){return G(e,t)!==null}function G(e,t){let n=O(e),r=H.value;if(V.value&&r&&r.laneId===n&&r.colId===t)return r.index;let i=K.value;if(i&&i.laneId===n&&i.colId===t){let e=N(n,t).findIndex(e=>e.id===i.item.id);return e!==-1&&e<=i.index?i.index+1:i.index}return null}function ke(e,t,n){let r=U.value;return r!==null&&r.laneId===O(e)&&r.colId===t&&r.itemId===n.id}function Ae(e,t,n){return n===N(O(e),t).length-1&&G(e,t)===n+1}function je(e,t){if(Z.value!==null)return;let n=H.value,r=U.value;H.value=null,U.value=null;let i=V.value;if(V.value=null,!i)return;if(r){m(`nest`,{itemId:i.item.id,ontoItemId:r.itemId,fromColumnId:i.fromColumnId,...f.lanes?{fromLaneId:i.fromLaneId}:{}}),z.value=`${L(i.item)} dropped onto ${L(f.items.find(e=>e.id===r.itemId)??i.item)}`;return}let a=O(e),o=N(a,t),s=n&&n.laneId===a&&n.colId===t?n.index:o.length,c=o.findIndex(e=>e.id===i.item.id),l=c!==-1&&c<s?s-1:s;if(i.group){w(i.group,i.item.id,a,t,l);return}B(i,a,t,l)}let K=(0,a.ref)(null);function Me(e,t,n,r){let i=O(n);if(f.selectable&&(e.key===`x`||e.key===`X`)&&!K.value){e.preventDefault(),S(t.id);return}if(e.key===`Escape`){if(!K.value){f.selectable&&h.value.length>0&&(e.preventDefault(),y());return}e.preventDefault(),K.value=null,z.value=`Move cancelled`;return}if(e.key===` `||e.key===`Enter`){if(e.preventDefault(),K.value?.item.id!==t.id){Ne(t,i,r);return}if(f.nestable&&e.shiftKey&&J()){Ie();return}Le();return}[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(e.key)&&(e.preventDefault(),K.value?.item.id===t.id?Fe(e.key):Re(e.key,t,i,r))}function Ne(e,t,n){K.value={item:e,fromLaneId:t,fromColumnId:n,laneId:t,colId:n,index:N(t,n).findIndex(t=>t.id===e.id)},z.value=`${L(e)} picked up, ${q()}`}function q(){let e=K.value;if(!e)return``;let t=N(e.laneId,e.colId).filter(t=>t.id!==e.item.id),n=P(e.colId),r=f.lanes?.find(t=>(t.id??null)===e.laneId)??null,i=n?R(r,n):e.colId;return`position ${e.index+1} of ${t.length+1} in ${i}`}function Pe(){return!f.lanes||f.lanes.length===0?[null]:f.lanes.filter(e=>!I(e.id)).map(e=>e.id??null)}function Fe(e){let t=K.value;if(!t)return;let n=N(t.laneId,t.colId).filter(e=>e.id!==t.item.id);if(e===`ArrowUp`||e===`ArrowDown`){let r=e===`ArrowUp`?-1:1,i=t.index+r;if(i>=0&&i<=n.length)t.index=i;else{let e=Pe(),n=e.indexOf(t.laneId),i=n+r;if(n===-1||i<0||i>=e.length)return;let a=e[i];t.laneId=a,t.index=r===1?0:N(a,t.colId).filter(e=>e.id!==t.item.id).length}}else{let n=e===`ArrowLeft`?-1:1,r=f.columns.findIndex(e=>e.id===t.colId),i=f.columns[r+n];if(r===-1||!i)return;t.colId=i.id;let a=N(t.laneId,t.colId).filter(e=>e.id!==t.item.id);t.index=Math.min(t.index,a.length)}z.value=`${L(t.item)}, ${q()}`}function J(){let e=K.value;if(!e)return null;let t=N(e.laneId,e.colId).filter(t=>t.id!==e.item.id);return t.length===0?null:t[Math.min(e.index,t.length-1)]??null}function Ie(){let e=K.value,t=J();!e||!t||(K.value=null,m(`nest`,{itemId:e.item.id,ontoItemId:t.id,fromColumnId:e.fromColumnId,...f.lanes?{fromLaneId:e.fromLaneId}:{}}),z.value=`${L(e.item)} dropped onto ${L(t)}`)}function Le(){let e=K.value;if(!e)return;if(K.value=null,_(e.item.id)&&h.value.length>1){w(C(),e.item.id,e.laneId,e.colId,e.index),X(e.item.id);return}let t=B({item:e.item,fromLaneId:e.fromLaneId,fromColumnId:e.fromColumnId},e.laneId,e.colId,e.index),n=P(e.colId),r=f.lanes?.find(t=>(t.id??null)===e.laneId)??null,i=n?R(r,n):e.colId;z.value=t?`${L(e.item)} dropped, position ${e.index+1} in ${i}`:`${L(e.item)} dropped`,X(e.item.id)}function Re(e,t,n,r){let i=N(n,r),a=i.findIndex(e=>e.id===t.id);if(e===`ArrowUp`||e===`ArrowDown`){let t=a+(e===`ArrowDown`?1:-1);t>=0&&t<i.length&&Y(i[t].id)}else{let t=f.columns.findIndex(e=>e.id===r),i=f.columns[t+(e===`ArrowRight`?1:-1)];if(t===-1||!i)return;let o=N(n,i.id);if(o.length===0)return;Y(o[Math.min(a,o.length-1)].id)}}function Y(e){let t=E.value?.querySelectorAll(`[data-item-id]`);if(t){for(let n of t)if(n.dataset.itemId===e){n.focus();return}}}async function X(e){await(0,a.nextTick)(),await(0,a.nextTick)(),Y(e)}function ze(e){K.value?.item.id===e.id&&(K.value=null)}let Z=(0,a.ref)(null),Q=(0,a.ref)(null);function Be(e,t){if(!f.reorderableColumns){t.preventDefault();return}Z.value=e,Q.value=e}function Ve(e,t){if(Z.value===null)return;t.preventDefault();let n=t.currentTarget.getBoundingClientRect();Q.value=t.clientX<n.left+n.width/2?e:e+1}function He(e){let t=Z.value,n=Q.value;if($(),t===null||n===null)return;e.preventDefault();let r=n>t?n-1:n;r!==t&&m(`column-move`,{columnId:f.columns[t].id,toIndex:r})}function $(){Z.value=null,Q.value=null}return(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,(0,a.mergeProps)({ref_key:`boardRef`,ref:E,class:[`nb-board`,{"nb-board--flat":(0,a.unref)(p)&&D.value[0]===null,"nb-board--batching":(0,a.unref)(p)&&b.value,"nb-board--select-mode":x.value}]},(0,a.unref)(ge)),[(0,a.createElementVNode)(`div`,{class:`nb-board__grid`,style:(0,a.normalizeStyle)(be.value)},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.columns,(n,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:n.id,class:(0,a.normalizeClass)([`nb-board__col-header`,{"nb-board__col-header--reorderable":e.reorderableColumns,"nb-board__col-header--dragging":Z.value===r,"nb-board__col-header--drop-before":Q.value===r,"nb-board__col-header--drop-after":Q.value===r+1&&r===e.columns.length-1}]),style:(0,a.normalizeStyle)(n.color?{borderTopColor:n.color}:void 0),draggable:e.reorderableColumns||void 0,onDragstart:e=>Be(r,e),onDragover:e=>Ve(r,e),onDrop:He,onDragend:$},[(0,a.renderSlot)(t.$slots,`column-header`,{column:n,count:A(n.id)},()=>[(0,a.createElementVNode)(`span`,c,(0,a.toDisplayString)(n.label),1),(0,a.createElementVNode)(`span`,l,(0,a.toDisplayString)(A(n.id)),1)])],46,s))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(D.value,n=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:k(n)},[n?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:`nb-board__lane-header`,onClick:e=>xe(n.id)},[(0,a.createElementVNode)(`button`,{class:`nb-board__collapse-btn`,"aria-label":I(n.id)?`Expand`:`Collapse`},(0,a.toDisplayString)(I(n.id)?`▶`:`▼`),9,te),(0,a.renderSlot)(t.$slots,`lane-header`,{lane:n},()=>[(0,a.createElementVNode)(`span`,ne,(0,a.toDisplayString)(n.label),1)]),(0,a.createElementVNode)(`span`,re,(0,a.toDisplayString)(M(n.id)),1)],8,ee)):(0,a.createCommentVNode)(``,!0),!n||!I(n.id)?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:1},(0,a.renderList)(e.columns,r=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:k(n)+`-`+r.id,class:(0,a.normalizeClass)([`nb-board__cell`,{"nb-board__cell--drag-over":Oe(n,r.id)}]),onDragover:(0,a.withModifiers)(e=>W(n,r.id),[`prevent`]),onDragleave:Ee,onDrop:(0,a.withModifiers)(e=>je(n,r.id),[`prevent`])},[(0,a.createElementVNode)(`div`,{class:`nb-board__cell-items`,role:`list`,"aria-label":Se(n,r)},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(N(O(n),r.id),(i,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:i.id,class:(0,a.normalizeClass)([`nb-board__card`,{"nb-board__card--lifted":K.value?.item.id===i.id,"nb-board__card--selected":_(i.id),"nb-board__card--carried":!!V.value?.group&&_(i.id),"nb-board__card--drop-before":G(n,r.id)===o,"nb-board__card--drop-after":Ae(n,r.id,o),"nb-board__card--drop-into":ke(n,r.id,i)}]),role:`listitem`,tabindex:`0`,"data-item-id":i.id,"aria-selected":e.selectable?_(i.id):void 0,"aria-label":Ce(i,n,r),"aria-describedby":`${(0,a.unref)(T)}-hint`,draggable:`true`,onDragstart:e=>we(i,n,r.id),onDragover:(0,a.withModifiers)(e=>Te(e,n,r.id,o,i),[`prevent`,`stop`]),onDragend:De,onKeydown:e=>Me(e,i,n,r.id),onClickCapture:e=>ye(e,i,n,r.id),onBlur:e=>ze(i)},[(0,a.renderSlot)(t.$slots,`card`,{item:i,column:r,lane:n??void 0})],42,oe))),128)),N(O(n),r.id).length===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,se)):(0,a.createCommentVNode)(``,!0)],8,ae),t.$slots[`column-footer`]?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,ce,[(0,a.renderSlot)(t.$slots,`column-footer`,{column:r,lane:n??void 0})])):(0,a.createCommentVNode)(``,!0)],42,ie))),128)):(0,a.createCommentVNode)(``,!0)],64))),128))],4),((0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:`body`,disabled:!(0,a.unref)(p)},[b.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,u,[(0,a.createElementVNode)(`span`,le,(0,a.toDisplayString)(h.value.length)+` selected `,1),(0,a.createElementVNode)(`div`,ue,[(0,a.renderSlot)(t.$slots,`batch-actions`,{selected:h.value,clear:y,phone:(0,a.unref)(p)})]),(0,a.unref)(p)?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:0,class:`nb-board__batch-cancel`,variant:`ghost`,size:`sm`,icon:o,"aria-label":`Clear selection`,onClick:y})):((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:1,class:`nb-board__batch-cancel`,variant:`ghost`,size:`sm`,onClick:y},{default:(0,a.withCtx)(()=>[...n[0]||=[(0,a.createTextVNode)(` Clear selection `,-1)]]),_:1}))])):(0,a.createCommentVNode)(``,!0)],8,[`disabled`])),(0,a.createElementVNode)(`span`,{id:`${(0,a.unref)(T)}-hint`,class:`nb-board__sr`},[n[1]||=(0,a.createTextVNode)(` Press Space or Enter to pick up, arrow keys to move, Space or Enter to drop, Escape to cancel.`,-1),e.nestable?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createTextVNode)(` Shift with Space or Enter drops onto the card below instead, putting this one inside it.`)],64)):(0,a.createCommentVNode)(``,!0),e.selectable?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)(` X selects the card, or removes it from the selection. Picking up a selected card moves every selected card. Escape clears the selection.`)],64)):(0,a.createCommentVNode)(``,!0),x.value?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createTextVNode)(` Selecting: activating a card selects it, or removes it from the selection.`)],64)):(0,a.createCommentVNode)(``,!0)],8,de),(0,a.createElementVNode)(`span`,fe,(0,a.toDisplayString)(z.value),1)],16))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
@@ -0,0 +1,48 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
+ import { t } from "./Icon-rREAqsu0.js";
3
+ import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
4
+ import { Comment as r, Fragment as i, Text as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, toDisplayString as m, unref as h, useSlots as g } from "vue";
5
+ import { regular as _ } from "@nubisco/ui/icons/caret-right";
6
+ //#region src/components/Breadcrumbs.vue?vue&type=script&setup=true&lang.ts
7
+ var v = {
8
+ key: 0,
9
+ class: "nb-breadcrumbs__brand"
10
+ }, y = {
11
+ key: 0,
12
+ class: "nb-breadcrumbs__title"
13
+ }, b = {
14
+ key: 1,
15
+ class: "nb-breadcrumbs__subtitle"
16
+ }, x = {
17
+ key: 2,
18
+ class: "nb-breadcrumbs__crumbs"
19
+ }, S = /* @__PURE__ */ e(/* @__PURE__ */ u({
20
+ __name: "Breadcrumbs",
21
+ props: {
22
+ title: { default: void 0 },
23
+ subtitle: { default: void 0 },
24
+ collapse: { default: "none" }
25
+ },
26
+ setup(e) {
27
+ let u = e, S = g();
28
+ function C(e) {
29
+ return e.some((e) => e.type === r ? !1 : e.type === a ? String(e.children ?? "").trim() !== "" : e.type === i ? C(e.children ?? []) : !0);
30
+ }
31
+ let w = o(() => C(S.default?.() ?? [])), { phone: T } = n(), E = o(() => u.collapse === "phone" && T.value && w.value);
32
+ return (n, r) => (f(), l("nav", {
33
+ class: d(["nb-breadcrumbs", { "nb-breadcrumbs--collapsed": E.value }]),
34
+ "aria-label": "breadcrumb"
35
+ }, [
36
+ e.title || e.subtitle ? (f(), l("span", v, [e.title ? (f(), l("span", y, m(e.title), 1)) : c("", !0), e.subtitle ? (f(), l("span", b, m(e.subtitle), 1)) : c("", !0)])) : c("", !0),
37
+ (e.title || e.subtitle) && w.value ? (f(), s(t, {
38
+ key: 1,
39
+ name: h(_),
40
+ size: "sm",
41
+ class: "nb-breadcrumbs__sep"
42
+ }, null, 8, ["name"])) : c("", !0),
43
+ w.value ? (f(), l("span", x, [p(n.$slots, "default", {}, void 0, !0)])) : c("", !0)
44
+ ], 2));
45
+ }
46
+ }), [["__scopeId", "data-v-2fac5ec3"]]);
47
+ //#endregion
48
+ export { S as t };
@@ -0,0 +1 @@
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./composables/usePhoneLayout.composable.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/caret-right`);var a={key:0,class:`nb-breadcrumbs__brand`},o={key:0,class:`nb-breadcrumbs__title`},s={key:1,class:`nb-breadcrumbs__subtitle`},c={key:2,class:`nb-breadcrumbs__crumbs`},l=(0,r.defineComponent)({__name:`Breadcrumbs`,props:{title:{default:void 0},subtitle:{default:void 0},collapse:{default:`none`}},setup(e){let l=e,u=(0,r.useSlots)();function d(e){return e.some(e=>e.type===r.Comment?!1:e.type===r.Text?String(e.children??``).trim()!==``:e.type===r.Fragment?d(e.children??[]):!0)}let f=(0,r.computed)(()=>d(u.default?.()??[])),{phone:p}=n.usePhoneLayout(),m=(0,r.computed)(()=>l.collapse===`phone`&&p.value&&f.value);return(n,l)=>((0,r.openBlock)(),(0,r.createElementBlock)(`nav`,{class:(0,r.normalizeClass)([`nb-breadcrumbs`,{"nb-breadcrumbs--collapsed":m.value}]),"aria-label":`breadcrumb`},[e.title||e.subtitle?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,a,[e.title?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,o,(0,r.toDisplayString)(e.title),1)):(0,r.createCommentVNode)(``,!0),e.subtitle?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,s,(0,r.toDisplayString)(e.subtitle),1)):(0,r.createCommentVNode)(``,!0)])):(0,r.createCommentVNode)(``,!0),(e.title||e.subtitle)&&f.value?((0,r.openBlock)(),(0,r.createBlock)(t.t,{key:1,name:(0,r.unref)(i.regular),size:`sm`,class:`nb-breadcrumbs__sep`},null,8,[`name`])):(0,r.createCommentVNode)(``,!0),f.value?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,c,[(0,r.renderSlot)(n.$slots,`default`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0)],2))}}),u=e.t(l,[[`__scopeId`,`data-v-2fac5ec3`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Size.d-GBIblj2D.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useRouterLink.composable.cjs`);let i=require(`vue`);var a=function(e){return e.Button=`button`,e.Submit=`submit`,e.Reset=`reset`,e}(a||{}),o={key:0,class:`nb-button__decorations`},s={key:0,class:`nb-button__spinner`,"aria-hidden":`true`},c=new Set;function l(e){if(typeof e==`string`)return e;if(e&&(typeof e==`object`||typeof e==`function`)){let t=e;if(typeof t.glyphName==`string`)return t.glyphName}return``}var u=(0,i.defineComponent)({__name:`Button`,props:{variant:{default:void 0},outlined:{type:Boolean,default:!1},size:{default:t.t.Medium},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{default:void 0},type:{default:a.Button},href:{default:void 0},target:{default:void 0},rel:{default:void 0},to:{default:void 0}},emits:[`click`],setup(e){let t=e,a=(0,i.useSlots)(),u=(0,i.computed)(()=>!a.default&&!!(t.icon||t.loading)),d=r.useRouterLink(),f=(0,i.computed)(()=>t.to!=null&&!!d.value),p=(0,i.computed)(()=>{if(typeof t.to==`string`)return t.to;if(t.href)return t.href}),m=(0,i.computed)(()=>f.value?d.value:p.value?`a`:`button`),h=(0,i.computed)(()=>m.value===`a`?{href:p.value,target:t.target,rel:t.rel}:{}),g={xxs:10,xs:12,sm:12,md:14,lg:16,xl:16,xxl:20},_={xxs:12,xs:14,sm:16,md:18,lg:20,xl:20,xxl:26},v=(0,i.computed)(()=>(u.value?_:g)[t.size??`md`]??(u.value?18:14)),y=(0,i.getCurrentInstance)();return(0,i.onMounted)(()=>{typeof process<`u`&&process.env.NODE_ENV===`production`||u.value&&(0,i.nextTick)(()=>{let e=y?.proxy?.$el;if(!e||typeof e.getAttribute!=`function`||[`aria-label`,`aria-labelledby`,`title`].some(t=>(e.getAttribute(t)??``).trim().length>0)||(e.textContent??``).trim().length>0)return;let n=l(t.icon);c.has(n)||(c.add(n),console.warn(`[NbButton] An icon-only button${n?` (icon "${n}")`:``} has no accessible name, so a screen reader announces it as "button". Add aria-label, or name it with v-nb-tooltip.`,e))})}),(t,r)=>((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(m.value),(0,i.mergeProps)({class:[`nb-button`,e.variant?`nb-button--${e.variant}`:null,`nb-button--${e.size}`,{"nb-button--outlined":e.outlined},{"nb-button--loading":e.loading},{"nb-button--icon-only":u.value}],to:f.value?e.to:void 0},h.value,{disabled:m.value===`button`?e.disabled||e.loading:void 0,"aria-disabled":m.value!==`button`&&(e.disabled||e.loading)?!0:void 0,type:m.value===`button`?e.type:void 0,onClick:r[0]||=n=>e.disabled||e.loading?void 0:t.$emit(`click`,n)}),{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(t.$slots,`default`,{},void 0,!0),e.loading||e.icon?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,o,[e.loading?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,s)):e.icon?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:1,name:e.icon,size:v.value,class:`nb-button__icon`},null,8,[`name`,`size`])):(0,i.createCommentVNode)(``,!0)])):(0,i.createCommentVNode)(``,!0)]),_:3},16,[`class`,`to`,`disabled`,`aria-disabled`,`type`]))}}),d=e.t(u,[[`__scopeId`,`data-v-a0e2a085`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Size.d-GBIblj2D.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useRouterLink.composable.cjs`);let i=require(`vue`);var a=function(e){return e.Button=`button`,e.Submit=`submit`,e.Reset=`reset`,e}(a||{}),o={key:0,class:`nb-button__decorations`},s={key:0,class:`nb-button__spinner`,"aria-hidden":`true`},c=new Set;function l(e){if(typeof e==`string`)return e;if(e&&(typeof e==`object`||typeof e==`function`)){let t=e;if(typeof t.glyphName==`string`)return t.glyphName}return``}var u=(0,i.defineComponent)({__name:`Button`,props:{variant:{default:void 0},outlined:{type:Boolean,default:!1},size:{default:t.t.Medium},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{default:void 0},type:{default:a.Button},href:{default:void 0},target:{default:void 0},rel:{default:void 0},to:{default:void 0}},emits:[`click`],setup(e){let t=e,a=(0,i.useSlots)(),u=(0,i.computed)(()=>!a.default&&!!(t.icon||t.loading)),d=r.useRouterLink(),f=(0,i.computed)(()=>t.to!=null&&!!d.value),p=(0,i.computed)(()=>{if(typeof t.to==`string`)return t.to;if(t.href)return t.href}),m=(0,i.computed)(()=>f.value?d.value:p.value?`a`:`button`),h=(0,i.computed)(()=>m.value===`a`?{href:p.value,target:t.target,rel:t.rel}:{}),g={xxs:10,xs:12,sm:12,md:14,lg:16,xl:16,xxl:20},_={xxs:12,xs:14,sm:16,md:18,lg:20,xl:20,xxl:26},v=(0,i.computed)(()=>(u.value?_:g)[t.size??`md`]??(u.value?18:14)),y=(0,i.getCurrentInstance)();return(0,i.onMounted)(()=>{typeof process<`u`&&process.env.NODE_ENV===`production`||u.value&&(0,i.nextTick)(()=>{let e=y?.proxy?.$el;if(!e||typeof e.getAttribute!=`function`||[`aria-label`,`aria-labelledby`,`title`].some(t=>(e.getAttribute(t)??``).trim().length>0)||(e.textContent??``).trim().length>0)return;let n=l(t.icon);c.has(n)||(c.add(n),console.warn(`[NbButton] An icon-only button${n?` (icon "${n}")`:``} has no accessible name, so a screen reader announces it as "button". Add aria-label, or name it with v-nb-tooltip.`,e))})}),(t,r)=>((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(m.value),(0,i.mergeProps)({class:[`nb-button`,e.variant?`nb-button--${e.variant}`:null,`nb-button--${e.size}`,{"nb-button--outlined":e.outlined},{"nb-button--loading":e.loading},{"nb-button--icon-only":u.value}],to:f.value?e.to:void 0},h.value,{disabled:m.value===`button`?e.disabled||e.loading:void 0,"aria-disabled":m.value!==`button`&&(e.disabled||e.loading)?!0:void 0,type:m.value===`button`?e.type:void 0,onClick:r[0]||=n=>e.disabled||e.loading?void 0:t.$emit(`click`,n)}),{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(t.$slots,`default`,{},void 0,!0),e.loading||e.icon?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,o,[e.loading?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,s)):e.icon?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:1,name:e.icon,size:v.value,class:`nb-button__icon`},null,8,[`name`,`size`])):(0,i.createCommentVNode)(``,!0)])):(0,i.createCommentVNode)(``,!0)]),_:3},16,[`class`,`to`,`disabled`,`aria-disabled`,`type`]))}}),d=e.t(u,[[`__scopeId`,`data-v-0405f0b0`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
@@ -116,6 +116,6 @@ var C = /* @__PURE__ */ e(/* @__PURE__ */ c({
116
116
  "type"
117
117
  ]));
118
118
  }
119
- }), [["__scopeId", "data-v-a0e2a085"]]);
119
+ }), [["__scopeId", "data-v-0405f0b0"]]);
120
120
  //#endregion
121
121
  export { C as t };