@adyen/bento-vue3 1.50.0 → 1.52.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 (343) hide show
  1. package/dist/@types/index.d.ts +513 -608
  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/base-modal.css +1 -1
  9. package/dist/assets/button-actions-with-menu.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox-input.css +1 -1
  13. package/dist/assets/checkbox.css +1 -1
  14. package/dist/assets/copy.css +1 -1
  15. package/dist/assets/data-grid.css +1 -1
  16. package/dist/assets/date-picker.css +1 -1
  17. package/dist/assets/date-range-picker.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/file-uploader.css +1 -1
  21. package/dist/assets/filter-bar.css +1 -1
  22. package/dist/assets/form-layout-title.css +1 -1
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/input-field-phone-number.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/menu.css +1 -1
  29. package/dist/assets/modal-fullscreen.css +1 -1
  30. package/dist/assets/pagination.css +1 -1
  31. package/dist/assets/payment-method.css +1 -1
  32. package/dist/assets/popover.css +1 -1
  33. package/dist/assets/search-bar.css +1 -1
  34. package/dist/assets/sidepanel.css +1 -1
  35. package/dist/assets/timeline-item.css +1 -1
  36. package/dist/assets/tutorial.css +1 -1
  37. package/dist/assets/use-cached-selected-values.css +1 -1
  38. package/dist/button.js +3 -3
  39. package/dist/card.js +1 -1
  40. package/dist/checkbox.js +3 -3
  41. package/dist/chip.js +1 -1
  42. package/dist/chunks/{accordion-item.Cf184uiI.js → accordion-item.DLyCF015.js} +2 -2
  43. package/dist/chunks/{accordion-item.Cf184uiI.js.map → accordion-item.DLyCF015.js.map} +1 -1
  44. package/dist/chunks/{action-bar.DkGjsKiy.js → action-bar.eo5EXYmg.js} +7 -7
  45. package/dist/chunks/{action-bar.DkGjsKiy.js.map → action-bar.eo5EXYmg.js.map} +1 -1
  46. package/dist/chunks/{alert.DGewBB2a.js → alert.DEf0borp.js} +45 -44
  47. package/dist/chunks/alert.DEf0borp.js.map +1 -0
  48. package/dist/chunks/{base-modal.gW2mkOwf.js → base-modal.BlC6TZNz.js} +6 -6
  49. package/dist/chunks/{base-modal.gW2mkOwf.js.map → base-modal.BlC6TZNz.js.map} +1 -1
  50. package/dist/chunks/button-actions-with-menu.DQaq1bkf.js +174 -0
  51. package/dist/chunks/button-actions-with-menu.DQaq1bkf.js.map +1 -0
  52. package/dist/chunks/{button-actions.BZEKcCbe.js → button-actions.BvGAE7sw.js} +4 -4
  53. package/dist/chunks/{button-actions.BZEKcCbe.js.map → button-actions.BvGAE7sw.js.map} +1 -1
  54. package/dist/chunks/{button.BXVKUuum.js → button.6HMG0xEY.js} +2 -2
  55. package/dist/chunks/{button.BXVKUuum.js.map → button.6HMG0xEY.js.map} +1 -1
  56. package/dist/chunks/calendar.D2X834TU.js +1252 -0
  57. package/dist/chunks/calendar.D2X834TU.js.map +1 -0
  58. package/dist/chunks/{card.Ec-SR2qG.js → card.IrL_Fw-f.js} +3 -3
  59. package/dist/chunks/{card.Ec-SR2qG.js.map → card.IrL_Fw-f.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.KeIRO8lx.js → checkbox-group.BVJfN48k.js} +4 -4
  61. package/dist/chunks/{checkbox-group.KeIRO8lx.js.map → checkbox-group.BVJfN48k.js.map} +1 -1
  62. package/dist/chunks/{checkbox-input.CAYgiRHG.js → checkbox-input.CgbJsFXD.js} +62 -55
  63. package/dist/chunks/checkbox-input.CgbJsFXD.js.map +1 -0
  64. package/dist/chunks/{checkbox.BllRk82F.js → checkbox.erdZ58Kk.js} +72 -64
  65. package/dist/chunks/checkbox.erdZ58Kk.js.map +1 -0
  66. package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js → checkmark-circle-fill.jicbqe7k.js} +13 -13
  67. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +1 -0
  68. package/dist/chunks/{checkmark-small.BDqUF-Ni.js → checkmark-small.D7l69yBf.js} +4 -4
  69. package/dist/chunks/checkmark-small.D7l69yBf.js.map +1 -0
  70. package/dist/chunks/{chevron-left.CYEK2UTr.js → chevron-left.BF63HtOH.js} +6 -6
  71. package/dist/chunks/chevron-left.BF63HtOH.js.map +1 -0
  72. package/dist/chunks/{chevron-up.Cu9qXgBY.js → chevron-up.-0oLlHmh.js} +6 -6
  73. package/dist/chunks/chevron-up.-0oLlHmh.js.map +1 -0
  74. package/dist/chunks/chip.3T0x6FuI.js +74 -0
  75. package/dist/chunks/chip.3T0x6FuI.js.map +1 -0
  76. package/dist/chunks/{code-snippet.DfTfz3vU.js → code-snippet.Bb4_r0C8.js} +7 -7
  77. package/dist/chunks/{code-snippet.DfTfz3vU.js.map → code-snippet.Bb4_r0C8.js.map} +1 -1
  78. package/dist/chunks/{controls-group.BnbQO34k.js → controls-group.BaDhGB9H.js} +2 -2
  79. package/dist/chunks/{controls-group.BnbQO34k.js.map → controls-group.BaDhGB9H.js.map} +1 -1
  80. package/dist/chunks/{copy.DAu8GrR9.js → copy.gmSTAqHY.js} +10 -9
  81. package/dist/chunks/copy.gmSTAqHY.js.map +1 -0
  82. package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js → cross-circle-fill-small.mY6ihJcA.js} +4 -4
  83. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +1 -0
  84. package/dist/chunks/cross-circle-fill.B7YpDLTK.js +44 -0
  85. package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +1 -0
  86. package/dist/chunks/{cross-small.Z5EKYRm0.js → cross-small.CFrBIeYK.js} +4 -4
  87. package/dist/chunks/cross-small.CFrBIeYK.js.map +1 -0
  88. package/dist/chunks/{cross.BZYw4R3N.js → cross.CbLEjiVy.js} +4 -4
  89. package/dist/chunks/cross.CbLEjiVy.js.map +1 -0
  90. package/dist/chunks/{dashboard-section.pyg05_v_.js → dashboard-section.MAHmbUDG.js} +4 -4
  91. package/dist/chunks/{dashboard-section.pyg05_v_.js.map → dashboard-section.MAHmbUDG.js.map} +1 -1
  92. package/dist/chunks/{dashed-underline.DTZGLrPu.js → dashed-underline.DY8xR9GH.js} +3 -3
  93. package/dist/chunks/{dashed-underline.DTZGLrPu.js.map → dashed-underline.DY8xR9GH.js.map} +1 -1
  94. package/dist/chunks/{data-grid-template.sUNqCvbt.js → data-grid-template.Dievz913.js} +3 -3
  95. package/dist/chunks/{data-grid-template.sUNqCvbt.js.map → data-grid-template.Dievz913.js.map} +1 -1
  96. package/dist/chunks/{data-grid.BNXoMZf9.js → data-grid.KZqjmRvk.js} +956 -976
  97. package/dist/chunks/data-grid.KZqjmRvk.js.map +1 -0
  98. package/dist/chunks/{date-picker.DgpHNnu_.js → date-picker.BWJYkSmo.js} +123 -100
  99. package/dist/chunks/date-picker.BWJYkSmo.js.map +1 -0
  100. package/dist/chunks/date-range-picker.1Vbf9Zk8.js +1107 -0
  101. package/dist/chunks/date-range-picker.1Vbf9Zk8.js.map +1 -0
  102. package/dist/chunks/{date.Cvfyq77s.js → date.DoJuTLhO.js} +17 -17
  103. package/dist/chunks/{date.Cvfyq77s.js.map → date.DoJuTLhO.js.map} +1 -1
  104. package/dist/chunks/{dialog-page.DK2UKGH8.js → dialog-page.CXQafL9G.js} +5 -4
  105. package/dist/chunks/dialog-page.CXQafL9G.js.map +1 -0
  106. package/dist/chunks/{dot.cpdFEk6G.js → dot.BW-xtyjC.js} +4 -4
  107. package/dist/chunks/dot.BW-xtyjC.js.map +1 -0
  108. package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js → dropdown-default-textbox.CwsgzDpx.js} +4 -4
  109. package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js.map → dropdown-default-textbox.CwsgzDpx.js.map} +1 -1
  110. package/dist/chunks/{dropdown-tag.DqfoOcUU.js → dropdown-tag.C9nM0YHC.js} +4 -4
  111. package/dist/chunks/{dropdown-tag.DqfoOcUU.js.map → dropdown-tag.C9nM0YHC.js.map} +1 -1
  112. package/dist/chunks/{dropdown.a8OeeVAZ.js → dropdown.qw5oXFYs.js} +268 -259
  113. package/dist/chunks/dropdown.qw5oXFYs.js.map +1 -0
  114. package/dist/chunks/{empty-state.DkYtiTHG.js → empty-state.BffIZp3a.js} +2 -2
  115. package/dist/chunks/{empty-state.DkYtiTHG.js.map → empty-state.BffIZp3a.js.map} +1 -1
  116. package/dist/chunks/{error-message.B3z5WkLF.js → error-message.DAjisbU1.js} +3 -3
  117. package/dist/chunks/{error-message.B3z5WkLF.js.map → error-message.DAjisbU1.js.map} +1 -1
  118. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  119. package/dist/chunks/{expand.CJ162RaJ.js → expand.DusW7F7p.js} +4 -4
  120. package/dist/chunks/expand.DusW7F7p.js.map +1 -0
  121. package/dist/chunks/{file-uploader.DV4I5Lvf.js → file-uploader.BLJpDgAZ.js} +57 -56
  122. package/dist/chunks/file-uploader.BLJpDgAZ.js.map +1 -0
  123. package/dist/chunks/filter-bar.DYrXBQDF.js +2754 -0
  124. package/dist/chunks/filter-bar.DYrXBQDF.js.map +1 -0
  125. package/dist/chunks/{fixed-scroller.B4Eag_Sd.js → fixed-scroller.Bfk75Nei.js} +3 -3
  126. package/dist/chunks/{fixed-scroller.B4Eag_Sd.js.map → fixed-scroller.Bfk75Nei.js.map} +1 -1
  127. package/dist/chunks/{focus-trap.DPJj05sV.js → focus-trap.DMgm-9f7.js} +2 -2
  128. package/dist/chunks/{focus-trap.DPJj05sV.js.map → focus-trap.DMgm-9f7.js.map} +1 -1
  129. package/dist/chunks/{footer-actions.WvWwFKM8.js → footer-actions.DK3pMfDY.js} +3 -3
  130. package/dist/chunks/{footer-actions.WvWwFKM8.js.map → footer-actions.DK3pMfDY.js.map} +1 -1
  131. package/dist/chunks/{form-layout-title.BHL_MDqT.js → form-layout-title.BWCOZyay.js} +62 -60
  132. package/dist/chunks/form-layout-title.BWCOZyay.js.map +1 -0
  133. package/dist/chunks/header.BASKzNwu.js +234 -0
  134. package/dist/chunks/header.BASKzNwu.js.map +1 -0
  135. package/dist/chunks/index.BDuTpjD8.js +40 -0
  136. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  137. package/dist/chunks/index.BxBB1rsx.js +15 -0
  138. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  139. package/dist/chunks/{index.BS3BeXQJ.js → index.CMGT-6mh.js} +2 -1
  140. package/dist/chunks/{index.BS3BeXQJ.js.map → index.CMGT-6mh.js.map} +1 -1
  141. package/dist/chunks/index.DD7TppDb.js +10 -0
  142. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  143. package/dist/chunks/{info-icon-with-popover.BM0esxKN.js → info-icon-with-popover.BJccyOFx.js} +3 -3
  144. package/dist/chunks/{info-icon-with-popover.BM0esxKN.js.map → info-icon-with-popover.BJccyOFx.js.map} +1 -1
  145. package/dist/chunks/{info-icon.DQn8-VSp.js → info-icon.L8AexnZg.js} +3 -3
  146. package/dist/chunks/{info-icon.DQn8-VSp.js.map → info-icon.L8AexnZg.js.map} +1 -1
  147. package/dist/chunks/{info.DYNe2WnZ.js → info.HK3R7Drc.js} +11 -11
  148. package/dist/chunks/info.HK3R7Drc.js.map +1 -0
  149. package/dist/chunks/{input-field-password.Bo7FiAOq.js → input-field-password.CZNUHo6s.js} +93 -90
  150. package/dist/chunks/input-field-password.CZNUHo6s.js.map +1 -0
  151. package/dist/chunks/{input-field-phone-number.DO2uU2XW.js → input-field-phone-number.D1zlBh3R.js} +348 -345
  152. package/dist/chunks/{input-field-phone-number.DO2uU2XW.js.map → input-field-phone-number.D1zlBh3R.js.map} +1 -1
  153. package/dist/chunks/input-field.DqMdqM2u.js +298 -0
  154. package/dist/chunks/input-field.DqMdqM2u.js.map +1 -0
  155. package/dist/chunks/{inspector.types.Io6ONte7.js → inspector.types.Dwt3V80X.js} +6 -6
  156. package/dist/chunks/{inspector.types.Io6ONte7.js.map → inspector.types.Dwt3V80X.js.map} +1 -1
  157. package/dist/chunks/{layout-row.BAz7JrXo.js → layout-row.Drm_y8e3.js} +2 -2
  158. package/dist/chunks/{layout-row.BAz7JrXo.js.map → layout-row.Drm_y8e3.js.map} +1 -1
  159. package/dist/chunks/{link.CyGCtpse.js → link.D3Fq5tt_.js} +15 -13
  160. package/dist/chunks/link.D3Fq5tt_.js.map +1 -0
  161. package/dist/chunks/{listbox-option-tag.DIk4F59J.js → listbox-option-tag.YSvtcy4P.js} +2 -2
  162. package/dist/chunks/{listbox-option-tag.DIk4F59J.js.map → listbox-option-tag.YSvtcy4P.js.map} +1 -1
  163. package/dist/chunks/menu.DfzP2nRU.js +735 -0
  164. package/dist/chunks/menu.DfzP2nRU.js.map +1 -0
  165. package/dist/chunks/{modal-fullscreen.D1gvJFag.js → modal-fullscreen.T1x_vroe.js} +6 -6
  166. package/dist/chunks/{modal-fullscreen.D1gvJFag.js.map → modal-fullscreen.T1x_vroe.js.map} +1 -1
  167. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js → modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js} +5 -5
  168. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js.map → modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js.map} +1 -1
  169. package/dist/chunks/{pagination.CGS6fGUm.js → pagination.Bt8DNme-.js} +37 -36
  170. package/dist/chunks/pagination.Bt8DNme-.js.map +1 -0
  171. package/dist/chunks/payment-method.CLUppDo_.js +125 -0
  172. package/dist/chunks/payment-method.CLUppDo_.js.map +1 -0
  173. package/dist/chunks/{popover.BNOfWuSb.js → popover.COzLcAET.js} +27 -20
  174. package/dist/chunks/{popover.BNOfWuSb.js.map → popover.COzLcAET.js.map} +1 -1
  175. package/dist/chunks/{popper-container.BvGYgqiE.js → popper-container.CEtaux25.js} +448 -444
  176. package/dist/chunks/popper-container.CEtaux25.js.map +1 -0
  177. package/dist/chunks/{promo-banner.BUtq-2iR.js → promo-banner.BCpw2tDD.js} +3 -3
  178. package/dist/chunks/{promo-banner.BUtq-2iR.js.map → promo-banner.BCpw2tDD.js.map} +1 -1
  179. package/dist/chunks/{radio-group.CivaJaaQ.js → radio-group.rxg-4rF_.js} +4 -4
  180. package/dist/chunks/{radio-group.CivaJaaQ.js.map → radio-group.rxg-4rF_.js.map} +1 -1
  181. package/dist/chunks/{refresh.SzRxQ44W.js → refresh.C20ROVDS.js} +4 -4
  182. package/dist/chunks/refresh.C20ROVDS.js.map +1 -0
  183. package/dist/chunks/search-bar.DlihXfPt.js +114 -0
  184. package/dist/chunks/search-bar.DlihXfPt.js.map +1 -0
  185. package/dist/chunks/{search.KgjmJMHa.js → search.CW_aTqip.js} +15 -15
  186. package/dist/chunks/search.CW_aTqip.js.map +1 -0
  187. package/dist/chunks/{secondary-nav.C6D6dcs6.js → secondary-nav.D2loVonk.js} +3 -3
  188. package/dist/chunks/{secondary-nav.C6D6dcs6.js.map → secondary-nav.D2loVonk.js.map} +1 -1
  189. package/dist/chunks/{segmented-control.DKWpxDho.js → segmented-control.Wn-miTIl.js} +2 -2
  190. package/dist/chunks/{segmented-control.DKWpxDho.js.map → segmented-control.Wn-miTIl.js.map} +1 -1
  191. package/dist/chunks/{selection-card-group.DzwIeKQC.js → selection-card-group.CtQaeZFM.js} +12 -12
  192. package/dist/chunks/{selection-card-group.DzwIeKQC.js.map → selection-card-group.CtQaeZFM.js.map} +1 -1
  193. package/dist/chunks/{show.J9zXGWlK.js → show.ByWWaogc.js} +6 -6
  194. package/dist/chunks/show.ByWWaogc.js.map +1 -0
  195. package/dist/chunks/{sidepanel.DzF1iCZM.js → sidepanel.CjaHQEin.js} +6 -6
  196. package/dist/chunks/{sidepanel.DzF1iCZM.js.map → sidepanel.CjaHQEin.js.map} +1 -1
  197. package/dist/chunks/{step.DsfmsUU6.js → step.BGFaHGFO.js} +3 -3
  198. package/dist/chunks/{step.DsfmsUU6.js.map → step.BGFaHGFO.js.map} +1 -1
  199. package/dist/chunks/{structured-list-item.DQHvIbQo.js → structured-list-item.DAwADFpI.js} +6 -6
  200. package/dist/chunks/{structured-list-item.DQHvIbQo.js.map → structured-list-item.DAwADFpI.js.map} +1 -1
  201. package/dist/chunks/{summary-grid-item-custom.D6s8sw36.js → summary-grid-item-custom.DTCzOBBy.js} +4 -4
  202. package/dist/chunks/{summary-grid-item-custom.D6s8sw36.js.map → summary-grid-item-custom.DTCzOBBy.js.map} +1 -1
  203. package/dist/chunks/{tabs.CiTn85aw.js → tabs.hp52NnXH.js} +2 -2
  204. package/dist/chunks/{tabs.CiTn85aw.js.map → tabs.hp52NnXH.js.map} +1 -1
  205. package/dist/chunks/{tag.Bmw9RaOG.js → tag.B1hW92hG.js} +2 -2
  206. package/dist/chunks/{tag.Bmw9RaOG.js.map → tag.B1hW92hG.js.map} +1 -1
  207. package/dist/chunks/{textarea.CzuRg2pM.js → textarea.DMA29yQA.js} +4 -4
  208. package/dist/chunks/{textarea.CzuRg2pM.js.map → textarea.DMA29yQA.js.map} +1 -1
  209. package/dist/chunks/{timeline-item.CjltBKy0.js → timeline-item.kWg3dTy1.js} +15 -13
  210. package/dist/chunks/timeline-item.kWg3dTy1.js.map +1 -0
  211. package/dist/chunks/{toast.BWxPbCOy.js → toast.7D23cICy.js} +3 -3
  212. package/dist/chunks/{toast.BWxPbCOy.js.map → toast.7D23cICy.js.map} +1 -1
  213. package/dist/chunks/{toggle-button.B9LWddx9.js → toggle-button.7iAfO6Xx.js} +2 -2
  214. package/dist/chunks/{toggle-button.B9LWddx9.js.map → toggle-button.7iAfO6Xx.js.map} +1 -1
  215. package/dist/chunks/{toggle.BmwlaQon.js → toggle.hoD_i2Ey.js} +2 -2
  216. package/dist/chunks/{toggle.BmwlaQon.js.map → toggle.hoD_i2Ey.js.map} +1 -1
  217. package/dist/chunks/{tooltip.DS1ok8gh.js → tooltip.Y730-n-n.js} +2 -2
  218. package/dist/chunks/{tooltip.DS1ok8gh.js.map → tooltip.Y730-n-n.js.map} +1 -1
  219. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js → tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js} +11 -10
  220. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js.map +1 -0
  221. package/dist/chunks/use-cached-selected-values.DDP7LJoI.js +1446 -0
  222. package/dist/chunks/use-cached-selected-values.DDP7LJoI.js.map +1 -0
  223. package/dist/chunks/{warning-filled.tTkVob0l.js → warning-filled.DmHh0nYG.js} +4 -4
  224. package/dist/chunks/warning-filled.DmHh0nYG.js.map +1 -0
  225. package/dist/code-snippet.js +1 -1
  226. package/dist/dashboard-template.js +1 -1
  227. package/dist/dashed-underline.js +1 -1
  228. package/dist/data-grid-template.js +1 -1
  229. package/dist/data-grid.js +1 -1
  230. package/dist/date-picker.js +2 -2
  231. package/dist/date-range-picker.js +2 -2
  232. package/dist/date.js +1 -1
  233. package/dist/dropdown.js +4 -4
  234. package/dist/empty-state.js +1 -1
  235. package/dist/file-uploader.js +1 -1
  236. package/dist/filter-bar.js +1 -1
  237. package/dist/focus-trap.js +1 -1
  238. package/dist/form-layout.js +1 -1
  239. package/dist/header.js +1 -1
  240. package/dist/index.js +61 -61
  241. package/dist/info-icon.js +1 -1
  242. package/dist/input-field-password.js +1 -1
  243. package/dist/input-field-phone-number.js +1 -1
  244. package/dist/input-field.js +1 -1
  245. package/dist/inspector.js +1 -1
  246. package/dist/internal.js +35 -33
  247. package/dist/layout.js +1 -1
  248. package/dist/link.js +1 -1
  249. package/dist/menu.js +1 -1
  250. package/dist/modal-fullscreen.js +1 -1
  251. package/dist/modal.js +2 -2
  252. package/dist/pagination.js +1 -1
  253. package/dist/payment-method.js +1 -1
  254. package/dist/popover.js +1 -1
  255. package/dist/popper-container.js +1 -1
  256. package/dist/promo-banner.js +1 -1
  257. package/dist/radio-group.js +1 -1
  258. package/dist/search-bar.js +2 -2
  259. package/dist/secondary-nav.js +1 -1
  260. package/dist/segmented-control.js +1 -1
  261. package/dist/selection-card.js +1 -1
  262. package/dist/sidepanel.js +1 -1
  263. package/dist/stepper.js +1 -1
  264. package/dist/structured-list.js +1 -1
  265. package/dist/styles/bento-dark.css +30 -4
  266. package/dist/styles/bento-light.css +30 -4
  267. package/dist/styles/bento.css +30 -4
  268. package/dist/styles/legacy.css +32 -6
  269. package/dist/styles/styleguide.css +30 -4
  270. package/dist/styles/utility.css +2 -2
  271. package/dist/summary-grid.js +1 -1
  272. package/dist/tabs.js +1 -1
  273. package/dist/tag.js +1 -1
  274. package/dist/textarea.js +1 -1
  275. package/dist/timeline.js +1 -1
  276. package/dist/toast.js +1 -1
  277. package/dist/toggle.js +1 -1
  278. package/dist/tutorial.js +1 -1
  279. package/dist/web-types.json +1 -1
  280. package/package.json +6 -6
  281. package/dist/chunks/alert.DGewBB2a.js.map +0 -1
  282. package/dist/chunks/button-actions-with-menu.BXRKkFiw.js +0 -119
  283. package/dist/chunks/button-actions-with-menu.BXRKkFiw.js.map +0 -1
  284. package/dist/chunks/calendar.DNQlLbkK.js +0 -971
  285. package/dist/chunks/calendar.DNQlLbkK.js.map +0 -1
  286. package/dist/chunks/checkbox-input.CAYgiRHG.js.map +0 -1
  287. package/dist/chunks/checkbox.BllRk82F.js.map +0 -1
  288. package/dist/chunks/checkmark-circle-fill.g_tcBhFJ.js.map +0 -1
  289. package/dist/chunks/checkmark-small.BDqUF-Ni.js.map +0 -1
  290. package/dist/chunks/chevron-left.CYEK2UTr.js.map +0 -1
  291. package/dist/chunks/chevron-up.Cu9qXgBY.js.map +0 -1
  292. package/dist/chunks/chip.sG_6gh3Z.js +0 -71
  293. package/dist/chunks/chip.sG_6gh3Z.js.map +0 -1
  294. package/dist/chunks/copy.DAu8GrR9.js.map +0 -1
  295. package/dist/chunks/cross-circle-fill-small.CJyARMSZ.js.map +0 -1
  296. package/dist/chunks/cross-circle-fill.BzSjakuO.js +0 -44
  297. package/dist/chunks/cross-circle-fill.BzSjakuO.js.map +0 -1
  298. package/dist/chunks/cross-small.Z5EKYRm0.js.map +0 -1
  299. package/dist/chunks/cross.BZYw4R3N.js.map +0 -1
  300. package/dist/chunks/data-grid.BNXoMZf9.js.map +0 -1
  301. package/dist/chunks/date-picker.DgpHNnu_.js.map +0 -1
  302. package/dist/chunks/date-range-picker.CUIOfxjB.js +0 -1086
  303. package/dist/chunks/date-range-picker.CUIOfxjB.js.map +0 -1
  304. package/dist/chunks/dialog-page.DK2UKGH8.js.map +0 -1
  305. package/dist/chunks/dot.cpdFEk6G.js.map +0 -1
  306. package/dist/chunks/dropdown.a8OeeVAZ.js.map +0 -1
  307. package/dist/chunks/expand.CJ162RaJ.js.map +0 -1
  308. package/dist/chunks/file-uploader.DV4I5Lvf.js.map +0 -1
  309. package/dist/chunks/filter-bar.BZkXUVLH.js +0 -2865
  310. package/dist/chunks/filter-bar.BZkXUVLH.js.map +0 -1
  311. package/dist/chunks/form-layout-title.BHL_MDqT.js.map +0 -1
  312. package/dist/chunks/header.CRC9X7v2.js +0 -256
  313. package/dist/chunks/header.CRC9X7v2.js.map +0 -1
  314. package/dist/chunks/index.CrhTVr5J.js +0 -10
  315. package/dist/chunks/index.CrhTVr5J.js.map +0 -1
  316. package/dist/chunks/index.DDnf1O9p.js +0 -22
  317. package/dist/chunks/index.DDnf1O9p.js.map +0 -1
  318. package/dist/chunks/index.DPafeRJa.js +0 -10
  319. package/dist/chunks/index.DPafeRJa.js.map +0 -1
  320. package/dist/chunks/info.DYNe2WnZ.js.map +0 -1
  321. package/dist/chunks/input-field-password.Bo7FiAOq.js.map +0 -1
  322. package/dist/chunks/input-field.rgA0t2sp.js +0 -382
  323. package/dist/chunks/input-field.rgA0t2sp.js.map +0 -1
  324. package/dist/chunks/link.CyGCtpse.js.map +0 -1
  325. package/dist/chunks/menu.DKluB_Dn.js +0 -699
  326. package/dist/chunks/menu.DKluB_Dn.js.map +0 -1
  327. package/dist/chunks/pagination.CGS6fGUm.js.map +0 -1
  328. package/dist/chunks/payment-method.CGNHCiy1.js +0 -73
  329. package/dist/chunks/payment-method.CGNHCiy1.js.map +0 -1
  330. package/dist/chunks/popper-container.BvGYgqiE.js.map +0 -1
  331. package/dist/chunks/refresh.SzRxQ44W.js.map +0 -1
  332. package/dist/chunks/search-bar.Zdai5UhB.js +0 -132
  333. package/dist/chunks/search-bar.Zdai5UhB.js.map +0 -1
  334. package/dist/chunks/search.KgjmJMHa.js.map +0 -1
  335. package/dist/chunks/show.J9zXGWlK.js.map +0 -1
  336. package/dist/chunks/timeline-item.CjltBKy0.js.map +0 -1
  337. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  338. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  339. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js.map +0 -1
  340. package/dist/chunks/use-cached-selected-values.CxAhnNa6.js +0 -1595
  341. package/dist/chunks/use-cached-selected-values.CxAhnNa6.js.map +0 -1
  342. package/dist/chunks/warning-filled.tTkVob0l.js.map +0 -1
  343. /package/dist/assets/{cross.css → main.css} +0 -0
