@adyen/bento-vue3 1.68.2 → 1.69.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 (434) hide show
  1. package/dist/@types/components.d.ts +1 -0
  2. package/dist/@types/index.d.ts +752 -1177
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/assets/accordion-item.css +1 -1
  7. package/dist/assets/action-bar.css +1 -1
  8. package/dist/assets/base-button.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions-with-menu.css +1 -1
  11. package/dist/assets/button.css +1 -1
  12. package/dist/assets/calendar.css +1 -1
  13. package/dist/assets/card.css +1 -1
  14. package/dist/assets/checkbox-group.css +1 -1
  15. package/dist/assets/checkbox-input.css +1 -1
  16. package/dist/assets/checkbox.css +1 -1
  17. package/dist/assets/chip.css +1 -1
  18. package/dist/assets/copy.css +1 -1
  19. package/dist/assets/country.css +1 -1
  20. package/dist/assets/currency.css +1 -1
  21. package/dist/assets/dashed-underline.css +1 -1
  22. package/dist/assets/data-grid-template.css +1 -1
  23. package/dist/assets/data-grid.css +1 -1
  24. package/dist/assets/date-picker.css +1 -1
  25. package/dist/assets/date-range-picker.css +1 -1
  26. package/dist/assets/dialog-page.css +1 -1
  27. package/dist/assets/divider.css +1 -1
  28. package/dist/assets/dropdown-default-textbox.css +1 -1
  29. package/dist/assets/dropdown-tag.css +1 -1
  30. package/dist/assets/dropdown.css +1 -1
  31. package/dist/assets/empty-state.css +1 -1
  32. package/dist/assets/file-uploader.css +1 -1
  33. package/dist/assets/filter-bar.css +1 -1
  34. package/dist/assets/focus-trap.css +1 -1
  35. package/dist/assets/footer-actions.css +1 -1
  36. package/dist/assets/form-layout-title.css +1 -1
  37. package/dist/assets/grid-layout.css +1 -1
  38. package/dist/assets/header-meta.css +1 -1
  39. package/dist/assets/header-with-views.css +1 -1
  40. package/dist/assets/header.css +1 -1
  41. package/dist/assets/info-icon.css +1 -1
  42. package/dist/assets/input-field-password.css +1 -1
  43. package/dist/assets/input-field-phone-number.css +1 -1
  44. package/dist/assets/input-field.css +1 -1
  45. package/dist/assets/inspector.css +1 -1
  46. package/dist/assets/layout-row.css +1 -1
  47. package/dist/assets/listbox-option-tag.css +1 -1
  48. package/dist/assets/loading-indicator.css +1 -1
  49. package/dist/assets/modal-fullscreen.css +1 -1
  50. package/dist/assets/pagination.css +1 -1
  51. package/dist/assets/payment-method.css +1 -1
  52. package/dist/assets/popper-container.css +1 -1
  53. package/dist/assets/promo-banner.css +1 -1
  54. package/dist/assets/radio-group.css +1 -1
  55. package/dist/assets/radio-input.css +1 -1
  56. package/dist/assets/rich-text-editor.css +1 -1
  57. package/dist/assets/search-bar.css +1 -1
  58. package/dist/assets/secondary-nav.css +1 -1
  59. package/dist/assets/segmented-control.css +1 -1
  60. package/dist/assets/selection-card-group.css +1 -1
  61. package/dist/assets/sidepanel.css +1 -1
  62. package/dist/assets/status.css +1 -1
  63. package/dist/assets/step.css +1 -1
  64. package/dist/assets/structured-list-item.css +1 -1
  65. package/dist/assets/tab.css +1 -1
  66. package/dist/assets/tag.css +1 -1
  67. package/dist/assets/textarea.css +1 -1
  68. package/dist/assets/timeline-item.css +1 -1
  69. package/dist/assets/toast.css +1 -1
  70. package/dist/assets/toggle-button.css +1 -1
  71. package/dist/assets/toggle.css +1 -1
  72. package/dist/assets/tooltip.css +1 -1
  73. package/dist/assets/tutorial.css +1 -1
  74. package/dist/assets/typography.css +1 -1
  75. package/dist/assets/use-cached-selected-values.css +1 -1
  76. package/dist/avatar.js +1 -1
  77. package/dist/button.js +9 -9
  78. package/dist/card.js +1 -1
  79. package/dist/checkbox.js +2 -2
  80. package/dist/chip.js +1 -1
  81. package/dist/chunks/{accordion-item.DOnW0OnU.js → accordion-item.H062lKz1.js} +3 -3
  82. package/dist/chunks/accordion-item.H062lKz1.js.map +1 -0
  83. package/dist/chunks/{action-bar.CflF49oL.js → action-bar.CbO7oNER.js} +7 -8
  84. package/dist/chunks/action-bar.CbO7oNER.js.map +1 -0
  85. package/dist/chunks/{alert.DvleqX0i.js → alert.DFSdD4jX.js} +3 -3
  86. package/dist/chunks/{alert.DvleqX0i.js.map → alert.DFSdD4jX.js.map} +1 -1
  87. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  88. package/dist/chunks/{avatar.B0-9jC6H.js → avatar.BtxoYBvq.js} +2 -2
  89. package/dist/chunks/avatar.BtxoYBvq.js.map +1 -0
  90. package/dist/chunks/{base-button.DdNFlbgH.js → base-button.Bcwm87OM.js} +19 -19
  91. package/dist/chunks/base-button.Bcwm87OM.js.map +1 -0
  92. package/dist/chunks/{base-modal.C3_r3rmc.js → base-modal.7vdoT8zp.js} +21 -21
  93. package/dist/chunks/base-modal.7vdoT8zp.js.map +1 -0
  94. package/dist/chunks/button-actions-with-menu.zdsGh7un.js +93 -0
  95. package/dist/chunks/button-actions-with-menu.zdsGh7un.js.map +1 -0
  96. package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
  97. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
  98. package/dist/chunks/{button.AB0SOQMn.js → button.wMNce6wZ.js} +4 -4
  99. package/dist/chunks/button.wMNce6wZ.js.map +1 -0
  100. package/dist/chunks/{calendar._oPk_A1C.js → calendar.CYrrR8wd.js} +10 -11
  101. package/dist/chunks/calendar.CYrrR8wd.js.map +1 -0
  102. package/dist/chunks/{card.CS34Mi_G.js → card.CNYYIpQW.js} +6 -5
  103. package/dist/chunks/card.CNYYIpQW.js.map +1 -0
  104. package/dist/chunks/{checkbox-group.JRo6xNpe.js → checkbox-group.fX5_d3XZ.js} +6 -6
  105. package/dist/chunks/checkbox-group.fX5_d3XZ.js.map +1 -0
  106. package/dist/chunks/{checkbox-input.DFkwZ4GM.js → checkbox-input.B1hV3DU-.js} +2 -2
  107. package/dist/chunks/checkbox-input.B1hV3DU-.js.map +1 -0
  108. package/dist/chunks/{checkbox.DGrG3GN1.js → checkbox.C62ek8A8.js} +27 -27
  109. package/dist/chunks/checkbox.C62ek8A8.js.map +1 -0
  110. package/dist/chunks/{chip.CneNX2_j.js → chip.CoBGGkn7.js} +11 -11
  111. package/dist/chunks/chip.CoBGGkn7.js.map +1 -0
  112. package/dist/chunks/{code-snippet.D5M76Qy6.js → code-snippet.CrKl93Wq.js} +8 -8
  113. package/dist/chunks/code-snippet.CrKl93Wq.js.map +1 -0
  114. package/dist/chunks/{controls-group.CrzkSu0U.js → controls-group.2xftPPd7.js} +3 -3
  115. package/dist/chunks/{controls-group.CrzkSu0U.js.map → controls-group.2xftPPd7.js.map} +1 -1
  116. package/dist/chunks/{copy.RUoQOydT.js → copy.-8xjj6Hr.js} +17 -18
  117. package/dist/chunks/copy.-8xjj6Hr.js.map +1 -0
  118. package/dist/chunks/{country.Q95voxeL.js → country.BdqTkF7A.js} +8 -8
  119. package/dist/chunks/country.BdqTkF7A.js.map +1 -0
  120. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  121. package/dist/chunks/{currency.CZVdyZUH.js → currency.XiEfa4LT.js} +3 -3
  122. package/dist/chunks/currency.XiEfa4LT.js.map +1 -0
  123. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js → dashboard-section.Di16gWGI.js} +4 -4
  124. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js.map → dashboard-section.Di16gWGI.js.map} +1 -1
  125. package/dist/chunks/{dashed-underline.DkzQkpaf.js → dashed-underline.CyZEW1LZ.js} +30 -32
  126. package/dist/chunks/dashed-underline.CyZEW1LZ.js.map +1 -0
  127. package/dist/chunks/{data-grid-template.DSwj7e1E.js → data-grid-template.CnYNEhPR.js} +5 -5
  128. package/dist/chunks/data-grid-template.CnYNEhPR.js.map +1 -0
  129. package/dist/chunks/{data-grid.BEdELRNZ.js → data-grid.aEQt05d9.js} +1626 -1554
  130. package/dist/chunks/data-grid.aEQt05d9.js.map +1 -0
  131. package/dist/chunks/{date-picker.CAoXTiZR.js → date-picker.Bk0A3rha.js} +25 -26
  132. package/dist/chunks/date-picker.Bk0A3rha.js.map +1 -0
  133. package/dist/chunks/date-range-picker.l-CSmXBk.js +1168 -0
  134. package/dist/chunks/date-range-picker.l-CSmXBk.js.map +1 -0
  135. package/dist/chunks/{date.DSjCnSgL.js → date.BZENjOb6.js} +2 -2
  136. package/dist/chunks/{date.DSjCnSgL.js.map → date.BZENjOb6.js.map} +1 -1
  137. package/dist/chunks/{dialog-page.C80HOigq.js → dialog-page.BJaRwRhF.js} +15 -15
  138. package/dist/chunks/dialog-page.BJaRwRhF.js.map +1 -0
  139. package/dist/chunks/{divider.qUOSAbU6.js → divider.DnKNNyWB.js} +2 -2
  140. package/dist/chunks/divider.DnKNNyWB.js.map +1 -0
  141. package/dist/chunks/{dropdown-default-textbox.Ce5D3ipi.js → dropdown-default-textbox.DWgL31p1.js} +111 -109
  142. package/dist/chunks/dropdown-default-textbox.DWgL31p1.js.map +1 -0
  143. package/dist/chunks/dropdown-tag.CnqIUH1X.js +263 -0
  144. package/dist/chunks/dropdown-tag.CnqIUH1X.js.map +1 -0
  145. package/dist/chunks/{dropdown.CMOYmQLB.js → dropdown.Co86azLK.js} +71 -71
  146. package/dist/chunks/dropdown.Co86azLK.js.map +1 -0
  147. package/dist/chunks/{empty-state.D7llINgF.js → empty-state.YNNEDsnK.js} +4 -4
  148. package/dist/chunks/empty-state.YNNEDsnK.js.map +1 -0
  149. package/dist/chunks/{error-message.DHMHq9bR.js → error-message.Cu4cIfdg.js} +3 -3
  150. package/dist/chunks/{error-message.DHMHq9bR.js.map → error-message.Cu4cIfdg.js.map} +1 -1
  151. package/dist/chunks/es6.MoTTyETW.js +12 -0
  152. package/dist/chunks/es6.MoTTyETW.js.map +1 -0
  153. package/dist/chunks/events.CMzGybJJ.js +47 -0
  154. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  155. package/dist/chunks/{file-uploader.B_EI2fAc.js → file-uploader.09149Fx8.js} +153 -154
  156. package/dist/chunks/file-uploader.09149Fx8.js.map +1 -0
  157. package/dist/chunks/{filter-bar.DoHMLZ4O.js → filter-bar.D6n7Srr5.js} +215 -219
  158. package/dist/chunks/filter-bar.D6n7Srr5.js.map +1 -0
  159. package/dist/chunks/{fixed-scroller.D5nAPPbo.js → fixed-scroller.QlDKOD7y.js} +2 -2
  160. package/dist/chunks/{fixed-scroller.D5nAPPbo.js.map → fixed-scroller.QlDKOD7y.js.map} +1 -1
  161. package/dist/chunks/{focus-trap.CljZgv9i.js → focus-trap.rjp24a37.js} +2 -2
  162. package/dist/chunks/focus-trap.rjp24a37.js.map +1 -0
  163. package/dist/chunks/{footer-actions.Bje-DDqw.js → footer-actions.0cBTJ1kw.js} +5 -5
  164. package/dist/chunks/footer-actions.0cBTJ1kw.js.map +1 -0
  165. package/dist/chunks/{form-layout-title.rpIO-I9A.js → form-layout-title.Cq_xVPUq.js} +5 -5
  166. package/dist/chunks/form-layout-title.Cq_xVPUq.js.map +1 -0
  167. package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.DDaRNz4-.js} +2 -2
  168. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
  169. package/dist/chunks/{header-meta.Yt43-cUI.js → header-meta.BJGF0E3r.js} +26 -27
  170. package/dist/chunks/{header-meta.Yt43-cUI.js.map → header-meta.BJGF0E3r.js.map} +1 -1
  171. package/dist/chunks/{header-with-views.BUed3ocZ.js → header-with-views.Drzq84zs.js} +99 -103
  172. package/dist/chunks/header-with-views.Drzq84zs.js.map +1 -0
  173. package/dist/chunks/{header.CwKjDgKv.js → header.B6DzOioR.js} +32 -32
  174. package/dist/chunks/header.B6DzOioR.js.map +1 -0
  175. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
  176. package/dist/chunks/{info-icon.DprUQ9fj.js → info-icon.DKnzFXy1.js} +8 -9
  177. package/dist/chunks/info-icon.DKnzFXy1.js.map +1 -0
  178. package/dist/chunks/{input-field-password.DN0Jro1V.js → input-field-password.DC8lJFsr.js} +8 -8
  179. package/dist/chunks/input-field-password.DC8lJFsr.js.map +1 -0
  180. package/dist/chunks/{input-field-phone-number.BhPsrafR.js → input-field-phone-number.BbMEzDiR.js} +42 -41
  181. package/dist/chunks/{input-field-phone-number.BhPsrafR.js.map → input-field-phone-number.BbMEzDiR.js.map} +1 -1
  182. package/dist/chunks/{input-field.su5Cq8Dt.js → input-field.6bH4yGb2.js} +5 -5
  183. package/dist/chunks/input-field.6bH4yGb2.js.map +1 -0
  184. package/dist/chunks/{inspector.CoZCPfHC.js → inspector.Bsv68G-e.js} +13 -13
  185. package/dist/chunks/inspector.Bsv68G-e.js.map +1 -0
  186. package/dist/chunks/{keyboard-navigation.CqgGzfZQ.js → keyboard-navigation.pB8weElW.js} +2 -2
  187. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
  188. package/dist/chunks/{layout-row.CZNtHaXd.js → layout-row.CIg1pwOd.js} +9 -9
  189. package/dist/chunks/layout-row.CIg1pwOd.js.map +1 -0
  190. package/dist/chunks/{link.BBpxiclu.js → link.Di0rtpOj.js} +2 -2
  191. package/dist/chunks/{link.BBpxiclu.js.map → link.Di0rtpOj.js.map} +1 -1
  192. package/dist/chunks/{listbox-option-tag.0BK6jWO9.js → listbox-option-tag.C6WHiASI.js} +7 -7
  193. package/dist/chunks/listbox-option-tag.C6WHiASI.js.map +1 -0
  194. package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.BmAQqPP2.js} +3 -3
  195. package/dist/chunks/loading-indicator.BmAQqPP2.js.map +1 -0
  196. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
  197. package/dist/chunks/{modal-fullscreen.DBTnoSX9.js → modal-fullscreen.BHzyS4y7.js} +18 -19
  198. package/dist/chunks/modal-fullscreen.BHzyS4y7.js.map +1 -0
  199. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js → modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js} +6 -6
  200. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js.map +1 -0
  201. package/dist/chunks/{pagination.fYQak4C8.js → pagination.BuYH2_62.js} +5 -5
  202. package/dist/chunks/pagination.BuYH2_62.js.map +1 -0
  203. package/dist/chunks/{payment-method.eazefwm6.js → payment-method.4cnK2M5b.js} +3 -3
  204. package/dist/chunks/payment-method.4cnK2M5b.js.map +1 -0
  205. package/dist/chunks/popover.types.BQILgzhs.js +6 -0
  206. package/dist/chunks/popover.types.BQILgzhs.js.map +1 -0
  207. package/dist/chunks/{popper-container.b5h4zYgT.js → popper-container.idDrquM6.js} +285 -281
  208. package/dist/chunks/popper-container.idDrquM6.js.map +1 -0
  209. package/dist/chunks/{promo-banner.CQp3z2CP.js → promo-banner.il4_mdEk.js} +4 -4
  210. package/dist/chunks/promo-banner.il4_mdEk.js.map +1 -0
  211. package/dist/chunks/{radio-group.H9A5QcNu.js → radio-group.BG8W9epW.js} +8 -8
  212. package/dist/chunks/radio-group.BG8W9epW.js.map +1 -0
  213. package/dist/chunks/{radio-input.DKfQGxtp.js → radio-input.DvPjlvPm.js} +2 -2
  214. package/dist/chunks/radio-input.DvPjlvPm.js.map +1 -0
  215. package/dist/chunks/{rich-text-editor.Dx78coVL.js → rich-text-editor.vqti0Ls0.js} +8 -8
  216. package/dist/chunks/rich-text-editor.vqti0Ls0.js.map +1 -0
  217. package/dist/chunks/{search-bar.CUrcP_wf.js → search-bar.RGL70u_Y.js} +46 -44
  218. package/dist/chunks/search-bar.RGL70u_Y.js.map +1 -0
  219. package/dist/chunks/{secondary-nav.j3ddtYoZ.js → secondary-nav.Dtw_Dm_X.js} +28 -28
  220. package/dist/chunks/secondary-nav.Dtw_Dm_X.js.map +1 -0
  221. package/dist/chunks/{segmented-control.5-vlm8Gt.js → segmented-control.C6QyN2jS.js} +6 -7
  222. package/dist/chunks/segmented-control.C6QyN2jS.js.map +1 -0
  223. package/dist/chunks/{selection-card-group.B4xpnd-z.js → selection-card-group.DpogJSo0.js} +16 -16
  224. package/dist/chunks/selection-card-group.DpogJSo0.js.map +1 -0
  225. package/dist/chunks/{sidepanel.DPN__L3Q.js → sidepanel.BqRWoCd3.js} +14 -14
  226. package/dist/chunks/sidepanel.BqRWoCd3.js.map +1 -0
  227. package/dist/chunks/{status.types.Bdv2zuuh.js → status.types.B7vJ-_oJ.js} +9 -9
  228. package/dist/chunks/status.types.B7vJ-_oJ.js.map +1 -0
  229. package/dist/chunks/{step.BtNhPZAf.js → step.BdZrreHU.js} +8 -9
  230. package/dist/chunks/step.BdZrreHU.js.map +1 -0
  231. package/dist/chunks/{structured-list-item.BQbEDKhg.js → structured-list-item.DIwkcIMT.js} +18 -19
  232. package/dist/chunks/structured-list-item.DIwkcIMT.js.map +1 -0
  233. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js → summary-grid.types.DHUnTXI-.js} +7 -7
  234. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js.map → summary-grid.types.DHUnTXI-.js.map} +1 -1
  235. package/dist/chunks/{tab.CAt51ksU.js → tab.jIG8-7-Q.js} +5 -5
  236. package/dist/chunks/tab.jIG8-7-Q.js.map +1 -0
  237. package/dist/chunks/{tag.D3in0-Bp.js → tag.BP8fBCx-.js} +9 -10
  238. package/dist/chunks/tag.BP8fBCx-.js.map +1 -0
  239. package/dist/chunks/textarea.CtfRoIUw.js +295 -0
  240. package/dist/chunks/textarea.CtfRoIUw.js.map +1 -0
  241. package/dist/chunks/{timeline-item.CuCII37W.js → timeline-item.DthjD14m.js} +11 -11
  242. package/dist/chunks/timeline-item.DthjD14m.js.map +1 -0
  243. package/dist/chunks/{toast.CSoCPteL.js → toast.w_FD0zQA.js} +18 -18
  244. package/dist/chunks/toast.w_FD0zQA.js.map +1 -0
  245. package/dist/chunks/toggle-button.ByyLw0Yf.js +1347 -0
  246. package/dist/chunks/toggle-button.ByyLw0Yf.js.map +1 -0
  247. package/dist/chunks/{toggle.BuKXexA6.js → toggle.CjEL1ko8.js} +3 -3
  248. package/dist/chunks/toggle.CjEL1ko8.js.map +1 -0
  249. package/dist/chunks/{tooltip.VYPUHERk.js → tooltip.Dww8NiUR.js} +70 -64
  250. package/dist/chunks/tooltip.Dww8NiUR.js.map +1 -0
  251. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js → tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js} +48 -51
  252. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js.map +1 -0
  253. package/dist/chunks/{typography.DN5eC5ch.js → typography.CFHvBR7L.js} +25 -25
  254. package/dist/chunks/typography.CFHvBR7L.js.map +1 -0
  255. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.BzKbXZPO.js} +2 -2
  256. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.BzKbXZPO.js.map} +1 -1
  257. package/dist/chunks/{use-cached-selected-values.Dyoz6cUK.js → use-cached-selected-values.BcNRo4mZ.js} +16 -17
  258. package/dist/chunks/use-cached-selected-values.BcNRo4mZ.js.map +1 -0
  259. package/dist/chunks/use-country-items.Duh4bMqW.js.map +1 -1
  260. package/dist/chunks/use-country-phon-code.BOaJ9PDl.js.map +1 -1
  261. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  262. package/dist/code-snippet.js +1 -1
  263. package/dist/country.js +1 -1
  264. package/dist/currency.js +1 -1
  265. package/dist/dashboard-template.js +1 -1
  266. package/dist/dashed-underline.js +1 -1
  267. package/dist/data-grid-template.js +1 -1
  268. package/dist/data-grid.js +1 -1
  269. package/dist/date-picker.js +2 -2
  270. package/dist/date-range-picker.js +2 -2
  271. package/dist/date.js +1 -1
  272. package/dist/divider.js +1 -1
  273. package/dist/dropdown.js +4 -4
  274. package/dist/empty-state.js +1 -1
  275. package/dist/file-uploader.js +1 -1
  276. package/dist/filter-bar.js +1 -1
  277. package/dist/focus-trap.js +1 -1
  278. package/dist/form-layout.js +1 -1
  279. package/dist/header-with-views.js +1 -1
  280. package/dist/header.js +1 -1
  281. package/dist/index.js +204 -207
  282. package/dist/index.js.map +1 -1
  283. package/dist/info-icon.js +1 -1
  284. package/dist/input-field-password.js +1 -1
  285. package/dist/input-field-phone-number.js +3 -2
  286. package/dist/input-field.js +1 -1
  287. package/dist/inspector.js +1 -1
  288. package/dist/internal.js +33 -32
  289. package/dist/internal.js.map +1 -1
  290. package/dist/layout.js +1 -1
  291. package/dist/link.js +1 -1
  292. package/dist/loading-indicator.js +1 -1
  293. package/dist/menu.js +1 -1
  294. package/dist/modal-fullscreen.js +1 -1
  295. package/dist/modal.js +2 -2
  296. package/dist/pagination.js +1 -1
  297. package/dist/payment-method.js +1 -1
  298. package/dist/popover.js +2 -2
  299. package/dist/popper-container.js +4 -5
  300. package/dist/popper-container.js.map +1 -1
  301. package/dist/promo-banner.js +1 -1
  302. package/dist/radio-group.js +2 -2
  303. package/dist/rich-text-editor.js +1 -1
  304. package/dist/search-bar.js +2 -2
  305. package/dist/secondary-nav.js +1 -1
  306. package/dist/segmented-control.js +1 -1
  307. package/dist/selection-card.js +1 -1
  308. package/dist/sidepanel.js +1 -1
  309. package/dist/status.js +1 -1
  310. package/dist/stepper.js +1 -1
  311. package/dist/structured-list.js +1 -1
  312. package/dist/styles/bento-dark.css +17 -4
  313. package/dist/styles/bento-light.css +17 -4
  314. package/dist/styles/bento.css +17 -4
  315. package/dist/styles/legacy.css +17 -4
  316. package/dist/styles/styleguide.css +17 -4
  317. package/dist/styles/utility.css +3 -0
  318. package/dist/summary-grid.js +1 -1
  319. package/dist/tabs.js +1 -1
  320. package/dist/tag.js +1 -1
  321. package/dist/textarea.js +1 -1
  322. package/dist/timeline.js +1 -1
  323. package/dist/toast.js +1 -1
  324. package/dist/toggle.js +1 -1
  325. package/dist/tutorial.js +1 -1
  326. package/dist/typography.js +1 -1
  327. package/dist/use-form-v4.js.map +1 -1
  328. package/dist/web-types.json +1 -1
  329. package/package.json +6 -6
  330. package/dist/assets/button-actions.css +0 -1
  331. package/dist/assets/menu.css +0 -1
  332. package/dist/assets/popover.css +0 -1
  333. package/dist/assets/teleport.css +0 -1
  334. package/dist/chunks/accordion-item.DOnW0OnU.js.map +0 -1
  335. package/dist/chunks/action-bar.CflF49oL.js.map +0 -1
  336. package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
  337. package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
  338. package/dist/chunks/base-modal.C3_r3rmc.js.map +0 -1
  339. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  340. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  341. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js +0 -91
  342. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js.map +0 -1
  343. package/dist/chunks/button-actions.CZdO9YOk.js +0 -264
  344. package/dist/chunks/button-actions.CZdO9YOk.js.map +0 -1
  345. package/dist/chunks/button.AB0SOQMn.js.map +0 -1
  346. package/dist/chunks/calendar._oPk_A1C.js.map +0 -1
  347. package/dist/chunks/card.CS34Mi_G.js.map +0 -1
  348. package/dist/chunks/checkbox-group.JRo6xNpe.js.map +0 -1
  349. package/dist/chunks/checkbox-input.DFkwZ4GM.js.map +0 -1
  350. package/dist/chunks/checkbox.DGrG3GN1.js.map +0 -1
  351. package/dist/chunks/chip.CneNX2_j.js.map +0 -1
  352. package/dist/chunks/code-snippet.D5M76Qy6.js.map +0 -1
  353. package/dist/chunks/copy.RUoQOydT.js.map +0 -1
  354. package/dist/chunks/country.Q95voxeL.js.map +0 -1
  355. package/dist/chunks/currency.CZVdyZUH.js.map +0 -1
  356. package/dist/chunks/dashed-underline.DkzQkpaf.js.map +0 -1
  357. package/dist/chunks/data-grid-template.DSwj7e1E.js.map +0 -1
  358. package/dist/chunks/data-grid.BEdELRNZ.js.map +0 -1
  359. package/dist/chunks/date-picker.CAoXTiZR.js.map +0 -1
  360. package/dist/chunks/date-range-picker.DtV4L3L6.js +0 -1225
  361. package/dist/chunks/date-range-picker.DtV4L3L6.js.map +0 -1
  362. package/dist/chunks/dialog-page.C80HOigq.js.map +0 -1
  363. package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
  364. package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +0 -1
  365. package/dist/chunks/dropdown-tag.B3fptORX.js +0 -230
  366. package/dist/chunks/dropdown-tag.B3fptORX.js.map +0 -1
  367. package/dist/chunks/dropdown.CMOYmQLB.js.map +0 -1
  368. package/dist/chunks/empty-state.D7llINgF.js.map +0 -1
  369. package/dist/chunks/es6.n1ewaW31.js +0 -11
  370. package/dist/chunks/es6.n1ewaW31.js.map +0 -1
  371. package/dist/chunks/events.FNmSWp_P.js +0 -52
  372. package/dist/chunks/events.FNmSWp_P.js.map +0 -1
  373. package/dist/chunks/file-uploader.B_EI2fAc.js.map +0 -1
  374. package/dist/chunks/filter-bar.DoHMLZ4O.js.map +0 -1
  375. package/dist/chunks/focus-trap.CljZgv9i.js.map +0 -1
  376. package/dist/chunks/footer-actions.Bje-DDqw.js.map +0 -1
  377. package/dist/chunks/form-layout-title.rpIO-I9A.js.map +0 -1
  378. package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
  379. package/dist/chunks/header-with-views.BUed3ocZ.js.map +0 -1
  380. package/dist/chunks/header.CwKjDgKv.js.map +0 -1
  381. package/dist/chunks/info-icon.DprUQ9fj.js.map +0 -1
  382. package/dist/chunks/input-field-password.DN0Jro1V.js.map +0 -1
  383. package/dist/chunks/input-field.su5Cq8Dt.js.map +0 -1
  384. package/dist/chunks/inspector.CoZCPfHC.js.map +0 -1
  385. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
  386. package/dist/chunks/layout-row.CZNtHaXd.js.map +0 -1
  387. package/dist/chunks/listbox-option-tag.0BK6jWO9.js.map +0 -1
  388. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
  389. package/dist/chunks/menu.EtjeOPXX.js +0 -680
  390. package/dist/chunks/menu.EtjeOPXX.js.map +0 -1
  391. package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +0 -1
  392. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  393. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  394. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map +0 -1
  395. package/dist/chunks/pagination.fYQak4C8.js.map +0 -1
  396. package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
  397. package/dist/chunks/popover.DYgCCUCJ.js +0 -200
  398. package/dist/chunks/popover.DYgCCUCJ.js.map +0 -1
  399. package/dist/chunks/popover.types.V8old-GW.js +0 -6
  400. package/dist/chunks/popover.types.V8old-GW.js.map +0 -1
  401. package/dist/chunks/popper-container.b5h4zYgT.js.map +0 -1
  402. package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
  403. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
  404. package/dist/chunks/promo-banner.CQp3z2CP.js.map +0 -1
  405. package/dist/chunks/radio-group.H9A5QcNu.js.map +0 -1
  406. package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
  407. package/dist/chunks/rich-text-editor.Dx78coVL.js.map +0 -1
  408. package/dist/chunks/search-bar.CUrcP_wf.js.map +0 -1
  409. package/dist/chunks/secondary-nav.j3ddtYoZ.js.map +0 -1
  410. package/dist/chunks/segmented-control.5-vlm8Gt.js.map +0 -1
  411. package/dist/chunks/selection-card-group.B4xpnd-z.js.map +0 -1
  412. package/dist/chunks/sidepanel.DPN__L3Q.js.map +0 -1
  413. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  414. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  415. package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
  416. package/dist/chunks/step.BtNhPZAf.js.map +0 -1
  417. package/dist/chunks/structured-list-item.BQbEDKhg.js.map +0 -1
  418. package/dist/chunks/tab.CAt51ksU.js.map +0 -1
  419. package/dist/chunks/tag.D3in0-Bp.js.map +0 -1
  420. package/dist/chunks/teleport.CfGWjxe2.js +0 -129
  421. package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
  422. package/dist/chunks/textarea.BBhN67-I.js +0 -282
  423. package/dist/chunks/textarea.BBhN67-I.js.map +0 -1
  424. package/dist/chunks/timeline-item.CuCII37W.js.map +0 -1
  425. package/dist/chunks/toast.CSoCPteL.js.map +0 -1
  426. package/dist/chunks/toggle-button.NQwrfSr1.js +0 -80
  427. package/dist/chunks/toggle-button.NQwrfSr1.js.map +0 -1
  428. package/dist/chunks/toggle.BuKXexA6.js.map +0 -1
  429. package/dist/chunks/tooltip.VYPUHERk.js.map +0 -1
  430. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js.map +0 -1
  431. package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
  432. package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +0 -1
  433. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  434. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
