@adyen/bento-vue2 2.0.1 → 2.1.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 (320) hide show
  1. package/README.md +2 -2
  2. package/dist/@types/index.d.ts +114 -82
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/calendar.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox.css +1 -1
  16. package/dist/assets/chip.css +1 -1
  17. package/dist/assets/currency.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-range-picker.css +1 -1
  20. package/dist/assets/dialog-page.css +1 -1
  21. package/dist/assets/draggable.css +1 -1
  22. package/dist/assets/dropdown.css +1 -1
  23. package/dist/assets/file-uploader.css +1 -1
  24. package/dist/assets/filter-bar.css +1 -1
  25. package/dist/assets/header-with-views.css +1 -1
  26. package/dist/assets/input-field.css +1 -1
  27. package/dist/assets/input-time.css +1 -1
  28. package/dist/assets/inspector.css +1 -1
  29. package/dist/assets/modal-fullscreen.css +1 -1
  30. package/dist/assets/navigation-menu-group.css +1 -1
  31. package/dist/assets/pagination.css +1 -1
  32. package/dist/assets/rich-text-editor.css +1 -1
  33. package/dist/assets/search-bar.css +1 -1
  34. package/dist/assets/secondary-nav.css +1 -1
  35. package/dist/assets/selection-card-group.css +1 -1
  36. package/dist/assets/sidepanel.css +1 -1
  37. package/dist/assets/step.css +1 -1
  38. package/dist/assets/structured-list-item.css +1 -1
  39. package/dist/assets/tab.css +1 -1
  40. package/dist/assets/textarea.css +1 -1
  41. package/dist/assets/toggle.css +1 -1
  42. package/dist/assets/typography.css +1 -1
  43. package/dist/avatar.js +1 -1
  44. package/dist/button.js +3 -3
  45. package/dist/card.js +1 -1
  46. package/dist/checkbox.js +2 -2
  47. package/dist/chip.js +1 -1
  48. package/dist/chunks/{accordion-item.B7lteJBu.js → accordion-item.C158YxId.js} +5 -5
  49. package/dist/chunks/{accordion-item.B7lteJBu.js.map → accordion-item.C158YxId.js.map} +1 -1
  50. package/dist/chunks/{action-bar.BsXW7BI2.js → action-bar.D29UQHoA.js} +15 -15
  51. package/dist/chunks/{action-bar.BsXW7BI2.js.map → action-bar.D29UQHoA.js.map} +1 -1
  52. package/dist/chunks/{ai-button.BnFk5CzK.js → ai-button.qEaHYybv.js} +3 -3
  53. package/dist/chunks/{ai-button.BnFk5CzK.js.map → ai-button.qEaHYybv.js.map} +1 -1
  54. package/dist/chunks/{ai-tag.D2Q0xhFK.js → ai-tag.BLi-Xoh_.js} +3 -3
  55. package/dist/chunks/{ai-tag.D2Q0xhFK.js.map → ai-tag.BLi-Xoh_.js.map} +1 -1
  56. package/dist/chunks/{alert.DJDHwVeR.js → alert.BddJPWMN.js} +3 -3
  57. package/dist/chunks/{alert.DJDHwVeR.js.map → alert.BddJPWMN.js.map} +1 -1
  58. package/dist/chunks/{anchor-scroller.BbvghQxZ.js → anchor-scroller.Clb_9RNz.js} +5 -5
  59. package/dist/chunks/{anchor-scroller.BbvghQxZ.js.map → anchor-scroller.Clb_9RNz.js.map} +1 -1
  60. package/dist/chunks/{avatar.CxPKc8Gy.js → avatar.BN4MI-42.js} +2 -2
  61. package/dist/chunks/{avatar.CxPKc8Gy.js.map → avatar.BN4MI-42.js.map} +1 -1
  62. package/dist/chunks/{base-button.DOhHyU7x.js → base-button.DYroENBg.js} +3 -3
  63. package/dist/chunks/{base-button.DOhHyU7x.js.map → base-button.DYroENBg.js.map} +1 -1
  64. package/dist/chunks/{base-modal.CcmoTJdc.js → base-modal._-Cc6jfi.js} +6 -6
  65. package/dist/chunks/{base-modal.CcmoTJdc.js.map → base-modal._-Cc6jfi.js.map} +1 -1
  66. package/dist/chunks/{button-actions-with-menu.BY394ars.js → button-actions-with-menu.1vZJWN1K.js} +2 -2
  67. package/dist/chunks/{button-actions-with-menu.BY394ars.js.map → button-actions-with-menu.1vZJWN1K.js.map} +1 -1
  68. package/dist/chunks/{button-actions.bkcLUE1G.js → button-actions.CdetBz3J.js} +8 -8
  69. package/dist/chunks/button-actions.CdetBz3J.js.map +1 -0
  70. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  71. package/dist/chunks/{button.DII5Ifwa.js → button.tsTeQRcP.js} +3 -3
  72. package/dist/chunks/{button.DII5Ifwa.js.map → button.tsTeQRcP.js.map} +1 -1
  73. package/dist/chunks/{calendar.CXdLEeN4.js → calendar.BalfhApP.js} +293 -290
  74. package/dist/chunks/calendar.BalfhApP.js.map +1 -0
  75. package/dist/chunks/{card.BmpB0VbL.js → card.BhhC01dV.js} +7 -7
  76. package/dist/chunks/{card.BmpB0VbL.js.map → card.BhhC01dV.js.map} +1 -1
  77. package/dist/chunks/{checkbox-group.D1uyc3z3.js → checkbox-group.C-1v4X3c.js} +4 -4
  78. package/dist/chunks/{checkbox-group.D1uyc3z3.js.map → checkbox-group.C-1v4X3c.js.map} +1 -1
  79. package/dist/chunks/{checkbox.D5xZ5Nnh.js → checkbox.CnuIUi4-.js} +6 -6
  80. package/dist/chunks/{checkbox.D5xZ5Nnh.js.map → checkbox.CnuIUi4-.js.map} +1 -1
  81. package/dist/chunks/{chip.DRsJylWl.js → chip.Cc4f2vws.js} +14 -12
  82. package/dist/chunks/{chip.DRsJylWl.js.map → chip.Cc4f2vws.js.map} +1 -1
  83. package/dist/chunks/{code-snippet.CnThWqVb.js → code-snippet.Bkd8R0vf.js} +6 -6
  84. package/dist/chunks/{code-snippet.CnThWqVb.js.map → code-snippet.Bkd8R0vf.js.map} +1 -1
  85. package/dist/chunks/{controls-group.fdGc6epa.js → controls-group.Bku83Fm_.js} +3 -3
  86. package/dist/chunks/{controls-group.fdGc6epa.js.map → controls-group.Bku83Fm_.js.map} +1 -1
  87. package/dist/chunks/{copy.CSk1rCRo.js → copy.B12-P_8A.js} +3 -3
  88. package/dist/chunks/{copy.CSk1rCRo.js.map → copy.B12-P_8A.js.map} +1 -1
  89. package/dist/chunks/{country.UZbwr635.js → country._NpkT-91.js} +2 -2
  90. package/dist/chunks/{country.UZbwr635.js.map → country._NpkT-91.js.map} +1 -1
  91. package/dist/chunks/country.types.BCOrkmVK.js.map +1 -1
  92. package/dist/chunks/{currency.POwX-Trj.js → currency.BXsSGoWa.js} +4 -4
  93. package/dist/chunks/{currency.POwX-Trj.js.map → currency.BXsSGoWa.js.map} +1 -1
  94. package/dist/chunks/{dashboard-section.CYEoNH9Q.js → dashboard-section.yS2FNoIV.js} +3 -3
  95. package/dist/chunks/{dashboard-section.CYEoNH9Q.js.map → dashboard-section.yS2FNoIV.js.map} +1 -1
  96. package/dist/chunks/{dashed-underline.CzKc-fJW.js → dashed-underline.RcRbre03.js} +4 -4
  97. package/dist/chunks/{dashed-underline.CzKc-fJW.js.map → dashed-underline.RcRbre03.js.map} +1 -1
  98. package/dist/chunks/{data-grid-template.DCwzh2G7.js → data-grid-template.B5A9whlD.js} +4 -4
  99. package/dist/chunks/{data-grid-template.DCwzh2G7.js.map → data-grid-template.B5A9whlD.js.map} +1 -1
  100. package/dist/chunks/{data-grid.CMxQpfrY.js → data-grid.Pg5iM8CJ.js} +25 -25
  101. package/dist/chunks/{data-grid.CMxQpfrY.js.map → data-grid.Pg5iM8CJ.js.map} +1 -1
  102. package/dist/chunks/{date-picker.gDsw8bn1.js → date-picker.RFus1MVJ.js} +9 -9
  103. package/dist/chunks/{date-picker.gDsw8bn1.js.map → date-picker.RFus1MVJ.js.map} +1 -1
  104. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  105. package/dist/chunks/{date-range-picker.CqixIJxG.js → date-range-picker.B2B4hO6R.js} +411 -370
  106. package/dist/chunks/date-range-picker.B2B4hO6R.js.map +1 -0
  107. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  108. package/dist/chunks/{date-time-picker.Bktntun4.js → date-time-picker.DJxDa81N.js} +6 -6
  109. package/dist/chunks/{date-time-picker.Bktntun4.js.map → date-time-picker.DJxDa81N.js.map} +1 -1
  110. package/dist/chunks/{date.CPo8t1n9.js → date.P3Xx7JdV.js} +2 -2
  111. package/dist/chunks/{date.CPo8t1n9.js.map → date.P3Xx7JdV.js.map} +1 -1
  112. package/dist/chunks/{dialog-page.Bct3zOQO.js → dialog-page.DORdXmEm.js} +3 -3
  113. package/dist/chunks/{dialog-page.Bct3zOQO.js.map → dialog-page.DORdXmEm.js.map} +1 -1
  114. package/dist/chunks/{draggable-handle.DgVdGC1V.js → draggable-handle.BM07OVdH.js} +2 -2
  115. package/dist/chunks/{draggable-handle.DgVdGC1V.js.map → draggable-handle.BM07OVdH.js.map} +1 -1
  116. package/dist/chunks/{draggable.DYKdXdbj.js → draggable.BczXedk7.js} +59 -56
  117. package/dist/chunks/draggable.BczXedk7.js.map +1 -0
  118. package/dist/chunks/{dropdown-tag.Dk7SooVv.js → dropdown-tag.BmUNKoNw.js} +7 -7
  119. package/dist/chunks/{dropdown-tag.Dk7SooVv.js.map → dropdown-tag.BmUNKoNw.js.map} +1 -1
  120. package/dist/chunks/{dropdown.Bnq4kP7k.js → dropdown.CpZQYisR.js} +9 -9
  121. package/dist/chunks/{dropdown.Bnq4kP7k.js.map → dropdown.CpZQYisR.js.map} +1 -1
  122. package/dist/chunks/{empty-state.C2wjdE3y.js → empty-state.L3DTfiY7.js} +4 -4
  123. package/dist/chunks/{empty-state.C2wjdE3y.js.map → empty-state.L3DTfiY7.js.map} +1 -1
  124. package/dist/chunks/{error-message.DKnoUezI.js → error-message.B-n8wzFo.js} +2 -2
  125. package/dist/chunks/{error-message.DKnoUezI.js.map → error-message.B-n8wzFo.js.map} +1 -1
  126. package/dist/chunks/es6.yPcTMnSH.js.map +1 -1
  127. package/dist/chunks/{field-label.C7BCsofY.js → field-label.BQaDr37D.js} +3 -3
  128. package/dist/chunks/{field-label.C7BCsofY.js.map → field-label.BQaDr37D.js.map} +1 -1
  129. package/dist/chunks/{file-uploader.DllKBmP8.js → file-uploader.Bo17jWtf.js} +11 -11
  130. package/dist/chunks/{file-uploader.DllKBmP8.js.map → file-uploader.Bo17jWtf.js.map} +1 -1
  131. package/dist/chunks/{filter-bar.D7Lk7wlq.js → filter-bar.Bio9nf9V.js} +28 -27
  132. package/dist/chunks/filter-bar.Bio9nf9V.js.map +1 -0
  133. package/dist/chunks/{fixed-scroller.YC4bZifw.js → fixed-scroller.CHmrgoTQ.js} +2 -2
  134. package/dist/chunks/{fixed-scroller.YC4bZifw.js.map → fixed-scroller.CHmrgoTQ.js.map} +1 -1
  135. package/dist/chunks/{footer-actions.C9STwwcv.js → footer-actions.B8f-gEQV.js} +4 -4
  136. package/dist/chunks/{footer-actions.C9STwwcv.js.map → footer-actions.B8f-gEQV.js.map} +1 -1
  137. package/dist/chunks/{form-layout-group.D4T0Z5xk.js → form-layout-group.BSC2esG8.js} +2 -2
  138. package/dist/chunks/{form-layout-group.D4T0Z5xk.js.map → form-layout-group.BSC2esG8.js.map} +1 -1
  139. package/dist/chunks/{form-layout-title.C0lwzPZz.js → form-layout-title.b2BMYjnl.js} +3 -3
  140. package/dist/chunks/{form-layout-title.C0lwzPZz.js.map → form-layout-title.b2BMYjnl.js.map} +1 -1
  141. package/dist/chunks/{header-with-views.BqobE7IF.js → header-with-views.BJCjvhem.js} +16 -16
  142. package/dist/chunks/{header-with-views.BqobE7IF.js.map → header-with-views.BJCjvhem.js.map} +1 -1
  143. package/dist/chunks/{header.CmyqVXuG.js → header.CDiold9n.js} +5 -5
  144. package/dist/chunks/{header.CmyqVXuG.js.map → header.CDiold9n.js.map} +1 -1
  145. package/dist/chunks/{info-icon-with-popover.BvYyGm4D.js → info-icon-with-popover.BzGVcMqy.js} +3 -3
  146. package/dist/chunks/{info-icon-with-popover.BvYyGm4D.js.map → info-icon-with-popover.BzGVcMqy.js.map} +1 -1
  147. package/dist/chunks/{info-icon.B-FAeceD.js → info-icon.D11usblr.js} +2 -2
  148. package/dist/chunks/{info-icon.B-FAeceD.js.map → info-icon.D11usblr.js.map} +1 -1
  149. package/dist/chunks/{input-field-password.9bWhLud0.js → input-field-password.D4Jn2yCi.js} +6 -6
  150. package/dist/chunks/{input-field-password.9bWhLud0.js.map → input-field-password.D4Jn2yCi.js.map} +1 -1
  151. package/dist/chunks/{input-field-phone-number.CCn1N9St.js → input-field-phone-number.lV7yePoJ.js} +3 -3
  152. package/dist/chunks/{input-field-phone-number.CCn1N9St.js.map → input-field-phone-number.lV7yePoJ.js.map} +1 -1
  153. package/dist/chunks/{input-field.D912rZS_.js → input-field.90DWNO1a.js} +7 -7
  154. package/dist/chunks/{input-field.D912rZS_.js.map → input-field.90DWNO1a.js.map} +1 -1
  155. package/dist/chunks/input-time.D7IsprlH.js +157 -0
  156. package/dist/chunks/input-time.D7IsprlH.js.map +1 -0
  157. package/dist/chunks/{inspector-page.BRC_7uro.js → inspector-page.IoC9naSV.js} +4 -4
  158. package/dist/chunks/{inspector-page.BRC_7uro.js.map → inspector-page.IoC9naSV.js.map} +1 -1
  159. package/dist/chunks/{inspector.IOtNex1r.js → inspector.BwtV4rE9.js} +5 -5
  160. package/dist/chunks/{inspector.IOtNex1r.js.map → inspector.BwtV4rE9.js.map} +1 -1
  161. package/dist/chunks/{layout-row.LBn6aJv4.js → layout-row.DYx7F4cb.js} +2 -2
  162. package/dist/chunks/{layout-row.LBn6aJv4.js.map → layout-row.DYx7F4cb.js.map} +1 -1
  163. package/dist/chunks/{link.Cls8XShm.js → link.iNnolG9W.js} +2 -2
  164. package/dist/chunks/{link.Cls8XShm.js.map → link.iNnolG9W.js.map} +1 -1
  165. package/dist/chunks/{list-item.HjabBEb8.js → list-item.ByyA5h1d.js} +5 -5
  166. package/dist/chunks/{list-item.HjabBEb8.js.map → list-item.ByyA5h1d.js.map} +1 -1
  167. package/dist/chunks/{listbox-option-tag.DhNxvqRO.js → listbox-option-tag.Cp_W_p4z.js} +3 -3
  168. package/dist/chunks/{listbox-option-tag.DhNxvqRO.js.map → listbox-option-tag.Cp_W_p4z.js.map} +1 -1
  169. package/dist/chunks/{modal-fullscreen.Bi1bQs4Z.js → modal-fullscreen.DG8Q-jHL.js} +9 -9
  170. package/dist/chunks/modal-fullscreen.DG8Q-jHL.js.map +1 -0
  171. package/dist/chunks/{modal.B3-pmL5s.js → modal.UkzON4bz.js} +7 -7
  172. package/dist/chunks/{modal.B3-pmL5s.js.map → modal.UkzON4bz.js.map} +1 -1
  173. package/dist/chunks/{navigation-menu-group.BnHdXODQ.js → navigation-menu-group.BzKRuhrd.js} +8 -8
  174. package/dist/chunks/navigation-menu-group.BzKRuhrd.js.map +1 -0
  175. package/dist/chunks/{pagination.cI_pc6oE.js → pagination.DZEVT-CA.js} +8 -7
  176. package/dist/chunks/{pagination.cI_pc6oE.js.map → pagination.DZEVT-CA.js.map} +1 -1
  177. package/dist/chunks/{payment-method.DcAITDcK.js → payment-method.meF6XN_X.js} +2 -2
  178. package/dist/chunks/{payment-method.DcAITDcK.js.map → payment-method.meF6XN_X.js.map} +1 -1
  179. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  180. package/dist/chunks/popover.types.DvIwSAAp.js.map +1 -1
  181. package/dist/chunks/popper-container.Cj3AWXSd.js.map +1 -1
  182. package/dist/chunks/{progress-bar.RlF3a0Gb.js → progress-bar.CaurNYsc.js} +4 -4
  183. package/dist/chunks/{progress-bar.RlF3a0Gb.js.map → progress-bar.CaurNYsc.js.map} +1 -1
  184. package/dist/chunks/{promo-banner.B5szTysj.js → promo-banner.CcYpFY9b.js} +3 -3
  185. package/dist/chunks/{promo-banner.B5szTysj.js.map → promo-banner.CcYpFY9b.js.map} +1 -1
  186. package/dist/chunks/{radio-group.CvsQDlHi.js → radio-group.CLbYlzD7.js} +5 -5
  187. package/dist/chunks/{radio-group.CvsQDlHi.js.map → radio-group.CLbYlzD7.js.map} +1 -1
  188. package/dist/chunks/{rich-text-editor.rXoS7KGY.js → rich-text-editor.5SMm2BbC.js} +11 -11
  189. package/dist/chunks/{rich-text-editor.rXoS7KGY.js.map → rich-text-editor.5SMm2BbC.js.map} +1 -1
  190. package/dist/chunks/{scroll-to-section.DhW8SFy0.js → scroll-to-section.CzeBpNj4.js} +2 -2
  191. package/dist/chunks/{scroll-to-section.DhW8SFy0.js.map → scroll-to-section.CzeBpNj4.js.map} +1 -1
  192. package/dist/chunks/{search-bar.--4KVNkf.js → search-bar.DrIwlAQj.js} +8 -8
  193. package/dist/chunks/{search-bar.--4KVNkf.js.map → search-bar.DrIwlAQj.js.map} +1 -1
  194. package/dist/chunks/{secondary-nav.CgdV0QwZ.js → secondary-nav.DRs5yAve.js} +16 -16
  195. package/dist/chunks/{secondary-nav.CgdV0QwZ.js.map → secondary-nav.DRs5yAve.js.map} +1 -1
  196. package/dist/chunks/{segmented-control.nYpRQTGc.js → segmented-control.CcQoBTfT.js} +3 -3
  197. package/dist/chunks/{segmented-control.nYpRQTGc.js.map → segmented-control.CcQoBTfT.js.map} +1 -1
  198. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  199. package/dist/chunks/{selection-card-group.CmDuj1c7.js → selection-card-group.BYBAG8ig.js} +49 -48
  200. package/dist/chunks/{selection-card-group.CmDuj1c7.js.map → selection-card-group.BYBAG8ig.js.map} +1 -1
  201. package/dist/chunks/{sidepanel.CntIcmx-.js → sidepanel.CLbVkH7v.js} +14 -14
  202. package/dist/chunks/{sidepanel.CntIcmx-.js.map → sidepanel.CLbVkH7v.js.map} +1 -1
  203. package/dist/chunks/{status.DJ1Dfh5s.js → status.BdWYs5MK.js} +2 -2
  204. package/dist/chunks/{status.DJ1Dfh5s.js.map → status.BdWYs5MK.js.map} +1 -1
  205. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
  206. package/dist/chunks/{step.BCa9IOWB.js → step.SkRHgSxN.js} +5 -5
  207. package/dist/chunks/step.SkRHgSxN.js.map +1 -0
  208. package/dist/chunks/{structured-list-item.Bhe0CH1M.js → structured-list-item.BgcR0XlO.js} +10 -9
  209. package/dist/chunks/structured-list-item.BgcR0XlO.js.map +1 -0
  210. package/dist/chunks/{summary-grid.types.C70ED6WD.js → summary-grid.types.Do2PZQGm.js} +6 -6
  211. package/dist/chunks/{summary-grid.types.C70ED6WD.js.map → summary-grid.types.Do2PZQGm.js.map} +1 -1
  212. package/dist/chunks/{tab.BK1sIJAJ.js → tab.zeRxc-3T.js} +49 -48
  213. package/dist/chunks/tab.zeRxc-3T.js.map +1 -0
  214. package/dist/chunks/{table-of-contents.BTy95Rrs.js → table-of-contents.D4sF13f8.js} +3 -3
  215. package/dist/chunks/{table-of-contents.BTy95Rrs.js.map → table-of-contents.D4sF13f8.js.map} +1 -1
  216. package/dist/chunks/{tag.Dz1FQSZb.js → tag.CgsX8v2m.js} +3 -3
  217. package/dist/chunks/{tag.Dz1FQSZb.js.map → tag.CgsX8v2m.js.map} +1 -1
  218. package/dist/chunks/{textarea.CcV9U3I7.js → textarea.DMBnJaB1.js} +7 -7
  219. package/dist/chunks/textarea.DMBnJaB1.js.map +1 -0
  220. package/dist/chunks/{timeline-item.BG2by0xf.js → timeline-item.CS7TCdoU.js} +10 -10
  221. package/dist/chunks/{timeline-item.BG2by0xf.js.map → timeline-item.CS7TCdoU.js.map} +1 -1
  222. package/dist/chunks/{title-details.ChwPP7C5.js → title-details.BhR2nis-.js} +4 -4
  223. package/dist/chunks/{title-details.ChwPP7C5.js.map → title-details.BhR2nis-.js.map} +1 -1
  224. package/dist/chunks/{toast.CO6ByH3n.js → toast.CjDkuh2x.js} +4 -4
  225. package/dist/chunks/{toast.CO6ByH3n.js.map → toast.CjDkuh2x.js.map} +1 -1
  226. package/dist/chunks/{toggle.Dgh7aw1D.js → toggle.BL_w2xUm.js} +4 -4
  227. package/dist/chunks/{toggle.Dgh7aw1D.js.map → toggle.BL_w2xUm.js.map} +1 -1
  228. package/dist/chunks/{tooltip.DFYc5NKM.js → tooltip.BOe7LOfD.js} +2 -2
  229. package/dist/chunks/{tooltip.DFYc5NKM.js.map → tooltip.BOe7LOfD.js.map} +1 -1
  230. package/dist/chunks/{tutorial.K0aOQWIg.js → tutorial.DSbBx_2h.js} +3 -3
  231. package/dist/chunks/{tutorial.K0aOQWIg.js.map → tutorial.DSbBx_2h.js.map} +1 -1
  232. package/dist/chunks/{typography.D1OZJbEa.js → typography.Cd386LC_.js} +5 -5
  233. package/dist/chunks/{typography.D1OZJbEa.js.map → typography.Cd386LC_.js.map} +1 -1
  234. package/dist/chunks/{use-bento-toast-controller.A5xraVqa.js → use-bento-toast-controller.DMA9d_oD.js} +2 -2
  235. package/dist/chunks/{use-bento-toast-controller.A5xraVqa.js.map → use-bento-toast-controller.DMA9d_oD.js.map} +1 -1
  236. package/dist/chunks/{use-date-input-formatter.MgbFwUqJ.js → use-date-input-formatter.CouOE5tF.js} +2 -2
  237. package/dist/chunks/{use-date-input-formatter.MgbFwUqJ.js.map → use-date-input-formatter.CouOE5tF.js.map} +1 -1
  238. package/dist/chunks/{use-dynamic-date-fns-locale.Bpb2DeYR.js → use-dynamic-date-fns-locale.DGqfz_nF.js} +2 -2
  239. package/dist/chunks/{use-dynamic-date-fns-locale.Bpb2DeYR.js.map → use-dynamic-date-fns-locale.DGqfz_nF.js.map} +1 -1
  240. package/dist/code-snippet.js +1 -1
  241. package/dist/country.js +1 -1
  242. package/dist/currency.js +1 -1
  243. package/dist/dashboard-template.js +1 -1
  244. package/dist/dashed-underline.js +1 -1
  245. package/dist/data-grid-template.js +1 -1
  246. package/dist/data-grid.js +1 -1
  247. package/dist/date-picker.js +2 -2
  248. package/dist/date-range-picker.js +2 -2
  249. package/dist/date-time-picker.js +1 -1
  250. package/dist/date.js +1 -1
  251. package/dist/draggable.js +2 -2
  252. package/dist/dropdown.js +2 -2
  253. package/dist/empty-state.js +1 -1
  254. package/dist/file-uploader.js +1 -1
  255. package/dist/filter-bar.js +1 -1
  256. package/dist/form-layout.js +2 -2
  257. package/dist/header-with-views.js +1 -1
  258. package/dist/header.js +1 -1
  259. package/dist/index.js +177 -152
  260. package/dist/index.js.map +1 -1
  261. package/dist/info-icon.js +1 -1
  262. package/dist/input-field-password.js +1 -1
  263. package/dist/input-field-phone-number.js +1 -1
  264. package/dist/input-field.js +1 -1
  265. package/dist/input-time.js +1 -1
  266. package/dist/inspector.js +2 -2
  267. package/dist/internal.js +14 -14
  268. package/dist/layout.js +1 -1
  269. package/dist/link.js +1 -1
  270. package/dist/list.js +1 -1
  271. package/dist/menu.js +1 -1
  272. package/dist/modal-fullscreen.js +1 -1
  273. package/dist/modal.js +2 -2
  274. package/dist/navigation-menu.js +1 -1
  275. package/dist/pagination.js +1 -1
  276. package/dist/payment-method.js +1 -1
  277. package/dist/popover.js +1 -1
  278. package/dist/progress-bar.js +1 -1
  279. package/dist/promo-banner.js +1 -1
  280. package/dist/radio-group.js +1 -1
  281. package/dist/rich-text-editor.js +1 -1
  282. package/dist/search-bar.js +2 -2
  283. package/dist/secondary-nav.js +1 -1
  284. package/dist/segmented-control.js +1 -1
  285. package/dist/selection-card.js +1 -1
  286. package/dist/sidepanel.js +1 -1
  287. package/dist/status.js +1 -1
  288. package/dist/stepper.js +1 -1
  289. package/dist/structured-list.js +1 -1
  290. package/dist/styles/bento-dark.css +3 -0
  291. package/dist/styles/bento-light.css +3 -0
  292. package/dist/styles/bento.css +3 -0
  293. package/dist/styles/legacy.css +3 -0
  294. package/dist/styles/styleguide.css +3 -0
  295. package/dist/styles/utility.css +9 -0
  296. package/dist/summary-grid.js +1 -1
  297. package/dist/table-of-contents.js +1 -1
  298. package/dist/tabs.js +1 -1
  299. package/dist/tag.js +1 -1
  300. package/dist/textarea.js +1 -1
  301. package/dist/timeline.js +1 -1
  302. package/dist/toast.js +1 -1
  303. package/dist/toggle.js +1 -1
  304. package/dist/tutorial.js +1 -1
  305. package/dist/typography.js +1 -1
  306. package/dist/web-types.json +1278 -46
  307. package/package.json +9 -9
  308. package/dist/chunks/button-actions.bkcLUE1G.js.map +0 -1
  309. package/dist/chunks/calendar.CXdLEeN4.js.map +0 -1
  310. package/dist/chunks/date-range-picker.CqixIJxG.js.map +0 -1
  311. package/dist/chunks/draggable.DYKdXdbj.js.map +0 -1
  312. package/dist/chunks/filter-bar.D7Lk7wlq.js.map +0 -1
  313. package/dist/chunks/input-time.CXMuvF9N.js +0 -105
  314. package/dist/chunks/input-time.CXMuvF9N.js.map +0 -1
  315. package/dist/chunks/modal-fullscreen.Bi1bQs4Z.js.map +0 -1
  316. package/dist/chunks/navigation-menu-group.BnHdXODQ.js.map +0 -1
  317. package/dist/chunks/step.BCa9IOWB.js.map +0 -1
  318. package/dist/chunks/structured-list-item.Bhe0CH1M.js.map +0 -1
  319. package/dist/chunks/tab.BK1sIJAJ.js.map +0 -1
  320. package/dist/chunks/textarea.CcV9U3I7.js.map +0 -1
