@adyen/bento-vue3 1.85.0 → 1.86.1

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 (373) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +358 -260
  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 +5 -0
  8. package/dist/anchor-scroller.js.map +1 -0
  9. package/dist/assets/accordion-item.css +1 -1
  10. package/dist/assets/action-bar.css +1 -1
  11. package/dist/assets/anchor-scroller.css +1 -0
  12. package/dist/assets/base-modal.css +1 -1
  13. package/dist/assets/button-actions.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/data-grid.css +1 -1
  16. package/dist/assets/date-picker.css +1 -1
  17. package/dist/assets/date-range-picker.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/dropdown-default-textbox.css +1 -1
  20. package/dist/assets/dropdown.css +1 -1
  21. package/dist/assets/error-message.css +1 -0
  22. package/dist/assets/file-uploader.css +1 -1
  23. package/dist/assets/fixed-scroller.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/modal-fullscreen.css +1 -1
  26. package/dist/assets/secondary-nav.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/use-cached-selected-values.css +1 -1
  29. package/dist/avatar.js +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +6 -6
  33. package/dist/chip.js +1 -1
  34. package/dist/chunks/{accordion-item.yRlQj4VF.js → accordion-item.QQ06tTjt.js} +8 -8
  35. package/dist/chunks/{accordion-item.yRlQj4VF.js.map → accordion-item.QQ06tTjt.js.map} +1 -1
  36. package/dist/chunks/{action-bar.BlhZoFfL.js → action-bar.g7rM3wUc.js} +15 -15
  37. package/dist/chunks/{action-bar.BlhZoFfL.js.map → action-bar.g7rM3wUc.js.map} +1 -1
  38. package/dist/chunks/{ai-button.PAbhTT01.js → ai-button.XfeGC4-Q.js} +6 -6
  39. package/dist/chunks/{ai-button.PAbhTT01.js.map → ai-button.XfeGC4-Q.js.map} +1 -1
  40. package/dist/chunks/{ai-tag.CqMBHSfn.js → ai-tag.UlRkq54l.js} +34 -26
  41. package/dist/chunks/{ai-tag.CqMBHSfn.js.map → ai-tag.UlRkq54l.js.map} +1 -1
  42. package/dist/chunks/{alert.BYcw-u3b.js → alert.CDWtu0Hu.js} +11 -11
  43. package/dist/chunks/{alert.BYcw-u3b.js.map → alert.CDWtu0Hu.js.map} +1 -1
  44. package/dist/chunks/anchor-scroller.CKIQu3NK.js +215 -0
  45. package/dist/chunks/anchor-scroller.CKIQu3NK.js.map +1 -0
  46. package/dist/chunks/{arrow-left.DoP6zFsY.js → arrow-left.C6UiqO-c.js} +5 -5
  47. package/dist/chunks/{arrow-left.DoP6zFsY.js.map → arrow-left.C6UiqO-c.js.map} +1 -1
  48. package/dist/chunks/{arrow-right.BVd1Dgd8.js → arrow-right.fSdLV_ho.js} +5 -5
  49. package/dist/chunks/{arrow-right.BVd1Dgd8.js.map → arrow-right.fSdLV_ho.js.map} +1 -1
  50. package/dist/chunks/{artificial-intelligence-ai-filled.G_Yr_37U.js → artificial-intelligence-ai-filled.AhDHffzT.js} +4 -4
  51. package/dist/chunks/{artificial-intelligence-ai-filled.G_Yr_37U.js.map → artificial-intelligence-ai-filled.AhDHffzT.js.map} +1 -1
  52. package/dist/chunks/{avatar.CNGMjwg3.js → avatar.Caeba-pw.js} +3 -3
  53. package/dist/chunks/{avatar.CNGMjwg3.js.map → avatar.Caeba-pw.js.map} +1 -1
  54. package/dist/chunks/{base-button.CUd03aA2.js → base-button.CRYAiuzn.js} +9 -9
  55. package/dist/chunks/{base-button.CUd03aA2.js.map → base-button.CRYAiuzn.js.map} +1 -1
  56. package/dist/chunks/{base-modal.CNETR72d.js → base-modal.D5HrjwL1.js} +23 -23
  57. package/dist/chunks/{base-modal.CNETR72d.js.map → base-modal.D5HrjwL1.js.map} +1 -1
  58. package/dist/chunks/{bin.DuHlEQBO.js → bin.Cude0fiB.js} +4 -4
  59. package/dist/chunks/{bin.DuHlEQBO.js.map → bin.Cude0fiB.js.map} +1 -1
  60. package/dist/chunks/{button-actions-with-menu.DY0pTtk-.js → button-actions-with-menu.DBqA3Ws5.js} +7 -7
  61. package/dist/chunks/{button-actions-with-menu.DY0pTtk-.js.map → button-actions-with-menu.DBqA3Ws5.js.map} +1 -1
  62. package/dist/chunks/{button-actions.Dk8xU2cz.js → button-actions.BH-J7dux.js} +17 -17
  63. package/dist/chunks/{button-actions.Dk8xU2cz.js.map → button-actions.BH-J7dux.js.map} +1 -1
  64. package/dist/chunks/{button.CSp48LJt.js → button.C6t9_lzm.js} +12 -12
  65. package/dist/chunks/{button.CSp48LJt.js.map → button.C6t9_lzm.js.map} +1 -1
  66. package/dist/chunks/{calendar.Dbc0yjyg.js → calendar.DzeJoNc2.js} +11 -11
  67. package/dist/chunks/{calendar.Dbc0yjyg.js.map → calendar.DzeJoNc2.js.map} +1 -1
  68. package/dist/chunks/{card.C7LbwK7Q.js → card.DcXXdxWL.js} +7 -7
  69. package/dist/chunks/{card.C7LbwK7Q.js.map → card.DcXXdxWL.js.map} +1 -1
  70. package/dist/chunks/{checkbox-group.CCpe-S-E.js → checkbox-group.Bh_aqKoA.js} +11 -11
  71. package/dist/chunks/{checkbox-group.CCpe-S-E.js.map → checkbox-group.Bh_aqKoA.js.map} +1 -1
  72. package/dist/chunks/{checkbox-input.Dk9iFQQe.js → checkbox-input.BZjSoCQW.js} +4 -4
  73. package/dist/chunks/{checkbox-input.Dk9iFQQe.js.map → checkbox-input.BZjSoCQW.js.map} +1 -1
  74. package/dist/chunks/{checkbox.A35e7MsN.js → checkbox.7kpOXm-b.js} +22 -22
  75. package/dist/chunks/{checkbox.A35e7MsN.js.map → checkbox.7kpOXm-b.js.map} +1 -1
  76. package/dist/chunks/{checkmark-circle-fill._6-d40ru.js → checkmark-circle-fill.DugX5fbG.js} +4 -4
  77. package/dist/chunks/{checkmark-circle-fill._6-d40ru.js.map → checkmark-circle-fill.DugX5fbG.js.map} +1 -1
  78. package/dist/chunks/{checkmark-small.x-gmK2Dt.js → checkmark-small.CRuZauJc.js} +5 -5
  79. package/dist/chunks/{checkmark-small.x-gmK2Dt.js.map → checkmark-small.CRuZauJc.js.map} +1 -1
  80. package/dist/chunks/{chevron-down.DCQ6ZLaq.js → chevron-down.XeE-LBV_.js} +5 -5
  81. package/dist/chunks/{chevron-down.DCQ6ZLaq.js.map → chevron-down.XeE-LBV_.js.map} +1 -1
  82. package/dist/chunks/{chevron-left.Cfn1uGLH.js → chevron-left.C_vPW7OR.js} +8 -8
  83. package/dist/chunks/{chevron-left.Cfn1uGLH.js.map → chevron-left.C_vPW7OR.js.map} +1 -1
  84. package/dist/chunks/{chevron-up.kfuLRpZb.js → chevron-up.Cmgl2a3x.js} +5 -5
  85. package/dist/chunks/{chevron-up.kfuLRpZb.js.map → chevron-up.Cmgl2a3x.js.map} +1 -1
  86. package/dist/chunks/{chip.eefnwpgE.js → chip.CyW1V8RU.js} +7 -7
  87. package/dist/chunks/{chip.eefnwpgE.js.map → chip.CyW1V8RU.js.map} +1 -1
  88. package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
  89. package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
  90. package/dist/chunks/{code-snippet.DKkTjYdC.js → code-snippet.UIqVTv4U.js} +15 -15
  91. package/dist/chunks/{code-snippet.DKkTjYdC.js.map → code-snippet.UIqVTv4U.js.map} +1 -1
  92. package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
  93. package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
  94. package/dist/chunks/{controls-group.BHOKajou.js → controls-group.Dip3WAKV.js} +10 -10
  95. package/dist/chunks/{controls-group.BHOKajou.js.map → controls-group.Dip3WAKV.js.map} +1 -1
  96. package/dist/chunks/{copy.CgITv6wr.js → copy.ByyQlckP.js} +6 -6
  97. package/dist/chunks/{copy.CgITv6wr.js.map → copy.ByyQlckP.js.map} +1 -1
  98. package/dist/chunks/{country.vSfTQW51.js → country.DJts6kCv.js} +5 -5
  99. package/dist/chunks/{country.vSfTQW51.js.map → country.DJts6kCv.js.map} +1 -1
  100. package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
  101. package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
  102. package/dist/chunks/{cross-circle-fill-small.Dv5-PxwF.js → cross-circle-fill-small.H1wH-vcZ.js} +5 -5
  103. package/dist/chunks/{cross-circle-fill-small.Dv5-PxwF.js.map → cross-circle-fill-small.H1wH-vcZ.js.map} +1 -1
  104. package/dist/chunks/{cross-circle-fill.CYLL7jfC.js → cross-circle-fill.BWCKKn0E.js} +4 -4
  105. package/dist/chunks/{cross-circle-fill.CYLL7jfC.js.map → cross-circle-fill.BWCKKn0E.js.map} +1 -1
  106. package/dist/chunks/{cross-small.n1UO5wNB.js → cross-small.Bjq2Gqvh.js} +5 -5
  107. package/dist/chunks/{cross-small.n1UO5wNB.js.map → cross-small.Bjq2Gqvh.js.map} +1 -1
  108. package/dist/chunks/{cross.B92GxFTY.js → cross.CCHdi6v3.js} +5 -5
  109. package/dist/chunks/{cross.B92GxFTY.js.map → cross.CCHdi6v3.js.map} +1 -1
  110. package/dist/chunks/{currency.DijmAkAB.js → currency.Afx8MVdY.js} +4 -4
  111. package/dist/chunks/{currency.DijmAkAB.js.map → currency.Afx8MVdY.js.map} +1 -1
  112. package/dist/chunks/{dashboard-section.CrXdP_MQ.js → dashboard-section.CIHtXoeW.js} +8 -8
  113. package/dist/chunks/{dashboard-section.CrXdP_MQ.js.map → dashboard-section.CIHtXoeW.js.map} +1 -1
  114. package/dist/chunks/{dashed-underline.BzppJBtk.js → dashed-underline.CLwPU-C2.js} +14 -14
  115. package/dist/chunks/{dashed-underline.BzppJBtk.js.map → dashed-underline.CLwPU-C2.js.map} +1 -1
  116. package/dist/chunks/{data-grid-template.DFjdgxwb.js → data-grid-template.BTpSfkQt.js} +8 -8
  117. package/dist/chunks/{data-grid-template.DFjdgxwb.js.map → data-grid-template.BTpSfkQt.js.map} +1 -1
  118. package/dist/chunks/{data-grid.KkCt0Bgm.js → data-grid.kEhur6r-.js} +457 -453
  119. package/dist/chunks/data-grid.kEhur6r-.js.map +1 -0
  120. package/dist/chunks/date-input.XSJuuCHe.js +20 -0
  121. package/dist/chunks/date-input.XSJuuCHe.js.map +1 -0
  122. package/dist/chunks/{date-picker.dQuj_OF_.js → date-picker.CvTSZhMI.js} +82 -81
  123. package/dist/chunks/date-picker.CvTSZhMI.js.map +1 -0
  124. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  125. package/dist/chunks/date-range-picker.D0YqnZ86.js +1080 -0
  126. package/dist/chunks/{date-range-picker.BAKR_gDf.js.map → date-range-picker.D0YqnZ86.js.map} +1 -1
  127. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  128. package/dist/chunks/{date.CL55prL0.js → date.BtB1HyWQ.js} +4 -4
  129. package/dist/chunks/{date.CL55prL0.js.map → date.BtB1HyWQ.js.map} +1 -1
  130. package/dist/chunks/dialog-page.B3ptLXXP.js +162 -0
  131. package/dist/chunks/dialog-page.B3ptLXXP.js.map +1 -0
  132. package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
  133. package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
  134. package/dist/chunks/{divider.Dho4_hQ7.js → divider.BIY84UH7.js} +5 -5
  135. package/dist/chunks/{divider.Dho4_hQ7.js.map → divider.BIY84UH7.js.map} +1 -1
  136. package/dist/chunks/{dot.ob6N-5Um.js → dot.DBmwmOUN.js} +5 -5
  137. package/dist/chunks/{dot.ob6N-5Um.js.map → dot.DBmwmOUN.js.map} +1 -1
  138. package/dist/chunks/{dropdown-default-textbox.DFtFMu5G.js → dropdown-default-textbox.B-_dTUVX.js} +107 -117
  139. package/dist/chunks/dropdown-default-textbox.B-_dTUVX.js.map +1 -0
  140. package/dist/chunks/{dropdown-tag.CBgns9Y3.js → dropdown-tag.DDNOZhEG.js} +20 -20
  141. package/dist/chunks/{dropdown-tag.CBgns9Y3.js.map → dropdown-tag.DDNOZhEG.js.map} +1 -1
  142. package/dist/chunks/dropdown.CU6nfq3V.js +836 -0
  143. package/dist/chunks/dropdown.CU6nfq3V.js.map +1 -0
  144. package/dist/chunks/{empty-state.D_ifpeU-.js → empty-state.DqdPzU-g.js} +15 -15
  145. package/dist/chunks/{empty-state.D_ifpeU-.js.map → empty-state.DqdPzU-g.js.map} +1 -1
  146. package/dist/chunks/{field-label.OurHuGZS.js → error-message.BYA2_fPV.js} +67 -67
  147. package/dist/chunks/error-message.BYA2_fPV.js.map +1 -0
  148. package/dist/chunks/{expand.C9IAqYYL.js → expand.BrywY9jl.js} +4 -4
  149. package/dist/chunks/{expand.C9IAqYYL.js.map → expand.BrywY9jl.js.map} +1 -1
  150. package/dist/chunks/{file-uploader.CQgu9YIY.js → file-uploader.Q2ufNRTY.js} +79 -79
  151. package/dist/chunks/{file-uploader.CQgu9YIY.js.map → file-uploader.Q2ufNRTY.js.map} +1 -1
  152. package/dist/chunks/{filter-bar.BJmaoSr2.js → filter-bar.CkYOjRAa.js} +213 -205
  153. package/dist/chunks/{filter-bar.BJmaoSr2.js.map → filter-bar.CkYOjRAa.js.map} +1 -1
  154. package/dist/chunks/fixed-scroller.i1tmEmst.js +161 -0
  155. package/dist/chunks/{fixed-scroller.e56yJp7Q.js.map → fixed-scroller.i1tmEmst.js.map} +1 -1
  156. package/dist/chunks/{focus-trap.DH57j-Ov.js → focus-trap.CBvh2H_m.js} +294 -277
  157. package/dist/chunks/focus-trap.CBvh2H_m.js.map +1 -0
  158. package/dist/chunks/{footer-actions.BMggOsip.js → footer-actions.DLzMOB7j.js} +8 -8
  159. package/dist/chunks/{footer-actions.BMggOsip.js.map → footer-actions.DLzMOB7j.js.map} +1 -1
  160. package/dist/chunks/{form-layout-title.wnvpIbOe.js → form-layout-title.DYmTc6M7.js} +6 -6
  161. package/dist/chunks/{form-layout-title.wnvpIbOe.js.map → form-layout-title.DYmTc6M7.js.map} +1 -1
  162. package/dist/chunks/{grab.B63hmf-_.js → grab.DJYL4kBq.js} +5 -5
  163. package/dist/chunks/{grab.B63hmf-_.js.map → grab.DJYL4kBq.js.map} +1 -1
  164. package/dist/chunks/{grid-layout.DDaRNz4-.js → grid-layout.Vhv1_zFs.js} +21 -21
  165. package/dist/chunks/{grid-layout.DDaRNz4-.js.map → grid-layout.Vhv1_zFs.js.map} +1 -1
  166. package/dist/chunks/{header-meta.CkLmuprc.js → header-meta.Bw8ZGwJW.js} +13 -13
  167. package/dist/chunks/{header-meta.CkLmuprc.js.map → header-meta.Bw8ZGwJW.js.map} +1 -1
  168. package/dist/chunks/{header-with-views.BXZmqtnz.js → header-with-views.CJDoE4hw.js} +20 -20
  169. package/dist/chunks/{header-with-views.BXZmqtnz.js.map → header-with-views.CJDoE4hw.js.map} +1 -1
  170. package/dist/chunks/{header.RiaBKasj.js → header.BeH8KH_l.js} +14 -14
  171. package/dist/chunks/{header.RiaBKasj.js.map → header.BeH8KH_l.js.map} +1 -1
  172. package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js} +3 -3
  173. package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js.map} +1 -1
  174. package/dist/chunks/{index.pdBj0KQU.js → index.B875RXHM.js} +3 -3
  175. package/dist/chunks/{index.pdBj0KQU.js.map → index.B875RXHM.js.map} +1 -1
  176. package/dist/chunks/index.CbxHJr39.js +691 -0
  177. package/dist/chunks/{index.CL07S4Wa.js.map → index.CbxHJr39.js.map} +1 -1
  178. package/dist/chunks/{info-icon.B6wfo65e.js → info-icon.BLtyJvY4.js} +9 -9
  179. package/dist/chunks/{info-icon.B6wfo65e.js.map → info-icon.BLtyJvY4.js.map} +1 -1
  180. package/dist/chunks/{info.BKwey1HA.js → info.6Z6NxUst.js} +4 -4
  181. package/dist/chunks/{info.BKwey1HA.js.map → info.6Z6NxUst.js.map} +1 -1
  182. package/dist/chunks/{input-field-password.ClyJRN6h.js → input-field-password.KeKQPIZv.js} +21 -21
  183. package/dist/chunks/{input-field-password.ClyJRN6h.js.map → input-field-password.KeKQPIZv.js.map} +1 -1
  184. package/dist/chunks/{input-field-phone-number.CUdzwXz0.js → input-field-phone-number.eaU9p15A.js} +10 -10
  185. package/dist/chunks/{input-field-phone-number.CUdzwXz0.js.map → input-field-phone-number.eaU9p15A.js.map} +1 -1
  186. package/dist/chunks/{input-field.CFNofr-W.js → input-field.CNdqlGw6.js} +9 -9
  187. package/dist/chunks/{input-field.CFNofr-W.js.map → input-field.CNdqlGw6.js.map} +1 -1
  188. package/dist/chunks/{inspector.I4-8J_fd.js → inspector.Bnf0g7QE.js} +16 -16
  189. package/dist/chunks/{inspector.I4-8J_fd.js.map → inspector.Bnf0g7QE.js.map} +1 -1
  190. package/dist/chunks/{isSameWeek.5sjhTHiU.js → isSameWeek.DjeUtLwI.js} +2 -2
  191. package/dist/chunks/{isSameWeek.5sjhTHiU.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
  192. package/dist/chunks/{it.DEniTaO2.js → it.DIafuXtH.js} +2 -2
  193. package/dist/chunks/{it.DEniTaO2.js.map → it.DIafuXtH.js.map} +1 -1
  194. package/dist/chunks/{layout-row.Ccw24NzW.js → layout-row.Bz-mRqAq.js} +4 -4
  195. package/dist/chunks/{layout-row.Ccw24NzW.js.map → layout-row.Bz-mRqAq.js.map} +1 -1
  196. package/dist/chunks/{link.BLCQlEZU.js → link.DTCn2EtX.js} +11 -11
  197. package/dist/chunks/{link.BLCQlEZU.js.map → link.DTCn2EtX.js.map} +1 -1
  198. package/dist/chunks/{listbox-option-tag.BHQiD5oC.js → listbox-option-tag.C3ihNg6_.js} +9 -9
  199. package/dist/chunks/{listbox-option-tag.BHQiD5oC.js.map → listbox-option-tag.C3ihNg6_.js.map} +1 -1
  200. package/dist/chunks/{loading-indicator.Db794TT5.js → loading-indicator.BPol9I84.js} +3 -3
  201. package/dist/chunks/{loading-indicator.Db794TT5.js.map → loading-indicator.BPol9I84.js.map} +1 -1
  202. package/dist/chunks/{minus-small.DYIyF5XW.js → minus-small.CnYLTuSv.js} +5 -5
  203. package/dist/chunks/{minus-small.DYIyF5XW.js.map → minus-small.CnYLTuSv.js.map} +1 -1
  204. package/dist/chunks/{modal-fullscreen.f445bZ94.js → modal-fullscreen.B3AGUJgl.js} +100 -96
  205. package/dist/chunks/modal-fullscreen.B3AGUJgl.js.map +1 -0
  206. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js → modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js} +13 -13
  207. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js.map → modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js.map} +1 -1
  208. package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
  209. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
  210. package/dist/chunks/{pagination.DuRU9Xg_.js → pagination.lu9nx8j8.js} +10 -10
  211. package/dist/chunks/{pagination.DuRU9Xg_.js.map → pagination.lu9nx8j8.js.map} +1 -1
  212. package/dist/chunks/{payment-method.BGEBaa4w.js → payment-method.AeKHZlAO.js} +3 -3
  213. package/dist/chunks/{payment-method.BGEBaa4w.js.map → payment-method.AeKHZlAO.js.map} +1 -1
  214. package/dist/chunks/popover.types.C_Z2JeVK.js +6 -0
  215. package/dist/chunks/{popover.types.BbYumG-N.js.map → popover.types.C_Z2JeVK.js.map} +1 -1
  216. package/dist/chunks/popper-container.BefZxTzP.js +1432 -0
  217. package/dist/chunks/popper-container.BefZxTzP.js.map +1 -0
  218. package/dist/chunks/{promo-banner.DzIYjBfG.js → promo-banner.BLie64oS.js} +11 -11
  219. package/dist/chunks/{promo-banner.DzIYjBfG.js.map → promo-banner.BLie64oS.js.map} +1 -1
  220. package/dist/chunks/{radio-group.EqsvAKt2.js → radio-group.C6nQRQDB.js} +20 -20
  221. package/dist/chunks/{radio-group.EqsvAKt2.js.map → radio-group.C6nQRQDB.js.map} +1 -1
  222. package/dist/chunks/{radio-input.CBNE-AkM.js → radio-input.DektLjN4.js} +3 -3
  223. package/dist/chunks/{radio-input.CBNE-AkM.js.map → radio-input.DektLjN4.js.map} +1 -1
  224. package/dist/chunks/{refresh.BB4ouvz_.js → refresh.C31KClfx.js} +5 -5
  225. package/dist/chunks/{refresh.BB4ouvz_.js.map → refresh.C31KClfx.js.map} +1 -1
  226. package/dist/chunks/{rich-text-editor.-JS_rIjs.js → rich-text-editor.C39NKgl0.js} +11 -15
  227. package/dist/chunks/rich-text-editor.C39NKgl0.js.map +1 -0
  228. package/dist/chunks/{search-bar.DPc0omnd.js → search-bar.CbTrg2Sk.js} +10 -10
  229. package/dist/chunks/{search-bar.DPc0omnd.js.map → search-bar.CbTrg2Sk.js.map} +1 -1
  230. package/dist/chunks/{search.PczW-onY.js → search.ClLmZAgC.js} +4 -4
  231. package/dist/chunks/{search.PczW-onY.js.map → search.ClLmZAgC.js.map} +1 -1
  232. package/dist/chunks/{secondary-nav.BGKR8l0u.js → secondary-nav.DTOZQewf.js} +25 -25
  233. package/dist/chunks/secondary-nav.DTOZQewf.js.map +1 -0
  234. package/dist/chunks/{segmented-control.CFPAl4HD.js → segmented-control.D9rHBysM.js} +9 -9
  235. package/dist/chunks/{segmented-control.CFPAl4HD.js.map → segmented-control.D9rHBysM.js.map} +1 -1
  236. package/dist/chunks/{selection-card-group.BL0LTYhI.js → selection-card-group.KEsG0D5V.js} +9 -9
  237. package/dist/chunks/{selection-card-group.BL0LTYhI.js.map → selection-card-group.KEsG0D5V.js.map} +1 -1
  238. package/dist/chunks/{show.CT4Augxb.js → show.BreRPkgL.js} +6 -6
  239. package/dist/chunks/{show.CT4Augxb.js.map → show.BreRPkgL.js.map} +1 -1
  240. package/dist/chunks/{sidepanel.sWMdYcUC.js → sidepanel.DJCagqzl.js} +73 -69
  241. package/dist/chunks/sidepanel.DJCagqzl.js.map +1 -0
  242. package/dist/chunks/{startOfWeek.CM1KIrNi.js → startOfWeek.D8Yh4c0G.js} +3 -3
  243. package/dist/chunks/{startOfWeek.CM1KIrNi.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
  244. package/dist/chunks/{status.types.ChOI6XGU.js → status.types.D3v3k-Q8.js} +6 -6
  245. package/dist/chunks/{status.types.ChOI6XGU.js.map → status.types.D3v3k-Q8.js.map} +1 -1
  246. package/dist/chunks/{step.DpgnDx29.js → step.BV7MsrRF.js} +9 -9
  247. package/dist/chunks/{step.DpgnDx29.js.map → step.BV7MsrRF.js.map} +1 -1
  248. package/dist/chunks/{structured-list-item.Uky_MJPp.js → structured-list-item.f1tmHSEN.js} +9 -9
  249. package/dist/chunks/{structured-list-item.Uky_MJPp.js.map → structured-list-item.f1tmHSEN.js.map} +1 -1
  250. package/dist/chunks/{summary-grid.types.R-TEtkgx.js → summary-grid.types.COcV-sOB.js} +13 -13
  251. package/dist/chunks/{summary-grid.types.R-TEtkgx.js.map → summary-grid.types.COcV-sOB.js.map} +1 -1
  252. package/dist/chunks/{tab.JPngc9oS.js → tab.DRrnMCxe.js} +6 -6
  253. package/dist/chunks/{tab.JPngc9oS.js.map → tab.DRrnMCxe.js.map} +1 -1
  254. package/dist/chunks/{tag.CNN_D55j.js → tag.Dr7MKe9q.js} +9 -9
  255. package/dist/chunks/{tag.CNN_D55j.js.map → tag.Dr7MKe9q.js.map} +1 -1
  256. package/dist/chunks/{textarea.BGcYYD8C.js → textarea.CtgbUCjH.js} +7 -7
  257. package/dist/chunks/{textarea.BGcYYD8C.js.map → textarea.CtgbUCjH.js.map} +1 -1
  258. package/dist/chunks/{timeline-item.Cbd_rb9J.js → timeline-item.D9nmCe6u.js} +41 -41
  259. package/dist/chunks/{timeline-item.Cbd_rb9J.js.map → timeline-item.D9nmCe6u.js.map} +1 -1
  260. package/dist/chunks/{toast.DiIIrX7h.js → toast.Bbtq3Icj.js} +22 -22
  261. package/dist/chunks/{toast.DiIIrX7h.js.map → toast.Bbtq3Icj.js.map} +1 -1
  262. package/dist/chunks/{toggle.vl0ZwLhN.js → toggle.BupEBkIG.js} +6 -6
  263. package/dist/chunks/{toggle.vl0ZwLhN.js.map → toggle.BupEBkIG.js.map} +1 -1
  264. package/dist/chunks/{tooltip.CqV3Okcs.js → tooltip.DYpJZ-99.js} +60 -60
  265. package/dist/chunks/tooltip.DYpJZ-99.js.map +1 -0
  266. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js → tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js} +9 -9
  267. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js.map → tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js.map} +1 -1
  268. package/dist/chunks/{typography.6Oo5TOMP.js → typography.B3J6_tYk.js} +5 -5
  269. package/dist/chunks/{typography.6Oo5TOMP.js.map → typography.B3J6_tYk.js.map} +1 -1
  270. package/dist/chunks/{use-bento-toast-controller.V61h7XzI.js → use-bento-toast-controller.BFctDoMg.js} +2 -2
  271. package/dist/chunks/{use-bento-toast-controller.V61h7XzI.js.map → use-bento-toast-controller.BFctDoMg.js.map} +1 -1
  272. package/dist/chunks/{use-cached-selected-values.iGHt7ROs.js → use-cached-selected-values.BiSuG1eX.js} +20 -20
  273. package/dist/chunks/use-cached-selected-values.BiSuG1eX.js.map +1 -0
  274. package/dist/chunks/{use-country-items.JZCYNoW7.js → use-country-items.BTzByPdQ.js} +9 -9
  275. package/dist/chunks/{use-country-items.JZCYNoW7.js.map → use-country-items.BTzByPdQ.js.map} +1 -1
  276. package/dist/chunks/utils.BzUwtTXc.js +21 -0
  277. package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
  278. package/dist/chunks/{warning-filled.BMGD0G-_.js → warning-filled.BzyK_mMj.js} +5 -5
  279. package/dist/chunks/{warning-filled.BMGD0G-_.js.map → warning-filled.BzyK_mMj.js.map} +1 -1
  280. package/dist/chunks/{zh-CN.CgIooHto.js → zh-CN.Bw_6j9Cd.js} +2 -2
  281. package/dist/chunks/{zh-CN.CgIooHto.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
  282. package/dist/click-outside.js +1 -1
  283. package/dist/code-snippet.js +1 -1
  284. package/dist/country.js +2 -2
  285. package/dist/currency.js +1 -1
  286. package/dist/dashboard-template.js +1 -1
  287. package/dist/dashed-underline.js +1 -1
  288. package/dist/data-grid-template.js +1 -1
  289. package/dist/data-grid.js +1 -1
  290. package/dist/date-picker.js +2 -2
  291. package/dist/date-range-picker.js +2 -2
  292. package/dist/date.js +1 -1
  293. package/dist/divider.js +1 -1
  294. package/dist/draggable-handle.js +73 -57
  295. package/dist/draggable-handle.js.map +1 -1
  296. package/dist/dropdown.js +4 -4
  297. package/dist/empty-state.js +1 -1
  298. package/dist/file-uploader.js +1 -1
  299. package/dist/filter-bar.js +1 -1
  300. package/dist/focus-trap.js +1 -1
  301. package/dist/form-layout.js +1 -1
  302. package/dist/header-with-views.js +1 -1
  303. package/dist/header.js +1 -1
  304. package/dist/image.js +1 -1
  305. package/dist/index.js +278 -276
  306. package/dist/index.js.map +1 -1
  307. package/dist/info-icon.js +1 -1
  308. package/dist/input-field-password.js +1 -1
  309. package/dist/input-field-phone-number.js +1 -1
  310. package/dist/input-field.js +1 -1
  311. package/dist/inspector.js +1 -1
  312. package/dist/internal.js +42 -42
  313. package/dist/layout.js +1 -1
  314. package/dist/link.js +1 -1
  315. package/dist/loading-indicator.js +1 -1
  316. package/dist/menu.js +1 -1
  317. package/dist/modal-fullscreen.js +1 -1
  318. package/dist/modal.js +2 -2
  319. package/dist/pagination.js +1 -1
  320. package/dist/payment-method.js +1 -1
  321. package/dist/popover.js +2 -2
  322. package/dist/popper-container.js +1 -1
  323. package/dist/promo-banner.js +1 -1
  324. package/dist/radio-group.js +2 -2
  325. package/dist/rich-text-editor.js +1 -1
  326. package/dist/search-bar.js +2 -2
  327. package/dist/secondary-nav.js +1 -1
  328. package/dist/segmented-control.js +1 -1
  329. package/dist/selection-card.js +1 -1
  330. package/dist/sidepanel.js +1 -1
  331. package/dist/status.js +1 -1
  332. package/dist/stepper.js +1 -1
  333. package/dist/structured-list.js +1 -1
  334. package/dist/summary-grid.js +1 -1
  335. package/dist/tabs.js +1 -1
  336. package/dist/tag.js +1 -1
  337. package/dist/textarea.js +1 -1
  338. package/dist/timeline.js +1 -1
  339. package/dist/toast.js +1 -1
  340. package/dist/toggle.js +1 -1
  341. package/dist/tutorial.js +1 -1
  342. package/dist/typography.js +1 -1
  343. package/dist/use-form-v4.js +756 -7787
  344. package/dist/use-form-v4.js.map +1 -1
  345. package/dist/web-types.json +1 -1
  346. package/package.json +7 -7
  347. package/dist/assets/field-label.css +0 -1
  348. package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
  349. package/dist/chunks/data-grid.KkCt0Bgm.js.map +0 -1
  350. package/dist/chunks/date-input.BbZqj10S.js +0 -15
  351. package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
  352. package/dist/chunks/date-picker.dQuj_OF_.js.map +0 -1
  353. package/dist/chunks/date-range-picker.BAKR_gDf.js +0 -1100
  354. package/dist/chunks/dialog-page.CF10AQQ3.js +0 -158
  355. package/dist/chunks/dialog-page.CF10AQQ3.js.map +0 -1
  356. package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +0 -1
  357. package/dist/chunks/dropdown.DmzMGz30.js +0 -837
  358. package/dist/chunks/dropdown.DmzMGz30.js.map +0 -1
  359. package/dist/chunks/field-label.OurHuGZS.js.map +0 -1
  360. package/dist/chunks/fixed-scroller.e56yJp7Q.js +0 -155
  361. package/dist/chunks/focus-trap.DH57j-Ov.js.map +0 -1
  362. package/dist/chunks/index.CL07S4Wa.js +0 -592
  363. package/dist/chunks/modal-fullscreen.f445bZ94.js.map +0 -1
  364. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  365. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  366. package/dist/chunks/popover.types.BbYumG-N.js +0 -6
  367. package/dist/chunks/popper-container.DdG_YvVF.js +0 -1413
  368. package/dist/chunks/popper-container.DdG_YvVF.js.map +0 -1
  369. package/dist/chunks/rich-text-editor.-JS_rIjs.js.map +0 -1
  370. package/dist/chunks/secondary-nav.BGKR8l0u.js.map +0 -1
  371. package/dist/chunks/sidepanel.sWMdYcUC.js.map +0 -1
  372. package/dist/chunks/tooltip.CqV3Okcs.js.map +0 -1
  373. package/dist/chunks/use-cached-selected-values.iGHt7ROs.js.map +0 -1
@@ -1,1100 +0,0 @@
1
- import { reactive as he, defineComponent as et, useSlots as bt, ref as F, computed as y, onMounted as tt, createElementBlock as ge, openBlock as w, createElementVNode as P, createCommentVNode as _, normalizeClass as Te, renderSlot as Ne, createBlock as L, unref as D, createVNode as Q, withCtx as j, createTextVNode as ee, toRaw as we, watch as be, toRef as xe, withDirectives as ht, withKeys as $e, toDisplayString as Rt, createSlots as It } from "vue";
2
- import { g as kt } from "./index.CL07S4Wa.js";
3
- import { B as Mt } from "./divider.Dho4_hQ7.js";
4
- import { h as St, B as wt } from "./button-actions.Dk8xU2cz.js";
5
- import { B as Oe, d as Ye } from "./typography.6Oo5TOMP.js";
6
- import { D as Ot } from "./dropdown-default-textbox.DFtFMu5G.js";
7
- import { g as se } from "./generate-uid.NJ8tVoha.js";
8
- import { u as Ee } from "./index.pdBj0KQU.js";
9
- import { f as A, h as at, i as q, j as Et, k as je, l as Ft, s as Le, m as _t, n as oe, o as Qe, b as Y, u as At, p as C, e as O, g as Ct } from "./calendar.Dbc0yjyg.js";
10
- import { t as G, c as Bt, n as qt } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
11
- import { u as Ut } from "./use-form-layout-loading.CWbjZiwP.js";
12
- import { B as Nt } from "./directive.Cbdox5VL.js";
13
- import { u as xt } from "./form-field.D_2g7vaP.js";
14
- import { B as ve } from "./input-field.CFNofr-W.js";
15
- import { B as $t } from "./dropdown.DmzMGz30.js";
16
- import { B as Yt } from "./segmented-control.CFPAl4HD.js";
17
- import { d as pe } from "./debounce.DUTu11PS.js";
18
- import { u as jt } from "./use-has-slot.B7eQSabc.js";
19
- import { e as U, a as Ge } from "./differenceInMonths.BR4Z2HIa.js";
20
- import { s as We } from "./startOfWeek.CM1KIrNi.js";
21
- import { f as Ke, v as Lt } from "./date-input.BbZqj10S.js";
22
- import { c as Qt } from "./constructNow.B8T1ljs6.js";
23
- import { _ as nt } from "./_plugin-vue_export-helper.CHgC5LLL.js";
24
- import { F as Gt, E as He } from "./field-label.OurHuGZS.js";
25
- import { B as Wt } from "./button-actions.types.BptAXjD8.js";
26
- import "../assets/date-range-picker.css";
27
- function le(a) {
28
- if (a == null)
29
- return A(/* @__PURE__ */ new Date());
30
- const [o, u, r] = a.split("-").map((e) => parseInt(e, 10));
31
- return new Date(o, u - 1, r);
32
- }
33
- function rt(a, o, u) {
34
- return at(a, o * 3, u);
35
- }
36
- function Kt(a, o, u) {
37
- return rt(a, -1, u);
38
- }
39
- const Ht = ({
40
- firstDayOfWeek: a,
41
- min: o,
42
- max: u
43
- }) => ({ getGranularCalendarLimits: (e) => {
44
- if (!o && !u)
45
- return { min: null, max: null };
46
- let d = o ? A(o) : null, f = u ? U(u) : null;
47
- if ((e == null ? void 0 : e.type) === "weekly") {
48
- if (e.earliest)
49
- d = A(e.earliest);
50
- else if (d) {
51
- const g = We(d, { weekStartsOn: a });
52
- q(d, g) || (d = A(Et(je(d, { weekStartsOn: a }), 1)));
53
- }
54
- if (e.latest)
55
- f = U(e.latest);
56
- else if (f) {
57
- const g = je(f, { weekStartsOn: a });
58
- q(f, g) || (f = U(Ft(We(f, { weekStartsOn: a }), 1)));
59
- }
60
- }
61
- if ((e == null ? void 0 : e.type) === "monthly") {
62
- if (e.earliest)
63
- d = A(e.earliest);
64
- else if (d) {
65
- const g = Le(d);
66
- q(d, g) || (d = Le(at(d, 1)));
67
- }
68
- if (e.latest)
69
- f = U(e.latest);
70
- else if (f) {
71
- const g = Ge(f);
72
- q(f, g) || (f = Ge(_t(f, 1)));
73
- }
74
- }
75
- if ((e == null ? void 0 : e.type) === "quarterly") {
76
- if (e.earliest)
77
- d = oe(e.earliest);
78
- else if (d) {
79
- const g = oe(d);
80
- q(d, g) || (d = oe(rt(d, 1)));
81
- }
82
- if (e.latest)
83
- f = U(e.latest);
84
- else if (f) {
85
- const g = Qe(f);
86
- q(f, g) || (f = Qe(Kt(f)));
87
- }
88
- }
89
- return { min: d, max: f };
90
- } }), Pt = () => {
91
- const a = he({
92
- daily: null,
93
- weekly: null,
94
- monthly: null,
95
- quarterly: null
96
- });
97
- return {
98
- savedRanges: a,
99
- saveRange: (r, e) => {
100
- a[r] = e;
101
- },
102
- resetSavedRanges: () => {
103
- a.daily = null, a.weekly = null, a.monthly = null, a.quarterly = null;
104
- }
105
- };
106
- };
107
- var p = /* @__PURE__ */ ((a) => (a.CUSTOM_RANGE = "custom-range", a.INPUT = "input", a.ERROR = "error", a.FORM_DATE = "form-date", a.START_DATE_SELECTED = "start-date-selected", a))(p || {});
108
- function Vt(a, o, u) {
109
- const r = G(a, u == null ? void 0 : u.in);
110
- return r.setHours(o), r;
111
- }
112
- function zt(a, o, u) {
113
- const r = G(a, u == null ? void 0 : u.in);
114
- return r.setMinutes(o), r;
115
- }
116
- function Jt(a, o, u) {
117
- const r = G(a, u == null ? void 0 : u.in);
118
- return r.setSeconds(o), r;
119
- }
120
- function Pe(a, o) {
121
- const u = G(a, o == null ? void 0 : o.in);
122
- return u.setMilliseconds(0), u;
123
- }
124
- function Ve(a, o) {
125
- return +Pe(a) == +Pe(o);
126
- }
127
- function ye(a, o) {
128
- return +G(a) == +G(o);
129
- }
130
- function Xt(a, o) {
131
- return q(
132
- Bt(a, a),
133
- Qt(a)
134
- );
135
- }
136
- function ze(a, o, u) {
137
- const r = G(a, u == null ? void 0 : u.in);
138
- return r.setMilliseconds(o), r;
139
- }
140
- const Zt = /[\d]/, ea = /^\d{2}$/, ta = /^\d{2}:\d{2}$/, aa = (a) => {
141
- const { selectionStart: o } = a.target, u = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], r = Zt.test(a.key) || u.includes(a.key), e = [1, 2, 4, 5].includes(o) && a.key === ":";
142
- !r && !e && a.preventDefault();
143
- }, Je = (a) => {
144
- if (!a)
145
- return a;
146
- let o = a;
147
- if (o.length === 1 && parseInt(a, 10) > 2)
148
- return `0${o}:`;
149
- const [u, r] = o.slice(-2);
150
- return [2, 5].includes(o.length) && r === ":" && (o = `${o.slice(0, o.length - 2)}0${u}`), (ea.test(o) || ta.test(o)) && (o += ":"), o;
151
- }, st = {
152
- "en-US": {
153
- customRange: "Custom range",
154
- daily: "Daily",
155
- dateFrom: "Date from",
156
- dateTo: "Date to",
157
- lastMonth: "Last month",
158
- lastSevenDays: "Last 7 days",
159
- lastThreeMonths: "Last three months",
160
- monthly: "Monthly",
161
- quarterly: "Quarterly",
162
- timeFrom: "Time from",
163
- timeTo: "Time to",
164
- weekly: "Weekly"
165
- },
166
- "ja-JP": {
167
- customRange: "カスタム範囲",
168
- daily: "毎日",
169
- dateFrom: "開始日",
170
- dateTo: "日付まで",
171
- lastMonth: "先月",
172
- lastSevenDays: "過去7日間",
173
- lastThreeMonths: "過去3か月",
174
- monthly: "毎月",
175
- quarterly: "毎四半期",
176
- timeFrom: "開始時刻",
177
- timeTo: "終了時刻",
178
- weekly: "毎週"
179
- },
180
- "pt-BR": {
181
- customRange: "Intervalo personalizado",
182
- daily: "Diária",
183
- dateFrom: "Data a partir de",
184
- dateTo: "Data até",
185
- lastMonth: "Último mês",
186
- lastSevenDays: "Últimos 7 dias",
187
- lastThreeMonths: "Últimos 3 meses",
188
- monthly: "Mensal",
189
- quarterly: "Trimestral",
190
- timeFrom: "Horário a partir de",
191
- timeTo: "Hora de",
192
- weekly: "Semanal"
193
- }
194
- }, na = { class: "b-date-range-picker-calendar" }, ra = { class: "b-date-range-picker-calendar__form" }, sa = { key: 0 }, la = {
195
- key: 0,
196
- class: "b-date-range-picker-calendar__calendars-container",
197
- "data-testid": "date-range-picker-calendar-calendar-container"
198
- }, oa = {
199
- name: "date-range-picker-calendar",
200
- i18n: { messages: st }
201
- }, ia = /* @__PURE__ */ et({
202
- ...oa,
203
- props: {
204
- /**
205
- * Allows user to enter time values in the form
206
- */
207
- allowTimeInput: { type: Boolean, default: !1 },
208
- /**
209
- * Ranges form persistance data
210
- */
211
- dateFormData: {
212
- type: Object,
213
- default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
214
- },
215
- /**
216
- * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
217
- */
218
- firstDayOfWeek: Y.props.firstDayOfWeek,
219
- /**
220
- * A list of available granularities.
221
- * If present, the date picker will display a segmented control to change granularity.
222
- */
223
- granularities: {
224
- type: Array,
225
- default: null
226
- },
227
- /**
228
- * Indicate if a date should be disabled or not
229
- */
230
- isDateDisabled: Y.props.isDateDisabled,
231
- /**
232
- * Set a maximum number of dates to be selectable by the range.
233
- */
234
- maxRange: Y.props.maxRange,
235
- /**
236
- * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
237
- */
238
- min: Y.props.min,
239
- /**
240
- * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
241
- */
242
- max: Y.props.max,
243
- /**
244
- * Number of months rendered on pane
245
- */
246
- numberOfMonths: {
247
- type: Y.props.numberOfMonths.type,
248
- default: Y.props.numberOfMonths.default,
249
- validator: (a) => a >= 0
250
- },
251
- /**
252
- * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
253
- */
254
- showEndDateOnOpen: { type: Boolean, default: !1 },
255
- /**
256
- * Enables the custom range selector.
257
- * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
258
- * `label` - label of custom range item.
259
- * `value` - a unique key of the custom range item.
260
- * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
261
- */
262
- quickSelectRanges: {
263
- type: Array,
264
- default: void 0
265
- },
266
- /**
267
- * Selected date
268
- */
269
- value: { type: Object, default: void 0 },
270
- /**
271
- * The type of calendar to display. Defaults to showing days.
272
- */
273
- variant: Y.props.variant
274
- },
275
- emits: [
276
- p.CUSTOM_RANGE,
277
- p.INPUT,
278
- p.ERROR,
279
- p.FORM_DATE,
280
- p.START_DATE_SELECTED
281
- ],
282
- setup(a, { emit: o }) {
283
- var Ce, Be, qe, Ue;
284
- const r = "customRange", e = a, d = o, f = bt(), g = jt(f), { t: M } = Ee({ messages: st }), I = F({}), ae = y(() => e.variant === "month" ? "monthly" : "daily"), ne = y(() => e.numberOfMonths === 0), n = he({
285
- startDate: (Ce = e.value) == null ? void 0 : Ce.startDate,
286
- endDate: (Be = e.value) == null ? void 0 : Be.endDate,
287
- range: (qe = e.value) == null ? void 0 : qe.range,
288
- ...e.granularities ? {
289
- granularity: ((Ue = e.value) == null ? void 0 : Ue.granularity) || ae.value
290
- } : {}
291
- });
292
- function b(t) {
293
- return t ? new Date(
294
- t.getUTCFullYear(),
295
- t.getUTCMonth(),
296
- t.getUTCDate(),
297
- t.getUTCHours(),
298
- t.getUTCMinutes(),
299
- t.getUTCSeconds()
300
- ) : null;
301
- }
302
- const v = y(() => {
303
- var t, l;
304
- return (
305
- // eslint-disable-next-line consistent-return
306
- ((l = (t = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : t.find(({ value: c, data: m }) => {
307
- var k;
308
- if (!m.endDate) {
309
- if (m.isRelativeToNow) {
310
- const S = (k = I.value) == null ? void 0 : k[c];
311
- return S ? ye(
312
- b(S.startDate),
313
- b(n.startDate)
314
- ) && ye(
315
- b(S.endDate),
316
- b(n.endDate)
317
- ) : (
318
- // If not stored calculated dates, fall back to comparing the quick select item's value
319
- // with the internal range's stored range identifier.
320
- c === n.range
321
- );
322
- }
323
- return ye(b(m.startDate), b(n.startDate)) && ye(
324
- b(n.endDate),
325
- b(U(n.endDate))
326
- ) && Xt(b(n.endDate)) && (e.granularities ? m.granularity === n.granularity : !0);
327
- }
328
- if (e.allowTimeInput)
329
- return Ve(b(m.startDate), b(n.startDate)) && Ve(b(m.endDate), b(n.endDate)) && (e.granularities ? m.granularity === n.granularity : !0);
330
- if (m.endDate)
331
- return q(m.startDate, n.startDate) && q(m.endDate, n.endDate) && (e.granularities ? m.granularity === n.granularity : !0);
332
- })) == null ? void 0 : l.value) ?? r
333
- );
334
- }), E = y(() => ({
335
- "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
336
- })), h = y(() => [
337
- { label: M("customRange"), value: r },
338
- ...e.quickSelectRanges ? e.quickSelectRanges : []
339
- ]), W = y(
340
- () => {
341
- var t;
342
- return ((t = e.granularities) == null ? void 0 : t.find(({ type: l }) => l === n.granularity)) || null;
343
- }
344
- ), ie = y(
345
- () => {
346
- var t;
347
- return ((t = e.granularities) == null ? void 0 : t.map(({ type: l, disabled: c }) => ({
348
- label: M(l),
349
- value: l,
350
- disabled: c
351
- }))) ?? [];
352
- }
353
- ), { getGranularCalendarLimits: ue } = Ht(e), T = y(
354
- () => e.granularities ? ue(W.value) : { min: e.min ? A(e.min) : null, max: e.max ? U(e.max) : null }
355
- ), {
356
- adjustDateForQuarterly: Re,
357
- adjustDateForMonthly: Ie,
358
- adjustDateForWeekly: de,
359
- adjustStartDateInputForWeekly: re,
360
- adjustEndDateInputForWeekly: R,
361
- adjustStartDateInputForMonthly: ke,
362
- adjustEndDateInputForMonthly: V,
363
- adjustStartDateInputForQuarterly: Me,
364
- adjustEndDateInputForQuarterly: me
365
- } = At(e.firstDayOfWeek), { savedRanges: N, saveRange: K, resetSavedRanges: z } = Pt(), H = (t) => t ? O(t) : "", J = F(!1), X = F(!1), x = F(!1), $ = F(!1), i = he({
366
- startDate: e.dateFormData.startDate,
367
- endDate: e.dateFormData.endDate,
368
- startTime: e.dateFormData.startTime,
369
- endTime: e.dateFormData.endTime
370
- }), ce = (t, l) => {
371
- let c = new Date(t);
372
- const [m, k, S] = l.split(":");
373
- return c = Vt(c, parseInt(m, 10)), c = zt(c, parseInt(k, 10)), c = Jt(c, parseInt(S, 10)), c;
374
- }, De = (t) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(t), te = (t, l) => {
375
- const c = () => {
376
- if (l && B(l)) {
377
- const m = ce(new Date(l), t);
378
- if (e.min && m < ze(e.min, 0) || e.max && m > ze(e.max, 0))
379
- return !1;
380
- }
381
- return !0;
382
- };
383
- return De(t) && c();
384
- }, s = (t, l) => !l || !De(l) || e.variant === "month" ? t : ce(new Date(t), l), Z = (t) => {
385
- i.startTime = C(
386
- e.min && e.allowTimeInput && q(e.min, t.startDate) ? e.min : A(t.startDate)
387
- ), i.endTime = C(
388
- e.max && e.allowTimeInput && q(e.max, t.endDate) ? e.max : U(t.endDate)
389
- ), n.startDate = s(t.startDate, i.startTime), n.endDate = s(t.endDate, i.endTime), n.range = null, e.granularities && z(), d(p.INPUT, {
390
- ...n,
391
- range: v.value
392
- });
393
- }, B = (t) => {
394
- if (!t)
395
- return !1;
396
- const l = (m) => e.min && A(m) < A(e.min) || e.max && A(m) > A(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(A(m)) : !0;
397
- return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(t) && l(new Date(t));
398
- };
399
- tt(() => {
400
- J.value = !!(e.dateFormData.startDate && !B(e.dateFormData.startDate)), e.allowTimeInput ? x.value = !!(e.dateFormData.startTime && !te(e.dateFormData.startTime, e.dateFormData.startDate)) : x.value = !1, X.value = !!(e.dateFormData.endDate && !B(e.dateFormData.endDate)), e.allowTimeInput ? $.value = !!(e.dateFormData.endTime && !te(e.dateFormData.endTime, e.dateFormData.endDate)) : $.value = !1;
401
- });
402
- const lt = (t) => {
403
- var l;
404
- i.startDate = O(t), i.startTime ? x.value && (i.startTime = (l = e.dateFormData) == null ? void 0 : l.startTime) : i.startTime = C(t), J.value = !1, x.value = !1, d(p.START_DATE_SELECTED, t);
405
- }, ot = (t) => {
406
- var l;
407
- i.endDate = O(t), i.endTime ? $.value && (i.endTime = (l = e.dateFormData) == null ? void 0 : l.endTime) : i.endTime = C(U(t)), X.value = !1, $.value = !1;
408
- }, Se = (t) => {
409
- const l = e.value[t];
410
- if (l)
411
- return l;
412
- if (e.dateFormData[t] && B(e.dateFormData[t]))
413
- return new Date(e.dateFormData[t]);
414
- }, it = pe((t) => {
415
- var l;
416
- if (B(t)) {
417
- let c = t;
418
- switch (J.value = !1, (l = W.value) == null ? void 0 : l.type) {
419
- case "weekly":
420
- c = re(
421
- t,
422
- H,
423
- T.value.min,
424
- T.value.max
425
- ), i.startDate = c;
426
- break;
427
- case "monthly":
428
- c = ke(
429
- t,
430
- H,
431
- T.value.min,
432
- T.value.max
433
- ), i.startDate = c;
434
- break;
435
- case "quarterly":
436
- c = Me(
437
- t,
438
- H,
439
- T.value.min,
440
- T.value.max
441
- ), i.startDate = c;
442
- break;
443
- }
444
- const m = le(c);
445
- n.startDate = s(m, i.startTime), n.endDate = s(
446
- le(i.endDate),
447
- i.endTime
448
- ), B(i.endDate) && (n.endDate = s(
449
- le(i.endDate),
450
- i.endTime
451
- ));
452
- const k = Se("endDate");
453
- n.range = null, d(p.FORM_DATE, {
454
- startDate: m,
455
- endDate: k
456
- }), d(p.INPUT, {
457
- ...n,
458
- range: v.value
459
- });
460
- } else
461
- J.value = !0, d(p.ERROR, { ...i });
462
- }, 300), ut = (t) => {
463
- i.startDate = Ke(t), it(i.startDate);
464
- }, dt = pe((t) => {
465
- var l;
466
- if (B(t)) {
467
- let c = t;
468
- switch (X.value = !1, (l = W.value) == null ? void 0 : l.type) {
469
- case "weekly":
470
- c = R(
471
- t,
472
- H,
473
- T.value.min,
474
- T.value.max
475
- ), i.endDate = c;
476
- break;
477
- case "monthly":
478
- c = V(
479
- t,
480
- H,
481
- T.value.min,
482
- T.value.max
483
- ), i.endDate = c;
484
- break;
485
- case "quarterly":
486
- c = me(
487
- t,
488
- H,
489
- T.value.min,
490
- T.value.max
491
- ), i.endDate = c;
492
- break;
493
- }
494
- const m = le(c);
495
- n.endDate = s(m, i.endTime), B(i.startDate) && (n.startDate = s(
496
- le(i.startDate),
497
- i.startTime
498
- ));
499
- const k = Se("startDate");
500
- n.range = null, d(p.FORM_DATE, {
501
- startDate: k,
502
- endDate: m
503
- }), d(p.INPUT, {
504
- ...n,
505
- range: v.value
506
- });
507
- } else
508
- X.value = !0, d(p.ERROR, { ...i });
509
- }, 300), mt = (t) => {
510
- i.endDate = Ke(t), dt(i.endDate);
511
- }, _e = (t) => {
512
- Lt(t);
513
- }, ct = pe((t) => {
514
- if (te(t, e.dateFormData.startDate)) {
515
- x.value = !1, n.startDate = s(n.startDate, t);
516
- const l = Se("endDate");
517
- d(p.FORM_DATE, {
518
- startDate: n.startDate,
519
- endDate: l,
520
- startTime: t,
521
- endTime: i.endTime ?? e.dateFormData.endTime
522
- }), d(p.INPUT, {
523
- ...n,
524
- range: v.value
525
- });
526
- } else
527
- x.value = !0, d(p.ERROR, { ...i });
528
- }), Dt = pe((t) => {
529
- te(t, e.dateFormData.endDate) ? ($.value = !1, n.endDate = s(n.endDate, t), d(p.FORM_DATE, {
530
- startDate: n.startDate,
531
- endDate: n.endDate,
532
- startTime: i.startTime ?? e.dateFormData.startTime,
533
- endTime: t
534
- }), d(p.INPUT, {
535
- ...n,
536
- range: v.value
537
- })) : ($.value = !0, d(p.ERROR, { ...i }));
538
- }), ft = (t) => {
539
- i.startTime = Je(t), ct(i.startTime);
540
- }, vt = (t) => {
541
- i.endTime = Je(t), Dt(i.endTime);
542
- }, Ae = (t) => {
543
- aa(t);
544
- }, fe = (t, l, c, m) => {
545
- n.startDate = t, n.endDate = l, c && (n.granularity = c), m && (n.range = m);
546
- }, pt = (t) => {
547
- var c;
548
- const l = (c = e.quickSelectRanges) == null ? void 0 : c.find(({ value: m }) => m === t);
549
- if (l) {
550
- z();
551
- const m = l.data, k = m.endDate || (m.isRelativeToNow ? new Date(Date.now()) : U(new Date(Date.now()))), S = m.isRelativeToNow && m.timeDifference ? new Date(k.getTime() - m.timeDifference) : m.startDate;
552
- i.endDate = O(k), i.startDate = O(S), fe(S, k, null, t), e.granularities && (n.granularity = m.granularity || ae.value), i.startTime = C(S), i.endTime = C(k), n.startDate = S, n.endDate = k, m.isRelativeToNow && (I.value = {
553
- ...I.value,
554
- [t]: {
555
- startDate: S,
556
- endDate: k
557
- }
558
- }), d(p.CUSTOM_RANGE, {
559
- ...l.data,
560
- startDate: S,
561
- endDate: k,
562
- range: l.value
563
- });
564
- }
565
- }, yt = {
566
- weekly: de,
567
- monthly: Ie,
568
- quarterly: Re
569
- }, gt = (t) => {
570
- const l = n.granularity;
571
- if (n.granularity = t, l && K(l, structuredClone(we(n))), n.startDate && n.endDate) {
572
- switch (t) {
573
- case "quarterly":
574
- case "monthly":
575
- case "weekly": {
576
- if (N[t]) {
577
- fe(N[t].startDate, N[t].endDate, t);
578
- break;
579
- }
580
- const { startDate: c, endDate: m } = yt[t](
581
- n.startDate,
582
- n.endDate,
583
- T.value.min,
584
- T.value.max
585
- );
586
- fe(c, m, t);
587
- break;
588
- }
589
- case "daily":
590
- N.daily && fe(N.daily.startDate, N.daily.endDate, t);
591
- break;
592
- }
593
- i.startDate = O(n.startDate), i.endDate = O(n.endDate), d(p.INPUT, {
594
- ...n,
595
- range: v.value
596
- });
597
- }
598
- }, Tt = y(() => ({
599
- "b-date-range-picker-calendar__form-container--no-calendars": ne.value
600
- }));
601
- return (t, l) => (w(), ge("div", na, [
602
- P("div", {
603
- class: Te(["b-date-range-picker-calendar__form-container", Tt.value]),
604
- "data-testid": "date-range-picker-calendar-form-container"
605
- }, [
606
- P("div", ra, [
607
- D(g)("title") ? Ne(t.$slots, "title", { key: 0 }, void 0, !0) : _("", !0),
608
- a.quickSelectRanges ? (w(), L($t, {
609
- key: 1,
610
- "aria-label": D(M)("customRange"),
611
- items: h.value,
612
- "model-value": v.value,
613
- "onUpdate:modelValue": pt
614
- }, null, 8, ["aria-label", "items", "model-value"])) : _("", !0),
615
- a.granularities ? (w(), L(D(Yt), {
616
- key: 2,
617
- items: ie.value,
618
- "model-value": n.granularity,
619
- "full-width": "",
620
- "onUpdate:modelValue": gt
621
- }, null, 8, ["items", "model-value"])) : _("", !0),
622
- P("div", null, [
623
- Q(D(Oe), {
624
- stronger: "",
625
- el: "span",
626
- class: "b-date-range-picker-calendar__label"
627
- }, {
628
- default: j(() => l[0] || (l[0] = [
629
- ee(" From ")
630
- ])),
631
- _: 1
632
- }),
633
- P("div", {
634
- class: Te(E.value)
635
- }, [
636
- Q(D(ve), {
637
- "aria-label": D(M)("dateFrom"),
638
- "model-value": i.startDate,
639
- error: J.value,
640
- class: "b-date-range-picker-calendar__form-input",
641
- "onUpdate:modelValue": ut,
642
- onKeydown: _e
643
- }, {
644
- description: j(() => l[1] || (l[1] = [
645
- ee("YYYY-MM-DD")
646
- ])),
647
- _: 1
648
- }, 8, ["aria-label", "model-value", "error"]),
649
- a.allowTimeInput ? (w(), L(D(ve), {
650
- key: 0,
651
- "aria-label": D(M)("timeFrom"),
652
- "model-value": i.startTime,
653
- error: x.value,
654
- class: "b-date-range-picker-calendar__form-input",
655
- "onUpdate:modelValue": ft,
656
- onKeydown: Ae
657
- }, {
658
- description: j(() => l[2] || (l[2] = [
659
- ee("HH:MM:SS")
660
- ])),
661
- _: 1
662
- }, 8, ["aria-label", "model-value", "error"])) : _("", !0)
663
- ], 2)
664
- ]),
665
- P("div", null, [
666
- Q(D(Oe), {
667
- stronger: "",
668
- el: "span",
669
- class: "b-date-range-picker-calendar__label"
670
- }, {
671
- default: j(() => l[3] || (l[3] = [
672
- ee(" To ")
673
- ])),
674
- _: 1
675
- }),
676
- P("div", {
677
- class: Te(E.value)
678
- }, [
679
- Q(D(ve), {
680
- class: "b-date-range-picker-calendar__form-input",
681
- "aria-label": D(M)("dateTo"),
682
- "model-value": i.endDate,
683
- error: X.value,
684
- "onUpdate:modelValue": mt,
685
- onKeydown: _e
686
- }, {
687
- description: j(() => l[4] || (l[4] = [
688
- ee("YYYY-MM-DD")
689
- ])),
690
- _: 1
691
- }, 8, ["aria-label", "model-value", "error"]),
692
- a.allowTimeInput ? (w(), L(D(ve), {
693
- key: 0,
694
- "aria-label": D(M)("timeTo"),
695
- "model-value": i.endTime,
696
- error: $.value,
697
- class: "b-date-range-picker-calendar__form-input",
698
- "onUpdate:modelValue": vt,
699
- onKeydown: Ae
700
- }, {
701
- description: j(() => l[5] || (l[5] = [
702
- ee("HH:MM:SS")
703
- ])),
704
- _: 1
705
- }, 8, ["aria-label", "model-value", "error"])) : _("", !0)
706
- ], 2)
707
- ])
708
- ]),
709
- D(g)("actions") ? (w(), ge("div", sa, [
710
- Ne(t.$slots, "actions", {}, void 0, !0)
711
- ])) : _("", !0)
712
- ], 2),
713
- ne.value ? _("", !0) : (w(), ge("div", la, [
714
- Q(D(Y), {
715
- value: n,
716
- "first-day-of-week": a.firstDayOfWeek,
717
- "is-date-disabled": a.isDateDisabled,
718
- "max-range": a.maxRange,
719
- min: T.value.min,
720
- max: T.value.max,
721
- "number-of-months": a.numberOfMonths,
722
- "show-end-date-on-open": a.showEndDateOnOpen,
723
- granularity: W.value,
724
- variant: a.variant,
725
- "is-range": "",
726
- onInput: Z,
727
- onStartDateSelected: lt,
728
- onEndDateSelected: ot
729
- }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant"])
730
- ]))
731
- ]));
732
- }
733
- }), ua = /* @__PURE__ */ nt(ia, [["__scopeId", "data-v-b404d391"]]);
734
- function Xe(a, o) {
735
- const u = G(a, o == null ? void 0 : o.in);
736
- return Math.trunc(u.getMonth() / 3) + 1;
737
- }
738
- function Ze(a, o) {
739
- return G(a, o == null ? void 0 : o.in).getFullYear();
740
- }
741
- function da(a, o, u) {
742
- const [r, e] = qt(
743
- u == null ? void 0 : u.in,
744
- a,
745
- o
746
- );
747
- return +oe(r) == +oe(e);
748
- }
749
- const Fe = {
750
- "en-US": {
751
- apply: "Apply",
752
- cancel: "Cancel",
753
- dateRangePicker: "Date range picker {name}",
754
- provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
755
- quarter: "Q{quarter} {year}",
756
- selectDate: "Select a date",
757
- selectDateRange: "Select a date range",
758
- selectedDateIsNotAvailable: "Selected date is not available"
759
- },
760
- "ja-JP": {
761
- apply: "適用",
762
- cancel: "キャンセル",
763
- dateRangePicker: "日付範囲ピッカー {name}",
764
- provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください",
765
- quarter: "{year}年第{quarter}四半期",
766
- selectDate: "日付を選択",
767
- selectDateRange: "日付範囲を選択",
768
- selectedDateIsNotAvailable: "選択した日付は利用できません"
769
- },
770
- "pt-BR": {
771
- apply: "Aplicar",
772
- cancel: "Cancelar",
773
- dateRangePicker: "Seletor de intervalo de datas {name}",
774
- provideDateInAFormat: "Forneça a data no formato AAAA-MM-DD",
775
- quarter: "{quarter}º trimestre de {year}",
776
- selectDate: "Selecione uma data",
777
- selectDateRange: "Selecione um intervalo de datas",
778
- selectedDateIsNotAvailable: "A data selecionada não está disponível"
779
- }
780
- }, ma = ({
781
- datePickerValue: a,
782
- isDateIncorrect: o,
783
- quickSelectRanges: u,
784
- isMonthVariant: r,
785
- withTimeInput: e,
786
- placeholder: d
787
- }) => {
788
- const { locale: f, t: g } = Ee({ messages: Fe }), M = (n) => !!n && !isNaN(n.getTime()), I = he({
789
- startDate: null,
790
- endDate: null,
791
- startTime: null,
792
- endTime: null
793
- });
794
- return be(
795
- a,
796
- (n) => {
797
- I.startDate = O(n == null ? void 0 : n.startDate), I.endDate = O(n == null ? void 0 : n.endDate), I.startTime = C(n == null ? void 0 : n.startDate), I.endTime = C(n == null ? void 0 : n.endDate);
798
- },
799
- { immediate: !0 }
800
- ), {
801
- // Values
802
- dateDisplayValue: y(() => {
803
- var b;
804
- if (o.value)
805
- return `${I.startDate || ""} - ${I.endDate || ""}`;
806
- if (!a.value || !a.value.startDate && !a.value.endDate)
807
- return (d == null ? void 0 : d.value) || g("selectDateRange");
808
- if ((b = u.value) != null && b.length) {
809
- const v = u.value.find(({ value: E }) => {
810
- var h;
811
- return E === ((h = a.value) == null ? void 0 : h.range);
812
- });
813
- if (v)
814
- return v.label;
815
- }
816
- if (a.value.granularity === "quarterly") {
817
- const { startDate: v, endDate: E } = a.value, h = g("quarter", { quarter: Xe(v), year: Ze(v) });
818
- if (da(v, E))
819
- return h;
820
- const W = g("quarter", { quarter: Xe(E), year: Ze(E) });
821
- return `${h} - ${W}`;
822
- }
823
- if (!M(a.value.startDate) || !M(a.value.endDate))
824
- return `${I.startDate || ""} - ${I.endDate || ""}`;
825
- let n = r != null && r.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
826
- return e.value && (n = {
827
- ...n,
828
- hour: "numeric",
829
- minute: "numeric",
830
- second: "numeric",
831
- hour12: !1
832
- }), Ct(f.value, n).formatRange(
833
- a.value.startDate,
834
- a.value.endDate
835
- );
836
- }),
837
- textInputDisplayValue: I,
838
- // Methods
839
- formatTextInputDisplayValue: () => ""
840
- };
841
- }, ca = { class: "b-date-range-picker" }, Da = { class: "b-date-range-picker__footer" }, fa = {
842
- i18n: { messages: Fe },
843
- name: "bento-date-range-picker",
844
- model: { prop: "modelValue" }
845
- }, va = /* @__PURE__ */ et({
846
- ...fa,
847
- props: {
848
- allowTimeInput: { type: Boolean },
849
- firstDayOfWeek: { default: 1 },
850
- granularities: {},
851
- isDateDisabled: { type: Function, default: void 0 },
852
- showEndDateOnOpen: { type: Boolean, default: !1 },
853
- quickSelectRanges: { default: void 0 },
854
- maxRange: { default: null },
855
- min: { default: null },
856
- max: { default: null },
857
- numberOfMonths: { default: void 0 },
858
- modelValue: { default: null },
859
- value: { default: null },
860
- variant: { default: void 0 },
861
- hasActions: { type: Boolean, default: !1 },
862
- description: { default: void 0 },
863
- disabled: { type: Boolean, default: !1 },
864
- errorMessage: { default: null },
865
- label: { default: void 0 },
866
- optional: { type: Boolean, default: !1 },
867
- placeholder: { default: null },
868
- readonly: { type: Boolean, default: !1 },
869
- required: { type: Boolean, default: !1 },
870
- tooltipText: { default: null }
871
- },
872
- emits: ["update:model-value", "input"],
873
- setup(a, { emit: o }) {
874
- const u = o, r = a, { t: e } = Ee({ messages: Fe }), d = se("bento-date-range-picker-container"), f = se("bento-date-range-picker-label"), g = se("bento-date-range-picker-description"), M = se("bento-date-range-picker-error"), I = se("bento-date-range-picker-date-error"), ae = y(() => r.label || e("dateRangePicker", { name: d })), ne = kt({
875
- none: 0,
876
- one: 710,
877
- // width of date range picker with one panes
878
- two: 1030,
879
- // width of date range picker with two panes
880
- three: 1290
881
- // width of date range picker with three panes
882
- }), n = y(() => {
883
- const s = ne.active().value, Z = {
884
- none: 0,
885
- one: 1,
886
- two: 2
887
- };
888
- if (s in Z) {
889
- const B = Z[s];
890
- return r.numberOfMonths === void 0 ? B : Math.min(r.numberOfMonths, B);
891
- }
892
- return r.numberOfMonths;
893
- }), b = y(() => (r == null ? void 0 : r.quickSelectRanges) && r.quickSelectRanges.map((s) => {
894
- const Z = s.data.endDate ? void 0 : new Date(Date.now()).getTime() - s.data.startDate.getTime();
895
- return {
896
- ...s,
897
- data: {
898
- ...s.data,
899
- // Adding timeDifference to calculate an up-to-date endDate on range selection
900
- timeDifference: Z
901
- }
902
- };
903
- })), v = F(!1), E = F(null), h = F(!1), { isReadOnly: W } = Ut(xe(r, "readonly")), { emitValue: ie } = xt(u);
904
- be(
905
- () => r.disabled,
906
- () => {
907
- r.disabled && h.value && (h.value = !1);
908
- }
909
- );
910
- const ue = y(() => r.modelValue || r.value), T = y(() => r.hasActions ? !z.value && v.value : v.value), Re = y(() => ({
911
- "b-date-range-picker__description--error": !!r.errorMessage || T.value
912
- })), Ie = y(() => r.variant === "month"), de = y(() => r.allowTimeInput && r.variant !== "month"), { dateDisplayValue: re, textInputDisplayValue: R } = ma({
913
- datePickerValue: ue,
914
- isDateIncorrect: v,
915
- quickSelectRanges: b,
916
- isMonthVariant: Ie,
917
- withTimeInput: de,
918
- placeholder: xe(r, "placeholder")
919
- }), ke = y(
920
- () => `${r.description ? g : ""} ${r.errorMessage ? M : ""} ${v.value ? I : ""}`.trim() || null
921
- ), V = () => {
922
- h.value = !1;
923
- }, Me = () => {
924
- h.value = !0;
925
- }, me = F(re.value), N = F(
926
- // textInputDisplayValue is a reactive object
927
- structuredClone(we(R))
928
- ), K = F(r.modelValue ?? r.value), z = F(!0), H = y(
929
- () => r.hasActions ? N.value : R
930
- ), J = y(
931
- () => r.hasActions ? me.value : re.value
932
- );
933
- tt(() => {
934
- if (r.hasActions || Ye(
935
- 'BentoDateRangePicker "hasActions" property',
936
- `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
937
- This will be the default behavior in the v2 and "hasActions" will be removed.`,
938
- "2.0.0"
939
- ), r.value && Ye(
940
- 'BentoDateRangePicker "value" property',
941
- 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
942
- "2.0.0"
943
- ), r.granularities && r.variant !== "month" && r.granularities.find(({ type: s }) => s === "quarterly"))
944
- throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
945
- }), be([() => r.value, () => r.modelValue], () => {
946
- me.value = re.value, N.value = structuredClone(we(R));
947
- });
948
- const X = y(() => [
949
- {
950
- title: e("apply"),
951
- event: () => {
952
- ie(K.value), V(), z.value = !0;
953
- },
954
- disabled: z.value
955
- },
956
- {
957
- title: e("cancel"),
958
- event: V
959
- }
960
- ]);
961
- be(K, (s) => {
962
- if (r.hasActions) {
963
- z.value = v.value;
964
- return;
965
- }
966
- ie(s);
967
- });
968
- const x = (s) => {
969
- v.value = !1, R.startDate = O(s.startDate), R.endDate = O(s.endDate), R.startTime = C(s.startDate), R.endTime = C(s.endDate), K.value = s;
970
- }, $ = async () => {
971
- v.value && (v.value = !1), K.value = null;
972
- }, i = () => {
973
- if (!h.value) {
974
- h.value = !0;
975
- return;
976
- }
977
- v.value || (h.value = !1);
978
- }, ce = (s) => {
979
- v.value = !1, s.startTime && (R.startTime = s.startTime), s.endTime && (R.endTime = s.endTime);
980
- }, De = (s) => {
981
- v.value = !0, R.startDate = s.startDate, R.endDate = s.endDate, K.value = { startDate: null, endDate: null };
982
- }, te = (s) => {
983
- s && (R.startDate = O(s.startDate), R.endDate = O(s.endDate), R.startTime = C(s.startDate), R.endTime = C(s.endDate), K.value = s);
984
- };
985
- return (s, Z) => ht((w(), ge("div", ca, [
986
- s.label ? (w(), L(D(Gt), {
987
- key: 0,
988
- id: D(f),
989
- label: s.label,
990
- "tooltip-text": s.tooltipText,
991
- optional: s.optional,
992
- required: s.required
993
- }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : _("", !0),
994
- P("div", {
995
- onKeydown: $e(i, ["enter"])
996
- }, [
997
- Q(D(Ot), {
998
- ref_key: "inputContainerRef",
999
- ref: E,
1000
- "always-combobox-is-input": "",
1001
- ariaControls: D(d),
1002
- ariaExpanded: h.value,
1003
- "aria-labelledby": s.label ? D(f) : null,
1004
- "aria-describedby": ke.value,
1005
- disabled: s.disabled,
1006
- "is-invalid": !!s.errorMessage || T.value,
1007
- open: h.value,
1008
- "display-value": J.value,
1009
- readonly: D(W),
1010
- onOpen: Me,
1011
- onClear: $,
1012
- onClose: V
1013
- }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly"])
1014
- ], 32),
1015
- T.value ? (w(), L(D(He), {
1016
- key: 1,
1017
- id: D(I),
1018
- "error-message": D(e)("provideDateInAFormat"),
1019
- class: "b-date-range-picker__error-message"
1020
- }, null, 8, ["id", "error-message"])) : _("", !0),
1021
- s.errorMessage ? (w(), L(D(He), {
1022
- key: 2,
1023
- id: D(M),
1024
- "error-message": s.errorMessage,
1025
- class: "b-date-range-picker__error-message"
1026
- }, null, 8, ["id", "error-message"])) : _("", !0),
1027
- s.description ? (w(), L(D(Oe), {
1028
- key: 3,
1029
- id: D(g),
1030
- class: Te(["b-date-range-picker__description", Re.value]),
1031
- el: "span"
1032
- }, {
1033
- default: j(() => [
1034
- ee(Rt(s.description), 1)
1035
- ]),
1036
- _: 1
1037
- }, 8, ["id", "class"])) : _("", !0),
1038
- E.value ? (w(), L(D(St), {
1039
- key: 4,
1040
- id: D(d),
1041
- class: "b-date-range-picker__container",
1042
- open: h.value,
1043
- "target-element": E.value,
1044
- "aria-label": ae.value,
1045
- position: "bottom-start",
1046
- "without-space": "",
1047
- "fit-content": "",
1048
- "trap-all": "",
1049
- "overflow-visible": "",
1050
- onKeydown: $e(V, ["esc", "native"])
1051
- }, {
1052
- default: j(() => [
1053
- Q(D(ua), {
1054
- "allow-time-input": de.value,
1055
- "quick-select-ranges": b.value,
1056
- value: ue.value,
1057
- "first-day-of-week": s.firstDayOfWeek,
1058
- granularities: s.granularities,
1059
- "is-date-disabled": s.isDateDisabled,
1060
- "max-range": s.maxRange,
1061
- min: s.min,
1062
- max: s.max,
1063
- "number-of-months": n.value,
1064
- "show-end-date-on-open": s.showEndDateOnOpen,
1065
- "date-form-data": H.value,
1066
- variant: s.variant,
1067
- onCustomRange: te,
1068
- onInput: x,
1069
- onError: De,
1070
- onFormDate: ce
1071
- }, It({ _: 2 }, [
1072
- s.hasActions ? {
1073
- name: "actions",
1074
- fn: j(() => [
1075
- Q(D(Mt)),
1076
- P("div", Da, [
1077
- Q(D(wt), {
1078
- actions: X.value,
1079
- layout: D(Wt).SPACE_BETWEEN
1080
- }, null, 8, ["actions", "layout"])
1081
- ])
1082
- ]),
1083
- key: "0"
1084
- } : void 0
1085
- ]), 1032, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "granularities", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "date-form-data", "variant"])
1086
- ]),
1087
- _: 1
1088
- }, 8, ["id", "open", "target-element", "aria-label"])) : _("", !0)
1089
- ])), [
1090
- [D(Nt), V]
1091
- ]);
1092
- }
1093
- }), ja = /* @__PURE__ */ nt(va, [["__scopeId", "data-v-b54dde9b"]]);
1094
- export {
1095
- ja as B,
1096
- ua as D,
1097
- Xt as a,
1098
- ye as i
1099
- };
1100
- //# sourceMappingURL=date-range-picker.BAKR_gDf.js.map