@adyen/bento-vue2 1.41.0 → 1.43.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 (196) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +492 -54
  3. package/dist/action-bar.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/card.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/date-range-picker.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -0
  13. package/dist/assets/filter-bar.css +1 -1
  14. package/dist/assets/input-field-password.css +1 -0
  15. package/dist/assets/input-field.css +1 -1
  16. package/dist/assets/inspector.css +1 -1
  17. package/dist/assets/menu.css +1 -1
  18. package/dist/assets/modal-fullscreen.css +1 -1
  19. package/dist/assets/popover.css +1 -1
  20. package/dist/assets/sidepanel.css +1 -1
  21. package/dist/assets/step.css +1 -1
  22. package/dist/assets/tooltip.css +1 -1
  23. package/dist/assets/typography.css +1 -1
  24. package/dist/button.js +2 -2
  25. package/dist/card.js +1 -1
  26. package/dist/checkbox.js +2 -2
  27. package/dist/chunks/{action-bar.r05wfyni.js → action-bar.kPPYSgQK.js} +5 -5
  28. package/dist/chunks/{action-bar.r05wfyni.js.map → action-bar.kPPYSgQK.js.map} +1 -1
  29. package/dist/chunks/{alert.Y4JUnmhl.js → alert.D2Z_aiFC.js} +19 -19
  30. package/dist/chunks/{alert.Y4JUnmhl.js.map → alert.D2Z_aiFC.js.map} +1 -1
  31. package/dist/chunks/{base-modal.SJX9uGT4.js → base-modal.DroVbSCn.js} +2 -2
  32. package/dist/chunks/{base-modal.SJX9uGT4.js.map → base-modal.DroVbSCn.js.map} +1 -1
  33. package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js → button-actions-with-menu.dp6C-PKX.js} +4 -4
  34. package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js.map → button-actions-with-menu.dp6C-PKX.js.map} +1 -1
  35. package/dist/chunks/{button-actions.BJMK3kZC.js → button-actions.Cpx4PQp0.js} +2 -2
  36. package/dist/chunks/{button-actions.BJMK3kZC.js.map → button-actions.Cpx4PQp0.js.map} +1 -1
  37. package/dist/chunks/{card.Cfj-r6CX.js → card.BcjxzwZV.js} +2 -2
  38. package/dist/chunks/{card.Cfj-r6CX.js.map → card.BcjxzwZV.js.map} +1 -1
  39. package/dist/chunks/{checkbox-group.BEI5FPnW.js → checkbox-group.Bcqac3y8.js} +4 -4
  40. package/dist/chunks/{checkbox-group.BEI5FPnW.js.map → checkbox-group.Bcqac3y8.js.map} +1 -1
  41. package/dist/chunks/{checkbox.5uVM-HLg.js → checkbox.B1qjI4R_.js} +3 -3
  42. package/dist/chunks/{checkbox.5uVM-HLg.js.map → checkbox.B1qjI4R_.js.map} +1 -1
  43. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js → checkmark-circle-fill.Cn7JN_Tk.js} +5 -5
  44. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.Cn7JN_Tk.js.map} +1 -1
  45. package/dist/chunks/{code-snippet.DRH4X9pH.js → code-snippet.DuZDA7gH.js} +5 -5
  46. package/dist/chunks/{code-snippet.DRH4X9pH.js.map → code-snippet.DuZDA7gH.js.map} +1 -1
  47. package/dist/chunks/{controls-group.Sni8leS5.js → controls-group.J8shO_JL.js} +2 -2
  48. package/dist/chunks/{controls-group.Sni8leS5.js.map → controls-group.J8shO_JL.js.map} +1 -1
  49. package/dist/chunks/{copy.C5j6vSQT.js → copy.DgzxvExj.js} +2 -2
  50. package/dist/chunks/{copy.C5j6vSQT.js.map → copy.DgzxvExj.js.map} +1 -1
  51. package/dist/chunks/{dashboard-section.DchlD4B2.js → dashboard-section.CExqPbQb.js} +3 -3
  52. package/dist/chunks/{dashboard-section.DchlD4B2.js.map → dashboard-section.CExqPbQb.js.map} +1 -1
  53. package/dist/chunks/{dashed-underline.6Aw4MP34.js → dashed-underline.dGO33Q_E.js} +3 -3
  54. package/dist/chunks/{dashed-underline.6Aw4MP34.js.map → dashed-underline.dGO33Q_E.js.map} +1 -1
  55. package/dist/chunks/{data-grid-template.Bhotcrsr.js → data-grid-template.BF7JMfoJ.js} +2 -2
  56. package/dist/chunks/{data-grid-template.Bhotcrsr.js.map → data-grid-template.BF7JMfoJ.js.map} +1 -1
  57. package/dist/chunks/data-grid.BXB98JQr.js +2556 -0
  58. package/dist/chunks/data-grid.BXB98JQr.js.map +1 -0
  59. package/dist/chunks/{date-picker.lFLlAGXs.js → date-picker.Dfg1_eo6.js} +3 -3
  60. package/dist/chunks/{date-picker.lFLlAGXs.js.map → date-picker.Dfg1_eo6.js.map} +1 -1
  61. package/dist/chunks/{date-range-picker.Cr_YCwxP.js → date-range-picker.xYGf0SRg.js} +180 -177
  62. package/dist/chunks/date-range-picker.xYGf0SRg.js.map +1 -0
  63. package/dist/chunks/dot.BCX4w7eT.js +24 -0
  64. package/dist/chunks/dot.BCX4w7eT.js.map +1 -0
  65. package/dist/chunks/{dropdown-tag.BPkMWSmY.js → dropdown-tag.B4RMse5R.js} +3 -3
  66. package/dist/chunks/{dropdown-tag.BPkMWSmY.js.map → dropdown-tag.B4RMse5R.js.map} +1 -1
  67. package/dist/chunks/{dropdown.D8xKm1YA.js → dropdown.BfzsI2Th.js} +4 -4
  68. package/dist/chunks/{dropdown.D8xKm1YA.js.map → dropdown.BfzsI2Th.js.map} +1 -1
  69. package/dist/chunks/{error-message.Bk2maRF8.js → error-message.B7uoqQpq.js} +2 -2
  70. package/dist/chunks/{error-message.Bk2maRF8.js.map → error-message.B7uoqQpq.js.map} +1 -1
  71. package/dist/chunks/es6.b4enG1py.js.map +1 -1
  72. package/dist/chunks/file-uploader.CK-Frs_q.js +728 -0
  73. package/dist/chunks/file-uploader.CK-Frs_q.js.map +1 -0
  74. package/dist/chunks/{filter-bar.dQZY8j9C.js → filter-bar.hBPWastb.js} +702 -697
  75. package/dist/chunks/filter-bar.hBPWastb.js.map +1 -0
  76. package/dist/chunks/{footer-actions.B68XcD93.js → footer-actions.DwnLB4NW.js} +2 -2
  77. package/dist/chunks/{footer-actions.B68XcD93.js.map → footer-actions.DwnLB4NW.js.map} +1 -1
  78. package/dist/chunks/{form-layout-title.Cd2WlefD.js → form-layout-title.BarHgyjC.js} +2 -2
  79. package/dist/chunks/{form-layout-title.Cd2WlefD.js.map → form-layout-title.BarHgyjC.js.map} +1 -1
  80. package/dist/chunks/{header.DwTrDlSa.js → header.CAJtHW1k.js} +4 -4
  81. package/dist/chunks/{header.DwTrDlSa.js.map → header.CAJtHW1k.js.map} +1 -1
  82. package/dist/chunks/index.Gcw_BUVh.js +367 -0
  83. package/dist/chunks/index.Gcw_BUVh.js.map +1 -0
  84. package/dist/chunks/{info-icon.CCR-cAFR.js → info-icon.p-28zHUJ.js} +2 -2
  85. package/dist/chunks/{info-icon.CCR-cAFR.js.map → info-icon.p-28zHUJ.js.map} +1 -1
  86. package/dist/chunks/input-field-password.BmfOGkrH.js +191 -0
  87. package/dist/chunks/input-field-password.BmfOGkrH.js.map +1 -0
  88. package/dist/chunks/{input-field.CKOdyDVy.js → input-field.CHD3Fzzg.js} +37 -35
  89. package/dist/chunks/input-field.CHD3Fzzg.js.map +1 -0
  90. package/dist/chunks/{layout-row.CtFsZ5-v.js → layout-row.DzS_XyyF.js} +2 -2
  91. package/dist/chunks/{layout-row.CtFsZ5-v.js.map → layout-row.DzS_XyyF.js.map} +1 -1
  92. package/dist/chunks/{listbox-option-tag.CuHL51H9.js → listbox-option-tag.BnX0H4HE.js} +2 -2
  93. package/dist/chunks/{listbox-option-tag.CuHL51H9.js.map → listbox-option-tag.BnX0H4HE.js.map} +1 -1
  94. package/dist/chunks/{loading-button.2h9RXXIZ.js → loading-button.CiPmvU7F.js} +2 -2
  95. package/dist/chunks/{loading-button.2h9RXXIZ.js.map → loading-button.CiPmvU7F.js.map} +1 -1
  96. package/dist/chunks/{menu.DEeyofbM.js → menu.N41WnXc8.js} +2 -2
  97. package/dist/chunks/{menu.DEeyofbM.js.map → menu.N41WnXc8.js.map} +1 -1
  98. package/dist/chunks/{modal-fullscreen.Ct4aitSv.js → modal-fullscreen.BbNe6M9T.js} +2 -2
  99. package/dist/chunks/{modal-fullscreen.Ct4aitSv.js.map → modal-fullscreen.BbNe6M9T.js.map} +1 -1
  100. package/dist/chunks/{modal.tUtoM34X.js → modal.Cb4zg5fN.js} +4 -4
  101. package/dist/chunks/{modal.tUtoM34X.js.map → modal.Cb4zg5fN.js.map} +1 -1
  102. package/dist/chunks/{pagination.CqrSR1Md.js → pagination.DORr-ox0.js} +2 -2
  103. package/dist/chunks/{pagination.CqrSR1Md.js.map → pagination.DORr-ox0.js.map} +1 -1
  104. package/dist/chunks/{popover.BcWFpCY_.js → popover.Uy-vuQq5.js} +2 -2
  105. package/dist/chunks/{popover.BcWFpCY_.js.map → popover.Uy-vuQq5.js.map} +1 -1
  106. package/dist/chunks/{promo-banner.NSOVGA7M.js → promo-banner.cTUF9seG.js} +2 -2
  107. package/dist/chunks/{promo-banner.NSOVGA7M.js.map → promo-banner.cTUF9seG.js.map} +1 -1
  108. package/dist/chunks/{radio-group.DtlPzh_w.js → radio-group.EnMXbuly.js} +4 -4
  109. package/dist/chunks/{radio-group.DtlPzh_w.js.map → radio-group.EnMXbuly.js.map} +1 -1
  110. package/dist/chunks/{search-bar.CN9pWrLP.js → search-bar.BtFX4039.js} +3 -3
  111. package/dist/chunks/{search-bar.CN9pWrLP.js.map → search-bar.BtFX4039.js.map} +1 -1
  112. package/dist/chunks/{secondary-nav.DMw1l7rH.js → secondary-nav.DtnWRhFW.js} +3 -3
  113. package/dist/chunks/{secondary-nav.DMw1l7rH.js.map → secondary-nav.DtnWRhFW.js.map} +1 -1
  114. package/dist/chunks/{segmented-control.uVH5ahVY.js → segmented-control.CVeUROYR.js} +2 -2
  115. package/dist/chunks/{segmented-control.uVH5ahVY.js.map → segmented-control.CVeUROYR.js.map} +1 -1
  116. package/dist/chunks/{selection-card-group.BjOuUbQD.js → selection-card-group.B6XXbJsv.js} +4 -4
  117. package/dist/chunks/{selection-card-group.BjOuUbQD.js.map → selection-card-group.B6XXbJsv.js.map} +1 -1
  118. package/dist/chunks/show.IEAxtCB7.js +43 -0
  119. package/dist/chunks/show.IEAxtCB7.js.map +1 -0
  120. package/dist/chunks/{sidepanel.BjrsqXLl.js → sidepanel.CRJN9Acz.js} +2 -2
  121. package/dist/chunks/{sidepanel.BjrsqXLl.js.map → sidepanel.CRJN9Acz.js.map} +1 -1
  122. package/dist/chunks/step.5g9BIi15.js +217 -0
  123. package/dist/chunks/step.5g9BIi15.js.map +1 -0
  124. package/dist/chunks/{structured-list-item.CAcBJutf.js → structured-list-item.BEhWyaVP.js} +4 -4
  125. package/dist/chunks/{structured-list-item.CAcBJutf.js.map → structured-list-item.BEhWyaVP.js.map} +1 -1
  126. package/dist/chunks/{summary-grid-item-custom.CPprUptt.js → summary-grid-item-custom.CSXo4NjY.js} +4 -4
  127. package/dist/chunks/{summary-grid-item-custom.CPprUptt.js.map → summary-grid-item-custom.CSXo4NjY.js.map} +1 -1
  128. package/dist/chunks/{tag.DSFSfnAf.js → tag.wTXg-O7i.js} +2 -2
  129. package/dist/chunks/{tag.DSFSfnAf.js.map → tag.wTXg-O7i.js.map} +1 -1
  130. package/dist/chunks/{textarea.B4MZ_pi1.js → textarea.Y3yd_3ll.js} +2 -2
  131. package/dist/chunks/{textarea.B4MZ_pi1.js.map → textarea.Y3yd_3ll.js.map} +1 -1
  132. package/dist/chunks/{timeline-item.CxB3KFiu.js → timeline-item.CCV4U3Zx.js} +5 -5
  133. package/dist/chunks/{timeline-item.CxB3KFiu.js.map → timeline-item.CCV4U3Zx.js.map} +1 -1
  134. package/dist/chunks/{tooltip.CS2Gij6x.js → tooltip.DH8TqpYV.js} +84 -68
  135. package/dist/chunks/tooltip.DH8TqpYV.js.map +1 -0
  136. package/dist/chunks/{tutorial.CGjM0EJT.js → tutorial.4r7MKNEU.js} +4 -4
  137. package/dist/chunks/{tutorial.CGjM0EJT.js.map → tutorial.4r7MKNEU.js.map} +1 -1
  138. package/dist/chunks/{use-cached-selected-values.D5ARl96f.js → use-cached-selected-values.CAlfyb_L.js} +8 -5
  139. package/dist/chunks/{use-cached-selected-values.D5ARl96f.js.map → use-cached-selected-values.CAlfyb_L.js.map} +1 -1
  140. package/dist/code-snippet.js +1 -1
  141. package/dist/dashboard-template.js +1 -1
  142. package/dist/dashed-underline.js +1 -1
  143. package/dist/data-grid-template.js +1 -1
  144. package/dist/data-grid.js +1 -1
  145. package/dist/date-picker.js +1 -1
  146. package/dist/date-range-picker.js +1 -1
  147. package/dist/dropdown.js +3 -3
  148. package/dist/file-uploader.js +5 -0
  149. package/dist/file-uploader.js.map +1 -0
  150. package/dist/filter-bar.js +1 -1
  151. package/dist/form-layout.js +1 -1
  152. package/dist/header.js +1 -1
  153. package/dist/index.js +227 -218
  154. package/dist/index.js.map +1 -1
  155. package/dist/info-icon.js +1 -1
  156. package/dist/input-field-password.js +10 -0
  157. package/dist/input-field-password.js.map +1 -0
  158. package/dist/input-field.js +1 -1
  159. package/dist/internal.js +6 -6
  160. package/dist/layout.js +1 -1
  161. package/dist/menu.js +1 -1
  162. package/dist/modal-fullscreen.js +1 -1
  163. package/dist/modal.js +2 -2
  164. package/dist/pagination.js +1 -1
  165. package/dist/popover.js +1 -1
  166. package/dist/promo-banner.js +1 -1
  167. package/dist/radio-group.js +1 -1
  168. package/dist/search-bar.js +2 -2
  169. package/dist/secondary-nav.js +1 -1
  170. package/dist/segmented-control.js +1 -1
  171. package/dist/selection-card.js +1 -1
  172. package/dist/sidepanel.js +1 -1
  173. package/dist/stepper.js +1 -1
  174. package/dist/structured-list.js +1 -1
  175. package/dist/styles/bento-dark.css +98 -34
  176. package/dist/styles/bento-light.css +98 -34
  177. package/dist/styles/bento.css +98 -34
  178. package/dist/styles/legacy.css +106 -42
  179. package/dist/styles/styleguide.css +98 -34
  180. package/dist/summary-grid.js +1 -1
  181. package/dist/tag.js +1 -1
  182. package/dist/textarea.js +1 -1
  183. package/dist/timeline.js +1 -1
  184. package/dist/tutorial.js +1 -1
  185. package/dist/web-types.json +701 -81
  186. package/package.json +10 -8
  187. package/dist/chunks/data-grid.ahAWR42s.js +0 -2408
  188. package/dist/chunks/data-grid.ahAWR42s.js.map +0 -1
  189. package/dist/chunks/date-range-picker.Cr_YCwxP.js.map +0 -1
  190. package/dist/chunks/filter-bar.dQZY8j9C.js.map +0 -1
  191. package/dist/chunks/index.D5am6ibQ.js +0 -249
  192. package/dist/chunks/index.D5am6ibQ.js.map +0 -1
  193. package/dist/chunks/input-field.CKOdyDVy.js.map +0 -1
  194. package/dist/chunks/step.D3-7YL7-.js +0 -234
  195. package/dist/chunks/step.D3-7YL7-.js.map +0 -1
  196. package/dist/chunks/tooltip.CS2Gij6x.js.map +0 -1