@@ -1,65 +1,65 @@
1
- import { defineComponent as be, computed as c, reactive as ve, useSlots as ua, ref as I, onMounted as je, toRaw as Ye, watch as pe, useAttrs as da, toRef as Re } from "vue";
2
- import { d as ca, h as ma } from "./index.CL3TXc0a.js";
3
- import { B as Da } from "./divider.KxXy6nzJ.js";
4
- import { h as pa, B as va } from "./button-actions.bkcLUE1G.js";
5
- import { B as Je } from "./typography.D1OZJbEa.js";
6
- import { B as fa } from "./alert.DJDHwVeR.js";
7
- import { B as ga, g as qe, D as Ma } from "./dropdown.Bnq4kP7k.js";
8
- import { B as ya } from "./segmented-control.nYpRQTGc.js";
9
- import { u as Ae } from "./index.CPOlyau9.js";
10
- import { u as ha } from "./use-has-slot.C9lQZ6nz.js";
11
- import { u as ke, a as Ra } from "./use-date-input-formatter.MgbFwUqJ.js";
12
- import { u as Ta } from "./use-touch-device.DTqFAbXh.js";
13
- import { j as re, k as P, s as b, l as Ya, m as Ce, n as ba, f as Be, o as Aa, q as ka, r as _a, t as Ne, u as Ia, b as C, v as Sa, h as Ea, i as Fa, e as S, w as ze, x as Ve, g as xa } from "./calendar.CXdLEeN4.js";
14
- import { e as B, a as Le } from "./differenceInMonths.CPDkGea3.js";
15
- import { s as We } from "./startOfWeek.CzdYFzXX.js";
16
- import { t as fe, n as Pa, c as wa } from "./en-US.C412g-7U.js";
17
- import { c as Oa } from "./constructNow.Dl44Mvpp.js";
18
- import { s as De, a as Qe } from "./set-time-in-date.B3K4C7CB.js";
19
- import { B as qa, i as Ge } from "./input-time.CXMuvF9N.js";
20
- import { B as Ca } from "./input-field.D912rZS_.js";
21
- import { B as Ba } from "./form-layout-group.D4T0Z5xk.js";
22
- import { n as _e } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
23
- import { g as te } from "./generate-uid.DBWe4g6T.js";
24
- import { u as Na } from "./use-form-layout-loading.CWbjZiwP.js";
1
+ import { defineComponent as xe, computed as c, reactive as be, useSlots as ya, ref as E, onMounted as ea, toRaw as we, watch as De, useAttrs as Ma, toRef as Ee } from "vue";
2
+ import { d as ha, h as Ta } from "./index.CL3TXc0a.js";
3
+ import { B as Ra } from "./divider.KxXy6nzJ.js";
4
+ import { h as Ya, B as ba } from "./button-actions.CdetBz3J.js";
5
+ import { B as aa, p as Ia } from "./typography.Cd386LC_.js";
6
+ import { B as ka } from "./alert.BddJPWMN.js";
7
+ import { B as Aa, g as We, D as _a } from "./dropdown.CpZQYisR.js";
8
+ import { B as Sa } from "./segmented-control.CcQoBTfT.js";
9
+ import { u as Pe } from "./index.CPOlyau9.js";
10
+ import { u as Ea } from "./use-has-slot.C9lQZ6nz.js";
11
+ import { u as Oe, a as Fa } from "./use-date-input-formatter.CouOE5tF.js";
12
+ import { u as wa } from "./use-touch-device.DTqFAbXh.js";
13
+ import { j as pe, k as x, s as k, l as xa, m as Qe, n as Pa, f as Ge, o as Oa, q as Ba, r as qa, t as $e, u as Ca, b as C, v as Na, e as Y, h as za, i as Va, w as Ue, x as je, g as La } from "./calendar.BalfhApP.js";
14
+ import { e as N, a as Je } from "./differenceInMonths.CPDkGea3.js";
15
+ import { s as He } from "./startOfWeek.CzdYFzXX.js";
16
+ import { t as Ie, n as Wa, c as Qa } from "./en-US.C412g-7U.js";
17
+ import { c as Ga } from "./constructNow.Dl44Mvpp.js";
18
+ import { a as Ye, s as Re } from "./set-time-in-date.B3K4C7CB.js";
19
+ import { B as $a, s as ta, i as Ke } from "./input-time.D7IsprlH.js";
20
+ import { B as Ua } from "./input-field.90DWNO1a.js";
21
+ import { B as ja } from "./form-layout-group.BSC2esG8.js";
22
+ import { n as Be } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
23
+ import { g as ce } from "./generate-uid.DBWe4g6T.js";
24
+ import { u as Ja } from "./use-form-layout-loading.CWbjZiwP.js";
25
25
  import "./index.Cl4_42j5.js";
