@adyen/bento-vue2 1.91.0 → 1.92.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 (218) hide show
  1. package/dist/@types/index.d.ts +118 -127
  2. package/dist/action-bar.js +1 -1
  3. package/dist/ai-tag.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/checkbox-group.css +1 -1
  11. package/dist/assets/checkbox.css +1 -1
  12. package/dist/assets/data-grid.css +1 -1
  13. package/dist/assets/date-range-picker.css +1 -1
  14. package/dist/assets/dialog-page.css +1 -1
  15. package/dist/assets/dropdown.css +1 -1
  16. package/dist/assets/file-uploader.css +1 -1
  17. package/dist/assets/filter-bar.css +1 -1
  18. package/dist/assets/input-field.css +1 -1
  19. package/dist/assets/inspector.css +1 -1
  20. package/dist/assets/modal-fullscreen.css +1 -1
  21. package/dist/assets/secondary-nav.css +1 -1
  22. package/dist/assets/sidepanel.css +1 -1
  23. package/dist/assets/toggle.css +1 -1
  24. package/dist/assets/use-cached-selected-values.css +1 -1
  25. package/dist/button.js +1 -1
  26. package/dist/card.js +1 -1
  27. package/dist/checkbox.js +2 -2
  28. package/dist/chunks/{action-bar.Dj830k6L.js → action-bar.ChuPTyQG.js} +3 -3
  29. package/dist/chunks/{action-bar.Dj830k6L.js.map → action-bar.ChuPTyQG.js.map} +1 -1
  30. package/dist/chunks/{ai-tag.AyG2UWCB.js → ai-tag.Dt8nijLW.js} +2 -2
  31. package/dist/chunks/{ai-tag.AyG2UWCB.js.map → ai-tag.Dt8nijLW.js.map} +1 -1
  32. package/dist/chunks/{alert.CXRb-Smf.js → alert.CLqcPN0Q.js} +73 -55
  33. package/dist/chunks/alert.CLqcPN0Q.js.map +1 -0
  34. package/dist/chunks/{base-modal.C52VMtnd.js → base-modal.DMdzcBrq.js} +3 -3
  35. package/dist/chunks/base-modal.DMdzcBrq.js.map +1 -0
  36. package/dist/chunks/{button-actions-with-menu.OsPQ-POD.js → button-actions-with-menu.CXFziNUr.js} +2 -2
  37. package/dist/chunks/{button-actions-with-menu.OsPQ-POD.js.map → button-actions-with-menu.CXFziNUr.js.map} +1 -1
  38. package/dist/chunks/{button-actions.Bdbu0bvt.js → button-actions.CXD6_9qN.js} +4 -4
  39. package/dist/chunks/button-actions.CXD6_9qN.js.map +1 -0
  40. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  41. package/dist/chunks/button.C9b2AC9w.js.map +1 -1
  42. package/dist/chunks/{calendar.CqsfThnC.js → calendar.rZsIZPxm.js} +526 -466
  43. package/dist/chunks/calendar.rZsIZPxm.js.map +1 -0
  44. package/dist/chunks/{card.8z7UQeVK.js → card.Brma5kdb.js} +2 -2
  45. package/dist/chunks/card.Brma5kdb.js.map +1 -0
  46. package/dist/chunks/{checkbox-group.Dur2Edtw.js → checkbox-group.DWZvFkjz.js} +4 -4
  47. package/dist/chunks/checkbox-group.DWZvFkjz.js.map +1 -0
  48. package/dist/chunks/{checkbox.vNjt6QDJ.js → checkbox.BZP0wtnE.js} +3 -5
  49. package/dist/chunks/checkbox.BZP0wtnE.js.map +1 -0
  50. package/dist/chunks/{code-snippet.BVpFBhKq.js → code-snippet.DHAymIXp.js} +3 -3
  51. package/dist/chunks/code-snippet.DHAymIXp.js.map +1 -0
  52. package/dist/chunks/constructNow.CK0ryPil.js +8 -0
  53. package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.CK0ryPil.js.map} +1 -1
  54. package/dist/chunks/country.types.jjXwaoMl.js.map +1 -1
  55. package/dist/chunks/{dashboard-section.DNxNVV44.js → dashboard-section.D9rS8myE.js} +2 -2
  56. package/dist/chunks/{dashboard-section.DNxNVV44.js.map → dashboard-section.D9rS8myE.js.map} +1 -1
  57. package/dist/chunks/{dashed-underline.DL2_sik5.js → dashed-underline.D_FhFRXM.js} +2 -2
  58. package/dist/chunks/{dashed-underline.DL2_sik5.js.map → dashed-underline.D_FhFRXM.js.map} +1 -1
  59. package/dist/chunks/{data-grid-template.BFv1zr6g.js → data-grid-template.CRijG20n.js} +2 -2
  60. package/dist/chunks/{data-grid-template.BFv1zr6g.js.map → data-grid-template.CRijG20n.js.map} +1 -1
  61. package/dist/chunks/{data-grid.ZHY5EzP3.js → data-grid.hMM9F36T.js} +363 -363
  62. package/dist/chunks/data-grid.hMM9F36T.js.map +1 -0
  63. package/dist/chunks/{date-picker.kl6aFlr1.js → date-picker.BSo6Cvum.js} +7 -7
  64. package/dist/chunks/{date-picker.kl6aFlr1.js.map → date-picker.BSo6Cvum.js.map} +1 -1
  65. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  66. package/dist/chunks/{date-range-picker.LCWVAa5R.js → date-range-picker.D90k5b8p.js} +419 -411
  67. package/dist/chunks/date-range-picker.D90k5b8p.js.map +1 -0
  68. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  69. package/dist/chunks/{de.BJvo6njq.js → de.pvjpUJ1o.js} +2 -2
  70. package/dist/chunks/{de.BJvo6njq.js.map → de.pvjpUJ1o.js.map} +1 -1
  71. package/dist/chunks/{differenceInMonths.CIYECBxK.js → differenceInMonths.CpwVtHZX.js} +3 -2
  72. package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.CpwVtHZX.js.map} +1 -1
  73. package/dist/chunks/{draggable-handle.Ba28eM8o.js → draggable-handle.BR_aQH5N.js} +2 -2
  74. package/dist/chunks/{draggable-handle.Ba28eM8o.js.map → draggable-handle.BR_aQH5N.js.map} +1 -1
  75. package/dist/chunks/{dropdown-tag.B61hPq5n.js → dropdown-tag.z3rsxbpW.js} +4 -4
  76. package/dist/chunks/dropdown-tag.z3rsxbpW.js.map +1 -0
  77. package/dist/chunks/{dropdown.Ca-f8tdX.js → dropdown.BYJwx-JD.js} +313 -305
  78. package/dist/chunks/dropdown.BYJwx-JD.js.map +1 -0
  79. package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.-Q7Oq-nY.js} +2 -2
  80. package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.-Q7Oq-nY.js.map} +1 -1
  81. package/dist/chunks/{en-US.YeSsZuOc.js → en-US.BK5uiAND.js} +5 -5
  82. package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.BK5uiAND.js.map} +1 -1
  83. package/dist/chunks/{es.DyUjjSL8.js → es.2H4LvTyV.js} +2 -2
  84. package/dist/chunks/{es.DyUjjSL8.js.map → es.2H4LvTyV.js.map} +1 -1
  85. package/dist/chunks/{file-uploader.DeWmLpfp.js → file-uploader.Djl0xaDN.js} +4 -5
  86. package/dist/chunks/{file-uploader.DeWmLpfp.js.map → file-uploader.Djl0xaDN.js.map} +1 -1
  87. package/dist/chunks/{filter-bar.Bd4ghW_B.js → filter-bar.C9rWMIWO.js} +50 -50
  88. package/dist/chunks/filter-bar.C9rWMIWO.js.map +1 -0
  89. package/dist/chunks/{footer-actions.CvUaoMzj.js → footer-actions.D9mHwk5l.js} +2 -2
  90. package/dist/chunks/{footer-actions.CvUaoMzj.js.map → footer-actions.D9mHwk5l.js.map} +1 -1
  91. package/dist/chunks/{form-layout-title.DzGajv4U.js → form-layout-title.zZVLCyqe.js} +2 -2
  92. package/dist/chunks/{form-layout-title.DzGajv4U.js.map → form-layout-title.zZVLCyqe.js.map} +1 -1
  93. package/dist/chunks/{fr.JD_4GwS8.js → fr.Cu0IIfBP.js} +2 -2
  94. package/dist/chunks/{fr.JD_4GwS8.js.map → fr.Cu0IIfBP.js.map} +1 -1
  95. package/dist/chunks/{header-meta.AXUGoqDd.js → header-meta.BSPnWWmi.js} +14 -14
  96. package/dist/chunks/{header-meta.AXUGoqDd.js.map → header-meta.BSPnWWmi.js.map} +1 -1
  97. package/dist/chunks/{header-with-views.Ba4dswJF.js → header-with-views.g6J7x6l2.js} +8 -8
  98. package/dist/chunks/{header-with-views.Ba4dswJF.js.map → header-with-views.g6J7x6l2.js.map} +1 -1
  99. package/dist/chunks/{header.C7B7RBib.js → header.DyZG7qWe.js} +3 -3
  100. package/dist/chunks/header.DyZG7qWe.js.map +1 -0
  101. package/dist/chunks/{input-field-password.BNAtIn_D.js → input-field-password.CiDdI6A_.js} +4 -4
  102. package/dist/chunks/input-field-password.CiDdI6A_.js.map +1 -0
  103. package/dist/chunks/{input-field-phone-number.CEYx1s4b.js → input-field-phone-number.DFS58acU.js} +3 -3
  104. package/dist/chunks/{input-field-phone-number.CEYx1s4b.js.map → input-field-phone-number.DFS58acU.js.map} +1 -1
  105. package/dist/chunks/input-field.CGLjYab8.js +222 -0
  106. package/dist/chunks/input-field.CGLjYab8.js.map +1 -0
  107. package/dist/chunks/{input-time.BLuMfakv.js → input-time.BhAUyKZM.js} +4 -4
  108. package/dist/chunks/{input-time.BLuMfakv.js.map → input-time.BhAUyKZM.js.map} +1 -1
  109. package/dist/chunks/isSameWeek.TrpUOIn5.js +14 -0
  110. package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.TrpUOIn5.js.map} +1 -1
  111. package/dist/chunks/{it.BlUnV-yA.js → it.B65snrJA.js} +3 -3
  112. package/dist/chunks/{it.BlUnV-yA.js.map → it.B65snrJA.js.map} +1 -1
  113. package/dist/chunks/{ja.nUwDmVf2.js → ja.xGVfFSzL.js} +2 -2
  114. package/dist/chunks/{ja.nUwDmVf2.js.map → ja.xGVfFSzL.js.map} +1 -1
  115. package/dist/chunks/link.DB5g6d48.js.map +1 -1
  116. package/dist/chunks/{modal-fullscreen.DTvg2NLk.js → modal-fullscreen.De6mevyD.js} +2 -2
  117. package/dist/chunks/{modal-fullscreen.DTvg2NLk.js.map → modal-fullscreen.De6mevyD.js.map} +1 -1
  118. package/dist/chunks/{modal.D_TcWTkf.js → modal.BXxwn9H4.js} +93 -91
  119. package/dist/chunks/{modal.D_TcWTkf.js.map → modal.BXxwn9H4.js.map} +1 -1
  120. package/dist/chunks/{pagination.D6BxMw5L.js → pagination.BzsKZFnw.js} +2 -2
  121. package/dist/chunks/{pagination.D6BxMw5L.js.map → pagination.BzsKZFnw.js.map} +1 -1
  122. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  123. package/dist/chunks/popover.types.hA13DZPg.js.map +1 -1
  124. package/dist/chunks/popper-container.C_n9Ds1W.js.map +1 -1
  125. package/dist/chunks/promo-banner.Dc_kK1x9.js.map +1 -1
  126. package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.D9FuAQZm.js} +2 -2
  127. package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.D9FuAQZm.js.map} +1 -1
  128. package/dist/chunks/radio-group.Bb-L-0io.js.map +1 -1
  129. package/dist/chunks/{rich-text-editor.Dtdfh-0V.js → rich-text-editor.DPpIzYid.js} +3 -3
  130. package/dist/chunks/{rich-text-editor.Dtdfh-0V.js.map → rich-text-editor.DPpIzYid.js.map} +1 -1
  131. package/dist/chunks/{search-bar.MVJS9-Mh.js → search-bar.BEOieKeA.js} +4 -4
  132. package/dist/chunks/{search-bar.MVJS9-Mh.js.map → search-bar.BEOieKeA.js.map} +1 -1
  133. package/dist/chunks/{secondary-nav.C-nPZR-2.js → secondary-nav.BBL5zZPK.js} +2 -2
  134. package/dist/chunks/{secondary-nav.C-nPZR-2.js.map → secondary-nav.BBL5zZPK.js.map} +1 -1
  135. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  136. package/dist/chunks/{sidepanel.BTRfwGiS.js → sidepanel.nW0Bhk_u.js} +3 -3
  137. package/dist/chunks/{sidepanel.BTRfwGiS.js.map → sidepanel.nW0Bhk_u.js.map} +1 -1
  138. package/dist/chunks/{startOfWeek.CXhhX-R7.js → startOfWeek.Br5KM4z_.js} +2 -2
  139. package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Br5KM4z_.js.map} +1 -1
  140. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
  141. package/dist/chunks/{summary-grid.types.DUIqCmwg.js → summary-grid.types.Dp_efYVN.js} +2 -2
  142. package/dist/chunks/{summary-grid.types.DUIqCmwg.js.map → summary-grid.types.Dp_efYVN.js.map} +1 -1
  143. package/dist/chunks/tag.D2xagTJv.js.map +1 -1
  144. package/dist/chunks/textarea.CJS-1I41.js.map +1 -1
  145. package/dist/chunks/{timeline-item.BOUWkLi1.js → timeline-item.CF9jbIRr.js} +4 -4
  146. package/dist/chunks/timeline-item.CF9jbIRr.js.map +1 -0
  147. package/dist/chunks/{toggle.B1z1YPe_.js → toggle.Ca-MM3dt.js} +3 -5
  148. package/dist/chunks/toggle.Ca-MM3dt.js.map +1 -0
  149. package/dist/chunks/tooltip.BxtnF3is.js.map +1 -1
  150. package/dist/chunks/{tutorial.CZt_mcuT.js → tutorial.CoWDVs7_.js} +2 -2
  151. package/dist/chunks/{tutorial.CZt_mcuT.js.map → tutorial.CoWDVs7_.js.map} +1 -1
  152. package/dist/chunks/typography.C8lPlsbD.js.map +1 -1
  153. package/dist/chunks/{use-cached-selected-values.BJbWbkEQ.js → use-cached-selected-values.Du8-wWR2.js} +616 -551
  154. package/dist/chunks/use-cached-selected-values.Du8-wWR2.js.map +1 -0
  155. package/dist/chunks/{use-date-input-formatter.Djf8AoLr.js → use-date-input-formatter.ibZeLD_V.js} +4 -4
  156. package/dist/chunks/{use-date-input-formatter.Djf8AoLr.js.map → use-date-input-formatter.ibZeLD_V.js.map} +1 -1
  157. package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Be4pa3-g.js} +3 -3
  158. package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Be4pa3-g.js.map} +1 -1
  159. package/dist/code-snippet.js +1 -1
  160. package/dist/dashboard-template.js +1 -1
  161. package/dist/dashed-underline.js +1 -1
  162. package/dist/data-grid-template.js +1 -1
  163. package/dist/data-grid.js +1 -1
  164. package/dist/date-picker.js +2 -2
  165. package/dist/date-range-picker.js +2 -2
  166. package/dist/draggable.js +1 -1
  167. package/dist/dropdown.js +3 -3
  168. package/dist/file-uploader.js +1 -1
  169. package/dist/filter-bar.js +1 -1
  170. package/dist/form-layout.js +1 -1
  171. package/dist/header-with-views.js +1 -1
  172. package/dist/header.js +1 -1
  173. package/dist/index.js +40 -40
  174. package/dist/index.js.map +1 -1
  175. package/dist/input-field-password.js +1 -1
  176. package/dist/input-field-phone-number.js +1 -1
  177. package/dist/input-field.js +1 -1
  178. package/dist/input-time.js +1 -1
  179. package/dist/internal.js +5 -5
  180. package/dist/menu.js +1 -1
  181. package/dist/modal-fullscreen.js +1 -1
  182. package/dist/modal.js +2 -2
  183. package/dist/pagination.js +1 -1
  184. package/dist/popover.js +1 -1
  185. package/dist/rich-text-editor.js +1 -1
  186. package/dist/search-bar.js +2 -2
  187. package/dist/secondary-nav.js +1 -1
  188. package/dist/sidepanel.js +1 -1
  189. package/dist/summary-grid.js +1 -1
  190. package/dist/timeline.js +1 -1
  191. package/dist/toggle.js +1 -1
  192. package/dist/tutorial.js +1 -1
  193. package/dist/web-types.json +45 -4
  194. package/package.json +5 -5
  195. package/dist/chunks/alert.CXRb-Smf.js.map +0 -1
  196. package/dist/chunks/base-modal.C52VMtnd.js.map +0 -1
  197. package/dist/chunks/button-actions.Bdbu0bvt.js.map +0 -1
  198. package/dist/chunks/calendar.CqsfThnC.js.map +0 -1
  199. package/dist/chunks/card.8z7UQeVK.js.map +0 -1
  200. package/dist/chunks/checkbox-group.Dur2Edtw.js.map +0 -1
  201. package/dist/chunks/checkbox.vNjt6QDJ.js.map +0 -1
  202. package/dist/chunks/code-snippet.BVpFBhKq.js.map +0 -1
  203. package/dist/chunks/constructNow.CIc7d13I.js +0 -8
  204. package/dist/chunks/data-grid.ZHY5EzP3.js.map +0 -1
  205. package/dist/chunks/date-range-picker.LCWVAa5R.js.map +0 -1
  206. package/dist/chunks/dropdown-tag.B61hPq5n.js.map +0 -1
  207. package/dist/chunks/dropdown.Ca-f8tdX.js.map +0 -1
  208. package/dist/chunks/filter-bar.Bd4ghW_B.js.map +0 -1
  209. package/dist/chunks/header.C7B7RBib.js.map +0 -1
  210. package/dist/chunks/input-field-password.BNAtIn_D.js.map +0 -1
  211. package/dist/chunks/input-field.Dh5W0Az-.js +0 -211
  212. package/dist/chunks/input-field.Dh5W0Az-.js.map +0 -1
  213. package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
  214. package/dist/chunks/timeline-item.BOUWkLi1.js.map +0 -1
  215. package/dist/chunks/toggle.B1z1YPe_.js.map +0 -1
  216. package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +0 -1
  217. package/dist/chunks/warning-filled.CbJ1pcB2.js +0 -24
  218. package/dist/chunks/warning-filled.CbJ1pcB2.js.map +0 -1
