@nubisco/ui 5.12.0 → 5.14.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 (298) hide show
  1. package/dist/AccordionItem-CCndN0ln.cjs +1 -0
  2. package/dist/AccordionItem-Cg8wmypl.js +116 -0
  3. package/dist/{AiLabel-MZn446Uy.js → AiLabel-BxCWEOn-.js} +1 -1
  4. package/dist/{AiLabel-i75MlwdE.cjs → AiLabel-D4gkbAEC.cjs} +1 -1
  5. package/dist/Badge-B1xoanmq.cjs +1 -0
  6. package/dist/Badge-CxBslbIp.js +59 -0
  7. package/dist/{Banner-DhaO7S51.js → Banner-D61pK-1n.js} +4 -4
  8. package/dist/{Banner-CqNiWOsn.cjs → Banner-DzySrOrs.cjs} +1 -1
  9. package/dist/{BarChart-Cpa8IlAy.cjs → BarChart-BmDXIaf6.cjs} +1 -1
  10. package/dist/{BarChart-BIBrrXZk.js → BarChart-CmYyd4IV.js} +4 -4
  11. package/dist/{BlueprintControls-9TePyiYN.js → BlueprintControls-CVQkxcMU.js} +1 -1
  12. package/dist/{BlueprintControls-D0IN84WV.cjs → BlueprintControls-IU6Dc5yv.cjs} +1 -1
  13. package/dist/{Checkbox-Iu2e_Ob7.js → Checkbox-BkRL6Ops.js} +1 -1
  14. package/dist/{Checkbox-9bxwFy5R.cjs → Checkbox-D8Curaxc.cjs} +1 -1
  15. package/dist/{CheckboxGroup-Dh6sf0K2.js → CheckboxGroup-Hu-wWRto.js} +3 -3
  16. package/dist/{CheckboxGroup-2hyyIRXt.cjs → CheckboxGroup-fEs9Ye8M.cjs} +1 -1
  17. package/dist/{ColorStrip-BDu9ie4P.js → ColorStrip-CcMzeYOw.js} +2 -2
  18. package/dist/{ColorStrip-8X4Op3ap.cjs → ColorStrip-Doh0adti.cjs} +1 -1
  19. package/dist/{Confirm-BQkB2b4e.js → Confirm-DWEwpP6C.js} +4 -4
  20. package/dist/{Confirm-DZ_nb6Z0.cjs → Confirm-DsrwfJbb.cjs} +1 -1
  21. package/dist/{DataTable-DLuSmiTV.cjs → DataTable-BJKfz59R.cjs} +1 -1
  22. package/dist/{DataTable-CVih75pn.js → DataTable-D6hXgtDH.js} +3 -3
  23. package/dist/DatePicker-Cgnm0ku3.js +704 -0
  24. package/dist/DatePicker-DytDcACW.cjs +1 -0
  25. package/dist/{FileUploader-GhaVDiGG.js → FileUploader-B2A1T1vb.js} +1 -1
  26. package/dist/{FileUploader-BQuiNHeI.cjs → FileUploader-CufMlD5X.cjs} +1 -1
  27. package/dist/{Form-CJbbzvXt.js → Form-j4QMRkL5.js} +1 -1
  28. package/dist/{Form-D50Okwsy.cjs → Form-u6XCVBqX.cjs} +1 -1
  29. package/dist/{GanttChart-DX0FAk3D.js → GanttChart-B6Np07RJ.js} +3 -3
  30. package/dist/{GanttChart-08yTvMaQ.cjs → GanttChart-Cekazr75.cjs} +1 -1
  31. package/dist/{ImageCropper-ZofGN_5r.cjs → ImageCropper-Bl8BjRur.cjs} +1 -1
  32. package/dist/{ImageCropper-6wnJLNBr.js → ImageCropper-DBjxzZhN.js} +2 -2
  33. package/dist/{InterpolationChart-B-7W3StJ.js → InterpolationChart-BF00hyiY.js} +3 -3
  34. package/dist/{InterpolationChart-CbBAhYHw.cjs → InterpolationChart-D_QPQOIS.cjs} +1 -1
  35. package/dist/{LineChart-ndwAlJBw.cjs → LineChart-CgBvFTwd.cjs} +1 -1
  36. package/dist/{LineChart-C7_gUiB4.js → LineChart-D21jFHa1.js} +4 -4
  37. package/dist/{Menu-Dy1JwMdl.js → Menu-CsA8dtMR.js} +6 -1
  38. package/dist/Menu-Xt1MCf-q.cjs +1 -0
  39. package/dist/{MenuBarItem-Ya88A6xZ.cjs → MenuBarItem-42bSEdWZ.cjs} +1 -1
  40. package/dist/{MenuBarItem-CYofbcgq.js → MenuBarItem-H1sFt0Mx.js} +1 -1
  41. package/dist/{Message-D8ZE4uGZ.cjs → Message-DjxOb8mu.cjs} +1 -1
  42. package/dist/{Message-Ciyc2nN6.js → Message-SQvoXiWl.js} +4 -4
  43. package/dist/{Modal-kfgbfLM4.js → Modal-DAcbddGc.js} +1 -1
  44. package/dist/{Modal-BkCiD4gu.cjs → Modal-nmkOUH0U.cjs} +1 -1
  45. package/dist/{NotificationCenter-D-9IwSTD.js → NotificationCenter-BWNFq7Y_.js} +3 -3
  46. package/dist/{NotificationCenter-4oCy75aK.cjs → NotificationCenter-RIzKsxUf.cjs} +1 -1
  47. package/dist/{NotificationCenterItem--dJsS8g2.cjs → NotificationCenterItem-pWiBpKMc.cjs} +1 -1
  48. package/dist/{NotificationCenterItem-CknMkJUp.js → NotificationCenterItem-yqlKqwI2.js} +4 -4
  49. package/dist/{NumberInput-Bnd9zGie.js → NumberInput-CrbTiAkP.js} +2 -2
  50. package/dist/{NumberInput-qBJbdvfP.cjs → NumberInput-DsjKITeI.cjs} +1 -1
  51. package/dist/{Pagination-CcZB4Lp_.cjs → Pagination-4TBI-fLd.cjs} +1 -1
  52. package/dist/{Pagination-DDIc4vUH.js → Pagination-DGnnQ53Y.js} +2 -2
  53. package/dist/{PieChart-5Sl9JYUU.js → PieChart-ByOhOTXU.js} +3 -3
  54. package/dist/{PieChart-BgLnTYSn.cjs → PieChart-DajsvhAV.cjs} +1 -1
  55. package/dist/{ProgressBar-CW9nJ2CU.js → ProgressBar-BF-2nm2N.js} +2 -2
  56. package/dist/{ProgressBar-D4a4RfdX.cjs → ProgressBar-Cn-FnvZR.cjs} +1 -1
  57. package/dist/{Radio-B2bhBVJ8.cjs → Radio-CkFwMQZ-.cjs} +1 -1
  58. package/dist/{Radio-BlBitwW3.js → Radio-pH924Ch3.js} +2 -2
  59. package/dist/Select-BjPXJHru.cjs +1 -0
  60. package/dist/{Select-CB4BSCaj.js → Select-BqVTogW-.js} +80 -77
  61. package/dist/{SidebarCollapseToggle-BM3YJ2rA.cjs → SidebarCollapseToggle-VOdswrKP.cjs} +1 -1
  62. package/dist/{SidebarCollapseToggle-k7sWa2TJ.js → SidebarCollapseToggle-pNj344jL.js} +1 -1
  63. package/dist/{Slider-BECfNKi_.cjs → Slider-Clgfp-vI.cjs} +1 -1
  64. package/dist/{Slider-CPQjPfG2.js → Slider-Dxh4sXev.js} +4 -4
  65. package/dist/{Switch-TqDspgnw.cjs → Switch-CnjGuqXl.cjs} +1 -1
  66. package/dist/{Switch-CxAgokBR.js → Switch-dKiTaRd9.js} +2 -2
  67. package/dist/{TableOfContents-C6btwKBE.cjs → TableOfContents-BfR2Zyrv.cjs} +1 -1
  68. package/dist/{TableOfContents-DCaf2uyd.js → TableOfContents-C6zgmnCg.js} +1 -1
  69. package/dist/{Tabs-BPgmRLDi.cjs → Tabs-BCCI2jAd.cjs} +1 -1
  70. package/dist/{Tabs-DseHSwTm.js → Tabs-CxqDD--r.js} +2 -2
  71. package/dist/{TextInput-C1akT0kW.cjs → TextInput--u9htMqc.cjs} +1 -1
  72. package/dist/{TextInput-DBeZ3X3P.js → TextInput-C_i6Miob.js} +3 -3
  73. package/dist/{Toast-EsXGrZ9r.js → Toast-C7ZcSqjz.js} +6 -6
  74. package/dist/{Toast-dgMA595p.cjs → Toast-DdjLfZW7.cjs} +1 -1
  75. package/dist/{Toaster-D4r1g967.cjs → Toaster-noCUOlwh.cjs} +1 -1
  76. package/dist/{Toaster-BbDgPVmM.js → Toaster-sBQX6bee.js} +1 -1
  77. package/dist/{UserMenu-ztYcZqMp.cjs → UserMenu-C65Ky9ov.cjs} +1 -1
  78. package/dist/{UserMenu-opamjLVS.js → UserMenu-ClcDEyTu.js} +2 -2
  79. package/dist/{Walkthrough-Vy7rtAmt.js → Walkthrough-B_zZaq4y.js} +7 -7
  80. package/dist/{Walkthrough-BsPHPjJf.cjs → Walkthrough-CDeBRQZb.cjs} +1 -1
  81. package/dist/all.cjs +1 -1
  82. package/dist/all.mjs +95 -95
  83. package/dist/component-styles.json +3 -1
  84. package/dist/components/Accordion.d.ts +7 -0
  85. package/dist/components/AccordionItem.cjs +1 -1
  86. package/dist/components/AccordionItem.mjs +1 -1
  87. package/dist/components/AccordionItem.vue.d.ts +7 -2
  88. package/dist/components/AccordionItem.vue.d.ts.map +1 -1
  89. package/dist/components/AiLabel.cjs +1 -1
  90. package/dist/components/AiLabel.mjs +1 -1
  91. package/dist/components/Avatar.cjs +1 -1
  92. package/dist/components/Avatar.mjs +1 -1
  93. package/dist/components/Badge.cjs +1 -1
  94. package/dist/components/Badge.d.ts +18 -0
  95. package/dist/components/Badge.mjs +1 -1
  96. package/dist/components/Badge.vue.d.ts +5 -2
  97. package/dist/components/Badge.vue.d.ts.map +1 -1
  98. package/dist/components/Banner.cjs +1 -1
  99. package/dist/components/Banner.mjs +1 -1
  100. package/dist/components/BlueprintCard.vue.d.ts +1 -1
  101. package/dist/components/BlueprintControls.cjs +1 -1
  102. package/dist/components/BlueprintControls.mjs +1 -1
  103. package/dist/components/Board.cjs +1 -1
  104. package/dist/components/Board.mjs +1 -1
  105. package/dist/components/Breadcrumbs.cjs +1 -1
  106. package/dist/components/Breadcrumbs.mjs +1 -1
  107. package/dist/components/Button.cjs +1 -1
  108. package/dist/components/Button.mjs +1 -1
  109. package/dist/components/Button.vue.d.ts +1 -1
  110. package/dist/components/Calendar.cjs +1 -1
  111. package/dist/components/Calendar.mjs +1 -1
  112. package/dist/components/Card.cjs +1 -1
  113. package/dist/components/Card.mjs +1 -1
  114. package/dist/components/CardGrid.cjs +1 -1
  115. package/dist/components/CardGrid.mjs +1 -1
  116. package/dist/components/Charts/BarChart.cjs +1 -1
  117. package/dist/components/Charts/BarChart.mjs +1 -1
  118. package/dist/components/Charts/GanttChart.cjs +1 -1
  119. package/dist/components/Charts/GanttChart.mjs +1 -1
  120. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  121. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  122. package/dist/components/Charts/LineChart.cjs +1 -1
  123. package/dist/components/Charts/LineChart.mjs +1 -1
  124. package/dist/components/Charts/PieChart.cjs +1 -1
  125. package/dist/components/Charts/PieChart.mjs +1 -1
  126. package/dist/components/Checkbox.cjs +1 -1
  127. package/dist/components/Checkbox.mjs +1 -1
  128. package/dist/components/CheckboxGroup.cjs +1 -1
  129. package/dist/components/CheckboxGroup.mjs +1 -1
  130. package/dist/components/ColorStrip.cjs +1 -1
  131. package/dist/components/ColorStrip.mjs +1 -1
  132. package/dist/components/Confirm.cjs +1 -1
  133. package/dist/components/Confirm.mjs +1 -1
  134. package/dist/components/DataTable.cjs +1 -1
  135. package/dist/components/DataTable.mjs +1 -1
  136. package/dist/components/DatePicker.cjs +1 -1
  137. package/dist/components/DatePicker.mjs +1 -1
  138. package/dist/components/DatePicker.vue.d.ts +1 -1
  139. package/dist/components/DatePicker.vue.d.ts.map +1 -1
  140. package/dist/components/DefinitionList.cjs +1 -1
  141. package/dist/components/DefinitionList.mjs +1 -1
  142. package/dist/components/DefinitionListItem.cjs +1 -1
  143. package/dist/components/DefinitionListItem.mjs +1 -1
  144. package/dist/components/DragHandle.cjs +1 -1
  145. package/dist/components/DragHandle.mjs +1 -1
  146. package/dist/components/EmptyState.cjs +1 -1
  147. package/dist/components/EmptyState.mjs +1 -1
  148. package/dist/components/FileUploader.cjs +1 -1
  149. package/dist/components/FileUploader.mjs +1 -1
  150. package/dist/components/Flag.cjs +1 -1
  151. package/dist/components/Flag.mjs +1 -1
  152. package/dist/components/FloatingToolbar.cjs +1 -1
  153. package/dist/components/FloatingToolbar.mjs +1 -1
  154. package/dist/components/Form.cjs +1 -1
  155. package/dist/components/Form.mjs +1 -1
  156. package/dist/components/Grid.cjs +1 -1
  157. package/dist/components/Grid.mjs +1 -1
  158. package/dist/components/ImageCropper.cjs +1 -1
  159. package/dist/components/ImageCropper.mjs +1 -1
  160. package/dist/components/InfoHint.cjs +1 -1
  161. package/dist/components/InfoHint.mjs +1 -1
  162. package/dist/components/InfoHint.vue.d.ts +1 -1
  163. package/dist/components/Label.cjs +1 -1
  164. package/dist/components/Label.mjs +1 -1
  165. package/dist/components/Menu.cjs +1 -1
  166. package/dist/components/Menu.mjs +1 -1
  167. package/dist/components/Menu.vue.d.ts.map +1 -1
  168. package/dist/components/MenuBarItem.cjs +1 -1
  169. package/dist/components/MenuBarItem.mjs +1 -1
  170. package/dist/components/Message.cjs +1 -1
  171. package/dist/components/Message.mjs +1 -1
  172. package/dist/components/Modal.cjs +1 -1
  173. package/dist/components/Modal.mjs +1 -1
  174. package/dist/components/NotificationCenter.cjs +1 -1
  175. package/dist/components/NotificationCenter.mjs +1 -1
  176. package/dist/components/NotificationCenter.vue.d.ts +2 -2
  177. package/dist/components/NotificationCenterItem.cjs +1 -1
  178. package/dist/components/NotificationCenterItem.mjs +1 -1
  179. package/dist/components/NotificationCenterItem.vue.d.ts +1 -1
  180. package/dist/components/NubiscoMark.cjs +1 -1
  181. package/dist/components/NubiscoMark.mjs +1 -1
  182. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  183. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  184. package/dist/components/NumberInput.cjs +1 -1
  185. package/dist/components/NumberInput.mjs +1 -1
  186. package/dist/components/NumberInput.vue.d.ts +1 -1
  187. package/dist/components/NumberInput.vue.d.ts.map +1 -1
  188. package/dist/components/Pagination.cjs +1 -1
  189. package/dist/components/Pagination.mjs +1 -1
  190. package/dist/components/ProgressBar.cjs +1 -1
  191. package/dist/components/ProgressBar.mjs +1 -1
  192. package/dist/components/Radio.cjs +1 -1
  193. package/dist/components/Radio.mjs +1 -1
  194. package/dist/components/ReorderList.cjs +1 -1
  195. package/dist/components/ReorderList.mjs +1 -1
  196. package/dist/components/Select.cjs +1 -1
  197. package/dist/components/Select.mjs +1 -1
  198. package/dist/components/Select.vue.d.ts +1 -1
  199. package/dist/components/Select.vue.d.ts.map +1 -1
  200. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  201. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  202. package/dist/components/SidebarLink.vue.d.ts +1 -1
  203. package/dist/components/SidebarMenuItem.vue.d.ts +1 -1
  204. package/dist/components/Slider.cjs +1 -1
  205. package/dist/components/Slider.mjs +1 -1
  206. package/dist/components/Spinner.vue.d.ts +1 -1
  207. package/dist/components/Switch.cjs +1 -1
  208. package/dist/components/Switch.mjs +1 -1
  209. package/dist/components/TableOfContents.cjs +1 -1
  210. package/dist/components/TableOfContents.mjs +1 -1
  211. package/dist/components/Tabs.cjs +1 -1
  212. package/dist/components/Tabs.mjs +1 -1
  213. package/dist/components/Tabs.vue.d.ts.map +1 -1
  214. package/dist/components/TextInput.cjs +1 -1
  215. package/dist/components/TextInput.mjs +1 -1
  216. package/dist/components/TextInput.vue.d.ts +1 -1
  217. package/dist/components/TextInput.vue.d.ts.map +1 -1
  218. package/dist/components/Toast.cjs +1 -1
  219. package/dist/components/Toast.mjs +1 -1
  220. package/dist/components/Toaster.cjs +1 -1
  221. package/dist/components/Toaster.mjs +1 -1
  222. package/dist/components/Toaster.vue.d.ts +1 -1
  223. package/dist/components/UserMenu.cjs +1 -1
  224. package/dist/components/UserMenu.mjs +1 -1
  225. package/dist/components/UserMenu.vue.d.ts +1 -1
  226. package/dist/components/Walkthrough.cjs +1 -1
  227. package/dist/components/Walkthrough.mjs +1 -1
  228. package/dist/composables/useConfirm.composable.cjs +1 -1
  229. package/dist/composables/useConfirm.composable.mjs +3 -3
  230. package/dist/composables/useMenuSurface.composable.cjs +1 -0
  231. package/dist/composables/useMenuSurface.composable.d.ts +14 -0
  232. package/dist/composables/useMenuSurface.composable.d.ts.map +1 -0
  233. package/dist/composables/useMenuSurface.composable.mjs +12 -0
  234. package/dist/index.cjs +1 -1
  235. package/dist/index.mjs +62 -62
  236. package/dist/styles/AccordionItem.css +1 -1
  237. package/dist/styles/Badge.css +1 -1
  238. package/dist/styles/Tabs.css +1 -1
  239. package/dist/ui.css +4 -4
  240. package/package.json +1 -1
  241. package/dist/AccordionItem-BkV2mNGm.js +0 -90
  242. package/dist/AccordionItem-CYy-vtx2.cjs +0 -1
  243. package/dist/Badge-BOF-mQu9.cjs +0 -1
  244. package/dist/Badge-MPdaJamD.js +0 -30
  245. package/dist/DatePicker-DQJ31TUm.cjs +0 -1
  246. package/dist/DatePicker-htoxxlSw.js +0 -701
  247. package/dist/Menu-BSbPfsiE.cjs +0 -1
  248. package/dist/Select-BMamCNcN.cjs +0 -1
  249. /package/dist/{Avatar-DqHh71ha.cjs → Avatar-BmB57kGg.cjs} +0 -0
  250. /package/dist/{Avatar-672086EP.js → Avatar-ap4X6_kE.js} +0 -0
  251. /package/dist/{Board-CS1pMX4d.cjs → Board-6TUivitd.cjs} +0 -0
  252. /package/dist/{Board-DmTUOIbg.js → Board-nLi96Obf.js} +0 -0
  253. /package/dist/{Breadcrumbs-CbN5yrrZ.js → Breadcrumbs-BT3EvjKk.js} +0 -0
  254. /package/dist/{Breadcrumbs-BQ61cxAo.cjs → Breadcrumbs-H9PvTXK0.cjs} +0 -0
  255. /package/dist/{Button-Cw4D6w9K.js → Button-CV2mm5ZB.js} +0 -0
  256. /package/dist/{Button-D-XSNjSL.cjs → Button-S8xZ0EGV.cjs} +0 -0
  257. /package/dist/{Calendar-B9E2LD-Z.js → Calendar-Bu8yA7-h.js} +0 -0
  258. /package/dist/{Calendar-Dl51sRax.cjs → Calendar-DiYrR5ss.cjs} +0 -0
  259. /package/dist/{Card-eM6DEphF.js → Card-ChgbYLJP.js} +0 -0
  260. /package/dist/{Card-Cn5OS4q-.cjs → Card-duvlUAg9.cjs} +0 -0
  261. /package/dist/{CardGrid-Dpr7jSvX.js → CardGrid-ChwQuHLa.js} +0 -0
  262. /package/dist/{CardGrid-CQlFeUgK.cjs → CardGrid-Desk_vNP.cjs} +0 -0
  263. /package/dist/{ChartLegend-F3Fb5_Lx.cjs → ChartLegend-O2SYdHsd.cjs} +0 -0
  264. /package/dist/{ChartLegend-DtN-9tjj.js → ChartLegend-ywCoTUbO.js} +0 -0
  265. /package/dist/{CheckboxGroup.context-DxIobnwL.js → CheckboxGroup.context-BssNljp4.js} +0 -0
  266. /package/dist/{CheckboxGroup.context-YvEAde5I.cjs → CheckboxGroup.context-DYPnnK72.cjs} +0 -0
  267. /package/dist/{DefinitionList-DURU1gfC.cjs → DefinitionList-C5cqvaLy.cjs} +0 -0
  268. /package/dist/{DefinitionList-uikEhnxV.js → DefinitionList-fmy6J4Re.js} +0 -0
  269. /package/dist/{DefinitionListItem-DzDHUFZP.js → DefinitionListItem-CJK5RkIw.js} +0 -0
  270. /package/dist/{DefinitionListItem-Cr9dbQxH.cjs → DefinitionListItem-CWqjObrZ.cjs} +0 -0
  271. /package/dist/{DragHandle-CEYUbnGp.cjs → DragHandle-CoJEyCLX.cjs} +0 -0
  272. /package/dist/{DragHandle-CnXKvg4U.js → DragHandle-DDJ1Hsmo.js} +0 -0
  273. /package/dist/{EmptyState-Cz91HAKF.cjs → EmptyState-u1iAtZUB.cjs} +0 -0
  274. /package/dist/{EmptyState-CwMG-NeI.js → EmptyState-xU5I0laM.js} +0 -0
  275. /package/dist/{Flag-CrPxTYGW.cjs → Flag-Pk2LFD1t.cjs} +0 -0
  276. /package/dist/{Flag-BdhoXwJu.js → Flag-k-Aakupd.js} +0 -0
  277. /package/dist/{FloatingToolbar-AoCFmueA.cjs → FloatingToolbar-DpBbWZL6.cjs} +0 -0
  278. /package/dist/{FloatingToolbar-Zs9hJISD.js → FloatingToolbar-_loB4pae.js} +0 -0
  279. /package/dist/{Grid-CgUyhsw4.js → Grid-DA2jibMM.js} +0 -0
  280. /package/dist/{Grid-DTZTlxd_.cjs → Grid-HifmWSUS.cjs} +0 -0
  281. /package/dist/{InfoHint-DjAgTkgL.js → InfoHint-CK96hjMo.js} +0 -0
  282. /package/dist/{InfoHint-DX3lgnTX.cjs → InfoHint-Cs9-C043.cjs} +0 -0
  283. /package/dist/{Label-DtXh4XR5.cjs → Label-BIM21I7D.cjs} +0 -0
  284. /package/dist/{Label-glcQoGCr.js → Label-CiWiUQ_H.js} +0 -0
  285. /package/dist/{NubiscoMark-Cv7PC_UC.cjs → NubiscoMark-BN6bzMMG.cjs} +0 -0
  286. /package/dist/{NubiscoMark-Cdkdq4ka.js → NubiscoMark-Bj6eID79.js} +0 -0
  287. /package/dist/{NubiscoPlatformMark-CsQKE5_2.js → NubiscoPlatformMark-C0OeymWK.js} +0 -0
  288. /package/dist/{NubiscoPlatformMark-JzdEpSRs.cjs → NubiscoPlatformMark-CE-poDEU.cjs} +0 -0
  289. /package/dist/{ReorderList-DLQ3rVnX.cjs → ReorderList-CigXh_u8.cjs} +0 -0
  290. /package/dist/{ReorderList-DpytAupm.js → ReorderList-DC83oBGi.js} +0 -0
  291. /package/dist/{palette-DeWUCp-_.cjs → palette-BW0RLn76.cjs} +0 -0
  292. /package/dist/{palette-IseTcTSI.js → palette-CS95-prq.js} +0 -0
  293. /package/dist/{scales-5n6sKgoF.js → scales-BjSg0Ayo.js} +0 -0
  294. /package/dist/{scales-BzEZs-6Z.cjs → scales-VtK6oMP0.cjs} +0 -0
  295. /package/dist/{useChartSize-DdrCBerH.cjs → useChartSize-BPqvq1te.cjs} +0 -0
  296. /package/dist/{useChartSize-Bc1dbcG2.js → useChartSize-CBOK3yq5.js} +0 -0
  297. /package/dist/{vue-i18n-yvGo2JG6.cjs → vue-i18n-Bhwom92P.cjs} +0 -0
  298. /package/dist/{vue-i18n-BogjhxqA.js → vue-i18n-CkVGSKx4.js} +0 -0
