@adyen/bento-vue3 1.88.1 → 1.89.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +722 -524
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/ai-button.css +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-input.css +1 -1
  16. package/dist/assets/data-grid-template.css +1 -1
  17. package/dist/assets/data-grid.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/index.css +1 -1
  22. package/dist/assets/inspector.css +1 -1
  23. package/dist/assets/list-item.css +1 -0
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/radio-input.css +1 -1
  26. package/dist/assets/selection-card-group.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/timeline-item.css +1 -1
  29. package/dist/assets/use-cached-selected-values.css +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chip.js +1 -1
  34. package/dist/chunks/{accordion-item.QQ06tTjt.js → accordion-item.BX1KrLMl.js} +6 -15
  35. package/dist/chunks/{accordion-item.QQ06tTjt.js.map → accordion-item.BX1KrLMl.js.map} +1 -1
  36. package/dist/chunks/{action-bar.BS2cJzG_.js → action-bar.DLMaIUWW.js} +8 -34
  37. package/dist/chunks/{action-bar.BS2cJzG_.js.map → action-bar.DLMaIUWW.js.map} +1 -1
  38. package/dist/chunks/{ai-button.XfeGC4-Q.js → ai-button.1YJdI-sw.js} +3 -3
  39. package/dist/chunks/{ai-button.XfeGC4-Q.js.map → ai-button.1YJdI-sw.js.map} +1 -1
  40. package/dist/chunks/{ai-tag.DVCW-_vD.js → ai-tag.DK63ExDc.js} +6 -15
  41. package/dist/chunks/{ai-tag.DVCW-_vD.js.map → ai-tag.DK63ExDc.js.map} +1 -1
  42. package/dist/chunks/{alert.CDWtu0Hu.js → alert.C_8-VNi_.js} +6 -24
  43. package/dist/chunks/{alert.CDWtu0Hu.js.map → alert.C_8-VNi_.js.map} +1 -1
  44. package/dist/chunks/anchor-scroller.NhjLDBZI.js +207 -0
  45. package/dist/chunks/{anchor-scroller.BctgW0se.js.map → anchor-scroller.NhjLDBZI.js.map} +1 -1
  46. package/dist/chunks/{base-button.CRYAiuzn.js → base-button.CvHl36Ue.js} +24 -27
  47. package/dist/chunks/{base-button.CRYAiuzn.js.map → base-button.CvHl36Ue.js.map} +1 -1
  48. package/dist/chunks/base-modal.C2-JyHC_.js +424 -0
  49. package/dist/chunks/{base-modal.gZAtk-xP.js.map → base-modal.C2-JyHC_.js.map} +1 -1
  50. package/dist/chunks/button-actions-with-menu.BQFAgAI2.js +85 -0
  51. package/dist/chunks/{button-actions-with-menu.Tba1ME79.js.map → button-actions-with-menu.BQFAgAI2.js.map} +1 -1
  52. package/dist/chunks/{button-actions.BYBpjNqy.js → button-actions.cMQWyZne.js} +511 -542
  53. package/dist/chunks/{button-actions.BYBpjNqy.js.map → button-actions.cMQWyZne.js.map} +1 -1
  54. package/dist/chunks/{button.C6t9_lzm.js → button.DWF7FSIw.js} +42 -45
  55. package/dist/chunks/{button.C6t9_lzm.js.map → button.DWF7FSIw.js.map} +1 -1
  56. package/dist/chunks/calendar.DcCqkSNJ.js +1201 -0
  57. package/dist/chunks/{calendar.vM3abC8y.js.map → calendar.DcCqkSNJ.js.map} +1 -1
  58. package/dist/chunks/{card.Cw63i7Ul.js → card.CoxQ_L0w.js} +9 -21
  59. package/dist/chunks/{card.Cw63i7Ul.js.map → card.CoxQ_L0w.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.ODQy-ICn.js → checkbox-group.96n9Cc3W.js} +5 -5
  61. package/dist/chunks/{checkbox-group.ODQy-ICn.js.map → checkbox-group.96n9Cc3W.js.map} +1 -1
  62. package/dist/chunks/{checkbox-input.BZjSoCQW.js → checkbox-input.CVFQCfZM.js} +44 -51
  63. package/dist/chunks/{checkbox-input.BZjSoCQW.js.map → checkbox-input.CVFQCfZM.js.map} +1 -1
  64. package/dist/chunks/{checkbox.C3Ewfygy.js → checkbox.C6ATh8f5.js} +85 -94
  65. package/dist/chunks/{checkbox.C3Ewfygy.js.map → checkbox.C6ATh8f5.js.map} +1 -1
  66. package/dist/chunks/chevron-right-small.BCinNiMt.js +29 -0
  67. package/dist/chunks/chevron-right-small.BCinNiMt.js.map +1 -0
  68. package/dist/chunks/{chip.CyW1V8RU.js → chip.CdgpQyXN.js} +6 -12
  69. package/dist/chunks/{chip.CyW1V8RU.js.map → chip.CdgpQyXN.js.map} +1 -1
  70. package/dist/chunks/click-outside.BPylIosK.js +20 -0
  71. package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BPylIosK.js.map} +1 -1
  72. package/dist/chunks/{code-snippet.BaJU2I5_.js → code-snippet.DgAuuZF5.js} +9 -24
  73. package/dist/chunks/{code-snippet.BaJU2I5_.js.map → code-snippet.DgAuuZF5.js.map} +1 -1
  74. package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
  75. package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
  76. package/dist/chunks/constructNow.D9uRk678.js +8 -0
  77. package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.D9uRk678.js.map} +1 -1
  78. package/dist/chunks/{controls-group.Bu5lNTyH.js → controls-group.C7hOE1F4.js} +3 -3
  79. package/dist/chunks/{controls-group.Bu5lNTyH.js.map → controls-group.C7hOE1F4.js.map} +1 -1
  80. package/dist/chunks/{copy.C_BCNHYQ.js → copy.C2kQ1PbI.js} +7 -19
  81. package/dist/chunks/{copy.C_BCNHYQ.js.map → copy.C2kQ1PbI.js.map} +1 -1
  82. package/dist/chunks/{country.DJts6kCv.js → country.CaGc08Ps.js} +3 -3
  83. package/dist/chunks/{country.DJts6kCv.js.map → country.CaGc08Ps.js.map} +1 -1
  84. package/dist/chunks/country.types.DjpMGz7a.js +19 -0
  85. package/dist/chunks/{country.types.BBQbWkTY.js.map → country.types.DjpMGz7a.js.map} +1 -1
  86. package/dist/chunks/{currency.Afx8MVdY.js → currency.DuTEzR_W.js} +40 -42
  87. package/dist/chunks/{currency.Afx8MVdY.js.map → currency.DuTEzR_W.js.map} +1 -1
  88. package/dist/chunks/dashboard-section.UafHRkMa.js +161 -0
  89. package/dist/chunks/{dashboard-section.CgoLquLP.js.map → dashboard-section.UafHRkMa.js.map} +1 -1
  90. package/dist/chunks/dashed-underline.CcDV2Aks.js +108 -0
  91. package/dist/chunks/{dashed-underline.wbRHATeE.js.map → dashed-underline.CcDV2Aks.js.map} +1 -1
  92. package/dist/chunks/data-grid-template.CnC4TQvk.js +135 -0
  93. package/dist/chunks/{data-grid-template.D40V1cmi.js.map → data-grid-template.CnC4TQvk.js.map} +1 -1
  94. package/dist/chunks/data-grid.BSIXLRm7.js +4014 -0
  95. package/dist/chunks/{data-grid.C2nCCbeC.js.map → data-grid.BSIXLRm7.js.map} +1 -1
  96. package/dist/chunks/date-picker.dlzZ_-5f.js +231 -0
  97. package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.dlzZ_-5f.js.map} +1 -1
  98. package/dist/chunks/date-range-picker.DC6CK0As.js +995 -0
  99. package/dist/chunks/{date-range-picker.B0q7Z4df.js.map → date-range-picker.DC6CK0As.js.map} +1 -1
  100. package/dist/chunks/{date.BtB1HyWQ.js → date.R2Wz6o7J.js} +28 -28
  101. package/dist/chunks/{date.BtB1HyWQ.js.map → date.R2Wz6o7J.js.map} +1 -1
  102. package/dist/chunks/{de.BJvo6njq.js → de.DXrHnkLX.js} +18 -18
  103. package/dist/chunks/{de.BJvo6njq.js.map → de.DXrHnkLX.js.map} +1 -1
  104. package/dist/chunks/{dialog-page.C1KUI51V.js → dialog-page.COfKqjT-.js} +7 -13
  105. package/dist/chunks/{dialog-page.C1KUI51V.js.map → dialog-page.COfKqjT-.js.map} +1 -1
  106. package/dist/chunks/differenceInMonths.s_znQQpw.js +43 -0
  107. package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.s_znQQpw.js.map} +1 -1
  108. package/dist/chunks/{directive.rXUeDb8p.js → directive.Dpivxq_t.js} +2 -2
  109. package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Dpivxq_t.js.map} +1 -1
  110. package/dist/chunks/{dropdown-default-textbox.CskseEho.js → dropdown-default-textbox.bq9AlGzJ.js} +55 -64
  111. package/dist/chunks/{dropdown-default-textbox.CskseEho.js.map → dropdown-default-textbox.bq9AlGzJ.js.map} +1 -1
  112. package/dist/chunks/{dropdown-tag.Zj-exiup.js → dropdown-tag.Ysrac5GN.js} +82 -86
  113. package/dist/chunks/{dropdown-tag.Zj-exiup.js.map → dropdown-tag.Ysrac5GN.js.map} +1 -1
  114. package/dist/chunks/dropdown.MhmX1P9o.js +799 -0
  115. package/dist/chunks/{dropdown.CxjzXI-k.js.map → dropdown.MhmX1P9o.js.map} +1 -1
  116. package/dist/chunks/{empty-state.DqdPzU-g.js → empty-state.DT4sFyjB.js} +7 -14
  117. package/dist/chunks/{empty-state.DqdPzU-g.js.map → empty-state.DT4sFyjB.js.map} +1 -1
  118. package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.CBpvhDYV.js} +2 -2
  119. package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.CBpvhDYV.js.map} +1 -1
  120. package/dist/chunks/{en-US.YeSsZuOc.js → en-US.CCazFVNP.js} +30 -30
  121. package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.CCazFVNP.js.map} +1 -1
  122. package/dist/chunks/{error-message.oGiefI2-.js → error-message.DCgo8q20.js} +8 -20
  123. package/dist/chunks/{error-message.oGiefI2-.js.map → error-message.DCgo8q20.js.map} +1 -1
  124. package/dist/chunks/{es.DyUjjSL8.js → es.CoF2PB8b.js} +14 -14
  125. package/dist/chunks/{es.DyUjjSL8.js.map → es.CoF2PB8b.js.map} +1 -1
  126. package/dist/chunks/{file-uploader.BnmNI1O7.js → file-uploader.Bfd1uUMe.js} +575 -680
  127. package/dist/chunks/{file-uploader.BnmNI1O7.js.map → file-uploader.Bfd1uUMe.js.map} +1 -1
  128. package/dist/chunks/filter-bar.CkAjLQol.js +3675 -0
  129. package/dist/chunks/filter-bar.CkAjLQol.js.map +1 -0
  130. package/dist/chunks/fixed-scroller.DtkaGyMD.js +150 -0
  131. package/dist/chunks/{fixed-scroller.i1tmEmst.js.map → fixed-scroller.DtkaGyMD.js.map} +1 -1
  132. package/dist/chunks/{focus-trap.BxCwzLqN.js → focus-trap.BAiM_ywb.js} +70 -86
  133. package/dist/chunks/{focus-trap.BxCwzLqN.js.map → focus-trap.BAiM_ywb.js.map} +1 -1
  134. package/dist/chunks/{footer-actions.Ck6UztD8.js → footer-actions.BcYSsoUg.js} +3 -3
  135. package/dist/chunks/{footer-actions.Ck6UztD8.js.map → footer-actions.BcYSsoUg.js.map} +1 -1
  136. package/dist/chunks/{form-layout-title.CQfeGyVw.js → form-layout-title.DW5Kg1rh.js} +4 -6
  137. package/dist/chunks/{form-layout-title.CQfeGyVw.js.map → form-layout-title.DW5Kg1rh.js.map} +1 -1
  138. package/dist/chunks/{fr.JD_4GwS8.js → fr.CJXL-Ief.js} +16 -16
  139. package/dist/chunks/{fr.JD_4GwS8.js.map → fr.CJXL-Ief.js.map} +1 -1
  140. package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
  141. package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
  142. package/dist/chunks/get-slot-text.8Fbl1GOr.js +6 -0
  143. package/dist/chunks/{get-slot-text.CQRAP2_q.js.map → get-slot-text.8Fbl1GOr.js.map} +1 -1
  144. package/dist/chunks/{grid-layout.Vhv1_zFs.js → grid-layout.CCWNscU_.js} +11 -12
  145. package/dist/chunks/{grid-layout.Vhv1_zFs.js.map → grid-layout.CCWNscU_.js.map} +1 -1
  146. package/dist/chunks/{header-meta.lGt3HsyH.js → header-meta.Bym9AlQm.js} +84 -96
  147. package/dist/chunks/{header-meta.lGt3HsyH.js.map → header-meta.Bym9AlQm.js.map} +1 -1
  148. package/dist/chunks/{header-with-views.D_sy4I2A.js → header-with-views.Djba6iol.js} +1013 -1156
  149. package/dist/chunks/{header-with-views.D_sy4I2A.js.map → header-with-views.Djba6iol.js.map} +1 -1
  150. package/dist/chunks/{header.oXqwf2xN.js → header.o-7SyHtU.js} +4 -4
  151. package/dist/chunks/{header.oXqwf2xN.js.map → header.o-7SyHtU.js.map} +1 -1
  152. package/dist/chunks/{index.Dppy4qHk.js → index.DDwcHPb6.js} +12 -12
  153. package/dist/chunks/{index.Dppy4qHk.js.map → index.DDwcHPb6.js.map} +1 -1
  154. package/dist/chunks/{info-icon.DyPOv7Pi.js → info-icon.BUala_wq.js} +3 -3
  155. package/dist/chunks/{info-icon.DyPOv7Pi.js.map → info-icon.BUala_wq.js.map} +1 -1
  156. package/dist/chunks/input-field-password.DZytmp_p.js +346 -0
  157. package/dist/chunks/{input-field-password.C_h61CMn.js.map → input-field-password.DZytmp_p.js.map} +1 -1
  158. package/dist/chunks/{input-field-phone-number.KctRYA9p.js → input-field-phone-number.CxblrmaU.js} +720 -736
  159. package/dist/chunks/{input-field-phone-number.KctRYA9p.js.map → input-field-phone-number.CxblrmaU.js.map} +1 -1
  160. package/dist/chunks/{input-field.DPElUS0U.js → input-field.CfU0ZKtL.js} +42 -54
  161. package/dist/chunks/{input-field.DPElUS0U.js.map → input-field.CfU0ZKtL.js.map} +1 -1
  162. package/dist/chunks/{inspector.BjLhY3bE.js → inspector.B9k4tJWe.js} +9 -27
  163. package/dist/chunks/{inspector.BjLhY3bE.js.map → inspector.B9k4tJWe.js.map} +1 -1
  164. package/dist/chunks/isSameWeek.Dj6luS8h.js +14 -0
  165. package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.Dj6luS8h.js.map} +1 -1
  166. package/dist/chunks/{it.BlUnV-yA.js → it.20Y7h-bF.js} +8 -8
  167. package/dist/chunks/{it.BlUnV-yA.js.map → it.20Y7h-bF.js.map} +1 -1
  168. package/dist/chunks/{ja.nUwDmVf2.js → ja.DXlq0H98.js} +27 -27
  169. package/dist/chunks/{ja.nUwDmVf2.js.map → ja.DXlq0H98.js.map} +1 -1
  170. package/dist/chunks/layout-row.B5VJGEQH.js +99 -0
  171. package/dist/chunks/{layout-row.Da8nkm9z.js.map → layout-row.B5VJGEQH.js.map} +1 -1
  172. package/dist/chunks/link.D6D6YGsN.js +113 -0
  173. package/dist/chunks/{link.DTCn2EtX.js.map → link.D6D6YGsN.js.map} +1 -1
  174. package/dist/chunks/list-item.DO5uULke.js +128 -0
  175. package/dist/chunks/list-item.DO5uULke.js.map +1 -0
  176. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js → listbox-option-tag.Cvplth7d.js} +2 -2
  177. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js.map → listbox-option-tag.Cvplth7d.js.map} +1 -1
  178. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js → modal-fullscreen.CuKVyTWb.js} +100 -108
  179. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js.map → modal-fullscreen.CuKVyTWb.js.map} +1 -1
  180. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js} +134 -143
  181. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map} +1 -1
  182. package/dist/chunks/on-click-outside.ZUMLlxE_.js +90 -0
  183. package/dist/chunks/{on-click-outside.BW4rkhzG.js.map → on-click-outside.ZUMLlxE_.js.map} +1 -1
  184. package/dist/chunks/pagination.dpVc6Yt0.js +401 -0
  185. package/dist/chunks/pagination.dpVc6Yt0.js.map +1 -0
  186. package/dist/chunks/popover.types.D8tHtFl3.js +6 -0
  187. package/dist/chunks/{popover.types.DhALnOLQ.js.map → popover.types.D8tHtFl3.js.map} +1 -1
  188. package/dist/chunks/{popper-container.DAK7c9uS.js → popper-container.DMN8n5iC.js} +79 -86
  189. package/dist/chunks/{popper-container.DAK7c9uS.js.map → popper-container.DMN8n5iC.js.map} +1 -1
  190. package/dist/chunks/{promo-banner.aNwH6uQx.js → promo-banner.BzveHNOI.js} +7 -13
  191. package/dist/chunks/{promo-banner.aNwH6uQx.js.map → promo-banner.BzveHNOI.js.map} +1 -1
  192. package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.DmhmCzxE.js} +14 -14
  193. package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.DmhmCzxE.js.map} +1 -1
  194. package/dist/chunks/{radio-group.DEYzF6o7.js → radio-group.Cuiq4mxy.js} +46 -46
  195. package/dist/chunks/{radio-group.DEYzF6o7.js.map → radio-group.Cuiq4mxy.js.map} +1 -1
  196. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js → rich-text-editor.DLMiT4f5.js} +1018 -1024
  197. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js.map → rich-text-editor.DLMiT4f5.js.map} +1 -1
  198. package/dist/chunks/{search-bar.Dtzx88Pv.js → search-bar.CsFyP0_I.js} +6 -15
  199. package/dist/chunks/{search-bar.Dtzx88Pv.js.map → search-bar.CsFyP0_I.js.map} +1 -1
  200. package/dist/chunks/{secondary-nav.Zs7dBoJv.js → secondary-nav.CLBdq98c.js} +6 -12
  201. package/dist/chunks/{secondary-nav.Zs7dBoJv.js.map → secondary-nav.CLBdq98c.js.map} +1 -1
  202. package/dist/chunks/{segmented-control.Aqquod8g.js → segmented-control.KeQ5kuR1.js} +47 -51
  203. package/dist/chunks/{segmented-control.Aqquod8g.js.map → segmented-control.KeQ5kuR1.js.map} +1 -1
  204. package/dist/chunks/selection-card-group.XM11Kk-4.js +412 -0
  205. package/dist/chunks/{selection-card-group.C7IK2Vl5.js.map → selection-card-group.XM11Kk-4.js.map} +1 -1
  206. package/dist/chunks/{sidepanel.DaXPcTHm.js → sidepanel.b2QZ1Jsx.js} +64 -71
  207. package/dist/chunks/{sidepanel.DaXPcTHm.js.map → sidepanel.b2QZ1Jsx.js.map} +1 -1
  208. package/dist/chunks/startOfWeek.Cvmo-f5J.js +9 -0
  209. package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Cvmo-f5J.js.map} +1 -1
  210. package/dist/chunks/status.H00BAmRx.js +42 -0
  211. package/dist/chunks/status.H00BAmRx.js.map +1 -0
  212. package/dist/chunks/status.types.Dx8MDhEH.js +5 -0
  213. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -0
  214. package/dist/chunks/{step.BV7MsrRF.js → step.BlwoLfdw.js} +56 -68
  215. package/dist/chunks/{step.BV7MsrRF.js.map → step.BlwoLfdw.js.map} +1 -1
  216. package/dist/chunks/{structured-list-item.DAIaUMCY.js → structured-list-item.e-8kRleh.js} +8 -14
  217. package/dist/chunks/{structured-list-item.DAIaUMCY.js.map → structured-list-item.e-8kRleh.js.map} +1 -1
  218. package/dist/chunks/{summary-grid.types.BZcZS_dW.js → summary-grid.types.CcvOC03H.js} +172 -179
  219. package/dist/chunks/{summary-grid.types.BZcZS_dW.js.map → summary-grid.types.CcvOC03H.js.map} +1 -1
  220. package/dist/chunks/tab.mR5uUSdp.js +265 -0
  221. package/dist/chunks/{tab.DRrnMCxe.js.map → tab.mR5uUSdp.js.map} +1 -1
  222. package/dist/chunks/{tag.CqWg6C3H.js → tag.DujMVFh-.js} +3 -3
  223. package/dist/chunks/{tag.CqWg6C3H.js.map → tag.DujMVFh-.js.map} +1 -1
  224. package/dist/chunks/textarea.CHV6Z8nt.js +247 -0
  225. package/dist/chunks/{textarea.CvI2InIB.js.map → textarea.CHV6Z8nt.js.map} +1 -1
  226. package/dist/chunks/timeline-item.CaGcRZbt.js +419 -0
  227. package/dist/chunks/timeline-item.CaGcRZbt.js.map +1 -0
  228. package/dist/chunks/{toast.Bbtq3Icj.js → toast.C2oehk9P.js} +72 -78
  229. package/dist/chunks/{toast.Bbtq3Icj.js.map → toast.C2oehk9P.js.map} +1 -1
  230. package/dist/chunks/{toggle.BupEBkIG.js → toggle.BQoprdX-.js} +5 -5
  231. package/dist/chunks/{toggle.BupEBkIG.js.map → toggle.BQoprdX-.js.map} +1 -1
  232. package/dist/chunks/tooltip.CbADa_4p.js +199 -0
  233. package/dist/chunks/{tooltip.Lwtlhv3u.js.map → tooltip.CbADa_4p.js.map} +1 -1
  234. package/dist/chunks/truncate.DmCXQmeb.js +8 -0
  235. package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
  236. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js} +100 -124
  237. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map} +1 -1
  238. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js → use-bento-toast-controller.D_NSnBxi.js} +2 -2
  239. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js.map → use-bento-toast-controller.D_NSnBxi.js.map} +1 -1
  240. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js +1631 -0
  241. package/dist/chunks/{use-cached-selected-values.C4_X3vVj.js.map → use-cached-selected-values.ClEJRFAd.js.map} +1 -1
  242. package/dist/chunks/use-country-items.D_3LBe2I.js +30 -0
  243. package/dist/chunks/{use-country-items.BTzByPdQ.js.map → use-country-items.D_3LBe2I.js.map} +1 -1
  244. package/dist/chunks/use-country-phon-code.DoqTGkNr.js +287 -0
  245. package/dist/chunks/use-country-phon-code.DoqTGkNr.js.map +1 -0
  246. package/dist/chunks/use-date-input-formatter.CDRzd-hW.js +1629 -0
  247. package/dist/chunks/{use-date-input-formatter.dtbK-CEy.js.map → use-date-input-formatter.CDRzd-hW.js.map} +1 -1
  248. package/dist/chunks/use-default-slot-validator.BzHcrgmy.js +12 -0
  249. package/dist/chunks/{use-default-slot-validator.O02rzsob.js.map → use-default-slot-validator.BzHcrgmy.js.map} +1 -1
  250. package/dist/chunks/use-expandable-content-height.B5jjRvCz.js +16 -0
  251. package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.B5jjRvCz.js.map} +1 -1
  252. package/dist/chunks/use-has-slot.CyMiImRQ.js +14 -0
  253. package/dist/chunks/{use-has-slot.B7eQSabc.js.map → use-has-slot.CyMiImRQ.js.map} +1 -1
  254. package/dist/chunks/utils.DWmc2mUI.js +19 -0
  255. package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
  256. package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Ce34mXsX.js} +28 -28
  257. package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Ce34mXsX.js.map} +1 -1
  258. package/dist/click-outside.js +1 -1
  259. package/dist/code-snippet.js +1 -1
  260. package/dist/country.js +3 -3
  261. package/dist/currency.js +1 -1
  262. package/dist/dashboard-template.js +1 -1
  263. package/dist/dashed-underline.js +1 -1
  264. package/dist/data-grid-template.js +1 -1
  265. package/dist/data-grid.js +1 -1
  266. package/dist/date-picker.js +2 -2
  267. package/dist/date-range-picker.js +2 -2
  268. package/dist/date.js +1 -1
  269. package/dist/draggable-handle.js +4 -28
  270. package/dist/draggable-handle.js.map +1 -1
  271. package/dist/dropdown.js +4 -4
  272. package/dist/empty-state.js +1 -1
  273. package/dist/file-uploader.js +1 -1
  274. package/dist/filter-bar.js +1 -1
  275. package/dist/focus-trap.js +1 -1
  276. package/dist/form-layout.js +1 -1
  277. package/dist/header-with-views.js +1 -1
  278. package/dist/header.js +1 -1
  279. package/dist/index.js +241 -241
  280. package/dist/index.js.map +1 -1
  281. package/dist/info-icon.js +1 -1
  282. package/dist/input-field-password.js +1 -1
  283. package/dist/input-field-phone-number.js +1 -1
  284. package/dist/input-field.js +1 -1
  285. package/dist/inspector.js +1 -1
  286. package/dist/internal.js +13 -13
  287. package/dist/layout.js +1 -1
  288. package/dist/link.js +1 -1
  289. package/dist/list.js +6 -0
  290. package/dist/list.js.map +1 -0
  291. package/dist/menu.js +1 -1
  292. package/dist/modal-fullscreen.js +1 -1
  293. package/dist/modal.js +2 -2
  294. package/dist/pagination.js +1 -1
  295. package/dist/popover.js +2 -2
  296. package/dist/popper-container.js +1 -1
  297. package/dist/promo-banner.js +1 -1
  298. package/dist/radio-group.js +1 -1
  299. package/dist/rich-text-editor.js +1 -1
  300. package/dist/search-bar.js +2 -2
  301. package/dist/secondary-nav.js +1 -1
  302. package/dist/segmented-control.js +1 -1
  303. package/dist/selection-card.js +1 -1
  304. package/dist/sidepanel.js +1 -1
  305. package/dist/status.js +4 -3
  306. package/dist/status.js.map +1 -1
  307. package/dist/stepper.js +1 -1
  308. package/dist/structured-list.js +1 -1
  309. package/dist/summary-grid.js +1 -1
  310. package/dist/tabs.js +1 -1
  311. package/dist/tag.js +1 -1
  312. package/dist/textarea.js +1 -1
  313. package/dist/timeline.js +1 -1
  314. package/dist/toast.js +1 -1
  315. package/dist/toggle.js +1 -1
  316. package/dist/tutorial.js +1 -1
  317. package/dist/use-form-v4.js +331 -341
  318. package/dist/use-form-v4.js.map +1 -1
  319. package/dist/web-types.json +1 -1
  320. package/package.json +7 -7
  321. package/dist/chunks/anchor-scroller.BctgW0se.js +0 -214
  322. package/dist/chunks/base-modal.gZAtk-xP.js +0 -443
  323. package/dist/chunks/button-actions-with-menu.Tba1ME79.js +0 -93
  324. package/dist/chunks/calendar.vM3abC8y.js +0 -1234
  325. package/dist/chunks/click-outside.CDz_x8mN.js +0 -23
  326. package/dist/chunks/constructNow.CIc7d13I.js +0 -8
  327. package/dist/chunks/country.types.BBQbWkTY.js +0 -773
  328. package/dist/chunks/dashboard-section.CgoLquLP.js +0 -165
  329. package/dist/chunks/dashed-underline.wbRHATeE.js +0 -114
  330. package/dist/chunks/data-grid-template.D40V1cmi.js +0 -144
  331. package/dist/chunks/data-grid.C2nCCbeC.js +0 -4368
  332. package/dist/chunks/date-picker.D5B_SECc.js +0 -251
  333. package/dist/chunks/date-range-picker.B0q7Z4df.js +0 -1084
  334. package/dist/chunks/differenceInMonths.CIYECBxK.js +0 -43
  335. package/dist/chunks/dropdown.CxjzXI-k.js +0 -837
  336. package/dist/chunks/filter-bar.DJ7O4zLX.js +0 -4036
  337. package/dist/chunks/filter-bar.DJ7O4zLX.js.map +0 -1
  338. package/dist/chunks/fixed-scroller.i1tmEmst.js +0 -161
  339. package/dist/chunks/get-slot-text.CQRAP2_q.js +0 -12
  340. package/dist/chunks/input-field-password.C_h61CMn.js +0 -402
  341. package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
  342. package/dist/chunks/layout-row.Da8nkm9z.js +0 -100
  343. package/dist/chunks/link.DTCn2EtX.js +0 -116
  344. package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
  345. package/dist/chunks/pagination.B32UgSoH.js +0 -488
  346. package/dist/chunks/pagination.B32UgSoH.js.map +0 -1
  347. package/dist/chunks/popover.types.DhALnOLQ.js +0 -6
  348. package/dist/chunks/selection-card-group.C7IK2Vl5.js +0 -417
  349. package/dist/chunks/startOfWeek.CXhhX-R7.js +0 -10
  350. package/dist/chunks/status.types.D3v3k-Q8.js +0 -44
  351. package/dist/chunks/status.types.D3v3k-Q8.js.map +0 -1
  352. package/dist/chunks/tab.DRrnMCxe.js +0 -273
  353. package/dist/chunks/textarea.CvI2InIB.js +0 -255
  354. package/dist/chunks/timeline-item.BooD99hL.js +0 -427
  355. package/dist/chunks/timeline-item.BooD99hL.js.map +0 -1
  356. package/dist/chunks/tooltip.Lwtlhv3u.js +0 -202
  357. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  358. package/dist/chunks/use-cached-selected-values.C4_X3vVj.js +0 -1711
  359. package/dist/chunks/use-country-items.BTzByPdQ.js +0 -30
  360. package/dist/chunks/use-country-phon-code.Bui3zD6W.js +0 -5621
  361. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +0 -1
  362. package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +0 -1732
  363. package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
  364. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  365. package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
  366. package/dist/chunks/utils.BzUwtTXc.js +0 -21
