@adyen/bento-vue2 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 (296) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +381 -118
  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 +3 -3
  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.D0WVCLec.js +145 -0
  36. package/dist/chunks/{accordion-item.BZDSJamR.js.map → accordion-item.D0WVCLec.js.map} +1 -1
  37. package/dist/chunks/action-bar.Dj830k6L.js +334 -0
  38. package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.Dj830k6L.js.map} +1 -1
  39. package/dist/chunks/{ai-button.CR_ePQRR.js → ai-button.7L9bANlk.js} +2 -2
  40. package/dist/chunks/{ai-button.CR_ePQRR.js.map → ai-button.7L9bANlk.js.map} +1 -1
  41. package/dist/chunks/ai-tag.AyG2UWCB.js +110 -0
  42. package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.AyG2UWCB.js.map} +1 -1
  43. package/dist/chunks/alert.CXRb-Smf.js +160 -0
  44. package/dist/chunks/{alert.QVQ6Zjbm.js.map → alert.CXRb-Smf.js.map} +1 -1
  45. package/dist/chunks/{anchor-scroller.CjJ26PJS.js → anchor-scroller.DWaykZQj.js} +66 -39
  46. package/dist/chunks/{anchor-scroller.CjJ26PJS.js.map → anchor-scroller.DWaykZQj.js.map} +1 -1
  47. package/dist/chunks/{base-modal.DmWkavtf.js → base-modal.C52VMtnd.js} +104 -67
  48. package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.C52VMtnd.js.map} +1 -1
  49. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.OsPQ-POD.js} +2 -2
  50. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.OsPQ-POD.js.map} +1 -1
  51. package/dist/chunks/{button-actions.BLk114As.js → button-actions.Bdbu0bvt.js} +222 -148
  52. package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.Bdbu0bvt.js.map} +1 -1
  53. package/dist/chunks/{button.DxhJNOtr.js → button.C9b2AC9w.js} +2 -2
  54. package/dist/chunks/{button.DxhJNOtr.js.map → button.C9b2AC9w.js.map} +1 -1
  55. package/dist/chunks/{calendar.CXKhBF2f.js → calendar.CqsfThnC.js} +438 -346
  56. package/dist/chunks/calendar.CqsfThnC.js.map +1 -0
  57. package/dist/chunks/card.8z7UQeVK.js +165 -0
  58. package/dist/chunks/{card.GjhsXOT0.js.map → card.8z7UQeVK.js.map} +1 -1
  59. package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.Dur2Edtw.js} +4 -4
  60. package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.Dur2Edtw.js.map} +1 -1
  61. package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.vNjt6QDJ.js} +93 -56
  62. package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.vNjt6QDJ.js.map} +1 -1
  63. package/dist/chunks/chip.BFY_-VCz.js +84 -0
  64. package/dist/chunks/{chip.DTpENaGC.js.map → chip.BFY_-VCz.js.map} +1 -1
  65. package/dist/chunks/{click-outside.CDz_x8mN.js → click-outside.BG01Sm0A.js} +2 -2
  66. package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BG01Sm0A.js.map} +1 -1
  67. package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.BVpFBhKq.js} +133 -76
  68. package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.BVpFBhKq.js.map} +1 -1
  69. package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.DSm2Ujwt.js} +2 -2
  70. package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.DSm2Ujwt.js.map} +1 -1
  71. package/dist/chunks/copy.qqGYFbKJ.js +133 -0
  72. package/dist/chunks/{copy.BVGQcf22.js.map → copy.qqGYFbKJ.js.map} +1 -1
  73. package/dist/chunks/{country.D20NCLLG.js → country.BEwW8TQo.js} +3 -3
  74. package/dist/chunks/{country.D20NCLLG.js.map → country.BEwW8TQo.js.map} +1 -1
  75. package/dist/chunks/country.types.jjXwaoMl.js +2537 -0
  76. package/dist/chunks/country.types.jjXwaoMl.js.map +1 -0
  77. package/dist/chunks/{dashboard-section.BubZyu8i.js → dashboard-section.DNxNVV44.js} +3 -3
  78. package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.DNxNVV44.js.map} +1 -1
  79. package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.DL2_sik5.js} +3 -3
  80. package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.DL2_sik5.js.map} +1 -1
  81. package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.BFv1zr6g.js} +4 -4
  82. package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.BFv1zr6g.js.map} +1 -1
  83. package/dist/chunks/data-grid.ZHY5EzP3.js +4071 -0
  84. package/dist/chunks/data-grid.ZHY5EzP3.js.map +1 -0
  85. package/dist/chunks/date-picker.kl6aFlr1.js +237 -0
  86. package/dist/chunks/date-picker.kl6aFlr1.js.map +1 -0
  87. package/dist/chunks/date-range-picker.LCWVAa5R.js +1089 -0
  88. package/dist/chunks/date-range-picker.LCWVAa5R.js.map +1 -0
  89. package/dist/chunks/dialog-page.EdejG53a.js +143 -0
  90. package/dist/chunks/{dialog-page.oyG153fC.js.map → dialog-page.EdejG53a.js.map} +1 -1
  91. package/dist/chunks/{directive.rXUeDb8p.js → directive.Bfr4fuOy.js} +2 -2
  92. package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Bfr4fuOy.js.map} +1 -1
  93. package/dist/chunks/draggable-handle.Ba28eM8o.js +245 -0
  94. package/dist/chunks/draggable-handle.Ba28eM8o.js.map +1 -0
  95. package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.B61hPq5n.js} +5 -5
  96. package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.B61hPq5n.js.map} +1 -1
  97. package/dist/chunks/dropdown.Ca-f8tdX.js +1140 -0
  98. package/dist/chunks/dropdown.Ca-f8tdX.js.map +1 -0
  99. package/dist/chunks/{empty-state.D_Ac-XXH.js → empty-state.DMV23IZy.js} +2 -2
  100. package/dist/chunks/{empty-state.D_Ac-XXH.js.map → empty-state.DMV23IZy.js.map} +1 -1
  101. package/dist/chunks/error-message.CyERcfdt.js +72 -0
  102. package/dist/chunks/error-message.CyERcfdt.js.map +1 -0
  103. package/dist/chunks/field-label.DjjjkcO6.js +97 -0
  104. package/dist/chunks/field-label.DjjjkcO6.js.map +1 -0
  105. package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.DeWmLpfp.js} +751 -469
  106. package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.DeWmLpfp.js.map} +1 -1
  107. package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.Bd4ghW_B.js} +1596 -1039
  108. package/dist/chunks/filter-bar.Bd4ghW_B.js.map +1 -0
  109. package/dist/chunks/fixed-scroller.DR2E_No4.js +148 -0
  110. package/dist/chunks/{fixed-scroller.MerESbd_.js.map → fixed-scroller.DR2E_No4.js.map} +1 -1
  111. package/dist/chunks/{footer-actions.CiPj7hZG.js → footer-actions.CvUaoMzj.js} +3 -3
  112. package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CvUaoMzj.js.map} +1 -1
  113. package/dist/chunks/form-layout-title.DzGajv4U.js +248 -0
  114. package/dist/chunks/form-layout-title.DzGajv4U.js.map +1 -0
  115. package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.AXUGoqDd.js} +127 -73
  116. package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.AXUGoqDd.js.map} +1 -1
  117. package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.Ba4dswJF.js} +1121 -680
  118. package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.Ba4dswJF.js.map} +1 -1
  119. package/dist/chunks/{header.DkC-KKWa.js → header.C7B7RBib.js} +3 -3
  120. package/dist/chunks/{header.DkC-KKWa.js.map → header.C7B7RBib.js.map} +1 -1
  121. package/dist/chunks/{info-icon.BF8KxU-k.js → info-icon.DCR42Kvm.js} +2 -2
  122. package/dist/chunks/{info-icon.BF8KxU-k.js.map → info-icon.DCR42Kvm.js.map} +1 -1
  123. package/dist/chunks/input-field-password.BNAtIn_D.js +381 -0
  124. package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.BNAtIn_D.js.map} +1 -1
  125. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.CEYx1s4b.js} +98 -71
  126. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.CEYx1s4b.js.map} +1 -1
  127. package/dist/chunks/input-field.Dh5W0Az-.js +211 -0
  128. package/dist/chunks/input-field.Dh5W0Az-.js.map +1 -0
  129. package/dist/chunks/input-time.BLuMfakv.js +135 -0
  130. package/dist/chunks/input-time.BLuMfakv.js.map +1 -0
  131. package/dist/chunks/inspector.BzBPlz-5.js +172 -0
  132. package/dist/chunks/{inspector.Bnm0hl_D.js.map → inspector.BzBPlz-5.js.map} +1 -1
  133. package/dist/chunks/{link.MhoM3zQj.js → link.DB5g6d48.js} +56 -29
  134. package/dist/chunks/{link.MhoM3zQj.js.map → link.DB5g6d48.js.map} +1 -1
  135. package/dist/chunks/{list-item.BnzU1LIu.js → list-item.DqTHh8-Z.js} +2 -2
  136. package/dist/chunks/{list-item.BnzU1LIu.js.map → list-item.DqTHh8-Z.js.map} +1 -1
  137. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js → listbox-option-tag.CvbE-EuG.js} +2 -2
  138. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js.map → listbox-option-tag.CvbE-EuG.js.map} +1 -1
  139. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js → modal-fullscreen.DTvg2NLk.js} +63 -36
  140. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.DTvg2NLk.js.map} +1 -1
  141. package/dist/chunks/{modal.o0KddMiG.js → modal.D_TcWTkf.js} +63 -36
  142. package/dist/chunks/{modal.o0KddMiG.js.map → modal.D_TcWTkf.js.map} +1 -1
  143. package/dist/chunks/on-click-outside.Cy1eFULD.js +109 -0
  144. package/dist/chunks/on-click-outside.Cy1eFULD.js.map +1 -0
  145. package/dist/chunks/{pagination.ZISqB4M_.js → pagination.D6BxMw5L.js} +221 -99
  146. package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.D6BxMw5L.js.map} +1 -1
  147. package/dist/chunks/promo-banner.Dc_kK1x9.js +91 -0
  148. package/dist/chunks/{promo-banner.Db2kh2qK.js.map → promo-banner.Dc_kK1x9.js.map} +1 -1
  149. package/dist/chunks/{radio-group.DnMy7brs.js → radio-group.Bb-L-0io.js} +4 -4
  150. package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.Bb-L-0io.js.map} +1 -1
  151. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.Dtdfh-0V.js} +1782 -1731
  152. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.Dtdfh-0V.js.map} +1 -1
  153. package/dist/chunks/search-bar.MVJS9-Mh.js +126 -0
  154. package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.MVJS9-Mh.js.map} +1 -1
  155. package/dist/chunks/secondary-nav.C-nPZR-2.js +226 -0
  156. package/dist/chunks/secondary-nav.C-nPZR-2.js.map +1 -0
  157. package/dist/chunks/{segmented-control.BqIiX9hv.js → segmented-control.DDtjX-V5.js} +2 -2
  158. package/dist/chunks/{segmented-control.BqIiX9hv.js.map → segmented-control.DDtjX-V5.js.map} +1 -1
  159. package/dist/chunks/{selection-card-group.IPiouuot.js → selection-card-group.CLJPaknG.js} +3 -3
  160. package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.CLJPaknG.js.map} +1 -1
  161. package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.BTRfwGiS.js} +66 -39
  162. package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.BTRfwGiS.js.map} +1 -1
  163. package/dist/chunks/{step.QFER3tSj.js → step.TDm_ts1S.js} +92 -63
  164. package/dist/chunks/{step.QFER3tSj.js.map → step.TDm_ts1S.js.map} +1 -1
  165. package/dist/chunks/{structured-list-item.BDJKRC_8.js → structured-list-item.BBBtie1s.js} +58 -31
  166. package/dist/chunks/{structured-list-item.BDJKRC_8.js.map → structured-list-item.BBBtie1s.js.map} +1 -1
  167. package/dist/chunks/{summary-grid.types.CIkArZf5.js → summary-grid.types.DUIqCmwg.js} +5 -5
  168. package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.DUIqCmwg.js.map} +1 -1
  169. package/dist/chunks/{tab.CaXF0dho.js → tab.CNIZyfZt.js} +2 -2
  170. package/dist/chunks/{tab.CaXF0dho.js.map → tab.CNIZyfZt.js.map} +1 -1
  171. package/dist/chunks/{tag.CocLKztJ.js → tag.D2xagTJv.js} +2 -2
  172. package/dist/chunks/{tag.CocLKztJ.js.map → tag.D2xagTJv.js.map} +1 -1
  173. package/dist/chunks/textarea.CJS-1I41.js +219 -0
  174. package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.CJS-1I41.js.map} +1 -1
  175. package/dist/chunks/timeline-item.BOUWkLi1.js +322 -0
  176. package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.BOUWkLi1.js.map} +1 -1
  177. package/dist/chunks/{toast.BRI3G7TL.js → toast.d8vg71CB.js} +81 -54
  178. package/dist/chunks/{toast.BRI3G7TL.js.map → toast.d8vg71CB.js.map} +1 -1
  179. package/dist/chunks/{tooltip.CbsNGnhw.js → tooltip.BxtnF3is.js} +38 -36
  180. package/dist/chunks/tooltip.BxtnF3is.js.map +1 -0
  181. package/dist/chunks/{tutorial.BzV6bHQJ.js → tutorial.CZt_mcuT.js} +190 -103
  182. package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.CZt_mcuT.js.map} +1 -1
  183. package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.BJbWbkEQ.js} +553 -417
  184. package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +1 -0
  185. package/dist/chunks/{use-country-items.CI8C7MLU.js → use-country-items.B4j8pAvW.js} +3 -3
  186. package/dist/chunks/{use-country-items.CI8C7MLU.js.map → use-country-items.B4j8pAvW.js.map} +1 -1
  187. package/dist/chunks/use-country-phon-code.ByqnuIni.js +6386 -0
  188. package/dist/chunks/use-country-phon-code.ByqnuIni.js.map +1 -0
  189. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js → use-date-input-formatter.Djf8AoLr.js} +2 -2
  190. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.Djf8AoLr.js.map} +1 -1
  191. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  192. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  193. package/dist/click-outside.js +1 -1
  194. package/dist/code-snippet.js +1 -1
  195. package/dist/country.js +3 -3
  196. package/dist/dashboard-template.js +1 -1
  197. package/dist/dashed-underline.js +1 -1
  198. package/dist/data-grid-template.js +1 -1
  199. package/dist/data-grid.js +1 -1
  200. package/dist/date-picker.js +2 -2
  201. package/dist/date-range-picker.js +2 -2
  202. package/dist/draggable.js +1396 -0
  203. package/dist/draggable.js.map +1 -0
  204. package/dist/dropdown.js +11 -12
  205. package/dist/dropdown.js.map +1 -1
  206. package/dist/empty-state.js +1 -1
  207. package/dist/file-uploader.js +1 -1
  208. package/dist/filter-bar.js +1 -1
  209. package/dist/form-layout.js +1 -1
  210. package/dist/header-with-views.js +1 -1
  211. package/dist/header.js +1 -1
  212. package/dist/index.js +280 -275
  213. package/dist/index.js.map +1 -1
  214. package/dist/info-icon.js +1 -1
  215. package/dist/input-field-password.js +1 -1
  216. package/dist/input-field-phone-number.js +1 -1
  217. package/dist/input-field.js +1 -1
  218. package/dist/input-time.js +5 -0
  219. package/dist/input-time.js.map +1 -0
  220. package/dist/inspector.js +1 -1
  221. package/dist/internal.js +26 -25
  222. package/dist/internal.js.map +1 -1
  223. package/dist/link.js +1 -1
  224. package/dist/list.js +1 -1
  225. package/dist/menu.js +1 -1
  226. package/dist/modal-fullscreen.js +1 -1
  227. package/dist/modal.js +2 -2
  228. package/dist/pagination.js +1 -1
  229. package/dist/popover.js +1 -1
  230. package/dist/promo-banner.js +1 -1
  231. package/dist/radio-group.js +1 -1
  232. package/dist/rich-text-editor.js +1 -1
  233. package/dist/search-bar.js +2 -2
  234. package/dist/secondary-nav.js +1 -1
  235. package/dist/segmented-control.js +1 -1
  236. package/dist/selection-card.js +1 -1
  237. package/dist/sidepanel.js +1 -1
  238. package/dist/stepper.js +1 -1
  239. package/dist/structured-list.js +1 -1
  240. package/dist/summary-grid.js +1 -1
  241. package/dist/tabs.js +1 -1
  242. package/dist/tag.js +1 -1
  243. package/dist/textarea.js +1 -1
  244. package/dist/timeline.js +1 -1
  245. package/dist/toast.js +1 -1
  246. package/dist/tutorial.js +1 -1
  247. package/dist/web-types.json +297 -4
  248. package/package.json +10 -15
  249. package/dist/assets/dropdown-default-textbox.css +0 -1
  250. package/dist/chunks/accordion-item.BZDSJamR.js +0 -108
  251. package/dist/chunks/action-bar.CYGUYI0V.js +0 -207
  252. package/dist/chunks/ai-tag.Cjf38mjR.js +0 -73
  253. package/dist/chunks/alert.QVQ6Zjbm.js +0 -93
  254. package/dist/chunks/calendar.CXKhBF2f.js.map +0 -1
  255. package/dist/chunks/card.GjhsXOT0.js +0 -128
  256. package/dist/chunks/chip.DTpENaGC.js +0 -57
  257. package/dist/chunks/copy.BVGQcf22.js +0 -86
  258. package/dist/chunks/country.types.DxKjyd0S.js +0 -20
  259. package/dist/chunks/country.types.DxKjyd0S.js.map +0 -1
  260. package/dist/chunks/data-grid.DJG8Ty0A.js +0 -3194
  261. package/dist/chunks/data-grid.DJG8Ty0A.js.map +0 -1
  262. package/dist/chunks/date-picker.CnazYcSX.js +0 -155
  263. package/dist/chunks/date-picker.CnazYcSX.js.map +0 -1
  264. package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
  265. package/dist/chunks/date-range-picker.Bf9pRNL7.js.map +0 -1
  266. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  267. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  268. package/dist/chunks/dialog-page.oyG153fC.js +0 -116
  269. package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js +0 -337
  270. package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js.map +0 -1
  271. package/dist/chunks/dropdown.Ct7uhPr6.js +0 -696
  272. package/dist/chunks/dropdown.Ct7uhPr6.js.map +0 -1
  273. package/dist/chunks/error-message.RxdStT3S.js +0 -106
  274. package/dist/chunks/error-message.RxdStT3S.js.map +0 -1
  275. package/dist/chunks/filter-bar.zD_ctViU.js.map +0 -1
  276. package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
  277. package/dist/chunks/form-layout-title.Bw7VgOO5.js +0 -210
  278. package/dist/chunks/form-layout-title.Bw7VgOO5.js.map +0 -1
  279. package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
  280. package/dist/chunks/input-field.m1PMwa4C.js +0 -170
  281. package/dist/chunks/input-field.m1PMwa4C.js.map +0 -1
  282. package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
  283. package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
  284. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +0 -1
  285. package/dist/chunks/promo-banner.Db2kh2qK.js +0 -64
  286. package/dist/chunks/search-bar.DPjYDhja.js +0 -89
  287. package/dist/chunks/secondary-nav.CwJjkJkj.js +0 -112
  288. package/dist/chunks/secondary-nav.CwJjkJkj.js.map +0 -1
  289. package/dist/chunks/textarea.D4X6Ss9q.js +0 -169
  290. package/dist/chunks/timeline-item.C8BxWdy1.js +0 -238
  291. package/dist/chunks/tooltip.CbsNGnhw.js.map +0 -1
  292. package/dist/chunks/use-cached-selected-values.DqX2qsMC.js.map +0 -1
  293. package/dist/chunks/use-country-phon-code.C6orQNnM.js +0 -291
  294. package/dist/chunks/use-country-phon-code.C6orQNnM.js.map +0 -1
  295. package/dist/draggable-handle.js +0 -149
  296. package/dist/draggable-handle.js.map +0 -1