@@ -1,36 +1,36 @@
1
- import { reactive as ae, defineComponent as Oe, computed as _, ref as S, onMounted as Me, toRaw as se, toRef as re, watch as pe } from "vue";
1
+ import { reactive as ae, defineComponent as Oe, computed as T, ref as E, onMounted as Me, toRaw as se, toRef as re, watch as pe } from "vue";
2
2
  import { B as Ge } from "./divider.BZfeYmB9.js";
3
- import { B as We } from "./popover.BcWFpCY_.js";
4
- import { B as we, d as He } from "./typography.Bu_WAKdf.js";
5
- import { D as qe } from "./dropdown-default-textbox.DPZmj7xJ.js";
6
- import { r as j, t as q, g as oe } from "./get-date-locale.BN8xEjY0.js";
3
+ import { B as We } from "./popover.Uy-vuQq5.js";
4
+ import { B as we, d as qe } from "./typography.Bu_WAKdf.js";
5
+ import { D as He } from "./dropdown-default-textbox.DPZmj7xJ.js";
6
+ import { r as j, t as H, g as oe } from "./get-date-locale.BN8xEjY0.js";
7
7
  import { g as z } from "./generate-uid.D-HFI38h.js";
8
8
  import { u as le } from "./i18n.BQkEbtPM.js";
