@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 @@
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./composables/usePhoneLayout.composable.cjs`),r=require(`./Button-C0UUTgEB.cjs`),i=require(`./EmptyState-DRbjP890.cjs`),a=require(`./Spinner-UsyGqwVq.cjs`),o=require(`./Skeleton-lLu_CakO.cjs`),s=require(`./NotificationCenterItem-BP0VBTaB.cjs`);let c=require(`vue`),l=require(`@nubisco/ui/icons/warning-circle`),u=require(`@nubisco/ui/icons/x`);u=e.n(u);let d=require(`@nubisco/ui/icons/bell`);d=e.n(d);var f={key:0,class:`nb-notification-center__badge`,"aria-hidden":`true`},p=[`aria-describedby`,`aria-busy`],m={class:`nb-notification-center__header`},ee={class:`nb-notification-center__sr`,role:`status`},te={class:`nb-notification-center__stale-text`},ne={class:`nb-notification-center__sr`},re=[`tabindex`],ie={key:4,class:`nb-notification-center__empty`},ae={key:5,class:`nb-notification-center__footer`},h=new Set,g=8,_=8,v=96,y=88,b=200;function oe(e,{align:t,side:n,width:r,maxHeight:i,viewport:a}){let o=e.left+e.width;if(n===`right`&&a.width-o-g-_>=r){let n=e.top+e.height,r=t===`end`?n-_:a.height-e.top-_,s=Math.max(y+v,r),c=Math.min(i+v,s),l=Math.max(y,Math.min(i,s-v));return t===`end`?{top:Math.max(_,n-c),bottom:Math.max(_,a.height-n),left:o+g,side:`right`,maxListHeight:l}:{top:Math.max(_,Math.min(e.top,a.height-_-c)),left:o+g,side:`right`,maxListHeight:l}}let s=t===`start`?e.left:e.left+e.width-r,c=Math.min(Math.max(s,_),Math.max(_,a.width-r-_)),l=e.top+e.height,u=a.height-l-g-_,d=e.top-g-_,f=u<b&&d>u?`top`:`bottom`,p=Math.max(y,f===`top`?d:u),m=Math.max(y,Math.min(i,p-v)),ee=Math.min(i+v,p);return{top:f===`top`?Math.max(_,e.top-g-ee):l+g,left:c,side:f,maxListHeight:m}}function se(e,t){return e.left<=t.width&&e.left+e.width>=0&&e.top<=t.height&&e.top+e.height>=0}var x=(0,c.defineComponent)({__name:`NotificationCenter`,props:{items:{default:()=>[]},unreadCount:{default:void 0},itemCount:{default:void 0},open:{type:Boolean,default:void 0},label:{default:`Notifications`},markAllLabel:{default:`Mark all as read`},markAllPendingLabel:{default:`Marking all as read`},markAllPending:{type:Boolean,default:!1},emptyTitle:{default:`No notifications`},emptyDescription:{default:`New activity shows up here.`},loadingLabel:{default:`Loading notifications`},loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorTitle:{default:`Could not load notifications`},errorDescription:{default:`The request failed. Nothing has been lost.`},errorStaleLabel:{default:`These may be out of date.`},retryLabel:{default:`Try again`},showRetry:{type:Boolean,default:!0},maxCount:{default:99},width:{default:360},closeLabel:{default:`Close notifications`},maxHeight:{default:384},align:{default:`end`},side:{default:`vertical`},showMarkAll:{type:Boolean,default:!0},interactive:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},closeOnNavigate:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},icon:{default:void 0},locale:{default:void 0},unreadLabel:{default:`Unread`},readLabel:{default:`Read`},formatUnread:{type:Function,default:e=>e===1?`1 unread`:`${e} unread`}},emits:[`update:open`,`open`,`close`,`select`,`mark-all-read`,`retry`],setup(e,{expose:g,emit:_}){let v=e,y=(0,c.computed)(()=>v.icon??d),b=_,x=(0,c.useSlots)(),S=`nb-notification-center-${(0,c.useId)()}`,C=`${S}-title`,ce=`${S}-trigger`,w=`${S}-error`,T=(0,c.ref)(null),le=(0,c.ref)(null),E=(0,c.ref)(null),D=(0,c.ref)(null),ue=(0,c.ref)(!1),O=(0,c.computed)(()=>v.open===void 0?ue.value:v.open),k=(0,c.computed)(()=>typeof v.unreadCount==`number`?Math.max(0,v.unreadCount):v.items.filter(e=>!e.read).length),de=(0,c.computed)(()=>k.value>v.maxCount?`${v.maxCount}+`:String(k.value)),fe=(0,c.computed)(()=>k.value>0?`${v.label}, ${v.formatUnread(k.value)}`:v.label),pe=(0,c.computed)(()=>{if(typeof v.itemCount==`number`)return Math.max(0,v.itemCount);if(!x.default)return v.items.length}),me=(0,c.computed)(()=>(pe.value??0)>0),A=(0,c.computed)(()=>{if(v.loading)return`loading`;let e=pe.value;return v.error&&(e===void 0||e===0)?`error`:e===void 0||e>0?`list`:`empty`}),he=(0,c.computed)(()=>v.error&&!v.loading&&A.value===`list`&&me.value);(0,c.ref)(!1),(0,c.watch)(()=>[O.value,!!x.default,v.itemCount],([e,t,n])=>{},{immediate:!0});function j(){b(`retry`)}let M=(0,c.computed)(()=>({id:ce,"aria-haspopup":`dialog`,"aria-expanded":O.value?`true`:`false`,"aria-controls":O.value?S:void 0,"aria-label":fe.value,disabled:v.disabled||void 0})),N=(0,c.computed)(()=>({type:`button`,disabled:k.value===0&&!v.markAllPending,"aria-disabled":v.markAllPending?`true`:void 0,"aria-busy":v.markAllPending?`true`:void 0,onClick:Ne})),ge=(0,c.computed)(()=>he.value||A.value===`error`?w:void 0);function P(e){if(!e){E.value=null;return}let t=e instanceof HTMLElement?e:e.$el;E.value=t instanceof HTMLElement?t:null}let F=(0,c.ref)({top:0,left:0,side:`bottom`,maxListHeight:v.maxHeight});function I(){return{width:window.innerWidth,height:window.innerHeight}}function L(){let e=T.value?.getBoundingClientRect();e&&(F.value=oe(e,{align:v.align,side:v.side,width:v.width,maxHeight:v.maxHeight,viewport:I()}))}let{phone:_e}=n.usePhoneLayout(),R=(0,c.computed)(()=>_e.value),ve=(0,c.computed)(()=>{if(!R.value)return F.value.bottom===void 0?{top:`${Math.round(F.value.top)}px`,left:`${Math.round(F.value.left)}px`,width:`${v.width}px`}:{bottom:`${Math.round(F.value.bottom)}px`,left:`${Math.round(F.value.left)}px`,width:`${v.width}px`}}),z=(0,c.computed)(()=>R.value?void 0:{maxHeight:`${Math.round(F.value.maxListHeight)}px`}),ye=(0,c.computed)(()=>({"nb-notification-center__panel--sheet":R.value,"nb-notification-center__panel--start":v.align===`start`,"nb-notification-center__panel--above":!R.value&&F.value.side===`top`,"nb-notification-center__panel--beside":!R.value&&F.value.side===`right`}));function be(e){v.open===void 0&&(ue.value=e),b(`update:open`,e)}function B(){v.disabled||O.value||(L(),be(!0),b(`open`))}function V(e={}){if(!O.value)return;let t=D.value?.contains(document.activeElement);be(!1),b(`close`),(e.restoreFocus??t)&&(0,c.nextTick)(xe)}function xe(){let e=E.value;if(e?.isConnected){e.focus();return}(T.value?.querySelector(q))?.focus()}function H(){O.value?V({restoreFocus:!0}):B()}let U=(0,c.ref)(0),Se=new Set([`button`,`link`,`menuitem`,`option`]);function Ce(e){if(e.tagName===`BUTTON`)return!e.hasAttribute(`disabled`);if(e.tagName===`A`)return e.hasAttribute(`href`);let t=e.getAttribute(`role`);return t!==null&&Se.has(t)}function W(){return D.value?Array.from(D.value.querySelectorAll(`[data-nb-notification-item]`)).filter(e=>!!Ce(e)):[]}let we=(0,c.ref)(void 0);function Te(e){let t=le.value;we.value=t&&t.childElementCount>0&&e.length===0?0:void 0}function G(e){let t=W();Te(t),t.length&&(U.value=Math.min(Math.max(e,0),t.length-1),t.forEach((e,t)=>{e.setAttribute(`tabindex`,t===U.value?`0`:`-1`)}))}function K(e){let t=W();if(!t.length)return!1;let n=Math.min(Math.max(e,0),t.length-1);return G(n),t[n]?.focus(),!0}function Ee(e){let t=e.target?.closest(`[data-nb-notification-item]`);if(!t)return;let n=W().indexOf(t);n>=0&&G(n)}let q=`a[href]:not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex="0"]`;function De(e){return!!e?.closest?.(`input, textarea, select, [contenteditable=""], [contenteditable="true"]`)}function Oe(e){let t=W(),n=e.target?.closest(`[data-nb-notification-item]`),r=n?t.indexOf(n):-1;if(e.key===`Escape`){if(!ke(e))return;e.preventDefault(),e.stopPropagation(),V({restoreFocus:!0});return}if(e.key===`Tab`){Ae(e);return}if(!De(e.target))switch(e.key){case`ArrowDown`:K(r<0?0:r+1)&&e.preventDefault();break;case`ArrowUp`:K(r<0?t.length-1:r-1)&&e.preventDefault();break;case`Home`:r>=0&&(e.preventDefault(),K(0));break;case`End`:r>=0&&(e.preventDefault(),K(t.length-1));break;default:break}}function ke(e){if(e.defaultPrevented)return!1;let t=(e.target??document.activeElement)?.closest?.(`[aria-modal="true"]`);return!(t&&t!==D.value)}function Ae(e){let t=D.value;if(!t)return;let n=Array.from(t.querySelectorAll(q)),r=document.activeElement,i=n[0],a=n[n.length-1],o=!n.length||r===i||!t.contains(r),s=!n.length||r===a;if(e.shiftKey?!o:!s)return;e.preventDefault();let l=e.shiftKey?E.value:je();V({restoreFocus:!1}),(0,c.nextTick)(()=>{l?.isConnected?l.focus():xe()})}function je(){let e=E.value;if(!e)return null;let t=Array.from(document.querySelectorAll(q)).filter(e=>!D.value?.contains(e)).filter(e=>e.tabIndex>=0),n=t.indexOf(e);return n<0?null:t[n+1]??null}function Me(e,t){b(`select`,e,t),v.closeOnSelect&&V({restoreFocus:!1})}function J(e){if(!x.default)return;let t=e.target?.closest(`[data-nb-notification-item]`);if(t&&Ce(t)){if(e.type===`keydown`){let n=e.key;if(n!==`Enter`&&n!==` `||t.tagName===`BUTTON`||t.tagName===`A`)return;e.preventDefault()}b(`select`,null,e),v.closeOnSelect&&V({restoreFocus:!1})}}function Ne(){v.markAllPending||b(`mark-all-read`)}function Pe(e){let t=e.target;T.value?.contains(t)||D.value?.contains(t)||V({restoreFocus:!1})}function Fe(e){e.key===`Escape`&&(D.value?.contains(document.activeElement)||ke(e)&&V({restoreFocus:T.value?.contains(document.activeElement)??!1}))}let Y=0;function X(){!O.value||Y||(Y=requestAnimationFrame(()=>{Y=0,Le()}))}function Ie(){Y&&=(cancelAnimationFrame(Y),0)}function Le(){if(!O.value||R.value)return;let e=T.value?.getBoundingClientRect();if(e&&!se(e,I())){V({restoreFocus:!1});return}L()}function Z(){v.closeOnNavigate&&V({restoreFocus:!1})}function Re(){return window.navigation}function ze(){document.addEventListener(`mousedown`,Pe),document.addEventListener(`keydown`,Fe),window.addEventListener(`resize`,X),window.addEventListener(`scroll`,X,!0),window.addEventListener(`popstate`,Z),window.addEventListener(`hashchange`,Z),Re()?.addEventListener(`navigate`,Z)}function Q(){Ie(),document.removeEventListener(`mousedown`,Pe),document.removeEventListener(`keydown`,Fe),window.removeEventListener(`resize`,X),window.removeEventListener(`scroll`,X,!0),window.removeEventListener(`popstate`,Z),window.removeEventListener(`hashchange`,Z),Re()?.removeEventListener(`navigate`,Z)}let $=()=>V({restoreFocus:!1});return(0,c.watch)(O,e=>{if(e){for(let e of[...h])e!==$&&e();h.add($),ze(),(0,c.nextTick)(()=>{L(),G(0),K(0)||D.value?.focus()})}else h.delete($),Q(),U.value=0}),(0,c.watch)(()=>[v.items.length,A.value],()=>{O.value&&(0,c.nextTick)(()=>G(U.value))}),(0,c.onBeforeUnmount)(()=>{Q(),h.delete($);let e=D.value;e?.isConnected&&e.remove()}),g({show:B,close:V,toggle:H,isOpen:O,unreadCount:k}),(n,d)=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{ref_key:`rootRef`,ref:T,class:`nb-notification-center`},[(0,c.renderSlot)(n.$slots,`trigger`,{open:O.value,toggle:H,show:B,close:V,unreadCount:k.value,badge:de.value,panelId:S,triggerProps:M.value,setTriggerRef:P},()=>[(0,c.createElementVNode)(`button`,(0,c.mergeProps)({ref:P,type:`button`,class:[`nb-notification-center__trigger`,{"nb-notification-center__trigger--active":O.value}]},M.value,{onClick:H}),[(0,c.createVNode)(t.t,{name:y.value,size:18},null,8,[`name`]),k.value>0?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,f,(0,c.toDisplayString)(de.value),1)):(0,c.createCommentVNode)(``,!0)],16)]),((0,c.openBlock)(),(0,c.createBlock)(c.Teleport,{to:`body`},[(0,c.createVNode)(c.Transition,{name:`nb-notification-center-pop`},{default:(0,c.withCtx)(()=>[O.value?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:0,id:S,ref_key:`panelRef`,ref:D,class:(0,c.normalizeClass)([`nb-notification-center__panel`,ye.value]),style:(0,c.normalizeStyle)(ve.value),role:`dialog`,tabindex:`-1`,"aria-labelledby":C,"aria-describedby":ge.value,"aria-busy":e.loading?`true`:void 0,onKeydown:Oe,onFocusin:Ee},[(0,c.createElementVNode)(`div`,m,[(0,c.createElementVNode)(`h2`,{id:C,class:`nb-notification-center__title`},(0,c.toDisplayString)(e.label),1),(0,c.renderSlot)(n.$slots,`header-start`,{close:V,unreadCount:k.value}),(0,c.renderSlot)(n.$slots,`header-actions`,{close:V,unreadCount:k.value,markAllRead:Ne,markAllPending:e.markAllPending,markAllProps:N.value,markAllText:e.markAllPending?e.markAllPendingLabel:e.markAllLabel},()=>[e.showMarkAll?((0,c.openBlock)(),(0,c.createElementBlock)(`button`,(0,c.mergeProps)({key:0,class:`nb-notification-center__mark-all`},N.value),[e.markAllPending?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:0,size:`xs`,tone:`inherit`,decorative:``})):(0,c.createCommentVNode)(``,!0),(0,c.createTextVNode)(` `+(0,c.toDisplayString)(e.markAllPending?e.markAllPendingLabel:e.markAllLabel),1)],16)):(0,c.createCommentVNode)(``,!0)]),R.value?((0,c.openBlock)(),(0,c.createBlock)(r.t,{key:0,class:`nb-notification-center__close`,variant:`ghost`,size:`lg`,icon:u,"aria-label":e.closeLabel,onClick:d[0]||=e=>V()},null,8,[`aria-label`])):(0,c.createCommentVNode)(``,!0)]),(0,c.createElementVNode)(`span`,ee,(0,c.toDisplayString)(e.markAllPending?e.markAllPendingLabel:``),1),he.value?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:0,id:w,class:`nb-notification-center__stale`,role:`status`},[(0,c.createVNode)(t.t,{name:(0,c.unref)(l.regular),size:14,"aria-hidden":`true`},null,8,[`name`]),(0,c.createElementVNode)(`span`,te,(0,c.toDisplayString)(e.errorStaleLabel),1),e.showRetry?((0,c.openBlock)(),(0,c.createElementBlock)(`button`,{key:0,type:`button`,class:`nb-notification-center__retry`,onClick:j},(0,c.toDisplayString)(e.retryLabel),1)):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0),A.value===`loading`?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:1,class:`nb-notification-center__loading`,role:`status`,style:(0,c.normalizeStyle)(z.value)},[(0,c.createElementVNode)(`span`,ne,(0,c.toDisplayString)(e.loadingLabel),1),((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(3,e=>(0,c.createVNode)(o.t,{key:e,variant:`text`,type:`body-sm`,lines:2,"last-line-width":`60%`})),64))],4)):A.value===`error`?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:2,id:w,class:`nb-notification-center__error`,role:`alert`},[(0,c.renderSlot)(n.$slots,`error`,{retry:j},()=>[(0,c.createVNode)(i.t,{size:`sm`,kind:`error`,title:e.errorTitle,description:e.errorDescription},(0,c.createSlots)({_:2},[e.showRetry?{name:`actions`,fn:(0,c.withCtx)(()=>[(0,c.createVNode)(r.t,{size:`sm`,variant:`secondary`,onClick:j},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.retryLabel),1)]),_:1})]),key:`0`}:void 0]),1032,[`title`,`description`])])])):A.value===`list`?((0,c.openBlock)(),(0,c.createElementBlock)(`ul`,{key:3,ref_key:`listRef`,ref:le,class:`nb-notification-center__list`,role:`list`,tabindex:we.value,style:(0,c.normalizeStyle)(z.value),onClick:J,onKeydown:J},[(0,c.renderSlot)(n.$slots,`default`,{close:V,items:e.items},()=>[((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(e.items,t=>((0,c.openBlock)(),(0,c.createBlock)(s.t,{key:t.id,title:t.title,body:t.body,time:t.time,"time-label":t.timeLabel,read:t.read,variant:t.variant??`neutral`,icon:t.icon,href:t.href,interactive:t.interactive??e.interactive,locale:e.locale,"unread-label":e.unreadLabel,"read-label":e.readLabel,onSelect:e=>Me(t,e)},null,8,[`title`,`body`,`time`,`time-label`,`read`,`variant`,`icon`,`href`,`interactive`,`locale`,`unread-label`,`read-label`,`onSelect`]))),128))])],44,re)):A.value===`empty`?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,ie,[(0,c.renderSlot)(n.$slots,`empty`,{},()=>[(0,c.createVNode)(i.t,{size:`sm`,icon:y.value,title:e.emptyTitle,description:e.emptyDescription},null,8,[`icon`,`title`,`description`])])])):(0,c.createCommentVNode)(``,!0),n.$slots.footer?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,ae,[(0,c.renderSlot)(n.$slots,`footer`,{close:V})])):(0,c.createCommentVNode)(``,!0)],46,p)):(0,c.createCommentVNode)(``,!0)]),_:3})]))],512))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return x}});
@@ -0,0 +1,584 @@
1
+ import { t as e } from "./Icon-rREAqsu0.js";
2
+ import { usePhoneLayout as t } from "./composables/usePhoneLayout.composable.mjs";
3
+ import { t as n } from "./Button-IcCXOoCT.js";
4
+ import { t as r } from "./EmptyState-B6pEj4jk.js";
5
+ import { t as i } from "./Spinner-C7NYF-Xf.js";
6
+ import { t as a } from "./Skeleton-BLn8a0wV.js";
7
+ import { t as o } from "./NotificationCenterItem-CjJh9W_a.js";
8
+ import { Fragment as s, Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ee, createTextVNode as te, createVNode as h, defineComponent as g, mergeProps as ne, nextTick as _, normalizeClass as re, normalizeStyle as v, onBeforeUnmount as ie, openBlock as y, ref as b, renderList as ae, renderSlot as x, toDisplayString as S, unref as oe, useId as se, useSlots as ce, watch as C, withCtx as w } from "vue";
9
+ import { regular as le } from "@nubisco/ui/icons/warning-circle";
10
+ import * as ue from "@nubisco/ui/icons/x";
11
+ import * as de from "@nubisco/ui/icons/bell";
12
+ //#region src/components/NotificationCenter.vue?vue&type=script&setup=true&lang.ts
13
+ var fe = {
14
+ key: 0,
15
+ class: "nb-notification-center__badge",
16
+ "aria-hidden": "true"
17
+ }, pe = ["aria-describedby", "aria-busy"], me = { class: "nb-notification-center__header" }, he = {
18
+ class: "nb-notification-center__sr",
19
+ role: "status"
20
+ }, ge = { class: "nb-notification-center__stale-text" }, _e = { class: "nb-notification-center__sr" }, ve = ["tabindex"], ye = {
21
+ key: 4,
22
+ class: "nb-notification-center__empty"
23
+ }, be = {
24
+ key: 5,
25
+ class: "nb-notification-center__footer"
26
+ }, T = /* @__PURE__ */ new Set(), E = 8, D = 8, O = 96, k = 88, A = 200;
27
+ function xe(e, { align: t, side: n, width: r, maxHeight: i, viewport: a }) {
28
+ let o = e.left + e.width;
29
+ if (n === "right" && a.width - o - E - D >= r) {
30
+ let n = e.top + e.height, r = t === "end" ? n - D : a.height - e.top - D, s = Math.max(k + O, r), c = Math.min(i + O, s), l = Math.max(k, Math.min(i, s - O));
31
+ return t === "end" ? {
32
+ top: Math.max(D, n - c),
33
+ bottom: Math.max(D, a.height - n),
34
+ left: o + E,
35
+ side: "right",
36
+ maxListHeight: l
37
+ } : {
38
+ top: Math.max(D, Math.min(e.top, a.height - D - c)),
39
+ left: o + E,
40
+ side: "right",
41
+ maxListHeight: l
42
+ };
43
+ }
44
+ let s = t === "start" ? e.left : e.left + e.width - r, c = Math.min(Math.max(s, D), Math.max(D, a.width - r - D)), l = e.top + e.height, u = a.height - l - E - D, d = e.top - E - D, f = u < A && d > u ? "top" : "bottom", p = Math.max(k, f === "top" ? d : u), m = Math.max(k, Math.min(i, p - O)), ee = Math.min(i + O, p);
45
+ return {
46
+ top: f === "top" ? Math.max(D, e.top - E - ee) : l + E,
47
+ left: c,
48
+ side: f,
49
+ maxListHeight: m
50
+ };
51
+ }
52
+ function Se(e, t) {
53
+ return e.left <= t.width && e.left + e.width >= 0 && e.top <= t.height && e.top + e.height >= 0;
54
+ }
55
+ //#endregion
56
+ //#region src/components/NotificationCenter.vue
57
+ var j = /* @__PURE__ */ g({
58
+ __name: "NotificationCenter",
59
+ props: {
60
+ items: { default: () => [] },
61
+ unreadCount: { default: void 0 },
62
+ itemCount: { default: void 0 },
63
+ open: {
64
+ type: Boolean,
65
+ default: void 0
66
+ },
67
+ label: { default: "Notifications" },
68
+ markAllLabel: { default: "Mark all as read" },
69
+ markAllPendingLabel: { default: "Marking all as read" },
70
+ markAllPending: {
71
+ type: Boolean,
72
+ default: !1
73
+ },
74
+ emptyTitle: { default: "No notifications" },
75
+ emptyDescription: { default: "New activity shows up here." },
76
+ loadingLabel: { default: "Loading notifications" },
77
+ loading: {
78
+ type: Boolean,
79
+ default: !1
80
+ },
81
+ error: {
82
+ type: Boolean,
83
+ default: !1
84
+ },
85
+ errorTitle: { default: "Could not load notifications" },
86
+ errorDescription: { default: "The request failed. Nothing has been lost." },
87
+ errorStaleLabel: { default: "These may be out of date." },
88
+ retryLabel: { default: "Try again" },
89
+ showRetry: {
90
+ type: Boolean,
91
+ default: !0
92
+ },
93
+ maxCount: { default: 99 },
94
+ width: { default: 360 },
95
+ closeLabel: { default: "Close notifications" },
96
+ maxHeight: { default: 384 },
97
+ align: { default: "end" },
98
+ side: { default: "vertical" },
99
+ showMarkAll: {
100
+ type: Boolean,
101
+ default: !0
102
+ },
103
+ interactive: {
104
+ type: Boolean,
105
+ default: !0
106
+ },
107
+ closeOnSelect: {
108
+ type: Boolean,
109
+ default: !0
110
+ },
111
+ closeOnNavigate: {
112
+ type: Boolean,
113
+ default: !0
114
+ },
115
+ disabled: {
116
+ type: Boolean,
117
+ default: !1
118
+ },
119
+ icon: { default: void 0 },
120
+ locale: { default: void 0 },
121
+ unreadLabel: { default: "Unread" },
122
+ readLabel: { default: "Read" },
123
+ formatUnread: {
124
+ type: Function,
125
+ default: (e) => e === 1 ? "1 unread" : `${e} unread`
126
+ }
127
+ },
128
+ emits: [
129
+ "update:open",
130
+ "open",
131
+ "close",
132
+ "select",
133
+ "mark-all-read",
134
+ "retry"
135
+ ],
136
+ setup(g, { expose: E, emit: D }) {
137
+ let O = g, k = u(() => O.icon ?? de), A = D, j = ce(), M = `nb-notification-center-${se()}`, Ce = `${M}-title`, we = `${M}-trigger`, N = `${M}-error`, P = b(null), Te = b(null), F = b(null), I = b(null), Ee = b(!1), L = u(() => O.open === void 0 ? Ee.value : O.open), R = u(() => typeof O.unreadCount == "number" ? Math.max(0, O.unreadCount) : O.items.filter((e) => !e.read).length), De = u(() => R.value > O.maxCount ? `${O.maxCount}+` : String(R.value)), Oe = u(() => R.value > 0 ? `${O.label}, ${O.formatUnread(R.value)}` : O.label), ke = u(() => {
138
+ if (typeof O.itemCount == "number") return Math.max(0, O.itemCount);
139
+ if (!j.default) return O.items.length;
140
+ }), Ae = u(() => (ke.value ?? 0) > 0), z = u(() => {
141
+ if (O.loading) return "loading";
142
+ let e = ke.value;
143
+ return O.error && (e === void 0 || e === 0) ? "error" : e === void 0 || e > 0 ? "list" : "empty";
144
+ }), je = u(() => O.error && !O.loading && z.value === "list" && Ae.value);
145
+ b(!1), C(() => [
146
+ L.value,
147
+ !!j.default,
148
+ O.itemCount
149
+ ], ([e, t, n]) => {}, { immediate: !0 });
150
+ function B() {
151
+ A("retry");
152
+ }
153
+ let Me = u(() => ({
154
+ id: we,
155
+ "aria-haspopup": "dialog",
156
+ "aria-expanded": L.value ? "true" : "false",
157
+ "aria-controls": L.value ? M : void 0,
158
+ "aria-label": Oe.value,
159
+ disabled: O.disabled || void 0
160
+ })), Ne = u(() => ({
161
+ type: "button",
162
+ disabled: R.value === 0 && !O.markAllPending,
163
+ "aria-disabled": O.markAllPending ? "true" : void 0,
164
+ "aria-busy": O.markAllPending ? "true" : void 0,
165
+ onClick: rt
166
+ })), Pe = u(() => je.value || z.value === "error" ? N : void 0);
167
+ function Fe(e) {
168
+ if (!e) {
169
+ F.value = null;
170
+ return;
171
+ }
172
+ let t = e instanceof HTMLElement ? e : e.$el;
173
+ F.value = t instanceof HTMLElement ? t : null;
174
+ }
175
+ let V = b({
176
+ top: 0,
177
+ left: 0,
178
+ side: "bottom",
179
+ maxListHeight: O.maxHeight
180
+ });
181
+ function Ie() {
182
+ return {
183
+ width: window.innerWidth,
184
+ height: window.innerHeight
185
+ };
186
+ }
187
+ function H() {
188
+ let e = P.value?.getBoundingClientRect();
189
+ e && (V.value = xe(e, {
190
+ align: O.align,
191
+ side: O.side,
192
+ width: O.width,
193
+ maxHeight: O.maxHeight,
194
+ viewport: Ie()
195
+ }));
196
+ }
197
+ let { phone: Le } = t(), U = u(() => Le.value), Re = u(() => {
198
+ if (!U.value) return V.value.bottom === void 0 ? {
199
+ top: `${Math.round(V.value.top)}px`,
200
+ left: `${Math.round(V.value.left)}px`,
201
+ width: `${O.width}px`
202
+ } : {
203
+ bottom: `${Math.round(V.value.bottom)}px`,
204
+ left: `${Math.round(V.value.left)}px`,
205
+ width: `${O.width}px`
206
+ };
207
+ }), ze = u(() => U.value ? void 0 : { maxHeight: `${Math.round(V.value.maxListHeight)}px` }), Be = u(() => ({
208
+ "nb-notification-center__panel--sheet": U.value,
209
+ "nb-notification-center__panel--start": O.align === "start",
210
+ "nb-notification-center__panel--above": !U.value && V.value.side === "top",
211
+ "nb-notification-center__panel--beside": !U.value && V.value.side === "right"
212
+ }));
213
+ function Ve(e) {
214
+ O.open === void 0 && (Ee.value = e), A("update:open", e);
215
+ }
216
+ function W() {
217
+ O.disabled || L.value || (H(), Ve(!0), A("open"));
218
+ }
219
+ function G(e = {}) {
220
+ if (!L.value) return;
221
+ let t = I.value?.contains(document.activeElement);
222
+ Ve(!1), A("close"), (e.restoreFocus ?? t) && _(He);
223
+ }
224
+ function He() {
225
+ let e = F.value;
226
+ if (e?.isConnected) {
227
+ e.focus();
228
+ return;
229
+ }
230
+ (P.value?.querySelector(Ye))?.focus();
231
+ }
232
+ function Ue() {
233
+ L.value ? G({ restoreFocus: !0 }) : W();
234
+ }
235
+ let K = b(0), We = new Set([
236
+ "button",
237
+ "link",
238
+ "menuitem",
239
+ "option"
240
+ ]);
241
+ function Ge(e) {
242
+ if (e.tagName === "BUTTON") return !e.hasAttribute("disabled");
243
+ if (e.tagName === "A") return e.hasAttribute("href");
244
+ let t = e.getAttribute("role");
245
+ return t !== null && We.has(t);
246
+ }
247
+ function q() {
248
+ return I.value ? Array.from(I.value.querySelectorAll("[data-nb-notification-item]")).filter((e) => !!Ge(e)) : [];
249
+ }
250
+ let Ke = b(void 0);
251
+ function qe(e) {
252
+ let t = Te.value;
253
+ Ke.value = t && t.childElementCount > 0 && e.length === 0 ? 0 : void 0;
254
+ }
255
+ function J(e) {
256
+ let t = q();
257
+ qe(t), t.length && (K.value = Math.min(Math.max(e, 0), t.length - 1), t.forEach((e, t) => {
258
+ e.setAttribute("tabindex", t === K.value ? "0" : "-1");
259
+ }));
260
+ }
261
+ function Y(e) {
262
+ let t = q();
263
+ if (!t.length) return !1;
264
+ let n = Math.min(Math.max(e, 0), t.length - 1);
265
+ return J(n), t[n]?.focus(), !0;
266
+ }
267
+ function Je(e) {
268
+ let t = e.target?.closest("[data-nb-notification-item]");
269
+ if (!t) return;
270
+ let n = q().indexOf(t);
271
+ n >= 0 && J(n);
272
+ }
273
+ let Ye = "a[href]:not([tabindex=\"-1\"]), button:not([disabled]):not([tabindex=\"-1\"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex=\"0\"]";
274
+ function Xe(e) {
275
+ return !!e?.closest?.("input, textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"]");
276
+ }
277
+ function Ze(e) {
278
+ let t = q(), n = e.target?.closest("[data-nb-notification-item]"), r = n ? t.indexOf(n) : -1;
279
+ if (e.key === "Escape") {
280
+ if (!Qe(e)) return;
281
+ e.preventDefault(), e.stopPropagation(), G({ restoreFocus: !0 });
282
+ return;
283
+ }
284
+ if (e.key === "Tab") {
285
+ $e(e);
286
+ return;
287
+ }
288
+ if (!Xe(e.target)) switch (e.key) {
289
+ case "ArrowDown":
290
+ Y(r < 0 ? 0 : r + 1) && e.preventDefault();
291
+ break;
292
+ case "ArrowUp":
293
+ Y(r < 0 ? t.length - 1 : r - 1) && e.preventDefault();
294
+ break;
295
+ case "Home":
296
+ r >= 0 && (e.preventDefault(), Y(0));
297
+ break;
298
+ case "End":
299
+ r >= 0 && (e.preventDefault(), Y(t.length - 1));
300
+ break;
301
+ default: break;
302
+ }
303
+ }
304
+ function Qe(e) {
305
+ if (e.defaultPrevented) return !1;
306
+ let t = (e.target ?? document.activeElement)?.closest?.("[aria-modal=\"true\"]");
307
+ return !(t && t !== I.value);
308
+ }
309
+ function $e(e) {
310
+ let t = I.value;
311
+ if (!t) return;
312
+ let n = Array.from(t.querySelectorAll(Ye)), r = document.activeElement, i = n[0], a = n[n.length - 1], o = !n.length || r === i || !t.contains(r), s = !n.length || r === a;
313
+ if (e.shiftKey ? !o : !s) return;
314
+ e.preventDefault();
315
+ let c = e.shiftKey ? F.value : et();
316
+ G({ restoreFocus: !1 }), _(() => {
317
+ c?.isConnected ? c.focus() : He();
318
+ });
319
+ }
320
+ function et() {
321
+ let e = F.value;
322
+ if (!e) return null;
323
+ let t = Array.from(document.querySelectorAll(Ye)).filter((e) => !I.value?.contains(e)).filter((e) => e.tabIndex >= 0), n = t.indexOf(e);
324
+ return n < 0 ? null : t[n + 1] ?? null;
325
+ }
326
+ function tt(e, t) {
327
+ A("select", e, t), O.closeOnSelect && G({ restoreFocus: !1 });
328
+ }
329
+ function nt(e) {
330
+ if (!j.default) return;
331
+ let t = e.target?.closest("[data-nb-notification-item]");
332
+ if (t && Ge(t)) {
333
+ if (e.type === "keydown") {
334
+ let n = e.key;
335
+ if (n !== "Enter" && n !== " " || t.tagName === "BUTTON" || t.tagName === "A") return;
336
+ e.preventDefault();
337
+ }
338
+ A("select", null, e), O.closeOnSelect && G({ restoreFocus: !1 });
339
+ }
340
+ }
341
+ function rt() {
342
+ O.markAllPending || A("mark-all-read");
343
+ }
344
+ function it(e) {
345
+ let t = e.target;
346
+ P.value?.contains(t) || I.value?.contains(t) || G({ restoreFocus: !1 });
347
+ }
348
+ function at(e) {
349
+ e.key === "Escape" && (I.value?.contains(document.activeElement) || Qe(e) && G({ restoreFocus: P.value?.contains(document.activeElement) ?? !1 }));
350
+ }
351
+ let X = 0;
352
+ function Z() {
353
+ !L.value || X || (X = requestAnimationFrame(() => {
354
+ X = 0, st();
355
+ }));
356
+ }
357
+ function ot() {
358
+ X &&= (cancelAnimationFrame(X), 0);
359
+ }
360
+ function st() {
361
+ if (!L.value || U.value) return;
362
+ let e = P.value?.getBoundingClientRect();
363
+ if (e && !Se(e, Ie())) {
364
+ G({ restoreFocus: !1 });
365
+ return;
366
+ }
367
+ H();
368
+ }
369
+ function Q() {
370
+ O.closeOnNavigate && G({ restoreFocus: !1 });
371
+ }
372
+ function ct() {
373
+ return window.navigation;
374
+ }
375
+ function lt() {
376
+ document.addEventListener("mousedown", it), document.addEventListener("keydown", at), window.addEventListener("resize", Z), window.addEventListener("scroll", Z, !0), window.addEventListener("popstate", Q), window.addEventListener("hashchange", Q), ct()?.addEventListener("navigate", Q);
377
+ }
378
+ function ut() {
379
+ ot(), document.removeEventListener("mousedown", it), document.removeEventListener("keydown", at), window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, !0), window.removeEventListener("popstate", Q), window.removeEventListener("hashchange", Q), ct()?.removeEventListener("navigate", Q);
380
+ }
381
+ let $ = () => G({ restoreFocus: !1 });
382
+ return C(L, (e) => {
383
+ if (e) {
384
+ for (let e of [...T]) e !== $ && e();
385
+ T.add($), lt(), _(() => {
386
+ H(), J(0), Y(0) || I.value?.focus();
387
+ });
388
+ } else T.delete($), ut(), K.value = 0;
389
+ }), C(() => [O.items.length, z.value], () => {
390
+ L.value && _(() => J(K.value));
391
+ }), ie(() => {
392
+ ut(), T.delete($);
393
+ let e = I.value;
394
+ e?.isConnected && e.remove();
395
+ }), E({
396
+ show: W,
397
+ close: G,
398
+ toggle: Ue,
399
+ isOpen: L,
400
+ unreadCount: R
401
+ }), (t, u) => (y(), p("div", {
402
+ ref_key: "rootRef",
403
+ ref: P,
404
+ class: "nb-notification-center"
405
+ }, [x(t.$slots, "trigger", {
406
+ open: L.value,
407
+ toggle: Ue,
408
+ show: W,
409
+ close: G,
410
+ unreadCount: R.value,
411
+ badge: De.value,
412
+ panelId: M,
413
+ triggerProps: Me.value,
414
+ setTriggerRef: Fe
415
+ }, () => [m("button", ne({
416
+ ref: Fe,
417
+ type: "button",
418
+ class: ["nb-notification-center__trigger", { "nb-notification-center__trigger--active": L.value }]
419
+ }, Me.value, { onClick: Ue }), [h(e, {
420
+ name: k.value,
421
+ size: 18
422
+ }, null, 8, ["name"]), R.value > 0 ? (y(), p("span", fe, S(De.value), 1)) : f("", !0)], 16)]), (y(), d(c, { to: "body" }, [h(l, { name: "nb-notification-center-pop" }, {
423
+ default: w(() => [L.value ? (y(), p("div", {
424
+ key: 0,
425
+ id: M,
426
+ ref_key: "panelRef",
427
+ ref: I,
428
+ class: re(["nb-notification-center__panel", Be.value]),
429
+ style: v(Re.value),
430
+ role: "dialog",
431
+ tabindex: "-1",
432
+ "aria-labelledby": Ce,
433
+ "aria-describedby": Pe.value,
434
+ "aria-busy": g.loading ? "true" : void 0,
435
+ onKeydown: Ze,
436
+ onFocusin: Je
437
+ }, [
438
+ m("div", me, [
439
+ m("h2", {
440
+ id: Ce,
441
+ class: "nb-notification-center__title"
442
+ }, S(g.label), 1),
443
+ x(t.$slots, "header-start", {
444
+ close: G,
445
+ unreadCount: R.value
446
+ }),
447
+ x(t.$slots, "header-actions", {
448
+ close: G,
449
+ unreadCount: R.value,
450
+ markAllRead: rt,
451
+ markAllPending: g.markAllPending,
452
+ markAllProps: Ne.value,
453
+ markAllText: g.markAllPending ? g.markAllPendingLabel : g.markAllLabel
454
+ }, () => [g.showMarkAll ? (y(), p("button", ne({
455
+ key: 0,
456
+ class: "nb-notification-center__mark-all"
457
+ }, Ne.value), [g.markAllPending ? (y(), d(i, {
458
+ key: 0,
459
+ size: "xs",
460
+ tone: "inherit",
461
+ decorative: ""
462
+ })) : f("", !0), te(" " + S(g.markAllPending ? g.markAllPendingLabel : g.markAllLabel), 1)], 16)) : f("", !0)]),
463
+ U.value ? (y(), d(n, {
464
+ key: 0,
465
+ class: "nb-notification-center__close",
466
+ variant: "ghost",
467
+ size: "lg",
468
+ icon: ue,
469
+ "aria-label": g.closeLabel,
470
+ onClick: u[0] ||= (e) => G()
471
+ }, null, 8, ["aria-label"])) : f("", !0)
472
+ ]),
473
+ m("span", he, S(g.markAllPending ? g.markAllPendingLabel : ""), 1),
474
+ je.value ? (y(), p("div", {
475
+ key: 0,
476
+ id: N,
477
+ class: "nb-notification-center__stale",
478
+ role: "status"
479
+ }, [
480
+ h(e, {
481
+ name: oe(le),
482
+ size: 14,
483
+ "aria-hidden": "true"
484
+ }, null, 8, ["name"]),
485
+ m("span", ge, S(g.errorStaleLabel), 1),
486
+ g.showRetry ? (y(), p("button", {
487
+ key: 0,
488
+ type: "button",
489
+ class: "nb-notification-center__retry",
490
+ onClick: B
491
+ }, S(g.retryLabel), 1)) : f("", !0)
492
+ ])) : f("", !0),
493
+ z.value === "loading" ? (y(), p("div", {
494
+ key: 1,
495
+ class: "nb-notification-center__loading",
496
+ role: "status",
497
+ style: v(ze.value)
498
+ }, [m("span", _e, S(g.loadingLabel), 1), (y(), p(s, null, ae(3, (e) => h(a, {
499
+ key: e,
500
+ variant: "text",
501
+ type: "body-sm",
502
+ lines: 2,
503
+ "last-line-width": "60%"
504
+ })), 64))], 4)) : z.value === "error" ? (y(), p("div", {
505
+ key: 2,
506
+ id: N,
507
+ class: "nb-notification-center__error",
508
+ role: "alert"
509
+ }, [x(t.$slots, "error", { retry: B }, () => [h(r, {
510
+ size: "sm",
511
+ kind: "error",
512
+ title: g.errorTitle,
513
+ description: g.errorDescription
514
+ }, ee({ _: 2 }, [g.showRetry ? {
515
+ name: "actions",
516
+ fn: w(() => [h(n, {
517
+ size: "sm",
518
+ variant: "secondary",
519
+ onClick: B
520
+ }, {
521
+ default: w(() => [te(S(g.retryLabel), 1)]),
522
+ _: 1
523
+ })]),
524
+ key: "0"
525
+ } : void 0]), 1032, ["title", "description"])])])) : z.value === "list" ? (y(), p("ul", {
526
+ key: 3,
527
+ ref_key: "listRef",
528
+ ref: Te,
529
+ class: "nb-notification-center__list",
530
+ role: "list",
531
+ tabindex: Ke.value,
532
+ style: v(ze.value),
533
+ onClick: nt,
534
+ onKeydown: nt
535
+ }, [x(t.$slots, "default", {
536
+ close: G,
537
+ items: g.items
538
+ }, () => [(y(!0), p(s, null, ae(g.items, (e) => (y(), d(o, {
539
+ key: e.id,
540
+ title: e.title,
541
+ body: e.body,
542
+ time: e.time,
543
+ "time-label": e.timeLabel,
544
+ read: e.read,
545
+ variant: e.variant ?? "neutral",
546
+ icon: e.icon,
547
+ href: e.href,
548
+ interactive: e.interactive ?? g.interactive,
549
+ locale: g.locale,
550
+ "unread-label": g.unreadLabel,
551
+ "read-label": g.readLabel,
552
+ onSelect: (t) => tt(e, t)
553
+ }, null, 8, [
554
+ "title",
555
+ "body",
556
+ "time",
557
+ "time-label",
558
+ "read",
559
+ "variant",
560
+ "icon",
561
+ "href",
562
+ "interactive",
563
+ "locale",
564
+ "unread-label",
565
+ "read-label",
566
+ "onSelect"
567
+ ]))), 128))])], 44, ve)) : z.value === "empty" ? (y(), p("div", ye, [x(t.$slots, "empty", {}, () => [h(r, {
568
+ size: "sm",
569
+ icon: k.value,
570
+ title: g.emptyTitle,
571
+ description: g.emptyDescription
572
+ }, null, 8, [
573
+ "icon",
574
+ "title",
575
+ "description"
576
+ ])])])) : f("", !0),
577
+ t.$slots.footer ? (y(), p("div", be, [x(t.$slots, "footer", { close: G })])) : f("", !0)
578
+ ], 46, pe)) : f("", !0)]),
579
+ _: 3
580
+ })]))], 512));
581
+ }
582
+ });
583
+ //#endregion
584
+ export { j as t };
@@ -1 +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(`./Label-BIM21I7D.cjs`),r=require(`./Message-DjxOb8mu.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/plus`),o=require(`@nubisco/ui/icons/minus`);var s=[`id`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],c={class:`nb-number-input__steppers`},l=[`disabled`],u=[`disabled`],d={key:0,class:`nb-number-input__inner-header`},f=[`for`],p={key:0,class:`nb-number-input__asterisk`,"aria-hidden":`true`},m={class:`nb-number-input__fluid-row`},h=[`id`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],g={class:`nb-number-input__steppers`},_=[`disabled`],v=[`disabled`],y=(0,i.defineComponent)({__name:`NumberInput`,props:{modelValue:{default:null},min:{default:void 0},max:{default:void 0},step:{default:1},placeholder:{default:``},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:``},error:{default:``},warning:{default:``},helper:{default:``},variant:{default:`default`},size:{default:`md`}},emits:[`update:modelValue`,`change`],setup(e,{expose:y,emit:b}){let x=e,S=b,C=(0,i.ref)(null),w=(0,i.ref)(!1),T=`nb-number-input-${(0,i.useId)()}`,E=(0,i.computed)(()=>x.id??T),D=(0,i.computed)(()=>x.min!==void 0&&x.modelValue!==null&&x.modelValue!==void 0&&x.modelValue<=x.min),O=(0,i.computed)(()=>x.max!==void 0&&x.modelValue!==null&&x.modelValue!==void 0&&x.modelValue>=x.max);function k(e){let t=e;return x.min!==void 0&&(t=Math.max(x.min,t)),x.max!==void 0&&(t=Math.min(x.max,t)),t}function A(e){C.value&&(C.value.value=e==null?``:String(e))}(0,i.onMounted)(()=>A(x.modelValue)),(0,i.watch)(()=>x.modelValue,e=>{w.value||A(e)});function j(){let e=k((x.modelValue??0)+x.step);S(`update:modelValue`,e),S(`change`,e),A(e)}function M(){let e=k((x.modelValue??0)-x.step);S(`update:modelValue`,e),S(`change`,e),A(e)}function N(){if(!C.value)return;let e=C.value.value;if(e===``)S(`update:modelValue`,null);else{let t=parseFloat(e);isNaN(t)||S(`update:modelValue`,t)}}function P(){if(w.value=!1,!C.value)return;let e=C.value.value;if(e===``){S(`update:modelValue`,null),S(`change`,null);return}let t=parseFloat(e);if(!isNaN(t)){let e=k(t);S(`update:modelValue`,e),S(`change`,e),A(e)}}let F=(0,i.computed)(()=>[`nb-number-input`,`nb-number-input--${x.variant}`,`nb-number-input--${x.size}`,{"nb-number-input--error":!!x.error,"nb-number-input--warning":!x.error&&!!x.warning,"nb-number-input--disabled":x.disabled}]),I=(0,i.computed)(()=>({"nb-number-input__field-wrapper--focused":w.value,"nb-number-input__field-wrapper--error":!!x.error,"nb-number-input__field-wrapper--warning":!x.error&&!!x.warning,"nb-number-input__field-wrapper--disabled":x.disabled}));return y({focus:()=>C.value?.focus()}),(y,b)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)(F.value)},[e.variant===`default`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[e.label?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:0,for:E.value,required:e.required,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-number-input__field-wrapper`,I.value])},[(0,i.createElementVNode)(`input`,{id:E.value,ref_key:`inputRef`,ref:C,type:`number`,class:`nb-number-input__field`,placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,disabled:e.disabled,required:e.required,onInput:N,onBlur:P,onKeydown:b[0]||=(0,i.withKeys)((0,i.withModifiers)(()=>C.value?.blur(),[`prevent`]),[`enter`]),onFocus:b[1]||=e=>w.value=!0},null,40,s),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`error`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`warning`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,c,[(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":D.value}]),disabled:e.disabled,"aria-label":`Decrease`,onMousedown:b[2]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:M},[(0,i.createVNode)(t.t,{name:(0,i.unref)(o.regular),size:16},null,8,[`name`])],42,l),(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":O.value}]),disabled:e.disabled,"aria-label":`Increase`,onMousedown:b[3]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:j},[(0,i.createVNode)(t.t,{name:(0,i.unref)(a.regular),size:16},null,8,[`name`])],42,u)])],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`error`,class:`nb-number-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:2,variant:`warning`,class:`nb-number-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:3,variant:`helper`,class:`nb-number-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],64)):e.variant===`fluid`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-number-input__field-wrapper`,I.value])},[e.label?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,d,[(0,i.createElementVNode)(`label`,{for:E.value,class:`nb-number-input__inner-label`},[(0,i.createTextVNode)((0,i.toDisplayString)(e.label)+` `,1),e.required?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,p,`*`)):(0,i.createCommentVNode)(``,!0)],8,f),e.helper&&!e.error&&!e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`helper`,"icon-only":!0,class:`nb-number-input__inner-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,m,[(0,i.createElementVNode)(`input`,{id:E.value,ref_key:`inputRef`,ref:C,type:`number`,class:`nb-number-input__field`,placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,disabled:e.disabled,required:e.required,onInput:N,onBlur:P,onKeydown:b[4]||=(0,i.withKeys)((0,i.withModifiers)(()=>C.value?.blur(),[`prevent`]),[`enter`]),onFocus:b[5]||=e=>w.value=!0},null,40,h),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`error`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`warning`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,g,[(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":D.value}]),disabled:e.disabled,"aria-label":`Decrease`,onMousedown:b[6]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:M},[(0,i.createVNode)(t.t,{name:(0,i.unref)(o.regular),size:16},null,8,[`name`])],42,_),(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":O.value}]),disabled:e.disabled,"aria-label":`Increase`,onMousedown:b[7]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:j},[(0,i.createVNode)(t.t,{name:(0,i.unref)(a.regular),size:16},null,8,[`name`])],42,v)])])],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`error`,class:`nb-number-input__fluid-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`warning`,class:`nb-number-input__fluid-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],64)):(0,i.createCommentVNode)(``,!0)],2))}}),b=e.t(y,[[`__scopeId`,`data-v-89630543`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./Label-CZhQEyoi.cjs`),r=require(`./Message-C44ftsaT.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/plus`),o=require(`@nubisco/ui/icons/minus`);var s=[`id`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],c={class:`nb-number-input__steppers`},l=[`disabled`],u=[`disabled`],d={key:0,class:`nb-number-input__inner-header`},f=[`for`],p={key:0,class:`nb-number-input__asterisk`,"aria-hidden":`true`},m={class:`nb-number-input__fluid-row`},h=[`id`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],g={class:`nb-number-input__steppers`},_=[`disabled`],v=[`disabled`],y=(0,i.defineComponent)({__name:`NumberInput`,props:{modelValue:{default:null},min:{default:void 0},max:{default:void 0},step:{default:1},placeholder:{default:``},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:``},error:{default:``},warning:{default:``},helper:{default:``},variant:{default:`default`},size:{default:`md`}},emits:[`update:modelValue`,`change`],setup(e,{expose:y,emit:b}){let x=e,S=b,C=(0,i.ref)(null),w=(0,i.ref)(!1),T=`nb-number-input-${(0,i.useId)()}`,E=(0,i.computed)(()=>x.id??T),D=(0,i.computed)(()=>x.min!==void 0&&x.modelValue!==null&&x.modelValue!==void 0&&x.modelValue<=x.min),O=(0,i.computed)(()=>x.max!==void 0&&x.modelValue!==null&&x.modelValue!==void 0&&x.modelValue>=x.max);function k(e){let t=e;return x.min!==void 0&&(t=Math.max(x.min,t)),x.max!==void 0&&(t=Math.min(x.max,t)),t}function A(e){C.value&&(C.value.value=e==null?``:String(e))}(0,i.onMounted)(()=>A(x.modelValue)),(0,i.watch)(()=>x.modelValue,e=>{w.value||A(e)});function j(){let e=k((x.modelValue??0)+x.step);S(`update:modelValue`,e),S(`change`,e),A(e)}function M(){let e=k((x.modelValue??0)-x.step);S(`update:modelValue`,e),S(`change`,e),A(e)}function N(){if(!C.value)return;let e=C.value.value;if(e===``)S(`update:modelValue`,null);else{let t=parseFloat(e);isNaN(t)||S(`update:modelValue`,t)}}function P(){if(w.value=!1,!C.value)return;let e=C.value.value;if(e===``){S(`update:modelValue`,null),S(`change`,null);return}let t=parseFloat(e);if(!isNaN(t)){let e=k(t);S(`update:modelValue`,e),S(`change`,e),A(e)}}let F=(0,i.computed)(()=>[`nb-number-input`,`nb-number-input--${x.variant}`,`nb-number-input--${x.size}`,{"nb-number-input--error":!!x.error,"nb-number-input--warning":!x.error&&!!x.warning,"nb-number-input--disabled":x.disabled}]),I=(0,i.computed)(()=>({"nb-number-input__field-wrapper--focused":w.value,"nb-number-input__field-wrapper--error":!!x.error,"nb-number-input__field-wrapper--warning":!x.error&&!!x.warning,"nb-number-input__field-wrapper--disabled":x.disabled}));return y({focus:()=>C.value?.focus()}),(y,b)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)(F.value)},[e.variant===`default`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[e.label?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:0,for:E.value,required:e.required,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-number-input__field-wrapper`,I.value])},[(0,i.createElementVNode)(`input`,{id:E.value,ref_key:`inputRef`,ref:C,type:`number`,class:`nb-number-input__field`,placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,disabled:e.disabled,required:e.required,onInput:N,onBlur:P,onKeydown:b[0]||=(0,i.withKeys)((0,i.withModifiers)(()=>C.value?.blur(),[`prevent`]),[`enter`]),onFocus:b[1]||=e=>w.value=!0},null,40,s),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`error`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`warning`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,c,[(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":D.value}]),disabled:e.disabled,"aria-label":`Decrease`,onMousedown:b[2]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:M},[(0,i.createVNode)(t.t,{name:(0,i.unref)(o.regular),size:16},null,8,[`name`])],42,l),(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":O.value}]),disabled:e.disabled,"aria-label":`Increase`,onMousedown:b[3]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:j},[(0,i.createVNode)(t.t,{name:(0,i.unref)(a.regular),size:16},null,8,[`name`])],42,u)])],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`error`,class:`nb-number-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:2,variant:`warning`,class:`nb-number-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:3,variant:`helper`,class:`nb-number-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],64)):e.variant===`fluid`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-number-input__field-wrapper`,I.value])},[e.label?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,d,[(0,i.createElementVNode)(`label`,{for:E.value,class:`nb-number-input__inner-label`},[(0,i.createTextVNode)((0,i.toDisplayString)(e.label)+` `,1),e.required?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,p,`*`)):(0,i.createCommentVNode)(``,!0)],8,f),e.helper&&!e.error&&!e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`helper`,"icon-only":!0,class:`nb-number-input__inner-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,m,[(0,i.createElementVNode)(`input`,{id:E.value,ref_key:`inputRef`,ref:C,type:`number`,class:`nb-number-input__field`,placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,disabled:e.disabled,required:e.required,onInput:N,onBlur:P,onKeydown:b[4]||=(0,i.withKeys)((0,i.withModifiers)(()=>C.value?.blur(),[`prevent`]),[`enter`]),onFocus:b[5]||=e=>w.value=!0},null,40,h),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`error`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`warning`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,g,[(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":D.value}]),disabled:e.disabled,"aria-label":`Decrease`,onMousedown:b[6]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:M},[(0,i.createVNode)(t.t,{name:(0,i.unref)(o.regular),size:16},null,8,[`name`])],42,_),(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":O.value}]),disabled:e.disabled,"aria-label":`Increase`,onMousedown:b[7]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:j},[(0,i.createVNode)(t.t,{name:(0,i.unref)(a.regular),size:16},null,8,[`name`])],42,v)])])],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`error`,class:`nb-number-input__fluid-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`warning`,class:`nb-number-input__fluid-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],64)):(0,i.createCommentVNode)(``,!0)],2))}}),b=e.t(y,[[`__scopeId`,`data-v-7d6b2226`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
@@ -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 "./Message-SQvoXiWl.js";
3
+ import { t as n } from "./Label-DGK5nxFy.js";
4
+ import { t as r } from "./Message-CHkTWe0K.js";
5
5
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, onMounted as m, openBlock as h, ref as g, toDisplayString as _, unref as v, useId as y, watch as b, withCtx as x, withKeys as S, withModifiers as C } from "vue";
6
6
  import { regular as w } from "@nubisco/ui/icons/plus";
7
7
  import { regular as T } from "@nubisco/ui/icons/minus";
@@ -288,6 +288,6 @@ var E = [
288
288
  _: 1
289
289
  })) : s("", !0)], 64)) : s("", !0)], 2));
290
290
  }
291
- }), [["__scopeId", "data-v-89630543"]]);
291
+ }), [["__scopeId", "data-v-7d6b2226"]]);
292
292
  //#endregion
293
293
  export { L as t };