@adyen/bento-vue2 1.94.0 → 1.96.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 (270) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +373 -126
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/anchor-scroller.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/dashed-underline.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/date-time-picker.css +1 -0
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/draggable-handle.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/field-label.css +1 -1
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-group.css +1 -0
  24. package/dist/assets/form-layout-title.css +1 -1
  25. package/dist/assets/header-meta.css +1 -1
  26. package/dist/assets/input-field-password.css +1 -1
  27. package/dist/assets/input-field.css +1 -1
  28. package/dist/assets/inspector.css +1 -1
  29. package/dist/assets/link.css +1 -1
  30. package/dist/assets/modal-fullscreen.css +1 -1
  31. package/dist/assets/navigation-menu-group.css +1 -1
  32. package/dist/assets/secondary-nav.css +1 -1
  33. package/dist/assets/sidepanel.css +1 -1
  34. package/dist/button.js +3 -3
  35. package/dist/card.js +1 -1
  36. package/dist/checkbox.js +2 -2
  37. package/dist/chunks/{action-bar.ZR2oO4Qc.js → action-bar.Chu-0oVy.js} +5 -5
  38. package/dist/chunks/{action-bar.ZR2oO4Qc.js.map → action-bar.Chu-0oVy.js.map} +1 -1
  39. package/dist/chunks/{ai-button.7L9bANlk.js → ai-button.DvOq4s2_.js} +2 -2
  40. package/dist/chunks/{ai-button.7L9bANlk.js.map → ai-button.DvOq4s2_.js.map} +1 -1
  41. package/dist/chunks/{ai-tag.CzloguAR.js → ai-tag.DVmvni7U.js} +2 -2
  42. package/dist/chunks/{ai-tag.CzloguAR.js.map → ai-tag.DVmvni7U.js.map} +1 -1
  43. package/dist/chunks/{alert.CLqcPN0Q.js → alert.B4bHCE8V.js} +2 -2
  44. package/dist/chunks/{alert.CLqcPN0Q.js.map → alert.B4bHCE8V.js.map} +1 -1
  45. package/dist/chunks/{anchor-scroller.8LdkI0J0.js → anchor-scroller.B8VXotik.js} +4 -4
  46. package/dist/chunks/{anchor-scroller.8LdkI0J0.js.map → anchor-scroller.B8VXotik.js.map} +1 -1
  47. package/dist/chunks/{base-modal.YbZ5vHH4.js → base-modal.CC7gm9fc.js} +7 -7
  48. package/dist/chunks/{base-modal.YbZ5vHH4.js.map → base-modal.CC7gm9fc.js.map} +1 -1
  49. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js → button-actions-with-menu.BlOBDvdL.js} +3 -3
  50. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js.map → button-actions-with-menu.BlOBDvdL.js.map} +1 -1
  51. package/dist/chunks/{button-actions.CyMKvVwN.js → button-actions.D1jRC1fs.js} +3 -3
  52. package/dist/chunks/{button-actions.CyMKvVwN.js.map → button-actions.D1jRC1fs.js.map} +1 -1
  53. package/dist/chunks/{button.C9b2AC9w.js → button.DITA6YtS.js} +2 -2
  54. package/dist/chunks/{button.C9b2AC9w.js.map → button.DITA6YtS.js.map} +1 -1
  55. package/dist/chunks/{calendar.CCUVI1IF.js → calendar.D0JIbmoS.js} +327 -321
  56. package/dist/chunks/calendar.D0JIbmoS.js.map +1 -0
  57. package/dist/chunks/{card.DqKD40s7.js → card.ErZLKN0q.js} +2 -2
  58. package/dist/chunks/{card.DqKD40s7.js.map → card.ErZLKN0q.js.map} +1 -1
  59. package/dist/chunks/{checkbox-group.0tRtGhHh.js → checkbox-group.BAjvgXlc.js} +3 -3
  60. package/dist/chunks/{checkbox-group.0tRtGhHh.js.map → checkbox-group.BAjvgXlc.js.map} +1 -1
  61. package/dist/chunks/{checkbox.D-5Uyu7y.js → checkbox.BAQDBNL6.js} +2 -2
  62. package/dist/chunks/{checkbox.D-5Uyu7y.js.map → checkbox.BAQDBNL6.js.map} +1 -1
  63. package/dist/chunks/{code-snippet.CmUPzpQp.js → code-snippet.lcQRsLdZ.js} +5 -5
  64. package/dist/chunks/{code-snippet.CmUPzpQp.js.map → code-snippet.lcQRsLdZ.js.map} +1 -1
  65. package/dist/chunks/{controls-group.CcI4EbW_.js → controls-group.Bzpsrtcx.js} +2 -2
  66. package/dist/chunks/{controls-group.CcI4EbW_.js.map → controls-group.Bzpsrtcx.js.map} +1 -1
  67. package/dist/chunks/{copy.BA1G-Pi2.js → copy.DVB6pQC8.js} +4 -4
  68. package/dist/chunks/{copy.BA1G-Pi2.js.map → copy.DVB6pQC8.js.map} +1 -1
  69. package/dist/chunks/{dashboard-section.BOySJG3P.js → dashboard-section.DiGQXS9L.js} +4 -4
  70. package/dist/chunks/{dashboard-section.BOySJG3P.js.map → dashboard-section.DiGQXS9L.js.map} +1 -1
  71. package/dist/chunks/dashed-underline.Cl07OQID.js +55 -0
  72. package/dist/chunks/dashed-underline.Cl07OQID.js.map +1 -0
  73. package/dist/chunks/{data-grid-template.C6Sym5we.js → data-grid-template.BVppx9kZ.js} +4 -4
  74. package/dist/chunks/{data-grid-template.C6Sym5we.js.map → data-grid-template.BVppx9kZ.js.map} +1 -1
  75. package/dist/chunks/{data-grid.By3YYFjp.js → data-grid.Djy7XjVS.js} +216 -216
  76. package/dist/chunks/{data-grid.By3YYFjp.js.map → data-grid.Djy7XjVS.js.map} +1 -1
  77. package/dist/chunks/{date-picker.B5dusL9n.js → date-picker.BWxvyK5J.js} +96 -88
  78. package/dist/chunks/date-picker.BWxvyK5J.js.map +1 -0
  79. package/dist/chunks/{date-range-picker.C_9uZ3up.js → date-range-picker.gfRJmzXn.js} +255 -274
  80. package/dist/chunks/date-range-picker.gfRJmzXn.js.map +1 -0
  81. package/dist/chunks/date-time-picker.BIl9kFLh.js +129 -0
  82. package/dist/chunks/date-time-picker.BIl9kFLh.js.map +1 -0
  83. package/dist/chunks/{dialog-page.B65F56Ha.js → dialog-page.DYWnKdnP.js} +3 -3
  84. package/dist/chunks/{dialog-page.B65F56Ha.js.map → dialog-page.DYWnKdnP.js.map} +1 -1
  85. package/dist/chunks/directive.BBWhsNtO.js +28 -0
  86. package/dist/chunks/directive.BBWhsNtO.js.map +1 -0
  87. package/dist/chunks/{draggable-handle.BFGaZNTT.js → draggable-handle.DIhHtHG9.js} +531 -500
  88. package/dist/chunks/{draggable-handle.BFGaZNTT.js.map → draggable-handle.DIhHtHG9.js.map} +1 -1
  89. package/dist/chunks/{drawer.DqUvBlma.js → drawer.WW7G9cSC.js} +46 -19
  90. package/dist/chunks/{drawer.DqUvBlma.js.map → drawer.WW7G9cSC.js.map} +1 -1
  91. package/dist/chunks/{dropdown-tag.CY0-p_gn.js → dropdown-tag.CuDxdSfb.js} +3 -3
  92. package/dist/chunks/{dropdown-tag.CY0-p_gn.js.map → dropdown-tag.CuDxdSfb.js.map} +1 -1
  93. package/dist/chunks/{dropdown.Dx0HybJ8.js → dropdown.C70AlvOT.js} +375 -368
  94. package/dist/chunks/dropdown.C70AlvOT.js.map +1 -0
  95. package/dist/chunks/{empty-state.DMV23IZy.js → empty-state.Dttc-ZO_.js} +2 -2
  96. package/dist/chunks/{empty-state.DMV23IZy.js.map → empty-state.Dttc-ZO_.js.map} +1 -1
  97. package/dist/chunks/{field-label.Cq01oVR-.js → field-label.CdVbAfK-.js} +2 -2
  98. package/dist/chunks/{field-label.Cq01oVR-.js.map → field-label.CdVbAfK-.js.map} +1 -1
  99. package/dist/chunks/{file-uploader.BdvtbVvC.js → file-uploader.CO2MeHwl.js} +8 -8
  100. package/dist/chunks/{file-uploader.BdvtbVvC.js.map → file-uploader.CO2MeHwl.js.map} +1 -1
  101. package/dist/chunks/{filter-bar.mPy_N4BF.js → filter-bar.C6ZBgizQ.js} +25 -25
  102. package/dist/chunks/{filter-bar.mPy_N4BF.js.map → filter-bar.C6ZBgizQ.js.map} +1 -1
  103. package/dist/chunks/{fixed-scroller.DR2E_No4.js → fixed-scroller.4xAzt_OI.js} +2 -2
  104. package/dist/chunks/{fixed-scroller.DR2E_No4.js.map → fixed-scroller.4xAzt_OI.js.map} +1 -1
  105. package/dist/chunks/{focus-trap.CKs45fnj.js → focus-trap.CBIb3SyN.js} +22 -22
  106. package/dist/chunks/{focus-trap.CKs45fnj.js.map → focus-trap.CBIb3SyN.js.map} +1 -1
  107. package/dist/chunks/{footer-actions.BE_hrleY.js → footer-actions.CZE9dcmA.js} +3 -3
  108. package/dist/chunks/{footer-actions.BE_hrleY.js.map → footer-actions.CZE9dcmA.js.map} +1 -1
  109. package/dist/chunks/form-layout-group.zE6TNlzD.js +84 -0
  110. package/dist/chunks/form-layout-group.zE6TNlzD.js.map +1 -0
  111. package/dist/chunks/form-layout-title.CXXdsiK5.js +171 -0
  112. package/dist/chunks/form-layout-title.CXXdsiK5.js.map +1 -0
  113. package/dist/chunks/header-meta.6rZdOgXD.js +239 -0
  114. package/dist/chunks/{header-meta._l0IV3jf.js.map → header-meta.6rZdOgXD.js.map} +1 -1
  115. package/dist/chunks/{header-with-views.LrySsX1p.js → header-with-views.m0xMmoav.js} +11 -11
  116. package/dist/chunks/{header-with-views.LrySsX1p.js.map → header-with-views.m0xMmoav.js.map} +1 -1
  117. package/dist/chunks/{header.BJZ-o7Mz.js → header.BsroOD5b.js} +3 -3
  118. package/dist/chunks/{header.BJZ-o7Mz.js.map → header.BsroOD5b.js.map} +1 -1
  119. package/dist/chunks/{index.DZx81HG1.js → index.CJYgd0QI.js} +220 -197
  120. package/dist/chunks/{index.DZx81HG1.js.map → index.CJYgd0QI.js.map} +1 -1
  121. package/dist/chunks/{info-icon.CRpEtx-P.js → info-icon.9Nt7zg3D.js} +3 -3
  122. package/dist/chunks/{info-icon.CRpEtx-P.js.map → info-icon.9Nt7zg3D.js.map} +1 -1
  123. package/dist/chunks/{input-field-password.C2ogXvbh.js → input-field-password.CRqYWZGS.js} +48 -49
  124. package/dist/chunks/input-field-password.CRqYWZGS.js.map +1 -0
  125. package/dist/chunks/{input-field-phone-number.D8Enmcny.js → input-field-phone-number.DHiuL0cF.js} +13 -14
  126. package/dist/chunks/{input-field-phone-number.D8Enmcny.js.map → input-field-phone-number.DHiuL0cF.js.map} +1 -1
  127. package/dist/chunks/{input-field.CRsU2NBh.js → input-field.BkQZ6Qzl.js} +77 -74
  128. package/dist/chunks/input-field.BkQZ6Qzl.js.map +1 -0
  129. package/dist/chunks/{input-time.BSrSAN3r.js → input-time.BiOHvUEA.js} +7 -8
  130. package/dist/chunks/{input-time.BSrSAN3r.js.map → input-time.BiOHvUEA.js.map} +1 -1
  131. package/dist/chunks/{inspector.Dagz-JL1.js → inspector.BY3SoX-l.js} +4 -4
  132. package/dist/chunks/{inspector.Dagz-JL1.js.map → inspector.BY3SoX-l.js.map} +1 -1
  133. package/dist/chunks/{layout-row.CdpQeT7f.js → layout-row.BI9ZJa-9.js} +13 -13
  134. package/dist/chunks/{layout-row.CdpQeT7f.js.map → layout-row.BI9ZJa-9.js.map} +1 -1
  135. package/dist/chunks/{link.DB5g6d48.js → link.BpuCRgok.js} +11 -11
  136. package/dist/chunks/link.BpuCRgok.js.map +1 -0
  137. package/dist/chunks/{list-item.CQEmr9Yw.js → list-item.D2ZLiS_D.js} +2 -2
  138. package/dist/chunks/{list-item.CQEmr9Yw.js.map → list-item.D2ZLiS_D.js.map} +1 -1
  139. package/dist/chunks/{listbox-option-tag.CnxNmmva.js → listbox-option-tag.Ddyl2vuc.js} +2 -2
  140. package/dist/chunks/{listbox-option-tag.CnxNmmva.js.map → listbox-option-tag.Ddyl2vuc.js.map} +1 -1
  141. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js → modal-fullscreen.OS6KhVdg.js} +6 -6
  142. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js.map → modal-fullscreen.OS6KhVdg.js.map} +1 -1
  143. package/dist/chunks/{modal.Bm-nN8pa.js → modal.DHL3TGHv.js} +5 -5
  144. package/dist/chunks/{modal.Bm-nN8pa.js.map → modal.DHL3TGHv.js.map} +1 -1
  145. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js +261 -0
  146. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js.map +1 -0
  147. package/dist/chunks/{pagination.Jv60K59y.js → pagination.DItyAwy1.js} +3 -3
  148. package/dist/chunks/{pagination.Jv60K59y.js.map → pagination.DItyAwy1.js.map} +1 -1
  149. package/dist/chunks/popover.types.B9TXaqAt.js +6 -0
  150. package/dist/chunks/{popover.types.CQ5g4kw2.js.map → popover.types.B9TXaqAt.js.map} +1 -1
  151. package/dist/chunks/{popper-container.D10i5aF5.js → popper-container.CFYFCz6u.js} +2 -2
  152. package/dist/chunks/{popper-container.D10i5aF5.js.map → popper-container.CFYFCz6u.js.map} +1 -1
  153. package/dist/chunks/{promo-banner.DjRIdEh7.js → promo-banner.tljKS80K.js} +3 -3
  154. package/dist/chunks/{promo-banner.DjRIdEh7.js.map → promo-banner.tljKS80K.js.map} +1 -1
  155. package/dist/chunks/{radio-group.BrRXAuJ6.js → radio-group.cn4lZb8R.js} +3 -3
  156. package/dist/chunks/{radio-group.BrRXAuJ6.js.map → radio-group.cn4lZb8R.js.map} +1 -1
  157. package/dist/chunks/{rich-text-editor.DazA-Rlh.js → rich-text-editor.Dwq3Z_lK.js} +6 -6
  158. package/dist/chunks/{rich-text-editor.DazA-Rlh.js.map → rich-text-editor.Dwq3Z_lK.js.map} +1 -1
  159. package/dist/chunks/{search-bar.DeKlBnxE.js → search-bar.D-WK8eMQ.js} +10 -11
  160. package/dist/chunks/{search-bar.DeKlBnxE.js.map → search-bar.D-WK8eMQ.js.map} +1 -1
  161. package/dist/chunks/secondary-nav.C7lEDaoj.js +259 -0
  162. package/dist/chunks/{secondary-nav.BLF9iQOV.js.map → secondary-nav.C7lEDaoj.js.map} +1 -1
  163. package/dist/chunks/{segmented-control.BBG-0da6.js → segmented-control.C0JtDa4q.js} +2 -2
  164. package/dist/chunks/{segmented-control.BBG-0da6.js.map → segmented-control.C0JtDa4q.js.map} +1 -1
  165. package/dist/chunks/{selection-card-group.CXBbA_P1.js → selection-card-group.ZZ_qF1L1.js} +3 -3
  166. package/dist/chunks/{selection-card-group.CXBbA_P1.js.map → selection-card-group.ZZ_qF1L1.js.map} +1 -1
  167. package/dist/chunks/set-time-in-date.CU7HeZLY.js +27 -0
  168. package/dist/chunks/set-time-in-date.CU7HeZLY.js.map +1 -0
  169. package/dist/chunks/{sidepanel.ChPk9qYd.js → sidepanel.B8zQp_MJ.js} +7 -7
  170. package/dist/chunks/{sidepanel.ChPk9qYd.js.map → sidepanel.B8zQp_MJ.js.map} +1 -1
  171. package/dist/chunks/{structured-list-item.Dwftc8Ns.js → structured-list-item.DE0L0kvs.js} +5 -5
  172. package/dist/chunks/{structured-list-item.Dwftc8Ns.js.map → structured-list-item.DE0L0kvs.js.map} +1 -1
  173. package/dist/chunks/{summary-grid.types.Cv27iNrx.js → summary-grid.types.CkqRXOKv.js} +5 -5
  174. package/dist/chunks/{summary-grid.types.Cv27iNrx.js.map → summary-grid.types.CkqRXOKv.js.map} +1 -1
  175. package/dist/chunks/tab.QEKU5Udp.js +256 -0
  176. package/dist/chunks/{tab.t1v1GxSA.js.map → tab.QEKU5Udp.js.map} +1 -1
  177. package/dist/chunks/{tag.lfN7xFuw.js → tag.CbNFG45Y.js} +2 -2
  178. package/dist/chunks/{tag.lfN7xFuw.js.map → tag.CbNFG45Y.js.map} +1 -1
  179. package/dist/chunks/{textarea.DSRAB-Ox.js → textarea.DJ7095b6.js} +3 -3
  180. package/dist/chunks/{textarea.DSRAB-Ox.js.map → textarea.DJ7095b6.js.map} +1 -1
  181. package/dist/chunks/{timeline-item.gWNnZjsZ.js → timeline-item.sdxvTjmS.js} +8 -8
  182. package/dist/chunks/{timeline-item.gWNnZjsZ.js.map → timeline-item.sdxvTjmS.js.map} +1 -1
  183. package/dist/chunks/{toast.d8vg71CB.js → toast.BMGR5QrI.js} +2 -2
  184. package/dist/chunks/{toast.d8vg71CB.js.map → toast.BMGR5QrI.js.map} +1 -1
  185. package/dist/chunks/{tooltip.DmFTmAGi.js → tooltip.CnkqMpOA.js} +3 -3
  186. package/dist/chunks/{tooltip.DmFTmAGi.js.map → tooltip.CnkqMpOA.js.map} +1 -1
  187. package/dist/chunks/{tutorial.CO7DzdET.js → tutorial.Ba9dqb2j.js} +4 -4
  188. package/dist/chunks/{tutorial.CO7DzdET.js.map → tutorial.Ba9dqb2j.js.map} +1 -1
  189. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js +30 -0
  190. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js.map +1 -0
  191. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js → use-cached-selected-values.D0s14AxT.js} +4 -4
  192. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js.map → use-cached-selected-values.D0s14AxT.js.map} +1 -1
  193. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js → use-date-input-formatter.B5GQd3s2.js} +2 -2
  194. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js.map → use-date-input-formatter.B5GQd3s2.js.map} +1 -1
  195. package/dist/code-snippet.js +1 -1
  196. package/dist/dashboard-template.js +1 -1
  197. package/dist/dashed-underline.js +1 -1
  198. package/dist/data-grid-template.js +1 -1
  199. package/dist/data-grid.js +1 -1
  200. package/dist/date-picker.js +2 -2
  201. package/dist/date-range-picker.js +2 -2
  202. package/dist/date-time-picker.js +5 -0
  203. package/dist/date-time-picker.js.map +1 -0
  204. package/dist/draggable.js +1 -1
  205. package/dist/drawer.js +1 -1
  206. package/dist/dropdown.js +3 -3
  207. package/dist/empty-state.js +1 -1
  208. package/dist/file-uploader.js +1 -1
  209. package/dist/filter-bar.js +1 -1
  210. package/dist/focus-trap.js +1 -1
  211. package/dist/form-layout.js +5 -4
  212. package/dist/form-layout.js.map +1 -1
  213. package/dist/header-with-views.js +1 -1
  214. package/dist/header.js +1 -1
  215. package/dist/index.js +273 -268
  216. package/dist/index.js.map +1 -1
  217. package/dist/info-icon.js +1 -1
  218. package/dist/input-field-password.js +1 -1
  219. package/dist/input-field-phone-number.js +1 -1
  220. package/dist/input-field.js +1 -1
  221. package/dist/input-time.js +1 -1
  222. package/dist/inspector.js +1 -1
  223. package/dist/internal.js +12 -12
  224. package/dist/layout.js +1 -1
  225. package/dist/link.js +1 -1
  226. package/dist/list.js +1 -1
  227. package/dist/menu.js +1 -1
  228. package/dist/modal-fullscreen.js +1 -1
  229. package/dist/modal.js +2 -2
  230. package/dist/navigation-menu.js +1 -1
  231. package/dist/pagination.js +1 -1
  232. package/dist/popover.js +2 -2
  233. package/dist/popper-container.js +1 -1
  234. package/dist/promo-banner.js +1 -1
  235. package/dist/radio-group.js +1 -1
  236. package/dist/rich-text-editor.js +1 -1
  237. package/dist/search-bar.js +2 -2
  238. package/dist/secondary-nav.js +1 -1
  239. package/dist/segmented-control.js +1 -1
  240. package/dist/selection-card.js +1 -1
  241. package/dist/sidepanel.js +1 -1
  242. package/dist/structured-list.js +1 -1
  243. package/dist/summary-grid.js +1 -1
  244. package/dist/tabs.js +1 -1
  245. package/dist/tag.js +1 -1
  246. package/dist/textarea.js +1 -1
  247. package/dist/timeline.js +1 -1
  248. package/dist/toast.js +1 -1
  249. package/dist/tutorial.js +1 -1
  250. package/dist/web-types.json +170 -3
  251. package/package.json +7 -7
  252. package/dist/chunks/calendar.CCUVI1IF.js.map +0 -1
  253. package/dist/chunks/dashed-underline.B9Q0T4ss.js +0 -77
  254. package/dist/chunks/dashed-underline.B9Q0T4ss.js.map +0 -1
  255. package/dist/chunks/date-picker.B5dusL9n.js.map +0 -1
  256. package/dist/chunks/date-range-picker.C_9uZ3up.js.map +0 -1
  257. package/dist/chunks/directive.Bfr4fuOy.js +0 -23
  258. package/dist/chunks/directive.Bfr4fuOy.js.map +0 -1
  259. package/dist/chunks/dropdown.Dx0HybJ8.js.map +0 -1
  260. package/dist/chunks/form-layout-title.zZVLCyqe.js +0 -248
  261. package/dist/chunks/form-layout-title.zZVLCyqe.js.map +0 -1
  262. package/dist/chunks/header-meta._l0IV3jf.js +0 -248
  263. package/dist/chunks/input-field-password.C2ogXvbh.js.map +0 -1
  264. package/dist/chunks/input-field.CRsU2NBh.js.map +0 -1
  265. package/dist/chunks/link.DB5g6d48.js.map +0 -1
  266. package/dist/chunks/navigation-menu-group.DHWp-pJO.js +0 -216
  267. package/dist/chunks/navigation-menu-group.DHWp-pJO.js.map +0 -1
  268. package/dist/chunks/popover.types.CQ5g4kw2.js +0 -6
  269. package/dist/chunks/secondary-nav.BLF9iQOV.js +0 -223
  270. package/dist/chunks/tab.t1v1GxSA.js +0 -229