@@ -1,138 +1,129 @@
1
- import { reactive as ve, defineComponent as We, useSlots as ft, ref as B, computed as m, onMounted as ze, toRaw as Ae, watch as fe, useAttrs as vt, toRef as Te } from "vue";
2
- import { j as yt } from "./index.CwzYJHw2.js";
3
- import { B as Mt } from "./divider.DX5gwN7p.js";
4
- import { h as gt, B as Tt } from "./button-actions.Bdbu0bvt.js";
5
- import { B as $e, d as Ce } from "./typography.C8lPlsbD.js";
6
- import { B as ht } from "./input-field.Dh5W0Az-.js";
7
- import { B as Yt, i as we } from "./input-time.BLuMfakv.js";
8
- import { B as At, D as Rt } from "./dropdown.Ca-f8tdX.js";
9
- import { B as bt } from "./segmented-control.DDtjX-V5.js";
10
- import { u as Re } from "./index.B6WW_F-J.js";
11
- import { d as Be } from "./use-cached-selected-values.BJbWbkEQ.js";
12
- import { u as It } from "./use-has-slot.C9lQZ6nz.js";
13
- import { u as be, a as _t } from "./use-date-input-formatter.Djf8AoLr.js";
14
- import { u as kt } from "./use-touch-device.DTqFAbXh.js";
15
- import { h as He, i as re, j as w, k as A, l as St, m as qe, n as Ft, s as xe, o as Et, q as Ne, b as N, u as Ot, e as Ct, f as wt, r as O, p as Pe, g as Bt } from "./calendar.CqsfThnC.js";
16
- import { e as q, a as Le } from "./differenceInMonths.CIYECBxK.js";
17
- import { s as Ge } from "./startOfWeek.CXhhX-R7.js";
18
- import { t as P, n as qt, c as xt } from "./en-US.YeSsZuOc.js";
19
- import { c as Nt } from "./constructNow.CIc7d13I.js";
1
+ import { reactive as ye, defineComponent as ze, useSlots as vt, ref as C, computed as p, onMounted as $e, toRaw as Re, watch as ve, useAttrs as yt, toRef as Te } from "vue";
2
+ import { j as Mt } from "./index.CwzYJHw2.js";
3
+ import { B as gt } from "./divider.DX5gwN7p.js";
4
+ import { h as Tt, B as ht } from "./button-actions.CXD6_9qN.js";
5
+ import { B as He, d as Ce } from "./typography.C8lPlsbD.js";
6
+ import { B as Yt } from "./alert.CLqcPN0Q.js";
7
+ import { B as Rt } from "./input-field.CGLjYab8.js";
8
+ import { B as At, i as Be } from "./input-time.BhAUyKZM.js";
9
+ import { B as bt, D as It } from "./dropdown.BYJwx-JD.js";
10
+ import { B as _t } from "./segmented-control.DDtjX-V5.js";
11
+ import { u as Ae } from "./index.B6WW_F-J.js";
12
+ import { d as xe } from "./use-cached-selected-values.Du8-wWR2.js";
13
+ import { u as kt } from "./use-has-slot.C9lQZ6nz.js";
14
+ import { u as be, a as St } from "./use-date-input-formatter.ibZeLD_V.js";
15
+ import { u as Ft } from "./use-touch-device.DTqFAbXh.js";
16
+ import { h as re, i as E, j as R, k as Et, l as qe, m as Ot, s as Ne, n as wt, o as Ct, q as Bt, r as Pe, t as xt, b as P, u as qt, e as Nt, f as Pt, v as S, p as Le, w as Ge, g as Lt } from "./calendar.rZsIZPxm.js";
17
+ import { e as B, a as Qe } from "./differenceInMonths.CpwVtHZX.js";
18
+ import { s as Ue } from "./startOfWeek.Br5KM4z_.js";
19
+ import { t as U, n as Gt, c as Qt } from "./en-US.BK5uiAND.js";
20
+ import { c as Ut } from "./constructNow.CK0ryPil.js";
20
21
  import { n as Ve } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
21
22
  import { g as ne } from "./generate-uid.NJ8tVoha.js";
22
- import { u as Pt } from "./use-form-layout-loading.CWbjZiwP.js";
23
+ import { u as Wt } from "./use-form-layout-loading.CWbjZiwP.js";
23
24
  import "./index.Cl4_42j5.js";
