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