9
9
  import { t as ie, f as Q } from "./date.BQ29-2L1.js";
10
10
  import { f as ve, v as je, D as b } from "./date-input.BqBdAO1E.js";
11
11
  import { u as Ke } from "./use-form-layout-loading.D3lALhtC.js";
12
12
  import "./index.Cl4_42j5.js";
13
- import { B as ze } from "./input-field.CKOdyDVy.js";
14
- import { B as Je } from "./dropdown.D8xKm1YA.js";
15
- import { B as Qe } from "./segmented-control.uVH5ahVY.js";
13
+ import { B as ze } from "./input-field.CHD3Fzzg.js";
14
+ import { B as Je } from "./dropdown.BfzsI2Th.js";
15
+ import { B as Qe } from "./segmented-control.CVeUROYR.js";
16
16
  import { d as ee } from "./debounce.DUTu11PS.js";
17
17
  import { u as Xe } from "./use-has-slot.C9lQZ6nz.js";
18
- import { s as J, c as ge, i as H, d as Ze, e as ye, f as et, g as _e, h as tt, j as at, a as L, u as nt } from "./calendar.B9WZ8ub3.js";
19
- import { e as F } from "./index.DPafeRJa.js";
20
- import { e as Te } from "./index.CrhTVr5J.js";
18
+ import { s as J, c as ge, i as q, d as Ze, e as ye, f as et, g as Te, h as tt, j as at, a as L, u as nt } from "./calendar.B9WZ8ub3.js";
19
+ import { e as U } from "./index.DPafeRJa.js";
20
+ import { e as _e } from "./index.CrhTVr5J.js";
21
21
  import { n as Ce } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
22
- import { B as rt, c as st } from "./button-actions.BJMK3kZC.js";
23
- import { E as ot, F as lt } from "./error-message.Bk2maRF8.js";
22
+ import { B as rt, c as st } from "./button-actions.Cpx4PQp0.js";
23
+ import { E as ot, F as lt } from "./error-message.B7uoqQpq.js";
24
24
  import { B as it } from "./directive.O3yEdalv.js";
25
25
  import "../assets/date-range-picker.css";
