@adyen/bento-vue2 1.32.0 → 1.33.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 (286) hide show
  1. package/dist/@types/index.d.ts +21 -18
  2. package/dist/accordion.js +1 -1
  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/alert.css +1 -1
  8. package/dist/assets/avatar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button.css +1 -1
  11. package/dist/assets/calendar.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/checkbox-input.css +1 -1
  14. package/dist/assets/controls-group.css +1 -1
  15. package/dist/assets/dashboard-section.css +1 -1
  16. package/dist/assets/dashed-underline.css +1 -1
  17. package/dist/assets/data-grid-template.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-range-picker.css +1 -1
  20. package/dist/assets/dialog-page.css +1 -1
  21. package/dist/assets/dropdown-default-textbox.css +1 -1
  22. package/dist/assets/dropdown-tag.css +1 -1
  23. package/dist/assets/dropdown.css +1 -1
  24. package/dist/assets/filter-bar.css +1 -1
  25. package/dist/assets/input-field.css +1 -1
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/link.css +1 -1
  28. package/dist/assets/loading-button.css +1 -1
  29. package/dist/assets/menu.css +1 -1
  30. package/dist/assets/modal-fullscreen.css +1 -1
  31. package/dist/assets/popover.css +1 -1
  32. package/dist/assets/popper-container.css +1 -1
  33. package/dist/assets/radio-group.css +1 -1
  34. package/dist/assets/radio-input.css +1 -1
  35. package/dist/assets/search-bar.css +1 -1
  36. package/dist/assets/secondary-nav.css +1 -1
  37. package/dist/assets/segmented-control.css +1 -1
  38. package/dist/assets/selection-card-group.css +1 -1
  39. package/dist/assets/sidepanel.css +1 -1
  40. package/dist/assets/status.css +1 -1
  41. package/dist/assets/step.css +1 -1
  42. package/dist/assets/structured-list-item.css +1 -1
  43. package/dist/assets/textarea.css +1 -1
  44. package/dist/assets/toast.css +1 -1
  45. package/dist/assets/toggle-button.css +1 -1
  46. package/dist/assets/tutorial.css +1 -1
  47. package/dist/assets/typography.css +1 -1
  48. package/dist/assets/use-cached-selected-values.css +1 -1
  49. package/dist/avatar.js +1 -1
  50. package/dist/button.js +4 -4
  51. package/dist/card.js +1 -1
  52. package/dist/checkbox.js +3 -3
  53. package/dist/chunks/{accordion-item.CNYpvxwN.js → accordion-item.IMlV_Vik.js} +3 -3
  54. package/dist/chunks/{accordion-item.CNYpvxwN.js.map → accordion-item.IMlV_Vik.js.map} +1 -1
  55. package/dist/chunks/{action-bar.Ds_ofJs6.js → action-bar.CxsPPZZ_.js} +17 -17
  56. package/dist/chunks/action-bar.CxsPPZZ_.js.map +1 -0
  57. package/dist/chunks/{alert.Ba2hSVeM.js → alert.DtT7BRdr.js} +4 -4
  58. package/dist/chunks/{alert.Ba2hSVeM.js.map → alert.DtT7BRdr.js.map} +1 -1
  59. package/dist/chunks/{avatar.DohItrb9.js → avatar.0ffdL8i0.js} +8 -8
  60. package/dist/chunks/avatar.0ffdL8i0.js.map +1 -0
  61. package/dist/chunks/{base-button.-qw8sZSY.js → base-button.qWj0m9-v.js} +2 -2
  62. package/dist/chunks/{base-button.-qw8sZSY.js.map → base-button.qWj0m9-v.js.map} +1 -1
  63. package/dist/chunks/{base-modal.B17Ib1QQ.js → base-modal.8sjjRWsL.js} +35 -35
  64. package/dist/chunks/base-modal.8sjjRWsL.js.map +1 -0
  65. package/dist/chunks/{button-actions-with-menu.K8p3AG8r.js → button-actions-with-menu.DKjOf4Ox.js} +4 -4
  66. package/dist/chunks/{button-actions-with-menu.K8p3AG8r.js.map → button-actions-with-menu.DKjOf4Ox.js.map} +1 -1
  67. package/dist/chunks/{button-actions.IJs0hN8c.js → button-actions.BQHr68sA.js} +3 -3
  68. package/dist/chunks/{button-actions.IJs0hN8c.js.map → button-actions.BQHr68sA.js.map} +1 -1
  69. package/dist/chunks/{button.qOf7CXY2.js → button.79klAcOK.js} +13 -13
  70. package/dist/chunks/button.79klAcOK.js.map +1 -0
  71. package/dist/chunks/{calendar.etLGotqH.js → calendar.CaTMWZUM.js} +124 -124
  72. package/dist/chunks/calendar.CaTMWZUM.js.map +1 -0
  73. package/dist/chunks/{card.-BYuiE_X.js → card.ignL7-CH.js} +4 -4
  74. package/dist/chunks/card.ignL7-CH.js.map +1 -0
  75. package/dist/chunks/{checkbox-group.Bj9gURHB.js → checkbox-group.2mm5bv7a.js} +5 -5
  76. package/dist/chunks/{checkbox-group.Bj9gURHB.js.map → checkbox-group.2mm5bv7a.js.map} +1 -1
  77. package/dist/chunks/{checkbox-input.DwDwI2BD.js → checkbox-input.BH7MGdMj.js} +9 -6
  78. package/dist/chunks/checkbox-input.BH7MGdMj.js.map +1 -0
  79. package/dist/chunks/{checkbox.CKQZXIR3.js → checkbox.BKzfGbb1.js} +5 -5
  80. package/dist/chunks/{checkbox.CKQZXIR3.js.map → checkbox.BKzfGbb1.js.map} +1 -1
  81. package/dist/chunks/{code-snippet.Dr7HvCcg.js → code-snippet.Bh-9Sz0W.js} +7 -7
  82. package/dist/chunks/{code-snippet.Dr7HvCcg.js.map → code-snippet.Bh-9Sz0W.js.map} +1 -1
  83. package/dist/chunks/{controls-group.WoEXCpkM.js → controls-group.kIQ5t39B.js} +4 -4
  84. package/dist/chunks/{controls-group.WoEXCpkM.js.map → controls-group.kIQ5t39B.js.map} +1 -1
  85. package/dist/chunks/{copy.CIuoE2VU.js → copy.B1DYKX_q.js} +4 -4
  86. package/dist/chunks/{copy.CIuoE2VU.js.map → copy.B1DYKX_q.js.map} +1 -1
  87. package/dist/chunks/{country.DeYdzMXh.js → country.DWQ85WGG.js} +2 -2
  88. package/dist/chunks/{country.DeYdzMXh.js.map → country.DWQ85WGG.js.map} +1 -1
  89. package/dist/chunks/{currency.Cfq_Yw2V.js → currency.D_2CN1OJ.js} +2 -2
  90. package/dist/chunks/{currency.Cfq_Yw2V.js.map → currency.D_2CN1OJ.js.map} +1 -1
  91. package/dist/chunks/{dashboard-section.CKy3tW-3.js → dashboard-section.CS63czQW.js} +5 -5
  92. package/dist/chunks/dashboard-section.CS63czQW.js.map +1 -0
  93. package/dist/chunks/{dashed-underline.OyLCDT1U.js → dashed-underline.XuUFwxOe.js} +11 -11
  94. package/dist/chunks/dashed-underline.XuUFwxOe.js.map +1 -0
  95. package/dist/chunks/{data-grid-template.CxaInpI8.js → data-grid-template.DEDwDJCy.js} +9 -9
  96. package/dist/chunks/data-grid-template.DEDwDJCy.js.map +1 -0
  97. package/dist/chunks/{data-grid.Dsv60eRz.js → data-grid.caE5wVpr.js} +717 -716
  98. package/dist/chunks/data-grid.caE5wVpr.js.map +1 -0
  99. package/dist/chunks/{date-picker.CZ34YMMu.js → date-picker.D9hFJD_h.js} +7 -7
  100. package/dist/chunks/{date-picker.CZ34YMMu.js.map → date-picker.D9hFJD_h.js.map} +1 -1
  101. package/dist/chunks/{date-range-picker.C__cQBs3.js → date-range-picker.BlTFEbr-.js} +339 -320
  102. package/dist/chunks/date-range-picker.BlTFEbr-.js.map +1 -0
  103. package/dist/chunks/{date.DQaxR7TF.js → date.DaiTzNEZ.js} +2 -2
  104. package/dist/chunks/{date.DQaxR7TF.js.map → date.DaiTzNEZ.js.map} +1 -1
  105. package/dist/chunks/{dialog-page.Cc-XASGB.js → dialog-page.bmDDYmn9.js} +3 -3
  106. package/dist/chunks/dialog-page.bmDDYmn9.js.map +1 -0
  107. package/dist/chunks/{dropdown-default-textbox.BM9qsdzQ.js → dropdown-default-textbox.kQ3pHsZe.js} +5 -4
  108. package/dist/chunks/dropdown-default-textbox.kQ3pHsZe.js.map +1 -0
  109. package/dist/chunks/{dropdown-tag.DEqYdqVG.js → dropdown-tag.BBEI_7RS.js} +19 -19
  110. package/dist/chunks/dropdown-tag.BBEI_7RS.js.map +1 -0
  111. package/dist/chunks/{dropdown.Bn6SRkU5.js → dropdown.D6tsk4ko.js} +11 -10
  112. package/dist/chunks/dropdown.D6tsk4ko.js.map +1 -0
  113. package/dist/chunks/{empty-state.CWy3y5Ly.js → empty-state.C2ba_wDp.js} +3 -3
  114. package/dist/chunks/{empty-state.CWy3y5Ly.js.map → empty-state.C2ba_wDp.js.map} +1 -1
  115. package/dist/chunks/{error-message.epR1WJH2.js → error-message.BEtdKrpc.js} +3 -3
  116. package/dist/chunks/{error-message.epR1WJH2.js.map → error-message.BEtdKrpc.js.map} +1 -1
  117. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  118. package/dist/chunks/{filter-bar.Dcsv7a4q.js → filter-bar.Tl9rgAKU.js} +793 -823
  119. package/dist/chunks/filter-bar.Tl9rgAKU.js.map +1 -0
  120. package/dist/chunks/{fixed-scroller.wvGW5A2g.js → fixed-scroller.CQWDnydO.js} +2 -2
  121. package/dist/chunks/fixed-scroller.CQWDnydO.js.map +1 -0
  122. package/dist/chunks/{footer-actions.B6Q5ybfw.js → footer-actions.CwHY2-Ap.js} +4 -4
  123. package/dist/chunks/{footer-actions.B6Q5ybfw.js.map → footer-actions.CwHY2-Ap.js.map} +1 -1
  124. package/dist/chunks/{form-layout-title.ChRqPBDL.js → form-layout-title.CRsR3o2x.js} +3 -3
  125. package/dist/chunks/{form-layout-title.ChRqPBDL.js.map → form-layout-title.CRsR3o2x.js.map} +1 -1
  126. package/dist/chunks/{header.jOE8ctvn.js → header.CkUxb-Pw.js} +5 -5
  127. package/dist/chunks/{header.jOE8ctvn.js.map → header.CkUxb-Pw.js.map} +1 -1
  128. package/dist/chunks/{info-icon.DQI7sjBY.js → info-icon.DNn4oZsB.js} +3 -3
  129. package/dist/chunks/{info-icon.DQI7sjBY.js.map → info-icon.DNn4oZsB.js.map} +1 -1
  130. package/dist/chunks/{input-field.mEo-bCtk.js → input-field.7PrsNCUx.js} +5 -5
  131. package/dist/chunks/{input-field.mEo-bCtk.js.map → input-field.7PrsNCUx.js.map} +1 -1
  132. package/dist/chunks/{inspector.types.l7r-FN49.js → inspector.types.D6kCCKNk.js} +4 -4
  133. package/dist/chunks/inspector.types.D6kCCKNk.js.map +1 -0
  134. package/dist/chunks/{link.CjFBXE3D.js → link.Xce4kDGy.js} +3 -3
  135. package/dist/chunks/{link.CjFBXE3D.js.map → link.Xce4kDGy.js.map} +1 -1
  136. package/dist/chunks/{listbox-option-tag.BXz3dHfF.js → listbox-option-tag.RVvWMKvz.js} +3 -3
  137. package/dist/chunks/{listbox-option-tag.BXz3dHfF.js.map → listbox-option-tag.RVvWMKvz.js.map} +1 -1
  138. package/dist/chunks/{loading-button.Ba8So0d6.js → loading-button.DDPZYO6r.js} +3 -3
  139. package/dist/chunks/{loading-button.Ba8So0d6.js.map → loading-button.DDPZYO6r.js.map} +1 -1
  140. package/dist/chunks/{menu.e-PrV4Wl.js → menu.CoT0jBpw.js} +5 -5
  141. package/dist/chunks/{menu.e-PrV4Wl.js.map → menu.CoT0jBpw.js.map} +1 -1
  142. package/dist/chunks/{modal-fullscreen.PFFfWzPD.js → modal-fullscreen.BQKE0bm0.js} +6 -6
  143. package/dist/chunks/{modal-fullscreen.PFFfWzPD.js.map → modal-fullscreen.BQKE0bm0.js.map} +1 -1
  144. package/dist/chunks/{modal.DPrBUWDe.js → modal.BnlC8y2b.js} +6 -6
  145. package/dist/chunks/modal.BnlC8y2b.js.map +1 -0
  146. package/dist/chunks/on-click-outside.MUWbmGDn.js.map +1 -1
  147. package/dist/chunks/{pagination.CT08YpqC.js → pagination.Cqm8aS25.js} +4 -4
  148. package/dist/chunks/{pagination.CT08YpqC.js.map → pagination.Cqm8aS25.js.map} +1 -1
  149. package/dist/chunks/{payment-method.BnLkBqVQ.js → payment-method.CyQwoqEe.js} +2 -2
  150. package/dist/chunks/{payment-method.BnLkBqVQ.js.map → payment-method.CyQwoqEe.js.map} +1 -1
  151. package/dist/chunks/{popover.Du6UI6Yh.js → popover.BAZk1sm7.js} +6 -6
  152. package/dist/chunks/{popover.Du6UI6Yh.js.map → popover.BAZk1sm7.js.map} +1 -1
  153. package/dist/chunks/{popper-container.By1AW5Od.js → popper-container.CnWphJTN.js} +2 -2
  154. package/dist/chunks/{popper-container.By1AW5Od.js.map → popper-container.CnWphJTN.js.map} +1 -1
  155. package/dist/chunks/{radio-group.D650KrHa.js → radio-group.Dt5aLsJR.js} +8 -8
  156. package/dist/chunks/radio-group.Dt5aLsJR.js.map +1 -0
  157. package/dist/chunks/{radio-input.UWFngqop.js → radio-input.q980f8Uf.js} +2 -2
  158. package/dist/chunks/{radio-input.UWFngqop.js.map → radio-input.q980f8Uf.js.map} +1 -1
  159. package/dist/chunks/{search-bar.hxEJk-w0.js → search-bar.56yYCp8_.js} +16 -16
  160. package/dist/chunks/search-bar.56yYCp8_.js.map +1 -0
  161. package/dist/chunks/{secondary-nav.Bsi7Dj0s.js → secondary-nav.CCCscrYe.js} +6 -6
  162. package/dist/chunks/secondary-nav.CCCscrYe.js.map +1 -0
  163. package/dist/chunks/{segmented-control.BeXMVbce.js → segmented-control.BZm0u0wJ.js} +13 -13
  164. package/dist/chunks/segmented-control.BZm0u0wJ.js.map +1 -0
  165. package/dist/chunks/selection-card-group.BX5SJQJl.js +255 -0
  166. package/dist/chunks/selection-card-group.BX5SJQJl.js.map +1 -0
  167. package/dist/chunks/{sidepanel.DRP_jFVq.js → sidepanel.BRe8Xgnq.js} +7 -6
  168. package/dist/chunks/sidepanel.BRe8Xgnq.js.map +1 -0
  169. package/dist/chunks/{status.types.CcGZuqg5.js → status.types.dPBUkNia.js} +10 -10
  170. package/dist/chunks/status.types.dPBUkNia.js.map +1 -0
  171. package/dist/chunks/{step.RkChji1p.js → step.CjJtlBk6.js} +5 -5
  172. package/dist/chunks/step.CjJtlBk6.js.map +1 -0
  173. package/dist/chunks/{structured-list-item.BfEARGrz.js → structured-list-item.DpLscUX4.js} +14 -14
  174. package/dist/chunks/structured-list-item.DpLscUX4.js.map +1 -0
  175. package/dist/chunks/{summary-grid-item-custom.Cjv109f8.js → summary-grid-item-custom.B7Re6OCf.js} +5 -5
  176. package/dist/chunks/{summary-grid-item-custom.Cjv109f8.js.map → summary-grid-item-custom.B7Re6OCf.js.map} +1 -1
  177. package/dist/chunks/{tabs.BLCcrVbI.js → tabs.D4ORafqH.js} +3 -3
  178. package/dist/chunks/{tabs.BLCcrVbI.js.map → tabs.D4ORafqH.js.map} +1 -1
  179. package/dist/chunks/{tag.4Vqj8tm4.js → tag.Bo_6RnVE.js} +3 -3
  180. package/dist/chunks/{tag.4Vqj8tm4.js.map → tag.Bo_6RnVE.js.map} +1 -1
  181. package/dist/chunks/{textarea.DM2Cwx14.js → textarea.C6mA9dbj.js} +14 -13
  182. package/dist/chunks/textarea.C6mA9dbj.js.map +1 -0
  183. package/dist/chunks/{timeline-item.B2c3eI3L.js → timeline-item.D_ha1hxw.js} +9 -9
  184. package/dist/chunks/{timeline-item.B2c3eI3L.js.map → timeline-item.D_ha1hxw.js.map} +1 -1
  185. package/dist/chunks/{toast.rrKNWeM6.js → toast.KVxSBsXC.js} +5 -5
  186. package/dist/chunks/toast.KVxSBsXC.js.map +1 -0
  187. package/dist/chunks/{toggle-button.CBuKACw5.js → toggle-button.bt3zBzdC.js} +3 -3
  188. package/dist/chunks/toggle-button.bt3zBzdC.js.map +1 -0
  189. package/dist/chunks/{toggle.DtrStAja.js → toggle.CLgGH4Jr.js} +2 -2
  190. package/dist/chunks/{toggle.DtrStAja.js.map → toggle.CLgGH4Jr.js.map} +1 -1
  191. package/dist/chunks/{tooltip.4f_qwm8o.js → tooltip.BN6fOXzi.js} +3 -3
  192. package/dist/chunks/{tooltip.4f_qwm8o.js.map → tooltip.BN6fOXzi.js.map} +1 -1
  193. package/dist/chunks/{tutorial.DUjlu3SH.js → tutorial.DzhfqdFU.js} +7 -7
  194. package/dist/chunks/tutorial.DzhfqdFU.js.map +1 -0
  195. package/dist/chunks/{typography.CdCYtxYj.js → typography.CqQaHXhq.js} +2 -2
  196. package/dist/chunks/typography.CqQaHXhq.js.map +1 -0
  197. package/dist/chunks/{use-bento-toast-controller.C66wCsav.js → use-bento-toast-controller.DLKySNHd.js} +2 -2
  198. package/dist/chunks/{use-bento-toast-controller.C66wCsav.js.map → use-bento-toast-controller.DLKySNHd.js.map} +1 -1
  199. package/dist/chunks/{use-cached-selected-values.DWQ8SMSi.js → use-cached-selected-values.1vo5LvgW.js} +83 -82
  200. package/dist/chunks/use-cached-selected-values.1vo5LvgW.js.map +1 -0
  201. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  202. package/dist/code-snippet.js +1 -1
  203. package/dist/country.js +1 -1
  204. package/dist/currency.js +1 -1
  205. package/dist/dashboard-template.js +1 -1
  206. package/dist/dashed-underline.js +1 -1
  207. package/dist/data-grid-template.js +1 -1
  208. package/dist/data-grid.js +1 -1
  209. package/dist/date-picker.js +2 -2
  210. package/dist/date-range-picker.js +2 -2
  211. package/dist/date.js +1 -1
  212. package/dist/dropdown.js +4 -4
  213. package/dist/empty-state.js +1 -1
  214. package/dist/filter-bar.js +1 -1
  215. package/dist/form-layout.js +1 -1
  216. package/dist/header.js +1 -1
  217. package/dist/index.js +68 -66
  218. package/dist/index.js.map +1 -1
  219. package/dist/info-icon.js +1 -1
  220. package/dist/input-field.js +1 -1
  221. package/dist/inspector.js +1 -1
  222. package/dist/internal.js +8 -8
  223. package/dist/link.js +1 -1
  224. package/dist/menu.js +1 -1
  225. package/dist/modal-fullscreen.js +1 -1
  226. package/dist/modal.js +2 -2
  227. package/dist/pagination.js +1 -1
  228. package/dist/payment-method.js +1 -1
  229. package/dist/popover.js +1 -1
  230. package/dist/popper-container.js +1 -1
  231. package/dist/radio-group.js +2 -2
  232. package/dist/search-bar.js +2 -2
  233. package/dist/secondary-nav.js +1 -1
  234. package/dist/segmented-control.js +1 -1
  235. package/dist/selection-card.js +1 -1
  236. package/dist/sidepanel.js +1 -1
  237. package/dist/status.js +1 -1
  238. package/dist/stepper.js +1 -1
  239. package/dist/structured-list.js +1 -1
  240. package/dist/summary-grid.js +1 -1
  241. package/dist/tabs.js +1 -1
  242. package/dist/tag.js +1 -1
  243. package/dist/textarea.js +1 -1
  244. package/dist/timeline.js +1 -1
  245. package/dist/toast.js +1 -1
  246. package/dist/toggle.js +1 -1
  247. package/dist/tutorial.js +1 -1
  248. package/dist/typography.js +1 -1
  249. package/dist/web-types.json +80 -165
  250. package/package.json +3 -2
  251. package/dist/chunks/action-bar.Ds_ofJs6.js.map +0 -1
  252. package/dist/chunks/avatar.DohItrb9.js.map +0 -1
  253. package/dist/chunks/base-modal.B17Ib1QQ.js.map +0 -1
  254. package/dist/chunks/button.qOf7CXY2.js.map +0 -1
  255. package/dist/chunks/calendar.etLGotqH.js.map +0 -1
  256. package/dist/chunks/card.-BYuiE_X.js.map +0 -1
  257. package/dist/chunks/checkbox-input.DwDwI2BD.js.map +0 -1
  258. package/dist/chunks/dashboard-section.CKy3tW-3.js.map +0 -1
  259. package/dist/chunks/dashed-underline.OyLCDT1U.js.map +0 -1
  260. package/dist/chunks/data-grid-template.CxaInpI8.js.map +0 -1
  261. package/dist/chunks/data-grid.Dsv60eRz.js.map +0 -1
  262. package/dist/chunks/date-range-picker.C__cQBs3.js.map +0 -1
  263. package/dist/chunks/dialog-page.Cc-XASGB.js.map +0 -1
  264. package/dist/chunks/dropdown-default-textbox.BM9qsdzQ.js.map +0 -1
  265. package/dist/chunks/dropdown-tag.DEqYdqVG.js.map +0 -1
  266. package/dist/chunks/dropdown.Bn6SRkU5.js.map +0 -1
  267. package/dist/chunks/filter-bar.Dcsv7a4q.js.map +0 -1
  268. package/dist/chunks/fixed-scroller.wvGW5A2g.js.map +0 -1
  269. package/dist/chunks/inspector.types.l7r-FN49.js.map +0 -1
  270. package/dist/chunks/modal.DPrBUWDe.js.map +0 -1
  271. package/dist/chunks/radio-group.D650KrHa.js.map +0 -1
  272. package/dist/chunks/search-bar.hxEJk-w0.js.map +0 -1
  273. package/dist/chunks/secondary-nav.Bsi7Dj0s.js.map +0 -1
  274. package/dist/chunks/segmented-control.BeXMVbce.js.map +0 -1
  275. package/dist/chunks/selection-card-group.D5DRYhrw.js +0 -247
  276. package/dist/chunks/selection-card-group.D5DRYhrw.js.map +0 -1
  277. package/dist/chunks/sidepanel.DRP_jFVq.js.map +0 -1
  278. package/dist/chunks/status.types.CcGZuqg5.js.map +0 -1
  279. package/dist/chunks/step.RkChji1p.js.map +0 -1
  280. package/dist/chunks/structured-list-item.BfEARGrz.js.map +0 -1
  281. package/dist/chunks/textarea.DM2Cwx14.js.map +0 -1
  282. package/dist/chunks/toast.rrKNWeM6.js.map +0 -1
  283. package/dist/chunks/toggle-button.CBuKACw5.js.map +0 -1
  284. package/dist/chunks/tutorial.DUjlu3SH.js.map +0 -1
  285. package/dist/chunks/typography.CdCYtxYj.js.map +0 -1
  286. package/dist/chunks/use-cached-selected-values.DWQ8SMSi.js.map +0 -1