@@ -0,0 +1,1201 @@
1
+ import { defineComponent as fe, computed as S, resolveComponent as te, openBlock as O, createElementBlock as w, withKeys as ne, normalizeClass as Ye, createElementVNode as p, createVNode as W, withCtx as V, createTextVNode as Ne, toDisplayString as Ee, ref as Q, watch as se, nextTick as tt, toRef as P, resolveDirective as nt, withDirectives as He, mergeProps as We, toHandlers as Ve, createBlock as Z, createCommentVNode as ae, Fragment as z, renderList as J, unref as _, reactive as Ke, resolveDynamicComponent as at } from "vue";
2
+ import { B as we } from "./button.DWF7FSIw.js";
3
+ import { B as Ae } from "./typography.B3J6_tYk.js";
4
+ import { u as Re } from "./index.B875RXHM.js";
5
+ import { g as qe } from "./generate-uid.DBWe4g6T.js";
6
+ import { a as Qe } from "./keyboard-navigation.DWmhelVv.js";
7
+ import { a as ot } from "./index.DDwcHPb6.js";
8
+ import { t as T, c as re, n as Oe, k as Fe, s as st, g as ze } from "./en-US.CCazFVNP.js";
9
+ import { d as Pe, a as Ie } from "./differenceInMonths.s_znQQpw.js";
10
+ import { s as he } from "./startOfWeek.Cvmo-f5J.js";
11
+ import { a as Je, C as Xe } from "./chevron-left.C_vPW7OR.js";
12
+ import { _ as De } from "./_plugin-vue_export-helper.CHgC5LLL.js";
13
+ import { B as rt, a as lt } from "./date.R2Wz6o7J.js";
14
+ import "../assets/calendar.css";
15
+ var R = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.CHANGE_DAY = "changeDay", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(R || {}), X = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(X || {});
16
+ function ce(e, t, n) {
17
+ const a = T(e, n?.in);
18
+ return isNaN(t) ? re(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
19
+ }
20
+ function x(e, t, n) {
21
+ const a = T(e, n?.in);
22
+ if (isNaN(t)) return re(e, NaN);
23
+ if (!t)
24
+ return a;
25
+ const o = a.getDate(), r = re(e, a.getTime());
26
+ r.setMonth(a.getMonth() + t + 1, 0);
27
+ const l = r.getDate();
28
+ return o >= l ? r : (a.setFullYear(
29
+ r.getFullYear(),
30
+ r.getMonth(),
31
+ o
32
+ ), a);
33
+ }
34
+ function ee(e, t) {
35
+ const n = T(e, t?.in);
36
+ return n.setHours(0, 0, 0, 0), n;
37
+ }
38
+ function ut(e, t, n) {
39
+ const [a, o] = Oe(
40
+ n?.in,
41
+ e,
42
+ t
43
+ ), r = ee(a), l = ee(o), i = +r - Fe(r), D = +l - Fe(l);
44
+ return Math.round((i - D) / st);
45
+ }
46
+ function Ze(e, t, n) {
47
+ return x(e, t * 12, n);
48
+ }
49
+ function me(e, t, n) {
50
+ const [a, o] = Oe(
51
+ n?.in,
52
+ e,
53
+ t
54
+ );
55
+ return +ee(a) == +ee(o);
56
+ }
57
+ function it(e, t, n) {
58
+ const [a, o] = Oe(
59
+ n?.in,
60
+ e,
61
+ t
62
+ ), r = Be(a, o), l = Math.abs(
63
+ ut(a, o)
64
+ );
65
+ a.setDate(a.getDate() - r * l);
66
+ const i = +(Be(a, o) === -r), D = r * (l - i);
67
+ return D === 0 ? 0 : D;
68
+ }
69
+ function Be(e, t) {
70
+ const n = e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate() || e.getHours() - t.getHours() || e.getMinutes() - t.getMinutes() || e.getSeconds() - t.getSeconds() || e.getMilliseconds() - t.getMilliseconds();
71
+ return n < 0 ? -1 : n > 0 ? 1 : n;
72
+ }
73
+ function Se(e, t) {
74
+ const n = T(e, t?.in), a = n.getMonth(), o = a - a % 3;
75
+ return n.setMonth(o, 1), n.setHours(0, 0, 0, 0), n;
76
+ }
77
+ function ge(e, t) {
78
+ const n = T(e, t?.in);
79
+ return n.setDate(1), n.setHours(0, 0, 0, 0), n;
80
+ }
81
+ function Ce(e, t) {
82
+ const n = T(e, t?.in);
83
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
84
+ }
85
+ function Me(e, t) {
86
+ const n = ze(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = T(e, t?.in), r = o.getDay(), l = (r < a ? -7 : 0) + 6 - (r - a);
87
+ return o.setDate(o.getDate() + l), o.setHours(23, 59, 59, 999), o;
88
+ }
89
+ function Te(e, t) {
90
+ const n = T(e, t?.in), a = n.getMonth(), o = a - a % 3 + 3;
91
+ return n.setMonth(o, 0), n.setHours(23, 59, 59, 999), n;
92
+ }
93
+ function dt(e, t) {
94
+ const n = T(e, t?.in), a = n.getFullYear(), o = n.getMonth(), r = re(n, 0);
95
+ return r.setFullYear(a, o + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
96
+ }
97
+ function ct(e, t) {
98
+ return +T(e) > +T(t);
99
+ }
100
+ function ft(e, t) {
101
+ return +T(e) < +T(t);
102
+ }
103
+ function Dt(e, t, n) {
104
+ const a = ze(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, r = T(e, n?.in), l = r.getDay(), D = (t % 7 + 7) % 7, N = 7 - o, m = t < 0 || t > 6 ? t - (l + N) % 7 : (D + N) % 7 - (l + N) % 7;
105
+ return ce(r, m, n);
106
+ }
107
+ function ye(e, t, n) {
108
+ const [a, o] = Oe(
109
+ n?.in,
110
+ e,
111
+ t
112
+ );
113
+ return a.getFullYear() === o.getFullYear() && a.getMonth() === o.getMonth();
114
+ }
115
+ function be(e, t, n) {
116
+ const a = +T(e, n?.in), [o, r] = [
117
+ +T(t.start, n?.in),
118
+ +T(t.end, n?.in)
119
+ ].sort((l, i) => l - i);
120
+ return a >= o && a <= r;
121
+ }
122
+ function _e(e, t, n) {
123
+ return ce(e, -t, n);
124
+ }
125
+ function vt(e, t, n) {
126
+ const a = T(e, n?.in), o = a.getFullYear(), r = a.getDate(), l = re(e, 0);
127
+ l.setFullYear(o, t, 15), l.setHours(0, 0, 0, 0);
128
+ const i = dt(l);
129
+ return a.setMonth(t, Math.min(r, i)), a;
130
+ }
131
+ function mt(e, t, n) {
132
+ let a = T(e, n?.in);
133
+ return isNaN(+a) ? re(e, NaN) : (t.year != null && a.setFullYear(t.year), t.month != null && (a = vt(a, t.month)), t.date != null && a.setDate(t.date), t.hours != null && a.setHours(t.hours), t.minutes != null && a.setMinutes(t.minutes), t.seconds != null && a.setSeconds(t.seconds), t.milliseconds != null && a.setMilliseconds(t.milliseconds), a);
134
+ }
135
+ function de(e, t, n) {
136
+ return x(e, -t, n);
137
+ }
138
+ function yt(e, t, n) {
139
+ return Ze(e, -t, n);
140
+ }
141
+ var F = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(F || {}), j = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_DAY = "current-day", e.DISABLED = "disabled", e))(j || {}), ie = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(ie || {});
142
+ const ht = {
143
+ /**
144
+ * Date to be displayed as the calendar day. From 1st to 31st (or end of the month defined in the date)
145
+ */
146
+ day: { type: Date, required: !0 },
147
+ /**
148
+ * Indicate if a date should be disabled or not
149
+ */
150
+ disabled: { type: Boolean, default: !1 },
151
+ /**
152
+ * Changes the state of the calendar day to selected.
153
+ */
154
+ selected: { type: Boolean, default: !1 },
155
+ /**
156
+ * When the day is selected, this indicates if the selection is a single date or part of a range.
157
+ * If it's a range it can be at the beginning, middle or end of the selection.
158
+ */
159
+ variant: {
160
+ type: String,
161
+ default: F.SINGLE,
162
+ validator: (e) => Object.values(F).includes(e)
163
+ }
164
+ }, ke = /* @__PURE__ */ new Map();
165
+ function pe(e, t) {
166
+ const n = t ? JSON.stringify(Object.entries(t).sort()) : "no-options", a = e?.trim() || "en-US", o = `${a}::${n}`;
167
+ if (ke.has(o))
168
+ return ke.get(o);
169
+ const r = new Intl.DateTimeFormat(a, t);
170
+ return ke.set(o, r), r;
171
+ }
172
+ const rn = (e) => {
173
+ if (!e)
174
+ return "";
175
+ const t = (n) => n.toString().padStart(2, "0");
176
+ return [t(e.getHours()), t(e.getMinutes()), t(e.getSeconds())].join(":");
177
+ }, gt = fe({
178
+ name: "calendar-month-day",
179
+ components: { BentoTypography: Ae },
180
+ inheritAttrs: !0,
181
+ props: ht,
182
+ emits: [ie.CLICK, ie.MOUSE_OVER],
183
+ setup(e, { emit: t }) {
184
+ const { locale: n } = Re(void 0), a = S(() => {
185
+ const i = /* @__PURE__ */ new Date();
186
+ return e.day.getDate() === i.getDate() && e.day.getMonth() === i.getMonth() && e.day.getFullYear() === i.getFullYear();
187
+ }), o = S(() => pe(n.value, { day: "numeric" }).formatToParts(e.day).find((m) => m.type === "day")?.value ?? "");
188
+ return {
189
+ // Values
190
+ conditionalClasses: S(() => ({
191
+ // Variants
192
+ [`b-calendar-month-day--${j.BEGINNING}`]: e.variant === F.BEGINNING,
193
+ [`b-calendar-month-day--${j.MIDDLE}`]: e.variant === F.MIDDLE,
194
+ [`b-calendar-month-day--${j.END}`]: e.variant === F.END,
195
+ [`b-calendar-month-day--${j.SINGLE}`]: e.variant === F.SINGLE,
196
+ // Selected
197
+ [`b-calendar-month-day--${j.UNSELECTED}`]: !e.selected,
198
+ [`b-calendar-month-day--${j.SELECTED}`]: e.selected,
199
+ // Current Day
200
+ [`b-calendar-month-day--${j.CURRENT_DAY}`]: a.value,
201
+ // Disabled
202
+ [`b-calendar-month-day--${j.DISABLED}`]: e.disabled
203
+ })),
204
+ isCurrentDay: a,
205
+ formattedDate: o,
206
+ // Enums
207
+ CalendarMonthDayEvent: ie,
208
+ // Events
209
+ onClick: (i, D) => {
210
+ e.disabled ? (i.preventDefault(), i.stopPropagation()) : t(ie.CLICK, D, e.day);
211
+ }
212
+ };
213
+ }
214
+ }), Mt = ["tabindex", "aria-selected", "aria-disabled", "aria-current", "data-date"], Nt = { class: "b-calendar-month-day__wrapper" };
215
+ function Et(e, t, n, a, o, r) {
216
+ const l = te("bento-typography");
217
+ return O(), w("td", {
218
+ class: Ye(["b-calendar-month-day", e.conditionalClasses]),
219
+ tabindex: e.selected ? "0" : "-1",
220
+ "aria-selected": e.selected ? e.selected : void 0,
221
+ "aria-disabled": e.disabled,
222
+ "aria-current": e.isCurrentDay ? "date" : void 0,
223
+ "data-date": e.day.toDateString(),
224
+ onClick: t[0] || (t[0] = (i) => e.onClick(i, e.day)),
225
+ onMouseover: t[1] || (t[1] = (i) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
226
+ onKeydown: t[2] || (t[2] = ne((i) => e.onClick(i, e.day), ["space", "enter"]))
227
+ }, [
228
+ p("div", Nt, [
229
+ W(l, {
230
+ class: "b-calendar-month-day__label",
231
+ el: "span",
232
+ variant: "body",
233
+ strong: ""
234
+ }, {
235
+ default: V(() => [
236
+ Ne(Ee(e.formattedDate), 1)
237
+ ]),
238
+ _: 1
239
+ })
240
+ ])
241
+ ], 42, Mt);
242
+ }
243
+ const bt = /* @__PURE__ */ De(gt, [["render", Et], ["__scopeId", "data-v-e6d7eb12"]]);
244
+ var oe = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(oe || {}), K = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(K || {}), Le = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(Le || {});
245
+ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, o) => {
246
+ const r = Q(new Date(t.value));
247
+ se(
248
+ t,
249
+ () => {
250
+ r.value = t.value;
251
+ },
252
+ { immediate: !0 }
253
+ );
254
+ const l = Q(new Date(e.value));
255
+ se(e, () => {
256
+ l.value = new Date(e.value);
257
+ });
258
+ const i = ot(), D = Q(l.value);
259
+ se(i, (d) => {
260
+ const M = d.getAttribute("data-date");
261
+ D.value = M ? new Date(M) : l.value;
262
+ });
263
+ const N = Q({}), m = (d) => (M) => {
264
+ N.value[d.toDateString()] = M;
265
+ }, g = () => {
266
+ N.value = {};
267
+ }, f = (d = 1) => {
268
+ r.value = x(r.value, d), o(R.NEXT_MONTH, d), g();
269
+ }, c = (d = 1) => {
270
+ r.value = de(r.value, d), o(R.PREVIOUS_MONTH, d), g();
271
+ }, s = (d, M) => {
272
+ const k = !!N.value[d?.toDateString()];
273
+ return !d || !k ? null : M ? N.value[d.toDateString()].$el : (N.value[d.toDateString()].$el.focus(), null);
274
+ }, u = (d) => {
275
+ d.preventDefault(), d.stopImmediatePropagation(), d.stopPropagation();
276
+ }, h = ({ nextDate: d, isIncreasingDays: M, amountOfMonths: k, isCalendarButtonsNav: G }) => {
277
+ if (!G && n && n(d))
278
+ return;
279
+ d.getMonth() === l.value.getMonth() && d.getFullYear() === l.value.getFullYear() ? (l.value = d, s(d)) : (M ? f(k) : c(k), tt(() => {
280
+ const U = d.getMonth() === r.value.getMonth() && d.getFullYear() === r.value.getFullYear();
281
+ n && n(d) || !U || G || (l.value = d, s(d));
282
+ }));
283
+ };
284
+ return {
285
+ // Calendar days ref
286
+ calendarRef: N,
287
+ addDayRef: m,
288
+ /**
289
+ * Month navigation
290
+ */
291
+ showNextMonth: f,
292
+ showPreviousMonth: c,
293
+ /**
294
+ * Focus method
295
+ */
296
+ focusOnDate: s,
297
+ /**
298
+ * Day navigation
299
+ */
300
+ // ArrowRight
301
+ moveToNextDay: (d) => {
302
+ u(d), h({ nextDate: ce(D.value, 1), isIncreasingDays: !0 });
303
+ },
304
+ // ArrowLeft
305
+ moveToPreviousDay: (d) => {
306
+ u(d), h({ nextDate: _e(D.value, 1), isIncreasingDays: !1 });
307
+ },
308
+ // ArrowUp
309
+ moveToPreviousWeek: (d) => {
310
+ u(d), h({ nextDate: _e(D.value, 7), isIncreasingDays: !1 });
311
+ },
312
+ // ArrowDown
313
+ moveToNextWeek: (d) => {
314
+ u(d), h({ nextDate: ce(D.value, 7), isIncreasingDays: !0 });
315
+ },
316
+ // Home
317
+ moveToFirstDayOfWeek: (d) => {
318
+ u(d), h({
319
+ nextDate: he(D.value, { weekStartsOn: a }),
320
+ isIncreasingDays: !1
321
+ });
322
+ },
323
+ moveToFirstMonthOfYear: (d) => {
324
+ u(d);
325
+ const M = Pe(l.value, Ce(l.value));
326
+ h({
327
+ nextDate: Ce(l.value),
328
+ isIncreasingDays: !1,
329
+ amountOfMonths: M
330
+ });
331
+ },
332
+ // End
333
+ moveToLastDayOfWeek: (d) => {
334
+ u(d), h({
335
+ nextDate: Me(D.value, { weekStartsOn: a }),
336
+ isIncreasingDays: !0
337
+ });
338
+ },
339
+ moveToLastMonthOfYear: (d) => {
340
+ u(d);
341
+ const M = mt(l.value, { month: 11, date: 1 }), k = Pe(M, l.value);
342
+ h({
343
+ nextDate: M,
344
+ isIncreasingDays: !0,
345
+ amountOfMonths: k
346
+ });
347
+ },
348
+ // PageUp
349
+ moveToPreviousMonth: (d, M = !1, k = 1) => {
350
+ u(d);
351
+ const G = k;
352
+ h({
353
+ nextDate: de(D.value, G),
354
+ isIncreasingDays: !1,
355
+ amountOfMonths: G,
356
+ isCalendarButtonsNav: M
357
+ });
358
+ },
359
+ // Shift+PageUp
360
+ moveToPreviousYear: (d, M = !1) => {
361
+ u(d);
362
+ const k = 12;
363
+ h({
364
+ nextDate: de(D.value, k),
365
+ isIncreasingDays: !1,
366
+ amountOfMonths: k,
367
+ isCalendarButtonsNav: M
368
+ });
369
+ },
370
+ // PageDown
371
+ moveToNextMonth: (d, M = !1, k = 1) => {
372
+ u(d);
373
+ const G = k;
374
+ h({
375
+ nextDate: x(D.value, G),
376
+ isIncreasingDays: !0,
377
+ amountOfMonths: G,
378
+ isCalendarButtonsNav: M
379
+ });
380
+ },
381
+ // Shift-PageDown
382
+ moveToNextYear: (d, M = !1) => {
383
+ u(d);
384
+ const k = 12;
385
+ h({
386
+ nextDate: x(D.value, k),
387
+ isIncreasingDays: !0,
388
+ amountOfMonths: k,
389
+ isCalendarButtonsNav: M
390
+ });
391
+ },
392
+ // Values
393
+ internalDate: l,
394
+ baseDate: r
395
+ };
396
+ }, Ge = {
397
+ "en-US": { nextMonth: "Next month", previousMonth: "Previous month" },
398
+ "ja-JP": { nextMonth: "翌月", previousMonth: "前月" },
399
+ "pt-BR": { nextMonth: "Próximo mês", previousMonth: "Mês anterior" }
400
+ }, Ot = fe({
401
+ i18n: { messages: Ge },
402
+ name: "calendar-month",
403
+ components: {
404
+ BentoButton: we,
405
+ BentoTypography: Ae,
406
+ CalendarMonthDay: bt,
407
+ ChevronLeftIcon: Xe,
408
+ ChevronRightIcon: Je
409
+ },
410
+ directives: { BentoKeyboardNavigationDirective: Qe },
411
+ props: {
412
+ /**
413
+ * end of the selected range
414
+ */
415
+ endDate: { type: Date, default: null },
416
+ /**
417
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
418
+ */
419
+ firstDayOfWeek: {
420
+ type: Number,
421
+ default: X.MONDAY,
422
+ validator: (e) => Object.values(X).includes(e)
423
+ },
424
+ /**
425
+ * Indicate if a date should be disabled or not
426
+ */
427
+ isDateDisabled: { type: Function, default: void 0 },
428
+ /**
429
+ * Indicates if the calendar is part of a range date picker or a sigle date picker
430
+ */
431
+ isRange: { type: Boolean, default: !1 },
432
+ /**
433
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
434
+ */
435
+ min: { type: Date, default: null },
436
+ /**
437
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
438
+ */
439
+ max: { type: Date, default: null },
440
+ /**
441
+ * Month of the year to be displayed in the calendar
442
+ */
443
+ month: { type: Date, required: !0 },
444
+ /**
445
+ * When rendering multiple calendars, this property allows to render the
446
+ * Next and Previous calendar buttons to the right, left or not at all
447
+ * depending on the position: Unique (only 1), First, Middle or Last
448
+ */
449
+ position: {
450
+ type: String,
451
+ default: "unique",
452
+ validator: (e) => Object.values(oe).includes(e)
453
+ },
454
+ /**
455
+ * start of the selected range
456
+ */
457
+ startDate: { type: Date, default: null }
458
+ // can be undefined, eslint complains without default
459
+ },
460
+ emits: [
461
+ R.CHANGE_DAY,
462
+ R.INPUT,
463
+ R.NEXT_MONTH,
464
+ R.PREVIOUS_MONTH,
465
+ R.MOUSE_OVER
466
+ ],
467
+ setup(e, { emit: t }) {
468
+ const { locale: n, t: a } = Re({ messages: Ge }), o = qe("bento-date-picker-month-label"), r = S(
469
+ () => (I) => e.min && I < e.min || e.max && I > e.max || e.isDateDisabled?.(I)
470
+ ), {
471
+ internalDate: l,
472
+ baseDate: i,
473
+ // Calendar refs
474
+ addDayRef: D,
475
+ // Month navigation
476
+ showNextMonth: N,
477
+ showPreviousMonth: m,
478
+ // Day navigation
479
+ moveToNextDay: g,
480
+ moveToPreviousDay: f,
481
+ moveToPreviousWeek: c,
482
+ moveToNextWeek: s,
483
+ moveToFirstDayOfWeek: u,
484
+ moveToLastDayOfWeek: h,
485
+ moveToPreviousMonth: $,
486
+ moveToPreviousYear: y,
487
+ moveToNextMonth: v,
488
+ moveToNextYear: E,
489
+ focusOnDate: L
490
+ } = xe(
491
+ {
492
+ currentSelectedDate: P(e, "startDate"),
493
+ month: P(e, "month"),
494
+ isDateDisabled: r.value,
495
+ firstDayOfWeek: e.firstDayOfWeek
496
+ },
497
+ t
498
+ ), le = S(
499
+ () => Object.values(X).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : X.MONDAY
500
+ ), ve = S(() => ["first", "unique"].includes(e.position)), b = S(() => ["last", "unique"].includes(e.position)), C = S(
501
+ () => pe(n.value, { month: "long", year: "numeric" }).format(i.value)
502
+ ), Y = S(
503
+ () => new Array(7).fill(/* @__PURE__ */ new Date()).map((I, U) => {
504
+ const ue = Dt(I, le.value + U);
505
+ return pe(n.value, { weekday: "short" }).format(ue);
506
+ })
507
+ ), q = S(() => {
508
+ const I = [], U = ge(e.month);
509
+ let ue = I[I.push([]) - 1];
510
+ for (; U.getMonth() === e.month.getMonth(); )
511
+ U.getDay() - le.value === 0 && ue.length > 0 && (ue = I[I.push([]) - 1]), ue.push(ee(U)), U.setDate(U.getDate() + 1);
512
+ return I;
513
+ });
514
+ return {
515
+ // Refs
516
+ addDayRef: D,
517
+ // Values
518
+ computedIsDateDisabled: r,
519
+ daysOfWeek: Y,
520
+ weeksOfMonth: q,
521
+ formattedMonthDate: C,
522
+ shouldShowNextMonthButton: b,
523
+ shouldShowPreviousMonthButton: ve,
524
+ monthLabelId: o,
525
+ // Enums
526
+ CalendarMonthEvent: R,
527
+ // Functions
528
+ isSelectedDate: (I) => l.value && me(l.value, I) && !e.endDate ? !0 : e.startDate && e.endDate && be(I, { start: e.startDate, end: e.endDate }),
529
+ showNextMonth: N,
530
+ showPreviousMonth: m,
531
+ dayVariant: (I) => {
532
+ if (!e.isRange || me(e.startDate, e.endDate))
533
+ return F.SINGLE;
534
+ if (e.startDate && me(e.startDate, I))
535
+ return F.BEGINNING;
536
+ if (e.endDate && me(e.endDate, I))
537
+ return F.END;
538
+ if (e.startDate && e.endDate && be(I, { start: e.startDate, end: e.endDate }))
539
+ return F.MIDDLE;
540
+ },
541
+ confirmNavigationDate: () => {
542
+ t(R.INPUT, l);
543
+ },
544
+ // Events
545
+ onDayClicked: (I) => {
546
+ t(R.INPUT, I);
547
+ },
548
+ listeners: {
549
+ "keydown:arrow-right": g,
550
+ "keydown:arrow-left": f,
551
+ "keydown:arrow-up": c,
552
+ "keydown:arrow-down": s,
553
+ "keydown:home": u,
554
+ "keydown:end": h,
555
+ "keydown:page-up": $,
556
+ "keydown:shift-page-up": y,
557
+ "keydown:page-down": v,
558
+ "keydown:shift-page-down": E
559
+ },
560
+ // Exposed methods
561
+ focusOnDate: L,
562
+ moveToNextDay: g,
563
+ moveToPreviousDay: f,
564
+ moveToPreviousWeek: c,
565
+ moveToNextWeek: s,
566
+ moveToFirstDayOfWeek: u,
567
+ moveToLastDayOfWeek: h,
568
+ moveToPreviousMonth: $,
569
+ moveToPreviousYear: y,
570
+ moveToNextMonth: v,
571
+ moveToNextYear: E,
572
+ // Translations
573
+ t: a
574
+ };
575
+ }
576
+ }), It = { class: "b-calendar-month__month-selector" }, St = { class: "b-calendar-month__previous" }, Tt = { class: "b-calendar-month__next" }, kt = ["aria-labelledby"], wt = { class: "b-calendar-month__week-header" }, _t = ["colspan"];
577
+ function pt(e, t, n, a, o, r) {
578
+ const l = te("chevron-left-icon"), i = te("bento-button"), D = te("bento-typography"), N = te("chevron-right-icon"), m = te("calendar-month-day"), g = nt("bento-keyboard-navigation-directive");
579
+ return He((O(), w("div", We({ class: "b-calendar-month" }, Ve(e.listeners, !0)), [
580
+ p("div", It, [
581
+ p("div", St, [
582
+ e.shouldShowPreviousMonthButton ? (O(), Z(i, {
583
+ key: 0,
584
+ variant: "tertiary",
585
+ onClick: t[0] || (t[0] = (f) => e.moveToPreviousMonth(f, !0))
586
+ }, {
587
+ iconLeft: V(() => [
588
+ W(l, {
589
+ "svg-title": e.t("previousMonth")
590
+ }, null, 8, ["svg-title"])
591
+ ]),
592
+ _: 1
593
+ })) : ae("", !0)
594
+ ]),
595
+ W(D, {
596
+ id: e.monthLabelId,
597
+ el: "h2",
598
+ variant: "title",
599
+ "aria-live": "polite"
600
+ }, {
601
+ default: V(() => [
602
+ Ne(Ee(e.formattedMonthDate), 1)
603
+ ]),
604
+ _: 1
605
+ }, 8, ["id"]),
606
+ p("div", Tt, [
607
+ e.shouldShowNextMonthButton ? (O(), Z(i, {
608
+ key: 0,
609
+ variant: "tertiary",
610
+ onClick: t[1] || (t[1] = (f) => e.moveToNextMonth(f, !0))
611
+ }, {
612
+ iconLeft: V(() => [
613
+ W(N, {
614
+ "svg-title": e.t("nextMonth")
615
+ }, null, 8, ["svg-title"])
616
+ ]),
617
+ _: 1
618
+ })) : ae("", !0)
619
+ ])
620
+ ]),
621
+ p("table", {
622
+ class: "b-calendar-month__month-container",
623
+ role: "grid",
624
+ "aria-labelledby": e.monthLabelId
625
+ }, [
626
+ p("thead", null, [
627
+ p("tr", wt, [
628
+ (O(!0), w(z, null, J(e.daysOfWeek, (f, c) => (O(), w("th", {
629
+ key: c,
630
+ class: "b-calendar-month__day-of-week",
631
+ scope: "col"
632
+ }, [
633
+ W(D, {
634
+ class: "b-calendar-month__day-of-week-font",
635
+ el: "span",
636
+ variant: "caption"
637
+ }, {
638
+ default: V(() => [
639
+ Ne(Ee(f), 1)
640
+ ]),
641
+ _: 2
642
+ }, 1024)
643
+ ]))), 128))
644
+ ])
645
+ ]),
646
+ p("tbody", null, [
647
+ (O(!0), w(z, null, J(e.weeksOfMonth, (f, c) => (O(), w("tr", { key: c }, [
648
+ c === 0 && f.length < 7 ? (O(), w("td", {
649
+ key: 0,
650
+ colspan: 7 - f.length
651
+ }, null, 8, _t)) : ae("", !0),
652
+ (O(!0), w(z, null, J(f, (s, u) => (O(), Z(m, {
653
+ ref_for: !0,
654
+ ref: e.addDayRef(s),
655
+ key: `calendar-day-${u}`,
656
+ day: s,
657
+ disabled: e.computedIsDateDisabled(s),
658
+ selected: e.isSelectedDate(s),
659
+ variant: e.dayVariant(s),
660
+ onClick: e.onDayClicked,
661
+ onMouseover: (h) => e.$emit(e.CalendarMonthEvent.MOUSE_OVER, s),
662
+ onKeyup: [
663
+ ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["up", "native"]),
664
+ ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["down", "native"]),
665
+ ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["left", "native"]),
666
+ ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["right", "native"])
667
+ ]
668
+ }, null, 8, ["day", "disabled", "selected", "variant", "onClick", "onMouseover", "onKeyup"]))), 128))
669
+ ]))), 128)),
670
+ e.weeksOfMonth?.length < 6 ? (O(!0), w(z, { key: 0 }, J(6 - e.weeksOfMonth?.length, (f) => (O(), w("tr", {
671
+ key: `calendar month filler row ${f}`
672
+ }, t[2] || (t[2] = [
673
+ p("td", {
674
+ "aria-hidden": "true",
675
+ class: "b-calendar-month__empty-cell-filler",
676
+ colspan: 7
677
+ }, null, -1)
678
+ ])))), 128)) : ae("", !0)
679
+ ])
680
+ ], 8, kt)
681
+ ], 16)), [
682
+ [g]
683
+ ]);
684
+ }
685
+ const Ue = /* @__PURE__ */ De(Ot, [["render", pt], ["__scopeId", "data-v-6417cfb0"]]);
686
+ var B = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(B || {}), H = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_MONTH = "current-month", e.DISABLED = "disabled", e))(H || {}), $e = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))($e || {});
687
+ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__wrapper" }, Yt = {}, At = /* @__PURE__ */ fe({
688
+ ...Yt,
689
+ __name: "calendar-year-month",
690
+ props: {
691
+ month: {},
692
+ disabled: { type: Boolean, default: !1 },
693
+ selected: { type: Boolean, default: !1 },
694
+ variant: { default: B.SINGLE }
695
+ },
696
+ emits: ["click", "mouseover"],
697
+ setup(e, { emit: t }) {
698
+ const n = e, a = t, o = S(() => {
699
+ const i = /* @__PURE__ */ new Date();
700
+ return n.month.getMonth() === i.getMonth() && n.month.getFullYear() === i.getFullYear();
701
+ }), r = S(() => ({
702
+ // Variants
703
+ [`b-calendar-year-month--${H.BEGINNING}`]: n.variant === B.BEGINNING,
704
+ [`b-calendar-year-month--${H.MIDDLE}`]: n.variant === B.MIDDLE,
705
+ [`b-calendar-year-month--${H.END}`]: n.variant === B.END,
706
+ [`b-calendar-year-month--${H.SINGLE}`]: n.variant === B.SINGLE,
707
+ // Selected
708
+ [`b-calendar-year-month--${H.UNSELECTED}`]: !n.selected,
709
+ [`b-calendar-year-month--${H.SELECTED}`]: n.selected,
710
+ // Current month
711
+ [`b-calendar-year-month--${H.CURRENT_MONTH}`]: o.value,
712
+ // Disabled
713
+ [`b-calendar-year-month--${H.DISABLED}`]: n.disabled
714
+ })), l = (i, D) => {
715
+ n.disabled ? (i.preventDefault(), i.stopPropagation()) : a($e.CLICK, D, n.month);
716
+ };
717
+ return (i, D) => (O(), w("td", {
718
+ class: Ye(["b-calendar-year-month", r.value]),
719
+ tabindex: i.selected ? "0" : "-1",
720
+ "aria-selected": i.selected ? i.selected : void 0,
721
+ onClick: D[0] || (D[0] = (N) => l(N, i.month)),
722
+ onMouseover: D[1] || (D[1] = (N) => a(_($e).MOUSE_OVER)),
723
+ onKeydown: D[2] || (D[2] = ne((N) => l(N, i.month), ["space", "enter"]))
724
+ }, [
725
+ p("div", $t, [
726
+ W(_(rt), {
727
+ class: "b-calendar-year-month__label",
728
+ date: i.month,
729
+ format: _(lt).SHORT_MONTH
730
+ }, null, 8, ["date", "format"])
731
+ ])
732
+ ], 42, Lt));
733
+ }
734
+ }), Rt = /* @__PURE__ */ De(At, [["__scopeId", "data-v-ad9a13f2"]]), et = {
735
+ "en-US": { nextYear: "Next year", previousYear: "Previous year" },
736
+ "ja-JP": { nextYear: "来年", previousYear: "前年" },
737
+ "pt-BR": { nextYear: "Ano seguinte", previousYear: "Ano anterior" }
738
+ }, Ft = { class: "b-calendar-year__year-selector" }, Pt = { class: "b-calendar-year__previous" }, Bt = { class: "b-calendar-year__next" }, Ct = ["aria-labelledby"], Gt = {
739
+ i18n: { messages: et }
740
+ }, Ut = /* @__PURE__ */ fe({
741
+ ...Gt,
742
+ __name: "calendar-year",
743
+ props: {
744
+ endDate: { default: null },
745
+ isDateDisabled: { type: Function, default: void 0 },
746
+ isRange: { type: Boolean, default: !1 },
747
+ min: { default: null },
748
+ max: { default: null },
749
+ position: { default: "unique" },
750
+ startDate: { default: null },
751
+ year: {}
752
+ },
753
+ emits: ["input", "mouseover", "nextMonth", "previousMonth"],
754
+ setup(e, { expose: t, emit: n }) {
755
+ const a = qe("bento-date-picker-year-label"), o = e, r = n, { t: l } = Re({ messages: et }), i = (b) => o.min && b < o.min || o.max && b > o.max || o.isDateDisabled?.(b), D = S(() => ["first", "unique"].includes(o.position)), N = S(() => ["last", "unique"].includes(o.position)), {
756
+ internalDate: m,
757
+ // Calendar refs
758
+ addDayRef: g,
759
+ // Day navigation
760
+ moveToPreviousMonth: f,
761
+ moveToPreviousYear: c,
762
+ moveToNextMonth: s,
763
+ moveToNextYear: u,
764
+ moveToFirstMonthOfYear: h,
765
+ moveToLastMonthOfYear: $,
766
+ focusOnDate: y
767
+ } = xe(
768
+ {
769
+ currentSelectedDate: P(o, "startDate"),
770
+ month: P(o, "year"),
771
+ isDateDisabled: i
772
+ },
773
+ r
774
+ );
775
+ t({ focusOnDate: y });
776
+ const v = S(() => {
777
+ const b = [];
778
+ let C = 0;
779
+ for (let Y = 0; Y < 3; Y++) {
780
+ const q = [];
781
+ for (let A = 0; A < 4; A++)
782
+ q.push(new Date(o.year.getFullYear(), C++, 1));
783
+ b.push(q);
784
+ }
785
+ return b;
786
+ }), E = (b) => !o.isRange || ye(o.startDate, o.endDate) ? B.SINGLE : o.startDate && ye(o.startDate, b) ? B.BEGINNING : o.endDate && ye(o.endDate, b) ? B.END : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }) ? B.MIDDLE : null, L = (b) => m.value && ye(m.value, b) ? !0 : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }), le = (b) => {
787
+ r("input", b);
788
+ }, ve = o.isRange ? {} : {
789
+ "keydown:arrow-right": s,
790
+ "keydown:arrow-left": f,
791
+ "keydown:arrow-up": (b) => f(b, !1, 4),
792
+ "keydown:arrow-down": (b) => s(b, !1, 4),
793
+ "keydown:home": h,
794
+ "keydown:end": $,
795
+ "keydown:page-up": c,
796
+ "keydown:page-down": u
797
+ };
798
+ return (b, C) => He((O(), w("div", We({ class: "b-calendar-year" }, Ve(_(ve), !0)), [
799
+ p("div", Ft, [
800
+ p("div", Pt, [
801
+ D.value ? (O(), Z(we, {
802
+ key: 0,
803
+ variant: "tertiary",
804
+ onClick: C[0] || (C[0] = (Y) => _(c)(Y, !0))
805
+ }, {
806
+ iconLeft: V(() => [
807
+ W(_(Xe), {
808
+ "svg-title": _(l)("previousYear")
809
+ }, null, 8, ["svg-title"])
810
+ ]),
811
+ _: 1
812
+ })) : ae("", !0)
813
+ ]),
814
+ W(_(Ae), {
815
+ id: _(a),
816
+ el: "h2",
817
+ variant: "title",
818
+ "aria-live": "polite"
819
+ }, {
820
+ default: V(() => [
821
+ Ne(Ee(b.year.getFullYear()), 1)
822
+ ]),
823
+ _: 1
824
+ }, 8, ["id"]),
825
+ p("div", Bt, [
826
+ N.value ? (O(), Z(we, {
827
+ key: 0,
828
+ variant: "tertiary",
829
+ onClick: C[1] || (C[1] = (Y) => _(u)(Y, !0))
830
+ }, {
831
+ iconLeft: V(() => [
832
+ W(_(Je), {
833
+ "svg-title": _(l)("nextYear")
834
+ }, null, 8, ["svg-title"])
835
+ ]),
836
+ _: 1
837
+ })) : ae("", !0)
838
+ ])
839
+ ]),
840
+ p("table", {
841
+ class: "b-calendar-year__year-container",
842
+ role: "grid",
843
+ "aria-labelledby": _(a)
844
+ }, [
845
+ p("tbody", null, [
846
+ (O(!0), w(z, null, J(v.value, (Y, q) => (O(), w("tr", { key: q }, [
847
+ (O(!0), w(z, null, J(Y, (A, d) => (O(), Z(Rt, {
848
+ ref_for: !0,
849
+ ref: _(g)(A),
850
+ key: `calendar-month-${d}`,
851
+ month: A,
852
+ disabled: i(A),
853
+ selected: L(A),
854
+ variant: E(A),
855
+ onClick: le,
856
+ onMouseover: (M) => r("mouseover", A)
857
+ }, null, 8, ["month", "disabled", "selected", "variant", "onMouseover"]))), 128))
858
+ ]))), 128))
859
+ ])
860
+ ], 8, Ct)
861
+ ], 16)), [
862
+ [_(Qe)]
863
+ ]);
864
+ }
865
+ }), je = /* @__PURE__ */ De(Ut, [["__scopeId", "data-v-5ec13be4"]]), jt = ({ selectedDate: e }, t) => {
866
+ const n = Ke({
867
+ startDate: null,
868
+ endDate: null
869
+ });
870
+ return se(
871
+ () => e.value,
872
+ () => {
873
+ n.startDate = e.value, n.endDate = void 0;
874
+ },
875
+ { immediate: !0 }
876
+ ), {
877
+ internalValue: n,
878
+ onDateInput: (o) => {
879
+ t(K.INPUT, o);
880
+ },
881
+ // Empty function to prevent the listeners from throwing a warning
882
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
883
+ onMouseOver: () => {
884
+ }
885
+ };
886
+ }, Ht = (e) => {
887
+ const t = (m, g, f, c) => {
888
+ let s = he(m, { weekStartsOn: e }), u = Me(g || m, { weekStartsOn: e });
889
+ const h = f && s < f, $ = c && u > c;
890
+ return h && (s = he(f, { weekStartsOn: e })), $ && (u = Me(c, { weekStartsOn: e })), s > u && (h ? u = Me(s, { weekStartsOn: e }) : s = he(u, { weekStartsOn: e })), { startDate: s, endDate: u };
891
+ }, n = (m, g, f, c) => {
892
+ let s = ge(m), u = Ie(g || m);
893
+ const h = f && s < f, $ = c && u > c;
894
+ return h && (s = ge(f)), $ && (u = Ie(c)), s > u && (h ? u = Ie(s) : s = ge(u)), { startDate: s, endDate: u };
895
+ }, a = (m, g, f, c) => {
896
+ let s = Se(m), u = Te(g || m);
897
+ const h = f instanceof Date && s < f, $ = c instanceof Date && u > c;
898
+ return h && (s = Se(f)), $ && (u = Te(c)), s > u && (h ? u = Te(s) : s = Se(u)), { startDate: s, endDate: u };
899
+ };
900
+ return {
901
+ adjustDateForWeekly: t,
902
+ adjustDateForMonthly: n,
903
+ adjustDateForQuarterly: a,
904
+ adjustStartDateInputForWeekly: (m, g, f, c) => {
905
+ const { startDate: s } = t(new Date(m), null, f, c);
906
+ return g(s);
907
+ },
908
+ adjustEndDateInputForWeekly: (m, g, f, c) => {
909
+ const { endDate: s } = t(new Date(m), null, f, c);
910
+ return g(s);
911
+ },
912
+ adjustStartDateInputForMonthly: (m, g, f, c) => {
913
+ const { startDate: s } = n(new Date(m), null, f, c);
914
+ return g(s);
915
+ },
916
+ adjustEndDateInputForMonthly: (m, g, f, c) => {
917
+ const { endDate: s } = n(new Date(m), null, f, c);
918
+ return g(s);
919
+ },
920
+ adjustStartDateInputForQuarterly: (m, g, f, c) => {
921
+ const { startDate: s } = a(new Date(m), null, f, c);
922
+ return g(s);
923
+ },
924
+ adjustEndDateInputForQuarterly: (m, g, f, c) => {
925
+ const { endDate: s } = a(new Date(m), null, f, c);
926
+ return g(s);
927
+ }
928
+ };
929
+ }, Wt = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: o, min: r, max: l }, i) => {
930
+ const { adjustDateForWeekly: m, adjustDateForMonthly: g, adjustDateForQuarterly: f } = Ht(o), c = Ke({
931
+ startDate: null,
932
+ endDate: null
933
+ }), s = Q(null);
934
+ se(
935
+ () => e.value,
936
+ () => {
937
+ let { startDate: y = null, endDate: v = null } = e.value || {};
938
+ y && (y = ee(y)), v && (v = ee(v)), !(y && t && t(y) || v && t && t(v) || y && v && ct(y, v)) && (c.startDate = y, c.endDate = v);
939
+ },
940
+ { immediate: !0, deep: !0 }
941
+ );
942
+ const u = (y, v, E) => {
943
+ if (c.startDate = y, c.endDate = v, n.value) {
944
+ const L = it(v, y) - n.value;
945
+ L > 0 && (E < 1 ? (c.startDate = y, c.endDate = _e(v, L)) : (c.startDate = ce(y, L), c.endDate = v));
946
+ }
947
+ i(K.START_DATE_SELECTED, c.startDate), i(K.END_DATE_SELECTED, c.endDate);
948
+ }, h = (y) => {
949
+ if (!(!s.value || t && t(y)))
950
+ if (ft(y, s.value)) {
951
+ if (a?.value?.type === "weekly") {
952
+ const { startDate: v, endDate: E } = m(y, s.value, r.value, l.value);
953
+ u(v, E, -1);
954
+ return;
955
+ }
956
+ if (a?.value?.type === "monthly") {
957
+ const { startDate: v, endDate: E } = g(y, s.value, r.value, l.value);
958
+ u(v, E, -1);
959
+ return;
960
+ }
961
+ if (a?.value?.type === "quarterly") {
962
+ const { startDate: v, endDate: E } = f(y, s.value, r.value, l.value);
963
+ u(v, E, -1);
964
+ return;
965
+ }
966
+ u(y, s.value, -1);
967
+ } else {
968
+ if (a?.value?.type === "weekly") {
969
+ const { startDate: v, endDate: E } = m(s.value, y, r.value, l.value);
970
+ u(v, E, 1);
971
+ return;
972
+ }
973
+ if (a?.value?.type === "monthly") {
974
+ const { startDate: v, endDate: E } = g(s.value, y, r.value, l.value);
975
+ u(v, E, 1);
976
+ return;
977
+ }
978
+ if (a?.value?.type === "quarterly") {
979
+ const { startDate: v, endDate: E } = f(s.value, y, r.value, l.value);
980
+ u(v, E, 1);
981
+ return;
982
+ }
983
+ u(s.value, y, 1);
984
+ }
985
+ };
986
+ return {
987
+ internalValue: c,
988
+ onDateInput: (y) => {
989
+ if (s.value)
990
+ s.value = null, i(K.INPUT, c);
991
+ else {
992
+ let v = y;
993
+ if (a?.value?.type === "weekly") {
994
+ const { startDate: E, endDate: L } = m(y);
995
+ v = E, u(v, L);
996
+ }
997
+ if (a?.value?.type === "monthly") {
998
+ const { startDate: E, endDate: L } = g(y);
999
+ v = E, u(v, L);
1000
+ }
1001
+ if (a?.value?.type === "quarterly") {
1002
+ const { startDate: E, endDate: L } = f(y);
1003
+ v = E, u(v, L);
1004
+ }
1005
+ s.value = v, h(v);
1006
+ }
1007
+ },
1008
+ onMouseOver: h
1009
+ };
1010
+ }, Vt = fe({
1011
+ name: "calendar",
1012
+ components: { CalendarMonth: Ue, CalendarYear: je },
1013
+ props: {
1014
+ /**
1015
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
1016
+ */
1017
+ firstDayOfWeek: {
1018
+ type: Number,
1019
+ default: X.MONDAY,
1020
+ validator: (e) => Object.values(X).includes(e)
1021
+ },
1022
+ /**
1023
+ * The selected granularity configuration
1024
+ */
1025
+ granularity: {
1026
+ type: Object,
1027
+ default: null
1028
+ },
1029
+ /**
1030
+ * Indicate if a date should be disabled or not
1031
+ */
1032
+ isDateDisabled: { type: Function, default: void 0 },
1033
+ /**
1034
+ * Enables the Date Range calendar
1035
+ */
1036
+ isRange: { type: Boolean, default: !1 },
1037
+ /**
1038
+ * Set a maximum number of dates to be selectable by the range.
1039
+ */
1040
+ maxRange: { type: Number, default: null, validator: (e) => !e || e > 0 },
1041
+ /**
1042
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
1043
+ */
1044
+ min: { type: Date, default: null },
1045
+ /**
1046
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
1047
+ */
1048
+ max: { type: Date, default: null },
1049
+ /**
1050
+ * Number of months rendered on pane
1051
+ */
1052
+ numberOfMonths: {
1053
+ type: Number,
1054
+ default: 3,
1055
+ validator: (e) => e >= 1
1056
+ },
1057
+ /**
1058
+ * Upon opening date range picker, end date's month will be pre-selected.
1059
+ */
1060
+ showEndDateOnOpen: { type: Boolean, default: !1 },
1061
+ /**
1062
+ * Selected date. Can be a single Date or a CalendarRangeDate
1063
+ * instance that contains startDate and endDate attributes.
1064
+ */
1065
+ value: { type: [Date, Object], default: void 0 },
1066
+ /**
1067
+ * Default start date for the calendar pane
1068
+ */
1069
+ defaultDisplayMonth: {
1070
+ type: String,
1071
+ default: null,
1072
+ validator: (e) => /^\d{4}-(0?[1-9]|1[012])(-(0?[1-9]|[12][0-9]|3[01]))?$/.test(e)
1073
+ },
1074
+ /**
1075
+ * The type of calendar to display. Defaults to showing days.
1076
+ */
1077
+ variant: {
1078
+ type: String,
1079
+ default: "day",
1080
+ validator: (e) => Object.values(Le).includes(e)
1081
+ }
1082
+ },
1083
+ emit: [K.INPUT, K.START_DATE_SELECTED, K.END_DATE_SELECTED],
1084
+ setup(e, { emit: t }) {
1085
+ const n = Q(null), a = Q();
1086
+ se(
1087
+ () => e.value,
1088
+ () => {
1089
+ if (e.isRange)
1090
+ a.value = e?.showEndDateOnOpen && e.value?.endDate ? e.value?.endDate : e.value?.startDate || /* @__PURE__ */ new Date();
1091
+ else {
1092
+ const s = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1093
+ a.value = e.value || s;
1094
+ }
1095
+ },
1096
+ { immediate: !0, deep: !0 }
1097
+ );
1098
+ const o = S(
1099
+ () => e.variant === Le.MONTH ? je : Ue
1100
+ ), r = S(() => ({
1101
+ "b-calendar__range": e.isRange
1102
+ })), { internalValue: l, onDateInput: i, onMouseOver: D } = e.isRange ? Wt(
1103
+ {
1104
+ selectedDate: P(e, "value"),
1105
+ isDateDisabled: e.isDateDisabled,
1106
+ maxRange: P(e, "maxRange"),
1107
+ granularity: P(e, "granularity"),
1108
+ firstDayOfWeek: e.firstDayOfWeek,
1109
+ min: P(e, "min"),
1110
+ max: P(e, "max")
1111
+ },
1112
+ t
1113
+ ) : jt(
1114
+ {
1115
+ selectedDate: P(e, "value"),
1116
+ firstDayOfWeek: e.firstDayOfWeek
1117
+ },
1118
+ t
1119
+ ), N = (s) => e.numberOfMonths === 1 ? oe.UNIQUE : s === 0 ? oe.FIRST : s === e.numberOfMonths - 1 ? oe.LAST : oe.MIDDLE, m = S(() => (s) => {
1120
+ const u = e?.showEndDateOnOpen && e.isRange ? de(a.value, e.numberOfMonths - 1) : a.value;
1121
+ return x(u, s);
1122
+ }), g = S(() => (s) => {
1123
+ const u = e?.showEndDateOnOpen ? yt(a.value, e.numberOfMonths - 1) : a.value;
1124
+ return Ze(u, s);
1125
+ });
1126
+ return {
1127
+ // Refs
1128
+ calendarRef: n,
1129
+ // Values
1130
+ baseDate: a,
1131
+ calendarComponent: o,
1132
+ conditionalClasses: r,
1133
+ internalValue: l,
1134
+ // Methods
1135
+ calculateOffsetMonth: m,
1136
+ calculateOffsetYear: g,
1137
+ calendarPosition: N,
1138
+ // Events
1139
+ onDateInput: i,
1140
+ onMouseOver: D,
1141
+ calculateNextMonths: (s = 1) => {
1142
+ a.value = x(a.value, s);
1143
+ },
1144
+ calculatePreviousMonths: (s = 1) => {
1145
+ a.value = de(a.value, s);
1146
+ }
1147
+ };
1148
+ }
1149
+ });
1150
+ function Kt(e, t, n, a, o, r) {
1151
+ return O(), w("div", {
1152
+ class: Ye(["b-calendar", e.conditionalClasses])
1153
+ }, [
1154
+ (O(!0), w(z, null, J(e.numberOfMonths, (l, i) => (O(), Z(at(e.calendarComponent), {
1155
+ ref_for: !0,
1156
+ ref: e.numberOfMonths === 1 ? "calendarRef" : null,
1157
+ key: `calendar-${i}`,
1158
+ "first-day-of-week": e.firstDayOfWeek,
1159
+ "is-date-disabled": e.isDateDisabled,
1160
+ month: e.calculateOffsetMonth(i),
1161
+ year: e.calculateOffsetYear(i),
1162
+ position: e.calendarPosition(i),
1163
+ min: e.min,
1164
+ max: e.max,
1165
+ "is-range": e.isRange,
1166
+ "start-date": e.internalValue.startDate,
1167
+ "end-date": e.internalValue.endDate,
1168
+ granularity: e.granularity,
1169
+ onInput: e.onDateInput,
1170
+ onMouseover: e.onMouseOver,
1171
+ onChangeDay: e.onMouseOver,
1172
+ onNextMonth: e.calculateNextMonths,
1173
+ onPreviousMonth: e.calculatePreviousMonths
1174
+ }, null, 40, ["first-day-of-week", "is-date-disabled", "month", "year", "position", "min", "max", "is-range", "start-date", "end-date", "granularity", "onInput", "onMouseover", "onChangeDay", "onNextMonth", "onPreviousMonth"]))), 128))
1175
+ ], 2);
1176
+ }
1177
+ const ln = /* @__PURE__ */ De(Vt, [["render", Kt], ["__scopeId", "data-v-0efc3efc"]]);
1178
+ export {
1179
+ X as C,
1180
+ Le as a,
1181
+ ln as b,
1182
+ K as c,
1183
+ oe as d,
1184
+ x as e,
1185
+ Se as f,
1186
+ pe as g,
1187
+ ee as h,
1188
+ me as i,
1189
+ ce as j,
1190
+ Me as k,
1191
+ _e as l,
1192
+ de as m,
1193
+ Te as n,
1194
+ rn as o,
1195
+ Dt as p,
1196
+ ut as q,
1197
+ Ce as r,
1198
+ ge as s,
1199
+ Ht as u
1200
+ };
1201
+ //# sourceMappingURL=calendar.DcCqkSNJ.js.map