@nubisco/ui 5.48.1 → 5.49.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 (753) hide show
  1. package/dist/AccordionItem--XeLRz2P.js +119 -0
  2. package/dist/AccordionItem-BYSH6dZK.cjs +1 -0
  3. package/dist/ActionGroup-48ZXZCsn.cjs +1 -0
  4. package/dist/ActionGroup-DzQjn3ir.js +137 -0
  5. package/dist/{AiLabel-DywBjSzr.js → AiLabel-CSSIkvKP.js} +20 -20
  6. package/dist/{AiLabel-pRN10dQV.cjs → AiLabel-DSKUOcZs.cjs} +1 -1
  7. package/dist/{AiProvider-DY1xxZff.cjs → AiProvider-BrjUMTRk.cjs} +1 -1
  8. package/dist/{AiProvider-D8O_YaaP.js → AiProvider-Db47uagx.js} +6 -6
  9. package/dist/{AiUsage-HcYF6RQ2.js → AiUsage-BOrAXk2-.js} +2 -2
  10. package/dist/{AiUsage-DRj51zK5.cjs → AiUsage-fQqE0B6N.cjs} +1 -1
  11. package/dist/BackToTop-DgFlV4p4.cjs +1 -0
  12. package/dist/BackToTop-DrgXqZgF.js +51 -0
  13. package/dist/Banner-CazPCK0F.js +89 -0
  14. package/dist/Banner-CyU3PPnt.cjs +1 -0
  15. package/dist/{BarChart-IX4imFVT.cjs → BarChart-3YO4YfUt.cjs} +1 -1
  16. package/dist/{BarChart-tB6MOMoR.js → BarChart-CDvhhPk0.js} +4 -4
  17. package/dist/BatchActions-0P-b3qLI.js +84 -0
  18. package/dist/BatchActions-FDPiGUNh.cjs +1 -0
  19. package/dist/{Blueprint-46DWDZmu.js → Blueprint-CGGNppmS.js} +2 -2
  20. package/dist/{Blueprint-NyUNNf-G.cjs → Blueprint-DBIXzLYg.cjs} +1 -1
  21. package/dist/{BlueprintCard-Cda5rPZu.cjs → BlueprintCard-D3h_rGhj.cjs} +1 -1
  22. package/dist/{BlueprintCard-DDNP1vkk.js → BlueprintCard-_FItugFc.js} +107 -107
  23. package/dist/{BlueprintControls-D0MdXrVv.js → BlueprintControls-1l0QVtB7.js} +49 -75
  24. package/dist/BlueprintControls-C3ffD6W8.cjs +1 -0
  25. package/dist/{Board-CaFH4-Qw.js → Board-CSVCzJ1s.js} +178 -190
  26. package/dist/Board-gUICo94e.cjs +1 -0
  27. package/dist/BottomPanel-1EkHEQ_H.js +81 -0
  28. package/dist/BottomPanel-n2jWpFH7.cjs +1 -0
  29. package/dist/Breadcrumbs-BgMh5bfe.js +185 -0
  30. package/dist/Breadcrumbs-DN_2wxQS.cjs +1 -0
  31. package/dist/{Briefing-CoDyU3k4.js → Briefing-0A1frO4v.js} +3 -3
  32. package/dist/{Briefing-B_ofl8Rt.cjs → Briefing-AqSz-ZdZ.cjs} +1 -1
  33. package/dist/{BriefingDestination-DAu5S2HI.cjs → BriefingDestination-CqyKzyXx.cjs} +1 -1
  34. package/dist/{BriefingDestination-CK4XdAOo.js → BriefingDestination-v3kNa6o_.js} +4 -4
  35. package/dist/Button-BHFtgOXA.cjs +1 -0
  36. package/dist/Button-tpOmP8iV.js +699 -0
  37. package/dist/ButtonSet-BV76HHgD.js +67 -0
  38. package/dist/ButtonSet-Bj9mIOW2.cjs +1 -0
  39. package/dist/Calendar-Bf0Nk0rA.js +153 -0
  40. package/dist/Calendar-D9J17bTp.cjs +1 -0
  41. package/dist/Card-C6KAn4tN.cjs +1 -0
  42. package/dist/Card-qNem4s60.js +162 -0
  43. package/dist/{Checkbox-DXQpih7I.js → Checkbox-BgXXVsCC.js} +1 -1
  44. package/dist/{Checkbox-7JJdh4sN.cjs → Checkbox-DPPln6oG.cjs} +1 -1
  45. package/dist/{CheckboxGroup-B8T3zLQC.cjs → CheckboxGroup-B2a3ezEK.cjs} +1 -1
  46. package/dist/{CheckboxGroup-BHn1hpzh.js → CheckboxGroup-Ck1ylAX9.js} +3 -3
  47. package/dist/ChipGroup-CVDk4ElV.js +74 -0
  48. package/dist/ChipGroup-DojKPHhq.cjs +1 -0
  49. package/dist/CloseButton-9TTFHFmx.cjs +1 -0
  50. package/dist/CloseButton-CdH12Hdn.js +48 -0
  51. package/dist/{ColorStrip-BW1nFTja.js → ColorStrip-CuF9ZGoO.js} +2 -2
  52. package/dist/{ColorStrip-AEg8dQbl.cjs → ColorStrip-bpguV5b2.cjs} +1 -1
  53. package/dist/CommandPalette-CCEzVWfb.cjs +1 -0
  54. package/dist/{CommandPalette-CD75Qytr.js → CommandPalette-D1DuzaA1.js} +100 -85
  55. package/dist/Confirm-BQxQlmjs.cjs +1 -0
  56. package/dist/Confirm-DLhI3VVh.js +331 -0
  57. package/dist/{ContainedListItem-Dj7TcGpO.cjs → ContainedListItem-DjHEyhf8.cjs} +1 -1
  58. package/dist/{ContainedListItem-CSE8d5M6.js → ContainedListItem-DtTZOm-_.js} +1 -1
  59. package/dist/ContentSwitcher-B-PUG0FE.js +99 -0
  60. package/dist/ContentSwitcher-CYSF2B-a.cjs +1 -0
  61. package/dist/CopyButton-CQ9tcyfs.js +60 -0
  62. package/dist/CopyButton-DRvJ4rf5.cjs +1 -0
  63. package/dist/DataTable-CHztTxz1.cjs +1 -0
  64. package/dist/DataTable-Dp3WZihu.js +545 -0
  65. package/dist/DatePicker-BLRQEI-6.js +755 -0
  66. package/dist/DatePicker-CJlffHeM.cjs +1 -0
  67. package/dist/FileUploader-UzgK5RKz.cjs +1 -0
  68. package/dist/FileUploader-dzVu4iSo.js +195 -0
  69. package/dist/FloatingToolbar-BTmWtGU7.js +116 -0
  70. package/dist/FloatingToolbar-DDCJuaq0.cjs +1 -0
  71. package/dist/{Form-D6rgkJ_Y.cjs → Form-D2KHlP7N.cjs} +1 -1
  72. package/dist/{Form-1UVOFWaf.js → Form-igwYeEVI.js} +1 -1
  73. package/dist/{GanttChart-B_LqsmcR.cjs → GanttChart-ClFarMf-.cjs} +1 -1
  74. package/dist/{GanttChart-cZguVXW8.js → GanttChart-N05mLdsn.js} +3 -3
  75. package/dist/{ImageCropper-CJ2mCj9z.cjs → ImageCropper-CoYR_Hhy.cjs} +1 -1
  76. package/dist/{ImageCropper-BFKMYthJ.js → ImageCropper-wQknqxNK.js} +2 -2
  77. package/dist/ImagePicker-Dhj01jq7.cjs +1 -0
  78. package/dist/ImagePicker-zkoay3zZ.js +171 -0
  79. package/dist/InfoHint-BEzkNQTM.cjs +1 -0
  80. package/dist/InfoHint-BlHxrTw6.js +178 -0
  81. package/dist/InlineEdit-DBMKJ3xP.cjs +1 -0
  82. package/dist/InlineEdit-Y8i0ibjH.js +117 -0
  83. package/dist/{InlineLoading-D8T0WO05.js → InlineLoading-CDJ_ZJ6v.js} +1 -1
  84. package/dist/{InlineLoading-CB_1PwMx.cjs → InlineLoading-DKCzcjZJ.cjs} +1 -1
  85. package/dist/InputGroup-DIAJy1Sv.cjs +1 -0
  86. package/dist/InputGroup-DQxpFFlP.js +86 -0
  87. package/dist/InputGroup.context-BTt6zUkj.cjs +1 -0
  88. package/dist/InputGroup.context-CJAWx5GI.js +16 -0
  89. package/dist/{InterpolationChart-CttBiNWU.js → InterpolationChart-BX8-UOeZ.js} +3 -3
  90. package/dist/{InterpolationChart-CYWJFUcs.cjs → InterpolationChart-DaqKUIWi.cjs} +1 -1
  91. package/dist/{LineChart-DNDSJQrB.cjs → LineChart-CGXpi9l8.cjs} +1 -1
  92. package/dist/{LineChart-J8gCM2Ba.js → LineChart-CplGrv8-.js} +4 -4
  93. package/dist/Menu-CcQpTOd3.js +189 -0
  94. package/dist/Menu-SlBztEy3.cjs +1 -0
  95. package/dist/{MenuBarItem-B8H9KfFo.cjs → MenuBarItem-BIDXX-uX.cjs} +1 -1
  96. package/dist/{MenuBarItem-BLdVIz0j.js → MenuBarItem-BlT1hN-b.js} +1 -1
  97. package/dist/Modal-BSGKOUi_.js +223 -0
  98. package/dist/Modal-D0hGHXic.cjs +1 -0
  99. package/dist/NotificationCenter-_CK8Eejg.js +587 -0
  100. package/dist/NotificationCenter-xg0ZCegj.cjs +1 -0
  101. package/dist/NumberInput-CcXqTINb.cjs +1 -0
  102. package/dist/NumberInput-DfrhQayO.js +383 -0
  103. package/dist/OverflowMenu-BlZ_wEja.js +124 -0
  104. package/dist/OverflowMenu-CaC5E0Oy.cjs +1 -0
  105. package/dist/{PageHeader-BVcTzPcW.cjs → PageHeader-2jBgITYE.cjs} +1 -1
  106. package/dist/{PageHeader-CFMhwRcw.js → PageHeader-DgjItuag.js} +2 -2
  107. package/dist/{Pagination-VmE04nzc.cjs → Pagination-B1km1o28.cjs} +1 -1
  108. package/dist/{Pagination-zTp1lrSP.js → Pagination-DA1Nglqx.js} +26 -26
  109. package/dist/{Panel-7qPoq2lb.cjs → Panel-NC6_ZogV.cjs} +1 -1
  110. package/dist/{Panel-D5OHjaTP.js → Panel-zyzu638n.js} +1 -1
  111. package/dist/{PieChart-Ct8oicOS.cjs → PieChart-DQhs44eH.cjs} +1 -1
  112. package/dist/{PieChart-CAB3b8LE.js → PieChart-D_02nX0-.js} +3 -3
  113. package/dist/{PrimaryActionScope-B7VLsHzT.cjs → PrimaryActionScope-Dp2gvqwk.cjs} +1 -1
  114. package/dist/{PrimaryActionScope-CRdjZE0V.js → PrimaryActionScope-sogYOZXZ.js} +1 -1
  115. package/dist/{ProgressBar-DK-j6Bzv.js → ProgressBar-Bp-pe6sU.js} +2 -2
  116. package/dist/{ProgressBar-CfJJf7Sc.cjs → ProgressBar-z912Ppfm.cjs} +1 -1
  117. package/dist/{Radio-CWWt_o_F.js → Radio-DcMkavI8.js} +2 -2
  118. package/dist/{Radio-D0YjKuB2.cjs → Radio-DuvSK9tl.cjs} +1 -1
  119. package/dist/Search-BUgIh9TX.js +130 -0
  120. package/dist/Search-D4SG2q3c.cjs +1 -0
  121. package/dist/Select-Cf0T4gIu.js +604 -0
  122. package/dist/Select-DhwcDMnf.cjs +1 -0
  123. package/dist/Shell-B2y5hn9K.cjs +1 -0
  124. package/dist/Shell-Bh6s0T89.js +536 -0
  125. package/dist/ShellPanel-BDE6Y773.cjs +1 -0
  126. package/dist/ShellPanel-CB71IKMY.js +89 -0
  127. package/dist/{SidebarCollapseToggle-C6aLQTYv.cjs → SidebarCollapseToggle-CqVURaqs.cjs} +1 -1
  128. package/dist/{SidebarCollapseToggle-D5yQ-8Vu.js → SidebarCollapseToggle-Dm4QMGpc.js} +2 -2
  129. package/dist/{SidebarHeaderToggle-Bdh1Z9aF.cjs → SidebarHeaderToggle-KW1yBlpF.cjs} +1 -1
  130. package/dist/{SidebarHeaderToggle-C-QIOLnU.js → SidebarHeaderToggle-daU1HfJH.js} +3 -3
  131. package/dist/Skeleton-CMuZJ1dR.cjs +1 -0
  132. package/dist/{Skeleton-C1e02dcW.js → Skeleton-Hmb5a2G_.js} +48 -31
  133. package/dist/{Slider-BaM5cclm.cjs → Slider-D9glvyrU.cjs} +1 -1
  134. package/dist/{Slider-BAXKJCNG.js → Slider-D9hgB8GJ.js} +4 -4
  135. package/dist/{Spinner-PT95bjWq.cjs → Spinner-BTN06wsE.cjs} +1 -1
  136. package/dist/{Spinner-CbBPddUx.js → Spinner-C3MeCm2k.js} +1 -1
  137. package/dist/{Stat-C9XaqyaG.cjs → Stat-BoQUn69z.cjs} +1 -1
  138. package/dist/{Stat-DJJln4rH.js → Stat-Bz0NCLTm.js} +2 -2
  139. package/dist/{Stepper-DV0q0Dfv.cjs → Stepper-BLyPFPge.cjs} +1 -1
  140. package/dist/{Stepper-B4xqkWXg.js → Stepper-BXPgrQE8.js} +1 -1
  141. package/dist/{StepperStep-iGyGKnQL.cjs → StepperStep-DGeyZQXY.cjs} +1 -1
  142. package/dist/{StepperStep-BYhlgeb1.js → StepperStep-DLr_ctr4.js} +1 -1
  143. package/dist/SuggestionList-DjtF5POh.cjs +1 -0
  144. package/dist/SuggestionList-SYGj7Sjv.js +225 -0
  145. package/dist/{Switch-D3j7PPhY.cjs → Switch-CQj6AsQh.cjs} +1 -1
  146. package/dist/{Switch-CbYMiEbQ.js → Switch-CqLfdT_m.js} +2 -2
  147. package/dist/{TableOfContents-CM0HKSde.js → TableOfContents-BIzH0Twf.js} +24 -34
  148. package/dist/{TableOfContents-By2Non4K.cjs → TableOfContents-Ct-Kwm8X.cjs} +1 -1
  149. package/dist/{Tabs--lz44FBk.js → Tabs-B_bsdxWy.js} +1 -1
  150. package/dist/{Tabs-DKikiz0_.cjs → Tabs-CTMUPND5.cjs} +1 -1
  151. package/dist/TextInput-BM2Zc2_R.cjs +2 -0
  152. package/dist/TextInput-DVpNJNwY.js +406 -0
  153. package/dist/Toast-BaMGYx8-.js +118 -0
  154. package/dist/Toast-BvZywdtO.cjs +1 -0
  155. package/dist/{Toaster-CJMQM8JU.cjs → Toaster-CYSWYmUm.cjs} +1 -1
  156. package/dist/{Toaster-DxBW9XQ0.js → Toaster-DtUkjQM_.js} +1 -1
  157. package/dist/Toolbar-BmJeXz4C.cjs +1 -0
  158. package/dist/Toolbar-tOeTdj8a.js +48 -0
  159. package/dist/Toolbar.context-Bli1SqM3.js +4 -0
  160. package/dist/Toolbar.context-D3Uj5o0_.cjs +1 -0
  161. package/dist/{Tree-DP2NPXOL.cjs → Tree-CeXSIcpy.cjs} +1 -1
  162. package/dist/{Tree-CkcFwDr7.js → Tree-RRVk_0QJ.js} +1 -1
  163. package/dist/{TreeNode-DCnlEEpj.js → TreeNode-D9fc2RE_.js} +1 -1
  164. package/dist/{TreeNode-CtklZefA.cjs → TreeNode-z6APXuvr.cjs} +1 -1
  165. package/dist/UserMenu-BGIIKwi6.cjs +1 -0
  166. package/dist/{UserMenu-CWRMaPGO.js → UserMenu-GGR8K7gP.js} +109 -102
  167. package/dist/Video-BxNkDWqi.cjs +1 -0
  168. package/dist/Video-DD01piHm.js +106 -0
  169. package/dist/Walkthrough-C_5h67cq.cjs +1 -0
  170. package/dist/Walkthrough-DpxYuLMU.js +333 -0
  171. package/dist/all.cjs +1 -1
  172. package/dist/all.mjs +271 -253
  173. package/dist/component-styles.json +88 -2
  174. package/dist/components/AccordionItem.cjs +1 -1
  175. package/dist/components/AccordionItem.mjs +1 -1
  176. package/dist/components/AccordionItem.vue.d.ts.map +1 -1
  177. package/dist/components/ActionGroup.cjs +1 -1
  178. package/dist/components/ActionGroup.d.ts +41 -9
  179. package/dist/components/ActionGroup.mjs +1 -1
  180. package/dist/components/ActionGroup.vue.d.ts +2 -2
  181. package/dist/components/ActionGroup.vue.d.ts.map +1 -1
  182. package/dist/components/AiLabel.cjs +1 -1
  183. package/dist/components/AiLabel.mjs +1 -1
  184. package/dist/components/AiProvider.cjs +1 -1
  185. package/dist/components/AiProvider.mjs +1 -1
  186. package/dist/components/AiUsage.cjs +1 -1
  187. package/dist/components/AiUsage.mjs +1 -1
  188. package/dist/components/BackToTop.cjs +1 -1
  189. package/dist/components/BackToTop.mjs +1 -1
  190. package/dist/components/BackToTop.vue.d.ts.map +1 -1
  191. package/dist/components/Badge.cjs +1 -1
  192. package/dist/components/Badge.mjs +1 -1
  193. package/dist/components/Banner.cjs +1 -1
  194. package/dist/components/Banner.mjs +1 -1
  195. package/dist/components/Banner.vue.d.ts.map +1 -1
  196. package/dist/components/BatchActions.cjs +1 -0
  197. package/dist/components/BatchActions.d.ts +43 -0
  198. package/dist/components/BatchActions.mjs +2 -0
  199. package/dist/components/BatchActions.vue.d.ts +30 -0
  200. package/dist/components/BatchActions.vue.d.ts.map +1 -0
  201. package/dist/components/Blueprint.cjs +1 -1
  202. package/dist/components/Blueprint.mjs +1 -1
  203. package/dist/components/Blueprint.vue.d.ts +2 -2
  204. package/dist/components/BlueprintBackground.cjs +1 -1
  205. package/dist/components/BlueprintBackground.mjs +1 -1
  206. package/dist/components/BlueprintCard.cjs +1 -1
  207. package/dist/components/BlueprintCard.mjs +1 -1
  208. package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
  209. package/dist/components/BlueprintControls.cjs +1 -1
  210. package/dist/components/BlueprintControls.mjs +1 -1
  211. package/dist/components/BlueprintControls.vue.d.ts.map +1 -1
  212. package/dist/components/BlueprintMinimap.cjs +1 -1
  213. package/dist/components/BlueprintMinimap.mjs +1 -1
  214. package/dist/components/Board.cjs +1 -1
  215. package/dist/components/Board.mjs +1 -1
  216. package/dist/components/Board.vue.d.ts +2 -2
  217. package/dist/components/Board.vue.d.ts.map +1 -1
  218. package/dist/components/BottomPanel.cjs +1 -1
  219. package/dist/components/BottomPanel.mjs +1 -1
  220. package/dist/components/BottomPanel.vue.d.ts +2 -2
  221. package/dist/components/BottomPanel.vue.d.ts.map +1 -1
  222. package/dist/components/Breadcrumbs.cjs +1 -1
  223. package/dist/components/Breadcrumbs.mjs +1 -1
  224. package/dist/components/Breadcrumbs.vue.d.ts.map +1 -1
  225. package/dist/components/Briefing.cjs +1 -1
  226. package/dist/components/Briefing.mjs +1 -1
  227. package/dist/components/BriefingDestination.cjs +1 -1
  228. package/dist/components/BriefingDestination.mjs +1 -1
  229. package/dist/components/Button.cjs +1 -1
  230. package/dist/components/Button.d.ts +38 -1
  231. package/dist/components/Button.mjs +1 -1
  232. package/dist/components/Button.vue.d.ts +4 -0
  233. package/dist/components/Button.vue.d.ts.map +1 -1
  234. package/dist/components/ButtonSet.cjs +1 -0
  235. package/dist/components/ButtonSet.d.ts +43 -0
  236. package/dist/components/ButtonSet.mjs +2 -0
  237. package/dist/components/ButtonSet.vue.d.ts +11 -0
  238. package/dist/components/ButtonSet.vue.d.ts.map +1 -0
  239. package/dist/components/Calendar.cjs +1 -1
  240. package/dist/components/Calendar.mjs +1 -1
  241. package/dist/components/Calendar.vue.d.ts +2 -2
  242. package/dist/components/Calendar.vue.d.ts.map +1 -1
  243. package/dist/components/Card.cjs +1 -1
  244. package/dist/components/Card.mjs +1 -1
  245. package/dist/components/Card.vue.d.ts +11 -10
  246. package/dist/components/Card.vue.d.ts.map +1 -1
  247. package/dist/components/CardGrid.cjs +1 -1
  248. package/dist/components/CardGrid.d.ts +15 -0
  249. package/dist/components/CardGrid.mjs +1 -1
  250. package/dist/components/Charts/BarChart.cjs +1 -1
  251. package/dist/components/Charts/BarChart.mjs +1 -1
  252. package/dist/components/Charts/GanttChart.cjs +1 -1
  253. package/dist/components/Charts/GanttChart.mjs +1 -1
  254. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  255. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  256. package/dist/components/Charts/LineChart.cjs +1 -1
  257. package/dist/components/Charts/LineChart.mjs +1 -1
  258. package/dist/components/Charts/PieChart.cjs +1 -1
  259. package/dist/components/Charts/PieChart.mjs +1 -1
  260. package/dist/components/Charts/Sparkline.cjs +1 -1
  261. package/dist/components/Charts/Sparkline.mjs +1 -1
  262. package/dist/components/Checkbox.cjs +1 -1
  263. package/dist/components/Checkbox.mjs +1 -1
  264. package/dist/components/CheckboxGroup.cjs +1 -1
  265. package/dist/components/CheckboxGroup.mjs +1 -1
  266. package/dist/components/ChipGroup.cjs +1 -0
  267. package/dist/components/ChipGroup.d.ts +29 -0
  268. package/dist/components/ChipGroup.mjs +2 -0
  269. package/dist/components/ChipGroup.vue.d.ts +14 -0
  270. package/dist/components/ChipGroup.vue.d.ts.map +1 -0
  271. package/dist/components/CloseButton.cjs +1 -0
  272. package/dist/components/CloseButton.d.ts +26 -0
  273. package/dist/components/CloseButton.mjs +2 -0
  274. package/dist/components/CloseButton.vue.d.ts +19 -0
  275. package/dist/components/CloseButton.vue.d.ts.map +1 -0
  276. package/dist/components/ColorStrip.cjs +1 -1
  277. package/dist/components/ColorStrip.mjs +1 -1
  278. package/dist/components/CommandPalette.cjs +1 -1
  279. package/dist/components/CommandPalette.mjs +1 -1
  280. package/dist/components/CommandPalette.vue.d.ts.map +1 -1
  281. package/dist/components/Confirm.cjs +1 -1
  282. package/dist/components/Confirm.d.ts +7 -5
  283. package/dist/components/Confirm.mjs +1 -1
  284. package/dist/components/Confirm.vue.d.ts +1 -1
  285. package/dist/components/Confirm.vue.d.ts.map +1 -1
  286. package/dist/components/ContainedList.cjs +1 -1
  287. package/dist/components/ContainedList.mjs +1 -1
  288. package/dist/components/ContainedListItem.cjs +1 -1
  289. package/dist/components/ContainedListItem.mjs +1 -1
  290. package/dist/components/ContentSwitcher.cjs +1 -0
  291. package/dist/components/ContentSwitcher.d.ts +36 -0
  292. package/dist/components/ContentSwitcher.mjs +2 -0
  293. package/dist/components/ContentSwitcher.vue.d.ts +13 -0
  294. package/dist/components/ContentSwitcher.vue.d.ts.map +1 -0
  295. package/dist/components/CopyButton.cjs +1 -1
  296. package/dist/components/CopyButton.mjs +1 -1
  297. package/dist/components/CopyButton.vue.d.ts.map +1 -1
  298. package/dist/components/DataTable.cjs +1 -1
  299. package/dist/components/DataTable.d.ts +12 -1
  300. package/dist/components/DataTable.mjs +1 -1
  301. package/dist/components/DataTable.vue.d.ts +1 -0
  302. package/dist/components/DataTable.vue.d.ts.map +1 -1
  303. package/dist/components/DatePicker.cjs +1 -1
  304. package/dist/components/DatePicker.mjs +1 -1
  305. package/dist/components/DatePicker.vue.d.ts +2 -2
  306. package/dist/components/DatePicker.vue.d.ts.map +1 -1
  307. package/dist/components/DefinitionList.cjs +1 -1
  308. package/dist/components/DefinitionList.mjs +1 -1
  309. package/dist/components/DefinitionListItem.cjs +1 -1
  310. package/dist/components/DefinitionListItem.mjs +1 -1
  311. package/dist/components/DragHandle.cjs +1 -1
  312. package/dist/components/DragHandle.mjs +1 -1
  313. package/dist/components/EmptyState.cjs +1 -1
  314. package/dist/components/EmptyState.mjs +1 -1
  315. package/dist/components/Field.cjs +1 -1
  316. package/dist/components/Field.mjs +1 -1
  317. package/dist/components/FileUploader.cjs +1 -1
  318. package/dist/components/FileUploader.mjs +1 -1
  319. package/dist/components/FileUploader.vue.d.ts.map +1 -1
  320. package/dist/components/Flag.cjs +1 -1
  321. package/dist/components/Flag.mjs +1 -1
  322. package/dist/components/FloatingToolbar.cjs +1 -1
  323. package/dist/components/FloatingToolbar.mjs +1 -1
  324. package/dist/components/FloatingToolbar.vue.d.ts +1 -3
  325. package/dist/components/FloatingToolbar.vue.d.ts.map +1 -1
  326. package/dist/components/Form.cjs +1 -1
  327. package/dist/components/Form.mjs +1 -1
  328. package/dist/components/Grid.cjs +1 -1
  329. package/dist/components/Grid.mjs +1 -1
  330. package/dist/components/Grid.vue.d.ts +1 -1
  331. package/dist/components/ImageCropper.cjs +1 -1
  332. package/dist/components/ImageCropper.mjs +1 -1
  333. package/dist/components/ImagePicker.cjs +1 -1
  334. package/dist/components/ImagePicker.mjs +1 -1
  335. package/dist/components/ImagePicker.vue.d.ts.map +1 -1
  336. package/dist/components/InfoHint.cjs +1 -1
  337. package/dist/components/InfoHint.mjs +1 -1
  338. package/dist/components/InfoHint.vue.d.ts.map +1 -1
  339. package/dist/components/InlineEdit.cjs +1 -1
  340. package/dist/components/InlineEdit.mjs +1 -1
  341. package/dist/components/InlineEdit.vue.d.ts.map +1 -1
  342. package/dist/components/InlineLoading.cjs +1 -1
  343. package/dist/components/InlineLoading.mjs +1 -1
  344. package/dist/components/InputGroup.cjs +1 -0
  345. package/dist/components/InputGroup.context.d.ts +50 -0
  346. package/dist/components/InputGroup.context.d.ts.map +1 -0
  347. package/dist/components/InputGroup.d.ts +37 -0
  348. package/dist/components/InputGroup.mjs +2 -0
  349. package/dist/components/InputGroup.vue.d.ts +27 -0
  350. package/dist/components/InputGroup.vue.d.ts.map +1 -0
  351. package/dist/components/JsonTree.cjs +1 -1
  352. package/dist/components/JsonTree.mjs +1 -1
  353. package/dist/components/Label.cjs +1 -1
  354. package/dist/components/Label.mjs +1 -1
  355. package/dist/components/Layer.cjs +1 -1
  356. package/dist/components/Layer.mjs +1 -1
  357. package/dist/components/Menu.cjs +1 -1
  358. package/dist/components/Menu.d.ts +11 -0
  359. package/dist/components/Menu.mjs +1 -1
  360. package/dist/components/Menu.vue.d.ts +2 -0
  361. package/dist/components/Menu.vue.d.ts.map +1 -1
  362. package/dist/components/MenuBar.cjs +1 -1
  363. package/dist/components/MenuBar.mjs +1 -1
  364. package/dist/components/MenuBarItem.cjs +1 -1
  365. package/dist/components/MenuBarItem.mjs +1 -1
  366. package/dist/components/MenuDivider.cjs +1 -1
  367. package/dist/components/MenuDivider.mjs +1 -1
  368. package/dist/components/Message.cjs +1 -1
  369. package/dist/components/Message.mjs +1 -1
  370. package/dist/components/Modal.cjs +1 -1
  371. package/dist/components/Modal.d.ts +11 -7
  372. package/dist/components/Modal.mjs +1 -1
  373. package/dist/components/Modal.vue.d.ts +3 -3
  374. package/dist/components/Modal.vue.d.ts.map +1 -1
  375. package/dist/components/NotificationCenter.cjs +1 -1
  376. package/dist/components/NotificationCenter.d.ts +2 -1
  377. package/dist/components/NotificationCenter.mjs +1 -1
  378. package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
  379. package/dist/components/NotificationCenterItem.cjs +1 -1
  380. package/dist/components/NotificationCenterItem.mjs +1 -1
  381. package/dist/components/NubiscoMark.cjs +1 -1
  382. package/dist/components/NubiscoMark.mjs +1 -1
  383. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  384. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  385. package/dist/components/NumberInput.cjs +1 -1
  386. package/dist/components/NumberInput.mjs +1 -1
  387. package/dist/components/NumberInput.vue.d.ts.map +1 -1
  388. package/dist/components/OverflowMenu.cjs +1 -0
  389. package/dist/components/OverflowMenu.d.ts +41 -0
  390. package/dist/components/OverflowMenu.mjs +2 -0
  391. package/dist/components/OverflowMenu.vue.d.ts +36 -0
  392. package/dist/components/OverflowMenu.vue.d.ts.map +1 -0
  393. package/dist/components/PageHeader.cjs +1 -1
  394. package/dist/components/PageHeader.mjs +1 -1
  395. package/dist/components/PageLayout.cjs +1 -1
  396. package/dist/components/PageLayout.mjs +1 -1
  397. package/dist/components/Pagination.cjs +1 -1
  398. package/dist/components/Pagination.mjs +1 -1
  399. package/dist/components/Panel.cjs +1 -1
  400. package/dist/components/Panel.mjs +1 -1
  401. package/dist/components/ProgressBar.cjs +1 -1
  402. package/dist/components/ProgressBar.mjs +1 -1
  403. package/dist/components/Radio.cjs +1 -1
  404. package/dist/components/Radio.mjs +1 -1
  405. package/dist/components/ReorderList.cjs +1 -1
  406. package/dist/components/ReorderList.mjs +1 -1
  407. package/dist/components/Search.cjs +1 -0
  408. package/dist/components/Search.d.ts +36 -0
  409. package/dist/components/Search.mjs +2 -0
  410. package/dist/components/Search.vue.d.ts +32 -0
  411. package/dist/components/Search.vue.d.ts.map +1 -0
  412. package/dist/components/Select.cjs +1 -1
  413. package/dist/components/Select.d.ts +4 -1
  414. package/dist/components/Select.mjs +1 -1
  415. package/dist/components/Select.vue.d.ts +6 -6
  416. package/dist/components/Select.vue.d.ts.map +1 -1
  417. package/dist/components/Shell.cjs +1 -1
  418. package/dist/components/Shell.d.ts +1 -0
  419. package/dist/components/Shell.mjs +1 -1
  420. package/dist/components/Shell.vue.d.ts +2 -2
  421. package/dist/components/Shell.vue.d.ts.map +1 -1
  422. package/dist/components/ShellPanel.cjs +1 -1
  423. package/dist/components/ShellPanel.mjs +1 -1
  424. package/dist/components/ShellPanel.vue.d.ts +2 -2
  425. package/dist/components/ShellPanel.vue.d.ts.map +1 -1
  426. package/dist/components/SidebarBrand.cjs +1 -1
  427. package/dist/components/SidebarBrand.mjs +1 -1
  428. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  429. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  430. package/dist/components/SidebarHeaderToggle.cjs +1 -1
  431. package/dist/components/SidebarHeaderToggle.mjs +1 -1
  432. package/dist/components/SidebarHeaderToggle.vue.d.ts.map +1 -1
  433. package/dist/components/SidebarLink.cjs +1 -1
  434. package/dist/components/SidebarLink.mjs +1 -1
  435. package/dist/components/SidebarMenu.cjs +1 -1
  436. package/dist/components/SidebarMenu.mjs +1 -1
  437. package/dist/components/SidebarMenuGroup.cjs +1 -1
  438. package/dist/components/SidebarMenuGroup.mjs +1 -1
  439. package/dist/components/SidebarMenuItem.cjs +1 -1
  440. package/dist/components/SidebarMenuItem.mjs +1 -1
  441. package/dist/components/SidebarStatus.cjs +1 -1
  442. package/dist/components/SidebarStatus.mjs +1 -1
  443. package/dist/components/Skeleton.cjs +1 -1
  444. package/dist/components/Skeleton.d.ts +20 -1
  445. package/dist/components/Skeleton.mjs +1 -1
  446. package/dist/components/Skeleton.vue.d.ts +3 -0
  447. package/dist/components/Skeleton.vue.d.ts.map +1 -1
  448. package/dist/components/Slider.cjs +1 -1
  449. package/dist/components/Slider.mjs +1 -1
  450. package/dist/components/Spinner.cjs +1 -1
  451. package/dist/components/Spinner.mjs +1 -1
  452. package/dist/components/Stat.cjs +1 -1
  453. package/dist/components/Stat.mjs +1 -1
  454. package/dist/components/Stepper.cjs +1 -1
  455. package/dist/components/Stepper.mjs +1 -1
  456. package/dist/components/StepperStep.cjs +1 -1
  457. package/dist/components/StepperStep.mjs +1 -1
  458. package/dist/components/StructuredList.cjs +1 -1
  459. package/dist/components/StructuredList.mjs +1 -1
  460. package/dist/components/StructuredList.vue.d.ts +2 -2
  461. package/dist/components/Submenu.cjs +1 -1
  462. package/dist/components/Submenu.mjs +1 -1
  463. package/dist/components/SuggestionList.cjs +1 -1
  464. package/dist/components/SuggestionList.d.ts +8 -0
  465. package/dist/components/SuggestionList.mjs +1 -1
  466. package/dist/components/SuggestionList.vue.d.ts +3 -0
  467. package/dist/components/SuggestionList.vue.d.ts.map +1 -1
  468. package/dist/components/Switch.cjs +1 -1
  469. package/dist/components/Switch.mjs +1 -1
  470. package/dist/components/TableOfContents.cjs +1 -1
  471. package/dist/components/TableOfContents.mjs +1 -1
  472. package/dist/components/TableOfContents.vue.d.ts.map +1 -1
  473. package/dist/components/Tabs.cjs +1 -1
  474. package/dist/components/Tabs.mjs +1 -1
  475. package/dist/components/TextInput.cjs +1 -1
  476. package/dist/components/TextInput.mjs +1 -1
  477. package/dist/components/TextInput.vue.d.ts +20 -4
  478. package/dist/components/TextInput.vue.d.ts.map +1 -1
  479. package/dist/components/Toast.cjs +1 -1
  480. package/dist/components/Toast.mjs +1 -1
  481. package/dist/components/Toast.vue.d.ts +4 -1
  482. package/dist/components/Toast.vue.d.ts.map +1 -1
  483. package/dist/components/Toaster.cjs +1 -1
  484. package/dist/components/Toaster.mjs +1 -1
  485. package/dist/components/Toolbar.cjs +1 -0
  486. package/dist/components/Toolbar.context.d.ts +22 -0
  487. package/dist/components/Toolbar.context.d.ts.map +1 -0
  488. package/dist/components/Toolbar.d.ts +26 -0
  489. package/dist/components/Toolbar.mjs +2 -0
  490. package/dist/components/Toolbar.vue.d.ts +24 -0
  491. package/dist/components/Toolbar.vue.d.ts.map +1 -0
  492. package/dist/components/Tree.cjs +1 -1
  493. package/dist/components/Tree.mjs +1 -1
  494. package/dist/components/TreeNode.cjs +1 -1
  495. package/dist/components/TreeNode.mjs +1 -1
  496. package/dist/components/TreeNode.vue.d.ts +1 -1
  497. package/dist/components/UserMenu.cjs +1 -1
  498. package/dist/components/UserMenu.mjs +1 -1
  499. package/dist/components/UserMenu.vue.d.ts.map +1 -1
  500. package/dist/components/Video.cjs +1 -1
  501. package/dist/components/Video.mjs +1 -1
  502. package/dist/components/Video.vue.d.ts.map +1 -1
  503. package/dist/components/Walkthrough.cjs +1 -1
  504. package/dist/components/Walkthrough.mjs +1 -1
  505. package/dist/components/Walkthrough.vue.d.ts.map +1 -1
  506. package/dist/components/Wireframe.cjs +1 -1
  507. package/dist/components/Wireframe.mjs +1 -1
  508. package/dist/components/index.d.ts.map +1 -1
  509. package/dist/components/manifest.d.ts +9 -0
  510. package/dist/components/manifest.d.ts.map +1 -1
  511. package/dist/components/manifest.js +9 -0
  512. package/dist/composables/useBlueprint.composable.cjs +1 -1
  513. package/dist/composables/useBlueprint.composable.mjs +1 -1
  514. package/dist/composables/useConfirm.composable.cjs +1 -1
  515. package/dist/composables/useConfirm.composable.mjs +3 -3
  516. package/dist/composables/useInlineLoading.composable.cjs +1 -1
  517. package/dist/composables/useInlineLoading.composable.mjs +1 -1
  518. package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
  519. package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
  520. package/dist/composables/useNbStrings.composable.cjs +1 -1
  521. package/dist/composables/useNbStrings.composable.d.ts +66 -0
  522. package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
  523. package/dist/composables/useNbStrings.composable.mjs +61 -0
  524. package/dist/composables/useRovingFocus.composable.cjs +1 -0
  525. package/dist/composables/useRovingFocus.composable.d.ts +22 -0
  526. package/dist/composables/useRovingFocus.composable.d.ts.map +1 -0
  527. package/dist/composables/useRovingFocus.composable.mjs +56 -0
  528. package/dist/directives/ToolTip.directive.d.ts +56 -0
  529. package/dist/directives/ToolTip.directive.d.ts.map +1 -1
  530. package/dist/global.d.ts +18 -0
  531. package/dist/index.cjs +1 -1
  532. package/dist/index.mjs +152 -143
  533. package/dist/main-Bo1B-xzL.cjs +4 -0
  534. package/dist/main-nO1LQzsc.js +744 -0
  535. package/dist/main.d.ts +21 -1
  536. package/dist/main.d.ts.map +1 -1
  537. package/dist/styles/AccordionItem.css +1 -1
  538. package/dist/styles/ActionGroup.css +1 -1
  539. package/dist/styles/Banner.css +1 -1
  540. package/dist/styles/BatchActions.css +1 -0
  541. package/dist/styles/BlueprintCard.css +1 -1
  542. package/dist/styles/BlueprintControls.css +1 -1
  543. package/dist/styles/Board.css +1 -1
  544. package/dist/styles/BottomPanel.css +1 -1
  545. package/dist/styles/Breadcrumbs.css +1 -1
  546. package/dist/styles/Button.css +1 -1
  547. package/dist/styles/ButtonSet.css +1 -0
  548. package/dist/styles/Calendar.css +1 -1
  549. package/dist/styles/Card.css +1 -1
  550. package/dist/styles/ChipGroup.css +1 -0
  551. package/dist/styles/CommandPalette.css +1 -1
  552. package/dist/styles/Confirm.css +1 -1
  553. package/dist/styles/ContentSwitcher.css +1 -0
  554. package/dist/styles/DataTable.css +1 -1
  555. package/dist/styles/DatePicker.css +1 -1
  556. package/dist/styles/FileUploader.css +1 -1
  557. package/dist/styles/FloatingToolbar.css +1 -1
  558. package/dist/styles/ImagePicker.css +1 -1
  559. package/dist/styles/InfoHint.css +1 -1
  560. package/dist/styles/InlineEdit.css +1 -1
  561. package/dist/styles/InputGroup.css +1 -0
  562. package/dist/styles/Modal.css +1 -1
  563. package/dist/styles/NotificationCenter.css +1 -1
  564. package/dist/styles/NumberInput.css +1 -1
  565. package/dist/styles/OverflowMenu.css +1 -0
  566. package/dist/styles/Pagination.css +1 -1
  567. package/dist/styles/Search.css +1 -0
  568. package/dist/styles/Select.css +1 -1
  569. package/dist/styles/Shell.css +1 -1
  570. package/dist/styles/ShellPanel.css +1 -1
  571. package/dist/styles/SidebarHeaderToggle.css +1 -1
  572. package/dist/styles/Skeleton.css +1 -1
  573. package/dist/styles/SuggestionList.css +1 -1
  574. package/dist/styles/TableOfContents.css +1 -1
  575. package/dist/styles/TextInput.css +1 -1
  576. package/dist/styles/Toast.css +1 -1
  577. package/dist/styles/Toolbar.css +1 -0
  578. package/dist/styles/UserMenu.css +1 -1
  579. package/dist/styles/Walkthrough.css +1 -1
  580. package/dist/ui.css +43 -35
  581. package/dist/utils/actionFit.helper.cjs +1 -0
  582. package/dist/utils/actionFit.helper.d.ts +20 -0
  583. package/dist/utils/actionFit.helper.d.ts.map +1 -0
  584. package/dist/utils/actionFit.helper.mjs +13 -0
  585. package/package.json +2 -2
  586. package/src/styles/_theme.scss +11 -4
  587. package/src/styles/logic/_field.scss +22 -0
  588. package/src/styles/logic/_focus.scss +20 -0
  589. package/src/styles/logic/index.scss +1 -0
  590. package/src/utils/actionFit.helper.ts +40 -0
  591. package/dist/AccordionItem-DFwj28eL.js +0 -118
  592. package/dist/AccordionItem-DhZD2kJL.cjs +0 -1
  593. package/dist/ActionGroup-CJoBGUvw.js +0 -171
  594. package/dist/ActionGroup-CU9YQboQ.cjs +0 -1
  595. package/dist/BackToTop-C5gFfuu7.cjs +0 -1
  596. package/dist/BackToTop-DZhl6N_Q.js +0 -56
  597. package/dist/Banner-5uX-ujbu.js +0 -93
  598. package/dist/Banner-CiIQKSxv.cjs +0 -1
  599. package/dist/BlueprintControls-DnUoI9qp.cjs +0 -1
  600. package/dist/Board-BNB96CXm.cjs +0 -1
  601. package/dist/BottomPanel-CYxavAS0.cjs +0 -1
  602. package/dist/BottomPanel-vFcIk2nf.js +0 -115
  603. package/dist/Breadcrumbs-B-pjVWeD.js +0 -184
  604. package/dist/Breadcrumbs-CqDYLfIQ.cjs +0 -1
  605. package/dist/Button-C0N1cyOQ.cjs +0 -1
  606. package/dist/Button-CuwzIVWv.js +0 -132
  607. package/dist/Calendar-Bbk7bPW1.cjs +0 -1
  608. package/dist/Calendar-EiqHtUG2.js +0 -155
  609. package/dist/Card-B5FTcFEQ.cjs +0 -1
  610. package/dist/Card-DUTWbKv7.js +0 -143
  611. package/dist/CommandPalette-C8-2XCrf.cjs +0 -1
  612. package/dist/Confirm-BA-t4jPF.cjs +0 -1
  613. package/dist/Confirm-MmMvMttu.js +0 -313
  614. package/dist/CopyButton-Bcc2BDJ8.js +0 -65
  615. package/dist/CopyButton-CwHAVKQ6.cjs +0 -1
  616. package/dist/DataTable-D4KrQH5E.js +0 -485
  617. package/dist/DataTable-DVJnvBQM.cjs +0 -1
  618. package/dist/DatePicker-BmuVSyZ3.cjs +0 -1
  619. package/dist/DatePicker-CagtB0Sd.js +0 -743
  620. package/dist/FileUploader-B9j-HmX3.js +0 -193
  621. package/dist/FileUploader-BolhAWrI.cjs +0 -1
  622. package/dist/FloatingToolbar-CYOuKLd7.js +0 -140
  623. package/dist/FloatingToolbar-DxUUozlf.cjs +0 -1
  624. package/dist/ImagePicker-CZEFzYC8.js +0 -171
  625. package/dist/ImagePicker-CebI8MDy.cjs +0 -1
  626. package/dist/InfoHint-DVrm41q9.js +0 -177
  627. package/dist/InfoHint-WYitTbYz.cjs +0 -1
  628. package/dist/InlineEdit-DViLVwtn.js +0 -116
  629. package/dist/InlineEdit-DfkmTudh.cjs +0 -1
  630. package/dist/Menu-CLDGxi-1.cjs +0 -1
  631. package/dist/Menu-C_UsGyKX.js +0 -177
  632. package/dist/Modal-1i_nDqvM.cjs +0 -1
  633. package/dist/Modal-CxIl02xU.js +0 -229
  634. package/dist/NotificationCenter-CXn7sGFw.cjs +0 -1
  635. package/dist/NotificationCenter-Cu_vs-jh.js +0 -584
  636. package/dist/NumberInput-CMxlZ54a.cjs +0 -1
  637. package/dist/NumberInput-Dy0leAIF.js +0 -324
  638. package/dist/Select-Bz4tf2H_.cjs +0 -1
  639. package/dist/Select-hL8I-aNK.js +0 -603
  640. package/dist/Shell-BxGBrQsM.js +0 -536
  641. package/dist/Shell-BzXh23BU.cjs +0 -1
  642. package/dist/ShellPanel-DzkkJYVd.js +0 -126
  643. package/dist/ShellPanel-XYKkAc5n.cjs +0 -1
  644. package/dist/Skeleton-CqZ9O0X0.cjs +0 -1
  645. package/dist/SuggestionList-BJjbVvt2.cjs +0 -1
  646. package/dist/SuggestionList-Bdx7CK__.js +0 -189
  647. package/dist/TextInput-BXyJQfGx.js +0 -348
  648. package/dist/TextInput-DKp819VS.cjs +0 -2
  649. package/dist/Toast-BKrvlON6.cjs +0 -1
  650. package/dist/Toast-fRHhhjZV.js +0 -115
  651. package/dist/UserMenu-GJHs1fKI.cjs +0 -1
  652. package/dist/Video-D1WOYCYH.cjs +0 -1
  653. package/dist/Video-DrDqaCXl.js +0 -104
  654. package/dist/Walkthrough-DXMDgB9t.cjs +0 -1
  655. package/dist/Walkthrough-D_vfYTWP.js +0 -327
  656. package/dist/main-BTximdIU.js +0 -1255
  657. package/dist/main-DkNxc78b.cjs +0 -4
  658. package/dist/motion-BjVtMTXD.cjs +0 -1
  659. package/dist/motion-C0h9XZQZ.js +0 -18
  660. /package/dist/{Badge-CfICqXrd.cjs → Badge-BYfdJcdD.cjs} +0 -0
  661. /package/dist/{Badge-BFsoJcCK.js → Badge-scjsdx_V.js} +0 -0
  662. /package/dist/{Blueprint.context-B3d5-4jD.cjs → Blueprint.context-BX56xsrT.cjs} +0 -0
  663. /package/dist/{Blueprint.context-B4bRLj7m.js → Blueprint.context-Bz6Jy1Ou.js} +0 -0
  664. /package/dist/{BlueprintBackground-5OOF-VpK.js → BlueprintBackground-DPjZeMwY.js} +0 -0
  665. /package/dist/{BlueprintBackground-D_JokLTK.cjs → BlueprintBackground-yHRGclEz.cjs} +0 -0
  666. /package/dist/{BlueprintMinimap-CACuVJqI.cjs → BlueprintMinimap-qskDNYyr.cjs} +0 -0
  667. /package/dist/{BlueprintMinimap-Ehrltju2.js → BlueprintMinimap-xnsyS1M8.js} +0 -0
  668. /package/dist/{Card.link-eRkbFiF1.cjs → Card.link-Bw2B_lPO.cjs} +0 -0
  669. /package/dist/{Card.link-CB8_CTbn.js → Card.link-CdvubtHJ.js} +0 -0
  670. /package/dist/{CardGrid-DzjiR2wg.cjs → CardGrid-DPaITpcU.cjs} +0 -0
  671. /package/dist/{CardGrid-BOhFOzTs.js → CardGrid-j0TFmVrQ.js} +0 -0
  672. /package/dist/{ChartLegend-C81jju4k.cjs → ChartLegend-COJeG-2B.cjs} +0 -0
  673. /package/dist/{ChartLegend-fsJqOyGj.js → ChartLegend-LDNukufA.js} +0 -0
  674. /package/dist/{CheckboxGroup.context-C8p21aqH.cjs → CheckboxGroup.context-ADwiY4gy.cjs} +0 -0
  675. /package/dist/{CheckboxGroup.context-Cu0BA648.js → CheckboxGroup.context-C1QB-Zsq.js} +0 -0
  676. /package/dist/{ContainedList-DV8kZgTS.cjs → ContainedList-CBWwEmoK.cjs} +0 -0
  677. /package/dist/{ContainedList-7uMU4e4Z.js → ContainedList-PUA2OJ08.js} +0 -0
  678. /package/dist/{DefinitionList-DIPobaPW.js → DefinitionList-BOVcW-V7.js} +0 -0
  679. /package/dist/{DefinitionList-BuRW4drr.cjs → DefinitionList-CndoLDLs.cjs} +0 -0
  680. /package/dist/{DefinitionListItem-CbVnrShi.js → DefinitionListItem-C3VrLhWY.js} +0 -0
  681. /package/dist/{DefinitionListItem-Bf9amK8a.cjs → DefinitionListItem-CLztc8mQ.cjs} +0 -0
  682. /package/dist/{DragHandle-snItY92k.cjs → DragHandle-Bz2N22Sm.cjs} +0 -0
  683. /package/dist/{DragHandle-dCNBfHJe.js → DragHandle-Cc7WrUj7.js} +0 -0
  684. /package/dist/{EmptyState-B8EM9ynK.cjs → EmptyState-Db0Zrrk2.cjs} +0 -0
  685. /package/dist/{EmptyState-D-fku2DD.js → EmptyState-DhlJV0C6.js} +0 -0
  686. /package/dist/{Field-3S8uGW95.cjs → Field-COMPegVv.cjs} +0 -0
  687. /package/dist/{Field-DK5iec3Z.js → Field-D12Dja-u.js} +0 -0
  688. /package/dist/{Flag-myXFwopO.js → Flag-DyDqHJy3.js} +0 -0
  689. /package/dist/{Flag-CNx_cE4Q.cjs → Flag-gM91kXTi.cjs} +0 -0
  690. /package/dist/{Grid-jlgLOwom.js → Grid-B7d8x0tA.js} +0 -0
  691. /package/dist/{Grid-C0muGlj3.cjs → Grid-BOtE_jXr.cjs} +0 -0
  692. /package/dist/{JsonTree-Bmj8WtzK.cjs → JsonTree-MjCO8_Xk.cjs} +0 -0
  693. /package/dist/{JsonTree-BWfMcWOV.js → JsonTree-VbXpLPoG.js} +0 -0
  694. /package/dist/{Label-CTOPIIbR.cjs → Label-CjxnZgNy.cjs} +0 -0
  695. /package/dist/{Label-BDMCrURR.js → Label-xwHw_UbN.js} +0 -0
  696. /package/dist/{Layer-BJeI6Q6N.js → Layer-Btb-b9Mk.js} +0 -0
  697. /package/dist/{Layer-D-MNrLiB.cjs → Layer-D0NqQYM0.cjs} +0 -0
  698. /package/dist/{MenuBar-aLDr7-eJ.cjs → MenuBar-BVgGbppN.cjs} +0 -0
  699. /package/dist/{MenuBar-DyJufs5b.js → MenuBar-M2eiYZG0.js} +0 -0
  700. /package/dist/{MenuDivider-aZIXvYsH.js → MenuDivider-B3tNv2aj.js} +0 -0
  701. /package/dist/{MenuDivider-D75yF8o8.cjs → MenuDivider-BSMtwoUU.cjs} +0 -0
  702. /package/dist/{Message-Bija1nMK.cjs → Message-BJO4MjiQ.cjs} +0 -0
  703. /package/dist/{Message-BONOwoVY.js → Message-DCeg8qsC.js} +0 -0
  704. /package/dist/{NotificationCenterItem-zdOMnxv1.cjs → NotificationCenterItem-D0agavaK.cjs} +0 -0
  705. /package/dist/{NotificationCenterItem-BbbBFYEu.js → NotificationCenterItem-O6SR_6KR.js} +0 -0
  706. /package/dist/{NubiscoMark-Cf7Ek83E.cjs → NubiscoMark-3StsXBoJ.cjs} +0 -0
  707. /package/dist/{NubiscoMark-BLT8ULAl.js → NubiscoMark-XJWPWIc0.js} +0 -0
  708. /package/dist/{NubiscoPlatformMark-Dca7vi6H.js → NubiscoPlatformMark-BgQLjI89.js} +0 -0
  709. /package/dist/{NubiscoPlatformMark-CXMSQDYh.cjs → NubiscoPlatformMark-D8WIp4On.cjs} +0 -0
  710. /package/dist/{PageLayout-DQKfOSQq.js → PageLayout-BMcT2mzU.js} +0 -0
  711. /package/dist/{PageLayout-Dw4JYS3k.cjs → PageLayout-DHi1w1PD.cjs} +0 -0
  712. /package/dist/{PrimaryAction.context-BkYkcMlm.js → PrimaryAction.context-DZUcR5ER.js} +0 -0
  713. /package/dist/{PrimaryAction.context-2v_jcQAo.cjs → PrimaryAction.context-DnzRVqGH.cjs} +0 -0
  714. /package/dist/{ReorderList-B1CYGR0e.js → ReorderList-DmjW30Mw.js} +0 -0
  715. /package/dist/{ReorderList-DBW8TBu6.cjs → ReorderList-qScXc3-v.cjs} +0 -0
  716. /package/dist/{SidebarBrand-FHBO4Dw3.js → SidebarBrand-CZf-kRyZ.js} +0 -0
  717. /package/dist/{SidebarBrand-CX-BgI4X.cjs → SidebarBrand-D2u7hX-v.cjs} +0 -0
  718. /package/dist/{SidebarLink-xtGCDABj.js → SidebarLink-BuRBmv_k.js} +0 -0
  719. /package/dist/{SidebarLink-DTGVapwa.cjs → SidebarLink-CSTNfb2F.cjs} +0 -0
  720. /package/dist/{SidebarMenu-CnsOBXeM.cjs → SidebarMenu-CAthEmyy.cjs} +0 -0
  721. /package/dist/{SidebarMenu-D24o7HS-.js → SidebarMenu-CgWUHllQ.js} +0 -0
  722. /package/dist/{SidebarMenuGroup-DJasr_cx.cjs → SidebarMenuGroup-B9JGPBcF.cjs} +0 -0
  723. /package/dist/{SidebarMenuGroup-Bjc2IeK5.js → SidebarMenuGroup-DdWg57Wv.js} +0 -0
  724. /package/dist/{SidebarMenuItem-UFeKPTvc.js → SidebarMenuItem-BvvoDIjK.js} +0 -0
  725. /package/dist/{SidebarMenuItem-DP4L8ljr.cjs → SidebarMenuItem-eFnj5QoE.cjs} +0 -0
  726. /package/dist/{SidebarStatus-D-CfUYFc.js → SidebarStatus-CnTnYL4x.js} +0 -0
  727. /package/dist/{SidebarStatus-YfLW9xzC.cjs → SidebarStatus-CvjuggXO.cjs} +0 -0
  728. /package/dist/{Sparkline-MAi1Fh2T.cjs → Sparkline-B7kUEfuW.cjs} +0 -0
  729. /package/dist/{Sparkline-m3wbt-f1.js → Sparkline-CVzkzaOJ.js} +0 -0
  730. /package/dist/{Stepper.context-DUIDhN9Q.cjs → Stepper.context-Brnt5IZv.cjs} +0 -0
  731. /package/dist/{Stepper.context-DqfEvgGM.js → Stepper.context-CRKX8lxW.js} +0 -0
  732. /package/dist/{StructuredList-h9JFXpF4.cjs → StructuredList-BexC0c1Z.cjs} +0 -0
  733. /package/dist/{StructuredList-BSfuLANB.js → StructuredList-DuBBP01p.js} +0 -0
  734. /package/dist/{Submenu-Dxo3DUDA.cjs → Submenu-DRkHiWsD.cjs} +0 -0
  735. /package/dist/{Submenu-BnMaJKYm.js → Submenu-Dnj5MiFy.js} +0 -0
  736. /package/dist/{TextInput.context-DV1MgL_Q.js → TextInput.context-B-mipPOo.js} +0 -0
  737. /package/dist/{TextInput.context-UTLuljcO.cjs → TextInput.context-ChkcqMNM.cjs} +0 -0
  738. /package/dist/{TreeContext-TZ35sT5B.cjs → TreeContext-B2Io2oii.cjs} +0 -0
  739. /package/dist/{TreeContext--GZ21fCm.js → TreeContext-Cs4iAw0d.js} +0 -0
  740. /package/dist/{Wireframe-CL0rjsos.cjs → Wireframe-3fvc4I5-.cjs} +0 -0
  741. /package/dist/{Wireframe-BxUNaH2g.js → Wireframe-C_Ca3wCn.js} +0 -0
  742. /package/dist/{palette-CWU7exM6.js → palette-6bEW4KUN.js} +0 -0
  743. /package/dist/{palette-B7XEOMVB.cjs → palette-LbOzdAXj.cjs} +0 -0
  744. /package/dist/{pixi-scene-BKyneWmd.cjs → pixi-scene-CQ1qoZvX.cjs} +0 -0
  745. /package/dist/{pixi-scene-TbaBQ2-u.js → pixi-scene-DFCEvc1j.js} +0 -0
  746. /package/dist/{scales-CNW8JgKC.js → scales-BGzTviac.js} +0 -0
  747. /package/dist/{scales-B8IbC7t_.cjs → scales-BRSHTjbp.cjs} +0 -0
  748. /package/dist/{useChartSize-CftshgoY.js → useChartSize-05CLdiR0.js} +0 -0
  749. /package/dist/{useChartSize-B6Bes760.cjs → useChartSize-CUZ7BuGD.cjs} +0 -0
  750. /package/dist/{useLoadingAnnouncer.composable-Dn1mqnqe.cjs → useLoadingAnnouncer.composable-CEPRjDi3.cjs} +0 -0
  751. /package/dist/{useLoadingAnnouncer.composable-BAwecV1M.js → useLoadingAnnouncer.composable-c0XX_xNT.js} +0 -0
  752. /package/dist/{vue-i18n-DSR949qU.js → vue-i18n-DaD-yZmK.js} +0 -0
  753. /package/dist/{vue-i18n-DIvTc6LM.cjs → vue-i18n-ZdR0XDmN.cjs} +0 -0