@@ -0,0 +1,1089 @@
1
+ import { reactive as ve, defineComponent as We, useSlots as ft, ref as B, computed as m, onMounted as ze, toRaw as Ae, watch as fe, useAttrs as vt, toRef as Te } from "vue";
2
+ import { j as yt } from "./index.CwzYJHw2.js";
3
+ import { B as Mt } from "./divider.DX5gwN7p.js";
4
+ import { h as gt, B as Tt } from "./button-actions.Bdbu0bvt.js";
5
+ import { B as $e, d as Ce } from "./typography.C8lPlsbD.js";
6
+ import { B as ht } from "./input-field.Dh5W0Az-.js";
7
+ import { B as Yt, i as we } from "./input-time.BLuMfakv.js";
8
+ import { B as At, D as Rt } from "./dropdown.Ca-f8tdX.js";
9
+ import { B as bt } from "./segmented-control.DDtjX-V5.js";
10
+ import { u as Re } from "./index.B6WW_F-J.js";
11
+ import { d as Be } from "./use-cached-selected-values.BJbWbkEQ.js";
12
+ import { u as It } from "./use-has-slot.C9lQZ6nz.js";
13
+ import { u as be, a as _t } from "./use-date-input-formatter.Djf8AoLr.js";
14
+ import { u as kt } from "./use-touch-device.DTqFAbXh.js";
15
+ import { h as He, i as re, j as w, k as A, l as St, m as qe, n as Ft, s as xe, o as Et, q as Ne, b as N, u as Ot, e as Ct, f as wt, r as O, p as Pe, g as Bt } from "./calendar.CqsfThnC.js";
16
+ import { e as q, a as Le } from "./differenceInMonths.CIYECBxK.js";
17
+ import { s as Ge } from "./startOfWeek.CXhhX-R7.js";
18
+ import { t as P, n as qt, c as xt } from "./en-US.YeSsZuOc.js";
19
+ import { c as Nt } from "./constructNow.CIc7d13I.js";
20
+ import { n as Ve } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
21
+ import { g as ne } from "./generate-uid.NJ8tVoha.js";
22
+ import { u as Pt } from "./use-form-layout-loading.CWbjZiwP.js";
23
+ import "./index.Cl4_42j5.js";
24
+ import { u as Lt } from "./form-field.D_2g7vaP.js";
25
+ import { B as Gt } from "./directive.Bfr4fuOy.js";
26
+ import { F as Ut } from "./field-label.DjjjkcO6.js";
27
+ import { E as Qt } from "./error-message.CyERcfdt.js";
28
+ import { B as jt } from "./button-actions.types.BptAXjD8.js";
29
+ import "../assets/date-range-picker.css";
30
+ function Ke(s, a, e) {
31
+ return He(s, a * 3, e);
32
+ }
33
+ function Ue(s, a) {
34
+ const e = P(s, a == null ? void 0 : a.in);
35
+ return Math.trunc(e.getMonth() / 3) + 1;
36
+ }
37
+ function Qe(s, a) {
38
+ return P(s, a == null ? void 0 : a.in).getFullYear();
39
+ }
40
+ function he(s, a) {
41
+ return +P(s) == +P(a);
42
+ }
43
+ function Jt(s, a, e) {
44
+ const [t, l] = qt(
45
+ e == null ? void 0 : e.in,
46
+ s,
47
+ a
48
+ );
49
+ return +re(t) == +re(l);
50
+ }
51
+ function je(s, a) {
52
+ const e = P(s, a == null ? void 0 : a.in);
53
+ return e.setMilliseconds(0), e;
54
+ }
55
+ function Ye(s, a) {
56
+ return +je(s) == +je(a);
57
+ }
58
+ function Wt(s, a) {
59
+ return w(
60
+ xt(s, s),
61
+ Nt(s)
62
+ );
63
+ }
64
+ function zt(s, a, e) {
65
+ const t = P(s, e == null ? void 0 : e.in);
66
+ return t.setHours(a), t;
67
+ }
68
+ function Je(s, a, e) {
69
+ const t = P(s, e == null ? void 0 : e.in);
70
+ return t.setMilliseconds(a), t;
71
+ }
72
+ function $t(s, a, e) {
73
+ const t = P(s, e == null ? void 0 : e.in);
74
+ return t.setMinutes(a), t;
75
+ }
76
+ function Ht(s, a, e) {
77
+ const t = P(s, e == null ? void 0 : e.in);
78
+ return t.setSeconds(a), t;
79
+ }
80
+ function Vt(s, a, e) {
81
+ return Ke(s, -1, e);
82
+ }
83
+ const Kt = ({
84
+ firstDayOfWeek: s,
85
+ min: a,
86
+ max: e
87
+ }) => ({ getGranularCalendarLimits: (l) => {
88
+ if (!a && !e)
89
+ return { min: null, max: null };
90
+ let D = a ? A(a) : null, p = e ? q(e) : null;
91
+ if ((l == null ? void 0 : l.type) === "weekly") {
92
+ if (l.earliest)
93
+ D = A(l.earliest);
94
+ else if (D) {
95
+ const y = Ge(D, { weekStartsOn: s });
96
+ w(D, y) || (D = A(St(qe(D, { weekStartsOn: s }), 1)));
97
+ }
98
+ if (l.latest)
99
+ p = q(l.latest);
100
+ else if (p) {
101
+ const y = qe(p, { weekStartsOn: s });
102
+ w(p, y) || (p = q(Ft(Ge(p, { weekStartsOn: s }), 1)));
103
+ }
104
+ }
105
+ if ((l == null ? void 0 : l.type) === "monthly") {
106
+ if (l.earliest)
107
+ D = A(l.earliest);
108
+ else if (D) {
109
+ const y = xe(D);
110
+ w(D, y) || (D = xe(He(D, 1)));
111
+ }
112
+ if (l.latest)
113
+ p = q(l.latest);
114
+ else if (p) {
115
+ const y = Le(p);
116
+ w(p, y) || (p = Le(Et(p, 1)));
117
+ }
118
+ }
119
+ if ((l == null ? void 0 : l.type) === "quarterly") {
120
+ if (l.earliest)
121
+ D = re(l.earliest);
122
+ else if (D) {
123
+ const y = re(D);
124
+ w(D, y) || (D = re(Ke(D, 1)));
125
+ }
126
+ if (l.latest)
127
+ p = q(l.latest);
128
+ else if (p) {
129
+ const y = Ne(p);
130
+ w(p, y) || (p = Ne(Vt(p)));
131
+ }
132
+ }
133
+ return { min: D, max: p };
134
+ } }), Xt = () => {
135
+ const s = ve({
136
+ daily: null,
137
+ weekly: null,
138
+ monthly: null,
139
+ quarterly: null
140
+ });
141
+ return {
142
+ savedRanges: s,
143
+ saveRange: (t, l) => {
144
+ s[t] = l;
145
+ },
146
+ resetSavedRanges: () => {
147
+ s.daily = null, s.weekly = null, s.monthly = null, s.quarterly = null;
148
+ }
149
+ };
150
+ };
151
+ var v = /* @__PURE__ */ ((s) => (s.CUSTOM_RANGE = "custom-range", s.INPUT = "input", s.ERROR = "error", s.FORM_DATE = "form-date", s.START_DATE_SELECTED = "start-date-selected", s))(v || {});
152
+ const Zt = {
153
+ "de-DE": {
154
+ "DD-MM-YYYY": "TT-MM-JJJJ",
155
+ "MM-DD-YYYY": "JJJJ-MM-TT",
156
+ "YYYY-MM-DD": "JJJJ-MM-TT",
157
+ customRange: "Benutzerdefinierter Bereich",
158
+ daily: "Täglich",
159
+ dateFrom: "Datum von",
160
+ dateTo: "Datum bis",
161
+ lastMonth: "Letzter Monat",
162
+ lastSevenDays: "Letzte 7 Tage",
163
+ lastThreeMonths: "Letzte drei Monate",
164
+ monthly: "Monatlich",
165
+ quarterly: "Vierteljährlich",
166
+ timeFrom: "Zeit von",
167
+ timeTo: "Zeit bis",
168
+ weekly: "Wöchentlich"
169
+ },
170
+ "en-GB": {
171
+ "DD-MM-YYYY": "DD-MM-YYYY",
172
+ "MM-DD-YYYY": "MM-DD-YYYY",
173
+ "YYYY-MM-DD": "YYYY-MM-DD",
174
+ customRange: "Custom range",
175
+ daily: "Daily",
176
+ dateFrom: "Date from",
177
+ dateTo: "Date to",
178
+ lastMonth: "Last month",
179
+ lastSevenDays: "Last 7 days",
180
+ lastThreeMonths: "The last three months",
181
+ monthly: "Monthly",
182
+ quarterly: "Quarterly",
183
+ timeFrom: "Time from",
184
+ timeTo: "Time to",
185
+ weekly: "Weekly"
186
+ },
187
+ "en-US": {
188
+ "DD-MM-YYYY": "DD-MM-YYYY",
189
+ "MM-DD-YYYY": "MM-DD-YYYY",
190
+ "YYYY-MM-DD": "YYYY-MM-DD",
191
+ customRange: "Custom range",
192
+ daily: "Daily",
193
+ dateFrom: "Date from",
194
+ dateTo: "Date to",
195
+ lastMonth: "Last month",
196
+ lastSevenDays: "Last 7 days",
197
+ lastThreeMonths: "Last three months",
198
+ monthly: "Monthly",
199
+ quarterly: "Quarterly",
200
+ timeFrom: "Time from",
201
+ timeTo: "Time to",
202
+ weekly: "Weekly"
203
+ },
204
+ "es-ES": {
205
+ "DD-MM-YYYY": "DD-MM-AAAA",
206
+ "MM-DD-YYYY": "MM-DD-AAAA",
207
+ "YYYY-MM-DD": "AAAA-MM-DD",
208
+ customRange: "Rango personalizado",
209
+ daily: "Diario",
210
+ dateFrom: "Fecha desde",
211
+ dateTo: "Fecha hasta",
212
+ lastMonth: "El mes pasado",
213
+ lastSevenDays: "Últimos 7 días",
214
+ lastThreeMonths: "Últimos tres meses",
215
+ monthly: "Mensualmente",
216
+ quarterly: "Trimestral",
217
+ timeFrom: "Hora desde",
218
+ timeTo: "Hora hasta",
219
+ weekly: "Semanal"
220
+ },
221
+ "es-MX": {
222
+ "DD-MM-YYYY": "DD-MM-AAAA",
223
+ "MM-DD-YYYY": "MM-DD-AAAA",
224
+ "YYYY-MM-DD": "AAAA-MM-DD",
225
+ customRange: "Rango personalizado",
226
+ daily: "Diario",
227
+ dateFrom: "Fecha de",
228
+ dateTo: "Fecha hasta",
229
+ lastMonth: "El mes pasado",
230
+ lastSevenDays: "Últimos 7 días",
231
+ lastThreeMonths: "Últimos tres meses",
232
+ monthly: "Mensual",
233
+ quarterly: "Trimestral",
234
+ timeFrom: "Tiempo desde",
235
+ timeTo: "Es hora de",
236
+ weekly: "Semanal"
237
+ },
238
+ "fr-FR": {
239
+ "DD-MM-YYYY": "JJ-MM-AAAA",
240
+ "MM-DD-YYYY": "MM-JJ-AAAA",
241
+ "YYYY-MM-DD": "AAAA-MM-JJ",
242
+ customRange: "Plage personnalisée",
243
+ daily: "Quotidien",
244
+ dateFrom: "Date de début",
245
+ dateTo: "Date de fin",
246
+ lastMonth: "Le mois dernier",
247
+ lastSevenDays: "7 derniers jours",
248
+ lastThreeMonths: "Trois derniers mois",
249
+ monthly: "Mensuel",
250
+ quarterly: "Trimestriel",
251
+ timeFrom: "Heure de début",
252
+ timeTo: "Heure de fin",
253
+ weekly: "Hebdomadaire"
254
+ },
255
+ "it-IT": {
256
+ "DD-MM-YYYY": "GG-MM-AAAA",
257
+ "MM-DD-YYYY": "MM-GG-AAAA",
258
+ "YYYY-MM-DD": "AAAA-MM-GG",
259
+ customRange: "Intervallo personalizzato",
260
+ daily: "Giornaliero",
261
+ dateFrom: "Data da",
262
+ dateTo: "Da",
263
+ lastMonth: "Il mese scorso",
264
+ lastSevenDays: "Ultimi 7 giorni",
265
+ lastThreeMonths: "Gli ultimi tre mesi",
266
+ monthly: "Mensile",
267
+ quarterly: "Trimestrale",
268
+ timeFrom: "Tempo dal",
269
+ timeTo: "Tempo fino al",
270
+ weekly: "Settimanale"
271
+ },
272
+ "ja-JP": {
273
+ "DD-MM-YYYY": "DD-MM-YYYY",
274
+ "MM-DD-YYYY": "MM-DD-YYYY",
275
+ "YYYY-MM-DD": "YYYY-MM-DD",
276
+ customRange: "カスタム範囲",
277
+ daily: "毎日",
278
+ dateFrom: "開始日",
279
+ dateTo: "終了日",
280
+ lastMonth: "先月",
281
+ lastSevenDays: "過去 7 日間",
282
+ lastThreeMonths: "過去3か月",
283
+ monthly: "毎月",
284
+ quarterly: "四半期ごと",
285
+ timeFrom: "開始時刻",
286
+ timeTo: "終了時刻",
287
+ weekly: "毎週"
288
+ },
289
+ "pt-BR": {
290
+ "DD-MM-YYYY": "DD-MM-AAAA",
291
+ "MM-DD-YYYY": "MM-DD-AAAA",
292
+ "YYYY-MM-DD": "AAAA-MM-DD",
293
+ customRange: "Intervalo personalizado",
294
+ daily: "Diário",
295
+ dateFrom: "Data a partir de",
296
+ dateTo: "Data até",
297
+ lastMonth: "Último mês",
298
+ lastSevenDays: "Últimos 7 dias",
299
+ lastThreeMonths: "Últimos 3 meses",
300
+ monthly: "Mensal",
301
+ quarterly: "Trimestral",
302
+ timeFrom: "Horário a partir de",
303
+ timeTo: "Horário até",
304
+ weekly: "Semanal"
305
+ },
306
+ "zh-CN": {
307
+ "DD-MM-YYYY": "日-月-年",
308
+ "MM-DD-YYYY": "YYYY-MM-DD",
309
+ "YYYY-MM-DD": "年-月-日",
310
+ customRange: "自定义范围",
311
+ daily: "每日",
312
+ dateFrom: "日期自",
313
+ dateTo: "日期至",
314
+ lastMonth: "上个月",
315
+ lastSevenDays: "最近 7 天",
316
+ lastThreeMonths: "过去三个月",
317
+ monthly: "每月",
318
+ quarterly: "每季度",
319
+ timeFrom: "时间自",
320
+ timeTo: "是时候",
321
+ weekly: "每周"
322
+ }
323
+ }, ea = {
324
+ name: "date-range-picker-calendar",
325
+ i18n: { messages: Zt }
326
+ }, ta = /* @__PURE__ */ We({
327
+ ...ea,
328
+ props: {
329
+ /**
330
+ * Allows user to enter time values in the form
331
+ */
332
+ allowTimeInput: { type: Boolean, default: !1 },
333
+ /**
334
+ * Ranges form persistance data
335
+ */
336
+ dateFormData: {
337
+ type: Object,
338
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
339
+ },
340
+ /**
341
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
342
+ */
343
+ firstDayOfWeek: N.props.firstDayOfWeek,
344
+ /**
345
+ * A list of available granularities.
346
+ * If present, the date picker will display a segmented control to change granularity.
347
+ */
348
+ granularities: {
349
+ type: Array,
350
+ default: null
351
+ },
352
+ /**
353
+ * Indicate if a date should be disabled or not
354
+ */
355
+ isDateDisabled: N.props.isDateDisabled,
356
+ /**
357
+ * Set a maximum number of dates to be selectable by the range.
358
+ */
359
+ maxRange: N.props.maxRange,
360
+ /**
361
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
362
+ */
363
+ min: N.props.min,
364
+ /**
365
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
366
+ */
367
+ max: N.props.max,
368
+ /**
369
+ * Number of months rendered on pane
370
+ */
371
+ numberOfMonths: {
372
+ type: N.props.numberOfMonths.type,
373
+ default: N.props.numberOfMonths.default,
374
+ validator: (s) => s >= 0
375
+ },
376
+ /**
377
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
378
+ */
379
+ showEndDateOnOpen: { type: Boolean, default: !1 },
380
+ /**
381
+ * Enables the custom range selector.
382
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
383
+ * `label` - label of custom range item.
384
+ * `value` - a unique key of the custom range item.
385
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
386
+ */
387
+ quickSelectRanges: {
388
+ type: Array,
389
+ default: void 0
390
+ },
391
+ /**
392
+ * Selected date
393
+ */
394
+ value: { type: Object, default: void 0 },
395
+ /**
396
+ * The type of calendar to display. Defaults to showing days.
397
+ */
398
+ variant: N.props.variant
399
+ },
400
+ emits: [
401
+ v.CUSTOM_RANGE,
402
+ v.INPUT,
403
+ v.ERROR,
404
+ v.FORM_DATE,
405
+ v.START_DATE_SELECTED
406
+ ],
407
+ setup(s, { emit: a }) {
408
+ var Se, Fe, Ee, Oe;
409
+ const e = s, t = 300, l = "customRange", D = ft(), p = It(D), { t: y } = Re(), { isTouchDevice: _ } = kt(), {
410
+ dateFormat: U,
411
+ isFormatValid: R,
412
+ parseDate: F,
413
+ onKeyDown: X,
414
+ autoFormat: f,
415
+ formatDate: Q
416
+ } = be(), k = B({}), C = m(() => e.variant === "month" ? "monthly" : "daily"), M = m(() => e.numberOfMonths === 0), r = ve({
417
+ startDate: (Se = e.value) == null ? void 0 : Se.startDate,
418
+ endDate: (Fe = e.value) == null ? void 0 : Fe.endDate,
419
+ range: (Ee = e.value) == null ? void 0 : Ee.range,
420
+ ...e.granularities ? {
421
+ granularity: ((Oe = e.value) == null ? void 0 : Oe.granularity) || C.value
422
+ } : {}
423
+ }), T = m(() => {
424
+ var n, i;
425
+ return (
426
+ // eslint-disable-next-line consistent-return
427
+ ((i = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: d, data: u }) => {
428
+ var Y;
429
+ if (!u.endDate) {
430
+ if (u.isRelativeToNow) {
431
+ const S = (Y = k.value) == null ? void 0 : Y[d];
432
+ return S ? he(S.startDate, r.startDate) && he(S.endDate, r.endDate) : (
433
+ // If not stored calculated dates, fall back to comparing the quick select item's value
434
+ // with the internal range's stored range identifier.
435
+ d === r.range
436
+ );
437
+ }
438
+ return he(u.startDate, r.startDate) && Wt(r.endDate) && (!e.allowTimeInput || Ye(r.endDate, q(r.endDate))) && (e.granularities ? u.granularity === r.granularity : !0);
439
+ }
440
+ if (e.allowTimeInput)
441
+ return Ye(u.startDate, r.startDate) && Ye(u.endDate, r.endDate) && (e.granularities ? u.granularity === r.granularity : !0);
442
+ if (u.endDate)
443
+ return w(u.startDate, r.startDate) && w(u.endDate, r.endDate) && (e.granularities ? u.granularity === r.granularity : !0);
444
+ })) == null ? void 0 : i.value) ?? l
445
+ );
446
+ }), ye = m(() => ({
447
+ "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
448
+ })), Z = m(() => [
449
+ { label: y("customRange"), value: l },
450
+ ...e.quickSelectRanges ? e.quickSelectRanges : []
451
+ ]), j = m(
452
+ () => {
453
+ var n;
454
+ return ((n = e.granularities) == null ? void 0 : n.find(({ type: i }) => i === r.granularity)) || null;
455
+ }
456
+ ), se = m(
457
+ () => {
458
+ var n;
459
+ return ((n = e.granularities) == null ? void 0 : n.map(({ type: i, disabled: d }) => ({
460
+ label: y(i),
461
+ value: i,
462
+ disabled: d
463
+ }))) ?? [];
464
+ }
465
+ ), { getGranularCalendarLimits: oe } = Kt(e), h = m(
466
+ () => e.granularities ? oe(j.value) : { min: e.min ? A(e.min) : null, max: e.max ? q(e.max) : null }
467
+ ), {
468
+ adjustDateForQuarterly: ee,
469
+ adjustDateForMonthly: J,
470
+ adjustDateForWeekly: g,
471
+ adjustStartDateInputForWeekly: le,
472
+ adjustEndDateInputForWeekly: ie,
473
+ adjustStartDateInputForMonthly: $,
474
+ adjustEndDateInputForMonthly: de,
475
+ adjustStartDateInputForQuarterly: H,
476
+ adjustEndDateInputForQuarterly: V
477
+ } = Ot(e.firstDayOfWeek), { savedRanges: b, saveRange: L, resetSavedRanges: te } = Xt(), I = (n) => n ? Q(n) : "", W = B(!1), K = B(!1), o = ve({
478
+ startDate: e.dateFormData.startDate,
479
+ endDate: e.dateFormData.endDate,
480
+ startTime: e.dateFormData.startTime,
481
+ endTime: e.dateFormData.endTime
482
+ }), ue = (n, i) => {
483
+ let d = new Date(n);
484
+ const [u, Y, S] = i.split(":");
485
+ return d = zt(d, parseInt(u, 10)), d = $t(d, parseInt(Y, 10)), d = Ht(d, parseInt(S, 10)), d;
486
+ }, ce = (n, i) => {
487
+ const d = () => {
488
+ if (i && x(i)) {
489
+ const u = ue(F(i), n);
490
+ if (e.min && u < Je(e.min, 0) || e.max && u > Je(e.max, 0))
491
+ return !1;
492
+ }
493
+ return !0;
494
+ };
495
+ return we(n) && d();
496
+ }, G = m(() => e.variant === "month"), De = (n) => n ? G.value ? Ct(n) : wt(n) : "", c = m(() => De(r.startDate)), z = m(() => De(r.endDate)), me = m(() => _.value ? G.value ? "month" : "date" : "text"), Xe = m(() => _.value ? c.value : o.startDate), Ze = m(() => _.value ? z.value : o.endDate), E = (n, i) => !i || !we(i) || e.variant === "month" ? n : ue(new Date(n), i), et = (n) => {
497
+ o.startTime = O(
498
+ e.min && e.allowTimeInput && w(e.min, n.startDate) ? e.min : A(n.startDate)
499
+ ), o.endTime = O(
500
+ e.max && e.allowTimeInput && w(e.max, n.endDate) ? e.max : q(n.endDate)
501
+ ), r.startDate = E(n.startDate, o.startTime), r.endDate = E(n.endDate, o.endTime), r.range = null, e.granularities && te(), a(v.INPUT, {
502
+ ...r,
503
+ range: T.value
504
+ });
505
+ }, x = (n) => {
506
+ if (!n)
507
+ return !1;
508
+ const i = (d) => e.min && A(d) < A(e.min) || e.max && A(d) > A(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(A(d)) : !0;
509
+ return R(n) && i(F(n));
510
+ };
511
+ ze(() => {
512
+ W.value = !!(e.dateFormData.startDate && !x(e.dateFormData.startDate)), K.value = !!(e.dateFormData.endDate && !x(e.dateFormData.endDate));
513
+ });
514
+ const tt = (n) => {
515
+ o.startDate = I(n), o.startTime || (o.startTime = O(n)), W.value = !1, a(v.START_DATE_SELECTED, n);
516
+ }, at = (n) => {
517
+ o.endDate = I(n), o.endTime || (o.endTime = O(q(n))), K.value = !1;
518
+ }, pe = (n) => {
519
+ const i = e.value[n];
520
+ if (i)
521
+ return i;
522
+ if (e.dateFormData[n] && x(e.dateFormData[n]))
523
+ return F(e.dateFormData[n]);
524
+ }, Me = (n) => {
525
+ var i;
526
+ if (x(n)) {
527
+ let d = n;
528
+ switch (W.value = !1, (i = j.value) == null ? void 0 : i.type) {
529
+ case "weekly":
530
+ d = le(
531
+ n,
532
+ I,
533
+ h.value.min,
534
+ h.value.max
535
+ ), o.startDate = d;
536
+ break;
537
+ case "monthly":
538
+ d = $(
539
+ n,
540
+ I,
541
+ h.value.min,
542
+ h.value.max
543
+ ), o.startDate = d;
544
+ break;
545
+ case "quarterly":
546
+ d = H(
547
+ n,
548
+ I,
549
+ h.value.min,
550
+ h.value.max
551
+ ), o.startDate = d;
552
+ break;
553
+ }
554
+ const u = A(F(d));
555
+ r.startDate = E(u, o.startTime), r.endDate = E(
556
+ A(F(o.endDate)),
557
+ o.endTime
558
+ ), x(o.endDate) && (r.endDate = E(
559
+ A(F(o.endDate)),
560
+ o.endTime
561
+ ));
562
+ const Y = pe("endDate");
563
+ r.range = null, a(v.FORM_DATE, {
564
+ startDate: u,
565
+ endDate: Y
566
+ }), a(v.INPUT, {
567
+ ...r,
568
+ range: T.value
569
+ });
570
+ } else
571
+ W.value = !0, a(v.ERROR, { ...o });
572
+ }, Ie = Be(Me, t), nt = (n) => {
573
+ if (o.startDate = _.value && G.value ? n : f(n), _.value)
574
+ if (G.value && n) {
575
+ const i = Pe(n);
576
+ r.startDate = E(i, o.startTime), r.range = null, a(v.INPUT, {
577
+ ...r,
578
+ range: T.value
579
+ });
580
+ } else
581
+ Me(o.startDate);
582
+ else
583
+ Ie(o.startDate);
584
+ }, ge = (n) => {
585
+ var i;
586
+ if (x(n)) {
587
+ let d = n;
588
+ switch (K.value = !1, (i = j.value) == null ? void 0 : i.type) {
589
+ case "weekly":
590
+ d = ie(
591
+ n,
592
+ I,
593
+ h.value.min,
594
+ h.value.max
595
+ ), o.endDate = d;
596
+ break;
597
+ case "monthly":
598
+ d = de(
599
+ n,
600
+ I,
601
+ h.value.min,
602
+ h.value.max
603
+ ), o.endDate = d;
604
+ break;
605
+ case "quarterly":
606
+ d = V(
607
+ n,
608
+ I,
609
+ h.value.min,
610
+ h.value.max
611
+ ), o.endDate = d;
612
+ break;
613
+ }
614
+ const u = A(F(d));
615
+ r.endDate = E(u, o.endTime), x(o.startDate) && (r.startDate = E(
616
+ A(F(o.startDate)),
617
+ o.startTime
618
+ ));
619
+ const Y = pe("startDate");
620
+ r.range = null, a(v.FORM_DATE, {
621
+ startDate: Y,
622
+ endDate: u
623
+ }), a(v.INPUT, {
624
+ ...r,
625
+ range: T.value
626
+ });
627
+ } else
628
+ K.value = !0, a(v.ERROR, { ...o });
629
+ }, _e = Be(ge, t), rt = (n) => {
630
+ if (o.endDate = _.value && G.value ? n : f(n), _.value)
631
+ if (G.value && n) {
632
+ const i = Pe(n);
633
+ r.endDate = E(i, o.endTime), r.range = null, a(v.INPUT, {
634
+ ...r,
635
+ range: T.value
636
+ });
637
+ } else
638
+ ge(o.endDate);
639
+ else
640
+ _e(o.endDate);
641
+ }, st = (n) => {
642
+ X(n);
643
+ }, ot = () => {
644
+ a(v.ERROR, { ...o });
645
+ }, lt = () => {
646
+ const n = o.startTime;
647
+ if (!ce(n, o.startDate)) {
648
+ a(v.ERROR, { ...o });
649
+ return;
650
+ }
651
+ r.startDate = E(r.startDate, n);
652
+ const i = pe("endDate");
653
+ a(v.FORM_DATE, {
654
+ startDate: r.startDate,
655
+ endDate: i,
656
+ startTime: n,
657
+ endTime: o.endTime ?? e.dateFormData.endTime
658
+ }), a(v.INPUT, {
659
+ ...r,
660
+ range: T.value
661
+ });
662
+ }, it = () => {
663
+ a(v.ERROR, { ...o });
664
+ }, dt = () => {
665
+ const n = o.endTime;
666
+ if (!ce(n, o.endDate)) {
667
+ a(v.ERROR, { ...o });
668
+ return;
669
+ }
670
+ r.endDate = E(r.endDate, n), a(v.FORM_DATE, {
671
+ startDate: r.startDate,
672
+ endDate: r.endDate,
673
+ startTime: o.startTime ?? e.dateFormData.startTime,
674
+ endTime: n
675
+ }), a(v.INPUT, {
676
+ ...r,
677
+ range: T.value
678
+ });
679
+ }, ut = (n) => {
680
+ o.startTime = n;
681
+ }, ct = (n) => {
682
+ o.endTime = n;
683
+ }, ae = (n, i, d, u) => {
684
+ r.startDate = n, r.endDate = i, d && (r.granularity = d), u && (r.range = u);
685
+ }, Dt = (n) => {
686
+ var d;
687
+ const i = (d = e.quickSelectRanges) == null ? void 0 : d.find(({ value: u }) => u === n);
688
+ if (i) {
689
+ te();
690
+ const u = i.data, Y = u.endDate || (u.isRelativeToNow ? new Date(Date.now()) : q(new Date(Date.now()))), S = u.isRelativeToNow && u.timeDifference ? new Date(Y.getTime() - u.timeDifference) : u.startDate;
691
+ o.endDate = I(Y), o.startDate = I(S), ae(S, Y, null, n), e.granularities && (r.granularity = u.granularity || C.value), o.startTime = O(S), o.endTime = O(Y), r.startDate = S, r.endDate = Y, u.isRelativeToNow && (k.value = {
692
+ ...k.value,
693
+ [n]: {
694
+ startDate: S,
695
+ endDate: Y
696
+ }
697
+ }), a(v.CUSTOM_RANGE, {
698
+ ...i.data,
699
+ startDate: S,
700
+ endDate: Y,
701
+ range: i.value
702
+ });
703
+ }
704
+ }, ke = {
705
+ weekly: g,
706
+ monthly: J,
707
+ quarterly: ee
708
+ }, mt = (n) => {
709
+ const i = r.granularity;
710
+ if (r.granularity = n, i && L(i, structuredClone(Ae(r))), r.startDate && r.endDate) {
711
+ switch (n) {
712
+ case "quarterly":
713
+ case "monthly":
714
+ case "weekly": {
715
+ if (b[n]) {
716
+ ae(b[n].startDate, b[n].endDate, n);
717
+ break;
718
+ }
719
+ const { startDate: d, endDate: u } = ke[n](
720
+ r.startDate,
721
+ r.endDate,
722
+ h.value.min,
723
+ h.value.max
724
+ );
725
+ ae(d, u, n);
726
+ break;
727
+ }
728
+ case "daily":
729
+ b.daily && ae(b.daily.startDate, b.daily.endDate, n);
730
+ break;
731
+ }
732
+ o.startDate = I(r.startDate), o.endDate = I(r.endDate), a(v.INPUT, {
733
+ ...r,
734
+ range: T.value
735
+ });
736
+ }
737
+ }, pt = m(() => ({
738
+ "b-date-range-picker-calendar__form-container--no-calendars": M.value
739
+ }));
740
+ return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: t, RANGE_SELECTOR_CUSTOM_RANGE_KEY: l, props: e, emit: a, slots: D, hasSlot: p, t: y, isTouchDevice: _, dateFormat: U, isFormatValid: R, parseDate: F, onKeyDown: X, autoFormat: f, formatDateUtil: Q, calculatedIsRelativeToNowQuickSelectRanges: k, defaultGranularity: C, hasNoCalendars: M, internalRangeDate: r, selectedRangeSelectorValue: T, formInputWrapperConditionalClasses: ye, quickSelectRangeDefaultItems: Z, selectedGranularity: j, granularityItems: se, getGranularCalendarLimits: oe, computedMinMax: h, adjustDateForQuarterly: ee, adjustDateForMonthly: J, adjustDateForWeekly: g, adjustStartDateInputForWeekly: le, adjustEndDateInputForWeekly: ie, adjustStartDateInputForMonthly: $, adjustEndDateInputForMonthly: de, adjustStartDateInputForQuarterly: H, adjustEndDateInputForQuarterly: V, savedRanges: b, saveRange: L, resetSavedRanges: te, formatDate: I, startDateError: W, endDateError: K, dateTextInput: o, setTimeInDateObject: ue, isValidTime: ce, isMonthVariant: G, formatNativeDate: De, nativeStartDate: c, nativeEndDate: z, dateInputType: me, startDateValue: Xe, endDateValue: Ze, setTimeInDateRef: E, onDateInput: et, isValidDate: x, onStartDateSelected: tt, onEndDateSelected: at, getDate: pe, validateStartDate: Me, validateStartDateDebounced: Ie, onStartDateInput: nt, validateEndDate: ge, validateEndDateDebounced: _e, onEndDateInput: rt, onDateInputKeyDown: st, onStartTimeError: ot, onStartTimeValid: lt, onEndTimeError: it, onEndTimeValid: dt, onStartTimeInput: ut, onEndTimeInput: ct, setInternalRange: ae, onRangeSelectorInput: Dt, adjustDate: ke, onGranularityInput: mt, computedFormContainerClasses: pt, Calendar: N, BentoTypography: $e, BentoInputField: ht, BentoInputTime: Yt, BentoDropdown: At, BentoSegmentedControl: bt };
741
+ }
742
+ });
743
+ var aa = function() {
744
+ var a = this, e = a._self._c, t = a._self._setupProxy;
745
+ return e("div", { staticClass: "b-date-range-picker-calendar" }, [e("div", { staticClass: "b-date-range-picker-calendar__form-container", class: t.computedFormContainerClasses, attrs: { "data-testid": "date-range-picker-calendar-form-container" } }, [e("div", { staticClass: "b-date-range-picker-calendar__form" }, [t.hasSlot("title") ? [a._t("title")] : a._e(), a.quickSelectRanges ? e(t.BentoDropdown, { attrs: { "aria-label": t.t("customRange"), items: t.quickSelectRangeDefaultItems, "model-value": t.selectedRangeSelectorValue }, on: { "update:model-value": t.onRangeSelectorInput } }) : a._e(), a.granularities ? e(t.BentoSegmentedControl, { attrs: { items: t.granularityItems, "model-value": t.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": t.onGranularityInput } }) : a._e(), e("div", [e(t.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [a._v(" From ")]), e("div", { class: t.formInputWrapperConditionalClasses }, [e(t.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": t.t("dateFrom"), "model-value": t.startDateValue, error: t.startDateError, type: t.dateInputType }, on: { "update:model-value": t.onStartDateInput, keydown: t.onDateInputKeyDown }, scopedSlots: a._u([t.isTouchDevice ? null : { key: "description", fn: function() {
746
+ return [a._v(a._s(t.t(t.dateFormat)))];
747
+ }, proxy: !0 }], null, !0) }), a.allowTimeInput ? e(t.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": t.t("timeFrom"), "model-value": t.dateTextInput.startTime }, on: { "update:model-value": t.onStartTimeInput, "input:error": t.onStartTimeError, "input:valid": t.onStartTimeValid } }) : a._e()], 1)], 1), e("div", [e(t.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [a._v(" To ")]), e("div", { class: t.formInputWrapperConditionalClasses }, [e(t.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": t.t("dateTo"), "model-value": t.endDateValue, error: t.endDateError, type: t.dateInputType }, on: { "update:model-value": t.onEndDateInput, keydown: t.onDateInputKeyDown }, scopedSlots: a._u([t.isTouchDevice ? null : { key: "description", fn: function() {
748
+ return [a._v(a._s(t.t(t.dateFormat)))];
749
+ }, proxy: !0 }], null, !0) }), a.allowTimeInput ? e(t.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": t.t("timeTo"), "model-value": t.dateTextInput.endTime }, on: { "update:model-value": t.onEndTimeInput, "input:error": t.onEndTimeError, "input:valid": t.onEndTimeValid } }) : a._e()], 1)], 1)], 2), t.hasSlot("actions") ? e("div", [a._t("actions")], 2) : a._e()]), !t.hasNoCalendars && !t.isTouchDevice ? e("div", { staticClass: "b-date-range-picker-calendar__calendars-container", attrs: { "data-testid": "date-range-picker-calendar-calendar-container" } }, [e(t.Calendar, { attrs: { value: t.internalRangeDate, "first-day-of-week": a.firstDayOfWeek, "is-date-disabled": a.isDateDisabled, "max-range": a.maxRange, min: t.computedMinMax.min, max: t.computedMinMax.max, "number-of-months": a.numberOfMonths, "show-end-date-on-open": a.showEndDateOnOpen, granularity: t.selectedGranularity, variant: a.variant, "is-range": "" }, on: { input: t.onDateInput, "start-date-selected": t.onStartDateSelected, "end-date-selected": t.onEndDateSelected } })], 1) : a._e()]);
750
+ }, na = [], ra = /* @__PURE__ */ Ve(
751
+ ta,
752
+ aa,
753
+ na,
754
+ !1,
755
+ null,
756
+ "e684b7ff"
757
+ );
758
+ const sa = ra.exports, oa = {
759
+ "de-DE": {
760
+ apply: "Anwenden",
761
+ cancel: "Abbrechen",
762
+ dateRangePicker: "Datumsbereichauswahl {name}",
763
+ provideDateInAFormat: "Geben Sie das Datum im Format YYYY-MM-DD an",
764
+ quarter: "Q{quarter} {year}",
765
+ selectDate: "Wählen Sie ein Datum",
766
+ selectDateRange: "Wählen Sie einen Datumsbereich aus",
767
+ selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar"
768
+ },
769
+ "en-GB": {
770
+ apply: "Apply",
771
+ cancel: "Cancel",
772
+ dateRangePicker: "Date range picker {name}",
773
+ provideDateInAFormat: "Enter date in YYYY-MM-DD format",
774
+ quarter: "Q{quarter} {year}",
775
+ selectDate: "Select a date",
776
+ selectDateRange: "Select a date range",
777
+ selectedDateIsNotAvailable: "Selected date is not available"
778
+ },
779
+ "en-US": {
780
+ apply: "Apply",
781
+ cancel: "Cancel",
782
+ dateRangePicker: "Date range picker {name}",
783
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
784
+ quarter: "Q{quarter} {year}",
785
+ selectDate: "Select a date",
786
+ selectDateRange: "Select a date range",
787
+ selectedDateIsNotAvailable: "Selected date is not available"
788
+ },
789
+ "es-ES": {
790
+ apply: "Aplicar",
791
+ cancel: "Cancelar",
792
+ dateRangePicker: "Selector de intervalos de fechas {name}",
793
+ provideDateInAFormat: "Proporciona la fecha en formato AAAAA-MM-DD",
794
+ quarter: "T{quarter} {year}",
795
+ selectDate: "Selecciona una fecha",
796
+ selectDateRange: "Selecciona un rango de fechas",
797
+ selectedDateIsNotAvailable: "La fecha seleccionada no está disponible"
798
+ },
799
+ "es-MX": {
800
+ apply: "Aplicar",
801
+ cancel: "Cancelar",
802
+ dateRangePicker: "Selector de intervalos de fechas {name}",
803
+ provideDateInAFormat: "Proporciona la fecha en formato AAAA-MM-DD",
804
+ quarter: "T{quarter} {year}",
805
+ selectDate: "Selecciona una fecha",
806
+ selectDateRange: "Selecciona un rango de fechas",
807
+ selectedDateIsNotAvailable: "La fecha seleccionada no está disponible"
808
+ },
809
+ "fr-FR": {
810
+ apply: "Appliquer",
811
+ cancel: "Annuler",
812
+ dateRangePicker: "Sélecteur de plages de dates {name}",
813
+ provideDateInAFormat: "Fournissez la date au format AAAA-MM-JJ",
814
+ quarter: "T{quarter} {year}",
815
+ selectDate: "Sélectionnez une date",
816
+ selectDateRange: "Sélectionnez une plage de dates",
817
+ selectedDateIsNotAvailable: "La date sélectionnée n’est pas disponible"
818
+ },
819
+ "it-IT": {
820
+ apply: "Applica",
821
+ cancel: "Annulla",
822
+ dateRangePicker: "Selettore intervallo di date {name}",
823
+ provideDateInAFormat: "Inserisci la data nel formato AAAA-MM-GG",
824
+ quarter: "Q{quarter} {year}",
825
+ selectDate: "Seleziona una data",
826
+ selectDateRange: "Seleziona un intervallo di date",
827
+ selectedDateIsNotAvailable: "La data selezionata non è disponibile"
828
+ },
829
+ "ja-JP": {
830
+ apply: "適用",
831
+ cancel: "キャンセル",
832
+ dateRangePicker: "日付範囲ピッカー {name}",
833
+ provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください",
834
+ quarter: "{year}年第{quarter}四半期",
835
+ selectDate: "日付を選択",
836
+ selectDateRange: "日付範囲を選択",
837
+ selectedDateIsNotAvailable: "選択した日付は利用できません"
838
+ },
839
+ "pt-BR": {
840
+ apply: "Aplicar",
841
+ cancel: "Cancelar",
842
+ dateRangePicker: "Seletor de intervalo de datas {name}",
843
+ provideDateInAFormat: "Inclua a data no formato AAAA-MM-DD",
844
+ quarter: "{quarter}º trimestre de {year}",
845
+ selectDate: "Selecione uma data",
846
+ selectDateRange: "Selecione um intervalo de datas",
847
+ selectedDateIsNotAvailable: "A data selecionada não está disponível"
848
+ },
849
+ "zh-CN": {
850
+ apply: "应用",
851
+ cancel: "取消",
852
+ dateRangePicker: "日期范围选择器 {name}",
853
+ provideDateInAFormat: "提供 YYYY-MM-DD 格式的日期",
854
+ quarter: "{year} {quarter} 季度",
855
+ selectDate: "选择日期",
856
+ selectDateRange: "选择日期范围",
857
+ selectedDateIsNotAvailable: "所选日期不可用"
858
+ }
859
+ }, la = ({
860
+ datePickerValue: s,
861
+ isDateIncorrect: a,
862
+ quickSelectRanges: e,
863
+ isMonthVariant: t,
864
+ withTimeInput: l,
865
+ placeholder: D
866
+ }) => {
867
+ const { locale: p, t: y } = Re(), { dateToInputDateString: _ } = be(), U = (f) => !!f && !isNaN(f.getTime()), R = ve({
868
+ startDate: null,
869
+ endDate: null,
870
+ startTime: null,
871
+ endTime: null
872
+ });
873
+ return fe(
874
+ s,
875
+ (f) => {
876
+ R.startDate = _(f == null ? void 0 : f.startDate), R.endDate = _(f == null ? void 0 : f.endDate), R.startTime = O(f == null ? void 0 : f.startDate), R.endTime = O(f == null ? void 0 : f.endDate);
877
+ },
878
+ { immediate: !0 }
879
+ ), {
880
+ // Values
881
+ dateDisplayValue: m(() => {
882
+ var Q;
883
+ if (a.value)
884
+ return `${R.startDate || ""} - ${R.endDate || ""}`;
885
+ if (!s.value || !s.value.startDate && !s.value.endDate)
886
+ return (D == null ? void 0 : D.value) || y("selectDateRange");
887
+ if ((Q = e.value) != null && Q.length) {
888
+ const k = e.value.find(({ value: C }) => {
889
+ var M;
890
+ return C === ((M = s.value) == null ? void 0 : M.range);
891
+ });
892
+ if (k)
893
+ return k.label;
894
+ }
895
+ if (s.value.granularity === "quarterly") {
896
+ const { startDate: k, endDate: C } = s.value, M = y("quarter", { quarter: Ue(k), year: Qe(k) });
897
+ if (Jt(k, C))
898
+ return M;
899
+ const r = y("quarter", { quarter: Ue(C), year: Qe(C) });
900
+ return `${M} - ${r}`;
901
+ }
902
+ if (!U(s.value.startDate) || !U(s.value.endDate))
903
+ return `${R.startDate || ""} - ${R.endDate || ""}`;
904
+ let f = t != null && t.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
905
+ return l.value && (f = {
906
+ ...f,
907
+ hour: "numeric",
908
+ minute: "numeric",
909
+ second: "numeric",
910
+ hour12: !1
911
+ }), Bt(p.value, f).formatRange(
912
+ s.value.startDate,
913
+ s.value.endDate
914
+ );
915
+ }),
916
+ textInputDisplayValue: R,
917
+ // Methods
918
+ formatTextInputDisplayValue: () => ""
919
+ };
920
+ }, ia = {
921
+ i18n: { messages: oa },
922
+ name: "bento-date-range-picker",
923
+ model: { prop: "modelValue" }
924
+ }, da = /* @__PURE__ */ We({
925
+ ...ia,
926
+ props: {
927
+ description: { default: void 0 },
928
+ disabled: { type: Boolean, default: !1 },
929
+ errorMessage: { default: null },
930
+ label: { default: void 0 },
931
+ optional: { type: Boolean, default: !1 },
932
+ placeholder: { default: null },
933
+ readonly: { type: Boolean, default: !1 },
934
+ required: { type: Boolean, default: !1 },
935
+ tooltipText: { default: null },
936
+ allowTimeInput: { type: Boolean },
937
+ firstDayOfWeek: { default: void 0 },
938
+ granularities: null,
939
+ isDateDisabled: { default: void 0 },
940
+ showEndDateOnOpen: { type: Boolean, default: !1 },
941
+ quickSelectRanges: { default: void 0 },
942
+ maxRange: { default: null },
943
+ min: { default: null },
944
+ max: { default: null },
945
+ numberOfMonths: { default: void 0 },
946
+ modelValue: { default: null },
947
+ value: { default: null },
948
+ variant: { default: void 0 },
949
+ hasActions: { type: Boolean, default: !1 }
950
+ },
951
+ emits: ["update:model-value", "input"],
952
+ setup(s, { emit: a }) {
953
+ const e = s, t = vt(), { t: l } = Re(), { dateToInputDateString: D } = be(), p = ne("bento-date-range-picker-container"), y = ne("bento-date-range-picker-label"), _ = ne("bento-date-range-picker-description"), U = ne("bento-date-range-picker-error"), R = ne("bento-date-range-picker-date-error"), F = m(() => e.label || l("dateRangePicker", { name: p })), { resolvedFirstDayOfWeek: X } = _t(Te(e, "firstDayOfWeek")), f = yt({
954
+ none: 0,
955
+ one: 710,
956
+ // width of date range picker with one panes
957
+ two: 1030,
958
+ // width of date range picker with two panes
959
+ three: 1290
960
+ // width of date range picker with three panes
961
+ }), Q = m(() => {
962
+ const c = f.active().value, z = {
963
+ none: 0,
964
+ one: 1,
965
+ two: 2
966
+ };
967
+ if (c in z) {
968
+ const me = z[c];
969
+ return e.numberOfMonths === void 0 ? me : Math.min(e.numberOfMonths, me);
970
+ }
971
+ return e.numberOfMonths;
972
+ }), k = m(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((c) => {
973
+ const z = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
974
+ return {
975
+ ...c,
976
+ data: {
977
+ ...c.data,
978
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
979
+ timeDifference: z
980
+ }
981
+ };
982
+ })), C = m(() => e.label ? y : (t == null ? void 0 : t["aria-labelledby"]) ?? null), M = B(!1), r = B(null), T = B(!1), { isReadOnly: ye } = Pt(Te(e, "readonly")), { emitValue: Z } = Lt(a);
983
+ fe(
984
+ () => e.disabled,
985
+ () => {
986
+ e.disabled && T.value && (T.value = !1);
987
+ }
988
+ );
989
+ const j = m(() => e.modelValue || e.value), se = m(() => e.hasActions ? !L.value && M.value : M.value), oe = m(() => ({
990
+ "b-date-range-picker__description--error": !!e.errorMessage || se.value
991
+ })), h = m(() => e.variant === "month"), ee = m(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: J, textInputDisplayValue: g, formatTextInputDisplayValue: le } = la({
992
+ datePickerValue: j,
993
+ isDateIncorrect: M,
994
+ quickSelectRanges: k,
995
+ isMonthVariant: h,
996
+ withTimeInput: ee,
997
+ placeholder: Te(e, "placeholder")
998
+ }), ie = m(
999
+ () => `${e.description ? _ : ""} ${e.errorMessage ? U : ""} ${M.value ? R : ""}`.trim() || null
1000
+ ), $ = () => {
1001
+ T.value = !1;
1002
+ }, de = () => {
1003
+ T.value = !0;
1004
+ }, H = B(J.value), V = B(
1005
+ // textInputDisplayValue is a reactive object
1006
+ structuredClone(Ae(g))
1007
+ ), b = B(e.modelValue ?? e.value), L = B(!0), te = m(
1008
+ () => e.hasActions ? V.value : g
1009
+ ), I = m(
1010
+ () => e.hasActions ? H.value : J.value
1011
+ );
1012
+ ze(() => {
1013
+ if (e.hasActions || Ce(
1014
+ 'BentoDateRangePicker "hasActions" property',
1015
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
1016
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
1017
+ "2.0.0"
1018
+ ), e.value && Ce(
1019
+ 'BentoDateRangePicker "value" property',
1020
+ 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
1021
+ "2.0.0"
1022
+ ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: c }) => c === "quarterly"))
1023
+ throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
1024
+ }), fe([() => e.value, () => e.modelValue], () => {
1025
+ H.value = J.value, V.value = structuredClone(Ae(g));
1026
+ });
1027
+ const W = m(() => [
1028
+ {
1029
+ title: l("apply"),
1030
+ event: () => {
1031
+ Z(b.value), $(), L.value = !0;
1032
+ },
1033
+ disabled: L.value
1034
+ },
1035
+ {
1036
+ title: l("cancel"),
1037
+ event: $
1038
+ }
1039
+ ]);
1040
+ return fe(b, (c) => {
1041
+ if (e.hasActions) {
1042
+ L.value = M.value;
1043
+ return;
1044
+ }
1045
+ Z(c);
1046
+ }), { __sfc: !0, emit: a, props: e, attrs: t, t: l, dateToInputDateString: D, datePickerContainerId: p, labelId: y, descriptionId: _, errorId: U, dateErrorId: R, popoverAriaLabel: F, resolvedFirstDayOfWeek: X, breakpoints: f, computedNumberOfMonths: Q, adjustedQuickSelectRanges: k, dropdownInputAriaLabelledBy: C, isDateIncorrect: M, inputContainerRef: r, isDateRangePickerOpen: T, isReadOnly: ye, emitValue: Z, internalModelValue: j, shouldDisplayError: se, descriptionConditionalClasses: oe, isMonthVariant: h, withTimeInput: ee, dateDisplayValue: J, textInputDisplayValue: g, formatTextInputDisplayValue: le, ariaDescribedBy: ie, closeDateRangePicker: $, openDateRangePicker: de, localDateDisplayValue: H, localTextInputDisplayValue: V, selectedDate: b, isApplyDisabled: L, displayedTextInputValue: te, displayedDateValue: I, rangePickerButtonActions: W, onDateRangePickerInput: (c) => {
1047
+ M.value = !1, g.startDate = D(c.startDate), g.endDate = D(c.endDate), g.startTime = O(c.startDate), g.endTime = O(c.endDate), b.value = c;
1048
+ }, clearDateRangePickerValue: async () => {
1049
+ M.value && (M.value = !1), b.value = null;
1050
+ }, onEnterPressedOverInput: () => {
1051
+ if (!T.value) {
1052
+ T.value = !0;
1053
+ return;
1054
+ }
1055
+ M.value || (T.value = !1);
1056
+ }, onDateRangePickerFormDateInputUpdate: (c) => {
1057
+ M.value = !1, c.startTime && (g.startTime = c.startTime), c.endTime && (g.endTime = c.endTime);
1058
+ }, onDateRangePickerError: (c) => {
1059
+ M.value = !0, g.startDate = c.startDate, g.endDate = c.endDate, b.value = { startDate: null, endDate: null };
1060
+ }, onRangeSelectorInput: (c) => {
1061
+ c && (g.startDate = D(c.startDate), g.endDate = D(c.endDate), g.startTime = O(c.startDate), g.endTime = O(c.endDate), b.value = c);
1062
+ }, BentoButtonActions: Tt, BentoButtonActionsLayout: jt, BentoDivider: Mt, BentoPopover: gt, BentoTypography: $e, DateRangePickerCalendar: sa, DropdownInputDefault: Rt, ErrorMessage: Qt, FieldLabel: Ut, vBentoClickOutsideDirective: Gt };
1063
+ }
1064
+ });
1065
+ var ua = function() {
1066
+ var a = this, e = a._self._c, t = a._self._setupProxy;
1067
+ return e("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [a.label ? e(t.FieldLabel, { attrs: { id: t.labelId, label: a.label, "tooltip-text": a.tooltipText, optional: a.optional, required: a.required } }) : a._e(), e("div", { on: { keydown: function(l) {
1068
+ return !l.type.indexOf("key") && a._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : t.onEnterPressedOverInput.apply(null, arguments);
1069
+ } } }, [e(t.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: t.datePickerContainerId, ariaExpanded: t.isDateRangePickerOpen, "aria-labelledby": t.dropdownInputAriaLabelledBy, "aria-describedby": t.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, "is-invalid": !!a.errorMessage || t.shouldDisplayError, open: t.isDateRangePickerOpen, "display-value": t.displayedDateValue, readonly: t.isReadOnly }, on: { open: t.openDateRangePicker, clear: t.clearDateRangePickerValue, close: t.closeDateRangePicker } })], 1), t.shouldDisplayError ? e(t.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: t.dateErrorId, "error-message": t.t("provideDateInAFormat") } }) : a._e(), a.errorMessage ? e(t.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: t.errorId, "error-message": a.errorMessage } }) : a._e(), a.description ? e(t.BentoTypography, { staticClass: "b-date-range-picker__description", class: t.descriptionConditionalClasses, attrs: { id: t.descriptionId, el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), t.inputContainerRef ? e(t.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: t.datePickerContainerId, open: t.isDateRangePickerOpen, "target-element": t.inputContainerRef, "aria-label": t.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "", "trap-all": "", "overflow-visible": "" }, nativeOn: { keydown: function(l) {
1070
+ return !l.type.indexOf("key") && a._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : t.closeDateRangePicker.apply(null, arguments);
1071
+ } } }, [e(t.DateRangePickerCalendar, { attrs: { "allow-time-input": t.withTimeInput, "quick-select-ranges": t.adjustedQuickSelectRanges, value: t.internalModelValue, "first-day-of-week": t.resolvedFirstDayOfWeek, granularities: a.granularities, "is-date-disabled": a.isDateDisabled, "max-range": a.maxRange, min: a.min, max: a.max, "number-of-months": t.computedNumberOfMonths, "show-end-date-on-open": a.showEndDateOnOpen, "date-form-data": t.displayedTextInputValue, variant: a.variant }, on: { "custom-range": t.onRangeSelectorInput, input: t.onDateRangePickerInput, error: t.onDateRangePickerError, "form-date": t.onDateRangePickerFormDateInputUpdate }, scopedSlots: a._u([a.hasActions ? { key: "actions", fn: function() {
1072
+ return [e(t.BentoDivider), e("div", { staticClass: "b-date-range-picker__footer" }, [e(t.BentoButtonActions, { attrs: { actions: t.rangePickerButtonActions, layout: t.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
1073
+ }, proxy: !0 } : null], null, !0) })], 1) : a._e()], 1);
1074
+ }, ca = [], Da = /* @__PURE__ */ Ve(
1075
+ da,
1076
+ ua,
1077
+ ca,
1078
+ !1,
1079
+ null,
1080
+ "fbf1b83e"
1081
+ );
1082
+ const Ga = Da.exports;
1083
+ export {
1084
+ Ga as B,
1085
+ sa as D,
1086
+ Wt as a,
1087
+ he as i
1088
+ };
1089
+ //# sourceMappingURL=date-range-picker.LCWVAa5R.js.map