@@ -1,88 +1,93 @@
1
- import { reactive as z, defineComponent as ye, computed as I, ref as U, onMounted as Ye, toRaw as Ve, toRef as de, watch as Ge } from "vue";
2
- import { B as He } from "./popover.Du6UI6Yh.js";
3
- import { B as Ie } from "./typography.CdCYtxYj.js";
4
- import { g as G } from "./unique-id.XFfoKuc2.js";
5
- import { u as te } from "./i18n.BQkEbtPM.js";
6
- import { t as ae, f as W } from "./date.DQaxR7TF.js";
7
- import { r as q, t as J, l as M, a as ne, b as re } from "./index.B_UZQ6qF.js";
8
- import { f as ue, v as We, D as _ } from "./date-input.BqBdAO1E.js";
9
- import { u as qe } from "./use-form-layout-loading.D3lALhtC.js";
1
+ import { reactive as ee, defineComponent as Ie, computed as b, ref as P, onMounted as Ve, toRaw as Ge, toRef as ae, watch as He } from "vue";
2
+ import { B as We } from "./popover.BAZk1sm7.js";
3
+ import { B as be } from "./typography.CqQaHXhq.js";
4
+ import { g as z } from "./unique-id.XFfoKuc2.js";
5
+ import { u as ne } from "./i18n.BQkEbtPM.js";
6
+ import { t as re, f as Q } from "./date.DaiTzNEZ.js";
7
+ import { r as H, t as G, l as w, a as se, b as oe } from "./index.B_UZQ6qF.js";
8
+ import { f as ue, v as qe, D as T } from "./date-input.BqBdAO1E.js";
9
+ import { u as je } from "./use-form-layout-loading.D3lALhtC.js";
10
10
  import "./index.Cl4_42j5.js";