@@ -0,0 +1,1107 @@
1
+ import { reactive as De, defineComponent as We, computed as b, ref as _, onMounted as je, toRaw as Te, resolveComponent as E, createElementBlock as be, openBlock as O, createElementVNode as N, createCommentVNode as U, renderSlot as Ae, createBlock as L, createVNode as V, withCtx as $, createTextVNode as X, normalizeClass as Ie, toRef as ge, watch as ye, resolveDirective as oa, withDirectives as sa, withKeys as la, toDisplayString as ia, createSlots as da } from "vue";
2
+ import { B as ua } from "./divider.qUOSAbU6.js";
3
+ import { B as ma } from "./popover.COzLcAET.js";
4
+ import { B as qe, d as ca } from "./typography.DN5eC5ch.js";
5
+ import { r as x, t as oe, g as Re } from "./get-date-locale.BN8xEjY0.js";
6
+ import { g as ie } from "./generate-uid.NJ8tVoha.js";
7
+ import { u as ke } from "./i18n.D9azDLPe.js";
8
+ import { t as Se, f as de } from "./date.DoJuTLhO.js";
9
+ import { i as Z, e as re, f as _e, g as Da, h as Ue, j as fa, s as Fe, k as pa, l as va, a as q, u as ga } from "./calendar.D2X834TU.js";
10
+ import { f as Be, v as ya, D as h } from "./date-input.BqBdAO1E.js";
11
+ import { u as Ta } from "./use-form-layout-loading.D3lALhtC.js";
12
+ import { B as ba } from "./directive.O3yEdalv.js";
13
+ import "./events.FNmSWp_P.js";
14
+ import { B as Ia } from "./input-field.DqMdqM2u.js";
15
+ import { B as Ra } from "./dropdown.qw5oXFYs.js";
16
+ import { B as ka } from "./segmented-control.Wn-miTIl.js";
17
+ import { d as me } from "./debounce.DUTu11PS.js";
18
+ import { u as Sa } from "./use-has-slot.B7eQSabc.js";
19
+ import { e as z, a as Pe } from "./index.BDuTpjD8.js";
20
+ import { _ as ze } from "./_plugin-vue_export-helper.CHgC5LLL.js";
21
+ import { D as Ea } from "./dropdown-default-textbox.CwsgzDpx.js";
22
+ import { F as ha, E as wa } from "./error-message.DAjisbU1.js";
23
+ import { B as Oa, c as Ma } from "./button-actions.BvGAE7sw.js";
24
+ import "../assets/date-range-picker.css";
25
+ function Ca(e, t) {
26
+ x(2, arguments);
27
+ var d = oe(e), i = oe(t);
28
+ return d.getTime() === i.getTime();
29
+ }
30
+ function Ne(e) {
31
+ x(1, arguments);
32
+ var t = oe(e);
33
+ return t.setMilliseconds(0), t;
34
+ }
35
+ function $e(e, t) {
36
+ x(2, arguments);
37
+ var d = Ne(e), i = Ne(t);
38
+ return d.getTime() === i.getTime();
39
+ }
40
+ function Aa(e) {
41
+ return x(1, arguments), Z(e, Date.now());
42
+ }
43
+ function _a(e, t) {
44
+ x(2, arguments);
45
+ var d = oe(e), i = Se(t);
46
+ return d.setHours(i), d;
47
+ }
48
+ function Ua(e, t) {
49
+ x(2, arguments);
50
+ var d = oe(e), i = Se(t);
51
+ return d.setMinutes(i), d;
52
+ }
53
+ function Fa(e, t) {
54
+ x(2, arguments);
55
+ var d = oe(e), i = Se(t);
56
+ return d.setSeconds(i), d;
57
+ }
58
+ function fe(e) {
59
+ if (e == null)
60
+ return re(/* @__PURE__ */ new Date());
61
+ const [t, d, i] = e.split("-").map((u) => parseInt(u, 10));
62
+ return new Date(t, d - 1, i);
63
+ }
64
+ const Ba = ({
65
+ firstDayOfWeek: e,
66
+ min: t,
67
+ max: d
68
+ }) => ({ getGranularCalendarLimits: (u) => {
69
+ let m = re(t), n = z(d);
70
+ if ((u == null ? void 0 : u.type) === "weekly") {
71
+ if (u.earliest)
72
+ m = re(u.earliest);
73
+ else {
74
+ const c = _e(m, { weekStartsOn: e });
75
+ Z(m, c) || (m = re(Da(Ue(m, { weekStartsOn: e }), 1)));
76
+ }
77
+ if (u.latest)
78
+ n = z(u.latest);
79
+ else {
80
+ const c = Ue(n, { weekStartsOn: e });
81
+ Z(n, c) || (n = z(fa(_e(n, { weekStartsOn: e }), 1)));
82
+ }
83
+ }
84
+ if ((u == null ? void 0 : u.type) === "monthly") {
85
+ if (u.earliest)
86
+ m = re(u.earliest);
87
+ else {
88
+ const c = Fe(m);
89
+ Z(m, c) || (m = Fe(pa(m, 1)));
90
+ }
91
+ if (u.latest)
92
+ n = z(u.latest);
93
+ else {
94
+ const c = Pe(n);
95
+ Z(n, c) || (n = Pe(va(n, 1)));
96
+ }
97
+ }
98
+ return { min: m, max: n };
99
+ } }), Pa = () => {
100
+ const e = De({
101
+ daily: null,
102
+ weekly: null,
103
+ monthly: null
104
+ });
105
+ return {
106
+ savedRanges: e,
107
+ saveRange: (i, u) => {
108
+ e[i] = u;
109
+ },
110
+ resetSavedRanges: () => {
111
+ e.daily = null, e.weekly = null, e.monthly = null;
112
+ }
113
+ };
114
+ };
115
+ var p = /* @__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))(p || {});
116
+ const Na = /[\d]/, $a = /^\d{2}$/, La = /^\d{2}:\d{2}$/, Va = (e) => {
117
+ const { selectionStart: t } = e.target, d = Na.test(e.key) || e.key === "Backspace" || e.key === "Tab", i = [1, 2, 4, 5].includes(t) && e.key === ":";
118
+ !d && !i && e.preventDefault();
119
+ }, Le = (e) => {
120
+ if (!e)
121
+ return e;
122
+ let t = e;
123
+ if (t.length === 1 && parseInt(e, 10) > 2)
124
+ return `0${t}:`;
125
+ const [d, i] = t.slice(-2);
126
+ return [2, 5].includes(t.length) && i === ":" && (t = `${t.slice(0, t.length - 2)}0${d}`), ($a.test(t) || La.test(t)) && (t += ":"), t;
127
+ }, Ve = {
128
+ "en-US": {
129
+ customRange: "Custom range",
130
+ daily: "Daily",
131
+ dateFrom: "Date from",
132
+ dateTo: "Date to",
133
+ lastMonth: "Last month",
134
+ lastSevenDays: "Last 7 days",
135
+ lastThreeMonths: "Last three months",
136
+ monthly: "Monthly",
137
+ timeFrom: "Time from",
138
+ timeTo: "Time to",
139
+ weekly: "Weekly"
140
+ },
141
+ "ja-JP": {
142
+ customRange: "カスタム範囲を選択",
143
+ daily: "毎日",
144
+ lastMonth: "先月",
145
+ lastSevenDays: "過去7日間",
146
+ monthly: "毎月",
147
+ weekly: "毎週"
148
+ },
149
+ "pt-BR": {
150
+ customRange: "Selecione um intervalo personalizado",
151
+ daily: "Diário",
152
+ lastMonth: "Último mês",
153
+ lastSevenDays: "Últimos 7 dias",
154
+ monthly: "Mensal",
155
+ weekly: "Semanal"
156
+ }
157
+ }, Ye = 300, Ke = "customRange", Ge = "daily", Ya = We({
158
+ i18n: { messages: Ve },
159
+ name: "date-range-picker-calendar",
160
+ components: {
161
+ BentoDropdown: Ra,
162
+ BentoInputField: Ia,
163
+ BentoSegmentedControl: ka,
164
+ BentoTypography: qe,
165
+ Calendar: q
166
+ },
167
+ props: {
168
+ /**
169
+ * Allows user to enter time values in the form
170
+ */
171
+ allowTimeInput: { type: Boolean, default: !1 },
172
+ /**
173
+ * Ranges form persistance data
174
+ */
175
+ dateFormData: {
176
+ type: Object,
177
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
178
+ },
179
+ /**
180
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
181
+ */
182
+ firstDayOfWeek: q.props.firstDayOfWeek,
183
+ /**
184
+ * A list of available granularities.
185
+ * If present, the date picker will display a segmented control to change granularity.
186
+ */
187
+ granularities: {
188
+ type: Array,
189
+ default: null
190
+ },
191
+ /**
192
+ * Indicate if a date should be disabled or not
193
+ */
194
+ isDateDisabled: q.props.isDateDisabled,
195
+ /**
196
+ * Set a maximum number of dates to be selectable by the range.
197
+ */
198
+ maxRange: q.props.maxRange,
199
+ /**
200
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
201
+ */
202
+ min: q.props.min,
203
+ /**
204
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
205
+ */
206
+ max: q.props.max,
207
+ /**
208
+ * Number of months rendered on pane
209
+ */
210
+ numberOfMonths: q.props.numberOfMonths,
211
+ /**
212
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
213
+ */
214
+ showEndDateOnOpen: { type: Boolean, default: !1 },
215
+ /**
216
+ * Enables the custom range selector.
217
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
218
+ * `label` - label of custom range item.
219
+ * `value` - a unique key of the custom range item.
220
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
221
+ */
222
+ quickSelectRanges: {
223
+ type: Array,
224
+ default: void 0
225
+ },
226
+ /**
227
+ * Selected date
228
+ */
229
+ value: { type: Object, default: void 0 },
230
+ /**
231
+ * The type of calendar to display. Defaults to showing days.
232
+ */
233
+ variant: q.props.variant
234
+ },
235
+ emits: [
236
+ p.CUSTOM_RANGE,
237
+ p.INPUT,
238
+ p.ERROR,
239
+ p.FORM_DATE,
240
+ p.START_DATE_SELECTED
241
+ ],
242
+ setup(e, { emit: t, slots: d }) {
243
+ var we, Oe, Me, Ce;
244
+ const { locale: i, t: u } = ke({ messages: Ve }), m = Re(), n = De({
245
+ startDate: (we = e.value) == null ? void 0 : we.startDate,
246
+ endDate: (Oe = e.value) == null ? void 0 : Oe.endDate,
247
+ range: (Me = e.value) == null ? void 0 : Me.range,
248
+ ...e.granularities ? {
249
+ granularity: ((Ce = e.value) == null ? void 0 : Ce.granularity) || Ge
250
+ } : {}
251
+ });
252
+ function c(a) {
253
+ return new Date(
254
+ a.getUTCFullYear(),
255
+ a.getUTCMonth(),
256
+ a.getUTCDate(),
257
+ a.getUTCHours(),
258
+ a.getUTCMinutes(),
259
+ a.getUTCSeconds()
260
+ );
261
+ }
262
+ const D = b(() => {
263
+ var a, r;
264
+ return ((r = (a = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : a.find(({ value: s, data: l }) => {
265
+ if (!l.endDate)
266
+ return s === n.range || Ca(
267
+ c(l.startDate),
268
+ c(n.startDate)
269
+ ) && Aa(n.endDate);
270
+ if (e.allowTimeInput)
271
+ return $e(
272
+ c(l.startDate),
273
+ c(n.startDate)
274
+ ) && $e(c(l.endDate), c(n.endDate));
275
+ if (l.endDate)
276
+ return Z(l.startDate, n.startDate) && Z(l.endDate, n.endDate);
277
+ })) == null ? void 0 : r.value) ?? Ke;
278
+ }), I = b(() => ({
279
+ "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
280
+ })), Y = b(() => [
281
+ { label: u("customRange"), value: Ke },
282
+ ...T.value ? T.value : []
283
+ ]), g = b(
284
+ () => {
285
+ var a;
286
+ return ((a = e.granularities) == null ? void 0 : a.find(({ type: r }) => r === n.granularity)) || null;
287
+ }
288
+ ), K = b(
289
+ () => {
290
+ var a;
291
+ return ((a = e.granularities) == null ? void 0 : a.map(({ type: r, disabled: s }) => ({
292
+ label: u(r),
293
+ value: r,
294
+ disabled: s
295
+ }))) ?? [];
296
+ }
297
+ ), T = b(
298
+ () => e.quickSelectRanges && e.quickSelectRanges.map((a) => ({
299
+ ...a,
300
+ data: {
301
+ ...a.data,
302
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
303
+ timeDifference: a.data.endDate ? void 0 : new Date(Date.now()).getTime() - a.data.startDate.getTime()
304
+ }
305
+ }))
306
+ ), { getGranularCalendarLimits: G } = Ba(e), v = b(
307
+ () => e.granularities ? G(g.value) : { min: re(e.min), max: z(e.max) }
308
+ ), {
309
+ adjustDateForMonthly: M,
310
+ adjustDateForWeekly: J,
311
+ adjustStartDateInputForWeekly: F,
312
+ adjustEndDateInputForWeekly: y,
313
+ adjustStartDateInputForMonthly: ee,
314
+ adjustEndDateInputForMonthly: se
315
+ } = ga(e.firstDayOfWeek), { savedRanges: R, saveRange: pe, resetSavedRanges: le } = Pa(), k = (a) => a ? de(a, h.NUMERIC_DATE_YEAR_FIRST, {
316
+ locale: m[i.value.substring(0, 2)] || m.enUS
317
+ }) : "", C = (a) => a ? de(a, h.HOUR_MINUTE_SECONDS, {
318
+ locale: m[i.value.substring(0, 2)] || m.enUS
319
+ }) : "", A = _(!1), H = _(!1), W = _(!1), j = _(!1), o = De({
320
+ startDate: e.dateFormData.startDate,
321
+ endDate: e.dateFormData.endDate,
322
+ startTime: e.dateFormData.startTime,
323
+ endTime: e.dateFormData.endTime
324
+ }), ue = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), B = (a, r) => {
325
+ if (!r || !ue(r) || e.variant === "month")
326
+ return a;
327
+ let s = new Date(a);
328
+ const [l, S, Q] = r.split(":");
329
+ return s = _a(s, parseInt(l, 10)), s = Ua(s, parseInt(S, 10)), s = Fa(s, parseInt(Q, 10)), s;
330
+ }, Ee = (a) => {
331
+ n.startDate = B(a.startDate, o.startTime), n.endDate = B(a.endDate, o.endTime), n.range = null, e.granularities && le(), t(p.INPUT, {
332
+ ...n,
333
+ range: D.value
334
+ });
335
+ }, ae = (a) => {
336
+ const r = (l) => e.min && l <= e.min || e.max && l >= e.max ? !1 : e.isDateDisabled ? !e.isDateDisabled(l) : !0;
337
+ return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && r(new Date(a));
338
+ };
339
+ je(() => {
340
+ e.dateFormData.startDate && !ae(e.dateFormData.startDate) ? A.value = !0 : (A.value = !1, W.value = !1), e.dateFormData.endDate && !ae(e.dateFormData.endDate) ? H.value = !0 : (H.value = !1, j.value = !1);
341
+ });
342
+ const he = (a) => {
343
+ var r;
344
+ o.startDate = k(a), o.startTime ? W.value && (o.startTime = (r = e.dateFormData) == null ? void 0 : r.startTime) : o.startTime = C(a), A.value = !1, W.value = !1, t(p.START_DATE_SELECTED, a);
345
+ }, f = (a) => {
346
+ var r;
347
+ o.endDate = k(a), o.endTime ? j.value && (o.endTime = (r = e.dateFormData) == null ? void 0 : r.endTime) : o.endTime = C(z(a)), H.value = !1, j.value = !1;
348
+ }, w = (a) => {
349
+ const r = e.value[a];
350
+ if (r)
351
+ return r;
352
+ if (e.dateFormData[a] && ae(e.dateFormData[a]))
353
+ return new Date(e.dateFormData[a]);
354
+ }, te = me((a) => {
355
+ var r;
356
+ if (ae(a)) {
357
+ let s = a;
358
+ switch (A.value = !1, (r = g.value) == null ? void 0 : r.type) {
359
+ case "weekly":
360
+ s = F(
361
+ a,
362
+ k,
363
+ v.value.min,
364
+ v.value.max
365
+ ), o.startDate = s;
366
+ break;
367
+ case "monthly":
368
+ s = ee(
369
+ a,
370
+ k,
371
+ v.value.min,
372
+ v.value.max
373
+ ), o.startDate = s;
374
+ break;
375
+ }
376
+ const l = fe(s);
377
+ n.startDate = B(l, o.startTime);
378
+ const S = w("endDate");
379
+ t(p.FORM_DATE, {
380
+ startDate: l,
381
+ endDate: S
382
+ }), t(p.INPUT, {
383
+ ...n,
384
+ range: D.value
385
+ });
386
+ } else
387
+ A.value = !0, t(p.ERROR, { ...o });
388
+ }, Ye), ve = (a) => {
389
+ o.startDate = Be(a), te(o.startDate);
390
+ }, Je = me((a) => {
391
+ var r;
392
+ if (ae(a)) {
393
+ let s = a;
394
+ switch (H.value = !1, (r = g.value) == null ? void 0 : r.type) {
395
+ case "weekly":
396
+ s = y(
397
+ a,
398
+ k,
399
+ v.value.min,
400
+ v.value.max
401
+ ), o.endDate = s;
402
+ break;
403
+ case "monthly":
404
+ s = se(
405
+ a,
406
+ k,
407
+ v.value.min,
408
+ v.value.max
409
+ ), o.endDate = s;
410
+ break;
411
+ }
412
+ const l = fe(s);
413
+ n.endDate = B(l, o.endTime);
414
+ const S = w("startDate");
415
+ t(p.FORM_DATE, {
416
+ startDate: S,
417
+ endDate: l
418
+ }), t(p.INPUT, {
419
+ ...n,
420
+ range: D.value
421
+ });
422
+ } else
423
+ H.value = !0, t(p.ERROR, { ...o });
424
+ }, Ye), Qe = (a) => {
425
+ o.endDate = Be(a), Je(o.endDate);
426
+ }, Xe = (a) => {
427
+ ya(a);
428
+ }, Ze = me((a) => {
429
+ if (ue(a)) {
430
+ W.value = !1, n.startDate = B(n.startDate, a);
431
+ const r = w("endDate");
432
+ t(p.FORM_DATE, {
433
+ startDate: new Date(n.startDate),
434
+ endDate: r,
435
+ startTime: a,
436
+ endTime: e.dateFormData.endTime
437
+ }), t(p.INPUT, {
438
+ ...n,
439
+ range: D.value
440
+ });
441
+ } else
442
+ W.value = !0, t(p.ERROR, { ...o });
443
+ }), xe = me((a) => {
444
+ if (ue(a)) {
445
+ j.value = !1, n.endDate = B(n.endDate, a);
446
+ const r = w("startDate");
447
+ n.startDate = B(new Date(r), e.dateFormData.startTime), t(p.FORM_DATE, {
448
+ startDate: B(new Date(r), e.dateFormData.startTime),
449
+ endDate: new Date(n.endDate),
450
+ startTime: e.dateFormData.startTime,
451
+ endTime: a
452
+ }), t(p.INPUT, {
453
+ ...n,
454
+ range: D.value
455
+ });
456
+ } else
457
+ j.value = !0, t(p.ERROR, { ...o });
458
+ }), ea = (a) => {
459
+ o.startTime = Le(a), Ze(o.startTime);
460
+ }, aa = (a) => {
461
+ o.endTime = Le(a), xe(o.endTime);
462
+ }, ta = (a) => {
463
+ Va(a);
464
+ }, ne = (a, r, s, l) => {
465
+ n.startDate = a, n.endDate = r, s && (n.granularity = s), l && (n.range = l);
466
+ }, na = (a) => {
467
+ var s;
468
+ const r = (s = T.value) == null ? void 0 : s.find(({ value: l }) => l === a);
469
+ if (r) {
470
+ le();
471
+ const l = r.data, S = l.endDate || new Date(Date.now()), Q = l.timeDifference ? new Date(S.getTime() - l.timeDifference) : l.startDate;
472
+ o.endDate = k(S), o.startDate = k(Q), ne(Q, S, null, a), e.granularities && (n.granularity = l.granularity || Ge), o.startTime || (o.startTime = C(z(Q))), o.endTime || (o.endTime = C(z(S))), n.startDate = Q, n.endDate = S, t(p.CUSTOM_RANGE, {
473
+ ...r.data,
474
+ startDate: Q,
475
+ endDate: S,
476
+ range: r.value
477
+ });
478
+ }
479
+ }, ra = (a) => {
480
+ const r = n.granularity;
481
+ if (n.granularity = a, r && pe(r, structuredClone(Te(n))), n.startDate && n.endDate) {
482
+ switch (a) {
483
+ case "monthly": {
484
+ if (R.monthly) {
485
+ ne(R.monthly.startDate, R.monthly.endDate, a);
486
+ break;
487
+ }
488
+ const { startDate: s, endDate: l } = M(
489
+ n.startDate,
490
+ n.endDate,
491
+ v.value.min,
492
+ v.value.max
493
+ );
494
+ ne(s, l, a);
495
+ break;
496
+ }
497
+ case "weekly": {
498
+ if (R.weekly) {
499
+ ne(R.weekly.startDate, R.weekly.endDate, a);
500
+ break;
501
+ }
502
+ const { startDate: s, endDate: l } = J(
503
+ n.startDate,
504
+ n.endDate,
505
+ v.value.min,
506
+ v.value.max
507
+ );
508
+ ne(s, l, a);
509
+ break;
510
+ }
511
+ case "daily":
512
+ R.daily && ne(R.daily.startDate, R.daily.endDate, a);
513
+ break;
514
+ }
515
+ o.startDate = k(n.startDate), o.endDate = k(n.endDate), t(p.INPUT, {
516
+ ...n,
517
+ range: D.value
518
+ });
519
+ }
520
+ };
521
+ return {
522
+ // Values
523
+ internalRangeDate: n,
524
+ dateTextInput: o,
525
+ endDateError: H,
526
+ endTimeError: j,
527
+ granularityItems: K,
528
+ selectedGranularity: g,
529
+ computedMinMax: v,
530
+ selectedRangeSelectorValue: D,
531
+ startDateError: A,
532
+ startTimeError: W,
533
+ adjustedQuickSelectRanges: T,
534
+ quickSelectRangeDefaultItems: Y,
535
+ formInputWrapperConditionalClasses: I,
536
+ // Methods
537
+ hasSlot: Sa(d),
538
+ t: u,
539
+ // Events
540
+ onDateInput: Ee,
541
+ onDateInputKeyDown: Xe,
542
+ onEndDateInput: Qe,
543
+ onEndDateSelected: f,
544
+ onEndTimeInput: aa,
545
+ onGranularityInput: ra,
546
+ onRangeSelectorInput: na,
547
+ onStartDateInput: ve,
548
+ onStartDateSelected: he,
549
+ onStartTimeInput: ea,
550
+ onTimeInputKeyDown: ta
551
+ };
552
+ }
553
+ }), Ka = { class: "b-date-range-picker-calendar" }, Ga = { class: "b-date-range-picker-calendar__form-container" }, Ha = { class: "b-date-range-picker-calendar__form" }, Wa = { key: 0 }, ja = { class: "b-date-range-picker-calendar__calendars-container" };
554
+ function qa(e, t, d, i, u, m) {
555
+ const n = E("bento-dropdown"), c = E("bento-segmented-control"), D = E("bento-typography"), I = E("bento-input-field"), Y = E("calendar");
556
+ return O(), be("div", Ka, [
557
+ N("div", Ga, [
558
+ N("div", Ha, [
559
+ e.hasSlot("title") ? Ae(e.$slots, "title", { key: 0 }, void 0, !0) : U("", !0),
560
+ e.adjustedQuickSelectRanges ? (O(), L(n, {
561
+ key: 1,
562
+ "aria-label": e.t("customRange"),
563
+ items: e.quickSelectRangeDefaultItems,
564
+ value: e.selectedRangeSelectorValue,
565
+ onInput: e.onRangeSelectorInput
566
+ }, null, 8, ["aria-label", "items", "value", "onInput"])) : U("", !0),
567
+ e.granularities ? (O(), L(c, {
568
+ key: 2,
569
+ items: e.granularityItems,
570
+ "model-value": e.internalRangeDate.granularity,
571
+ "full-width": "",
572
+ "onUpdate:modelValue": e.onGranularityInput
573
+ }, null, 8, ["items", "model-value", "onUpdate:modelValue"])) : U("", !0),
574
+ N("div", null, [
575
+ V(D, {
576
+ stronger: "",
577
+ el: "span",
578
+ class: "b-date-range-picker-calendar__label"
579
+ }, {
580
+ default: $(() => t[0] || (t[0] = [
581
+ X(" From ")
582
+ ])),
583
+ _: 1
584
+ }),
585
+ N("div", {
586
+ class: Ie(e.formInputWrapperConditionalClasses)
587
+ }, [
588
+ V(I, {
589
+ "aria-label": e.t("dateFrom"),
590
+ value: e.dateTextInput.startDate,
591
+ error: e.startDateError,
592
+ class: "b-date-range-picker-calendar__form-input",
593
+ onInput: e.onStartDateInput,
594
+ onKeydown: e.onDateInputKeyDown
595
+ }, {
596
+ description: $(() => t[1] || (t[1] = [
597
+ X("YYYY-MM-DD")
598
+ ])),
599
+ _: 1
600
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
601
+ e.allowTimeInput ? (O(), L(I, {
602
+ key: 0,
603
+ "aria-label": e.t("timeFrom"),
604
+ value: e.dateTextInput.startTime,
605
+ error: e.startTimeError,
606
+ class: "b-date-range-picker-calendar__form-input",
607
+ onInput: e.onStartTimeInput,
608
+ onKeydown: e.onTimeInputKeyDown
609
+ }, {
610
+ description: $(() => t[2] || (t[2] = [
611
+ X("HH:MM:SS")
612
+ ])),
613
+ _: 1
614
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : U("", !0)
615
+ ], 2)
616
+ ]),
617
+ N("div", null, [
618
+ V(D, {
619
+ stronger: "",
620
+ el: "span",
621
+ class: "b-date-range-picker-calendar__label"
622
+ }, {
623
+ default: $(() => t[3] || (t[3] = [
624
+ X(" To ")
625
+ ])),
626
+ _: 1
627
+ }),
628
+ N("div", {
629
+ class: Ie(e.formInputWrapperConditionalClasses)
630
+ }, [
631
+ V(I, {
632
+ class: "b-date-range-picker-calendar__form-input",
633
+ "aria-label": e.t("dateTo"),
634
+ value: e.dateTextInput.endDate,
635
+ error: e.endDateError,
636
+ onInput: e.onEndDateInput,
637
+ onKeydown: e.onDateInputKeyDown
638
+ }, {
639
+ description: $(() => t[4] || (t[4] = [
640
+ X("YYYY-MM-DD")
641
+ ])),
642
+ _: 1
643
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
644
+ e.allowTimeInput ? (O(), L(I, {
645
+ key: 0,
646
+ "aria-label": e.t("timeTo"),
647
+ value: e.dateTextInput.endTime,
648
+ error: e.endTimeError,
649
+ class: "b-date-range-picker-calendar__form-input",
650
+ onInput: e.onEndTimeInput,
651
+ onKeydown: e.onTimeInputKeyDown
652
+ }, {
653
+ description: $(() => t[5] || (t[5] = [
654
+ X("HH:MM:SS")
655
+ ])),
656
+ _: 1
657
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : U("", !0)
658
+ ], 2)
659
+ ])
660
+ ]),
661
+ e.hasSlot("actions") ? (O(), be("div", Wa, [
662
+ Ae(e.$slots, "actions", {}, void 0, !0)
663
+ ])) : U("", !0)
664
+ ]),
665
+ N("div", ja, [
666
+ V(Y, {
667
+ value: e.internalRangeDate,
668
+ "first-day-of-week": e.firstDayOfWeek,
669
+ "is-date-disabled": e.isDateDisabled,
670
+ "max-range": e.maxRange,
671
+ min: e.computedMinMax.min,
672
+ max: e.computedMinMax.max,
673
+ "number-of-months": e.numberOfMonths,
674
+ "show-end-date-on-open": e.showEndDateOnOpen,
675
+ granularity: e.selectedGranularity,
676
+ variant: e.variant,
677
+ "is-range": "",
678
+ onInput: e.onDateInput,
679
+ onStartDateSelected: e.onStartDateSelected,
680
+ onEndDateSelected: e.onEndDateSelected
681
+ }, 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"])
682
+ ])
683
+ ]);
684
+ }
685
+ const P = /* @__PURE__ */ ze(Ya, [["render", qa], ["__scopeId", "data-v-64ce14ed"]]), za = ({
686
+ datePickerValue: e,
687
+ isDateIncorrect: t,
688
+ quickSelectRanges: d,
689
+ isMonthVariant: i
690
+ }) => {
691
+ var K, T, G, v;
692
+ const { locale: u, t: m } = ke(), n = Re(), c = (M) => !!M && !isNaN(M.getTime()), D = (M, J) => c(M) ? de(M, J, {
693
+ locale: n[u.value.substring(0, 2)] || n.enUS
694
+ }) : void 0, I = De({
695
+ startDate: D((K = e.value) == null ? void 0 : K.startDate, h.NUMERIC_DATE_YEAR_FIRST),
696
+ endDate: D((T = e.value) == null ? void 0 : T.endDate, h.NUMERIC_DATE_YEAR_FIRST),
697
+ startTime: D((G = e.value) == null ? void 0 : G.startDate, h.HOUR_MINUTE_SECONDS),
698
+ endTime: D((v = e.value) == null ? void 0 : v.endDate, h.HOUR_MINUTE_SECONDS)
699
+ });
700
+ return {
701
+ // Values
702
+ dateDisplayValue: b(() => {
703
+ var y;
704
+ if (t.value)
705
+ return `${I.startDate || ""} - ${I.endDate || ""}`;
706
+ if (!e.value || !e.value.startDate && !e.value.endDate)
707
+ return m("selectDateRange");
708
+ if ((y = d.value) != null && y.length) {
709
+ const ee = d.value.find(({ value: se }) => {
710
+ var R;
711
+ return se === ((R = e.value) == null ? void 0 : R.range);
712
+ });
713
+ if (ee)
714
+ return ee.label;
715
+ }
716
+ const { startDate: M, endDate: J } = I, F = i != null && i.value ? h.LONG_MONTH_YEAR : h.FULL_DATE_MONTH_FIRST;
717
+ return `${D(fe(M), F)} - ${D(
718
+ fe(J),
719
+ F
720
+ )}`;
721
+ }),
722
+ textInputDisplayValue: I,
723
+ // Methods
724
+ formatTextInputDisplayValue: () => ""
725
+ };
726
+ };
727
+ var ce = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(ce || {});
728
+ const He = {
729
+ "en-US": {
730
+ apply: "Apply",
731
+ cancel: "Cancel",
732
+ dateRangePicker: "Date range picker {name}",
733
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
734
+ selectDate: "Select a date",
735
+ selectDateRange: "Select a date range",
736
+ selectedDateIsNotAvailable: "Selected date is not available"
737
+ },
738
+ "ja-JP": {
739
+ apply: "適用",
740
+ cancel: "キャンセル",
741
+ selectDate: "日付を選択"
742
+ },
743
+ "pt-BR": {
744
+ apply: "Aplicar",
745
+ cancel: "Cancelar",
746
+ selectDate: "Selecione uma data"
747
+ }
748
+ }, Ja = We({
749
+ i18n: { messages: He },
750
+ name: "bento-date-range-picker",
751
+ components: {
752
+ BentoButtonActions: Oa,
753
+ BentoDivider: ua,
754
+ BentoTypography: qe,
755
+ BentoPopover: ma,
756
+ DateRangePickerCalendar: P,
757
+ DropdownInputDefault: Ea,
758
+ ErrorMessage: wa,
759
+ FieldLabel: ha
760
+ },
761
+ directives: { BentoClickOutsideDirective: ba },
762
+ props: {
763
+ /**
764
+ * Allows user to enter time values in the form
765
+ */
766
+ allowTimeInput: { type: Boolean, default: !1 },
767
+ /**
768
+ * Descriptive supporting text visbile underneath the dropdown.
769
+ */
770
+ description: { type: String, default: void 0 },
771
+ /**
772
+ * Disables dropdown functionality.
773
+ */
774
+ disabled: { type: Boolean, default: !1 },
775
+ /**
776
+ * Displays component in an error state with an error message
777
+ */
778
+ errorMessage: { type: String, default: null },
779
+ /**
780
+ * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
781
+ */
782
+ firstDayOfWeek: P.props.firstDayOfWeek,
783
+ /**
784
+ * A list of available granularities.
785
+ * If present, the date picker will display a segmented control to change granularity.
786
+ */
787
+ granularities: P.props.granularities,
788
+ /**
789
+ * Indicate if a date should be disabled or not
790
+ */
791
+ isDateDisabled: P.props.isDateDisabled,
792
+ /**
793
+ * Text that is displayed as a label above the element.
794
+ */
795
+ label: { type: String, default: void 0 },
796
+ /**
797
+ * Upon opening date range picker, end date's month will be pre-selected.
798
+ */
799
+ showEndDateOnOpen: { type: Boolean, default: !1 },
800
+ /**
801
+ * Highlights the dropdown is optional.
802
+ */
803
+ optional: { type: Boolean, default: !1 },
804
+ /**
805
+ * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
806
+ */
807
+ readonly: { type: Boolean, default: !1 },
808
+ /**
809
+ * Highlights the dropdown is required.
810
+ */
811
+ required: { type: Boolean, default: !1 },
812
+ /**
813
+ * Adds a info icon next to the label to display the passed tooltip message.
814
+ */
815
+ tooltipText: { type: String, default: null },
816
+ /**
817
+ * Enables the range selector.
818
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
819
+ * `label` - label of custom range item.
820
+ * `value` - a unique key of the custom range item.
821
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
822
+ */
823
+ quickSelectRanges: {
824
+ type: Array,
825
+ default: void 0
826
+ },
827
+ /**
828
+ * Set a maximum number of dates to be selectable by the range.
829
+ */
830
+ maxRange: P.props.maxRange,
831
+ /**
832
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
833
+ */
834
+ min: P.props.min,
835
+ /**
836
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
837
+ */
838
+ max: P.props.max,
839
+ /**
840
+ * Number of months rendered on pane
841
+ */
842
+ numberOfMonths: P.props.numberOfMonths,
843
+ /**
844
+ * Selected date
845
+ */
846
+ value: P.props.value,
847
+ /**
848
+ * The type of calendar to display. Defaults to showing days.
849
+ */
850
+ variant: {
851
+ type: String,
852
+ default: void 0
853
+ // Default will be set by @/internal/calendar
854
+ },
855
+ /**
856
+ * Enables the date picker selection to persist until it is explicitly applied.
857
+ * Displays a set of buttons: Apply and Cancel.
858
+ *
859
+ * @deprecated This will be the default behaviour in v2.0.0.
860
+ */
861
+ hasActions: { type: Boolean, default: !1 }
862
+ },
863
+ emits: [ce.INPUT],
864
+ setup(e, { emit: t }) {
865
+ const { locale: d, t: i } = ke({ messages: He }), u = Re(), m = ie("bento-date-range-picker-container"), n = ie("bento-date-range-picker-label"), c = ie("bento-date-range-picker-description"), D = ie("bento-date-range-picker-error"), I = ie("bento-date-range-picker-date-error"), Y = b(
866
+ () => e.label || i("dateRangePicker", { name: m })
867
+ ), g = _(!1), K = _(null), T = _(!1), { isReadOnly: G } = Ta(ge(e, "readonly"));
868
+ ye(
869
+ () => e.disabled,
870
+ () => {
871
+ e.disabled && T.value && (T.value = !1);
872
+ }
873
+ );
874
+ const v = b(() => e.hasActions ? !A.value && g.value : g.value), M = b(() => ({
875
+ "b-date-range-picker__description--error": !!e.errorMessage || v.value
876
+ })), J = b(() => e.variant === "month"), { dateDisplayValue: F, textInputDisplayValue: y } = za({
877
+ datePickerValue: ge(e, "value"),
878
+ isDateIncorrect: g,
879
+ quickSelectRanges: ge(e, "quickSelectRanges"),
880
+ isMonthVariant: J
881
+ }), ee = b(
882
+ () => `${e.description ? c : ""} ${e.errorMessage ? D : ""} ${g.value ? I : ""}`.trim() || null
883
+ ), se = b(() => e.allowTimeInput && e.variant !== "month"), R = () => {
884
+ T.value = !1;
885
+ }, pe = () => {
886
+ T.value = !0;
887
+ }, le = _(F.value), k = _(
888
+ // textInputDisplayValue is a reactive object
889
+ structuredClone(Te(y))
890
+ ), C = _(e.value), A = _(!0), H = b(
891
+ () => e.hasActions ? k.value : y
892
+ ), W = b(
893
+ () => e.hasActions ? le.value : F.value
894
+ );
895
+ je(() => {
896
+ e.hasActions || ca(
897
+ 'BentoDateRangePicker "hasActions" property',
898
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
899
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
900
+ "2.0.0"
901
+ );
902
+ }), ye(
903
+ () => e.value,
904
+ () => {
905
+ le.value = F.value, k.value = structuredClone(Te(y));
906
+ }
907
+ );
908
+ const j = b(() => [
909
+ {
910
+ title: i("apply"),
911
+ event: () => {
912
+ t(ce.INPUT, C.value), R(), A.value = !0;
913
+ },
914
+ disabled: A.value
915
+ },
916
+ {
917
+ title: i("cancel"),
918
+ event: R
919
+ }
920
+ ]);
921
+ return ye(C, (f) => {
922
+ if (e.hasActions) {
923
+ A.value = g.value;
924
+ return;
925
+ }
926
+ t(ce.INPUT, f);
927
+ }), {
928
+ // Refs
929
+ inputContainerRef: K,
930
+ // Values,
931
+ dateDisplayValue: F,
932
+ datePickerContainerId: m,
933
+ descriptionConditionalClasses: M,
934
+ displayedTextInputValue: H,
935
+ displayedDateValue: W,
936
+ isDateIncorrect: g,
937
+ isDateRangePickerOpen: T,
938
+ isReadOnly: G,
939
+ labelId: n,
940
+ descriptionId: c,
941
+ dateErrorId: I,
942
+ errorId: D,
943
+ popoverAriaLabel: Y,
944
+ shouldDisplayError: v,
945
+ ariaDescribedBy: ee,
946
+ textInputDisplayValue: y,
947
+ rangePickerButtonActions: j,
948
+ BentoButtonActionsLayout: Ma,
949
+ withTimeInput: se,
950
+ // Events
951
+ closeDateRangePicker: R,
952
+ clearDateRangePickerValue: async () => {
953
+ g.value && (g.value = !1), C.value = null;
954
+ },
955
+ openDateRangePicker: pe,
956
+ onRangeSelectorInput: (f) => {
957
+ if (f) {
958
+ const w = (te) => de(te, h.NUMERIC_DATE_YEAR_FIRST, {
959
+ locale: u[d.value.substring(0, 2)] || u.enUS
960
+ });
961
+ y.startDate = w(f.startDate), y.endDate = w(f.endDate), C.value = f;
962
+ }
963
+ },
964
+ onEnterPressedOverInput: () => {
965
+ if (!T.value) {
966
+ T.value = !0;
967
+ return;
968
+ }
969
+ g.value || (T.value = !1);
970
+ },
971
+ onDateRangePickerInput: (f) => {
972
+ g.value = !1;
973
+ const w = (te, ve) => te ? de(te, ve, {
974
+ locale: u[d.value.substring(0, 2)] || u.enUS
975
+ }) : void 0;
976
+ y.startDate = w(
977
+ f.startDate,
978
+ h.NUMERIC_DATE_YEAR_FIRST
979
+ ), y.endDate = w(f.endDate, h.NUMERIC_DATE_YEAR_FIRST), y.startTime = w(f.startDate, h.HOUR_MINUTE_SECONDS), y.endTime = w(f.endDate, h.HOUR_MINUTE_SECONDS), C.value = f;
980
+ },
981
+ onDateRangePickerError: (f) => {
982
+ g.value = !0, y.startDate = f.startDate, y.endDate = f.endDate, C.value = { startDate: null, endDate: null };
983
+ },
984
+ onDateRangePickerFormDateInputUpdate: (f) => {
985
+ g.value = !1, f.startTime && (y.startTime = f.startTime), f.endTime && (y.endTime = f.endTime);
986
+ },
987
+ // Translations
988
+ t: i
989
+ };
990
+ }
991
+ }), Qa = { class: "b-date-range-picker" }, Xa = { class: "b-date-range-picker__footer" };
992
+ function Za(e, t, d, i, u, m) {
993
+ const n = E("field-label"), c = E("dropdown-input-default"), D = E("error-message"), I = E("bento-typography"), Y = E("bento-divider"), g = E("bento-button-actions"), K = E("date-range-picker-calendar"), T = E("bento-popover"), G = oa("bento-click-outside-directive");
994
+ return sa((O(), be("div", Qa, [
995
+ e.label ? (O(), L(n, {
996
+ key: 0,
997
+ id: e.labelId,
998
+ label: e.label,
999
+ "tooltip-text": e.tooltipText,
1000
+ optional: e.optional,
1001
+ required: e.required
1002
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : U("", !0),
1003
+ N("div", {
1004
+ onKeydown: t[0] || (t[0] = la((...v) => e.onEnterPressedOverInput && e.onEnterPressedOverInput(...v), ["enter"]))
1005
+ }, [
1006
+ V(c, {
1007
+ ref: "inputContainerRef",
1008
+ "always-combobox-is-input": "",
1009
+ ariaControls: e.datePickerContainerId,
1010
+ ariaExpanded: e.isDateRangePickerOpen,
1011
+ "aria-labelledby": e.label ? e.labelId : null,
1012
+ "aria-describedby": e.ariaDescribedBy,
1013
+ disabled: e.disabled,
1014
+ "is-invalid": !!e.errorMessage || e.shouldDisplayError,
1015
+ open: e.isDateRangePickerOpen,
1016
+ "display-value": e.displayedDateValue,
1017
+ readonly: e.isReadOnly,
1018
+ onOpen: e.openDateRangePicker,
1019
+ onClear: e.clearDateRangePickerValue,
1020
+ onClose: e.closeDateRangePicker
1021
+ }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly", "onOpen", "onClear", "onClose"])
1022
+ ], 32),
1023
+ e.shouldDisplayError ? (O(), L(D, {
1024
+ key: 1,
1025
+ id: e.dateErrorId,
1026
+ "error-message": e.t("provideDateInAFormat"),
1027
+ class: "b-date-range-picker__error-message"
1028
+ }, null, 8, ["id", "error-message"])) : U("", !0),
1029
+ e.errorMessage ? (O(), L(D, {
1030
+ key: 2,
1031
+ id: e.errorId,
1032
+ "error-message": e.errorMessage,
1033
+ class: "b-date-range-picker__error-message"
1034
+ }, null, 8, ["id", "error-message"])) : U("", !0),
1035
+ e.description ? (O(), L(I, {
1036
+ key: 3,
1037
+ id: e.descriptionId,
1038
+ class: Ie(["b-date-range-picker__description", e.descriptionConditionalClasses]),
1039
+ el: "span"
1040
+ }, {
1041
+ default: $(() => [
1042
+ X(ia(e.description), 1)
1043
+ ]),
1044
+ _: 1
1045
+ }, 8, ["id", "class"])) : U("", !0),
1046
+ e.inputContainerRef ? (O(), L(T, {
1047
+ key: 4,
1048
+ id: e.datePickerContainerId,
1049
+ class: "b-date-range-picker__container",
1050
+ open: e.isDateRangePickerOpen,
1051
+ "target-element": e.inputContainerRef,
1052
+ "disable-focus-trap": !0,
1053
+ "aria-label": e.popoverAriaLabel,
1054
+ position: "bottom-start",
1055
+ "without-space": "",
1056
+ "fit-content": ""
1057
+ }, {
1058
+ default: $(() => [
1059
+ V(K, {
1060
+ "allow-time-input": e.withTimeInput,
1061
+ "quick-select-ranges": e.quickSelectRanges,
1062
+ value: e.value,
1063
+ "first-day-of-week": e.firstDayOfWeek,
1064
+ granularities: e.granularities,
1065
+ "is-date-disabled": e.isDateDisabled,
1066
+ "max-range": e.maxRange,
1067
+ min: e.min,
1068
+ max: e.max,
1069
+ "number-of-months": e.numberOfMonths,
1070
+ "show-end-date-on-open": e.showEndDateOnOpen,
1071
+ "date-form-data": e.displayedTextInputValue,
1072
+ variant: e.variant,
1073
+ onCustomRange: e.onRangeSelectorInput,
1074
+ onInput: e.onDateRangePickerInput,
1075
+ onError: e.onDateRangePickerError,
1076
+ onFormDate: e.onDateRangePickerFormDateInputUpdate
1077
+ }, da({ _: 2 }, [
1078
+ e.hasActions ? {
1079
+ name: "actions",
1080
+ fn: $(() => [
1081
+ V(Y),
1082
+ N("div", Xa, [
1083
+ V(g, {
1084
+ actions: e.rangePickerButtonActions,
1085
+ layout: e.BentoButtonActionsLayout.SPACE_BETWEEN
1086
+ }, null, 8, ["actions", "layout"])
1087
+ ])
1088
+ ]),
1089
+ key: "0"
1090
+ } : void 0
1091
+ ]), 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", "onCustomRange", "onInput", "onError", "onFormDate"])
1092
+ ]),
1093
+ _: 1
1094
+ }, 8, ["id", "open", "target-element", "aria-label"])) : U("", !0)
1095
+ ])), [
1096
+ [G, e.closeDateRangePicker]
1097
+ ]);
1098
+ }
1099
+ const Rt = /* @__PURE__ */ ze(Ja, [["render", Za], ["__scopeId", "data-v-8040ccd8"]]);
1100
+ export {
1101
+ Rt as B,
1102
+ P as D,
1103
+ ce as a,
1104
+ Aa as b,
1105
+ Ca as i
1106
+ };
1107
+ //# sourceMappingURL=date-range-picker.1Vbf9Zk8.js.map