@adyen/bento-vue3 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 (325) hide show
  1. package/dist/@types/bento-translation-keys.generated.d.ts +908 -0
  2. package/dist/@types/index.d.ts +136 -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.BMxeTYDy.js → accordion-item.BbMoC7Rn.js} +6 -6
  49. package/dist/chunks/{accordion-item.BMxeTYDy.js.map → accordion-item.BbMoC7Rn.js.map} +1 -1
  50. package/dist/chunks/{action-bar.CWjLoeOU.js → action-bar.C6XFuiE0.js} +20 -20
  51. package/dist/chunks/{action-bar.CWjLoeOU.js.map → action-bar.C6XFuiE0.js.map} +1 -1
  52. package/dist/chunks/{ai-button.CYaCMWFk.js → ai-button.M2xaszNl.js} +3 -3
  53. package/dist/chunks/{ai-button.CYaCMWFk.js.map → ai-button.M2xaszNl.js.map} +1 -1
  54. package/dist/chunks/{ai-tag.CjrOE5yl.js → ai-tag.BLDTP7fs.js} +4 -4
  55. package/dist/chunks/{ai-tag.CjrOE5yl.js.map → ai-tag.BLDTP7fs.js.map} +1 -1
  56. package/dist/chunks/{alert.C8Pe1-OO.js → alert.BYmn1ewo.js} +4 -4
  57. package/dist/chunks/{alert.C8Pe1-OO.js.map → alert.BYmn1ewo.js.map} +1 -1
  58. package/dist/chunks/{anchor-scroller.C3zkcfPH.js → anchor-scroller.B35-JMuH.js} +6 -6
  59. package/dist/chunks/{anchor-scroller.C3zkcfPH.js.map → anchor-scroller.B35-JMuH.js.map} +1 -1
  60. package/dist/chunks/{avatar.DcXyOCS4.js → avatar.Bes5Qw12.js} +2 -2
  61. package/dist/chunks/{avatar.DcXyOCS4.js.map → avatar.Bes5Qw12.js.map} +1 -1
  62. package/dist/chunks/{base-button.Bi5JR_6k.js → base-button.Dg_u0f2_.js} +3 -3
  63. package/dist/chunks/{base-button.Bi5JR_6k.js.map → base-button.Dg_u0f2_.js.map} +1 -1
  64. package/dist/chunks/{base-modal.Bn4ZXwv6.js → base-modal.CulokESn.js} +7 -7
  65. package/dist/chunks/{base-modal.Bn4ZXwv6.js.map → base-modal.CulokESn.js.map} +1 -1
  66. package/dist/chunks/{button-actions-with-menu.CrbF2BSQ.js → button-actions-with-menu.BsCmJeKU.js} +2 -2
  67. package/dist/chunks/{button-actions-with-menu.CrbF2BSQ.js.map → button-actions-with-menu.BsCmJeKU.js.map} +1 -1
  68. package/dist/chunks/{button-actions.uIjzze43.js → button-actions.DvuGEQxM.js} +9 -9
  69. package/dist/chunks/button-actions.DvuGEQxM.js.map +1 -0
  70. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  71. package/dist/chunks/{button.Ciflfide.js → button.DAcwNdtP.js} +3 -3
  72. package/dist/chunks/{button.Ciflfide.js.map → button.DAcwNdtP.js.map} +1 -1
  73. package/dist/chunks/{calendar.Dtba7fcs.js → calendar.EuBZ9HoM.js} +325 -322
  74. package/dist/chunks/calendar.EuBZ9HoM.js.map +1 -0
  75. package/dist/chunks/{card.a8QL14dy.js → card.OErI_R47.js} +8 -8
  76. package/dist/chunks/{card.a8QL14dy.js.map → card.OErI_R47.js.map} +1 -1
  77. package/dist/chunks/{checkbox-group.BCzNXT1-.js → checkbox-group.Deb5pHjj.js} +4 -4
  78. package/dist/chunks/{checkbox-group.BCzNXT1-.js.map → checkbox-group.Deb5pHjj.js.map} +1 -1
  79. package/dist/chunks/{checkbox.0RmIkniU.js → checkbox.YBhv3GCJ.js} +17 -17
  80. package/dist/chunks/{checkbox.0RmIkniU.js.map → checkbox.YBhv3GCJ.js.map} +1 -1
  81. package/dist/chunks/{chip.Bv6IGch0.js → chip.D4OozULC.js} +13 -11
  82. package/dist/chunks/{chip.Bv6IGch0.js.map → chip.D4OozULC.js.map} +1 -1
  83. package/dist/chunks/{code-snippet.BbswO6TU.js → code-snippet.DNDXr7t6.js} +7 -7
  84. package/dist/chunks/{code-snippet.BbswO6TU.js.map → code-snippet.DNDXr7t6.js.map} +1 -1
  85. package/dist/chunks/{controls-group.KarFHKUT.js → controls-group.CC3yZiTT.js} +3 -3
  86. package/dist/chunks/{controls-group.KarFHKUT.js.map → controls-group.CC3yZiTT.js.map} +1 -1
  87. package/dist/chunks/{copy.C92qFRaR.js → copy.YBeE8V9S.js} +4 -4
  88. package/dist/chunks/{copy.C92qFRaR.js.map → copy.YBeE8V9S.js.map} +1 -1
  89. package/dist/chunks/{country.BN34hLpN.js → country.PHJgPzKU.js} +7 -7
  90. package/dist/chunks/{country.BN34hLpN.js.map → country.PHJgPzKU.js.map} +1 -1
  91. package/dist/chunks/country.types.BCOrkmVK.js.map +1 -1
  92. package/dist/chunks/{currency.DS4-apvT.js → currency.Y6BqUzYE.js} +5 -5
  93. package/dist/chunks/{currency.DS4-apvT.js.map → currency.Y6BqUzYE.js.map} +1 -1
  94. package/dist/chunks/{dashboard-section.Bv-SveGN.js → dashboard-section.CjC3fVU6.js} +3 -3
  95. package/dist/chunks/{dashboard-section.Bv-SveGN.js.map → dashboard-section.CjC3fVU6.js.map} +1 -1
  96. package/dist/chunks/{dashed-underline.C3lSC1_R.js → dashed-underline.DAtZOaad.js} +4 -4
  97. package/dist/chunks/{dashed-underline.C3lSC1_R.js.map → dashed-underline.DAtZOaad.js.map} +1 -1
  98. package/dist/chunks/{data-grid-template.DqZmPeze.js → data-grid-template.bPjGSga2.js} +4 -4
  99. package/dist/chunks/{data-grid-template.DqZmPeze.js.map → data-grid-template.bPjGSga2.js.map} +1 -1
  100. package/dist/chunks/{data-grid.vBDlLHOW.js → data-grid.o5MQdWnJ.js} +26 -26
  101. package/dist/chunks/{data-grid.vBDlLHOW.js.map → data-grid.o5MQdWnJ.js.map} +1 -1
  102. package/dist/chunks/{date-picker.Dnr2HuxA.js → date-picker.DyB8XkiY.js} +10 -10
  103. package/dist/chunks/{date-picker.Dnr2HuxA.js.map → date-picker.DyB8XkiY.js.map} +1 -1
  104. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  105. package/dist/chunks/{date-range-picker.CuBygd3O.js → date-range-picker.BcQUUVcW.js} +567 -525
  106. package/dist/chunks/date-range-picker.BcQUUVcW.js.map +1 -0
  107. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  108. package/dist/chunks/{date.ojGAujAt.js → date.SUOSxkTe.js} +4 -4
  109. package/dist/chunks/{date.ojGAujAt.js.map → date.SUOSxkTe.js.map} +1 -1
  110. package/dist/chunks/{dialog-page.D60pjDsQ.js → dialog-page.CHpFuDd9.js} +4 -4
  111. package/dist/chunks/{dialog-page.D60pjDsQ.js.map → dialog-page.CHpFuDd9.js.map} +1 -1
  112. package/dist/chunks/{draggable-handle.Cvc8gHzx.js → draggable-handle.CKkSJP0K.js} +3 -3
  113. package/dist/chunks/{draggable-handle.Cvc8gHzx.js.map → draggable-handle.CKkSJP0K.js.map} +1 -1
  114. package/dist/chunks/{draggable.BZsgR26I.js → draggable.jzTSFcM7.js} +38 -35
  115. package/dist/chunks/draggable.jzTSFcM7.js.map +1 -0
  116. package/dist/chunks/{drawer.D3j-d3q5.js → drawer.De-jDVb2.js} +2 -2
  117. package/dist/chunks/{drawer.D3j-d3q5.js.map → drawer.De-jDVb2.js.map} +1 -1
  118. package/dist/chunks/{dropdown-tag.Bn5FPeEL.js → dropdown-tag.BvXqllkv.js} +8 -8
  119. package/dist/chunks/{dropdown-tag.Bn5FPeEL.js.map → dropdown-tag.BvXqllkv.js.map} +1 -1
  120. package/dist/chunks/{dropdown.D_jkFrMd.js → dropdown.BoSI-Rre.js} +20 -20
  121. package/dist/chunks/{dropdown.D_jkFrMd.js.map → dropdown.BoSI-Rre.js.map} +1 -1
  122. package/dist/chunks/{empty-state.DpUC-3wv.js → empty-state.BuK12EGe.js} +4 -4
  123. package/dist/chunks/{empty-state.DpUC-3wv.js.map → empty-state.BuK12EGe.js.map} +1 -1
  124. package/dist/chunks/{error-message.Bt0CznQM.js → error-message.DJ5l0EUH.js} +3 -3
  125. package/dist/chunks/{error-message.Bt0CznQM.js.map → error-message.DJ5l0EUH.js.map} +1 -1
  126. package/dist/chunks/es6.yPcTMnSH.js.map +1 -1
  127. package/dist/chunks/{field-label.Cz11fn_F.js → field-label.vrUwhoOg.js} +4 -4
  128. package/dist/chunks/{field-label.Cz11fn_F.js.map → field-label.vrUwhoOg.js.map} +1 -1
  129. package/dist/chunks/{file-uploader.BglImnqw.js → file-uploader.Cv8sm0Jd.js} +12 -12
  130. package/dist/chunks/{file-uploader.BglImnqw.js.map → file-uploader.Cv8sm0Jd.js.map} +1 -1
  131. package/dist/chunks/{filter-bar.DG4GTi8L.js → filter-bar.6ElVHgFA.js} +34 -31
  132. package/dist/chunks/filter-bar.6ElVHgFA.js.map +1 -0
  133. package/dist/chunks/{fixed-scroller.DoOR83iH.js → fixed-scroller.C0nVzRBU.js} +3 -3
  134. package/dist/chunks/{fixed-scroller.DoOR83iH.js.map → fixed-scroller.C0nVzRBU.js.map} +1 -1
  135. package/dist/chunks/{footer-actions.Dl20Q1WX.js → footer-actions.BJif4sIk.js} +4 -4
  136. package/dist/chunks/{footer-actions.Dl20Q1WX.js.map → footer-actions.BJif4sIk.js.map} +1 -1
  137. package/dist/chunks/{form-layout-group.iAwbiI_S.js → form-layout-group.B9Kzae5F.js} +2 -2
  138. package/dist/chunks/{form-layout-group.iAwbiI_S.js.map → form-layout-group.B9Kzae5F.js.map} +1 -1
  139. package/dist/chunks/{form-layout-title.BZFh_nGD.js → form-layout-title.C7f1ByNh.js} +4 -4
  140. package/dist/chunks/{form-layout-title.BZFh_nGD.js.map → form-layout-title.C7f1ByNh.js.map} +1 -1
  141. package/dist/chunks/{header-with-views.WJlXgGI5.js → header-with-views.Dl6bfk_7.js} +17 -17
  142. package/dist/chunks/{header-with-views.WJlXgGI5.js.map → header-with-views.Dl6bfk_7.js.map} +1 -1
  143. package/dist/chunks/{header.Bi3MPZKE.js → header.E-KFjIG7.js} +5 -5
  144. package/dist/chunks/{header.Bi3MPZKE.js.map → header.E-KFjIG7.js.map} +1 -1
  145. package/dist/chunks/index.CGBfMQdv.js +38 -0
  146. package/dist/chunks/index.CGBfMQdv.js.map +1 -0
  147. package/dist/chunks/{info-icon-with-popover.uSr6-jzR.js → info-icon-with-popover.DqnQnwMI.js} +4 -4
  148. package/dist/chunks/{info-icon-with-popover.uSr6-jzR.js.map → info-icon-with-popover.DqnQnwMI.js.map} +1 -1
  149. package/dist/chunks/{info-icon.Zlg6Sgz0.js → info-icon.D_zu5SYT.js} +2 -2
  150. package/dist/chunks/{info-icon.Zlg6Sgz0.js.map → info-icon.D_zu5SYT.js.map} +1 -1
  151. package/dist/chunks/{input-field-password.CJZxudne.js → input-field-password.BXptrVTT.js} +7 -7
  152. package/dist/chunks/{input-field-password.CJZxudne.js.map → input-field-password.BXptrVTT.js.map} +1 -1
  153. package/dist/chunks/{input-field-phone-number.OJ4MG9Gf.js → input-field-phone-number.Crxi8Wm7.js} +4 -4
  154. package/dist/chunks/{input-field-phone-number.OJ4MG9Gf.js.map → input-field-phone-number.Crxi8Wm7.js.map} +1 -1
  155. package/dist/chunks/{input-field.IyNujUZt.js → input-field._keU91LW.js} +24 -24
  156. package/dist/chunks/{input-field.IyNujUZt.js.map → input-field._keU91LW.js.map} +1 -1
  157. package/dist/chunks/input-time.D7UW_ww_.js +193 -0
  158. package/dist/chunks/input-time.D7UW_ww_.js.map +1 -0
  159. package/dist/chunks/{inspector-page.D42_PXHM.js → inspector-page.DNsc0lK1.js} +4 -4
  160. package/dist/chunks/{inspector-page.D42_PXHM.js.map → inspector-page.DNsc0lK1.js.map} +1 -1
  161. package/dist/chunks/{inspector.BBgrupfO.js → inspector.BLAqbhmV.js} +6 -6
  162. package/dist/chunks/{inspector.BBgrupfO.js.map → inspector.BLAqbhmV.js.map} +1 -1
  163. package/dist/chunks/{layout-row.DijjweVX.js → layout-row.X6mPrUu8.js} +2 -2
  164. package/dist/chunks/{layout-row.DijjweVX.js.map → layout-row.X6mPrUu8.js.map} +1 -1
  165. package/dist/chunks/{link.types.BGj7apK3.js → link.types.BZ1u_6CS.js} +2 -2
  166. package/dist/chunks/{link.types.BGj7apK3.js.map → link.types.BZ1u_6CS.js.map} +1 -1
  167. package/dist/chunks/{list-item.CT7dyMQH.js → list-item.RuGQ8Y4T.js} +6 -6
  168. package/dist/chunks/{list-item.CT7dyMQH.js.map → list-item.RuGQ8Y4T.js.map} +1 -1
  169. package/dist/chunks/{listbox-option-tag.CwrFdsY1.js → listbox-option-tag.71rmQvG8.js} +3 -3
  170. package/dist/chunks/{listbox-option-tag.CwrFdsY1.js.map → listbox-option-tag.71rmQvG8.js.map} +1 -1
  171. package/dist/chunks/{modal-fullscreen.I5bjqzfd.js → modal-fullscreen.jXJnaueu.js} +10 -10
  172. package/dist/chunks/modal-fullscreen.jXJnaueu.js.map +1 -0
  173. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CrsIyU7A.js → modal.vue_vue_type_script_setup_true_lang.BwmYlzFm.js} +8 -8
  174. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CrsIyU7A.js.map → modal.vue_vue_type_script_setup_true_lang.BwmYlzFm.js.map} +1 -1
  175. package/dist/chunks/{navigation-menu-group.BJ9ZsXEn.js → navigation-menu-group.BnS0isK8.js} +32 -32
  176. package/dist/chunks/navigation-menu-group.BnS0isK8.js.map +1 -0
  177. package/dist/chunks/{pagination.C5gZxtZY.js → pagination.C-kvJ-XK.js} +9 -8
  178. package/dist/chunks/{pagination.C5gZxtZY.js.map → pagination.C-kvJ-XK.js.map} +1 -1
  179. package/dist/chunks/{payment-method.q2yow5VR.js → payment-method.B69Mu88z.js} +2 -2
  180. package/dist/chunks/{payment-method.q2yow5VR.js.map → payment-method.B69Mu88z.js.map} +1 -1
  181. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  182. package/dist/chunks/popover.types.dhllh3NP.js.map +1 -1
  183. package/dist/chunks/popper-container.Rfj8UdMD.js.map +1 -1
  184. package/dist/chunks/{promo-banner.kE1-WkzI.js → promo-banner.3d1DHWas.js} +4 -4
  185. package/dist/chunks/{promo-banner.kE1-WkzI.js.map → promo-banner.3d1DHWas.js.map} +1 -1
  186. package/dist/chunks/{radio-group.XmRPh03c.js → radio-group.BTI_2U11.js} +5 -5
  187. package/dist/chunks/{radio-group.XmRPh03c.js.map → radio-group.BTI_2U11.js.map} +1 -1
  188. package/dist/chunks/{rich-text-editor.Cv_Vwt-6.js → rich-text-editor.ClUU1zPM.js} +12 -12
  189. package/dist/chunks/{rich-text-editor.Cv_Vwt-6.js.map → rich-text-editor.ClUU1zPM.js.map} +1 -1
  190. package/dist/chunks/{scroll-to-section.CJorrxQT.js → scroll-to-section.BRr4Vwi7.js} +2 -2
  191. package/dist/chunks/{scroll-to-section.CJorrxQT.js.map → scroll-to-section.BRr4Vwi7.js.map} +1 -1
  192. package/dist/chunks/{search-bar.5tObtLfW.js → search-bar.D1Jz7hdd.js} +13 -13
  193. package/dist/chunks/{search-bar.5tObtLfW.js.map → search-bar.D1Jz7hdd.js.map} +1 -1
  194. package/dist/chunks/{secondary-nav.DApIImQ0.js → secondary-nav.D32VFDTi.js} +26 -26
  195. package/dist/chunks/{secondary-nav.DApIImQ0.js.map → secondary-nav.D32VFDTi.js.map} +1 -1
  196. package/dist/chunks/{segmented-control.CEt2dz4n.js → segmented-control.CarI0i3p.js} +3 -3
  197. package/dist/chunks/{segmented-control.CEt2dz4n.js.map → segmented-control.CarI0i3p.js.map} +1 -1
  198. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  199. package/dist/chunks/{selection-card-group.DHXtJpoB.js → selection-card-group.CQsS8-H9.js} +109 -108
  200. package/dist/chunks/{selection-card-group.DHXtJpoB.js.map → selection-card-group.CQsS8-H9.js.map} +1 -1
  201. package/dist/chunks/{sidepanel._30g8POM.js → sidepanel.CYWPV9dE.js} +13 -13
  202. package/dist/chunks/{sidepanel._30g8POM.js.map → sidepanel.CYWPV9dE.js.map} +1 -1
  203. package/dist/chunks/{status.Nss4P5OU.js → status.BJ48Isyh.js} +2 -2
  204. package/dist/chunks/{status.Nss4P5OU.js.map → status.BJ48Isyh.js.map} +1 -1
  205. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
  206. package/dist/chunks/{step.5_ZukVqJ.js → step.CRVu8HPR.js} +6 -6
  207. package/dist/chunks/step.CRVu8HPR.js.map +1 -0
  208. package/dist/chunks/{structured-list-item.CBzznwcF.js → structured-list-item.C6SAUS9a.js} +11 -10
  209. package/dist/chunks/structured-list-item.C6SAUS9a.js.map +1 -0
  210. package/dist/chunks/{summary-grid.types.BR_EGvRg.js → summary-grid.types.FTWeUNFh.js} +7 -7
  211. package/dist/chunks/{summary-grid.types.BR_EGvRg.js.map → summary-grid.types.FTWeUNFh.js.map} +1 -1
  212. package/dist/chunks/{tab.D_k5AVHk.js → tab.CwXAsp9E.js} +44 -43
  213. package/dist/chunks/tab.CwXAsp9E.js.map +1 -0
  214. package/dist/chunks/{table-of-contents.CJ2yMbAG.js → table-of-contents.Bnyua5hb.js} +4 -4
  215. package/dist/chunks/{table-of-contents.CJ2yMbAG.js.map → table-of-contents.Bnyua5hb.js.map} +1 -1
  216. package/dist/chunks/{tag.BE1j0Oid.js → tag.BYxa556o.js} +3 -3
  217. package/dist/chunks/{tag.BE1j0Oid.js.map → tag.BYxa556o.js.map} +1 -1
  218. package/dist/chunks/{textarea.BYshPd98.js → textarea.D4aMdmDx.js} +8 -8
  219. package/dist/chunks/textarea.D4aMdmDx.js.map +1 -0
  220. package/dist/chunks/{timeline-item.Sy_DSw6p.js → timeline-item.De8HCoYw.js} +11 -11
  221. package/dist/chunks/{timeline-item.Sy_DSw6p.js.map → timeline-item.De8HCoYw.js.map} +1 -1
  222. package/dist/chunks/{title-details.C4ZvxPMu.js → title-details.8cyCeaLf.js} +5 -5
  223. package/dist/chunks/{title-details.C4ZvxPMu.js.map → title-details.8cyCeaLf.js.map} +1 -1
  224. package/dist/chunks/{toast.u5Y_CGe_.js → toast.BI2PD8Oj.js} +5 -5
  225. package/dist/chunks/{toast.u5Y_CGe_.js.map → toast.BI2PD8Oj.js.map} +1 -1
  226. package/dist/chunks/{toggle.BW8ww0Ih.js → toggle.BbCqV953.js} +4 -4
  227. package/dist/chunks/{toggle.BW8ww0Ih.js.map → toggle.BbCqV953.js.map} +1 -1
  228. package/dist/chunks/{tooltip.TFOGHOO0.js → tooltip.0QqJo2sa.js} +2 -2
  229. package/dist/chunks/{tooltip.TFOGHOO0.js.map → tooltip.0QqJo2sa.js.map} +1 -1
  230. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BIP-heAH.js → tutorial.vue_vue_type_script_setup_true_lang.Dn4toWHY.js} +4 -4
  231. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BIP-heAH.js.map → tutorial.vue_vue_type_script_setup_true_lang.Dn4toWHY.js.map} +1 -1
  232. package/dist/chunks/{typography.wIM07Hbl.js → typography.B6elnWpr.js} +35 -35
  233. package/dist/chunks/{typography.wIM07Hbl.js.map → typography.B6elnWpr.js.map} +1 -1
  234. package/dist/chunks/{use-bento-toast-controller.BAoPbtq7.js → use-bento-toast-controller.CkpBtweL.js} +2 -2
  235. package/dist/chunks/{use-bento-toast-controller.BAoPbtq7.js.map → use-bento-toast-controller.CkpBtweL.js.map} +1 -1
  236. package/dist/chunks/{use-country-items.CYnYzs7x.js → use-country-items.CAYJt6XS.js} +3 -3
  237. package/dist/chunks/{use-country-items.CYnYzs7x.js.map → use-country-items.CAYJt6XS.js.map} +1 -1
  238. package/dist/chunks/{use-date-input-formatter._ik1DYYV.js → use-date-input-formatter.BIVkaB1k.js} +2 -2
  239. package/dist/chunks/{use-date-input-formatter._ik1DYYV.js.map → use-date-input-formatter.BIVkaB1k.js.map} +1 -1
  240. package/dist/chunks/{use-dynamic-date-fns-locale.BMO9rsEh.js → use-dynamic-date-fns-locale._EtEeU3i.js} +2 -2
  241. package/dist/chunks/{use-dynamic-date-fns-locale.BMO9rsEh.js.map → use-dynamic-date-fns-locale._EtEeU3i.js.map} +1 -1
  242. package/dist/code-snippet.js +1 -1
  243. package/dist/country.js +1 -1
  244. package/dist/currency.js +1 -1
  245. package/dist/dashboard-template.js +1 -1
  246. package/dist/dashed-underline.js +1 -1
  247. package/dist/data-grid-template.js +1 -1
  248. package/dist/data-grid.js +1 -1
  249. package/dist/date-picker.js +2 -2
  250. package/dist/date-range-picker.js +2 -2
  251. package/dist/date-time-picker.js +6 -6
  252. package/dist/date.js +1 -1
  253. package/dist/draggable.js +2 -2
  254. package/dist/drawer.js +1 -1
  255. package/dist/dropdown.js +2 -2
  256. package/dist/empty-state.js +1 -1
  257. package/dist/file-uploader.js +1 -1
  258. package/dist/filter-bar.js +1 -1
  259. package/dist/form-layout.js +2 -2
  260. package/dist/header-with-views.js +1 -1
  261. package/dist/header.js +1 -1
  262. package/dist/index.js +382 -353
  263. package/dist/index.js.map +1 -1
  264. package/dist/info-icon.js +1 -1
  265. package/dist/input-field-password.js +1 -1
  266. package/dist/input-field-phone-number.js +1 -1
  267. package/dist/input-field.js +1 -1
  268. package/dist/input-time.js +1 -1
  269. package/dist/inspector.js +2 -2
  270. package/dist/internal.js +14 -14
  271. package/dist/layout.js +1 -1
  272. package/dist/link.js +1 -1
  273. package/dist/list.js +1 -1
  274. package/dist/menu.js +1 -1
  275. package/dist/modal-fullscreen.js +1 -1
  276. package/dist/modal.js +2 -2
  277. package/dist/navigation-menu.js +1 -1
  278. package/dist/pagination.js +1 -1
  279. package/dist/payment-method.js +1 -1
  280. package/dist/popover.js +1 -1
  281. package/dist/progress-bar.js +4 -4
  282. package/dist/promo-banner.js +1 -1
  283. package/dist/radio-group.js +1 -1
  284. package/dist/rich-text-editor.js +1 -1
  285. package/dist/search-bar.js +2 -2
  286. package/dist/secondary-nav.js +1 -1
  287. package/dist/segmented-control.js +1 -1
  288. package/dist/selection-card.js +1 -1
  289. package/dist/sidepanel.js +1 -1
  290. package/dist/status.js +1 -1
  291. package/dist/stepper.js +1 -1
  292. package/dist/structured-list.js +1 -1
  293. package/dist/styles/bento-dark.css +3 -0
  294. package/dist/styles/bento-light.css +3 -0
  295. package/dist/styles/bento.css +3 -0
  296. package/dist/styles/legacy.css +3 -0
  297. package/dist/styles/styleguide.css +3 -0
  298. package/dist/styles/utility.css +9 -0
  299. package/dist/summary-grid.js +1 -1
  300. package/dist/table-of-contents.js +1 -1
  301. package/dist/tabs.js +1 -1
  302. package/dist/tag.js +1 -1
  303. package/dist/textarea.js +1 -1
  304. package/dist/timeline.js +1 -1
  305. package/dist/toast.js +1 -1
  306. package/dist/toggle.js +1 -1
  307. package/dist/tutorial.js +1 -1
  308. package/dist/typography.js +1 -1
  309. package/dist/web-types.json +1 -1
  310. package/package.json +9 -5
  311. package/dist/chunks/button-actions.uIjzze43.js.map +0 -1
  312. package/dist/chunks/calendar.Dtba7fcs.js.map +0 -1
  313. package/dist/chunks/date-range-picker.CuBygd3O.js.map +0 -1
  314. package/dist/chunks/draggable.BZsgR26I.js.map +0 -1
  315. package/dist/chunks/filter-bar.DG4GTi8L.js.map +0 -1
  316. package/dist/chunks/index.B875RXHM.js +0 -15
  317. package/dist/chunks/index.B875RXHM.js.map +0 -1
  318. package/dist/chunks/input-time.BJ6YqkFi.js +0 -122
  319. package/dist/chunks/input-time.BJ6YqkFi.js.map +0 -1
  320. package/dist/chunks/modal-fullscreen.I5bjqzfd.js.map +0 -1
  321. package/dist/chunks/navigation-menu-group.BJ9ZsXEn.js.map +0 -1
  322. package/dist/chunks/step.5_ZukVqJ.js.map +0 -1
  323. package/dist/chunks/structured-list-item.CBzznwcF.js.map +0 -1
  324. package/dist/chunks/tab.D_k5AVHk.js.map +0 -1
  325. package/dist/chunks/textarea.BYshPd98.js.map +0 -1