@@ -0,0 +1,1168 @@
1
+ import { reactive as he, defineComponent as tt, ref as M, computed as S, onMounted as at, toRaw as Oe, resolveComponent as ve, createElementBlock as Me, openBlock as A, createElementVNode as Q, createCommentVNode as _, renderSlot as qe, createBlock as G, createVNode as H, withCtx as j, createTextVNode as ne, normalizeClass as Ce, toRef as $e, watch as ke, withDirectives as It, unref as p, withKeys as St, toDisplayString as Rt, createSlots as Et } from "vue";
2
+ import { B as ht } from "./divider.DnKNNyWB.js";
3
+ import { h as wt, B as kt } from "./toggle-button.ByyLw0Yf.js";
4
+ import { B as nt, d as Ot } from "./typography.CFHvBR7L.js";
5
+ import { e as P, a as Pe, g as Ae } from "./get-date-locale.CAyOIbcp.js";
6
+ import { g as ge } from "./generate-uid.NJ8tVoha.js";
7
+ import { u as Fe } from "./i18n.B6g5VX0q.js";
8
+ import { e as rt, t as de, g as ye, i as B, h as C, j as Le, k as Mt, l as Ye, m as Ct, s as Ke, n as At, o as Qe, a as X, u as Ft, f as ue } from "./calendar.CYrrR8wd.js";
9
+ import { f as je, v as Ut, D as h } from "./date-input.BqBdAO1E.js";
10
+ import { r as O, t as V } from "./index.BrH1t1iu.js";
11
+ import { u as Nt } from "./use-form-layout-loading.D3lALhtC.js";
12
+ import { B as _t } from "./directive.Cbdox5VL.js";
13
+ import { B as Bt } from "./input-field.6bH4yGb2.js";
14
+ import { B as qt } from "./dropdown.Co86azLK.js";
15
+ import { B as $t } from "./segmented-control.C6QyN2jS.js";
16
+ import { d as Se } from "./debounce.DUTu11PS.js";
17
+ import { u as Pt } from "./use-has-slot.B7eQSabc.js";
18
+ import { _ as st } from "./_plugin-vue_export-helper.CHgC5LLL.js";
19
+ import { D as Lt } from "./dropdown-default-textbox.DWgL31p1.js";
20
+ import { F as Yt, E as Ge } from "./error-message.Cu4cIfdg.js";
21
+ import { B as Kt } from "./button-actions.types.BptAXjD8.js";
22
+ import "../assets/date-range-picker.css";
23
+ function lt(e, a) {
24
+ O(2, arguments);
25
+ var o = de(a), r = o * 3;
26
+ return rt(e, r);
27
+ }
28
+ function He(e) {
29
+ O(1, arguments);
30
+ var a = V(e), o = Math.floor(a.getMonth() / 3) + 1;
31
+ return o;
32
+ }
33
+ function Ve(e) {
34
+ return O(1, arguments), V(e).getFullYear();
35
+ }
36
+ function Re(e, a) {
37
+ O(2, arguments);
38
+ var o = V(e), r = V(a);
39
+ return o.getTime() === r.getTime();
40
+ }
41
+ function Qt(e, a) {
42
+ O(2, arguments);
43
+ var o = ye(e), r = ye(a);
44
+ return o.getTime() === r.getTime();
45
+ }
46
+ function We(e) {
47
+ O(1, arguments);
48
+ var a = V(e);
49
+ return a.setMilliseconds(0), a;
50
+ }
51
+ function xe(e, a) {
52
+ O(2, arguments);
53
+ var o = We(e), r = We(a);
54
+ return o.getTime() === r.getTime();
55
+ }
56
+ function jt(e) {
57
+ return O(1, arguments), B(e, Date.now());
58
+ }
59
+ function Gt(e, a) {
60
+ O(2, arguments);
61
+ var o = V(e), r = de(a);
62
+ return o.setHours(r), o;
63
+ }
64
+ function ze(e, a) {
65
+ O(2, arguments);
66
+ var o = V(e), r = de(a);
67
+ return o.setMilliseconds(r), o;
68
+ }
69
+ function Ht(e, a) {
70
+ O(2, arguments);
71
+ var o = V(e), r = de(a);
72
+ return o.setMinutes(r), o;
73
+ }
74
+ function Vt(e, a) {
75
+ O(2, arguments);
76
+ var o = V(e), r = de(a);
77
+ return o.setSeconds(r), o;
78
+ }
79
+ function Wt(e, a) {
80
+ O(2, arguments);
81
+ var o = de(a);
82
+ return lt(e, -o);
83
+ }
84
+ function re(e) {
85
+ if (e == null)
86
+ return C(/* @__PURE__ */ new Date());
87
+ const [a, o, r] = e.split("-").map((d) => parseInt(d, 10));
88
+ return new Date(a, o - 1, r);
89
+ }
90
+ const xt = ({
91
+ firstDayOfWeek: e,
92
+ min: a,
93
+ max: o
94
+ }) => ({ getGranularCalendarLimits: (d) => {
95
+ let f = C(a), c = P(o);
96
+ if ((d == null ? void 0 : d.type) === "weekly") {
97
+ if (d.earliest)
98
+ f = C(d.earliest);
99
+ else {
100
+ const y = Le(f, { weekStartsOn: e });
101
+ B(f, y) || (f = C(Mt(Ye(f, { weekStartsOn: e }), 1)));
102
+ }
103
+ if (d.latest)
104
+ c = P(d.latest);
105
+ else {
106
+ const y = Ye(c, { weekStartsOn: e });
107
+ B(c, y) || (c = P(Ct(Le(c, { weekStartsOn: e }), 1)));
108
+ }
109
+ }
110
+ if ((d == null ? void 0 : d.type) === "monthly") {
111
+ if (d.earliest)
112
+ f = C(d.earliest);
113
+ else {
114
+ const y = Ke(f);
115
+ B(f, y) || (f = Ke(rt(f, 1)));
116
+ }
117
+ if (d.latest)
118
+ c = P(d.latest);
119
+ else {
120
+ const y = Pe(c);
121
+ B(c, y) || (c = Pe(At(c, 1)));
122
+ }
123
+ }
124
+ if ((d == null ? void 0 : d.type) === "quarterly") {
125
+ if (d.earliest)
126
+ f = ye(d.earliest);
127
+ else {
128
+ const y = ye(f);
129
+ B(f, y) || (f = ye(lt(f, 1)));
130
+ }
131
+ if (d.latest)
132
+ c = P(d.latest);
133
+ else {
134
+ const y = Qe(c);
135
+ B(c, y) || (c = Qe(Wt(c, 1)));
136
+ }
137
+ }
138
+ return { min: f, max: c };
139
+ } }), zt = () => {
140
+ const e = he({
141
+ daily: null,
142
+ weekly: null,
143
+ monthly: null,
144
+ quarterly: null
145
+ });
146
+ return {
147
+ savedRanges: e,
148
+ saveRange: (r, d) => {
149
+ e[r] = d;
150
+ },
151
+ resetSavedRanges: () => {
152
+ e.daily = null, e.weekly = null, e.monthly = null, e.quarterly = null;
153
+ }
154
+ };
155
+ };
156
+ var T = /* @__PURE__ */ ((e) => (e.CUSTOM_RANGE = "custom-range", e.INPUT = "input", e.ERROR = "error", e.FORM_DATE = "form-date", e.START_DATE_SELECTED = "start-date-selected", e))(T || {});
157
+ const Jt = /[\d]/, Xt = /^\d{2}$/, Zt = /^\d{2}:\d{2}$/, ea = (e) => {
158
+ const { selectionStart: a } = e.target, o = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], r = Jt.test(e.key) || o.includes(e.key), d = [1, 2, 4, 5].includes(a) && e.key === ":";
159
+ !r && !d && e.preventDefault();
160
+ }, Je = (e) => {
161
+ if (!e)
162
+ return e;
163
+ let a = e;
164
+ if (a.length === 1 && parseInt(e, 10) > 2)
165
+ return `0${a}:`;
166
+ const [o, r] = a.slice(-2);
167
+ return [2, 5].includes(a.length) && r === ":" && (a = `${a.slice(0, a.length - 2)}0${o}`), (Xt.test(a) || Zt.test(a)) && (a += ":"), a;
168
+ }, Xe = {
169
+ "en-US": {
170
+ customRange: "Custom range",
171
+ daily: "Daily",
172
+ dateFrom: "Date from",
173
+ dateTo: "Date to",
174
+ lastMonth: "Last month",
175
+ lastSevenDays: "Last 7 days",
176
+ lastThreeMonths: "Last three months",
177
+ monthly: "Monthly",
178
+ quarterly: "Quarterly",
179
+ timeFrom: "Time from",
180
+ timeTo: "Time to",
181
+ weekly: "Weekly"
182
+ },
183
+ "ja-JP": {
184
+ customRange: "カスタム範囲を選択",
185
+ daily: "毎日",
186
+ lastMonth: "先月",
187
+ lastSevenDays: "過去7日間",
188
+ monthly: "毎月",
189
+ weekly: "毎週"
190
+ },
191
+ "pt-BR": {
192
+ customRange: "Selecione um intervalo personalizado",
193
+ daily: "Diário",
194
+ lastMonth: "Último mês",
195
+ lastSevenDays: "Últimos 7 dias",
196
+ monthly: "Mensal",
197
+ weekly: "Semanal"
198
+ }
199
+ }, Ze = 300, et = "customRange", ta = tt({
200
+ i18n: { messages: Xe },
201
+ name: "date-range-picker-calendar",
202
+ components: {
203
+ BentoDropdown: qt,
204
+ BentoInputField: Bt,
205
+ BentoSegmentedControl: $t,
206
+ BentoTypography: nt,
207
+ Calendar: X
208
+ },
209
+ props: {
210
+ /**
211
+ * Allows user to enter time values in the form
212
+ */
213
+ allowTimeInput: { type: Boolean, default: !1 },
214
+ /**
215
+ * Ranges form persistance data
216
+ */
217
+ dateFormData: {
218
+ type: Object,
219
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
220
+ },
221
+ /**
222
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
223
+ */
224
+ firstDayOfWeek: X.props.firstDayOfWeek,
225
+ /**
226
+ * A list of available granularities.
227
+ * If present, the date picker will display a segmented control to change granularity.
228
+ */
229
+ granularities: {
230
+ type: Array,
231
+ default: null
232
+ },
233
+ /**
234
+ * Indicate if a date should be disabled or not
235
+ */
236
+ isDateDisabled: X.props.isDateDisabled,
237
+ /**
238
+ * Set a maximum number of dates to be selectable by the range.
239
+ */
240
+ maxRange: X.props.maxRange,
241
+ /**
242
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
243
+ */
244
+ min: X.props.min,
245
+ /**
246
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
247
+ */
248
+ max: X.props.max,
249
+ /**
250
+ * Number of months rendered on pane
251
+ */
252
+ numberOfMonths: X.props.numberOfMonths,
253
+ /**
254
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
255
+ */
256
+ showEndDateOnOpen: { type: Boolean, default: !1 },
257
+ /**
258
+ * Enables the custom range selector.
259
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
260
+ * `label` - label of custom range item.
261
+ * `value` - a unique key of the custom range item.
262
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
263
+ */
264
+ quickSelectRanges: {
265
+ type: Array,
266
+ default: void 0
267
+ },
268
+ /**
269
+ * Selected date
270
+ */
271
+ value: { type: Object, default: void 0 },
272
+ /**
273
+ * The type of calendar to display. Defaults to showing days.
274
+ */
275
+ variant: X.props.variant
276
+ },
277
+ emits: [
278
+ T.CUSTOM_RANGE,
279
+ T.INPUT,
280
+ T.ERROR,
281
+ T.FORM_DATE,
282
+ T.START_DATE_SELECTED
283
+ ],
284
+ setup(e, { emit: a, slots: o }) {
285
+ var Ue, Ne, _e, Be;
286
+ const { locale: r, t: d } = Fe({ messages: Xe }), f = Ae(), c = M({}), y = S(() => e.variant === "month" ? "monthly" : "daily"), n = he({
287
+ startDate: (Ue = e.value) == null ? void 0 : Ue.startDate,
288
+ endDate: (Ne = e.value) == null ? void 0 : Ne.endDate,
289
+ range: (_e = e.value) == null ? void 0 : _e.range,
290
+ ...e.granularities ? {
291
+ granularity: ((Be = e.value) == null ? void 0 : Be.granularity) || y.value
292
+ } : {}
293
+ });
294
+ function v(t) {
295
+ return t ? new Date(
296
+ t.getUTCFullYear(),
297
+ t.getUTCMonth(),
298
+ t.getUTCDate(),
299
+ t.getUTCHours(),
300
+ t.getUTCMinutes(),
301
+ t.getUTCSeconds()
302
+ ) : null;
303
+ }
304
+ const w = S(() => {
305
+ var t, l;
306
+ return (
307
+ // eslint-disable-next-line consistent-return
308
+ ((l = (t = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : t.find(({ value: i, data: u }) => {
309
+ var E;
310
+ if (!u.endDate) {
311
+ if (u.isRelativeToNow) {
312
+ const k = (E = c.value) == null ? void 0 : E[i];
313
+ return k ? Re(
314
+ v(k.startDate),
315
+ v(n.startDate)
316
+ ) && Re(
317
+ v(k.endDate),
318
+ v(n.endDate)
319
+ ) : (
320
+ // If not stored calculated dates, fall back to comparing the quick select item's value
321
+ // with the internal range's stored range identifier.
322
+ i === n.range
323
+ );
324
+ }
325
+ return Re(
326
+ v(u.startDate),
327
+ v(n.startDate)
328
+ ) && Re(
329
+ v(n.endDate),
330
+ v(P(n.endDate))
331
+ ) && jt(v(n.endDate));
332
+ }
333
+ if (e.allowTimeInput)
334
+ return xe(
335
+ v(u.startDate),
336
+ v(n.startDate)
337
+ ) && xe(v(u.endDate), v(n.endDate));
338
+ if (u.endDate)
339
+ return B(u.startDate, n.startDate) && B(u.endDate, n.endDate);
340
+ })) == null ? void 0 : l.value) ?? et
341
+ );
342
+ }), me = S(() => ({
343
+ "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
344
+ })), se = S(() => [
345
+ { label: d("customRange"), value: et },
346
+ ...e.quickSelectRanges ? e.quickSelectRanges : []
347
+ ]), q = S(
348
+ () => {
349
+ var t;
350
+ return ((t = e.granularities) == null ? void 0 : t.find(({ type: l }) => l === n.granularity)) || null;
351
+ }
352
+ ), R = S(
353
+ () => {
354
+ var t;
355
+ return ((t = e.granularities) == null ? void 0 : t.map(({ type: l, disabled: i }) => ({
356
+ label: d(l),
357
+ value: l,
358
+ disabled: i
359
+ }))) ?? [];
360
+ }
361
+ ), { getGranularCalendarLimits: W } = xt(e), m = S(
362
+ () => e.granularities ? W(q.value) : { min: C(e.min), max: P(e.max) }
363
+ ), {
364
+ adjustDateForQuarterly: Z,
365
+ adjustDateForMonthly: x,
366
+ adjustDateForWeekly: le,
367
+ adjustStartDateInputForWeekly: $,
368
+ adjustEndDateInputForWeekly: F,
369
+ adjustStartDateInputForMonthly: g,
370
+ adjustEndDateInputForMonthly: ce,
371
+ adjustStartDateInputForQuarterly: we,
372
+ adjustEndDateInputForQuarterly: oe
373
+ } = Ft(e.firstDayOfWeek), { savedRanges: z, saveRange: Te, resetSavedRanges: De } = zt(), b = (t) => t ? ue(t, h.NUMERIC_DATE_YEAR_FIRST, {
374
+ locale: f[r.value.substring(0, 2)] || f.enUS
375
+ }) : "", U = (t) => t ? ue(t, h.HOUR_MINUTE_SECONDS, {
376
+ locale: f[r.value.substring(0, 2)] || f.enUS
377
+ }) : "", ee = M(!1), te = M(!1), L = M(!1), Y = M(!1), s = he({
378
+ startDate: e.dateFormData.startDate,
379
+ endDate: e.dateFormData.endDate,
380
+ startTime: e.dateFormData.startTime,
381
+ endTime: e.dateFormData.endTime
382
+ }), pe = (t, l) => {
383
+ let i = new Date(t);
384
+ const [u, E, k] = l.split(":");
385
+ return i = Gt(i, parseInt(u, 10)), i = Ht(i, parseInt(E, 10)), i = Vt(i, parseInt(k, 10)), i;
386
+ }, be = (t) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(t), ie = (t, l) => {
387
+ const i = () => {
388
+ if (l && I(l)) {
389
+ const u = pe(new Date(l), t);
390
+ if (e.min && u < ze(e.min, 0) || e.max && u > ze(e.max, 0))
391
+ return !1;
392
+ }
393
+ return !0;
394
+ };
395
+ return be(t) && i();
396
+ }, N = (t, l) => !l || !be(l) || e.variant === "month" ? t : pe(new Date(t), l), D = (t) => {
397
+ s.startTime = U(
398
+ e.min && e.allowTimeInput && B(e.min, t.startDate) ? e.min : C(t.startDate)
399
+ ), s.endTime = U(
400
+ e.max && e.allowTimeInput && B(e.max, t.endDate) ? e.max : P(t.endDate)
401
+ ), n.startDate = N(t.startDate, s.startTime), n.endDate = N(t.endDate, s.endTime), n.range = null, e.granularities && De(), a(T.INPUT, {
402
+ ...n,
403
+ range: w.value
404
+ });
405
+ }, I = (t) => {
406
+ const l = (u) => e.min && C(u) < C(e.min) || e.max && C(u) > C(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(C(u)) : !0;
407
+ return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(t) && l(new Date(t));
408
+ };
409
+ at(() => {
410
+ ee.value = !!(e.dateFormData.startDate && !I(e.dateFormData.startDate)), e.allowTimeInput ? L.value = !!(e.dateFormData.startTime && !ie(e.dateFormData.startTime, e.dateFormData.startDate)) : L.value = !1, te.value = !!(e.dateFormData.endDate && !I(e.dateFormData.endDate)), e.allowTimeInput ? Y.value = !!(e.dateFormData.endTime && !ie(e.dateFormData.endTime, e.dateFormData.endDate)) : Y.value = !1;
411
+ });
412
+ const ae = (t) => {
413
+ var l;
414
+ s.startDate = b(t), s.startTime ? L.value && (s.startTime = (l = e.dateFormData) == null ? void 0 : l.startTime) : s.startTime = U(t), ee.value = !1, L.value = !1, a(T.START_DATE_SELECTED, t);
415
+ }, J = (t) => {
416
+ var l;
417
+ s.endDate = b(t), s.endTime ? Y.value && (s.endTime = (l = e.dateFormData) == null ? void 0 : l.endTime) : s.endTime = U(P(t)), te.value = !1, Y.value = !1;
418
+ }, fe = (t) => {
419
+ const l = e.value[t];
420
+ if (l)
421
+ return l;
422
+ if (e.dateFormData[t] && I(e.dateFormData[t]))
423
+ return new Date(e.dateFormData[t]);
424
+ }, it = Se((t) => {
425
+ var l;
426
+ if (I(t)) {
427
+ let i = t;
428
+ switch (ee.value = !1, (l = q.value) == null ? void 0 : l.type) {
429
+ case "weekly":
430
+ i = $(
431
+ t,
432
+ b,
433
+ m.value.min,
434
+ m.value.max
435
+ ), s.startDate = i;
436
+ break;
437
+ case "monthly":
438
+ i = g(
439
+ t,
440
+ b,
441
+ m.value.min,
442
+ m.value.max
443
+ ), s.startDate = i;
444
+ break;
445
+ case "quarterly":
446
+ i = we(
447
+ t,
448
+ b,
449
+ m.value.min,
450
+ m.value.max
451
+ ), s.startDate = i;
452
+ break;
453
+ }
454
+ const u = re(i);
455
+ n.startDate = N(u, s.startTime), n.endDate = N(
456
+ re(s.endDate),
457
+ s.endTime
458
+ ), I(s.endDate) && (n.endDate = N(
459
+ re(s.endDate),
460
+ s.endTime
461
+ ));
462
+ const E = fe("endDate");
463
+ n.range = null, a(T.FORM_DATE, {
464
+ startDate: u,
465
+ endDate: E
466
+ }), a(T.INPUT, {
467
+ ...n,
468
+ range: w.value
469
+ });
470
+ } else
471
+ ee.value = !0, a(T.ERROR, { ...s });
472
+ }, Ze), ut = (t) => {
473
+ s.startDate = je(t), it(s.startDate);
474
+ }, dt = Se((t) => {
475
+ var l;
476
+ if (I(t)) {
477
+ let i = t;
478
+ switch (te.value = !1, (l = q.value) == null ? void 0 : l.type) {
479
+ case "weekly":
480
+ i = F(
481
+ t,
482
+ b,
483
+ m.value.min,
484
+ m.value.max
485
+ ), s.endDate = i;
486
+ break;
487
+ case "monthly":
488
+ i = ce(
489
+ t,
490
+ b,
491
+ m.value.min,
492
+ m.value.max
493
+ ), s.endDate = i;
494
+ break;
495
+ case "quarterly":
496
+ i = oe(
497
+ t,
498
+ b,
499
+ m.value.min,
500
+ m.value.max
501
+ ), s.endDate = i;
502
+ break;
503
+ }
504
+ const u = re(i);
505
+ n.endDate = N(u, s.endTime), I(s.startDate) && (n.startDate = N(
506
+ re(s.startDate),
507
+ s.startTime
508
+ ));
509
+ const E = fe("startDate");
510
+ n.range = null, a(T.FORM_DATE, {
511
+ startDate: E,
512
+ endDate: u
513
+ }), a(T.INPUT, {
514
+ ...n,
515
+ range: w.value
516
+ });
517
+ } else
518
+ te.value = !0, a(T.ERROR, { ...s });
519
+ }, Ze), mt = (t) => {
520
+ s.endDate = je(t), dt(s.endDate);
521
+ }, ct = (t) => {
522
+ Ut(t);
523
+ }, Dt = Se((t) => {
524
+ if (ie(t, e.dateFormData.startDate)) {
525
+ L.value = !1, n.startDate = N(n.startDate, t);
526
+ const l = fe("endDate");
527
+ a(T.FORM_DATE, {
528
+ startDate: n.startDate,
529
+ endDate: l,
530
+ startTime: t,
531
+ endTime: s.endTime ?? e.dateFormData.endTime
532
+ }), a(T.INPUT, {
533
+ ...n,
534
+ range: w.value
535
+ });
536
+ } else
537
+ L.value = !0, a(T.ERROR, { ...s });
538
+ }), ft = Se((t) => {
539
+ ie(t, e.dateFormData.endDate) ? (Y.value = !1, n.endDate = N(n.endDate, t), a(T.FORM_DATE, {
540
+ startDate: n.startDate,
541
+ endDate: n.endDate,
542
+ startTime: s.startTime ?? e.dateFormData.startTime,
543
+ endTime: t
544
+ }), a(T.INPUT, {
545
+ ...n,
546
+ range: w.value
547
+ })) : (Y.value = !0, a(T.ERROR, { ...s }));
548
+ }), vt = (t) => {
549
+ s.startTime = Je(t), Dt(s.startTime);
550
+ }, gt = (t) => {
551
+ s.endTime = Je(t), ft(s.endTime);
552
+ }, yt = (t) => {
553
+ ea(t);
554
+ }, Ie = (t, l, i, u) => {
555
+ n.startDate = t, n.endDate = l, i && (n.granularity = i), u && (n.range = u);
556
+ }, Tt = (t) => {
557
+ var i;
558
+ const l = (i = e.quickSelectRanges) == null ? void 0 : i.find(({ value: u }) => u === t);
559
+ if (l) {
560
+ De();
561
+ const u = l.data, E = u.endDate || (u.isRelativeToNow ? new Date(Date.now()) : P(new Date(Date.now()))), k = u.isRelativeToNow && u.timeDifference ? new Date(E.getTime() - u.timeDifference) : u.startDate;
562
+ s.endDate = b(E), s.startDate = b(k), Ie(k, E, null, t), e.granularities && (n.granularity = u.granularity || y.value), s.startTime = U(k), s.endTime = U(E), n.startDate = k, n.endDate = E, u.isRelativeToNow && (c.value = {
563
+ ...c.value,
564
+ [t]: {
565
+ startDate: k,
566
+ endDate: E
567
+ }
568
+ }), a(T.CUSTOM_RANGE, {
569
+ ...l.data,
570
+ startDate: k,
571
+ endDate: E,
572
+ range: l.value
573
+ });
574
+ }
575
+ }, pt = {
576
+ weekly: le,
577
+ monthly: x,
578
+ quarterly: Z
579
+ }, bt = (t) => {
580
+ const l = n.granularity;
581
+ if (n.granularity = t, l && Te(l, structuredClone(Oe(n))), n.startDate && n.endDate) {
582
+ switch (t) {
583
+ case "quarterly":
584
+ case "monthly":
585
+ case "weekly": {
586
+ if (z[t]) {
587
+ Ie(z[t].startDate, z[t].endDate, t);
588
+ break;
589
+ }
590
+ const { startDate: i, endDate: u } = pt[t](
591
+ n.startDate,
592
+ n.endDate,
593
+ m.value.min,
594
+ m.value.max
595
+ );
596
+ Ie(i, u, t);
597
+ break;
598
+ }
599
+ case "daily":
600
+ z.daily && Ie(z.daily.startDate, z.daily.endDate, t);
601
+ break;
602
+ }
603
+ s.startDate = b(n.startDate), s.endDate = b(n.endDate), a(T.INPUT, {
604
+ ...n,
605
+ range: w.value
606
+ });
607
+ }
608
+ };
609
+ return {
610
+ // Values
611
+ internalRangeDate: n,
612
+ dateTextInput: s,
613
+ endDateError: te,
614
+ endTimeError: Y,
615
+ granularityItems: R,
616
+ selectedGranularity: q,
617
+ computedMinMax: m,
618
+ selectedRangeSelectorValue: w,
619
+ startDateError: ee,
620
+ startTimeError: L,
621
+ quickSelectRangeDefaultItems: se,
622
+ formInputWrapperConditionalClasses: me,
623
+ // Methods
624
+ hasSlot: Pt(o),
625
+ t: d,
626
+ // Events
627
+ onDateInput: D,
628
+ onDateInputKeyDown: ct,
629
+ onEndDateInput: mt,
630
+ onEndDateSelected: J,
631
+ onEndTimeInput: gt,
632
+ onGranularityInput: bt,
633
+ onRangeSelectorInput: Tt,
634
+ onStartDateInput: ut,
635
+ onStartDateSelected: ae,
636
+ onStartTimeInput: vt,
637
+ onTimeInputKeyDown: yt
638
+ };
639
+ }
640
+ }), aa = { class: "b-date-range-picker-calendar" }, na = { class: "b-date-range-picker-calendar__form-container" }, ra = { class: "b-date-range-picker-calendar__form" }, sa = { key: 0 }, la = { class: "b-date-range-picker-calendar__calendars-container" };
641
+ function oa(e, a, o, r, d, f) {
642
+ const c = ve("bento-dropdown"), y = ve("bento-segmented-control"), n = ve("bento-typography"), v = ve("bento-input-field"), w = ve("calendar");
643
+ return A(), Me("div", aa, [
644
+ Q("div", na, [
645
+ Q("div", ra, [
646
+ e.hasSlot("title") ? qe(e.$slots, "title", { key: 0 }, void 0, !0) : _("", !0),
647
+ e.quickSelectRanges ? (A(), G(c, {
648
+ key: 1,
649
+ "aria-label": e.t("customRange"),
650
+ items: e.quickSelectRangeDefaultItems,
651
+ value: e.selectedRangeSelectorValue,
652
+ onInput: e.onRangeSelectorInput
653
+ }, null, 8, ["aria-label", "items", "value", "onInput"])) : _("", !0),
654
+ e.granularities ? (A(), G(y, {
655
+ key: 2,
656
+ items: e.granularityItems,
657
+ "model-value": e.internalRangeDate.granularity,
658
+ "full-width": "",
659
+ "onUpdate:modelValue": e.onGranularityInput
660
+ }, null, 8, ["items", "model-value", "onUpdate:modelValue"])) : _("", !0),
661
+ Q("div", null, [
662
+ H(n, {
663
+ stronger: "",
664
+ el: "span",
665
+ class: "b-date-range-picker-calendar__label"
666
+ }, {
667
+ default: j(() => a[0] || (a[0] = [
668
+ ne(" From ")
669
+ ])),
670
+ _: 1
671
+ }),
672
+ Q("div", {
673
+ class: Ce(e.formInputWrapperConditionalClasses)
674
+ }, [
675
+ H(v, {
676
+ "aria-label": e.t("dateFrom"),
677
+ value: e.dateTextInput.startDate,
678
+ error: e.startDateError,
679
+ class: "b-date-range-picker-calendar__form-input",
680
+ onInput: e.onStartDateInput,
681
+ onKeydown: e.onDateInputKeyDown
682
+ }, {
683
+ description: j(() => a[1] || (a[1] = [
684
+ ne("YYYY-MM-DD")
685
+ ])),
686
+ _: 1
687
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
688
+ e.allowTimeInput ? (A(), G(v, {
689
+ key: 0,
690
+ "aria-label": e.t("timeFrom"),
691
+ value: e.dateTextInput.startTime,
692
+ error: e.startTimeError,
693
+ class: "b-date-range-picker-calendar__form-input",
694
+ onInput: e.onStartTimeInput,
695
+ onKeydown: e.onTimeInputKeyDown
696
+ }, {
697
+ description: j(() => a[2] || (a[2] = [
698
+ ne("HH:MM:SS")
699
+ ])),
700
+ _: 1
701
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : _("", !0)
702
+ ], 2)
703
+ ]),
704
+ Q("div", null, [
705
+ H(n, {
706
+ stronger: "",
707
+ el: "span",
708
+ class: "b-date-range-picker-calendar__label"
709
+ }, {
710
+ default: j(() => a[3] || (a[3] = [
711
+ ne(" To ")
712
+ ])),
713
+ _: 1
714
+ }),
715
+ Q("div", {
716
+ class: Ce(e.formInputWrapperConditionalClasses)
717
+ }, [
718
+ H(v, {
719
+ class: "b-date-range-picker-calendar__form-input",
720
+ "aria-label": e.t("dateTo"),
721
+ value: e.dateTextInput.endDate,
722
+ error: e.endDateError,
723
+ onInput: e.onEndDateInput,
724
+ onKeydown: e.onDateInputKeyDown
725
+ }, {
726
+ description: j(() => a[4] || (a[4] = [
727
+ ne("YYYY-MM-DD")
728
+ ])),
729
+ _: 1
730
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
731
+ e.allowTimeInput ? (A(), G(v, {
732
+ key: 0,
733
+ "aria-label": e.t("timeTo"),
734
+ value: e.dateTextInput.endTime,
735
+ error: e.endTimeError,
736
+ class: "b-date-range-picker-calendar__form-input",
737
+ onInput: e.onEndTimeInput,
738
+ onKeydown: e.onTimeInputKeyDown
739
+ }, {
740
+ description: j(() => a[5] || (a[5] = [
741
+ ne("HH:MM:SS")
742
+ ])),
743
+ _: 1
744
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : _("", !0)
745
+ ], 2)
746
+ ])
747
+ ]),
748
+ e.hasSlot("actions") ? (A(), Me("div", sa, [
749
+ qe(e.$slots, "actions", {}, void 0, !0)
750
+ ])) : _("", !0)
751
+ ]),
752
+ Q("div", la, [
753
+ H(w, {
754
+ value: e.internalRangeDate,
755
+ "first-day-of-week": e.firstDayOfWeek,
756
+ "is-date-disabled": e.isDateDisabled,
757
+ "max-range": e.maxRange,
758
+ min: e.computedMinMax.min,
759
+ max: e.computedMinMax.max,
760
+ "number-of-months": e.numberOfMonths,
761
+ "show-end-date-on-open": e.showEndDateOnOpen,
762
+ granularity: e.selectedGranularity,
763
+ variant: e.variant,
764
+ "is-range": "",
765
+ onInput: e.onDateInput,
766
+ onStartDateSelected: e.onStartDateSelected,
767
+ onEndDateSelected: e.onEndDateSelected
768
+ }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant", "onInput", "onStartDateSelected", "onEndDateSelected"])
769
+ ])
770
+ ]);
771
+ }
772
+ const K = /* @__PURE__ */ st(ta, [["render", oa], ["__scopeId", "data-v-cd1ab02c"]]), ia = ({
773
+ datePickerValue: e,
774
+ isDateIncorrect: a,
775
+ quickSelectRanges: o,
776
+ isMonthVariant: r
777
+ }) => {
778
+ var se, q, R, W;
779
+ const { locale: d, t: f } = Fe(), c = Ae(), y = (m) => !!m && !isNaN(m.getTime()), n = (m, Z) => y(m) ? ue(m, Z, {
780
+ locale: c[d.value.substring(0, 2)] || c.enUS
781
+ }) : void 0, v = he({
782
+ startDate: n((se = e.value) == null ? void 0 : se.startDate, h.NUMERIC_DATE_YEAR_FIRST),
783
+ endDate: n((q = e.value) == null ? void 0 : q.endDate, h.NUMERIC_DATE_YEAR_FIRST),
784
+ startTime: n((R = e.value) == null ? void 0 : R.startDate, h.HOUR_MINUTE_SECONDS),
785
+ endTime: n((W = e.value) == null ? void 0 : W.endDate, h.HOUR_MINUTE_SECONDS)
786
+ });
787
+ return {
788
+ // Values
789
+ dateDisplayValue: S(() => {
790
+ var le;
791
+ if (a.value)
792
+ return `${v.startDate || ""} - ${v.endDate || ""}`;
793
+ if (!e.value || !e.value.startDate && !e.value.endDate)
794
+ return f("selectDateRange");
795
+ if ((le = o.value) != null && le.length) {
796
+ const $ = o.value.find(({ value: F }) => {
797
+ var g;
798
+ return F === ((g = e.value) == null ? void 0 : g.range);
799
+ });
800
+ if ($)
801
+ return $.label;
802
+ }
803
+ if (e.value.granularity === "quarterly") {
804
+ const { startDate: $, endDate: F } = e.value, g = f("quarter", { quarter: He($), year: Ve($) });
805
+ if (Qt($, F))
806
+ return g;
807
+ const ce = f("quarter", { quarter: He(F), year: Ve(F) });
808
+ return `${g} - ${ce}`;
809
+ }
810
+ const { startDate: m, endDate: Z } = v, x = r != null && r.value ? h.LONG_MONTH_YEAR : h.FULL_DATE_MONTH_FIRST;
811
+ return `${n(re(m), x)} - ${n(
812
+ re(Z),
813
+ x
814
+ )}`;
815
+ }),
816
+ textInputDisplayValue: v,
817
+ // Methods
818
+ formatTextInputDisplayValue: () => ""
819
+ };
820
+ };
821
+ var Ee = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(Ee || {});
822
+ const ot = {
823
+ "en-US": {
824
+ apply: "Apply",
825
+ cancel: "Cancel",
826
+ dateRangePicker: "Date range picker {name}",
827
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
828
+ quarter: "Q{quarter} {year}",
829
+ selectDate: "Select a date",
830
+ selectDateRange: "Select a date range",
831
+ selectedDateIsNotAvailable: "Selected date is not available"
832
+ },
833
+ "ja-JP": {
834
+ apply: "適用",
835
+ cancel: "キャンセル",
836
+ selectDate: "日付を選択"
837
+ },
838
+ "pt-BR": {
839
+ apply: "Aplicar",
840
+ cancel: "Cancelar",
841
+ selectDate: "Selecione uma data"
842
+ }
843
+ }, ua = { class: "b-date-range-picker" }, da = { class: "b-date-range-picker__footer" }, ma = {
844
+ i18n: { messages: ot },
845
+ name: "bento-date-range-picker"
846
+ }, ca = /* @__PURE__ */ tt({
847
+ ...ma,
848
+ props: {
849
+ /**
850
+ * Allows user to enter time values in the form
851
+ */
852
+ allowTimeInput: { type: Boolean, default: !1 },
853
+ /**
854
+ * Descriptive supporting text visbile underneath the dropdown.
855
+ */
856
+ description: { type: String, default: void 0 },
857
+ /**
858
+ * Disables dropdown functionality.
859
+ */
860
+ disabled: { type: Boolean, default: !1 },
861
+ /**
862
+ * Displays component in an error state with an error message
863
+ */
864
+ errorMessage: { type: String, default: null },
865
+ /**
866
+ * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
867
+ */
868
+ firstDayOfWeek: K.props.firstDayOfWeek,
869
+ /**
870
+ * A list of available granularities.
871
+ * If present, the date picker will display a segmented control to change granularity.
872
+ */
873
+ granularities: K.props.granularities,
874
+ /**
875
+ * Indicate if a date should be disabled or not
876
+ */
877
+ isDateDisabled: K.props.isDateDisabled,
878
+ /**
879
+ * Text that is displayed as a label above the element.
880
+ */
881
+ label: { type: String, default: void 0 },
882
+ /**
883
+ * Upon opening date range picker, end date's month will be pre-selected.
884
+ */
885
+ showEndDateOnOpen: { type: Boolean, default: !1 },
886
+ /**
887
+ * Highlights the dropdown is optional.
888
+ */
889
+ optional: { type: Boolean, default: !1 },
890
+ /**
891
+ * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
892
+ */
893
+ readonly: { type: Boolean, default: !1 },
894
+ /**
895
+ * Highlights the dropdown is required.
896
+ */
897
+ required: { type: Boolean, default: !1 },
898
+ /**
899
+ * Adds a info icon next to the label to display the passed tooltip message.
900
+ */
901
+ tooltipText: { type: String, default: null },
902
+ /**
903
+ * Enables the range selector.
904
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
905
+ * `label` - label of custom range item.
906
+ * `value` - a unique key of the custom range item.
907
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
908
+ */
909
+ quickSelectRanges: {
910
+ type: Array,
911
+ default: void 0
912
+ },
913
+ /**
914
+ * Set a maximum number of dates to be selectable by the range.
915
+ */
916
+ maxRange: K.props.maxRange,
917
+ /**
918
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
919
+ */
920
+ min: K.props.min,
921
+ /**
922
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
923
+ */
924
+ max: K.props.max,
925
+ /**
926
+ * Number of months rendered on pane
927
+ */
928
+ numberOfMonths: K.props.numberOfMonths,
929
+ /**
930
+ * Selected date
931
+ */
932
+ value: K.props.value,
933
+ /**
934
+ * The type of calendar to display. Defaults to showing days.
935
+ */
936
+ variant: {
937
+ type: String,
938
+ default: void 0
939
+ // Default will be set by @/internal/calendar
940
+ },
941
+ /**
942
+ * Enables the date picker selection to persist until it is explicitly applied.
943
+ * Displays a set of buttons: Apply and Cancel.
944
+ *
945
+ * @deprecated This will be the default behaviour in v2.0.0.
946
+ */
947
+ hasActions: { type: Boolean, default: !1 }
948
+ },
949
+ emits: [Ee.INPUT],
950
+ setup(e, { emit: a }) {
951
+ const o = a, r = e, { locale: d, t: f } = Fe({ messages: ot }), c = Ae(), y = ge("bento-date-range-picker-container"), n = ge("bento-date-range-picker-label"), v = ge("bento-date-range-picker-description"), w = ge("bento-date-range-picker-error"), me = ge("bento-date-range-picker-date-error"), se = S(() => r.label || f("dateRangePicker", { name: y })), q = S(() => (r == null ? void 0 : r.quickSelectRanges) && r.quickSelectRanges.map((D) => {
952
+ const I = D.data.endDate ? void 0 : new Date(Date.now()).getTime() - D.data.startDate.getTime();
953
+ return {
954
+ ...D,
955
+ data: {
956
+ ...D.data,
957
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
958
+ timeDifference: I
959
+ }
960
+ };
961
+ })), R = M(!1), W = M(null), m = M(!1), { isReadOnly: Z } = Nt($e(r, "readonly"));
962
+ ke(
963
+ () => r.disabled,
964
+ () => {
965
+ r.disabled && m.value && (m.value = !1);
966
+ }
967
+ );
968
+ const x = S(() => r.hasActions ? !U.value && R.value : R.value), le = S(() => ({
969
+ "b-date-range-picker__description--error": !!r.errorMessage || x.value
970
+ })), $ = S(() => r.variant === "month"), { dateDisplayValue: F, textInputDisplayValue: g } = ia({
971
+ datePickerValue: $e(r, "value"),
972
+ isDateIncorrect: R,
973
+ quickSelectRanges: q,
974
+ isMonthVariant: $
975
+ }), ce = S(
976
+ () => `${r.description ? v : ""} ${r.errorMessage ? w : ""} ${R.value ? me : ""}`.trim() || null
977
+ ), we = S(() => r.allowTimeInput && r.variant !== "month"), oe = () => {
978
+ m.value = !1;
979
+ }, z = () => {
980
+ m.value = !0;
981
+ }, Te = M(F.value), De = M(
982
+ // textInputDisplayValue is a reactive object
983
+ structuredClone(Oe(g))
984
+ ), b = M(r.value), U = M(!0), ee = S(
985
+ () => r.hasActions ? De.value : g
986
+ ), te = S(
987
+ () => r.hasActions ? Te.value : F.value
988
+ );
989
+ at(() => {
990
+ if (r.hasActions || Ot(
991
+ 'BentoDateRangePicker "hasActions" property',
992
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
993
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
994
+ "2.0.0"
995
+ ), r.granularities && r.variant !== "month" && r.granularities.find(({ type: D }) => D === "quarterly"))
996
+ throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
997
+ }), ke(
998
+ () => r.value,
999
+ () => {
1000
+ Te.value = F.value, De.value = structuredClone(Oe(g));
1001
+ }
1002
+ );
1003
+ const L = S(() => [
1004
+ {
1005
+ title: f("apply"),
1006
+ event: () => {
1007
+ o(Ee.INPUT, b.value), oe(), U.value = !0;
1008
+ },
1009
+ disabled: U.value
1010
+ },
1011
+ {
1012
+ title: f("cancel"),
1013
+ event: oe
1014
+ }
1015
+ ]);
1016
+ ke(b, (D) => {
1017
+ if (r.hasActions) {
1018
+ U.value = R.value;
1019
+ return;
1020
+ }
1021
+ o(Ee.INPUT, D);
1022
+ });
1023
+ const Y = (D) => {
1024
+ R.value = !1;
1025
+ const I = (ae, J) => ae ? ue(ae, J, {
1026
+ locale: c[d.value.substring(0, 2)] || c.enUS
1027
+ }) : void 0;
1028
+ g.startDate = I(D.startDate, h.NUMERIC_DATE_YEAR_FIRST), g.endDate = I(D.endDate, h.NUMERIC_DATE_YEAR_FIRST), g.startTime = I(D.startDate, h.HOUR_MINUTE_SECONDS), g.endTime = I(D.endDate, h.HOUR_MINUTE_SECONDS), b.value = D;
1029
+ }, s = async () => {
1030
+ R.value && (R.value = !1), b.value = null;
1031
+ }, pe = () => {
1032
+ if (!m.value) {
1033
+ m.value = !0;
1034
+ return;
1035
+ }
1036
+ R.value || (m.value = !1);
1037
+ }, be = (D) => {
1038
+ R.value = !1, D.startTime && (g.startTime = D.startTime), D.endTime && (g.endTime = D.endTime);
1039
+ }, ie = (D) => {
1040
+ R.value = !0, g.startDate = D.startDate, g.endDate = D.endDate, b.value = { startDate: null, endDate: null };
1041
+ }, N = (D) => {
1042
+ if (D) {
1043
+ const I = (J, fe) => J ? ue(J, fe, {
1044
+ locale: c[d.value.substring(0, 2)] || c.enUS
1045
+ }) : void 0, ae = (J) => ue(J, h.NUMERIC_DATE_YEAR_FIRST, {
1046
+ locale: c[d.value.substring(0, 2)] || c.enUS
1047
+ });
1048
+ g.startDate = ae(D.startDate), g.endDate = ae(D.endDate), g.startTime = I(
1049
+ D.startDate,
1050
+ h.HOUR_MINUTE_SECONDS
1051
+ ), g.endTime = I(D.endDate, h.HOUR_MINUTE_SECONDS), b.value = D;
1052
+ }
1053
+ };
1054
+ return (D, I) => It((A(), Me("div", ua, [
1055
+ e.label ? (A(), G(p(Yt), {
1056
+ key: 0,
1057
+ id: p(n),
1058
+ label: e.label,
1059
+ "tooltip-text": e.tooltipText,
1060
+ optional: e.optional,
1061
+ required: e.required
1062
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : _("", !0),
1063
+ Q("div", {
1064
+ onKeydown: St(pe, ["enter"])
1065
+ }, [
1066
+ H(p(Lt), {
1067
+ ref_key: "inputContainerRef",
1068
+ ref: W,
1069
+ "always-combobox-is-input": "",
1070
+ ariaControls: p(y),
1071
+ ariaExpanded: m.value,
1072
+ "aria-labelledby": e.label ? p(n) : null,
1073
+ "aria-describedby": ce.value,
1074
+ disabled: e.disabled,
1075
+ "is-invalid": !!e.errorMessage || x.value,
1076
+ open: m.value,
1077
+ "display-value": te.value,
1078
+ readonly: p(Z),
1079
+ onOpen: z,
1080
+ onClear: s,
1081
+ onClose: oe
1082
+ }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly"])
1083
+ ], 32),
1084
+ x.value ? (A(), G(p(Ge), {
1085
+ key: 1,
1086
+ id: p(me),
1087
+ "error-message": p(f)("provideDateInAFormat"),
1088
+ class: "b-date-range-picker__error-message"
1089
+ }, null, 8, ["id", "error-message"])) : _("", !0),
1090
+ e.errorMessage ? (A(), G(p(Ge), {
1091
+ key: 2,
1092
+ id: p(w),
1093
+ "error-message": e.errorMessage,
1094
+ class: "b-date-range-picker__error-message"
1095
+ }, null, 8, ["id", "error-message"])) : _("", !0),
1096
+ e.description ? (A(), G(p(nt), {
1097
+ key: 3,
1098
+ id: p(v),
1099
+ class: Ce(["b-date-range-picker__description", le.value]),
1100
+ el: "span"
1101
+ }, {
1102
+ default: j(() => [
1103
+ ne(Rt(e.description), 1)
1104
+ ]),
1105
+ _: 1
1106
+ }, 8, ["id", "class"])) : _("", !0),
1107
+ W.value ? (A(), G(p(wt), {
1108
+ key: 4,
1109
+ id: p(y),
1110
+ class: "b-date-range-picker__container",
1111
+ open: m.value,
1112
+ "target-element": W.value,
1113
+ "disable-focus-trap": !0,
1114
+ "aria-label": se.value,
1115
+ position: "bottom-start",
1116
+ "without-space": "",
1117
+ "fit-content": ""
1118
+ }, {
1119
+ default: j(() => [
1120
+ H(p(K), {
1121
+ "allow-time-input": we.value,
1122
+ "quick-select-ranges": q.value,
1123
+ value: e.value,
1124
+ "first-day-of-week": e.firstDayOfWeek,
1125
+ granularities: e.granularities,
1126
+ "is-date-disabled": e.isDateDisabled,
1127
+ "max-range": e.maxRange,
1128
+ min: e.min,
1129
+ max: e.max,
1130
+ "number-of-months": e.numberOfMonths,
1131
+ "show-end-date-on-open": e.showEndDateOnOpen,
1132
+ "date-form-data": ee.value,
1133
+ variant: e.variant,
1134
+ onCustomRange: N,
1135
+ onInput: Y,
1136
+ onError: ie,
1137
+ onFormDate: be
1138
+ }, Et({ _: 2 }, [
1139
+ e.hasActions ? {
1140
+ name: "actions",
1141
+ fn: j(() => [
1142
+ H(p(ht)),
1143
+ Q("div", da, [
1144
+ H(p(kt), {
1145
+ actions: L.value,
1146
+ layout: p(Kt).SPACE_BETWEEN
1147
+ }, null, 8, ["actions", "layout"])
1148
+ ])
1149
+ ]),
1150
+ key: "0"
1151
+ } : void 0
1152
+ ]), 1032, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "granularities", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "date-form-data", "variant"])
1153
+ ]),
1154
+ _: 1
1155
+ }, 8, ["id", "open", "target-element", "aria-label"])) : _("", !0)
1156
+ ])), [
1157
+ [p(_t), oe]
1158
+ ]);
1159
+ }
1160
+ }), Na = /* @__PURE__ */ st(ca, [["__scopeId", "data-v-73c96c17"]]);
1161
+ export {
1162
+ Na as B,
1163
+ K as D,
1164
+ Ee as a,
1165
+ jt as b,
1166
+ Re as i
1167
+ };
1168
+ //# sourceMappingURL=date-range-picker.l-CSmXBk.js.map