@adyen/bento-vue3 1.88.1 → 1.89.2

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 (366) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +722 -524
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/ai-button.css +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-input.css +1 -1
  16. package/dist/assets/data-grid-template.css +1 -1
  17. package/dist/assets/data-grid.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/index.css +1 -1
  22. package/dist/assets/inspector.css +1 -1
  23. package/dist/assets/list-item.css +1 -0
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/radio-input.css +1 -1
  26. package/dist/assets/selection-card-group.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/timeline-item.css +1 -1
  29. package/dist/assets/use-cached-selected-values.css +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chip.js +1 -1
  34. package/dist/chunks/{accordion-item.QQ06tTjt.js → accordion-item.BX1KrLMl.js} +6 -15
  35. package/dist/chunks/{accordion-item.QQ06tTjt.js.map → accordion-item.BX1KrLMl.js.map} +1 -1
  36. package/dist/chunks/{action-bar.BS2cJzG_.js → action-bar.DLMaIUWW.js} +8 -34
  37. package/dist/chunks/{action-bar.BS2cJzG_.js.map → action-bar.DLMaIUWW.js.map} +1 -1
  38. package/dist/chunks/{ai-button.XfeGC4-Q.js → ai-button.1YJdI-sw.js} +3 -3
  39. package/dist/chunks/{ai-button.XfeGC4-Q.js.map → ai-button.1YJdI-sw.js.map} +1 -1
  40. package/dist/chunks/{ai-tag.DVCW-_vD.js → ai-tag.DK63ExDc.js} +6 -15
  41. package/dist/chunks/{ai-tag.DVCW-_vD.js.map → ai-tag.DK63ExDc.js.map} +1 -1
  42. package/dist/chunks/{alert.CDWtu0Hu.js → alert.C_8-VNi_.js} +6 -24
  43. package/dist/chunks/{alert.CDWtu0Hu.js.map → alert.C_8-VNi_.js.map} +1 -1
  44. package/dist/chunks/anchor-scroller.NhjLDBZI.js +207 -0
  45. package/dist/chunks/{anchor-scroller.BctgW0se.js.map → anchor-scroller.NhjLDBZI.js.map} +1 -1
  46. package/dist/chunks/{base-button.CRYAiuzn.js → base-button.CvHl36Ue.js} +24 -27
  47. package/dist/chunks/{base-button.CRYAiuzn.js.map → base-button.CvHl36Ue.js.map} +1 -1
  48. package/dist/chunks/base-modal.C2-JyHC_.js +424 -0
  49. package/dist/chunks/{base-modal.gZAtk-xP.js.map → base-modal.C2-JyHC_.js.map} +1 -1
  50. package/dist/chunks/button-actions-with-menu.BQFAgAI2.js +85 -0
  51. package/dist/chunks/{button-actions-with-menu.Tba1ME79.js.map → button-actions-with-menu.BQFAgAI2.js.map} +1 -1
  52. package/dist/chunks/{button-actions.BYBpjNqy.js → button-actions.cMQWyZne.js} +511 -542
  53. package/dist/chunks/{button-actions.BYBpjNqy.js.map → button-actions.cMQWyZne.js.map} +1 -1
  54. package/dist/chunks/{button.C6t9_lzm.js → button.DWF7FSIw.js} +42 -45
  55. package/dist/chunks/{button.C6t9_lzm.js.map → button.DWF7FSIw.js.map} +1 -1
  56. package/dist/chunks/calendar.DcCqkSNJ.js +1201 -0
  57. package/dist/chunks/{calendar.vM3abC8y.js.map → calendar.DcCqkSNJ.js.map} +1 -1
  58. package/dist/chunks/{card.Cw63i7Ul.js → card.CoxQ_L0w.js} +9 -21
  59. package/dist/chunks/{card.Cw63i7Ul.js.map → card.CoxQ_L0w.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.ODQy-ICn.js → checkbox-group.96n9Cc3W.js} +5 -5
  61. package/dist/chunks/{checkbox-group.ODQy-ICn.js.map → checkbox-group.96n9Cc3W.js.map} +1 -1
  62. package/dist/chunks/{checkbox-input.BZjSoCQW.js → checkbox-input.CVFQCfZM.js} +44 -51
  63. package/dist/chunks/{checkbox-input.BZjSoCQW.js.map → checkbox-input.CVFQCfZM.js.map} +1 -1
  64. package/dist/chunks/{checkbox.C3Ewfygy.js → checkbox.C6ATh8f5.js} +85 -94
  65. package/dist/chunks/{checkbox.C3Ewfygy.js.map → checkbox.C6ATh8f5.js.map} +1 -1
  66. package/dist/chunks/chevron-right-small.BCinNiMt.js +29 -0
  67. package/dist/chunks/chevron-right-small.BCinNiMt.js.map +1 -0
  68. package/dist/chunks/{chip.CyW1V8RU.js → chip.CdgpQyXN.js} +6 -12
  69. package/dist/chunks/{chip.CyW1V8RU.js.map → chip.CdgpQyXN.js.map} +1 -1
  70. package/dist/chunks/click-outside.BPylIosK.js +20 -0
  71. package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BPylIosK.js.map} +1 -1
  72. package/dist/chunks/{code-snippet.BaJU2I5_.js → code-snippet.DgAuuZF5.js} +9 -24
  73. package/dist/chunks/{code-snippet.BaJU2I5_.js.map → code-snippet.DgAuuZF5.js.map} +1 -1
  74. package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
  75. package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
  76. package/dist/chunks/constructNow.D9uRk678.js +8 -0
  77. package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.D9uRk678.js.map} +1 -1
  78. package/dist/chunks/{controls-group.Bu5lNTyH.js → controls-group.C7hOE1F4.js} +3 -3
  79. package/dist/chunks/{controls-group.Bu5lNTyH.js.map → controls-group.C7hOE1F4.js.map} +1 -1
  80. package/dist/chunks/{copy.C_BCNHYQ.js → copy.C2kQ1PbI.js} +7 -19
  81. package/dist/chunks/{copy.C_BCNHYQ.js.map → copy.C2kQ1PbI.js.map} +1 -1
  82. package/dist/chunks/{country.DJts6kCv.js → country.CaGc08Ps.js} +3 -3
  83. package/dist/chunks/{country.DJts6kCv.js.map → country.CaGc08Ps.js.map} +1 -1
  84. package/dist/chunks/country.types.DjpMGz7a.js +19 -0
  85. package/dist/chunks/{country.types.BBQbWkTY.js.map → country.types.DjpMGz7a.js.map} +1 -1
  86. package/dist/chunks/{currency.Afx8MVdY.js → currency.DuTEzR_W.js} +40 -42
  87. package/dist/chunks/{currency.Afx8MVdY.js.map → currency.DuTEzR_W.js.map} +1 -1
  88. package/dist/chunks/dashboard-section.UafHRkMa.js +161 -0
  89. package/dist/chunks/{dashboard-section.CgoLquLP.js.map → dashboard-section.UafHRkMa.js.map} +1 -1
  90. package/dist/chunks/dashed-underline.CcDV2Aks.js +108 -0
  91. package/dist/chunks/{dashed-underline.wbRHATeE.js.map → dashed-underline.CcDV2Aks.js.map} +1 -1
  92. package/dist/chunks/data-grid-template.CnC4TQvk.js +135 -0
  93. package/dist/chunks/{data-grid-template.D40V1cmi.js.map → data-grid-template.CnC4TQvk.js.map} +1 -1
  94. package/dist/chunks/data-grid.BSIXLRm7.js +4014 -0
  95. package/dist/chunks/{data-grid.C2nCCbeC.js.map → data-grid.BSIXLRm7.js.map} +1 -1
  96. package/dist/chunks/date-picker.dlzZ_-5f.js +231 -0
  97. package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.dlzZ_-5f.js.map} +1 -1
  98. package/dist/chunks/date-range-picker.DC6CK0As.js +995 -0
  99. package/dist/chunks/{date-range-picker.B0q7Z4df.js.map → date-range-picker.DC6CK0As.js.map} +1 -1
  100. package/dist/chunks/{date.BtB1HyWQ.js → date.R2Wz6o7J.js} +28 -28
  101. package/dist/chunks/{date.BtB1HyWQ.js.map → date.R2Wz6o7J.js.map} +1 -1
  102. package/dist/chunks/{de.BJvo6njq.js → de.DXrHnkLX.js} +18 -18
  103. package/dist/chunks/{de.BJvo6njq.js.map → de.DXrHnkLX.js.map} +1 -1
  104. package/dist/chunks/{dialog-page.C1KUI51V.js → dialog-page.COfKqjT-.js} +7 -13
  105. package/dist/chunks/{dialog-page.C1KUI51V.js.map → dialog-page.COfKqjT-.js.map} +1 -1
  106. package/dist/chunks/differenceInMonths.s_znQQpw.js +43 -0
  107. package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.s_znQQpw.js.map} +1 -1
  108. package/dist/chunks/{directive.rXUeDb8p.js → directive.Dpivxq_t.js} +2 -2
  109. package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Dpivxq_t.js.map} +1 -1
  110. package/dist/chunks/{dropdown-default-textbox.CskseEho.js → dropdown-default-textbox.bq9AlGzJ.js} +55 -64
  111. package/dist/chunks/{dropdown-default-textbox.CskseEho.js.map → dropdown-default-textbox.bq9AlGzJ.js.map} +1 -1
  112. package/dist/chunks/{dropdown-tag.Zj-exiup.js → dropdown-tag.Ysrac5GN.js} +82 -86
  113. package/dist/chunks/{dropdown-tag.Zj-exiup.js.map → dropdown-tag.Ysrac5GN.js.map} +1 -1
  114. package/dist/chunks/dropdown.MhmX1P9o.js +799 -0
  115. package/dist/chunks/{dropdown.CxjzXI-k.js.map → dropdown.MhmX1P9o.js.map} +1 -1
  116. package/dist/chunks/{empty-state.DqdPzU-g.js → empty-state.DT4sFyjB.js} +7 -14
  117. package/dist/chunks/{empty-state.DqdPzU-g.js.map → empty-state.DT4sFyjB.js.map} +1 -1
  118. package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.CBpvhDYV.js} +2 -2
  119. package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.CBpvhDYV.js.map} +1 -1
  120. package/dist/chunks/{en-US.YeSsZuOc.js → en-US.CCazFVNP.js} +30 -30
  121. package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.CCazFVNP.js.map} +1 -1
  122. package/dist/chunks/{error-message.oGiefI2-.js → error-message.DCgo8q20.js} +8 -20
  123. package/dist/chunks/{error-message.oGiefI2-.js.map → error-message.DCgo8q20.js.map} +1 -1
  124. package/dist/chunks/{es.DyUjjSL8.js → es.CoF2PB8b.js} +14 -14
  125. package/dist/chunks/{es.DyUjjSL8.js.map → es.CoF2PB8b.js.map} +1 -1
  126. package/dist/chunks/{file-uploader.BnmNI1O7.js → file-uploader.Bfd1uUMe.js} +575 -680
  127. package/dist/chunks/{file-uploader.BnmNI1O7.js.map → file-uploader.Bfd1uUMe.js.map} +1 -1
  128. package/dist/chunks/filter-bar.CkAjLQol.js +3675 -0
  129. package/dist/chunks/filter-bar.CkAjLQol.js.map +1 -0
  130. package/dist/chunks/fixed-scroller.DtkaGyMD.js +150 -0
  131. package/dist/chunks/{fixed-scroller.i1tmEmst.js.map → fixed-scroller.DtkaGyMD.js.map} +1 -1
  132. package/dist/chunks/{focus-trap.BxCwzLqN.js → focus-trap.BAiM_ywb.js} +70 -86
  133. package/dist/chunks/{focus-trap.BxCwzLqN.js.map → focus-trap.BAiM_ywb.js.map} +1 -1
  134. package/dist/chunks/{footer-actions.Ck6UztD8.js → footer-actions.BcYSsoUg.js} +3 -3
  135. package/dist/chunks/{footer-actions.Ck6UztD8.js.map → footer-actions.BcYSsoUg.js.map} +1 -1
  136. package/dist/chunks/{form-layout-title.CQfeGyVw.js → form-layout-title.DW5Kg1rh.js} +4 -6
  137. package/dist/chunks/{form-layout-title.CQfeGyVw.js.map → form-layout-title.DW5Kg1rh.js.map} +1 -1
  138. package/dist/chunks/{fr.JD_4GwS8.js → fr.CJXL-Ief.js} +16 -16
  139. package/dist/chunks/{fr.JD_4GwS8.js.map → fr.CJXL-Ief.js.map} +1 -1
  140. package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
  141. package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
  142. package/dist/chunks/get-slot-text.8Fbl1GOr.js +6 -0
  143. package/dist/chunks/{get-slot-text.CQRAP2_q.js.map → get-slot-text.8Fbl1GOr.js.map} +1 -1
  144. package/dist/chunks/{grid-layout.Vhv1_zFs.js → grid-layout.CCWNscU_.js} +11 -12
  145. package/dist/chunks/{grid-layout.Vhv1_zFs.js.map → grid-layout.CCWNscU_.js.map} +1 -1
  146. package/dist/chunks/{header-meta.lGt3HsyH.js → header-meta.Bym9AlQm.js} +84 -96
  147. package/dist/chunks/{header-meta.lGt3HsyH.js.map → header-meta.Bym9AlQm.js.map} +1 -1
  148. package/dist/chunks/{header-with-views.D_sy4I2A.js → header-with-views.Djba6iol.js} +1013 -1156
  149. package/dist/chunks/{header-with-views.D_sy4I2A.js.map → header-with-views.Djba6iol.js.map} +1 -1
  150. package/dist/chunks/{header.oXqwf2xN.js → header.o-7SyHtU.js} +4 -4
  151. package/dist/chunks/{header.oXqwf2xN.js.map → header.o-7SyHtU.js.map} +1 -1
  152. package/dist/chunks/{index.Dppy4qHk.js → index.DDwcHPb6.js} +12 -12
  153. package/dist/chunks/{index.Dppy4qHk.js.map → index.DDwcHPb6.js.map} +1 -1
  154. package/dist/chunks/{info-icon.DyPOv7Pi.js → info-icon.BUala_wq.js} +3 -3
  155. package/dist/chunks/{info-icon.DyPOv7Pi.js.map → info-icon.BUala_wq.js.map} +1 -1
  156. package/dist/chunks/input-field-password.DZytmp_p.js +346 -0
  157. package/dist/chunks/{input-field-password.C_h61CMn.js.map → input-field-password.DZytmp_p.js.map} +1 -1
  158. package/dist/chunks/{input-field-phone-number.KctRYA9p.js → input-field-phone-number.CxblrmaU.js} +720 -736
  159. package/dist/chunks/{input-field-phone-number.KctRYA9p.js.map → input-field-phone-number.CxblrmaU.js.map} +1 -1
  160. package/dist/chunks/{input-field.DPElUS0U.js → input-field.CfU0ZKtL.js} +42 -54
  161. package/dist/chunks/{input-field.DPElUS0U.js.map → input-field.CfU0ZKtL.js.map} +1 -1
  162. package/dist/chunks/{inspector.BjLhY3bE.js → inspector.B9k4tJWe.js} +9 -27
  163. package/dist/chunks/{inspector.BjLhY3bE.js.map → inspector.B9k4tJWe.js.map} +1 -1
  164. package/dist/chunks/isSameWeek.Dj6luS8h.js +14 -0
  165. package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.Dj6luS8h.js.map} +1 -1
  166. package/dist/chunks/{it.BlUnV-yA.js → it.20Y7h-bF.js} +8 -8
  167. package/dist/chunks/{it.BlUnV-yA.js.map → it.20Y7h-bF.js.map} +1 -1
  168. package/dist/chunks/{ja.nUwDmVf2.js → ja.DXlq0H98.js} +27 -27
  169. package/dist/chunks/{ja.nUwDmVf2.js.map → ja.DXlq0H98.js.map} +1 -1
  170. package/dist/chunks/layout-row.B5VJGEQH.js +99 -0
  171. package/dist/chunks/{layout-row.Da8nkm9z.js.map → layout-row.B5VJGEQH.js.map} +1 -1
  172. package/dist/chunks/link.D6D6YGsN.js +113 -0
  173. package/dist/chunks/{link.DTCn2EtX.js.map → link.D6D6YGsN.js.map} +1 -1
  174. package/dist/chunks/list-item.DO5uULke.js +128 -0
  175. package/dist/chunks/list-item.DO5uULke.js.map +1 -0
  176. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js → listbox-option-tag.Cvplth7d.js} +2 -2
  177. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js.map → listbox-option-tag.Cvplth7d.js.map} +1 -1
  178. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js → modal-fullscreen.CuKVyTWb.js} +100 -108
  179. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js.map → modal-fullscreen.CuKVyTWb.js.map} +1 -1
  180. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js} +134 -143
  181. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map} +1 -1
  182. package/dist/chunks/on-click-outside.ZUMLlxE_.js +90 -0
  183. package/dist/chunks/{on-click-outside.BW4rkhzG.js.map → on-click-outside.ZUMLlxE_.js.map} +1 -1
  184. package/dist/chunks/pagination.dpVc6Yt0.js +401 -0
  185. package/dist/chunks/pagination.dpVc6Yt0.js.map +1 -0
  186. package/dist/chunks/popover.types.D8tHtFl3.js +6 -0
  187. package/dist/chunks/{popover.types.DhALnOLQ.js.map → popover.types.D8tHtFl3.js.map} +1 -1
  188. package/dist/chunks/{popper-container.DAK7c9uS.js → popper-container.DMN8n5iC.js} +79 -86
  189. package/dist/chunks/{popper-container.DAK7c9uS.js.map → popper-container.DMN8n5iC.js.map} +1 -1
  190. package/dist/chunks/{promo-banner.aNwH6uQx.js → promo-banner.BzveHNOI.js} +7 -13
  191. package/dist/chunks/{promo-banner.aNwH6uQx.js.map → promo-banner.BzveHNOI.js.map} +1 -1
  192. package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.DmhmCzxE.js} +14 -14
  193. package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.DmhmCzxE.js.map} +1 -1
  194. package/dist/chunks/{radio-group.DEYzF6o7.js → radio-group.Cuiq4mxy.js} +46 -46
  195. package/dist/chunks/{radio-group.DEYzF6o7.js.map → radio-group.Cuiq4mxy.js.map} +1 -1
  196. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js → rich-text-editor.DLMiT4f5.js} +1018 -1024
  197. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js.map → rich-text-editor.DLMiT4f5.js.map} +1 -1
  198. package/dist/chunks/{search-bar.Dtzx88Pv.js → search-bar.CsFyP0_I.js} +6 -15
  199. package/dist/chunks/{search-bar.Dtzx88Pv.js.map → search-bar.CsFyP0_I.js.map} +1 -1
  200. package/dist/chunks/{secondary-nav.Zs7dBoJv.js → secondary-nav.CLBdq98c.js} +6 -12
  201. package/dist/chunks/{secondary-nav.Zs7dBoJv.js.map → secondary-nav.CLBdq98c.js.map} +1 -1
  202. package/dist/chunks/{segmented-control.Aqquod8g.js → segmented-control.KeQ5kuR1.js} +47 -51
  203. package/dist/chunks/{segmented-control.Aqquod8g.js.map → segmented-control.KeQ5kuR1.js.map} +1 -1
  204. package/dist/chunks/selection-card-group.XM11Kk-4.js +412 -0
  205. package/dist/chunks/{selection-card-group.C7IK2Vl5.js.map → selection-card-group.XM11Kk-4.js.map} +1 -1
  206. package/dist/chunks/{sidepanel.DaXPcTHm.js → sidepanel.b2QZ1Jsx.js} +64 -71
  207. package/dist/chunks/{sidepanel.DaXPcTHm.js.map → sidepanel.b2QZ1Jsx.js.map} +1 -1
  208. package/dist/chunks/startOfWeek.Cvmo-f5J.js +9 -0
  209. package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Cvmo-f5J.js.map} +1 -1
  210. package/dist/chunks/status.H00BAmRx.js +42 -0
  211. package/dist/chunks/status.H00BAmRx.js.map +1 -0
  212. package/dist/chunks/status.types.Dx8MDhEH.js +5 -0
  213. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -0
  214. package/dist/chunks/{step.BV7MsrRF.js → step.BlwoLfdw.js} +56 -68
  215. package/dist/chunks/{step.BV7MsrRF.js.map → step.BlwoLfdw.js.map} +1 -1
  216. package/dist/chunks/{structured-list-item.DAIaUMCY.js → structured-list-item.e-8kRleh.js} +8 -14
  217. package/dist/chunks/{structured-list-item.DAIaUMCY.js.map → structured-list-item.e-8kRleh.js.map} +1 -1
  218. package/dist/chunks/{summary-grid.types.BZcZS_dW.js → summary-grid.types.CcvOC03H.js} +172 -179
  219. package/dist/chunks/{summary-grid.types.BZcZS_dW.js.map → summary-grid.types.CcvOC03H.js.map} +1 -1
  220. package/dist/chunks/tab.mR5uUSdp.js +265 -0
  221. package/dist/chunks/{tab.DRrnMCxe.js.map → tab.mR5uUSdp.js.map} +1 -1
  222. package/dist/chunks/{tag.CqWg6C3H.js → tag.DujMVFh-.js} +3 -3
  223. package/dist/chunks/{tag.CqWg6C3H.js.map → tag.DujMVFh-.js.map} +1 -1
  224. package/dist/chunks/textarea.CHV6Z8nt.js +247 -0
  225. package/dist/chunks/{textarea.CvI2InIB.js.map → textarea.CHV6Z8nt.js.map} +1 -1
  226. package/dist/chunks/timeline-item.CaGcRZbt.js +419 -0
  227. package/dist/chunks/timeline-item.CaGcRZbt.js.map +1 -0
  228. package/dist/chunks/{toast.Bbtq3Icj.js → toast.C2oehk9P.js} +72 -78
  229. package/dist/chunks/{toast.Bbtq3Icj.js.map → toast.C2oehk9P.js.map} +1 -1
  230. package/dist/chunks/{toggle.BupEBkIG.js → toggle.BQoprdX-.js} +5 -5
  231. package/dist/chunks/{toggle.BupEBkIG.js.map → toggle.BQoprdX-.js.map} +1 -1
  232. package/dist/chunks/tooltip.CbADa_4p.js +199 -0
  233. package/dist/chunks/{tooltip.Lwtlhv3u.js.map → tooltip.CbADa_4p.js.map} +1 -1
  234. package/dist/chunks/truncate.DmCXQmeb.js +8 -0
  235. package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
  236. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js} +100 -124
  237. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map} +1 -1
  238. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js → use-bento-toast-controller.D_NSnBxi.js} +2 -2
  239. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js.map → use-bento-toast-controller.D_NSnBxi.js.map} +1 -1
  240. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js +1631 -0
  241. package/dist/chunks/{use-cached-selected-values.C4_X3vVj.js.map → use-cached-selected-values.ClEJRFAd.js.map} +1 -1
  242. package/dist/chunks/use-country-items.D_3LBe2I.js +30 -0
  243. package/dist/chunks/{use-country-items.BTzByPdQ.js.map → use-country-items.D_3LBe2I.js.map} +1 -1
  244. package/dist/chunks/use-country-phon-code.DoqTGkNr.js +287 -0
  245. package/dist/chunks/use-country-phon-code.DoqTGkNr.js.map +1 -0
  246. package/dist/chunks/use-date-input-formatter.CDRzd-hW.js +1629 -0
  247. package/dist/chunks/{use-date-input-formatter.dtbK-CEy.js.map → use-date-input-formatter.CDRzd-hW.js.map} +1 -1
  248. package/dist/chunks/use-default-slot-validator.BzHcrgmy.js +12 -0
  249. package/dist/chunks/{use-default-slot-validator.O02rzsob.js.map → use-default-slot-validator.BzHcrgmy.js.map} +1 -1
  250. package/dist/chunks/use-expandable-content-height.B5jjRvCz.js +16 -0
  251. package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.B5jjRvCz.js.map} +1 -1
  252. package/dist/chunks/use-has-slot.CyMiImRQ.js +14 -0
  253. package/dist/chunks/{use-has-slot.B7eQSabc.js.map → use-has-slot.CyMiImRQ.js.map} +1 -1
  254. package/dist/chunks/utils.DWmc2mUI.js +19 -0
  255. package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
  256. package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Ce34mXsX.js} +28 -28
  257. package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Ce34mXsX.js.map} +1 -1
  258. package/dist/click-outside.js +1 -1
  259. package/dist/code-snippet.js +1 -1
  260. package/dist/country.js +3 -3
  261. package/dist/currency.js +1 -1
  262. package/dist/dashboard-template.js +1 -1
  263. package/dist/dashed-underline.js +1 -1
  264. package/dist/data-grid-template.js +1 -1
  265. package/dist/data-grid.js +1 -1
  266. package/dist/date-picker.js +2 -2
  267. package/dist/date-range-picker.js +2 -2
  268. package/dist/date.js +1 -1
  269. package/dist/draggable-handle.js +4 -28
  270. package/dist/draggable-handle.js.map +1 -1
  271. package/dist/dropdown.js +4 -4
  272. package/dist/empty-state.js +1 -1
  273. package/dist/file-uploader.js +1 -1
  274. package/dist/filter-bar.js +1 -1
  275. package/dist/focus-trap.js +1 -1
  276. package/dist/form-layout.js +1 -1
  277. package/dist/header-with-views.js +1 -1
  278. package/dist/header.js +1 -1
  279. package/dist/index.js +241 -241
  280. package/dist/index.js.map +1 -1
  281. package/dist/info-icon.js +1 -1
  282. package/dist/input-field-password.js +1 -1
  283. package/dist/input-field-phone-number.js +1 -1
  284. package/dist/input-field.js +1 -1
  285. package/dist/inspector.js +1 -1
  286. package/dist/internal.js +13 -13
  287. package/dist/layout.js +1 -1
  288. package/dist/link.js +1 -1
  289. package/dist/list.js +6 -0
  290. package/dist/list.js.map +1 -0
  291. package/dist/menu.js +1 -1
  292. package/dist/modal-fullscreen.js +1 -1
  293. package/dist/modal.js +2 -2
  294. package/dist/pagination.js +1 -1
  295. package/dist/popover.js +2 -2
  296. package/dist/popper-container.js +1 -1
  297. package/dist/promo-banner.js +1 -1
  298. package/dist/radio-group.js +1 -1
  299. package/dist/rich-text-editor.js +1 -1
  300. package/dist/search-bar.js +2 -2
  301. package/dist/secondary-nav.js +1 -1
  302. package/dist/segmented-control.js +1 -1
  303. package/dist/selection-card.js +1 -1
  304. package/dist/sidepanel.js +1 -1
  305. package/dist/status.js +4 -3
  306. package/dist/status.js.map +1 -1
  307. package/dist/stepper.js +1 -1
  308. package/dist/structured-list.js +1 -1
  309. package/dist/summary-grid.js +1 -1
  310. package/dist/tabs.js +1 -1
  311. package/dist/tag.js +1 -1
  312. package/dist/textarea.js +1 -1
  313. package/dist/timeline.js +1 -1
  314. package/dist/toast.js +1 -1
  315. package/dist/toggle.js +1 -1
  316. package/dist/tutorial.js +1 -1
  317. package/dist/use-form-v4.js +331 -341
  318. package/dist/use-form-v4.js.map +1 -1
  319. package/dist/web-types.json +1 -1
  320. package/package.json +7 -7
  321. package/dist/chunks/anchor-scroller.BctgW0se.js +0 -214
  322. package/dist/chunks/base-modal.gZAtk-xP.js +0 -443
  323. package/dist/chunks/button-actions-with-menu.Tba1ME79.js +0 -93
  324. package/dist/chunks/calendar.vM3abC8y.js +0 -1234
  325. package/dist/chunks/click-outside.CDz_x8mN.js +0 -23
  326. package/dist/chunks/constructNow.CIc7d13I.js +0 -8
  327. package/dist/chunks/country.types.BBQbWkTY.js +0 -773
  328. package/dist/chunks/dashboard-section.CgoLquLP.js +0 -165
  329. package/dist/chunks/dashed-underline.wbRHATeE.js +0 -114
  330. package/dist/chunks/data-grid-template.D40V1cmi.js +0 -144
  331. package/dist/chunks/data-grid.C2nCCbeC.js +0 -4368
  332. package/dist/chunks/date-picker.D5B_SECc.js +0 -251
  333. package/dist/chunks/date-range-picker.B0q7Z4df.js +0 -1084
  334. package/dist/chunks/differenceInMonths.CIYECBxK.js +0 -43
  335. package/dist/chunks/dropdown.CxjzXI-k.js +0 -837
  336. package/dist/chunks/filter-bar.DJ7O4zLX.js +0 -4036
  337. package/dist/chunks/filter-bar.DJ7O4zLX.js.map +0 -1
  338. package/dist/chunks/fixed-scroller.i1tmEmst.js +0 -161
  339. package/dist/chunks/get-slot-text.CQRAP2_q.js +0 -12
  340. package/dist/chunks/input-field-password.C_h61CMn.js +0 -402
  341. package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
  342. package/dist/chunks/layout-row.Da8nkm9z.js +0 -100
  343. package/dist/chunks/link.DTCn2EtX.js +0 -116
  344. package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
  345. package/dist/chunks/pagination.B32UgSoH.js +0 -488
  346. package/dist/chunks/pagination.B32UgSoH.js.map +0 -1
  347. package/dist/chunks/popover.types.DhALnOLQ.js +0 -6
  348. package/dist/chunks/selection-card-group.C7IK2Vl5.js +0 -417
  349. package/dist/chunks/startOfWeek.CXhhX-R7.js +0 -10
  350. package/dist/chunks/status.types.D3v3k-Q8.js +0 -44
  351. package/dist/chunks/status.types.D3v3k-Q8.js.map +0 -1
  352. package/dist/chunks/tab.DRrnMCxe.js +0 -273
  353. package/dist/chunks/textarea.CvI2InIB.js +0 -255
  354. package/dist/chunks/timeline-item.BooD99hL.js +0 -427
  355. package/dist/chunks/timeline-item.BooD99hL.js.map +0 -1
  356. package/dist/chunks/tooltip.Lwtlhv3u.js +0 -202
  357. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  358. package/dist/chunks/use-cached-selected-values.C4_X3vVj.js +0 -1711
  359. package/dist/chunks/use-country-items.BTzByPdQ.js +0 -30
  360. package/dist/chunks/use-country-phon-code.Bui3zD6W.js +0 -5621
  361. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +0 -1
  362. package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +0 -1732
  363. package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
  364. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  365. package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
  366. package/dist/chunks/utils.BzUwtTXc.js +0 -21
