@nubisco/ui 5.50.1 → 5.52.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 (479) hide show
  1. package/dist/{ActionGroup-DEeOrkKF.js → ActionGroup-CkwZEnUN.js} +2 -2
  2. package/dist/{ActionGroup-CZWoWOYj.cjs → ActionGroup-McCtSDV8.cjs} +1 -1
  3. package/dist/{AiLabel-CSSIkvKP.js → AiLabel-DKhHwWNt.js} +1 -1
  4. package/dist/{AiLabel-DSKUOcZs.cjs → AiLabel-oV9j_9bX.cjs} +1 -1
  5. package/dist/{AiProvider-DHXJJRrw.js → AiProvider-CwQByPUa.js} +5 -5
  6. package/dist/{AiProvider-C5ezIeiH.cjs → AiProvider-YQRUV0n0.cjs} +1 -1
  7. package/dist/{AiUsage-fQqE0B6N.cjs → AiUsage-C2t5uXV-.cjs} +1 -1
  8. package/dist/{AiUsage-BOrAXk2-.js → AiUsage-eY9pNKxE.js} +1 -1
  9. package/dist/{BackToTop-DgFlV4p4.cjs → BackToTop-DQ6vCoQu.cjs} +1 -1
  10. package/dist/{BackToTop-DrgXqZgF.js → BackToTop-DumUwoJ1.js} +1 -1
  11. package/dist/{Banner-CyU3PPnt.cjs → Banner-DTIRkPRb.cjs} +1 -1
  12. package/dist/{Banner-CazPCK0F.js → Banner-FWDVwwVx.js} +1 -1
  13. package/dist/BarChart-DKpSrGm3.cjs +1 -0
  14. package/dist/{BarChart-CDvhhPk0.js → BarChart-hs_OZZD4.js} +96 -66
  15. package/dist/{BatchActions-CLCwxCoa.js → BatchActions-B5hv7U0E.js} +2 -2
  16. package/dist/{BatchActions-DfAPQSU6.cjs → BatchActions-DmMLy_y-.cjs} +1 -1
  17. package/dist/{Blueprint-CGGNppmS.js → Blueprint-ePiyl5dw.js} +2 -2
  18. package/dist/{Blueprint-DBIXzLYg.cjs → Blueprint-kNZLEHJz.cjs} +1 -1
  19. package/dist/{BlueprintCard-CqlU0QFY.js → BlueprintCard-Ce48mEtN.js} +1 -1
  20. package/dist/{BlueprintCard-DGUNttWj.cjs → BlueprintCard-L5FqZKvJ.cjs} +1 -1
  21. package/dist/{BlueprintControls-C3ffD6W8.cjs → BlueprintControls-C0V9FX8S.cjs} +1 -1
  22. package/dist/{BlueprintControls-1l0QVtB7.js → BlueprintControls-DQE_gDOe.js} +1 -1
  23. package/dist/{Board-DEBP52eI.js → Board-DyAO3ko2.js} +1 -1
  24. package/dist/{Board-DIbzPDsD.cjs → Board-Htlm-mra.cjs} +1 -1
  25. package/dist/{BottomPanel-1EkHEQ_H.js → BottomPanel-BsfMrQaS.js} +1 -1
  26. package/dist/{BottomPanel-n2jWpFH7.cjs → BottomPanel-Dad7czGY.cjs} +1 -1
  27. package/dist/{Breadcrumbs-DMpa5j7m.cjs → Breadcrumbs-C_dG1eHp.cjs} +1 -1
  28. package/dist/{Breadcrumbs-BDsy1vNm.js → Breadcrumbs-DHHPeG-B.js} +2 -2
  29. package/dist/{Briefing-0A1frO4v.js → Briefing-BTgNodqs.js} +2 -2
  30. package/dist/{Briefing-AqSz-ZdZ.cjs → Briefing-C_n8mZ-O.cjs} +1 -1
  31. package/dist/{BriefingDestination-CqyKzyXx.cjs → BriefingDestination-B2_e90ZN.cjs} +1 -1
  32. package/dist/{BriefingDestination-v3kNa6o_.js → BriefingDestination-BMsPXWd6.js} +1 -1
  33. package/dist/{Button-BHFtgOXA.cjs → Button-5ClGtoaz.cjs} +1 -1
  34. package/dist/{Button-tpOmP8iV.js → Button-CxJMKPpw.js} +1 -1
  35. package/dist/{ButtonSet-Bj9mIOW2.cjs → ButtonSet-CmM3Tj5N.cjs} +1 -1
  36. package/dist/{ButtonSet-BV76HHgD.js → ButtonSet-tmTOMWpZ.js} +1 -1
  37. package/dist/{Calendar-D9J17bTp.cjs → Calendar-BKJoim3w.cjs} +1 -1
  38. package/dist/{Calendar-Bf0Nk0rA.js → Calendar-C_UWF6F5.js} +1 -1
  39. package/dist/{Checkbox-DPPln6oG.cjs → Checkbox-B6qnpOXg.cjs} +1 -1
  40. package/dist/{Checkbox-BgXXVsCC.js → Checkbox-Bf3XzGbG.js} +1 -1
  41. package/dist/{CheckboxGroup-B2a3ezEK.cjs → CheckboxGroup-BG1efn5_.cjs} +1 -1
  42. package/dist/{CheckboxGroup-Ck1ylAX9.js → CheckboxGroup-C3ng8k3R.js} +1 -1
  43. package/dist/{CloseButton-CdH12Hdn.js → CloseButton-BeaS7MQc.js} +1 -1
  44. package/dist/{CloseButton-9TTFHFmx.cjs → CloseButton-D0Aj3uQK.cjs} +1 -1
  45. package/dist/{CommandPalette-CCEzVWfb.cjs → CommandPalette-CI31tVG0.cjs} +1 -1
  46. package/dist/{CommandPalette-D1DuzaA1.js → CommandPalette-Co6sxIQz.js} +1 -1
  47. package/dist/{Confirm-DbrEaYlJ.cjs → Confirm-CQMJX0lc.cjs} +1 -1
  48. package/dist/{Confirm-CZNS6FNr.js → Confirm-q2m_4sBN.js} +3 -3
  49. package/dist/{ContentSwitcher-CYSF2B-a.cjs → ContentSwitcher-B96jZqzZ.cjs} +1 -1
  50. package/dist/{ContentSwitcher-B-PUG0FE.js → ContentSwitcher-DCB9W7wd.js} +1 -1
  51. package/dist/{CopyButton-CQ9tcyfs.js → CopyButton-CfEOWedU.js} +1 -1
  52. package/dist/{CopyButton-DRvJ4rf5.cjs → CopyButton-DMuuBwJc.cjs} +1 -1
  53. package/dist/{DataTable-DDqMaOqP.js → DataTable-CA_p6GdD.js} +5 -5
  54. package/dist/{DataTable-DQUX-6li.cjs → DataTable-DNAUGxuj.cjs} +1 -1
  55. package/dist/{DatePicker-fS84mRE6.js → DatePicker-DKNte5ZT.js} +95 -91
  56. package/dist/DatePicker-l-HrmC9V.cjs +1 -0
  57. package/dist/{FileUploader-dzVu4iSo.js → FileUploader-CYa_FX-W.js} +1 -1
  58. package/dist/{FileUploader-UzgK5RKz.cjs → FileUploader-DCTMJY5p.cjs} +1 -1
  59. package/dist/{GanttChart-N05mLdsn.js → GanttChart-C70BwZZo.js} +1 -1
  60. package/dist/{GanttChart-ClFarMf-.cjs → GanttChart-D24__YLV.cjs} +1 -1
  61. package/dist/{ImageCropper-CoYR_Hhy.cjs → ImageCropper-3omi5zWi.cjs} +1 -1
  62. package/dist/{ImageCropper-wQknqxNK.js → ImageCropper-lLgzrsWr.js} +1 -1
  63. package/dist/{ImagePicker-Dhj01jq7.cjs → ImagePicker-4LRkWaLL.cjs} +1 -1
  64. package/dist/{ImagePicker-zkoay3zZ.js → ImagePicker-DOnGfEc6.js} +2 -2
  65. package/dist/{InlineLoading-DKCzcjZJ.cjs → InlineLoading-BovtIkg7.cjs} +1 -1
  66. package/dist/{InlineLoading-CDJ_ZJ6v.js → InlineLoading-CNetV7ih.js} +1 -1
  67. package/dist/{InterpolationChart-BX8-UOeZ.js → InterpolationChart-Cohmbfep.js} +1 -1
  68. package/dist/{InterpolationChart-DaqKUIWi.cjs → InterpolationChart-DnHzBcLG.cjs} +1 -1
  69. package/dist/LineChart-BNhJBKO6.cjs +1 -0
  70. package/dist/{LineChart-CplGrv8-.js → LineChart-lMX9rTr7.js} +110 -100
  71. package/dist/{Modal-D0hGHXic.cjs → Modal-B2gNgKIK.cjs} +1 -1
  72. package/dist/{Modal-BSGKOUi_.js → Modal-RgLIB-Gw.js} +3 -3
  73. package/dist/{NotificationCenter-_CK8Eejg.js → NotificationCenter-4MBTSGRl.js} +5 -5
  74. package/dist/{NotificationCenter-xg0ZCegj.cjs → NotificationCenter-BuVz7oP1.cjs} +1 -1
  75. package/dist/NumberInput-04v9eS0u.cjs +1 -0
  76. package/dist/{NumberInput-B-TvTlXI.js → NumberInput-DmKNMQLk.js} +51 -51
  77. package/dist/{OverflowMenu-DFOJSaS7.cjs → OverflowMenu-CWgdicDN.cjs} +1 -1
  78. package/dist/{OverflowMenu-OCAeE3W0.js → OverflowMenu-DXJ8waZo.js} +1 -1
  79. package/dist/{PageHeader-BfUlrscM.cjs → PageHeader-8n0wHC1J.cjs} +1 -1
  80. package/dist/{PageHeader-1wou3Him.js → PageHeader-ChUje7zF.js} +1 -1
  81. package/dist/{Pagination-CQJYl76w.js → Pagination-DLDVJush.js} +2 -2
  82. package/dist/{Pagination-Sm4rX7gH.cjs → Pagination-dhLORMeq.cjs} +1 -1
  83. package/dist/Panel-7LIVYu68.js +64 -0
  84. package/dist/Panel-BRPE3B-O.cjs +1 -0
  85. package/dist/PieChart-0_n0Ihir.cjs +1 -0
  86. package/dist/PieChart-Be8RVmz0.js +219 -0
  87. package/dist/{Search-CfH1Q9GB.cjs → Search-BxYPouus.cjs} +1 -1
  88. package/dist/{Search-BnGuTcHp.js → Search-CI787J6m.js} +2 -2
  89. package/dist/{Select-C4s5Eek6.cjs → Select-C77tReXr.cjs} +1 -1
  90. package/dist/{Select-CuiJz35r.js → Select-CAXyp4ou.js} +6 -6
  91. package/dist/{Shell-B2y5hn9K.cjs → Shell-Btxqmkh-.cjs} +1 -1
  92. package/dist/{Shell-Bh6s0T89.js → Shell-nNxGdcuI.js} +2 -2
  93. package/dist/{ShellPanel-BDE6Y773.cjs → ShellPanel-BeTojwfU.cjs} +1 -1
  94. package/dist/{ShellPanel-CB71IKMY.js → ShellPanel-D1-l6JRg.js} +1 -1
  95. package/dist/{SidebarCollapseToggle-Dm4QMGpc.js → SidebarCollapseToggle-BLY8EEaD.js} +2 -2
  96. package/dist/{SidebarCollapseToggle-CqVURaqs.cjs → SidebarCollapseToggle-DobruD4n.cjs} +1 -1
  97. package/dist/{SidebarHeaderToggle-daU1HfJH.js → SidebarHeaderToggle-BVfhMhvD.js} +1 -1
  98. package/dist/{SidebarHeaderToggle-KW1yBlpF.cjs → SidebarHeaderToggle-TwULd9e3.cjs} +1 -1
  99. package/dist/{Skeleton-CMuZJ1dR.cjs → Skeleton-CUUa44lM.cjs} +1 -1
  100. package/dist/{Skeleton-Hmb5a2G_.js → Skeleton-DI7l_96J.js} +1 -1
  101. package/dist/{Slider-D3YgGPcY.cjs → Slider-CtN6andn.cjs} +1 -1
  102. package/dist/{Slider-BP-oEeJs.js → Slider-D7BgYMeu.js} +1 -1
  103. package/dist/Sparkline-0CmemDu3.js +122 -0
  104. package/dist/Sparkline-ByPgkuSC.cjs +1 -0
  105. package/dist/{Spinner-BTN06wsE.cjs → Spinner-BDwIIS4H.cjs} +1 -1
  106. package/dist/{Spinner-C3MeCm2k.js → Spinner-D_6qJT6u.js} +1 -1
  107. package/dist/Stat-BiuBoOoE.cjs +1 -0
  108. package/dist/Stat-C_Z2D-TS.js +159 -0
  109. package/dist/{Stepper-BXPgrQE8.js → Stepper-BG9PfjPD.js} +1 -1
  110. package/dist/{Stepper-BLyPFPge.cjs → Stepper-CARQL6xx.cjs} +1 -1
  111. package/dist/{StepperStep-DLr_ctr4.js → StepperStep-C7F_8ErM.js} +1 -1
  112. package/dist/{StepperStep-DGeyZQXY.cjs → StepperStep-DHsfAMv0.cjs} +1 -1
  113. package/dist/Submenu-DK6C5mjc.cjs +1 -0
  114. package/dist/Submenu-M1q8mdSB.js +164 -0
  115. package/dist/{SuggestionList-DjtF5POh.cjs → SuggestionList-BT-xOJBx.cjs} +1 -1
  116. package/dist/{SuggestionList-SYGj7Sjv.js → SuggestionList-Cm0pD7_C.js} +1 -1
  117. package/dist/{TableOfContents-BIzH0Twf.js → TableOfContents-B7Qmz4t9.js} +1 -1
  118. package/dist/{TableOfContents-Ct-Kwm8X.cjs → TableOfContents-IQordoiY.cjs} +1 -1
  119. package/dist/{TextInput-DqaVhKud.js → TextInput-DG8aUZeu.js} +3 -3
  120. package/dist/{TextInput-BVTKUEey.cjs → TextInput-r8ap24-5.cjs} +2 -2
  121. package/dist/{Toast-BaMGYx8-.js → Toast-CpdX-63Q.js} +2 -2
  122. package/dist/{Toast-BvZywdtO.cjs → Toast-yB4u936W.cjs} +1 -1
  123. package/dist/{Toaster-CYSWYmUm.cjs → Toaster-BqCi69_x.cjs} +1 -1
  124. package/dist/{Toaster-DtUkjQM_.js → Toaster-XMqkamDu.js} +1 -1
  125. package/dist/{Tree-RRVk_0QJ.js → Tree-Nn3HGP-T.js} +1 -1
  126. package/dist/{Tree-CeXSIcpy.cjs → Tree-hitkY9yg.cjs} +1 -1
  127. package/dist/{TreeNode-z6APXuvr.cjs → TreeNode-DHSYezap.cjs} +1 -1
  128. package/dist/{TreeNode-D9fc2RE_.js → TreeNode-giUfunjf.js} +1 -1
  129. package/dist/{UserMenu-GGR8K7gP.js → UserMenu-C52WN7-m.js} +4 -4
  130. package/dist/{UserMenu-BGIIKwi6.cjs → UserMenu-DFxqVHMM.cjs} +1 -1
  131. package/dist/{Video-DD01piHm.js → Video-B0FTFBYF.js} +1 -1
  132. package/dist/{Video-BxNkDWqi.cjs → Video-DxTpvMsS.cjs} +1 -1
  133. package/dist/{Walkthrough-DpxYuLMU.js → Walkthrough-CCb4OKc-.js} +2 -2
  134. package/dist/{Walkthrough-C_5h67cq.cjs → Walkthrough-QtFJ_YOo.cjs} +1 -1
  135. package/dist/all.cjs +1 -1
  136. package/dist/all.mjs +101 -101
  137. package/dist/component-styles.json +3 -0
  138. package/dist/components/ActionGroup.cjs +1 -1
  139. package/dist/components/ActionGroup.mjs +1 -1
  140. package/dist/components/AiLabel.cjs +1 -1
  141. package/dist/components/AiLabel.mjs +1 -1
  142. package/dist/components/AiProvider.cjs +1 -1
  143. package/dist/components/AiProvider.mjs +1 -1
  144. package/dist/components/AiUsage.cjs +1 -1
  145. package/dist/components/AiUsage.mjs +1 -1
  146. package/dist/components/BackToTop.cjs +1 -1
  147. package/dist/components/BackToTop.mjs +1 -1
  148. package/dist/components/Banner.cjs +1 -1
  149. package/dist/components/Banner.mjs +1 -1
  150. package/dist/components/BatchActions.cjs +1 -1
  151. package/dist/components/BatchActions.mjs +1 -1
  152. package/dist/components/Blueprint.cjs +1 -1
  153. package/dist/components/Blueprint.mjs +1 -1
  154. package/dist/components/BlueprintBackground.cjs +1 -1
  155. package/dist/components/BlueprintBackground.mjs +1 -1
  156. package/dist/components/BlueprintCard.cjs +1 -1
  157. package/dist/components/BlueprintCard.mjs +1 -1
  158. package/dist/components/BlueprintControls.cjs +1 -1
  159. package/dist/components/BlueprintControls.mjs +1 -1
  160. package/dist/components/BlueprintMinimap.cjs +1 -1
  161. package/dist/components/BlueprintMinimap.mjs +1 -1
  162. package/dist/components/Board.cjs +1 -1
  163. package/dist/components/Board.mjs +1 -1
  164. package/dist/components/BottomPanel.cjs +1 -1
  165. package/dist/components/BottomPanel.mjs +1 -1
  166. package/dist/components/Breadcrumbs.cjs +1 -1
  167. package/dist/components/Breadcrumbs.mjs +1 -1
  168. package/dist/components/Briefing.cjs +1 -1
  169. package/dist/components/Briefing.mjs +1 -1
  170. package/dist/components/BriefingDestination.cjs +1 -1
  171. package/dist/components/BriefingDestination.mjs +1 -1
  172. package/dist/components/Button.cjs +1 -1
  173. package/dist/components/Button.mjs +1 -1
  174. package/dist/components/Button.vue.d.ts.map +1 -1
  175. package/dist/components/ButtonSet.cjs +1 -1
  176. package/dist/components/ButtonSet.mjs +1 -1
  177. package/dist/components/Calendar.cjs +1 -1
  178. package/dist/components/Calendar.mjs +1 -1
  179. package/dist/components/Charts/BarChart.cjs +1 -1
  180. package/dist/components/Charts/BarChart.d.ts +5 -1
  181. package/dist/components/Charts/BarChart.mjs +1 -1
  182. package/dist/components/Charts/BarChart.vue.d.ts +2 -0
  183. package/dist/components/Charts/BarChart.vue.d.ts.map +1 -1
  184. package/dist/components/Charts/GanttChart.cjs +1 -1
  185. package/dist/components/Charts/GanttChart.mjs +1 -1
  186. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  187. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  188. package/dist/components/Charts/LineChart.cjs +1 -1
  189. package/dist/components/Charts/LineChart.d.ts +2 -1
  190. package/dist/components/Charts/LineChart.mjs +1 -1
  191. package/dist/components/Charts/LineChart.vue.d.ts +1 -0
  192. package/dist/components/Charts/LineChart.vue.d.ts.map +1 -1
  193. package/dist/components/Charts/PieChart.cjs +1 -1
  194. package/dist/components/Charts/PieChart.d.ts +7 -2
  195. package/dist/components/Charts/PieChart.mjs +1 -1
  196. package/dist/components/Charts/PieChart.vue.d.ts +1 -0
  197. package/dist/components/Charts/PieChart.vue.d.ts.map +1 -1
  198. package/dist/components/Charts/Sparkline.cjs +1 -1
  199. package/dist/components/Charts/Sparkline.d.ts +6 -0
  200. package/dist/components/Charts/Sparkline.mjs +1 -1
  201. package/dist/components/Charts/Sparkline.vue.d.ts +1 -0
  202. package/dist/components/Charts/Sparkline.vue.d.ts.map +1 -1
  203. package/dist/components/Charts/shared/ChartTooltip.vue.d.ts +4 -0
  204. package/dist/components/Charts/shared/ChartTooltip.vue.d.ts.map +1 -1
  205. package/dist/components/Charts/shared/types.d.ts +11 -0
  206. package/dist/components/Charts/shared/useChartEntrance.d.ts +17 -0
  207. package/dist/components/Charts/shared/useChartEntrance.d.ts.map +1 -0
  208. package/dist/components/Checkbox.cjs +1 -1
  209. package/dist/components/Checkbox.mjs +1 -1
  210. package/dist/components/CheckboxGroup.cjs +1 -1
  211. package/dist/components/CheckboxGroup.mjs +1 -1
  212. package/dist/components/ChipGroup.cjs +1 -1
  213. package/dist/components/ChipGroup.mjs +1 -1
  214. package/dist/components/CloseButton.cjs +1 -1
  215. package/dist/components/CloseButton.mjs +1 -1
  216. package/dist/components/ColorStrip.cjs +1 -1
  217. package/dist/components/ColorStrip.mjs +1 -1
  218. package/dist/components/CommandPalette.cjs +1 -1
  219. package/dist/components/CommandPalette.mjs +1 -1
  220. package/dist/components/Confirm.cjs +1 -1
  221. package/dist/components/Confirm.mjs +1 -1
  222. package/dist/components/ContentSwitcher.cjs +1 -1
  223. package/dist/components/ContentSwitcher.mjs +1 -1
  224. package/dist/components/CopyButton.cjs +1 -1
  225. package/dist/components/CopyButton.mjs +1 -1
  226. package/dist/components/DataTable.cjs +1 -1
  227. package/dist/components/DataTable.mjs +1 -1
  228. package/dist/components/DatePicker.cjs +1 -1
  229. package/dist/components/DatePicker.mjs +1 -1
  230. package/dist/components/DatePicker.vue.d.ts.map +1 -1
  231. package/dist/components/DragHandle.cjs +1 -1
  232. package/dist/components/DragHandle.mjs +1 -1
  233. package/dist/components/FileUploader.cjs +1 -1
  234. package/dist/components/FileUploader.mjs +1 -1
  235. package/dist/components/Flag.cjs +1 -1
  236. package/dist/components/Flag.mjs +1 -1
  237. package/dist/components/FloatingToolbar.cjs +1 -1
  238. package/dist/components/FloatingToolbar.mjs +1 -1
  239. package/dist/components/Form.cjs +1 -1
  240. package/dist/components/Form.mjs +1 -1
  241. package/dist/components/ImageCropper.cjs +1 -1
  242. package/dist/components/ImageCropper.mjs +1 -1
  243. package/dist/components/ImagePicker.cjs +1 -1
  244. package/dist/components/ImagePicker.mjs +1 -1
  245. package/dist/components/InlineEdit.cjs +1 -1
  246. package/dist/components/InlineEdit.mjs +1 -1
  247. package/dist/components/InlineLoading.cjs +1 -1
  248. package/dist/components/InlineLoading.mjs +1 -1
  249. package/dist/components/InputGroup.cjs +1 -1
  250. package/dist/components/InputGroup.mjs +1 -1
  251. package/dist/components/JsonTree.cjs +1 -1
  252. package/dist/components/JsonTree.mjs +1 -1
  253. package/dist/components/Layer.cjs +1 -1
  254. package/dist/components/Layer.mjs +1 -1
  255. package/dist/components/Menu.d.ts +7 -0
  256. package/dist/components/MenuBar.cjs +1 -1
  257. package/dist/components/MenuBar.mjs +1 -1
  258. package/dist/components/MenuBarItem.cjs +1 -1
  259. package/dist/components/MenuBarItem.mjs +1 -1
  260. package/dist/components/MenuDivider.cjs +1 -1
  261. package/dist/components/MenuDivider.mjs +1 -1
  262. package/dist/components/Modal.cjs +1 -1
  263. package/dist/components/Modal.mjs +1 -1
  264. package/dist/components/NotificationCenter.cjs +1 -1
  265. package/dist/components/NotificationCenter.mjs +1 -1
  266. package/dist/components/NotificationCenterItem.cjs +1 -1
  267. package/dist/components/NotificationCenterItem.mjs +1 -1
  268. package/dist/components/NubiscoMark.cjs +1 -1
  269. package/dist/components/NubiscoMark.mjs +1 -1
  270. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  271. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  272. package/dist/components/NumberInput.cjs +1 -1
  273. package/dist/components/NumberInput.mjs +1 -1
  274. package/dist/components/NumberInput.vue.d.ts.map +1 -1
  275. package/dist/components/OverflowMenu.cjs +1 -1
  276. package/dist/components/OverflowMenu.mjs +1 -1
  277. package/dist/components/PageHeader.cjs +1 -1
  278. package/dist/components/PageHeader.mjs +1 -1
  279. package/dist/components/Pagination.cjs +1 -1
  280. package/dist/components/Pagination.mjs +1 -1
  281. package/dist/components/Panel.cjs +1 -1
  282. package/dist/components/Panel.d.ts +6 -0
  283. package/dist/components/Panel.mjs +1 -1
  284. package/dist/components/Panel.vue.d.ts +5 -4
  285. package/dist/components/Panel.vue.d.ts.map +1 -1
  286. package/dist/components/ProgressBar.cjs +1 -1
  287. package/dist/components/ProgressBar.mjs +1 -1
  288. package/dist/components/Radio.cjs +1 -1
  289. package/dist/components/Radio.mjs +1 -1
  290. package/dist/components/Search.cjs +1 -1
  291. package/dist/components/Search.mjs +1 -1
  292. package/dist/components/Select.cjs +1 -1
  293. package/dist/components/Select.mjs +1 -1
  294. package/dist/components/Shell.cjs +1 -1
  295. package/dist/components/Shell.mjs +1 -1
  296. package/dist/components/ShellPanel.cjs +1 -1
  297. package/dist/components/ShellPanel.mjs +1 -1
  298. package/dist/components/SidebarBrand.cjs +1 -1
  299. package/dist/components/SidebarBrand.mjs +1 -1
  300. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  301. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  302. package/dist/components/SidebarHeaderToggle.cjs +1 -1
  303. package/dist/components/SidebarHeaderToggle.mjs +1 -1
  304. package/dist/components/SidebarLink.cjs +1 -1
  305. package/dist/components/SidebarLink.mjs +1 -1
  306. package/dist/components/SidebarMenu.cjs +1 -1
  307. package/dist/components/SidebarMenu.mjs +1 -1
  308. package/dist/components/SidebarMenuGroup.cjs +1 -1
  309. package/dist/components/SidebarMenuGroup.mjs +1 -1
  310. package/dist/components/SidebarMenuItem.cjs +1 -1
  311. package/dist/components/SidebarMenuItem.mjs +1 -1
  312. package/dist/components/SidebarStatus.cjs +1 -1
  313. package/dist/components/SidebarStatus.mjs +1 -1
  314. package/dist/components/Skeleton.cjs +1 -1
  315. package/dist/components/Skeleton.mjs +1 -1
  316. package/dist/components/Skeleton.vue.d.ts +1 -1
  317. package/dist/components/Slider.cjs +1 -1
  318. package/dist/components/Slider.mjs +1 -1
  319. package/dist/components/Spinner.cjs +1 -1
  320. package/dist/components/Spinner.mjs +1 -1
  321. package/dist/components/Stat.cjs +1 -1
  322. package/dist/components/Stat.d.ts +19 -0
  323. package/dist/components/Stat.mjs +1 -1
  324. package/dist/components/Stat.vue.d.ts +10 -4
  325. package/dist/components/Stat.vue.d.ts.map +1 -1
  326. package/dist/components/Stepper.cjs +1 -1
  327. package/dist/components/Stepper.mjs +1 -1
  328. package/dist/components/StepperStep.cjs +1 -1
  329. package/dist/components/StepperStep.mjs +1 -1
  330. package/dist/components/Submenu.cjs +1 -1
  331. package/dist/components/Submenu.mjs +1 -1
  332. package/dist/components/Submenu.vue.d.ts +1 -0
  333. package/dist/components/Submenu.vue.d.ts.map +1 -1
  334. package/dist/components/SuggestionList.cjs +1 -1
  335. package/dist/components/SuggestionList.mjs +1 -1
  336. package/dist/components/TableOfContents.cjs +1 -1
  337. package/dist/components/TableOfContents.mjs +1 -1
  338. package/dist/components/Tabs.cjs +1 -1
  339. package/dist/components/Tabs.mjs +1 -1
  340. package/dist/components/TextInput.cjs +1 -1
  341. package/dist/components/TextInput.mjs +1 -1
  342. package/dist/components/TextInput.vue.d.ts.map +1 -1
  343. package/dist/components/Toast.cjs +1 -1
  344. package/dist/components/Toast.mjs +1 -1
  345. package/dist/components/Toaster.cjs +1 -1
  346. package/dist/components/Toaster.mjs +1 -1
  347. package/dist/components/Toolbar.cjs +1 -1
  348. package/dist/components/Toolbar.mjs +1 -1
  349. package/dist/components/Tree.cjs +1 -1
  350. package/dist/components/Tree.mjs +1 -1
  351. package/dist/components/TreeNode.cjs +1 -1
  352. package/dist/components/TreeNode.mjs +1 -1
  353. package/dist/components/UserMenu.cjs +1 -1
  354. package/dist/components/UserMenu.mjs +1 -1
  355. package/dist/components/Video.cjs +1 -1
  356. package/dist/components/Video.mjs +1 -1
  357. package/dist/components/Walkthrough.cjs +1 -1
  358. package/dist/components/Walkthrough.mjs +1 -1
  359. package/dist/components/Wireframe.cjs +1 -1
  360. package/dist/components/Wireframe.mjs +1 -1
  361. package/dist/composables/useBlueprint.composable.cjs +1 -1
  362. package/dist/composables/useBlueprint.composable.mjs +1 -1
  363. package/dist/composables/useConfirm.composable.cjs +1 -1
  364. package/dist/composables/useConfirm.composable.mjs +2 -2
  365. package/dist/composables/useInlineLoading.composable.cjs +1 -1
  366. package/dist/composables/useInlineLoading.composable.mjs +1 -1
  367. package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
  368. package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
  369. package/dist/composables/useNbStrings.composable.cjs +1 -1
  370. package/dist/composables/useNbStrings.composable.d.ts +3 -0
  371. package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
  372. package/dist/composables/useNbStrings.composable.mjs +2 -0
  373. package/dist/index.cjs +1 -1
  374. package/dist/index.mjs +101 -101
  375. package/dist/{main-Bo1B-xzL.cjs → main-Dr-OZ97R.cjs} +1 -1
  376. package/dist/{main-nO1LQzsc.js → main-hHSQ2Z9E.js} +1 -1
  377. package/dist/{palette-6bEW4KUN.js → palette-BPqd521m.js} +24 -16
  378. package/dist/palette-MlQ_k4iu.cjs +1 -0
  379. package/dist/styles/BarChart.css +1 -1
  380. package/dist/styles/Button.css +1 -1
  381. package/dist/styles/LineChart.css +1 -1
  382. package/dist/styles/NumberInput.css +1 -1
  383. package/dist/styles/Panel.css +1 -1
  384. package/dist/styles/PieChart.css +1 -1
  385. package/dist/styles/Sparkline.css +1 -1
  386. package/dist/styles/Stat.css +1 -1
  387. package/dist/styles/TextInput.css +1 -1
  388. package/dist/styles/palette.css +1 -1
  389. package/dist/ui.css +10 -10
  390. package/dist/useChartEntrance-D8vJ7eWq.cjs +1 -0
  391. package/dist/useChartEntrance-heEx5_ZG.js +10 -0
  392. package/package.json +2 -2
  393. package/dist/BarChart-3YO4YfUt.cjs +0 -1
  394. package/dist/DatePicker-Du21bjhe.cjs +0 -1
  395. package/dist/LineChart-CGXpi9l8.cjs +0 -1
  396. package/dist/NumberInput-DaZI9hc3.cjs +0 -1
  397. package/dist/Panel-NC6_ZogV.cjs +0 -1
  398. package/dist/Panel-zyzu638n.js +0 -51
  399. package/dist/PieChart-DQhs44eH.cjs +0 -1
  400. package/dist/PieChart-D_02nX0-.js +0 -182
  401. package/dist/Sparkline-B7kUEfuW.cjs +0 -1
  402. package/dist/Sparkline-CVzkzaOJ.js +0 -95
  403. package/dist/Stat-BoQUn69z.cjs +0 -1
  404. package/dist/Stat-Bz0NCLTm.js +0 -101
  405. package/dist/Submenu-DRkHiWsD.cjs +0 -1
  406. package/dist/Submenu-Dnj5MiFy.js +0 -149
  407. package/dist/palette-LbOzdAXj.cjs +0 -1
  408. /package/dist/{Blueprint.context-Bz6Jy1Ou.js → Blueprint.context-CWzHXNtU.js} +0 -0
  409. /package/dist/{Blueprint.context-BX56xsrT.cjs → Blueprint.context-KUd38ozw.cjs} +0 -0
  410. /package/dist/{BlueprintBackground-DPjZeMwY.js → BlueprintBackground-CBU9iwAA.js} +0 -0
  411. /package/dist/{BlueprintBackground-yHRGclEz.cjs → BlueprintBackground-CfII_po9.cjs} +0 -0
  412. /package/dist/{BlueprintMinimap-qskDNYyr.cjs → BlueprintMinimap-5mdeNCgk.cjs} +0 -0
  413. /package/dist/{BlueprintMinimap-xnsyS1M8.js → BlueprintMinimap-CP2-gY4i.js} +0 -0
  414. /package/dist/{CheckboxGroup.context-C1QB-Zsq.js → CheckboxGroup.context-B21mAPv4.js} +0 -0
  415. /package/dist/{CheckboxGroup.context-ADwiY4gy.cjs → CheckboxGroup.context-DRWqTj9S.cjs} +0 -0
  416. /package/dist/{ChipGroup-CVDk4ElV.js → ChipGroup-BNp7OB2t.js} +0 -0
  417. /package/dist/{ChipGroup-DojKPHhq.cjs → ChipGroup-BplLSI81.cjs} +0 -0
  418. /package/dist/{ColorStrip-CuF9ZGoO.js → ColorStrip-BaLKZV51.js} +0 -0
  419. /package/dist/{ColorStrip-bpguV5b2.cjs → ColorStrip-D6p71EPQ.cjs} +0 -0
  420. /package/dist/{DragHandle-Cc7WrUj7.js → DragHandle-CuEBPvz8.js} +0 -0
  421. /package/dist/{DragHandle-Bz2N22Sm.cjs → DragHandle-IJoaUK75.cjs} +0 -0
  422. /package/dist/{Flag-DyDqHJy3.js → Flag-CKhucUhD.js} +0 -0
  423. /package/dist/{Flag-gM91kXTi.cjs → Flag-D5hPnq37.cjs} +0 -0
  424. /package/dist/{FloatingToolbar-DDCJuaq0.cjs → FloatingToolbar-By_-ubVi.cjs} +0 -0
  425. /package/dist/{FloatingToolbar-BTmWtGU7.js → FloatingToolbar-Clz7tlQQ.js} +0 -0
  426. /package/dist/{Form-D2KHlP7N.cjs → Form-Bc4QF6Lk.cjs} +0 -0
  427. /package/dist/{Form-igwYeEVI.js → Form-Co-23Ktg.js} +0 -0
  428. /package/dist/{InlineEdit-Y8i0ibjH.js → InlineEdit-Ccm5eW9r.js} +0 -0
  429. /package/dist/{InlineEdit-DBMKJ3xP.cjs → InlineEdit-hVNTw3FL.cjs} +0 -0
  430. /package/dist/{InputGroup-BYoHNpY0.cjs → InputGroup-BHOJSSQ_.cjs} +0 -0
  431. /package/dist/{InputGroup-BYThVO5L.js → InputGroup-OytJ8AMk.js} +0 -0
  432. /package/dist/{JsonTree-MjCO8_Xk.cjs → JsonTree-D2auUavc.cjs} +0 -0
  433. /package/dist/{JsonTree-VbXpLPoG.js → JsonTree-E9Z-ELBN.js} +0 -0
  434. /package/dist/{Layer-Btb-b9Mk.js → Layer--aoEMtI2.js} +0 -0
  435. /package/dist/{Layer-D0NqQYM0.cjs → Layer-C8RYJ-6a.cjs} +0 -0
  436. /package/dist/{MenuBar-BVgGbppN.cjs → MenuBar-3tuFXaKq.cjs} +0 -0
  437. /package/dist/{MenuBar-M2eiYZG0.js → MenuBar-T-R82ARB.js} +0 -0
  438. /package/dist/{MenuBarItem-CQsy3y2I.js → MenuBarItem-DWx9J8-L.js} +0 -0
  439. /package/dist/{MenuBarItem-Dd9hNBra.cjs → MenuBarItem-GgXvNoo-.cjs} +0 -0
  440. /package/dist/{MenuDivider-BSMtwoUU.cjs → MenuDivider-9wQ-fCik.cjs} +0 -0
  441. /package/dist/{MenuDivider-B3tNv2aj.js → MenuDivider-ksA6NvMu.js} +0 -0
  442. /package/dist/{NotificationCenterItem-O6SR_6KR.js → NotificationCenterItem-DdH7jvvg.js} +0 -0
  443. /package/dist/{NotificationCenterItem-D0agavaK.cjs → NotificationCenterItem-zIL89umA.cjs} +0 -0
  444. /package/dist/{NubiscoMark-XJWPWIc0.js → NubiscoMark-BmzCQO-3.js} +0 -0
  445. /package/dist/{NubiscoMark-3StsXBoJ.cjs → NubiscoMark-xthZ972G.cjs} +0 -0
  446. /package/dist/{NubiscoPlatformMark-D8WIp4On.cjs → NubiscoPlatformMark-DA2jJFJN.cjs} +0 -0
  447. /package/dist/{NubiscoPlatformMark-BgQLjI89.js → NubiscoPlatformMark-DCr77bqN.js} +0 -0
  448. /package/dist/{ProgressBar-z912Ppfm.cjs → ProgressBar-BSPcsJ13.cjs} +0 -0
  449. /package/dist/{ProgressBar-Bp-pe6sU.js → ProgressBar-C-mDH8u0.js} +0 -0
  450. /package/dist/{Radio-DuvSK9tl.cjs → Radio-LlTK1Sug.cjs} +0 -0
  451. /package/dist/{Radio-DcMkavI8.js → Radio-q_unHymB.js} +0 -0
  452. /package/dist/{SidebarBrand-D2u7hX-v.cjs → SidebarBrand-DmWBakJG.cjs} +0 -0
  453. /package/dist/{SidebarBrand-CZf-kRyZ.js → SidebarBrand-Dz8O0JHj.js} +0 -0
  454. /package/dist/{SidebarLink-CSTNfb2F.cjs → SidebarLink-D1rsmzP_.cjs} +0 -0
  455. /package/dist/{SidebarLink-BuRBmv_k.js → SidebarLink-qbDy2Jip.js} +0 -0
  456. /package/dist/{SidebarMenu-CAthEmyy.cjs → SidebarMenu-CEff0kWr.cjs} +0 -0
  457. /package/dist/{SidebarMenu-CgWUHllQ.js → SidebarMenu-Cz7k20qd.js} +0 -0
  458. /package/dist/{SidebarMenuGroup-DdWg57Wv.js → SidebarMenuGroup-BvrYrQQi.js} +0 -0
  459. /package/dist/{SidebarMenuGroup-B9JGPBcF.cjs → SidebarMenuGroup-vc3SM277.cjs} +0 -0
  460. /package/dist/{SidebarMenuItem-BvvoDIjK.js → SidebarMenuItem-D7rkGP2L.js} +0 -0
  461. /package/dist/{SidebarMenuItem-eFnj5QoE.cjs → SidebarMenuItem-DYREDfqx.cjs} +0 -0
  462. /package/dist/{SidebarStatus-CnTnYL4x.js → SidebarStatus-COgGJjkA.js} +0 -0
  463. /package/dist/{SidebarStatus-CvjuggXO.cjs → SidebarStatus-Coh-cSGj.cjs} +0 -0
  464. /package/dist/{Stepper.context-CRKX8lxW.js → Stepper.context-BBwBAwSJ.js} +0 -0
  465. /package/dist/{Stepper.context-Brnt5IZv.cjs → Stepper.context-CIIC0ucN.cjs} +0 -0
  466. /package/dist/{Tabs-B_bsdxWy.js → Tabs-D_LFyWTX.js} +0 -0
  467. /package/dist/{Tabs-CTMUPND5.cjs → Tabs-W2hUdYvl.cjs} +0 -0
  468. /package/dist/{Toolbar-tOeTdj8a.js → Toolbar-Cc_31FMW.js} +0 -0
  469. /package/dist/{Toolbar-BmJeXz4C.cjs → Toolbar-DN0gMuyj.cjs} +0 -0
  470. /package/dist/{TreeContext-Cs4iAw0d.js → TreeContext-BSNQGIEd.js} +0 -0
  471. /package/dist/{TreeContext-B2Io2oii.cjs → TreeContext-JbeO4_mW.cjs} +0 -0
  472. /package/dist/{Wireframe-C_Ca3wCn.js → Wireframe-B-Dnmefu.js} +0 -0
  473. /package/dist/{Wireframe-3fvc4I5-.cjs → Wireframe-DBqyeEzE.cjs} +0 -0
  474. /package/dist/{pixi-scene-DFCEvc1j.js → pixi-scene-CdHSFEve.js} +0 -0
  475. /package/dist/{pixi-scene-CQ1qoZvX.cjs → pixi-scene-RJljCo62.cjs} +0 -0
  476. /package/dist/{useLoadingAnnouncer.composable-CEPRjDi3.cjs → useLoadingAnnouncer.composable-BXyCMUDe.cjs} +0 -0
  477. /package/dist/{useLoadingAnnouncer.composable-c0XX_xNT.js → useLoadingAnnouncer.composable-CZT2zf7e.js} +0 -0
  478. /package/dist/{vue-i18n-DaD-yZmK.js → vue-i18n-B8N89VAx.js} +0 -0
  479. /package/dist/{vue-i18n-ZdR0XDmN.cjs → vue-i18n-D8JKgg8C.cjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as e } from "./Button-tpOmP8iV.js";