11
- import { B as je } from "./input-field.mEo-bCtk.js";
12
- import { B as Ke } from "./dropdown.Bn6SRkU5.js";
13
- import { B as ze } from "./segmented-control.BeXMVbce.js";
14
- import { d as K } from "./debounce.DUTu11PS.js";
15
- import { u as Je } from "./use-has-slot.C9lQZ6nz.js";
16
- import { s as H, c as ce, i as B, d as Qe, e as De, f as Xe, g as me, h as Ze, j as et, a as F, u as tt } from "./calendar.etLGotqH.js";
17
- import { e as O } from "./index.B_EJflcs.js";
11
+ import { B as Ke } from "./input-field.7PrsNCUx.js";
12
+ import { B as ze } from "./dropdown.D6tsk4ko.js";
13
+ import { B as Je } from "./segmented-control.BZm0u0wJ.js";
14
+ import { d as Z } from "./debounce.DUTu11PS.js";
15
+ import { u as Qe } from "./use-has-slot.C9lQZ6nz.js";
16
+ import { s as J, c as ce, i as V, d as Xe, e as De, f as Ze, g as me, h as et, j as tt, a as A, u as at } from "./calendar.CaTMWZUM.js";
17
+ import { e as M } from "./index.B_EJflcs.js";
18
18
  import { e as fe } from "./index.Z84QE0E2.js";