@@ -0,0 +1,587 @@
1
+ import { t as e } from "./Button-tpOmP8iV.js";
2
+ import { t } from "./Icon-B2tiGiqZ.js";
3
+ import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
4
+ import { useNbStrings as r } from "./composables/useNbStrings.composable.mjs";
5
+ import { t as i } from "./EmptyState-DhlJV0C6.js";
6
+ import { t as a } from "./CloseButton-CdH12Hdn.js";
7
+ import { t as o } from "./Spinner-C3MeCm2k.js";
8
+ import { t as s } from "./Skeleton-Hmb5a2G_.js";
9
+ import { t as c } from "./NotificationCenterItem-O6SR_6KR.js";
10
+ import { Fragment as l, Teleport as u, Transition as ee, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as te, createTextVNode as ne, createVNode as g, defineComponent as _, mergeProps as re, nextTick as v, normalizeClass as ie, normalizeStyle as y, onBeforeUnmount as ae, openBlock as b, ref as x, renderList as oe, renderSlot as S, toDisplayString as C, unref as se, useId as ce, useSlots as le, watch as w, withCtx as T } from "vue";
11
+ import { regular as ue } from "@nubisco/ui/icons/warning-circle";
12
+ import * as de from "@nubisco/ui/icons/bell";
13
+ //#region src/components/NotificationCenter.vue?vue&type=script&setup=true&lang.ts
14
+ var fe = {
15
+ key: 0,
16
+ class: "nb-notification-center__badge",
17
+ "aria-hidden": "true"
18
+ }, pe = ["aria-describedby", "aria-busy"], me = { class: "nb-notification-center__header" }, he = {
19
+ class: "nb-notification-center__sr",
20
+ role: "status"
21
+ }, ge = { class: "nb-notification-center__stale-text" }, _e = { class: "nb-notification-center__sr" }, ve = ["tabindex"], ye = {
22
+ key: 4,
23
+ class: "nb-notification-center__empty"
24
+ }, be = {
25
+ key: 5,
26
+ class: "nb-notification-center__footer"
27
+ }, E = /* @__PURE__ */ new Set(), D = 8, O = 8, k = 96, A = 88, j = 200;
28
+ function xe(e, { align: t, side: n, width: r, maxHeight: i, viewport: a }) {
29
+ let o = e.left + e.width;
30
+ if (n === "right" && a.width - o - D - O >= r) {
31
+ let n = e.top + e.height, r = t === "end" ? n - O : a.height - e.top - O, s = Math.max(A + k, r), c = Math.min(i + k, s), l = Math.max(A, Math.min(i, s - k));
32
+ return t === "end" ? {
33
+ top: Math.max(O, n - c),
34
+ bottom: Math.max(O, a.height - n),
35
+ left: o + D,
36
+ side: "right",
37
+ maxListHeight: l
38
+ } : {
39
+ top: Math.max(O, Math.min(e.top, a.height - O - c)),
40
+ left: o + D,
41
+ side: "right",
42
+ maxListHeight: l
43
+ };
44
+ }
45
+ let s = t === "start" ? e.left : e.left + e.width - r, c = Math.min(Math.max(s, O), Math.max(O, a.width - r - O)), l = e.top + e.height, u = a.height - l - D - O, ee = e.top - D - O, d = u < j && ee > u ? "top" : "bottom", f = Math.max(A, d === "top" ? ee : u), p = Math.max(A, Math.min(i, f - k)), m = Math.min(i + k, f);
46
+ return {
47
+ top: d === "top" ? Math.max(O, e.top - D - m) : l + D,
48
+ left: c,
49
+ side: d,
50
+ maxListHeight: p
51
+ };
52
+ }
53
+ function Se(e, t) {
54
+ return e.left <= t.width && e.left + e.width >= 0 && e.top <= t.height && e.top + e.height >= 0;
55
+ }
56
+ //#endregion
57
+ //#region src/components/NotificationCenter.vue
58
+ var M = /* @__PURE__ */ _({
59
+ __name: "NotificationCenter",
60
+ props: {
61
+ items: { default: () => [] },
62
+ unreadCount: { default: void 0 },
63
+ itemCount: { default: void 0 },
64
+ open: {
65
+ type: Boolean,
66
+ default: void 0
67
+ },
68
+ label: { default: "Notifications" },
69
+ markAllLabel: { default: "Mark all as read" },
70
+ markAllPendingLabel: { default: "Marking all as read" },
71
+ markAllPending: {
72
+ type: Boolean,
73
+ default: !1
74
+ },
75
+ emptyTitle: { default: "No notifications" },
76
+ emptyDescription: { default: "New activity shows up here." },
77
+ loadingLabel: { default: "Loading notifications" },
78
+ loading: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
82
+ error: {
83
+ type: Boolean,
84
+ default: !1
85
+ },
86
+ errorTitle: { default: "Could not load notifications" },
87
+ errorDescription: { default: "The request failed. Nothing has been lost." },
88
+ errorStaleLabel: { default: "These may be out of date." },
89
+ retryLabel: { default: "Try again" },
90
+ showRetry: {
91
+ type: Boolean,
92
+ default: !0
93
+ },
94
+ maxCount: { default: 99 },
95
+ width: { default: 360 },
96
+ closeLabel: { default: void 0 },
97
+ maxHeight: { default: 384 },
98
+ align: { default: "end" },
99
+ side: { default: "vertical" },
100
+ showMarkAll: {
101
+ type: Boolean,
102
+ default: !0
103
+ },
104
+ interactive: {
105
+ type: Boolean,
106
+ default: !0
107
+ },
108
+ closeOnSelect: {
109
+ type: Boolean,
110
+ default: !0
111
+ },
112
+ closeOnNavigate: {
113
+ type: Boolean,
114
+ default: !0
115
+ },
116
+ disabled: {
117
+ type: Boolean,
118
+ default: !1
119
+ },
120
+ icon: { default: void 0 },
121
+ locale: { default: void 0 },
122
+ unreadLabel: { default: "Unread" },
123
+ readLabel: { default: "Read" },
124
+ formatUnread: {
125
+ type: Function,
126
+ default: (e) => `${e} unread`
127
+ }
128
+ },
129
+ emits: [
130
+ "update:open",
131
+ "open",
132
+ "close",
133
+ "select",
134
+ "mark-all-read",
135
+ "retry"
136
+ ],
137
+ setup(_, { expose: D, emit: O }) {
138
+ let k = r(), A = _, j = d(() => A.icon ?? de), M = O, N = le(), P = `nb-notification-center-${ce()}`, Ce = `${P}-title`, we = `${P}-trigger`, Te = `${P}-error`, F = x(null), Ee = x(null), I = x(null), L = x(null), De = x(!1), R = d(() => A.open === void 0 ? De.value : A.open), z = d(() => typeof A.unreadCount == "number" ? Math.max(0, A.unreadCount) : A.items.filter((e) => !e.read).length), Oe = d(() => z.value > A.maxCount ? `${A.maxCount}+` : String(z.value)), ke = d(() => z.value > 0 ? `${A.label}, ${A.formatUnread(z.value)}` : A.label), Ae = d(() => {
139
+ if (typeof A.itemCount == "number") return Math.max(0, A.itemCount);
140
+ if (!N.default) return A.items.length;
141
+ }), je = d(() => (Ae.value ?? 0) > 0), B = d(() => {
142
+ if (A.loading) return "loading";
143
+ let e = Ae.value;
144
+ return A.error && (e === void 0 || e === 0) ? "error" : e === void 0 || e > 0 ? "list" : "empty";
145
+ }), Me = d(() => A.error && !A.loading && B.value === "list" && je.value);
146
+ x(!1), w(() => [
147
+ R.value,
148
+ !!N.default,
149
+ A.itemCount
150
+ ], ([e, t, n]) => {}, { immediate: !0 });
151
+ function V() {
152
+ M("retry");
153
+ }
154
+ let Ne = d(() => ({
155
+ id: we,
156
+ "aria-haspopup": "dialog",
157
+ "aria-expanded": R.value ? "true" : "false",
158
+ "aria-controls": R.value ? P : void 0,
159
+ "aria-label": ke.value,
160
+ disabled: A.disabled || void 0
161
+ })), Pe = d(() => ({
162
+ type: "button",
163
+ disabled: z.value === 0 && !A.markAllPending,
164
+ "aria-disabled": A.markAllPending ? "true" : void 0,
165
+ "aria-busy": A.markAllPending ? "true" : void 0,
166
+ onClick: at
167
+ })), Fe = d(() => Me.value || B.value === "error" ? Te : void 0);
168
+ function Ie(e) {
169
+ if (!e) {
170
+ I.value = null;
171
+ return;
172
+ }
173
+ let t = e instanceof HTMLElement ? e : e.$el;
174
+ I.value = t instanceof HTMLElement ? t : null;
175
+ }
176
+ let H = x({
177
+ top: 0,
178
+ left: 0,
179
+ side: "bottom",
180
+ maxListHeight: A.maxHeight
181
+ });
182
+ function Le() {
183
+ return {
184
+ width: window.innerWidth,
185
+ height: window.innerHeight
186
+ };
187
+ }
188
+ function U() {
189
+ let e = F.value?.getBoundingClientRect();
190
+ e && (H.value = xe(e, {
191
+ align: A.align,
192
+ side: A.side,
193
+ width: A.width,
194
+ maxHeight: A.maxHeight,
195
+ viewport: Le()
196
+ }));
197
+ }
198
+ let { phone: Re } = n(), W = d(() => Re.value), ze = d(() => {
199
+ if (!W.value) return H.value.bottom === void 0 ? {
200
+ top: `${Math.round(H.value.top)}px`,
201
+ left: `${Math.round(H.value.left)}px`,
202
+ width: `${A.width}px`
203
+ } : {
204
+ bottom: `${Math.round(H.value.bottom)}px`,
205
+ left: `${Math.round(H.value.left)}px`,
206
+ width: `${A.width}px`
207
+ };
208
+ }), Be = d(() => W.value ? void 0 : { maxHeight: `${Math.round(H.value.maxListHeight)}px` }), Ve = d(() => ({
209
+ "nb-notification-center__panel--sheet": W.value,
210
+ "nb-notification-center__panel--start": A.align === "start",
211
+ "nb-notification-center__panel--above": !W.value && H.value.side === "top",
212
+ "nb-notification-center__panel--beside": !W.value && H.value.side === "right"
213
+ }));
214
+ function He(e) {
215
+ A.open === void 0 && (De.value = e), M("update:open", e);
216
+ }
217
+ function Ue() {
218
+ A.disabled || R.value || (U(), He(!0), M("open"));
219
+ }
220
+ function G(e = {}) {
221
+ if (!R.value) return;
222
+ let t = L.value?.contains(document.activeElement);
223
+ He(!1), M("close"), (e.restoreFocus ?? t) && v(We);
224
+ }
225
+ function We() {
226
+ let e = I.value;
227
+ if (e?.isConnected) {
228
+ e.focus();
229
+ return;
230
+ }
231
+ (F.value?.querySelector(Ze))?.focus();
232
+ }
233
+ function Ge() {
234
+ R.value ? G({ restoreFocus: !0 }) : Ue();
235
+ }
236
+ let K = x(0), Ke = new Set([
237
+ "button",
238
+ "link",
239
+ "menuitem",
240
+ "option"
241
+ ]);
242
+ function qe(e) {
243
+ if (e.tagName === "BUTTON") return !e.hasAttribute("disabled");
244
+ if (e.tagName === "A") return e.hasAttribute("href");
245
+ let t = e.getAttribute("role");
246
+ return t !== null && Ke.has(t);
247
+ }
248
+ function q() {
249
+ return L.value ? Array.from(L.value.querySelectorAll("[data-nb-notification-item]")).filter((e) => !!qe(e)) : [];
250
+ }
251
+ let Je = x(void 0);
252
+ function Ye(e) {
253
+ let t = Ee.value;
254
+ Je.value = t && t.childElementCount > 0 && e.length === 0 ? 0 : void 0;
255
+ }
256
+ function J(e) {
257
+ let t = q();
258
+ Ye(t), t.length && (K.value = Math.min(Math.max(e, 0), t.length - 1), t.forEach((e, t) => {
259
+ e.setAttribute("tabindex", t === K.value ? "0" : "-1");
260
+ }));
261
+ }
262
+ function Y(e) {
263
+ let t = q();
264
+ if (!t.length) return !1;
265
+ let n = Math.min(Math.max(e, 0), t.length - 1);
266
+ return J(n), t[n]?.focus(), !0;
267
+ }
268
+ function Xe(e) {
269
+ let t = e.target?.closest("[data-nb-notification-item]");
270
+ if (!t) return;
271
+ let n = q().indexOf(t);
272
+ n >= 0 && J(n);
273
+ }
274
+ let Ze = "a[href]:not([tabindex=\"-1\"]), button:not([disabled]):not([tabindex=\"-1\"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex=\"0\"]";
275
+ function Qe(e) {
276
+ return !!e?.closest?.("input, textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"]");
277
+ }
278
+ function $e(e) {
279
+ let t = q(), n = e.target?.closest("[data-nb-notification-item]"), r = n ? t.indexOf(n) : -1;
280
+ if (e.key === "Escape") {
281
+ if (!et(e)) return;
282
+ e.preventDefault(), e.stopPropagation(), G({ restoreFocus: !0 });
283
+ return;
284
+ }
285
+ if (e.key === "Tab") {
286
+ tt(e);
287
+ return;
288
+ }
289
+ if (!Qe(e.target)) switch (e.key) {
290
+ case "ArrowDown":
291
+ Y(r < 0 ? 0 : r + 1) && e.preventDefault();
292
+ break;
293
+ case "ArrowUp":
294
+ Y(r < 0 ? t.length - 1 : r - 1) && e.preventDefault();
295
+ break;
296
+ case "Home":
297
+ r >= 0 && (e.preventDefault(), Y(0));
298
+ break;
299
+ case "End":
300
+ r >= 0 && (e.preventDefault(), Y(t.length - 1));
301
+ break;
302
+ default: break;
303
+ }
304
+ }
305
+ function et(e) {
306
+ if (e.defaultPrevented) return !1;
307
+ let t = (e.target ?? document.activeElement)?.closest?.("[aria-modal=\"true\"]");
308
+ return !(t && t !== L.value);
309
+ }
310
+ function tt(e) {
311
+ let t = L.value;
312
+ if (!t) return;
313
+ let n = Array.from(t.querySelectorAll(Ze)), r = document.activeElement, i = n[0], a = n[n.length - 1], o = !n.length || r === i || !t.contains(r), s = !n.length || r === a;
314
+ if (e.shiftKey ? !o : !s) return;
315
+ e.preventDefault();
316
+ let c = e.shiftKey ? I.value : nt();
317
+ G({ restoreFocus: !1 }), v(() => {
318
+ c?.isConnected ? c.focus() : We();
319
+ });
320
+ }
321
+ function nt() {
322
+ let e = I.value;
323
+ if (!e) return null;
324
+ let t = Array.from(document.querySelectorAll(Ze)).filter((e) => !L.value?.contains(e)).filter((e) => e.tabIndex >= 0), n = t.indexOf(e);
325
+ return n < 0 ? null : t[n + 1] ?? null;
326
+ }
327
+ function rt(e, t) {
328
+ M("select", e, t), A.closeOnSelect && G({ restoreFocus: !1 });
329
+ }
330
+ function it(e) {
331
+ if (!N.default) return;
332
+ let t = e.target?.closest("[data-nb-notification-item]");
333
+ if (t && qe(t)) {
334
+ if (e.type === "keydown") {
335
+ let n = e.key;
336
+ if (n !== "Enter" && n !== " " || t.tagName === "BUTTON" || t.tagName === "A") return;
337
+ e.preventDefault();
338
+ }
339
+ M("select", null, e), A.closeOnSelect && G({ restoreFocus: !1 });
340
+ }
341
+ }
342
+ function at() {
343
+ A.markAllPending || M("mark-all-read");
344
+ }
345
+ function ot(e) {
346
+ let t = e.target;
347
+ F.value?.contains(t) || L.value?.contains(t) || G({ restoreFocus: !1 });
348
+ }
349
+ function st(e) {
350
+ e.key === "Escape" && (L.value?.contains(document.activeElement) || et(e) && G({ restoreFocus: F.value?.contains(document.activeElement) ?? !1 }));
351
+ }
352
+ let X = 0;
353
+ function Z() {
354
+ !R.value || X || (X = requestAnimationFrame(() => {
355
+ X = 0, lt();
356
+ }));
357
+ }
358
+ function ct() {
359
+ X &&= (cancelAnimationFrame(X), 0);
360
+ }
361
+ function lt() {
362
+ if (!R.value || W.value) return;
363
+ let e = F.value?.getBoundingClientRect();
364
+ if (e && !Se(e, Le())) {
365
+ G({ restoreFocus: !1 });
366
+ return;
367
+ }
368
+ U();
369
+ }
370
+ function Q() {
371
+ A.closeOnNavigate && G({ restoreFocus: !1 });
372
+ }
373
+ function ut() {
374
+ return window.navigation;
375
+ }
376
+ function dt() {
377
+ document.addEventListener("mousedown", ot), document.addEventListener("keydown", st), window.addEventListener("resize", Z), window.addEventListener("scroll", Z, !0), window.addEventListener("popstate", Q), window.addEventListener("hashchange", Q), ut()?.addEventListener("navigate", Q);
378
+ }
379
+ function ft() {
380
+ ct(), document.removeEventListener("mousedown", ot), document.removeEventListener("keydown", st), window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, !0), window.removeEventListener("popstate", Q), window.removeEventListener("hashchange", Q), ut()?.removeEventListener("navigate", Q);
381
+ }
382
+ let $ = () => G({ restoreFocus: !1 });
383
+ return w(R, (e) => {
384
+ if (e) {
385
+ for (let e of [...E]) e !== $ && e();
386
+ E.add($), dt(), v(() => {
387
+ U(), J(0), Y(0) || L.value?.focus();
388
+ });
389
+ } else E.delete($), ft(), K.value = 0;
390
+ }), w(() => [A.items.length, B.value], () => {
391
+ R.value && v(() => J(K.value));
392
+ }), ae(() => {
393
+ ft(), E.delete($);
394
+ let e = L.value;
395
+ e?.isConnected && e.remove();
396
+ }), D({
397
+ show: Ue,
398
+ close: G,
399
+ toggle: Ge,
400
+ isOpen: R,
401
+ unreadCount: z
402
+ }), (n, r) => (b(), m("div", {
403
+ ref_key: "rootRef",
404
+ ref: F,
405
+ class: "nb-notification-center"
406
+ }, [S(n.$slots, "trigger", {
407
+ open: R.value,
408
+ toggle: Ge,
409
+ show: Ue,
410
+ close: G,
411
+ unreadCount: z.value,
412
+ badge: Oe.value,
413
+ panelId: P,
414
+ triggerProps: Ne.value,
415
+ setTriggerRef: Ie
416
+ }, () => [g(e, re({
417
+ ref: Ie,
418
+ class: ["nb-notification-center__trigger", { "nb-notification-center__trigger--active": R.value }],
419
+ variant: "ghost",
420
+ size: "sm",
421
+ icon: j.value,
422
+ label: _.label
423
+ }, Ne.value, { onClick: Ge }), null, 16, [
424
+ "class",
425
+ "icon",
426
+ "label"
427
+ ]), z.value > 0 ? (b(), m("span", fe, C(Oe.value), 1)) : p("", !0)]), (b(), f(u, { to: "body" }, [g(ee, { name: "nb-notification-center-pop" }, {
428
+ default: T(() => [R.value ? (b(), m("div", {
429
+ key: 0,
430
+ id: P,
431
+ ref_key: "panelRef",
432
+ ref: L,
433
+ class: ie(["nb-notification-center__panel", Ve.value]),
434
+ style: y(ze.value),
435
+ role: "dialog",
436
+ tabindex: "-1",
437
+ "aria-labelledby": Ce,
438
+ "aria-describedby": Fe.value,
439
+ "aria-busy": _.loading ? "true" : void 0,
440
+ onKeydown: $e,
441
+ onFocusin: Xe
442
+ }, [
443
+ h("div", me, [
444
+ h("h2", {
445
+ id: Ce,
446
+ class: "nb-notification-center__title"
447
+ }, C(_.label), 1),
448
+ S(n.$slots, "header-start", {
449
+ close: G,
450
+ unreadCount: z.value
451
+ }),
452
+ S(n.$slots, "header-actions", {
453
+ close: G,
454
+ unreadCount: z.value,
455
+ markAllRead: at,
456
+ markAllPending: _.markAllPending,
457
+ markAllProps: Pe.value,
458
+ markAllText: _.markAllPending ? _.markAllPendingLabel : _.markAllLabel
459
+ }, () => [_.showMarkAll ? (b(), m("button", re({
460
+ key: 0,
461
+ class: "nb-notification-center__mark-all"
462
+ }, Pe.value), [_.markAllPending ? (b(), f(o, {
463
+ key: 0,
464
+ size: "xs",
465
+ tone: "inherit",
466
+ decorative: ""
467
+ })) : p("", !0), ne(" " + C(_.markAllPending ? _.markAllPendingLabel : _.markAllLabel), 1)], 16)) : p("", !0)]),
468
+ W.value ? (b(), f(a, {
469
+ key: 0,
470
+ class: "nb-notification-center__close",
471
+ size: "lg",
472
+ label: _.closeLabel ?? se(k).notificationCenterClose,
473
+ onClick: r[0] ||= (e) => G()
474
+ }, null, 8, ["label"])) : p("", !0)
475
+ ]),
476
+ h("span", he, C(_.markAllPending ? _.markAllPendingLabel : ""), 1),
477
+ Me.value ? (b(), m("div", {
478
+ key: 0,
479
+ id: Te,
480
+ class: "nb-notification-center__stale",
481
+ role: "status"
482
+ }, [
483
+ g(t, {
484
+ name: se(ue),
485
+ size: "sm",
486
+ "aria-hidden": "true"
487
+ }, null, 8, ["name"]),
488
+ h("span", ge, C(_.errorStaleLabel), 1),
489
+ _.showRetry ? (b(), m("button", {
490
+ key: 0,
491
+ type: "button",
492
+ class: "nb-notification-center__retry",
493
+ onClick: V
494
+ }, C(_.retryLabel), 1)) : p("", !0)
495
+ ])) : p("", !0),
496
+ B.value === "loading" ? (b(), m("div", {
497
+ key: 1,
498
+ class: "nb-notification-center__loading",
499
+ role: "status",
500
+ style: y(Be.value)
501
+ }, [h("span", _e, C(_.loadingLabel), 1), (b(), m(l, null, oe(3, (e) => g(s, {
502
+ key: e,
503
+ variant: "text",
504
+ type: "body-sm",
505
+ lines: 2,
506
+ "last-line-width": "60%"
507
+ })), 64))], 4)) : B.value === "error" ? (b(), m("div", {
508
+ key: 2,
509
+ id: Te,
510
+ class: "nb-notification-center__error",
511
+ role: "alert"
512
+ }, [S(n.$slots, "error", { retry: V }, () => [g(i, {
513
+ size: "sm",
514
+ kind: "error",
515
+ title: _.errorTitle,
516
+ description: _.errorDescription
517
+ }, te({ _: 2 }, [_.showRetry ? {
518
+ name: "actions",
519
+ fn: T(() => [g(e, {
520
+ size: "sm",
521
+ variant: "secondary",
522
+ onClick: V
523
+ }, {
524
+ default: T(() => [ne(C(_.retryLabel), 1)]),
525
+ _: 1
526
+ })]),
527
+ key: "0"
528
+ } : void 0]), 1032, ["title", "description"])])])) : B.value === "list" ? (b(), m("ul", {
529
+ key: 3,
530
+ ref_key: "listRef",
531
+ ref: Ee,
532
+ class: "nb-notification-center__list",
533
+ role: "list",
534
+ tabindex: Je.value,
535
+ style: y(Be.value),
536
+ onClick: it,
537
+ onKeydown: it
538
+ }, [S(n.$slots, "default", {
539
+ close: G,
540
+ items: _.items
541
+ }, () => [(b(!0), m(l, null, oe(_.items, (e) => (b(), f(c, {
542
+ key: e.id,
543
+ title: e.title,
544
+ body: e.body,
545
+ time: e.time,
546
+ "time-label": e.timeLabel,
547
+ read: e.read,
548
+ variant: e.variant ?? "neutral",
549
+ icon: e.icon,
550
+ href: e.href,
551
+ interactive: e.interactive ?? _.interactive,
552
+ locale: _.locale,
553
+ "unread-label": _.unreadLabel,
554
+ "read-label": _.readLabel,
555
+ onSelect: (t) => rt(e, t)
556
+ }, null, 8, [
557
+ "title",
558
+ "body",
559
+ "time",
560
+ "time-label",
561
+ "read",
562
+ "variant",
563
+ "icon",
564
+ "href",
565
+ "interactive",
566
+ "locale",
567
+ "unread-label",
568
+ "read-label",
569
+ "onSelect"
570
+ ]))), 128))])], 44, ve)) : B.value === "empty" ? (b(), m("div", ye, [S(n.$slots, "empty", {}, () => [g(i, {
571
+ size: "sm",
572
+ icon: j.value,
573
+ title: _.emptyTitle,
574
+ description: _.emptyDescription
575
+ }, null, 8, [
576
+ "icon",
577
+ "title",
578
+ "description"
579
+ ])])])) : p("", !0),
580
+ n.$slots.footer ? (b(), m("div", be, [S(n.$slots, "footer", { close: G })])) : p("", !0)
581
+ ], 46, pe)) : p("", !0)]),
582
+ _: 3
583
+ })]))], 512));
584
+ }
585
+ });
586
+ //#endregion
587
+ export { M as t };
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Button-BHFtgOXA.cjs`),n=require(`./Icon-CssV4E2-.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./composables/useNbStrings.composable.cjs`),a=require(`./EmptyState-Db0Zrrk2.cjs`),o=require(`./CloseButton-9TTFHFmx.cjs`),s=require(`./Spinner-BTN06wsE.cjs`),c=require(`./Skeleton-CMuZJ1dR.cjs`),l=require(`./NotificationCenterItem-D0agavaK.cjs`);let u=require(`vue`),d=require(`@nubisco/ui/icons/warning-circle`),f=require(`@nubisco/ui/icons/bell`);f=e.n(f);var p={key:0,class:`nb-notification-center__badge`,"aria-hidden":`true`},ee=[`aria-describedby`,`aria-busy`],te={class:`nb-notification-center__header`},ne={class:`nb-notification-center__sr`,role:`status`},re={class:`nb-notification-center__stale-text`},ie={class:`nb-notification-center__sr`},ae=[`tabindex`],oe={key:4,class:`nb-notification-center__empty`},se={key:5,class:`nb-notification-center__footer`},m=new Set,h=8,g=8,_=96,v=88,y=200;function ce(e,{align:t,side:n,width:r,maxHeight:i,viewport:a}){let o=e.left+e.width;if(n===`right`&&a.width-o-h-g>=r){let n=e.top+e.height,r=t===`end`?n-g:a.height-e.top-g,s=Math.max(v+_,r),c=Math.min(i+_,s),l=Math.max(v,Math.min(i,s-_));return t===`end`?{top:Math.max(g,n-c),bottom:Math.max(g,a.height-n),left:o+h,side:`right`,maxListHeight:l}:{top:Math.max(g,Math.min(e.top,a.height-g-c)),left:o+h,side:`right`,maxListHeight:l}}let s=t===`start`?e.left:e.left+e.width-r,c=Math.min(Math.max(s,g),Math.max(g,a.width-r-g)),l=e.top+e.height,u=a.height-l-h-g,d=e.top-h-g,f=u<y&&d>u?`top`:`bottom`,p=Math.max(v,f===`top`?d:u),ee=Math.max(v,Math.min(i,p-_)),te=Math.min(i+_,p);return{top:f===`top`?Math.max(g,e.top-h-te):l+h,left:c,side:f,maxListHeight:ee}}function le(e,t){return e.left<=t.width&&e.left+e.width>=0&&e.top<=t.height&&e.top+e.height>=0}var b=(0,u.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:void 0},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} unread`}},emits:[`update:open`,`open`,`close`,`select`,`mark-all-read`,`retry`],setup(e,{expose:h,emit:g}){let _=i.useNbStrings(),v=e,y=(0,u.computed)(()=>v.icon??f),b=g,x=(0,u.useSlots)(),S=`nb-notification-center-${(0,u.useId)()}`,C=`${S}-title`,ue=`${S}-trigger`,w=`${S}-error`,T=(0,u.ref)(null),de=(0,u.ref)(null),E=(0,u.ref)(null),D=(0,u.ref)(null),O=(0,u.ref)(!1),k=(0,u.computed)(()=>v.open===void 0?O.value:v.open),A=(0,u.computed)(()=>typeof v.unreadCount==`number`?Math.max(0,v.unreadCount):v.items.filter(e=>!e.read).length),fe=(0,u.computed)(()=>A.value>v.maxCount?`${v.maxCount}+`:String(A.value)),pe=(0,u.computed)(()=>A.value>0?`${v.label}, ${v.formatUnread(A.value)}`:v.label),me=(0,u.computed)(()=>{if(typeof v.itemCount==`number`)return Math.max(0,v.itemCount);if(!x.default)return v.items.length}),he=(0,u.computed)(()=>(me.value??0)>0),j=(0,u.computed)(()=>{if(v.loading)return`loading`;let e=me.value;return v.error&&(e===void 0||e===0)?`error`:e===void 0||e>0?`list`:`empty`}),M=(0,u.computed)(()=>v.error&&!v.loading&&j.value===`list`&&he.value);(0,u.ref)(!1),(0,u.watch)(()=>[k.value,!!x.default,v.itemCount],([e,t,n])=>{},{immediate:!0});function N(){b(`retry`)}let P=(0,u.computed)(()=>({id:ue,"aria-haspopup":`dialog`,"aria-expanded":k.value?`true`:`false`,"aria-controls":k.value?S:void 0,"aria-label":pe.value,disabled:v.disabled||void 0})),F=(0,u.computed)(()=>({type:`button`,disabled:A.value===0&&!v.markAllPending,"aria-disabled":v.markAllPending?`true`:void 0,"aria-busy":v.markAllPending?`true`:void 0,onClick:Pe})),ge=(0,u.computed)(()=>M.value||j.value===`error`?w:void 0);function I(e){if(!e){E.value=null;return}let t=e instanceof HTMLElement?e:e.$el;E.value=t instanceof HTMLElement?t:null}let L=(0,u.ref)({top:0,left:0,side:`bottom`,maxListHeight:v.maxHeight});function R(){return{width:window.innerWidth,height:window.innerHeight}}function z(){let e=T.value?.getBoundingClientRect();e&&(L.value=ce(e,{align:v.align,side:v.side,width:v.width,maxHeight:v.maxHeight,viewport:R()}))}let{phone:_e}=r.usePhoneLayout(),B=(0,u.computed)(()=>_e.value),ve=(0,u.computed)(()=>{if(!B.value)return L.value.bottom===void 0?{top:`${Math.round(L.value.top)}px`,left:`${Math.round(L.value.left)}px`,width:`${v.width}px`}:{bottom:`${Math.round(L.value.bottom)}px`,left:`${Math.round(L.value.left)}px`,width:`${v.width}px`}}),ye=(0,u.computed)(()=>B.value?void 0:{maxHeight:`${Math.round(L.value.maxListHeight)}px`}),be=(0,u.computed)(()=>({"nb-notification-center__panel--sheet":B.value,"nb-notification-center__panel--start":v.align===`start`,"nb-notification-center__panel--above":!B.value&&L.value.side===`top`,"nb-notification-center__panel--beside":!B.value&&L.value.side===`right`}));function xe(e){v.open===void 0&&(O.value=e),b(`update:open`,e)}function V(){v.disabled||k.value||(z(),xe(!0),b(`open`))}function H(e={}){if(!k.value)return;let t=D.value?.contains(document.activeElement);xe(!1),b(`close`),(e.restoreFocus??t)&&(0,u.nextTick)(U)}function U(){let e=E.value;if(e?.isConnected){e.focus();return}(T.value?.querySelector(Y))?.focus()}function W(){k.value?H({restoreFocus:!0}):V()}let G=(0,u.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 K(){return D.value?Array.from(D.value.querySelectorAll(`[data-nb-notification-item]`)).filter(e=>!!Ce(e)):[]}let we=(0,u.ref)(void 0);function Te(e){let t=de.value;we.value=t&&t.childElementCount>0&&e.length===0?0:void 0}function q(e){let t=K();Te(t),t.length&&(G.value=Math.min(Math.max(e,0),t.length-1),t.forEach((e,t)=>{e.setAttribute(`tabindex`,t===G.value?`0`:`-1`)}))}function J(e){let t=K();if(!t.length)return!1;let n=Math.min(Math.max(e,0),t.length-1);return q(n),t[n]?.focus(),!0}function Ee(e){let t=e.target?.closest(`[data-nb-notification-item]`);if(!t)return;let n=K().indexOf(t);n>=0&&q(n)}let Y=`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=K(),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(),H({restoreFocus:!0});return}if(e.key===`Tab`){Ae(e);return}if(!De(e.target))switch(e.key){case`ArrowDown`:J(r<0?0:r+1)&&e.preventDefault();break;case`ArrowUp`:J(r<0?t.length-1:r-1)&&e.preventDefault();break;case`Home`:r>=0&&(e.preventDefault(),J(0));break;case`End`:r>=0&&(e.preventDefault(),J(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(Y)),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 c=e.shiftKey?E.value:je();H({restoreFocus:!1}),(0,u.nextTick)(()=>{c?.isConnected?c.focus():U()})}function je(){let e=E.value;if(!e)return null;let t=Array.from(document.querySelectorAll(Y)).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&&H({restoreFocus:!1})}function Ne(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&&H({restoreFocus:!1})}}function Pe(){v.markAllPending||b(`mark-all-read`)}function Fe(e){let t=e.target;T.value?.contains(t)||D.value?.contains(t)||H({restoreFocus:!1})}function Ie(e){e.key===`Escape`&&(D.value?.contains(document.activeElement)||ke(e)&&H({restoreFocus:T.value?.contains(document.activeElement)??!1}))}let X=0;function Z(){!k.value||X||(X=requestAnimationFrame(()=>{X=0,Re()}))}function Le(){X&&=(cancelAnimationFrame(X),0)}function Re(){if(!k.value||B.value)return;let e=T.value?.getBoundingClientRect();if(e&&!le(e,R())){H({restoreFocus:!1});return}z()}function Q(){v.closeOnNavigate&&H({restoreFocus:!1})}function ze(){return window.navigation}function Be(){document.addEventListener(`mousedown`,Fe),document.addEventListener(`keydown`,Ie),window.addEventListener(`resize`,Z),window.addEventListener(`scroll`,Z,!0),window.addEventListener(`popstate`,Q),window.addEventListener(`hashchange`,Q),ze()?.addEventListener(`navigate`,Q)}function Ve(){Le(),document.removeEventListener(`mousedown`,Fe),document.removeEventListener(`keydown`,Ie),window.removeEventListener(`resize`,Z),window.removeEventListener(`scroll`,Z,!0),window.removeEventListener(`popstate`,Q),window.removeEventListener(`hashchange`,Q),ze()?.removeEventListener(`navigate`,Q)}let $=()=>H({restoreFocus:!1});return(0,u.watch)(k,e=>{if(e){for(let e of[...m])e!==$&&e();m.add($),Be(),(0,u.nextTick)(()=>{z(),q(0),J(0)||D.value?.focus()})}else m.delete($),Ve(),G.value=0}),(0,u.watch)(()=>[v.items.length,j.value],()=>{k.value&&(0,u.nextTick)(()=>q(G.value))}),(0,u.onBeforeUnmount)(()=>{Ve(),m.delete($);let e=D.value;e?.isConnected&&e.remove()}),h({show:V,close:H,toggle:W,isOpen:k,unreadCount:A}),(r,i)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{ref_key:`rootRef`,ref:T,class:`nb-notification-center`},[(0,u.renderSlot)(r.$slots,`trigger`,{open:k.value,toggle:W,show:V,close:H,unreadCount:A.value,badge:fe.value,panelId:S,triggerProps:P.value,setTriggerRef:I},()=>[(0,u.createVNode)(t.t,(0,u.mergeProps)({ref:I,class:[`nb-notification-center__trigger`,{"nb-notification-center__trigger--active":k.value}],variant:`ghost`,size:`sm`,icon:y.value,label:e.label},P.value,{onClick:W}),null,16,[`class`,`icon`,`label`]),A.value>0?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,p,(0,u.toDisplayString)(fe.value),1)):(0,u.createCommentVNode)(``,!0)]),((0,u.openBlock)(),(0,u.createBlock)(u.Teleport,{to:`body`},[(0,u.createVNode)(u.Transition,{name:`nb-notification-center-pop`},{default:(0,u.withCtx)(()=>[k.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:0,id:S,ref_key:`panelRef`,ref:D,class:(0,u.normalizeClass)([`nb-notification-center__panel`,be.value]),style:(0,u.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,u.createElementVNode)(`div`,te,[(0,u.createElementVNode)(`h2`,{id:C,class:`nb-notification-center__title`},(0,u.toDisplayString)(e.label),1),(0,u.renderSlot)(r.$slots,`header-start`,{close:H,unreadCount:A.value}),(0,u.renderSlot)(r.$slots,`header-actions`,{close:H,unreadCount:A.value,markAllRead:Pe,markAllPending:e.markAllPending,markAllProps:F.value,markAllText:e.markAllPending?e.markAllPendingLabel:e.markAllLabel},()=>[e.showMarkAll?((0,u.openBlock)(),(0,u.createElementBlock)(`button`,(0,u.mergeProps)({key:0,class:`nb-notification-center__mark-all`},F.value),[e.markAllPending?((0,u.openBlock)(),(0,u.createBlock)(s.t,{key:0,size:`xs`,tone:`inherit`,decorative:``})):(0,u.createCommentVNode)(``,!0),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(e.markAllPending?e.markAllPendingLabel:e.markAllLabel),1)],16)):(0,u.createCommentVNode)(``,!0)]),B.value?((0,u.openBlock)(),(0,u.createBlock)(o.t,{key:0,class:`nb-notification-center__close`,size:`lg`,label:e.closeLabel??(0,u.unref)(_).notificationCenterClose,onClick:i[0]||=e=>H()},null,8,[`label`])):(0,u.createCommentVNode)(``,!0)]),(0,u.createElementVNode)(`span`,ne,(0,u.toDisplayString)(e.markAllPending?e.markAllPendingLabel:``),1),M.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:0,id:w,class:`nb-notification-center__stale`,role:`status`},[(0,u.createVNode)(n.t,{name:(0,u.unref)(d.regular),size:`sm`,"aria-hidden":`true`},null,8,[`name`]),(0,u.createElementVNode)(`span`,re,(0,u.toDisplayString)(e.errorStaleLabel),1),e.showRetry?((0,u.openBlock)(),(0,u.createElementBlock)(`button`,{key:0,type:`button`,class:`nb-notification-center__retry`,onClick:N},(0,u.toDisplayString)(e.retryLabel),1)):(0,u.createCommentVNode)(``,!0)])):(0,u.createCommentVNode)(``,!0),j.value===`loading`?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:1,class:`nb-notification-center__loading`,role:`status`,style:(0,u.normalizeStyle)(ye.value)},[(0,u.createElementVNode)(`span`,ie,(0,u.toDisplayString)(e.loadingLabel),1),((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(3,e=>(0,u.createVNode)(c.t,{key:e,variant:`text`,type:`body-sm`,lines:2,"last-line-width":`60%`})),64))],4)):j.value===`error`?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,id:w,class:`nb-notification-center__error`,role:`alert`},[(0,u.renderSlot)(r.$slots,`error`,{retry:N},()=>[(0,u.createVNode)(a.t,{size:`sm`,kind:`error`,title:e.errorTitle,description:e.errorDescription},(0,u.createSlots)({_:2},[e.showRetry?{name:`actions`,fn:(0,u.withCtx)(()=>[(0,u.createVNode)(t.t,{size:`sm`,variant:`secondary`,onClick:N},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.retryLabel),1)]),_:1})]),key:`0`}:void 0]),1032,[`title`,`description`])])])):j.value===`list`?((0,u.openBlock)(),(0,u.createElementBlock)(`ul`,{key:3,ref_key:`listRef`,ref:de,class:`nb-notification-center__list`,role:`list`,tabindex:we.value,style:(0,u.normalizeStyle)(ye.value),onClick:Ne,onKeydown:Ne},[(0,u.renderSlot)(r.$slots,`default`,{close:H,items:e.items},()=>[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.items,t=>((0,u.openBlock)(),(0,u.createBlock)(l.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,ae)):j.value===`empty`?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,oe,[(0,u.renderSlot)(r.$slots,`empty`,{},()=>[(0,u.createVNode)(a.t,{size:`sm`,icon:y.value,title:e.emptyTitle,description:e.emptyDescription},null,8,[`icon`,`title`,`description`])])])):(0,u.createCommentVNode)(``,!0),r.$slots.footer?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,se,[(0,u.renderSlot)(r.$slots,`footer`,{close:H})])):(0,u.createCommentVNode)(``,!0)],46,ee)):(0,u.createCommentVNode)(``,!0)]),_:3})]))],512))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
@@ -0,0 +1 @@
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-BHFtgOXA.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./composables/useStableId.composable.cjs`),r=require(`./composables/useNbStrings.composable.cjs`),i=require(`./Label-CjxnZgNy.cjs`),a=require(`./Message-BJO4MjiQ.cjs`),o=require(`./composables/useFieldMessage.composable.cjs`),s=require(`./InputGroup.context-BTt6zUkj.cjs`);let c=require(`vue`),l=require(`@nubisco/ui/icons/plus`),u=require(`@nubisco/ui/icons/minus`);var d=[`id`,`aria-invalid`,`aria-describedby`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],f={class:`nb-number-input__steppers`},p={key:0,class:`nb-number-input__inner-header`},m=[`for`],h={key:0,class:`nb-number-input__asterisk`,"aria-hidden":`true`},g={class:`nb-number-input__fluid-row`},_=[`id`,`aria-invalid`,`aria-describedby`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],v={class:`nb-number-input__steppers`},y=(0,c.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(t,{expose:y,emit:b}){let x=r.useNbStrings(),S=t,C=b,w=(0,c.ref)(null),T=(0,c.ref)(!1),E=s.n(S,n.useStableId({})),D=E.id,O=E.size,k=E.disabled,{ids:A,messageId:j,invalid:M,live:N,key:P}=o.useFieldMessage(S,D),F=(0,c.computed)(()=>o.joinDescribedBy(j.value,E.describedBy.value)),I=(0,c.computed)(()=>M.value??(E.status.value===`error`?`true`:void 0)),L=(0,c.computed)(()=>!!S.error||E.status.value===`error`),R=(0,c.computed)(()=>!L.value&&(!!S.warning||E.status.value===`warning`)),z=(0,c.computed)(()=>S.min!==void 0&&S.modelValue!==null&&S.modelValue!==void 0&&S.modelValue<=S.min),B=(0,c.computed)(()=>S.max!==void 0&&S.modelValue!==null&&S.modelValue!==void 0&&S.modelValue>=S.max);function V(e){let t=e;return S.min!==void 0&&(t=Math.max(S.min,t)),S.max!==void 0&&(t=Math.min(S.max,t)),t}function H(e){w.value&&(w.value.value=e==null?``:String(e))}(0,c.onMounted)(()=>H(S.modelValue)),(0,c.watch)(()=>S.modelValue,e=>{T.value||H(e)});function U(){let e=V((S.modelValue??0)+S.step);C(`update:modelValue`,e),C(`change`,e),H(e)}function W(){let e=V((S.modelValue??0)-S.step);C(`update:modelValue`,e),C(`change`,e),H(e)}function G(){if(!w.value)return;let e=w.value.value;if(e===``)C(`update:modelValue`,null);else{let t=parseFloat(e);isNaN(t)||C(`update:modelValue`,t)}}function K(){if(T.value=!1,!w.value)return;let e=w.value.value;if(e===``){C(`update:modelValue`,null),C(`change`,null);return}let t=parseFloat(e);if(!isNaN(t)){let e=V(t);C(`update:modelValue`,e),C(`change`,e),H(e)}}let q=(0,c.computed)(()=>[`nb-number-input`,`nb-number-input--${S.variant}`,`nb-number-input--${O.value}`,{"nb-number-input--error":L.value,"nb-number-input--warning":R.value,"nb-number-input--disabled":k.value}]),J=(0,c.computed)(()=>({"nb-number-input__field-wrapper--focused":T.value,"nb-number-input__field-wrapper--error":L.value,"nb-number-input__field-wrapper--warning":R.value,"nb-number-input__field-wrapper--disabled":k.value}));return y({focus:()=>w.value?.focus()}),(n,r)=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{class:(0,c.normalizeClass)(q.value)},[t.variant===`default`?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:0},[t.label?((0,c.openBlock)(),(0,c.createBlock)(i.t,{key:0,for:(0,c.unref)(D),required:t.required,disabled:(0,c.unref)(k)},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,{class:(0,c.normalizeClass)([`nb-number-input__field-wrapper`,J.value])},[(0,c.createElementVNode)(`input`,{id:(0,c.unref)(D),ref_key:`inputRef`,ref:w,"aria-invalid":I.value,"aria-describedby":F.value,type:`number`,class:`nb-number-input__field`,placeholder:t.placeholder,min:t.min,max:t.max,step:t.step,disabled:(0,c.unref)(k),required:t.required,onInput:G,onBlur:K,onKeydown:r[0]||=(0,c.withKeys)((0,c.withModifiers)(()=>w.value?.blur(),[`prevent`]),[`enter`]),onFocus:r[1]||=e=>T.value=!0},null,40,d),t.error?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:0,variant:`error`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-number-input__status`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.error),1)]),_:1})):t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:1,variant:`warning`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-number-input__status`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.warning),1)]),_:1})):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,f,[r[8]||=(0,c.createElementVNode)(`span`,{class:`nb-number-input__divider`,"aria-hidden":`true`},null,-1),(0,c.createVNode)(e.t,{variant:`ghost`,icon:(0,c.unref)(u.regular),size:(0,c.unref)(O),label:(0,c.unref)(x).numberInputDecrease,"tooltip-position":`top`,class:(0,c.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":z.value}]),tabindex:`-1`,disabled:(0,c.unref)(k),"aria-disabled":z.value||void 0,onMousedown:r[2]||=(0,c.withModifiers)(()=>{},[`prevent`]),onClick:W},null,8,[`icon`,`size`,`label`,`class`,`disabled`,`aria-disabled`]),r[9]||=(0,c.createElementVNode)(`span`,{class:`nb-number-input__divider`,"aria-hidden":`true`},null,-1),(0,c.createVNode)(e.t,{variant:`ghost`,icon:(0,c.unref)(l.regular),size:(0,c.unref)(O),label:(0,c.unref)(x).numberInputIncrease,"tooltip-position":`top`,class:(0,c.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":B.value}]),tabindex:`-1`,disabled:(0,c.unref)(k),"aria-disabled":B.value||void 0,onMousedown:r[3]||=(0,c.withModifiers)(()=>{},[`prevent`]),onClick:U},null,8,[`icon`,`size`,`label`,`class`,`disabled`,`aria-disabled`])])],2),t.error?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).error,key:(0,c.unref)(P),variant:`error`,live:(0,c.unref)(N),class:`nb-number-input__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.error),1)]),_:1},8,[`id`,`live`])):t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).warning,key:(0,c.unref)(P),variant:`warning`,live:(0,c.unref)(N),class:`nb-number-input__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.warning),1)]),_:1},8,[`id`,`live`])):t.helper?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).helper,key:(0,c.unref)(P),variant:`helper`,live:(0,c.unref)(N),class:`nb-number-input__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.helper),1)]),_:1},8,[`id`,`live`])):(0,c.createCommentVNode)(``,!0)],64)):t.variant===`fluid`?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[(0,c.createElementVNode)(`div`,{class:(0,c.normalizeClass)([`nb-number-input__field-wrapper`,J.value])},[t.label?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,p,[(0,c.createElementVNode)(`label`,{for:(0,c.unref)(D),class:`nb-number-input__inner-label`},[(0,c.createTextVNode)((0,c.toDisplayString)(t.label)+` `,1),t.required?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,h,`*`)):(0,c.createCommentVNode)(``,!0)],8,m),t.helper&&!t.error&&!t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:0,id:(0,c.unref)(A).helper,variant:`helper`,live:`off`,"icon-only":!0,class:`nb-number-input__inner-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.helper),1)]),_:1},8,[`id`])):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,g,[(0,c.createElementVNode)(`input`,{id:(0,c.unref)(D),ref_key:`inputRef`,ref:w,"aria-invalid":I.value,"aria-describedby":F.value,type:`number`,class:`nb-number-input__field`,placeholder:t.placeholder,min:t.min,max:t.max,step:t.step,disabled:(0,c.unref)(k),required:t.required,onInput:G,onBlur:K,onKeydown:r[4]||=(0,c.withKeys)((0,c.withModifiers)(()=>w.value?.blur(),[`prevent`]),[`enter`]),onFocus:r[5]||=e=>T.value=!0},null,40,_),t.error?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:0,variant:`error`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-number-input__status`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.error),1)]),_:1})):t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:1,variant:`warning`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-number-input__status`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.warning),1)]),_:1})):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,v,[r[10]||=(0,c.createElementVNode)(`span`,{class:`nb-number-input__divider`,"aria-hidden":`true`},null,-1),(0,c.createVNode)(e.t,{variant:`ghost`,icon:(0,c.unref)(u.regular),size:(0,c.unref)(O),label:(0,c.unref)(x).numberInputDecrease,"tooltip-position":`top`,class:(0,c.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":z.value}]),tabindex:`-1`,disabled:(0,c.unref)(k),"aria-disabled":z.value||void 0,onMousedown:r[6]||=(0,c.withModifiers)(()=>{},[`prevent`]),onClick:W},null,8,[`icon`,`size`,`label`,`class`,`disabled`,`aria-disabled`]),r[11]||=(0,c.createElementVNode)(`span`,{class:`nb-number-input__divider`,"aria-hidden":`true`},null,-1),(0,c.createVNode)(e.t,{variant:`ghost`,icon:(0,c.unref)(l.regular),size:(0,c.unref)(O),label:(0,c.unref)(x).numberInputIncrease,"tooltip-position":`top`,class:(0,c.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":B.value}]),tabindex:`-1`,disabled:(0,c.unref)(k),"aria-disabled":B.value||void 0,onMousedown:r[7]||=(0,c.withModifiers)(()=>{},[`prevent`]),onClick:U},null,8,[`icon`,`size`,`label`,`class`,`disabled`,`aria-disabled`])])])],2),t.error?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).error,key:(0,c.unref)(P),variant:`error`,live:(0,c.unref)(N),class:`nb-number-input__fluid-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.error),1)]),_:1},8,[`id`,`live`])):t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).warning,key:(0,c.unref)(P),variant:`warning`,live:(0,c.unref)(N),class:`nb-number-input__fluid-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.warning),1)]),_:1},8,[`id`,`live`])):(0,c.createCommentVNode)(``,!0)],64)):(0,c.createCommentVNode)(``,!0)],2))}}),b=t.t(y,[[`__scopeId`,`data-v-69480d87`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});