@adyen/bento-vue2 1.102.0 → 1.103.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 (399) hide show
  1. package/dist/@types/index.d.ts +20 -3
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/anchor-scroller.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/ai-button.css +1 -1
  10. package/dist/assets/anchor-scroller.css +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-input.css +1 -1
  16. package/dist/assets/data-grid.css +1 -1
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/empty-state.css +1 -1
  20. package/dist/assets/file-uploader.css +1 -1
  21. package/dist/assets/filter-bar.css +1 -1
  22. package/dist/assets/index.css +1 -1
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/modal-fullscreen.css +1 -1
  26. package/dist/assets/navigation-menu-group.css +1 -1
  27. package/dist/assets/pagination.css +1 -1
  28. package/dist/assets/radio-input.css +1 -1
  29. package/dist/assets/secondary-nav.css +1 -1
  30. package/dist/assets/selection-card-group.css +1 -1
  31. package/dist/assets/sidepanel.css +1 -1
  32. package/dist/assets/table-of-contents.css +1 -1
  33. package/dist/assets/typography.css +1 -1
  34. package/dist/avatar.js +1 -1
  35. package/dist/button.js +3 -3
  36. package/dist/card.js +1 -1
  37. package/dist/checkbox.js +2 -2
  38. package/dist/chip.js +1 -1
  39. package/dist/chunks/{accordion-item.C0va5Mbv.js → accordion-item.CrVVFIHa.js} +16 -49
  40. package/dist/chunks/{accordion-item.C0va5Mbv.js.map → accordion-item.CrVVFIHa.js.map} +1 -1
  41. package/dist/chunks/{action-bar.-kzjjAuX.js → action-bar.BC1fWyHX.js} +18 -150
  42. package/dist/chunks/{action-bar.-kzjjAuX.js.map → action-bar.BC1fWyHX.js.map} +1 -1
  43. package/dist/chunks/{ai-button.ChLXOu7p.js → ai-button.CP6Bu7PB.js} +3 -3
  44. package/dist/chunks/{ai-button.ChLXOu7p.js.map → ai-button.CP6Bu7PB.js.map} +1 -1
  45. package/dist/chunks/{ai-tag.DhBjifex.js → ai-tag.wYWc7yOx.js} +16 -49
  46. package/dist/chunks/{ai-tag.DhBjifex.js.map → ai-tag.wYWc7yOx.js.map} +1 -1
  47. package/dist/chunks/{alert.CDP-LTh5.js → alert.Dj57zB88.js} +15 -81
  48. package/dist/chunks/{alert.CDP-LTh5.js.map → alert.Dj57zB88.js.map} +1 -1
  49. package/dist/chunks/anchor-scroller.Bhgy748g.js +120 -0
  50. package/dist/chunks/anchor-scroller.Bhgy748g.js.map +1 -0
  51. package/dist/chunks/{avatar.rwWPYJnt.js → avatar.D__jLgjI.js} +2 -2
  52. package/dist/chunks/{avatar.rwWPYJnt.js.map → avatar.D__jLgjI.js.map} +1 -1
  53. package/dist/chunks/{base-button.BPRPrO0p.js → base-button.D5C9VIYP.js} +20 -23
  54. package/dist/chunks/{base-button.BPRPrO0p.js.map → base-button.D5C9VIYP.js.map} +1 -1
  55. package/dist/chunks/{base-modal.BagJ8weI.js → base-modal.DlD_Lj4Y.js} +100 -141
  56. package/dist/chunks/{base-modal.BagJ8weI.js.map → base-modal.DlD_Lj4Y.js.map} +1 -1
  57. package/dist/chunks/button-actions-with-menu.CTgggEw2.js +77 -0
  58. package/dist/chunks/{button-actions-with-menu.DNYoFmV4.js.map → button-actions-with-menu.CTgggEw2.js.map} +1 -1
  59. package/dist/chunks/{button-actions.Dpbx0xf3.js → button-actions.CxX7lK7z.js} +362 -442
  60. package/dist/chunks/{button-actions.Dpbx0xf3.js.map → button-actions.CxX7lK7z.js.map} +1 -1
  61. package/dist/chunks/{button.CKS_V3p5.js → button.C4kKejsg.js} +34 -37
  62. package/dist/chunks/{button.CKS_V3p5.js.map → button.C4kKejsg.js.map} +1 -1
  63. package/dist/chunks/calendar.BoFWdxN7.js +1143 -0
  64. package/dist/chunks/{calendar.CvHJ3Geq.js.map → calendar.BoFWdxN7.js.map} +1 -1
  65. package/dist/chunks/{card.DqMECGcj.js → card.B70qRHOi.js} +34 -70
  66. package/dist/chunks/{card.DqMECGcj.js.map → card.B70qRHOi.js.map} +1 -1
  67. package/dist/chunks/{checkbox-group.YnXz1Hl2.js → checkbox-group.D1zzKsdi.js} +6 -6
  68. package/dist/chunks/{checkbox-group.YnXz1Hl2.js.map → checkbox-group.D1zzKsdi.js.map} +1 -1
  69. package/dist/chunks/{checkbox-input.08E9BNeF.js → checkbox-input.kfxcyjfd.js} +28 -31
  70. package/dist/chunks/{checkbox-input.08E9BNeF.js.map → checkbox-input.kfxcyjfd.js.map} +1 -1
  71. package/dist/chunks/{checkbox.BUc2332d.js → checkbox.Ca0mu2lE.js} +58 -91
  72. package/dist/chunks/{checkbox.BUc2332d.js.map → checkbox.Ca0mu2lE.js.map} +1 -1
  73. package/dist/chunks/{chip.DHmRHsL2.js → chip.wgEnbEPw.js} +16 -38
  74. package/dist/chunks/{chip.DHmRHsL2.js.map → chip.wgEnbEPw.js.map} +1 -1
  75. package/dist/chunks/click-outside.B0whuTUU.js +20 -0
  76. package/dist/chunks/{click-outside.BG01Sm0A.js.map → click-outside.B0whuTUU.js.map} +1 -1
  77. package/dist/chunks/{code-snippet.Cha3wHUL.js → code-snippet.BglbQWRB.js} +19 -74
  78. package/dist/chunks/{code-snippet.Cha3wHUL.js.map → code-snippet.BglbQWRB.js.map} +1 -1
  79. package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
  80. package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
  81. package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
  82. package/dist/chunks/{constructNow.CK0ryPil.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
  83. package/dist/chunks/{controls-group.BomXFNvi.js → controls-group.DPLAJjbv.js} +3 -3
  84. package/dist/chunks/{controls-group.BomXFNvi.js.map → controls-group.DPLAJjbv.js.map} +1 -1
  85. package/dist/chunks/{copy.BlyhTDSU.js → copy.CsKQJlen.js} +16 -60
  86. package/dist/chunks/{copy.BlyhTDSU.js.map → copy.CsKQJlen.js.map} +1 -1
  87. package/dist/chunks/{country.DySY9sbA.js → country.D8ncVjcm.js} +5 -5
  88. package/dist/chunks/{country.DySY9sbA.js.map → country.D8ncVjcm.js.map} +1 -1
  89. package/dist/chunks/country.types.BUW49nQx.js +27 -0
  90. package/dist/chunks/country.types.BUW49nQx.js.map +1 -0
  91. package/dist/chunks/currency.POwX-Trj.js +124 -0
  92. package/dist/chunks/{currency.Dvy9Qjjf.js.map → currency.POwX-Trj.js.map} +1 -1
  93. package/dist/chunks/dashboard-section.Bmu65OHg.js +98 -0
  94. package/dist/chunks/{dashboard-section.D2yqhERq.js.map → dashboard-section.Bmu65OHg.js.map} +1 -1
  95. package/dist/chunks/{dashed-underline.ByPcIHNe.js → dashed-underline.CbzCYKrk.js} +11 -12
  96. package/dist/chunks/{dashed-underline.ByPcIHNe.js.map → dashed-underline.CbzCYKrk.js.map} +1 -1
  97. package/dist/chunks/data-grid-template.BvBHJ0sH.js +102 -0
  98. package/dist/chunks/{data-grid-template.Ifn423Ot.js.map → data-grid-template.BvBHJ0sH.js.map} +1 -1
  99. package/dist/chunks/data-grid.DPh8BSnM.js +3266 -0
  100. package/dist/chunks/{data-grid.BDXQ_kKQ.js.map → data-grid.DPh8BSnM.js.map} +1 -1
  101. package/dist/chunks/date-picker.DutUBQbH.js +183 -0
  102. package/dist/chunks/{date-picker.CXZfCxwP.js.map → date-picker.DutUBQbH.js.map} +1 -1
  103. package/dist/chunks/date-range-picker.5bvgs49h.js +924 -0
  104. package/dist/chunks/{date-range-picker.BzVQsYk4.js.map → date-range-picker.5bvgs49h.js.map} +1 -1
  105. package/dist/chunks/date-time-picker.DUWWGlOX.js +127 -0
  106. package/dist/chunks/{date-time-picker.DaLATfJp.js.map → date-time-picker.DUWWGlOX.js.map} +1 -1
  107. package/dist/chunks/{date.C1HnIyOv.js → date.CPo8t1n9.js} +25 -25
  108. package/dist/chunks/{date.C1HnIyOv.js.map → date.CPo8t1n9.js.map} +1 -1
  109. package/dist/chunks/{de.pvjpUJ1o.js → de.ctR_lBqr.js} +18 -18
  110. package/dist/chunks/{de.pvjpUJ1o.js.map → de.ctR_lBqr.js.map} +1 -1
  111. package/dist/chunks/{dialog-page.B_LwIWgK.js → dialog-page.CPorblJc.js} +16 -38
  112. package/dist/chunks/{dialog-page.B_LwIWgK.js.map → dialog-page.CPorblJc.js.map} +1 -1
  113. package/dist/chunks/differenceInMonths.yz4Dfe-b.js +44 -0
  114. package/dist/chunks/{differenceInMonths.CpwVtHZX.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
  115. package/dist/chunks/{directive.BBWhsNtO.js → directive.D1-d-C2K.js} +2 -2
  116. package/dist/chunks/{directive.BBWhsNtO.js.map → directive.D1-d-C2K.js.map} +1 -1
  117. package/dist/chunks/{draggable-handle.kBP4prVO.js → draggable-handle.g2BFN3G1.js} +18 -114
  118. package/dist/chunks/{draggable-handle.kBP4prVO.js.map → draggable-handle.g2BFN3G1.js.map} +1 -1
  119. package/dist/chunks/draggable.iIsQLiOa.js +168 -0
  120. package/dist/chunks/{draggable.rTa1jcHI.js.map → draggable.iIsQLiOa.js.map} +1 -1
  121. package/dist/chunks/{drawer.DVJxDGw3.js → drawer.CnxX1zZ6.js} +14 -36
  122. package/dist/chunks/{drawer.DVJxDGw3.js.map → drawer.CnxX1zZ6.js.map} +1 -1
  123. package/dist/chunks/{dropdown-tag.CaLA2NLd.js → dropdown-tag.BFnfCah8.js} +77 -81
  124. package/dist/chunks/{dropdown-tag.CaLA2NLd.js.map → dropdown-tag.BFnfCah8.js.map} +1 -1
  125. package/dist/chunks/{dropdown.DIqgVVXB.js → dropdown.Ce2P9MZ-.js} +1131 -1466
  126. package/dist/chunks/{dropdown.DIqgVVXB.js.map → dropdown.Ce2P9MZ-.js.map} +1 -1
  127. package/dist/chunks/empty-state.fziM-yAC.js +102 -0
  128. package/dist/chunks/empty-state.fziM-yAC.js.map +1 -0
  129. package/dist/chunks/{en-GB.-Q7Oq-nY.js → en-GB.BsQNm5GT.js} +2 -2
  130. package/dist/chunks/{en-GB.-Q7Oq-nY.js.map → en-GB.BsQNm5GT.js.map} +1 -1
  131. package/dist/chunks/{en-US.BK5uiAND.js → en-US.BR6y7foR.js} +30 -30
  132. package/dist/chunks/{en-US.BK5uiAND.js.map → en-US.BR6y7foR.js.map} +1 -1
  133. package/dist/chunks/{error-message.Hqp_VvD3.js → error-message.BEHBfjmn.js} +14 -36
  134. package/dist/chunks/{error-message.Hqp_VvD3.js.map → error-message.BEHBfjmn.js.map} +1 -1
  135. package/dist/chunks/{es.2H4LvTyV.js → es.DxqH-QhP.js} +14 -14
  136. package/dist/chunks/{es.2H4LvTyV.js.map → es.DxqH-QhP.js.map} +1 -1
  137. package/dist/chunks/{field-label.DjJ7wdFi.js → field-label.CgdTst2l.js} +15 -37
  138. package/dist/chunks/{field-label.DjJ7wdFi.js.map → field-label.CgdTst2l.js.map} +1 -1
  139. package/dist/chunks/{file-uploader.2rIfQ2jb.js → file-uploader.BG89SLkG.js} +317 -630
  140. package/dist/chunks/{file-uploader.2rIfQ2jb.js.map → file-uploader.BG89SLkG.js.map} +1 -1
  141. package/dist/chunks/filter-bar.BMO8wTzb.js +3087 -0
  142. package/dist/chunks/{filter-bar.qlViDZPY.js.map → filter-bar.BMO8wTzb.js.map} +1 -1
  143. package/dist/chunks/fixed-scroller.oObE3f7m.js +117 -0
  144. package/dist/chunks/{fixed-scroller.04EUUgD_.js.map → fixed-scroller.oObE3f7m.js.map} +1 -1
  145. package/dist/chunks/{focus-trap.oRKjDFzf.js → focus-trap.l-wwtCHi.js} +69 -85
  146. package/dist/chunks/{focus-trap.oRKjDFzf.js.map → focus-trap.l-wwtCHi.js.map} +1 -1
  147. package/dist/chunks/{footer-actions.DXyJtVip.js → footer-actions.Dn9KYoqB.js} +4 -4
  148. package/dist/chunks/{footer-actions.DXyJtVip.js.map → footer-actions.Dn9KYoqB.js.map} +1 -1
  149. package/dist/chunks/{form-layout-group.DnjoLZZM.js → form-layout-group.C_0b8u-g.js} +2 -2
  150. package/dist/chunks/{form-layout-group.DnjoLZZM.js.map → form-layout-group.C_0b8u-g.js.map} +1 -1
  151. package/dist/chunks/{form-layout-title.Bt5bP9r3.js → form-layout-title.YhZCVtoc.js} +15 -37
  152. package/dist/chunks/{form-layout-title.Bt5bP9r3.js.map → form-layout-title.YhZCVtoc.js.map} +1 -1
  153. package/dist/chunks/{fr.Cu0IIfBP.js → fr.DJtn8ron.js} +16 -16
  154. package/dist/chunks/{fr.Cu0IIfBP.js.map → fr.DJtn8ron.js.map} +1 -1
  155. package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
  156. package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
  157. package/dist/chunks/get-slot-text.DM_NdrUC.js +6 -0
  158. package/dist/chunks/{get-slot-text.Bjb9dTSV.js.map → get-slot-text.DM_NdrUC.js.map} +1 -1
  159. package/dist/chunks/{grid-layout.1aIiz2N_.js → grid-layout.BeCrjPgT.js} +16 -17
  160. package/dist/chunks/{grid-layout.1aIiz2N_.js.map → grid-layout.BeCrjPgT.js.map} +1 -1
  161. package/dist/chunks/header-meta.mDdMmFUA.js +206 -0
  162. package/dist/chunks/{header-meta.CCQVPDU8.js.map → header-meta.mDdMmFUA.js.map} +1 -1
  163. package/dist/chunks/{header-with-views.CEU6WrV9.js → header-with-views.Dp6SyiPu.js} +791 -1270
  164. package/dist/chunks/{header-with-views.CEU6WrV9.js.map → header-with-views.Dp6SyiPu.js.map} +1 -1
  165. package/dist/chunks/{header.BoNOTATn.js → header.DUAxdw_d.js} +4 -4
  166. package/dist/chunks/{header.BoNOTATn.js.map → header.DUAxdw_d.js.map} +1 -1
  167. package/dist/chunks/{index.C7m7gI5w.js → index.CL3TXc0a.js} +154 -160
  168. package/dist/chunks/{index.C7m7gI5w.js.map → index.CL3TXc0a.js.map} +1 -1
  169. package/dist/chunks/{index.B6WW_F-J.js → index.CPOlyau9.js} +5 -5
  170. package/dist/chunks/index.CPOlyau9.js.map +1 -0
  171. package/dist/chunks/{info-icon.BnLYUTzI.js → info-icon.BRnbXunj.js} +3 -3
  172. package/dist/chunks/{info-icon.BnLYUTzI.js.map → info-icon.BRnbXunj.js.map} +1 -1
  173. package/dist/chunks/input-field-password.C9_o6Kg2.js +230 -0
  174. package/dist/chunks/input-field-password.C9_o6Kg2.js.map +1 -0
  175. package/dist/chunks/{input-field-phone-number.CPjH0EVF.js → input-field-phone-number.zRjd8HPi.js} +724 -756
  176. package/dist/chunks/{input-field-phone-number.CPjH0EVF.js.map → input-field-phone-number.zRjd8HPi.js.map} +1 -1
  177. package/dist/chunks/{input-field.BEV5lhwO.js → input-field.BTt1ORWU.js} +22 -58
  178. package/dist/chunks/{input-field.BEV5lhwO.js.map → input-field.BTt1ORWU.js.map} +1 -1
  179. package/dist/chunks/{input-time.En4O4DRD.js → input-time.BfJIDgaH.js} +15 -48
  180. package/dist/chunks/{input-time.En4O4DRD.js.map → input-time.BfJIDgaH.js.map} +1 -1
  181. package/dist/chunks/{inspector-page.OKPf0I4k.js → inspector-page.i8bVjo9U.js} +4 -4
  182. package/dist/chunks/{inspector-page.OKPf0I4k.js.map → inspector-page.i8bVjo9U.js.map} +1 -1
  183. package/dist/chunks/{inspector.DoQPHzCc.js → inspector.Aet0jTC2.js} +39 -106
  184. package/dist/chunks/{inspector.DoQPHzCc.js.map → inspector.Aet0jTC2.js.map} +1 -1
  185. package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
  186. package/dist/chunks/{isSameWeek.TrpUOIn5.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
  187. package/dist/chunks/{it.B65snrJA.js → it.keS7oN5l.js} +8 -8
  188. package/dist/chunks/{it.B65snrJA.js.map → it.keS7oN5l.js.map} +1 -1
  189. package/dist/chunks/{ja.xGVfFSzL.js → ja.cLwacUE6.js} +27 -27
  190. package/dist/chunks/{ja.xGVfFSzL.js.map → ja.cLwacUE6.js.map} +1 -1
  191. package/dist/chunks/{layout-row.CPFK9Bg7.js → layout-row.HslYnPgn.js} +34 -35
  192. package/dist/chunks/{layout-row.CPFK9Bg7.js.map → layout-row.HslYnPgn.js.map} +1 -1
  193. package/dist/chunks/{link.Cejg8jB6.js → link.CscSbaXa.js} +15 -37
  194. package/dist/chunks/{link.Cejg8jB6.js.map → link.CscSbaXa.js.map} +1 -1
  195. package/dist/chunks/list-item.Cngxa9qN.js +166 -0
  196. package/dist/chunks/{list-item.BiJMHR7b.js.map → list-item.Cngxa9qN.js.map} +1 -1
  197. package/dist/chunks/{listbox-option-tag.DnvECZQC.js → listbox-option-tag.BaoiH-Ku.js} +3 -3
  198. package/dist/chunks/{listbox-option-tag.DnvECZQC.js.map → listbox-option-tag.BaoiH-Ku.js.map} +1 -1
  199. package/dist/chunks/{modal-fullscreen.Bn8MzG6Z.js → modal-fullscreen.Cg1Q6ERf.js} +64 -93
  200. package/dist/chunks/{modal-fullscreen.Bn8MzG6Z.js.map → modal-fullscreen.Cg1Q6ERf.js.map} +1 -1
  201. package/dist/chunks/{modal.CClQItuJ.js → modal.u-t1CvBr.js} +81 -105
  202. package/dist/chunks/{modal.CClQItuJ.js.map → modal.u-t1CvBr.js.map} +1 -1
  203. package/dist/chunks/{navigation-menu-group.p1-x06nS.js → navigation-menu-group.gNMP4tW4.js} +80 -129
  204. package/dist/chunks/{navigation-menu-group.p1-x06nS.js.map → navigation-menu-group.gNMP4tW4.js.map} +1 -1
  205. package/dist/chunks/{on-click-outside.Cy1eFULD.js → on-click-outside.BgIzQ2G1.js} +32 -33
  206. package/dist/chunks/{on-click-outside.Cy1eFULD.js.map → on-click-outside.BgIzQ2G1.js.map} +1 -1
  207. package/dist/chunks/{pagination.CZVdaeqE.js → pagination.D81XgMQ7.js} +73 -192
  208. package/dist/chunks/pagination.D81XgMQ7.js.map +1 -0
  209. package/dist/chunks/{payment-method.B3CkgsAY.js → payment-method.Clm5dEYh.js} +2 -2
  210. package/dist/chunks/{payment-method.B3CkgsAY.js.map → payment-method.Clm5dEYh.js.map} +1 -1
  211. package/dist/chunks/popover.types.H5Y0rC1r.js +6 -0
  212. package/dist/chunks/{popover.types.BfnJIpII.js.map → popover.types.H5Y0rC1r.js.map} +1 -1
  213. package/dist/chunks/{popper-container.Cb9wuFId.js → popper-container.D08eTt4B.js} +245 -252
  214. package/dist/chunks/{popper-container.Cb9wuFId.js.map → popper-container.D08eTt4B.js.map} +1 -1
  215. package/dist/chunks/{promo-banner.DZ0gerRx.js → promo-banner.BX47zMKh.js} +17 -39
  216. package/dist/chunks/{promo-banner.DZ0gerRx.js.map → promo-banner.BX47zMKh.js.map} +1 -1
  217. package/dist/chunks/{pt-BR.D9FuAQZm.js → pt-BR.ChPOra5s.js} +14 -14
  218. package/dist/chunks/{pt-BR.D9FuAQZm.js.map → pt-BR.ChPOra5s.js.map} +1 -1
  219. package/dist/chunks/{radio-group.DUW2dya4.js → radio-group.Dtx5hOkQ.js} +23 -23
  220. package/dist/chunks/{radio-group.DUW2dya4.js.map → radio-group.Dtx5hOkQ.js.map} +1 -1
  221. package/dist/chunks/{rich-text-editor.CuCPLzUh.js → rich-text-editor.CmVsFJjh.js} +1364 -1416
  222. package/dist/chunks/{rich-text-editor.CuCPLzUh.js.map → rich-text-editor.CmVsFJjh.js.map} +1 -1
  223. package/dist/chunks/scroll-to-section.DhW8SFy0.js +101 -0
  224. package/dist/chunks/scroll-to-section.DhW8SFy0.js.map +1 -0
  225. package/dist/chunks/{search-bar.8iDkgmjw.js → search-bar.CRfYCmkl.js} +15 -48
  226. package/dist/chunks/{search-bar.8iDkgmjw.js.map → search-bar.CRfYCmkl.js.map} +1 -1
  227. package/dist/chunks/secondary-nav.B1Tj7MAA.js +192 -0
  228. package/dist/chunks/{secondary-nav.CmvSHxvS.js.map → secondary-nav.B1Tj7MAA.js.map} +1 -1
  229. package/dist/chunks/{segmented-control.Bkp2Y95s.js → segmented-control.CBc-wx0m.js} +44 -48
  230. package/dist/chunks/{segmented-control.Bkp2Y95s.js.map → segmented-control.CBc-wx0m.js.map} +1 -1
  231. package/dist/chunks/{selection-card-group.EGigQJOW.js → selection-card-group.BaK3Rt4K.js} +91 -96
  232. package/dist/chunks/{selection-card-group.EGigQJOW.js.map → selection-card-group.BaK3Rt4K.js.map} +1 -1
  233. package/dist/chunks/set-time-in-date.BVfkl8K8.js +27 -0
  234. package/dist/chunks/{set-time-in-date.CU7HeZLY.js.map → set-time-in-date.BVfkl8K8.js.map} +1 -1
  235. package/dist/chunks/{sidepanel.yB7YuzVt.js → sidepanel.DeIREn9l.js} +55 -78
  236. package/dist/chunks/{sidepanel.yB7YuzVt.js.map → sidepanel.DeIREn9l.js.map} +1 -1
  237. package/dist/chunks/startOfWeek.muMEhS7U.js +9 -0
  238. package/dist/chunks/{startOfWeek.Br5KM4z_.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
  239. package/dist/chunks/{status.CKb07vxI.js → status.DJ1Dfh5s.js} +2 -2
  240. package/dist/chunks/{status.CKb07vxI.js.map → status.DJ1Dfh5s.js.map} +1 -1
  241. package/dist/chunks/step.DfI11Din.js +221 -0
  242. package/dist/chunks/{step.CIfxl8Wm.js.map → step.DfI11Din.js.map} +1 -1
  243. package/dist/chunks/{structured-list-item.Cnv4Pw5n.js → structured-list-item._7YG2L3a.js} +18 -40
  244. package/dist/chunks/{structured-list-item.Cnv4Pw5n.js.map → structured-list-item._7YG2L3a.js.map} +1 -1
  245. package/dist/chunks/{summary-grid.types.BcIlkfVO.js → summary-grid.types.B_gUEQ0c.js} +45 -50
  246. package/dist/chunks/{summary-grid.types.BcIlkfVO.js.map → summary-grid.types.B_gUEQ0c.js.map} +1 -1
  247. package/dist/chunks/tab.DFk4K9cq.js +229 -0
  248. package/dist/chunks/{tab.N0xGWsfO.js.map → tab.DFk4K9cq.js.map} +1 -1
  249. package/dist/chunks/table-of-contents.CoEnQ9g7.js +104 -0
  250. package/dist/chunks/{table-of-contents.Cf-IrdZl.js.map → table-of-contents.CoEnQ9g7.js.map} +1 -1
  251. package/dist/chunks/{tag.BAyLm485.js → tag.BC7FFENr.js} +4 -4
  252. package/dist/chunks/{tag.BAyLm485.js.map → tag.BC7FFENr.js.map} +1 -1
  253. package/dist/chunks/textarea.Z-VYFZVq.js +176 -0
  254. package/dist/chunks/{textarea.BDRR1zE0.js.map → textarea.Z-VYFZVq.js.map} +1 -1
  255. package/dist/chunks/{timeline-item.QEEIwYMy.js → timeline-item.BGHi_lOY.js} +114 -193
  256. package/dist/chunks/{timeline-item.QEEIwYMy.js.map → timeline-item.BGHi_lOY.js.map} +1 -1
  257. package/dist/chunks/{toast.XPG0vaQB.js → toast.D-jat1Xw.js} +64 -86
  258. package/dist/chunks/{toast.XPG0vaQB.js.map → toast.D-jat1Xw.js.map} +1 -1
  259. package/dist/chunks/{toggle.Ca-MM3dt.js → toggle.BqHWIhqD.js} +4 -4
  260. package/dist/chunks/{toggle.Ca-MM3dt.js.map → toggle.BqHWIhqD.js.map} +1 -1
  261. package/dist/chunks/{tooltip.7ct8WxCl.js → tooltip.D_XsoD_u.js} +68 -70
  262. package/dist/chunks/{tooltip.7ct8WxCl.js.map → tooltip.D_XsoD_u.js.map} +1 -1
  263. package/dist/chunks/truncate.DmCXQmeb.js +8 -0
  264. package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
  265. package/dist/chunks/{tutorial.bROv3HSx.js → tutorial.BtxKW4ac.js} +80 -173
  266. package/dist/chunks/{tutorial.bROv3HSx.js.map → tutorial.BtxKW4ac.js.map} +1 -1
  267. package/dist/chunks/typography.D1OZJbEa.js +90 -0
  268. package/dist/chunks/typography.D1OZJbEa.js.map +1 -0
  269. package/dist/chunks/{use-bento-delayed-hover.Bz_8EabW.js → use-bento-delayed-hover.D6QjSugc.js} +2 -2
  270. package/dist/chunks/{use-bento-delayed-hover.Bz_8EabW.js.map → use-bento-delayed-hover.D6QjSugc.js.map} +1 -1
  271. package/dist/chunks/{use-bento-toast-controller.CB6Qbf3R.js → use-bento-toast-controller.A5xraVqa.js} +14 -15
  272. package/dist/chunks/{use-bento-toast-controller.CB6Qbf3R.js.map → use-bento-toast-controller.A5xraVqa.js.map} +1 -1
  273. package/dist/chunks/use-country-items.B1KhLbqM.js +30 -0
  274. package/dist/chunks/{use-country-items.CmCRY7QX.js.map → use-country-items.B1KhLbqM.js.map} +1 -1
  275. package/dist/chunks/use-country-phon-code.Cv5YgCOo.js +291 -0
  276. package/dist/chunks/use-country-phon-code.Cv5YgCOo.js.map +1 -0
  277. package/dist/chunks/use-date-input-formatter.DXwvH7B0.js +1629 -0
  278. package/dist/chunks/{use-date-input-formatter.DfQk8_Dw.js.map → use-date-input-formatter.DXwvH7B0.js.map} +1 -1
  279. package/dist/chunks/use-expandable-content-height.Bdd9hQwq.js +34 -0
  280. package/dist/chunks/{use-expandable-content-height.2WJLCL-R.js.map → use-expandable-content-height.Bdd9hQwq.js.map} +1 -1
  281. package/dist/chunks/utils.DWmc2mUI.js +19 -0
  282. package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
  283. package/dist/chunks/{zh-CN.Be4pa3-g.js → zh-CN.ZG6obniO.js} +28 -28
  284. package/dist/chunks/{zh-CN.Be4pa3-g.js.map → zh-CN.ZG6obniO.js.map} +1 -1
  285. package/dist/click-outside.js +1 -1
  286. package/dist/code-snippet.js +1 -1
  287. package/dist/country.js +3 -3
  288. package/dist/currency.js +1 -1
  289. package/dist/dashboard-template.js +1 -1
  290. package/dist/dashed-underline.js +1 -1
  291. package/dist/data-grid-template.js +1 -1
  292. package/dist/data-grid.js +1 -1
  293. package/dist/date-picker.js +2 -2
  294. package/dist/date-range-picker.js +2 -2
  295. package/dist/date-time-picker.js +1 -1
  296. package/dist/date.js +1 -1
  297. package/dist/draggable.js +2 -2
  298. package/dist/drawer.js +1 -1
  299. package/dist/dropdown.js +2 -2
  300. package/dist/empty-state.js +1 -1
  301. package/dist/file-uploader.js +1 -1
  302. package/dist/filter-bar.js +1 -1
  303. package/dist/focus-trap.js +1 -1
  304. package/dist/form-layout.js +2 -2
  305. package/dist/header-with-views.js +1 -1
  306. package/dist/header.js +1 -1
  307. package/dist/index.js +144 -149
  308. package/dist/index.js.map +1 -1
  309. package/dist/info-icon.js +1 -1
  310. package/dist/input-field-password.js +1 -1
  311. package/dist/input-field-phone-number.js +1 -1
  312. package/dist/input-field.js +1 -1
  313. package/dist/input-time.js +1 -1
  314. package/dist/inspector.js +2 -2
  315. package/dist/internal.js +14 -14
  316. package/dist/layout.js +1 -1
  317. package/dist/link.js +1 -1
  318. package/dist/list.js +1 -1
  319. package/dist/menu.js +1 -1
  320. package/dist/modal-fullscreen.js +1 -1
  321. package/dist/modal.js +2 -2
  322. package/dist/navigation-menu.js +1 -1
  323. package/dist/pagination.js +1 -1
  324. package/dist/payment-method.js +1 -1
  325. package/dist/popover.js +2 -2
  326. package/dist/popper-container.js +1 -1
  327. package/dist/promo-banner.js +1 -1
  328. package/dist/radio-group.js +1 -1
  329. package/dist/rich-text-editor.js +1 -1
  330. package/dist/search-bar.js +2 -2
  331. package/dist/secondary-nav.js +1 -1
  332. package/dist/segmented-control.js +1 -1
  333. package/dist/selection-card.js +1 -1
  334. package/dist/sidepanel.js +1 -1
  335. package/dist/status.js +1 -1
  336. package/dist/stepper.js +1 -1
  337. package/dist/structured-list.js +1 -1
  338. package/dist/summary-grid.js +1 -1
  339. package/dist/table-of-contents.js +1 -1
  340. package/dist/tabs.js +1 -1
  341. package/dist/tag.js +1 -1
  342. package/dist/textarea.js +1 -1
  343. package/dist/timeline.js +1 -1
  344. package/dist/toast.js +1 -1
  345. package/dist/toggle.js +1 -1
  346. package/dist/tutorial.js +1 -1
  347. package/dist/typography.js +1 -1
  348. package/dist/use-form-v4.js +331 -341
  349. package/dist/use-form-v4.js.map +1 -1
  350. package/dist/web-types.json +32 -2
  351. package/package.json +11 -11
  352. package/dist/chunks/anchor-scroller.DgC74yeM.js +0 -141
  353. package/dist/chunks/anchor-scroller.DgC74yeM.js.map +0 -1
  354. package/dist/chunks/button-actions-with-menu.DNYoFmV4.js +0 -85
  355. package/dist/chunks/calendar.CvHJ3Geq.js +0 -1247
  356. package/dist/chunks/click-outside.BG01Sm0A.js +0 -23
  357. package/dist/chunks/constructNow.CK0ryPil.js +0 -8
  358. package/dist/chunks/country.types.8GCHsdGN.js +0 -2789
  359. package/dist/chunks/country.types.8GCHsdGN.js.map +0 -1
  360. package/dist/chunks/currency.Dvy9Qjjf.js +0 -126
  361. package/dist/chunks/dashboard-section.D2yqhERq.js +0 -102
  362. package/dist/chunks/data-grid-template.Ifn423Ot.js +0 -111
  363. package/dist/chunks/data-grid.BDXQ_kKQ.js +0 -4121
  364. package/dist/chunks/date-picker.CXZfCxwP.js +0 -252
  365. package/dist/chunks/date-range-picker.BzVQsYk4.js +0 -1295
  366. package/dist/chunks/date-time-picker.DaLATfJp.js +0 -202
  367. package/dist/chunks/differenceInMonths.CpwVtHZX.js +0 -44
  368. package/dist/chunks/draggable.rTa1jcHI.js +0 -196
  369. package/dist/chunks/empty-state.DSVU1vU8.js +0 -106
  370. package/dist/chunks/empty-state.DSVU1vU8.js.map +0 -1
  371. package/dist/chunks/filter-bar.qlViDZPY.js +0 -3754
  372. package/dist/chunks/fixed-scroller.04EUUgD_.js +0 -152
  373. package/dist/chunks/get-slot-text.Bjb9dTSV.js +0 -12
  374. package/dist/chunks/header-meta.CCQVPDU8.js +0 -250
  375. package/dist/chunks/index.B6WW_F-J.js.map +0 -1
  376. package/dist/chunks/input-field-password.Bri9q5EV.js +0 -395
  377. package/dist/chunks/input-field-password.Bri9q5EV.js.map +0 -1
  378. package/dist/chunks/isSameWeek.TrpUOIn5.js +0 -14
  379. package/dist/chunks/list-item.BiJMHR7b.js +0 -226
  380. package/dist/chunks/pagination.CZVdaeqE.js.map +0 -1
  381. package/dist/chunks/popover.types.BfnJIpII.js +0 -6
  382. package/dist/chunks/scroll-to-section.CC5g-HBX.js +0 -111
  383. package/dist/chunks/scroll-to-section.CC5g-HBX.js.map +0 -1
  384. package/dist/chunks/secondary-nav.CmvSHxvS.js +0 -266
  385. package/dist/chunks/set-time-in-date.CU7HeZLY.js +0 -27
  386. package/dist/chunks/startOfWeek.Br5KM4z_.js +0 -10
  387. package/dist/chunks/step.CIfxl8Wm.js +0 -253
  388. package/dist/chunks/tab.N0xGWsfO.js +0 -259
  389. package/dist/chunks/table-of-contents.Cf-IrdZl.js +0 -129
  390. package/dist/chunks/textarea.BDRR1zE0.js +0 -224
  391. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  392. package/dist/chunks/typography.C8lPlsbD.js +0 -87
  393. package/dist/chunks/typography.C8lPlsbD.js.map +0 -1
  394. package/dist/chunks/use-country-items.CmCRY7QX.js +0 -30
  395. package/dist/chunks/use-country-phon-code.BWkb546s.js +0 -6641
  396. package/dist/chunks/use-country-phon-code.BWkb546s.js.map +0 -1
  397. package/dist/chunks/use-date-input-formatter.DfQk8_Dw.js +0 -1732
  398. package/dist/chunks/use-expandable-content-height.2WJLCL-R.js +0 -35
  399. package/dist/chunks/utils.BzUwtTXc.js +0 -21
@@ -1,1295 +0,0 @@
1
- import { defineComponent as Ie, computed as m, reactive as ye, useSlots as Ra, ref as B, onMounted as aa, toRaw as ke, watch as ge, useAttrs as Ya, toRef as Ye } from "vue";
2
- import { d as ba } from "./index.C7m7gI5w.js";
3
- import { B as Aa } from "./divider.DX5gwN7p.js";
4
- import { h as ka, B as Ia } from "./button-actions.Dpbx0xf3.js";
5
- import { B as ta, d as Qe } from "./typography.C8lPlsbD.js";
6
- import { B as _a } from "./alert.CDP-LTh5.js";
7
- import { B as Sa, g as Ve, D as Ea } from "./dropdown.DIqgVVXB.js";
8
- import { B as Fa } from "./segmented-control.Bkp2Y95s.js";
9
- import { u as _e } from "./index.B6WW_F-J.js";
10
- import { u as xa } from "./use-has-slot.C9lQZ6nz.js";
11
- import { u as Se, a as Pa } from "./use-date-input-formatter.DfQk8_Dw.js";
12
- import { u as wa } from "./use-touch-device.DTqFAbXh.js";
13
- import { j as le, k as C, s as _, l as Oa, m as We, n as qa, f as je, o as Ba, q as Ca, r as Na, t as Ge, u as La, b as L, v as za, h as Qa, i as Va, e as x, w as Ue, x as $e, g as Wa } from "./calendar.CvHJ3Geq.js";
14
- import { e as z, a as Je } from "./differenceInMonths.CpwVtHZX.js";
15
- import { s as He } from "./startOfWeek.Br5KM4z_.js";
16
- import { t as he, n as ja, c as Ga } from "./en-US.BK5uiAND.js";
17
- import { c as Ua } from "./constructNow.CK0ryPil.js";
18
- import { s as fe, a as Ke } from "./set-time-in-date.CU7HeZLY.js";
19
- import { B as $a, i as Xe } from "./input-time.En4O4DRD.js";
20
- import { B as Ja } from "./input-field.BEV5lhwO.js";
21
- import { B as Ha } from "./form-layout-group.DnjoLZZM.js";
22
- import { n as Ee } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
23
- import { g as oe } from "./generate-uid.NJ8tVoha.js";
24
- import { u as Ka } from "./use-form-layout-loading.CWbjZiwP.js";
25
- import "./index.Cl4_42j5.js";
26
- import { u as Xa } from "./form-field.D_2g7vaP.js";
27
- import { B as Za } from "./directive.BBWhsNtO.js";
28
- import { F as et } from "./field-label.DjJ7wdFi.js";
29
- import { E as at } from "./error-message.Hqp_VvD3.js";
30
- import { B as tt } from "./button-actions.types.BptAXjD8.js";
31
- import "../assets/date-range-picker.css";
32
- function Ze(o, t) {
33
- return he(o, t == null ? void 0 : t.in).getFullYear();
34
- }
35
- function be(o, t) {
36
- return +he(o) == +he(t);
37
- }
38
- function nt(o, t, e) {
39
- const [a, l] = ja(
40
- e == null ? void 0 : e.in,
41
- o,
42
- t
43
- );
44
- return +le(a) == +le(l);
45
- }
46
- function ea(o, t) {
47
- const e = he(o, t == null ? void 0 : t.in);
48
- return e.setMilliseconds(0), e;
49
- }
50
- function Ae(o, t) {
51
- return +ea(o) == +ea(t);
52
- }
53
- function rt(o, t) {
54
- return C(
55
- Ga(o, o),
56
- Ua(o)
57
- );
58
- }
59
- const st = {
60
- name: "date-time-input"
61
- }, ot = /* @__PURE__ */ Ie({
62
- ...st,
63
- props: {
64
- dateModelValue: { default: "" },
65
- dateProps: { default: () => ({}) },
66
- errorMessage: { default: null },
67
- showTimeInput: { type: Boolean, default: !1 },
68
- timeModelValue: { default: "" },
69
- timeProps: { default: () => ({}) }
70
- },
71
- emits: ["update:date-model-value", "date:keydown", "update:time-model-value", "time:error", "time:valid"],
72
- setup(o) {
73
- const t = o, e = m(() => ({
74
- errorMessage: t.errorMessage,
75
- ...t.dateProps
76
- })), a = m(() => ({
77
- errorMessage: t.errorMessage,
78
- ...t.timeProps
79
- }));
80
- return { __sfc: !0, props: t, resolvedDateProps: e, resolvedTimeProps: a, BentoFormLayoutGroup: Ha, BentoInputField: Ja, BentoInputTime: $a };
81
- }
82
- });
83
- var lt = function() {
84
- var t = this, e = t._self._c, a = t._self._setupProxy;
85
- return e(a.BentoFormLayoutGroup, { attrs: { layout: t.showTimeInput ? "50-50" : "100", "error-message": t.errorMessage } }, [e(a.BentoInputField, t._b({ attrs: { "model-value": t.dateModelValue }, on: { "update:model-value": function(l) {
86
- return t.$emit("update:date-model-value", l);
87
- }, keydown: function(l) {
88
- return t.$emit("date:keydown", l);
89
- } } }, "bento-input-field", a.resolvedDateProps, !1)), t.showTimeInput ? e(a.BentoInputTime, t._b({ attrs: { "model-value": t.timeModelValue }, on: { "update:model-value": function(l) {
90
- return t.$emit("update:time-model-value", l);
91
- }, "input:error": function(l) {
92
- return t.$emit("time:error");
93
- }, "input:valid": function(l) {
94
- return t.$emit("time:valid");
95
- } } }, "bento-input-time", a.resolvedTimeProps, !1)) : t._e()], 1);
96
- }, it = [], ut = /* @__PURE__ */ Ee(
97
- ot,
98
- lt,
99
- it,
100
- !1,
101
- null,
102
- null
103
- );
104
- const dt = ut.exports, ct = ({
105
- firstDayOfWeek: o,
106
- min: t,
107
- max: e
108
- }) => ({ getGranularCalendarLimits: (l) => {
109
- if (!t && !e)
110
- return { min: null, max: null };
111
- let D = t ? _(t) : null, f = e ? z(e) : null;
112
- if ((l == null ? void 0 : l.type) === "weekly") {
113
- if (l.earliest)
114
- D = _(l.earliest);
115
- else if (D) {
116
- const T = He(D, { weekStartsOn: o });
117
- C(D, T) || (D = _(Oa(We(D, { weekStartsOn: o }), 1)));
118
- }
119
- if (l.latest)
120
- f = z(l.latest);
121
- else if (f) {
122
- const T = We(f, { weekStartsOn: o });
123
- C(f, T) || (f = z(qa(He(f, { weekStartsOn: o }), 1)));
124
- }
125
- }
126
- if ((l == null ? void 0 : l.type) === "monthly") {
127
- if (l.earliest)
128
- D = _(l.earliest);
129
- else if (D) {
130
- const T = je(D);
131
- C(D, T) || (D = je(Ba(D, 1)));
132
- }
133
- if (l.latest)
134
- f = z(l.latest);
135
- else if (f) {
136
- const T = Je(f);
137
- C(f, T) || (f = Je(Ca(f, 1)));
138
- }
139
- }
140
- if ((l == null ? void 0 : l.type) === "quarterly") {
141
- if (l.earliest)
142
- D = le(l.earliest);
143
- else if (D) {
144
- const T = le(D);
145
- C(D, T) || (D = le(Na(D, 1)));
146
- }
147
- if (l.latest)
148
- f = z(l.latest);
149
- else if (f) {
150
- const T = Ge(f);
151
- C(f, T) || (f = Ge(La(f, 1)));
152
- }
153
- }
154
- return { min: D, max: f };
155
- } }), mt = () => {
156
- const o = ye({
157
- daily: null,
158
- weekly: null,
159
- monthly: null,
160
- quarterly: null
161
- });
162
- return {
163
- savedRanges: o,
164
- saveRange: (a, l) => {
165
- o[a] = l;
166
- },
167
- resetSavedRanges: () => {
168
- o.daily = null, o.weekly = null, o.monthly = null, o.quarterly = null;
169
- }
170
- };
171
- };
172
- var v = /* @__PURE__ */ ((o) => (o.CUSTOM_RANGE = "custom-range", o.INPUT = "input", o.ERROR = "error", o.FORM_DATE = "form-date", o.START_DATE_SELECTED = "start-date-selected", o))(v || {});
173
- const Dt = {
174
- "de-DE": {
175
- "DD-MM-YYYY": "TT-MM-JJJJ",
176
- "MM-DD-YYYY": "MM-TT-JJJJ",
177
- "YYYY-MM-DD": "JJJJ-MM-TT",
178
- customRange: "Benutzerdefinierter Bereich",
179
- daily: "Täglich",
180
- dateFrom: "Datum von",
181
- dateTo: "Datum bis",
182
- invalidDateFormat: "Ungültiges Datumsformat",
183
- lastMonth: "Letzter Monat",
184
- lastSevenDays: "Letzte 7 Tage",
185
- lastThreeMonths: "Letzte drei Monate",
186
- maxRangeDays: "Sie können bis zu {count} Tag auswählen | Sie können bis zu {count} Tage auswählen",
187
- maxRangeMonths: "Sie können bis zu {count} Monat auswählen | Sie können bis zu {count} Monate auswählen",
188
- maxRangeQuarters: "Sie können bis zu {count} Quartal auswählen | Sie können bis zu {count} Quartale auswählen",
189
- maxRangeWeeks: "Sie können bis zu {count} Woche auswählen | Sie können bis zu {count} Wochen auswählen",
190
- monthly: "Monatlich",
191
- quarterly: "Vierteljährlich",
192
- selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar",
193
- startDateMustPrecedeEndDate: "Das Anfangsdatum muss vor dem Enddatum liegen",
194
- timeFrom: "Zeit von",
195
- timeTo: "Zeit bis",
196
- weekly: "Wöchentlich"
197
- },
198
- "en-GB": {
199
- "DD-MM-YYYY": "DD-MM-YYYY",
200
- "MM-DD-YYYY": "MM-DD-YYYY",
201
- "YYYY-MM-DD": "YYYY-MM-DD",
202
- customRange: "Custom range",
203
- daily: "Daily",
204
- dateFrom: "Date from",
205
- dateTo: "Date to",
206
- invalidDateFormat: "Invalid date format",
207
- lastMonth: "Last month",
208
- lastSevenDays: "Last 7 days",
209
- lastThreeMonths: "The last three months",
210
- maxRangeDays: "You can select up to {count} day | You can select up to {count} days",
211
- maxRangeMonths: "You can select up to {count} month | You can select up to {count} months",
212
- maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters",
213
- maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks",
214
- monthly: "Monthly",
215
- quarterly: "Quarterly",
216
- selectedDateIsNotAvailable: "Selected date is not available",
217
- startDateMustPrecedeEndDate: "Start date must precede end date",
218
- timeFrom: "Time from",
219
- timeTo: "Time to",
220
- weekly: "Weekly"
221
- },
222
- "en-US": {
223
- "DD-MM-YYYY": "DD-MM-YYYY",
224
- "MM-DD-YYYY": "MM-DD-YYYY",
225
- "YYYY-MM-DD": "YYYY-MM-DD",
226
- customRange: "Custom range",
227
- daily: "Daily",
228
- dateFrom: "Date from",
229
- dateTo: "Date to",
230
- invalidDateFormat: "Invalid date format",
231
- lastMonth: "Last month",
232
- lastSevenDays: "Last 7 days",
233
- lastThreeMonths: "Last three months",
234
- maxRangeDays: "You can select up to {count} day | You can select up to {count} days",
235
- maxRangeMonths: "You can select up to {count} month | You can select up to {count} months",
236
- maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters",
237
- maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks",
238
- monthly: "Monthly",
239
- quarterly: "Quarterly",
240
- selectedDateIsNotAvailable: "Selected date is not available",
241
- startDateMustPrecedeEndDate: "Start date must precede end date",
242
- timeFrom: "Time from",
243
- timeTo: "Time to",
244
- weekly: "Weekly"
245
- },
246
- "es-419": {
247
- "DD-MM-YYYY": "DD-MM-AAAA",
248
- "MM-DD-YYYY": "MM-DD-AAAA",
249
- "YYYY-MM-DD": "AAAA-MM-DD",
250
- customRange: "Rango personalizado",
251
- daily: "Diario",
252
- dateFrom: "Fecha desde",
253
- dateTo: "Fecha hasta",
254
- invalidDateFormat: "Formato de fecha no válido",
255
- lastMonth: "El mes pasado",
256
- lastSevenDays: "Últimos 7 días",
257
- lastThreeMonths: "Últimos tres meses",
258
- maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días",
259
- maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses",
260
- maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres",
261
- maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas",
262
- monthly: "Mensual",
263
- quarterly: "Trimestral",
264
- selectedDateIsNotAvailable: "La fecha seleccionada no está disponible",
265
- startDateMustPrecedeEndDate: "La fecha de inicio debe ser anterior a la fecha de finalización",
266
- timeFrom: "Tiempo desde",
267
- timeTo: "Es hora de",
268
- weekly: "Semanal"
269
- },
270
- "es-ES": {
271
- "DD-MM-YYYY": "DD-MM-AAAA",
272
- "MM-DD-YYYY": "MM-DD-AAAA",
273
- "YYYY-MM-DD": "AAAA-MM-DD",
274
- customRange: "Rango personalizado",
275
- daily: "Diario",
276
- dateFrom: "Fecha desde",
277
- dateTo: "Fecha hasta",
278
- invalidDateFormat: "Formato de fecha no válido",
279
- lastMonth: "El mes pasado",
280
- lastSevenDays: "Últimos 7 días",
281
- lastThreeMonths: "Últimos tres meses",
282
- maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días",
283
- maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses",
284
- maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres",
285
- maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas",
286
- monthly: "Mensualmente",
287
- quarterly: "Trimestral",
288
- selectedDateIsNotAvailable: "La fecha seleccionada no está disponible",
289
- startDateMustPrecedeEndDate: "La fecha de inicio debe ser anterior a la fecha de finalización",
290
- timeFrom: "Hora desde",
291
- timeTo: "Hora hasta",
292
- weekly: "Semanal"
293
- },
294
- "es-MX": {
295
- "DD-MM-YYYY": "DD-MM-AAAA",
296
- "MM-DD-YYYY": "MM-DD-AAAA",
297
- "YYYY-MM-DD": "AAAA-MM-DD",
298
- customRange: "Rango personalizado",
299
- daily: "Diario",
300
- dateFrom: "Fecha de",
301
- dateTo: "Fecha hasta",
302
- invalidDateFormat: "Formato de fecha no válido",
303
- lastMonth: "El mes pasado",
304
- lastSevenDays: "Últimos 7 días",
305
- lastThreeMonths: "Últimos tres meses",
306
- maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días",
307
- maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses",
308
- maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres",
309
- maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas",
310
- monthly: "Mensual",
311
- quarterly: "Trimestral",
312
- selectedDateIsNotAvailable: "La fecha seleccionada no está disponible",
313
- startDateMustPrecedeEndDate: "La fecha de inicio debe ser anterior a la fecha de finalización",
314
- timeFrom: "Tiempo desde",
315
- timeTo: "Es hora de",
316
- weekly: "Semanal"
317
- },
318
- "fr-FR": {
319
- "DD-MM-YYYY": "JJ-MM-AAAA",
320
- "MM-DD-YYYY": "MM-JJ-AAAA",
321
- "YYYY-MM-DD": "AAAA-MM-JJ",
322
- customRange: "Plage personnalisée",
323
- daily: "Quotidien",
324
- dateFrom: "Date de début",
325
- dateTo: "Date de fin",
326
- invalidDateFormat: "Format de date non valide",
327
- lastMonth: "Le mois dernier",
328
- lastSevenDays: "7 derniers jours",
329
- lastThreeMonths: "Trois derniers mois",
330
- maxRangeDays: "Vous pouvez sélectionner jusqu'à {count} jour| Vous pouvez sélectionner jusqu'à {count} jours",
331
- maxRangeMonths: "Vous pouvez sélectionner jusqu'à {count} mois | Vous pouvez sélectionner jusqu'à {count} mois",
332
- maxRangeQuarters: "Vous pouvez sélectionner jusqu'à {count} trimestre | Vous pouvez sélectionner jusqu'à {count} trimestres",
333
- maxRangeWeeks: "Vous pouvez sélectionner jusqu'à {count} semaine | Vous pouvez sélectionner jusqu'à {count} semaines",
334
- monthly: "Mensuel",
335
- quarterly: "Trimestriel",
336
- selectedDateIsNotAvailable: "La date sélectionnée n’est pas disponible",
337
- startDateMustPrecedeEndDate: "La date de début doit précéder la date de fin",
338
- timeFrom: "Heure de début",
339
- timeTo: "Heure de fin",
340
- weekly: "Hebdomadaire"
341
- },
342
- "it-IT": {
343
- "DD-MM-YYYY": "GG-MM-AAAA",
344
- "MM-DD-YYYY": "MM-GG-AAAA",
345
- "YYYY-MM-DD": "AAAA-MM-GG",
346
- customRange: "Intervallo personalizzato",
347
- daily: "Giornaliero",
348
- dateFrom: "Data da",
349
- dateTo: "Da",
350
- invalidDateFormat: "Formato data non valido",
351
- lastMonth: "Il mese scorso",
352
- lastSevenDays: "Ultimi 7 giorni",
353
- lastThreeMonths: "Gli ultimi tre mesi",
354
- maxRangeDays: "Puoi selezionare fino a {count} giorno | Puoi selezionare fino a {count} giorni",
355
- maxRangeMonths: "Puoi selezionare fino a {count} mese | Puoi selezionare fino a {count} mesi",
356
- maxRangeQuarters: "Puoi selezionare fino a {count} trimestre | Puoi selezionare fino a {count} trimestri",
357
- maxRangeWeeks: "Puoi selezionare fino a {count} settimana | Puoi selezionare fino a {count} settimane",
358
- monthly: "Mensile",
359
- quarterly: "Trimestrale",
360
- selectedDateIsNotAvailable: "La data selezionata non è disponibile",
361
- startDateMustPrecedeEndDate: "La data di inizio deve precedere la data di fine",
362
- timeFrom: "Tempo dal",
363
- timeTo: "Tempo fino al",
364
- weekly: "Settimanale"
365
- },
366
- "ja-JP": {
367
- "DD-MM-YYYY": "DD-MM-YYYY",
368
- "MM-DD-YYYY": "MM-DD-YYYY",
369
- "YYYY-MM-DD": "YYYY-MM-DD",
370
- customRange: "カスタム範囲",
371
- daily: "毎日",
372
- dateFrom: "開始日",
373
- dateTo: "終了日",
374
- invalidDateFormat: "無効な日付形式",
375
- lastMonth: "先月",
376
- lastSevenDays: "過去 7 日間",
377
- lastThreeMonths: "過去3か月",
378
- maxRangeDays: "{count}日間まで選択できます | {count}日間まで選択できます",
379
- maxRangeMonths: "{count}か月まで選択できます | {count}か月まで選択できます",
380
- maxRangeQuarters: "{count}四半期まで選択できます | {count}四半期まで選択できます",
381
- maxRangeWeeks: "{count}週間まで選択できます | {count}週間まで選択できます",
382
- monthly: "毎月",
383
- quarterly: "四半期ごと",
384
- selectedDateIsNotAvailable: "選択した日付は利用できません",
385
- startDateMustPrecedeEndDate: "開始日は終了日より前にする必要があります",
386
- timeFrom: "開始時刻",
387
- timeTo: "終了時刻",
388
- weekly: "毎週"
389
- },
390
- "pt-BR": {
391
- "DD-MM-YYYY": "DD-MM-AAAA",
392
- "MM-DD-YYYY": "MM-DD-AAAA",
393
- "YYYY-MM-DD": "AAAA-MM-DD",
394
- customRange: "Intervalo personalizado",
395
- daily: "Diário",
396
- dateFrom: "Data a partir de",
397
- dateTo: "Data até",
398
- invalidDateFormat: "Formato de data inválido",
399
- lastMonth: "Último mês",
400
- lastSevenDays: "Últimos 7 dias",
401
- lastThreeMonths: "Últimos 3 meses",
402
- maxRangeDays: "Você pode selecionar até {count} dia | Você pode selecionar até {count} dias",
403
- maxRangeMonths: "Você pode selecionar até {count} mês | Você pode selecionar até {count} meses",
404
- maxRangeQuarters: "Você pode selecionar até {count} trimestre | Você pode selecionar até {count} trimestres",
405
- maxRangeWeeks: "Você pode selecionar até {count} semana | Você pode selecionar até {count} semanas",
406
- monthly: "Mensal",
407
- quarterly: "Trimestral",
408
- selectedDateIsNotAvailable: "A data selecionada não está disponível",
409
- startDateMustPrecedeEndDate: "A data de início deve preceder a data de término",
410
- timeFrom: "Horário a partir de",
411
- timeTo: "Horário até",
412
- weekly: "Semanal"
413
- },
414
- "zh-CN": {
415
- "DD-MM-YYYY": "日-月-年",
416
- "MM-DD-YYYY": "月-日-年",
417
- "YYYY-MM-DD": "年-月-日",
418
- customRange: "自定义范围",
419
- daily: "每日",
420
- dateFrom: "日期自",
421
- dateTo: "日期至",
422
- invalidDateFormat: "日期格式无效",
423
- lastMonth: "上个月",
424
- lastSevenDays: "最近 7 天",
425
- lastThreeMonths: "过去三个月",
426
- maxRangeDays: "您可以选择最多 {count} 天 | 您可以选择最多 {count} 天",
427
- maxRangeMonths: "您可以选择最多 {count} 个月 | 您可以选择最多 {count} 个月",
428
- maxRangeQuarters: "您最多可以选择 {count} 个季度 | 您最多可以选择 {count} 个季度",
429
- maxRangeWeeks: "您最多可以选择 {count} 周 | 您最多可以选择 {count} 周",
430
- monthly: "每月",
431
- quarterly: "每季度",
432
- selectedDateIsNotAvailable: "所选日期不可用",
433
- startDateMustPrecedeEndDate: "开始日期必须早于结束日期",
434
- timeFrom: "时间自",
435
- timeTo: "是时候",
436
- weekly: "每周"
437
- }
438
- }, pt = {
439
- name: "date-range-picker-calendar",
440
- i18n: { messages: Dt }
441
- }, vt = /* @__PURE__ */ Ie({
442
- ...pt,
443
- props: {
444
- /**
445
- * Allows user to enter time values in the form
446
- */
447
- allowTimeInput: { type: Boolean, default: !1 },
448
- /**
449
- * Ranges form persistance data
450
- */
451
- dateFormData: {
452
- type: Object,
453
- default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
454
- },
455
- /**
456
- * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
457
- */
458
- firstDayOfWeek: L.props.firstDayOfWeek,
459
- /**
460
- * A list of available granularities.
461
- * If present, the date picker will display a segmented control to change granularity.
462
- */
463
- granularities: {
464
- type: Array,
465
- default: null
466
- },
467
- /**
468
- * Indicate if a date should be disabled or not
469
- */
470
- isDateDisabled: L.props.isDateDisabled,
471
- /**
472
- * Set a maximum number of dates to be selectable by the range.
473
- */
474
- maxRange: L.props.maxRange,
475
- /**
476
- * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
477
- */
478
- min: L.props.min,
479
- /**
480
- * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
481
- */
482
- max: L.props.max,
483
- /**
484
- * Number of months rendered on pane
485
- */
486
- numberOfMonths: {
487
- type: L.props.numberOfMonths.type,
488
- default: L.props.numberOfMonths.default,
489
- validator: (o) => o >= 0
490
- },
491
- /**
492
- * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
493
- */
494
- showEndDateOnOpen: { type: Boolean, default: !1 },
495
- /**
496
- * Enables the custom range selector.
497
- * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
498
- * `label` - label of custom range item.
499
- * `value` - a unique key of the custom range item.
500
- * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
501
- */
502
- quickSelectRanges: {
503
- type: Array,
504
- default: void 0
505
- },
506
- /**
507
- * Selected date
508
- */
509
- value: { type: Object, default: void 0 },
510
- /**
511
- * The type of calendar to display. Defaults to showing days.
512
- */
513
- variant: L.props.variant,
514
- /**
515
- * Range of years to be selectable from the year dropdown
516
- */
517
- yearRange: L.props.yearRange
518
- },
519
- emits: [
520
- v.CUSTOM_RANGE,
521
- v.INPUT,
522
- v.ERROR,
523
- v.FORM_DATE,
524
- v.START_DATE_SELECTED
525
- ],
526
- setup(o, { emit: t }) {
527
- var qe, Be, Ce, Ne;
528
- const e = o, a = 300, l = "customRange", D = {
529
- daily: "maxRangeDays",
530
- weekly: "maxRangeWeeks",
531
- monthly: "maxRangeMonths",
532
- quarterly: "maxRangeQuarters"
533
- }, f = Ra(), T = xa(f), { t: P, tc: Q } = _e(), { isTouchDevice: M } = wa(), {
534
- dateFormat: ie,
535
- isFormatValid: ae,
536
- parseDate: p,
537
- onKeyDown: G,
538
- autoFormat: S,
539
- formatDate: N
540
- } = Se(), g = B({}), U = m(() => e.variant === "month" ? "monthly" : "daily"), w = m(() => e.numberOfMonths === 0), r = ye({
541
- startDate: (qe = e.value) == null ? void 0 : qe.startDate,
542
- endDate: (Be = e.value) == null ? void 0 : Be.endDate,
543
- range: (Ce = e.value) == null ? void 0 : Ce.range,
544
- ...e.granularities ? {
545
- granularity: ((Ne = e.value) == null ? void 0 : Ne.granularity) || U.value
546
- } : {}
547
- }), E = m(() => {
548
- var n, i;
549
- return (
550
- // eslint-disable-next-line consistent-return
551
- ((i = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: u, data: d }) => {
552
- var A;
553
- if (!d.endDate) {
554
- if (d.isRelativeToNow) {
555
- const h = (A = g.value) == null ? void 0 : A[u];
556
- return h ? be(h.startDate, r.startDate) && be(h.endDate, r.endDate) : (
557
- // If not stored calculated dates, fall back to comparing the quick select item's value
558
- // with the internal range's stored range identifier.
559
- u === r.range
560
- );
561
- }
562
- return be(d.startDate, r.startDate) && rt(r.endDate) && (!e.allowTimeInput || Ae(r.endDate, z(r.endDate))) && (e.granularities ? d.granularity === r.granularity : !0);
563
- }
564
- if (e.allowTimeInput)
565
- return Ae(d.startDate, r.startDate) && Ae(d.endDate, r.endDate) && (e.granularities ? d.granularity === r.granularity : !0);
566
- if (d.endDate)
567
- return C(d.startDate, r.startDate) && C(d.endDate, r.endDate) && (e.granularities ? d.granularity === r.granularity : !0);
568
- })) == null ? void 0 : i.value) ?? l
569
- );
570
- }), $ = m(() => [
571
- { label: P("customRange"), value: l },
572
- ...e.quickSelectRanges ? e.quickSelectRanges : []
573
- ]), V = m(
574
- () => {
575
- var n;
576
- return ((n = e.granularities) == null ? void 0 : n.find(({ type: i }) => i === r.granularity)) || null;
577
- }
578
- ), Me = m(
579
- () => {
580
- var n;
581
- return ((n = e.granularities) == null ? void 0 : n.map(({ type: i, disabled: u }) => ({
582
- label: P(i),
583
- value: i,
584
- disabled: u
585
- }))) ?? [];
586
- }
587
- ), { getGranularCalendarLimits: te } = ct(e), Y = m(
588
- () => e.granularities ? te(V.value) : { min: e.min ? _(e.min) : null, max: e.max ? z(e.max) : null }
589
- ), {
590
- adjustDateForQuarterly: J,
591
- adjustDateForMonthly: W,
592
- adjustDateForWeekly: ue,
593
- adjustStartDateInputForWeekly: de,
594
- adjustEndDateInputForWeekly: Z,
595
- adjustStartDateInputForMonthly: ce,
596
- adjustEndDateInputForMonthly: ee,
597
- adjustStartDateInputForQuarterly: H,
598
- adjustEndDateInputForQuarterly: F
599
- } = za(e.firstDayOfWeek), { savedRanges: I, saveRange: me, resetSavedRanges: b } = mt(), k = (n) => n ? N(n) : "", R = B(null), y = B(null), ne = m(() => R.value ? P(R.value) : null), De = m(() => y.value ? P(y.value) : null), Fe = m(
600
- () => R.value === "invalidDateFormat" ? null : ne.value
601
- ), xe = m(() => y.value === "invalidDateFormat" ? null : De.value), O = (n, i, u, d) => {
602
- if (!n || !ae(n))
603
- return "invalidDateFormat";
604
- const A = p(n), h = _(A);
605
- if (e.min && h < _(e.min) || e.max && h > _(e.max) || e.isDateDisabled && e.isDateDisabled(h))
606
- return "selectedDateIsNotAvailable";
607
- if (i) {
608
- const Le = d ? fe(d, 0).getTime() : h.getTime(), ze = d ? fe(i, 0).getTime() : _(i).getTime();
609
- if (u === "start" ? Le >= ze : Le <= ze)
610
- return "startDateMustPrecedeEndDate";
611
- }
612
- return null;
613
- }, s = ye({
614
- startDate: e.dateFormData.startDate,
615
- endDate: e.dateFormData.endDate,
616
- startTime: e.dateFormData.startTime,
617
- endTime: e.dateFormData.endTime
618
- }), pe = (n, i) => {
619
- const u = () => {
620
- if (i && X(i)) {
621
- const d = Ke(p(i), n);
622
- if (e.min && d < fe(e.min, 0) || e.max && d > fe(e.max, 0))
623
- return !1;
624
- }
625
- return !0;
626
- };
627
- return Xe(n) && u();
628
- }, j = m(() => e.variant === "month"), c = (n) => n ? j.value ? Qa(n) : Va(n) : "", K = m(() => c(r.startDate)), re = m(() => c(r.endDate)), na = m(() => M.value ? j.value ? "month" : "date" : "text"), ra = m(() => M.value ? K.value : s.startDate), sa = m(() => M.value ? re.value : s.endDate), q = (n, i) => !i || !Xe(i) || e.variant === "month" ? n : Ke(new Date(n), i), oa = (n) => {
629
- s.startTime = x(
630
- e.min && e.allowTimeInput && C(e.min, n.startDate) ? e.min : _(n.startDate)
631
- ), s.endTime = x(
632
- e.max && e.allowTimeInput && C(e.max, n.endDate) ? e.max : z(n.endDate)
633
- ), r.startDate = q(n.startDate, s.startTime), r.endDate = q(n.endDate, s.endTime), r.range = null, e.granularities && b(), t(v.INPUT, {
634
- ...r,
635
- range: E.value
636
- });
637
- }, X = (n) => !!n && !O(n);
638
- aa(() => {
639
- R.value = e.dateFormData.startDate ? O(e.dateFormData.startDate) : null, y.value = e.dateFormData.endDate ? O(e.dateFormData.endDate) : null;
640
- });
641
- const la = (n) => {
642
- s.startDate = k(n), s.startTime || (s.startTime = x(n)), R.value = null, y.value === "startDateMustPrecedeEndDate" && (y.value = null), t(v.START_DATE_SELECTED, n);
643
- }, ia = (n) => {
644
- s.endDate = k(n), s.endTime || (s.endTime = x(z(n))), y.value = null, R.value === "startDateMustPrecedeEndDate" && (R.value = null);
645
- }, ve = (n) => {
646
- var u;
647
- const i = (u = e.value) == null ? void 0 : u[n];
648
- if (i)
649
- return i;
650
- if (e.dateFormData[n] && X(e.dateFormData[n]))
651
- return p(e.dateFormData[n]);
652
- }, Te = (n) => {
653
- var i;
654
- if (X(n)) {
655
- let u = n;
656
- switch (R.value = null, (i = V.value) == null ? void 0 : i.type) {
657
- case "weekly":
658
- u = de(
659
- n,
660
- k,
661
- Y.value.min,
662
- Y.value.max
663
- ), s.startDate = u;
664
- break;
665
- case "monthly":
666
- u = ce(
667
- n,
668
- k,
669
- Y.value.min,
670
- Y.value.max
671
- ), s.startDate = u;
672
- break;
673
- case "quarterly":
674
- u = H(
675
- n,
676
- k,
677
- Y.value.min,
678
- Y.value.max
679
- ), s.startDate = u;
680
- break;
681
- }
682
- const d = _(p(u));
683
- r.startDate = q(d, s.startTime), X(s.endDate) && (r.endDate = q(
684
- _(p(s.endDate)),
685
- s.endTime
686
- ));
687
- const A = ve("endDate"), h = O(
688
- u,
689
- e.allowTimeInput ? r.endDate : A,
690
- "start",
691
- e.allowTimeInput ? r.startDate : void 0
692
- );
693
- if (h) {
694
- R.value = h, t(v.ERROR, { ...s });
695
- return;
696
- }
697
- y.value === "startDateMustPrecedeEndDate" && (y.value = null), r.range = null, t(v.FORM_DATE, {
698
- startDate: d,
699
- endDate: A
700
- }), t(v.INPUT, {
701
- ...r,
702
- range: E.value
703
- });
704
- } else
705
- R.value = O(n), t(v.ERROR, { ...s });
706
- }, Pe = Ve(Te, a), ua = (n) => {
707
- if (s.startDate = M.value && j.value ? n : S(n), M.value)
708
- if (j.value && n) {
709
- const i = Ue(n);
710
- r.startDate = q(i, s.startTime), r.range = null, t(v.INPUT, {
711
- ...r,
712
- range: E.value
713
- });
714
- } else s.startDate ? Te(s.startDate) : R.value = null;
715
- else
716
- Pe(s.startDate);
717
- }, Re = (n) => {
718
- var i;
719
- if (X(n)) {
720
- let u = n;
721
- switch (y.value = null, (i = V.value) == null ? void 0 : i.type) {
722
- case "weekly":
723
- u = Z(
724
- n,
725
- k,
726
- Y.value.min,
727
- Y.value.max
728
- ), s.endDate = u;
729
- break;
730
- case "monthly":
731
- u = ee(
732
- n,
733
- k,
734
- Y.value.min,
735
- Y.value.max
736
- ), s.endDate = u;
737
- break;
738
- case "quarterly":
739
- u = F(
740
- n,
741
- k,
742
- Y.value.min,
743
- Y.value.max
744
- ), s.endDate = u;
745
- break;
746
- }
747
- const d = _(p(u));
748
- r.endDate = q(d, s.endTime), X(s.startDate) && (r.startDate = q(
749
- _(p(s.startDate)),
750
- s.startTime
751
- ));
752
- const A = ve("startDate"), h = O(
753
- u,
754
- e.allowTimeInput ? r.startDate : A,
755
- "end",
756
- e.allowTimeInput ? r.endDate : void 0
757
- );
758
- if (h) {
759
- y.value = h, t(v.ERROR, { ...s });
760
- return;
761
- }
762
- R.value === "startDateMustPrecedeEndDate" && (R.value = null), r.range = null, t(v.FORM_DATE, {
763
- startDate: A,
764
- endDate: d
765
- }), t(v.INPUT, {
766
- ...r,
767
- range: E.value
768
- });
769
- } else
770
- y.value = O(n), t(v.ERROR, { ...s });
771
- }, we = Ve(Re, a), da = (n) => {
772
- if (s.endDate = M.value && j.value ? n : S(n), M.value)
773
- if (j.value && n) {
774
- const i = Ue(n);
775
- r.endDate = q(i, s.endTime), r.range = null, t(v.INPUT, {
776
- ...r,
777
- range: E.value
778
- });
779
- } else s.endDate ? Re(s.endDate) : y.value = null;
780
- else
781
- we(s.endDate);
782
- }, ca = (n) => {
783
- G(n);
784
- }, ma = () => {
785
- t(v.ERROR, { ...s });
786
- }, Da = () => {
787
- const n = s.startTime;
788
- if (!pe(n, s.startDate)) {
789
- t(v.ERROR, { ...s });
790
- return;
791
- }
792
- if (r.startDate = q(r.startDate, n), s.startDate && r.endDate) {
793
- const u = O(
794
- s.startDate,
795
- r.endDate,
796
- "start",
797
- r.startDate
798
- );
799
- if (u) {
800
- R.value = u, t(v.ERROR, { ...s });
801
- return;
802
- }
803
- }
804
- R.value = null, y.value === "startDateMustPrecedeEndDate" && (y.value = null);
805
- const i = ve("endDate");
806
- t(v.FORM_DATE, {
807
- startDate: r.startDate,
808
- endDate: i,
809
- startTime: n,
810
- endTime: s.endTime ?? e.dateFormData.endTime
811
- }), t(v.INPUT, {
812
- ...r,
813
- range: E.value
814
- });
815
- }, pa = () => {
816
- t(v.ERROR, { ...s });
817
- }, va = () => {
818
- const n = s.endTime;
819
- if (!pe(n, s.endDate)) {
820
- t(v.ERROR, { ...s });
821
- return;
822
- }
823
- if (r.endDate = q(r.endDate, n), s.endDate && r.startDate) {
824
- const i = O(
825
- s.endDate,
826
- r.startDate,
827
- "end",
828
- r.endDate
829
- );
830
- if (i) {
831
- y.value = i, t(v.ERROR, { ...s });
832
- return;
833
- }
834
- }
835
- y.value = null, R.value === "startDateMustPrecedeEndDate" && (R.value = null), t(v.FORM_DATE, {
836
- startDate: r.startDate,
837
- endDate: r.endDate,
838
- startTime: s.startTime ?? e.dateFormData.startTime,
839
- endTime: n
840
- }), t(v.INPUT, {
841
- ...r,
842
- range: E.value
843
- });
844
- }, fa = (n) => {
845
- s.startTime = n;
846
- }, ga = (n) => {
847
- s.endTime = n;
848
- }, se = (n, i, u, d) => {
849
- r.startDate = n, r.endDate = i, u && (r.granularity = u), d && (r.range = d);
850
- }, ya = (n) => {
851
- var u;
852
- const i = (u = e.quickSelectRanges) == null ? void 0 : u.find(({ value: d }) => d === n);
853
- if (i) {
854
- b();
855
- const d = i.data, A = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : z(new Date(Date.now()))), h = d.isRelativeToNow && d.timeDifference ? new Date(A.getTime() - d.timeDifference) : d.startDate;
856
- s.endDate = k(A), s.startDate = k(h), se(h, A, null, n), e.granularities && (r.granularity = d.granularity || U.value), s.startTime = x(h), s.endTime = x(A), r.startDate = h, r.endDate = A, d.isRelativeToNow && (g.value = {
857
- ...g.value,
858
- [n]: {
859
- startDate: h,
860
- endDate: A
861
- }
862
- }), t(v.CUSTOM_RANGE, {
863
- ...i.data,
864
- startDate: h,
865
- endDate: A,
866
- range: i.value
867
- });
868
- }
869
- }, Oe = {
870
- weekly: ue,
871
- monthly: W,
872
- quarterly: J
873
- }, ha = (n) => {
874
- const i = r.granularity;
875
- if (r.granularity = n, i && me(i, structuredClone(ke(r))), r.startDate && r.endDate) {
876
- switch (n) {
877
- case "quarterly":
878
- case "monthly":
879
- case "weekly": {
880
- if (I[n]) {
881
- se(I[n].startDate, I[n].endDate, n);
882
- break;
883
- }
884
- const { startDate: u, endDate: d } = Oe[n](
885
- r.startDate,
886
- r.endDate,
887
- Y.value.min,
888
- Y.value.max
889
- );
890
- se(u, d, n);
891
- break;
892
- }
893
- case "daily":
894
- I.daily && se(I.daily.startDate, I.daily.endDate, n);
895
- break;
896
- }
897
- s.startDate = k(r.startDate), s.endDate = k(r.endDate), t(v.INPUT, {
898
- ...r,
899
- range: E.value
900
- });
901
- }
902
- }, Ma = m(() => ({
903
- "b-date-range-picker-calendar__form-container--no-calendars": w.value
904
- })), Ta = m(() => {
905
- const n = V.value, i = (n == null ? void 0 : n.maxRange) || e.maxRange;
906
- if (!i)
907
- return null;
908
- const u = D[(n == null ? void 0 : n.type) ?? "daily"];
909
- return Q(u, i, { count: i });
910
- });
911
- return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: l, maxRangeMessageKeyMap: D, props: e, emit: t, slots: f, hasSlot: T, t: P, tc: Q, isTouchDevice: M, dateFormat: ie, isFormatValid: ae, parseDate: p, onKeyDown: G, autoFormat: S, formatDateUtil: N, calculatedIsRelativeToNowQuickSelectRanges: g, defaultGranularity: U, hasNoCalendars: w, internalRangeDate: r, selectedRangeSelectorValue: E, quickSelectRangeDefaultItems: $, selectedGranularity: V, granularityItems: Me, getGranularCalendarLimits: te, computedMinMax: Y, adjustDateForQuarterly: J, adjustDateForMonthly: W, adjustDateForWeekly: ue, adjustStartDateInputForWeekly: de, adjustEndDateInputForWeekly: Z, adjustStartDateInputForMonthly: ce, adjustEndDateInputForMonthly: ee, adjustStartDateInputForQuarterly: H, adjustEndDateInputForQuarterly: F, savedRanges: I, saveRange: me, resetSavedRanges: b, formatDate: k, startDateError: R, endDateError: y, startDateErrorText: ne, endDateErrorText: De, startSharedError: Fe, endSharedError: xe, getDateErrorMessage: O, dateTextInput: s, isValidTime: pe, isMonthVariant: j, formatNativeDate: c, nativeStartDate: K, nativeEndDate: re, dateInputType: na, startDateValue: ra, endDateValue: sa, setTimeInDateRef: q, onDateInput: oa, isValidDate: X, onStartDateSelected: la, onEndDateSelected: ia, getDate: ve, validateStartDate: Te, validateStartDateDebounced: Pe, onStartDateInput: ua, validateEndDate: Re, validateEndDateDebounced: we, onEndDateInput: da, onDateInputKeyDown: ca, onStartTimeError: ma, onStartTimeValid: Da, onEndTimeError: pa, onEndTimeValid: va, onStartTimeInput: fa, onEndTimeInput: ga, setInternalRange: se, onRangeSelectorInput: ya, adjustDate: Oe, onGranularityInput: ha, computedFormContainerClasses: Ma, maxRangeMessage: Ta, Calendar: L, DateTimeInput: dt, BentoAlert: _a, BentoTypography: ta, BentoDropdown: Sa, BentoSegmentedControl: Fa };
912
- }
913
- });
914
- var ft = function() {
915
- var t = this, e = t._self._c, a = t._self._setupProxy;
916
- return e("div", { staticClass: "b-date-range-picker-calendar" }, [e("div", { staticClass: "b-date-range-picker-calendar__form-container", class: a.computedFormContainerClasses, attrs: { "data-testid": "date-range-picker-calendar-form-container" } }, [e("div", { staticClass: "b-date-range-picker-calendar__form" }, [a.hasSlot("title") ? [t._t("title")] : t._e(), t.quickSelectRanges ? e(a.BentoDropdown, { attrs: { "aria-label": a.t("customRange"), items: a.quickSelectRangeDefaultItems, "model-value": a.selectedRangeSelectorValue }, on: { "update:model-value": a.onRangeSelectorInput } }) : t._e(), t.granularities ? e(a.BentoSegmentedControl, { attrs: { items: a.granularityItems, "model-value": a.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": a.onGranularityInput } }) : t._e(), a.maxRangeMessage ? e(a.BentoAlert, { attrs: { variant: "tip" }, scopedSlots: t._u([{ key: "description", fn: function() {
917
- return [t._v(" " + t._s(a.maxRangeMessage) + " ")];
918
- }, proxy: !0 }], null, !1, 1192229622) }) : t._e(), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" From ")]), e(a.DateTimeInput, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "date-model-value": a.startDateValue, "date-props": {
919
- ariaLabel: a.t("dateFrom"),
920
- type: a.dateInputType,
921
- description: a.isTouchDevice ? void 0 : a.t(a.dateFormat),
922
- errorMessage: a.startDateErrorText
923
- }, "error-message": a.startSharedError, "show-time-input": t.allowTimeInput, "time-model-value": a.dateTextInput.startTime, "time-props": {
924
- ariaLabel: a.t("timeFrom"),
925
- errorMessage: a.startSharedError
926
- } }, on: { "update:date-model-value": a.onStartDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onStartTimeInput, "time:error": a.onStartTimeError, "time:valid": a.onStartTimeValid } })], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" To ")]), e(a.DateTimeInput, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "date-model-value": a.endDateValue, "date-props": {
927
- ariaLabel: a.t("dateTo"),
928
- type: a.dateInputType,
929
- description: a.isTouchDevice ? void 0 : a.t(a.dateFormat),
930
- errorMessage: a.endDateErrorText
931
- }, "error-message": a.endSharedError, "show-time-input": t.allowTimeInput, "time-model-value": a.dateTextInput.endTime, "time-props": {
932
- ariaLabel: a.t("timeTo"),
933
- errorMessage: a.endSharedError
934
- } }, on: { "update:date-model-value": a.onEndDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onEndTimeInput, "time:error": a.onEndTimeError, "time:valid": a.onEndTimeValid } })], 1)], 2), a.hasSlot("actions") ? e("div", [t._t("actions")], 2) : t._e()]), !a.hasNoCalendars && !a.isTouchDevice ? e("div", { staticClass: "b-date-range-picker-calendar__calendars-container", attrs: { "data-testid": "date-range-picker-calendar-calendar-container" } }, [e(a.Calendar, { attrs: { value: a.internalRangeDate, "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: a.computedMinMax.min, max: a.computedMinMax.max, "number-of-months": t.numberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, granularity: a.selectedGranularity, variant: t.variant, "year-range": t.yearRange, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1) : t._e()]);
935
- }, gt = [], yt = /* @__PURE__ */ Ee(
936
- vt,
937
- ft,
938
- gt,
939
- !1,
940
- null,
941
- "ba8e68ea"
942
- );
943
- const ht = yt.exports, Mt = {
944
- "de-DE": {
945
- apply: "Anwenden",
946
- cancel: "Abbrechen",
947
- dateRangePicker: "Datumsbereichauswahl {name}",
948
- invalidDateFormat: "Ungültiges Datumsformat",
949
- quarter: "Q{quarter} {year}",
950
- selectDate: "Wählen Sie ein Datum",
951
- selectDateRange: "Wählen Sie einen Datumsbereich aus",
952
- selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar"
953
- },
954
- "en-GB": {
955
- apply: "Apply",
956
- cancel: "Cancel",
957
- dateRangePicker: "Date range picker {name}",
958
- invalidDateFormat: "Invalid date format",
959
- quarter: "Q{quarter} {year}",
960
- selectDate: "Select a date",
961
- selectDateRange: "Select a date range",
962
- selectedDateIsNotAvailable: "Selected date is not available"
963
- },
964
- "en-US": {
965
- apply: "Apply",
966
- cancel: "Cancel",
967
- dateRangePicker: "Date range picker {name}",
968
- invalidDateFormat: "Invalid date format",
969
- quarter: "Q{quarter} {year}",
970
- selectDate: "Select a date",
971
- selectDateRange: "Select a date range",
972
- selectedDateIsNotAvailable: "Selected date is not available"
973
- },
974
- "es-419": {
975
- apply: "Aplicar",
976
- cancel: "Cancelar",
977
- dateRangePicker: "Selector de intervalos de fechas {name}",
978
- invalidDateFormat: "Formato de fecha no válido",
979
- quarter: "T{quarter} {year}",
980
- selectDate: "Selecciona una fecha",
981
- selectDateRange: "Selecciona un rango de fechas",
982
- selectedDateIsNotAvailable: "La fecha seleccionada no está disponible"
983
- },
984
- "es-ES": {
985
- apply: "Aplicar",
986
- cancel: "Cancelar",
987
- dateRangePicker: "Selector de intervalos de fechas {name}",
988
- invalidDateFormat: "Formato de fecha no válido",
989
- quarter: "T{quarter} {year}",
990
- selectDate: "Selecciona una fecha",
991
- selectDateRange: "Selecciona un rango de fechas",
992
- selectedDateIsNotAvailable: "La fecha seleccionada no está disponible"
993
- },
994
- "es-MX": {
995
- apply: "Aplicar",
996
- cancel: "Cancelar",
997
- dateRangePicker: "Selector de intervalos de fechas {name}",
998
- invalidDateFormat: "Formato de fecha no válido",
999
- quarter: "T{quarter} {year}",
1000
- selectDate: "Selecciona una fecha",
1001
- selectDateRange: "Selecciona un rango de fechas",
1002
- selectedDateIsNotAvailable: "La fecha seleccionada no está disponible"
1003
- },
1004
- "fr-FR": {
1005
- apply: "Appliquer",
1006
- cancel: "Annuler",
1007
- dateRangePicker: "Sélecteur de plages de dates {name}",
1008
- invalidDateFormat: "Format de date non valide",
1009
- quarter: "T{quarter} {year}",
1010
- selectDate: "Sélectionnez une date",
1011
- selectDateRange: "Sélectionnez une plage de dates",
1012
- selectedDateIsNotAvailable: "La date sélectionnée n’est pas disponible"
1013
- },
1014
- "it-IT": {
1015
- apply: "Applica",
1016
- cancel: "Annulla",
1017
- dateRangePicker: "Selettore intervallo di date {name}",
1018
- invalidDateFormat: "Formato data non valido",
1019
- quarter: "Q{quarter} {year}",
1020
- selectDate: "Seleziona una data",
1021
- selectDateRange: "Seleziona un intervallo di date",
1022
- selectedDateIsNotAvailable: "La data selezionata non è disponibile"
1023
- },
1024
- "ja-JP": {
1025
- apply: "適用",
1026
- cancel: "キャンセル",
1027
- dateRangePicker: "日付範囲ピッカー {name}",
1028
- invalidDateFormat: "無効な日付形式",
1029
- quarter: "{year}年第{quarter}四半期",
1030
- selectDate: "日付を選択",
1031
- selectDateRange: "日付範囲を選択",
1032
- selectedDateIsNotAvailable: "選択した日付は利用できません"
1033
- },
1034
- "pt-BR": {
1035
- apply: "Aplicar",
1036
- cancel: "Cancelar",
1037
- dateRangePicker: "Seletor de intervalo de datas {name}",
1038
- invalidDateFormat: "Formato de data inválido",
1039
- quarter: "{quarter}º trimestre de {year}",
1040
- selectDate: "Selecione uma data",
1041
- selectDateRange: "Selecione um intervalo de datas",
1042
- selectedDateIsNotAvailable: "A data selecionada não está disponível"
1043
- },
1044
- "zh-CN": {
1045
- apply: "应用",
1046
- cancel: "取消",
1047
- dateRangePicker: "日期范围选择器 {name}",
1048
- invalidDateFormat: "日期格式无效",
1049
- quarter: "{year} {quarter} 季度",
1050
- selectDate: "选择日期",
1051
- selectDateRange: "选择日期范围",
1052
- selectedDateIsNotAvailable: "所选日期不可用"
1053
- }
1054
- }, Tt = ({
1055
- datePickerValue: o,
1056
- isDateIncorrect: t,
1057
- quickSelectRanges: e,
1058
- isMonthVariant: a,
1059
- withTimeInput: l,
1060
- placeholder: D
1061
- }) => {
1062
- const { locale: f, t: T } = _e(), { dateToInputDateString: P } = Se(), Q = (p) => !!p && !isNaN(p.getTime()), M = ye({
1063
- startDate: null,
1064
- endDate: null,
1065
- startTime: null,
1066
- endTime: null
1067
- });
1068
- return ge(
1069
- o,
1070
- (p) => {
1071
- M.startDate = P(p == null ? void 0 : p.startDate), M.endDate = P(p == null ? void 0 : p.endDate), M.startTime = x(p == null ? void 0 : p.startDate), M.endTime = x(p == null ? void 0 : p.endDate);
1072
- },
1073
- { immediate: !0 }
1074
- ), {
1075
- // Values
1076
- dateDisplayValue: m(() => {
1077
- var G;
1078
- if (t.value)
1079
- return `${M.startDate || ""} - ${M.endDate || ""}`;
1080
- if (!o.value || !o.value.startDate && !o.value.endDate)
1081
- return (D == null ? void 0 : D.value) || T("selectDateRange");
1082
- if ((G = e.value) != null && G.length) {
1083
- const S = e.value.find(({ value: N }) => {
1084
- var g;
1085
- return N === ((g = o.value) == null ? void 0 : g.range);
1086
- });
1087
- if (S)
1088
- return S.label;
1089
- }
1090
- if (o.value.granularity === "quarterly") {
1091
- const { startDate: S, endDate: N } = o.value, g = T("quarter", { quarter: $e(S), year: Ze(S) });
1092
- if (nt(S, N))
1093
- return g;
1094
- const U = T("quarter", { quarter: $e(N), year: Ze(N) });
1095
- return `${g} - ${U}`;
1096
- }
1097
- if (!Q(o.value.startDate) || !Q(o.value.endDate))
1098
- return `${M.startDate || ""} - ${M.endDate || ""}`;
1099
- let p = a != null && a.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
1100
- return l.value && (p = {
1101
- ...p,
1102
- hour: "numeric",
1103
- minute: "numeric",
1104
- second: "numeric",
1105
- hour12: !1
1106
- }), Wa(f.value, p).formatRange(
1107
- o.value.startDate,
1108
- o.value.endDate
1109
- );
1110
- }),
1111
- textInputDisplayValue: M,
1112
- // Methods
1113
- formatTextInputDisplayValue: () => ""
1114
- };
1115
- }, Rt = {
1116
- i18n: { messages: Mt },
1117
- name: "bento-date-range-picker",
1118
- model: { prop: "modelValue" }
1119
- }, Yt = /* @__PURE__ */ Ie({
1120
- ...Rt,
1121
- props: {
1122
- description: { default: void 0 },
1123
- disabled: { type: Boolean, default: !1 },
1124
- errorMessage: { default: null },
1125
- label: { default: void 0 },
1126
- optional: { type: Boolean, default: !1 },
1127
- placeholder: { default: null },
1128
- readonly: { type: Boolean, default: !1 },
1129
- required: { type: Boolean, default: !1 },
1130
- tooltipText: { default: null },
1131
- allowTimeInput: { type: Boolean },
1132
- firstDayOfWeek: { default: void 0 },
1133
- granularities: null,
1134
- isDateDisabled: { default: void 0 },
1135
- showEndDateOnOpen: { type: Boolean, default: !1 },
1136
- quickSelectRanges: { default: void 0 },
1137
- maxRange: { default: null },
1138
- min: { default: null },
1139
- max: { default: null },
1140
- numberOfMonths: { default: void 0 },
1141
- modelValue: { default: null },
1142
- value: { default: null },
1143
- variant: { default: void 0 },
1144
- yearRange: { default: void 0 },
1145
- hasActions: { type: Boolean, default: !1 }
1146
- },
1147
- emits: ["update:model-value", "input"],
1148
- setup(o, { emit: t }) {
1149
- const e = o, a = Ya(), { t: l } = _e(), { dateToInputDateString: D } = Se(), f = oe("bento-date-range-picker-container"), T = oe("bento-date-range-picker-label"), P = oe("bento-date-range-picker-description"), Q = oe("bento-date-range-picker-error"), M = oe("bento-date-range-picker-date-error"), ie = m(() => e.label || l("dateRangePicker", { name: f })), { resolvedFirstDayOfWeek: ae } = Pa(Ye(e, "firstDayOfWeek")), p = ba({
1150
- none: 0,
1151
- one: 710,
1152
- // width of date range picker with one panes
1153
- two: 1030,
1154
- // width of date range picker with two panes
1155
- three: 1290
1156
- // width of date range picker with three panes
1157
- }), G = m(() => {
1158
- const c = p.active().value, K = {
1159
- none: 0,
1160
- one: 1,
1161
- two: 2
1162
- };
1163
- if (c in K) {
1164
- const re = K[c];
1165
- return e.numberOfMonths === void 0 ? re : Math.min(e.numberOfMonths, re);
1166
- }
1167
- return e.numberOfMonths;
1168
- }), S = m(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((c) => {
1169
- const K = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
1170
- return {
1171
- ...c,
1172
- data: {
1173
- ...c.data,
1174
- // Adding timeDifference to calculate an up-to-date endDate on range selection
1175
- timeDifference: K
1176
- }
1177
- };
1178
- })), N = m(() => e.label ? T : (a == null ? void 0 : a["aria-labelledby"]) ?? null), g = B(!1), U = B(null), w = B(!1), { isReadOnly: r } = Ka(Ye(e, "readonly")), { emitValue: E } = Xa(t);
1179
- ge(
1180
- () => e.disabled,
1181
- () => {
1182
- e.disabled && w.value && (w.value = !1);
1183
- }
1184
- );
1185
- const $ = m(() => e.modelValue || e.value), V = m(() => e.hasActions ? !I.value && g.value : g.value), Me = m(() => ({
1186
- "b-date-range-picker__description--error": !!e.errorMessage || V.value
1187
- })), te = m(() => e.variant === "month"), Y = m(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: J, textInputDisplayValue: W, formatTextInputDisplayValue: ue } = Tt({
1188
- datePickerValue: $,
1189
- isDateIncorrect: g,
1190
- quickSelectRanges: S,
1191
- isMonthVariant: te,
1192
- withTimeInput: Y,
1193
- placeholder: Ye(e, "placeholder")
1194
- }), de = m(
1195
- () => `${e.description ? P : ""} ${e.errorMessage ? Q : ""} ${g.value ? M : ""}`.trim() || null
1196
- ), Z = () => {
1197
- w.value = !1;
1198
- }, ce = () => {
1199
- w.value = !0;
1200
- }, ee = B(J.value), H = B(
1201
- // textInputDisplayValue is a reactive object
1202
- structuredClone(ke(W))
1203
- ), F = B(e.modelValue ?? e.value), I = B(!0), me = m(
1204
- () => e.hasActions ? F.value : $.value
1205
- ), b = B(
1206
- e.hasActions ? H.value : W
1207
- ), k = m(
1208
- () => e.hasActions ? ee.value : J.value
1209
- ), R = {
1210
- allowOutsideClick: !0
1211
- };
1212
- aa(() => {
1213
- if (e.hasActions || Qe(
1214
- 'BentoDateRangePicker "hasActions" property',
1215
- `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
1216
- This will be the default behavior in the v2 and "hasActions" will be removed.`,
1217
- "2.0.0"
1218
- ), e.value && Qe(
1219
- 'BentoDateRangePicker "value" property',
1220
- 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
1221
- "2.0.0"
1222
- ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: c }) => c === "quarterly"))
1223
- throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
1224
- });
1225
- const y = () => {
1226
- ee.value = J.value, H.value = structuredClone(ke(W)), b.value = e.hasActions ? H.value : W, F.value = $.value;
1227
- };
1228
- ge([() => e.value, () => e.modelValue], () => {
1229
- y();
1230
- });
1231
- const ne = () => {
1232
- y(), g.value = !1, I.value = !0, Z();
1233
- }, De = m(() => [
1234
- {
1235
- title: l("apply"),
1236
- event: () => {
1237
- E(F.value), Z(), I.value = !0;
1238
- },
1239
- disabled: I.value
1240
- },
1241
- {
1242
- title: l("cancel"),
1243
- event: ne
1244
- }
1245
- ]);
1246
- return ge(F, (c) => {
1247
- if (e.hasActions) {
1248
- I.value = g.value || c === $.value;
1249
- return;
1250
- }
1251
- E(c);
1252
- }), { __sfc: !0, emit: t, props: e, attrs: a, t: l, dateToInputDateString: D, datePickerContainerId: f, labelId: T, descriptionId: P, errorId: Q, dateErrorId: M, popoverAriaLabel: ie, resolvedFirstDayOfWeek: ae, breakpoints: p, computedNumberOfMonths: G, adjustedQuickSelectRanges: S, dropdownInputAriaLabelledBy: N, isDateIncorrect: g, inputContainerRef: U, isDateRangePickerOpen: w, isReadOnly: r, emitValue: E, internalModelValue: $, shouldDisplayError: V, descriptionConditionalClasses: Me, isMonthVariant: te, withTimeInput: Y, dateDisplayValue: J, textInputDisplayValue: W, formatTextInputDisplayValue: ue, ariaDescribedBy: de, closeDateRangePicker: Z, openDateRangePicker: ce, localDateDisplayValue: ee, localTextInputDisplayValue: H, selectedDate: F, isApplyDisabled: I, dateRangePickerCalendarValue: me, displayedTextInputValue: b, displayedDateValue: k, trapAllOptions: R, syncLocalDisplayStateFromCommittedValue: y, cancelDateRangePicker: ne, rangePickerButtonActions: De, onDateRangePickerInput: (c) => {
1253
- g.value = !1, b.value.startDate = D(c.startDate), b.value.endDate = D(c.endDate), b.value.startTime = x(c.startDate), b.value.endTime = x(c.endDate), F.value = c;
1254
- }, clearDateRangePickerValue: async () => {
1255
- g.value && (g.value = !1), F.value = null;
1256
- }, onEnterPressedOverInput: () => {
1257
- if (!w.value) {
1258
- w.value = !0;
1259
- return;
1260
- }
1261
- g.value || (w.value = !1);
1262
- }, onDateRangePickerFormDateInputUpdate: (c) => {
1263
- g.value = !1, c.startTime && (b.value.startTime = c.startTime), c.endTime && (b.value.endTime = c.endTime);
1264
- }, onDateRangePickerError: (c) => {
1265
- g.value = !0, b.value.startDate = c.startDate, b.value.endDate = c.endDate, F.value = { startDate: null, endDate: null };
1266
- }, onRangeSelectorInput: (c) => {
1267
- c && (b.value.startDate = D(c.startDate), b.value.endDate = D(c.endDate), b.value.startTime = x(c.startDate), b.value.endTime = x(c.endDate), F.value = c);
1268
- }, BentoButtonActions: Ia, BentoButtonActionsLayout: tt, BentoDivider: Aa, BentoPopover: ka, BentoTypography: ta, DateRangePickerCalendar: ht, DropdownInputDefault: Ea, ErrorMessage: at, FieldLabel: et, vBentoClickOutsideDirective: Za };
1269
- }
1270
- });
1271
- var bt = function() {
1272
- var t = this, e = t._self._c, a = t._self._setupProxy;
1273
- return e("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: a.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [t.label ? e(a.FieldLabel, { attrs: { id: a.labelId, label: t.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), e("div", { on: { keydown: function(l) {
1274
- return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
1275
- } } }, [e(a.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: a.datePickerContainerId, ariaExpanded: a.isDateRangePickerOpen, "aria-labelledby": a.dropdownInputAriaLabelledBy, "aria-describedby": a.ariaDescribedBy, "aria-required": t.required, disabled: t.disabled, "is-invalid": !!t.errorMessage || a.shouldDisplayError, open: a.isDateRangePickerOpen, "display-value": a.displayedDateValue, readonly: a.isReadOnly }, on: { open: a.openDateRangePicker, clear: a.clearDateRangePickerValue, close: a.closeDateRangePicker } })], 1), a.shouldDisplayError ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.dateErrorId, "error-message": a.t("invalidDateFormat") } }) : t._e(), t.errorMessage ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.errorId, "error-message": t.errorMessage } }) : t._e(), t.description ? e(a.BentoTypography, { staticClass: "b-date-range-picker__description", class: a.descriptionConditionalClasses, attrs: { id: a.descriptionId, el: "span" } }, [t._v(" " + t._s(t.description) + " ")]) : t._e(), a.inputContainerRef ? e(a.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: a.datePickerContainerId, open: a.isDateRangePickerOpen, "target-element": a.inputContainerRef, "aria-label": a.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "", "trap-all": "", "overflow-visible": "", "trap-all-options": a.trapAllOptions }, nativeOn: { keydown: function(l) {
1276
- return !l.type.indexOf("key") && t._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : a.closeDateRangePicker.apply(null, arguments);
1277
- } } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.dateRangePickerCalendarValue, "first-day-of-week": a.resolvedFirstDayOfWeek, granularities: t.granularities, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: t.min, max: t.max, "number-of-months": a.computedNumberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, "date-form-data": a.displayedTextInputValue, variant: t.variant, "year-range": t.yearRange }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([t.hasActions ? { key: "actions", fn: function() {
1278
- return [e(a.BentoDivider), e("div", { staticClass: "b-date-range-picker__footer" }, [e(a.BentoButtonActions, { attrs: { actions: a.rangePickerButtonActions, layout: a.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
1279
- }, proxy: !0 } : null], null, !0) })], 1) : t._e()], 1);
1280
- }, At = [], kt = /* @__PURE__ */ Ee(
1281
- Yt,
1282
- bt,
1283
- At,
1284
- !1,
1285
- null,
1286
- "b697e0dc"
1287
- );
1288
- const rn = kt.exports;
1289
- export {
1290
- rn as B,
1291
- ht as D,
1292
- rt as a,
1293
- be as i
1294
- };
1295
- //# sourceMappingURL=date-range-picker.BzVQsYk4.js.map