@@ -1,64 +1,64 @@
1
- import { defineComponent as ze, computed as m, openBlock as E, createBlock as L, unref as i, withCtx as H, createVNode as U, mergeProps as $e, createCommentVNode as O, reactive as Re, useSlots as Ea, ref as P, onMounted as da, createElementBlock as Me, createElementVNode as ee, normalizeClass as ca, renderSlot as je, createTextVNode as ye, toDisplayString as he, toRaw as Ne, watch as Te, useAttrs as Ia, toRef as xe, withDirectives as Fa, withKeys as Je } from "vue";
2
- import { d as wa, h as Pa } from "./index.DCpihRYV.js";
3
- import { B as Oa } from "./divider.BlxQCxkM.js";
4
- import { h as xa, B as qa } from "./button-actions.uIjzze43.js";
5
- import { B as Be } from "./typography.wIM07Hbl.js";
6
- import { B as Na, g as He, D as Ba } from "./dropdown.D_jkFrMd.js";
7
- import { g as de } from "./generate-uid.DBWe4g6T.js";
8
- import { u as Ve } from "./index.B875RXHM.js";
9
- import { j as me, k as N, s as S, l as za, m as Ke, n as Va, f as Xe, o as Ca, q as _a, r as La, t as Ze, u as Ua, b as _, v as Qa, h as Wa, i as Ga, e as x, w as ea, x as aa, g as $a } from "./calendar.Dtba7fcs.js";
10
- import { u as Ce, a as ja } from "./use-date-input-formatter._ik1DYYV.js";
11
- import { t as Ye, n as Ja, c as Ha } from "./en-US.C412g-7U.js";
12
- import { u as Ka } from "./use-form-layout-loading.CWbjZiwP.js";
13
- import { B as Xa } from "./directive.D1-d-C2K.js";
14
- import { u as Za } from "./form-field.B60VsF8d.js";
15
- import { B as et } from "./alert.C8Pe1-OO.js";
16
- import { B as at } from "./segmented-control.CEt2dz4n.js";
17
- import { u as tt } from "./use-has-slot.CyMiImRQ.js";
18
- import { u as nt } from "./use-touch-device.DTqFAbXh.js";
19
- import { e as Q, a as ta } from "./differenceInMonths.CPDkGea3.js";
20
- import { s as na } from "./startOfWeek.CzdYFzXX.js";
21
- import { c as rt } from "./constructNow.Dl44Mvpp.js";
22
- import { a as ge, s as ra } from "./set-time-in-date.DVo8R8w-.js";
23
- import { B as st, i as sa } from "./input-time.BJ6YqkFi.js";
24
- import { B as ot } from "./input-field.IyNujUZt.js";
25
- import { B as lt } from "./form-layout-group.iAwbiI_S.js";
26
- import { _ as ma } from "./_plugin-vue_export-helper.CHgC5LLL.js";
27
- import { F as it } from "./field-label.Cz11fn_F.js";
28
- import { E as oa } from "./error-message.Bt0CznQM.js";
29
- import { B as ut } from "./button-actions.types.BptAXjD8.js";
1
+ import { defineComponent as $e, computed as m, openBlock as E, createBlock as L, unref as i, withCtx as Z, createVNode as _, mergeProps as ea, createCommentVNode as q, reactive as Fe, useSlots as Na, ref as P, onMounted as fa, createElementBlock as Ie, createElementVNode as oe, normalizeClass as ga, renderSlot as aa, createTextVNode as Se, toDisplayString as we, toRaw as Ue, watch as Me, useAttrs as Ba, toRef as _e, withDirectives as za, withKeys as ta } from "vue";
2
+ import { d as Ca, h as Va } from "./index.DCpihRYV.js";
3
+ import { B as La } from "./divider.BlxQCxkM.js";
4
+ import { h as _a, B as Wa } from "./button-actions.DvuGEQxM.js";
5
+ import { B as Qe, p as Ua } from "./typography.B6elnWpr.js";
6
+ import { B as Qa, g as na, D as $a } from "./dropdown.BoSI-Rre.js";
7
+ import { g as fe } from "./generate-uid.DBWe4g6T.js";
8
+ import { u as Ge } from "./index.CGBfMQdv.js";
9
+ import { B as Ga, s as Ma, i as ra } from "./input-time.D7UW_ww_.js";
10
+ import { j as ye, k as z, s as w, l as ja, m as sa, n as Ja, f as oa, o as Ha, q as Ka, r as Xa, t as la, u as Za, b as V, v as et, e as b, h as at, i as tt, w as ia, x as ua, g as nt } from "./calendar.EuBZ9HoM.js";
11
+ import { s as Ee, a as ke } from "./set-time-in-date.DVo8R8w-.js";
12
+ import { u as je, a as rt } from "./use-date-input-formatter.BIVkaB1k.js";
13
+ import { t as Pe, n as st, c as ot } from "./en-US.C412g-7U.js";
14
+ import { u as lt } from "./use-form-layout-loading.CWbjZiwP.js";
15
+ import { B as it } from "./directive.D1-d-C2K.js";
16
+ import { u as ut } from "./form-field.B60VsF8d.js";
17
+ import { B as dt } from "./alert.BYmn1ewo.js";
18
+ import { B as ct } from "./segmented-control.CarI0i3p.js";
19
+ import { u as mt } from "./use-has-slot.CyMiImRQ.js";
20
+ import { u as Dt } from "./use-touch-device.DTqFAbXh.js";
21
+ import { e as W, a as da } from "./differenceInMonths.CPDkGea3.js";
22
+ import { s as ca } from "./startOfWeek.CzdYFzXX.js";
23
+ import { c as vt } from "./constructNow.Dl44Mvpp.js";
24
+ import { B as pt } from "./input-field._keU91LW.js";
25
+ import { B as ft } from "./form-layout-group.B9Kzae5F.js";
26
+ import { _ as ya } from "./_plugin-vue_export-helper.CHgC5LLL.js";
27
+ import { F as gt } from "./field-label.vrUwhoOg.js";
28
+ import { E as ma } from "./error-message.DJ5l0EUH.js";
29
+ import { B as Mt } from "./button-actions.types.BptAXjD8.js";
30
30
  import "../assets/date-range-picker.css";