@@ -1,110 +1,95 @@
1
- import { reactive as ge, defineComponent as Ue, useSlots as va, ref as O, computed as p, onMounted as Je, toRaw as Ye, watch as ve, useAttrs as ga, toRef as he } from "vue";
2
- import { a as ya } from "./index.DZx81HG1.js";
1
+ import { reactive as ve, defineComponent as Ue, useSlots as va, ref as O, computed as p, onMounted as Je, toRaw as Ye, watch as fe, useAttrs as ga, toRef as he } from "vue";
2
+ import { b as ya } from "./index.CJYgd0QI.js";
3
3
  import { B as Ma } from "./divider.DX5gwN7p.js";
4
- import { h as ha, B as Ta } from "./button-actions.CyMKvVwN.js";
5
- import { B as $e, d as Oe } from "./typography.C8lPlsbD.js";
6
- import { B as Ra } from "./alert.CLqcPN0Q.js";
7
- import { B as Ya } from "./input-field.CRsU2NBh.js";
8
- import { B as Aa, i as Ce } from "./input-time.BSrSAN3r.js";
9
- import { B as ba, D as ka } from "./dropdown.Dx0HybJ8.js";
10
- import { B as Ia } from "./segmented-control.BBG-0da6.js";
4
+ import { h as ha, B as Ta } from "./button-actions.D1jRC1fs.js";
5
+ import { B as $e, d as we } from "./typography.C8lPlsbD.js";
6
+ import { B as Ra } from "./alert.B4bHCE8V.js";
7
+ import { B as Ya } from "./input-field.BkQZ6Qzl.js";
8
+ import { B as Aa, i as Oe } from "./input-time.BiOHvUEA.js";
9
+ import { B as ba, D as ka } from "./dropdown.C70AlvOT.js";
10
+ import { B as Ia } from "./segmented-control.C0JtDa4q.js";
11
11
  import { u as Ae } from "./index.B6WW_F-J.js";