19
- import { n as be } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
20
- import { D as at } from "./dropdown-default-textbox.BM9qsdzQ.js";
21
- import { E as nt, F as rt } from "./error-message.epR1WJH2.js";
22
- import { B as st } from "./directive.O3yEdalv.js";
19
+ import { n as ke } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
20
+ import { D as nt } from "./dropdown-default-textbox.kQ3pHsZe.js";
21
+ import { E as rt, F as st } from "./error-message.BEtdKrpc.js";
22
+ import { B as ot } from "./directive.O3yEdalv.js";
23
23
  import "../assets/date-range-picker.css";
24
- function pe(t) {
25
- q(1, arguments);
26
- var e = J(t);
27
- return e.setMilliseconds(0), e;
24
+ function pe(t, e) {
25
+ H(2, arguments);
26
+ var n = G(t), l = G(e);
27
+ return n.getTime() === l.getTime();
28
28
  }
29
- function ge(t, e) {
30
- q(2, arguments);
31
- var r = pe(t), l = pe(e);
32
- return r.getTime() === l.getTime();
29
+ function ge(t) {
30
+ H(1, arguments);
31
+ var e = G(t);
32
+ return e.setMilliseconds(0), e;
33
33
  }
34
- function ot(t, e) {
35
- q(2, arguments);
36
- var r = J(t), l = ae(e);
37
- return r.setHours(l), r;
34
+ function ve(t, e) {
35
+ H(2, arguments);
36
+ var n = ge(t), l = ge(e);
37
+ return n.getTime() === l.getTime();
38
38
  }
39
39
  function it(t, e) {
40
- q(2, arguments);
41
- var r = J(t), l = ae(e);
42
- return r.setMinutes(l), r;
40
+ H(2, arguments);
41
+ var n = G(t), l = re(e);
42
+ return n.setHours(l), n;
43
43
  }
44
44
  function lt(t, e) {
45
- q(2, arguments);
46
- var r = J(t), l = ae(e);
47
- return r.setSeconds(l), r;
45
+ H(2, arguments);
46
+ var n = G(t), l = re(e);
47
+ return n.setMinutes(l), n;
48
+ }
49
+ function dt(t, e) {
50
+ H(2, arguments);
51
+ var n = G(t), l = re(e);
52
+ return n.setSeconds(l), n;
48
53
  }
49
- const dt = ({
54
+ const ut = ({
50
55
  firstDayOfWeek: t,
51
56
  min: e,
52
- max: r
57
+ max: n
53
58
  }) => ({ getGranularCalendarLimits: (d) => {
54
- let p = H(e), n = O(r);
59
+ let p = J(e), r = M(n);
55
60
  if ((d == null ? void 0 : d.type) === "weekly") {
56
61
  if (d.earliest)
57
- p = H(d.earliest);
62
+ p = J(d.earliest);
58
63
  else {
59
- const D = ce(p, { weekStartsOn: t });
60
- B(p, D) || (p = H(Qe(De(p, { weekStartsOn: t }), 1)));
64
+ const u = ce(p, { weekStartsOn: t });
65
+ V(p, u) || (p = J(Xe(De(p, { weekStartsOn: t }), 1)));
61
66
  }
62
67
  if (d.latest)
63
- n = O(d.latest);
68
+ r = M(d.latest);
64
69
  else {
65
- const D = De(n, { weekStartsOn: t });
66
- B(n, D) || (n = O(Xe(ce(n, { weekStartsOn: t }), 1)));
70
+ const u = De(r, { weekStartsOn: t });
71
+ V(r, u) || (r = M(Ze(ce(r, { weekStartsOn: t }), 1)));
67
72
  }
68
73
  }
69
74
  if ((d == null ? void 0 : d.type) === "monthly") {
70
75
  if (d.earliest)
71
- p = H(d.earliest);
76
+ p = J(d.earliest);
72
77
  else {
73
- const D = me(p);
74
- B(p, D) || (p = me(Ze(p, 1)));
78
+ const u = me(p);
79
+ V(p, u) || (p = me(et(p, 1)));
75
80
  }
76
81
  if (d.latest)
77
- n = O(d.latest);
82
+ r = M(d.latest);
78
83
  else {
79
- const D = fe(n);
80
- B(n, D) || (n = fe(et(n, 1)));
84
+ const u = fe(r);
85
+ V(r, u) || (r = fe(tt(r, 1)));
81
86
  }
82
87
  }
83
- return { min: p, max: n };
84
- } }), ut = () => {
85
- const t = z({
88
+ return { min: p, max: r };
89
+ } }), ct = () => {
90
+ const t = ee({
86
91
  daily: null,
87
92
  weekly: null,
88
93
  monthly: null
@@ -98,18 +103,18 @@ const dt = ({
98
103
  };
99
104
  };
100
105
  var f = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(f || {});
101
- const ct = /[\d]/, Dt = /^\d{2}$/, mt = /^\d{2}:\d{2}$/, ft = (t) => {
102
- const { selectionStart: e } = t.target, r = ct.test(t.key) || t.key === "Backspace", l = [1, 2, 4, 5].includes(e) && t.key === ":";
103
- !r && !l && t.preventDefault();
104
- }, ve = (t) => {
106
+ const Dt = /[\d]/, mt = /^\d{2}$/, ft = /^\d{2}:\d{2}$/, pt = (t) => {
107
+ const { selectionStart: e } = t.target, n = Dt.test(t.key) || t.key === "Backspace", l = [1, 2, 4, 5].includes(e) && t.key === ":";
108
+ !n && !l && t.preventDefault();
109
+ }, _e = (t) => {
105
110
  if (!t)
106
111
  return t;
107
112
  let e = t;
108
113
  if (e.length === 1 && parseInt(t, 10) > 2)
109
114
  return `0${e}:`;
110
- const [r, l] = e.slice(-2);
111
- return [2, 5].includes(e.length) && l === ":" && (e = `${e.slice(0, e.length - 2)}0${r}`), (Dt.test(e) || mt.test(e)) && (e += ":"), e;
112
- }, pt = {
115
+ const [n, l] = e.slice(-2);
116
+ return [2, 5].includes(e.length) && l === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (mt.test(e) || ft.test(e)) && (e += ":"), e;
117
+ }, gt = {
113
118
  "en-US": {
114
119
  customRange: "Custom range",
115
120
  daily: "Daily",
@@ -123,15 +128,15 @@ const ct = /[\d]/, Dt = /^\d{2}$/, mt = /^\d{2}:\d{2}$/, ft = (t) => {
123
128
  timeTo: "Time to",
124
129
  weekly: "Weekly"
125
130
  }
126
- }, _e = 300, Te = "customRange", Re = "daily", gt = ye({
127
- i18n: { messages: pt },
131
+ }, Te = 300, Re = "customRange", ye = "daily", vt = Ie({
132
+ i18n: { messages: gt },
128
133
  name: "date-range-picker-calendar",
129
134
  components: {
130
- BentoDropdown: Ke,
131
- BentoInputField: je,
132
- BentoSegmentedControl: ze,
133
- BentoTypography: Ie,
134
- Calendar: F
135
+ BentoDropdown: ze,
136
+ BentoInputField: Ke,
137
+ BentoSegmentedControl: Je,
138
+ BentoTypography: be,
139
+ Calendar: A
135
140
  },
136
141
  props: {
137
142
  /**
@@ -148,7 +153,7 @@ const ct = /[\d]/, Dt = /^\d{2}$/, mt = /^\d{2}:\d{2}$/, ft = (t) => {
148
153
  /**
149
154
  * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
150
155
  */
151
- firstDayOfWeek: F.props.firstDayOfWeek,
156
+ firstDayOfWeek: A.props.firstDayOfWeek,
152
157
  /**
153
158
  * A list of available granularities.
154
159
  * If present, the date picker will display a segmented control to change granularity.
@@ -160,23 +165,23 @@ const ct = /[\d]/, Dt = /^\d{2}$/, mt = /^\d{2}:\d{2}$/, ft = (t) => {
160
165
  /**
161
166
  * Indicate if a date should be disabled or not
162
167
  */
163
- isDateDisabled: F.props.isDateDisabled,
168
+ isDateDisabled: A.props.isDateDisabled,
164
169
  /**
165
170
  * Set a maximum number of dates to be selectable by the range.
166
171
  */
167
- maxRange: F.props.maxRange,
172
+ maxRange: A.props.maxRange,
168
173
  /**
169
174
  * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
170
175
  */
171
- min: F.props.min,
176
+ min: A.props.min,
172
177
  /**
173
178
  * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
174
179
  */
175
- max: F.props.max,
180
+ max: A.props.max,
176
181
  /**
177
182
  * Number of months rendered on pane
178
183
  */
179
- numberOfMonths: F.props.numberOfMonths,
184
+ numberOfMonths: A.props.numberOfMonths,
180
185
  /**
181
186
  * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
182
187
  */
@@ -204,331 +209,343 @@ const ct = /[\d]/, Dt = /^\d{2}$/, mt = /^\d{2}:\d{2}$/, ft = (t) => {
204
209
  f.FORM_DATE,
205
210
  f.START_DATE_SELECTED
206
211
  ],
207
- setup(t, { emit: e, slots: r }) {
208
- var oe, ie, le;
209
- const { locale: l, t: d } = te(), p = { de: ne, enUS: M, fr: re }, n = z({
210
- startDate: (oe = t.value) == null ? void 0 : oe.startDate,
211
- endDate: (ie = t.value) == null ? void 0 : ie.endDate,
212
+ setup(t, { emit: e, slots: n }) {
213
+ var ie, le, de;
214
+ const { locale: l, t: d } = ne(), p = { de: se, enUS: w, fr: oe }, r = ee({
215
+ startDate: (ie = t.value) == null ? void 0 : ie.startDate,
216
+ endDate: (le = t.value) == null ? void 0 : le.endDate,
212
217
  ...t.granularities ? {
213
- granularity: ((le = t.value) == null ? void 0 : le.granularity) || Re
218
+ granularity: ((de = t.value) == null ? void 0 : de.granularity) || ye
214
219
  } : {}
215
- }), D = I(
220
+ }), u = b(
216
221
  () => {
217
222
  var a, o;
218
- return ((o = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ data: i }) => t.allowTimeInput ? ge(i.startDate, n.startDate) && ge(i.endDate, n.endDate) : B(i.startDate, n.startDate) && B(i.endDate, n.endDate))) == null ? void 0 : o.value) ?? Te;
223
+ return ((o = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ data: i }) => t.allowTimeInput ? ve(i.startDate, r.startDate) && ve(i.endDate, r.endDate) : V(i.startDate, r.startDate) && V(i.endDate, r.endDate))) == null ? void 0 : o.value) ?? Re;
219
224
  }
220
- ), L = I(() => ({
225
+ ), k = b(() => ({
221
226
  "b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
222
- })), $ = I(() => [
223
- { label: d("customRange"), value: Te },
227
+ })), W = b(() => [
228
+ { label: d("customRange"), value: Re },
224
229
  ...t.quickSelectRanges
225
- ]), b = I(
230
+ ]), h = b(
226
231
  () => {
227
232
  var a;
228
- return ((a = t.granularities) == null ? void 0 : a.find(({ type: o }) => o === n.granularity)) || null;
233
+ return ((a = t.granularities) == null ? void 0 : a.find(({ type: o }) => o === r.granularity)) || null;
229
234
  }
230
- ), g = I(
235
+ ), v = b(
231
236
  () => t.granularities.map(({ type: a, disabled: o }) => ({
232
237
  label: d(a),
233
238
  value: a,
234
239
  disabled: o
235
240
  }))
236
- ), { getGranularCalendarLimits: P } = dt(t), m = I(
237
- () => t.granularities ? P(b.value) : { min: H(t.min), max: O(t.max) }
241
+ ), { getGranularCalendarLimits: N } = ut(t), m = b(
242
+ () => t.granularities ? N(h.value) : { min: J(t.min), max: M(t.max) }
238
243
  ), {
239
- adjustDateForMonthly: T,
240
- adjustDateForWeekly: w,
241
- adjustStartDateInputForWeekly: Q,
242
- adjustEndDateInputForWeekly: v,
243
- adjustStartDateInputForMonthly: X,
244
- adjustEndDateInputForMonthly: Z
245
- } = tt(t.firstDayOfWeek), { savedRanges: y, saveRange: se, resetSavedRanges: ee } = ut(), R = (a) => a ? W(a, _.NUMERIC_DATE_YEAR_FIRST, {
246
- locale: p[l.value.substring(0, 2)] || M
247
- }) : "", Y = (a) => a ? W(a, _.HOUR_MINUTE_SECONDS, {
248
- locale: p[l.value.substring(0, 2)] || M
249
- }) : "", C = U(!1), h = U(!1), x = U(!1), u = U(!1), s = z({
244
+ adjustDateForMonthly: B,
245
+ adjustDateForWeekly: R,
246
+ adjustStartDateInputForWeekly: C,
247
+ adjustEndDateInputForWeekly: g,
248
+ adjustStartDateInputForMonthly: L,
249
+ adjustEndDateInputForMonthly: I
250
+ } = at(t.firstDayOfWeek), { savedRanges: _, saveRange: q, resetSavedRanges: te } = ct(), y = (a) => a ? Q(a, T.NUMERIC_DATE_YEAR_FIRST, {
251
+ locale: p[l.value.substring(0, 2)] || w
252
+ }) : "", j = (a) => a ? Q(a, T.HOUR_MINUTE_SECONDS, {
253
+ locale: p[l.value.substring(0, 2)] || w
254
+ }) : "", x = P(!1), F = P(!1), U = P(!1), c = P(!1), s = ee({
250
255
  startDate: t.dateFormData.startDate,
251
256
  endDate: t.dateFormData.endDate,
252
257
  startTime: t.dateFormData.startTime,
253
258
  endTime: t.dateFormData.endTime
254
- }), S = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), E = (a, o) => {
255
- if (!o || !S(o))
259
+ }), E = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), O = (a, o) => {
260
+ if (!o || !E(o))
256
261
  return a;
257
262
  let i = new Date(a);
258
- const [c, Le, $e] = o.split(":");
259
- return i = ot(i, parseInt(c, 10)), i = it(i, parseInt(Le, 10)), i = lt(i, parseInt($e, 10)), i;
260
- }, ke = (a) => {
261
- n.startDate = E(a.startDate, s.startTime), n.endDate = E(a.endDate, s.endTime), t.granularities && ee(), e(f.INPUT, {
262
- ...n,
263
- range: D.value
263
+ const [D, $e, Ye] = o.split(":");
264
+ return i = it(i, parseInt(D, 10)), i = lt(i, parseInt($e, 10)), i = dt(i, parseInt(Ye, 10)), i;
265
+ }, Se = (a) => {
266
+ r.startDate = O(a.startDate, s.startTime), r.endDate = O(a.endDate, s.endTime), t.granularities && te(), e(f.INPUT, {
267
+ ...r,
268
+ range: u.value
264
269
  });
265
- }, V = (a) => {
266
- const o = (c) => t.min && c <= t.min || t.max && c >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(c) : !0;
270
+ }, K = (a) => {
271
+ const o = (D) => t.min && D <= t.min || t.max && D >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(D) : !0;
267
272
  return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && o(new Date(a));
268
273
  };
269
- Ye(() => {
270
- t.dateFormData.startDate && !V(t.dateFormData.startDate) ? C.value = !0 : (C.value = !1, x.value = !1), t.dateFormData.endDate && !V(t.dateFormData.endDate) ? h.value = !0 : (h.value = !1, u.value = !1);
274
+ Ve(() => {
275
+ t.dateFormData.startDate && !K(t.dateFormData.startDate) ? x.value = !0 : (x.value = !1, U.value = !1), t.dateFormData.endDate && !K(t.dateFormData.endDate) ? F.value = !0 : (F.value = !1, c.value = !1);
271
276
  });
272
- const Se = (a) => {
277
+ const Ee = (a) => {
273
278
  var o;
274
- s.startDate = R(a), s.startTime ? x.value && (s.startTime = (o = t.dateFormData) == null ? void 0 : o.startTime) : s.startTime = Y(a), C.value = !1, x.value = !1, e(f.START_DATE_SELECTED, a);
275
- }, Ee = (a) => {
279
+ s.startDate = y(a), s.startTime ? U.value && (s.startTime = (o = t.dateFormData) == null ? void 0 : o.startTime) : s.startTime = j(a), x.value = !1, U.value = !1, e(f.START_DATE_SELECTED, a);
280
+ }, Oe = (a) => {
276
281
  var o;
277
- s.endDate = R(a), s.endTime ? u.value && (s.endTime = (o = t.dateFormData) == null ? void 0 : o.endTime) : s.endTime = Y(O(a)), h.value = !1, u.value = !1;
278
- }, j = (a) => {
282
+ s.endDate = y(a), s.endTime ? c.value && (s.endTime = (o = t.dateFormData) == null ? void 0 : o.endTime) : s.endTime = j(M(a)), F.value = !1, c.value = !1;
283
+ }, X = (a) => {
279
284
  const o = t.value[a];
280
285
  if (o)
281
286
  return o;
282
- if (t.dateFormData[a] && V(t.dateFormData[a]))
287
+ if (t.dateFormData[a] && K(t.dateFormData[a]))
283
288
  return new Date(t.dateFormData[a]);
284
- }, Oe = K((a) => {
289
+ }, Me = Z((a) => {
285
290
  var o;
286
- if (V(a)) {
291
+ if (K(a)) {
287
292
  let i = a;
288
- switch (C.value = !1, (o = b.value) == null ? void 0 : o.type) {
293
+ switch (x.value = !1, (o = h.value) == null ? void 0 : o.type) {
289
294
  case "weekly":
290
- i = Q(
295
+ i = C(
291
296
  a,
292
- R,
297
+ y,
293
298
  m.value.min,
294
299
  m.value.max
295
300
  ), s.startDate = i;
296
301
  break;
297
302
  case "monthly":
298
- i = X(
303
+ i = L(
299
304
  a,
300
- R,
305
+ y,
301
306
  m.value.min,
302
307
  m.value.max
303
308
  ), s.startDate = i;
304
309
  break;
305
310
  }
306
- n.startDate = E(new Date(i), s.startTime);
307
- const c = j("endDate");
311
+ r.startDate = O(new Date(i), s.startTime);
312
+ const D = X("endDate");
308
313
  e(f.FORM_DATE, {
309
314
  startDate: new Date(i),
310
- endDate: c
315
+ endDate: D
311
316
  }), e(f.INPUT, {
312
317
  startDate: new Date(i),
313
- endDate: c,
314
- range: D.value
318
+ endDate: D,
319
+ range: u.value
315
320
  });
316
321
  } else
317
- C.value = !0, e(f.ERROR, { ...s });
318
- }, _e), Me = (a) => {
319
- s.startDate = ue(a), Oe(s.startDate);
320
- }, we = K((a) => {
322
+ x.value = !0, e(f.ERROR, { ...s });
323
+ }, Te), we = (a) => {
324
+ s.startDate = ue(a), Me(s.startDate);
325
+ }, he = Z((a) => {
321
326
  var o;
322
- if (V(a)) {
327
+ if (K(a)) {
323
328
  let i = a;
324
- switch (h.value = !1, (o = b.value) == null ? void 0 : o.type) {
329
+ switch (F.value = !1, (o = h.value) == null ? void 0 : o.type) {
325
330
  case "weekly":
326
- i = v(
331
+ i = g(
327
332
  a,
328
- R,
333
+ y,
329
334
  m.value.min,
330
335
  m.value.max
331
336
  ), s.endDate = i;
332
337
  break;
333
338
  case "monthly":
334
- i = Z(
339
+ i = I(
335
340
  a,
336
- R,
341
+ y,
337
342
  m.value.min,
338
343
  m.value.max
339
344
  ), s.endDate = i;
340
345
  break;
341
346
  }
342
- n.endDate = E(new Date(i), s.endTime);
343
- const c = j("startDate");
347
+ r.endDate = O(new Date(i), s.endTime);
348
+ const D = X("startDate");
344
349
  e(f.FORM_DATE, {
345
- startDate: c,
350
+ startDate: D,
346
351
  endDate: new Date(a)
347
352
  }), e(f.INPUT, {
348
- startDate: c,
353
+ startDate: D,
349
354
  endDate: new Date(a),
350
- range: D.value
355
+ range: u.value
351
356
  });
352
357
  } else
353
- h.value = !0, e(f.ERROR, { ...s });
354
- }, _e), Ce = (a) => {
355
- s.endDate = ue(a), we(s.endDate);
356
- }, he = (a) => {
357
- We(a);
358
- }, xe = K((a) => {
359
- if (S(a)) {
360
- x.value = !1, n.startDate = E(n.startDate, a);
361
- const o = j("endDate");
358
+ F.value = !0, e(f.ERROR, { ...s });
359
+ }, Te), Ce = (a) => {
360
+ s.endDate = ue(a), he(s.endDate);
361
+ }, xe = (a) => {
362
+ qe(a);
363
+ }, Fe = Z((a) => {
364
+ if (E(a)) {
365
+ U.value = !1, r.startDate = O(r.startDate, a);
366
+ const o = X("endDate");
362
367
  e(f.FORM_DATE, {
363
- startDate: new Date(n.startDate),
368
+ startDate: new Date(r.startDate),
364
369
  endDate: o,
365
370
  startTime: a,
366
371
  endTime: t.dateFormData.endTime
367
372
  }), e(f.INPUT, {
368
- startDate: new Date(n.startDate),
373
+ startDate: new Date(r.startDate),
369
374
  endDate: o,
370
- range: D.value
375
+ range: u.value
371
376
  });
372
377
  } else
373
- x.value = !0, e(f.ERROR, { ...s });
374
- }), Fe = K((a) => {
375
- if (S(a)) {
376
- u.value = !1, n.endDate = E(n.endDate, a);
377
- const o = j("startDate");
378
+ U.value = !0, e(f.ERROR, { ...s });
379
+ }), Ue = Z((a) => {
380
+ if (E(a)) {
381
+ c.value = !1, r.endDate = O(r.endDate, a);
382
+ const o = X("startDate");
378
383
  e(f.FORM_DATE, {
379
384
  startDate: o,
380
- endDate: new Date(n.endDate),
385
+ endDate: new Date(r.endDate),
381
386
  startTime: t.dateFormData.startTime,
382
387
  endTime: a
383
388
  }), e(f.INPUT, {
384
389
  startDate: o,
385
- endDate: new Date(n.endDate),
386
- range: D.value
390
+ endDate: new Date(r.endDate),
391
+ range: u.value
387
392
  });
388
393
  } else
389
- u.value = !0, e(f.ERROR, { ...s });
390
- }), Ue = (a) => {
391
- s.startTime = ve(a), xe(s.startTime);
394
+ c.value = !0, e(f.ERROR, { ...s });
395
+ }), Ae = (a) => {
396
+ s.startTime = _e(a), Fe(s.startTime);
392
397
  }, Pe = (a) => {
393
- s.endTime = ve(a), Fe(s.endTime);
394
- }, Ae = (a) => {
395
- ft(a);
396
- }, A = (a, o, i) => {
397
- n.startDate = a, n.endDate = o, i && (n.granularity = i);
398
+ s.endTime = _e(a), Ue(s.endTime);
398
399
  }, Ne = (a) => {
400
+ pt(a);
401
+ }, $ = (a, o, i) => {
402
+ r.startDate = a, r.endDate = o, i && (r.granularity = i);
403
+ }, Be = (a) => {
399
404
  var i;
400
- const o = (i = t.quickSelectRanges) == null ? void 0 : i.find(({ value: c }) => c === a);
405
+ const o = (i = t.quickSelectRanges) == null ? void 0 : i.find(({ value: D }) => D === a);
401
406
  if (o) {
402
- ee();
403
- const c = o.data;
404
- s.startDate = R(c.startDate), s.endDate = R(c.endDate), A(c.startDate, c.endDate), t.granularities && (n.granularity = c.granularity || Re), s.startTime || (s.startTime = Y(O(c.startDate))), s.endTime || (s.endTime = Y(O(c.endDate))), e(f.CUSTOM_RANGE, { ...o.data, range: o.value });
407
+ te();
408
+ const D = o.data;
409
+ s.startDate = y(D.startDate), s.endDate = y(D.endDate), $(D.startDate, D.endDate), t.granularities && (r.granularity = D.granularity || ye), s.startTime || (s.startTime = j(M(D.startDate))), s.endTime || (s.endTime = j(M(D.endDate))), e(f.CUSTOM_RANGE, { ...o.data, range: o.value });
405
410
  }
406
- }, Be = (a) => {
407
- const o = n.granularity;
408
- if (n.granularity = a, o && se(o, structuredClone(Ve(n))), n.startDate && n.endDate) {
411
+ }, Le = (a) => {
412
+ const o = r.granularity;
413
+ if (r.granularity = a, o && q(o, structuredClone(Ge(r))), r.startDate && r.endDate) {
409
414
  switch (a) {
410
415
  case "monthly": {
411
- if (y.monthly) {
412
- A(y.monthly.startDate, y.monthly.endDate, a);
416
+ if (_.monthly) {
417
+ $(_.monthly.startDate, _.monthly.endDate, a);
413
418
  break;
414
419
  }
415
- const { startDate: i, endDate: c } = T(
416
- n.startDate,
417
- n.endDate,
420
+ const { startDate: i, endDate: D } = B(
421
+ r.startDate,
422
+ r.endDate,
418
423
  m.value.min,
419
424
  m.value.max
420
425
  );
421
- A(i, c, a);
426
+ $(i, D, a);
422
427
  break;
423
428
  }
424
429
  case "weekly": {
425
- if (y.weekly) {
426
- A(y.weekly.startDate, y.weekly.endDate, a);
430
+ if (_.weekly) {
431
+ $(_.weekly.startDate, _.weekly.endDate, a);
427
432
  break;
428
433
  }
429
- const { startDate: i, endDate: c } = w(
430
- n.startDate,
431
- n.endDate,
434
+ const { startDate: i, endDate: D } = R(
435
+ r.startDate,
436
+ r.endDate,
432
437
  m.value.min,
433
438
  m.value.max
434
439
  );
435
- A(i, c, a);
440
+ $(i, D, a);
436
441
  break;
437
442
  }
438
443
  case "daily":
439
- y.daily && A(y.daily.startDate, y.daily.endDate, a);
444
+ _.daily && $(_.daily.startDate, _.daily.endDate, a);
440
445
  break;
441
446
  }
442
- s.startDate = R(n.startDate), s.endDate = R(n.endDate), e(f.INPUT, {
443
- ...n,
444
- range: D.value
447
+ s.startDate = y(r.startDate), s.endDate = y(r.endDate), e(f.INPUT, {
448
+ ...r,
449
+ range: u.value
445
450
  });
446
451
  }
447
452
  };
448
453
  return {
449
454
  // Values
450
- internalRangeDate: n,
455
+ internalRangeDate: r,
451
456
  dateTextInput: s,
452
- endDateError: h,
453
- endTimeError: u,
454
- granularityItems: g,
455
- selectedGranularity: b,
457
+ endDateError: F,
458
+ endTimeError: c,
459
+ granularityItems: v,
460
+ selectedGranularity: h,
456
461
  computedMinMax: m,
457
- selectedRangeSelectorValue: D,
458
- startDateError: C,
459
- startTimeError: x,
460
- quickSelectRangeDefaultItems: $,
461
- formInputWrapperConditionalClasses: L,
462
+ selectedRangeSelectorValue: u,
463
+ startDateError: x,
464
+ startTimeError: U,
465
+ quickSelectRangeDefaultItems: W,
466
+ formInputWrapperConditionalClasses: k,
462
467
  // Methods
463
- hasSlot: Je(r),
468
+ hasSlot: Qe(n),
464
469
  t: d,
465
470
  // Events
466
- onDateInput: ke,
467
- onDateInputKeyDown: he,
471
+ onDateInput: Se,
472
+ onDateInputKeyDown: xe,
468
473
  onEndDateInput: Ce,
469
- onEndDateSelected: Ee,
474
+ onEndDateSelected: Oe,
470
475
  onEndTimeInput: Pe,
471
- onGranularityInput: Be,
472
- onRangeSelectorInput: Ne,
473
- onStartDateInput: Me,
474
- onStartDateSelected: Se,
475
- onStartTimeInput: Ue,
476
- onTimeInputKeyDown: Ae
476
+ onGranularityInput: Le,
477
+ onRangeSelectorInput: Be,
478
+ onStartDateInput: we,
479
+ onStartDateSelected: Ee,
480
+ onStartTimeInput: Ae,
481
+ onTimeInputKeyDown: Ne
477
482
  };
478
483
  }
479
484
  });
480
- var vt = function() {
481
- var e = this, r = e._self._c;
482
- return e._self._setupProxy, r("div", { staticClass: "b-date-range-picker-calendar" }, [r("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [r("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.hasSlot("title") ? [e._t("title")] : e._e(), e.quickSelectRanges ? r("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.granularities ? r("bento-segmented-control", { attrs: { items: e.granularityItems, "model-value": e.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": e.onGranularityInput } }) : e._e(), r("div", [r("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), r("div", { class: e.formInputWrapperConditionalClasses }, [r("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() {
485
+ var _t = function() {
486
+ var e = this, n = e._self._c;
487
+ 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() {
483
488
  return [e._v("YYYY-MM-DD")];
484
- }, proxy: !0 }]) }), e.allowTimeInput ? r("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeFrom"), value: e.dateTextInput.startTime, error: e.startTimeError }, on: { input: e.onStartTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
489
+ }, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeFrom"), value: e.dateTextInput.startTime, error: e.startTimeError }, on: { input: e.onStartTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
485
490
  return [e._v("HH:MM:SS")];
486
- }, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1), r("div", [r("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" To ")]), r("div", { class: e.formInputWrapperConditionalClasses }, [r("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateTo"), value: e.dateTextInput.endDate, error: e.endDateError }, on: { input: e.onEndDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
491
+ }, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" To ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateTo"), value: e.dateTextInput.endDate, error: e.endDateError }, on: { input: e.onEndDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
487
492
  return [e._v("YYYY-MM-DD")];
488
- }, proxy: !0 }]) }), e.allowTimeInput ? r("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
493
+ }, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
489
494
  return [e._v("HH:MM:SS")];
490
- }, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? r("div", [e._t("actions")], 2) : e._e()]), r("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [r("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)]);
491
- }, _t = [], Tt = /* @__PURE__ */ be(
492
- gt,
495
+ }, 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)]);
496
+ }, Tt = [], Rt = /* @__PURE__ */ ke(
493
497
  vt,
494
498
  _t,
499
+ Tt,
495
500
  !1,
496
501
  null,
497
502
  "8d0f0c53"
498
503
  );
499
- const k = Tt.exports, Rt = ({
504
+ const S = Rt.exports, yt = ({
500
505
  datePickerValue: t,
501
- isDateIncorrect: e
506
+ isDateIncorrect: e,
507
+ quickSelectRanges: n
502
508
  }) => {
503
- var b, g, P, m;
504
- const { locale: r, t: l } = te(), d = { de: ne, enUS: M, fr: re }, p = (T) => !!T && !isNaN(T.getTime()), n = (T, w) => p(T) ? W(T, w, {
505
- locale: d[r.value.substring(0, 2)] || M
506
- }) : void 0, D = z({
507
- startDate: n((b = t.value) == null ? void 0 : b.startDate, _.NUMERIC_DATE_YEAR_FIRST),
508
- endDate: n((g = t.value) == null ? void 0 : g.endDate, _.NUMERIC_DATE_YEAR_FIRST),
509
- startTime: n((P = t.value) == null ? void 0 : P.startDate, _.HOUR_MINUTE_SECONDS),
510
- endTime: n((m = t.value) == null ? void 0 : m.endDate, _.HOUR_MINUTE_SECONDS)
509
+ var v, N, m, B;
510
+ const { locale: l, t: d } = ne(), p = { de: se, enUS: w, fr: oe }, r = (R) => !!R && !isNaN(R.getTime()), u = (R, C) => r(R) ? Q(R, C, {
511
+ locale: p[l.value.substring(0, 2)] || w
512
+ }) : void 0, k = ee({
513
+ startDate: u((v = t.value) == null ? void 0 : v.startDate, T.NUMERIC_DATE_YEAR_FIRST),
514
+ endDate: u((N = t.value) == null ? void 0 : N.endDate, T.NUMERIC_DATE_YEAR_FIRST),
515
+ startTime: u((m = t.value) == null ? void 0 : m.startDate, T.HOUR_MINUTE_SECONDS),
516
+ endTime: u((B = t.value) == null ? void 0 : B.endDate, T.HOUR_MINUTE_SECONDS)
511
517
  });
512
518
  return {
513
519
  // Values
514
- dateDisplayValue: I(() => {
520
+ dateDisplayValue: b(() => {
521
+ var g;
515
522
  if (e.value)
516
- return `${D.startDate || ""} - ${D.endDate || ""}`;
523
+ return `${k.startDate || ""} - ${k.endDate || ""}`;
517
524
  if (!t.value || !t.value.startDate && !t.value.endDate)
518
- return l("selectDateRange");
519
- const { startDate: T, endDate: w } = D;
520
- return `${n(new Date(T), _.FULL_DATE_MONTH_FIRST)} - ${n(
521
- new Date(w),
522
- _.FULL_DATE_MONTH_FIRST
525
+ return d("selectDateRange");
526
+ if ((g = n.value) != null && g.length) {
527
+ const L = n.value.find(
528
+ ({ data: I }) => {
529
+ var _, q;
530
+ return pe(I == null ? void 0 : I.startDate, (_ = t.value) == null ? void 0 : _.startDate) && pe(I == null ? void 0 : I.endDate, (q = t.value) == null ? void 0 : q.endDate);
531
+ }
532
+ );
533
+ if (L)
534
+ return L.label;
535
+ }
536
+ const { startDate: R, endDate: C } = k;
537
+ return `${u(new Date(R), T.FULL_DATE_MONTH_FIRST)} - ${u(
538
+ new Date(C),
539
+ T.FULL_DATE_MONTH_FIRST
523
540
  )}`;
524
541
  }),
525
- textInputDisplayValue: D,
542
+ textInputDisplayValue: k,
526
543
  // Methods
527
544
  formatTextInputDisplayValue: () => ""
528
545
  };
529
546
  };
530
- var N = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(N || {});
531
- const yt = {
547
+ var Y = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(Y || {});
548
+ const It = {
532
549
  "en-US": {
533
550
  dateRangePicker: "Date range picker {name}",
534
551
  provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
@@ -536,18 +553,18 @@ const yt = {
536
553
  selectDateRange: "Select a date range",
537
554
  selectedDateIsNotAvailable: "Selected date is not available"
538
555
  }
539
- }, It = ye({
540
- i18n: { messages: yt },
556
+ }, bt = Ie({
557
+ i18n: { messages: It },
541
558
  name: "bento-date-range-picker",
542
559
  components: {
543
- BentoTypography: Ie,
544
- BentoPopover: He,
545
- DateRangePickerCalendar: k,
546
- DropdownInputDefault: at,
547
- ErrorMessage: nt,
548
- FieldLabel: rt
560
+ BentoTypography: be,
561
+ BentoPopover: We,
562
+ DateRangePickerCalendar: S,
563
+ DropdownInputDefault: nt,
564
+ ErrorMessage: rt,
565
+ FieldLabel: st
549
566
  },
550
- directives: { BentoClickOutsideDirective: st },
567
+ directives: { BentoClickOutsideDirective: ot },
551
568
  props: {
552
569
  /**
553
570
  * Allows user to enter time values in the form
@@ -568,16 +585,16 @@ const yt = {
568
585
  /**
569
586
  * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
570
587
  */
571
- firstDayOfWeek: k.props.firstDayOfWeek,
588
+ firstDayOfWeek: S.props.firstDayOfWeek,
572
589
  /**
573
590
  * A list of available granularities.
574
591
  * If present, the date picker will display a segmented control to change granularity.
575
592
  */
576
- granularities: k.props.granularities,
593
+ granularities: S.props.granularities,
577
594
  /**
578
595
  * Indicate if a date should be disabled or not
579
596
  */
580
- isDateDisabled: k.props.isDateDisabled,
597
+ isDateDisabled: S.props.isDateDisabled,
581
598
  /**
582
599
  * Text that is displayed as a label above the element.
583
600
  */
@@ -616,119 +633,121 @@ const yt = {
616
633
  /**
617
634
  * Set a maximum number of dates to be selectable by the range.
618
635
  */
619
- maxRange: k.props.maxRange,
636
+ maxRange: S.props.maxRange,
620
637
  /**
621
638
  * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
622
639
  */
623
- min: k.props.min,
640
+ min: S.props.min,
624
641
  /**
625
642
  * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
626
643
  */
627
- max: k.props.max,
644
+ max: S.props.max,
628
645
  /**
629
646
  * Number of months rendered on pane
630
647
  */
631
- numberOfMonths: k.props.numberOfMonths,
648
+ numberOfMonths: S.props.numberOfMonths,
632
649
  /**
633
650
  * Selected date
634
651
  */
635
- value: k.props.value
652
+ value: S.props.value
636
653
  },
637
- emits: [N.INPUT],
654
+ emits: [Y.INPUT],
638
655
  setup(t, { emit: e }) {
639
- const { locale: r, t: l } = te(), d = { de: ne, enUS: M, fr: re }, p = G("bento-date-range-picker-container"), n = G("bento-date-range-picker-label"), D = G("bento-date-range-picker-description"), L = G("bento-date-range-picker-error"), $ = G("bento-date-range-picker-date-error"), b = I(
656
+ const { locale: n, t: l } = ne(), d = { de: se, enUS: w, fr: oe }, p = z("bento-date-range-picker-container"), r = z("bento-date-range-picker-label"), u = z("bento-date-range-picker-description"), k = z("bento-date-range-picker-error"), W = z("bento-date-range-picker-date-error"), h = b(
640
657
  () => t.label || l("dateRangePicker", { name: p })
641
- ), g = U(!1), P = U(null), m = U(!1), { isReadOnly: T } = qe(de(t, "readonly"));
642
- Ge(
658
+ ), v = P(!1), N = P(null), m = P(!1), { isReadOnly: B } = je(ae(t, "readonly"));
659
+ He(
643
660
  () => t.disabled,
644
661
  () => {
645
662
  t.disabled && m.value && (m.value = !1);
646
663
  }
647
664
  );
648
- const w = I(() => ({
649
- "b-date-range-picker__description--error": !!t.errorMessage || g.value
650
- })), { dateDisplayValue: Q, textInputDisplayValue: v, formatTextInputDisplayValue: X } = Rt({
651
- datePickerValue: de(t, "value"),
652
- isDateIncorrect: g
653
- }), Z = I(
654
- () => `${t.description ? D : ""} ${t.errorMessage ? L : ""} ${g.value ? $ : ""}`.trim() || null
665
+ const R = b(() => ({
666
+ "b-date-range-picker__description--error": !!t.errorMessage || v.value
667
+ })), { dateDisplayValue: C, textInputDisplayValue: g, formatTextInputDisplayValue: L } = yt({
668
+ datePickerValue: ae(t, "value"),
669
+ isDateIncorrect: v,
670
+ quickSelectRanges: ae(t, "quickSelectRanges")
671
+ }), I = b(
672
+ () => `${t.description ? u : ""} ${t.errorMessage ? k : ""} ${v.value ? W : ""}`.trim() || null
655
673
  );
656
674
  return {
657
675
  // Refs
658
- inputContainerRef: P,
676
+ inputContainerRef: N,
659
677
  // Values,
660
- dateDisplayValue: Q,
678
+ dateDisplayValue: C,
661
679
  datePickerContainerId: p,
662
- descriptionConditionalClasses: w,
663
- isDateIncorrect: g,
680
+ descriptionConditionalClasses: R,
681
+ isDateIncorrect: v,
664
682
  isDateRangePickerOpen: m,
665
- isReadOnly: T,
666
- labelId: n,
667
- descriptionId: D,
668
- dateErrorId: $,
669
- errorId: L,
670
- popoverAriaLabel: b,
671
- ariaDescribedBy: Z,
672
- textInputDisplayValue: v,
683
+ isReadOnly: B,
684
+ labelId: r,
685
+ descriptionId: u,
686
+ dateErrorId: W,
687
+ errorId: k,
688
+ popoverAriaLabel: h,
689
+ ariaDescribedBy: I,
690
+ textInputDisplayValue: g,
673
691
  // Events
674
692
  closeDateRangePicker: () => {
675
693
  m.value = !1;
676
694
  },
677
695
  clearDateRangePickerValue: async () => {
678
- g.value && (g.value = !1), e(N.INPUT, null);
696
+ v.value && (v.value = !1), e(Y.INPUT, null);
679
697
  },
680
698
  openDateRangePicker: () => {
681
- m.value = !0, X();
699
+ m.value = !0, L();
682
700
  },
683
- onRangeSelectorInput: (u) => {
684
- if (u) {
685
- const s = (S) => W(S, _.NUMERIC_DATE_YEAR_FIRST, {
686
- locale: d[r.value.substring(0, 2)] || M
701
+ onRangeSelectorInput: (c) => {
702
+ if (c) {
703
+ const s = (E) => Q(E, T.NUMERIC_DATE_YEAR_FIRST, {
704
+ locale: d[n.value.substring(0, 2)] || w
687
705
  });
688
- v.startDate = s(u.startDate), v.endDate = s(u.endDate), e(N.INPUT, u);
706
+ g.startDate = s(c.startDate), g.endDate = s(c.endDate), e(Y.INPUT, c);
689
707
  }
690
708
  },
691
709
  onEnterPressedOverInput: () => {
692
- g.value || (m.value = !1);
710
+ v.value || (m.value = !1);
693
711
  },
694
- onDateRangePickerInput: (u) => {
695
- g.value = !1;
696
- const s = (S, E) => S ? W(S, E, {
697
- locale: d[r.value.substring(0, 2)] || M
712
+ onDateRangePickerInput: (c) => {
713
+ v.value = !1;
714
+ const s = (E, O) => E ? Q(E, O, {
715
+ locale: d[n.value.substring(0, 2)] || w
698
716
  }) : void 0;
699
- v.startDate = s(
700
- u.startDate,
701
- _.NUMERIC_DATE_YEAR_FIRST
702
- ), v.endDate = s(u.endDate, _.NUMERIC_DATE_YEAR_FIRST), v.startTime = s(u.startDate, _.HOUR_MINUTE_SECONDS), v.endTime = s(u.endDate, _.HOUR_MINUTE_SECONDS), e(N.INPUT, u);
717
+ g.startDate = s(
718
+ c.startDate,
719
+ T.NUMERIC_DATE_YEAR_FIRST
720
+ ), g.endDate = s(c.endDate, T.NUMERIC_DATE_YEAR_FIRST), g.startTime = s(c.startDate, T.HOUR_MINUTE_SECONDS), g.endTime = s(c.endDate, T.HOUR_MINUTE_SECONDS), e(Y.INPUT, c);
703
721
  },
704
- onDateRangePickerError: (u) => {
705
- g.value = !0, v.startDate = u.startDate, v.endDate = u.endDate, e(N.INPUT, { startDate: null, endDate: null });
722
+ onDateRangePickerError: (c) => {
723
+ v.value = !0, g.startDate = c.startDate, g.endDate = c.endDate, e(Y.INPUT, { startDate: null, endDate: null });
706
724
  },
707
- onDateRangePickerFormDateInputUpdate: (u) => {
708
- g.value = !1, u.startTime && (v.startTime = u.startTime), u.endTime && (v.endTime = u.endTime);
725
+ onDateRangePickerFormDateInputUpdate: (c) => {
726
+ v.value = !1, c.startTime && (g.startTime = c.startTime), c.endTime && (g.endTime = c.endTime);
709
727
  },
710
728
  // Translations
711
729
  t: l
712
730
  };
713
731
  }
714
732
  });
715
- var bt = function() {
716
- var e = this, r = e._self._c;
717
- return e._self._setupProxy, r("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? r("field-label", { attrs: { id: e.labelId, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), r("div", { on: { keydown: function(l) {
733
+ var kt = function() {
734
+ var e = this, n = e._self._c;
735
+ return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? n("field-label", { attrs: { id: e.labelId, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", { on: { keydown: function(l) {
718
736
  return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
719
- } } }, [r("dropdown-input-default", { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.isDateIncorrect, open: e.isDateRangePickerOpen, "display-value": e.dateDisplayValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.isDateIncorrect ? r("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.t("provideDateInAFormat") } }) : e._e(), e.errorMessage ? r("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? r("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? r("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [r("date-range-picker-calendar", { attrs: { "allow-time-input": e.allowTimeInput, "quick-select-ranges": e.quickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, granularities: e.granularities, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.min, max: e.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, "date-form-data": e.textInputDisplayValue }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate } })], 1) : e._e()], 1);
720
- }, kt = [], St = /* @__PURE__ */ be(
721
- It,
737
+ } } }, [n("dropdown-input-default", { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.isDateIncorrect, open: e.isDateRangePickerOpen, "display-value": e.dateDisplayValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.isDateIncorrect ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.t("provideDateInAFormat") } }) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? n("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [n("date-range-picker-calendar", { attrs: { "allow-time-input": e.allowTimeInput, "quick-select-ranges": e.quickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, granularities: e.granularities, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.min, max: e.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, "date-form-data": e.textInputDisplayValue }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate } })], 1) : e._e()], 1);
738
+ }, St = [], Et = /* @__PURE__ */ ke(
722
739
  bt,
723
740
  kt,
741
+ St,
724
742
  !1,
725
743
  null,
726
- "22f9e942"
744
+ "c3b80437"
727
745
  );
728
- const Kt = St.exports;
746
+ const zt = Et.exports;
729
747
  export {
730
- Kt as B,
731
- k as D,
732
- N as a
748
+ zt as B,
749
+ S as D,
750
+ Y as a,
751
+ pe as i
733
752
  };
734
- //# sourceMappingURL=date-range-picker.C__cQBs3.js.map
753
+ //# sourceMappingURL=date-range-picker.BlTFEbr-.js.map