31
- function la(r, v) {
32
- return Ye(r, v?.in).getFullYear();
31
+ function Da(s, v) {
32
+ return Pe(s, v?.in).getFullYear();
33
33
  }
34
- function ce(r, v) {
35
- return +Ye(r) == +Ye(v);
34
+ function ge(s, v) {
35
+ return +Pe(s) == +Pe(v);
36
36
  }
37
- function dt(r, v, T) {
38
- const [d, c] = Ja(
37
+ function yt(s, v, T) {
38
+ const [d, c] = st(
39
39
  T?.in,
40
- r,
40
+ s,
41
41
  v
42
42
  );
43
- return +me(d) == +me(c);
43
+ return +ye(d) == +ye(c);
44
44
  }
45
- function ia(r, v) {
46
- const T = Ye(r, v?.in);
45
+ function va(s, v) {
46
+ const T = Pe(s, v?.in);
47
47
  return T.setMilliseconds(0), T;
48
48
  }
49
- function qe(r, v) {
50
- return +ia(r) == +ia(v);
49
+ function We(s, v) {
50
+ return +va(s) == +va(v);
51
51
  }
52
- function ct(r, v) {
53
- return N(
54
- Ha(r, r),
55
- rt(r)
52
+ function ht(s, v) {
53
+ return z(
54
+ ot(s, s),
55
+ vt(s)
56
56
  );
57
57
  }
58
- const mt = {
58
+ const Tt = {
59
59
  name: "date-time-input"
60
- }, ua = /* @__PURE__ */ ze({
61
- ...mt,
60
+ }, pa = /* @__PURE__ */ $e({
61
+ ...Tt,
62
62
  props: {
63
63
  dateModelValue: { default: "" },
64
64
  dateProps: { default: () => ({}) },
@@ -67,105 +67,107 @@ const mt = {
67
67
  timeModelValue: { default: "" },
68
68
  timeProps: { default: () => ({}) }
69
69
  },
70
- emits: ["update:date-model-value", "date:keydown", "update:time-model-value", "time:error", "time:valid"],
71
- setup(r) {
72
- const v = r, T = m(() => ({
70
+ emits: ["click", "update:date-model-value", "date:keydown", "update:time-model-value", "time:error", "time:valid"],
71
+ setup(s) {
72
+ const v = s, T = m(() => ({
73
73
  errorMessage: v.errorMessage,
74
74
  ...v.dateProps
75
75
  })), d = m(() => ({
76
76
  errorMessage: v.errorMessage,
77
77
  ...v.timeProps
78
78
  }));
79
- return (c, e) => (E(), L(i(lt), {
79
+ return (c, e) => (E(), L(i(ft), {
80
80
  layout: c.showTimeInput ? "50-50" : "100",
81
81
  "error-message": c.errorMessage
82
82
  }, {
83
- default: H(() => [
84
- U(i(ot), $e(T.value, {
83
+ default: Z(() => [
84
+ _(i(pt), ea(T.value, {
85
85
  "model-value": c.dateModelValue,
86
- "onUpdate:modelValue": e[0] || (e[0] = (s) => c.$emit("update:date-model-value", s)),
87
- onKeydown: e[1] || (e[1] = (s) => c.$emit("date:keydown", s))
86
+ onClick: e[0] || (e[0] = (l) => c.$emit("click")),
87
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => c.$emit("update:date-model-value", l)),
88
+ onKeydown: e[2] || (e[2] = (l) => c.$emit("date:keydown", l))
88
89
  }), null, 16, ["model-value"]),
89
- c.showTimeInput ? (E(), L(i(st), $e({ key: 0 }, d.value, {
90
+ c.showTimeInput ? (E(), L(i(Ga), ea({ key: 0 }, d.value, {
90
91
  "model-value": c.timeModelValue,
91
- "onUpdate:modelValue": e[2] || (e[2] = (s) => c.$emit("update:time-model-value", s)),
92
- "onInput:error": e[3] || (e[3] = (s) => c.$emit("time:error")),
93
- "onInput:valid": e[4] || (e[4] = (s) => c.$emit("time:valid"))
94
- }), null, 16, ["model-value"])) : O("", !0)
92
+ onClick: e[3] || (e[3] = (l) => c.$emit("click")),
93
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => c.$emit("update:time-model-value", l)),
94
+ "onInput:error": e[5] || (e[5] = (l) => c.$emit("time:error")),
95
+ "onInput:valid": e[6] || (e[6] = (l) => c.$emit("time:valid"))
96
+ }), null, 16, ["model-value"])) : q("", !0)
95
97
  ]),
96
98
  _: 1
97
99
  }, 8, ["layout", "error-message"]));
98
100
  }
99
- }), Dt = ({
100
- firstDayOfWeek: r,
101
+ }), Rt = ({
102
+ firstDayOfWeek: s,
101
103
  min: v,
102
104
  max: T
103
105
  }) => ({ getGranularCalendarLimits: (c) => {
104
106
  if (!v && !T)
105
107
  return { min: null, max: null };
106
- let e = v ? S(v) : null, s = T ? Q(T) : null;
108
+ let e = v ? w(v) : null, l = T ? W(T) : null;
107
109
  if (c?.type === "weekly") {
108
110
  if (c.earliest)
109
- e = S(c.earliest);
111
+ e = w(c.earliest);
110
112
  else if (e) {
111
- const g = na(e, { weekStartsOn: r });
112
- N(e, g) || (e = S(za(Ke(e, { weekStartsOn: r }), 1)));
113
+ const f = ca(e, { weekStartsOn: s });
114
+ z(e, f) || (e = w(ja(sa(e, { weekStartsOn: s }), 1)));
113
115
  }
114
116
  if (c.latest)
115
- s = Q(c.latest);
116
- else if (s) {
117
- const g = Ke(s, { weekStartsOn: r });
118
- N(s, g) || (s = Q(Va(na(s, { weekStartsOn: r }), 1)));
117
+ l = W(c.latest);
118
+ else if (l) {
119
+ const f = sa(l, { weekStartsOn: s });
120
+ z(l, f) || (l = W(Ja(ca(l, { weekStartsOn: s }), 1)));
119
121
  }
120
122
  }
121
123
  if (c?.type === "monthly") {
122
124
  if (c.earliest)
123
- e = S(c.earliest);
125
+ e = w(c.earliest);
124
126
  else if (e) {
125
- const g = Xe(e);
126
- N(e, g) || (e = Xe(Ca(e, 1)));
127
+ const f = oa(e);
128
+ z(e, f) || (e = oa(Ha(e, 1)));
127
129
  }
128
130
  if (c.latest)
129
- s = Q(c.latest);
130
- else if (s) {
131
- const g = ta(s);
132
- N(s, g) || (s = ta(_a(s, 1)));
131
+ l = W(c.latest);
132
+ else if (l) {
133
+ const f = da(l);
134
+ z(l, f) || (l = da(Ka(l, 1)));
133
135
  }
134
136
  }
135
137
  if (c?.type === "quarterly") {
136
138
  if (c.earliest)
137
- e = me(c.earliest);
139
+ e = ye(c.earliest);
138
140
  else if (e) {
139
- const g = me(e);
140
- N(e, g) || (e = me(La(e, 1)));
141
+ const f = ye(e);
142
+ z(e, f) || (e = ye(Xa(e, 1)));
141
143
  }
142
144
  if (c.latest)
143
- s = Q(c.latest);
144
- else if (s) {
145
- const g = Ze(s);
146
- N(s, g) || (s = Ze(Ua(s, 1)));
145
+ l = W(c.latest);
146
+ else if (l) {
147
+ const f = la(l);
148
+ z(l, f) || (l = la(Za(l, 1)));
147
149
  }
148
150
  }
149
- return { min: e, max: s };
150
- } }), vt = () => {
151
- const r = Re({
151
+ return { min: e, max: l };
152
+ } }), Yt = () => {
153
+ const s = Fe({
152
154
  daily: null,
153
155
  weekly: null,
154
156
  monthly: null,
155
157
  quarterly: null
156
158
  });
157
159
  return {
158
- savedRanges: r,
160
+ savedRanges: s,
159
161
  saveRange: (d, c) => {
160
- r[d] = c;
162
+ s[d] = c;
161
163
  },
162
164
  resetSavedRanges: () => {
163
- r.daily = null, r.weekly = null, r.monthly = null, r.quarterly = null;
165
+ s.daily = null, s.weekly = null, s.monthly = null, s.quarterly = null;
164
166
  }
165
167
  };
166
168
  };
167
- var D = /* @__PURE__ */ ((r) => (r.CUSTOM_RANGE = "custom-range", r.INPUT = "input", r.ERROR = "error", r.FORM_DATE = "form-date", r.START_DATE_SELECTED = "start-date-selected", r))(D || {});
168
- const Da = {
169
+ var D = /* @__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))(D || {});
170
+ const ha = {
169
171
  "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" },
170
172
  "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" },
171
173
  "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" },
@@ -177,15 +179,15 @@ const Da = {
177
179
  "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: "毎週" },
178
180
  "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" },
179
181
  "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: "每周" }
180
- }, pt = { class: "b-date-range-picker-calendar" }, ft = { class: "b-date-range-picker-calendar__form" }, gt = { key: 0 }, Mt = {
182
+ }, bt = { class: "b-date-range-picker-calendar" }, At = { class: "b-date-range-picker-calendar__form" }, kt = { key: 0 }, It = {
181
183
  key: 0,
182
184
  class: "b-date-range-picker-calendar__calendars-container",
183
185
  "data-testid": "date-range-picker-calendar-calendar-container"
184
- }, yt = {
186
+ }, St = {
185
187
  name: "date-range-picker-calendar",
186
- i18n: { messages: Da }
187
- }, ht = /* @__PURE__ */ ze({
188
- ...yt,
188
+ i18n: { messages: ha }
189
+ }, wt = /* @__PURE__ */ $e({
190
+ ...St,
189
191
  props: {
190
192
  /**
191
193
  * Allows user to enter time values in the form
@@ -201,7 +203,7 @@ const Da = {
201
203
  /**
202
204
  * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
203
205
  */
204
- firstDayOfWeek: _.props.firstDayOfWeek,
206
+ firstDayOfWeek: V.props.firstDayOfWeek,
205
207
  /**
206
208
  * A list of available granularities.
207
209
  * If present, the date picker will display a segmented control to change granularity.
@@ -213,31 +215,35 @@ const Da = {
213
215
  /**
214
216
  * Indicate if a date should be disabled or not
215
217
  */
216
- isDateDisabled: _.props.isDateDisabled,
218
+ isDateDisabled: V.props.isDateDisabled,
217
219
  /**
218
220
  * Set a maximum number of dates to be selectable by the range.
219
221
  */
220
- maxRange: _.props.maxRange,
222
+ maxRange: V.props.maxRange,
221
223
  /**
222
224
  * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
223
225
  */
224
- min: _.props.min,
226
+ min: V.props.min,
225
227
  /**
226
228
  * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
227
229
  */
228
- max: _.props.max,
230
+ max: V.props.max,
229
231
  /**
230
232
  * Number of months rendered on pane
231
233
  */
232
234
  numberOfMonths: {
233
- type: _.props.numberOfMonths.type,
234
- default: _.props.numberOfMonths.default,
235
- validator: (r) => r >= 0
235
+ type: V.props.numberOfMonths.type,
236
+ default: V.props.numberOfMonths.default,
237
+ validator: (s) => s >= 0
236
238
  },
237
239
  /**
238
240
  * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
239
241
  */
240
242
  showEndDateOnOpen: { type: Boolean, default: !1 },
243
+ /**
244
+ * Limits the selectable times to a fixed interval, expressed in minutes.
245
+ */
246
+ timeInterval: { type: Number, default: null },
241
247
  /**
242
248
  * Enables the custom range selector.
243
249
  * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
@@ -256,11 +262,11 @@ const Da = {
256
262
  /**
257
263
  * The type of calendar to display. Defaults to showing days.
258
264
  */
259
- variant: _.props.variant,
265
+ variant: V.props.variant,
260
266
  /**
261
267
  * Range of years to be selectable from the year dropdown
262
268
  */
263
- yearRange: _.props.yearRange
269
+ yearRange: V.props.yearRange
264
270
  },
265
271
  emits: [
266
272
  D.CUSTOM_RANGE,
@@ -269,410 +275,427 @@ const Da = {
269
275
  D.FORM_DATE,
270
276
  D.START_DATE_SELECTED
271
277
  ],
272
- setup(r, { emit: v }) {
278
+ setup(s, { emit: v }) {
273
279
  const d = "customRange", c = {
274
280
  daily: "maxRangeDays",
275
281
  weekly: "maxRangeWeeks",
276
282
  monthly: "maxRangeMonths",
277
283
  quarterly: "maxRangeQuarters"
278
- }, e = r, s = v, g = Ea(), W = tt(g), { t: y, tc: k } = Ve({ messages: Da }), { isTouchDevice: Y } = nt(), {
279
- dateFormat: ae,
280
- isFormatValid: b,
281
- parseDate: R,
282
- onKeyDown: B,
283
- autoFormat: G,
284
- formatDate: te
285
- } = Ce(), A = P({}), K = m(() => e.variant === "month" ? "monthly" : "daily"), ne = m(() => e.numberOfMonths === 0), t = Re({
284
+ }, e = s, l = v, f = Na(), G = mt(f), { t: y, tc: I } = Ge({ messages: ha }), { isTouchDevice: A } = Dt(), {
285
+ dateFormat: le,
286
+ isFormatValid: k,
287
+ parseDate: Y,
288
+ onKeyDown: C,
289
+ autoFormat: j,
290
+ formatDate: ee
291
+ } = je(), ie = P({}), S = P(null), ae = m(() => e.variant === "month" ? "monthly" : "daily"), ue = m(() => e.numberOfMonths === 0), p = (a, o) => e.timeInterval ? Ma(a, e.timeInterval, o) : a, he = (a) => {
292
+ const o = W(a);
293
+ return e.timeInterval ? Ee(o, p(b(o), "up")) : o;
294
+ }, t = Fe({
286
295
  startDate: e.value?.startDate,
287
296
  endDate: e.value?.endDate,
288
297
  range: e.value?.range,
289
298
  ...e.granularities ? {
290
- granularity: e.value?.granularity || K.value
299
+ granularity: e.value?.granularity || ae.value
291
300
  } : {}
292
- }), z = m(() => (
301
+ }), U = m(() => (
293
302
  // eslint-disable-next-line consistent-return
294
- e?.quickSelectRanges?.find(({ value: a, data: l }) => {
295
- if (!l.endDate) {
296
- if (l.isRelativeToNow) {
297
- const u = A.value?.[a];
298
- return u ? ce(u.startDate, t.startDate) && ce(u.endDate, t.endDate) : (
303
+ e?.quickSelectRanges?.find(({ value: a, data: o }) => {
304
+ if (!o.endDate) {
305
+ if (o.isRelativeToNow) {
306
+ const u = ie.value?.[a];
307
+ return u ? ge(u.startDate, t.startDate) && ge(u.endDate, t.endDate) : (
299
308
  // If not stored calculated dates, fall back to comparing the quick select item's value
300
309
  // with the internal range's stored range identifier.
301
310
  a === t.range
302
311
  );
303
312
  }
304
- return ce(l.startDate, t.startDate) && ct(t.endDate) && (!e.allowTimeInput || qe(t.endDate, Q(t.endDate))) && (e.granularities ? l.granularity === t.granularity : !0);
313
+ return ge(o.startDate, t.startDate) && ht(t.endDate) && (!e.allowTimeInput || We(
314
+ t.endDate,
315
+ he(t.endDate)
316
+ )) && (e.granularities ? o.granularity === t.granularity : !0);
305
317
  }
306
318
  if (e.allowTimeInput)
307
- return qe(l.startDate, t.startDate) && qe(l.endDate, t.endDate) && (e.granularities ? l.granularity === t.granularity : !0);
308
- if (l.endDate)
309
- return N(l.startDate, t.startDate) && N(l.endDate, t.endDate) && (e.granularities ? l.granularity === t.granularity : !0);
319
+ return We(o.startDate, t.startDate) && We(o.endDate, t.endDate) && (e.granularities ? o.granularity === t.granularity : !0);
320
+ if (o.endDate)
321
+ return z(o.startDate, t.startDate) && z(o.endDate, t.endDate) && (e.granularities ? o.granularity === t.granularity : !0);
310
322
  })?.value ?? d
311
- )), be = m(() => [
323
+ )), Oe = m(() => [
312
324
  { label: y("customRange"), value: d },
313
325
  ...e.quickSelectRanges ? e.quickSelectRanges : []
314
- ]), X = m(
326
+ ]), J = m(
315
327
  () => e.granularities?.find(({ type: a }) => a === t.granularity) || null
316
- ), Ae = m(
317
- () => e.granularities?.map(({ type: a, disabled: l }) => ({
328
+ ), de = m(
329
+ () => e.granularities?.map(({ type: a, disabled: o }) => ({
318
330
  label: y(a),
319
331
  value: a,
320
- disabled: l
332
+ disabled: o
321
333
  })) ?? []
322
- ), { getGranularCalendarLimits: re } = Dt(e), $ = m(
323
- () => e.granularities ? re(X.value) : { min: e.min ? S(e.min) : null, max: e.max ? Q(e.max) : null }
324
- ), { normalizeRange: ke } = Qa(e.firstDayOfWeek), { savedRanges: se, saveRange: De, resetSavedRanges: oe } = vt(), I = (a) => a ? te(a) : "", le = (a, l = !0) => {
334
+ ), { getGranularCalendarLimits: xe } = Rt(e), te = m(
335
+ () => e.granularities ? xe(J.value) : { min: e.min ? w(e.min) : null, max: e.max ? W(e.max) : null }
336
+ ), { normalizeRange: ce } = et(e.firstDayOfWeek), { savedRanges: X, saveRange: Te, resetSavedRanges: me } = Yt(), O = (a) => a ? ee(a) : "", Q = (a, o = !0) => {
325
337
  if (!t.startDate || !t.endDate)
326
338
  return;
327
- const u = ke({
339
+ const u = ce({
328
340
  startDate: t.startDate,
329
341
  endDate: t.endDate,
330
342
  fixedEndpoint: a,
331
- granularity: X.value,
332
- alignToGranularity: l,
343
+ granularity: J.value,
344
+ alignToGranularity: o,
333
345
  fallbackMaxRange: e.maxRange,
334
- min: $.value.min,
335
- max: $.value.max
346
+ min: te.value.min,
347
+ max: te.value.max
336
348
  });
337
- ce(u.startDate, t.startDate) && ce(u.endDate, t.endDate) || (t.startDate = u.startDate, t.endDate = u.endDate, n.startDate = I(u.startDate), n.endDate = I(u.endDate));
338
- }, f = P(null), h = P(null), ie = m(() => f.value ? y(f.value) : null), Z = m(() => h.value ? y(h.value) : null), q = m(
339
- () => f.value === "invalidDateFormat" ? null : ie.value
340
- ), j = m(() => h.value === "invalidDateFormat" ? null : Z.value), p = (a, l, u, M) => {
341
- if (!a || !b(a))
349
+ ge(u.startDate, t.startDate) && ge(u.endDate, t.endDate) || (t.startDate = u.startDate, t.endDate = u.endDate, r.startDate = O(u.startDate), r.endDate = O(u.endDate));
350
+ }, h = P(null), g = P(null), ne = m(() => h.value ? y(h.value) : null), N = m(() => g.value ? y(g.value) : null), H = m(
351
+ () => h.value === "invalidDateFormat" ? null : ne.value
352
+ ), R = m(() => g.value === "invalidDateFormat" ? null : N.value), B = (a, o, u, M) => {
353
+ if (!a || !k(a))
342
354
  return "invalidDateFormat";
343
- const w = R(a), C = S(w);
344
- if (e.min && C < S(e.min) || e.max && C > S(e.max) || e.isDateDisabled && e.isDateDisabled(C))
355
+ const $ = Y(a), F = w($);
356
+ if (e.min && F < w(e.min) || e.max && F > w(e.max) || e.isDateDisabled && e.isDateDisabled(F))
345
357
  return "selectedDateIsNotAvailable";
346
- if (l) {
347
- const We = M ? ge(M, 0).getTime() : C.getTime(), Ge = M ? ge(l, 0).getTime() : S(l).getTime();
348
- if (u === "start" ? We >= Ge : We <= Ge)
358
+ if (o) {
359
+ const De = M ? ke(M, 0).getTime() : F.getTime(), ve = M ? ke(o, 0).getTime() : w(o).getTime();
360
+ if (u === "start" ? De >= ve : De <= ve)
349
361
  return "startDateMustPrecedeEndDate";
350
362
  }
351
363
  return null;
352
- }, n = Re({
364
+ }, r = Fe({
353
365
  startDate: e.dateFormData.startDate,
354
366
  endDate: e.dateFormData.endDate,
355
- startTime: e.dateFormData.startTime,
356
- endTime: e.dateFormData.endTime
357
- }), ue = (a, l) => {
367
+ startTime: p(e.dateFormData.startTime, "down"),
368
+ endTime: p(e.dateFormData.endTime, "up")
369
+ }), Re = (a, o) => {
358
370
  const u = () => {
359
- if (l && F(l)) {
360
- const M = ra(R(l), a);
361
- if (e.min && M < ge(e.min, 0) || e.max && M > ge(e.max, 0))
371
+ if (o && se(o)) {
372
+ const M = Ee(Y(o), a);
373
+ if (e.min && M < ke(e.min, 0) || e.max && M > ke(e.max, 0))
362
374
  return !1;
363
375
  }
364
376
  return !0;
365
377
  };
366
- return sa(a) && u();
367
- }, J = m(() => e.variant === "month"), ve = (a) => a ? J.value ? Wa(a) : Ga(a) : "", Se = m(() => ve(t.startDate)), Ee = m(() => ve(t.endDate)), pe = m(() => Y.value ? J.value ? "month" : "date" : "text"), Ie = m(() => Y.value ? Se.value : n.startDate), Fe = m(() => Y.value ? Ee.value : n.endDate), V = (a, l) => !l || !sa(l) || e.variant === "month" ? a : ra(new Date(a), l), o = (a) => {
368
- n.startTime = x(
369
- e.min && e.allowTimeInput && N(e.min, a.startDate) ? e.min : S(a.startDate)
370
- ), n.endTime = x(
371
- e.max && e.allowTimeInput && N(e.max, a.endDate) ? e.max : Q(a.endDate)
372
- ), t.startDate = V(a.startDate, n.startTime), t.endDate = V(a.endDate, n.endTime), t.range = null, e.granularities && oe(), s(D.INPUT, {
378
+ return ra(a) && u();
379
+ }, K = m(() => e.variant === "month"), Ye = (a) => a ? K.value ? at(a) : tt(a) : "", qe = m(() => Ye(t.startDate)), Ne = m(() => Ye(t.endDate)), be = m(() => A.value ? K.value ? "month" : "date" : "text"), Be = m(() => A.value ? qe.value : r.startDate), ze = m(() => A.value ? Ne.value : r.endDate), n = (a, o) => !o || !ra(o) || e.variant === "month" ? a : Ee(new Date(a), o), x = (a, o = !1) => {
380
+ if (!o) {
381
+ const u = e.min && e.allowTimeInput && z(e.min, a.startDate), M = e.max && e.allowTimeInput && z(e.max, a.endDate);
382
+ r.startTime = u ? p(b(e.min), "up") : p(b(w(a.startDate)), "down"), r.endTime = M ? p(b(e.max), "down") : p(b(W(a.endDate)), "up");
383
+ }
384
+ t.startDate = n(a.startDate, r.startTime), t.endDate = n(a.endDate, r.endTime), t.range = null, e.granularities && me(), l(D.INPUT, {
373
385
  ...t,
374
- range: z.value
386
+ range: U.value
375
387
  });
376
- }, F = (a) => !!a && !p(a);
377
- da(() => {
378
- f.value = e.dateFormData.startDate ? p(e.dateFormData.startDate) : null, h.value = e.dateFormData.endDate ? p(e.dateFormData.endDate) : null;
388
+ }, re = (a) => {
389
+ x(a);
390
+ }, He = () => {
391
+ const a = S.value?.finalizeRangeSelection();
392
+ a && x(a, !0);
393
+ }, se = (a) => !!a && !B(a);
394
+ fa(() => {
395
+ h.value = e.dateFormData.startDate ? B(e.dateFormData.startDate) : null, g.value = e.dateFormData.endDate ? B(e.dateFormData.endDate) : null;
379
396
  });
380
- const fe = (a) => {
381
- n.startDate = I(a), n.startTime || (n.startTime = x(a)), f.value = null, h.value === "startDateMustPrecedeEndDate" && (h.value = null), s(D.START_DATE_SELECTED, a);
382
- }, va = (a) => {
383
- n.endDate = I(a), n.endTime || (n.endTime = x(Q(a))), h.value = null, f.value === "startDateMustPrecedeEndDate" && (f.value = null);
384
- }, we = (a) => {
385
- const l = e.value?.[a];
386
- if (l)
387
- return l;
388
- if (e.dateFormData[a] && F(e.dateFormData[a]))
389
- return R(e.dateFormData[a]);
390
- }, Pe = (a, l = !1) => {
391
- if (F(a)) {
397
+ const Ta = (a) => {
398
+ r.startDate = O(a), r.startTime || (r.startTime = p(b(a), "down")), h.value = null, g.value === "startDateMustPrecedeEndDate" && (g.value = null), l(D.START_DATE_SELECTED, a);
399
+ }, Ra = (a) => {
400
+ r.endDate = O(a), r.endTime || (r.endTime = p(b(W(a)), "up")), g.value = null, h.value === "startDateMustPrecedeEndDate" && (h.value = null);
401
+ }, Ce = (a) => {
402
+ const o = e.value?.[a];
403
+ if (o)
404
+ return o;
405
+ if (e.dateFormData[a] && se(e.dateFormData[a]))
406
+ return Y(e.dateFormData[a]);
407
+ }, Ve = (a, o = !1) => {
408
+ if (se(a)) {
392
409
  const u = a;
393
- f.value = null, n.startDate = u;
394
- const M = S(R(u));
395
- t.startDate = V(M, n.startTime), F(n.endDate) && (t.endDate = V(
396
- S(R(n.endDate)),
397
- n.endTime
410
+ h.value = null, r.startDate = u;
411
+ const M = w(Y(u));
412
+ t.startDate = n(M, r.startTime), se(r.endDate) && (t.endDate = n(
413
+ w(Y(r.endDate)),
414
+ r.endTime
398
415
  ));
399
- const w = we("endDate"), C = p(
416
+ const $ = Ce("endDate"), F = B(
400
417
  u,
401
- e.allowTimeInput ? t.endDate : w,
418
+ e.allowTimeInput ? t.endDate : $,
402
419
  "start",
403
420
  e.allowTimeInput ? t.startDate : void 0
404
421
  );
405
- if (C) {
406
- f.value = C, s(D.ERROR, { ...n });
422
+ if (F) {
423
+ h.value = F, l(D.ERROR, { ...r });
407
424
  return;
408
425
  }
409
- h.value === "startDateMustPrecedeEndDate" && (h.value = null), le("end", l), t.range = null, s(D.FORM_DATE, {
426
+ g.value === "startDateMustPrecedeEndDate" && (g.value = null), Q("end", o), t.range = null, l(D.FORM_DATE, {
410
427
  startDate: t.startDate,
411
428
  endDate: t.endDate
412
- }), s(D.INPUT, {
429
+ }), l(D.INPUT, {
413
430
  ...t,
414
- range: z.value
431
+ range: U.value
415
432
  });
416
433
  } else
417
- f.value = p(a), s(D.ERROR, { ...n });
418
- }, pa = He(Pe, 300), fa = (a) => {
419
- n.startDate = Y.value && J.value ? a : G(a), Y.value ? J.value && a ? Pe(I(ea(a)), !0) : n.startDate ? Pe(n.startDate) : f.value = null : pa(n.startDate);
420
- }, Oe = (a, l = !1) => {
421
- if (F(a)) {
434
+ h.value = B(a), l(D.ERROR, { ...r });
435
+ }, Ya = na(Ve, 300), ba = (a) => {
436
+ r.startDate = A.value && K.value ? a : j(a), A.value ? K.value && a ? Ve(O(ia(a)), !0) : r.startDate ? Ve(r.startDate) : h.value = null : Ya(r.startDate);
437
+ }, Le = (a, o = !1) => {
438
+ if (se(a)) {
422
439
  const u = a;
423
- h.value = null, n.endDate = u;
424
- const M = S(R(u));
425
- t.endDate = V(M, n.endTime), F(n.startDate) && (t.startDate = V(
426
- S(R(n.startDate)),
427
- n.startTime
440
+ g.value = null, r.endDate = u;
441
+ const M = w(Y(u));
442
+ t.endDate = n(M, r.endTime), se(r.startDate) && (t.startDate = n(
443
+ w(Y(r.startDate)),
444
+ r.startTime
428
445
  ));
429
- const w = we("startDate"), C = p(
446
+ const $ = Ce("startDate"), F = B(
430
447
  u,
431
- e.allowTimeInput ? t.startDate : w,
448
+ e.allowTimeInput ? t.startDate : $,
432
449
  "end",
433
450
  e.allowTimeInput ? t.endDate : void 0
434
451
  );
435
- if (C) {
436
- h.value = C, s(D.ERROR, { ...n });
452
+ if (F) {
453
+ g.value = F, l(D.ERROR, { ...r });
437
454
  return;
438
455
  }
439
- f.value === "startDateMustPrecedeEndDate" && (f.value = null), le("start", l), t.range = null, s(D.FORM_DATE, {
456
+ h.value === "startDateMustPrecedeEndDate" && (h.value = null), Q("start", o), t.range = null, l(D.FORM_DATE, {
440
457
  startDate: t.startDate,
441
458
  endDate: t.endDate
442
- }), s(D.INPUT, {
459
+ }), l(D.INPUT, {
443
460
  ...t,
444
- range: z.value
461
+ range: U.value
445
462
  });
446
463
  } else
447
- h.value = p(a), s(D.ERROR, { ...n });
448
- }, ga = He(Oe, 300), Ma = (a) => {
449
- n.endDate = Y.value && J.value ? a : G(a), Y.value ? J.value && a ? Oe(I(ea(a)), !0) : n.endDate ? Oe(n.endDate) : h.value = null : ga(n.endDate);
450
- }, Le = (a) => {
451
- B(a);
452
- }, ya = () => {
453
- s(D.ERROR, { ...n });
454
- }, ha = () => {
455
- const a = n.startTime;
456
- if (!ue(a, n.startDate)) {
457
- s(D.ERROR, { ...n });
464
+ g.value = B(a), l(D.ERROR, { ...r });
465
+ }, Aa = na(Le, 300), ka = (a) => {
466
+ r.endDate = A.value && K.value ? a : j(a), A.value ? K.value && a ? Le(O(ia(a)), !0) : r.endDate ? Le(r.endDate) : g.value = null : Aa(r.endDate);
467
+ }, Ke = (a) => {
468
+ C(a);
469
+ }, Ia = () => {
470
+ l(D.ERROR, { ...r });
471
+ }, Sa = () => {
472
+ const a = r.startTime;
473
+ if (!Re(a, r.startDate)) {
474
+ l(D.ERROR, { ...r });
458
475
  return;
459
476
  }
460
- if (t.startDate = V(t.startDate, a), n.startDate && t.endDate) {
461
- const u = p(
462
- n.startDate,
477
+ if (t.startDate = n(t.startDate, a), r.startDate && t.endDate) {
478
+ const u = B(
479
+ r.startDate,
463
480
  t.endDate,
464
481
  "start",
465
482
  t.startDate
466
483
  );
467
484
  if (u) {
468
- f.value = u, s(D.ERROR, { ...n });
485
+ h.value = u, l(D.ERROR, { ...r });
469
486
  return;
470
487
  }
471
488
  }
472
- f.value = null, h.value === "startDateMustPrecedeEndDate" && (h.value = null);
473
- const l = we("endDate");
474
- s(D.FORM_DATE, {
489
+ h.value = null, g.value === "startDateMustPrecedeEndDate" && (g.value = null);
490
+ const o = Ce("endDate");
491
+ l(D.FORM_DATE, {
475
492
  startDate: t.startDate,
476
- endDate: l,
493
+ endDate: o,
477
494
  startTime: a,
478
- endTime: n.endTime ?? e.dateFormData.endTime
479
- }), s(D.INPUT, {
495
+ endTime: r.endTime ?? e.dateFormData.endTime
496
+ }), l(D.INPUT, {
480
497
  ...t,
481
- range: z.value
498
+ range: U.value
482
499
  });
483
- }, Ta = () => {
484
- s(D.ERROR, { ...n });
485
- }, Ra = () => {
486
- const a = n.endTime;
487
- if (!ue(a, n.endDate)) {
488
- s(D.ERROR, { ...n });
500
+ }, wa = () => {
501
+ l(D.ERROR, { ...r });
502
+ }, Ea = () => {
503
+ const a = r.endTime;
504
+ if (!Re(a, r.endDate)) {
505
+ l(D.ERROR, { ...r });
489
506
  return;
490
507
  }
491
- if (t.endDate = V(t.endDate, a), n.endDate && t.startDate) {
492
- const l = p(
493
- n.endDate,
508
+ if (t.endDate = n(t.endDate, a), r.endDate && t.startDate) {
509
+ const o = B(
510
+ r.endDate,
494
511
  t.startDate,
495
512
  "end",
496
513
  t.endDate
497
514
  );
498
- if (l) {
499
- h.value = l, s(D.ERROR, { ...n });
515
+ if (o) {
516
+ g.value = o, l(D.ERROR, { ...r });
500
517
  return;
501
518
  }
502
519
  }
503
- h.value = null, f.value === "startDateMustPrecedeEndDate" && (f.value = null), s(D.FORM_DATE, {
520
+ g.value = null, h.value === "startDateMustPrecedeEndDate" && (h.value = null), l(D.FORM_DATE, {
504
521
  startDate: t.startDate,
505
522
  endDate: t.endDate,
506
- startTime: n.startTime ?? e.dateFormData.startTime,
523
+ startTime: r.startTime ?? e.dateFormData.startTime,
507
524
  endTime: a
508
- }), s(D.INPUT, {
525
+ }), l(D.INPUT, {
509
526
  ...t,
510
- range: z.value
527
+ range: U.value
511
528
  });
512
- }, Ya = (a) => {
513
- n.startTime = a;
514
- }, ba = (a) => {
515
- n.endTime = a;
516
- }, Ue = (a, l, u, M) => {
517
- t.startDate = a, t.endDate = l, u && (t.granularity = u), M && (t.range = M);
518
- }, Aa = (a) => {
519
- const l = e.quickSelectRanges?.find(({ value: u }) => u === a);
520
- if (l) {
521
- oe();
522
- const u = l.data, M = u.endDate || (u.isRelativeToNow ? new Date(Date.now()) : Q(new Date(Date.now()))), w = u.isRelativeToNow && u.timeDifference ? new Date(M.getTime() - u.timeDifference) : u.startDate;
523
- n.endDate = I(M), n.startDate = I(w), Ue(w, M, null, a), e.granularities && (t.granularity = u.granularity || K.value), n.startTime = x(w), n.endTime = x(M), t.startDate = w, t.endDate = M, u.isRelativeToNow && (A.value = {
524
- ...A.value,
529
+ }, Fa = (a) => {
530
+ r.startTime = a;
531
+ }, Pa = (a) => {
532
+ r.endTime = a;
533
+ }, Xe = (a, o, u, M) => {
534
+ t.startDate = a, t.endDate = o, u && (t.granularity = u), M && (t.range = M);
535
+ }, Oa = (a) => {
536
+ const o = e.quickSelectRanges?.find(({ value: u }) => u === a);
537
+ if (o) {
538
+ me();
539
+ const u = o.data, M = u.endDate || (u.isRelativeToNow ? new Date(Date.now()) : W(new Date(Date.now()))), $ = u.isRelativeToNow && u.timeDifference ? new Date(M.getTime() - u.timeDifference) : u.startDate, F = p(b($), "down"), De = p(b(M), "up"), ve = e.allowTimeInput && !!e.timeInterval, pe = ve ? n($, F) : $, Ae = ve ? n(M, De) : M;
540
+ r.endDate = O(Ae), r.startDate = O(pe), r.startTime = F, r.endTime = De, Xe(pe, Ae, null, a), e.granularities && (t.granularity = u.granularity || ae.value), u.isRelativeToNow && (ie.value = {
541
+ ...ie.value,
525
542
  [a]: {
526
- startDate: w,
527
- endDate: M
543
+ startDate: pe,
544
+ endDate: Ae
528
545
  }
529
- }), s(D.CUSTOM_RANGE, {
530
- ...l.data,
531
- startDate: w,
532
- endDate: M,
533
- range: l.value
546
+ }), l(D.CUSTOM_RANGE, {
547
+ ...o.data,
548
+ startDate: pe,
549
+ endDate: Ae,
550
+ range: o.value
534
551
  });
535
552
  }
536
- }, ka = (a) => {
537
- const l = t.granularity;
538
- t.granularity = a, l && De(l, structuredClone(Ne(t))), t.startDate && t.endDate && (se[a] && Ue(se[a].startDate, se[a].endDate, a), le("end"), n.startDate = I(t.startDate), n.endDate = I(t.endDate), s(D.INPUT, {
553
+ }, xa = (a) => {
554
+ const o = t.granularity;
555
+ t.granularity = a, o && Te(o, structuredClone(Ue(t))), t.startDate && t.endDate && (X[a] && Xe(X[a].startDate, X[a].endDate, a), Q("end"), r.startDate = O(t.startDate), r.endDate = O(t.endDate), l(D.INPUT, {
539
556
  ...t,
540
- range: z.value
557
+ range: U.value
541
558
  }));
542
- }, Sa = m(() => ({
543
- "b-date-range-picker-calendar__form-container--no-calendars": ne.value || Y.value
544
- })), Qe = m(() => {
545
- const a = X.value, l = a?.maxRange || e.maxRange;
546
- if (!l)
559
+ }, qa = m(() => ({
560
+ "b-date-range-picker-calendar__form-container--no-calendars": ue.value || A.value
561
+ })), Ze = m(() => {
562
+ const a = J.value, o = a?.maxRange || e.maxRange;
563
+ if (!o)
547
564
  return null;
548
565
  const u = c[a?.type ?? "daily"];
549
- return k(u, l, { count: l });
566
+ return I(u, o, { count: o });
550
567
  });
551
- return (a, l) => (E(), Me("div", pt, [
552
- ee("div", {
553
- class: ca(["b-date-range-picker-calendar__form-container", Sa.value]),
568
+ return !e.allowTimeInput || !e.timeInterval || (t.startDate && (t.startDate = n(t.startDate, r.startTime)), t.endDate && (t.endDate = n(t.endDate, r.endTime))), (a, o) => (E(), Ie("div", bt, [
569
+ oe("div", {
570
+ class: ga(["b-date-range-picker-calendar__form-container", qa.value]),
554
571
  "data-testid": "date-range-picker-calendar-form-container"
555
572
  }, [
556
- ee("div", ft, [
557
- i(W)("title") ? je(a.$slots, "title", { key: 0 }, void 0, !0) : O("", !0),
558
- r.quickSelectRanges ? (E(), L(Na, {
573
+ oe("div", At, [
574
+ i(G)("title") ? aa(a.$slots, "title", { key: 0 }, void 0, !0) : q("", !0),
575
+ s.quickSelectRanges ? (E(), L(Qa, {
559
576
  key: 1,
560
577
  "aria-label": i(y)("customRange"),
561
- items: be.value,
562
- "model-value": z.value,
563
- "onUpdate:modelValue": Aa
564
- }, null, 8, ["aria-label", "items", "model-value"])) : O("", !0),
565
- r.granularities ? (E(), L(i(at), {
578
+ items: Oe.value,
579
+ "model-value": U.value,
580
+ "onUpdate:modelValue": Oa
581
+ }, null, 8, ["aria-label", "items", "model-value"])) : q("", !0),
582
+ s.granularities ? (E(), L(i(ct), {
566
583
  key: 2,
567
- items: Ae.value,
584
+ items: de.value,
568
585
  "model-value": t.granularity,
569
586
  "full-width": "",
570
- "onUpdate:modelValue": ka
571
- }, null, 8, ["items", "model-value"])) : O("", !0),
572
- Qe.value ? (E(), L(i(et), {
587
+ "onUpdate:modelValue": xa
588
+ }, null, 8, ["items", "model-value"])) : q("", !0),
589
+ Ze.value ? (E(), L(i(dt), {
573
590
  key: 3,
574
591
  variant: "tip"
575
592
  }, {
576
- description: H(() => [
577
- ye(he(Qe.value), 1)
593
+ description: Z(() => [
594
+ Se(we(Ze.value), 1)
578
595
  ]),
579
596
  _: 1
580
- })) : O("", !0),
581
- ee("div", null, [
582
- U(i(Be), {
597
+ })) : q("", !0),
598
+ oe("div", null, [
599
+ _(i(Qe), {
583
600
  stronger: "",
584
601
  el: "span",
585
602
  class: "b-date-range-picker-calendar__label"
586
603
  }, {
587
- default: H(() => [
588
- ye(he(i(y)("from")), 1)
604
+ default: Z(() => [
605
+ Se(we(i(y)("from")), 1)
589
606
  ]),
590
607
  _: 1
591
608
  }),
592
- U(i(ua), {
593
- "date-model-value": Ie.value,
609
+ _(i(pa), {
610
+ "date-model-value": Be.value,
594
611
  "date-props": {
595
612
  "aria-label": i(y)("dateFrom"),
596
- type: pe.value,
597
- description: i(Y) ? void 0 : i(y)(i(ae)),
598
- errorMessage: ie.value
613
+ type: be.value,
614
+ description: i(A) ? void 0 : i(y)(i(le)),
615
+ errorMessage: ne.value
599
616
  },
600
- "error-message": q.value,
601
- "show-time-input": r.allowTimeInput,
602
- "time-model-value": n.startTime,
617
+ "error-message": H.value,
618
+ "show-time-input": s.allowTimeInput,
619
+ "time-model-value": r.startTime,
603
620
  "time-props": {
604
621
  "aria-label": i(y)("timeFrom"),
605
- errorMessage: q.value
622
+ errorMessage: H.value,
623
+ interval: s.timeInterval
606
624
  },
607
625
  class: "b-date-range-picker-calendar__form-input",
608
- "onUpdate:dateModelValue": fa,
609
- "onDate:keydown": Le,
610
- "onUpdate:timeModelValue": Ya,
611
- "onTime:error": ya,
612
- "onTime:valid": ha
626
+ onClick: He,
627
+ "onUpdate:dateModelValue": ba,
628
+ "onDate:keydown": Ke,
629
+ "onUpdate:timeModelValue": Fa,
630
+ "onTime:error": Ia,
631
+ "onTime:valid": Sa
613
632
  }, null, 8, ["date-model-value", "date-props", "error-message", "show-time-input", "time-model-value", "time-props"])
614
633
  ]),
615
- ee("div", null, [
616
- U(i(Be), {
634
+ oe("div", null, [
635
+ _(i(Qe), {
617
636
  stronger: "",
618
637
  el: "span",
619
638
  class: "b-date-range-picker-calendar__label"
620
639
  }, {
621
- default: H(() => [
622
- ye(he(i(y)("to")), 1)
640
+ default: Z(() => [
641
+ Se(we(i(y)("to")), 1)
623
642
  ]),
624
643
  _: 1
625
644
  }),
626
- U(i(ua), {
627
- "date-model-value": Fe.value,
645
+ _(i(pa), {
646
+ "date-model-value": ze.value,
628
647
  "date-props": {
629
648
  "aria-label": i(y)("dateTo"),
630
- type: pe.value,
631
- description: i(Y) ? void 0 : i(y)(i(ae)),
632
- errorMessage: Z.value
649
+ type: be.value,
650
+ description: i(A) ? void 0 : i(y)(i(le)),
651
+ errorMessage: N.value
633
652
  },
634
- "error-message": j.value,
635
- "show-time-input": r.allowTimeInput,
636
- "time-model-value": n.endTime,
653
+ "error-message": R.value,
654
+ "show-time-input": s.allowTimeInput,
655
+ "time-model-value": r.endTime,
637
656
  "time-props": {
638
657
  "aria-label": i(y)("timeTo"),
639
- errorMessage: j.value
658
+ errorMessage: R.value,
659
+ interval: s.timeInterval
640
660
  },
641
661
  class: "b-date-range-picker-calendar__form-input",
642
- "onUpdate:dateModelValue": Ma,
643
- "onDate:keydown": Le,
644
- "onUpdate:timeModelValue": ba,
645
- "onTime:error": Ta,
646
- "onTime:valid": Ra
662
+ onClick: He,
663
+ "onUpdate:dateModelValue": ka,
664
+ "onDate:keydown": Ke,
665
+ "onUpdate:timeModelValue": Pa,
666
+ "onTime:error": wa,
667
+ "onTime:valid": Ea
647
668
  }, null, 8, ["date-model-value", "date-props", "error-message", "show-time-input", "time-model-value", "time-props"])
648
669
  ])
649
670
  ]),
650
- i(W)("actions") ? (E(), Me("div", gt, [
651
- je(a.$slots, "actions", {}, void 0, !0)
652
- ])) : O("", !0)
671
+ i(G)("actions") ? (E(), Ie("div", kt, [
672
+ aa(a.$slots, "actions", {}, void 0, !0)
673
+ ])) : q("", !0)
653
674
  ], 2),
654
- !ne.value && !i(Y) ? (E(), Me("div", Mt, [
655
- U(i(_), {
675
+ !ue.value && !i(A) ? (E(), Ie("div", It, [
676
+ _(i(V), {
677
+ ref_key: "calendarRef",
678
+ ref: S,
656
679
  value: t,
657
- "first-day-of-week": r.firstDayOfWeek,
658
- "is-date-disabled": r.isDateDisabled,
659
- "max-range": r.maxRange,
660
- min: $.value.min,
661
- max: $.value.max,
662
- "number-of-months": r.numberOfMonths,
663
- "show-end-date-on-open": r.showEndDateOnOpen,
664
- granularity: X.value,
665
- variant: r.variant,
666
- "year-range": r.yearRange,
680
+ "first-day-of-week": s.firstDayOfWeek,
681
+ "is-date-disabled": s.isDateDisabled,
682
+ "max-range": s.maxRange,
683
+ min: te.value.min,
684
+ max: te.value.max,
685
+ "number-of-months": s.numberOfMonths,
686
+ "show-end-date-on-open": s.showEndDateOnOpen,
687
+ granularity: J.value,
688
+ variant: s.variant,
689
+ "year-range": s.yearRange,
667
690
  "is-range": "",
668
- onInput: o,
669
- onStartDateSelected: fe,
670
- onEndDateSelected: va
691
+ onInput: re,
692
+ onStartDateSelected: Ta,
693
+ onEndDateSelected: Ra
671
694
  }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant", "year-range"])
672
- ])) : O("", !0)
695
+ ])) : q("", !0)
673
696
  ]));
674
697
  }
675
- }), Tt = /* @__PURE__ */ ma(ht, [["__scopeId", "data-v-ebba39b9"]]), _e = {
698
+ }), Et = /* @__PURE__ */ ya(wt, [["__scopeId", "data-v-32ad58da"]]), Je = {
676
699
  "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" },
677
700
  "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" },
678
701
  "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" },
@@ -684,69 +707,69 @@ const Da = {
684
707
  "ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", invalidDateFormat: "無効な日付形式", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
685
708
  "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" },
686
709
  "zh-CN": { apply: "应用", cancel: "取消", dateRangePicker: "日期范围选择器 {name}", invalidDateFormat: "日期格式无效", quarter: "{year} {quarter} 季度", selectDate: "选择日期", selectDateRange: "选择日期范围", selectedDateIsNotAvailable: "所选日期不可用" }
687
- }, Rt = ({
688
- datePickerValue: r,
710
+ }, Ft = ({
711
+ datePickerValue: s,
689
712
  isDateIncorrect: v,
690
713
  quickSelectRanges: T,
691
714
  isMonthVariant: d,
692
715
  withTimeInput: c,
693
716
  placeholder: e
694
717
  }) => {
695
- const { locale: s, t: g } = Ve({ messages: _e }), { dateToInputDateString: W } = Ce(), y = (b) => !!b && !isNaN(b.getTime()), k = Re({
718
+ const { locale: l, t: f } = Ge({ messages: Je }), { dateToInputDateString: G } = je(), y = (k) => !!k && !isNaN(k.getTime()), I = Fe({
696
719
  startDate: null,
697
720
  endDate: null,
698
721
  startTime: null,
699
722
  endTime: null
700
723
  });
701
- return Te(
702
- r,
703
- (b) => {
704
- k.startDate = W(b?.startDate), k.endDate = W(b?.endDate), k.startTime = x(b?.startDate), k.endTime = x(b?.endDate);
724
+ return Me(
725
+ s,
726
+ (k) => {
727
+ I.startDate = G(k?.startDate), I.endDate = G(k?.endDate), I.startTime = b(k?.startDate), I.endTime = b(k?.endDate);
705
728
  },
706
729
  { immediate: !0 }
707
730
  ), {
708
731
  // Values
709
732
  dateDisplayValue: m(() => {
710
733
  if (v.value)
711
- return `${k.startDate || ""} - ${k.endDate || ""}`;
712
- if (!r.value || !r.value.startDate && !r.value.endDate)
713
- return e?.value || g("selectDateRange");
734
+ return `${I.startDate || ""} - ${I.endDate || ""}`;
735
+ if (!s.value || !s.value.startDate && !s.value.endDate)
736
+ return e?.value || f("selectDateRange");
714
737
  if (T.value?.length) {
715
- const R = T.value.find(({ value: B }) => B === r.value?.range);
716
- if (R)
717
- return R.label;
738
+ const Y = T.value.find(({ value: C }) => C === s.value?.range);
739
+ if (Y)
740
+ return Y.label;
718
741
  }
719
- if (r.value.granularity === "quarterly") {
720
- const { startDate: R, endDate: B } = r.value, G = g("quarter", { quarter: aa(R), year: la(R) });
721
- if (dt(R, B))
722
- return G;
723
- const te = g("quarter", { quarter: aa(B), year: la(B) });
724
- return `${G} - ${te}`;
742
+ if (s.value.granularity === "quarterly") {
743
+ const { startDate: Y, endDate: C } = s.value, j = f("quarter", { quarter: ua(Y), year: Da(Y) });
744
+ if (yt(Y, C))
745
+ return j;
746
+ const ee = f("quarter", { quarter: ua(C), year: Da(C) });
747
+ return `${j} - ${ee}`;
725
748
  }
726
- if (!y(r.value.startDate) || !y(r.value.endDate))
727
- return `${k.startDate || ""} - ${k.endDate || ""}`;
728
- let b = d?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
729
- return c.value && (b = {
730
- ...b,
749
+ if (!y(s.value.startDate) || !y(s.value.endDate))
750
+ return `${I.startDate || ""} - ${I.endDate || ""}`;
751
+ let k = d?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
752
+ return c.value && (k = {
753
+ ...k,
731
754
  hour: "numeric",
732
755
  minute: "numeric",
733
756
  second: "numeric",
734
757
  hour12: !1
735
- }), $a(s.value, b).formatRange(
736
- r.value.startDate,
737
- r.value.endDate
758
+ }), nt(l.value, k).formatRange(
759
+ s.value.startDate,
760
+ s.value.endDate
738
761
  );
739
762
  }),
740
- textInputDisplayValue: k,
763
+ textInputDisplayValue: I,
741
764
  // Methods
742
765
  formatTextInputDisplayValue: () => ""
743
766
  };
744
- }, Yt = { class: "b-date-range-picker" }, bt = { class: "b-date-range-picker__footer" }, At = {
745
- i18n: { messages: _e },
767
+ }, Pt = { class: "b-date-range-picker" }, Ot = { class: "b-date-range-picker__footer" }, xt = {
768
+ i18n: { messages: Je },
746
769
  name: "bento-date-range-picker",
747
770
  model: { prop: "modelValue", event: "update:model-value" }
748
- }, kt = /* @__PURE__ */ ze({
749
- ...At,
771
+ }, qt = /* @__PURE__ */ $e({
772
+ ...xt,
750
773
  props: {
751
774
  allowTimeInput: { type: Boolean },
752
775
  firstDayOfWeek: { default: void 0 },
@@ -758,6 +781,7 @@ const Da = {
758
781
  min: { default: null },
759
782
  max: { default: null },
760
783
  numberOfMonths: { default: void 0 },
784
+ timeInterval: { default: void 0 },
761
785
  modelValue: { default: null },
762
786
  variant: { default: void 0 },
763
787
  yearRange: { default: void 0 },
@@ -772,8 +796,8 @@ const Da = {
772
796
  tooltipText: { default: null }
773
797
  },
774
798
  emits: ["update:model-value"],
775
- setup(r, { emit: v }) {
776
- const T = v, d = r, c = Ia(), { t: e } = Ve({ messages: _e }), { dateToInputDateString: s } = Ce(), g = de("bento-date-range-picker-container"), W = de("bento-date-range-picker-label"), y = de("bento-date-range-picker-description"), k = de("bento-date-range-picker-error"), Y = de("bento-date-range-picker-date-error"), ae = m(() => d.label || e("dateRangePicker", { name: g })), { resolvedFirstDayOfWeek: b } = ja(xe(d, "firstDayOfWeek")), R = wa({
799
+ setup(s, { emit: v }) {
800
+ const T = v, d = s, c = Ba(), { t: e } = Ge({ messages: Je }), { dateToInputDateString: l } = je(), f = fe("bento-date-range-picker-container"), G = fe("bento-date-range-picker-label"), y = fe("bento-date-range-picker-description"), I = fe("bento-date-range-picker-error"), A = fe("bento-date-range-picker-date-error"), le = m(() => d.label || e("dateRangePicker", { name: f })), { resolvedFirstDayOfWeek: k } = rt(_e(d, "firstDayOfWeek")), Y = Ca({
777
801
  none: 0,
778
802
  one: 710,
779
803
  // width of date range picker with one panes
@@ -781,223 +805,241 @@ const Da = {
781
805
  // width of date range picker with two panes
782
806
  three: 1290
783
807
  // width of date range picker with three panes
784
- }), B = m(() => {
785
- const o = R.active().value, F = {
808
+ }), C = m(() => {
809
+ const n = Y.active().value, x = {
786
810
  none: 0,
787
811
  one: 1,
788
812
  two: 2
789
813
  };
790
- if (o in F) {
791
- const fe = F[o];
792
- return d.numberOfMonths === void 0 ? fe : Math.min(d.numberOfMonths, fe);
814
+ if (n in x) {
815
+ const re = x[n];
816
+ return d.numberOfMonths === void 0 ? re : Math.min(d.numberOfMonths, re);
793
817
  }
794
818
  return d.numberOfMonths;
795
- }), G = m(() => d?.quickSelectRanges && d.quickSelectRanges.map((o) => {
796
- const F = o.data.endDate ? void 0 : new Date(Date.now()).getTime() - o.data.startDate.getTime();
819
+ }), j = (n, x) => Ee(
820
+ n,
821
+ Ma(b(n), X.value, x)
822
+ ), ee = m(() => d?.quickSelectRanges && d.quickSelectRanges.map((n) => {
823
+ const x = n.data.endDate ? void 0 : new Date(Date.now()).getTime() - n.data.startDate.getTime(), re = X.value ? {
824
+ startDate: j(n.data.startDate, "down"),
825
+ ...n.data.endDate ? { endDate: j(n.data.endDate, "up") } : {}
826
+ } : {};
797
827
  return {
798
- ...o,
828
+ ...n,
799
829
  data: {
800
- ...o.data,
830
+ ...n.data,
831
+ ...re,
801
832
  // Adding timeDifference to calculate an up-to-date endDate on range selection
802
- timeDifference: F
833
+ timeDifference: x
803
834
  }
804
835
  };
805
- })), te = m(() => d.label ? W : c?.["aria-labelledby"] ?? null), A = P(!1), K = P(null), ne = P(null), t = P(!1), { width: z } = Pa(ne), { isReadOnly: be } = Ka(xe(d, "readonly")), { emitValue: X } = Za(T);
806
- Te(
836
+ })), ie = m(() => d.label ? G : c?.["aria-labelledby"] ?? null), S = P(!1), ae = P(null), ue = P(null), p = P(!1), { width: he } = Va(ue), { isReadOnly: t } = lt(_e(d, "readonly")), { emitValue: U } = ut(T);
837
+ Me(
807
838
  () => d.disabled,
808
839
  () => {
809
- d.disabled && t.value && (t.value = !1);
840
+ d.disabled && p.value && (p.value = !1);
810
841
  }
811
842
  );
812
- const Ae = m(
813
- () => B.value === 0 && z.value > 0 && z.value < 332
843
+ const Oe = m(
844
+ () => C.value === 0 && he.value > 0 && he.value < 332
814
845
  // size of date range picker form
815
- ), re = m(() => d.modelValue), $ = m(() => !j.value && A.value), ke = m(() => ({
816
- "b-date-range-picker__description--error": !!d.errorMessage || $.value
817
- })), se = m(() => d.variant === "month"), De = m(() => d.allowTimeInput && d.variant !== "month"), { dateDisplayValue: oe, textInputDisplayValue: I } = Rt({
818
- datePickerValue: re,
819
- isDateIncorrect: A,
820
- quickSelectRanges: G,
821
- isMonthVariant: se,
822
- withTimeInput: De,
823
- placeholder: xe(d, "placeholder")
824
- }), le = m(
825
- () => `${d.description ? y : ""} ${d.errorMessage ? k : ""} ${A.value ? Y : ""}`.trim() || null
826
- ), f = () => {
827
- t.value = !1;
846
+ ), J = m(() => d.modelValue), de = m(() => !H.value && S.value), xe = m(() => ({
847
+ "b-date-range-picker__description--error": !!d.errorMessage || de.value
848
+ })), te = m(() => d.variant === "month"), ce = m(() => d.allowTimeInput && d.variant !== "month"), X = m(() => ce.value ? d.timeInterval : null);
849
+ Me(
850
+ [() => d.timeInterval, () => d.allowTimeInput],
851
+ ([n, x]) => {
852
+ n && !x && Ua(
853
+ '"bento-date-range-picker" ignores the "timeInterval" prop unless "allowTimeInput" is enabled.'
854
+ );
855
+ },
856
+ { immediate: !0 }
857
+ );
858
+ const { dateDisplayValue: Te, textInputDisplayValue: me } = Ft({
859
+ datePickerValue: J,
860
+ isDateIncorrect: S,
861
+ quickSelectRanges: ee,
862
+ isMonthVariant: te,
863
+ withTimeInput: ce,
864
+ placeholder: _e(d, "placeholder")
865
+ }), O = m(
866
+ () => `${d.description ? y : ""} ${d.errorMessage ? I : ""} ${S.value ? A : ""}`.trim() || null
867
+ ), Q = () => {
868
+ p.value = !1;
828
869
  }, h = () => {
829
- t.value = !0;
830
- }, ie = P(oe.value), Z = P(
870
+ p.value = !0;
871
+ }, g = P(Te.value), ne = P(
831
872
  // textInputDisplayValue is a reactive object
832
- structuredClone(Ne(I))
833
- ), q = P(d.modelValue), j = P(!0), p = P(Z.value), n = {
873
+ structuredClone(Ue(me))
874
+ ), N = P(d.modelValue), H = P(!0), R = P(ne.value), B = {
834
875
  allowOutsideClick: !0
835
876
  };
836
- da(() => {
837
- if (d.granularities && d.variant !== "month" && d.granularities.find(({ type: o }) => o === "quarterly"))
877
+ fa(() => {
878
+ if (d.granularities && d.variant !== "month" && d.granularities.find(({ type: n }) => n === "quarterly"))
838
879
  throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
839
880
  });
840
- const ue = () => {
841
- ie.value = oe.value, Z.value = structuredClone(Ne(I)), p.value = Z.value, q.value = re.value;
881
+ const r = () => {
882
+ g.value = Te.value, ne.value = structuredClone(Ue(me)), R.value = ne.value, N.value = J.value;
842
883
  };
843
- Te(
884
+ Me(
844
885
  () => d.modelValue,
845
886
  () => {
846
- ue();
887
+ r();
847
888
  }
848
889
  );
849
- const J = () => {
850
- ue(), A.value = !1, j.value = !0, f();
851
- }, ve = m(() => [
890
+ const Re = () => {
891
+ r(), S.value = !1, H.value = !0, Q();
892
+ }, K = m(() => [
852
893
  {
853
894
  title: e("apply"),
854
895
  event: () => {
855
- X(q.value), f(), j.value = !0;
896
+ U(N.value), Q(), H.value = !0;
856
897
  },
857
- disabled: j.value
898
+ disabled: H.value
858
899
  },
859
900
  {
860
901
  title: e("cancel"),
861
- event: J
902
+ event: Re
862
903
  }
863
904
  ]);
864
- Te(q, (o) => {
865
- j.value = A.value || o === re.value;
905
+ Me(N, (n) => {
906
+ H.value = S.value || n === J.value;
866
907
  });
867
- const Se = (o) => {
868
- A.value = !1, p.value.startDate = s(o.startDate), p.value.endDate = s(o.endDate), p.value.startTime = x(o.startDate), p.value.endTime = x(o.endDate), q.value = o;
869
- }, Ee = async () => {
870
- A.value && (A.value = !1), q.value = null;
871
- }, pe = () => {
872
- if (!t.value) {
873
- t.value = !0;
908
+ const Ye = (n) => {
909
+ S.value = !1, R.value.startDate = l(n.startDate), R.value.endDate = l(n.endDate), R.value.startTime = b(n.startDate), R.value.endTime = b(n.endDate), N.value = n;
910
+ }, qe = async () => {
911
+ S.value && (S.value = !1), N.value = null;
912
+ }, Ne = () => {
913
+ if (!p.value) {
914
+ p.value = !0;
874
915
  return;
875
916
  }
876
- A.value || (t.value = !1);
877
- }, Ie = (o) => {
878
- A.value = !1, o.startTime && (p.value.startTime = o.startTime), o.endTime && (p.value.endTime = o.endTime);
879
- }, Fe = (o) => {
880
- A.value = !0, p.value.startDate = o.startDate, p.value.endDate = o.endDate, q.value = { startDate: null, endDate: null };
881
- }, V = (o) => {
882
- o && (p.value.startDate = s(o.startDate), p.value.endDate = s(o.endDate), p.value.startTime = x(o.startDate), p.value.endTime = x(o.endDate), q.value = o);
917
+ S.value || (p.value = !1);
918
+ }, be = (n) => {
919
+ S.value = !1, n.startTime && (R.value.startTime = n.startTime), n.endTime && (R.value.endTime = n.endTime);
920
+ }, Be = (n) => {
921
+ S.value = !0, R.value.startDate = n.startDate, R.value.endDate = n.endDate, N.value = { startDate: null, endDate: null };
922
+ }, ze = (n) => {
923
+ n && (R.value.startDate = l(n.startDate), R.value.endDate = l(n.endDate), R.value.startTime = b(n.startDate), R.value.endTime = b(n.endDate), N.value = n);
883
924
  };
884
- return (o, F) => Fa((E(), Me("div", Yt, [
885
- o.label ? (E(), L(i(it), {
925
+ return (n, x) => za((E(), Ie("div", Pt, [
926
+ n.label ? (E(), L(i(gt), {
886
927
  key: 0,
887
- id: i(W),
888
- label: o.label,
889
- "tooltip-text": o.tooltipText,
890
- optional: o.optional,
891
- required: o.required
892
- }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : O("", !0),
893
- ee("div", {
928
+ id: i(G),
929
+ label: n.label,
930
+ "tooltip-text": n.tooltipText,
931
+ optional: n.optional,
932
+ required: n.required
933
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : q("", !0),
934
+ oe("div", {
894
935
  ref_key: "inputWrapperRef",
895
- ref: ne,
896
- onKeydown: Je(pe, ["enter"])
936
+ ref: ue,
937
+ onKeydown: ta(Ne, ["enter"])
897
938
  }, [
898
- U(i(Ba), {
939
+ _(i($a), {
899
940
  ref_key: "inputContainerRef",
900
- ref: K,
941
+ ref: ae,
901
942
  "always-combobox-is-input": "",
902
- ariaControls: i(g),
903
- ariaExpanded: t.value,
904
- "aria-labelledby": te.value,
905
- "aria-describedby": le.value,
906
- "aria-required": o.required,
907
- disabled: o.disabled,
908
- "is-invalid": !!o.errorMessage || $.value,
909
- open: t.value,
910
- "display-value": ie.value,
911
- readonly: i(be),
943
+ ariaControls: i(f),
944
+ ariaExpanded: p.value,
945
+ "aria-labelledby": ie.value,
946
+ "aria-describedby": O.value,
947
+ "aria-required": n.required,
948
+ disabled: n.disabled,
949
+ "is-invalid": !!n.errorMessage || de.value,
950
+ open: p.value,
951
+ "display-value": g.value,
952
+ readonly: i(t),
912
953
  onOpen: h,
913
- onClear: Ee,
914
- onClose: f
954
+ onClear: qe,
955
+ onClose: Q
915
956
  }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-required", "disabled", "is-invalid", "open", "display-value", "readonly"])
916
957
  ], 544),
917
- $.value ? (E(), L(i(oa), {
958
+ de.value ? (E(), L(i(ma), {
918
959
  key: 1,
919
- id: i(Y),
960
+ id: i(A),
920
961
  "error-message": i(e)("invalidDateFormat"),
921
962
  class: "b-date-range-picker__error-message"
922
- }, null, 8, ["id", "error-message"])) : O("", !0),
923
- o.errorMessage ? (E(), L(i(oa), {
963
+ }, null, 8, ["id", "error-message"])) : q("", !0),
964
+ n.errorMessage ? (E(), L(i(ma), {
924
965
  key: 2,
925
- id: i(k),
926
- "error-message": o.errorMessage,
966
+ id: i(I),
967
+ "error-message": n.errorMessage,
927
968
  class: "b-date-range-picker__error-message"
928
- }, null, 8, ["id", "error-message"])) : O("", !0),
929
- o.description ? (E(), L(i(Be), {
969
+ }, null, 8, ["id", "error-message"])) : q("", !0),
970
+ n.description ? (E(), L(i(Qe), {
930
971
  key: 3,
931
972
  id: i(y),
932
- class: ca(["b-date-range-picker__description", ke.value]),
973
+ class: ga(["b-date-range-picker__description", xe.value]),
933
974
  el: "span"
934
975
  }, {
935
- default: H(() => [
936
- ye(he(o.description), 1)
976
+ default: Z(() => [
977
+ Se(we(n.description), 1)
937
978
  ]),
938
979
  _: 1
939
- }, 8, ["id", "class"])) : O("", !0),
940
- K.value ? (E(), L(i(xa), {
980
+ }, 8, ["id", "class"])) : q("", !0),
981
+ ae.value ? (E(), L(i(_a), {
941
982
  key: 4,
942
- id: i(g),
983
+ id: i(f),
943
984
  class: "b-date-range-picker__container",
944
- open: t.value,
945
- "target-element": K.value,
946
- "aria-label": ae.value,
985
+ open: p.value,
986
+ "target-element": ae.value,
987
+ "aria-label": le.value,
947
988
  position: "bottom-start",
948
989
  "fallback-strategy": "initialPlacement",
949
990
  "without-space": "",
950
991
  "fit-content": "",
951
- "match-width": Ae.value,
992
+ "match-width": Oe.value,
952
993
  "trap-all": "",
953
994
  "overflow-visible": "",
954
- "trap-all-options": n,
955
- onKeydown: Je(f, ["esc", "native"])
995
+ "trap-all-options": B,
996
+ onKeydown: ta(Q, ["esc", "native"])
956
997
  }, {
957
- default: H(() => [
958
- U(i(Tt), {
959
- "allow-time-input": De.value,
960
- "quick-select-ranges": G.value,
961
- value: q.value,
962
- "first-day-of-week": i(b),
963
- granularities: o.granularities,
964
- "is-date-disabled": o.isDateDisabled,
965
- "max-range": o.maxRange,
966
- min: o.min,
967
- max: o.max,
968
- "number-of-months": B.value,
969
- "show-end-date-on-open": o.showEndDateOnOpen,
970
- "date-form-data": p.value,
971
- variant: o.variant,
972
- "year-range": o.yearRange,
973
- onCustomRange: V,
974
- onInput: Se,
975
- onError: Fe,
976
- onFormDate: Ie
998
+ default: Z(() => [
999
+ _(i(Et), {
1000
+ "allow-time-input": ce.value,
1001
+ "quick-select-ranges": ee.value,
1002
+ value: N.value,
1003
+ "first-day-of-week": i(k),
1004
+ granularities: n.granularities,
1005
+ "is-date-disabled": n.isDateDisabled,
1006
+ "max-range": n.maxRange,
1007
+ min: n.min,
1008
+ max: n.max,
1009
+ "number-of-months": C.value,
1010
+ "show-end-date-on-open": n.showEndDateOnOpen,
1011
+ "time-interval": X.value,
1012
+ "date-form-data": R.value,
1013
+ variant: n.variant,
1014
+ "year-range": n.yearRange,
1015
+ onCustomRange: ze,
1016
+ onInput: Ye,
1017
+ onError: Be,
1018
+ onFormDate: be
977
1019
  }, {
978
- actions: H(() => [
979
- U(i(Oa)),
980
- ee("div", bt, [
981
- U(i(qa), {
982
- actions: ve.value,
983
- layout: i(ut).SPACE_BETWEEN
1020
+ actions: Z(() => [
1021
+ _(i(La)),
1022
+ oe("div", Ot, [
1023
+ _(i(Wa), {
1024
+ actions: K.value,
1025
+ layout: i(Mt).SPACE_BETWEEN
984
1026
  }, null, 8, ["actions", "layout"])
985
1027
  ])
986
1028
  ]),
987
1029
  _: 1
988
- }, 8, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "granularities", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "date-form-data", "variant", "year-range"])
1030
+ }, 8, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "granularities", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "time-interval", "date-form-data", "variant", "year-range"])
989
1031
  ]),
990
1032
  _: 1
991
- }, 8, ["id", "open", "target-element", "aria-label", "match-width"])) : O("", !0)
1033
+ }, 8, ["id", "open", "target-element", "aria-label", "match-width"])) : q("", !0)
992
1034
  ])), [
993
- [i(Xa), f]
1035
+ [i(it), Q]
994
1036
  ]);
995
1037
  }
996
- }), nn = /* @__PURE__ */ ma(kt, [["__scopeId", "data-v-19f3790c"]]);
1038
+ }), Dn = /* @__PURE__ */ ya(qt, [["__scopeId", "data-v-17331b7d"]]);
997
1039
  export {
998
- nn as B,
999
- Tt as D,
1000
- ct as a,
1001
- ce as i
1040
+ Dn as B,
1041
+ Et as D,
1042
+ ht as a,
1043
+ ge as i
1002
1044
  };
1003
- //# sourceMappingURL=date-range-picker.CuBygd3O.js.map
1045
+ //# sourceMappingURL=date-range-picker.BcQUUVcW.js.map