12
- import { d as Be } from "./use-cached-selected-values.Bnmcr7Ji.js";
12
+ import { d as Ce } from "./use-cached-selected-values.D0s14AxT.js";
13
13
  import { u as _a } from "./use-has-slot.C9lQZ6nz.js";
14
- import { u as be, a as Sa } from "./use-date-input-formatter.BsZ_LLQu.js";
14
+ import { u as be, a as Sa } from "./use-date-input-formatter.B5GQd3s2.js";
15
15
  import { u as xa } from "./use-touch-device.DTqFAbXh.js";
16
- import { h as re, i as F, j as Y, k as Fa, l as qe, m as Ea, s as Pe, n as wa, o as Oa, q as Ca, r as Ne, t as Ba, b as N, u as qa, e as Pa, f as Na, v as S, p as ze, w as Qe, g as za } from "./calendar.CCUVI1IF.js";
17
- import { e as C, a as We } from "./differenceInMonths.CpwVtHZX.js";
18
- import { s as je } from "./startOfWeek.Br5KM4z_.js";
19
- import { t as j, n as Qa, c as Wa } from "./en-US.BK5uiAND.js";
16
+ import { j as re, k as F, s as R, l as Fa, m as Be, n as Ea, f as qe, o as wa, q as Oa, r as Ca, t as Pe, u as Ba, b as N, v as qa, h as Pa, i as Na, e as _, w as Ne, x as ze, g as za } from "./calendar.D0JIbmoS.js";
17
+ import { e as C, a as Qe } from "./differenceInMonths.CpwVtHZX.js";
18
+ import { s as We } from "./startOfWeek.Br5KM4z_.js";
19
+ import { t as ge, n as Qa, c as Wa } from "./en-US.BK5uiAND.js";
20
20
  import { c as ja } from "./constructNow.CK0ryPil.js";
21
+ import { a as je, s as Le } from "./set-time-in-date.CU7HeZLY.js";
21
22
  import { n as He } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
22
23
  import { g as ne } from "./generate-uid.NJ8tVoha.js";
23
24
  import { u as La } from "./use-form-layout-loading.CWbjZiwP.js";
24
25
  import "./index.Cl4_42j5.js";
25
26
  import { u as Ga } from "./form-field.D_2g7vaP.js";
26
- import { B as Va } from "./directive.Bfr4fuOy.js";
27
- import { F as Ua } from "./field-label.Cq01oVR-.js";
27
+ import { B as Va } from "./directive.BBWhsNtO.js";
28
+ import { F as Ua } from "./field-label.CdVbAfK-.js";
28
29
  import { E as Ja } from "./error-message.CyERcfdt.js";
29
30
  import { B as $a } from "./button-actions.types.BptAXjD8.js";
30
31
  import "../assets/date-range-picker.css";