26
- import { u as za } from "./form-field.B60VsF8d.js";
27
- import { B as Va } from "./directive.D1-d-C2K.js";
28
- import { F as La } from "./field-label.C7BCsofY.js";
29
- import { E as Wa } from "./error-message.DKnoUezI.js";
30
- import { B as Qa } from "./button-actions.types.BptAXjD8.js";
26
+ import { u as Ha } from "./form-field.B60VsF8d.js";
27
+ import { B as Ka } from "./directive.D1-d-C2K.js";
28
+ import { F as Xa } from "./field-label.BQaDr37D.js";
29
+ import { E as Za } from "./error-message.B-n8wzFo.js";
30
+ import { B as et } from "./button-actions.types.BptAXjD8.js";
31
31
  import "../assets/date-range-picker.css";
32
- function Ue(o, t) {
33
- return fe(o, t?.in).getFullYear();
32
+ function Xe(l, t) {
33
+ return Ie(l, t?.in).getFullYear();
34
34
  }
35
- function ne(o, t) {
36
- return +fe(o) == +fe(t);
35
+ function me(l, t) {
36
+ return +Ie(l) == +Ie(t);
37
37
  }
38
- function Ga(o, t, e) {
39
- const [a, i] = Pa(
38
+ function at(l, t, e) {
39
+ const [a, i] = Wa(
40
40
  e?.in,
41
- o,
41
+ l,
42
42
  t
43
43
  );
44
- return +re(a) == +re(i);
44
+ return +pe(a) == +pe(i);
45
45
  }
46
- function $e(o, t) {
47
- const e = fe(o, t?.in);
46
+ function Ze(l, t) {
47
+ const e = Ie(l, t?.in);
48
48
  return e.setMilliseconds(0), e;
49
49
  }
50
- function Te(o, t) {
51
- return +$e(o) == +$e(t);
50
+ function Fe(l, t) {
51
+ return +Ze(l) == +Ze(t);
52
52
  }
53
- function Ua(o, t) {
54
- return P(
55
- wa(o, o),
56
- Oa(o)
53
+ function tt(l, t) {
54
+ return x(
55
+ Qa(l, l),
56
+ Ga(l)
57
57
  );
58
58
  }
59
- const $a = {
59
+ const nt = {
60
60
  name: "date-time-input"
61
- }, ja = /* @__PURE__ */ be({
62
- ...$a,
61
+ }, rt = /* @__PURE__ */ xe({
62
+ ...nt,
63
63
  props: {
64
64
  dateModelValue: { default: "" },
65
65
  dateProps: { default: () => ({}) },
@@ -68,109 +68,113 @@ const $a = {
68
68
  timeModelValue: { default: "" },
69
69
  timeProps: { default: () => ({}) }
70
70
  },
71
- emits: ["update:date-model-value", "date:keydown", "update:time-model-value", "time:error", "time:valid"],
72
- setup(o) {
73
- const t = o, e = c(() => ({
71
+ emits: ["click", "update:date-model-value", "date:keydown", "update:time-model-value", "time:error", "time:valid"],
72
+ setup(l) {
73
+ const t = l, e = c(() => ({
74
74
  errorMessage: t.errorMessage,
75
75
  ...t.dateProps
76
76
  })), a = c(() => ({
77
77
  errorMessage: t.errorMessage,
78
78
  ...t.timeProps
79
79
  }));
80
- return { __sfc: !0, props: t, resolvedDateProps: e, resolvedTimeProps: a, BentoFormLayoutGroup: Ba, BentoInputField: Ca, BentoInputTime: qa };
80
+ return { __sfc: !0, props: t, resolvedDateProps: e, resolvedTimeProps: a, BentoFormLayoutGroup: ja, BentoInputField: Ua, BentoInputTime: $a };
81
81
  }
82
82
  });
83
- var Ja = function() {
83
+ var st = function() {
84
84
  var t = this, e = t._self._c, a = t._self._setupProxy;
85
- return e(a.BentoFormLayoutGroup, { attrs: { layout: t.showTimeInput ? "50-50" : "100", "error-message": t.errorMessage } }, [e(a.BentoInputField, t._b({ attrs: { "model-value": t.dateModelValue }, on: { "update:model-value": function(i) {
85
+ return e(a.BentoFormLayoutGroup, { attrs: { layout: t.showTimeInput ? "50-50" : "100", "error-message": t.errorMessage } }, [e(a.BentoInputField, t._b({ attrs: { "model-value": t.dateModelValue }, on: { click: function(i) {
86
+ return t.$emit("click");
87
+ }, "update:model-value": function(i) {
86
88
  return t.$emit("update:date-model-value", i);
87
89
  }, keydown: function(i) {
88
90
  return t.$emit("date:keydown", i);
89
- } } }, "bento-input-field", a.resolvedDateProps, !1)), t.showTimeInput ? e(a.BentoInputTime, t._b({ attrs: { "model-value": t.timeModelValue }, on: { "update:model-value": function(i) {
91
+ } } }, "bento-input-field", a.resolvedDateProps, !1)), t.showTimeInput ? e(a.BentoInputTime, t._b({ attrs: { "model-value": t.timeModelValue }, on: { click: function(i) {
92
+ return t.$emit("click");
93
+ }, "update:model-value": function(i) {
90
94
  return t.$emit("update:time-model-value", i);
91
95
  }, "input:error": function(i) {
92
96
  return t.$emit("time:error");
93
97
  }, "input:valid": function(i) {
94
98
  return t.$emit("time:valid");
95
99
  } } }, "bento-input-time", a.resolvedTimeProps, !1)) : t._e()], 1);
96
- }, Ha = [], Ka = /* @__PURE__ */ _e(
97
- ja,
98
- Ja,
99
- Ha,
100
+ }, ot = [], lt = /* @__PURE__ */ Be(
101
+ rt,
102
+ st,
103
+ ot,
100
104
  !1,
101
105
  null,
102
106
  null
103
107
  );
104
- const Xa = Ka.exports, Za = ({
105
- firstDayOfWeek: o,
108
+ const it = lt.exports, ut = ({
109
+ firstDayOfWeek: l,
106
110
  min: t,
107
111
  max: e
108
112
  }) => ({ getGranularCalendarLimits: (i) => {
109
113
  if (!t && !e)
110
114
  return { min: null, max: null };
111
- let m = t ? b(t) : null, p = e ? B(e) : null;
115
+ let m = t ? k(t) : null, p = e ? N(e) : null;
112
116
  if (i?.type === "weekly") {
113
117
  if (i.earliest)
114
- m = b(i.earliest);
118
+ m = k(i.earliest);
115
119
  else if (m) {
116
- const y = We(m, { weekStartsOn: o });
117
- P(m, y) || (m = b(Ya(Ce(m, { weekStartsOn: o }), 1)));
120
+ const h = He(m, { weekStartsOn: l });
121
+ x(m, h) || (m = k(xa(Qe(m, { weekStartsOn: l }), 1)));
118
122
  }
119
123
  if (i.latest)
120
- p = B(i.latest);
124
+ p = N(i.latest);
121
125
  else if (p) {
122
- const y = Ce(p, { weekStartsOn: o });
123
- P(p, y) || (p = B(ba(We(p, { weekStartsOn: o }), 1)));
126
+ const h = Qe(p, { weekStartsOn: l });
127
+ x(p, h) || (p = N(Pa(He(p, { weekStartsOn: l }), 1)));
124
128
  }
125
129
  }
126
130
  if (i?.type === "monthly") {
127
131
  if (i.earliest)
128
- m = b(i.earliest);
132
+ m = k(i.earliest);
129
133
  else if (m) {
130
- const y = Be(m);
131
- P(m, y) || (m = Be(Aa(m, 1)));
134
+ const h = Ge(m);
135
+ x(m, h) || (m = Ge(Oa(m, 1)));
132
136
  }
133
137
  if (i.latest)
134
- p = B(i.latest);
138
+ p = N(i.latest);
135
139
  else if (p) {
136
- const y = Le(p);
137
- P(p, y) || (p = Le(ka(p, 1)));
140
+ const h = Je(p);
141
+ x(p, h) || (p = Je(Ba(p, 1)));
138
142
  }
139
143
  }
140
144
  if (i?.type === "quarterly") {
141
145
  if (i.earliest)
142
- m = re(i.earliest);
146
+ m = pe(i.earliest);
143
147
  else if (m) {
144
- const y = re(m);
145
- P(m, y) || (m = re(_a(m, 1)));
148
+ const h = pe(m);
149
+ x(m, h) || (m = pe(qa(m, 1)));
146
150
  }
147
151
  if (i.latest)
148
- p = B(i.latest);
152
+ p = N(i.latest);
149
153
  else if (p) {
150
- const y = Ne(p);
151
- P(p, y) || (p = Ne(Ia(p, 1)));
154
+ const h = $e(p);
155
+ x(p, h) || (p = $e(Ca(p, 1)));
152
156
  }
153
157
  }
154
158
  return { min: m, max: p };
155
- } }), et = () => {
156
- const o = ve({
159
+ } }), dt = () => {
160
+ const l = be({
157
161
  daily: null,
158
162
  weekly: null,
159
163
  monthly: null,
160
164
  quarterly: null
161
165
  });
162
166
  return {
163
- savedRanges: o,
167
+ savedRanges: l,
164
168
  saveRange: (a, i) => {
165
- o[a] = i;
169
+ l[a] = i;
166
170
  },
167
171
  resetSavedRanges: () => {
168
- o.daily = null, o.weekly = null, o.monthly = null, o.quarterly = null;
172
+ l.daily = null, l.weekly = null, l.monthly = null, l.quarterly = null;
169
173
  }
170
174
  };
171
175
  };
172
- var D = /* @__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))(D || {});
173
- const at = {
176
+ var D = /* @__PURE__ */ ((l) => (l.CUSTOM_RANGE = "custom-range", l.INPUT = "input", l.ERROR = "error", l.FORM_DATE = "form-date", l.START_DATE_SELECTED = "start-date-selected", l))(D || {});
177
+ const ct = {
174
178
  "de-DE": { "DD-MM-YYYY": "TT-MM-JJJJ", "MM-DD-YYYY": "MM-TT-JJJJ", "YYYY-MM-DD": "JJJJ-MM-TT", customRange: "Benutzerdefinierter Bereich", daily: "Täglich", dateFrom: "Datum von", dateTo: "Datum bis", invalidDateFormat: "Ungültiges Datumsformat", lastMonth: "Letzter Monat", lastSevenDays: "Letzte 7 Tage", lastThreeMonths: "Letzte drei Monate", maxRangeDays: "Sie können bis zu {count} Tag auswählen | Sie können bis zu {count} Tage auswählen", maxRangeMonths: "Sie können bis zu {count} Monat auswählen | Sie können bis zu {count} Monate auswählen", maxRangeQuarters: "Sie können bis zu {count} Quartal auswählen | Sie können bis zu {count} Quartale auswählen", maxRangeWeeks: "Sie können bis zu {count} Woche auswählen | Sie können bis zu {count} Wochen auswählen", monthly: "Monatlich", quarterly: "Vierteljährlich", selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar", startDateMustPrecedeEndDate: "Das Anfangsdatum muss vor dem Enddatum liegen", timeFrom: "Zeit von", timeTo: "Zeit bis", weekly: "Wöchentlich" },
175
179
  "en-GB": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", invalidDateFormat: "Invalid date format", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "The last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", selectedDateIsNotAvailable: "Selected date is not available", startDateMustPrecedeEndDate: "Start date must precede end date", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
176
180
  "en-US": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", from: "From", invalidDateFormat: "Invalid date format", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "Last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", selectedDateIsNotAvailable: "Selected date is not available", startDateMustPrecedeEndDate: "Start date must precede end date", timeFrom: "Time from", timeTo: "Time to", to: "To", weekly: "Weekly" },
@@ -182,11 +186,11 @@ const at = {
182
186
  "ja-JP": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "カスタム範囲", daily: "毎日", dateFrom: "開始日", dateTo: "終了日", invalidDateFormat: "無効な日付形式", lastMonth: "先月", lastSevenDays: "過去 7 日間", lastThreeMonths: "過去3か月", maxRangeDays: "{count}日間まで選択できます | {count}日間まで選択できます", maxRangeMonths: "{count}か月まで選択できます | {count}か月まで選択できます", maxRangeQuarters: "{count}四半期まで選択できます | {count}四半期まで選択できます", maxRangeWeeks: "{count}週間まで選択できます | {count}週間まで選択できます", monthly: "毎月", quarterly: "四半期ごと", selectedDateIsNotAvailable: "選択した日付は利用できません", startDateMustPrecedeEndDate: "開始日は終了日より前にする必要があります", timeFrom: "開始時刻", timeTo: "終了時刻", weekly: "毎週" },
183
187
  "pt-BR": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Intervalo personalizado", daily: "Diário", dateFrom: "Data a partir de", dateTo: "Data até", invalidDateFormat: "Formato de data inválido", lastMonth: "Último mês", lastSevenDays: "Últimos 7 dias", lastThreeMonths: "Últimos 3 meses", maxRangeDays: "Você pode selecionar até {count} dia | Você pode selecionar até {count} dias", maxRangeMonths: "Você pode selecionar até {count} mês | Você pode selecionar até {count} meses", maxRangeQuarters: "Você pode selecionar até {count} trimestre | Você pode selecionar até {count} trimestres", maxRangeWeeks: "Você pode selecionar até {count} semana | Você pode selecionar até {count} semanas", monthly: "Mensal", quarterly: "Trimestral", selectedDateIsNotAvailable: "A data selecionada não está disponível", startDateMustPrecedeEndDate: "A data de início deve preceder a data de término", timeFrom: "Horário a partir de", timeTo: "Horário até", weekly: "Semanal" },
184
188
  "zh-CN": { "DD-MM-YYYY": "日-月-年", "MM-DD-YYYY": "月-日-年", "YYYY-MM-DD": "年-月-日", customRange: "自定义范围", daily: "每日", dateFrom: "日期自", dateTo: "日期至", invalidDateFormat: "日期格式无效", lastMonth: "上个月", lastSevenDays: "最近 7 天", lastThreeMonths: "过去三个月", maxRangeDays: "您可以选择最多 {count} 天 | 您可以选择最多 {count} 天", maxRangeMonths: "您可以选择最多 {count} 个月 | 您可以选择最多 {count} 个月", maxRangeQuarters: "您最多可以选择 {count} 个季度 | 您最多可以选择 {count} 个季度", maxRangeWeeks: "您最多可以选择 {count} 周 | 您最多可以选择 {count} 周", monthly: "每月", quarterly: "每季度", selectedDateIsNotAvailable: "所选日期不可用", startDateMustPrecedeEndDate: "开始日期必须早于结束日期", timeFrom: "时间自", timeTo: "是时候", weekly: "每周" }
185
- }, tt = {
189
+ }, mt = {
186
190
  name: "date-range-picker-calendar",
187
- i18n: { messages: at }
188
- }, nt = /* @__PURE__ */ be({
189
- ...tt,
191
+ i18n: { messages: ct }
192
+ }, Dt = /* @__PURE__ */ xe({
193
+ ...mt,
190
194
  props: {
191
195
  /**
192
196
  * Allows user to enter time values in the form
@@ -233,12 +237,16 @@ const at = {
233
237
  numberOfMonths: {
234
238
  type: C.props.numberOfMonths.type,
235
239
  default: C.props.numberOfMonths.default,
236
- validator: (o) => o >= 0
240
+ validator: (l) => l >= 0
237
241
  },
238
242
  /**
239
243
  * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
240
244
  */
241
245
  showEndDateOnOpen: { type: Boolean, default: !1 },
246
+ /**
247
+ * Limits the selectable times to a fixed interval, expressed in minutes.
248
+ */
249
+ timeInterval: { type: Number, default: null },
242
250
  /**
243
251
  * Enables the custom range selector.
244
252
  * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
@@ -270,289 +278,302 @@ const at = {
270
278
  D.FORM_DATE,
271
279
  D.START_DATE_SELECTED
272
280
  ],
273
- setup(o, { emit: t }) {
274
- const e = o, a = 300, i = "customRange", m = {
281
+ setup(l, { emit: t }) {
282
+ const e = l, a = 300, i = "customRange", m = {
275
283
  daily: "maxRangeDays",
276
284
  weekly: "maxRangeWeeks",
277
285
  monthly: "maxRangeMonths",
278
286
  quarterly: "maxRangeQuarters"
279
- }, p = ua(), y = ha(p), { t: E, tc: N } = Ae(), { isTouchDevice: f } = Ta(), {
280
- dateFormat: se,
281
- isFormatValid: H,
282
- parseDate: v,
283
- onKeyDown: A,
284
- autoFormat: k,
285
- formatDate: z
286
- } = ke(), R = I({}), K = c(() => e.variant === "month" ? "monthly" : "daily"), X = c(() => e.numberOfMonths === 0), r = ve({
287
+ }, p = ya(), h = Ea(p), { t: w, tc: L } = Pe(), { isTouchDevice: g } = wa(), {
288
+ dateFormat: ve,
289
+ isFormatValid: ne,
290
+ parseDate: f,
291
+ onKeyDown: F,
292
+ autoFormat: A,
293
+ formatDate: W
294
+ } = Oe(), Q = E({}), b = E(null), re = c(() => e.variant === "month" ? "monthly" : "daily"), se = c(() => e.numberOfMonths === 0), M = (n, o) => e.timeInterval ? ta(n, e.timeInterval, o) : n, K = (n) => {
295
+ const o = N(n);
296
+ return e.timeInterval ? Ye(o, M(Y(o), "up")) : o;
297
+ }, r = be({
287
298
  startDate: e.value?.startDate,
288
299
  endDate: e.value?.endDate,
289
300
  range: e.value?.range,
290
301
  ...e.granularities ? {
291
- granularity: e.value?.granularity || K.value
302
+ granularity: e.value?.granularity || re.value
292
303
  } : {}
293
- }), F = c(() => (
304
+ }), P = c(() => (
294
305
  // eslint-disable-next-line consistent-return
295
- e?.quickSelectRanges?.find(({ value: n, data: l }) => {
296
- if (!l.endDate) {
297
- if (l.isRelativeToNow) {
298
- const u = R.value?.[n];
299
- return u ? ne(u.startDate, r.startDate) && ne(u.endDate, r.endDate) : (
306
+ e?.quickSelectRanges?.find(({ value: n, data: o }) => {
307
+ if (!o.endDate) {
308
+ if (o.isRelativeToNow) {
309
+ const d = Q.value?.[n];
310
+ return d ? me(d.startDate, r.startDate) && me(d.endDate, r.endDate) : (
300
311
  // If not stored calculated dates, fall back to comparing the quick select item's value
301
312
  // with the internal range's stored range identifier.
302
313
  n === r.range
303
314
  );
304
315
  }
305
- return ne(l.startDate, r.startDate) && Ua(r.endDate) && (!e.allowTimeInput || Te(r.endDate, B(r.endDate))) && (e.granularities ? l.granularity === r.granularity : !0);
316
+ return me(o.startDate, r.startDate) && tt(r.endDate) && (!e.allowTimeInput || Fe(
317
+ r.endDate,
318
+ K(r.endDate)
319
+ )) && (e.granularities ? o.granularity === r.granularity : !0);
306
320
  }
307
321
  if (e.allowTimeInput)
308
- return Te(l.startDate, r.startDate) && Te(l.endDate, r.endDate) && (e.granularities ? l.granularity === r.granularity : !0);
309
- if (l.endDate)
310
- return P(l.startDate, r.startDate) && P(l.endDate, r.endDate) && (e.granularities ? l.granularity === r.granularity : !0);
322
+ return Fe(o.startDate, r.startDate) && Fe(o.endDate, r.endDate) && (e.granularities ? o.granularity === r.granularity : !0);
323
+ if (o.endDate)
324
+ return x(o.startDate, r.startDate) && x(o.endDate, r.endDate) && (e.granularities ? o.granularity === r.granularity : !0);
311
325
  })?.value ?? i
312
- )), ge = c(() => [
313
- { label: E("customRange"), value: i },
326
+ )), ke = c(() => [
327
+ { label: w("customRange"), value: i },
314
328
  ...e.quickSelectRanges ? e.quickSelectRanges : []
315
- ]), V = c(
329
+ ]), z = c(
316
330
  () => e.granularities?.find(({ type: n }) => n === r.granularity) || null
317
- ), Me = c(
318
- () => e.granularities?.map(({ type: n, disabled: l }) => ({
319
- label: E(n),
331
+ ), fe = c(
332
+ () => e.granularities?.map(({ type: n, disabled: o }) => ({
333
+ label: w(n),
320
334
  value: n,
321
- disabled: l
335
+ disabled: o
322
336
  })) ?? []
323
- ), { getGranularCalendarLimits: L } = Za(e), G = c(
324
- () => e.granularities ? L(V.value) : { min: e.min ? b(e.min) : null, max: e.max ? B(e.max) : null }
325
- ), { normalizeRange: oe } = Sa(e.firstDayOfWeek), { savedRanges: W, saveRange: Z, resetSavedRanges: Q } = et(), Y = (n) => n ? z(n) : "", U = (n, l = !0) => {
337
+ ), { getGranularCalendarLimits: ge } = ut(e), X = c(
338
+ () => e.granularities ? ge(z.value) : { min: e.min ? k(e.min) : null, max: e.max ? N(e.max) : null }
339
+ ), { normalizeRange: Z } = Na(e.firstDayOfWeek), { savedRanges: G, saveRange: ee, resetSavedRanges: U } = dt(), _ = (n) => n ? W(n) : "", ae = (n, o = !0) => {
326
340
  if (!r.startDate || !r.endDate)
327
341
  return;
328
- const u = oe({
342
+ const d = Z({
329
343
  startDate: r.startDate,
330
344
  endDate: r.endDate,
331
345
  fixedEndpoint: n,
332
- granularity: V.value,
333
- alignToGranularity: l,
346
+ granularity: z.value,
347
+ alignToGranularity: o,
334
348
  fallbackMaxRange: e.maxRange,
335
- min: G.value.min,
336
- max: G.value.max
349
+ min: X.value.min,
350
+ max: X.value.max
337
351
  });
338
- ne(u.startDate, r.startDate) && ne(u.endDate, r.endDate) || (r.startDate = u.startDate, r.endDate = u.endDate, s.startDate = Y(u.startDate), s.endDate = Y(u.endDate));
339
- }, h = I(null), g = I(null), le = c(() => h.value ? E(h.value) : null), ee = c(() => g.value ? E(g.value) : null), $ = c(
340
- () => h.value === "invalidDateFormat" ? null : le.value
341
- ), w = c(() => g.value === "invalidDateFormat" ? null : ee.value), T = (n, l, u, M) => {
342
- if (!n || !H(n))
352
+ me(d.startDate, r.startDate) && me(d.endDate, r.endDate) || (r.startDate = d.startDate, r.endDate = d.endDate, s.startDate = _(d.startDate), s.endDate = _(d.endDate));
353
+ }, y = E(null), T = E(null), oe = c(() => y.value ? w(y.value) : null), j = c(() => T.value ? w(T.value) : null), O = c(
354
+ () => y.value === "invalidDateFormat" ? null : oe.value
355
+ ), $ = c(() => T.value === "invalidDateFormat" ? null : j.value), v = (n, o, d, R) => {
356
+ if (!n || !ne(n))
343
357
  return "invalidDateFormat";
344
- const _ = v(n), q = b(_);
345
- if (e.min && q < b(e.min) || e.max && q > b(e.max) || e.isDateDisabled && e.isDateDisabled(q))
358
+ const V = f(n), S = k(V);
359
+ if (e.min && S < k(e.min) || e.max && S > k(e.max) || e.isDateDisabled && e.isDateDisabled(S))
346
360
  return "selectedDateIsNotAvailable";
347
- if (l) {
348
- const we = M ? De(M, 0).getTime() : q.getTime(), Oe = M ? De(l, 0).getTime() : b(l).getTime();
349
- if (u === "start" ? we >= Oe : we <= Oe)
361
+ if (o) {
362
+ const ie = R ? Re(R, 0).getTime() : S.getTime(), ue = R ? Re(o, 0).getTime() : k(o).getTime();
363
+ if (d === "start" ? ie >= ue : ie <= ue)
350
364
  return "startDateMustPrecedeEndDate";
351
365
  }
352
366
  return null;
353
- }, s = ve({
367
+ }, s = be({
354
368
  startDate: e.dateFormData.startDate,
355
369
  endDate: e.dateFormData.endDate,
356
- startTime: e.dateFormData.startTime,
357
- endTime: e.dateFormData.endTime
358
- }), ae = (n, l) => {
359
- const u = () => {
360
- if (l && d(l)) {
361
- const M = Qe(v(l), n);
362
- if (e.min && M < De(e.min, 0) || e.max && M > De(e.max, 0))
370
+ startTime: M(e.dateFormData.startTime, "down"),
371
+ endTime: M(e.dateFormData.endTime, "up")
372
+ }), J = (n, o) => {
373
+ const d = () => {
374
+ if (o && H(o)) {
375
+ const R = Ye(f(o), n);
376
+ if (e.min && R < Re(e.min, 0) || e.max && R > Re(e.max, 0))
363
377
  return !1;
364
378
  }
365
379
  return !0;
366
380
  };
367
- return Ge(n) && u();
368
- }, x = c(() => e.variant === "month"), j = (n) => n ? x.value ? Ea(n) : Fa(n) : "", ie = c(() => j(r.startDate)), ye = c(() => j(r.endDate)), Ie = c(() => f.value ? x.value ? "month" : "date" : "text"), Se = c(() => f.value ? ie.value : s.startDate), Ee = c(() => f.value ? ye.value : s.endDate), O = (n, l) => !l || !Ge(l) || e.variant === "month" ? n : Qe(new Date(n), l), Fe = (n) => {
369
- s.startTime = S(
370
- e.min && e.allowTimeInput && P(e.min, n.startDate) ? e.min : b(n.startDate)
371
- ), s.endTime = S(
372
- e.max && e.allowTimeInput && P(e.max, n.endDate) ? e.max : B(n.endDate)
373
- ), r.startDate = O(n.startDate, s.startTime), r.endDate = O(n.endDate, s.endTime), r.range = null, e.granularities && Q(), t(D.INPUT, {
381
+ return Ke(n) && d();
382
+ }, B = c(() => e.variant === "month"), le = (n) => n ? B.value ? za(n) : Va(n) : "", Ae = c(() => le(r.startDate)), _e = c(() => le(r.endDate)), qe = c(() => g.value ? B.value ? "month" : "date" : "text"), Ce = c(() => g.value ? Ae.value : s.startDate), Ne = c(() => g.value ? _e.value : s.endDate), I = (n, o) => !o || !Ke(o) || e.variant === "month" ? n : Ye(new Date(n), o), u = (n, o = !1) => {
383
+ if (!o) {
384
+ const d = e.min && e.allowTimeInput && x(e.min, n.startDate), R = e.max && e.allowTimeInput && x(e.max, n.endDate);
385
+ s.startTime = d ? M(Y(e.min), "up") : M(Y(k(n.startDate)), "down"), s.endTime = R ? M(Y(e.max), "down") : M(Y(N(n.endDate)), "up");
386
+ }
387
+ r.startDate = I(n.startDate, s.startTime), r.endDate = I(n.endDate, s.endTime), r.range = null, e.granularities && U(), t(D.INPUT, {
374
388
  ...r,
375
- range: F.value
389
+ range: P.value
376
390
  });
377
- }, d = (n) => !!n && !T(n);
378
- je(() => {
379
- h.value = e.dateFormData.startDate ? T(e.dateFormData.startDate) : null, g.value = e.dateFormData.endDate ? T(e.dateFormData.endDate) : null;
391
+ }, q = (n) => {
392
+ u(n);
393
+ }, te = () => {
394
+ const n = b.value?.finalizeRangeSelection();
395
+ n && u(n, !0);
396
+ }, H = (n) => !!n && !v(n);
397
+ ea(() => {
398
+ y.value = e.dateFormData.startDate ? v(e.dateFormData.startDate) : null, T.value = e.dateFormData.endDate ? v(e.dateFormData.endDate) : null;
380
399
  });
381
- const J = (n) => {
382
- s.startDate = Y(n), s.startTime || (s.startTime = S(n)), h.value = null, g.value === "startDateMustPrecedeEndDate" && (g.value = null), t(D.START_DATE_SELECTED, n);
383
- }, ue = (n) => {
384
- s.endDate = Y(n), s.endTime || (s.endTime = S(B(n))), g.value = null, h.value === "startDateMustPrecedeEndDate" && (h.value = null);
385
- }, de = (n) => {
386
- const l = e.value?.[n];
387
- if (l)
388
- return l;
389
- if (e.dateFormData[n] && d(e.dateFormData[n]))
390
- return v(e.dateFormData[n]);
391
- }, ce = (n, l = !1) => {
392
- if (d(n)) {
393
- const u = n;
394
- h.value = null, s.startDate = u;
395
- const M = b(v(u));
396
- r.startDate = O(M, s.startTime), d(s.endDate) && (r.endDate = O(
397
- b(v(s.endDate)),
400
+ const na = (n) => {
401
+ s.startDate = _(n), s.startTime || (s.startTime = M(Y(n), "down")), y.value = null, T.value === "startDateMustPrecedeEndDate" && (T.value = null), t(D.START_DATE_SELECTED, n);
402
+ }, ra = (n) => {
403
+ s.endDate = _(n), s.endTime || (s.endTime = M(Y(N(n)), "up")), T.value = null, y.value === "startDateMustPrecedeEndDate" && (y.value = null);
404
+ }, ye = (n) => {
405
+ const o = e.value?.[n];
406
+ if (o)
407
+ return o;
408
+ if (e.dateFormData[n] && H(e.dateFormData[n]))
409
+ return f(e.dateFormData[n]);
410
+ }, Me = (n, o = !1) => {
411
+ if (H(n)) {
412
+ const d = n;
413
+ y.value = null, s.startDate = d;
414
+ const R = k(f(d));
415
+ r.startDate = I(R, s.startTime), H(s.endDate) && (r.endDate = I(
416
+ k(f(s.endDate)),
398
417
  s.endTime
399
418
  ));
400
- const _ = de("endDate"), q = T(
401
- u,
402
- e.allowTimeInput ? r.endDate : _,
419
+ const V = ye("endDate"), S = v(
420
+ d,
421
+ e.allowTimeInput ? r.endDate : V,
403
422
  "start",
404
423
  e.allowTimeInput ? r.startDate : void 0
405
424
  );
406
- if (q) {
407
- h.value = q, t(D.ERROR, { ...s });
425
+ if (S) {
426
+ y.value = S, t(D.ERROR, { ...s });
408
427
  return;
409
428
  }
410
- g.value === "startDateMustPrecedeEndDate" && (g.value = null), U("end", l), r.range = null, t(D.FORM_DATE, {
429
+ T.value === "startDateMustPrecedeEndDate" && (T.value = null), ae("end", o), r.range = null, t(D.FORM_DATE, {
411
430
  startDate: r.startDate,
412
431
  endDate: r.endDate
413
432
  }), t(D.INPUT, {
414
433
  ...r,
415
- range: F.value
434
+ range: P.value
416
435
  });
417
436
  } else
418
- h.value = T(n), t(D.ERROR, { ...s });
419
- }, xe = qe(ce, a), He = (n) => {
420
- s.startDate = f.value && x.value ? n : k(n), f.value ? x.value && n ? ce(Y(ze(n)), !0) : s.startDate ? ce(s.startDate) : h.value = null : xe(s.startDate);
421
- }, me = (n, l = !1) => {
422
- if (d(n)) {
423
- const u = n;
424
- g.value = null, s.endDate = u;
425
- const M = b(v(u));
426
- r.endDate = O(M, s.endTime), d(s.startDate) && (r.startDate = O(
427
- b(v(s.startDate)),
437
+ y.value = v(n), t(D.ERROR, { ...s });
438
+ }, ze = We(Me, a), sa = (n) => {
439
+ s.startDate = g.value && B.value ? n : A(n), g.value ? B.value && n ? Me(_(Ue(n)), !0) : s.startDate ? Me(s.startDate) : y.value = null : ze(s.startDate);
440
+ }, he = (n, o = !1) => {
441
+ if (H(n)) {
442
+ const d = n;
443
+ T.value = null, s.endDate = d;
444
+ const R = k(f(d));
445
+ r.endDate = I(R, s.endTime), H(s.startDate) && (r.startDate = I(
446
+ k(f(s.startDate)),
428
447
  s.startTime
429
448
  ));
430
- const _ = de("startDate"), q = T(
431
- u,
432
- e.allowTimeInput ? r.startDate : _,
449
+ const V = ye("startDate"), S = v(
450
+ d,
451
+ e.allowTimeInput ? r.startDate : V,
433
452
  "end",
434
453
  e.allowTimeInput ? r.endDate : void 0
435
454
  );
436
- if (q) {
437
- g.value = q, t(D.ERROR, { ...s });
455
+ if (S) {
456
+ T.value = S, t(D.ERROR, { ...s });
438
457
  return;
439
458
  }
440
- h.value === "startDateMustPrecedeEndDate" && (h.value = null), U("start", l), r.range = null, t(D.FORM_DATE, {
459
+ y.value === "startDateMustPrecedeEndDate" && (y.value = null), ae("start", o), r.range = null, t(D.FORM_DATE, {
441
460
  startDate: r.startDate,
442
461
  endDate: r.endDate
443
462
  }), t(D.INPUT, {
444
463
  ...r,
445
- range: F.value
464
+ range: P.value
446
465
  });
447
466
  } else
448
- g.value = T(n), t(D.ERROR, { ...s });
449
- }, Pe = qe(me, a), Ke = (n) => {
450
- s.endDate = f.value && x.value ? n : k(n), f.value ? x.value && n ? me(Y(ze(n)), !0) : s.endDate ? me(s.endDate) : g.value = null : Pe(s.endDate);
451
- }, Xe = (n) => {
452
- A(n);
453
- }, Ze = () => {
467
+ T.value = v(n), t(D.ERROR, { ...s });
468
+ }, Ve = We(he, a), oa = (n) => {
469
+ s.endDate = g.value && B.value ? n : A(n), g.value ? B.value && n ? he(_(Ue(n)), !0) : s.endDate ? he(s.endDate) : T.value = null : Ve(s.endDate);
470
+ }, la = (n) => {
471
+ F(n);
472
+ }, ia = () => {
454
473
  t(D.ERROR, { ...s });
455
- }, ea = () => {
474
+ }, ua = () => {
456
475
  const n = s.startTime;
457
- if (!ae(n, s.startDate)) {
476
+ if (!J(n, s.startDate)) {
458
477
  t(D.ERROR, { ...s });
459
478
  return;
460
479
  }
461
- if (r.startDate = O(r.startDate, n), s.startDate && r.endDate) {
462
- const u = T(
480
+ if (r.startDate = I(r.startDate, n), s.startDate && r.endDate) {
481
+ const d = v(
463
482
  s.startDate,
464
483
  r.endDate,
465
484
  "start",
466
485
  r.startDate
467
486
  );
468
- if (u) {
469
- h.value = u, t(D.ERROR, { ...s });
487
+ if (d) {
488
+ y.value = d, t(D.ERROR, { ...s });
470
489
  return;
471
490
  }
472
491
  }
473
- h.value = null, g.value === "startDateMustPrecedeEndDate" && (g.value = null);
474
- const l = de("endDate");
492
+ y.value = null, T.value === "startDateMustPrecedeEndDate" && (T.value = null);
493
+ const o = ye("endDate");
475
494
  t(D.FORM_DATE, {
476
495
  startDate: r.startDate,
477
- endDate: l,
496
+ endDate: o,
478
497
  startTime: n,
479
498
  endTime: s.endTime ?? e.dateFormData.endTime
480
499
  }), t(D.INPUT, {
481
500
  ...r,
482
- range: F.value
501
+ range: P.value
483
502
  });
484
- }, aa = () => {
503
+ }, da = () => {
485
504
  t(D.ERROR, { ...s });
486
- }, ta = () => {
505
+ }, ca = () => {
487
506
  const n = s.endTime;
488
- if (!ae(n, s.endDate)) {
507
+ if (!J(n, s.endDate)) {
489
508
  t(D.ERROR, { ...s });
490
509
  return;
491
510
  }
492
- if (r.endDate = O(r.endDate, n), s.endDate && r.startDate) {
493
- const l = T(
511
+ if (r.endDate = I(r.endDate, n), s.endDate && r.startDate) {
512
+ const o = v(
494
513
  s.endDate,
495
514
  r.startDate,
496
515
  "end",
497
516
  r.endDate
498
517
  );
499
- if (l) {
500
- g.value = l, t(D.ERROR, { ...s });
518
+ if (o) {
519
+ T.value = o, t(D.ERROR, { ...s });
501
520
  return;
502
521
  }
503
522
  }
504
- g.value = null, h.value === "startDateMustPrecedeEndDate" && (h.value = null), t(D.FORM_DATE, {
523
+ T.value = null, y.value === "startDateMustPrecedeEndDate" && (y.value = null), t(D.FORM_DATE, {
505
524
  startDate: r.startDate,
506
525
  endDate: r.endDate,
507
526
  startTime: s.startTime ?? e.dateFormData.startTime,
508
527
  endTime: n
509
528
  }), t(D.INPUT, {
510
529
  ...r,
511
- range: F.value
530
+ range: P.value
512
531
  });
513
- }, na = (n) => {
532
+ }, ma = (n) => {
514
533
  s.startTime = n;
515
- }, ra = (n) => {
534
+ }, Da = (n) => {
516
535
  s.endTime = n;
517
- }, he = (n, l, u, M) => {
518
- r.startDate = n, r.endDate = l, u && (r.granularity = u), M && (r.range = M);
519
- }, sa = (n) => {
520
- const l = e.quickSelectRanges?.find(({ value: u }) => u === n);
521
- if (l) {
522
- Q();
523
- const u = l.data, M = u.endDate || (u.isRelativeToNow ? new Date(Date.now()) : B(new Date(Date.now()))), _ = u.isRelativeToNow && u.timeDifference ? new Date(M.getTime() - u.timeDifference) : u.startDate;
524
- s.endDate = Y(M), s.startDate = Y(_), he(_, M, null, n), e.granularities && (r.granularity = u.granularity || K.value), s.startTime = S(_), s.endTime = S(M), r.startDate = _, r.endDate = M, u.isRelativeToNow && (R.value = {
525
- ...R.value,
536
+ }, Se = (n, o, d, R) => {
537
+ r.startDate = n, r.endDate = o, d && (r.granularity = d), R && (r.range = R);
538
+ }, pa = (n) => {
539
+ const o = e.quickSelectRanges?.find(({ value: d }) => d === n);
540
+ if (o) {
541
+ U();
542
+ const d = o.data, R = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : N(new Date(Date.now()))), V = d.isRelativeToNow && d.timeDifference ? new Date(R.getTime() - d.timeDifference) : d.startDate, S = M(Y(V), "down"), ie = M(Y(R), "up"), ue = e.allowTimeInput && !!e.timeInterval, de = ue ? I(V, S) : V, Te = ue ? I(R, ie) : R;
543
+ s.endDate = _(Te), s.startDate = _(de), s.startTime = S, s.endTime = ie, Se(de, Te, null, n), e.granularities && (r.granularity = d.granularity || re.value), d.isRelativeToNow && (Q.value = {
544
+ ...Q.value,
526
545
  [n]: {
527
- startDate: _,
528
- endDate: M
546
+ startDate: de,
547
+ endDate: Te
529
548
  }
530
549
  }), t(D.CUSTOM_RANGE, {
531
- ...l.data,
532
- startDate: _,
533
- endDate: M,
534
- range: l.value
550
+ ...o.data,
551
+ startDate: de,
552
+ endDate: Te,
553
+ range: o.value
535
554
  });
536
555
  }
537
- }, oa = (n) => {
538
- const l = r.granularity;
539
- r.granularity = n, l && Z(l, structuredClone(Ye(r))), r.startDate && r.endDate && (W[n] && he(W[n].startDate, W[n].endDate, n), U("end"), s.startDate = Y(r.startDate), s.endDate = Y(r.endDate), t(D.INPUT, {
556
+ }, va = (n) => {
557
+ const o = r.granularity;
558
+ r.granularity = n, o && ee(o, structuredClone(we(r))), r.startDate && r.endDate && (G[n] && Se(G[n].startDate, G[n].endDate, n), ae("end"), s.startDate = _(r.startDate), s.endDate = _(r.endDate), t(D.INPUT, {
540
559
  ...r,
541
- range: F.value
560
+ range: P.value
542
561
  }));
543
- }, la = c(() => ({
544
- "b-date-range-picker-calendar__form-container--no-calendars": X.value || f.value
545
- })), ia = c(() => {
546
- const n = V.value, l = n?.maxRange || e.maxRange;
547
- if (!l)
562
+ }, fa = c(() => ({
563
+ "b-date-range-picker-calendar__form-container--no-calendars": se.value || g.value
564
+ })), ga = c(() => {
565
+ const n = z.value, o = n?.maxRange || e.maxRange;
566
+ if (!o)
548
567
  return null;
549
- const u = m[n?.type ?? "daily"];
550
- return N(u, l, { count: l });
551
- });
552
- return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: p, hasSlot: y, t: E, tc: N, isTouchDevice: f, dateFormat: se, isFormatValid: H, parseDate: v, onKeyDown: A, autoFormat: k, formatDateUtil: z, calculatedIsRelativeToNowQuickSelectRanges: R, defaultGranularity: K, hasNoCalendars: X, internalRangeDate: r, selectedRangeSelectorValue: F, quickSelectRangeDefaultItems: ge, selectedGranularity: V, granularityItems: Me, getGranularCalendarLimits: L, computedMinMax: G, normalizeRange: oe, savedRanges: W, saveRange: Z, resetSavedRanges: Q, formatDate: Y, normalizeInternalRange: U, startDateError: h, endDateError: g, startDateErrorText: le, endDateErrorText: ee, startSharedError: $, endSharedError: w, getDateErrorMessage: T, dateTextInput: s, isValidTime: ae, isMonthVariant: x, formatNativeDate: j, nativeStartDate: ie, nativeEndDate: ye, dateInputType: Ie, startDateValue: Se, endDateValue: Ee, setTimeInDateRef: O, onDateInput: Fe, isValidDate: d, onStartDateSelected: J, onEndDateSelected: ue, getDate: de, validateStartDate: ce, validateStartDateDebounced: xe, onStartDateInput: He, validateEndDate: me, validateEndDateDebounced: Pe, onEndDateInput: Ke, onDateInputKeyDown: Xe, onStartTimeError: Ze, onStartTimeValid: ea, onEndTimeError: aa, onEndTimeValid: ta, onStartTimeInput: na, onEndTimeInput: ra, setInternalRange: he, onRangeSelectorInput: sa, onGranularityInput: oa, computedFormContainerClasses: la, maxRangeMessage: ia, Calendar: C, DateTimeInput: Xa, BentoAlert: fa, BentoTypography: Je, BentoDropdown: ga, BentoSegmentedControl: ya };
568
+ const d = m[n?.type ?? "daily"];
569
+ return L(d, o, { count: o });
570
+ }), Le = () => {
571
+ !e.allowTimeInput || !e.timeInterval || (r.startDate && (r.startDate = I(r.startDate, s.startTime)), r.endDate && (r.endDate = I(r.endDate, s.endTime)));
572
+ };
573
+ return Le(), { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: p, hasSlot: h, t: w, tc: L, isTouchDevice: g, dateFormat: ve, isFormatValid: ne, parseDate: f, onKeyDown: F, autoFormat: A, formatDateUtil: W, calculatedIsRelativeToNowQuickSelectRanges: Q, calendarRef: b, defaultGranularity: re, hasNoCalendars: se, snapTime: M, resolveEndOfSelectableDay: K, internalRangeDate: r, selectedRangeSelectorValue: P, quickSelectRangeDefaultItems: ke, selectedGranularity: z, granularityItems: fe, getGranularCalendarLimits: ge, computedMinMax: X, normalizeRange: Z, savedRanges: G, saveRange: ee, resetSavedRanges: U, formatDate: _, normalizeInternalRange: ae, startDateError: y, endDateError: T, startDateErrorText: oe, endDateErrorText: j, startSharedError: O, endSharedError: $, getDateErrorMessage: v, dateTextInput: s, isValidTime: J, isMonthVariant: B, formatNativeDate: le, nativeStartDate: Ae, nativeEndDate: _e, dateInputType: qe, startDateValue: Ce, endDateValue: Ne, setTimeInDateRef: I, updateSelectedRange: u, onDateInput: q, finalizeHoveredRange: te, isValidDate: H, onStartDateSelected: na, onEndDateSelected: ra, getDate: ye, validateStartDate: Me, validateStartDateDebounced: ze, onStartDateInput: sa, validateEndDate: he, validateEndDateDebounced: Ve, onEndDateInput: oa, onDateInputKeyDown: la, onStartTimeError: ia, onStartTimeValid: ua, onEndTimeError: da, onEndTimeValid: ca, onStartTimeInput: ma, onEndTimeInput: Da, setInternalRange: Se, onRangeSelectorInput: pa, onGranularityInput: va, computedFormContainerClasses: fa, maxRangeMessage: ga, alignInitialRangeWithTimeInterval: Le, Calendar: C, DateTimeInput: it, BentoAlert: ka, BentoTypography: aa, BentoDropdown: Aa, BentoSegmentedControl: Sa };
553
574
  }
554
575
  });
555
- var rt = function() {
576
+ var pt = function() {
556
577
  var t = this, e = t._self._c, a = t._self._setupProxy;
557
578
  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() {
558
579
  return [t._v(" " + t._s(a.maxRangeMessage) + " ")];
@@ -563,25 +584,27 @@ var rt = function() {
563
584
  errorMessage: a.startDateErrorText
564
585
  }, "error-message": a.startSharedError, "show-time-input": t.allowTimeInput, "time-model-value": a.dateTextInput.startTime, "time-props": {
565
586
  "aria-label": a.t("timeFrom"),
566
- errorMessage: a.startSharedError
567
- } }, on: { "update:date-model-value": a.onStartDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onStartTimeInput, "time:error": a.onStartTimeError, "time:valid": a.onStartTimeValid } })], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" " + t._s(a.t("to")) + " ")]), e(a.DateTimeInput, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "date-model-value": a.endDateValue, "date-props": {
587
+ errorMessage: a.startSharedError,
588
+ interval: t.timeInterval
589
+ } }, on: { click: a.finalizeHoveredRange, "update:date-model-value": a.onStartDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onStartTimeInput, "time:error": a.onStartTimeError, "time:valid": a.onStartTimeValid } })], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" " + t._s(a.t("to")) + " ")]), e(a.DateTimeInput, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "date-model-value": a.endDateValue, "date-props": {
568
590
  "aria-label": a.t("dateTo"),
569
591
  type: a.dateInputType,
570
592
  description: a.isTouchDevice ? void 0 : a.t(a.dateFormat),
571
593
  errorMessage: a.endDateErrorText
572
594
  }, "error-message": a.endSharedError, "show-time-input": t.allowTimeInput, "time-model-value": a.dateTextInput.endTime, "time-props": {
573
595
  "aria-label": a.t("timeTo"),
574
- errorMessage: a.endSharedError
575
- } }, on: { "update:date-model-value": a.onEndDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onEndTimeInput, "time:error": a.onEndTimeError, "time:valid": a.onEndTimeValid } })], 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, "year-range": t.yearRange, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1) : t._e()]);
576
- }, st = [], ot = /* @__PURE__ */ _e(
577
- nt,
578
- rt,
579
- st,
596
+ errorMessage: a.endSharedError,
597
+ interval: t.timeInterval
598
+ } }, on: { click: a.finalizeHoveredRange, "update:date-model-value": a.onEndDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onEndTimeInput, "time:error": a.onEndTimeError, "time:valid": a.onEndTimeValid } })], 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, { ref: "calendarRef", 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, "year-range": t.yearRange, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1) : t._e()]);
599
+ }, vt = [], ft = /* @__PURE__ */ Be(
600
+ Dt,
601
+ pt,
602
+ vt,
580
603
  !1,
581
604
  null,
582
- "41d7722c"
605
+ "379e2e7b"
583
606
  );
584
- const lt = ot.exports, it = {
607
+ const gt = ft.exports, yt = {
585
608
  "de-DE": { apply: "Anwenden", cancel: "Abbrechen", dateRangePicker: "Datumsbereichauswahl {name}", invalidDateFormat: "Ungültiges Datumsformat", quarter: "Q{quarter} {year}", selectDate: "Wählen Sie ein Datum", selectDateRange: "Wählen Sie einen Datumsbereich aus", selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar" },
586
609
  "en-GB": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", invalidDateFormat: "Invalid date format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
587
610
  "en-US": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", invalidDateFormat: "Invalid date format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
@@ -593,69 +616,69 @@ const lt = ot.exports, it = {
593
616
  "ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", invalidDateFormat: "無効な日付形式", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
594
617
  "pt-BR": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Seletor de intervalo de datas {name}", invalidDateFormat: "Formato de data inválido", quarter: "{quarter}º trimestre de {year}", selectDate: "Selecione uma data", selectDateRange: "Selecione um intervalo de datas", selectedDateIsNotAvailable: "A data selecionada não está disponível" },
595
618
  "zh-CN": { apply: "应用", cancel: "取消", dateRangePicker: "日期范围选择器 {name}", invalidDateFormat: "日期格式无效", quarter: "{year} {quarter} 季度", selectDate: "选择日期", selectDateRange: "选择日期范围", selectedDateIsNotAvailable: "所选日期不可用" }
596
- }, ut = ({
597
- datePickerValue: o,
619
+ }, Mt = ({
620
+ datePickerValue: l,
598
621
  isDateIncorrect: t,
599
622
  quickSelectRanges: e,
600
623
  isMonthVariant: a,
601
624
  withTimeInput: i,
602
625
  placeholder: m
603
626
  }) => {
604
- const { locale: p, t: y } = Ae(), { dateToInputDateString: E } = ke(), N = (v) => !!v && !isNaN(v.getTime()), f = ve({
627
+ const { locale: p, t: h } = Pe(), { dateToInputDateString: w } = Oe(), L = (f) => !!f && !isNaN(f.getTime()), g = be({
605
628
  startDate: null,
606
629
  endDate: null,
607
630
  startTime: null,
608
631
  endTime: null
609
632
  });
610
- return pe(
611
- o,
612
- (v) => {
613
- f.startDate = E(v?.startDate), f.endDate = E(v?.endDate), f.startTime = S(v?.startDate), f.endTime = S(v?.endDate);
633
+ return De(
634
+ l,
635
+ (f) => {
636
+ g.startDate = w(f?.startDate), g.endDate = w(f?.endDate), g.startTime = Y(f?.startDate), g.endTime = Y(f?.endDate);
614
637
  },
615
638
  { immediate: !0 }
616
639
  ), {
617
640
  // Values
618
641
  dateDisplayValue: c(() => {
619
642
  if (t.value)
620
- return `${f.startDate || ""} - ${f.endDate || ""}`;
621
- if (!o.value || !o.value.startDate && !o.value.endDate)
622
- return m?.value || y("selectDateRange");
643
+ return `${g.startDate || ""} - ${g.endDate || ""}`;
644
+ if (!l.value || !l.value.startDate && !l.value.endDate)
645
+ return m?.value || h("selectDateRange");
623
646
  if (e.value?.length) {
624
- const A = e.value.find(({ value: k }) => k === o.value?.range);
625
- if (A)
626
- return A.label;
647
+ const F = e.value.find(({ value: A }) => A === l.value?.range);
648
+ if (F)
649
+ return F.label;
627
650
  }
628
- if (o.value.granularity === "quarterly") {
629
- const { startDate: A, endDate: k } = o.value, z = y("quarter", { quarter: Ve(A), year: Ue(A) });
630
- if (Ga(A, k))
631
- return z;
632
- const R = y("quarter", { quarter: Ve(k), year: Ue(k) });
633
- return `${z} - ${R}`;
651
+ if (l.value.granularity === "quarterly") {
652
+ const { startDate: F, endDate: A } = l.value, W = h("quarter", { quarter: je(F), year: Xe(F) });
653
+ if (at(F, A))
654
+ return W;
655
+ const Q = h("quarter", { quarter: je(A), year: Xe(A) });
656
+ return `${W} - ${Q}`;
634
657
  }
635
- if (!N(o.value.startDate) || !N(o.value.endDate))
636
- return `${f.startDate || ""} - ${f.endDate || ""}`;
637
- let v = a?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
638
- return i.value && (v = {
639
- ...v,
658
+ if (!L(l.value.startDate) || !L(l.value.endDate))
659
+ return `${g.startDate || ""} - ${g.endDate || ""}`;
660
+ let f = a?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
661
+ return i.value && (f = {
662
+ ...f,
640
663
  hour: "numeric",
641
664
  minute: "numeric",
642
665
  second: "numeric",
643
666
  hour12: !1
644
- }), xa(p.value, v).formatRange(
645
- o.value.startDate,
646
- o.value.endDate
667
+ }), La(p.value, f).formatRange(
668
+ l.value.startDate,
669
+ l.value.endDate
647
670
  );
648
671
  }),
649
- textInputDisplayValue: f,
672
+ textInputDisplayValue: g,
650
673
  // Methods
651
674
  formatTextInputDisplayValue: () => ""
652
675
  };
653
- }, dt = {
654
- i18n: { messages: it },
676
+ }, ht = {
677
+ i18n: { messages: yt },
655
678
  name: "bento-date-range-picker",
656
679
  model: { prop: "modelValue", event: "update:model-value" }
657
- }, ct = /* @__PURE__ */ be({
658
- ...dt,
680
+ }, Tt = /* @__PURE__ */ xe({
681
+ ...ht,
659
682
  props: {
660
683
  description: { default: void 0 },
661
684
  disabled: { type: Boolean, default: !1 },
@@ -676,13 +699,14 @@ const lt = ot.exports, it = {
676
699
  min: { default: null },
677
700
  max: { default: null },
678
701
  numberOfMonths: { default: void 0 },
702
+ timeInterval: { default: void 0 },
679
703
  modelValue: { default: null },
680
704
  variant: { default: void 0 },
681
705
  yearRange: { default: void 0 }
682
706
  },
683
707
  emits: ["update:model-value"],
684
- setup(o, { emit: t }) {
685
- const e = o, a = da(), { t: i } = Ae(), { dateToInputDateString: m } = ke(), p = te("bento-date-range-picker-container"), y = te("bento-date-range-picker-label"), E = te("bento-date-range-picker-description"), N = te("bento-date-range-picker-error"), f = te("bento-date-range-picker-date-error"), se = c(() => e.label || i("dateRangePicker", { name: p })), { resolvedFirstDayOfWeek: H } = Ra(Re(e, "firstDayOfWeek")), v = ca({
708
+ setup(l, { emit: t }) {
709
+ const e = l, a = Ma(), { t: i } = Pe(), { dateToInputDateString: m } = Oe(), p = ce("bento-date-range-picker-container"), h = ce("bento-date-range-picker-label"), w = ce("bento-date-range-picker-description"), L = ce("bento-date-range-picker-error"), g = ce("bento-date-range-picker-date-error"), ve = c(() => e.label || i("dateRangePicker", { name: p })), { resolvedFirstDayOfWeek: ne } = Fa(Ee(e, "firstDayOfWeek")), f = ha({
686
710
  none: 0,
687
711
  one: 710,
688
712
  // width of date range picker with one panes
@@ -690,129 +714,146 @@ const lt = ot.exports, it = {
690
714
  // width of date range picker with two panes
691
715
  three: 1290
692
716
  // width of date range picker with three panes
693
- }), A = c(() => {
694
- const d = v.active().value, J = {
717
+ }), F = c(() => {
718
+ const u = f.active().value, q = {
695
719
  none: 0,
696
720
  one: 1,
697
721
  two: 2
698
722
  };
699
- if (d in J) {
700
- const ue = J[d];
701
- return e.numberOfMonths === void 0 ? ue : Math.min(e.numberOfMonths, ue);
723
+ if (u in q) {
724
+ const te = q[u];
725
+ return e.numberOfMonths === void 0 ? te : Math.min(e.numberOfMonths, te);
702
726
  }
703
727
  return e.numberOfMonths;
704
- }), k = c(() => e?.quickSelectRanges && e.quickSelectRanges.map((d) => {
705
- const J = d.data.endDate ? void 0 : new Date(Date.now()).getTime() - d.data.startDate.getTime();
728
+ }), A = (u, q) => Ye(
729
+ u,
730
+ ta(Y(u), G.value, q)
731
+ ), W = c(() => e?.quickSelectRanges && e.quickSelectRanges.map((u) => {
732
+ const q = u.data.endDate ? void 0 : new Date(Date.now()).getTime() - u.data.startDate.getTime(), te = G.value ? {
733
+ startDate: A(u.data.startDate, "down"),
734
+ ...u.data.endDate ? { endDate: A(u.data.endDate, "up") } : {}
735
+ } : {};
706
736
  return {
707
- ...d,
737
+ ...u,
708
738
  data: {
709
- ...d.data,
739
+ ...u.data,
740
+ ...te,
710
741
  // Adding timeDifference to calculate an up-to-date endDate on range selection
711
- timeDifference: J
742
+ timeDifference: q
712
743
  }
713
744
  };
714
- })), z = c(() => e.label ? y : a?.["aria-labelledby"] ?? null), R = I(!1), K = I(null), X = I(null), r = I(!1), { width: F } = ma(X), { isReadOnly: ge } = Na(Re(e, "readonly")), { emitValue: V } = za(t);
715
- pe(
745
+ })), Q = c(() => e.label ? h : a?.["aria-labelledby"] ?? null), b = E(!1), re = E(null), se = E(null), M = E(!1), { width: K } = Ta(se), { isReadOnly: r } = Ja(Ee(e, "readonly")), { emitValue: P } = Ha(t);
746
+ De(
716
747
  () => e.disabled,
717
748
  () => {
718
- e.disabled && r.value && (r.value = !1);
749
+ e.disabled && M.value && (M.value = !1);
719
750
  }
720
751
  );
721
- const Me = c(
722
- () => A.value === 0 && F.value > 0 && F.value < 332
752
+ const ke = c(
753
+ () => F.value === 0 && K.value > 0 && K.value < 332
723
754
  // size of date range picker form
724
- ), L = c(() => e.modelValue), G = c(() => !T.value && R.value), oe = c(() => ({
725
- "b-date-range-picker__description--error": !!e.errorMessage || G.value
726
- })), W = c(() => e.variant === "month"), Z = c(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: Q, textInputDisplayValue: Y, formatTextInputDisplayValue: U } = ut({
727
- datePickerValue: L,
728
- isDateIncorrect: R,
729
- quickSelectRanges: k,
730
- isMonthVariant: W,
755
+ ), z = c(() => e.modelValue), fe = c(() => !$.value && b.value), ge = c(() => ({
756
+ "b-date-range-picker__description--error": !!e.errorMessage || fe.value
757
+ })), X = c(() => e.variant === "month"), Z = c(() => e.allowTimeInput && e.variant !== "month"), G = c(() => Z.value ? e.timeInterval : null);
758
+ De(
759
+ [() => e.timeInterval, () => e.allowTimeInput],
760
+ ([u, q]) => {
761
+ u && !q && Ia(
762
+ '"bento-date-range-picker" ignores the "timeInterval" prop unless "allowTimeInput" is enabled.'
763
+ );
764
+ },
765
+ { immediate: !0 }
766
+ );
767
+ const { dateDisplayValue: ee, textInputDisplayValue: U, formatTextInputDisplayValue: _ } = Mt({
768
+ datePickerValue: z,
769
+ isDateIncorrect: b,
770
+ quickSelectRanges: W,
771
+ isMonthVariant: X,
731
772
  withTimeInput: Z,
732
- placeholder: Re(e, "placeholder")
733
- }), h = c(
734
- () => `${e.description ? E : ""} ${e.errorMessage ? N : ""} ${R.value ? f : ""}`.trim() || null
735
- ), g = () => {
736
- r.value = !1;
737
- }, le = () => {
738
- r.value = !0;
739
- }, ee = I(Q.value), $ = I(
773
+ placeholder: Ee(e, "placeholder")
774
+ }), ae = c(
775
+ () => `${e.description ? w : ""} ${e.errorMessage ? L : ""} ${b.value ? g : ""}`.trim() || null
776
+ ), y = () => {
777
+ M.value = !1;
778
+ }, T = () => {
779
+ M.value = !0;
780
+ }, oe = E(ee.value), j = E(
740
781
  // textInputDisplayValue is a reactive object
741
- structuredClone(Ye(Y))
742
- ), w = I(e.modelValue), T = I(!0), s = I($.value), ae = {
782
+ structuredClone(we(U))
783
+ ), O = E(e.modelValue), $ = E(!0), v = E(j.value), s = {
743
784
  allowOutsideClick: !0
744
785
  };
745
- je(() => {
746
- if (e.granularities && e.variant !== "month" && e.granularities.find(({ type: d }) => d === "quarterly"))
786
+ ea(() => {
787
+ if (e.granularities && e.variant !== "month" && e.granularities.find(({ type: u }) => u === "quarterly"))
747
788
  throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
748
789
  });
749
- const x = () => {
750
- ee.value = Q.value, $.value = structuredClone(Ye(Y)), s.value = $.value, w.value = L.value;
790
+ const J = () => {
791
+ oe.value = ee.value, j.value = structuredClone(we(U)), v.value = j.value, O.value = z.value;
751
792
  };
752
- pe(
793
+ De(
753
794
  () => e.modelValue,
754
795
  () => {
755
- x();
796
+ J();
756
797
  }
757
798
  );
758
- const j = () => {
759
- x(), R.value = !1, T.value = !0, g();
760
- }, ie = c(() => [
799
+ const B = () => {
800
+ J(), b.value = !1, $.value = !0, y();
801
+ }, le = c(() => [
761
802
  {
762
803
  title: i("apply"),
763
804
  event: () => {
764
- V(w.value), g(), T.value = !0;
805
+ P(O.value), y(), $.value = !0;
765
806
  },
766
- disabled: T.value
807
+ disabled: $.value
767
808
  },
768
809
  {
769
810
  title: i("cancel"),
770
- event: j
811
+ event: B
771
812
  }
772
813
  ]);
773
- return pe(w, (d) => {
774
- T.value = R.value || d === L.value;
775
- }), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: p, labelId: y, descriptionId: E, errorId: N, dateErrorId: f, popoverAriaLabel: se, resolvedFirstDayOfWeek: H, breakpoints: v, computedNumberOfMonths: A, adjustedQuickSelectRanges: k, dropdownInputAriaLabelledBy: z, isDateIncorrect: R, inputContainerRef: K, inputWrapperRef: X, isDateRangePickerOpen: r, inputWrapperWidth: F, isReadOnly: ge, emitValue: V, shouldMatchPopoverWidth: Me, internalModelValue: L, shouldDisplayError: G, descriptionConditionalClasses: oe, isMonthVariant: W, withTimeInput: Z, dateDisplayValue: Q, textInputDisplayValue: Y, formatTextInputDisplayValue: U, ariaDescribedBy: h, closeDateRangePicker: g, openDateRangePicker: le, localDateDisplayValue: ee, localTextInputDisplayValue: $, selectedDate: w, isApplyDisabled: T, displayedTextInputValue: s, trapAllOptions: ae, syncLocalDisplayStateFromCommittedValue: x, cancelDateRangePicker: j, rangePickerButtonActions: ie, onDateRangePickerInput: (d) => {
776
- R.value = !1, s.value.startDate = m(d.startDate), s.value.endDate = m(d.endDate), s.value.startTime = S(d.startDate), s.value.endTime = S(d.endDate), w.value = d;
814
+ return De(O, (u) => {
815
+ $.value = b.value || u === z.value;
816
+ }), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: p, labelId: h, descriptionId: w, errorId: L, dateErrorId: g, popoverAriaLabel: ve, resolvedFirstDayOfWeek: ne, breakpoints: f, computedNumberOfMonths: F, snapDateTime: A, adjustedQuickSelectRanges: W, dropdownInputAriaLabelledBy: Q, isDateIncorrect: b, inputContainerRef: re, inputWrapperRef: se, isDateRangePickerOpen: M, inputWrapperWidth: K, isReadOnly: r, emitValue: P, shouldMatchPopoverWidth: ke, internalModelValue: z, shouldDisplayError: fe, descriptionConditionalClasses: ge, isMonthVariant: X, withTimeInput: Z, resolvedTimeInterval: G, dateDisplayValue: ee, textInputDisplayValue: U, formatTextInputDisplayValue: _, ariaDescribedBy: ae, closeDateRangePicker: y, openDateRangePicker: T, localDateDisplayValue: oe, localTextInputDisplayValue: j, selectedDate: O, isApplyDisabled: $, displayedTextInputValue: v, trapAllOptions: s, syncLocalDisplayStateFromCommittedValue: J, cancelDateRangePicker: B, rangePickerButtonActions: le, onDateRangePickerInput: (u) => {
817
+ b.value = !1, v.value.startDate = m(u.startDate), v.value.endDate = m(u.endDate), v.value.startTime = Y(u.startDate), v.value.endTime = Y(u.endDate), O.value = u;
777
818
  }, clearDateRangePickerValue: async () => {
778
- R.value && (R.value = !1), w.value = null;
819
+ b.value && (b.value = !1), O.value = null;
779
820
  }, onEnterPressedOverInput: () => {
780
- if (!r.value) {
781
- r.value = !0;
821
+ if (!M.value) {
822
+ M.value = !0;
782
823
  return;
783
824
  }
784
- R.value || (r.value = !1);
785
- }, onDateRangePickerFormDateInputUpdate: (d) => {
786
- R.value = !1, d.startTime && (s.value.startTime = d.startTime), d.endTime && (s.value.endTime = d.endTime);
787
- }, onDateRangePickerError: (d) => {
788
- R.value = !0, s.value.startDate = d.startDate, s.value.endDate = d.endDate, w.value = { startDate: null, endDate: null };
789
- }, onRangeSelectorInput: (d) => {
790
- d && (s.value.startDate = m(d.startDate), s.value.endDate = m(d.endDate), s.value.startTime = S(d.startDate), s.value.endTime = S(d.endDate), w.value = d);
791
- }, BentoButtonActions: va, BentoButtonActionsLayout: Qa, BentoDivider: Da, BentoPopover: pa, BentoTypography: Je, DateRangePickerCalendar: lt, DropdownInputDefault: Ma, ErrorMessage: Wa, FieldLabel: La, vBentoClickOutsideDirective: Va };
825
+ b.value || (M.value = !1);
826
+ }, onDateRangePickerFormDateInputUpdate: (u) => {
827
+ b.value = !1, u.startTime && (v.value.startTime = u.startTime), u.endTime && (v.value.endTime = u.endTime);
828
+ }, onDateRangePickerError: (u) => {
829
+ b.value = !0, v.value.startDate = u.startDate, v.value.endDate = u.endDate, O.value = { startDate: null, endDate: null };
830
+ }, onRangeSelectorInput: (u) => {
831
+ u && (v.value.startDate = m(u.startDate), v.value.endDate = m(u.endDate), v.value.startTime = Y(u.startDate), v.value.endTime = Y(u.endDate), O.value = u);
832
+ }, BentoButtonActions: ba, BentoButtonActionsLayout: et, BentoDivider: Ra, BentoPopover: Ya, BentoTypography: aa, DateRangePickerCalendar: gt, DropdownInputDefault: _a, ErrorMessage: Za, FieldLabel: Xa, vBentoClickOutsideDirective: Ka };
792
833
  }
793
834
  });
794
- var mt = function() {
835
+ var Rt = function() {
795
836
  var t = this, e = t._self._c, a = t._self._setupProxy;
796
837
  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", { ref: "inputWrapperRef", on: { keydown: function(i) {
797
838
  return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
798
839
  } } }, [e(a.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: a.datePickerContainerId, ariaExpanded: a.isDateRangePickerOpen, "aria-labelledby": a.dropdownInputAriaLabelledBy, "aria-describedby": a.ariaDescribedBy, "aria-required": t.required, disabled: t.disabled, "is-invalid": !!t.errorMessage || a.shouldDisplayError, open: a.isDateRangePickerOpen, "display-value": a.localDateDisplayValue, readonly: a.isReadOnly }, on: { open: a.openDateRangePicker, clear: a.clearDateRangePickerValue, close: a.closeDateRangePicker } })], 1), a.shouldDisplayError ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.dateErrorId, "error-message": a.t("invalidDateFormat") } }) : t._e(), t.errorMessage ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.errorId, "error-message": t.errorMessage } }) : t._e(), t.description ? e(a.BentoTypography, { staticClass: "b-date-range-picker__description", class: a.descriptionConditionalClasses, attrs: { id: a.descriptionId, el: "span" } }, [t._v(" " + t._s(t.description) + " ")]) : t._e(), a.inputContainerRef ? e(a.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: a.datePickerContainerId, open: a.isDateRangePickerOpen, "target-element": a.inputContainerRef, "aria-label": a.popoverAriaLabel, position: "bottom-start", "fallback-strategy": "initialPlacement", "without-space": "", "fit-content": "", "match-width": a.shouldMatchPopoverWidth, "trap-all": "", "overflow-visible": "", "trap-all-options": a.trapAllOptions }, nativeOn: { keydown: function(i) {
799
840
  return !i.type.indexOf("key") && t._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : a.closeDateRangePicker.apply(null, arguments);
800
- } } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.selectedDate, "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, "year-range": t.yearRange }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([{ key: "actions", fn: function() {
841
+ } } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.selectedDate, "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, "time-interval": a.resolvedTimeInterval, "date-form-data": a.displayedTextInputValue, variant: t.variant, "year-range": t.yearRange }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([{ key: "actions", fn: function() {
801
842
  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)];
802
843
  }, proxy: !0 }], null, !1, 600066749) })], 1) : t._e()], 1);
803
- }, Dt = [], pt = /* @__PURE__ */ _e(
804
- ct,
805
- mt,
806
- Dt,
844
+ }, Yt = [], bt = /* @__PURE__ */ Be(
845
+ Tt,
846
+ Rt,
847
+ Yt,
807
848
  !1,
808
849
  null,
809
- "92dc9b52"
850
+ "854a9d65"
810
851
  );
811
- const Ut = pt.exports;
852
+ const an = bt.exports;
812
853
  export {
813
- Ut as B,
814
- lt as D,
815
- Ua as a,
816
- ne as i
854
+ an as B,
855
+ gt as D,
856
+ tt as a,
857
+ me as i
817
858
  };
818
- //# sourceMappingURL=date-range-picker.CqixIJxG.js.map
859
+ //# sourceMappingURL=date-range-picker.B2B4hO6R.js.map