24
- import { u as Lt } from "./form-field.D_2g7vaP.js";
25
- import { B as Gt } from "./directive.Bfr4fuOy.js";
26
- import { F as Ut } from "./field-label.DjjjkcO6.js";
27
- import { E as Qt } from "./error-message.CyERcfdt.js";
28
- import { B as jt } from "./button-actions.types.BptAXjD8.js";
25
+ import { u as jt } from "./form-field.D_2g7vaP.js";
26
+ import { B as Jt } from "./directive.Bfr4fuOy.js";
27
+ import { F as zt } from "./field-label.DjjjkcO6.js";
28
+ import { E as $t } from "./error-message.CyERcfdt.js";
29
+ import { B as Ht } from "./button-actions.types.BptAXjD8.js";
29
30
  import "../assets/date-range-picker.css";
30
- function Ke(s, a, e) {
31
- return He(s, a * 3, e);
32
- }
33
- function Ue(s, a) {
34
- const e = P(s, a == null ? void 0 : a.in);
35
- return Math.trunc(e.getMonth() / 3) + 1;
36
- }
37
- function Qe(s, a) {
38
- return P(s, a == null ? void 0 : a.in).getFullYear();
31
+ function We(s, a) {
32
+ return U(s, a == null ? void 0 : a.in).getFullYear();
39
33
  }
40
34
  function he(s, a) {
41
- return +P(s) == +P(a);
35
+ return +U(s) == +U(a);
42
36
  }
43
- function Jt(s, a, e) {
44
- const [t, l] = qt(
37
+ function Vt(s, a, e) {
38
+ const [t, i] = Gt(
45
39
  e == null ? void 0 : e.in,
46
40
  s,
47
41
  a
48
42
  );
49
- return +re(t) == +re(l);
43
+ return +re(t) == +re(i);
50
44
  }
51
45
  function je(s, a) {
52
- const e = P(s, a == null ? void 0 : a.in);
46
+ const e = U(s, a == null ? void 0 : a.in);
53
47
  return e.setMilliseconds(0), e;
54
48
  }
55
49
  function Ye(s, a) {
56
50
  return +je(s) == +je(a);
57
51
  }
58
- function Wt(s, a) {
59
- return w(
60
- xt(s, s),
61
- Nt(s)
52
+ function Kt(s, a) {
53
+ return E(
54
+ Qt(s, s),
55
+ Ut(s)
62
56
  );
63
57
  }
64
- function zt(s, a, e) {
65
- const t = P(s, e == null ? void 0 : e.in);
58
+ function Xt(s, a, e) {
59
+ const t = U(s, e == null ? void 0 : e.in);
66
60
  return t.setHours(a), t;
67
61
  }
68
62
  function Je(s, a, e) {
69
- const t = P(s, e == null ? void 0 : e.in);
63
+ const t = U(s, e == null ? void 0 : e.in);
70
64
  return t.setMilliseconds(a), t;
71
65
  }
72
- function $t(s, a, e) {
73
- const t = P(s, e == null ? void 0 : e.in);
66
+ function Zt(s, a, e) {
67
+ const t = U(s, e == null ? void 0 : e.in);
74
68
  return t.setMinutes(a), t;
75
69
  }
76
- function Ht(s, a, e) {
77
- const t = P(s, e == null ? void 0 : e.in);
70
+ function ea(s, a, e) {
71
+ const t = U(s, e == null ? void 0 : e.in);
78
72
  return t.setSeconds(a), t;
79
73
  }
80
- function Vt(s, a, e) {
81
- return Ke(s, -1, e);
82
- }
83
- const Kt = ({
74
+ const ta = ({
84
75
  firstDayOfWeek: s,
85
76
  min: a,
86
77
  max: e
87
- }) => ({ getGranularCalendarLimits: (l) => {
78
+ }) => ({ getGranularCalendarLimits: (i) => {
88
79
  if (!a && !e)
89
80
  return { min: null, max: null };
90
- let D = a ? A(a) : null, p = e ? q(e) : null;
91
- if ((l == null ? void 0 : l.type) === "weekly") {
92
- if (l.earliest)
93
- D = A(l.earliest);
94
- else if (D) {
95
- const y = Ge(D, { weekStartsOn: s });
96
- w(D, y) || (D = A(St(qe(D, { weekStartsOn: s }), 1)));
81
+ let m = a ? R(a) : null, f = e ? B(e) : null;
82
+ if ((i == null ? void 0 : i.type) === "weekly") {
83
+ if (i.earliest)
84
+ m = R(i.earliest);
85
+ else if (m) {
86
+ const g = Ue(m, { weekStartsOn: s });
87
+ E(m, g) || (m = R(Et(qe(m, { weekStartsOn: s }), 1)));
97
88
  }
98
- if (l.latest)
99
- p = q(l.latest);
100
- else if (p) {
101
- const y = qe(p, { weekStartsOn: s });
102
- w(p, y) || (p = q(Ft(Ge(p, { weekStartsOn: s }), 1)));
89
+ if (i.latest)
90
+ f = B(i.latest);
91
+ else if (f) {
92
+ const g = qe(f, { weekStartsOn: s });
93
+ E(f, g) || (f = B(Ot(Ue(f, { weekStartsOn: s }), 1)));
103
94
  }
104
95
  }
105
- if ((l == null ? void 0 : l.type) === "monthly") {
106
- if (l.earliest)
107
- D = A(l.earliest);
108
- else if (D) {
109
- const y = xe(D);
110
- w(D, y) || (D = xe(He(D, 1)));
96
+ if ((i == null ? void 0 : i.type) === "monthly") {
97
+ if (i.earliest)
98
+ m = R(i.earliest);
99
+ else if (m) {
100
+ const g = Ne(m);
101
+ E(m, g) || (m = Ne(wt(m, 1)));
111
102
  }
112
- if (l.latest)
113
- p = q(l.latest);
114
- else if (p) {
115
- const y = Le(p);
116
- w(p, y) || (p = Le(Et(p, 1)));
103
+ if (i.latest)
104
+ f = B(i.latest);
105
+ else if (f) {
106
+ const g = Qe(f);
107
+ E(f, g) || (f = Qe(Ct(f, 1)));
117
108
  }
118
109
  }
119
- if ((l == null ? void 0 : l.type) === "quarterly") {
120
- if (l.earliest)
121
- D = re(l.earliest);
122
- else if (D) {
123
- const y = re(D);
124
- w(D, y) || (D = re(Ke(D, 1)));
110
+ if ((i == null ? void 0 : i.type) === "quarterly") {
111
+ if (i.earliest)
112
+ m = re(i.earliest);
113
+ else if (m) {
114
+ const g = re(m);
115
+ E(m, g) || (m = re(Bt(m, 1)));
125
116
  }
126
- if (l.latest)
127
- p = q(l.latest);
128
- else if (p) {
129
- const y = Ne(p);
130
- w(p, y) || (p = Ne(Vt(p)));
117
+ if (i.latest)
118
+ f = B(i.latest);
119
+ else if (f) {
120
+ const g = Pe(f);
121
+ E(f, g) || (f = Pe(xt(f, 1)));
131
122
  }
132
123
  }
133
- return { min: D, max: p };
134
- } }), Xt = () => {
135
- const s = ve({
124
+ return { min: m, max: f };
125
+ } }), aa = () => {
126
+ const s = ye({
136
127
  daily: null,
137
128
  weekly: null,
138
129
  monthly: null,
@@ -140,8 +131,8 @@ const Kt = ({
140
131
  });
141
132
  return {
142
133
  savedRanges: s,
143
- saveRange: (t, l) => {
144
- s[t] = l;
134
+ saveRange: (t, i) => {
135
+ s[t] = i;
145
136
  },
146
137
  resetSavedRanges: () => {
147
138
  s.daily = null, s.weekly = null, s.monthly = null, s.quarterly = null;
@@ -149,7 +140,7 @@ const Kt = ({
149
140
  };
150
141
  };
151
142
  var v = /* @__PURE__ */ ((s) => (s.CUSTOM_RANGE = "custom-range", s.INPUT = "input", s.ERROR = "error", s.FORM_DATE = "form-date", s.START_DATE_SELECTED = "start-date-selected", s))(v || {});
152
- const Zt = {
143
+ const na = {
153
144
  "de-DE": {
154
145
  "DD-MM-YYYY": "TT-MM-JJJJ",
155
146
  "MM-DD-YYYY": "JJJJ-MM-TT",
@@ -195,6 +186,10 @@ const Zt = {
195
186
  lastMonth: "Last month",
196
187
  lastSevenDays: "Last 7 days",
197
188
  lastThreeMonths: "Last three months",
189
+ maxRangeDays: "You can select up to {count} day | You can select up to {count} days",
190
+ maxRangeMonths: "You can select up to {count} month | You can select up to {count} months",
191
+ maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters",
192
+ maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks",
198
193
  monthly: "Monthly",
199
194
  quarterly: "Quarterly",
200
195
  timeFrom: "Time from",
@@ -320,11 +315,11 @@ const Zt = {
320
315
  timeTo: "是时候",
321
316
  weekly: "每周"
322
317
  }
323
- }, ea = {
318
+ }, ra = {
324
319
  name: "date-range-picker-calendar",
325
- i18n: { messages: Zt }
326
- }, ta = /* @__PURE__ */ We({
327
- ...ea,
320
+ i18n: { messages: na }
321
+ }, sa = /* @__PURE__ */ ze({
322
+ ...ra,
328
323
  props: {
329
324
  /**
330
325
  * Allows user to enter time values in the form
@@ -340,7 +335,7 @@ const Zt = {
340
335
  /**
341
336
  * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
342
337
  */
343
- firstDayOfWeek: N.props.firstDayOfWeek,
338
+ firstDayOfWeek: P.props.firstDayOfWeek,
344
339
  /**
345
340
  * A list of available granularities.
346
341
  * If present, the date picker will display a segmented control to change granularity.
@@ -352,25 +347,25 @@ const Zt = {
352
347
  /**
353
348
  * Indicate if a date should be disabled or not
354
349
  */
355
- isDateDisabled: N.props.isDateDisabled,
350
+ isDateDisabled: P.props.isDateDisabled,
356
351
  /**
357
352
  * Set a maximum number of dates to be selectable by the range.
358
353
  */
359
- maxRange: N.props.maxRange,
354
+ maxRange: P.props.maxRange,
360
355
  /**
361
356
  * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
362
357
  */
363
- min: N.props.min,
358
+ min: P.props.min,
364
359
  /**
365
360
  * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
366
361
  */
367
- max: N.props.max,
362
+ max: P.props.max,
368
363
  /**
369
364
  * Number of months rendered on pane
370
365
  */
371
366
  numberOfMonths: {
372
- type: N.props.numberOfMonths.type,
373
- default: N.props.numberOfMonths.default,
367
+ type: P.props.numberOfMonths.type,
368
+ default: P.props.numberOfMonths.default,
374
369
  validator: (s) => s >= 0
375
370
  },
376
371
  /**
@@ -395,7 +390,7 @@ const Zt = {
395
390
  /**
396
391
  * The type of calendar to display. Defaults to showing days.
397
392
  */
398
- variant: N.props.variant
393
+ variant: P.props.variant
399
394
  },
400
395
  emits: [
401
396
  v.CUSTOM_RANGE,
@@ -405,357 +400,370 @@ const Zt = {
405
400
  v.START_DATE_SELECTED
406
401
  ],
407
402
  setup(s, { emit: a }) {
408
- var Se, Fe, Ee, Oe;
409
- const e = s, t = 300, l = "customRange", D = ft(), p = It(D), { t: y } = Re(), { isTouchDevice: _ } = kt(), {
410
- dateFormat: U,
411
- isFormatValid: R,
412
- parseDate: F,
413
- onKeyDown: X,
414
- autoFormat: f,
415
- formatDate: Q
416
- } = be(), k = B({}), C = m(() => e.variant === "month" ? "monthly" : "daily"), M = m(() => e.numberOfMonths === 0), r = ve({
417
- startDate: (Se = e.value) == null ? void 0 : Se.startDate,
418
- endDate: (Fe = e.value) == null ? void 0 : Fe.endDate,
419
- range: (Ee = e.value) == null ? void 0 : Ee.range,
403
+ var Fe, Ee, Oe, we;
404
+ const e = s, t = 300, i = "customRange", m = {
405
+ daily: "maxRangeDays",
406
+ weekly: "maxRangeWeeks",
407
+ monthly: "maxRangeMonths",
408
+ quarterly: "maxRangeQuarters"
409
+ }, f = vt(), g = kt(f), { t: x, tc: L } = Ae(), { isTouchDevice: M } = Ft(), {
410
+ dateFormat: se,
411
+ isFormatValid: X,
412
+ parseDate: D,
413
+ onKeyDown: W,
414
+ autoFormat: b,
415
+ formatDate: O
416
+ } = be(), y = C({}), j = p(() => e.variant === "month" ? "monthly" : "daily"), F = p(() => e.numberOfMonths === 0), r = ye({
417
+ startDate: (Fe = e.value) == null ? void 0 : Fe.startDate,
418
+ endDate: (Ee = e.value) == null ? void 0 : Ee.endDate,
419
+ range: (Oe = e.value) == null ? void 0 : Oe.range,
420
420
  ...e.granularities ? {
421
- granularity: ((Oe = e.value) == null ? void 0 : Oe.granularity) || C.value
421
+ granularity: ((we = e.value) == null ? void 0 : we.granularity) || j.value
422
422
  } : {}
423
- }), T = m(() => {
424
- var n, i;
423
+ }), I = p(() => {
424
+ var n, l;
425
425
  return (
426
426
  // eslint-disable-next-line consistent-return
427
- ((i = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: d, data: u }) => {
427
+ ((l = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: u, data: c }) => {
428
428
  var Y;
429
- if (!u.endDate) {
430
- if (u.isRelativeToNow) {
431
- const S = (Y = k.value) == null ? void 0 : Y[d];
432
- return S ? he(S.startDate, r.startDate) && he(S.endDate, r.endDate) : (
429
+ if (!c.endDate) {
430
+ if (c.isRelativeToNow) {
431
+ const _ = (Y = y.value) == null ? void 0 : Y[u];
432
+ return _ ? he(_.startDate, r.startDate) && he(_.endDate, r.endDate) : (
433
433
  // If not stored calculated dates, fall back to comparing the quick select item's value
434
434
  // with the internal range's stored range identifier.
435
- d === r.range
435
+ u === r.range
436
436
  );
437
437
  }
438
- return he(u.startDate, r.startDate) && Wt(r.endDate) && (!e.allowTimeInput || Ye(r.endDate, q(r.endDate))) && (e.granularities ? u.granularity === r.granularity : !0);
438
+ return he(c.startDate, r.startDate) && Kt(r.endDate) && (!e.allowTimeInput || Ye(r.endDate, B(r.endDate))) && (e.granularities ? c.granularity === r.granularity : !0);
439
439
  }
440
440
  if (e.allowTimeInput)
441
- return Ye(u.startDate, r.startDate) && Ye(u.endDate, r.endDate) && (e.granularities ? u.granularity === r.granularity : !0);
442
- if (u.endDate)
443
- return w(u.startDate, r.startDate) && w(u.endDate, r.endDate) && (e.granularities ? u.granularity === r.granularity : !0);
444
- })) == null ? void 0 : i.value) ?? l
441
+ return Ye(c.startDate, r.startDate) && Ye(c.endDate, r.endDate) && (e.granularities ? c.granularity === r.granularity : !0);
442
+ if (c.endDate)
443
+ return E(c.startDate, r.startDate) && E(c.endDate, r.endDate) && (e.granularities ? c.granularity === r.granularity : !0);
444
+ })) == null ? void 0 : l.value) ?? i
445
445
  );
446
- }), ye = m(() => ({
446
+ }), oe = p(() => ({
447
447
  "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
448
- })), Z = m(() => [
449
- { label: y("customRange"), value: l },
448
+ })), le = p(() => [
449
+ { label: x("customRange"), value: i },
450
450
  ...e.quickSelectRanges ? e.quickSelectRanges : []
451
- ]), j = m(
451
+ ]), J = p(
452
452
  () => {
453
453
  var n;
454
- return ((n = e.granularities) == null ? void 0 : n.find(({ type: i }) => i === r.granularity)) || null;
454
+ return ((n = e.granularities) == null ? void 0 : n.find(({ type: l }) => l === r.granularity)) || null;
455
455
  }
456
- ), se = m(
456
+ ), ie = p(
457
457
  () => {
458
458
  var n;
459
- return ((n = e.granularities) == null ? void 0 : n.map(({ type: i, disabled: d }) => ({
460
- label: y(i),
461
- value: i,
462
- disabled: d
459
+ return ((n = e.granularities) == null ? void 0 : n.map(({ type: l, disabled: u }) => ({
460
+ label: x(l),
461
+ value: l,
462
+ disabled: u
463
463
  }))) ?? [];
464
464
  }
465
- ), { getGranularCalendarLimits: oe } = Kt(e), h = m(
466
- () => e.granularities ? oe(j.value) : { min: e.min ? A(e.min) : null, max: e.max ? q(e.max) : null }
465
+ ), { getGranularCalendarLimits: Z } = ta(e), T = p(
466
+ () => e.granularities ? Z(J.value) : { min: e.min ? R(e.min) : null, max: e.max ? B(e.max) : null }
467
467
  ), {
468
- adjustDateForQuarterly: ee,
469
- adjustDateForMonthly: J,
470
- adjustDateForWeekly: g,
471
- adjustStartDateInputForWeekly: le,
472
- adjustEndDateInputForWeekly: ie,
468
+ adjustDateForQuarterly: h,
469
+ adjustDateForMonthly: ue,
470
+ adjustDateForWeekly: de,
471
+ adjustStartDateInputForWeekly: z,
472
+ adjustEndDateInputForWeekly: ce,
473
473
  adjustStartDateInputForMonthly: $,
474
- adjustEndDateInputForMonthly: de,
475
- adjustStartDateInputForQuarterly: H,
476
- adjustEndDateInputForQuarterly: V
477
- } = Ot(e.firstDayOfWeek), { savedRanges: b, saveRange: L, resetSavedRanges: te } = Xt(), I = (n) => n ? Q(n) : "", W = B(!1), K = B(!1), o = ve({
474
+ adjustEndDateInputForMonthly: H,
475
+ adjustStartDateInputForQuarterly: w,
476
+ adjustEndDateInputForQuarterly: G
477
+ } = qt(e.firstDayOfWeek), { savedRanges: q, saveRange: me, resetSavedRanges: ee } = aa(), A = (n) => n ? O(n) : "", V = C(!1), K = C(!1), o = ye({
478
478
  startDate: e.dateFormData.startDate,
479
479
  endDate: e.dateFormData.endDate,
480
480
  startTime: e.dateFormData.startTime,
481
481
  endTime: e.dateFormData.endTime
482
- }), ue = (n, i) => {
483
- let d = new Date(n);
484
- const [u, Y, S] = i.split(":");
485
- return d = zt(d, parseInt(u, 10)), d = $t(d, parseInt(Y, 10)), d = Ht(d, parseInt(S, 10)), d;
486
- }, ce = (n, i) => {
487
- const d = () => {
488
- if (i && x(i)) {
489
- const u = ue(F(i), n);
490
- if (e.min && u < Je(e.min, 0) || e.max && u > Je(e.max, 0))
482
+ }), De = (n, l) => {
483
+ let u = new Date(n);
484
+ const [c, Y, _] = l.split(":");
485
+ return u = Xt(u, parseInt(c, 10)), u = Zt(u, parseInt(Y, 10)), u = ea(u, parseInt(_, 10)), u;
486
+ }, pe = (n, l) => {
487
+ const u = () => {
488
+ if (l && N(l)) {
489
+ const c = De(D(l), n);
490
+ if (e.min && c < Je(e.min, 0) || e.max && c > Je(e.max, 0))
491
491
  return !1;
492
492
  }
493
493
  return !0;
494
494
  };
495
- return we(n) && d();
496
- }, G = m(() => e.variant === "month"), De = (n) => n ? G.value ? Ct(n) : wt(n) : "", c = m(() => De(r.startDate)), z = m(() => De(r.endDate)), me = m(() => _.value ? G.value ? "month" : "date" : "text"), Xe = m(() => _.value ? c.value : o.startDate), Ze = m(() => _.value ? z.value : o.endDate), E = (n, i) => !i || !we(i) || e.variant === "month" ? n : ue(new Date(n), i), et = (n) => {
497
- o.startTime = O(
498
- e.min && e.allowTimeInput && w(e.min, n.startDate) ? e.min : A(n.startDate)
499
- ), o.endTime = O(
500
- e.max && e.allowTimeInput && w(e.max, n.endDate) ? e.max : q(n.endDate)
501
- ), r.startDate = E(n.startDate, o.startTime), r.endDate = E(n.endDate, o.endTime), r.range = null, e.granularities && te(), a(v.INPUT, {
495
+ return Be(n) && u();
496
+ }, d = p(() => e.variant === "month"), Q = (n) => n ? d.value ? Nt(n) : Pt(n) : "", te = p(() => Q(r.startDate)), Ie = p(() => Q(r.endDate)), Ke = p(() => M.value ? d.value ? "month" : "date" : "text"), Xe = p(() => M.value ? te.value : o.startDate), Ze = p(() => M.value ? Ie.value : o.endDate), k = (n, l) => !l || !Be(l) || e.variant === "month" ? n : De(new Date(n), l), et = (n) => {
497
+ o.startTime = S(
498
+ e.min && e.allowTimeInput && E(e.min, n.startDate) ? e.min : R(n.startDate)
499
+ ), o.endTime = S(
500
+ e.max && e.allowTimeInput && E(e.max, n.endDate) ? e.max : B(n.endDate)
501
+ ), r.startDate = k(n.startDate, o.startTime), r.endDate = k(n.endDate, o.endTime), r.range = null, e.granularities && ee(), a(v.INPUT, {
502
502
  ...r,
503
- range: T.value
503
+ range: I.value
504
504
  });
505
- }, x = (n) => {
505
+ }, N = (n) => {
506
506
  if (!n)
507
507
  return !1;
508
- const i = (d) => e.min && A(d) < A(e.min) || e.max && A(d) > A(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(A(d)) : !0;
509
- return R(n) && i(F(n));
508
+ const l = (u) => e.min && R(u) < R(e.min) || e.max && R(u) > R(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(R(u)) : !0;
509
+ return X(n) && l(D(n));
510
510
  };
511
- ze(() => {
512
- W.value = !!(e.dateFormData.startDate && !x(e.dateFormData.startDate)), K.value = !!(e.dateFormData.endDate && !x(e.dateFormData.endDate));
511
+ $e(() => {
512
+ V.value = !!(e.dateFormData.startDate && !N(e.dateFormData.startDate)), K.value = !!(e.dateFormData.endDate && !N(e.dateFormData.endDate));
513
513
  });
514
514
  const tt = (n) => {
515
- o.startDate = I(n), o.startTime || (o.startTime = O(n)), W.value = !1, a(v.START_DATE_SELECTED, n);
515
+ o.startDate = A(n), o.startTime || (o.startTime = S(n)), V.value = !1, a(v.START_DATE_SELECTED, n);
516
516
  }, at = (n) => {
517
- o.endDate = I(n), o.endTime || (o.endTime = O(q(n))), K.value = !1;
518
- }, pe = (n) => {
519
- const i = e.value[n];
520
- if (i)
521
- return i;
522
- if (e.dateFormData[n] && x(e.dateFormData[n]))
523
- return F(e.dateFormData[n]);
517
+ o.endDate = A(n), o.endTime || (o.endTime = S(B(n))), K.value = !1;
518
+ }, fe = (n) => {
519
+ const l = e.value[n];
520
+ if (l)
521
+ return l;
522
+ if (e.dateFormData[n] && N(e.dateFormData[n]))
523
+ return D(e.dateFormData[n]);
524
524
  }, Me = (n) => {
525
- var i;
526
- if (x(n)) {
527
- let d = n;
528
- switch (W.value = !1, (i = j.value) == null ? void 0 : i.type) {
525
+ var l;
526
+ if (N(n)) {
527
+ let u = n;
528
+ switch (V.value = !1, (l = J.value) == null ? void 0 : l.type) {
529
529
  case "weekly":
530
- d = le(
530
+ u = z(
531
531
  n,
532
- I,
533
- h.value.min,
534
- h.value.max
535
- ), o.startDate = d;
532
+ A,
533
+ T.value.min,
534
+ T.value.max
535
+ ), o.startDate = u;
536
536
  break;
537
537
  case "monthly":
538
- d = $(
538
+ u = $(
539
539
  n,
540
- I,
541
- h.value.min,
542
- h.value.max
543
- ), o.startDate = d;
540
+ A,
541
+ T.value.min,
542
+ T.value.max
543
+ ), o.startDate = u;
544
544
  break;
545
545
  case "quarterly":
546
- d = H(
546
+ u = w(
547
547
  n,
548
- I,
549
- h.value.min,
550
- h.value.max
551
- ), o.startDate = d;
548
+ A,
549
+ T.value.min,
550
+ T.value.max
551
+ ), o.startDate = u;
552
552
  break;
553
553
  }
554
- const u = A(F(d));
555
- r.startDate = E(u, o.startTime), r.endDate = E(
556
- A(F(o.endDate)),
554
+ const c = R(D(u));
555
+ r.startDate = k(c, o.startTime), r.endDate = k(
556
+ R(D(o.endDate)),
557
557
  o.endTime
558
- ), x(o.endDate) && (r.endDate = E(
559
- A(F(o.endDate)),
558
+ ), N(o.endDate) && (r.endDate = k(
559
+ R(D(o.endDate)),
560
560
  o.endTime
561
561
  ));
562
- const Y = pe("endDate");
562
+ const Y = fe("endDate");
563
563
  r.range = null, a(v.FORM_DATE, {
564
- startDate: u,
564
+ startDate: c,
565
565
  endDate: Y
566
566
  }), a(v.INPUT, {
567
567
  ...r,
568
- range: T.value
568
+ range: I.value
569
569
  });
570
570
  } else
571
- W.value = !0, a(v.ERROR, { ...o });
572
- }, Ie = Be(Me, t), nt = (n) => {
573
- if (o.startDate = _.value && G.value ? n : f(n), _.value)
574
- if (G.value && n) {
575
- const i = Pe(n);
576
- r.startDate = E(i, o.startTime), r.range = null, a(v.INPUT, {
571
+ V.value = !0, a(v.ERROR, { ...o });
572
+ }, _e = xe(Me, t), nt = (n) => {
573
+ if (o.startDate = M.value && d.value ? n : b(n), M.value)
574
+ if (d.value && n) {
575
+ const l = Le(n);
576
+ r.startDate = k(l, o.startTime), r.range = null, a(v.INPUT, {
577
577
  ...r,
578
- range: T.value
578
+ range: I.value
579
579
  });
580
580
  } else
581
581
  Me(o.startDate);
582
582
  else
583
- Ie(o.startDate);
583
+ _e(o.startDate);
584
584
  }, ge = (n) => {
585
- var i;
586
- if (x(n)) {
587
- let d = n;
588
- switch (K.value = !1, (i = j.value) == null ? void 0 : i.type) {
585
+ var l;
586
+ if (N(n)) {
587
+ let u = n;
588
+ switch (K.value = !1, (l = J.value) == null ? void 0 : l.type) {
589
589
  case "weekly":
590
- d = ie(
590
+ u = ce(
591
591
  n,
592
- I,
593
- h.value.min,
594
- h.value.max
595
- ), o.endDate = d;
592
+ A,
593
+ T.value.min,
594
+ T.value.max
595
+ ), o.endDate = u;
596
596
  break;
597
597
  case "monthly":
598
- d = de(
598
+ u = H(
599
599
  n,
600
- I,
601
- h.value.min,
602
- h.value.max
603
- ), o.endDate = d;
600
+ A,
601
+ T.value.min,
602
+ T.value.max
603
+ ), o.endDate = u;
604
604
  break;
605
605
  case "quarterly":
606
- d = V(
606
+ u = G(
607
607
  n,
608
- I,
609
- h.value.min,
610
- h.value.max
611
- ), o.endDate = d;
608
+ A,
609
+ T.value.min,
610
+ T.value.max
611
+ ), o.endDate = u;
612
612
  break;
613
613
  }
614
- const u = A(F(d));
615
- r.endDate = E(u, o.endTime), x(o.startDate) && (r.startDate = E(
616
- A(F(o.startDate)),
614
+ const c = R(D(u));
615
+ r.endDate = k(c, o.endTime), N(o.startDate) && (r.startDate = k(
616
+ R(D(o.startDate)),
617
617
  o.startTime
618
618
  ));
619
- const Y = pe("startDate");
619
+ const Y = fe("startDate");
620
620
  r.range = null, a(v.FORM_DATE, {
621
621
  startDate: Y,
622
- endDate: u
622
+ endDate: c
623
623
  }), a(v.INPUT, {
624
624
  ...r,
625
- range: T.value
625
+ range: I.value
626
626
  });
627
627
  } else
628
628
  K.value = !0, a(v.ERROR, { ...o });
629
- }, _e = Be(ge, t), rt = (n) => {
630
- if (o.endDate = _.value && G.value ? n : f(n), _.value)
631
- if (G.value && n) {
632
- const i = Pe(n);
633
- r.endDate = E(i, o.endTime), r.range = null, a(v.INPUT, {
629
+ }, ke = xe(ge, t), rt = (n) => {
630
+ if (o.endDate = M.value && d.value ? n : b(n), M.value)
631
+ if (d.value && n) {
632
+ const l = Le(n);
633
+ r.endDate = k(l, o.endTime), r.range = null, a(v.INPUT, {
634
634
  ...r,
635
- range: T.value
635
+ range: I.value
636
636
  });
637
637
  } else
638
638
  ge(o.endDate);
639
639
  else
640
- _e(o.endDate);
640
+ ke(o.endDate);
641
641
  }, st = (n) => {
642
- X(n);
642
+ W(n);
643
643
  }, ot = () => {
644
644
  a(v.ERROR, { ...o });
645
645
  }, lt = () => {
646
646
  const n = o.startTime;
647
- if (!ce(n, o.startDate)) {
647
+ if (!pe(n, o.startDate)) {
648
648
  a(v.ERROR, { ...o });
649
649
  return;
650
650
  }
651
- r.startDate = E(r.startDate, n);
652
- const i = pe("endDate");
651
+ r.startDate = k(r.startDate, n);
652
+ const l = fe("endDate");
653
653
  a(v.FORM_DATE, {
654
654
  startDate: r.startDate,
655
- endDate: i,
655
+ endDate: l,
656
656
  startTime: n,
657
657
  endTime: o.endTime ?? e.dateFormData.endTime
658
658
  }), a(v.INPUT, {
659
659
  ...r,
660
- range: T.value
660
+ range: I.value
661
661
  });
662
662
  }, it = () => {
663
663
  a(v.ERROR, { ...o });
664
- }, dt = () => {
664
+ }, ut = () => {
665
665
  const n = o.endTime;
666
- if (!ce(n, o.endDate)) {
666
+ if (!pe(n, o.endDate)) {
667
667
  a(v.ERROR, { ...o });
668
668
  return;
669
669
  }
670
- r.endDate = E(r.endDate, n), a(v.FORM_DATE, {
670
+ r.endDate = k(r.endDate, n), a(v.FORM_DATE, {
671
671
  startDate: r.startDate,
672
672
  endDate: r.endDate,
673
673
  startTime: o.startTime ?? e.dateFormData.startTime,
674
674
  endTime: n
675
675
  }), a(v.INPUT, {
676
676
  ...r,
677
- range: T.value
677
+ range: I.value
678
678
  });
679
- }, ut = (n) => {
679
+ }, dt = (n) => {
680
680
  o.startTime = n;
681
681
  }, ct = (n) => {
682
682
  o.endTime = n;
683
- }, ae = (n, i, d, u) => {
684
- r.startDate = n, r.endDate = i, d && (r.granularity = d), u && (r.range = u);
685
- }, Dt = (n) => {
686
- var d;
687
- const i = (d = e.quickSelectRanges) == null ? void 0 : d.find(({ value: u }) => u === n);
688
- if (i) {
689
- te();
690
- const u = i.data, Y = u.endDate || (u.isRelativeToNow ? new Date(Date.now()) : q(new Date(Date.now()))), S = u.isRelativeToNow && u.timeDifference ? new Date(Y.getTime() - u.timeDifference) : u.startDate;
691
- o.endDate = I(Y), o.startDate = I(S), ae(S, Y, null, n), e.granularities && (r.granularity = u.granularity || C.value), o.startTime = O(S), o.endTime = O(Y), r.startDate = S, r.endDate = Y, u.isRelativeToNow && (k.value = {
692
- ...k.value,
683
+ }, ae = (n, l, u, c) => {
684
+ r.startDate = n, r.endDate = l, u && (r.granularity = u), c && (r.range = c);
685
+ }, mt = (n) => {
686
+ var u;
687
+ const l = (u = e.quickSelectRanges) == null ? void 0 : u.find(({ value: c }) => c === n);
688
+ if (l) {
689
+ ee();
690
+ const c = l.data, Y = c.endDate || (c.isRelativeToNow ? new Date(Date.now()) : B(new Date(Date.now()))), _ = c.isRelativeToNow && c.timeDifference ? new Date(Y.getTime() - c.timeDifference) : c.startDate;
691
+ o.endDate = A(Y), o.startDate = A(_), ae(_, Y, null, n), e.granularities && (r.granularity = c.granularity || j.value), o.startTime = S(_), o.endTime = S(Y), r.startDate = _, r.endDate = Y, c.isRelativeToNow && (y.value = {
692
+ ...y.value,
693
693
  [n]: {
694
- startDate: S,
694
+ startDate: _,
695
695
  endDate: Y
696
696
  }
697
697
  }), a(v.CUSTOM_RANGE, {
698
- ...i.data,
699
- startDate: S,
698
+ ...l.data,
699
+ startDate: _,
700
700
  endDate: Y,
701
- range: i.value
701
+ range: l.value
702
702
  });
703
703
  }
704
- }, ke = {
705
- weekly: g,
706
- monthly: J,
707
- quarterly: ee
708
- }, mt = (n) => {
709
- const i = r.granularity;
710
- if (r.granularity = n, i && L(i, structuredClone(Ae(r))), r.startDate && r.endDate) {
704
+ }, Se = {
705
+ weekly: de,
706
+ monthly: ue,
707
+ quarterly: h
708
+ }, Dt = (n) => {
709
+ const l = r.granularity;
710
+ if (r.granularity = n, l && me(l, structuredClone(Re(r))), r.startDate && r.endDate) {
711
711
  switch (n) {
712
712
  case "quarterly":
713
713
  case "monthly":
714
714
  case "weekly": {
715
- if (b[n]) {
716
- ae(b[n].startDate, b[n].endDate, n);
715
+ if (q[n]) {
716
+ ae(q[n].startDate, q[n].endDate, n);
717
717
  break;
718
718
  }
719
- const { startDate: d, endDate: u } = ke[n](
719
+ const { startDate: u, endDate: c } = Se[n](
720
720
  r.startDate,
721
721
  r.endDate,
722
- h.value.min,
723
- h.value.max
722
+ T.value.min,
723
+ T.value.max
724
724
  );
725
- ae(d, u, n);
725
+ ae(u, c, n);
726
726
  break;
727
727
  }
728
728
  case "daily":
729
- b.daily && ae(b.daily.startDate, b.daily.endDate, n);
729
+ q.daily && ae(q.daily.startDate, q.daily.endDate, n);
730
730
  break;
731
731
  }
732
- o.startDate = I(r.startDate), o.endDate = I(r.endDate), a(v.INPUT, {
732
+ o.startDate = A(r.startDate), o.endDate = A(r.endDate), a(v.INPUT, {
733
733
  ...r,
734
- range: T.value
734
+ range: I.value
735
735
  });
736
736
  }
737
- }, pt = m(() => ({
738
- "b-date-range-picker-calendar__form-container--no-calendars": M.value
739
- }));
740
- return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: t, RANGE_SELECTOR_CUSTOM_RANGE_KEY: l, props: e, emit: a, slots: D, hasSlot: p, t: y, isTouchDevice: _, dateFormat: U, isFormatValid: R, parseDate: F, onKeyDown: X, autoFormat: f, formatDateUtil: Q, calculatedIsRelativeToNowQuickSelectRanges: k, defaultGranularity: C, hasNoCalendars: M, internalRangeDate: r, selectedRangeSelectorValue: T, formInputWrapperConditionalClasses: ye, quickSelectRangeDefaultItems: Z, selectedGranularity: j, granularityItems: se, getGranularCalendarLimits: oe, computedMinMax: h, adjustDateForQuarterly: ee, adjustDateForMonthly: J, adjustDateForWeekly: g, adjustStartDateInputForWeekly: le, adjustEndDateInputForWeekly: ie, adjustStartDateInputForMonthly: $, adjustEndDateInputForMonthly: de, adjustStartDateInputForQuarterly: H, adjustEndDateInputForQuarterly: V, savedRanges: b, saveRange: L, resetSavedRanges: te, formatDate: I, startDateError: W, endDateError: K, dateTextInput: o, setTimeInDateObject: ue, isValidTime: ce, isMonthVariant: G, formatNativeDate: De, nativeStartDate: c, nativeEndDate: z, dateInputType: me, startDateValue: Xe, endDateValue: Ze, setTimeInDateRef: E, onDateInput: et, isValidDate: x, onStartDateSelected: tt, onEndDateSelected: at, getDate: pe, validateStartDate: Me, validateStartDateDebounced: Ie, onStartDateInput: nt, validateEndDate: ge, validateEndDateDebounced: _e, onEndDateInput: rt, onDateInputKeyDown: st, onStartTimeError: ot, onStartTimeValid: lt, onEndTimeError: it, onEndTimeValid: dt, onStartTimeInput: ut, onEndTimeInput: ct, setInternalRange: ae, onRangeSelectorInput: Dt, adjustDate: ke, onGranularityInput: mt, computedFormContainerClasses: pt, Calendar: N, BentoTypography: $e, BentoInputField: ht, BentoInputTime: Yt, BentoDropdown: At, BentoSegmentedControl: bt };
737
+ }, pt = p(() => ({
738
+ "b-date-range-picker-calendar__form-container--no-calendars": F.value
739
+ })), ft = p(() => {
740
+ const n = J.value, l = (n == null ? void 0 : n.maxRange) || e.maxRange;
741
+ if (!l)
742
+ return null;
743
+ const u = m[(n == null ? void 0 : n.type) ?? "daily"];
744
+ return L(u, l, { count: l });
745
+ });
746
+ return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: t, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: a, slots: f, hasSlot: g, t: x, tc: L, isTouchDevice: M, dateFormat: se, isFormatValid: X, parseDate: D, onKeyDown: W, autoFormat: b, formatDateUtil: O, calculatedIsRelativeToNowQuickSelectRanges: y, defaultGranularity: j, hasNoCalendars: F, internalRangeDate: r, selectedRangeSelectorValue: I, formInputWrapperConditionalClasses: oe, quickSelectRangeDefaultItems: le, selectedGranularity: J, granularityItems: ie, getGranularCalendarLimits: Z, computedMinMax: T, adjustDateForQuarterly: h, adjustDateForMonthly: ue, adjustDateForWeekly: de, adjustStartDateInputForWeekly: z, adjustEndDateInputForWeekly: ce, adjustStartDateInputForMonthly: $, adjustEndDateInputForMonthly: H, adjustStartDateInputForQuarterly: w, adjustEndDateInputForQuarterly: G, savedRanges: q, saveRange: me, resetSavedRanges: ee, formatDate: A, startDateError: V, endDateError: K, dateTextInput: o, setTimeInDateObject: De, isValidTime: pe, isMonthVariant: d, formatNativeDate: Q, nativeStartDate: te, nativeEndDate: Ie, dateInputType: Ke, startDateValue: Xe, endDateValue: Ze, setTimeInDateRef: k, onDateInput: et, isValidDate: N, onStartDateSelected: tt, onEndDateSelected: at, getDate: fe, validateStartDate: Me, validateStartDateDebounced: _e, onStartDateInput: nt, validateEndDate: ge, validateEndDateDebounced: ke, onEndDateInput: rt, onDateInputKeyDown: st, onStartTimeError: ot, onStartTimeValid: lt, onEndTimeError: it, onEndTimeValid: ut, onStartTimeInput: dt, onEndTimeInput: ct, setInternalRange: ae, onRangeSelectorInput: mt, adjustDate: Se, onGranularityInput: Dt, computedFormContainerClasses: pt, maxRangeMessage: ft, Calendar: P, BentoAlert: Yt, BentoTypography: He, BentoInputField: Rt, BentoInputTime: At, BentoDropdown: bt, BentoSegmentedControl: _t };
741
747
  }
742
748
  });
743
- var aa = function() {
749
+ var oa = function() {
744
750
  var a = this, e = a._self._c, t = a._self._setupProxy;
745
- return e("div", { staticClass: "b-date-range-picker-calendar" }, [e("div", { staticClass: "b-date-range-picker-calendar__form-container", class: t.computedFormContainerClasses, attrs: { "data-testid": "date-range-picker-calendar-form-container" } }, [e("div", { staticClass: "b-date-range-picker-calendar__form" }, [t.hasSlot("title") ? [a._t("title")] : a._e(), a.quickSelectRanges ? e(t.BentoDropdown, { attrs: { "aria-label": t.t("customRange"), items: t.quickSelectRangeDefaultItems, "model-value": t.selectedRangeSelectorValue }, on: { "update:model-value": t.onRangeSelectorInput } }) : a._e(), a.granularities ? e(t.BentoSegmentedControl, { attrs: { items: t.granularityItems, "model-value": t.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": t.onGranularityInput } }) : a._e(), e("div", [e(t.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [a._v(" From ")]), e("div", { class: t.formInputWrapperConditionalClasses }, [e(t.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": t.t("dateFrom"), "model-value": t.startDateValue, error: t.startDateError, type: t.dateInputType }, on: { "update:model-value": t.onStartDateInput, keydown: t.onDateInputKeyDown }, scopedSlots: a._u([t.isTouchDevice ? null : { key: "description", fn: function() {
751
+ return e("div", { staticClass: "b-date-range-picker-calendar" }, [e("div", { staticClass: "b-date-range-picker-calendar__form-container", class: t.computedFormContainerClasses, attrs: { "data-testid": "date-range-picker-calendar-form-container" } }, [e("div", { staticClass: "b-date-range-picker-calendar__form" }, [t.hasSlot("title") ? [a._t("title")] : a._e(), a.quickSelectRanges ? e(t.BentoDropdown, { attrs: { "aria-label": t.t("customRange"), items: t.quickSelectRangeDefaultItems, "model-value": t.selectedRangeSelectorValue }, on: { "update:model-value": t.onRangeSelectorInput } }) : a._e(), a.granularities ? e(t.BentoSegmentedControl, { attrs: { items: t.granularityItems, "model-value": t.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": t.onGranularityInput } }) : a._e(), t.maxRangeMessage ? e(t.BentoAlert, { attrs: { variant: "tip" }, scopedSlots: a._u([{ key: "description", fn: function() {
752
+ return [a._v(" " + a._s(t.maxRangeMessage) + " ")];
753
+ }, proxy: !0 }], null, !1, 1192229622) }) : a._e(), e("div", [e(t.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [a._v(" From ")]), e("div", { class: t.formInputWrapperConditionalClasses }, [e(t.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": t.t("dateFrom"), "model-value": t.startDateValue, error: t.startDateError, type: t.dateInputType }, on: { "update:model-value": t.onStartDateInput, keydown: t.onDateInputKeyDown }, scopedSlots: a._u([t.isTouchDevice ? null : { key: "description", fn: function() {
746
754
  return [a._v(a._s(t.t(t.dateFormat)))];
747
755
  }, proxy: !0 }], null, !0) }), a.allowTimeInput ? e(t.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": t.t("timeFrom"), "model-value": t.dateTextInput.startTime }, on: { "update:model-value": t.onStartTimeInput, "input:error": t.onStartTimeError, "input:valid": t.onStartTimeValid } }) : a._e()], 1)], 1), e("div", [e(t.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [a._v(" To ")]), e("div", { class: t.formInputWrapperConditionalClasses }, [e(t.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": t.t("dateTo"), "model-value": t.endDateValue, error: t.endDateError, type: t.dateInputType }, on: { "update:model-value": t.onEndDateInput, keydown: t.onDateInputKeyDown }, scopedSlots: a._u([t.isTouchDevice ? null : { key: "description", fn: function() {
748
756
  return [a._v(a._s(t.t(t.dateFormat)))];
749
757
  }, proxy: !0 }], null, !0) }), a.allowTimeInput ? e(t.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": t.t("timeTo"), "model-value": t.dateTextInput.endTime }, on: { "update:model-value": t.onEndTimeInput, "input:error": t.onEndTimeError, "input:valid": t.onEndTimeValid } }) : a._e()], 1)], 1)], 2), t.hasSlot("actions") ? e("div", [a._t("actions")], 2) : a._e()]), !t.hasNoCalendars && !t.isTouchDevice ? e("div", { staticClass: "b-date-range-picker-calendar__calendars-container", attrs: { "data-testid": "date-range-picker-calendar-calendar-container" } }, [e(t.Calendar, { attrs: { value: t.internalRangeDate, "first-day-of-week": a.firstDayOfWeek, "is-date-disabled": a.isDateDisabled, "max-range": a.maxRange, min: t.computedMinMax.min, max: t.computedMinMax.max, "number-of-months": a.numberOfMonths, "show-end-date-on-open": a.showEndDateOnOpen, granularity: t.selectedGranularity, variant: a.variant, "is-range": "" }, on: { input: t.onDateInput, "start-date-selected": t.onStartDateSelected, "end-date-selected": t.onEndDateSelected } })], 1) : a._e()]);
750
- }, na = [], ra = /* @__PURE__ */ Ve(
751
- ta,
752
- aa,
753
- na,
758
+ }, la = [], ia = /* @__PURE__ */ Ve(
759
+ sa,
760
+ oa,
761
+ la,
754
762
  !1,
755
763
  null,
756
- "e684b7ff"
764
+ "7338c0ea"
757
765
  );
758
- const sa = ra.exports, oa = {
766
+ const ua = ia.exports, da = {
759
767
  "de-DE": {
760
768
  apply: "Anwenden",
761
769
  cancel: "Abbrechen",
@@ -856,73 +864,73 @@ const sa = ra.exports, oa = {
856
864
  selectDateRange: "选择日期范围",
857
865
  selectedDateIsNotAvailable: "所选日期不可用"
858
866
  }
859
- }, la = ({
867
+ }, ca = ({
860
868
  datePickerValue: s,
861
869
  isDateIncorrect: a,
862
870
  quickSelectRanges: e,
863
871
  isMonthVariant: t,
864
- withTimeInput: l,
865
- placeholder: D
872
+ withTimeInput: i,
873
+ placeholder: m
866
874
  }) => {
867
- const { locale: p, t: y } = Re(), { dateToInputDateString: _ } = be(), U = (f) => !!f && !isNaN(f.getTime()), R = ve({
875
+ const { locale: f, t: g } = Ae(), { dateToInputDateString: x } = be(), L = (D) => !!D && !isNaN(D.getTime()), M = ye({
868
876
  startDate: null,
869
877
  endDate: null,
870
878
  startTime: null,
871
879
  endTime: null
872
880
  });
873
- return fe(
881
+ return ve(
874
882
  s,
875
- (f) => {
876
- R.startDate = _(f == null ? void 0 : f.startDate), R.endDate = _(f == null ? void 0 : f.endDate), R.startTime = O(f == null ? void 0 : f.startDate), R.endTime = O(f == null ? void 0 : f.endDate);
883
+ (D) => {
884
+ M.startDate = x(D == null ? void 0 : D.startDate), M.endDate = x(D == null ? void 0 : D.endDate), M.startTime = S(D == null ? void 0 : D.startDate), M.endTime = S(D == null ? void 0 : D.endDate);
877
885
  },
878
886
  { immediate: !0 }
879
887
  ), {
880
888
  // Values
881
- dateDisplayValue: m(() => {
882
- var Q;
889
+ dateDisplayValue: p(() => {
890
+ var W;
883
891
  if (a.value)
884
- return `${R.startDate || ""} - ${R.endDate || ""}`;
892
+ return `${M.startDate || ""} - ${M.endDate || ""}`;
885
893
  if (!s.value || !s.value.startDate && !s.value.endDate)
886
- return (D == null ? void 0 : D.value) || y("selectDateRange");
887
- if ((Q = e.value) != null && Q.length) {
888
- const k = e.value.find(({ value: C }) => {
889
- var M;
890
- return C === ((M = s.value) == null ? void 0 : M.range);
894
+ return (m == null ? void 0 : m.value) || g("selectDateRange");
895
+ if ((W = e.value) != null && W.length) {
896
+ const b = e.value.find(({ value: O }) => {
897
+ var y;
898
+ return O === ((y = s.value) == null ? void 0 : y.range);
891
899
  });
892
- if (k)
893
- return k.label;
900
+ if (b)
901
+ return b.label;
894
902
  }
895
903
  if (s.value.granularity === "quarterly") {
896
- const { startDate: k, endDate: C } = s.value, M = y("quarter", { quarter: Ue(k), year: Qe(k) });
897
- if (Jt(k, C))
898
- return M;
899
- const r = y("quarter", { quarter: Ue(C), year: Qe(C) });
900
- return `${M} - ${r}`;
904
+ const { startDate: b, endDate: O } = s.value, y = g("quarter", { quarter: Ge(b), year: We(b) });
905
+ if (Vt(b, O))
906
+ return y;
907
+ const j = g("quarter", { quarter: Ge(O), year: We(O) });
908
+ return `${y} - ${j}`;
901
909
  }
902
- if (!U(s.value.startDate) || !U(s.value.endDate))
903
- return `${R.startDate || ""} - ${R.endDate || ""}`;
904
- let f = t != null && t.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
905
- return l.value && (f = {
906
- ...f,
910
+ if (!L(s.value.startDate) || !L(s.value.endDate))
911
+ return `${M.startDate || ""} - ${M.endDate || ""}`;
912
+ let D = t != null && t.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
913
+ return i.value && (D = {
914
+ ...D,
907
915
  hour: "numeric",
908
916
  minute: "numeric",
909
917
  second: "numeric",
910
918
  hour12: !1
911
- }), Bt(p.value, f).formatRange(
919
+ }), Lt(f.value, D).formatRange(
912
920
  s.value.startDate,
913
921
  s.value.endDate
914
922
  );
915
923
  }),
916
- textInputDisplayValue: R,
924
+ textInputDisplayValue: M,
917
925
  // Methods
918
926
  formatTextInputDisplayValue: () => ""
919
927
  };
920
- }, ia = {
921
- i18n: { messages: oa },
928
+ }, ma = {
929
+ i18n: { messages: da },
922
930
  name: "bento-date-range-picker",
923
931
  model: { prop: "modelValue" }
924
- }, da = /* @__PURE__ */ We({
925
- ...ia,
932
+ }, Da = /* @__PURE__ */ ze({
933
+ ...ma,
926
934
  props: {
927
935
  description: { default: void 0 },
928
936
  disabled: { type: Boolean, default: !1 },
@@ -950,7 +958,7 @@ const sa = ra.exports, oa = {
950
958
  },
951
959
  emits: ["update:model-value", "input"],
952
960
  setup(s, { emit: a }) {
953
- const e = s, t = vt(), { t: l } = Re(), { dateToInputDateString: D } = be(), p = ne("bento-date-range-picker-container"), y = ne("bento-date-range-picker-label"), _ = ne("bento-date-range-picker-description"), U = ne("bento-date-range-picker-error"), R = ne("bento-date-range-picker-date-error"), F = m(() => e.label || l("dateRangePicker", { name: p })), { resolvedFirstDayOfWeek: X } = _t(Te(e, "firstDayOfWeek")), f = yt({
961
+ const e = s, t = yt(), { t: i } = Ae(), { dateToInputDateString: m } = be(), f = ne("bento-date-range-picker-container"), g = ne("bento-date-range-picker-label"), x = ne("bento-date-range-picker-description"), L = ne("bento-date-range-picker-error"), M = ne("bento-date-range-picker-date-error"), se = p(() => e.label || i("dateRangePicker", { name: f })), { resolvedFirstDayOfWeek: X } = St(Te(e, "firstDayOfWeek")), D = Mt({
954
962
  none: 0,
955
963
  one: 710,
956
964
  // width of date range picker with one panes
@@ -958,58 +966,58 @@ const sa = ra.exports, oa = {
958
966
  // width of date range picker with two panes
959
967
  three: 1290
960
968
  // width of date range picker with three panes
961
- }), Q = m(() => {
962
- const c = f.active().value, z = {
969
+ }), W = p(() => {
970
+ const d = D.active().value, Q = {
963
971
  none: 0,
964
972
  one: 1,
965
973
  two: 2
966
974
  };
967
- if (c in z) {
968
- const me = z[c];
969
- return e.numberOfMonths === void 0 ? me : Math.min(e.numberOfMonths, me);
975
+ if (d in Q) {
976
+ const te = Q[d];
977
+ return e.numberOfMonths === void 0 ? te : Math.min(e.numberOfMonths, te);
970
978
  }
971
979
  return e.numberOfMonths;
972
- }), k = m(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((c) => {
973
- const z = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
980
+ }), b = p(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((d) => {
981
+ const Q = d.data.endDate ? void 0 : new Date(Date.now()).getTime() - d.data.startDate.getTime();
974
982
  return {
975
- ...c,
983
+ ...d,
976
984
  data: {
977
- ...c.data,
985
+ ...d.data,
978
986
  // Adding timeDifference to calculate an up-to-date endDate on range selection
979
- timeDifference: z
987
+ timeDifference: Q
980
988
  }
981
989
  };
982
- })), C = m(() => e.label ? y : (t == null ? void 0 : t["aria-labelledby"]) ?? null), M = B(!1), r = B(null), T = B(!1), { isReadOnly: ye } = Pt(Te(e, "readonly")), { emitValue: Z } = Lt(a);
983
- fe(
990
+ })), O = p(() => e.label ? g : (t == null ? void 0 : t["aria-labelledby"]) ?? null), y = C(!1), j = C(null), F = C(!1), { isReadOnly: r } = Wt(Te(e, "readonly")), { emitValue: I } = jt(a);
991
+ ve(
984
992
  () => e.disabled,
985
993
  () => {
986
- e.disabled && T.value && (T.value = !1);
994
+ e.disabled && F.value && (F.value = !1);
987
995
  }
988
996
  );
989
- const j = m(() => e.modelValue || e.value), se = m(() => e.hasActions ? !L.value && M.value : M.value), oe = m(() => ({
990
- "b-date-range-picker__description--error": !!e.errorMessage || se.value
991
- })), h = m(() => e.variant === "month"), ee = m(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: J, textInputDisplayValue: g, formatTextInputDisplayValue: le } = la({
992
- datePickerValue: j,
993
- isDateIncorrect: M,
994
- quickSelectRanges: k,
995
- isMonthVariant: h,
996
- withTimeInput: ee,
997
+ const oe = p(() => e.modelValue || e.value), le = p(() => e.hasActions ? !G.value && y.value : y.value), J = p(() => ({
998
+ "b-date-range-picker__description--error": !!e.errorMessage || le.value
999
+ })), ie = p(() => e.variant === "month"), Z = p(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: T, textInputDisplayValue: h, formatTextInputDisplayValue: ue } = ca({
1000
+ datePickerValue: oe,
1001
+ isDateIncorrect: y,
1002
+ quickSelectRanges: b,
1003
+ isMonthVariant: ie,
1004
+ withTimeInput: Z,
997
1005
  placeholder: Te(e, "placeholder")
998
- }), ie = m(
999
- () => `${e.description ? _ : ""} ${e.errorMessage ? U : ""} ${M.value ? R : ""}`.trim() || null
1000
- ), $ = () => {
1001
- T.value = !1;
1002
- }, de = () => {
1003
- T.value = !0;
1004
- }, H = B(J.value), V = B(
1006
+ }), de = p(
1007
+ () => `${e.description ? x : ""} ${e.errorMessage ? L : ""} ${y.value ? M : ""}`.trim() || null
1008
+ ), z = () => {
1009
+ F.value = !1;
1010
+ }, ce = () => {
1011
+ F.value = !0;
1012
+ }, $ = C(T.value), H = C(
1005
1013
  // textInputDisplayValue is a reactive object
1006
- structuredClone(Ae(g))
1007
- ), b = B(e.modelValue ?? e.value), L = B(!0), te = m(
1008
- () => e.hasActions ? V.value : g
1009
- ), I = m(
1010
- () => e.hasActions ? H.value : J.value
1014
+ structuredClone(Re(h))
1015
+ ), w = C(e.modelValue ?? e.value), G = C(!0), q = p(
1016
+ () => e.hasActions ? H.value : h
1017
+ ), me = p(
1018
+ () => e.hasActions ? $.value : T.value
1011
1019
  );
1012
- ze(() => {
1020
+ $e(() => {
1013
1021
  if (e.hasActions || Ce(
1014
1022
  'BentoDateRangePicker "hasActions" property',
1015
1023
  `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
@@ -1019,71 +1027,71 @@ const sa = ra.exports, oa = {
1019
1027
  'BentoDateRangePicker "value" property',
1020
1028
  'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
1021
1029
  "2.0.0"
1022
- ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: c }) => c === "quarterly"))
1030
+ ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: d }) => d === "quarterly"))
1023
1031
  throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
1024
- }), fe([() => e.value, () => e.modelValue], () => {
1025
- H.value = J.value, V.value = structuredClone(Ae(g));
1032
+ }), ve([() => e.value, () => e.modelValue], () => {
1033
+ $.value = T.value, H.value = structuredClone(Re(h));
1026
1034
  });
1027
- const W = m(() => [
1035
+ const ee = p(() => [
1028
1036
  {
1029
- title: l("apply"),
1037
+ title: i("apply"),
1030
1038
  event: () => {
1031
- Z(b.value), $(), L.value = !0;
1039
+ I(w.value), z(), G.value = !0;
1032
1040
  },
1033
- disabled: L.value
1041
+ disabled: G.value
1034
1042
  },
1035
1043
  {
1036
- title: l("cancel"),
1037
- event: $
1044
+ title: i("cancel"),
1045
+ event: z
1038
1046
  }
1039
1047
  ]);
1040
- return fe(b, (c) => {
1048
+ return ve(w, (d) => {
1041
1049
  if (e.hasActions) {
1042
- L.value = M.value;
1050
+ G.value = y.value;
1043
1051
  return;
1044
1052
  }
1045
- Z(c);
1046
- }), { __sfc: !0, emit: a, props: e, attrs: t, t: l, dateToInputDateString: D, datePickerContainerId: p, labelId: y, descriptionId: _, errorId: U, dateErrorId: R, popoverAriaLabel: F, resolvedFirstDayOfWeek: X, breakpoints: f, computedNumberOfMonths: Q, adjustedQuickSelectRanges: k, dropdownInputAriaLabelledBy: C, isDateIncorrect: M, inputContainerRef: r, isDateRangePickerOpen: T, isReadOnly: ye, emitValue: Z, internalModelValue: j, shouldDisplayError: se, descriptionConditionalClasses: oe, isMonthVariant: h, withTimeInput: ee, dateDisplayValue: J, textInputDisplayValue: g, formatTextInputDisplayValue: le, ariaDescribedBy: ie, closeDateRangePicker: $, openDateRangePicker: de, localDateDisplayValue: H, localTextInputDisplayValue: V, selectedDate: b, isApplyDisabled: L, displayedTextInputValue: te, displayedDateValue: I, rangePickerButtonActions: W, onDateRangePickerInput: (c) => {
1047
- M.value = !1, g.startDate = D(c.startDate), g.endDate = D(c.endDate), g.startTime = O(c.startDate), g.endTime = O(c.endDate), b.value = c;
1053
+ I(d);
1054
+ }), { __sfc: !0, emit: a, props: e, attrs: t, t: i, dateToInputDateString: m, datePickerContainerId: f, labelId: g, descriptionId: x, errorId: L, dateErrorId: M, popoverAriaLabel: se, resolvedFirstDayOfWeek: X, breakpoints: D, computedNumberOfMonths: W, adjustedQuickSelectRanges: b, dropdownInputAriaLabelledBy: O, isDateIncorrect: y, inputContainerRef: j, isDateRangePickerOpen: F, isReadOnly: r, emitValue: I, internalModelValue: oe, shouldDisplayError: le, descriptionConditionalClasses: J, isMonthVariant: ie, withTimeInput: Z, dateDisplayValue: T, textInputDisplayValue: h, formatTextInputDisplayValue: ue, ariaDescribedBy: de, closeDateRangePicker: z, openDateRangePicker: ce, localDateDisplayValue: $, localTextInputDisplayValue: H, selectedDate: w, isApplyDisabled: G, displayedTextInputValue: q, displayedDateValue: me, rangePickerButtonActions: ee, onDateRangePickerInput: (d) => {
1055
+ y.value = !1, h.startDate = m(d.startDate), h.endDate = m(d.endDate), h.startTime = S(d.startDate), h.endTime = S(d.endDate), w.value = d;
1048
1056
  }, clearDateRangePickerValue: async () => {
1049
- M.value && (M.value = !1), b.value = null;
1057
+ y.value && (y.value = !1), w.value = null;
1050
1058
  }, onEnterPressedOverInput: () => {
1051
- if (!T.value) {
1052
- T.value = !0;
1059
+ if (!F.value) {
1060
+ F.value = !0;
1053
1061
  return;
1054
1062
  }
1055
- M.value || (T.value = !1);
1056
- }, onDateRangePickerFormDateInputUpdate: (c) => {
1057
- M.value = !1, c.startTime && (g.startTime = c.startTime), c.endTime && (g.endTime = c.endTime);
1058
- }, onDateRangePickerError: (c) => {
1059
- M.value = !0, g.startDate = c.startDate, g.endDate = c.endDate, b.value = { startDate: null, endDate: null };
1060
- }, onRangeSelectorInput: (c) => {
1061
- c && (g.startDate = D(c.startDate), g.endDate = D(c.endDate), g.startTime = O(c.startDate), g.endTime = O(c.endDate), b.value = c);
1062
- }, BentoButtonActions: Tt, BentoButtonActionsLayout: jt, BentoDivider: Mt, BentoPopover: gt, BentoTypography: $e, DateRangePickerCalendar: sa, DropdownInputDefault: Rt, ErrorMessage: Qt, FieldLabel: Ut, vBentoClickOutsideDirective: Gt };
1063
+ y.value || (F.value = !1);
1064
+ }, onDateRangePickerFormDateInputUpdate: (d) => {
1065
+ y.value = !1, d.startTime && (h.startTime = d.startTime), d.endTime && (h.endTime = d.endTime);
1066
+ }, onDateRangePickerError: (d) => {
1067
+ y.value = !0, h.startDate = d.startDate, h.endDate = d.endDate, w.value = { startDate: null, endDate: null };
1068
+ }, onRangeSelectorInput: (d) => {
1069
+ d && (h.startDate = m(d.startDate), h.endDate = m(d.endDate), h.startTime = S(d.startDate), h.endTime = S(d.endDate), w.value = d);
1070
+ }, BentoButtonActions: ht, BentoButtonActionsLayout: Ht, BentoDivider: gt, BentoPopover: Tt, BentoTypography: He, DateRangePickerCalendar: ua, DropdownInputDefault: It, ErrorMessage: $t, FieldLabel: zt, vBentoClickOutsideDirective: Jt };
1063
1071
  }
1064
1072
  });
1065
- var ua = function() {
1073
+ var pa = function() {
1066
1074
  var a = this, e = a._self._c, t = a._self._setupProxy;
1067
- return e("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [a.label ? e(t.FieldLabel, { attrs: { id: t.labelId, label: a.label, "tooltip-text": a.tooltipText, optional: a.optional, required: a.required } }) : a._e(), e("div", { on: { keydown: function(l) {
1068
- return !l.type.indexOf("key") && a._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : t.onEnterPressedOverInput.apply(null, arguments);
1069
- } } }, [e(t.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: t.datePickerContainerId, ariaExpanded: t.isDateRangePickerOpen, "aria-labelledby": t.dropdownInputAriaLabelledBy, "aria-describedby": t.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, "is-invalid": !!a.errorMessage || t.shouldDisplayError, open: t.isDateRangePickerOpen, "display-value": t.displayedDateValue, readonly: t.isReadOnly }, on: { open: t.openDateRangePicker, clear: t.clearDateRangePickerValue, close: t.closeDateRangePicker } })], 1), t.shouldDisplayError ? e(t.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: t.dateErrorId, "error-message": t.t("provideDateInAFormat") } }) : a._e(), a.errorMessage ? e(t.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: t.errorId, "error-message": a.errorMessage } }) : a._e(), a.description ? e(t.BentoTypography, { staticClass: "b-date-range-picker__description", class: t.descriptionConditionalClasses, attrs: { id: t.descriptionId, el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), t.inputContainerRef ? e(t.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: t.datePickerContainerId, open: t.isDateRangePickerOpen, "target-element": t.inputContainerRef, "aria-label": t.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "", "trap-all": "", "overflow-visible": "" }, nativeOn: { keydown: function(l) {
1070
- return !l.type.indexOf("key") && a._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : t.closeDateRangePicker.apply(null, arguments);
1075
+ return e("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [a.label ? e(t.FieldLabel, { attrs: { id: t.labelId, label: a.label, "tooltip-text": a.tooltipText, optional: a.optional, required: a.required } }) : a._e(), e("div", { on: { keydown: function(i) {
1076
+ return !i.type.indexOf("key") && a._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : t.onEnterPressedOverInput.apply(null, arguments);
1077
+ } } }, [e(t.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: t.datePickerContainerId, ariaExpanded: t.isDateRangePickerOpen, "aria-labelledby": t.dropdownInputAriaLabelledBy, "aria-describedby": t.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, "is-invalid": !!a.errorMessage || t.shouldDisplayError, open: t.isDateRangePickerOpen, "display-value": t.displayedDateValue, readonly: t.isReadOnly }, on: { open: t.openDateRangePicker, clear: t.clearDateRangePickerValue, close: t.closeDateRangePicker } })], 1), t.shouldDisplayError ? e(t.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: t.dateErrorId, "error-message": t.t("provideDateInAFormat") } }) : a._e(), a.errorMessage ? e(t.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: t.errorId, "error-message": a.errorMessage } }) : a._e(), a.description ? e(t.BentoTypography, { staticClass: "b-date-range-picker__description", class: t.descriptionConditionalClasses, attrs: { id: t.descriptionId, el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), t.inputContainerRef ? e(t.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: t.datePickerContainerId, open: t.isDateRangePickerOpen, "target-element": t.inputContainerRef, "aria-label": t.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "", "trap-all": "", "overflow-visible": "" }, nativeOn: { keydown: function(i) {
1078
+ return !i.type.indexOf("key") && a._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : t.closeDateRangePicker.apply(null, arguments);
1071
1079
  } } }, [e(t.DateRangePickerCalendar, { attrs: { "allow-time-input": t.withTimeInput, "quick-select-ranges": t.adjustedQuickSelectRanges, value: t.internalModelValue, "first-day-of-week": t.resolvedFirstDayOfWeek, granularities: a.granularities, "is-date-disabled": a.isDateDisabled, "max-range": a.maxRange, min: a.min, max: a.max, "number-of-months": t.computedNumberOfMonths, "show-end-date-on-open": a.showEndDateOnOpen, "date-form-data": t.displayedTextInputValue, variant: a.variant }, on: { "custom-range": t.onRangeSelectorInput, input: t.onDateRangePickerInput, error: t.onDateRangePickerError, "form-date": t.onDateRangePickerFormDateInputUpdate }, scopedSlots: a._u([a.hasActions ? { key: "actions", fn: function() {
1072
1080
  return [e(t.BentoDivider), e("div", { staticClass: "b-date-range-picker__footer" }, [e(t.BentoButtonActions, { attrs: { actions: t.rangePickerButtonActions, layout: t.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
1073
1081
  }, proxy: !0 } : null], null, !0) })], 1) : a._e()], 1);
1074
- }, ca = [], Da = /* @__PURE__ */ Ve(
1075
- da,
1076
- ua,
1077
- ca,
1082
+ }, fa = [], va = /* @__PURE__ */ Ve(
1083
+ Da,
1084
+ pa,
1085
+ fa,
1078
1086
  !1,
1079
1087
  null,
1080
1088
  "fbf1b83e"
1081
1089
  );
1082
- const Ga = Da.exports;
1090
+ const Ja = va.exports;
1083
1091
  export {
1084
- Ga as B,
1085
- sa as D,
1086
- Wt as a,
1092
+ Ja as B,
1093
+ ua as D,
1094
+ Kt as a,
1087
1095
  he as i
1088
1096
  };
1089
- //# sourceMappingURL=date-range-picker.LCWVAa5R.js.map
1097
+ //# sourceMappingURL=date-range-picker.D90k5b8p.js.map