31
- function Le(s, t) {
32
- return j(s, t == null ? void 0 : t.in).getFullYear();
32
+ function Ge(o, t) {
33
+ return ge(o, t == null ? void 0 : t.in).getFullYear();
33
34
  }
34
- function Te(s, t) {
35
- return +j(s) == +j(t);
35
+ function Te(o, t) {
36
+ return +ge(o) == +ge(t);
36
37
  }
37
- function Ha(s, t, e) {
38
+ function Ha(o, t, e) {
38
39
  const [a, i] = Qa(
39
40
  e == null ? void 0 : e.in,
40
- s,
41
+ o,
41
42
  t
42
43
  );
43
44
  return +re(a) == +re(i);
44
45
  }
45
- function Ge(s, t) {
46
- const e = j(s, t == null ? void 0 : t.in);
46
+ function Ve(o, t) {
47
+ const e = ge(o, t == null ? void 0 : t.in);
47
48
  return e.setMilliseconds(0), e;
48
49
  }
49
- function Re(s, t) {
50
- return +Ge(s) == +Ge(t);
50
+ function Re(o, t) {
51
+ return +Ve(o) == +Ve(t);
51
52
  }
52
- function Ka(s, t) {
53
+ function Ka(o, t) {
53
54
  return F(
54
- Wa(s, s),
55
- ja(s)
55
+ Wa(o, o),
56
+ ja(o)
56
57
  );
57
58
  }
58
- function Xa(s, t, e) {
59
- const a = j(s, e == null ? void 0 : e.in);
60
- return a.setHours(t), a;
61
- }
62
- function Ve(s, t, e) {
63
- const a = j(s, e == null ? void 0 : e.in);
64
- return a.setMilliseconds(t), a;
65
- }
66
- function Za(s, t, e) {
67
- const a = j(s, e == null ? void 0 : e.in);
68
- return a.setMinutes(t), a;
69
- }
70
- function et(s, t, e) {
71
- const a = j(s, e == null ? void 0 : e.in);
72
- return a.setSeconds(t), a;
73
- }
74
- const at = ({
75
- firstDayOfWeek: s,
59
+ const Xa = ({
60
+ firstDayOfWeek: o,
76
61
  min: t,
77
62
  max: e
78
63
  }) => ({ getGranularCalendarLimits: (i) => {
79
64
  if (!t && !e)
80
65
  return { min: null, max: null };
81
- let m = t ? Y(t) : null, f = e ? C(e) : null;
66
+ let m = t ? R(t) : null, f = e ? C(e) : null;
82
67
  if ((i == null ? void 0 : i.type) === "weekly") {
83
68
  if (i.earliest)
84
- m = Y(i.earliest);
69
+ m = R(i.earliest);
85
70
  else if (m) {
86
- const M = je(m, { weekStartsOn: s });
87
- F(m, M) || (m = Y(Fa(qe(m, { weekStartsOn: s }), 1)));
71
+ const M = We(m, { weekStartsOn: o });
72
+ F(m, M) || (m = R(Fa(Be(m, { weekStartsOn: o }), 1)));
88
73
  }
89
74
  if (i.latest)
90
75
  f = C(i.latest);
91
76
  else if (f) {
92
- const M = qe(f, { weekStartsOn: s });
93
- F(f, M) || (f = C(Ea(je(f, { weekStartsOn: s }), 1)));
77
+ const M = Be(f, { weekStartsOn: o });
78
+ F(f, M) || (f = C(Ea(We(f, { weekStartsOn: o }), 1)));
94
79
  }
95
80
  }
96
81
  if ((i == null ? void 0 : i.type) === "monthly") {
97
82
  if (i.earliest)
98
- m = Y(i.earliest);
83
+ m = R(i.earliest);
99
84
  else if (m) {
100
- const M = Pe(m);
101
- F(m, M) || (m = Pe(wa(m, 1)));
85
+ const M = qe(m);
86
+ F(m, M) || (m = qe(wa(m, 1)));
102
87
  }
103
88
  if (i.latest)
104
89
  f = C(i.latest);
105
90
  else if (f) {
106
- const M = We(f);
107
- F(f, M) || (f = We(Oa(f, 1)));
91
+ const M = Qe(f);
92
+ F(f, M) || (f = Qe(Oa(f, 1)));
108
93
  }
109
94
  }
110
95
  if ((i == null ? void 0 : i.type) === "quarterly") {
@@ -117,33 +102,33 @@ const at = ({
117
102
  if (i.latest)
118
103
  f = C(i.latest);
119
104
  else if (f) {
120
- const M = Ne(f);
121
- F(f, M) || (f = Ne(Ba(f, 1)));
105
+ const M = Pe(f);
106
+ F(f, M) || (f = Pe(Ba(f, 1)));
122
107
  }
123
108
  }
124
109
  return { min: m, max: f };
125
- } }), tt = () => {
126
- const s = ge({
110
+ } }), Za = () => {
111
+ const o = ve({
127
112
  daily: null,
128
113
  weekly: null,
129
114
  monthly: null,
130
115
  quarterly: null
131
116
  });
132
117
  return {
133
- savedRanges: s,
118
+ savedRanges: o,
134
119
  saveRange: (a, i) => {
135
- s[a] = i;
120
+ o[a] = i;
136
121
  },
137
122
  resetSavedRanges: () => {
138
- s.daily = null, s.weekly = null, s.monthly = null, s.quarterly = null;
123
+ o.daily = null, o.weekly = null, o.monthly = null, o.quarterly = null;
139
124
  }
140
125
  };
141
126
  };
142
- var v = /* @__PURE__ */ ((s) => (s.CUSTOM_RANGE = "custom-range", s.INPUT = "input", s.ERROR = "error", s.FORM_DATE = "form-date", s.START_DATE_SELECTED = "start-date-selected", s))(v || {});
143
- const nt = {
127
+ var v = /* @__PURE__ */ ((o) => (o.CUSTOM_RANGE = "custom-range", o.INPUT = "input", o.ERROR = "error", o.FORM_DATE = "form-date", o.START_DATE_SELECTED = "start-date-selected", o))(v || {});
128
+ const et = {
144
129
  "de-DE": {
145
130
  "DD-MM-YYYY": "TT-MM-JJJJ",
146
- "MM-DD-YYYY": "JJJJ-MM-TT",
131
+ "MM-DD-YYYY": "MM-TT-JJJJ",
147
132
  "YYYY-MM-DD": "JJJJ-MM-TT",
148
133
  customRange: "Benutzerdefinierter Bereich",
149
134
  daily: "Täglich",
@@ -332,7 +317,7 @@ const nt = {
332
317
  },
333
318
  "zh-CN": {
334
319
  "DD-MM-YYYY": "日-月-年",
335
- "MM-DD-YYYY": "YYYY-MM-DD",
320
+ "MM-DD-YYYY": "月-日-年",
336
321
  "YYYY-MM-DD": "年-月-日",
337
322
  customRange: "自定义范围",
338
323
  daily: "每日",
@@ -351,11 +336,11 @@ const nt = {
351
336
  timeTo: "是时候",
352
337
  weekly: "每周"
353
338
  }
354
- }, rt = {
339
+ }, at = {
355
340
  name: "date-range-picker-calendar",
356
- i18n: { messages: nt }
357
- }, st = /* @__PURE__ */ Ue({
358
- ...rt,
341
+ i18n: { messages: et }
342
+ }, tt = /* @__PURE__ */ Ue({
343
+ ...at,
359
344
  props: {
360
345
  /**
361
346
  * Allows user to enter time values in the form
@@ -402,7 +387,7 @@ const nt = {
402
387
  numberOfMonths: {
403
388
  type: N.props.numberOfMonths.type,
404
389
  default: N.props.numberOfMonths.default,
405
- validator: (s) => s >= 0
390
+ validator: (o) => o >= 0
406
391
  },
407
392
  /**
408
393
  * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
@@ -435,9 +420,9 @@ const nt = {
435
420
  v.FORM_DATE,
436
421
  v.START_DATE_SELECTED
437
422
  ],
438
- setup(s, { emit: t }) {
439
- var xe, Fe, Ee, we;
440
- const e = s, a = 300, i = "customRange", m = {
423
+ setup(o, { emit: t }) {
424
+ var Se, xe, Fe, Ee;
425
+ const e = o, a = 300, i = "customRange", m = {
441
426
  daily: "maxRangeDays",
442
427
  weekly: "maxRangeWeeks",
443
428
  monthly: "maxRangeMonths",
@@ -446,29 +431,29 @@ const nt = {
446
431
  dateFormat: se,
447
432
  isFormatValid: X,
448
433
  parseDate: D,
449
- onKeyDown: L,
434
+ onKeyDown: j,
450
435
  autoFormat: b,
451
436
  formatDate: E
452
- } = be(), g = O({}), G = p(() => e.variant === "month" ? "monthly" : "daily"), x = p(() => e.numberOfMonths === 0), r = ge({
453
- startDate: (xe = e.value) == null ? void 0 : xe.startDate,
454
- endDate: (Fe = e.value) == null ? void 0 : Fe.endDate,
455
- range: (Ee = e.value) == null ? void 0 : Ee.range,
437
+ } = be(), g = O({}), L = p(() => e.variant === "month" ? "monthly" : "daily"), S = p(() => e.numberOfMonths === 0), r = ve({
438
+ startDate: (Se = e.value) == null ? void 0 : Se.startDate,
439
+ endDate: (xe = e.value) == null ? void 0 : xe.endDate,
440
+ range: (Fe = e.value) == null ? void 0 : Fe.range,
456
441
  ...e.granularities ? {
457
- granularity: ((we = e.value) == null ? void 0 : we.granularity) || G.value
442
+ granularity: ((Ee = e.value) == null ? void 0 : Ee.granularity) || L.value
458
443
  } : {}
459
444
  }), k = p(() => {
460
445
  var n, l;
461
446
  return (
462
447
  // eslint-disable-next-line consistent-return
463
- ((l = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: u, data: d }) => {
464
- var R;
448
+ ((l = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: c, data: d }) => {
449
+ var A;
465
450
  if (!d.endDate) {
466
451
  if (d.isRelativeToNow) {
467
- const I = (R = g.value) == null ? void 0 : R[u];
468
- return I ? Te(I.startDate, r.startDate) && Te(I.endDate, r.endDate) : (
452
+ const x = (A = g.value) == null ? void 0 : A[c];
453
+ return x ? Te(x.startDate, r.startDate) && Te(x.endDate, r.endDate) : (
469
454
  // If not stored calculated dates, fall back to comparing the quick select item's value
470
455
  // with the internal range's stored range identifier.
471
- u === r.range
456
+ c === r.range
472
457
  );
473
458
  }
474
459
  return Te(d.startDate, r.startDate) && Ka(r.endDate) && (!e.allowTimeInput || Re(r.endDate, C(r.endDate))) && (e.granularities ? d.granularity === r.granularity : !0);
@@ -484,7 +469,7 @@ const nt = {
484
469
  })), le = p(() => [
485
470
  { label: B("customRange"), value: i },
486
471
  ...e.quickSelectRanges ? e.quickSelectRanges : []
487
- ]), V = p(
472
+ ]), G = p(
488
473
  () => {
489
474
  var n;
490
475
  return ((n = e.granularities) == null ? void 0 : n.find(({ type: l }) => l === r.granularity)) || null;
@@ -492,14 +477,14 @@ const nt = {
492
477
  ), ie = p(
493
478
  () => {
494
479
  var n;
495
- return ((n = e.granularities) == null ? void 0 : n.map(({ type: l, disabled: u }) => ({
480
+ return ((n = e.granularities) == null ? void 0 : n.map(({ type: l, disabled: c }) => ({
496
481
  label: B(l),
497
482
  value: l,
498
- disabled: u
483
+ disabled: c
499
484
  }))) ?? [];
500
485
  }
501
- ), { getGranularCalendarLimits: Z } = at(e), h = p(
502
- () => e.granularities ? Z(V.value) : { min: e.min ? Y(e.min) : null, max: e.max ? C(e.max) : null }
486
+ ), { getGranularCalendarLimits: Z } = Xa(e), h = p(
487
+ () => e.granularities ? Z(G.value) : { min: e.min ? R(e.min) : null, max: e.max ? C(e.max) : null }
503
488
  ), {
504
489
  adjustDateForQuarterly: T,
505
490
  adjustDateForMonthly: ue,
@@ -510,48 +495,44 @@ const nt = {
510
495
  adjustEndDateInputForMonthly: $,
511
496
  adjustStartDateInputForQuarterly: w,
512
497
  adjustEndDateInputForQuarterly: Q
513
- } = qa(e.firstDayOfWeek), { savedRanges: q, saveRange: me, resetSavedRanges: ee } = tt(), A = (n) => n ? E(n) : "", H = O(!1), K = O(!1), o = ge({
498
+ } = qa(e.firstDayOfWeek), { savedRanges: q, saveRange: me, resetSavedRanges: ee } = Za(), Y = (n) => n ? E(n) : "", H = O(!1), K = O(!1), s = ve({
514
499
  startDate: e.dateFormData.startDate,
515
500
  endDate: e.dateFormData.endDate,
516
501
  startTime: e.dateFormData.startTime,
517
502
  endTime: e.dateFormData.endTime
518
503
  }), De = (n, l) => {
519
- let u = new Date(n);
520
- const [d, R, I] = l.split(":");
521
- return u = Xa(u, parseInt(d, 10)), u = Za(u, parseInt(R, 10)), u = et(u, parseInt(I, 10)), u;
522
- }, pe = (n, l) => {
523
- const u = () => {
504
+ const c = () => {
524
505
  if (l && P(l)) {
525
- const d = De(D(l), n);
526
- if (e.min && d < Ve(e.min, 0) || e.max && d > Ve(e.max, 0))
506
+ const d = je(D(l), n);
507
+ if (e.min && d < Le(e.min, 0) || e.max && d > Le(e.max, 0))
527
508
  return !1;
528
509
  }
529
510
  return !0;
530
511
  };
531
- return Ce(n) && u();
532
- }, c = p(() => e.variant === "month"), W = (n) => n ? c.value ? Pa(n) : Na(n) : "", ae = p(() => W(r.startDate)), ke = p(() => W(r.endDate)), Ke = p(() => y.value ? c.value ? "month" : "date" : "text"), Xe = p(() => y.value ? ae.value : o.startDate), Ze = p(() => y.value ? ke.value : o.endDate), _ = (n, l) => !l || !Ce(l) || e.variant === "month" ? n : De(new Date(n), l), ea = (n) => {
533
- o.startTime = S(
534
- e.min && e.allowTimeInput && F(e.min, n.startDate) ? e.min : Y(n.startDate)
535
- ), o.endTime = S(
512
+ return Oe(n) && c();
513
+ }, W = p(() => e.variant === "month"), u = (n) => n ? W.value ? Pa(n) : Na(n) : "", V = p(() => u(r.startDate)), ae = p(() => u(r.endDate)), Ke = p(() => y.value ? W.value ? "month" : "date" : "text"), Xe = p(() => y.value ? V.value : s.startDate), Ze = p(() => y.value ? ae.value : s.endDate), I = (n, l) => !l || !Oe(l) || e.variant === "month" ? n : je(new Date(n), l), ea = (n) => {
514
+ s.startTime = _(
515
+ e.min && e.allowTimeInput && F(e.min, n.startDate) ? e.min : R(n.startDate)
516
+ ), s.endTime = _(
536
517
  e.max && e.allowTimeInput && F(e.max, n.endDate) ? e.max : C(n.endDate)
537
- ), r.startDate = _(n.startDate, o.startTime), r.endDate = _(n.endDate, o.endTime), r.range = null, e.granularities && ee(), t(v.INPUT, {
518
+ ), r.startDate = I(n.startDate, s.startTime), r.endDate = I(n.endDate, s.endTime), r.range = null, e.granularities && ee(), t(v.INPUT, {
538
519
  ...r,
539
520
  range: k.value
540
521
  });
541
522
  }, P = (n) => {
542
523
  if (!n)
543
524
  return !1;
544
- const l = (u) => e.min && Y(u) < Y(e.min) || e.max && Y(u) > Y(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(Y(u)) : !0;
525
+ const l = (c) => e.min && R(c) < R(e.min) || e.max && R(c) > R(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(R(c)) : !0;
545
526
  return X(n) && l(D(n));
546
527
  };
547
528
  Je(() => {
548
529
  H.value = !!(e.dateFormData.startDate && !P(e.dateFormData.startDate)), K.value = !!(e.dateFormData.endDate && !P(e.dateFormData.endDate));
549
530
  });
550
531
  const aa = (n) => {
551
- o.startDate = A(n), o.startTime || (o.startTime = S(n)), H.value = !1, t(v.START_DATE_SELECTED, n);
532
+ s.startDate = Y(n), s.startTime || (s.startTime = _(n)), H.value = !1, t(v.START_DATE_SELECTED, n);
552
533
  }, ta = (n) => {
553
- o.endDate = A(n), o.endTime || (o.endTime = S(C(n))), K.value = !1;
554
- }, fe = (n) => {
534
+ s.endDate = Y(n), s.endTime || (s.endTime = _(C(n))), K.value = !1;
535
+ }, pe = (n) => {
555
536
  const l = e.value[n];
556
537
  if (l)
557
538
  return l;
@@ -560,184 +541,184 @@ const nt = {
560
541
  }, ye = (n) => {
561
542
  var l;
562
543
  if (P(n)) {
563
- let u = n;
564
- switch (H.value = !1, (l = V.value) == null ? void 0 : l.type) {
544
+ let c = n;
545
+ switch (H.value = !1, (l = G.value) == null ? void 0 : l.type) {
565
546
  case "weekly":
566
- u = U(
547
+ c = U(
567
548
  n,
568
- A,
549
+ Y,
569
550
  h.value.min,
570
551
  h.value.max
571
- ), o.startDate = u;
552
+ ), s.startDate = c;
572
553
  break;
573
554
  case "monthly":
574
- u = J(
555
+ c = J(
575
556
  n,
576
- A,
557
+ Y,
577
558
  h.value.min,
578
559
  h.value.max
579
- ), o.startDate = u;
560
+ ), s.startDate = c;
580
561
  break;
581
562
  case "quarterly":
582
- u = w(
563
+ c = w(
583
564
  n,
584
- A,
565
+ Y,
585
566
  h.value.min,
586
567
  h.value.max
587
- ), o.startDate = u;
568
+ ), s.startDate = c;
588
569
  break;
589
570
  }
590
- const d = Y(D(u));
591
- r.startDate = _(d, o.startTime), r.endDate = _(
592
- Y(D(o.endDate)),
593
- o.endTime
594
- ), P(o.endDate) && (r.endDate = _(
595
- Y(D(o.endDate)),
596
- o.endTime
571
+ const d = R(D(c));
572
+ r.startDate = I(d, s.startTime), r.endDate = I(
573
+ R(D(s.endDate)),
574
+ s.endTime
575
+ ), P(s.endDate) && (r.endDate = I(
576
+ R(D(s.endDate)),
577
+ s.endTime
597
578
  ));
598
- const R = fe("endDate");
579
+ const A = pe("endDate");
599
580
  r.range = null, t(v.FORM_DATE, {
600
581
  startDate: d,
601
- endDate: R
582
+ endDate: A
602
583
  }), t(v.INPUT, {
603
584
  ...r,
604
585
  range: k.value
605
586
  });
606
587
  } else
607
- H.value = !0, t(v.ERROR, { ...o });
608
- }, Ie = Be(ye, a), na = (n) => {
609
- if (o.startDate = y.value && c.value ? n : b(n), y.value)
610
- if (c.value && n) {
611
- const l = ze(n);
612
- r.startDate = _(l, o.startTime), r.range = null, t(v.INPUT, {
588
+ H.value = !0, t(v.ERROR, { ...s });
589
+ }, ke = Ce(ye, a), na = (n) => {
590
+ if (s.startDate = y.value && W.value ? n : b(n), y.value)
591
+ if (W.value && n) {
592
+ const l = Ne(n);
593
+ r.startDate = I(l, s.startTime), r.range = null, t(v.INPUT, {
613
594
  ...r,
614
595
  range: k.value
615
596
  });
616
597
  } else
617
- ye(o.startDate);
598
+ ye(s.startDate);
618
599
  else
619
- Ie(o.startDate);
600
+ ke(s.startDate);
620
601
  }, Me = (n) => {
621
602
  var l;
622
603
  if (P(n)) {
623
- let u = n;
624
- switch (K.value = !1, (l = V.value) == null ? void 0 : l.type) {
604
+ let c = n;
605
+ switch (K.value = !1, (l = G.value) == null ? void 0 : l.type) {
625
606
  case "weekly":
626
- u = de(
607
+ c = de(
627
608
  n,
628
- A,
609
+ Y,
629
610
  h.value.min,
630
611
  h.value.max
631
- ), o.endDate = u;
612
+ ), s.endDate = c;
632
613
  break;
633
614
  case "monthly":
634
- u = $(
615
+ c = $(
635
616
  n,
636
- A,
617
+ Y,
637
618
  h.value.min,
638
619
  h.value.max
639
- ), o.endDate = u;
620
+ ), s.endDate = c;
640
621
  break;
641
622
  case "quarterly":
642
- u = Q(
623
+ c = Q(
643
624
  n,
644
- A,
625
+ Y,
645
626
  h.value.min,
646
627
  h.value.max
647
- ), o.endDate = u;
628
+ ), s.endDate = c;
648
629
  break;
649
630
  }
650
- const d = Y(D(u));
651
- r.endDate = _(d, o.endTime), P(o.startDate) && (r.startDate = _(
652
- Y(D(o.startDate)),
653
- o.startTime
631
+ const d = R(D(c));
632
+ r.endDate = I(d, s.endTime), P(s.startDate) && (r.startDate = I(
633
+ R(D(s.startDate)),
634
+ s.startTime
654
635
  ));
655
- const R = fe("startDate");
636
+ const A = pe("startDate");
656
637
  r.range = null, t(v.FORM_DATE, {
657
- startDate: R,
638
+ startDate: A,
658
639
  endDate: d
659
640
  }), t(v.INPUT, {
660
641
  ...r,
661
642
  range: k.value
662
643
  });
663
644
  } else
664
- K.value = !0, t(v.ERROR, { ...o });
665
- }, _e = Be(Me, a), ra = (n) => {
666
- if (o.endDate = y.value && c.value ? n : b(n), y.value)
667
- if (c.value && n) {
668
- const l = ze(n);
669
- r.endDate = _(l, o.endTime), r.range = null, t(v.INPUT, {
645
+ K.value = !0, t(v.ERROR, { ...s });
646
+ }, Ie = Ce(Me, a), ra = (n) => {
647
+ if (s.endDate = y.value && W.value ? n : b(n), y.value)
648
+ if (W.value && n) {
649
+ const l = Ne(n);
650
+ r.endDate = I(l, s.endTime), r.range = null, t(v.INPUT, {
670
651
  ...r,
671
652
  range: k.value
672
653
  });
673
654
  } else
674
- Me(o.endDate);
655
+ Me(s.endDate);
675
656
  else
676
- _e(o.endDate);
657
+ Ie(s.endDate);
677
658
  }, sa = (n) => {
678
- L(n);
659
+ j(n);
679
660
  }, oa = () => {
680
- t(v.ERROR, { ...o });
661
+ t(v.ERROR, { ...s });
681
662
  }, la = () => {
682
- const n = o.startTime;
683
- if (!pe(n, o.startDate)) {
684
- t(v.ERROR, { ...o });
663
+ const n = s.startTime;
664
+ if (!De(n, s.startDate)) {
665
+ t(v.ERROR, { ...s });
685
666
  return;
686
667
  }
687
- r.startDate = _(r.startDate, n);
688
- const l = fe("endDate");
668
+ r.startDate = I(r.startDate, n);
669
+ const l = pe("endDate");
689
670
  t(v.FORM_DATE, {
690
671
  startDate: r.startDate,
691
672
  endDate: l,
692
673
  startTime: n,
693
- endTime: o.endTime ?? e.dateFormData.endTime
674
+ endTime: s.endTime ?? e.dateFormData.endTime
694
675
  }), t(v.INPUT, {
695
676
  ...r,
696
677
  range: k.value
697
678
  });
698
679
  }, ia = () => {
699
- t(v.ERROR, { ...o });
680
+ t(v.ERROR, { ...s });
700
681
  }, ua = () => {
701
- const n = o.endTime;
702
- if (!pe(n, o.endDate)) {
703
- t(v.ERROR, { ...o });
682
+ const n = s.endTime;
683
+ if (!De(n, s.endDate)) {
684
+ t(v.ERROR, { ...s });
704
685
  return;
705
686
  }
706
- r.endDate = _(r.endDate, n), t(v.FORM_DATE, {
687
+ r.endDate = I(r.endDate, n), t(v.FORM_DATE, {
707
688
  startDate: r.startDate,
708
689
  endDate: r.endDate,
709
- startTime: o.startTime ?? e.dateFormData.startTime,
690
+ startTime: s.startTime ?? e.dateFormData.startTime,
710
691
  endTime: n
711
692
  }), t(v.INPUT, {
712
693
  ...r,
713
694
  range: k.value
714
695
  });
715
696
  }, ca = (n) => {
716
- o.startTime = n;
697
+ s.startTime = n;
717
698
  }, da = (n) => {
718
- o.endTime = n;
719
- }, te = (n, l, u, d) => {
720
- r.startDate = n, r.endDate = l, u && (r.granularity = u), d && (r.range = d);
699
+ s.endTime = n;
700
+ }, te = (n, l, c, d) => {
701
+ r.startDate = n, r.endDate = l, c && (r.granularity = c), d && (r.range = d);
721
702
  }, ma = (n) => {
722
- var u;
723
- const l = (u = e.quickSelectRanges) == null ? void 0 : u.find(({ value: d }) => d === n);
703
+ var c;
704
+ const l = (c = e.quickSelectRanges) == null ? void 0 : c.find(({ value: d }) => d === n);
724
705
  if (l) {
725
706
  ee();
726
- const d = l.data, R = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : C(new Date(Date.now()))), I = d.isRelativeToNow && d.timeDifference ? new Date(R.getTime() - d.timeDifference) : d.startDate;
727
- o.endDate = A(R), o.startDate = A(I), te(I, R, null, n), e.granularities && (r.granularity = d.granularity || G.value), o.startTime = S(I), o.endTime = S(R), r.startDate = I, r.endDate = R, d.isRelativeToNow && (g.value = {
707
+ const d = l.data, A = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : C(new Date(Date.now()))), x = d.isRelativeToNow && d.timeDifference ? new Date(A.getTime() - d.timeDifference) : d.startDate;
708
+ s.endDate = Y(A), s.startDate = Y(x), te(x, A, null, n), e.granularities && (r.granularity = d.granularity || L.value), s.startTime = _(x), s.endTime = _(A), r.startDate = x, r.endDate = A, d.isRelativeToNow && (g.value = {
728
709
  ...g.value,
729
710
  [n]: {
730
- startDate: I,
731
- endDate: R
711
+ startDate: x,
712
+ endDate: A
732
713
  }
733
714
  }), t(v.CUSTOM_RANGE, {
734
715
  ...l.data,
735
- startDate: I,
736
- endDate: R,
716
+ startDate: x,
717
+ endDate: A,
737
718
  range: l.value
738
719
  });
739
720
  }
740
- }, Se = {
721
+ }, _e = {
741
722
  weekly: ce,
742
723
  monthly: ue,
743
724
  quarterly: T
@@ -752,37 +733,37 @@ const nt = {
752
733
  te(q[n].startDate, q[n].endDate, n);
753
734
  break;
754
735
  }
755
- const { startDate: u, endDate: d } = Se[n](
736
+ const { startDate: c, endDate: d } = _e[n](
756
737
  r.startDate,
757
738
  r.endDate,
758
739
  h.value.min,
759
740
  h.value.max
760
741
  );
761
- te(u, d, n);
742
+ te(c, d, n);
762
743
  break;
763
744
  }
764
745
  case "daily":
765
746
  q.daily && te(q.daily.startDate, q.daily.endDate, n);
766
747
  break;
767
748
  }
768
- o.startDate = A(r.startDate), o.endDate = A(r.endDate), t(v.INPUT, {
749
+ s.startDate = Y(r.startDate), s.endDate = Y(r.endDate), t(v.INPUT, {
769
750
  ...r,
770
751
  range: k.value
771
752
  });
772
753
  }
773
754
  }, pa = p(() => ({
774
- "b-date-range-picker-calendar__form-container--no-calendars": x.value
755
+ "b-date-range-picker-calendar__form-container--no-calendars": S.value
775
756
  })), fa = p(() => {
776
- const n = V.value, l = (n == null ? void 0 : n.maxRange) || e.maxRange;
757
+ const n = G.value, l = (n == null ? void 0 : n.maxRange) || e.maxRange;
777
758
  if (!l)
778
759
  return null;
779
- const u = m[(n == null ? void 0 : n.type) ?? "daily"];
780
- return z(u, l, { count: l });
760
+ const c = m[(n == null ? void 0 : n.type) ?? "daily"];
761
+ return z(c, l, { count: l });
781
762
  });
782
- return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: f, hasSlot: M, t: B, tc: z, isTouchDevice: y, dateFormat: se, isFormatValid: X, parseDate: D, onKeyDown: L, autoFormat: b, formatDateUtil: E, calculatedIsRelativeToNowQuickSelectRanges: g, defaultGranularity: G, hasNoCalendars: x, internalRangeDate: r, selectedRangeSelectorValue: k, formInputWrapperConditionalClasses: oe, quickSelectRangeDefaultItems: le, selectedGranularity: V, granularityItems: ie, getGranularCalendarLimits: Z, computedMinMax: h, adjustDateForQuarterly: T, adjustDateForMonthly: ue, adjustDateForWeekly: ce, adjustStartDateInputForWeekly: U, adjustEndDateInputForWeekly: de, adjustStartDateInputForMonthly: J, adjustEndDateInputForMonthly: $, adjustStartDateInputForQuarterly: w, adjustEndDateInputForQuarterly: Q, savedRanges: q, saveRange: me, resetSavedRanges: ee, formatDate: A, startDateError: H, endDateError: K, dateTextInput: o, setTimeInDateObject: De, isValidTime: pe, isMonthVariant: c, formatNativeDate: W, nativeStartDate: ae, nativeEndDate: ke, dateInputType: Ke, startDateValue: Xe, endDateValue: Ze, setTimeInDateRef: _, onDateInput: ea, isValidDate: P, onStartDateSelected: aa, onEndDateSelected: ta, getDate: fe, validateStartDate: ye, validateStartDateDebounced: Ie, onStartDateInput: na, validateEndDate: Me, validateEndDateDebounced: _e, onEndDateInput: ra, onDateInputKeyDown: sa, onStartTimeError: oa, onStartTimeValid: la, onEndTimeError: ia, onEndTimeValid: ua, onStartTimeInput: ca, onEndTimeInput: da, setInternalRange: te, onRangeSelectorInput: ma, adjustDate: Se, onGranularityInput: Da, computedFormContainerClasses: pa, maxRangeMessage: fa, Calendar: N, BentoAlert: Ra, BentoTypography: $e, BentoInputField: Ya, BentoInputTime: Aa, BentoDropdown: ba, BentoSegmentedControl: Ia };
763
+ return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: f, hasSlot: M, t: B, tc: z, isTouchDevice: y, dateFormat: se, isFormatValid: X, parseDate: D, onKeyDown: j, autoFormat: b, formatDateUtil: E, calculatedIsRelativeToNowQuickSelectRanges: g, defaultGranularity: L, hasNoCalendars: S, internalRangeDate: r, selectedRangeSelectorValue: k, formInputWrapperConditionalClasses: oe, quickSelectRangeDefaultItems: le, selectedGranularity: G, granularityItems: ie, getGranularCalendarLimits: Z, computedMinMax: h, adjustDateForQuarterly: T, adjustDateForMonthly: ue, adjustDateForWeekly: ce, adjustStartDateInputForWeekly: U, adjustEndDateInputForWeekly: de, adjustStartDateInputForMonthly: J, adjustEndDateInputForMonthly: $, adjustStartDateInputForQuarterly: w, adjustEndDateInputForQuarterly: Q, savedRanges: q, saveRange: me, resetSavedRanges: ee, formatDate: Y, startDateError: H, endDateError: K, dateTextInput: s, isValidTime: De, isMonthVariant: W, formatNativeDate: u, nativeStartDate: V, nativeEndDate: ae, dateInputType: Ke, startDateValue: Xe, endDateValue: Ze, setTimeInDateRef: I, onDateInput: ea, isValidDate: P, onStartDateSelected: aa, onEndDateSelected: ta, getDate: pe, validateStartDate: ye, validateStartDateDebounced: ke, onStartDateInput: na, validateEndDate: Me, validateEndDateDebounced: Ie, onEndDateInput: ra, onDateInputKeyDown: sa, onStartTimeError: oa, onStartTimeValid: la, onEndTimeError: ia, onEndTimeValid: ua, onStartTimeInput: ca, onEndTimeInput: da, setInternalRange: te, onRangeSelectorInput: ma, adjustDate: _e, onGranularityInput: Da, computedFormContainerClasses: pa, maxRangeMessage: fa, Calendar: N, BentoAlert: Ra, BentoTypography: $e, BentoInputField: Ya, BentoInputTime: Aa, BentoDropdown: ba, BentoSegmentedControl: Ia };
783
764
  }
784
765
  });
785
- var ot = function() {
766
+ var nt = function() {
786
767
  var t = this, e = t._self._c, a = t._self._setupProxy;
787
768
  return e("div", { staticClass: "b-date-range-picker-calendar" }, [e("div", { staticClass: "b-date-range-picker-calendar__form-container", class: a.computedFormContainerClasses, attrs: { "data-testid": "date-range-picker-calendar-form-container" } }, [e("div", { staticClass: "b-date-range-picker-calendar__form" }, [a.hasSlot("title") ? [t._t("title")] : t._e(), t.quickSelectRanges ? e(a.BentoDropdown, { attrs: { "aria-label": a.t("customRange"), items: a.quickSelectRangeDefaultItems, "model-value": a.selectedRangeSelectorValue }, on: { "update:model-value": a.onRangeSelectorInput } }) : t._e(), t.granularities ? e(a.BentoSegmentedControl, { attrs: { items: a.granularityItems, "model-value": a.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": a.onGranularityInput } }) : t._e(), a.maxRangeMessage ? e(a.BentoAlert, { attrs: { variant: "tip" }, scopedSlots: t._u([{ key: "description", fn: function() {
788
769
  return [t._v(" " + t._s(a.maxRangeMessage) + " ")];
@@ -791,15 +772,15 @@ var ot = function() {
791
772
  }, proxy: !0 }], null, !0) }), t.allowTimeInput ? e(a.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeFrom"), "model-value": a.dateTextInput.startTime }, on: { "update:model-value": a.onStartTimeInput, "input:error": a.onStartTimeError, "input:valid": a.onStartTimeValid } }) : t._e()], 1)], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" To ")]), e("div", { class: a.formInputWrapperConditionalClasses }, [e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("dateTo"), "model-value": a.endDateValue, error: a.endDateError, type: a.dateInputType }, on: { "update:model-value": a.onEndDateInput, keydown: a.onDateInputKeyDown }, scopedSlots: t._u([a.isTouchDevice ? null : { key: "description", fn: function() {
792
773
  return [t._v(t._s(a.t(a.dateFormat)))];
793
774
  }, proxy: !0 }], null, !0) }), t.allowTimeInput ? e(a.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeTo"), "model-value": a.dateTextInput.endTime }, on: { "update:model-value": a.onEndTimeInput, "input:error": a.onEndTimeError, "input:valid": a.onEndTimeValid } }) : t._e()], 1)], 1)], 2), a.hasSlot("actions") ? e("div", [t._t("actions")], 2) : t._e()]), !a.hasNoCalendars && !a.isTouchDevice ? e("div", { staticClass: "b-date-range-picker-calendar__calendars-container", attrs: { "data-testid": "date-range-picker-calendar-calendar-container" } }, [e(a.Calendar, { attrs: { value: a.internalRangeDate, "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: a.computedMinMax.min, max: a.computedMinMax.max, "number-of-months": t.numberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, granularity: a.selectedGranularity, variant: t.variant, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1) : t._e()]);
794
- }, lt = [], it = /* @__PURE__ */ He(
795
- st,
796
- ot,
797
- lt,
775
+ }, rt = [], st = /* @__PURE__ */ He(
776
+ tt,
777
+ nt,
778
+ rt,
798
779
  !1,
799
780
  null,
800
- "7338c0ea"
781
+ "4f97c782"
801
782
  );
802
- const ut = it.exports, ct = {
783
+ const ot = st.exports, lt = {
803
784
  "de-DE": {
804
785
  apply: "Anwenden",
805
786
  cancel: "Abbrechen",
@@ -894,56 +875,56 @@ const ut = it.exports, ct = {
894
875
  apply: "应用",
895
876
  cancel: "取消",
896
877
  dateRangePicker: "日期范围选择器 {name}",
897
- provideDateInAFormat: "提供 YYYY-MM-DD 格式的日期",
878
+ provideDateInAFormat: "提供年-月-日格式的日期",
898
879
  quarter: "{year} {quarter} 季度",
899
880
  selectDate: "选择日期",
900
881
  selectDateRange: "选择日期范围",
901
882
  selectedDateIsNotAvailable: "所选日期不可用"
902
883
  }
903
- }, dt = ({
904
- datePickerValue: s,
884
+ }, it = ({
885
+ datePickerValue: o,
905
886
  isDateIncorrect: t,
906
887
  quickSelectRanges: e,
907
888
  isMonthVariant: a,
908
889
  withTimeInput: i,
909
890
  placeholder: m
910
891
  }) => {
911
- const { locale: f, t: M } = Ae(), { dateToInputDateString: B } = be(), z = (D) => !!D && !isNaN(D.getTime()), y = ge({
892
+ const { locale: f, t: M } = Ae(), { dateToInputDateString: B } = be(), z = (D) => !!D && !isNaN(D.getTime()), y = ve({
912
893
  startDate: null,
913
894
  endDate: null,
914
895
  startTime: null,
915
896
  endTime: null
916
897
  });
917
- return ve(
918
- s,
898
+ return fe(
899
+ o,
919
900
  (D) => {
920
- y.startDate = B(D == null ? void 0 : D.startDate), y.endDate = B(D == null ? void 0 : D.endDate), y.startTime = S(D == null ? void 0 : D.startDate), y.endTime = S(D == null ? void 0 : D.endDate);
901
+ y.startDate = B(D == null ? void 0 : D.startDate), y.endDate = B(D == null ? void 0 : D.endDate), y.startTime = _(D == null ? void 0 : D.startDate), y.endTime = _(D == null ? void 0 : D.endDate);
921
902
  },
922
903
  { immediate: !0 }
923
904
  ), {
924
905
  // Values
925
906
  dateDisplayValue: p(() => {
926
- var L;
907
+ var j;
927
908
  if (t.value)
928
909
  return `${y.startDate || ""} - ${y.endDate || ""}`;
929
- if (!s.value || !s.value.startDate && !s.value.endDate)
910
+ if (!o.value || !o.value.startDate && !o.value.endDate)
930
911
  return (m == null ? void 0 : m.value) || M("selectDateRange");
931
- if ((L = e.value) != null && L.length) {
912
+ if ((j = e.value) != null && j.length) {
932
913
  const b = e.value.find(({ value: E }) => {
933
914
  var g;
934
- return E === ((g = s.value) == null ? void 0 : g.range);
915
+ return E === ((g = o.value) == null ? void 0 : g.range);
935
916
  });
936
917
  if (b)
937
918
  return b.label;
938
919
  }
939
- if (s.value.granularity === "quarterly") {
940
- const { startDate: b, endDate: E } = s.value, g = M("quarter", { quarter: Qe(b), year: Le(b) });
920
+ if (o.value.granularity === "quarterly") {
921
+ const { startDate: b, endDate: E } = o.value, g = M("quarter", { quarter: ze(b), year: Ge(b) });
941
922
  if (Ha(b, E))
942
923
  return g;
943
- const G = M("quarter", { quarter: Qe(E), year: Le(E) });
944
- return `${g} - ${G}`;
924
+ const L = M("quarter", { quarter: ze(E), year: Ge(E) });
925
+ return `${g} - ${L}`;
945
926
  }
946
- if (!z(s.value.startDate) || !z(s.value.endDate))
927
+ if (!z(o.value.startDate) || !z(o.value.endDate))
947
928
  return `${y.startDate || ""} - ${y.endDate || ""}`;
948
929
  let D = a != null && a.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
949
930
  return i.value && (D = {
@@ -953,20 +934,20 @@ const ut = it.exports, ct = {
953
934
  second: "numeric",
954
935
  hour12: !1
955
936
  }), za(f.value, D).formatRange(
956
- s.value.startDate,
957
- s.value.endDate
937
+ o.value.startDate,
938
+ o.value.endDate
958
939
  );
959
940
  }),
960
941
  textInputDisplayValue: y,
961
942
  // Methods
962
943
  formatTextInputDisplayValue: () => ""
963
944
  };
964
- }, mt = {
965
- i18n: { messages: ct },
945
+ }, ut = {
946
+ i18n: { messages: lt },
966
947
  name: "bento-date-range-picker",
967
948
  model: { prop: "modelValue" }
968
- }, Dt = /* @__PURE__ */ Ue({
969
- ...mt,
949
+ }, ct = /* @__PURE__ */ Ue({
950
+ ...ut,
970
951
  props: {
971
952
  description: { default: void 0 },
972
953
  disabled: { type: Boolean, default: !1 },
@@ -993,8 +974,8 @@ const ut = it.exports, ct = {
993
974
  hasActions: { type: Boolean, default: !1 }
994
975
  },
995
976
  emits: ["update:model-value", "input"],
996
- setup(s, { emit: t }) {
997
- const e = s, a = ga(), { t: i } = Ae(), { dateToInputDateString: m } = be(), f = ne("bento-date-range-picker-container"), M = ne("bento-date-range-picker-label"), B = ne("bento-date-range-picker-description"), z = ne("bento-date-range-picker-error"), y = ne("bento-date-range-picker-date-error"), se = p(() => e.label || i("dateRangePicker", { name: f })), { resolvedFirstDayOfWeek: X } = Sa(he(e, "firstDayOfWeek")), D = ya({
977
+ setup(o, { emit: t }) {
978
+ const e = o, a = ga(), { t: i } = Ae(), { dateToInputDateString: m } = be(), f = ne("bento-date-range-picker-container"), M = ne("bento-date-range-picker-label"), B = ne("bento-date-range-picker-description"), z = ne("bento-date-range-picker-error"), y = ne("bento-date-range-picker-date-error"), se = p(() => e.label || i("dateRangePicker", { name: f })), { resolvedFirstDayOfWeek: X } = Sa(he(e, "firstDayOfWeek")), D = ya({
998
979
  none: 0,
999
980
  one: 710,
1000
981
  // width of date range picker with one panes
@@ -1002,37 +983,37 @@ const ut = it.exports, ct = {
1002
983
  // width of date range picker with two panes
1003
984
  three: 1290
1004
985
  // width of date range picker with three panes
1005
- }), L = p(() => {
1006
- const c = D.active().value, W = {
986
+ }), j = p(() => {
987
+ const u = D.active().value, V = {
1007
988
  none: 0,
1008
989
  one: 1,
1009
990
  two: 2
1010
991
  };
1011
- if (c in W) {
1012
- const ae = W[c];
992
+ if (u in V) {
993
+ const ae = V[u];
1013
994
  return e.numberOfMonths === void 0 ? ae : Math.min(e.numberOfMonths, ae);
1014
995
  }
1015
996
  return e.numberOfMonths;
1016
- }), b = p(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((c) => {
1017
- const W = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
997
+ }), b = p(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((u) => {
998
+ const V = u.data.endDate ? void 0 : new Date(Date.now()).getTime() - u.data.startDate.getTime();
1018
999
  return {
1019
- ...c,
1000
+ ...u,
1020
1001
  data: {
1021
- ...c.data,
1002
+ ...u.data,
1022
1003
  // Adding timeDifference to calculate an up-to-date endDate on range selection
1023
- timeDifference: W
1004
+ timeDifference: V
1024
1005
  }
1025
1006
  };
1026
- })), E = p(() => e.label ? M : (a == null ? void 0 : a["aria-labelledby"]) ?? null), g = O(!1), G = O(null), x = O(!1), { isReadOnly: r } = La(he(e, "readonly")), { emitValue: k } = Ga(t);
1027
- ve(
1007
+ })), E = p(() => e.label ? M : (a == null ? void 0 : a["aria-labelledby"]) ?? null), g = O(!1), L = O(null), S = O(!1), { isReadOnly: r } = La(he(e, "readonly")), { emitValue: k } = Ga(t);
1008
+ fe(
1028
1009
  () => e.disabled,
1029
1010
  () => {
1030
- e.disabled && x.value && (x.value = !1);
1011
+ e.disabled && S.value && (S.value = !1);
1031
1012
  }
1032
1013
  );
1033
- const oe = p(() => e.modelValue || e.value), le = p(() => e.hasActions ? !Q.value && g.value : g.value), V = p(() => ({
1014
+ const oe = p(() => e.modelValue || e.value), le = p(() => e.hasActions ? !Q.value && g.value : g.value), G = p(() => ({
1034
1015
  "b-date-range-picker__description--error": !!e.errorMessage || le.value
1035
- })), ie = p(() => e.variant === "month"), Z = p(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: h, textInputDisplayValue: T, formatTextInputDisplayValue: ue } = dt({
1016
+ })), ie = p(() => e.variant === "month"), Z = p(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: h, textInputDisplayValue: T, formatTextInputDisplayValue: ue } = it({
1036
1017
  datePickerValue: oe,
1037
1018
  isDateIncorrect: g,
1038
1019
  quickSelectRanges: b,
@@ -1042,9 +1023,9 @@ const ut = it.exports, ct = {
1042
1023
  }), ce = p(
1043
1024
  () => `${e.description ? B : ""} ${e.errorMessage ? z : ""} ${g.value ? y : ""}`.trim() || null
1044
1025
  ), U = () => {
1045
- x.value = !1;
1026
+ S.value = !1;
1046
1027
  }, de = () => {
1047
- x.value = !0;
1028
+ S.value = !0;
1048
1029
  }, J = O(h.value), $ = O(
1049
1030
  // textInputDisplayValue is a reactive object
1050
1031
  structuredClone(Ye(T))
@@ -1054,18 +1035,18 @@ const ut = it.exports, ct = {
1054
1035
  () => e.hasActions ? J.value : h.value
1055
1036
  );
1056
1037
  Je(() => {
1057
- if (e.hasActions || Oe(
1038
+ if (e.hasActions || we(
1058
1039
  'BentoDateRangePicker "hasActions" property',
1059
1040
  `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
1060
1041
  This will be the default behavior in the v2 and "hasActions" will be removed.`,
1061
1042
  "2.0.0"
1062
- ), e.value && Oe(
1043
+ ), e.value && we(
1063
1044
  'BentoDateRangePicker "value" property',
1064
1045
  'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
1065
1046
  "2.0.0"
1066
- ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: c }) => c === "quarterly"))
1047
+ ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: u }) => u === "quarterly"))
1067
1048
  throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
1068
- }), ve([() => e.value, () => e.modelValue], () => {
1049
+ }), fe([() => e.value, () => e.modelValue], () => {
1069
1050
  J.value = h.value, $.value = structuredClone(Ye(T));
1070
1051
  });
1071
1052
  const ee = p(() => [
@@ -1081,32 +1062,32 @@ const ut = it.exports, ct = {
1081
1062
  event: U
1082
1063
  }
1083
1064
  ]);
1084
- return ve(w, (c) => {
1065
+ return fe(w, (u) => {
1085
1066
  if (e.hasActions) {
1086
1067
  Q.value = g.value;
1087
1068
  return;
1088
1069
  }
1089
- k(c);
1090
- }), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: f, labelId: M, descriptionId: B, errorId: z, dateErrorId: y, popoverAriaLabel: se, resolvedFirstDayOfWeek: X, breakpoints: D, computedNumberOfMonths: L, adjustedQuickSelectRanges: b, dropdownInputAriaLabelledBy: E, isDateIncorrect: g, inputContainerRef: G, isDateRangePickerOpen: x, isReadOnly: r, emitValue: k, internalModelValue: oe, shouldDisplayError: le, descriptionConditionalClasses: V, isMonthVariant: ie, withTimeInput: Z, dateDisplayValue: h, textInputDisplayValue: T, formatTextInputDisplayValue: ue, ariaDescribedBy: ce, closeDateRangePicker: U, openDateRangePicker: de, localDateDisplayValue: J, localTextInputDisplayValue: $, selectedDate: w, isApplyDisabled: Q, displayedTextInputValue: q, displayedDateValue: me, rangePickerButtonActions: ee, onDateRangePickerInput: (c) => {
1091
- g.value = !1, T.startDate = m(c.startDate), T.endDate = m(c.endDate), T.startTime = S(c.startDate), T.endTime = S(c.endDate), w.value = c;
1070
+ k(u);
1071
+ }), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: f, labelId: M, descriptionId: B, errorId: z, dateErrorId: y, popoverAriaLabel: se, resolvedFirstDayOfWeek: X, breakpoints: D, computedNumberOfMonths: j, adjustedQuickSelectRanges: b, dropdownInputAriaLabelledBy: E, isDateIncorrect: g, inputContainerRef: L, isDateRangePickerOpen: S, isReadOnly: r, emitValue: k, internalModelValue: oe, shouldDisplayError: le, descriptionConditionalClasses: G, isMonthVariant: ie, withTimeInput: Z, dateDisplayValue: h, textInputDisplayValue: T, formatTextInputDisplayValue: ue, ariaDescribedBy: ce, closeDateRangePicker: U, openDateRangePicker: de, localDateDisplayValue: J, localTextInputDisplayValue: $, selectedDate: w, isApplyDisabled: Q, displayedTextInputValue: q, displayedDateValue: me, rangePickerButtonActions: ee, onDateRangePickerInput: (u) => {
1072
+ g.value = !1, T.startDate = m(u.startDate), T.endDate = m(u.endDate), T.startTime = _(u.startDate), T.endTime = _(u.endDate), w.value = u;
1092
1073
  }, clearDateRangePickerValue: async () => {
1093
1074
  g.value && (g.value = !1), w.value = null;
1094
1075
  }, onEnterPressedOverInput: () => {
1095
- if (!x.value) {
1096
- x.value = !0;
1076
+ if (!S.value) {
1077
+ S.value = !0;
1097
1078
  return;
1098
1079
  }
1099
- g.value || (x.value = !1);
1100
- }, onDateRangePickerFormDateInputUpdate: (c) => {
1101
- g.value = !1, c.startTime && (T.startTime = c.startTime), c.endTime && (T.endTime = c.endTime);
1102
- }, onDateRangePickerError: (c) => {
1103
- g.value = !0, T.startDate = c.startDate, T.endDate = c.endDate, w.value = { startDate: null, endDate: null };
1104
- }, onRangeSelectorInput: (c) => {
1105
- c && (T.startDate = m(c.startDate), T.endDate = m(c.endDate), T.startTime = S(c.startDate), T.endTime = S(c.endDate), w.value = c);
1106
- }, BentoButtonActions: Ta, BentoButtonActionsLayout: $a, BentoDivider: Ma, BentoPopover: ha, BentoTypography: $e, DateRangePickerCalendar: ut, DropdownInputDefault: ka, ErrorMessage: Ja, FieldLabel: Ua, vBentoClickOutsideDirective: Va };
1080
+ g.value || (S.value = !1);
1081
+ }, onDateRangePickerFormDateInputUpdate: (u) => {
1082
+ g.value = !1, u.startTime && (T.startTime = u.startTime), u.endTime && (T.endTime = u.endTime);
1083
+ }, onDateRangePickerError: (u) => {
1084
+ g.value = !0, T.startDate = u.startDate, T.endDate = u.endDate, w.value = { startDate: null, endDate: null };
1085
+ }, onRangeSelectorInput: (u) => {
1086
+ u && (T.startDate = m(u.startDate), T.endDate = m(u.endDate), T.startTime = _(u.startDate), T.endTime = _(u.endDate), w.value = u);
1087
+ }, BentoButtonActions: Ta, BentoButtonActionsLayout: $a, BentoDivider: Ma, BentoPopover: ha, BentoTypography: $e, DateRangePickerCalendar: ot, DropdownInputDefault: ka, ErrorMessage: Ja, FieldLabel: Ua, vBentoClickOutsideDirective: Va };
1107
1088
  }
1108
1089
  });
1109
- var pt = function() {
1090
+ var dt = function() {
1110
1091
  var t = this, e = t._self._c, a = t._self._setupProxy;
1111
1092
  return e("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: a.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [t.label ? e(a.FieldLabel, { attrs: { id: a.labelId, label: t.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), e("div", { on: { keydown: function(i) {
1112
1093
  return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
@@ -1115,19 +1096,19 @@ var pt = function() {
1115
1096
  } } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.internalModelValue, "first-day-of-week": a.resolvedFirstDayOfWeek, granularities: t.granularities, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: t.min, max: t.max, "number-of-months": a.computedNumberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, "date-form-data": a.displayedTextInputValue, variant: t.variant }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([t.hasActions ? { key: "actions", fn: function() {
1116
1097
  return [e(a.BentoDivider), e("div", { staticClass: "b-date-range-picker__footer" }, [e(a.BentoButtonActions, { attrs: { actions: a.rangePickerButtonActions, layout: a.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
1117
1098
  }, proxy: !0 } : null], null, !0) })], 1) : t._e()], 1);
1118
- }, ft = [], vt = /* @__PURE__ */ He(
1119
- Dt,
1120
- pt,
1121
- ft,
1099
+ }, mt = [], Dt = /* @__PURE__ */ He(
1100
+ ct,
1101
+ dt,
1102
+ mt,
1122
1103
  !1,
1123
1104
  null,
1124
1105
  "fbf1b83e"
1125
1106
  );
1126
- const Vt = vt.exports;
1107
+ const Lt = Dt.exports;
1127
1108
  export {
1128
- Vt as B,
1129
- ut as D,
1109
+ Lt as B,
1110
+ ot as D,
1130
1111
  Ka as a,
1131
1112
  Te as i
1132
1113
  };
1133
- //# sourceMappingURL=date-range-picker.C_9uZ3up.js.map
1114
+ //# sourceMappingURL=date-range-picker.gfRJmzXn.js.map