1
+ import { t as e } from "./Button-CxJMKPpw.js";
2
2
  import { useSurfaceLayer as t } from "./composables/useSurfaceLayer.composable.mjs";
3
3
  import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
4
4
  import { useNbStrings as r } from "./composables/useNbStrings.composable.mjs";
@@ -31,6 +31,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
31
31
  class: "nb-date-picker__col"
32
32
  }, ve = [
33
33
  "id",
34
+ "aria-label",
34
35
  "value",
35
36
  "placeholder",
36
37
  "disabled",
@@ -64,6 +65,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
64
65
  "aria-hidden": "true"
65
66
  }, De = { class: "nb-date-picker__fluid-row" }, Oe = [
66
67
  "id",
68
+ "aria-label",
67
69
  "value",
68
70
  "placeholder",
69
71
  "disabled",
@@ -166,23 +168,23 @@ var he = { class: "nb-date-picker__col" }, ge = [
166
168
  function nt(e, t) {
167
169
  if (!(D.variant !== "default" || A)) return e ? t : D.helper ? He.value : void 0;
168
170
  }
169
- let rt = oe(), it = d(() => s(rt["aria-describedby"], nt(H.value, Ue.value), k.describedBy.value)), at = d(() => s(nt(U.value, We.value), k.describedBy.value)), ot = d(() => k.status.value === "error"), st = d(() => k.status.value === "warning"), W = d(() => !!D.error || ot.value), ct = d(() => !W.value && (!!D.warning || st.value)), G = d(() => !!D.endError || ot.value), lt = d(() => !G.value && (!!D.endWarning || st.value)), ut = d(() => W.value ? !0 : void 0), dt = d(() => G.value ? !0 : void 0), ft = d(() => D.type === "range" && !!D.endLabel), pt = d(() => D.endLabel || D.endPlaceholder);
170
- function mt(e) {
171
+ let rt = oe(), it = d(() => s(rt["aria-describedby"], nt(H.value, Ue.value), k.describedBy.value)), at = d(() => s(nt(U.value, We.value), k.describedBy.value)), ot = d(() => k.status.value === "error"), st = d(() => k.status.value === "warning"), W = d(() => !!D.error || ot.value), ct = d(() => !W.value && (!!D.warning || st.value)), G = d(() => !!D.endError || ot.value), lt = d(() => !G.value && (!!D.endWarning || st.value)), ut = d(() => W.value ? !0 : void 0), dt = d(() => G.value ? !0 : void 0), ft = d(() => D.type === "range" && !!D.endLabel), pt = d(() => D.endLabel || D.endPlaceholder), mt = d(() => A ? D.endLabel || D.endPlaceholder || E.value.datePickerEndDate : void 0);
172
+ function ht(e) {
171
173
  return D.min != null && e < D.min || D.max != null && e > D.max ? !0 : D.disabledDates ? typeof D.disabledDates == "function" ? D.disabledDates(e) : D.disabledDates.includes(e) : !1;
172
174
  }
173
- let ht = d(() => new Intl.DateTimeFormat(B.value).formatToParts(new Date(2e3, 0, 15)).map((e) => e.type).filter((e) => e === "day" || e === "month" || e === "year"));
174
- function gt(e, t, n) {
175
+ let gt = d(() => new Intl.DateTimeFormat(B.value).formatToParts(new Date(2e3, 0, 15)).map((e) => e.type).filter((e) => e === "day" || e === "month" || e === "year"));
176
+ function _t(e, t, n) {
175
177
  let r = new Date(e, t - 1, n);
176
178
  return r.getMonth() !== t - 1 || r.getDate() !== n ? null : (r.setFullYear(e), Q(r));
177
179
  }
178
- function _t(e) {
180
+ function vt(e) {
179
181
  let t = e.split(/[\s./-]+/).filter(Boolean);
180
182
  if (t.length !== 3) return null;
181
183
  let n = t[0].length === 4 ? [
182
184
  "year",
183
185
  "month",
184
186
  "day"
185
- ] : ht.value;
187
+ ] : gt.value;
186
188
  if (n.length !== 3) return null;
187
189
  let r = {
188
190
  day: 0,
@@ -194,34 +196,34 @@ var he = { class: "nb-date-picker__col" }, ge = [
194
196
  if (i === "year" ? a.length !== 4 : a.length > 2) return null;
195
197
  r[i] = Number(a);
196
198
  }
197
- return gt(r.year, r.month, r.day);
199
+ return _t(r.year, r.month, r.day);
198
200
  }
199
- function vt(e) {
201
+ function yt(e) {
200
202
  let t = e.trim();
201
203
  if (!t) return null;
202
204
  if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
203
205
  let e = /* @__PURE__ */ new Date(t + "T00:00:00");
204
206
  return isNaN(e.getTime()) ? null : t;
205
207
  }
206
- if (/^[\d\s./-]+$/.test(t)) return _t(t);
208
+ if (/^[\d\s./-]+$/.test(t)) return vt(t);
207
209
  let n = new Date(t);
208
210
  return isNaN(n.getTime()) ? null : Q(n);
209
211
  }
210
- function yt(e) {
211
- let t = e.target.value, n = vt(t);
212
- n && mt(n) || (n || t === "") && (O("update:modelValue", n), O("change", n));
213
- }
214
212
  function bt(e) {
215
- let t = e.target.value, n = vt(t);
216
- n && mt(n) || (n || t === "") && O("update:endValue", n);
213
+ let t = e.target.value, n = yt(t);
214
+ n && ht(n) || (n || t === "") && (O("update:modelValue", n), O("change", n));
217
215
  }
218
216
  function xt(e) {
219
- N.value = e.target === L.value ? "end" : "start", D.type !== "simple" && !D.readonly && (z.value = N.value, P.value ? wt() : K());
217
+ let t = e.target.value, n = yt(t);
218
+ n && ht(n) || (n || t === "") && O("update:endValue", n);
220
219
  }
221
- function St() {
220
+ function St(e) {
221
+ N.value = e.target === L.value ? "end" : "start", D.type !== "simple" && !D.readonly && (z.value = N.value, P.value ? Tt() : K());
222
+ }
223
+ function Ct() {
222
224
  N.value = null;
223
225
  }
224
- function Ct(e) {
226
+ function wt(e) {
225
227
  if (!(D.type === "simple" || D.readonly)) switch (e.key) {
226
228
  case "Escape":
227
229
  P.value && (q(), e.preventDefault());
@@ -234,7 +236,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
234
236
  break;
235
237
  }
236
238
  }
237
- function wt() {
239
+ function Tt() {
238
240
  let e = qe.value?.querySelectorAll(".nb-date-picker__input-wrapper");
239
241
  if (!e?.length) return;
240
242
  let t = (z.value === "end" && e.length > 1 ? e[1] : e[0]).getBoundingClientRect(), n = R.value?.offsetWidth ?? 0, r = R.value?.offsetHeight ?? 0, i = t.left, a = t.bottom + 4;
@@ -249,14 +251,14 @@ var he = { class: "nb-date-picker__col" }, ge = [
249
251
  if (M.value || D.readonly || D.type === "simple" || P.value) return;
250
252
  P.value = !0;
251
253
  let e = z.value === "end" && D.endValue ? D.endValue : D.modelValue, t = e ? /* @__PURE__ */ new Date(e + "T00:00:00") : /* @__PURE__ */ new Date();
252
- X.value = t.getFullYear(), Z.value = t.getMonth(), F.value = e || Q(/* @__PURE__ */ new Date()), wt(), y(wt);
254
+ X.value = t.getFullYear(), Z.value = t.getMonth(), F.value = e || Q(/* @__PURE__ */ new Date()), Tt(), y(Tt);
253
255
  }
254
256
  function q() {
255
257
  P.value && (P.value = !1, y(() => {
256
258
  z.value === "end" && L.value ? L.value.focus() : I.value?.focus();
257
259
  }));
258
260
  }
259
- function Tt() {
261
+ function Et() {
260
262
  P.value ? q() : (z.value = "start", K(), y(J));
261
263
  }
262
264
  function J() {
@@ -264,39 +266,39 @@ var he = { class: "nb-date-picker__col" }, ge = [
264
266
  (R.value?.querySelector(`[data-date="${F.value}"]`))?.focus();
265
267
  });
266
268
  }
267
- function Et(e) {
268
- mt(e) || (D.type === "range" ? z.value === "start" ? (O("update:modelValue", e), O("change", e), z.value = "end", F.value = e, y(() => L.value?.focus())) : (D.modelValue && e < D.modelValue ? (O("update:endValue", D.modelValue), O("update:modelValue", e), O("change", e)) : O("update:endValue", e), q()) : (O("update:modelValue", e), O("change", e), q()));
269
- }
270
269
  function Dt(e) {
270
+ ht(e) || (D.type === "range" ? z.value === "start" ? (O("update:modelValue", e), O("change", e), z.value = "end", F.value = e, y(() => L.value?.focus())) : (D.modelValue && e < D.modelValue ? (O("update:endValue", D.modelValue), O("update:modelValue", e), O("change", e)) : O("update:endValue", e), q()) : (O("update:modelValue", e), O("change", e), q()));
271
+ }
272
+ function Ot(e) {
271
273
  let t = /* @__PURE__ */ new Date(F.value + "T00:00:00"), n = !0;
272
274
  switch (e.key) {
273
275
  case "ArrowRight":
274
- Ot(t, 1);
276
+ kt(t, 1);
275
277
  break;
276
278
  case "ArrowLeft":
277
- Ot(t, -1);
279
+ kt(t, -1);
278
280
  break;
279
281
  case "ArrowDown":
280
- Ot(t, 7);
282
+ kt(t, 7);
281
283
  break;
282
284
  case "ArrowUp":
283
- Ot(t, -7);
285
+ kt(t, -7);
284
286
  break;
285
287
  case "Home":
286
- kt(t, "start");
288
+ At(t, "start");
287
289
  break;
288
290
  case "End":
289
- kt(t, "end");
291
+ At(t, "end");
290
292
  break;
291
293
  case "PageUp":
292
- e.shiftKey ? At(t, -12) : At(t, -1);
294
+ e.shiftKey ? jt(t, -12) : jt(t, -1);
293
295
  break;
294
296
  case "PageDown":
295
- e.shiftKey ? At(t, 12) : At(t, 1);
297
+ e.shiftKey ? jt(t, 12) : jt(t, 1);
296
298
  break;
297
299
  case "Enter":
298
300
  case " ":
299
- e.preventDefault(), Et(F.value);
301
+ e.preventDefault(), Dt(F.value);
300
302
  return;
301
303
  case "Escape":
302
304
  q();
@@ -308,50 +310,50 @@ var he = { class: "nb-date-picker__col" }, ge = [
308
310
  }
309
311
  n && e.preventDefault();
310
312
  }
311
- function Ot(e, t) {
313
+ function kt(e, t) {
312
314
  let n = new Date(e);
313
- n.setDate(n.getDate() + t), jt(n);
315
+ n.setDate(n.getDate() + t), Mt(n);
314
316
  }
315
- function kt(e, t) {
317
+ function At(e, t) {
316
318
  let n = e.getDay();
317
319
  D.weekStart === 1 && (n = n === 0 ? 6 : n - 1);
318
320
  let r = t === "start" ? -n : 6 - n, i = new Date(e);
319
- i.setDate(i.getDate() + r), jt(i);
321
+ i.setDate(i.getDate() + r), Mt(i);
320
322
  }
321
- function At(e, t) {
323
+ function jt(e, t) {
322
324
  let n = new Date(e);
323
- n.setMonth(n.getMonth() + t), n.getDate() !== e.getDate() && n.setDate(0), jt(n);
325
+ n.setMonth(n.getMonth() + t), n.getDate() !== e.getDate() && n.setDate(0), Mt(n);
324
326
  }
325
- function jt(e) {
327
+ function Mt(e) {
326
328
  let t = Q(e);
327
329
  D.min != null && t < D.min || D.max != null && t > D.max || (F.value = t, X.value = e.getFullYear(), Z.value = e.getMonth(), J());
328
330
  }
329
- function Mt(e) {
331
+ function Nt(e) {
330
332
  let t = e.target, n = qe.value?.contains(t) ?? !1, r = R.value?.contains(t) ?? !1, i = Ye.value?.contains(t) ?? !1;
331
333
  !n && !r && !i && q();
332
334
  }
333
335
  function Y() {
334
- P.value && wt();
336
+ P.value && Tt();
335
337
  }
336
338
  ce(P, (e) => {
337
- e ? (document.addEventListener("mousedown", Mt), window.addEventListener("scroll", Y, !0), window.addEventListener("resize", Y)) : (document.removeEventListener("mousedown", Mt), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y));
339
+ e ? (document.addEventListener("mousedown", Nt), window.addEventListener("scroll", Y, !0), window.addEventListener("resize", Y)) : (document.removeEventListener("mousedown", Nt), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y));
338
340
  }), re(() => {
339
- document.removeEventListener("mousedown", Mt), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y);
341
+ document.removeEventListener("mousedown", Nt), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y);
340
342
  });
341
343
  let X = S((/* @__PURE__ */ new Date()).getFullYear()), Z = S((/* @__PURE__ */ new Date()).getMonth());
342
- function Nt(e) {
344
+ function Pt(e) {
343
345
  let t = X.value * 12 + Z.value + e;
344
346
  X.value = Math.floor(t / 12), Z.value = (t % 12 + 12) % 12;
345
347
  let n = (/* @__PURE__ */ new Date(F.value + "T00:00:00")).getDate(), r = new Date(X.value, Z.value + 1, 0).getDate();
346
348
  F.value = Q(new Date(X.value, Z.value, Math.min(n, r))), J();
347
349
  }
348
- let Pt = () => Nt(-1), Ft = () => Nt(1), It = () => Nt(-12), Lt = () => Nt(12), Rt = d(() => {
350
+ let Ft = () => Pt(-1), It = () => Pt(1), Lt = () => Pt(-12), Rt = () => Pt(12), zt = d(() => {
349
351
  let e = new Date(X.value, Z.value, 1).toLocaleDateString(B.value, {
350
352
  month: "long",
351
353
  year: "numeric"
352
354
  });
353
355
  return e.charAt(0).toUpperCase() + e.slice(1);
354
- }), zt = d(() => {
356
+ }), Bt = d(() => {
355
357
  let e = [], t = new Date(2024, 0, D.weekStart === 0 ? 7 : 1);
356
358
  for (let n = 0; n < 7; n++) {
357
359
  let r = new Date(t);
@@ -367,7 +369,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
367
369
  function Q(e) {
368
370
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
369
371
  }
370
- let Bt = d(() => Q(/* @__PURE__ */ new Date())), Vt = d(() => {
372
+ let Vt = d(() => Q(/* @__PURE__ */ new Date())), Ht = d(() => {
371
373
  let e = X.value, t = Z.value, n = new Date(e, t, 1), r = new Date(e, t + 1, 0), i = n.getDay();
372
374
  D.weekStart === 1 && (i = i === 0 ? 6 : i - 1);
373
375
  let a = [], o = D.modelValue ?? null, s = D.endValue ?? null, c = o && s ? o < s ? o : s : null, l = o && s ? o < s ? s : o : null;
@@ -378,12 +380,12 @@ var he = { class: "nb-date-picker__col" }, ge = [
378
380
  date: n,
379
381
  day: e.getDate(),
380
382
  inMonth: t,
381
- isToday: n === Bt.value,
383
+ isToday: n === Vt.value,
382
384
  isSelected: n === o || n === s,
383
385
  inRange: c != null && l != null && n > c && n < l,
384
386
  isRangeStart: n === c && l != null,
385
387
  isRangeEnd: n === l && c != null,
386
- isDisabled: mt(n)
388
+ isDisabled: ht(n)
387
389
  };
388
390
  }
389
391
  for (let n = i - 1; n >= 0; n--) a.push(ee(new Date(e, t, -n), !1));
@@ -391,11 +393,11 @@ var he = { class: "nb-date-picker__col" }, ge = [
391
393
  let u = 7 - a.length % 7;
392
394
  if (u < 7) for (let n = 1; n <= u; n++) a.push(ee(new Date(e, t + 1, n), !1));
393
395
  return a;
394
- }), Ht = d(() => {
396
+ }), Ut = d(() => {
395
397
  let e = [];
396
- for (let t = 0; t < Vt.value.length; t += 7) e.push(Vt.value.slice(t, t + 7));
398
+ for (let t = 0; t < Ht.value.length; t += 7) e.push(Ht.value.slice(t, t + 7));
397
399
  return e;
398
- }), $ = d(() => D.variant === "fluid" ? "sm" : Be.value), Ut = d(() => [
400
+ }), $ = d(() => D.variant === "fluid" ? "sm" : Be.value), Wt = d(() => [
399
401
  "nb-date-picker",
400
402
  `nb-date-picker--${D.variant}`,
401
403
  `nb-date-picker--${Be.value}`,
@@ -408,13 +410,13 @@ var he = { class: "nb-date-picker__col" }, ge = [
408
410
  "nb-date-picker--disabled": M.value,
409
411
  "nb-date-picker--readonly": D.readonly
410
412
  }
411
- ]), Wt = d(() => ({
413
+ ]), Gt = d(() => ({
412
414
  "nb-date-picker__input-wrapper--focused": N.value === "start",
413
415
  "nb-date-picker__input-wrapper--error": W.value,
414
416
  "nb-date-picker__input-wrapper--warning": ct.value,
415
417
  "nb-date-picker__input-wrapper--disabled": M.value,
416
418
  "nb-date-picker__input-wrapper--readonly": D.readonly
417
- })), Gt = d(() => ({
419
+ })), Kt = d(() => ({
418
420
  "nb-date-picker__input-wrapper--focused": N.value === "end",
419
421
  "nb-date-picker__input-wrapper--error": G.value,
420
422
  "nb-date-picker__input-wrapper--warning": lt.value,
@@ -428,7 +430,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
428
430
  }), (t, n) => (x(), m(u, null, [h("div", {
429
431
  ref_key: "rootRef",
430
432
  ref: qe,
431
- class: b(Ut.value)
433
+ class: b(Wt.value)
432
434
  }, [v.variant === "default" ? (x(), m(u, { key: 0 }, [
433
435
  t.$slots.label && !w(A) ? ae(t.$slots, "label", { key: 0 }) : v.label && !ft.value && !w(A) ? (x(), f(i, {
434
436
  key: 1,
@@ -460,7 +462,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
460
462
  "for",
461
463
  "required",
462
464
  "disabled"
463
- ])) : p("", !0), h("div", { class: b(["nb-date-picker__input-wrapper", Wt.value]) }, [h("input", ne({
465
+ ])) : p("", !0), h("div", { class: b(["nb-date-picker__input-wrapper", Gt.value]) }, [h("input", ne({
464
466
  id: w(j),
465
467
  ref_key: "inputRef",
466
468
  ref: I
@@ -475,10 +477,10 @@ var he = { class: "nb-date-picker__col" }, ge = [
475
477
  name: v.name,
476
478
  "aria-invalid": ut.value,
477
479
  "aria-describedby": it.value,
478
- onInput: n[0] ||= (e) => yt(e),
479
- onFocus: xt,
480
- onBlur: St,
481
- onKeydown: Ct
480
+ onInput: n[0] ||= (e) => bt(e),
481
+ onFocus: St,
482
+ onBlur: Ct,
483
+ onKeydown: wt
482
484
  }), null, 16, ge), v.type === "simple" ? p("", !0) : (x(), f(e, {
483
485
  key: 0,
484
486
  variant: "ghost",
@@ -488,7 +490,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
488
490
  disabled: w(M) || v.readonly,
489
491
  tabindex: "-1",
490
492
  label: v.modelValue ? w(E).datePickerChangeDate(V(v.modelValue)) : w(E).datePickerChooseDate,
491
- onClick: Tt
493
+ onClick: Et
492
494
  }, null, 8, [
493
495
  "icon",
494
496
  "size",
@@ -506,11 +508,12 @@ var he = { class: "nb-date-picker__col" }, ge = [
506
508
  "for",
507
509
  "required",
508
510
  "disabled"
509
- ])) : p("", !0), h("div", { class: b(["nb-date-picker__input-wrapper", Gt.value]) }, [h("input", {
511
+ ])) : p("", !0), h("div", { class: b(["nb-date-picker__input-wrapper", Kt.value]) }, [h("input", {
510
512
  id: Ve.value,
511
513
  ref_key: "endInputRef",
512
514
  ref: L,
513
515
  type: "text",
516
+ "aria-label": mt.value,
514
517
  class: "nb-date-picker__field",
515
518
  value: et.value,
516
519
  placeholder: v.endPlaceholder || Ze.value,
@@ -519,10 +522,10 @@ var he = { class: "nb-date-picker__col" }, ge = [
519
522
  required: v.required,
520
523
  "aria-invalid": dt.value,
521
524
  "aria-describedby": at.value,
522
- onInput: n[1] ||= (e) => bt(e),
523
- onFocus: xt,
524
- onBlur: St,
525
- onKeydown: Ct
525
+ onInput: n[1] ||= (e) => xt(e),
526
+ onFocus: St,
527
+ onBlur: Ct,
528
+ onKeydown: wt
526
529
  }, null, 40, ve), _(e, {
527
530
  variant: "ghost",
528
531
  icon: w(fe),
@@ -531,7 +534,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
531
534
  disabled: w(M) || v.readonly,
532
535
  tabindex: "-1",
533
536
  label: v.endValue ? w(E).datePickerChangeEndDate(V(v.endValue)) : w(E).datePickerChooseEndDate,
534
- onClick: Tt
537
+ onClick: Et
535
538
  }, null, 8, [
536
539
  "icon",
537
540
  "size",
@@ -573,7 +576,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
573
576
  gap: v.type === "range" ? "sm" : void 0,
574
577
  class: "nb-date-picker__fields"
575
578
  }, {
576
- default: T(() => [h("div", { class: b(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", Wt.value]) }, [v.label || t.$slots.label || tt.value ? (x(), m("div", ye, [t.$slots.label ? ae(t.$slots, "label", { key: 0 }) : (x(), m("label", {
579
+ default: T(() => [h("div", { class: b(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", Gt.value]) }, [(v.label || t.$slots.label || tt.value) && !w(A) ? (x(), m("div", ye, [t.$slots.label ? ae(t.$slots, "label", { key: 0 }) : (x(), m("label", {
577
580
  key: 1,
578
581
  for: w(j),
579
582
  class: "nb-date-picker__inner-label"
@@ -600,10 +603,10 @@ var he = { class: "nb-date-picker__col" }, ge = [
600
603
  name: v.name,
601
604
  "aria-invalid": ut.value,
602
605
  "aria-describedby": it.value,
603
- onInput: n[2] ||= (e) => yt(e),
604
- onFocus: xt,
605
- onBlur: St,
606
- onKeydown: Ct
606
+ onInput: n[2] ||= (e) => bt(e),
607
+ onFocus: St,
608
+ onBlur: Ct,
609
+ onKeydown: wt
607
610
  }), null, 16, Ce), v.type === "simple" ? p("", !0) : (x(), f(e, {
608
611
  key: 0,
609
612
  variant: "ghost",
@@ -613,7 +616,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
613
616
  disabled: w(M) || v.readonly,
614
617
  tabindex: "-1",
615
618
  label: v.modelValue ? w(E).datePickerChangeDate(V(v.modelValue)) : w(E).datePickerChooseDate,
616
- onClick: Tt
619
+ onClick: Et
617
620
  }, null, 8, [
618
621
  "icon",
619
622
  "size",
@@ -621,8 +624,8 @@ var he = { class: "nb-date-picker__col" }, ge = [
621
624
  "label"
622
625
  ]))])], 2), v.type === "range" ? (x(), m("div", {
623
626
  key: 0,
624
- class: b(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", Gt.value])
625
- }, [pt.value || U.value ? (x(), m("div", we, [h("label", {
627
+ class: b(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", Kt.value])
628
+ }, [(pt.value || U.value) && !w(A) ? (x(), m("div", we, [h("label", {
626
629
  for: Ve.value,
627
630
  class: "nb-date-picker__inner-label"
628
631
  }, [g(C(pt.value) + " ", 1), v.required ? (x(), m("span", Ee, "*")) : p("", !0)], 8, Te), U.value ? (x(), f(a, {
@@ -638,6 +641,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
638
641
  ref_key: "endInputRef",
639
642
  ref: L,
640
643
  type: "text",
644
+ "aria-label": mt.value,
641
645
  class: "nb-date-picker__field",
642
646
  value: et.value,
643
647
  placeholder: v.endPlaceholder || Ze.value,
@@ -646,10 +650,10 @@ var he = { class: "nb-date-picker__col" }, ge = [
646
650
  required: v.required,
647
651
  "aria-invalid": dt.value,
648
652
  "aria-describedby": at.value,
649
- onInput: n[3] ||= (e) => bt(e),
650
- onFocus: xt,
651
- onBlur: St,
652
- onKeydown: Ct
653
+ onInput: n[3] ||= (e) => xt(e),
654
+ onFocus: St,
655
+ onBlur: Ct,
656
+ onKeydown: wt
653
657
  }, null, 40, Oe), _(e, {
654
658
  variant: "ghost",
655
659
  icon: w(fe),
@@ -658,7 +662,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
658
662
  disabled: w(M) || v.readonly,
659
663
  tabindex: "-1",
660
664
  label: v.endValue ? w(E).datePickerChangeEndDate(V(v.endValue)) : w(E).datePickerChooseEndDate,
661
- onClick: Tt
665
+ onClick: Et
662
666
  }, null, 8, [
663
667
  "icon",
664
668
  "size",
@@ -683,7 +687,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
683
687
  class: ["nb-date-picker__calendar", { "nb-date-picker__calendar--sheet": w(Je) }]
684
688
  }, w(ze), {
685
689
  style: w(Je) ? void 0 : Xe.value,
686
- onKeydown: Dt,
690
+ onKeydown: Ot,
687
691
  onMousedown: n[4] ||= le(() => {}, ["prevent"])
688
692
  }), [h("div", Ae, [
689
693
  _(e, {
@@ -692,7 +696,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
692
696
  size: "sm",
693
697
  class: "nb-date-picker__cal-nav",
694
698
  label: w(E).datePickerPreviousYear,
695
- onClick: It
699
+ onClick: Lt
696
700
  }, null, 8, ["icon", "label"]),
697
701
  _(e, {
698
702
  variant: "ghost",
@@ -700,20 +704,20 @@ var he = { class: "nb-date-picker__col" }, ge = [
700
704
  size: "sm",
701
705
  class: "nb-date-picker__cal-nav",
702
706
  label: w(E).datePickerPreviousMonth,
703
- onClick: Pt
707
+ onClick: Ft
704
708
  }, null, 8, ["icon", "label"]),
705
709
  h("span", {
706
710
  id: Ge.value,
707
711
  class: "nb-date-picker__cal-title",
708
712
  "aria-live": "polite"
709
- }, C(Rt.value), 9, je),
713
+ }, C(zt.value), 9, je),
710
714
  _(e, {
711
715
  variant: "ghost",
712
716
  icon: w(ue),
713
717
  size: "sm",
714
718
  class: "nb-date-picker__cal-nav",
715
719
  label: w(E).datePickerNextMonth,
716
- onClick: Ft
720
+ onClick: It
717
721
  }, null, 8, ["icon", "label"]),
718
722
  _(e, {
719
723
  variant: "ghost",
@@ -721,18 +725,18 @@ var he = { class: "nb-date-picker__col" }, ge = [
721
725
  size: "sm",
722
726
  class: "nb-date-picker__cal-nav",
723
727
  label: w(E).datePickerNextYear,
724
- onClick: Lt
728
+ onClick: Rt
725
729
  }, null, 8, ["icon", "label"])
726
730
  ]), h("table", {
727
731
  role: "grid",
728
732
  "aria-labelledby": Ge.value,
729
733
  class: "nb-date-picker__cal-table"
730
- }, [h("thead", null, [h("tr", Ne, [(x(!0), m(u, null, ie(zt.value, (e) => (x(), m("th", {
734
+ }, [h("thead", null, [h("tr", Ne, [(x(!0), m(u, null, ie(Bt.value, (e) => (x(), m("th", {
731
735
  key: e.narrow,
732
736
  scope: "col",
733
737
  class: "nb-date-picker__cal-weekday",
734
738
  abbr: e.full
735
- }, C(e.narrow), 9, Pe))), 128))])]), h("tbody", null, [(x(!0), m(u, null, ie(Ht.value, (e, t) => (x(), m("tr", { key: t }, [(x(!0), m(u, null, ie(e, (e) => (x(), m("td", {
739
+ }, C(e.narrow), 9, Pe))), 128))])]), h("tbody", null, [(x(!0), m(u, null, ie(Ut.value, (e, t) => (x(), m("tr", { key: t }, [(x(!0), m(u, null, ie(e, (e) => (x(), m("td", {
736
740
  key: e.key,
737
741
  role: "gridcell",
738
742
  "aria-selected": e.isSelected || void 0,
@@ -753,7 +757,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
753
757
  disabled: e.isDisabled,
754
758
  "aria-label": Qe(e.date),
755
759
  "data-date": e.date,
756
- onClick: (t) => Et(e.date)
760
+ onClick: (t) => Dt(e.date)
757
761
  }, C(e.day), 11, Ie)], 8, Fe))), 128))]))), 128))])], 8, Me)], 16, ke)) : p("", !0)]))], 64));
758
762
  }
759
763
  });
@@ -0,0 +1 @@
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-5ClGtoaz.cjs`),t=require(`./composables/useSurfaceLayer.composable.cjs`),n=require(`./composables/usePhoneLayout.composable.cjs`),r=require(`./composables/useNbStrings.composable.cjs`),i=require(`./Label-CjxnZgNy.cjs`),a=require(`./Message-BJO4MjiQ.cjs`),o=require(`./Grid-BOtE_jXr.cjs`),s=require(`./composables/useFieldMessage.composable.cjs`),c=require(`./InputGroup.context-BHj-IvcT.cjs`),l=require(`./composables/useMenuSurface.composable.cjs`),u=require(`./composables/useVisualViewportVar.composable.cjs`);let d=require(`vue`),ee=require(`@nubisco/ui/icons/caret-right`),te=require(`@nubisco/ui/icons/caret-left`),f=require(`@nubisco/ui/icons/calendar`),ne=require(`@nubisco/ui/icons/caret-double-left`),re=require(`@nubisco/ui/icons/caret-double-right`);var ie={class:`nb-date-picker__col`},ae=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`aria-invalid`,`aria-describedby`],oe={key:0,class:`nb-date-picker__col`},se=[`id`,`aria-label`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`aria-invalid`,`aria-describedby`],ce={key:0,class:`nb-date-picker__inner-header`},le=[`for`],ue={key:0,class:`nb-date-picker__asterisk`,"aria-hidden":`true`},de={class:`nb-date-picker__fluid-row`},fe=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`aria-invalid`,`aria-describedby`],pe={key:0,class:`nb-date-picker__inner-header`},me=[`for`],he={key:0,class:`nb-date-picker__asterisk`,"aria-hidden":`true`},ge={class:`nb-date-picker__fluid-row`},_e=[`id`,`aria-label`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`aria-invalid`,`aria-describedby`],ve=[`aria-label`],ye={class:`nb-date-picker__cal-header`},be=[`id`],xe=[`aria-labelledby`],Se={class:`nb-date-picker__cal-weekdays`},Ce=[`abbr`],we=[`aria-selected`,`aria-disabled`],Te=[`tabindex`,`disabled`,`aria-label`,`data-date`,`onClick`],p=(0,d.defineComponent)({inheritAttrs:!1,__name:`DatePicker`,props:{modelValue:{default:null},type:{default:`single`},endValue:{default:null},min:{default:void 0},max:{default:void 0},weekStart:{default:1},locale:{default:void 0},endPlaceholder:{default:``},endLabel:{default:``},endError:{default:``},endWarning:{default:``},disabledDates:{type:[Array,Function],default:void 0},readonly:{type:Boolean,default:!1},placeholder:{default:``},name:{default:``},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`,`update:endValue`,`change`],setup(p,{expose:Ee,emit:De}){let m=r.useNbStrings(),h=p,{layerProps:Oe}=t.useSurfaceLayer({overlay:!0}),g=De,_=c.n(h,`nb-date-picker-${(0,d.useId)()}`),v=_.grouped,y=_.id,ke=_.size,b=_.disabled,x=(0,d.computed)(()=>`${y.value}-end`),Ae=(0,d.computed)(()=>`${y.value}-helper`),je=(0,d.computed)(()=>`${y.value}-message`),Me=(0,d.computed)(()=>`${y.value}-end-message`),Ne=(0,d.computed)(()=>`${y.value}-cal-title`),S=(0,d.ref)(null),Pe=(0,d.computed)(()=>S.value!==null),C=(0,d.ref)(!1),w=(0,d.ref)(Q(new Date)),Fe=(0,d.ref)(null),T=(0,d.ref)(null),E=(0,d.ref)(null),D=(0,d.ref)(null);l.useMenuSurface(D);let{phone:Ie}=n.usePhoneLayout(),Le=(0,d.ref)(null);u.useVisualViewportVar(()=>C.value);let Re=(0,d.ref)({position:`fixed`,top:`0px`,left:`0px`,zIndex:`9999`}),O=(0,d.ref)(`start`),k=(0,d.computed)(()=>h.locale||(typeof navigator<`u`?navigator.language:``)||`en`),A=(0,d.computed)(()=>new Intl.DateTimeFormat(k.value).formatToParts(new Date(2e3,0,15)).map(e=>e.type===`day`?`dd`:e.type===`month`?`mm`:e.type===`year`?`yyyy`:e.value).join(``));function j(e){if(!e)return``;let t=new Date(e+`T00:00:00`);return isNaN(t.getTime())?e:t.toLocaleDateString(k.value)}function ze(e){return new Date(e+`T00:00:00`).toLocaleDateString(k.value,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`})}let Be=(0,d.computed)(()=>j(h.modelValue??null)),Ve=(0,d.computed)(()=>j(h.endValue??null)),M=(0,d.computed)(()=>h.error?{variant:`error`,text:h.error}:h.warning?{variant:`warning`,text:h.warning}:null),N=(0,d.computed)(()=>h.type===`range`?h.endError?{variant:`error`,text:h.endError}:h.endWarning?{variant:`warning`,text:h.endWarning}:null:null),P=(0,d.computed)(()=>M.value?M.value:h.helper?{variant:`helper`,text:h.helper}:null);function He(e,t){if(!(h.variant!==`default`||v))return e?t:h.helper?Ae.value:void 0}let Ue=(0,d.useAttrs)(),We=(0,d.computed)(()=>s.joinDescribedBy(Ue[`aria-describedby`],He(M.value,je.value),_.describedBy.value)),Ge=(0,d.computed)(()=>s.joinDescribedBy(He(N.value,Me.value),_.describedBy.value)),Ke=(0,d.computed)(()=>_.status.value===`error`),qe=(0,d.computed)(()=>_.status.value===`warning`),F=(0,d.computed)(()=>!!h.error||Ke.value),Je=(0,d.computed)(()=>!F.value&&(!!h.warning||qe.value)),I=(0,d.computed)(()=>!!h.endError||Ke.value),Ye=(0,d.computed)(()=>!I.value&&(!!h.endWarning||qe.value)),Xe=(0,d.computed)(()=>F.value?!0:void 0),Ze=(0,d.computed)(()=>I.value?!0:void 0),Qe=(0,d.computed)(()=>h.type===`range`&&!!h.endLabel),$e=(0,d.computed)(()=>h.endLabel||h.endPlaceholder),et=(0,d.computed)(()=>v?h.endLabel||h.endPlaceholder||m.value.datePickerEndDate:void 0);function L(e){return h.min!=null&&e<h.min||h.max!=null&&e>h.max?!0:h.disabledDates?typeof h.disabledDates==`function`?h.disabledDates(e):h.disabledDates.includes(e):!1}let tt=(0,d.computed)(()=>new Intl.DateTimeFormat(k.value).formatToParts(new Date(2e3,0,15)).map(e=>e.type).filter(e=>e===`day`||e===`month`||e===`year`));function nt(e,t,n){let r=new Date(e,t-1,n);return r.getMonth()!==t-1||r.getDate()!==n?null:(r.setFullYear(e),Q(r))}function rt(e){let t=e.split(/[\s./-]+/).filter(Boolean);if(t.length!==3)return null;let n=t[0].length===4?[`year`,`month`,`day`]:tt.value;if(n.length!==3)return null;let r={day:0,month:0,year:0};for(let e=0;e<3;e++){let i=n[e],a=t[e];if(i===`year`?a.length!==4:a.length>2)return null;r[i]=Number(a)}return nt(r.year,r.month,r.day)}function it(e){let t=e.trim();if(!t)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(t)){let e=new Date(t+`T00:00:00`);return isNaN(e.getTime())?null:t}if(/^[\d\s./-]+$/.test(t))return rt(t);let n=new Date(t);return isNaN(n.getTime())?null:Q(n)}function at(e){let t=e.target.value,n=it(t);n&&L(n)||(n||t===``)&&(g(`update:modelValue`,n),g(`change`,n))}function ot(e){let t=e.target.value,n=it(t);n&&L(n)||(n||t===``)&&g(`update:endValue`,n)}function R(e){S.value=e.target===E.value?`end`:`start`,h.type!==`simple`&&!h.readonly&&(O.value=S.value,C.value?V():H())}function z(){S.value=null}function B(e){if(!(h.type===`simple`||h.readonly))switch(e.key){case`Escape`:C.value&&(U(),e.preventDefault());break;case`ArrowDown`:e.preventDefault(),C.value||H(),(0,d.nextTick)(G);break;case`Enter`:C.value||(e.preventDefault(),H(),(0,d.nextTick)(G));break}}function V(){let e=Fe.value?.querySelectorAll(`.nb-date-picker__input-wrapper`);if(!e?.length)return;let t=(O.value===`end`&&e.length>1?e[1]:e[0]).getBoundingClientRect(),n=D.value?.offsetWidth??0,r=D.value?.offsetHeight??0,i=t.left,a=t.bottom+4;n>0&&(i=Math.max(8,Math.min(i,window.innerWidth-n-8))),r>0&&a+r>window.innerHeight-8&&t.top-4-r>=8&&(a=t.top-4-r),Re.value={position:`fixed`,top:`${a}px`,left:`${i}px`,zIndex:`9999`}}function H(){if(b.value||h.readonly||h.type===`simple`||C.value)return;C.value=!0;let e=O.value===`end`&&h.endValue?h.endValue:h.modelValue,t=e?new Date(e+`T00:00:00`):new Date;Y.value=t.getFullYear(),X.value=t.getMonth(),w.value=e||Q(new Date),V(),(0,d.nextTick)(V)}function U(){C.value&&(C.value=!1,(0,d.nextTick)(()=>{O.value===`end`&&E.value?E.value.focus():T.value?.focus()}))}function W(){C.value?U():(O.value=`start`,H(),(0,d.nextTick)(G))}function G(){(0,d.nextTick)(()=>{(D.value?.querySelector(`[data-date="${w.value}"]`))?.focus()})}function st(e){L(e)||(h.type===`range`?O.value===`start`?(g(`update:modelValue`,e),g(`change`,e),O.value=`end`,w.value=e,(0,d.nextTick)(()=>E.value?.focus())):(h.modelValue&&e<h.modelValue?(g(`update:endValue`,h.modelValue),g(`update:modelValue`,e),g(`change`,e)):g(`update:endValue`,e),U()):(g(`update:modelValue`,e),g(`change`,e),U()))}function ct(e){let t=new Date(w.value+`T00:00:00`),n=!0;switch(e.key){case`ArrowRight`:K(t,1);break;case`ArrowLeft`:K(t,-1);break;case`ArrowDown`:K(t,7);break;case`ArrowUp`:K(t,-7);break;case`Home`:lt(t,`start`);break;case`End`:lt(t,`end`);break;case`PageUp`:e.shiftKey?q(t,-12):q(t,-1);break;case`PageDown`:e.shiftKey?q(t,12):q(t,1);break;case`Enter`:case` `:e.preventDefault(),st(w.value);return;case`Escape`:U();break;case`Tab`:U();return;default:n=!1}n&&e.preventDefault()}function K(e,t){let n=new Date(e);n.setDate(n.getDate()+t),ut(n)}function lt(e,t){let n=e.getDay();h.weekStart===1&&(n=n===0?6:n-1);let r=t===`start`?-n:6-n,i=new Date(e);i.setDate(i.getDate()+r),ut(i)}function q(e,t){let n=new Date(e);n.setMonth(n.getMonth()+t),n.getDate()!==e.getDate()&&n.setDate(0),ut(n)}function ut(e){let t=Q(e);h.min!=null&&t<h.min||h.max!=null&&t>h.max||(w.value=t,Y.value=e.getFullYear(),X.value=e.getMonth(),G())}function dt(e){let t=e.target,n=Fe.value?.contains(t)??!1,r=D.value?.contains(t)??!1,i=Le.value?.contains(t)??!1;!n&&!r&&!i&&U()}function J(){C.value&&V()}(0,d.watch)(C,e=>{e?(document.addEventListener(`mousedown`,dt),window.addEventListener(`scroll`,J,!0),window.addEventListener(`resize`,J)):(document.removeEventListener(`mousedown`,dt),window.removeEventListener(`scroll`,J,!0),window.removeEventListener(`resize`,J))}),(0,d.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,dt),window.removeEventListener(`scroll`,J,!0),window.removeEventListener(`resize`,J)});let Y=(0,d.ref)(new Date().getFullYear()),X=(0,d.ref)(new Date().getMonth());function Z(e){let t=Y.value*12+X.value+e;Y.value=Math.floor(t/12),X.value=(t%12+12)%12;let n=new Date(w.value+`T00:00:00`).getDate(),r=new Date(Y.value,X.value+1,0).getDate();w.value=Q(new Date(Y.value,X.value,Math.min(n,r))),G()}let ft=()=>Z(-1),pt=()=>Z(1),mt=()=>Z(-12),ht=()=>Z(12),gt=(0,d.computed)(()=>{let e=new Date(Y.value,X.value,1).toLocaleDateString(k.value,{month:`long`,year:`numeric`});return e.charAt(0).toUpperCase()+e.slice(1)}),_t=(0,d.computed)(()=>{let e=[],t=new Date(2024,0,h.weekStart===0?7:1);for(let n=0;n<7;n++){let r=new Date(t);r.setDate(t.getDate()+n);let i=r.toLocaleDateString(k.value,{weekday:`narrow`}).toUpperCase(),a=r.toLocaleDateString(k.value,{weekday:`long`});e.push({narrow:i,full:a.charAt(0).toUpperCase()+a.slice(1)})}return e});function Q(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}let vt=(0,d.computed)(()=>Q(new Date)),yt=(0,d.computed)(()=>{let e=Y.value,t=X.value,n=new Date(e,t,1),r=new Date(e,t+1,0),i=n.getDay();h.weekStart===1&&(i=i===0?6:i-1);let a=[],o=h.modelValue??null,s=h.endValue??null,c=o&&s?o<s?o:s:null,l=o&&s?o<s?s:o:null;function u(e,t){let n=Q(e);return{key:n,date:n,day:e.getDate(),inMonth:t,isToday:n===vt.value,isSelected:n===o||n===s,inRange:c!=null&&l!=null&&n>c&&n<l,isRangeStart:n===c&&l!=null,isRangeEnd:n===l&&c!=null,isDisabled:L(n)}}for(let n=i-1;n>=0;n--)a.push(u(new Date(e,t,-n),!1));for(let n=1;n<=r.getDate();n++)a.push(u(new Date(e,t,n),!0));let d=7-a.length%7;if(d<7)for(let n=1;n<=d;n++)a.push(u(new Date(e,t+1,n),!1));return a}),bt=(0,d.computed)(()=>{let e=[];for(let t=0;t<yt.value.length;t+=7)e.push(yt.value.slice(t,t+7));return e}),$=(0,d.computed)(()=>h.variant===`fluid`?`sm`:ke.value),xt=(0,d.computed)(()=>[`nb-date-picker`,`nb-date-picker--${h.variant}`,`nb-date-picker--${ke.value}`,`nb-date-picker--${h.type}`,{"nb-date-picker--focused":Pe.value,"nb-date-picker--open":C.value,"nb-date-picker--error":F.value||I.value,"nb-date-picker--warning":!F.value&&!I.value&&(Je.value||Ye.value),"nb-date-picker--disabled":b.value,"nb-date-picker--readonly":h.readonly}]),St=(0,d.computed)(()=>({"nb-date-picker__input-wrapper--focused":S.value===`start`,"nb-date-picker__input-wrapper--error":F.value,"nb-date-picker__input-wrapper--warning":Je.value,"nb-date-picker__input-wrapper--disabled":b.value,"nb-date-picker__input-wrapper--readonly":h.readonly})),Ct=(0,d.computed)(()=>({"nb-date-picker__input-wrapper--focused":S.value===`end`,"nb-date-picker__input-wrapper--error":I.value,"nb-date-picker__input-wrapper--warning":Ye.value,"nb-date-picker__input-wrapper--disabled":b.value,"nb-date-picker__input-wrapper--readonly":h.readonly}));return Ee({open:H,close:U,focus:()=>T.value?.focus()}),(t,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,[(0,d.createElementVNode)(`div`,{ref_key:`rootRef`,ref:Fe,class:(0,d.normalizeClass)(xt.value)},[p.variant===`default`?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[t.$slots.label&&!(0,d.unref)(v)?(0,d.renderSlot)(t.$slots,`label`,{key:0}):p.label&&!Qe.value&&!(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createBlock)(i.t,{key:1,for:(0,d.unref)(y),required:p.required,disabled:(0,d.unref)(b)},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(p.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)(o.t,{dir:`row`,gap:p.type===`range`?`sm`:void 0,class:`nb-date-picker__fields`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,ie,[Qe.value&&p.label&&!(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createBlock)(i.t,{key:0,for:(0,d.unref)(y),required:p.required,disabled:(0,d.unref)(b)},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(p.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)([`nb-date-picker__input-wrapper`,St.value])},[(0,d.createElementVNode)(`input`,(0,d.mergeProps)({id:(0,d.unref)(y),ref_key:`inputRef`,ref:T},t.$attrs,{type:`text`,class:`nb-date-picker__field`,value:Be.value,placeholder:p.placeholder||A.value,disabled:(0,d.unref)(b),readonly:p.readonly,required:p.required,name:p.name,"aria-invalid":Xe.value,"aria-describedby":We.value,onInput:n[0]||=e=>at(e),onFocus:R,onBlur:z,onKeydown:B}),null,16,ae),p.type===`simple`?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(e.t,{key:0,variant:`ghost`,icon:(0,d.unref)(f.regular),size:$.value,class:`nb-date-picker__icon`,disabled:(0,d.unref)(b)||p.readonly,tabindex:`-1`,label:p.modelValue?(0,d.unref)(m).datePickerChangeDate(j(p.modelValue)):(0,d.unref)(m).datePickerChooseDate,onClick:W},null,8,[`icon`,`size`,`disabled`,`label`]))],2)]),p.type===`range`?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,oe,[Qe.value&&!(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createBlock)(i.t,{key:0,for:x.value,required:p.required,disabled:(0,d.unref)(b)},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(p.endLabel),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)([`nb-date-picker__input-wrapper`,Ct.value])},[(0,d.createElementVNode)(`input`,{id:x.value,ref_key:`endInputRef`,ref:E,type:`text`,"aria-label":et.value,class:`nb-date-picker__field`,value:Ve.value,placeholder:p.endPlaceholder||A.value,disabled:(0,d.unref)(b),readonly:p.readonly,required:p.required,"aria-invalid":Ze.value,"aria-describedby":Ge.value,onInput:n[1]||=e=>ot(e),onFocus:R,onBlur:z,onKeydown:B},null,40,se),(0,d.createVNode)(e.t,{variant:`ghost`,icon:(0,d.unref)(f.regular),size:$.value,class:`nb-date-picker__icon`,disabled:(0,d.unref)(b)||p.readonly,tabindex:`-1`,label:p.endValue?(0,d.unref)(m).datePickerChangeEndDate(j(p.endValue)):(0,d.unref)(m).datePickerChooseEndDate,onClick:W},null,8,[`icon`,`size`,`disabled`,`label`])],2)])):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`gap`]),M.value&&!(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createBlock)(a.t,{key:2,id:je.value,variant:M.value.variant,class:`nb-date-picker__message`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(M.value.text),1)]),_:1},8,[`id`,`variant`])):(0,d.createCommentVNode)(``,!0),N.value&&!(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createBlock)(a.t,{key:3,id:Me.value,variant:N.value.variant,class:`nb-date-picker__message`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(N.value.text),1)]),_:1},8,[`id`,`variant`])):(0,d.createCommentVNode)(``,!0),!M.value&&!N.value&&p.helper&&!(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createBlock)(a.t,{key:4,id:Ae.value,variant:`helper`,class:`nb-date-picker__message`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(p.helper),1)]),_:1},8,[`id`])):(0,d.createCommentVNode)(``,!0)],64)):p.variant===`fluid`?((0,d.openBlock)(),(0,d.createBlock)(o.t,{key:1,dir:`row`,gap:p.type===`range`?`sm`:void 0,class:`nb-date-picker__fields`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)([`nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid`,St.value])},[(p.label||t.$slots.label||P.value)&&!(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,ce,[t.$slots.label?(0,d.renderSlot)(t.$slots,`label`,{key:0}):((0,d.openBlock)(),(0,d.createElementBlock)(`label`,{key:1,for:(0,d.unref)(y),class:`nb-date-picker__inner-label`},[(0,d.createTextVNode)((0,d.toDisplayString)(p.label)+` `,1),p.required?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,ue,`*`)):(0,d.createCommentVNode)(``,!0)],8,le)),P.value?((0,d.openBlock)(),(0,d.createBlock)(a.t,{key:2,variant:P.value.variant,"icon-only":``,class:`nb-date-picker__inner-message`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(P.value.text),1)]),_:1},8,[`variant`])):(0,d.createCommentVNode)(``,!0)])):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,de,[(0,d.createElementVNode)(`input`,(0,d.mergeProps)({id:(0,d.unref)(y),ref_key:`inputRef`,ref:T},t.$attrs,{type:`text`,class:`nb-date-picker__field`,value:Be.value,placeholder:p.placeholder||A.value,disabled:(0,d.unref)(b),readonly:p.readonly,required:p.required,name:p.name,"aria-invalid":Xe.value,"aria-describedby":We.value,onInput:n[2]||=e=>at(e),onFocus:R,onBlur:z,onKeydown:B}),null,16,fe),p.type===`simple`?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(e.t,{key:0,variant:`ghost`,icon:(0,d.unref)(f.regular),size:$.value,class:`nb-date-picker__icon`,disabled:(0,d.unref)(b)||p.readonly,tabindex:`-1`,label:p.modelValue?(0,d.unref)(m).datePickerChangeDate(j(p.modelValue)):(0,d.unref)(m).datePickerChooseDate,onClick:W},null,8,[`icon`,`size`,`disabled`,`label`]))])],2),p.type===`range`?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,class:(0,d.normalizeClass)([`nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid`,Ct.value])},[($e.value||N.value)&&!(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,pe,[(0,d.createElementVNode)(`label`,{for:x.value,class:`nb-date-picker__inner-label`},[(0,d.createTextVNode)((0,d.toDisplayString)($e.value)+` `,1),p.required?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,he,`*`)):(0,d.createCommentVNode)(``,!0)],8,me),N.value?((0,d.openBlock)(),(0,d.createBlock)(a.t,{key:0,variant:N.value.variant,"icon-only":``,class:`nb-date-picker__inner-message`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(N.value.text),1)]),_:1},8,[`variant`])):(0,d.createCommentVNode)(``,!0)])):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,ge,[(0,d.createElementVNode)(`input`,{id:x.value,ref_key:`endInputRef`,ref:E,type:`text`,"aria-label":et.value,class:`nb-date-picker__field`,value:Ve.value,placeholder:p.endPlaceholder||A.value,disabled:(0,d.unref)(b),readonly:p.readonly,required:p.required,"aria-invalid":Ze.value,"aria-describedby":Ge.value,onInput:n[3]||=e=>ot(e),onFocus:R,onBlur:z,onKeydown:B},null,40,_e),(0,d.createVNode)(e.t,{variant:`ghost`,icon:(0,d.unref)(f.regular),size:$.value,class:`nb-date-picker__icon`,disabled:(0,d.unref)(b)||p.readonly,tabindex:`-1`,label:p.endValue?(0,d.unref)(m).datePickerChangeEndDate(j(p.endValue)):(0,d.unref)(m).datePickerChooseEndDate,onClick:W},null,8,[`icon`,`size`,`disabled`,`label`])])],2)):(0,d.createCommentVNode)(``,!0)]),_:3},8,[`gap`])):(0,d.createCommentVNode)(``,!0)],2),((0,d.openBlock)(),(0,d.createBlock)(d.Teleport,{to:`body`},[C.value&&(0,d.unref)(Ie)?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,ref_key:`scrimRef`,ref:Le,class:`nb-date-picker__scrim`,"aria-hidden":`true`,onClick:U},null,512)):(0,d.createCommentVNode)(``,!0),C.value?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,(0,d.mergeProps)({key:1,ref_key:`calendarRef`,ref:D,role:`dialog`,"aria-modal":`true`,"aria-label":p.label?(0,d.unref)(m).datePickerDialogFor(p.label):(0,d.unref)(m).datePickerDialog,class:[`nb-date-picker__calendar`,{"nb-date-picker__calendar--sheet":(0,d.unref)(Ie)}]},(0,d.unref)(Oe),{style:(0,d.unref)(Ie)?void 0:Re.value,onKeydown:ct,onMousedown:n[4]||=(0,d.withModifiers)(()=>{},[`prevent`])}),[(0,d.createElementVNode)(`div`,ye,[(0,d.createVNode)(e.t,{variant:`ghost`,icon:(0,d.unref)(ne.regular),size:`sm`,class:`nb-date-picker__cal-nav`,label:(0,d.unref)(m).datePickerPreviousYear,onClick:mt},null,8,[`icon`,`label`]),(0,d.createVNode)(e.t,{variant:`ghost`,icon:(0,d.unref)(te.regular),size:`sm`,class:`nb-date-picker__cal-nav`,label:(0,d.unref)(m).datePickerPreviousMonth,onClick:ft},null,8,[`icon`,`label`]),(0,d.createElementVNode)(`span`,{id:Ne.value,class:`nb-date-picker__cal-title`,"aria-live":`polite`},(0,d.toDisplayString)(gt.value),9,be),(0,d.createVNode)(e.t,{variant:`ghost`,icon:(0,d.unref)(ee.regular),size:`sm`,class:`nb-date-picker__cal-nav`,label:(0,d.unref)(m).datePickerNextMonth,onClick:pt},null,8,[`icon`,`label`]),(0,d.createVNode)(e.t,{variant:`ghost`,icon:(0,d.unref)(re.regular),size:`sm`,class:`nb-date-picker__cal-nav`,label:(0,d.unref)(m).datePickerNextYear,onClick:ht},null,8,[`icon`,`label`])]),(0,d.createElementVNode)(`table`,{role:`grid`,"aria-labelledby":Ne.value,class:`nb-date-picker__cal-table`},[(0,d.createElementVNode)(`thead`,null,[(0,d.createElementVNode)(`tr`,Se,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(_t.value,e=>((0,d.openBlock)(),(0,d.createElementBlock)(`th`,{key:e.narrow,scope:`col`,class:`nb-date-picker__cal-weekday`,abbr:e.full},(0,d.toDisplayString)(e.narrow),9,Ce))),128))])]),(0,d.createElementVNode)(`tbody`,null,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(bt.value,(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`tr`,{key:t},[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e,e=>((0,d.openBlock)(),(0,d.createElementBlock)(`td`,{key:e.key,role:`gridcell`,"aria-selected":e.isSelected||void 0,"aria-disabled":e.isDisabled||void 0},[(0,d.createElementVNode)(`button`,{type:`button`,class:(0,d.normalizeClass)([`nb-date-picker__cal-day`,{"nb-date-picker__cal-day--outside":!e.inMonth,"nb-date-picker__cal-day--today":e.isToday,"nb-date-picker__cal-day--selected":e.isSelected,"nb-date-picker__cal-day--in-range":e.inRange,"nb-date-picker__cal-day--range-start":e.isRangeStart,"nb-date-picker__cal-day--range-end":e.isRangeEnd,"nb-date-picker__cal-day--disabled":e.isDisabled,"nb-date-picker__cal-day--focused":e.date===w.value}]),tabindex:e.date===w.value?0:-1,disabled:e.isDisabled,"aria-label":ze(e.date),"data-date":e.date,onClick:t=>st(e.date)},(0,d.toDisplayString)(e.day),11,Te)],8,we))),128))]))),128))])],8,xe)],16,ve)):(0,d.createCommentVNode)(``,!0)]))],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
@@ -1,4 +1,4 @@
1
- import { t as e } from "./Button-tpOmP8iV.js";
1
+ import { t as e } from "./Button-CxJMKPpw.js";
2
2
  import { t } from "./_plugin-vue_export-helper-C6QCLu9I.js";
3
3
  import { t as n } from "./Icon-B2tiGiqZ.js";
4
4
  import { useStableId as r } from "./composables/useStableId.composable.mjs";
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-BHFtgOXA.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./Icon-CssV4E2-.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./composables/useNbStrings.composable.cjs`);let o=require(`vue`),s=require(`@nubisco/ui/icons/x`),c=require(`@nubisco/ui/icons/circle-notch`);var l=function(e){return e.Primary=`primary`,e.Secondary=`secondary`,e.Ghost=`ghost`,e.Danger=`danger`,e.Success=`success`,e.Warning=`warning`,e}(l||{}),u=function(e){return e.Idle=`idle`,e.Loading=`loading`,e.Success=`success`,e}(u||{}),d={key:0,class:`nb-file-uploader__heading`},f={key:1,class:`nb-file-uploader__description`},p={class:`nb-file-uploader__drop-label`},m=[`accept`,`multiple`,`disabled`],h={key:4,class:`nb-file-uploader__list`},g={class:`nb-file-uploader__name`},_={class:`nb-file-uploader__status`},v=[`id`],y=(0,o.defineComponent)({__name:`FileUploader`,props:{heading:{},description:{},buttonLabel:{default:`Add file`},variant:{default:l.Primary},accept:{},multiple:{type:Boolean,default:!1},maxSize:{},disabled:{type:Boolean,default:!1},id:{}},emits:[`change`,`remove`],setup(t,{expose:l,emit:y}){let b=t,{layerProps:x}=i.useSurfaceLayer(),S=r.useStableId({}),C=a.useNbStrings(),w=y,T=(0,o.ref)(null),E=(0,o.ref)([]),D=(0,o.ref)(!1),O=0;(0,o.watch)(()=>b.disabled,e=>{e&&(O=0,D.value=!1)});function k(){b.disabled||T.value?.click()}function A(e){if(b.maxSize&&e.size>b.maxSize)return`File exceeds size limit.`;if(b.accept){let t=b.accept.split(`,`).map(e=>e.trim().toLowerCase()),n=e.name.toLowerCase();if(!t.some(t=>t.startsWith(`.`)?n.endsWith(t):t.includes(`/`)?e.type===t||e.type.startsWith(t.replaceAll(`*`,``)):!1))return`File type not accepted.`}}function j(e){let t=Array.from(e);b.multiple||(E.value=[]);for(let e of t){let t=A(e);E.value.push({file:e,status:u.Idle,error:t})}w(`change`,E.value.filter(e=>!e.error).map(e=>e.file))}function M(e){let t=e.target;if(b.disabled){t.value=``;return}t.files?.length&&(j(t.files),t.value=``)}function N(){b.disabled||(O++,D.value=!0)}function P(){O--,O<=0&&(O=0,D.value=!1)}function F(e){b.disabled&&e.dataTransfer&&(e.dataTransfer.dropEffect=`none`)}function I(e){if(O=0,D.value=!1,b.disabled)return;let t=e.dataTransfer?.files;t?.length&&j(t)}function L(e){if(b.disabled)return;let t=E.value[e];E.value.splice(e,1),w(`remove`,t.file),w(`change`,E.value.filter(e=>!e.error).map(e=>e.file))}function R(e,t,n){E.value[e]&&(E.value[e].status=t,E.value[e].error=n)}return l({files:E,setFileStatus:R}),(r,i)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,(0,o.mergeProps)({class:[`nb-file-uploader`,{"nb-file-uploader--disabled":t.disabled}]},(0,o.unref)(x),{onDragenter:(0,o.withModifiers)(N,[`prevent`]),onDragover:(0,o.withModifiers)(F,[`prevent`]),onDragleave:(0,o.withModifiers)(P,[`prevent`]),onDrop:(0,o.withModifiers)(I,[`prevent`])}),[t.heading?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,d,(0,o.toDisplayString)(t.heading),1)):(0,o.createCommentVNode)(``,!0),t.description?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,f,(0,o.toDisplayString)(t.description),1)):(0,o.createCommentVNode)(``,!0),D.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:2,class:(0,o.normalizeClass)([`nb-file-uploader__dropzone`,`nb-file-uploader__dropzone--${t.variant}`])},[(0,o.createElementVNode)(`span`,p,(0,o.toDisplayString)((0,o.unref)(C).fileUploaderDropHint),1)],2)):((0,o.openBlock)(),(0,o.createBlock)(e.t,{key:3,class:`nb-file-uploader__btn`,variant:t.variant,disabled:t.disabled,onClick:(0,o.withModifiers)(k,[`stop`])},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.buttonLabel),1)]),_:1},8,[`variant`,`disabled`])),(0,o.createElementVNode)(`input`,{ref_key:`inputRef`,ref:T,type:`file`,class:`nb-file-uploader__input`,hidden:``,accept:t.accept,multiple:t.multiple,disabled:t.disabled,onChange:M},null,40,m),E.value.length?((0,o.openBlock)(),(0,o.createElementBlock)(`ul`,h,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(E.value,(r,i)=>((0,o.openBlock)(),(0,o.createElementBlock)(`li`,{key:i,class:(0,o.normalizeClass)([`nb-file-uploader__item`,{"nb-file-uploader__item--error":r.error,"nb-file-uploader__item--success":r.status===`success`}])},[(0,o.createElementVNode)(`span`,g,(0,o.toDisplayString)(r.file.name),1),(0,o.createElementVNode)(`span`,_,[r.status===`loading`?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:0,name:(0,o.unref)(c.regular),class:`nb-file-uploader__spinner`},null,8,[`name`])):r.status===`success`?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:1,name:`check-circle-fill`,class:`nb-file-uploader__check`})):(0,o.createCommentVNode)(``,!0),r.error?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:2,name:`warning-circle-fill`,class:`nb-file-uploader__warn`})):(0,o.createCommentVNode)(``,!0),r.status===`loading`?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createBlock)(e.t,{key:3,variant:`ghost`,icon:(0,o.unref)(s.regular),size:`xs`,class:`nb-file-uploader__remove`,label:(0,o.unref)(C).fileUploaderRemove,"aria-label":(0,o.unref)(C).fileUploaderRemoveFile(r.file.name),"aria-describedby":r.error?`${(0,o.unref)(S)}-error-${i}`:void 0,disabled:t.disabled,onClick:e=>L(i)},null,8,[`icon`,`label`,`aria-label`,`aria-describedby`,`disabled`,`onClick`]))]),r.error?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,id:`${(0,o.unref)(S)}-error-${i}`,class:`nb-file-uploader__error`,role:`alert`},(0,o.toDisplayString)(r.error),9,v)):(0,o.createCommentVNode)(``,!0)],2))),128))])):(0,o.createCommentVNode)(``,!0)],16))}}),b=t.t(y,[[`__scopeId`,`data-v-7e0b7153`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-5ClGtoaz.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./Icon-CssV4E2-.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./composables/useNbStrings.composable.cjs`);let o=require(`vue`),s=require(`@nubisco/ui/icons/x`),c=require(`@nubisco/ui/icons/circle-notch`);var l=function(e){return e.Primary=`primary`,e.Secondary=`secondary`,e.Ghost=`ghost`,e.Danger=`danger`,e.Success=`success`,e.Warning=`warning`,e}(l||{}),u=function(e){return e.Idle=`idle`,e.Loading=`loading`,e.Success=`success`,e}(u||{}),d={key:0,class:`nb-file-uploader__heading`},f={key:1,class:`nb-file-uploader__description`},p={class:`nb-file-uploader__drop-label`},m=[`accept`,`multiple`,`disabled`],h={key:4,class:`nb-file-uploader__list`},g={class:`nb-file-uploader__name`},_={class:`nb-file-uploader__status`},v=[`id`],y=(0,o.defineComponent)({__name:`FileUploader`,props:{heading:{},description:{},buttonLabel:{default:`Add file`},variant:{default:l.Primary},accept:{},multiple:{type:Boolean,default:!1},maxSize:{},disabled:{type:Boolean,default:!1},id:{}},emits:[`change`,`remove`],setup(t,{expose:l,emit:y}){let b=t,{layerProps:x}=i.useSurfaceLayer(),S=r.useStableId({}),C=a.useNbStrings(),w=y,T=(0,o.ref)(null),E=(0,o.ref)([]),D=(0,o.ref)(!1),O=0;(0,o.watch)(()=>b.disabled,e=>{e&&(O=0,D.value=!1)});function k(){b.disabled||T.value?.click()}function A(e){if(b.maxSize&&e.size>b.maxSize)return`File exceeds size limit.`;if(b.accept){let t=b.accept.split(`,`).map(e=>e.trim().toLowerCase()),n=e.name.toLowerCase();if(!t.some(t=>t.startsWith(`.`)?n.endsWith(t):t.includes(`/`)?e.type===t||e.type.startsWith(t.replaceAll(`*`,``)):!1))return`File type not accepted.`}}function j(e){let t=Array.from(e);b.multiple||(E.value=[]);for(let e of t){let t=A(e);E.value.push({file:e,status:u.Idle,error:t})}w(`change`,E.value.filter(e=>!e.error).map(e=>e.file))}function M(e){let t=e.target;if(b.disabled){t.value=``;return}t.files?.length&&(j(t.files),t.value=``)}function N(){b.disabled||(O++,D.value=!0)}function P(){O--,O<=0&&(O=0,D.value=!1)}function F(e){b.disabled&&e.dataTransfer&&(e.dataTransfer.dropEffect=`none`)}function I(e){if(O=0,D.value=!1,b.disabled)return;let t=e.dataTransfer?.files;t?.length&&j(t)}function L(e){if(b.disabled)return;let t=E.value[e];E.value.splice(e,1),w(`remove`,t.file),w(`change`,E.value.filter(e=>!e.error).map(e=>e.file))}function R(e,t,n){E.value[e]&&(E.value[e].status=t,E.value[e].error=n)}return l({files:E,setFileStatus:R}),(r,i)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,(0,o.mergeProps)({class:[`nb-file-uploader`,{"nb-file-uploader--disabled":t.disabled}]},(0,o.unref)(x),{onDragenter:(0,o.withModifiers)(N,[`prevent`]),onDragover:(0,o.withModifiers)(F,[`prevent`]),onDragleave:(0,o.withModifiers)(P,[`prevent`]),onDrop:(0,o.withModifiers)(I,[`prevent`])}),[t.heading?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,d,(0,o.toDisplayString)(t.heading),1)):(0,o.createCommentVNode)(``,!0),t.description?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,f,(0,o.toDisplayString)(t.description),1)):(0,o.createCommentVNode)(``,!0),D.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:2,class:(0,o.normalizeClass)([`nb-file-uploader__dropzone`,`nb-file-uploader__dropzone--${t.variant}`])},[(0,o.createElementVNode)(`span`,p,(0,o.toDisplayString)((0,o.unref)(C).fileUploaderDropHint),1)],2)):((0,o.openBlock)(),(0,o.createBlock)(e.t,{key:3,class:`nb-file-uploader__btn`,variant:t.variant,disabled:t.disabled,onClick:(0,o.withModifiers)(k,[`stop`])},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.buttonLabel),1)]),_:1},8,[`variant`,`disabled`])),(0,o.createElementVNode)(`input`,{ref_key:`inputRef`,ref:T,type:`file`,class:`nb-file-uploader__input`,hidden:``,accept:t.accept,multiple:t.multiple,disabled:t.disabled,onChange:M},null,40,m),E.value.length?((0,o.openBlock)(),(0,o.createElementBlock)(`ul`,h,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(E.value,(r,i)=>((0,o.openBlock)(),(0,o.createElementBlock)(`li`,{key:i,class:(0,o.normalizeClass)([`nb-file-uploader__item`,{"nb-file-uploader__item--error":r.error,"nb-file-uploader__item--success":r.status===`success`}])},[(0,o.createElementVNode)(`span`,g,(0,o.toDisplayString)(r.file.name),1),(0,o.createElementVNode)(`span`,_,[r.status===`loading`?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:0,name:(0,o.unref)(c.regular),class:`nb-file-uploader__spinner`},null,8,[`name`])):r.status===`success`?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:1,name:`check-circle-fill`,class:`nb-file-uploader__check`})):(0,o.createCommentVNode)(``,!0),r.error?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:2,name:`warning-circle-fill`,class:`nb-file-uploader__warn`})):(0,o.createCommentVNode)(``,!0),r.status===`loading`?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createBlock)(e.t,{key:3,variant:`ghost`,icon:(0,o.unref)(s.regular),size:`xs`,class:`nb-file-uploader__remove`,label:(0,o.unref)(C).fileUploaderRemove,"aria-label":(0,o.unref)(C).fileUploaderRemoveFile(r.file.name),"aria-describedby":r.error?`${(0,o.unref)(S)}-error-${i}`:void 0,disabled:t.disabled,onClick:e=>L(i)},null,8,[`icon`,`label`,`aria-label`,`aria-describedby`,`disabled`,`onClick`]))]),r.error?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,id:`${(0,o.unref)(S)}-error-${i}`,class:`nb-file-uploader__error`,role:`alert`},(0,o.toDisplayString)(r.error),9,v)):(0,o.createCommentVNode)(``,!0)],2))),128))])):(0,o.createCommentVNode)(``,!0)],16))}}),b=t.t(y,[[`__scopeId`,`data-v-7e0b7153`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
2
2
  import { useNbStrings as t } from "./composables/useNbStrings.composable.mjs";
3
- import { i as n, l as r, n as i, r as a, u as o } from "./palette-6bEW4KUN.js";
3
+ import { i as n, l as r, n as i, r as a, u as o } from "./palette-BPqd521m.js";
4
4
  import { t as s } from "./ChartLegend-LDNukufA.js";
5
5
  import { a as c, n as l } from "./scales-BGzTviac.js";
6
6
  import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, normalizeClass as v, normalizeStyle as y, openBlock as b, reactive as ee, ref as x, renderList as S, toDisplayString as C, unref as te, withCtx as w } from "vue";