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