26
26
  function Re(t, e) {
27
27
  j(2, arguments);
28
- var n = q(t), i = q(e);
28
+ var n = H(t), i = H(e);
29
29
  return n.getTime() === i.getTime();
30
30
  }
31
31
  function be(t) {
32
32
  j(1, arguments);
33
- var e = q(t);
33
+ var e = H(t);
34
34
  return e.setMilliseconds(0), e;
35
35
  }
36
36
  function Ie(t, e) {
@@ -38,53 +38,53 @@ function Ie(t, e) {
38
38
  var n = be(t), i = be(e);
39
39
  return n.getTime() === i.getTime();
40
40
  }
41
- function ut(t, e) {
41
+ function dt(t, e) {
42
42
  j(2, arguments);
43
- var n = q(t), i = ie(e);
43
+ var n = H(t), i = ie(e);
44
44
  return n.setHours(i), n;
45
45
  }
46
- function dt(t, e) {
46
+ function ut(t, e) {
47
47
  j(2, arguments);
48
- var n = q(t), i = ie(e);
48
+ var n = H(t), i = ie(e);
49
49
  return n.setMinutes(i), n;
50
50
  }
51
51
  function ct(t, e) {
52
52
  j(2, arguments);
53
- var n = q(t), i = ie(e);
53
+ var n = H(t), i = ie(e);
54
54
  return n.setSeconds(i), n;
55
55
  }
56
56
  const Dt = ({
57
57
  firstDayOfWeek: t,
58
58
  min: e,
59
59
  max: n
60
- }) => ({ getGranularCalendarLimits: (u) => {
61
- let f = J(e), r = F(n);
62
- if ((u == null ? void 0 : u.type) === "weekly") {
63
- if (u.earliest)
64
- f = J(u.earliest);
60
+ }) => ({ getGranularCalendarLimits: (d) => {
61
+ let f = J(e), r = U(n);
62
+ if ((d == null ? void 0 : d.type) === "weekly") {
63
+ if (d.earliest)
64
+ f = J(d.earliest);
65
65
  else {
66
- const d = ge(f, { weekStartsOn: t });
67
- H(f, d) || (f = J(Ze(ye(f, { weekStartsOn: t }), 1)));
66
+ const u = ge(f, { weekStartsOn: t });
67
+ q(f, u) || (f = J(Ze(ye(f, { weekStartsOn: t }), 1)));
68
68
  }
69
- if (u.latest)
70
- r = F(u.latest);
69
+ if (d.latest)
70
+ r = U(d.latest);
71
71
  else {
72
- const d = ye(r, { weekStartsOn: t });
73
- H(r, d) || (r = F(et(ge(r, { weekStartsOn: t }), 1)));
72
+ const u = ye(r, { weekStartsOn: t });
73
+ q(r, u) || (r = U(et(ge(r, { weekStartsOn: t }), 1)));
74
74
  }
75
75
  }
76
- if ((u == null ? void 0 : u.type) === "monthly") {
77
- if (u.earliest)
78
- f = J(u.earliest);
76
+ if ((d == null ? void 0 : d.type) === "monthly") {
77
+ if (d.earliest)
78
+ f = J(d.earliest);
79
79
  else {
80
- const d = _e(f);
81
- H(f, d) || (f = _e(tt(f, 1)));
80
+ const u = Te(f);
81
+ q(f, u) || (f = Te(tt(f, 1)));
82
82
  }
83
- if (u.latest)
84
- r = F(u.latest);
83
+ if (d.latest)
84
+ r = U(d.latest);
85
85
  else {
86
- const d = Te(r);
87
- H(r, d) || (r = Te(at(r, 1)));
86
+ const u = _e(r);
87
+ q(r, u) || (r = _e(at(r, 1)));
88
88
  }
89
89
  }
90
90
  return { min: f, max: r };
@@ -96,8 +96,8 @@ const Dt = ({
96
96
  });
97
97
  return {
98
98
  savedRanges: t,
99
- saveRange: (i, u) => {
100
- t[i] = u;
99
+ saveRange: (i, d) => {
100
+ t[i] = d;
101
101
  },
102
102
  resetSavedRanges: () => {
103
103
  t.daily = null, t.weekly = null, t.monthly = null;
@@ -146,7 +146,7 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
146
146
  monthly: "毎月",
147
147
  weekly: "毎週"
148
148
  }
149
- }, Se = 300, Ee = "customRange", he = "daily", _t = Oe({
149
+ }, Se = 300, Ee = "customRange", he = "daily", Tt = Oe({
150
150
  i18n: { messages: yt },
151
151
  name: "date-range-picker-calendar",
152
152
  components: {
@@ -229,90 +229,93 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
229
229
  ],
230
230
  setup(t, { emit: e, slots: n }) {
231
231
  var De, me, fe;
232
- const { locale: i, t: u } = le(), f = oe(), r = ae({
232
+ const { locale: i, t: d } = le(), f = oe(), r = ae({
233
233
  startDate: (De = t.value) == null ? void 0 : De.startDate,
234
234
  endDate: (me = t.value) == null ? void 0 : me.endDate,
235
235
  ...t.granularities ? {
236
236
  granularity: ((fe = t.value) == null ? void 0 : fe.granularity) || he
237
237
  } : {}
238
- }), d = _(
238
+ }), u = T(
239
239
  () => {
240
240
  var a, s;
241
- return ((s = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ data: l }) => t.allowTimeInput ? Ie(l.startDate, r.startDate) && Ie(l.endDate, r.endDate) : H(l.startDate, r.startDate) && H(l.endDate, r.endDate))) == null ? void 0 : s.value) ?? Ee;
241
+ return ((s = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ data: l }) => t.allowTimeInput ? Ie(l.startDate, r.startDate) && Ie(l.endDate, r.endDate) : q(l.startDate, r.startDate) && q(l.endDate, r.endDate))) == null ? void 0 : s.value) ?? Ee;
242
242
  }
243
- ), h = _(() => ({
243
+ ), O = T(() => ({
244
244
  "b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
245
- })), K = _(() => [
246
- { label: u("customRange"), value: Ee },
247
- ...t.quickSelectRanges
248
- ]), U = _(
245
+ })), K = T(() => [
246
+ { label: d("customRange"), value: Ee },
247
+ ...t.quickSelectRanges ? t.quickSelectRanges : []
248
+ ]), P = T(
249
249
  () => {
250
250
  var a;
251
251
  return ((a = t.granularities) == null ? void 0 : a.find(({ type: s }) => s === r.granularity)) || null;
252
252
  }
253
- ), g = _(
254
- () => t.granularities.map(({ type: a, disabled: s }) => ({
255
- label: u(a),
256
- value: a,
257
- disabled: s
258
- }))
259
- ), { getGranularCalendarLimits: V } = Dt(t), m = _(
260
- () => t.granularities ? V(U.value) : { min: J(t.min), max: F(t.max) }
253
+ ), g = T(
254
+ () => {
255
+ var a;
256
+ return ((a = t.granularities) == null ? void 0 : a.map(({ type: s, disabled: l }) => ({
257
+ label: d(s),
258
+ value: s,
259
+ disabled: l
260
+ }))) ?? [];
261
+ }
262
+ ), { getGranularCalendarLimits: V } = Dt(t), m = T(
263
+ () => t.granularities ? V(P.value) : { min: J(t.min), max: U(t.max) }
261
264
  ), {
262
265
  adjustDateForMonthly: Y,
263
266
  adjustDateForWeekly: I,
264
- adjustStartDateInputForWeekly: P,
265
- adjustEndDateInputForWeekly: O,
267
+ adjustStartDateInputForWeekly: B,
268
+ adjustEndDateInputForWeekly: M,
266
269
  adjustStartDateInputForMonthly: v,
267
- adjustEndDateInputForMonthly: E
268
- } = nt(t.firstDayOfWeek), { savedRanges: y, saveRange: C, resetSavedRanges: X } = mt(), T = (a) => a ? Q(a, b.NUMERIC_DATE_YEAR_FIRST, {
270
+ adjustEndDateInputForMonthly: h
271
+ } = nt(t.firstDayOfWeek), { savedRanges: y, saveRange: A, resetSavedRanges: X } = mt(), _ = (a) => a ? Q(a, b.NUMERIC_DATE_YEAR_FIRST, {
269
272
  locale: f[i.value.substring(0, 2)] || f.enUS
270
- }) : "", B = (a) => a ? Q(a, b.HOUR_MINUTE_SECONDS, {
273
+ }) : "", N = (a) => a ? Q(a, b.HOUR_MINUTE_SECONDS, {
271
274
  locale: f[i.value.substring(0, 2)] || f.enUS
272
- }) : "", R = S(!1), k = S(!1), A = S(!1), x = S(!1), o = ae({
275
+ }) : "", R = E(!1), k = E(!1), x = E(!1), F = E(!1), o = ae({
273
276
  startDate: t.dateFormData.startDate,
274
277
  endDate: t.dateFormData.endDate,
275
278
  startTime: t.dateFormData.startTime,
276
279
  endTime: t.dateFormData.endTime
277
- }), Z = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), N = (a, s) => {
280
+ }), Z = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), S = (a, s) => {
278
281
  if (!s || !Z(s))
279
282
  return a;
280
283
  let l = new Date(a);
281
284
  const [D, Ye, $e] = s.split(":");
282
- return l = ut(l, parseInt(D, 10)), l = dt(l, parseInt(Ye, 10)), l = ct(l, parseInt($e, 10)), l;
283
- }, ue = (a) => {
284
- r.startDate = N(a.startDate, o.startTime), r.endDate = N(a.endDate, o.endTime), t.granularities && X(), e(p.INPUT, {
285
+ return l = dt(l, parseInt(D, 10)), l = ut(l, parseInt(Ye, 10)), l = ct(l, parseInt($e, 10)), l;
286
+ }, de = (a) => {
287
+ r.startDate = S(a.startDate, o.startTime), r.endDate = S(a.endDate, o.endTime), t.granularities && X(), e(p.INPUT, {
285
288
  ...r,
286
- range: d.value
289
+ range: u.value
287
290
  });
288
291
  }, $ = (a) => {
289
292
  const s = (D) => t.min && D <= t.min || t.max && D >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(D) : !0;
290
293
  return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && s(new Date(a));
291
294
  };
292
295
  Me(() => {
293
- t.dateFormData.startDate && !$(t.dateFormData.startDate) ? R.value = !0 : (R.value = !1, A.value = !1), t.dateFormData.endDate && !$(t.dateFormData.endDate) ? k.value = !0 : (k.value = !1, x.value = !1);
296
+ t.dateFormData.startDate && !$(t.dateFormData.startDate) ? R.value = !0 : (R.value = !1, x.value = !1), t.dateFormData.endDate && !$(t.dateFormData.endDate) ? k.value = !0 : (k.value = !1, F.value = !1);
294
297
  });
295
- const de = (a) => {
298
+ const ue = (a) => {
296
299
  var s;
297
- o.startDate = T(a), o.startTime ? A.value && (o.startTime = (s = t.dateFormData) == null ? void 0 : s.startTime) : o.startTime = B(a), R.value = !1, A.value = !1, e(p.START_DATE_SELECTED, a);
300
+ o.startDate = _(a), o.startTime ? x.value && (o.startTime = (s = t.dateFormData) == null ? void 0 : s.startTime) : o.startTime = N(a), R.value = !1, x.value = !1, e(p.START_DATE_SELECTED, a);
298
301
  }, ce = (a) => {
299
302
  var s;
300
- o.endDate = T(a), o.endTime ? x.value && (o.endTime = (s = t.dateFormData) == null ? void 0 : s.endTime) : o.endTime = B(F(a)), k.value = !1, x.value = !1;
303
+ o.endDate = _(a), o.endTime ? F.value && (o.endTime = (s = t.dateFormData) == null ? void 0 : s.endTime) : o.endTime = N(U(a)), k.value = !1, F.value = !1;
301
304
  }, c = (a) => {
302
305
  const s = t.value[a];
303
306
  if (s)
304
307
  return s;
305
308
  if (t.dateFormData[a] && $(t.dateFormData[a]))
306
309
  return new Date(t.dateFormData[a]);
307
- }, M = ee((a) => {
310
+ }, w = ee((a) => {
308
311
  var s;
309
312
  if ($(a)) {
310
313
  let l = a;
311
- switch (R.value = !1, (s = U.value) == null ? void 0 : s.type) {
314
+ switch (R.value = !1, (s = P.value) == null ? void 0 : s.type) {
312
315
  case "weekly":
313
- l = P(
316
+ l = B(
314
317
  a,
315
- T,
318
+ _,
316
319
  m.value.min,
317
320
  m.value.max
318
321
  ), o.startDate = l;
@@ -320,13 +323,13 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
320
323
  case "monthly":
321
324
  l = v(
322
325
  a,
323
- T,
326
+ _,
324
327
  m.value.min,
325
328
  m.value.max
326
329
  ), o.startDate = l;
327
330
  break;
328
331
  }
329
- r.startDate = N(new Date(l), o.startTime);
332
+ r.startDate = S(new Date(l), o.startTime);
330
333
  const D = c("endDate");
331
334
  e(p.FORM_DATE, {
332
335
  startDate: new Date(l),
@@ -334,35 +337,35 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
334
337
  }), e(p.INPUT, {
335
338
  startDate: new Date(l),
336
339
  endDate: D,
337
- range: d.value
340
+ range: u.value
338
341
  });
339
342
  } else
340
343
  R.value = !0, e(p.ERROR, { ...o });
341
344
  }, Se), G = (a) => {
342
- o.startDate = ve(a), M(o.startDate);
345
+ o.startDate = ve(a), w(o.startDate);
343
346
  }, ne = ee((a) => {
344
347
  var s;
345
348
  if ($(a)) {
346
349
  let l = a;
347
- switch (k.value = !1, (s = U.value) == null ? void 0 : s.type) {
350
+ switch (k.value = !1, (s = P.value) == null ? void 0 : s.type) {
348
351
  case "weekly":
349
- l = O(
352
+ l = M(
350
353
  a,
351
- T,
354
+ _,
352
355
  m.value.min,
353
356
  m.value.max
354
357
  ), o.endDate = l;
355
358
  break;
356
359
  case "monthly":
357
- l = E(
360
+ l = h(
358
361
  a,
359
- T,
362
+ _,
360
363
  m.value.min,
361
364
  m.value.max
362
365
  ), o.endDate = l;
363
366
  break;
364
367
  }
365
- r.endDate = N(new Date(l), o.endTime);
368
+ r.endDate = S(new Date(l), o.endTime);
366
369
  const D = c("startDate");
367
370
  e(p.FORM_DATE, {
368
371
  startDate: D,
@@ -370,7 +373,7 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
370
373
  }), e(p.INPUT, {
371
374
  startDate: D,
372
375
  endDate: new Date(a),
373
- range: d.value
376
+ range: u.value
374
377
  });
375
378
  } else
376
379
  k.value = !0, e(p.ERROR, { ...o });
@@ -380,36 +383,36 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
380
383
  je(a);
381
384
  }, Fe = ee((a) => {
382
385
  if (Z(a)) {
383
- A.value = !1, r.startDate = N(r.startDate, a);
386
+ x.value = !1, r.startDate = S(r.startDate, a);
384
387
  const s = c("endDate");
385
388
  e(p.FORM_DATE, {
386
389
  startDate: new Date(r.startDate),
387
- endDate: s,
390
+ endDate: S(new Date(s), t.dateFormData.endTime),
388
391
  startTime: a,
389
392
  endTime: t.dateFormData.endTime
390
393
  }), e(p.INPUT, {
391
394
  startDate: new Date(r.startDate),
392
- endDate: s,
393
- range: d.value
395
+ endDate: S(new Date(s), t.dateFormData.endTime),
396
+ range: u.value
394
397
  });
395
398
  } else
396
- A.value = !0, e(p.ERROR, { ...o });
399
+ x.value = !0, e(p.ERROR, { ...o });
397
400
  }), Ue = ee((a) => {
398
401
  if (Z(a)) {
399
- x.value = !1, r.endDate = N(r.endDate, a);
402
+ F.value = !1, r.endDate = S(r.endDate, a);
400
403
  const s = c("startDate");
401
404
  e(p.FORM_DATE, {
402
- startDate: s,
405
+ startDate: S(new Date(s), t.dateFormData.startTime),
403
406
  endDate: new Date(r.endDate),
404
407
  startTime: t.dateFormData.startTime,
405
408
  endTime: a
406
409
  }), e(p.INPUT, {
407
- startDate: s,
410
+ startDate: S(new Date(s), t.dateFormData.startTime),
408
411
  endDate: new Date(r.endDate),
409
- range: d.value
412
+ range: u.value
410
413
  });
411
414
  } else
412
- x.value = !0, e(p.ERROR, { ...o });
415
+ F.value = !0, e(p.ERROR, { ...o });
413
416
  }), Pe = (a) => {
414
417
  o.startTime = ke(a), Fe(o.startTime);
415
418
  }, Be = (a) => {
@@ -424,11 +427,11 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
424
427
  if (s) {
425
428
  X();
426
429
  const D = s.data;
427
- o.startDate = T(D.startDate), o.endDate = T(D.endDate), W(D.startDate, D.endDate), t.granularities && (r.granularity = D.granularity || he), o.startTime || (o.startTime = B(F(D.startDate))), o.endTime || (o.endTime = B(F(D.endDate))), e(p.CUSTOM_RANGE, { ...s.data, range: s.value });
430
+ o.startDate = _(D.startDate), o.endDate = _(D.endDate), W(D.startDate, D.endDate), t.granularities && (r.granularity = D.granularity || he), o.startTime || (o.startTime = N(U(D.startDate))), o.endTime || (o.endTime = N(U(D.endDate))), e(p.CUSTOM_RANGE, { ...s.data, range: s.value });
428
431
  }
429
432
  }, Ve = (a) => {
430
433
  const s = r.granularity;
431
- if (r.granularity = a, s && C(s, structuredClone(se(r))), r.startDate && r.endDate) {
434
+ if (r.granularity = a, s && A(s, structuredClone(se(r))), r.startDate && r.endDate) {
432
435
  switch (a) {
433
436
  case "monthly": {
434
437
  if (y.monthly) {
@@ -462,9 +465,9 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
462
465
  y.daily && W(y.daily.startDate, y.daily.endDate, a);
463
466
  break;
464
467
  }
465
- o.startDate = T(r.startDate), o.endDate = T(r.endDate), e(p.INPUT, {
468
+ o.startDate = _(r.startDate), o.endDate = _(r.endDate), e(p.INPUT, {
466
469
  ...r,
467
- range: d.value
470
+ range: u.value
468
471
  });
469
472
  }
470
473
  };
@@ -473,20 +476,20 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
473
476
  internalRangeDate: r,
474
477
  dateTextInput: o,
475
478
  endDateError: k,
476
- endTimeError: x,
479
+ endTimeError: F,
477
480
  granularityItems: g,
478
- selectedGranularity: U,
481
+ selectedGranularity: P,
479
482
  computedMinMax: m,
480
- selectedRangeSelectorValue: d,
483
+ selectedRangeSelectorValue: u,
481
484
  startDateError: R,
482
- startTimeError: A,
485
+ startTimeError: x,
483
486
  quickSelectRangeDefaultItems: K,
484
- formInputWrapperConditionalClasses: h,
487
+ formInputWrapperConditionalClasses: O,
485
488
  // Methods
486
489
  hasSlot: Xe(n),
487
- t: u,
490
+ t: d,
488
491
  // Events
489
- onDateInput: ue,
492
+ onDateInput: de,
490
493
  onDateInputKeyDown: xe,
491
494
  onEndDateInput: Ae,
492
495
  onEndDateSelected: ce,
@@ -494,13 +497,13 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
494
497
  onGranularityInput: Ve,
495
498
  onRangeSelectorInput: Le,
496
499
  onStartDateInput: G,
497
- onStartDateSelected: de,
500
+ onStartDateSelected: ue,
498
501
  onStartTimeInput: Pe,
499
502
  onTimeInputKeyDown: Ne
500
503
  };
501
504
  }
502
505
  });
503
- var Tt = function() {
506
+ var _t = function() {
504
507
  var e = this, n = e._self._c;
505
508
  return e._self._setupProxy, n("div", { staticClass: "b-date-range-picker-calendar" }, [n("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [n("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.hasSlot("title") ? [e._t("title")] : e._e(), e.quickSelectRanges ? n("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.granularities ? n("bento-segmented-control", { attrs: { items: e.granularityItems, "model-value": e.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": e.onGranularityInput } }) : e._e(), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateFrom"), value: e.dateTextInput.startDate, error: e.startDateError }, on: { input: e.onStartDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
506
509
  return [e._v("YYYY-MM-DD")];
@@ -512,52 +515,52 @@ var Tt = function() {
512
515
  return [e._v("HH:MM:SS")];
513
516
  }, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.value, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.computedMinMax.min, max: e.computedMinMax.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, granularity: e.selectedGranularity, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
514
517
  }, Rt = [], bt = /* @__PURE__ */ Ce(
515
- _t,
516
518
  Tt,
519
+ _t,
517
520
  Rt,
518
521
  !1,
519
522
  null,
520
- "e87beb7f"
523
+ "da20fbc5"
521
524
  );
522
- const w = bt.exports, It = ({
525
+ const C = bt.exports, It = ({
523
526
  datePickerValue: t,
524
527
  isDateIncorrect: e,
525
528
  quickSelectRanges: n
526
529
  }) => {
527
530
  var g, V, m, Y;
528
- const { locale: i, t: u } = le(), f = oe(), r = (I) => !!I && !isNaN(I.getTime()), d = (I, P) => r(I) ? Q(I, P, {
531
+ const { locale: i, t: d } = le(), f = oe(), r = (I) => !!I && !isNaN(I.getTime()), u = (I, B) => r(I) ? Q(I, B, {
529
532
  locale: f[i.value.substring(0, 2)] || f.enUS
530
- }) : void 0, h = ae({
531
- startDate: d((g = t.value) == null ? void 0 : g.startDate, b.NUMERIC_DATE_YEAR_FIRST),
532
- endDate: d((V = t.value) == null ? void 0 : V.endDate, b.NUMERIC_DATE_YEAR_FIRST),
533
- startTime: d((m = t.value) == null ? void 0 : m.startDate, b.HOUR_MINUTE_SECONDS),
534
- endTime: d((Y = t.value) == null ? void 0 : Y.endDate, b.HOUR_MINUTE_SECONDS)
533
+ }) : void 0, O = ae({
534
+ startDate: u((g = t.value) == null ? void 0 : g.startDate, b.NUMERIC_DATE_YEAR_FIRST),
535
+ endDate: u((V = t.value) == null ? void 0 : V.endDate, b.NUMERIC_DATE_YEAR_FIRST),
536
+ startTime: u((m = t.value) == null ? void 0 : m.startDate, b.HOUR_MINUTE_SECONDS),
537
+ endTime: u((Y = t.value) == null ? void 0 : Y.endDate, b.HOUR_MINUTE_SECONDS)
535
538
  });
536
539
  return {
537
540
  // Values
538
- dateDisplayValue: _(() => {
539
- var O;
541
+ dateDisplayValue: T(() => {
542
+ var M;
540
543
  if (e.value)
541
- return `${h.startDate || ""} - ${h.endDate || ""}`;
544
+ return `${O.startDate || ""} - ${O.endDate || ""}`;
542
545
  if (!t.value || !t.value.startDate && !t.value.endDate)
543
- return u("selectDateRange");
544
- if ((O = n.value) != null && O.length) {
546
+ return d("selectDateRange");
547
+ if ((M = n.value) != null && M.length) {
545
548
  const v = n.value.find(
546
- ({ data: E }) => {
547
- var y, C;
548
- return Re(E == null ? void 0 : E.startDate, (y = t.value) == null ? void 0 : y.startDate) && Re(E == null ? void 0 : E.endDate, (C = t.value) == null ? void 0 : C.endDate);
549
+ ({ data: h }) => {
550
+ var y, A;
551
+ return Re(h == null ? void 0 : h.startDate, (y = t.value) == null ? void 0 : y.startDate) && Re(h == null ? void 0 : h.endDate, (A = t.value) == null ? void 0 : A.endDate);
549
552
  }
550
553
  );
551
554
  if (v)
552
555
  return v.label;
553
556
  }
554
- const { startDate: I, endDate: P } = h;
555
- return `${d(new Date(I), b.FULL_DATE_MONTH_FIRST)} - ${d(
556
- new Date(P),
557
+ const { startDate: I, endDate: B } = O;
558
+ return `${u(new Date(I), b.FULL_DATE_MONTH_FIRST)} - ${u(
559
+ new Date(B),
557
560
  b.FULL_DATE_MONTH_FIRST
558
561
  )}`;
559
562
  }),
560
- textInputDisplayValue: h,
563
+ textInputDisplayValue: O,
561
564
  // Methods
562
565
  formatTextInputDisplayValue: () => ""
563
566
  };
@@ -591,8 +594,8 @@ const kt = {
591
594
  BentoDivider: Ge,
592
595
  BentoTypography: we,
593
596
  BentoPopover: We,
594
- DateRangePickerCalendar: w,
595
- DropdownInputDefault: qe,
597
+ DateRangePickerCalendar: C,
598
+ DropdownInputDefault: He,
596
599
  ErrorMessage: ot,
597
600
  FieldLabel: lt
598
601
  },
@@ -617,16 +620,16 @@ const kt = {
617
620
  /**
618
621
  * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
619
622
  */
620
- firstDayOfWeek: w.props.firstDayOfWeek,
623
+ firstDayOfWeek: C.props.firstDayOfWeek,
621
624
  /**
622
625
  * A list of available granularities.
623
626
  * If present, the date picker will display a segmented control to change granularity.
624
627
  */
625
- granularities: w.props.granularities,
628
+ granularities: C.props.granularities,
626
629
  /**
627
630
  * Indicate if a date should be disabled or not
628
631
  */
629
- isDateDisabled: w.props.isDateDisabled,
632
+ isDateDisabled: C.props.isDateDisabled,
630
633
  /**
631
634
  * Text that is displayed as a label above the element.
632
635
  */
@@ -665,23 +668,23 @@ const kt = {
665
668
  /**
666
669
  * Set a maximum number of dates to be selectable by the range.
667
670
  */
668
- maxRange: w.props.maxRange,
671
+ maxRange: C.props.maxRange,
669
672
  /**
670
673
  * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
671
674
  */
672
- min: w.props.min,
675
+ min: C.props.min,
673
676
  /**
674
677
  * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
675
678
  */
676
- max: w.props.max,
679
+ max: C.props.max,
677
680
  /**
678
681
  * Number of months rendered on pane
679
682
  */
680
- numberOfMonths: w.props.numberOfMonths,
683
+ numberOfMonths: C.props.numberOfMonths,
681
684
  /**
682
685
  * Selected date
683
686
  */
684
- value: w.props.value,
687
+ value: C.props.value,
685
688
  /**
686
689
  * Enables the date picker selection to persist until it is explicitly applied.
687
690
  * Displays a set of buttons: Apply and Cancel.
@@ -692,54 +695,54 @@ const kt = {
692
695
  },
693
696
  emits: [te.INPUT],
694
697
  setup(t, { emit: e }) {
695
- const { locale: n, t: i } = le(), u = oe(), f = z("bento-date-range-picker-container"), r = z("bento-date-range-picker-label"), d = z("bento-date-range-picker-description"), h = z("bento-date-range-picker-error"), K = z("bento-date-range-picker-date-error"), U = _(
698
+ const { locale: n, t: i } = le(), d = oe(), f = z("bento-date-range-picker-container"), r = z("bento-date-range-picker-label"), u = z("bento-date-range-picker-description"), O = z("bento-date-range-picker-error"), K = z("bento-date-range-picker-date-error"), P = T(
696
699
  () => t.label || i("dateRangePicker", { name: f })
697
- ), g = S(!1), V = S(null), m = S(!1), { isReadOnly: Y } = Ke(re(t, "readonly"));
700
+ ), g = E(!1), V = E(null), m = E(!1), { isReadOnly: Y } = Ke(re(t, "readonly"));
698
701
  pe(
699
702
  () => t.disabled,
700
703
  () => {
701
704
  t.disabled && m.value && (m.value = !1);
702
705
  }
703
706
  );
704
- const I = _(() => t.hasActions ? !k.value && g.value : g.value), P = _(() => ({
707
+ const I = T(() => t.hasActions ? !k.value && g.value : g.value), B = T(() => ({
705
708
  "b-date-range-picker__description--error": !!t.errorMessage || I.value
706
- })), { dateDisplayValue: O, textInputDisplayValue: v, formatTextInputDisplayValue: E } = It({
709
+ })), { dateDisplayValue: M, textInputDisplayValue: v, formatTextInputDisplayValue: h } = It({
707
710
  datePickerValue: re(t, "value"),
708
711
  isDateIncorrect: g,
709
712
  quickSelectRanges: re(t, "quickSelectRanges")
710
- }), y = _(
711
- () => `${t.description ? d : ""} ${t.errorMessage ? h : ""} ${g.value ? K : ""}`.trim() || null
712
- ), C = () => {
713
+ }), y = T(
714
+ () => `${t.description ? u : ""} ${t.errorMessage ? O : ""} ${g.value ? K : ""}`.trim() || null
715
+ ), A = () => {
713
716
  m.value = !1;
714
717
  }, X = () => {
715
- m.value = !0, E();
716
- }, T = S(O.value), B = S(
718
+ m.value = !0, h();
719
+ }, _ = E(M.value), N = E(
717
720
  // textInputDisplayValue is a reactive object
718
721
  structuredClone(se(v))
719
- ), R = S(t.value), k = S(!0), A = _(
720
- () => t.hasActions ? B.value : v
721
- ), x = _(
722
- () => t.hasActions ? T.value : O.value
722
+ ), R = E(t.value), k = E(!0), x = T(
723
+ () => t.hasActions ? N.value : v
724
+ ), F = T(
725
+ () => t.hasActions ? _.value : M.value
723
726
  );
724
727
  Me(() => {
725
- t.hasActions || He(
728
+ t.hasActions || qe(
726
729
  'BentoDateRangePicker "hasActions" property',
727
730
  `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
728
731
  This will be the default behavior in the v2 and "hasActions" will be removed.`,
729
732
  "2.0.0"
730
733
  );
731
734
  });
732
- const o = _(() => [
735
+ const o = T(() => [
733
736
  {
734
737
  title: i("apply"),
735
738
  event: () => {
736
- T.value = O.value, B.value = structuredClone(se(v)), e(te.INPUT, R.value), C(), k.value = !0;
739
+ _.value = M.value, N.value = structuredClone(se(v)), e(te.INPUT, R.value), A(), k.value = !0;
737
740
  },
738
741
  disabled: k.value
739
742
  },
740
743
  {
741
744
  title: i("cancel"),
742
- event: C
745
+ event: A
743
746
  }
744
747
  ]);
745
748
  return pe(R, (c) => {
@@ -752,36 +755,36 @@ const kt = {
752
755
  // Refs
753
756
  inputContainerRef: V,
754
757
  // Values,
755
- dateDisplayValue: O,
758
+ dateDisplayValue: M,
756
759
  datePickerContainerId: f,
757
- descriptionConditionalClasses: P,
758
- displayedTextInputValue: A,
759
- displayedDateValue: x,
760
+ descriptionConditionalClasses: B,
761
+ displayedTextInputValue: x,
762
+ displayedDateValue: F,
760
763
  isDateIncorrect: g,
761
764
  isDateRangePickerOpen: m,
762
765
  isReadOnly: Y,
763
766
  labelId: r,
764
- descriptionId: d,
767
+ descriptionId: u,
765
768
  dateErrorId: K,
766
- errorId: h,
767
- popoverAriaLabel: U,
769
+ errorId: O,
770
+ popoverAriaLabel: P,
768
771
  shouldDisplayError: I,
769
772
  ariaDescribedBy: y,
770
773
  textInputDisplayValue: v,
771
774
  rangePickerButtonActions: o,
772
775
  BentoButtonActionsLayout: st,
773
776
  // Events
774
- closeDateRangePicker: C,
777
+ closeDateRangePicker: A,
775
778
  clearDateRangePickerValue: async () => {
776
779
  g.value && (g.value = !1), R.value = null;
777
780
  },
778
781
  openDateRangePicker: X,
779
782
  onRangeSelectorInput: (c) => {
780
783
  if (c) {
781
- const M = (G) => Q(G, b.NUMERIC_DATE_YEAR_FIRST, {
782
- locale: u[n.value.substring(0, 2)] || u.enUS
784
+ const w = (G) => Q(G, b.NUMERIC_DATE_YEAR_FIRST, {
785
+ locale: d[n.value.substring(0, 2)] || d.enUS
783
786
  });
784
- v.startDate = M(c.startDate), v.endDate = M(c.endDate), R.value = c;
787
+ v.startDate = w(c.startDate), v.endDate = w(c.endDate), R.value = c;
785
788
  }
786
789
  },
787
790
  onEnterPressedOverInput: () => {
@@ -789,13 +792,13 @@ const kt = {
789
792
  },
790
793
  onDateRangePickerInput: (c) => {
791
794
  g.value = !1;
792
- const M = (G, ne) => G ? Q(G, ne, {
793
- locale: u[n.value.substring(0, 2)] || u.enUS
795
+ const w = (G, ne) => G ? Q(G, ne, {
796
+ locale: d[n.value.substring(0, 2)] || d.enUS
794
797
  }) : void 0;
795
- v.startDate = M(
798
+ v.startDate = w(
796
799
  c.startDate,
797
800
  b.NUMERIC_DATE_YEAR_FIRST
798
- ), v.endDate = M(c.endDate, b.NUMERIC_DATE_YEAR_FIRST), v.startTime = M(c.startDate, b.HOUR_MINUTE_SECONDS), v.endTime = M(c.endDate, b.HOUR_MINUTE_SECONDS), R.value = c;
801
+ ), v.endDate = w(c.endDate, b.NUMERIC_DATE_YEAR_FIRST), v.startTime = w(c.startDate, b.HOUR_MINUTE_SECONDS), v.endTime = w(c.endDate, b.HOUR_MINUTE_SECONDS), R.value = c;
799
802
  },
800
803
  onDateRangePickerError: (c) => {
801
804
  g.value = !0, v.startDate = c.startDate, v.endDate = c.endDate, R.value = { startDate: null, endDate: null };
@@ -826,8 +829,8 @@ var Et = function() {
826
829
  const Zt = Ot.exports;
827
830
  export {
828
831
  Zt as B,
829
- w as D,
832
+ C as D,
830
833
  te as a,
831
834
  Re as i
832
835
  };
833
- //# sourceMappingURL=date-range-picker.Cr_YCwxP.js.map
836
+ //# sourceMappingURL=date-range-picker.xYGf0SRg.js.map