@adyen/bento-vue3 1.89.2 → 1.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +767 -522
  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/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/draggable-handle.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/error-message.css +1 -1
  20. package/dist/assets/field-label.css +1 -0
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-title.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/input-time.css +1 -0
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/assets/use-cached-selected-values.css +1 -1
  31. package/dist/button.js +1 -1
  32. package/dist/card.js +1 -1
  33. package/dist/checkbox.js +2 -2
  34. package/dist/chip.js +1 -1
  35. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  36. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  37. package/dist/chunks/action-bar.BPS3wPde.js +336 -0
  38. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.BPS3wPde.js.map} +1 -1
  39. package/dist/chunks/ai-tag.D7shWB_x.js +137 -0
  40. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.D7shWB_x.js.map} +1 -1
  41. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  42. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  43. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  44. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  45. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BxcS7Pao.js} +132 -125
  46. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BxcS7Pao.js.map} +1 -1
  47. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.BKdNXYgU.js} +2 -2
  48. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.BKdNXYgU.js.map} +1 -1
  49. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.DLiM8KZL.js} +203 -189
  50. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.DLiM8KZL.js.map} +1 -1
  51. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.qm-kFNQv.js} +460 -428
  52. package/dist/chunks/calendar.qm-kFNQv.js.map +1 -0
  53. package/dist/chunks/card.BEChcEqg.js +223 -0
  54. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BEChcEqg.js.map} +1 -1
  55. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.i3W8WO-7.js} +4 -4
  56. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.i3W8WO-7.js.map} +1 -1
  57. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BPrymcRl.js} +68 -61
  58. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BPrymcRl.js.map} +1 -1
  59. package/dist/chunks/chip.DFldnqfz.js +72 -0
  60. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  61. package/dist/chunks/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
  62. package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
  63. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BG5ZmCrb.js} +113 -106
  64. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BG5ZmCrb.js.map} +1 -1
  65. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.DqRpF9bh.js} +2 -2
  66. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.DqRpF9bh.js.map} +1 -1
  67. package/dist/chunks/copy.CL893i9-.js +114 -0
  68. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  69. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  70. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  71. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  72. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  73. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.C7mfUXOl.js} +3 -3
  74. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.C7mfUXOl.js.map} +1 -1
  75. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.B50DIXjK.js} +3 -3
  76. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.B50DIXjK.js.map} +1 -1
  77. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.CKdZb6EN.js} +4 -4
  78. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.CKdZb6EN.js.map} +1 -1
  79. package/dist/chunks/data-grid.DvMe72LK.js +4247 -0
  80. package/dist/chunks/data-grid.DvMe72LK.js.map +1 -0
  81. package/dist/chunks/date-picker.CidHad1p.js +269 -0
  82. package/dist/chunks/date-picker.CidHad1p.js.map +1 -0
  83. package/dist/chunks/date-range-picker.c5OwESTS.js +1027 -0
  84. package/dist/chunks/date-range-picker.c5OwESTS.js.map +1 -0
  85. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  86. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  87. package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
  88. package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
  89. package/dist/chunks/draggable-handle.CySRx1tb.js +171 -0
  90. package/dist/chunks/draggable-handle.CySRx1tb.js.map +1 -0
  91. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.wcJ6Mgqe.js} +5 -5
  92. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.wcJ6Mgqe.js.map} +1 -1
  93. package/dist/chunks/dropdown.DHoL50gV.js +1214 -0
  94. package/dist/chunks/dropdown.DHoL50gV.js.map +1 -0
  95. package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
  96. package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
  97. package/dist/chunks/field-label.DZYFjFgr.js +111 -0
  98. package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
  99. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.Dbg3vfZ_.js} +606 -584
  100. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.Dbg3vfZ_.js.map} +1 -1
  101. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.Dt-cU3zy.js} +1559 -1471
  102. package/dist/chunks/filter-bar.Dt-cU3zy.js.map +1 -0
  103. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  104. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  105. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.CYBdKDPo.js} +2 -2
  106. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.CYBdKDPo.js.map} +1 -1
  107. package/dist/chunks/form-layout-title.B3ePK3yi.js +253 -0
  108. package/dist/chunks/form-layout-title.B3ePK3yi.js.map +1 -0
  109. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.COak4D8-.js} +98 -84
  110. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.COak4D8-.js.map} +1 -1
  111. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.DqioajcO.js} +1091 -1070
  112. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.DqioajcO.js.map} +1 -1
  113. package/dist/chunks/{header.o-7SyHtU.js → header.C21yzWrk.js} +3 -3
  114. package/dist/chunks/{header.o-7SyHtU.js.map → header.C21yzWrk.js.map} +1 -1
  115. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  116. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  117. package/dist/chunks/input-field-password.DyUphhxB.js +353 -0
  118. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.DyUphhxB.js.map} +1 -1
  119. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.BXVaC5ra.js} +12 -5
  120. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.BXVaC5ra.js.map} +1 -1
  121. package/dist/chunks/input-field.DkUFvIWt.js +326 -0
  122. package/dist/chunks/input-field.DkUFvIWt.js.map +1 -0
  123. package/dist/chunks/input-time.WI_qdwJc.js +122 -0
  124. package/dist/chunks/input-time.WI_qdwJc.js.map +1 -0
  125. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  126. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  127. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  128. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  129. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  130. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  131. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.c6QphYQo.js} +54 -47
  132. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.c6QphYQo.js.map} +1 -1
  133. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js} +48 -41
  134. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map} +1 -1
  135. package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
  136. package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
  137. package/dist/chunks/{pagination.dpVc6Yt0.js → pagination.Cu85Lqms.js} +150 -138
  138. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.Cu85Lqms.js.map} +1 -1
  139. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  140. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  141. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.CfMr1fmW.js} +4 -4
  142. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.CfMr1fmW.js.map} +1 -1
  143. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Bf9EWzNk.js} +421 -413
  144. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Bf9EWzNk.js.map} +1 -1
  145. package/dist/chunks/search-bar.p6kHCCvT.js +114 -0
  146. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.p6kHCCvT.js.map} +1 -1
  147. package/dist/chunks/secondary-nav.CaxiyVaO.js +285 -0
  148. package/dist/chunks/secondary-nav.CaxiyVaO.js.map +1 -0
  149. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  150. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  151. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.58XZj_SJ.js} +3 -3
  152. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
  153. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.CAVhSs-O.js} +56 -49
  154. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.CAVhSs-O.js.map} +1 -1
  155. package/dist/chunks/step.AsX2jAeL.js +268 -0
  156. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  157. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  158. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  159. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.CDithi8M.js} +5 -5
  160. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.CDithi8M.js.map} +1 -1
  161. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  162. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  163. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  164. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  165. package/dist/chunks/textarea.JGXAlpx9.js +257 -0
  166. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.JGXAlpx9.js.map} +1 -1
  167. package/dist/chunks/timeline-item.BNFPpQz1.js +433 -0
  168. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.BNFPpQz1.js.map} +1 -1
  169. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  170. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  171. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  172. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  173. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js} +120 -113
  174. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map} +1 -1
  175. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.Bx8uuky9.js} +436 -410
  176. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +1 -0
  177. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  178. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  179. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  180. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  181. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BOuXpRb-.js} +2 -2
  182. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BOuXpRb-.js.map} +1 -1
  183. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  184. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  185. package/dist/click-outside.js +1 -1
  186. package/dist/code-snippet.js +1 -1
  187. package/dist/country.js +3 -3
  188. package/dist/dashboard-template.js +1 -1
  189. package/dist/dashed-underline.js +1 -1
  190. package/dist/data-grid-template.js +1 -1
  191. package/dist/data-grid.js +1 -1
  192. package/dist/date-picker.js +2 -2
  193. package/dist/date-range-picker.js +2 -2
  194. package/dist/draggable.js +1383 -0
  195. package/dist/draggable.js.map +1 -0
  196. package/dist/dropdown.js +10 -11
  197. package/dist/dropdown.js.map +1 -1
  198. package/dist/file-uploader.js +1 -1
  199. package/dist/filter-bar.js +1 -1
  200. package/dist/form-layout.js +1 -1
  201. package/dist/header-with-views.js +1 -1
  202. package/dist/header.js +1 -1
  203. package/dist/index.js +284 -279
  204. package/dist/index.js.map +1 -1
  205. package/dist/info-icon.js +1 -1
  206. package/dist/input-field-password.js +1 -1
  207. package/dist/input-field-phone-number.js +1 -1
  208. package/dist/input-field.js +1 -1
  209. package/dist/input-time.js +5 -0
  210. package/dist/input-time.js.map +1 -0
  211. package/dist/inspector.js +1 -1
  212. package/dist/internal.js +26 -25
  213. package/dist/internal.js.map +1 -1
  214. package/dist/list.js +1 -1
  215. package/dist/menu.js +1 -1
  216. package/dist/modal-fullscreen.js +1 -1
  217. package/dist/modal.js +2 -2
  218. package/dist/pagination.js +1 -1
  219. package/dist/popover.js +1 -1
  220. package/dist/promo-banner.js +1 -1
  221. package/dist/radio-group.js +1 -1
  222. package/dist/rich-text-editor.js +1 -1
  223. package/dist/search-bar.js +2 -2
  224. package/dist/secondary-nav.js +1 -1
  225. package/dist/segmented-control.js +1 -1
  226. package/dist/selection-card.js +1 -1
  227. package/dist/sidepanel.js +1 -1
  228. package/dist/stepper.js +1 -1
  229. package/dist/structured-list.js +1 -1
  230. package/dist/summary-grid.js +1 -1
  231. package/dist/tabs.js +1 -1
  232. package/dist/tag.js +1 -1
  233. package/dist/textarea.js +1 -1
  234. package/dist/timeline.js +1 -1
  235. package/dist/toast.js +1 -1
  236. package/dist/tutorial.js +1 -1
  237. package/dist/web-types.json +1 -1
  238. package/package.json +7 -10
  239. package/dist/assets/dropdown-default-textbox.css +0 -1
  240. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  241. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  242. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  243. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  244. package/dist/chunks/calendar.DcCqkSNJ.js.map +0 -1
  245. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  246. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  247. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  248. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  249. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  250. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  251. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  252. package/dist/chunks/date-picker.dlzZ_-5f.js.map +0 -1
  253. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  254. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  255. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  256. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  257. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  258. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js +0 -408
  259. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js.map +0 -1
  260. package/dist/chunks/dropdown.MhmX1P9o.js +0 -799
  261. package/dist/chunks/dropdown.MhmX1P9o.js.map +0 -1
  262. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  263. package/dist/chunks/error-message.DCgo8q20.js.map +0 -1
  264. package/dist/chunks/filter-bar.CkAjLQol.js.map +0 -1
  265. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  266. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  267. package/dist/chunks/form-layout-title.DW5Kg1rh.js.map +0 -1
  268. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  269. package/dist/chunks/input-field.CfU0ZKtL.js +0 -315
  270. package/dist/chunks/input-field.CfU0ZKtL.js.map +0 -1
  271. package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
  272. package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
  273. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  274. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  275. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  276. package/dist/chunks/step.BlwoLfdw.js +0 -259
  277. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  278. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  279. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  280. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
  281. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js.map +0 -1
  282. package/dist/draggable-handle.js +0 -155
  283. package/dist/draggable-handle.js.map +0 -1