@@ -0,0 +1,995 @@
1
+ import { reactive as ke, defineComponent as Ze, useSlots as ba, ref as F, computed as f, onMounted as ea, openBlock as O, createElementBlock as Te, createElementVNode as H, normalizeClass as be, unref as m, renderSlot as Ue, createCommentVNode as _, createBlock as $, createVNode as j, withCtx as P, createTextVNode as ee, toDisplayString as _e, toRaw as Ae, watch as he, useAttrs as ha, toRef as Oe, withDirectives as ka, withKeys as Ve, createSlots as Ra } from "vue";
2
+ import { j as Ma } from "./index.DDwcHPb6.js";
3
+ import { B as Ia } from "./divider.BIY84UH7.js";
4
+ import { h as wa, B as Sa } from "./button-actions.cMQWyZne.js";
5
+ import { B as Be, d as Pe } from "./typography.B3J6_tYk.js";
6
+ import { g as se } from "./generate-uid.DBWe4g6T.js";
7
+ import { u as Ce } from "./index.B875RXHM.js";
8
+ import { e as aa, f as le, i as q, h, j as Oa, k as $e, l as Ea, s as je, m as Fa, n as Le, b as V, u as _a, o as A, g as Aa } from "./calendar.DcCqkSNJ.js";
9
+ import { u as qe, a as Ba } from "./use-date-input-formatter.CDRzd-hW.js";
10
+ import { t as L, n as Ca, c as qa } from "./en-US.CCazFVNP.js";
11
+ import { u as Ya } from "./use-form-layout-loading.CWbjZiwP.js";
12
+ import { B as Na } from "./directive.Dpivxq_t.js";
13
+ import { u as xa } from "./form-field.D_2g7vaP.js";
14
+ import { D as Ua } from "./dropdown-default-textbox.bq9AlGzJ.js";
15
+ import { B as ye } from "./input-field.CfU0ZKtL.js";
16
+ import { B as Va } from "./dropdown.MhmX1P9o.js";
17
+ import { B as Pa } from "./segmented-control.KeQ5kuR1.js";
18
+ import { d as ge } from "./debounce.DUTu11PS.js";
19
+ import { u as $a } from "./use-has-slot.CyMiImRQ.js";
20
+ import { e as N, a as Qe } from "./differenceInMonths.s_znQQpw.js";
21
+ import { s as We } from "./startOfWeek.Cvmo-f5J.js";
22
+ import { c as ja } from "./constructNow.D9uRk678.js";
23
+ import { _ as ta } from "./_plugin-vue_export-helper.CHgC5LLL.js";
24
+ import { F as La, E as Ge } from "./error-message.DCgo8q20.js";
25
+ import { B as Qa } from "./button-actions.types.BptAXjD8.js";
26
+ import "../assets/date-range-picker.css";
27
+ function na(t, i, c) {
28
+ return aa(t, i * 3, c);
29
+ }
30
+ function Ke(t, i) {
31
+ const c = L(t, i?.in);
32
+ return Math.trunc(c.getMonth() / 3) + 1;
33
+ }
34
+ function He(t, i) {
35
+ return L(t, i?.in).getFullYear();
36
+ }
37
+ function Ee(t, i) {
38
+ return +L(t) == +L(i);
39
+ }
40
+ function Wa(t, i, c) {
41
+ const [s, e] = Ca(
42
+ c?.in,
43
+ t,
44
+ i
45
+ );
46
+ return +le(s) == +le(e);
47
+ }
48
+ function ze(t, i) {
49
+ const c = L(t, i?.in);
50
+ return c.setMilliseconds(0), c;
51
+ }
52
+ function Fe(t, i) {
53
+ return +ze(t) == +ze(i);
54
+ }
55
+ function Ga(t, i) {
56
+ return q(
57
+ qa(t, t),
58
+ ja(t)
59
+ );
60
+ }
61
+ function Ka(t, i, c) {
62
+ const s = L(t, c?.in);
63
+ return s.setHours(i), s;
64
+ }
65
+ function Je(t, i, c) {
66
+ const s = L(t, c?.in);
67
+ return s.setMilliseconds(i), s;
68
+ }
69
+ function Ha(t, i, c) {
70
+ const s = L(t, c?.in);
71
+ return s.setMinutes(i), s;
72
+ }
73
+ function za(t, i, c) {
74
+ const s = L(t, c?.in);
75
+ return s.setSeconds(i), s;
76
+ }
77
+ function Ja(t, i, c) {
78
+ return na(t, -1, c);
79
+ }
80
+ const Xa = ({
81
+ firstDayOfWeek: t,
82
+ min: i,
83
+ max: c
84
+ }) => ({ getGranularCalendarLimits: (e) => {
85
+ if (!i && !c)
86
+ return { min: null, max: null };
87
+ let u = i ? h(i) : null, D = c ? N(c) : null;
88
+ if (e?.type === "weekly") {
89
+ if (e.earliest)
90
+ u = h(e.earliest);
91
+ else if (u) {
92
+ const p = We(u, { weekStartsOn: t });
93
+ q(u, p) || (u = h(Oa($e(u, { weekStartsOn: t }), 1)));
94
+ }
95
+ if (e.latest)
96
+ D = N(e.latest);
97
+ else if (D) {
98
+ const p = $e(D, { weekStartsOn: t });
99
+ q(D, p) || (D = N(Ea(We(D, { weekStartsOn: t }), 1)));
100
+ }
101
+ }
102
+ if (e?.type === "monthly") {
103
+ if (e.earliest)
104
+ u = h(e.earliest);
105
+ else if (u) {
106
+ const p = je(u);
107
+ q(u, p) || (u = je(aa(u, 1)));
108
+ }
109
+ if (e.latest)
110
+ D = N(e.latest);
111
+ else if (D) {
112
+ const p = Qe(D);
113
+ q(D, p) || (D = Qe(Fa(D, 1)));
114
+ }
115
+ }
116
+ if (e?.type === "quarterly") {
117
+ if (e.earliest)
118
+ u = le(e.earliest);
119
+ else if (u) {
120
+ const p = le(u);
121
+ q(u, p) || (u = le(na(u, 1)));
122
+ }
123
+ if (e.latest)
124
+ D = N(e.latest);
125
+ else if (D) {
126
+ const p = Le(D);
127
+ q(D, p) || (D = Le(Ja(D)));
128
+ }
129
+ }
130
+ return { min: u, max: D };
131
+ } }), Za = () => {
132
+ const t = ke({
133
+ daily: null,
134
+ weekly: null,
135
+ monthly: null,
136
+ quarterly: null
137
+ });
138
+ return {
139
+ savedRanges: t,
140
+ saveRange: (s, e) => {
141
+ t[s] = e;
142
+ },
143
+ resetSavedRanges: () => {
144
+ t.daily = null, t.weekly = null, t.monthly = null, t.quarterly = null;
145
+ }
146
+ };
147
+ };
148
+ var v = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(v || {});
149
+ const et = /[\d]/, at = /^\d{2}$/, tt = /^\d{2}:\d{2}$/, nt = (t) => {
150
+ const { selectionStart: i } = t.target, c = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], s = et.test(t.key) || c.includes(t.key), e = [1, 2, 4, 5].includes(i) && t.key === ":";
151
+ !s && !e && t.preventDefault();
152
+ }, Xe = (t) => {
153
+ if (!t)
154
+ return t;
155
+ let i = t;
156
+ if (i.length === 1 && parseInt(t, 10) > 2)
157
+ return `0${i}:`;
158
+ const [c, s] = i.slice(-2);
159
+ return [2, 5].includes(i.length) && s === ":" && (i = `${i.slice(0, i.length - 2)}0${c}`), (at.test(i) || tt.test(i)) && (i += ":"), i;
160
+ }, ra = {
161
+ "en-US": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "Last three months", monthly: "Monthly", quarterly: "Quarterly", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
162
+ "ja-JP": { customRange: "カスタム範囲", daily: "毎日", dateFrom: "開始日", dateTo: "日付まで", lastMonth: "先月", lastSevenDays: "過去7日間", lastThreeMonths: "過去3か月", monthly: "毎月", quarterly: "毎四半期", timeFrom: "開始時刻", timeTo: "終了時刻", weekly: "毎週" },
163
+ "pt-BR": { customRange: "Intervalo personalizado", daily: "Diária", dateFrom: "Data a partir de", dateTo: "Data até", lastMonth: "Último mês", lastSevenDays: "Últimos 7 dias", lastThreeMonths: "Últimos 3 meses", monthly: "Mensal", quarterly: "Trimestral", timeFrom: "Horário a partir de", timeTo: "Hora de", weekly: "Semanal" }
164
+ }, rt = { class: "b-date-range-picker-calendar" }, st = { class: "b-date-range-picker-calendar__form" }, lt = { key: 0 }, ot = {
165
+ key: 0,
166
+ class: "b-date-range-picker-calendar__calendars-container",
167
+ "data-testid": "date-range-picker-calendar-calendar-container"
168
+ }, it = {
169
+ name: "date-range-picker-calendar",
170
+ i18n: { messages: ra }
171
+ }, ut = /* @__PURE__ */ Ze({
172
+ ...it,
173
+ props: {
174
+ /**
175
+ * Allows user to enter time values in the form
176
+ */
177
+ allowTimeInput: { type: Boolean, default: !1 },
178
+ /**
179
+ * Ranges form persistance data
180
+ */
181
+ dateFormData: {
182
+ type: Object,
183
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
184
+ },
185
+ /**
186
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
187
+ */
188
+ firstDayOfWeek: V.props.firstDayOfWeek,
189
+ /**
190
+ * A list of available granularities.
191
+ * If present, the date picker will display a segmented control to change granularity.
192
+ */
193
+ granularities: {
194
+ type: Array,
195
+ default: null
196
+ },
197
+ /**
198
+ * Indicate if a date should be disabled or not
199
+ */
200
+ isDateDisabled: V.props.isDateDisabled,
201
+ /**
202
+ * Set a maximum number of dates to be selectable by the range.
203
+ */
204
+ maxRange: V.props.maxRange,
205
+ /**
206
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
207
+ */
208
+ min: V.props.min,
209
+ /**
210
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
211
+ */
212
+ max: V.props.max,
213
+ /**
214
+ * Number of months rendered on pane
215
+ */
216
+ numberOfMonths: {
217
+ type: V.props.numberOfMonths.type,
218
+ default: V.props.numberOfMonths.default,
219
+ validator: (t) => t >= 0
220
+ },
221
+ /**
222
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
223
+ */
224
+ showEndDateOnOpen: { type: Boolean, default: !1 },
225
+ /**
226
+ * Enables the custom range selector.
227
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
228
+ * `label` - label of custom range item.
229
+ * `value` - a unique key of the custom range item.
230
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
231
+ */
232
+ quickSelectRanges: {
233
+ type: Array,
234
+ default: void 0
235
+ },
236
+ /**
237
+ * Selected date
238
+ */
239
+ value: { type: Object, default: void 0 },
240
+ /**
241
+ * The type of calendar to display. Defaults to showing days.
242
+ */
243
+ variant: V.props.variant
244
+ },
245
+ emits: [
246
+ v.CUSTOM_RANGE,
247
+ v.INPUT,
248
+ v.ERROR,
249
+ v.FORM_DATE,
250
+ v.START_DATE_SELECTED
251
+ ],
252
+ setup(t, { emit: i }) {
253
+ const s = "customRange", e = t, u = i, D = ba(), p = $a(D), { t: k } = Ce({ messages: ra }), {
254
+ dateFormat: Q,
255
+ isFormatValid: M,
256
+ parseDate: E,
257
+ onKeyDown: oe,
258
+ autoFormat: b,
259
+ formatDate: Y
260
+ } = qe(), B = F({}), W = f(() => e.variant === "month" ? "monthly" : "daily"), ae = f(() => e.numberOfMonths === 0), n = ke({
261
+ startDate: e.value?.startDate,
262
+ endDate: e.value?.endDate,
263
+ range: e.value?.range,
264
+ ...e.granularities ? {
265
+ granularity: e.value?.granularity || W.value
266
+ } : {}
267
+ }), C = f(() => (
268
+ // eslint-disable-next-line consistent-return
269
+ e?.quickSelectRanges?.find(({ value: a, data: r }) => {
270
+ if (!r.endDate) {
271
+ if (r.isRelativeToNow) {
272
+ const d = B.value?.[a];
273
+ return d ? Ee(d.startDate, n.startDate) && Ee(d.endDate, n.endDate) : (
274
+ // If not stored calculated dates, fall back to comparing the quick select item's value
275
+ // with the internal range's stored range identifier.
276
+ a === n.range
277
+ );
278
+ }
279
+ return Ee(r.startDate, n.startDate) && Ga(n.endDate) && (!e.allowTimeInput || Fe(n.endDate, N(n.endDate))) && (e.granularities ? r.granularity === n.granularity : !0);
280
+ }
281
+ if (e.allowTimeInput)
282
+ return Fe(r.startDate, n.startDate) && Fe(r.endDate, n.endDate) && (e.granularities ? r.granularity === n.granularity : !0);
283
+ if (r.endDate)
284
+ return q(r.startDate, n.startDate) && q(r.endDate, n.endDate) && (e.granularities ? r.granularity === n.granularity : !0);
285
+ })?.value ?? s
286
+ )), w = f(() => ({
287
+ "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
288
+ })), Re = f(() => [
289
+ { label: k("customRange"), value: s },
290
+ ...e.quickSelectRanges ? e.quickSelectRanges : []
291
+ ]), z = f(
292
+ () => e.granularities?.find(({ type: a }) => a === n.granularity) || null
293
+ ), ie = f(
294
+ () => e.granularities?.map(({ type: a, disabled: r }) => ({
295
+ label: k(a),
296
+ value: a,
297
+ disabled: r
298
+ })) ?? []
299
+ ), { getGranularCalendarLimits: ne } = Xa(e), g = f(
300
+ () => e.granularities ? ne(z.value) : { min: e.min ? h(e.min) : null, max: e.max ? N(e.max) : null }
301
+ ), {
302
+ adjustDateForQuarterly: Me,
303
+ adjustDateForMonthly: ue,
304
+ adjustDateForWeekly: re,
305
+ adjustStartDateInputForWeekly: T,
306
+ adjustEndDateInputForWeekly: Ie,
307
+ adjustStartDateInputForMonthly: J,
308
+ adjustEndDateInputForMonthly: we,
309
+ adjustStartDateInputForQuarterly: de,
310
+ adjustEndDateInputForQuarterly: me
311
+ } = _a(e.firstDayOfWeek), { savedRanges: S, saveRange: te, resetSavedRanges: ce } = Za(), I = (a) => a ? Y(a) : "", X = F(!1), Z = F(!1), x = F(!1), U = F(!1), o = ke({
312
+ startDate: e.dateFormData.startDate,
313
+ endDate: e.dateFormData.endDate,
314
+ startTime: e.dateFormData.startTime,
315
+ endTime: e.dateFormData.endTime
316
+ }), De = (a, r) => {
317
+ let d = new Date(a);
318
+ const [y, K, Ta] = r.split(":");
319
+ return d = Ka(d, parseInt(y, 10)), d = Ha(d, parseInt(K, 10)), d = za(d, parseInt(Ta, 10)), d;
320
+ }, fe = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), l = (a, r) => {
321
+ const d = () => {
322
+ if (r && G(r)) {
323
+ const y = De(E(r), a);
324
+ if (e.min && y < Je(e.min, 0) || e.max && y > Je(e.max, 0))
325
+ return !1;
326
+ }
327
+ return !0;
328
+ };
329
+ return fe(a) && d();
330
+ }, R = (a, r) => !r || !fe(r) || e.variant === "month" ? a : De(new Date(a), r), pe = (a) => {
331
+ o.startTime = A(
332
+ e.min && e.allowTimeInput && q(e.min, a.startDate) ? e.min : h(a.startDate)
333
+ ), o.endTime = A(
334
+ e.max && e.allowTimeInput && q(e.max, a.endDate) ? e.max : N(a.endDate)
335
+ ), n.startDate = R(a.startDate, o.startTime), n.endDate = R(a.endDate, o.endTime), n.range = null, e.granularities && ce(), u(v.INPUT, {
336
+ ...n,
337
+ range: C.value
338
+ });
339
+ }, G = (a) => {
340
+ if (!a)
341
+ return !1;
342
+ const r = (d) => e.min && h(d) < h(e.min) || e.max && h(d) > h(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(h(d)) : !0;
343
+ return M(a) && r(E(a));
344
+ };
345
+ ea(() => {
346
+ X.value = !!(e.dateFormData.startDate && !G(e.dateFormData.startDate)), e.allowTimeInput ? x.value = !!(e.dateFormData.startTime && !l(e.dateFormData.startTime, e.dateFormData.startDate)) : x.value = !1, Z.value = !!(e.dateFormData.endDate && !G(e.dateFormData.endDate)), e.allowTimeInput ? U.value = !!(e.dateFormData.endTime && !l(e.dateFormData.endTime, e.dateFormData.endDate)) : U.value = !1;
347
+ });
348
+ const sa = (a) => {
349
+ o.startDate = I(a), o.startTime ? x.value && (o.startTime = e.dateFormData?.startTime) : o.startTime = A(a), X.value = !1, x.value = !1, u(v.START_DATE_SELECTED, a);
350
+ }, la = (a) => {
351
+ o.endDate = I(a), o.endTime ? U.value && (o.endTime = e.dateFormData?.endTime) : o.endTime = A(N(a)), Z.value = !1, U.value = !1;
352
+ }, Se = (a) => {
353
+ const r = e.value[a];
354
+ if (r)
355
+ return r;
356
+ if (e.dateFormData[a] && G(e.dateFormData[a]))
357
+ return E(e.dateFormData[a]);
358
+ }, oa = ge((a) => {
359
+ if (G(a)) {
360
+ let r = a;
361
+ switch (X.value = !1, z.value?.type) {
362
+ case "weekly":
363
+ r = T(
364
+ a,
365
+ I,
366
+ g.value.min,
367
+ g.value.max
368
+ ), o.startDate = r;
369
+ break;
370
+ case "monthly":
371
+ r = J(
372
+ a,
373
+ I,
374
+ g.value.min,
375
+ g.value.max
376
+ ), o.startDate = r;
377
+ break;
378
+ case "quarterly":
379
+ r = de(
380
+ a,
381
+ I,
382
+ g.value.min,
383
+ g.value.max
384
+ ), o.startDate = r;
385
+ break;
386
+ }
387
+ const d = h(E(r));
388
+ n.startDate = R(d, o.startTime), n.endDate = R(
389
+ h(E(o.endDate)),
390
+ o.endTime
391
+ ), G(o.endDate) && (n.endDate = R(
392
+ h(E(o.endDate)),
393
+ o.endTime
394
+ ));
395
+ const y = Se("endDate");
396
+ n.range = null, u(v.FORM_DATE, {
397
+ startDate: d,
398
+ endDate: y
399
+ }), u(v.INPUT, {
400
+ ...n,
401
+ range: C.value
402
+ });
403
+ } else
404
+ X.value = !0, u(v.ERROR, { ...o });
405
+ }, 300), ia = (a) => {
406
+ o.startDate = b(a), oa(o.startDate);
407
+ }, ua = ge((a) => {
408
+ if (G(a)) {
409
+ let r = a;
410
+ switch (Z.value = !1, z.value?.type) {
411
+ case "weekly":
412
+ r = Ie(
413
+ a,
414
+ I,
415
+ g.value.min,
416
+ g.value.max
417
+ ), o.endDate = r;
418
+ break;
419
+ case "monthly":
420
+ r = we(
421
+ a,
422
+ I,
423
+ g.value.min,
424
+ g.value.max
425
+ ), o.endDate = r;
426
+ break;
427
+ case "quarterly":
428
+ r = me(
429
+ a,
430
+ I,
431
+ g.value.min,
432
+ g.value.max
433
+ ), o.endDate = r;
434
+ break;
435
+ }
436
+ const d = h(E(r));
437
+ n.endDate = R(d, o.endTime), G(o.startDate) && (n.startDate = R(
438
+ h(E(o.startDate)),
439
+ o.startTime
440
+ ));
441
+ const y = Se("startDate");
442
+ n.range = null, u(v.FORM_DATE, {
443
+ startDate: y,
444
+ endDate: d
445
+ }), u(v.INPUT, {
446
+ ...n,
447
+ range: C.value
448
+ });
449
+ } else
450
+ Z.value = !0, u(v.ERROR, { ...o });
451
+ }, 300), da = (a) => {
452
+ o.endDate = b(a), ua(o.endDate);
453
+ }, Ne = (a) => {
454
+ oe(a);
455
+ }, ma = ge((a) => {
456
+ if (l(a, e.dateFormData.startDate)) {
457
+ x.value = !1, n.startDate = R(n.startDate, a);
458
+ const r = Se("endDate");
459
+ u(v.FORM_DATE, {
460
+ startDate: n.startDate,
461
+ endDate: r,
462
+ startTime: a,
463
+ endTime: o.endTime ?? e.dateFormData.endTime
464
+ }), u(v.INPUT, {
465
+ ...n,
466
+ range: C.value
467
+ });
468
+ } else
469
+ x.value = !0, u(v.ERROR, { ...o });
470
+ }), ca = ge((a) => {
471
+ l(a, e.dateFormData.endDate) ? (U.value = !1, n.endDate = R(n.endDate, a), u(v.FORM_DATE, {
472
+ startDate: n.startDate,
473
+ endDate: n.endDate,
474
+ startTime: o.startTime ?? e.dateFormData.startTime,
475
+ endTime: a
476
+ }), u(v.INPUT, {
477
+ ...n,
478
+ range: C.value
479
+ })) : (U.value = !0, u(v.ERROR, { ...o }));
480
+ }), Da = (a) => {
481
+ o.startTime = Xe(a), ma(o.startTime);
482
+ }, fa = (a) => {
483
+ o.endTime = Xe(a), ca(o.endTime);
484
+ }, xe = (a) => {
485
+ nt(a);
486
+ }, ve = (a, r, d, y) => {
487
+ n.startDate = a, n.endDate = r, d && (n.granularity = d), y && (n.range = y);
488
+ }, pa = (a) => {
489
+ const r = e.quickSelectRanges?.find(({ value: d }) => d === a);
490
+ if (r) {
491
+ ce();
492
+ const d = r.data, y = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : N(new Date(Date.now()))), K = d.isRelativeToNow && d.timeDifference ? new Date(y.getTime() - d.timeDifference) : d.startDate;
493
+ o.endDate = I(y), o.startDate = I(K), ve(K, y, null, a), e.granularities && (n.granularity = d.granularity || W.value), o.startTime = A(K), o.endTime = A(y), n.startDate = K, n.endDate = y, d.isRelativeToNow && (B.value = {
494
+ ...B.value,
495
+ [a]: {
496
+ startDate: K,
497
+ endDate: y
498
+ }
499
+ }), u(v.CUSTOM_RANGE, {
500
+ ...r.data,
501
+ startDate: K,
502
+ endDate: y,
503
+ range: r.value
504
+ });
505
+ }
506
+ }, va = {
507
+ weekly: re,
508
+ monthly: ue,
509
+ quarterly: Me
510
+ }, ya = (a) => {
511
+ const r = n.granularity;
512
+ if (n.granularity = a, r && te(r, structuredClone(Ae(n))), n.startDate && n.endDate) {
513
+ switch (a) {
514
+ case "quarterly":
515
+ case "monthly":
516
+ case "weekly": {
517
+ if (S[a]) {
518
+ ve(S[a].startDate, S[a].endDate, a);
519
+ break;
520
+ }
521
+ const { startDate: d, endDate: y } = va[a](
522
+ n.startDate,
523
+ n.endDate,
524
+ g.value.min,
525
+ g.value.max
526
+ );
527
+ ve(d, y, a);
528
+ break;
529
+ }
530
+ case "daily":
531
+ S.daily && ve(S.daily.startDate, S.daily.endDate, a);
532
+ break;
533
+ }
534
+ o.startDate = I(n.startDate), o.endDate = I(n.endDate), u(v.INPUT, {
535
+ ...n,
536
+ range: C.value
537
+ });
538
+ }
539
+ }, ga = f(() => ({
540
+ "b-date-range-picker-calendar__form-container--no-calendars": ae.value
541
+ }));
542
+ return (a, r) => (O(), Te("div", rt, [
543
+ H("div", {
544
+ class: be(["b-date-range-picker-calendar__form-container", ga.value]),
545
+ "data-testid": "date-range-picker-calendar-form-container"
546
+ }, [
547
+ H("div", st, [
548
+ m(p)("title") ? Ue(a.$slots, "title", { key: 0 }, void 0, !0) : _("", !0),
549
+ t.quickSelectRanges ? (O(), $(Va, {
550
+ key: 1,
551
+ "aria-label": m(k)("customRange"),
552
+ items: Re.value,
553
+ "model-value": C.value,
554
+ "onUpdate:modelValue": pa
555
+ }, null, 8, ["aria-label", "items", "model-value"])) : _("", !0),
556
+ t.granularities ? (O(), $(m(Pa), {
557
+ key: 2,
558
+ items: ie.value,
559
+ "model-value": n.granularity,
560
+ "full-width": "",
561
+ "onUpdate:modelValue": ya
562
+ }, null, 8, ["items", "model-value"])) : _("", !0),
563
+ H("div", null, [
564
+ j(m(Be), {
565
+ stronger: "",
566
+ el: "span",
567
+ class: "b-date-range-picker-calendar__label"
568
+ }, {
569
+ default: P(() => r[0] || (r[0] = [
570
+ ee(" From ")
571
+ ])),
572
+ _: 1
573
+ }),
574
+ H("div", {
575
+ class: be(w.value)
576
+ }, [
577
+ j(m(ye), {
578
+ "aria-label": m(k)("dateFrom"),
579
+ "model-value": o.startDate,
580
+ error: X.value,
581
+ class: "b-date-range-picker-calendar__form-input",
582
+ "onUpdate:modelValue": ia,
583
+ onKeydown: Ne
584
+ }, {
585
+ description: P(() => [
586
+ ee(_e(m(k)(m(Q))), 1)
587
+ ]),
588
+ _: 1
589
+ }, 8, ["aria-label", "model-value", "error"]),
590
+ t.allowTimeInput ? (O(), $(m(ye), {
591
+ key: 0,
592
+ "aria-label": m(k)("timeFrom"),
593
+ "model-value": o.startTime,
594
+ error: x.value,
595
+ class: "b-date-range-picker-calendar__form-input",
596
+ "onUpdate:modelValue": Da,
597
+ onKeydown: xe
598
+ }, {
599
+ description: P(() => r[1] || (r[1] = [
600
+ ee("HH:MM:SS")
601
+ ])),
602
+ _: 1
603
+ }, 8, ["aria-label", "model-value", "error"])) : _("", !0)
604
+ ], 2)
605
+ ]),
606
+ H("div", null, [
607
+ j(m(Be), {
608
+ stronger: "",
609
+ el: "span",
610
+ class: "b-date-range-picker-calendar__label"
611
+ }, {
612
+ default: P(() => r[2] || (r[2] = [
613
+ ee(" To ")
614
+ ])),
615
+ _: 1
616
+ }),
617
+ H("div", {
618
+ class: be(w.value)
619
+ }, [
620
+ j(m(ye), {
621
+ class: "b-date-range-picker-calendar__form-input",
622
+ "aria-label": m(k)("dateTo"),
623
+ "model-value": o.endDate,
624
+ error: Z.value,
625
+ "onUpdate:modelValue": da,
626
+ onKeydown: Ne
627
+ }, {
628
+ description: P(() => [
629
+ ee(_e(m(k)(m(Q))), 1)
630
+ ]),
631
+ _: 1
632
+ }, 8, ["aria-label", "model-value", "error"]),
633
+ t.allowTimeInput ? (O(), $(m(ye), {
634
+ key: 0,
635
+ "aria-label": m(k)("timeTo"),
636
+ "model-value": o.endTime,
637
+ error: U.value,
638
+ class: "b-date-range-picker-calendar__form-input",
639
+ "onUpdate:modelValue": fa,
640
+ onKeydown: xe
641
+ }, {
642
+ description: P(() => r[3] || (r[3] = [
643
+ ee("HH:MM:SS")
644
+ ])),
645
+ _: 1
646
+ }, 8, ["aria-label", "model-value", "error"])) : _("", !0)
647
+ ], 2)
648
+ ])
649
+ ]),
650
+ m(p)("actions") ? (O(), Te("div", lt, [
651
+ Ue(a.$slots, "actions", {}, void 0, !0)
652
+ ])) : _("", !0)
653
+ ], 2),
654
+ ae.value ? _("", !0) : (O(), Te("div", ot, [
655
+ j(m(V), {
656
+ value: n,
657
+ "first-day-of-week": t.firstDayOfWeek,
658
+ "is-date-disabled": t.isDateDisabled,
659
+ "max-range": t.maxRange,
660
+ min: g.value.min,
661
+ max: g.value.max,
662
+ "number-of-months": t.numberOfMonths,
663
+ "show-end-date-on-open": t.showEndDateOnOpen,
664
+ granularity: z.value,
665
+ variant: t.variant,
666
+ "is-range": "",
667
+ onInput: pe,
668
+ onStartDateSelected: sa,
669
+ onEndDateSelected: la
670
+ }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant"])
671
+ ]))
672
+ ]));
673
+ }
674
+ }), dt = /* @__PURE__ */ ta(ut, [["__scopeId", "data-v-cf6285de"]]), Ye = {
675
+ "en-US": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", provideDateInAFormat: "Provide date in a YYYY-MM-DD format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
676
+ "ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
677
+ "pt-BR": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Seletor de intervalo de datas {name}", provideDateInAFormat: "Forneça a data no formato AAAA-MM-DD", quarter: "{quarter}º trimestre de {year}", selectDate: "Selecione uma data", selectDateRange: "Selecione um intervalo de datas", selectedDateIsNotAvailable: "A data selecionada não está disponível" }
678
+ }, mt = ({
679
+ datePickerValue: t,
680
+ isDateIncorrect: i,
681
+ quickSelectRanges: c,
682
+ isMonthVariant: s,
683
+ withTimeInput: e,
684
+ placeholder: u
685
+ }) => {
686
+ const { locale: D, t: p } = Ce({ messages: Ye }), { dateToInputDateString: k } = qe(), Q = (b) => !!b && !isNaN(b.getTime()), M = ke({
687
+ startDate: null,
688
+ endDate: null,
689
+ startTime: null,
690
+ endTime: null
691
+ });
692
+ return he(
693
+ t,
694
+ (b) => {
695
+ M.startDate = k(b?.startDate), M.endDate = k(b?.endDate), M.startTime = A(b?.startDate), M.endTime = A(b?.endDate);
696
+ },
697
+ { immediate: !0 }
698
+ ), {
699
+ // Values
700
+ dateDisplayValue: f(() => {
701
+ if (i.value)
702
+ return `${M.startDate || ""} - ${M.endDate || ""}`;
703
+ if (!t.value || !t.value.startDate && !t.value.endDate)
704
+ return u?.value || p("selectDateRange");
705
+ if (c.value?.length) {
706
+ const Y = c.value.find(({ value: B }) => B === t.value?.range);
707
+ if (Y)
708
+ return Y.label;
709
+ }
710
+ if (t.value.granularity === "quarterly") {
711
+ const { startDate: Y, endDate: B } = t.value, W = p("quarter", { quarter: Ke(Y), year: He(Y) });
712
+ if (Wa(Y, B))
713
+ return W;
714
+ const ae = p("quarter", { quarter: Ke(B), year: He(B) });
715
+ return `${W} - ${ae}`;
716
+ }
717
+ if (!Q(t.value.startDate) || !Q(t.value.endDate))
718
+ return `${M.startDate || ""} - ${M.endDate || ""}`;
719
+ let b = s?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
720
+ return e.value && (b = {
721
+ ...b,
722
+ hour: "numeric",
723
+ minute: "numeric",
724
+ second: "numeric",
725
+ hour12: !1
726
+ }), Aa(D.value, b).formatRange(
727
+ t.value.startDate,
728
+ t.value.endDate
729
+ );
730
+ }),
731
+ textInputDisplayValue: M,
732
+ // Methods
733
+ formatTextInputDisplayValue: () => ""
734
+ };
735
+ }, ct = { class: "b-date-range-picker" }, Dt = { class: "b-date-range-picker__footer" }, ft = {
736
+ i18n: { messages: Ye },
737
+ name: "bento-date-range-picker",
738
+ model: { prop: "modelValue" }
739
+ }, pt = /* @__PURE__ */ Ze({
740
+ ...ft,
741
+ props: {
742
+ allowTimeInput: { type: Boolean },
743
+ firstDayOfWeek: { default: void 0 },
744
+ granularities: {},
745
+ isDateDisabled: { type: Function, default: void 0 },
746
+ showEndDateOnOpen: { type: Boolean, default: !1 },
747
+ quickSelectRanges: { default: void 0 },
748
+ maxRange: { default: null },
749
+ min: { default: null },
750
+ max: { default: null },
751
+ numberOfMonths: { default: void 0 },
752
+ modelValue: { default: null },
753
+ value: { default: null },
754
+ variant: { default: void 0 },
755
+ hasActions: { type: Boolean, default: !1 },
756
+ description: { default: void 0 },
757
+ disabled: { type: Boolean, default: !1 },
758
+ errorMessage: { default: null },
759
+ label: { default: void 0 },
760
+ optional: { type: Boolean, default: !1 },
761
+ placeholder: { default: null },
762
+ readonly: { type: Boolean, default: !1 },
763
+ required: { type: Boolean, default: !1 },
764
+ tooltipText: { default: null }
765
+ },
766
+ emits: ["update:model-value", "input"],
767
+ setup(t, { emit: i }) {
768
+ const c = i, s = t, e = ha(), { t: u } = Ce({ messages: Ye }), { dateToInputDateString: D } = qe(), p = se("bento-date-range-picker-container"), k = se("bento-date-range-picker-label"), Q = se("bento-date-range-picker-description"), M = se("bento-date-range-picker-error"), E = se("bento-date-range-picker-date-error"), oe = f(() => s.label || u("dateRangePicker", { name: p })), { resolvedFirstDayOfWeek: b } = Ba(Oe(s, "firstDayOfWeek")), Y = Ma({
769
+ none: 0,
770
+ one: 710,
771
+ // width of date range picker with one panes
772
+ two: 1030,
773
+ // width of date range picker with two panes
774
+ three: 1290
775
+ // width of date range picker with three panes
776
+ }), B = f(() => {
777
+ const l = Y.active().value, R = {
778
+ none: 0,
779
+ one: 1,
780
+ two: 2
781
+ };
782
+ if (l in R) {
783
+ const pe = R[l];
784
+ return s.numberOfMonths === void 0 ? pe : Math.min(s.numberOfMonths, pe);
785
+ }
786
+ return s.numberOfMonths;
787
+ }), W = f(() => s?.quickSelectRanges && s.quickSelectRanges.map((l) => {
788
+ const R = l.data.endDate ? void 0 : new Date(Date.now()).getTime() - l.data.startDate.getTime();
789
+ return {
790
+ ...l,
791
+ data: {
792
+ ...l.data,
793
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
794
+ timeDifference: R
795
+ }
796
+ };
797
+ })), ae = f(() => s.label ? k : e?.["aria-labelledby"] ?? null), n = F(!1), C = F(null), w = F(!1), { isReadOnly: Re } = Ya(Oe(s, "readonly")), { emitValue: z } = xa(c);
798
+ he(
799
+ () => s.disabled,
800
+ () => {
801
+ s.disabled && w.value && (w.value = !1);
802
+ }
803
+ );
804
+ const ie = f(() => s.modelValue || s.value), ne = f(() => s.hasActions ? !te.value && n.value : n.value), g = f(() => ({
805
+ "b-date-range-picker__description--error": !!s.errorMessage || ne.value
806
+ })), Me = f(() => s.variant === "month"), ue = f(() => s.allowTimeInput && s.variant !== "month"), { dateDisplayValue: re, textInputDisplayValue: T } = mt({
807
+ datePickerValue: ie,
808
+ isDateIncorrect: n,
809
+ quickSelectRanges: W,
810
+ isMonthVariant: Me,
811
+ withTimeInput: ue,
812
+ placeholder: Oe(s, "placeholder")
813
+ }), Ie = f(
814
+ () => `${s.description ? Q : ""} ${s.errorMessage ? M : ""} ${n.value ? E : ""}`.trim() || null
815
+ ), J = () => {
816
+ w.value = !1;
817
+ }, we = () => {
818
+ w.value = !0;
819
+ }, de = F(re.value), me = F(
820
+ // textInputDisplayValue is a reactive object
821
+ structuredClone(Ae(T))
822
+ ), S = F(s.modelValue ?? s.value), te = F(!0), ce = f(
823
+ () => s.hasActions ? me.value : T
824
+ ), I = f(
825
+ () => s.hasActions ? de.value : re.value
826
+ );
827
+ ea(() => {
828
+ if (s.hasActions || Pe(
829
+ 'BentoDateRangePicker "hasActions" property',
830
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
831
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
832
+ "2.0.0"
833
+ ), s.value && Pe(
834
+ 'BentoDateRangePicker "value" property',
835
+ 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
836
+ "2.0.0"
837
+ ), s.granularities && s.variant !== "month" && s.granularities.find(({ type: l }) => l === "quarterly"))
838
+ throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
839
+ }), he([() => s.value, () => s.modelValue], () => {
840
+ de.value = re.value, me.value = structuredClone(Ae(T));
841
+ });
842
+ const X = f(() => [
843
+ {
844
+ title: u("apply"),
845
+ event: () => {
846
+ z(S.value), J(), te.value = !0;
847
+ },
848
+ disabled: te.value
849
+ },
850
+ {
851
+ title: u("cancel"),
852
+ event: J
853
+ }
854
+ ]);
855
+ he(S, (l) => {
856
+ if (s.hasActions) {
857
+ te.value = n.value;
858
+ return;
859
+ }
860
+ z(l);
861
+ });
862
+ const Z = (l) => {
863
+ n.value = !1, T.startDate = D(l.startDate), T.endDate = D(l.endDate), T.startTime = A(l.startDate), T.endTime = A(l.endDate), S.value = l;
864
+ }, x = async () => {
865
+ n.value && (n.value = !1), S.value = null;
866
+ }, U = () => {
867
+ if (!w.value) {
868
+ w.value = !0;
869
+ return;
870
+ }
871
+ n.value || (w.value = !1);
872
+ }, o = (l) => {
873
+ n.value = !1, l.startTime && (T.startTime = l.startTime), l.endTime && (T.endTime = l.endTime);
874
+ }, De = (l) => {
875
+ n.value = !0, T.startDate = l.startDate, T.endDate = l.endDate, S.value = { startDate: null, endDate: null };
876
+ }, fe = (l) => {
877
+ l && (T.startDate = D(l.startDate), T.endDate = D(l.endDate), T.startTime = A(l.startDate), T.endTime = A(l.endDate), S.value = l);
878
+ };
879
+ return (l, R) => ka((O(), Te("div", ct, [
880
+ l.label ? (O(), $(m(La), {
881
+ key: 0,
882
+ id: m(k),
883
+ label: l.label,
884
+ "tooltip-text": l.tooltipText,
885
+ optional: l.optional,
886
+ required: l.required
887
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : _("", !0),
888
+ H("div", {
889
+ onKeydown: Ve(U, ["enter"])
890
+ }, [
891
+ j(m(Ua), {
892
+ ref_key: "inputContainerRef",
893
+ ref: C,
894
+ "always-combobox-is-input": "",
895
+ ariaControls: m(p),
896
+ ariaExpanded: w.value,
897
+ "aria-labelledby": ae.value,
898
+ "aria-describedby": Ie.value,
899
+ "aria-required": l.required,
900
+ disabled: l.disabled,
901
+ "is-invalid": !!l.errorMessage || ne.value,
902
+ open: w.value,
903
+ "display-value": I.value,
904
+ readonly: m(Re),
905
+ onOpen: we,
906
+ onClear: x,
907
+ onClose: J
908
+ }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-required", "disabled", "is-invalid", "open", "display-value", "readonly"])
909
+ ], 32),
910
+ ne.value ? (O(), $(m(Ge), {
911
+ key: 1,
912
+ id: m(E),
913
+ "error-message": m(u)("provideDateInAFormat"),
914
+ class: "b-date-range-picker__error-message"
915
+ }, null, 8, ["id", "error-message"])) : _("", !0),
916
+ l.errorMessage ? (O(), $(m(Ge), {
917
+ key: 2,
918
+ id: m(M),
919
+ "error-message": l.errorMessage,
920
+ class: "b-date-range-picker__error-message"
921
+ }, null, 8, ["id", "error-message"])) : _("", !0),
922
+ l.description ? (O(), $(m(Be), {
923
+ key: 3,
924
+ id: m(Q),
925
+ class: be(["b-date-range-picker__description", g.value]),
926
+ el: "span"
927
+ }, {
928
+ default: P(() => [
929
+ ee(_e(l.description), 1)
930
+ ]),
931
+ _: 1
932
+ }, 8, ["id", "class"])) : _("", !0),
933
+ C.value ? (O(), $(m(wa), {
934
+ key: 4,
935
+ id: m(p),
936
+ class: "b-date-range-picker__container",
937
+ open: w.value,
938
+ "target-element": C.value,
939
+ "aria-label": oe.value,
940
+ position: "bottom-start",
941
+ "without-space": "",
942
+ "fit-content": "",
943
+ "trap-all": "",
944
+ "overflow-visible": "",
945
+ onKeydown: Ve(J, ["esc", "native"])
946
+ }, {
947
+ default: P(() => [
948
+ j(m(dt), {
949
+ "allow-time-input": ue.value,
950
+ "quick-select-ranges": W.value,
951
+ value: ie.value,
952
+ "first-day-of-week": m(b),
953
+ granularities: l.granularities,
954
+ "is-date-disabled": l.isDateDisabled,
955
+ "max-range": l.maxRange,
956
+ min: l.min,
957
+ max: l.max,
958
+ "number-of-months": B.value,
959
+ "show-end-date-on-open": l.showEndDateOnOpen,
960
+ "date-form-data": ce.value,
961
+ variant: l.variant,
962
+ onCustomRange: fe,
963
+ onInput: Z,
964
+ onError: De,
965
+ onFormDate: o
966
+ }, Ra({ _: 2 }, [
967
+ l.hasActions ? {
968
+ name: "actions",
969
+ fn: P(() => [
970
+ j(m(Ia)),
971
+ H("div", Dt, [
972
+ j(m(Sa), {
973
+ actions: X.value,
974
+ layout: m(Qa).SPACE_BETWEEN
975
+ }, null, 8, ["actions", "layout"])
976
+ ])
977
+ ]),
978
+ key: "0"
979
+ } : void 0
980
+ ]), 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"])
981
+ ]),
982
+ _: 1
983
+ }, 8, ["id", "open", "target-element", "aria-label"])) : _("", !0)
984
+ ])), [
985
+ [m(Na), J]
986
+ ]);
987
+ }
988
+ }), Pt = /* @__PURE__ */ ta(pt, [["__scopeId", "data-v-e00826fe"]]);
989
+ export {
990
+ Pt as B,
991
+ dt as D,
992
+ Ga as a,
993
+ Ee as i
994
+ };
995
+ //# sourceMappingURL=date-range-picker.DC6CK0As.js.map