@@ -1,701 +0,0 @@
1
- import { t as e } from "./Icon-rREAqsu0.js";
2
- import { useSurfaceLayer as t } from "./composables/useSurfaceLayer.composable.mjs";
3
- import { t as n } from "./Label-glcQoGCr.js";
4
- import { t as r } from "./Message-Ciyc2nN6.js";
5
- import { t as i } from "./Grid-CgUyhsw4.js";
6
- import { Fragment as a, Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, mergeProps as ee, nextTick as h, normalizeClass as g, onBeforeUnmount as te, openBlock as _, ref as v, renderList as ne, renderSlot as re, toDisplayString as y, unref as b, useId as ie, watch as ae, withCtx as x, withModifiers as oe } from "vue";
7
- import { regular as se } from "@nubisco/ui/icons/caret-right";
8
- import { regular as S } from "@nubisco/ui/icons/calendar";
9
- import { regular as ce } from "@nubisco/ui/icons/caret-double-left";
10
- import { regular as le } from "@nubisco/ui/icons/caret-left";
11
- import { regular as ue } from "@nubisco/ui/icons/caret-double-right";
12
- //#region src/components/DatePicker.vue?vue&type=script&setup=true&lang.ts
13
- var de = { class: "nb-date-picker__col" }, fe = [
14
- "id",
15
- "value",
16
- "placeholder",
17
- "disabled",
18
- "readonly",
19
- "required",
20
- "name",
21
- "aria-invalid",
22
- "aria-describedby"
23
- ], pe = ["disabled", "aria-label"], me = {
24
- key: 0,
25
- class: "nb-date-picker__col"
26
- }, he = [
27
- "id",
28
- "value",
29
- "placeholder",
30
- "disabled",
31
- "readonly",
32
- "required",
33
- "aria-invalid",
34
- "aria-describedby"
35
- ], ge = ["disabled", "aria-label"], _e = {
36
- key: 0,
37
- class: "nb-date-picker__inner-header"
38
- }, ve = ["for"], ye = {
39
- key: 0,
40
- class: "nb-date-picker__asterisk",
41
- "aria-hidden": "true"
42
- }, be = { class: "nb-date-picker__fluid-row" }, xe = [
43
- "id",
44
- "value",
45
- "placeholder",
46
- "disabled",
47
- "readonly",
48
- "required",
49
- "name",
50
- "aria-invalid"
51
- ], Se = ["disabled", "aria-label"], Ce = {
52
- key: 0,
53
- class: "nb-date-picker__inner-header"
54
- }, we = ["for"], Te = {
55
- key: 0,
56
- class: "nb-date-picker__asterisk",
57
- "aria-hidden": "true"
58
- }, Ee = { class: "nb-date-picker__fluid-row" }, De = [
59
- "id",
60
- "value",
61
- "placeholder",
62
- "disabled",
63
- "readonly",
64
- "required",
65
- "aria-invalid"
66
- ], Oe = ["disabled", "aria-label"], ke = ["aria-label"], Ae = { class: "nb-date-picker__cal-header" }, je = ["id"], Me = ["aria-labelledby"], Ne = { class: "nb-date-picker__cal-weekdays" }, Pe = ["abbr"], Fe = ["aria-selected", "aria-disabled"], Ie = [
67
- "tabindex",
68
- "disabled",
69
- "aria-label",
70
- "data-date",
71
- "onClick"
72
- ], Le = /* @__PURE__ */ m({
73
- inheritAttrs: !1,
74
- __name: "DatePicker",
75
- props: {
76
- modelValue: { default: null },
77
- type: { default: "single" },
78
- endValue: { default: null },
79
- min: { default: void 0 },
80
- max: { default: void 0 },
81
- weekStart: { default: 1 },
82
- locale: { default: void 0 },
83
- endPlaceholder: { default: "" },
84
- endLabel: { default: "" },
85
- endError: { default: "" },
86
- endWarning: { default: "" },
87
- disabledDates: {
88
- type: [Array, Function],
89
- default: void 0
90
- },
91
- readonly: {
92
- type: Boolean,
93
- default: !1
94
- },
95
- placeholder: { default: "" },
96
- name: { default: "" },
97
- disabled: {
98
- type: Boolean,
99
- default: !1
100
- },
101
- required: {
102
- type: Boolean,
103
- default: !1
104
- },
105
- id: { default: void 0 },
106
- label: { default: "" },
107
- error: { default: "" },
108
- warning: { default: "" },
109
- helper: { default: "" },
110
- variant: { default: "default" },
111
- size: { default: "md" }
112
- },
113
- emits: [
114
- "update:modelValue",
115
- "update:endValue",
116
- "change"
117
- ],
118
- setup(m, { expose: Le, emit: Re }) {
119
- let C = m, { layerProps: ze } = t({ overlay: !0 }), w = Re, Be = `nb-date-picker-${ie()}`, T = s(() => C.id ?? Be), E = s(() => `${T.value}-end`), Ve = s(() => `${T.value}-helper`), He = s(() => `${T.value}-message`), Ue = s(() => `${T.value}-end-message`), We = s(() => `${T.value}-cal-title`), D = v(null), Ge = s(() => D.value !== null), O = v(!1), k = v($(/* @__PURE__ */ new Date())), Ke = v(null), A = v(null), j = v(null), qe = v(null), Je = v({
120
- position: "fixed",
121
- top: "0px",
122
- left: "0px",
123
- zIndex: "9999"
124
- }), M = v("start"), N = s(() => C.locale || navigator.language || "pt-PT"), P = s(() => new Intl.DateTimeFormat(N.value).formatToParts(new Date(2e3, 0, 15)).map((e) => e.type === "day" ? "dd" : e.type === "month" ? "mm" : e.type === "year" ? "yyyy" : e.value).join(""));
125
- function F(e) {
126
- if (!e) return "";
127
- let t = /* @__PURE__ */ new Date(e + "T00:00:00");
128
- return isNaN(t.getTime()) ? e : t.toLocaleDateString(N.value);
129
- }
130
- function Ye(e) {
131
- return (/* @__PURE__ */ new Date(e + "T00:00:00")).toLocaleDateString(N.value, {
132
- weekday: "long",
133
- year: "numeric",
134
- month: "long",
135
- day: "numeric"
136
- });
137
- }
138
- let Xe = s(() => F(C.modelValue ?? null)), Ze = s(() => F(C.endValue ?? null)), I = s(() => C.error ? {
139
- variant: "error",
140
- text: C.error
141
- } : C.warning ? {
142
- variant: "warning",
143
- text: C.warning
144
- } : null), L = s(() => C.type === "range" ? C.endError ? {
145
- variant: "error",
146
- text: C.endError
147
- } : C.endWarning ? {
148
- variant: "warning",
149
- text: C.endWarning
150
- } : null : null), R = s(() => I.value ? I.value : C.helper ? {
151
- variant: "helper",
152
- text: C.helper
153
- } : null), Qe = s(() => {
154
- if (C.variant === "default") return I.value ? He.value : C.helper ? Ve.value : void 0;
155
- }), $e = s(() => {
156
- if (C.variant === "default") return L.value ? Ue.value : C.helper ? Ve.value : void 0;
157
- }), et = s(() => C.type === "range" && !!C.endLabel), tt = s(() => C.endLabel || C.endPlaceholder);
158
- function z(e) {
159
- return C.min != null && e < C.min || C.max != null && e > C.max ? !0 : C.disabledDates ? typeof C.disabledDates == "function" ? C.disabledDates(e) : C.disabledDates.includes(e) : !1;
160
- }
161
- function nt(e) {
162
- let t = e.trim();
163
- if (!t) return null;
164
- if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
165
- let e = /* @__PURE__ */ new Date(t + "T00:00:00");
166
- return isNaN(e.getTime()) ? null : t;
167
- }
168
- let n = new Date(t);
169
- return isNaN(n.getTime()) ? null : $(n);
170
- }
171
- function rt(e) {
172
- let t = e.target.value, n = nt(t);
173
- n && z(n) || (n || t === "") && (w("update:modelValue", n), w("change", n));
174
- }
175
- function it(e) {
176
- let t = e.target.value, n = nt(t);
177
- n && z(n) || (n || t === "") && w("update:endValue", n);
178
- }
179
- function B(e) {
180
- D.value = e.target === j.value ? "end" : "start", C.type !== "simple" && !C.readonly && (M.value = D.value, O.value ? at() : U());
181
- }
182
- function V() {
183
- D.value = null;
184
- }
185
- function H(e) {
186
- if (!(C.type === "simple" || C.readonly)) switch (e.key) {
187
- case "Escape":
188
- O.value && (W(), e.preventDefault());
189
- break;
190
- case "ArrowDown":
191
- e.preventDefault(), O.value || U(), h(K);
192
- break;
193
- case "Enter":
194
- O.value || (e.preventDefault(), U(), h(K));
195
- break;
196
- }
197
- }
198
- function at() {
199
- let e = Ke.value?.querySelectorAll(".nb-date-picker__input-wrapper");
200
- if (!e?.length) return;
201
- let t = (M.value === "end" && e.length > 1 ? e[1] : e[0]).getBoundingClientRect();
202
- Je.value = {
203
- position: "fixed",
204
- top: `${t.bottom + 4}px`,
205
- left: `${t.left}px`,
206
- zIndex: "9999"
207
- };
208
- }
209
- function U() {
210
- if (C.disabled || C.readonly || C.type === "simple" || O.value) return;
211
- O.value = !0;
212
- let e = M.value === "end" && C.endValue ? C.endValue : C.modelValue, t = e ? /* @__PURE__ */ new Date(e + "T00:00:00") : /* @__PURE__ */ new Date();
213
- X.value = t.getFullYear(), Z.value = t.getMonth(), k.value = e || $(/* @__PURE__ */ new Date()), at();
214
- }
215
- function W() {
216
- O.value && (O.value = !1, h(() => {
217
- M.value === "end" && j.value ? j.value.focus() : A.value?.focus();
218
- }));
219
- }
220
- function G() {
221
- O.value ? W() : (M.value = "start", U(), h(K));
222
- }
223
- function K() {
224
- h(() => {
225
- (qe.value?.querySelector(`[data-date="${k.value}"]`))?.focus();
226
- });
227
- }
228
- function ot(e) {
229
- z(e) || (C.type === "range" ? M.value === "start" ? (w("update:modelValue", e), w("change", e), M.value = "end", k.value = e, h(() => j.value?.focus())) : (C.modelValue && e < C.modelValue ? (w("update:endValue", C.modelValue), w("update:modelValue", e), w("change", e)) : w("update:endValue", e), W()) : (w("update:modelValue", e), w("change", e), W()));
230
- }
231
- function st(e) {
232
- let t = /* @__PURE__ */ new Date(k.value + "T00:00:00"), n = !0;
233
- switch (e.key) {
234
- case "ArrowRight":
235
- q(t, 1);
236
- break;
237
- case "ArrowLeft":
238
- q(t, -1);
239
- break;
240
- case "ArrowDown":
241
- q(t, 7);
242
- break;
243
- case "ArrowUp":
244
- q(t, -7);
245
- break;
246
- case "Home":
247
- ct(t, "start");
248
- break;
249
- case "End":
250
- ct(t, "end");
251
- break;
252
- case "PageUp":
253
- e.shiftKey ? J(t, -12) : J(t, -1);
254
- break;
255
- case "PageDown":
256
- e.shiftKey ? J(t, 12) : J(t, 1);
257
- break;
258
- case "Enter":
259
- case " ":
260
- e.preventDefault(), ot(k.value);
261
- return;
262
- case "Escape":
263
- W();
264
- break;
265
- case "Tab":
266
- W();
267
- return;
268
- default: n = !1;
269
- }
270
- n && e.preventDefault();
271
- }
272
- function q(e, t) {
273
- let n = new Date(e);
274
- n.setDate(n.getDate() + t), lt(n);
275
- }
276
- function ct(e, t) {
277
- let n = e.getDay();
278
- C.weekStart === 1 && (n = n === 0 ? 6 : n - 1);
279
- let r = t === "start" ? -n : 6 - n, i = new Date(e);
280
- i.setDate(i.getDate() + r), lt(i);
281
- }
282
- function J(e, t) {
283
- let n = new Date(e);
284
- n.setMonth(n.getMonth() + t), n.getDate() !== e.getDate() && n.setDate(0), lt(n);
285
- }
286
- function lt(e) {
287
- let t = $(e);
288
- C.min != null && t < C.min || C.max != null && t > C.max || (k.value = t, X.value = e.getFullYear(), Z.value = e.getMonth(), K());
289
- }
290
- function ut(e) {
291
- let t = e.target, n = Ke.value?.contains(t) ?? !1, r = qe.value?.contains(t) ?? !1;
292
- !n && !r && W();
293
- }
294
- function Y() {
295
- O.value && at();
296
- }
297
- ae(O, (e) => {
298
- e ? (document.addEventListener("mousedown", ut), window.addEventListener("scroll", Y, !0), window.addEventListener("resize", Y)) : (document.removeEventListener("mousedown", ut), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y));
299
- }), te(() => {
300
- document.removeEventListener("mousedown", ut), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y);
301
- });
302
- let X = v((/* @__PURE__ */ new Date()).getFullYear()), Z = v((/* @__PURE__ */ new Date()).getMonth());
303
- function Q(e) {
304
- let t = X.value * 12 + Z.value + e;
305
- X.value = Math.floor(t / 12), Z.value = (t % 12 + 12) % 12;
306
- let n = (/* @__PURE__ */ new Date(k.value + "T00:00:00")).getDate(), r = new Date(X.value, Z.value + 1, 0).getDate();
307
- k.value = $(new Date(X.value, Z.value, Math.min(n, r))), K();
308
- }
309
- let dt = () => Q(-1), ft = () => Q(1), pt = () => Q(-12), mt = () => Q(12), ht = s(() => {
310
- let e = new Date(X.value, Z.value, 1).toLocaleDateString(N.value, {
311
- month: "long",
312
- year: "numeric"
313
- });
314
- return e.charAt(0).toUpperCase() + e.slice(1);
315
- }), gt = s(() => {
316
- let e = [], t = new Date(2024, 0, C.weekStart === 0 ? 7 : 1);
317
- for (let n = 0; n < 7; n++) {
318
- let r = new Date(t);
319
- r.setDate(t.getDate() + n);
320
- let i = r.toLocaleDateString(N.value, { weekday: "narrow" }).toUpperCase(), a = r.toLocaleDateString(N.value, { weekday: "long" });
321
- e.push({
322
- narrow: i,
323
- full: a.charAt(0).toUpperCase() + a.slice(1)
324
- });
325
- }
326
- return e;
327
- });
328
- function $(e) {
329
- return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
330
- }
331
- let _t = s(() => $(/* @__PURE__ */ new Date())), vt = s(() => {
332
- let e = X.value, t = Z.value, n = new Date(e, t, 1), r = new Date(e, t + 1, 0), i = n.getDay();
333
- C.weekStart === 1 && (i = i === 0 ? 6 : i - 1);
334
- let a = [], o = C.modelValue ?? null, s = C.endValue ?? null, c = o && s ? o < s ? o : s : null, l = o && s ? o < s ? s : o : null;
335
- function u(e, t) {
336
- let n = $(e);
337
- return {
338
- key: n,
339
- date: n,
340
- day: e.getDate(),
341
- inMonth: t,
342
- isToday: n === _t.value,
343
- isSelected: n === o || n === s,
344
- inRange: c != null && l != null && n > c && n < l,
345
- isRangeStart: n === c && l != null,
346
- isRangeEnd: n === l && c != null,
347
- isDisabled: z(n)
348
- };
349
- }
350
- for (let n = i - 1; n >= 0; n--) a.push(u(new Date(e, t, -n), !1));
351
- for (let n = 1; n <= r.getDate(); n++) a.push(u(new Date(e, t, n), !0));
352
- let d = 7 - a.length % 7;
353
- if (d < 7) for (let n = 1; n <= d; n++) a.push(u(new Date(e, t + 1, n), !1));
354
- return a;
355
- }), yt = s(() => {
356
- let e = [];
357
- for (let t = 0; t < vt.value.length; t += 7) e.push(vt.value.slice(t, t + 7));
358
- return e;
359
- }), bt = s(() => [
360
- "nb-date-picker",
361
- `nb-date-picker--${C.variant}`,
362
- `nb-date-picker--${C.size}`,
363
- `nb-date-picker--${C.type}`,
364
- {
365
- "nb-date-picker--focused": Ge.value,
366
- "nb-date-picker--open": O.value,
367
- "nb-date-picker--error": !!C.error || !!C.endError,
368
- "nb-date-picker--warning": !C.error && !C.endError && (!!C.warning || !!C.endWarning),
369
- "nb-date-picker--disabled": C.disabled,
370
- "nb-date-picker--readonly": C.readonly
371
- }
372
- ]), xt = s(() => ({
373
- "nb-date-picker__input-wrapper--focused": D.value === "start",
374
- "nb-date-picker__input-wrapper--error": !!C.error,
375
- "nb-date-picker__input-wrapper--warning": !C.error && !!C.warning,
376
- "nb-date-picker__input-wrapper--disabled": C.disabled,
377
- "nb-date-picker__input-wrapper--readonly": C.readonly
378
- })), St = s(() => ({
379
- "nb-date-picker__input-wrapper--focused": D.value === "end",
380
- "nb-date-picker__input-wrapper--error": !!C.endError,
381
- "nb-date-picker__input-wrapper--warning": !C.endError && !!C.endWarning,
382
- "nb-date-picker__input-wrapper--disabled": C.disabled,
383
- "nb-date-picker__input-wrapper--readonly": C.readonly
384
- }));
385
- return Le({
386
- open: U,
387
- close: W,
388
- focus: () => A.value?.focus()
389
- }), (t, s) => (_(), u(a, null, [d("div", {
390
- ref_key: "rootRef",
391
- ref: Ke,
392
- class: g(bt.value)
393
- }, [m.variant === "default" ? (_(), u(a, { key: 0 }, [
394
- t.$slots.label ? re(t.$slots, "label", { key: 0 }) : m.label && !et.value ? (_(), c(n, {
395
- key: 1,
396
- for: T.value,
397
- required: m.required,
398
- disabled: m.disabled
399
- }, {
400
- default: x(() => [f(y(m.label), 1)]),
401
- _: 1
402
- }, 8, [
403
- "for",
404
- "required",
405
- "disabled"
406
- ])) : l("", !0),
407
- p(i, {
408
- dir: "row",
409
- gap: m.type === "range" ? "sm" : void 0,
410
- class: "nb-date-picker__fields"
411
- }, {
412
- default: x(() => [d("div", de, [et.value && m.label ? (_(), c(n, {
413
- key: 0,
414
- for: T.value,
415
- required: m.required,
416
- disabled: m.disabled
417
- }, {
418
- default: x(() => [f(y(m.label), 1)]),
419
- _: 1
420
- }, 8, [
421
- "for",
422
- "required",
423
- "disabled"
424
- ])) : l("", !0), d("div", { class: g(["nb-date-picker__input-wrapper", xt.value]) }, [d("input", ee({
425
- id: T.value,
426
- ref_key: "inputRef",
427
- ref: A
428
- }, t.$attrs, {
429
- type: "text",
430
- class: "nb-date-picker__field",
431
- value: Xe.value,
432
- placeholder: m.placeholder || P.value,
433
- disabled: m.disabled,
434
- readonly: m.readonly,
435
- required: m.required,
436
- name: m.name,
437
- "aria-invalid": m.error ? !0 : void 0,
438
- "aria-describedby": Qe.value,
439
- onInput: s[0] ||= (e) => rt(e),
440
- onFocus: B,
441
- onBlur: V,
442
- onKeydown: H
443
- }), null, 16, fe), m.type === "simple" ? l("", !0) : (_(), u("button", {
444
- key: 0,
445
- type: "button",
446
- class: "nb-date-picker__icon",
447
- disabled: m.disabled || m.readonly,
448
- tabindex: "-1",
449
- "aria-label": m.modelValue ? `Change date, ${F(m.modelValue)}` : "Choose date",
450
- onClick: G
451
- }, [p(e, {
452
- name: b(S),
453
- size: 16
454
- }, null, 8, ["name"])], 8, pe))], 2)]), m.type === "range" ? (_(), u("div", me, [et.value ? (_(), c(n, {
455
- key: 0,
456
- for: E.value,
457
- required: m.required,
458
- disabled: m.disabled
459
- }, {
460
- default: x(() => [f(y(m.endLabel), 1)]),
461
- _: 1
462
- }, 8, [
463
- "for",
464
- "required",
465
- "disabled"
466
- ])) : l("", !0), d("div", { class: g(["nb-date-picker__input-wrapper", St.value]) }, [d("input", {
467
- id: E.value,
468
- ref_key: "endInputRef",
469
- ref: j,
470
- type: "text",
471
- class: "nb-date-picker__field",
472
- value: Ze.value,
473
- placeholder: m.endPlaceholder || P.value,
474
- disabled: m.disabled,
475
- readonly: m.readonly,
476
- required: m.required,
477
- "aria-invalid": m.endError ? !0 : void 0,
478
- "aria-describedby": $e.value,
479
- onInput: s[1] ||= (e) => it(e),
480
- onFocus: B,
481
- onBlur: V,
482
- onKeydown: H
483
- }, null, 40, he), d("button", {
484
- type: "button",
485
- class: "nb-date-picker__icon",
486
- disabled: m.disabled || m.readonly,
487
- tabindex: "-1",
488
- "aria-label": m.endValue ? `Change end date, ${F(m.endValue)}` : "Choose end date",
489
- onClick: G
490
- }, [p(e, {
491
- name: b(S),
492
- size: 16
493
- }, null, 8, ["name"])], 8, ge)], 2)])) : l("", !0)]),
494
- _: 1
495
- }, 8, ["gap"]),
496
- I.value ? (_(), c(r, {
497
- key: 2,
498
- id: He.value,
499
- variant: I.value.variant,
500
- class: "nb-date-picker__message"
501
- }, {
502
- default: x(() => [f(y(I.value.text), 1)]),
503
- _: 1
504
- }, 8, ["id", "variant"])) : l("", !0),
505
- L.value ? (_(), c(r, {
506
- key: 3,
507
- id: Ue.value,
508
- variant: L.value.variant,
509
- class: "nb-date-picker__message"
510
- }, {
511
- default: x(() => [f(y(L.value.text), 1)]),
512
- _: 1
513
- }, 8, ["id", "variant"])) : l("", !0),
514
- !I.value && !L.value && m.helper ? (_(), c(r, {
515
- key: 4,
516
- id: Ve.value,
517
- variant: "helper",
518
- class: "nb-date-picker__message"
519
- }, {
520
- default: x(() => [f(y(m.helper), 1)]),
521
- _: 1
522
- }, 8, ["id"])) : l("", !0)
523
- ], 64)) : m.variant === "fluid" ? (_(), c(i, {
524
- key: 1,
525
- dir: "row",
526
- gap: m.type === "range" ? "sm" : void 0,
527
- class: "nb-date-picker__fields"
528
- }, {
529
- default: x(() => [d("div", { class: g(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", xt.value]) }, [m.label || t.$slots.label || R.value ? (_(), u("div", _e, [t.$slots.label ? re(t.$slots, "label", { key: 0 }) : (_(), u("label", {
530
- key: 1,
531
- for: T.value,
532
- class: "nb-date-picker__inner-label"
533
- }, [f(y(m.label) + " ", 1), m.required ? (_(), u("span", ye, "*")) : l("", !0)], 8, ve)), R.value ? (_(), c(r, {
534
- key: 2,
535
- variant: R.value.variant,
536
- "icon-only": "",
537
- class: "nb-date-picker__inner-message"
538
- }, {
539
- default: x(() => [f(y(R.value.text), 1)]),
540
- _: 1
541
- }, 8, ["variant"])) : l("", !0)])) : l("", !0), d("div", be, [d("input", ee({
542
- id: T.value,
543
- ref_key: "inputRef",
544
- ref: A
545
- }, t.$attrs, {
546
- type: "text",
547
- class: "nb-date-picker__field",
548
- value: Xe.value,
549
- placeholder: m.placeholder || P.value,
550
- disabled: m.disabled,
551
- readonly: m.readonly,
552
- required: m.required,
553
- name: m.name,
554
- "aria-invalid": m.error ? !0 : void 0,
555
- onInput: s[2] ||= (e) => rt(e),
556
- onFocus: B,
557
- onBlur: V,
558
- onKeydown: H
559
- }), null, 16, xe), m.type === "simple" ? l("", !0) : (_(), u("button", {
560
- key: 0,
561
- type: "button",
562
- class: "nb-date-picker__icon",
563
- disabled: m.disabled || m.readonly,
564
- tabindex: "-1",
565
- "aria-label": m.modelValue ? `Change date, ${F(m.modelValue)}` : "Choose date",
566
- onClick: G
567
- }, [p(e, {
568
- name: b(S),
569
- size: 16
570
- }, null, 8, ["name"])], 8, Se))])], 2), m.type === "range" ? (_(), u("div", {
571
- key: 0,
572
- class: g(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", St.value])
573
- }, [tt.value || L.value ? (_(), u("div", Ce, [d("label", {
574
- for: E.value,
575
- class: "nb-date-picker__inner-label"
576
- }, [f(y(tt.value) + " ", 1), m.required ? (_(), u("span", Te, "*")) : l("", !0)], 8, we), L.value ? (_(), c(r, {
577
- key: 0,
578
- variant: L.value.variant,
579
- "icon-only": "",
580
- class: "nb-date-picker__inner-message"
581
- }, {
582
- default: x(() => [f(y(L.value.text), 1)]),
583
- _: 1
584
- }, 8, ["variant"])) : l("", !0)])) : l("", !0), d("div", Ee, [d("input", {
585
- id: E.value,
586
- ref_key: "endInputRef",
587
- ref: j,
588
- type: "text",
589
- class: "nb-date-picker__field",
590
- value: Ze.value,
591
- placeholder: m.endPlaceholder || P.value,
592
- disabled: m.disabled,
593
- readonly: m.readonly,
594
- required: m.required,
595
- "aria-invalid": m.endError ? !0 : void 0,
596
- onInput: s[3] ||= (e) => it(e),
597
- onFocus: B,
598
- onBlur: V,
599
- onKeydown: H
600
- }, null, 40, De), d("button", {
601
- type: "button",
602
- class: "nb-date-picker__icon",
603
- disabled: m.disabled || m.readonly,
604
- tabindex: "-1",
605
- "aria-label": m.endValue ? `Change end date, ${F(m.endValue)}` : "Choose end date",
606
- onClick: G
607
- }, [p(e, {
608
- name: b(S),
609
- size: 16
610
- }, null, 8, ["name"])], 8, Oe)])], 2)) : l("", !0)]),
611
- _: 3
612
- }, 8, ["gap"])) : l("", !0)], 2), (_(), c(o, { to: "body" }, [O.value ? (_(), u("div", ee({
613
- key: 0,
614
- ref_key: "calendarRef",
615
- ref: qe,
616
- role: "dialog",
617
- "aria-modal": "true",
618
- "aria-label": m.label ? `${m.label} calendar` : "Date picker",
619
- class: "nb-date-picker__calendar"
620
- }, b(ze), {
621
- style: Je.value,
622
- onKeydown: st,
623
- onMousedown: s[4] ||= oe(() => {}, ["prevent"])
624
- }), [d("div", Ae, [
625
- d("button", {
626
- type: "button",
627
- class: "nb-date-picker__cal-nav",
628
- "aria-label": "Previous year",
629
- onClick: pt
630
- }, [p(e, {
631
- name: b(ce),
632
- size: 16
633
- }, null, 8, ["name"])]),
634
- d("button", {
635
- type: "button",
636
- class: "nb-date-picker__cal-nav",
637
- "aria-label": "Previous month",
638
- onClick: dt
639
- }, [p(e, {
640
- name: b(le),
641
- size: 16
642
- }, null, 8, ["name"])]),
643
- d("span", {
644
- id: We.value,
645
- class: "nb-date-picker__cal-title",
646
- "aria-live": "polite"
647
- }, y(ht.value), 9, je),
648
- d("button", {
649
- type: "button",
650
- class: "nb-date-picker__cal-nav",
651
- "aria-label": "Next month",
652
- onClick: ft
653
- }, [p(e, {
654
- name: b(se),
655
- size: 16
656
- }, null, 8, ["name"])]),
657
- d("button", {
658
- type: "button",
659
- class: "nb-date-picker__cal-nav",
660
- "aria-label": "Next year",
661
- onClick: mt
662
- }, [p(e, {
663
- name: b(ue),
664
- size: 16
665
- }, null, 8, ["name"])])
666
- ]), d("table", {
667
- role: "grid",
668
- "aria-labelledby": We.value,
669
- class: "nb-date-picker__cal-table"
670
- }, [d("thead", null, [d("tr", Ne, [(_(!0), u(a, null, ne(gt.value, (e) => (_(), u("th", {
671
- key: e.narrow,
672
- scope: "col",
673
- class: "nb-date-picker__cal-weekday",
674
- abbr: e.full
675
- }, y(e.narrow), 9, Pe))), 128))])]), d("tbody", null, [(_(!0), u(a, null, ne(yt.value, (e, t) => (_(), u("tr", { key: t }, [(_(!0), u(a, null, ne(e, (e) => (_(), u("td", {
676
- key: e.key,
677
- role: "gridcell",
678
- "aria-selected": e.isSelected || void 0,
679
- "aria-disabled": e.isDisabled || void 0
680
- }, [d("button", {
681
- type: "button",
682
- class: g(["nb-date-picker__cal-day", {
683
- "nb-date-picker__cal-day--outside": !e.inMonth,
684
- "nb-date-picker__cal-day--today": e.isToday,
685
- "nb-date-picker__cal-day--selected": e.isSelected,
686
- "nb-date-picker__cal-day--in-range": e.inRange,
687
- "nb-date-picker__cal-day--range-start": e.isRangeStart,
688
- "nb-date-picker__cal-day--range-end": e.isRangeEnd,
689
- "nb-date-picker__cal-day--disabled": e.isDisabled,
690
- "nb-date-picker__cal-day--focused": e.date === k.value
691
- }]),
692
- tabindex: e.date === k.value ? 0 : -1,
693
- disabled: e.isDisabled,
694
- "aria-label": Ye(e.date),
695
- "data-date": e.date,
696
- onClick: (t) => ot(e.date)
697
- }, y(e.day), 11, Ie)], 8, Fe))), 128))]))), 128))])], 8, Me)], 16, ke)) : l("", !0)]))], 64));
698
- }
699
- });
700
- //#endregion
701
- export { Le as t };