@@ -0,0 +1,1027 @@
1
+ import { reactive as he, defineComponent as la, useSlots as Ea, ref as C, computed as D, onMounted as sa, openBlock as S, createElementBlock as Me, createElementVNode as W, normalizeClass as ge, unref as u, renderSlot as xe, createCommentVNode as w, createBlock as x, createVNode as G, withCtx as ee, createTextVNode as se, createSlots as Fe, toDisplayString as Ee, toRaw as Oe, watch as Te, useAttrs as Oa, toRef as Ie, withDirectives as _a, withKeys as Ge } from "vue";
2
+ import { j as qa } from "./index.DDwcHPb6.js";
3
+ import { B as Ba } from "./divider.BIY84UH7.js";
4
+ import { h as Ca, B as Na } from "./button-actions.DLiM8KZL.js";
5
+ import { B as _e, d as Le } from "./typography.B3J6_tYk.js";
6
+ import { B as Pa, D as Ua } from "./dropdown.DHoL50gV.js";
7
+ import { g as le } from "./generate-uid.DBWe4g6T.js";
8
+ import { u as qe } from "./index.B875RXHM.js";
9
+ import { h as oa, i as oe, j as B, k as Y, l as Va, m as Je, n as xa, s as Qe, o as Ga, q as je, b as V, u as La, e as Ja, f as Qa, r as F, p as ze, g as ja } from "./calendar.qm-kFNQv.js";
10
+ import { u as Be, a as za } from "./use-date-input-formatter.BOuXpRb-.js";
11
+ import { t as L, n as Wa, c as $a } from "./en-US.CCazFVNP.js";
12
+ import { u as Ha } from "./use-form-layout-loading.CWbjZiwP.js";
13
+ import { B as Ka } from "./directive.C8kY-ZW-.js";
14
+ import { u as Xa } from "./form-field.D_2g7vaP.js";
15
+ import { B as We } from "./input-field.DkUFvIWt.js";
16
+ import { B as $e, i as He } from "./input-time.WI_qdwJc.js";
17
+ import { B as Za } from "./segmented-control.CQWOO1-J.js";
18
+ import { d as Ke } from "./use-cached-selected-values.Bx8uuky9.js";
19
+ import { u as et } from "./use-has-slot.CyMiImRQ.js";
20
+ import { u as at } from "./use-touch-device.DTqFAbXh.js";
21
+ import { e as N, a as Xe } from "./differenceInMonths.s_znQQpw.js";
22
+ import { s as Ze } from "./startOfWeek.Cvmo-f5J.js";
23
+ import { c as tt } from "./constructNow.D9uRk678.js";
24
+ import { _ as ia } from "./_plugin-vue_export-helper.CHgC5LLL.js";
25
+ import { F as nt } from "./field-label.DZYFjFgr.js";
26
+ import { E as ea } from "./error-message.Dyvrw6ZB.js";
27
+ import { B as rt } from "./button-actions.types.BptAXjD8.js";
28
+ import "../assets/date-range-picker.css";
29
+ function ua(t, c, m) {
30
+ return oa(t, c * 3, m);
31
+ }
32
+ function aa(t, c) {
33
+ const m = L(t, c?.in);
34
+ return Math.trunc(m.getMonth() / 3) + 1;
35
+ }
36
+ function ta(t, c) {
37
+ return L(t, c?.in).getFullYear();
38
+ }
39
+ function Se(t, c) {
40
+ return +L(t) == +L(c);
41
+ }
42
+ function lt(t, c, m) {
43
+ const [s, a] = Wa(
44
+ m?.in,
45
+ t,
46
+ c
47
+ );
48
+ return +oe(s) == +oe(a);
49
+ }
50
+ function na(t, c) {
51
+ const m = L(t, c?.in);
52
+ return m.setMilliseconds(0), m;
53
+ }
54
+ function we(t, c) {
55
+ return +na(t) == +na(c);
56
+ }
57
+ function st(t, c) {
58
+ return B(
59
+ $a(t, t),
60
+ tt(t)
61
+ );
62
+ }
63
+ function ot(t, c, m) {
64
+ const s = L(t, m?.in);
65
+ return s.setHours(c), s;
66
+ }
67
+ function ra(t, c, m) {
68
+ const s = L(t, m?.in);
69
+ return s.setMilliseconds(c), s;
70
+ }
71
+ function it(t, c, m) {
72
+ const s = L(t, m?.in);
73
+ return s.setMinutes(c), s;
74
+ }
75
+ function ut(t, c, m) {
76
+ const s = L(t, m?.in);
77
+ return s.setSeconds(c), s;
78
+ }
79
+ function dt(t, c, m) {
80
+ return ua(t, -1, m);
81
+ }
82
+ const ct = ({
83
+ firstDayOfWeek: t,
84
+ min: c,
85
+ max: m
86
+ }) => ({ getGranularCalendarLimits: (a) => {
87
+ if (!c && !m)
88
+ return { min: null, max: null };
89
+ let i = c ? Y(c) : null, p = m ? N(m) : null;
90
+ if (a?.type === "weekly") {
91
+ if (a.earliest)
92
+ i = Y(a.earliest);
93
+ else if (i) {
94
+ const v = Ze(i, { weekStartsOn: t });
95
+ B(i, v) || (i = Y(Va(Je(i, { weekStartsOn: t }), 1)));
96
+ }
97
+ if (a.latest)
98
+ p = N(a.latest);
99
+ else if (p) {
100
+ const v = Je(p, { weekStartsOn: t });
101
+ B(p, v) || (p = N(xa(Ze(p, { weekStartsOn: t }), 1)));
102
+ }
103
+ }
104
+ if (a?.type === "monthly") {
105
+ if (a.earliest)
106
+ i = Y(a.earliest);
107
+ else if (i) {
108
+ const v = Qe(i);
109
+ B(i, v) || (i = Qe(oa(i, 1)));
110
+ }
111
+ if (a.latest)
112
+ p = N(a.latest);
113
+ else if (p) {
114
+ const v = Xe(p);
115
+ B(p, v) || (p = Xe(Ga(p, 1)));
116
+ }
117
+ }
118
+ if (a?.type === "quarterly") {
119
+ if (a.earliest)
120
+ i = oe(a.earliest);
121
+ else if (i) {
122
+ const v = oe(i);
123
+ B(i, v) || (i = oe(ua(i, 1)));
124
+ }
125
+ if (a.latest)
126
+ p = N(a.latest);
127
+ else if (p) {
128
+ const v = je(p);
129
+ B(p, v) || (p = je(dt(p)));
130
+ }
131
+ }
132
+ return { min: i, max: p };
133
+ } }), mt = () => {
134
+ const t = he({
135
+ daily: null,
136
+ weekly: null,
137
+ monthly: null,
138
+ quarterly: null
139
+ });
140
+ return {
141
+ savedRanges: t,
142
+ saveRange: (s, a) => {
143
+ t[s] = a;
144
+ },
145
+ resetSavedRanges: () => {
146
+ t.daily = null, t.weekly = null, t.monthly = null, t.quarterly = null;
147
+ }
148
+ };
149
+ };
150
+ var f = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(f || {});
151
+ const da = {
152
+ "de-DE": { "DD-MM-YYYY": "TT-MM-JJJJ", "MM-DD-YYYY": "JJJJ-MM-TT", "YYYY-MM-DD": "JJJJ-MM-TT", customRange: "Benutzerdefinierter Bereich", daily: "Täglich", dateFrom: "Datum von", dateTo: "Datum bis", lastMonth: "Letzter Monat", lastSevenDays: "Letzte 7 Tage", lastThreeMonths: "Letzte drei Monate", monthly: "Monatlich", quarterly: "Vierteljährlich", timeFrom: "Zeit von", timeTo: "Zeit bis", weekly: "Wöchentlich" },
153
+ "en-GB": { "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: "The last three months", monthly: "Monthly", quarterly: "Quarterly", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
154
+ "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" },
155
+ "es-ES": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha desde", dateTo: "Fecha hasta", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", monthly: "Mensualmente", quarterly: "Trimestral", timeFrom: "Hora desde", timeTo: "Hora hasta", weekly: "Semanal" },
156
+ "es-MX": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha de", dateTo: "Fecha hasta", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", monthly: "Mensual", quarterly: "Trimestral", timeFrom: "Tiempo desde", timeTo: "Es hora de", weekly: "Semanal" },
157
+ "fr-FR": { "DD-MM-YYYY": "JJ-MM-AAAA", "MM-DD-YYYY": "MM-JJ-AAAA", "YYYY-MM-DD": "AAAA-MM-JJ", customRange: "Plage personnalisée", daily: "Quotidien", dateFrom: "Date de début", dateTo: "Date de fin", lastMonth: "Le mois dernier", lastSevenDays: "7 derniers jours", lastThreeMonths: "Trois derniers mois", monthly: "Mensuel", quarterly: "Trimestriel", timeFrom: "Heure de début", timeTo: "Heure de fin", weekly: "Hebdomadaire" },
158
+ "it-IT": { "DD-MM-YYYY": "GG-MM-AAAA", "MM-DD-YYYY": "MM-GG-AAAA", "YYYY-MM-DD": "AAAA-MM-GG", customRange: "Intervallo personalizzato", daily: "Giornaliero", dateFrom: "Data da", dateTo: "Da", lastMonth: "Il mese scorso", lastSevenDays: "Ultimi 7 giorni", lastThreeMonths: "Gli ultimi tre mesi", monthly: "Mensile", quarterly: "Trimestrale", timeFrom: "Tempo dal", timeTo: "Tempo fino al", weekly: "Settimanale" },
159
+ "ja-JP": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "カスタム範囲", daily: "毎日", dateFrom: "開始日", dateTo: "終了日", lastMonth: "先月", lastSevenDays: "過去 7 日間", lastThreeMonths: "過去3か月", monthly: "毎月", quarterly: "四半期ごと", timeFrom: "開始時刻", timeTo: "終了時刻", weekly: "毎週" },
160
+ "pt-BR": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Intervalo personalizado", daily: "Diário", 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: "Horário até", weekly: "Semanal" },
161
+ "zh-CN": { "DD-MM-YYYY": "日-月-年", "MM-DD-YYYY": "YYYY-MM-DD", "YYYY-MM-DD": "年-月-日", customRange: "自定义范围", daily: "每日", dateFrom: "日期自", dateTo: "日期至", lastMonth: "上个月", lastSevenDays: "最近 7 天", lastThreeMonths: "过去三个月", monthly: "每月", quarterly: "每季度", timeFrom: "时间自", timeTo: "是时候", weekly: "每周" }
162
+ }, Dt = { class: "b-date-range-picker-calendar" }, pt = { class: "b-date-range-picker-calendar__form" }, ft = { key: 0 }, vt = {
163
+ key: 0,
164
+ class: "b-date-range-picker-calendar__calendars-container",
165
+ "data-testid": "date-range-picker-calendar-calendar-container"
166
+ }, yt = {
167
+ name: "date-range-picker-calendar",
168
+ i18n: { messages: da }
169
+ }, Mt = /* @__PURE__ */ la({
170
+ ...yt,
171
+ props: {
172
+ /**
173
+ * Allows user to enter time values in the form
174
+ */
175
+ allowTimeInput: { type: Boolean, default: !1 },
176
+ /**
177
+ * Ranges form persistance data
178
+ */
179
+ dateFormData: {
180
+ type: Object,
181
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
182
+ },
183
+ /**
184
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
185
+ */
186
+ firstDayOfWeek: V.props.firstDayOfWeek,
187
+ /**
188
+ * A list of available granularities.
189
+ * If present, the date picker will display a segmented control to change granularity.
190
+ */
191
+ granularities: {
192
+ type: Array,
193
+ default: null
194
+ },
195
+ /**
196
+ * Indicate if a date should be disabled or not
197
+ */
198
+ isDateDisabled: V.props.isDateDisabled,
199
+ /**
200
+ * Set a maximum number of dates to be selectable by the range.
201
+ */
202
+ maxRange: V.props.maxRange,
203
+ /**
204
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
205
+ */
206
+ min: V.props.min,
207
+ /**
208
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
209
+ */
210
+ max: V.props.max,
211
+ /**
212
+ * Number of months rendered on pane
213
+ */
214
+ numberOfMonths: {
215
+ type: V.props.numberOfMonths.type,
216
+ default: V.props.numberOfMonths.default,
217
+ validator: (t) => t >= 0
218
+ },
219
+ /**
220
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
221
+ */
222
+ showEndDateOnOpen: { type: Boolean, default: !1 },
223
+ /**
224
+ * Enables the custom range selector.
225
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
226
+ * `label` - label of custom range item.
227
+ * `value` - a unique key of the custom range item.
228
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
229
+ */
230
+ quickSelectRanges: {
231
+ type: Array,
232
+ default: void 0
233
+ },
234
+ /**
235
+ * Selected date
236
+ */
237
+ value: { type: Object, default: void 0 },
238
+ /**
239
+ * The type of calendar to display. Defaults to showing days.
240
+ */
241
+ variant: V.props.variant
242
+ },
243
+ emits: [
244
+ f.CUSTOM_RANGE,
245
+ f.INPUT,
246
+ f.ERROR,
247
+ f.FORM_DATE,
248
+ f.START_DATE_SELECTED
249
+ ],
250
+ setup(t, { emit: c }) {
251
+ const s = "customRange", a = t, i = c, p = Ea(), v = et(p), { t: b } = qe({ messages: da }), { isTouchDevice: h } = at(), {
252
+ dateFormat: A,
253
+ isFormatValid: te,
254
+ parseDate: E,
255
+ onKeyDown: R,
256
+ autoFormat: O,
257
+ formatDate: P
258
+ } = Be(), U = C({}), ae = D(() => a.variant === "month" ? "monthly" : "daily"), k = D(() => a.numberOfMonths === 0), n = he({
259
+ startDate: a.value?.startDate,
260
+ endDate: a.value?.endDate,
261
+ range: a.value?.range,
262
+ ...a.granularities ? {
263
+ granularity: a.value?.granularity || ae.value
264
+ } : {}
265
+ }), M = D(() => (
266
+ // eslint-disable-next-line consistent-return
267
+ a?.quickSelectRanges?.find(({ value: e, data: r }) => {
268
+ if (!r.endDate) {
269
+ if (r.isRelativeToNow) {
270
+ const d = U.value?.[e];
271
+ return d ? Se(d.startDate, n.startDate) && Se(d.endDate, n.endDate) : (
272
+ // If not stored calculated dates, fall back to comparing the quick select item's value
273
+ // with the internal range's stored range identifier.
274
+ e === n.range
275
+ );
276
+ }
277
+ return Se(r.startDate, n.startDate) && st(n.endDate) && (!a.allowTimeInput || we(n.endDate, N(n.endDate))) && (a.granularities ? r.granularity === n.granularity : !0);
278
+ }
279
+ if (a.allowTimeInput)
280
+ return we(r.startDate, n.startDate) && we(r.endDate, n.endDate) && (a.granularities ? r.granularity === n.granularity : !0);
281
+ if (r.endDate)
282
+ return B(r.startDate, n.startDate) && B(r.endDate, n.endDate) && (a.granularities ? r.granularity === n.granularity : !0);
283
+ })?.value ?? s
284
+ )), ie = D(() => ({
285
+ "b-date-range-picker-calendar__form-input-wrapper": a.allowTimeInput
286
+ })), ue = D(() => [
287
+ { label: b("customRange"), value: s },
288
+ ...a.quickSelectRanges ? a.quickSelectRanges : []
289
+ ]), $ = D(
290
+ () => a.granularities?.find(({ type: e }) => e === n.granularity) || null
291
+ ), ne = D(
292
+ () => a.granularities?.map(({ type: e, disabled: r }) => ({
293
+ label: b(e),
294
+ value: e,
295
+ disabled: r
296
+ })) ?? []
297
+ ), { getGranularCalendarLimits: Ye } = ct(a), g = D(
298
+ () => a.granularities ? Ye($.value) : { min: a.min ? Y(a.min) : null, max: a.max ? N(a.max) : null }
299
+ ), {
300
+ adjustDateForQuarterly: de,
301
+ adjustDateForMonthly: re,
302
+ adjustDateForWeekly: T,
303
+ adjustStartDateInputForWeekly: be,
304
+ adjustEndDateInputForWeekly: H,
305
+ adjustStartDateInputForMonthly: Ae,
306
+ adjustEndDateInputForMonthly: ce,
307
+ adjustStartDateInputForQuarterly: me,
308
+ adjustEndDateInputForQuarterly: J
309
+ } = La(a.firstDayOfWeek), { savedRanges: _, saveRange: Re, resetSavedRanges: De } = mt(), I = (e) => e ? P(e) : "", K = C(!1), X = C(!1), l = he({
310
+ startDate: a.dateFormData.startDate,
311
+ endDate: a.dateFormData.endDate,
312
+ startTime: a.dateFormData.startTime,
313
+ endTime: a.dateFormData.endTime
314
+ }), pe = (e, r) => {
315
+ let d = new Date(e);
316
+ const [y, z, Fa] = r.split(":");
317
+ return d = ot(d, parseInt(y, 10)), d = it(d, parseInt(z, 10)), d = ut(d, parseInt(Fa, 10)), d;
318
+ }, fe = (e, r) => {
319
+ const d = () => {
320
+ if (r && j(r)) {
321
+ const y = pe(E(r), e);
322
+ if (a.min && y < ra(a.min, 0) || a.max && y > ra(a.max, 0))
323
+ return !1;
324
+ }
325
+ return !0;
326
+ };
327
+ return He(e) && d();
328
+ }, Q = D(() => a.variant === "month"), o = (e) => e ? Q.value ? Ja(e) : Qa(e) : "", Z = D(() => o(n.startDate)), ve = D(() => o(n.endDate)), Ne = D(() => h.value ? Q.value ? "month" : "date" : "text"), ca = D(() => h.value ? Z.value : l.startDate), ma = D(() => h.value ? ve.value : l.endDate), q = (e, r) => !r || !He(r) || a.variant === "month" ? e : pe(new Date(e), r), Da = (e) => {
329
+ l.startTime = F(
330
+ a.min && a.allowTimeInput && B(a.min, e.startDate) ? a.min : Y(e.startDate)
331
+ ), l.endTime = F(
332
+ a.max && a.allowTimeInput && B(a.max, e.endDate) ? a.max : N(e.endDate)
333
+ ), n.startDate = q(e.startDate, l.startTime), n.endDate = q(e.endDate, l.endTime), n.range = null, a.granularities && De(), i(f.INPUT, {
334
+ ...n,
335
+ range: M.value
336
+ });
337
+ }, j = (e) => {
338
+ if (!e)
339
+ return !1;
340
+ const r = (d) => a.min && Y(d) < Y(a.min) || a.max && Y(d) > Y(a.max) ? !1 : a.isDateDisabled ? !a.isDateDisabled(Y(d)) : !0;
341
+ return te(e) && r(E(e));
342
+ };
343
+ sa(() => {
344
+ K.value = !!(a.dateFormData.startDate && !j(a.dateFormData.startDate)), X.value = !!(a.dateFormData.endDate && !j(a.dateFormData.endDate));
345
+ });
346
+ const pa = (e) => {
347
+ l.startDate = I(e), l.startTime || (l.startTime = F(e)), K.value = !1, i(f.START_DATE_SELECTED, e);
348
+ }, fa = (e) => {
349
+ l.endDate = I(e), l.endTime || (l.endTime = F(N(e))), X.value = !1;
350
+ }, ke = (e) => {
351
+ const r = a.value[e];
352
+ if (r)
353
+ return r;
354
+ if (a.dateFormData[e] && j(a.dateFormData[e]))
355
+ return E(a.dateFormData[e]);
356
+ }, Pe = (e) => {
357
+ if (j(e)) {
358
+ let r = e;
359
+ switch (K.value = !1, $.value?.type) {
360
+ case "weekly":
361
+ r = be(
362
+ e,
363
+ I,
364
+ g.value.min,
365
+ g.value.max
366
+ ), l.startDate = r;
367
+ break;
368
+ case "monthly":
369
+ r = Ae(
370
+ e,
371
+ I,
372
+ g.value.min,
373
+ g.value.max
374
+ ), l.startDate = r;
375
+ break;
376
+ case "quarterly":
377
+ r = me(
378
+ e,
379
+ I,
380
+ g.value.min,
381
+ g.value.max
382
+ ), l.startDate = r;
383
+ break;
384
+ }
385
+ const d = Y(E(r));
386
+ n.startDate = q(d, l.startTime), n.endDate = q(
387
+ Y(E(l.endDate)),
388
+ l.endTime
389
+ ), j(l.endDate) && (n.endDate = q(
390
+ Y(E(l.endDate)),
391
+ l.endTime
392
+ ));
393
+ const y = ke("endDate");
394
+ n.range = null, i(f.FORM_DATE, {
395
+ startDate: d,
396
+ endDate: y
397
+ }), i(f.INPUT, {
398
+ ...n,
399
+ range: M.value
400
+ });
401
+ } else
402
+ K.value = !0, i(f.ERROR, { ...l });
403
+ }, va = Ke(Pe, 300), ya = (e) => {
404
+ if (l.startDate = h.value && Q.value ? e : O(e), h.value)
405
+ if (Q.value && e) {
406
+ const r = ze(e);
407
+ n.startDate = q(r, l.startTime), n.range = null, i(f.INPUT, {
408
+ ...n,
409
+ range: M.value
410
+ });
411
+ } else
412
+ Pe(l.startDate);
413
+ else
414
+ va(l.startDate);
415
+ }, Ue = (e) => {
416
+ if (j(e)) {
417
+ let r = e;
418
+ switch (X.value = !1, $.value?.type) {
419
+ case "weekly":
420
+ r = H(
421
+ e,
422
+ I,
423
+ g.value.min,
424
+ g.value.max
425
+ ), l.endDate = r;
426
+ break;
427
+ case "monthly":
428
+ r = ce(
429
+ e,
430
+ I,
431
+ g.value.min,
432
+ g.value.max
433
+ ), l.endDate = r;
434
+ break;
435
+ case "quarterly":
436
+ r = J(
437
+ e,
438
+ I,
439
+ g.value.min,
440
+ g.value.max
441
+ ), l.endDate = r;
442
+ break;
443
+ }
444
+ const d = Y(E(r));
445
+ n.endDate = q(d, l.endTime), j(l.startDate) && (n.startDate = q(
446
+ Y(E(l.startDate)),
447
+ l.startTime
448
+ ));
449
+ const y = ke("startDate");
450
+ n.range = null, i(f.FORM_DATE, {
451
+ startDate: y,
452
+ endDate: d
453
+ }), i(f.INPUT, {
454
+ ...n,
455
+ range: M.value
456
+ });
457
+ } else
458
+ X.value = !0, i(f.ERROR, { ...l });
459
+ }, Ma = Ke(Ue, 300), ga = (e) => {
460
+ if (l.endDate = h.value && Q.value ? e : O(e), h.value)
461
+ if (Q.value && e) {
462
+ const r = ze(e);
463
+ n.endDate = q(r, l.endTime), n.range = null, i(f.INPUT, {
464
+ ...n,
465
+ range: M.value
466
+ });
467
+ } else
468
+ Ue(l.endDate);
469
+ else
470
+ Ma(l.endDate);
471
+ }, Ve = (e) => {
472
+ R(e);
473
+ }, Ta = () => {
474
+ i(f.ERROR, { ...l });
475
+ }, ha = () => {
476
+ const e = l.startTime;
477
+ if (!fe(e, l.startDate)) {
478
+ i(f.ERROR, { ...l });
479
+ return;
480
+ }
481
+ n.startDate = q(n.startDate, e);
482
+ const r = ke("endDate");
483
+ i(f.FORM_DATE, {
484
+ startDate: n.startDate,
485
+ endDate: r,
486
+ startTime: e,
487
+ endTime: l.endTime ?? a.dateFormData.endTime
488
+ }), i(f.INPUT, {
489
+ ...n,
490
+ range: M.value
491
+ });
492
+ }, Ya = () => {
493
+ i(f.ERROR, { ...l });
494
+ }, ba = () => {
495
+ const e = l.endTime;
496
+ if (!fe(e, l.endDate)) {
497
+ i(f.ERROR, { ...l });
498
+ return;
499
+ }
500
+ n.endDate = q(n.endDate, e), i(f.FORM_DATE, {
501
+ startDate: n.startDate,
502
+ endDate: n.endDate,
503
+ startTime: l.startTime ?? a.dateFormData.startTime,
504
+ endTime: e
505
+ }), i(f.INPUT, {
506
+ ...n,
507
+ range: M.value
508
+ });
509
+ }, Aa = (e) => {
510
+ l.startTime = e;
511
+ }, Ra = (e) => {
512
+ l.endTime = e;
513
+ }, ye = (e, r, d, y) => {
514
+ n.startDate = e, n.endDate = r, d && (n.granularity = d), y && (n.range = y);
515
+ }, ka = (e) => {
516
+ const r = a.quickSelectRanges?.find(({ value: d }) => d === e);
517
+ if (r) {
518
+ De();
519
+ const d = r.data, y = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : N(new Date(Date.now()))), z = d.isRelativeToNow && d.timeDifference ? new Date(y.getTime() - d.timeDifference) : d.startDate;
520
+ l.endDate = I(y), l.startDate = I(z), ye(z, y, null, e), a.granularities && (n.granularity = d.granularity || ae.value), l.startTime = F(z), l.endTime = F(y), n.startDate = z, n.endDate = y, d.isRelativeToNow && (U.value = {
521
+ ...U.value,
522
+ [e]: {
523
+ startDate: z,
524
+ endDate: y
525
+ }
526
+ }), i(f.CUSTOM_RANGE, {
527
+ ...r.data,
528
+ startDate: z,
529
+ endDate: y,
530
+ range: r.value
531
+ });
532
+ }
533
+ }, Ia = {
534
+ weekly: T,
535
+ monthly: re,
536
+ quarterly: de
537
+ }, Sa = (e) => {
538
+ const r = n.granularity;
539
+ if (n.granularity = e, r && Re(r, structuredClone(Oe(n))), n.startDate && n.endDate) {
540
+ switch (e) {
541
+ case "quarterly":
542
+ case "monthly":
543
+ case "weekly": {
544
+ if (_[e]) {
545
+ ye(_[e].startDate, _[e].endDate, e);
546
+ break;
547
+ }
548
+ const { startDate: d, endDate: y } = Ia[e](
549
+ n.startDate,
550
+ n.endDate,
551
+ g.value.min,
552
+ g.value.max
553
+ );
554
+ ye(d, y, e);
555
+ break;
556
+ }
557
+ case "daily":
558
+ _.daily && ye(_.daily.startDate, _.daily.endDate, e);
559
+ break;
560
+ }
561
+ l.startDate = I(n.startDate), l.endDate = I(n.endDate), i(f.INPUT, {
562
+ ...n,
563
+ range: M.value
564
+ });
565
+ }
566
+ }, wa = D(() => ({
567
+ "b-date-range-picker-calendar__form-container--no-calendars": k.value
568
+ }));
569
+ return (e, r) => (S(), Me("div", Dt, [
570
+ W("div", {
571
+ class: ge(["b-date-range-picker-calendar__form-container", wa.value]),
572
+ "data-testid": "date-range-picker-calendar-form-container"
573
+ }, [
574
+ W("div", pt, [
575
+ u(v)("title") ? xe(e.$slots, "title", { key: 0 }, void 0, !0) : w("", !0),
576
+ t.quickSelectRanges ? (S(), x(Pa, {
577
+ key: 1,
578
+ "aria-label": u(b)("customRange"),
579
+ items: ue.value,
580
+ "model-value": M.value,
581
+ "onUpdate:modelValue": ka
582
+ }, null, 8, ["aria-label", "items", "model-value"])) : w("", !0),
583
+ t.granularities ? (S(), x(u(Za), {
584
+ key: 2,
585
+ items: ne.value,
586
+ "model-value": n.granularity,
587
+ "full-width": "",
588
+ "onUpdate:modelValue": Sa
589
+ }, null, 8, ["items", "model-value"])) : w("", !0),
590
+ W("div", null, [
591
+ G(u(_e), {
592
+ stronger: "",
593
+ el: "span",
594
+ class: "b-date-range-picker-calendar__label"
595
+ }, {
596
+ default: ee(() => r[0] || (r[0] = [
597
+ se(" From ")
598
+ ])),
599
+ _: 1
600
+ }),
601
+ W("div", {
602
+ class: ge(ie.value)
603
+ }, [
604
+ G(u(We), {
605
+ "aria-label": u(b)("dateFrom"),
606
+ "model-value": ca.value,
607
+ error: K.value,
608
+ class: "b-date-range-picker-calendar__form-input",
609
+ type: Ne.value,
610
+ "onUpdate:modelValue": ya,
611
+ onKeydown: Ve
612
+ }, Fe({ _: 2 }, [
613
+ u(h) ? void 0 : {
614
+ name: "description",
615
+ fn: ee(() => [
616
+ se(Ee(u(b)(u(A))), 1)
617
+ ]),
618
+ key: "0"
619
+ }
620
+ ]), 1032, ["aria-label", "model-value", "error", "type"]),
621
+ t.allowTimeInput ? (S(), x(u($e), {
622
+ key: 0,
623
+ "aria-label": u(b)("timeFrom"),
624
+ "model-value": l.startTime,
625
+ class: "b-date-range-picker-calendar__form-input",
626
+ "onUpdate:modelValue": Aa,
627
+ "onInput:error": Ta,
628
+ "onInput:valid": ha
629
+ }, null, 8, ["aria-label", "model-value"])) : w("", !0)
630
+ ], 2)
631
+ ]),
632
+ W("div", null, [
633
+ G(u(_e), {
634
+ stronger: "",
635
+ el: "span",
636
+ class: "b-date-range-picker-calendar__label"
637
+ }, {
638
+ default: ee(() => r[1] || (r[1] = [
639
+ se(" To ")
640
+ ])),
641
+ _: 1
642
+ }),
643
+ W("div", {
644
+ class: ge(ie.value)
645
+ }, [
646
+ G(u(We), {
647
+ class: "b-date-range-picker-calendar__form-input",
648
+ "aria-label": u(b)("dateTo"),
649
+ "model-value": ma.value,
650
+ error: X.value,
651
+ type: Ne.value,
652
+ "onUpdate:modelValue": ga,
653
+ onKeydown: Ve
654
+ }, Fe({ _: 2 }, [
655
+ u(h) ? void 0 : {
656
+ name: "description",
657
+ fn: ee(() => [
658
+ se(Ee(u(b)(u(A))), 1)
659
+ ]),
660
+ key: "0"
661
+ }
662
+ ]), 1032, ["aria-label", "model-value", "error", "type"]),
663
+ t.allowTimeInput ? (S(), x(u($e), {
664
+ key: 0,
665
+ "aria-label": u(b)("timeTo"),
666
+ "model-value": l.endTime,
667
+ class: "b-date-range-picker-calendar__form-input",
668
+ "onUpdate:modelValue": Ra,
669
+ "onInput:error": Ya,
670
+ "onInput:valid": ba
671
+ }, null, 8, ["aria-label", "model-value"])) : w("", !0)
672
+ ], 2)
673
+ ])
674
+ ]),
675
+ u(v)("actions") ? (S(), Me("div", ft, [
676
+ xe(e.$slots, "actions", {}, void 0, !0)
677
+ ])) : w("", !0)
678
+ ], 2),
679
+ !k.value && !u(h) ? (S(), Me("div", vt, [
680
+ G(u(V), {
681
+ value: n,
682
+ "first-day-of-week": t.firstDayOfWeek,
683
+ "is-date-disabled": t.isDateDisabled,
684
+ "max-range": t.maxRange,
685
+ min: g.value.min,
686
+ max: g.value.max,
687
+ "number-of-months": t.numberOfMonths,
688
+ "show-end-date-on-open": t.showEndDateOnOpen,
689
+ granularity: $.value,
690
+ variant: t.variant,
691
+ "is-range": "",
692
+ onInput: Da,
693
+ onStartDateSelected: pa,
694
+ onEndDateSelected: fa
695
+ }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant"])
696
+ ])) : w("", !0)
697
+ ]));
698
+ }
699
+ }), gt = /* @__PURE__ */ ia(Mt, [["__scopeId", "data-v-81a256dc"]]), Ce = {
700
+ "de-DE": { apply: "Anwenden", cancel: "Abbrechen", dateRangePicker: "Datumsbereichauswahl {name}", provideDateInAFormat: "Geben Sie das Datum im Format YYYY-MM-DD an", quarter: "Q{quarter} {year}", selectDate: "Wählen Sie ein Datum", selectDateRange: "Wählen Sie einen Datumsbereich aus", selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar" },
701
+ "en-GB": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", provideDateInAFormat: "Enter date in YYYY-MM-DD format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
702
+ "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" },
703
+ "es-ES": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Selector de intervalos de fechas {name}", provideDateInAFormat: "Proporciona la fecha en formato AAAAA-MM-DD", quarter: "T{quarter} {year}", selectDate: "Selecciona una fecha", selectDateRange: "Selecciona un rango de fechas", selectedDateIsNotAvailable: "La fecha seleccionada no está disponible" },
704
+ "es-MX": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Selector de intervalos de fechas {name}", provideDateInAFormat: "Proporciona la fecha en formato AAAA-MM-DD", quarter: "T{quarter} {year}", selectDate: "Selecciona una fecha", selectDateRange: "Selecciona un rango de fechas", selectedDateIsNotAvailable: "La fecha seleccionada no está disponible" },
705
+ "fr-FR": { apply: "Appliquer", cancel: "Annuler", dateRangePicker: "Sélecteur de plages de dates {name}", provideDateInAFormat: "Fournissez la date au format AAAA-MM-JJ", quarter: "T{quarter} {year}", selectDate: "Sélectionnez une date", selectDateRange: "Sélectionnez une plage de dates", selectedDateIsNotAvailable: "La date sélectionnée n’est pas disponible" },
706
+ "it-IT": { apply: "Applica", cancel: "Annulla", dateRangePicker: "Selettore intervallo di date {name}", provideDateInAFormat: "Inserisci la data nel formato AAAA-MM-GG", quarter: "Q{quarter} {year}", selectDate: "Seleziona una data", selectDateRange: "Seleziona un intervallo di date", selectedDateIsNotAvailable: "La data selezionata non è disponibile" },
707
+ "ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
708
+ "pt-BR": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Seletor de intervalo de datas {name}", provideDateInAFormat: "Inclua 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" },
709
+ "zh-CN": { apply: "应用", cancel: "取消", dateRangePicker: "日期范围选择器 {name}", provideDateInAFormat: "提供 YYYY-MM-DD 格式的日期", quarter: "{year} {quarter} 季度", selectDate: "选择日期", selectDateRange: "选择日期范围", selectedDateIsNotAvailable: "所选日期不可用" }
710
+ }, Tt = ({
711
+ datePickerValue: t,
712
+ isDateIncorrect: c,
713
+ quickSelectRanges: m,
714
+ isMonthVariant: s,
715
+ withTimeInput: a,
716
+ placeholder: i
717
+ }) => {
718
+ const { locale: p, t: v } = qe({ messages: Ce }), { dateToInputDateString: b } = Be(), h = (R) => !!R && !isNaN(R.getTime()), A = he({
719
+ startDate: null,
720
+ endDate: null,
721
+ startTime: null,
722
+ endTime: null
723
+ });
724
+ return Te(
725
+ t,
726
+ (R) => {
727
+ A.startDate = b(R?.startDate), A.endDate = b(R?.endDate), A.startTime = F(R?.startDate), A.endTime = F(R?.endDate);
728
+ },
729
+ { immediate: !0 }
730
+ ), {
731
+ // Values
732
+ dateDisplayValue: D(() => {
733
+ if (c.value)
734
+ return `${A.startDate || ""} - ${A.endDate || ""}`;
735
+ if (!t.value || !t.value.startDate && !t.value.endDate)
736
+ return i?.value || v("selectDateRange");
737
+ if (m.value?.length) {
738
+ const O = m.value.find(({ value: P }) => P === t.value?.range);
739
+ if (O)
740
+ return O.label;
741
+ }
742
+ if (t.value.granularity === "quarterly") {
743
+ const { startDate: O, endDate: P } = t.value, U = v("quarter", { quarter: aa(O), year: ta(O) });
744
+ if (lt(O, P))
745
+ return U;
746
+ const ae = v("quarter", { quarter: aa(P), year: ta(P) });
747
+ return `${U} - ${ae}`;
748
+ }
749
+ if (!h(t.value.startDate) || !h(t.value.endDate))
750
+ return `${A.startDate || ""} - ${A.endDate || ""}`;
751
+ let R = s?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
752
+ return a.value && (R = {
753
+ ...R,
754
+ hour: "numeric",
755
+ minute: "numeric",
756
+ second: "numeric",
757
+ hour12: !1
758
+ }), ja(p.value, R).formatRange(
759
+ t.value.startDate,
760
+ t.value.endDate
761
+ );
762
+ }),
763
+ textInputDisplayValue: A,
764
+ // Methods
765
+ formatTextInputDisplayValue: () => ""
766
+ };
767
+ }, ht = { class: "b-date-range-picker" }, Yt = { class: "b-date-range-picker__footer" }, bt = {
768
+ i18n: { messages: Ce },
769
+ name: "bento-date-range-picker",
770
+ model: { prop: "modelValue" }
771
+ }, At = /* @__PURE__ */ la({
772
+ ...bt,
773
+ props: {
774
+ allowTimeInput: { type: Boolean },
775
+ firstDayOfWeek: { default: void 0 },
776
+ granularities: {},
777
+ isDateDisabled: { type: Function, default: void 0 },
778
+ showEndDateOnOpen: { type: Boolean, default: !1 },
779
+ quickSelectRanges: { default: void 0 },
780
+ maxRange: { default: null },
781
+ min: { default: null },
782
+ max: { default: null },
783
+ numberOfMonths: { default: void 0 },
784
+ modelValue: { default: null },
785
+ value: { default: null },
786
+ variant: { default: void 0 },
787
+ hasActions: { type: Boolean, default: !1 },
788
+ description: { default: void 0 },
789
+ disabled: { type: Boolean, default: !1 },
790
+ errorMessage: { default: null },
791
+ label: { default: void 0 },
792
+ optional: { type: Boolean, default: !1 },
793
+ placeholder: { default: null },
794
+ readonly: { type: Boolean, default: !1 },
795
+ required: { type: Boolean, default: !1 },
796
+ tooltipText: { default: null }
797
+ },
798
+ emits: ["update:model-value", "input"],
799
+ setup(t, { emit: c }) {
800
+ const m = c, s = t, a = Oa(), { t: i } = qe({ messages: Ce }), { dateToInputDateString: p } = Be(), v = le("bento-date-range-picker-container"), b = le("bento-date-range-picker-label"), h = le("bento-date-range-picker-description"), A = le("bento-date-range-picker-error"), te = le("bento-date-range-picker-date-error"), E = D(() => s.label || i("dateRangePicker", { name: v })), { resolvedFirstDayOfWeek: R } = za(Ie(s, "firstDayOfWeek")), O = qa({
801
+ none: 0,
802
+ one: 710,
803
+ // width of date range picker with one panes
804
+ two: 1030,
805
+ // width of date range picker with two panes
806
+ three: 1290
807
+ // width of date range picker with three panes
808
+ }), P = D(() => {
809
+ const o = O.active().value, Z = {
810
+ none: 0,
811
+ one: 1,
812
+ two: 2
813
+ };
814
+ if (o in Z) {
815
+ const ve = Z[o];
816
+ return s.numberOfMonths === void 0 ? ve : Math.min(s.numberOfMonths, ve);
817
+ }
818
+ return s.numberOfMonths;
819
+ }), U = D(() => s?.quickSelectRanges && s.quickSelectRanges.map((o) => {
820
+ const Z = o.data.endDate ? void 0 : new Date(Date.now()).getTime() - o.data.startDate.getTime();
821
+ return {
822
+ ...o,
823
+ data: {
824
+ ...o.data,
825
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
826
+ timeDifference: Z
827
+ }
828
+ };
829
+ })), ae = D(() => s.label ? b : a?.["aria-labelledby"] ?? null), k = C(!1), n = C(null), M = C(!1), { isReadOnly: ie } = Ha(Ie(s, "readonly")), { emitValue: ue } = Xa(m);
830
+ Te(
831
+ () => s.disabled,
832
+ () => {
833
+ s.disabled && M.value && (M.value = !1);
834
+ }
835
+ );
836
+ const $ = D(() => s.modelValue || s.value), ne = D(() => s.hasActions ? !_.value && k.value : k.value), Ye = D(() => ({
837
+ "b-date-range-picker__description--error": !!s.errorMessage || ne.value
838
+ })), g = D(() => s.variant === "month"), de = D(() => s.allowTimeInput && s.variant !== "month"), { dateDisplayValue: re, textInputDisplayValue: T } = Tt({
839
+ datePickerValue: $,
840
+ isDateIncorrect: k,
841
+ quickSelectRanges: U,
842
+ isMonthVariant: g,
843
+ withTimeInput: de,
844
+ placeholder: Ie(s, "placeholder")
845
+ }), be = D(
846
+ () => `${s.description ? h : ""} ${s.errorMessage ? A : ""} ${k.value ? te : ""}`.trim() || null
847
+ ), H = () => {
848
+ M.value = !1;
849
+ }, Ae = () => {
850
+ M.value = !0;
851
+ }, ce = C(re.value), me = C(
852
+ // textInputDisplayValue is a reactive object
853
+ structuredClone(Oe(T))
854
+ ), J = C(s.modelValue ?? s.value), _ = C(!0), Re = D(
855
+ () => s.hasActions ? me.value : T
856
+ ), De = D(
857
+ () => s.hasActions ? ce.value : re.value
858
+ );
859
+ sa(() => {
860
+ if (s.hasActions || Le(
861
+ 'BentoDateRangePicker "hasActions" property',
862
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
863
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
864
+ "2.0.0"
865
+ ), s.value && Le(
866
+ 'BentoDateRangePicker "value" property',
867
+ 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
868
+ "2.0.0"
869
+ ), s.granularities && s.variant !== "month" && s.granularities.find(({ type: o }) => o === "quarterly"))
870
+ throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
871
+ }), Te([() => s.value, () => s.modelValue], () => {
872
+ ce.value = re.value, me.value = structuredClone(Oe(T));
873
+ });
874
+ const I = D(() => [
875
+ {
876
+ title: i("apply"),
877
+ event: () => {
878
+ ue(J.value), H(), _.value = !0;
879
+ },
880
+ disabled: _.value
881
+ },
882
+ {
883
+ title: i("cancel"),
884
+ event: H
885
+ }
886
+ ]);
887
+ Te(J, (o) => {
888
+ if (s.hasActions) {
889
+ _.value = k.value;
890
+ return;
891
+ }
892
+ ue(o);
893
+ });
894
+ const K = (o) => {
895
+ k.value = !1, T.startDate = p(o.startDate), T.endDate = p(o.endDate), T.startTime = F(o.startDate), T.endTime = F(o.endDate), J.value = o;
896
+ }, X = async () => {
897
+ k.value && (k.value = !1), J.value = null;
898
+ }, l = () => {
899
+ if (!M.value) {
900
+ M.value = !0;
901
+ return;
902
+ }
903
+ k.value || (M.value = !1);
904
+ }, pe = (o) => {
905
+ k.value = !1, o.startTime && (T.startTime = o.startTime), o.endTime && (T.endTime = o.endTime);
906
+ }, fe = (o) => {
907
+ k.value = !0, T.startDate = o.startDate, T.endDate = o.endDate, J.value = { startDate: null, endDate: null };
908
+ }, Q = (o) => {
909
+ o && (T.startDate = p(o.startDate), T.endDate = p(o.endDate), T.startTime = F(o.startDate), T.endTime = F(o.endDate), J.value = o);
910
+ };
911
+ return (o, Z) => _a((S(), Me("div", ht, [
912
+ o.label ? (S(), x(u(nt), {
913
+ key: 0,
914
+ id: u(b),
915
+ label: o.label,
916
+ "tooltip-text": o.tooltipText,
917
+ optional: o.optional,
918
+ required: o.required
919
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : w("", !0),
920
+ W("div", {
921
+ onKeydown: Ge(l, ["enter"])
922
+ }, [
923
+ G(u(Ua), {
924
+ ref_key: "inputContainerRef",
925
+ ref: n,
926
+ "always-combobox-is-input": "",
927
+ ariaControls: u(v),
928
+ ariaExpanded: M.value,
929
+ "aria-labelledby": ae.value,
930
+ "aria-describedby": be.value,
931
+ "aria-required": o.required,
932
+ disabled: o.disabled,
933
+ "is-invalid": !!o.errorMessage || ne.value,
934
+ open: M.value,
935
+ "display-value": De.value,
936
+ readonly: u(ie),
937
+ onOpen: Ae,
938
+ onClear: X,
939
+ onClose: H
940
+ }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-required", "disabled", "is-invalid", "open", "display-value", "readonly"])
941
+ ], 32),
942
+ ne.value ? (S(), x(u(ea), {
943
+ key: 1,
944
+ id: u(te),
945
+ "error-message": u(i)("provideDateInAFormat"),
946
+ class: "b-date-range-picker__error-message"
947
+ }, null, 8, ["id", "error-message"])) : w("", !0),
948
+ o.errorMessage ? (S(), x(u(ea), {
949
+ key: 2,
950
+ id: u(A),
951
+ "error-message": o.errorMessage,
952
+ class: "b-date-range-picker__error-message"
953
+ }, null, 8, ["id", "error-message"])) : w("", !0),
954
+ o.description ? (S(), x(u(_e), {
955
+ key: 3,
956
+ id: u(h),
957
+ class: ge(["b-date-range-picker__description", Ye.value]),
958
+ el: "span"
959
+ }, {
960
+ default: ee(() => [
961
+ se(Ee(o.description), 1)
962
+ ]),
963
+ _: 1
964
+ }, 8, ["id", "class"])) : w("", !0),
965
+ n.value ? (S(), x(u(Ca), {
966
+ key: 4,
967
+ id: u(v),
968
+ class: "b-date-range-picker__container",
969
+ open: M.value,
970
+ "target-element": n.value,
971
+ "aria-label": E.value,
972
+ position: "bottom-start",
973
+ "without-space": "",
974
+ "fit-content": "",
975
+ "trap-all": "",
976
+ "overflow-visible": "",
977
+ onKeydown: Ge(H, ["esc", "native"])
978
+ }, {
979
+ default: ee(() => [
980
+ G(u(gt), {
981
+ "allow-time-input": de.value,
982
+ "quick-select-ranges": U.value,
983
+ value: $.value,
984
+ "first-day-of-week": u(R),
985
+ granularities: o.granularities,
986
+ "is-date-disabled": o.isDateDisabled,
987
+ "max-range": o.maxRange,
988
+ min: o.min,
989
+ max: o.max,
990
+ "number-of-months": P.value,
991
+ "show-end-date-on-open": o.showEndDateOnOpen,
992
+ "date-form-data": Re.value,
993
+ variant: o.variant,
994
+ onCustomRange: Q,
995
+ onInput: K,
996
+ onError: fe,
997
+ onFormDate: pe
998
+ }, Fe({ _: 2 }, [
999
+ o.hasActions ? {
1000
+ name: "actions",
1001
+ fn: ee(() => [
1002
+ G(u(Ba)),
1003
+ W("div", Yt, [
1004
+ G(u(Na), {
1005
+ actions: I.value,
1006
+ layout: u(rt).SPACE_BETWEEN
1007
+ }, null, 8, ["actions", "layout"])
1008
+ ])
1009
+ ]),
1010
+ key: "0"
1011
+ } : void 0
1012
+ ]), 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"])
1013
+ ]),
1014
+ _: 1
1015
+ }, 8, ["id", "open", "target-element", "aria-label"])) : w("", !0)
1016
+ ])), [
1017
+ [u(Ka), H]
1018
+ ]);
1019
+ }
1020
+ }), Xt = /* @__PURE__ */ ia(At, [["__scopeId", "data-v-e00826fe"]]);
1021
+ export {
1022
+ Xt as B,
1023
+ gt as D,
1024
+ st as a,
1025
+ Se as i
1026
+ };
1027
+ //# sourceMappingURL=date-range-picker.c5OwESTS.js.map