@adyen/bento-vue2 2.0.1 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/@types/index.d.ts +114 -82
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chip.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/input-time.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.B7lteJBu.js → accordion-item.C158YxId.js} +5 -5
- package/dist/chunks/{accordion-item.B7lteJBu.js.map → accordion-item.C158YxId.js.map} +1 -1
- package/dist/chunks/{action-bar.BsXW7BI2.js → action-bar.D29UQHoA.js} +15 -15
- package/dist/chunks/{action-bar.BsXW7BI2.js.map → action-bar.D29UQHoA.js.map} +1 -1
- package/dist/chunks/{ai-button.BnFk5CzK.js → ai-button.qEaHYybv.js} +3 -3
- package/dist/chunks/{ai-button.BnFk5CzK.js.map → ai-button.qEaHYybv.js.map} +1 -1
- package/dist/chunks/{ai-tag.D2Q0xhFK.js → ai-tag.BLi-Xoh_.js} +3 -3
- package/dist/chunks/{ai-tag.D2Q0xhFK.js.map → ai-tag.BLi-Xoh_.js.map} +1 -1
- package/dist/chunks/{alert.DJDHwVeR.js → alert.BddJPWMN.js} +3 -3
- package/dist/chunks/{alert.DJDHwVeR.js.map → alert.BddJPWMN.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.BbvghQxZ.js → anchor-scroller.Clb_9RNz.js} +5 -5
- package/dist/chunks/{anchor-scroller.BbvghQxZ.js.map → anchor-scroller.Clb_9RNz.js.map} +1 -1
- package/dist/chunks/{avatar.CxPKc8Gy.js → avatar.BN4MI-42.js} +2 -2
- package/dist/chunks/{avatar.CxPKc8Gy.js.map → avatar.BN4MI-42.js.map} +1 -1
- package/dist/chunks/{base-button.DOhHyU7x.js → base-button.DYroENBg.js} +3 -3
- package/dist/chunks/{base-button.DOhHyU7x.js.map → base-button.DYroENBg.js.map} +1 -1
- package/dist/chunks/{base-modal.CcmoTJdc.js → base-modal._-Cc6jfi.js} +6 -6
- package/dist/chunks/{base-modal.CcmoTJdc.js.map → base-modal._-Cc6jfi.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BY394ars.js → button-actions-with-menu.1vZJWN1K.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BY394ars.js.map → button-actions-with-menu.1vZJWN1K.js.map} +1 -1
- package/dist/chunks/{button-actions.bkcLUE1G.js → button-actions.CdetBz3J.js} +8 -8
- package/dist/chunks/button-actions.CdetBz3J.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{button.DII5Ifwa.js → button.tsTeQRcP.js} +3 -3
- package/dist/chunks/{button.DII5Ifwa.js.map → button.tsTeQRcP.js.map} +1 -1
- package/dist/chunks/{calendar.CXdLEeN4.js → calendar.BalfhApP.js} +293 -290
- package/dist/chunks/calendar.BalfhApP.js.map +1 -0
- package/dist/chunks/{card.BmpB0VbL.js → card.BhhC01dV.js} +7 -7
- package/dist/chunks/{card.BmpB0VbL.js.map → card.BhhC01dV.js.map} +1 -1
- package/dist/chunks/{checkbox-group.D1uyc3z3.js → checkbox-group.C-1v4X3c.js} +4 -4
- package/dist/chunks/{checkbox-group.D1uyc3z3.js.map → checkbox-group.C-1v4X3c.js.map} +1 -1
- package/dist/chunks/{checkbox.D5xZ5Nnh.js → checkbox.CnuIUi4-.js} +6 -6
- package/dist/chunks/{checkbox.D5xZ5Nnh.js.map → checkbox.CnuIUi4-.js.map} +1 -1
- package/dist/chunks/{chip.DRsJylWl.js → chip.Cc4f2vws.js} +14 -12
- package/dist/chunks/{chip.DRsJylWl.js.map → chip.Cc4f2vws.js.map} +1 -1
- package/dist/chunks/{code-snippet.CnThWqVb.js → code-snippet.Bkd8R0vf.js} +6 -6
- package/dist/chunks/{code-snippet.CnThWqVb.js.map → code-snippet.Bkd8R0vf.js.map} +1 -1
- package/dist/chunks/{controls-group.fdGc6epa.js → controls-group.Bku83Fm_.js} +3 -3
- package/dist/chunks/{controls-group.fdGc6epa.js.map → controls-group.Bku83Fm_.js.map} +1 -1
- package/dist/chunks/{copy.CSk1rCRo.js → copy.B12-P_8A.js} +3 -3
- package/dist/chunks/{copy.CSk1rCRo.js.map → copy.B12-P_8A.js.map} +1 -1
- package/dist/chunks/{country.UZbwr635.js → country._NpkT-91.js} +2 -2
- package/dist/chunks/{country.UZbwr635.js.map → country._NpkT-91.js.map} +1 -1
- package/dist/chunks/country.types.BCOrkmVK.js.map +1 -1
- package/dist/chunks/{currency.POwX-Trj.js → currency.BXsSGoWa.js} +4 -4
- package/dist/chunks/{currency.POwX-Trj.js.map → currency.BXsSGoWa.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CYEoNH9Q.js → dashboard-section.yS2FNoIV.js} +3 -3
- package/dist/chunks/{dashboard-section.CYEoNH9Q.js.map → dashboard-section.yS2FNoIV.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CzKc-fJW.js → dashed-underline.RcRbre03.js} +4 -4
- package/dist/chunks/{dashed-underline.CzKc-fJW.js.map → dashed-underline.RcRbre03.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DCwzh2G7.js → data-grid-template.B5A9whlD.js} +4 -4
- package/dist/chunks/{data-grid-template.DCwzh2G7.js.map → data-grid-template.B5A9whlD.js.map} +1 -1
- package/dist/chunks/{data-grid.CMxQpfrY.js → data-grid.Pg5iM8CJ.js} +25 -25
- package/dist/chunks/{data-grid.CMxQpfrY.js.map → data-grid.Pg5iM8CJ.js.map} +1 -1
- package/dist/chunks/{date-picker.gDsw8bn1.js → date-picker.RFus1MVJ.js} +9 -9
- package/dist/chunks/{date-picker.gDsw8bn1.js.map → date-picker.RFus1MVJ.js.map} +1 -1
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{date-range-picker.CqixIJxG.js → date-range-picker.B2B4hO6R.js} +411 -370
- package/dist/chunks/date-range-picker.B2B4hO6R.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{date-time-picker.Bktntun4.js → date-time-picker.DJxDa81N.js} +6 -6
- package/dist/chunks/{date-time-picker.Bktntun4.js.map → date-time-picker.DJxDa81N.js.map} +1 -1
- package/dist/chunks/{date.CPo8t1n9.js → date.P3Xx7JdV.js} +2 -2
- package/dist/chunks/{date.CPo8t1n9.js.map → date.P3Xx7JdV.js.map} +1 -1
- package/dist/chunks/{dialog-page.Bct3zOQO.js → dialog-page.DORdXmEm.js} +3 -3
- package/dist/chunks/{dialog-page.Bct3zOQO.js.map → dialog-page.DORdXmEm.js.map} +1 -1
- package/dist/chunks/{draggable-handle.DgVdGC1V.js → draggable-handle.BM07OVdH.js} +2 -2
- package/dist/chunks/{draggable-handle.DgVdGC1V.js.map → draggable-handle.BM07OVdH.js.map} +1 -1
- package/dist/chunks/{draggable.DYKdXdbj.js → draggable.BczXedk7.js} +59 -56
- package/dist/chunks/draggable.BczXedk7.js.map +1 -0
- package/dist/chunks/{dropdown-tag.Dk7SooVv.js → dropdown-tag.BmUNKoNw.js} +7 -7
- package/dist/chunks/{dropdown-tag.Dk7SooVv.js.map → dropdown-tag.BmUNKoNw.js.map} +1 -1
- package/dist/chunks/{dropdown.Bnq4kP7k.js → dropdown.CpZQYisR.js} +9 -9
- package/dist/chunks/{dropdown.Bnq4kP7k.js.map → dropdown.CpZQYisR.js.map} +1 -1
- package/dist/chunks/{empty-state.C2wjdE3y.js → empty-state.L3DTfiY7.js} +4 -4
- package/dist/chunks/{empty-state.C2wjdE3y.js.map → empty-state.L3DTfiY7.js.map} +1 -1
- package/dist/chunks/{error-message.DKnoUezI.js → error-message.B-n8wzFo.js} +2 -2
- package/dist/chunks/{error-message.DKnoUezI.js.map → error-message.B-n8wzFo.js.map} +1 -1
- package/dist/chunks/es6.yPcTMnSH.js.map +1 -1
- package/dist/chunks/{field-label.C7BCsofY.js → field-label.BQaDr37D.js} +3 -3
- package/dist/chunks/{field-label.C7BCsofY.js.map → field-label.BQaDr37D.js.map} +1 -1
- package/dist/chunks/{file-uploader.DllKBmP8.js → file-uploader.Bo17jWtf.js} +11 -11
- package/dist/chunks/{file-uploader.DllKBmP8.js.map → file-uploader.Bo17jWtf.js.map} +1 -1
- package/dist/chunks/{filter-bar.D7Lk7wlq.js → filter-bar.Bio9nf9V.js} +28 -27
- package/dist/chunks/filter-bar.Bio9nf9V.js.map +1 -0
- package/dist/chunks/{fixed-scroller.YC4bZifw.js → fixed-scroller.CHmrgoTQ.js} +2 -2
- package/dist/chunks/{fixed-scroller.YC4bZifw.js.map → fixed-scroller.CHmrgoTQ.js.map} +1 -1
- package/dist/chunks/{footer-actions.C9STwwcv.js → footer-actions.B8f-gEQV.js} +4 -4
- package/dist/chunks/{footer-actions.C9STwwcv.js.map → footer-actions.B8f-gEQV.js.map} +1 -1
- package/dist/chunks/{form-layout-group.D4T0Z5xk.js → form-layout-group.BSC2esG8.js} +2 -2
- package/dist/chunks/{form-layout-group.D4T0Z5xk.js.map → form-layout-group.BSC2esG8.js.map} +1 -1
- package/dist/chunks/{form-layout-title.C0lwzPZz.js → form-layout-title.b2BMYjnl.js} +3 -3
- package/dist/chunks/{form-layout-title.C0lwzPZz.js.map → form-layout-title.b2BMYjnl.js.map} +1 -1
- package/dist/chunks/{header-with-views.BqobE7IF.js → header-with-views.BJCjvhem.js} +16 -16
- package/dist/chunks/{header-with-views.BqobE7IF.js.map → header-with-views.BJCjvhem.js.map} +1 -1
- package/dist/chunks/{header.CmyqVXuG.js → header.CDiold9n.js} +5 -5
- package/dist/chunks/{header.CmyqVXuG.js.map → header.CDiold9n.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.BvYyGm4D.js → info-icon-with-popover.BzGVcMqy.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.BvYyGm4D.js.map → info-icon-with-popover.BzGVcMqy.js.map} +1 -1
- package/dist/chunks/{info-icon.B-FAeceD.js → info-icon.D11usblr.js} +2 -2
- package/dist/chunks/{info-icon.B-FAeceD.js.map → info-icon.D11usblr.js.map} +1 -1
- package/dist/chunks/{input-field-password.9bWhLud0.js → input-field-password.D4Jn2yCi.js} +6 -6
- package/dist/chunks/{input-field-password.9bWhLud0.js.map → input-field-password.D4Jn2yCi.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CCn1N9St.js → input-field-phone-number.lV7yePoJ.js} +3 -3
- package/dist/chunks/{input-field-phone-number.CCn1N9St.js.map → input-field-phone-number.lV7yePoJ.js.map} +1 -1
- package/dist/chunks/{input-field.D912rZS_.js → input-field.90DWNO1a.js} +7 -7
- package/dist/chunks/{input-field.D912rZS_.js.map → input-field.90DWNO1a.js.map} +1 -1
- package/dist/chunks/input-time.D7IsprlH.js +157 -0
- package/dist/chunks/input-time.D7IsprlH.js.map +1 -0
- package/dist/chunks/{inspector-page.BRC_7uro.js → inspector-page.IoC9naSV.js} +4 -4
- package/dist/chunks/{inspector-page.BRC_7uro.js.map → inspector-page.IoC9naSV.js.map} +1 -1
- package/dist/chunks/{inspector.IOtNex1r.js → inspector.BwtV4rE9.js} +5 -5
- package/dist/chunks/{inspector.IOtNex1r.js.map → inspector.BwtV4rE9.js.map} +1 -1
- package/dist/chunks/{layout-row.LBn6aJv4.js → layout-row.DYx7F4cb.js} +2 -2
- package/dist/chunks/{layout-row.LBn6aJv4.js.map → layout-row.DYx7F4cb.js.map} +1 -1
- package/dist/chunks/{link.Cls8XShm.js → link.iNnolG9W.js} +2 -2
- package/dist/chunks/{link.Cls8XShm.js.map → link.iNnolG9W.js.map} +1 -1
- package/dist/chunks/{list-item.HjabBEb8.js → list-item.ByyA5h1d.js} +5 -5
- package/dist/chunks/{list-item.HjabBEb8.js.map → list-item.ByyA5h1d.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DhNxvqRO.js → listbox-option-tag.Cp_W_p4z.js} +3 -3
- package/dist/chunks/{listbox-option-tag.DhNxvqRO.js.map → listbox-option-tag.Cp_W_p4z.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Bi1bQs4Z.js → modal-fullscreen.DG8Q-jHL.js} +9 -9
- package/dist/chunks/modal-fullscreen.DG8Q-jHL.js.map +1 -0
- package/dist/chunks/{modal.B3-pmL5s.js → modal.UkzON4bz.js} +7 -7
- package/dist/chunks/{modal.B3-pmL5s.js.map → modal.UkzON4bz.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.BnHdXODQ.js → navigation-menu-group.BzKRuhrd.js} +8 -8
- package/dist/chunks/navigation-menu-group.BzKRuhrd.js.map +1 -0
- package/dist/chunks/{pagination.cI_pc6oE.js → pagination.DZEVT-CA.js} +8 -7
- package/dist/chunks/{pagination.cI_pc6oE.js.map → pagination.DZEVT-CA.js.map} +1 -1
- package/dist/chunks/{payment-method.DcAITDcK.js → payment-method.meF6XN_X.js} +2 -2
- package/dist/chunks/{payment-method.DcAITDcK.js.map → payment-method.meF6XN_X.js.map} +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/popover.types.DvIwSAAp.js.map +1 -1
- package/dist/chunks/popper-container.Cj3AWXSd.js.map +1 -1
- package/dist/chunks/{progress-bar.RlF3a0Gb.js → progress-bar.CaurNYsc.js} +4 -4
- package/dist/chunks/{progress-bar.RlF3a0Gb.js.map → progress-bar.CaurNYsc.js.map} +1 -1
- package/dist/chunks/{promo-banner.B5szTysj.js → promo-banner.CcYpFY9b.js} +3 -3
- package/dist/chunks/{promo-banner.B5szTysj.js.map → promo-banner.CcYpFY9b.js.map} +1 -1
- package/dist/chunks/{radio-group.CvsQDlHi.js → radio-group.CLbYlzD7.js} +5 -5
- package/dist/chunks/{radio-group.CvsQDlHi.js.map → radio-group.CLbYlzD7.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.rXoS7KGY.js → rich-text-editor.5SMm2BbC.js} +11 -11
- package/dist/chunks/{rich-text-editor.rXoS7KGY.js.map → rich-text-editor.5SMm2BbC.js.map} +1 -1
- package/dist/chunks/{scroll-to-section.DhW8SFy0.js → scroll-to-section.CzeBpNj4.js} +2 -2
- package/dist/chunks/{scroll-to-section.DhW8SFy0.js.map → scroll-to-section.CzeBpNj4.js.map} +1 -1
- package/dist/chunks/{search-bar.--4KVNkf.js → search-bar.DrIwlAQj.js} +8 -8
- package/dist/chunks/{search-bar.--4KVNkf.js.map → search-bar.DrIwlAQj.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CgdV0QwZ.js → secondary-nav.DRs5yAve.js} +16 -16
- package/dist/chunks/{secondary-nav.CgdV0QwZ.js.map → secondary-nav.DRs5yAve.js.map} +1 -1
- package/dist/chunks/{segmented-control.nYpRQTGc.js → segmented-control.CcQoBTfT.js} +3 -3
- package/dist/chunks/{segmented-control.nYpRQTGc.js.map → segmented-control.CcQoBTfT.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.CmDuj1c7.js → selection-card-group.BYBAG8ig.js} +49 -48
- package/dist/chunks/{selection-card-group.CmDuj1c7.js.map → selection-card-group.BYBAG8ig.js.map} +1 -1
- package/dist/chunks/{sidepanel.CntIcmx-.js → sidepanel.CLbVkH7v.js} +14 -14
- package/dist/chunks/{sidepanel.CntIcmx-.js.map → sidepanel.CLbVkH7v.js.map} +1 -1
- package/dist/chunks/{status.DJ1Dfh5s.js → status.BdWYs5MK.js} +2 -2
- package/dist/chunks/{status.DJ1Dfh5s.js.map → status.BdWYs5MK.js.map} +1 -1
- package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
- package/dist/chunks/{step.BCa9IOWB.js → step.SkRHgSxN.js} +5 -5
- package/dist/chunks/step.SkRHgSxN.js.map +1 -0
- package/dist/chunks/{structured-list-item.Bhe0CH1M.js → structured-list-item.BgcR0XlO.js} +10 -9
- package/dist/chunks/structured-list-item.BgcR0XlO.js.map +1 -0
- package/dist/chunks/{summary-grid.types.C70ED6WD.js → summary-grid.types.Do2PZQGm.js} +6 -6
- package/dist/chunks/{summary-grid.types.C70ED6WD.js.map → summary-grid.types.Do2PZQGm.js.map} +1 -1
- package/dist/chunks/{tab.BK1sIJAJ.js → tab.zeRxc-3T.js} +49 -48
- package/dist/chunks/tab.zeRxc-3T.js.map +1 -0
- package/dist/chunks/{table-of-contents.BTy95Rrs.js → table-of-contents.D4sF13f8.js} +3 -3
- package/dist/chunks/{table-of-contents.BTy95Rrs.js.map → table-of-contents.D4sF13f8.js.map} +1 -1
- package/dist/chunks/{tag.Dz1FQSZb.js → tag.CgsX8v2m.js} +3 -3
- package/dist/chunks/{tag.Dz1FQSZb.js.map → tag.CgsX8v2m.js.map} +1 -1
- package/dist/chunks/{textarea.CcV9U3I7.js → textarea.DMBnJaB1.js} +7 -7
- package/dist/chunks/textarea.DMBnJaB1.js.map +1 -0
- package/dist/chunks/{timeline-item.BG2by0xf.js → timeline-item.CS7TCdoU.js} +10 -10
- package/dist/chunks/{timeline-item.BG2by0xf.js.map → timeline-item.CS7TCdoU.js.map} +1 -1
- package/dist/chunks/{title-details.ChwPP7C5.js → title-details.BhR2nis-.js} +4 -4
- package/dist/chunks/{title-details.ChwPP7C5.js.map → title-details.BhR2nis-.js.map} +1 -1
- package/dist/chunks/{toast.CO6ByH3n.js → toast.CjDkuh2x.js} +4 -4
- package/dist/chunks/{toast.CO6ByH3n.js.map → toast.CjDkuh2x.js.map} +1 -1
- package/dist/chunks/{toggle.Dgh7aw1D.js → toggle.BL_w2xUm.js} +4 -4
- package/dist/chunks/{toggle.Dgh7aw1D.js.map → toggle.BL_w2xUm.js.map} +1 -1
- package/dist/chunks/{tooltip.DFYc5NKM.js → tooltip.BOe7LOfD.js} +2 -2
- package/dist/chunks/{tooltip.DFYc5NKM.js.map → tooltip.BOe7LOfD.js.map} +1 -1
- package/dist/chunks/{tutorial.K0aOQWIg.js → tutorial.DSbBx_2h.js} +3 -3
- package/dist/chunks/{tutorial.K0aOQWIg.js.map → tutorial.DSbBx_2h.js.map} +1 -1
- package/dist/chunks/{typography.D1OZJbEa.js → typography.Cd386LC_.js} +5 -5
- package/dist/chunks/{typography.D1OZJbEa.js.map → typography.Cd386LC_.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.A5xraVqa.js → use-bento-toast-controller.DMA9d_oD.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.A5xraVqa.js.map → use-bento-toast-controller.DMA9d_oD.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.MgbFwUqJ.js → use-date-input-formatter.CouOE5tF.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.MgbFwUqJ.js.map → use-date-input-formatter.CouOE5tF.js.map} +1 -1
- package/dist/chunks/{use-dynamic-date-fns-locale.Bpb2DeYR.js → use-dynamic-date-fns-locale.DGqfz_nF.js} +2 -2
- package/dist/chunks/{use-dynamic-date-fns-locale.Bpb2DeYR.js.map → use-dynamic-date-fns-locale.DGqfz_nF.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +1 -1
- package/dist/date.js +1 -1
- package/dist/draggable.js +2 -2
- package/dist/dropdown.js +2 -2
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +177 -152
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +2 -2
- package/dist/internal.js +14 -14
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress-bar.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +3 -0
- package/dist/styles/bento-light.css +3 -0
- package/dist/styles/bento.css +3 -0
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +3 -0
- package/dist/styles/utility.css +9 -0
- package/dist/summary-grid.js +1 -1
- package/dist/table-of-contents.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1278 -46
- package/package.json +9 -9
- package/dist/chunks/button-actions.bkcLUE1G.js.map +0 -1
- package/dist/chunks/calendar.CXdLEeN4.js.map +0 -1
- package/dist/chunks/date-range-picker.CqixIJxG.js.map +0 -1
- package/dist/chunks/draggable.DYKdXdbj.js.map +0 -1
- package/dist/chunks/filter-bar.D7Lk7wlq.js.map +0 -1
- package/dist/chunks/input-time.CXMuvF9N.js +0 -105
- package/dist/chunks/input-time.CXMuvF9N.js.map +0 -1
- package/dist/chunks/modal-fullscreen.Bi1bQs4Z.js.map +0 -1
- package/dist/chunks/navigation-menu-group.BnHdXODQ.js.map +0 -1
- package/dist/chunks/step.BCa9IOWB.js.map +0 -1
- package/dist/chunks/structured-list-item.Bhe0CH1M.js.map +0 -1
- package/dist/chunks/tab.BK1sIJAJ.js.map +0 -1
- package/dist/chunks/textarea.CcV9U3I7.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.CXdLEeN4.js","sources":["../../src/components/internal/calendar/calendar.types.ts","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addQuarters.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addWeeks.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameDay.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getQuarter.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarQuarters.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfQuarter.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfQuarter.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isBefore.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDay.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isWithinInterval.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subDays.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/set.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMonths.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subQuarters.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subWeeks.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subYears.js","../../src/components/internal/calendar/components/calendar-year-selector/calendar-year-selector.vue","../../src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.types.ts","../../src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.props.ts","../../src/utils/ts/format-date/format-date.ts","../../src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue","../../src/components/internal/calendar/components/calendar-month/composables/move-calendar-date.ts","../../src/components/internal/calendar/components/calendar-month/calendar-month.vue","../../src/components/internal/calendar/components/calendar-year/components/calendar-year-month/calendar-year-month.types.ts","../../src/components/internal/calendar/components/calendar-year/components/calendar-year-month/calendar-year-month.vue","../../src/components/internal/calendar/components/calendar-year/calendar-year.vue","../../src/components/internal/calendar/composables/use-single-pane.ts","../../src/components/internal/calendar/composables/use-granularity-adjustments.ts","../../src/components/internal/calendar/composables/use-range-pane.ts","../../src/components/internal/calendar/calendar.vue"],"sourcesContent":["import { type Ref, type UnwrapNestedRefs } from 'vue';\nimport type { Day } from 'date-fns';\n\n/**\n * Defines the first day of the week\n */\nexport enum CalendarFirstDayOfWeek {\n MONDAY = 1,\n SATURDAY = 6,\n SUNDAY = 0,\n}\n\nexport type CalendarIsDateDisabled = (date: Date) => boolean;\n\n/**\n * Defines the position in which the calendar will be displayed\n */\nexport enum CalendarPosition {\n FIRST = 'first',\n LAST = 'last',\n MIDDLE = 'middle',\n UNIQUE = 'unique',\n}\n\nexport type CalendarGranularityType = 'daily' | 'weekly' | 'monthly' | 'quarterly';\n\nexport interface CalendarGranularityConfig<T extends CalendarGranularityType = CalendarGranularityType> {\n type: T;\n earliest?: Date;\n latest?: Date;\n disabled?: boolean;\n maxRange?: number;\n}\n\nexport interface CalendarRangeDateValue {\n startDate: Date;\n endDate: Date;\n granularity?: CalendarGranularityType;\n range?: string;\n}\n\nexport type CalendarSingleDateValue = Date;\nexport type CalendarValue = CalendarSingleDateValue | CalendarRangeDateValue;\n\ninterface UseCalendarPaneProps {\n isDateDisabled?: (date: Date) => boolean;\n maxRange?: Ref<number>;\n selectedDate: Ref<CalendarValue>;\n granularity?: Ref<CalendarGranularityConfig>;\n firstDayOfWeek: Day;\n min?: Ref<Date>;\n max?: Ref<Date>;\n}\n\nexport enum CalendarEvent {\n INPUT = 'input',\n START_DATE_SELECTED = 'start-date-selected',\n END_DATE_SELECTED = 'end-date-selected',\n}\n\n/**\n * Private types\n */\nexport enum CalendarVariant {\n DAY = 'day',\n MONTH = 'month',\n}\n\nexport type UseCalendarPane = (\n propRefs: UseCalendarPaneProps,\n emit\n) => {\n internalValue: UnwrapNestedRefs<CalendarRangeDateValue>;\n onDateInput: (date: Date) => void;\n onMouseOver: (date: Date) => void;\n};\n\n/**\n * Defines the range of selectable years in the calendar's year selector dropdown\n */\nexport interface CalendarYearRange {\n /**\n * The earliest selectable year (inclusive)\n */\n minYear?: number;\n /**\n * The latest selectable year (inclusive)\n */\n maxYear?: number;\n}\n\nexport interface CalendarEmit {\n /**\n * Triggered when a date is selected\n */\n (e: 'input', date: Date): void;\n\n /**\n * Triggered when the active day changes\n */\n (e: 'changeDay', day: Date): void;\n\n /**\n * Triggered when navigating to the next month\n */\n (e: 'nextMonth', month: number): void;\n\n /**\n * Triggered when navigating to the previous month\n */\n (e: 'previousMonth', month: number): void;\n\n /**\n * Triggered when the mouse hovers over a date, used for range selection\n */\n (e: 'mouseover', date: Date): void;\n}\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfDay} function options.\n */\n\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport function startOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfDay;\n","import { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { millisecondsInDay } from \"./constants.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link differenceInCalendarDays} function options.\n */\n\n/**\n * @name differenceInCalendarDays\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates. This means that the times are removed\n * from the dates and then the difference in days is calculated.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - The options object\n *\n * @returns The number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInCalendarDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n * // How many calendar days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInCalendarDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 1\n */\nexport function differenceInCalendarDays(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const laterStartOfDay = startOfDay(laterDate_);\n const earlierStartOfDay = startOfDay(earlierDate_);\n\n const laterTimestamp =\n +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);\n const earlierTimestamp =\n +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);\n\n // Round the number of days to the nearest integer because the number of\n // milliseconds in a day is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarDays;\n","import { addMonths } from \"./addMonths.js\";\n\n/**\n * The {@link addQuarters} function options.\n */\n\n/**\n * @name addQuarters\n * @category Quarter Helpers\n * @summary Add the specified number of year quarters to the given date.\n *\n * @description\n * Add the specified number of year quarters to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of quarters to be added.\n * @param options - An object with options\n *\n * @returns The new date with the quarters added\n *\n * @example\n * // Add 1 quarter to 1 September 2014:\n * const result = addQuarters(new Date(2014, 8, 1), 1)\n * //=; Mon Dec 01 2014 00:00:00\n */\nexport function addQuarters(date, amount, options) {\n return addMonths(date, amount * 3, options);\n}\n\n// Fallback for modularized imports:\nexport default addQuarters;\n","import { addDays } from \"./addDays.js\";\n\n/**\n * The {@link addWeeks} function options.\n */\n\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of weeks to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of weeks to be added.\n * @param options - An object with options\n *\n * @returns The new date with the weeks added\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * const result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\nexport function addWeeks(date, amount, options) {\n return addDays(date, amount * 7, options);\n}\n\n// Fallback for modularized imports:\nexport default addWeeks;\n","import { addMonths } from \"./addMonths.js\";\n\n/**\n * The {@link addYears} function options.\n */\n\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be added.\n * @param options - The options\n *\n * @returns The new date with the years added\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\nexport function addYears(date, amount, options) {\n return addMonths(date, amount * 12, options);\n}\n\n// Fallback for modularized imports:\nexport default addYears;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link isSameDay} function options.\n */\n\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day (and year and month)?\n *\n * @description\n * Are the given dates in the same day (and year and month)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same day (and year and month)\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n *\n * @example\n * // Are 4 September and 4 October in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))\n * //=> false\n *\n * @example\n * // Are 4 September, 2014 and 4 September, 2015 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))\n * //=> false\n */\nexport function isSameDay(laterDate, earlierDate, options) {\n const [dateLeft_, dateRight_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return +startOfDay(dateLeft_) === +startOfDay(dateRight_);\n}\n\n// Fallback for modularized imports:\nexport default isSameDay;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getQuarter} function options.\n */\n\n/**\n * @name getQuarter\n * @category Quarter Helpers\n * @summary Get the year quarter of the given date.\n *\n * @description\n * Get the year quarter of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The quarter\n *\n * @example\n * // Which quarter is 2 July 2014?\n * const result = getQuarter(new Date(2014, 6, 2));\n * //=> 3\n */\nexport function getQuarter(date, options) {\n const _date = toDate(date, options?.in);\n const quarter = Math.trunc(_date.getMonth() / 3) + 1;\n return quarter;\n}\n\n// Fallback for modularized imports:\nexport default getQuarter;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { getQuarter } from \"./getQuarter.js\";\n\n/**\n * The {@link differenceInCalendarQuarters} function options.\n */\n\n/**\n * @name differenceInCalendarQuarters\n * @category Quarter Helpers\n * @summary Get the number of calendar quarters between the given dates.\n *\n * @description\n * Get the number of calendar quarters between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of calendar quarters\n *\n * @example\n * // How many calendar quarters are between 31 December 2013 and 2 July 2014?\n * const result = differenceInCalendarQuarters(\n * new Date(2014, 6, 2),\n * new Date(2013, 11, 31)\n * )\n * //=> 3\n */\nexport function differenceInCalendarQuarters(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();\n const quartersDiff = getQuarter(laterDate_) - getQuarter(earlierDate_);\n\n return yearsDiff * 4 + quartersDiff;\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarQuarters;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfQuarter} function options.\n */\n\n/**\n * @name startOfQuarter\n * @category Quarter Helpers\n * @summary Return the start of a year quarter for the given date.\n *\n * @description\n * Return the start of a year quarter for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a quarter\n *\n * @example\n * // The start of a quarter for 2 September 2014 11:55:00:\n * const result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Jul 01 2014 00:00:00\n */\nexport function startOfQuarter(date, options) {\n const _date = toDate(date, options?.in);\n const currentMonth = _date.getMonth();\n const month = currentMonth - (currentMonth % 3);\n _date.setMonth(month, 1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfQuarter;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfMonth} function options.\n */\n\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date. The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.\n * Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,\n * or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfYear} function options.\n */\n\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport function startOfYear(date, options) {\n const date_ = toDate(date, options?.in);\n date_.setFullYear(date_.getFullYear(), 0, 1);\n date_.setHours(0, 0, 0, 0);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default startOfYear;\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfWeek} function options.\n */\n\n/**\n * @name endOfWeek\n * @category Week Helpers\n * @summary Return the end of a week for the given date.\n *\n * @description\n * Return the end of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a week\n *\n * @example\n * // The end of a week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sat Sep 06 2014 23:59:59.999\n *\n * @example\n * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport function endOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);\n\n _date.setDate(_date.getDate() + diff);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfWeek;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfQuarter} function options.\n */\n\n/**\n * @name endOfQuarter\n * @category Quarter Helpers\n * @summary Return the end of a year quarter for the given date.\n *\n * @description\n * Return the end of a year quarter for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a quarter\n *\n * @example\n * // The end of a quarter for 2 September 2014 11:55:00:\n * const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport function endOfQuarter(date, options) {\n const _date = toDate(date, options?.in);\n const currentMonth = _date.getMonth();\n const month = currentMonth - (currentMonth % 3) + 3;\n _date.setMonth(month, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfQuarter;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDaysInMonth} function options.\n */\n\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date, considering the context if provided.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The number of days in a month\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nexport function getDaysInMonth(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const monthIndex = _date.getMonth();\n const lastDayOfMonth = constructFrom(_date, 0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDaysInMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param date - The date that should be after the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is after the second date\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport function isAfter(date, dateToCompare) {\n return +toDate(date) > +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isAfter;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param date - The date that should be before the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is before the second date\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport function isBefore(date, dateToCompare) {\n return +toDate(date) < +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isBefore;\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { addDays } from \"./addDays.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setDay} function options.\n */\n\n/**\n * @name setDay\n * @category Weekday Helpers\n * @summary Set the day of the week to the given date.\n *\n * @description\n * Set the day of the week to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param day - The day of the week of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the day of the week set\n *\n * @example\n * // Set week day to Sunday, with the default weekStartsOn of Sunday:\n * const result = setDay(new Date(2014, 8, 1), 0)\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Set week day to Sunday, with a weekStartsOn of Monday:\n * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 00:00:00\n */\nexport function setDay(date, day, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const date_ = toDate(date, options?.in);\n const currentDay = date_.getDay();\n\n const remainder = day % 7;\n const dayIndex = (remainder + 7) % 7;\n\n const delta = 7 - weekStartsOn;\n const diff =\n day < 0 || day > 6\n ? day - ((currentDay + delta) % 7)\n : ((dayIndex + delta) % 7) - ((currentDay + delta) % 7);\n return addDays(date_, diff, options);\n}\n\n// Fallback for modularized imports:\nexport default setDay;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameMonth} function options.\n */\n\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month (and year)?\n *\n * @description\n * Are the given dates in the same month (and year)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same month (and year)\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n *\n * @example\n * // Are 2 September 2014 and 25 September 2015 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))\n * //=> false\n */\nexport function isSameMonth(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return (\n laterDate_.getFullYear() === earlierDate_.getFullYear() &&\n laterDate_.getMonth() === earlierDate_.getMonth()\n );\n}\n\n// Fallback for modularized imports:\nexport default isSameMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link isWithinInterval} function options.\n */\n\n/**\n * @name isWithinInterval\n * @category Interval Helpers\n * @summary Is the given date within the interval?\n *\n * @description\n * Is the given date within the interval? (Including start and end.)\n *\n * @param date - The date to check\n * @param interval - The interval to check\n * @param options - An object with options\n *\n * @returns The date is within the interval\n *\n * @example\n * // For the date within the interval:\n * isWithinInterval(new Date(2014, 0, 3), {\n * start: new Date(2014, 0, 1),\n * end: new Date(2014, 0, 7)\n * })\n * // => true\n *\n * @example\n * // For the date outside of the interval:\n * isWithinInterval(new Date(2014, 0, 10), {\n * start: new Date(2014, 0, 1),\n * end: new Date(2014, 0, 7)\n * })\n * // => false\n *\n * @example\n * // For date equal to the interval start:\n * isWithinInterval(date, { start, end: date })\n * // => true\n *\n * @example\n * // For date equal to the interval end:\n * isWithinInterval(date, { start: date, end })\n * // => true\n */\nexport function isWithinInterval(date, interval, options) {\n const time = +toDate(date, options?.in);\n const [startTime, endTime] = [\n +toDate(interval.start, options?.in),\n +toDate(interval.end, options?.in),\n ].sort((a, b) => a - b);\n\n return time >= startTime && time <= endTime;\n}\n\n// Fallback for modularized imports:\nexport default isWithinInterval;\n","import { addDays } from \"./addDays.js\";\n\n/**\n * The {@link subDays} function options.\n */\n\n/**\n * @name subDays\n * @category Day Helpers\n * @summary Subtract the specified number of days from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be subtracted.\n * @param options - An object with options\n *\n * @returns The new date with the days subtracted\n *\n * @example\n * // Subtract 10 days from 1 September 2014:\n * const result = subDays(new Date(2014, 8, 1), 10)\n * //=> Fri Aug 22 2014 00:00:00\n */\nexport function subDays(date, amount, options) {\n return addDays(date, -amount, options);\n}\n\n// Fallback for modularized imports:\nexport default subDays;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { getDaysInMonth } from \"./getDaysInMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setMonth} function options.\n */\n\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param month - The month index to set (0-11)\n * @param options - The options\n *\n * @returns The new date with the month set\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\nexport function setMonth(date, month, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const day = _date.getDate();\n\n const midMonth = constructFrom(options?.in || date, 0);\n midMonth.setFullYear(year, month, 15);\n midMonth.setHours(0, 0, 0, 0);\n const daysInMonth = getDaysInMonth(midMonth);\n\n // Set the earlier date, allows to wrap Jan 31 to Feb 28\n _date.setMonth(month, Math.min(day, daysInMonth));\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMonth;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { setMonth } from \"./setMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link set} function options.\n */\n\n/**\n * @name set\n * @category Common Helpers\n * @summary Set date values to a given date.\n *\n * @description\n * Set date values to a given date.\n *\n * Sets time values to date from object `values`.\n * A value is not set if it is undefined or null or doesn't exist in `values`.\n *\n * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts\n * to use native `Date#setX` methods. If you use this function, you may not want to include the\n * other `setX` functions that date-fns provides if you are concerned about the bundle size.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param values - The date values to be set\n * @param options - The options\n *\n * @returns The new date with options set\n *\n * @example\n * // Transform 1 September 2014 into 20 October 2015 in a single line:\n * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })\n * //=> Tue Oct 20 2015 00:00:00\n *\n * @example\n * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:\n * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })\n * //=> Mon Sep 01 2014 12:23:45\n */\nexport function set(date, values, options) {\n let _date = toDate(date, options?.in);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+_date)) return constructFrom(options?.in || date, NaN);\n\n if (values.year != null) _date.setFullYear(values.year);\n if (values.month != null) _date = setMonth(_date, values.month);\n if (values.date != null) _date.setDate(values.date);\n if (values.hours != null) _date.setHours(values.hours);\n if (values.minutes != null) _date.setMinutes(values.minutes);\n if (values.seconds != null) _date.setSeconds(values.seconds);\n if (values.milliseconds != null) _date.setMilliseconds(values.milliseconds);\n\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default set;\n","import { addMonths } from \"./addMonths.js\";\n\n/**\n * The subMonths function options.\n */\n\n/**\n * @name subMonths\n * @category Month Helpers\n * @summary Subtract the specified number of months from the given date.\n *\n * @description\n * Subtract the specified number of months from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be subtracted.\n * @param options - An object with options\n *\n * @returns The new date with the months subtracted\n *\n * @example\n * // Subtract 5 months from 1 February 2015:\n * const result = subMonths(new Date(2015, 1, 1), 5)\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function subMonths(date, amount, options) {\n return addMonths(date, -amount, options);\n}\n\n// Fallback for modularized imports:\nexport default subMonths;\n","import { addQuarters } from \"./addQuarters.js\";\n\n/**\n * The {@link subQuarters} function options.\n */\n\n/**\n * @name subQuarters\n * @category Quarter Helpers\n * @summary Subtract the specified number of year quarters from the given date.\n *\n * @description\n * Subtract the specified number of year quarters from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of quarters to be subtracted.\n * @param options - An object with options\n *\n * @returns The new date with the quarters subtracted\n *\n * @example\n * // Subtract 3 quarters from 1 September 2014:\n * const result = subQuarters(new Date(2014, 8, 1), 3)\n * //=> Sun Dec 01 2013 00:00:00\n */\nexport function subQuarters(date, amount, options) {\n return addQuarters(date, -amount, options);\n}\n\n// Fallback for modularized imports:\nexport default subQuarters;\n","import { addWeeks } from \"./addWeeks.js\";\n\n/**\n * The {@link subWeeks} function options.\n */\n\n/**\n * @name subWeeks\n * @category Week Helpers\n * @summary Subtract the specified number of weeks from the given date.\n *\n * @description\n * Subtract the specified number of weeks from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of weeks to be subtracted.\n * @param options - An object with options\n *\n * @returns The new date with the weeks subtracted\n *\n * @example\n * // Subtract 4 weeks from 1 September 2014:\n * const result = subWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Aug 04 2014 00:00:00\n */\nexport function subWeeks(date, amount, options) {\n return addWeeks(date, -amount, options);\n}\n\n// Fallback for modularized imports:\nexport default subWeeks;\n","import { addYears } from \"./addYears.js\";\n\n/**\n * The {@link subYears} function options.\n */\n\n/**\n * @name subYears\n * @category Year Helpers\n * @summary Subtract the specified number of years from the given date.\n *\n * @description\n * Subtract the specified number of years from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be subtracted.\n * @param options - An object with options\n *\n * @returns The new date with the years subtracted\n *\n * @example\n * // Subtract 5 years from 1 September 2014:\n * const result = subYears(new Date(2014, 8, 1), 5)\n * //=> Tue Sep 01 2009 00:00:00\n */\nexport function subYears(date, amount, options) {\n return addYears(date, -amount, options);\n}\n\n// Fallback for modularized imports:\nexport default subYears;\n","<template>\n <bento-dropdown\n :items=\"yearOptions\"\n :aria-label=\"t('selectYear')\"\n :model-value=\"currentYear\"\n @update:model-value=\"onYearSelected\"\n />\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide } from 'vue';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useI18n } from '@/utils/ts/i18n';\n import type { CalendarYearSelectorProps } from './calendar-year-selector.types';\n import {\n DROPDOWN_SMALL_SIZE_INJECTION_KEY,\n DROPDOWN_UNDERLINE_STYLE_INJECTION_KEY,\n } from '@/components/dropdown/dropdown.keys';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_YEAR_RANGE_OFFSET = 100;\n\n const props = defineProps({\n currentYear: null,\n yearRange: { default: undefined },\n max: { default: undefined },\n min: { default: undefined }\n});\n\n const emit = defineEmits([\"update:year\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n // Provide dropdown styles\n provide(DROPDOWN_SMALL_SIZE_INJECTION_KEY, true);\n provide(DROPDOWN_UNDERLINE_STYLE_INJECTION_KEY, true);\n\n /**\n * Computes the available year options for the calendar's year selector dropdown.\n * The selectable range is determined by the `yearRange` prop, which dictates how many\n * years in the past and future should be available, while respecting `min` and `max` date constraints.\n */\n const yearOptions = computed(() => {\n // Use the system's current year as the anchor so the range doesn't shift during month navigation\n const systemCurrentYear = new Date().getFullYear();\n\n let startYear = props.yearRange?.minYear ?? systemCurrentYear - DEFAULT_YEAR_RANGE_OFFSET;\n let endYear = props.yearRange?.maxYear ?? systemCurrentYear + DEFAULT_YEAR_RANGE_OFFSET;\n\n // Prevent the user from scrolling to years earlier than the minimum allowed date\n if (props.min && props.min.getFullYear() > startYear) {\n startYear = props.min.getFullYear();\n }\n // Prevent the user from scrolling to years earlier than the maximum allowed date\n if (props.max && props.max.getFullYear() < endYear) {\n endYear = props.max.getFullYear();\n }\n\n // Populate options array\n const optionsLength = Math.max(0, endYear - startYear + 1);\n return new Array(optionsLength).fill(0).map((_, index) => {\n const year = startYear + index;\n return { label: String(year), value: year };\n });\n });\n\n const onYearSelected = (newYear: number) => {\n emit('update:year', newYear);\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * A standalone year selector dropdown for the calendar component.\n */\n export default {\n i18n: { messages },\n name: 'calendar-year-selector',\n };\n</script>\n","export enum CalendarMonthDayVariant {\n SINGLE = 'single',\n MIDDLE = 'middle',\n BEGINNING = 'beginning',\n END = 'end',\n}\n\nexport enum CalendarMonthDayClass {\n // Variant\n SINGLE = CalendarMonthDayVariant.SINGLE,\n MIDDLE = CalendarMonthDayVariant.MIDDLE,\n BEGINNING = CalendarMonthDayVariant.BEGINNING,\n END = CalendarMonthDayVariant.END,\n\n // Selected\n SELECTED = 'selected',\n UNSELECTED = 'unselected',\n\n // Current day\n CURRENT_DAY = 'current-day',\n\n // Disabled\n DISABLED = 'disabled',\n}\n\nexport enum CalendarMonthDayEvent {\n CLICK = 'click',\n MOUSE_OVER = 'mouseover',\n}\n","import { type PropType } from 'vue';\nimport { CalendarMonthDayVariant } from './calendar-month-day.types';\n\nexport const CalendarMonthDateProps = {\n /**\n * Date to be displayed as the calendar day. From 1st to 31st (or end of the month defined in the date)\n */\n day: { type: Date, required: true },\n\n /**\n * Indicate if a date should be disabled or not\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Changes the state of the calendar day to selected.\n */\n selected: { type: Boolean, default: false },\n\n /**\n * When the day is selected, this indicates if the selection is a single date or part of a range.\n * If it's a range it can be at the beginning, middle or end of the selection.\n */\n variant: {\n type: String as PropType<CalendarMonthDayVariant>,\n default: CalendarMonthDayVariant.SINGLE,\n validator: (value: CalendarMonthDayVariant) => Object.values(CalendarMonthDayVariant).includes(value),\n },\n};\n","/**\n * Date and time formatting utilities.\n *\n * This file provides a high-performance factory (`getDateTimeFormatter`) that uses caching\n * to efficiently create and reuse `Intl.DateTimeFormat` instances for general date display.\n *\n * It also contains a specialized utility (`dateToTimeInputString`) for converting Date objects\n * into string formats for time text inputs.\n *\n * TODO: Move time-related input formatting and validation (including input masking)\n * into its own dedicated composable in the future.\n */\n\n// A Map to store our cached formatters\nexport const formatterCache = new Map<string, Intl.DateTimeFormat>();\n\n/**\n * Retrieves a cached Intl.DateTimeFormat instance or creates a new one.\n * @param locale - The locale string (e.g. 'en-US') or array of locales.\n * @param options - The Intl formatting options object.\n */\nexport function getDateTimeFormatter(\n locale: string | undefined,\n options?: Intl.DateTimeFormatOptions\n): Intl.DateTimeFormat {\n // 1. Create a stable unique string for the options object\n // We sort the keys so { month: 'short', day: 'numeric' }\n // generates the same key as { day: 'numeric', month: 'short' }\n const optionsKey = options ? JSON.stringify(Object.entries(options).sort()) : 'no-options';\n\n // 2. Handle the locale key (it can be a string, array, or undefined)\n const localeKey = locale?.trim() || 'en-US';\n\n // 3. Combine them to make the final cache key\n const cacheKey = `${localeKey}::${optionsKey}`;\n\n // 4. Return cached instance if it exists\n if (formatterCache.has(cacheKey)) {\n // We use '!' here because we just confirmed it exists with .has()\n return formatterCache.get(cacheKey)!;\n }\n\n // 5. Otherwise, create a new one\n const newFormatter = new Intl.DateTimeFormat(localeKey, options);\n\n // 6. Save to cache\n formatterCache.set(cacheKey, newFormatter);\n\n return newFormatter;\n}\n\n/**\n * Converts a Date object to a \"HH:MM:SS\" string\n * for use in <input type=\"text\" /> value.\n * @param date the date object to transform into a string\n * @returns time string\n */\nexport const dateToTimeInputString = (date: Date): string => {\n if (!date) {\n return '';\n }\n\n const pad = (num: number) => num.toString().padStart(2, '0');\n\n return [pad(date.getHours()), pad(date.getMinutes()), pad(date.getSeconds())].join(':');\n};\n\n/**\n * Converts a Date object to a \"YYYY-MM-DD\" string for native <input type=\"date\" />.\n * @param date - The date object to transform.\n * @returns The formatted date string.\n */\nexport const dateToNativeDateString = (date: Date): string => {\n if (!date || isNaN(date.getTime())) {\n return '';\n }\n\n const year = date.getFullYear();\n // Add 1 because getMonth() is 0-indexed (January = 0, December = 11).\n // padStart(2, '0') ensures two digits (e.g., 1 -> \"01\", 12 -> \"12\").\n const month = (date.getMonth() + 1).toString().padStart(2, '0');\n const day = date.getDate().toString().padStart(2, '0');\n\n return `${year}-${month}-${day}`;\n};\n\n/**\n * Converts a Date object to a \"YYYY-MM\" string for native <input type=\"month\" />.\n * @param date - The date object to transform.\n * @returns The formatted date string.\n */\nexport const dateToNativeMonthString = (date: Date): string => {\n if (!date || isNaN(date.getTime())) {\n return '';\n }\n\n const year = date.getFullYear();\n const month = (date.getMonth() + 1).toString().padStart(2, '0');\n\n return `${year}-${month}`;\n};\n\n/**\n * Parses a native date input string into a Date object.\n * Supports both \"YYYY-MM-DD\" (date input) and \"YYYY-MM\" (month input) formats.\n * Native inputs always provide values in these ISO formats regardless of locale.\n * @param value - The native input string to parse.\n * @param format - The expected format: 'date' for \"YYYY-MM-DD\", 'month' for \"YYYY-MM\".\n * @returns The parsed Date object, or Invalid Date if the input is invalid.\n */\nexport const parseNativeDateString = (value: string, format: 'date' | 'month' = 'date'): Date => {\n if (!value) {\n return new Date(NaN);\n }\n\n const [year, month, day] = value.split('-').map(Number);\n return new Date(year, month - 1, format === 'month' ? 1 : day);\n};\n\n/**\n * Parses a \"YYYY-MM\" string into a Date object (set to the first day of that month).\n * @param value - The \"YYYY-MM\" string to parse.\n * @returns The parsed Date object.\n */\nexport const parseNativeMonthString = (value: string): Date => {\n if (!value) {\n return new Date(NaN);\n }\n\n const [year, month] = value.split('-').map(Number);\n return new Date(year, month - 1, 1);\n};\n","<template>\n <td\n class=\"b-calendar-month-day\"\n :class=\"conditionalClasses\"\n :tabindex=\"selected ? '0' : '-1'\"\n :aria-selected=\"selected ? selected : undefined\"\n :aria-disabled=\"disabled\"\n :aria-current=\"isCurrentDay ? 'date' : undefined\"\n :data-date=\"day.toDateString()\"\n @click=\"e => onClick(e, day)\"\n @mouseover=\"$emit(CalendarMonthDayEvent.MOUSE_OVER)\"\n @keydown.space.enter=\"e => onClick(e, day)\"\n >\n <div class=\"b-calendar-month-day__wrapper\">\n <bento-typography class=\"b-calendar-month-day__label\" el=\"span\" variant=\"body\" strong>\n <time :datetime=\"dateTime\">{{ formattedDate }}</time>\n </bento-typography>\n </div>\n </td>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoTypography } from '../../../../../../typography';\n import { CalendarMonthDayClass, CalendarMonthDayEvent, CalendarMonthDayVariant } from './calendar-month-day.types';\n import { CalendarMonthDateProps } from './calendar-month-day.props';\n import { getDateTimeFormatter } from '@/utils/ts/format-date';\n import { useI18n } from '@/utils/ts/i18n';\n\n /**\n * Handles the styles and states of the individual dates of the calendar.\n *\n * @example\n * import { CalendarMonthDay, CalendarMonthDayVariant } from './calendar-day';\n *\n * export default {\n * components: { CalendarMonthDay },\n * template: `\n * <table>\n * <tbody>\n * <tr>\n * <calendar-day\n * :day=\"new Date()\"\n * disabled\n * selected\n * :variant=\"CalendarMonthDayVariant.MIDDLE\"\n * />\n * </tr>\n * </tbody>\n * </table>\n * `\n * }\n */\n export default defineComponent({\n name: 'calendar-month-day',\n components: { BentoTypography },\n inheritAttrs: true,\n props: CalendarMonthDateProps,\n emits: [CalendarMonthDayEvent.CLICK, CalendarMonthDayEvent.MOUSE_OVER],\n setup(props, { emit }) {\n const { locale } = useI18n(undefined, true);\n const isCurrentDay = computed(() => {\n const today = new Date();\n return (\n props.day.getDate() === today.getDate() &&\n props.day.getMonth() === today.getMonth() &&\n props.day.getFullYear() === today.getFullYear()\n );\n });\n\n /**\n * Only get translated day part of the date\n */\n const formattedDate = computed(() => {\n const formatter = getDateTimeFormatter(locale.value, { day: 'numeric' });\n\n const parts = formatter.formatToParts(props.day);\n const dayPart = parts.find(part => part.type === 'day');\n return dayPart?.value ?? '';\n });\n const dateTime = computed(() => (Number.isNaN(props.day.getTime()) ? undefined : props.day.toISOString()));\n\n const conditionalClasses = computed(() => ({\n // Variants\n [`b-calendar-month-day--${CalendarMonthDayClass.BEGINNING}`]:\n props.variant === CalendarMonthDayVariant.BEGINNING,\n [`b-calendar-month-day--${CalendarMonthDayClass.MIDDLE}`]:\n props.variant === CalendarMonthDayVariant.MIDDLE,\n [`b-calendar-month-day--${CalendarMonthDayClass.END}`]: props.variant === CalendarMonthDayVariant.END,\n [`b-calendar-month-day--${CalendarMonthDayClass.SINGLE}`]:\n props.variant === CalendarMonthDayVariant.SINGLE,\n\n // Selected\n [`b-calendar-month-day--${CalendarMonthDayClass.UNSELECTED}`]: !props.selected,\n [`b-calendar-month-day--${CalendarMonthDayClass.SELECTED}`]: props.selected,\n\n // Current Day\n [`b-calendar-month-day--${CalendarMonthDayClass.CURRENT_DAY}`]: isCurrentDay.value,\n\n // Disabled\n [`b-calendar-month-day--${CalendarMonthDayClass.DISABLED}`]: props.disabled,\n }));\n\n const onClick = (e: MouseEvent | KeyboardEvent, selectedDay: Date) => {\n if (!props.disabled) {\n emit(CalendarMonthDayEvent.CLICK, selectedDay, props.day);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n\n return {\n // Values\n conditionalClasses,\n isCurrentDay,\n formattedDate,\n dateTime,\n\n // Enums\n CalendarMonthDayEvent,\n\n // Events\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./calendar-month-day.scss\" />\n","import { nextTick, type Ref, ref, watch } from 'vue';\nimport { useActiveElement } from '@vueuse/core';\nimport { type CalendarEmit, type CalendarFirstDayOfWeek } from '../../../calendar.types';\nimport { addDays } from 'date-fns/addDays';\nimport { addMonths } from 'date-fns/addMonths';\nimport { differenceInMonths } from 'date-fns/differenceInMonths';\nimport { endOfWeek } from 'date-fns/endOfWeek';\nimport { set } from 'date-fns/set';\nimport { startOfWeek } from 'date-fns/startOfWeek';\nimport { startOfYear } from 'date-fns/startOfYear';\nimport { subDays } from 'date-fns/subDays';\nimport { subMonths } from 'date-fns/subMonths';\nimport { addYears } from 'date-fns/addYears';\nimport { subYears } from 'date-fns/subYears';\n\ninterface UseMoveCalendarDate {\n currentSelectedDate: Ref<Date>;\n month: Ref<Date>;\n isDateDisabled?: (currentDate: Date) => boolean;\n firstDayOfWeek?: CalendarFirstDayOfWeek.MONDAY | CalendarFirstDayOfWeek.SATURDAY | CalendarFirstDayOfWeek.SUNDAY;\n}\n\nexport const useMoveCalendarDate = (\n { currentSelectedDate, month, isDateDisabled, firstDayOfWeek }: UseMoveCalendarDate,\n emit: CalendarEmit\n) => {\n // Use a duplicate of \"month\" to move back and\n // forth with the arrows. Maintained in sync with the prop\n const baseDate = ref(new Date(month.value));\n watch(\n month,\n () => {\n baseDate.value = month.value;\n },\n { immediate: true }\n );\n\n /**\n * Internal date used to actvate the dates through keyboard without\n * selecting it. This allows to easily move around the dates.\n */\n const internalDate = ref(new Date(currentSelectedDate.value));\n\n watch(currentSelectedDate, () => {\n internalDate.value = new Date(currentSelectedDate.value);\n });\n\n /**\n * For ranged dates, we need to keep track of the date that is currently being focused.\n * The first click is always to set the start date and the next click is for the end date.\n * Hence, to increment/decrement dates, we identify via `[data-date]` attribute as we need it to effectively +/-1 day for keyboard navigation.\n */\n const activeElement = useActiveElement();\n const focusedDate = ref<Date>(internalDate.value);\n\n watch(activeElement, el => {\n const currentDate = el.getAttribute('data-date');\n\n focusedDate.value = currentDate ? new Date(currentDate) : internalDate.value;\n });\n\n // Refs for calendar days\n const calendarRef = ref({});\n /**\n * High order function that maps each day in the calendar to their resopective Vue element ref.\n * Adds a day reference into \"calendarRef\" to be allow calendar navigation.\n * Each item is a key-value pair, where the key is the date in string form and\n * the value is the ref to the element.\n *\n *\n * @param {Date} day - Date to be added to the ref\n * @returns {Function} Maps the element ref to a date\n */\n const addDayRef = (day: Date) => enteringRef => {\n calendarRef.value[day.toDateString()] = enteringRef;\n };\n\n /**\n * Reset calendar references of each day of the month\n */\n const clearCalendarRefs = () => {\n calendarRef.value = {};\n };\n\n /**\n * Calculates what the next month's date will be and clears the calendar refs\n * @param {Number} amountOfMonths - Number of months that will be added\n */\n const showNextMonth = (amountOfMonths = 1) => {\n baseDate.value = addMonths(baseDate.value, amountOfMonths);\n emit('nextMonth', amountOfMonths);\n clearCalendarRefs();\n };\n\n /**\n * Calculates what the previous month's date will be and clears the calendar refs\n * @param {Number} amountOfMonths - Number of months that will be added\n */\n const showPreviousMonth = (amountOfMonths = 1) => {\n baseDate.value = subMonths(baseDate.value, amountOfMonths);\n emit('previousMonth', amountOfMonths);\n clearCalendarRefs();\n };\n\n /**\n * Changes focus to the indicated date.\n * Exposed to the component to set the initial focused date, which can also be null.\n * @param dateToBeFocusedOn - Date to be focused on\n * @param getFocusedElement - Get the element to be focused on instead of automatically focusing on it\n */\n const focusOnDate = (dateToBeFocusedOn: Date, getFocusedElement?: boolean): Element | null => {\n const dateExistsInCalendar = !!calendarRef.value[dateToBeFocusedOn?.toDateString()];\n\n // Focus only if the date exists\n if (!dateToBeFocusedOn || !dateExistsInCalendar) {\n return null;\n }\n\n if (getFocusedElement) {\n return calendarRef.value[dateToBeFocusedOn.toDateString()].$el;\n }\n\n calendarRef.value[dateToBeFocusedOn.toDateString()].$el.focus();\n\n return null;\n };\n\n /**\n * Prevents the event from bubbling\n * @param {Event} event - Triggered event\n */\n const stopPropagation = (event: Event) => {\n if (!event) {\n return;\n }\n\n event.preventDefault();\n event.stopImmediatePropagation();\n event.stopPropagation();\n };\n\n // Keyboard Navigation events\n interface ChangeDate {\n nextDate: Date;\n isIncreasingDays: boolean;\n amountOfMonths?: number;\n isCalendarButtonsNav?: boolean;\n }\n /**\n * Activates the date passed in \"nextDate\".\n * Doesn't trigger the emit event to select the date, given this is only done\n * when the \"Enter\" key is pressed.\n *\n * The date passed is evaluated to check if it's the same month and year,\n * if not then a new month is rendered through {@see showNextMonth} or {@see showPreviousMonth}.\n *\n * If the date passed is disabled no action is taken.\n *\n * @param {Date} nextDate - Date to be processed and if it's not disabled it should make it active.\n * @param {Boolean} isIncreasinDays - Indicates if the date before or after the currently selected date.\n * @param {Number} amountOfMonths - Amount of months it's increasing or decreasing. Used to calculate the month to be rendered\n * @param {boolean} isCalendarButtonsNav - Indicates whether this action is triggered by the calendar navigation\n */\n const changeDate = ({ nextDate, isIncreasingDays, amountOfMonths, isCalendarButtonsNav }: ChangeDate) => {\n // Do not change date if nextDay is disabled\n if (!isCalendarButtonsNav && isDateDisabled && isDateDisabled(nextDate)) {\n return;\n }\n\n const isNextDaySameMonthAndYear =\n nextDate.getMonth() === internalDate.value.getMonth() &&\n nextDate.getFullYear() === internalDate.value.getFullYear();\n // If it's in the same month, make \"nextDate\" the active date (not selected)\n if (isNextDaySameMonthAndYear) {\n internalDate.value = nextDate;\n focusOnDate(nextDate);\n } else {\n // Show next/previous month\n // and waits for the refs to be re-populated\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n isIncreasingDays ? showNextMonth(amountOfMonths) : showPreviousMonth(amountOfMonths);\n nextTick(() => {\n const isNextDateInTheDisplayedMonthAndYear =\n nextDate.getMonth() === baseDate.value.getMonth() &&\n nextDate.getFullYear() === baseDate.value.getFullYear();\n\n if ((isDateDisabled && isDateDisabled(nextDate)) || !isNextDateInTheDisplayedMonthAndYear) {\n return;\n }\n\n if (!isCalendarButtonsNav) {\n internalDate.value = nextDate;\n\n focusOnDate(nextDate);\n }\n });\n }\n };\n\n /**\n * Move the current date to the next calendar day\n * @param {Event} event - Triggered event\n */\n const moveToNextDay = (event: Event) => {\n stopPropagation(event);\n\n const daysToAdd = 1;\n changeDate({ nextDate: addDays(focusedDate.value, daysToAdd), isIncreasingDays: true });\n };\n\n /**\n * Move the current date to the previous calendar day\n * @param {Event} event - Triggered event\n */\n const moveToPreviousDay = (event: Event) => {\n stopPropagation(event);\n\n const daysToSubstract = 1;\n changeDate({ nextDate: subDays(focusedDate.value, daysToSubstract), isIncreasingDays: false });\n };\n\n /**\n * Move the current date to the same week day in the previous week\n * @param {Event} event - Triggered event\n */\n const moveToPreviousWeek = (event: Event) => {\n stopPropagation(event);\n\n const daysToSubstract = 7;\n changeDate({ nextDate: subDays(focusedDate.value, daysToSubstract), isIncreasingDays: false });\n };\n\n /**\n * Move the current date to the same week day in the next week\n * @param {Event} event - Triggered event\n */\n const moveToNextWeek = (event: Event) => {\n stopPropagation(event);\n\n const daysToAdd = 7;\n changeDate({ nextDate: addDays(focusedDate.value, daysToAdd), isIncreasingDays: true });\n };\n\n /**\n * Move the current date to the first day of the week\n * @param {Event} event - Triggered event\n */\n const moveToFirstDayOfWeek = (event: Event) => {\n stopPropagation(event);\n\n changeDate({\n nextDate: startOfWeek(focusedDate.value, { weekStartsOn: firstDayOfWeek }),\n isIncreasingDays: false,\n });\n };\n\n /**\n * Move the current date to the last day of the week\n * @param {Event} event - Triggered event\n */\n const moveToLastDayOfWeek = (event: Event) => {\n stopPropagation(event);\n\n changeDate({\n nextDate: endOfWeek(focusedDate.value, { weekStartsOn: firstDayOfWeek }),\n isIncreasingDays: true,\n });\n };\n\n /**\n * Move the current date to the same day in the previous year\n * @param event - Triggered event\n * @param isCalendarButtonsNav - Indicates whether this action is triggered by the calendar navigation\n * @param yearsToSubstract - The amount of years to go back to\n */\n const moveToPreviousYear = (event: Event, isCalendarButtonsNav = false, yearsToSubstract = 1) => {\n stopPropagation(event);\n\n changeDate({\n nextDate: subYears(focusedDate.value, yearsToSubstract),\n isIncreasingDays: false,\n amountOfMonths: yearsToSubstract * 12,\n isCalendarButtonsNav,\n });\n };\n\n /**\n * Move the current date to the same day in the previous month.\n * If the date doesn't exists, moves to the last day of th month.\n * @param event - Triggered event\n * @param isCalendarButtonsNav - Indicates whether this action is triggered by the calendar navigation\n * @param monthsToSubstract - The amount of months to go back to\n */\n const moveToPreviousMonth = (event: Event, isCalendarButtonsNav = false, monthsToSubstract = 1) => {\n stopPropagation(event);\n\n changeDate({\n nextDate: subMonths(focusedDate.value, monthsToSubstract),\n isIncreasingDays: false,\n amountOfMonths: monthsToSubstract,\n isCalendarButtonsNav,\n });\n };\n\n /**\n * Move the current date to the same day in the next year\n * @param event - Triggered event\n * @param isCalendarButtonsNav - Indicates whether this action is triggered by the calendar navigation\n * @param yearsToAdd - The amount of years to move forward to\n */\n const moveToNextYear = (event: Event, isCalendarButtonsNav = false, yearsToAdd = 1) => {\n stopPropagation(event);\n\n changeDate({\n nextDate: addYears(focusedDate.value, yearsToAdd),\n isIncreasingDays: true,\n amountOfMonths: yearsToAdd * 12,\n isCalendarButtonsNav,\n });\n };\n\n /**\n * Move the current date to the same day in the next month.\n * @param event - Triggered event\n * @param isCalendarButtonsNav - Indicates whether this action is triggered by the calendar navigation\n * @param amount - The amount of months to move to\n */\n const moveToNextMonth = (event: Event, isCalendarButtonsNav = false, amount = 1) => {\n stopPropagation(event);\n\n const monthsToAdd = amount;\n\n changeDate({\n nextDate: addMonths(focusedDate.value, monthsToAdd),\n isIncreasingDays: true,\n amountOfMonths: monthsToAdd,\n isCalendarButtonsNav,\n });\n };\n\n /**\n * Move the current date to the first month of the year\n * @param {Event} event - Triggered event\n */\n const moveToFirstMonthOfYear = (event: Event) => {\n stopPropagation(event);\n\n const monthsShifting = differenceInMonths(internalDate.value, startOfYear(internalDate.value));\n\n changeDate({\n nextDate: startOfYear(internalDate.value),\n isIncreasingDays: false,\n amountOfMonths: monthsShifting,\n });\n };\n\n /**\n * Move the current date to the first month of the year\n * @param {Event} event - Triggered event\n */\n const moveToLastMonthOfYear = (event: Event) => {\n stopPropagation(event);\n\n // First day of last year, so that focusOnDate finds the target\n const lastMonth = set(internalDate.value, { month: 11, date: 1 });\n const monthsShifting = differenceInMonths(lastMonth, internalDate.value);\n\n changeDate({\n nextDate: lastMonth,\n isIncreasingDays: true,\n amountOfMonths: monthsShifting,\n });\n };\n\n return {\n // Calendar days ref\n calendarRef,\n addDayRef,\n\n /**\n * Month navigation\n */\n showNextMonth,\n showPreviousMonth,\n\n /**\n * Focus method\n */\n focusOnDate,\n\n /**\n * Day navigation\n */\n\n // ArrowRight\n moveToNextDay,\n // ArrowLeft\n moveToPreviousDay,\n // ArrowUp\n moveToPreviousWeek,\n // ArrowDown\n moveToNextWeek,\n // Home\n moveToFirstDayOfWeek,\n moveToFirstMonthOfYear,\n // End\n moveToLastDayOfWeek,\n moveToLastMonthOfYear,\n // PageUp\n moveToPreviousMonth,\n // Shift+PageUp\n moveToPreviousYear,\n // PageDown\n moveToNextMonth,\n // Shift-PageDown\n moveToNextYear,\n\n // Values\n internalDate,\n baseDate,\n };\n};\n","<template>\n <div v-bento-keyboard-navigation-directive class=\"b-calendar-month\" v-on=\"listeners\">\n <div class=\"b-calendar-month__month-selector\">\n <!-- go to previous month -->\n <div class=\"b-calendar-month__previous\">\n <bento-button\n v-if=\"shouldShowPreviousMonthButton\"\n variant=\"tertiary\"\n @click=\"moveToPreviousMonth($event, true)\"\n >\n <template #iconLeft>\n <chevron-left-icon :svg-title=\"t('previousMonth')\" />\n </template>\n </bento-button>\n </div>\n\n <div class=\"b-calendar-month__month-year-container\">\n <!-- Month name -->\n <bento-typography :id=\"monthLabelId\" el=\"h2\" variant=\"title\" aria-live=\"polite\">\n {{ formattedMonthName }}\n <span class=\"b-calendar-month__visually-hidden\">{{ baseDate.getFullYear() }}</span>\n </bento-typography>\n\n <!-- Year selector -->\n <calendar-year-selector\n :current-year=\"baseDate.getFullYear()\"\n :year-range=\"yearRange\"\n :min=\"min\"\n :max=\"max\"\n @update:year=\"onYearSelected\"\n />\n </div>\n\n <!-- go to next month -->\n <div class=\"b-calendar-month__next\">\n <bento-button\n v-if=\"shouldShowNextMonthButton\"\n variant=\"tertiary\"\n @click=\"moveToNextMonth($event, true)\"\n >\n <template #iconLeft>\n <chevron-right-icon :svg-title=\"t('nextMonth')\" />\n </template>\n </bento-button>\n </div>\n </div>\n <table class=\"b-calendar-month__month-container\" role=\"grid\" :aria-labelledby=\"monthLabelId\">\n <thead>\n <tr class=\"b-calendar-month__week-header\">\n <th\n v-for=\"(dayOfWeekFormatted, index) in daysOfWeek\"\n :key=\"index\"\n class=\"b-calendar-month__day-of-week\"\n scope=\"col\"\n >\n <bento-typography class=\"b-calendar-month__day-of-week-font\" el=\"span\" variant=\"caption\">\n {{ dayOfWeekFormatted }}\n </bento-typography>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"(week, index) in weeksOfMonth\" :key=\"index\">\n <td v-if=\"index === 0 && week.length < 7\" :colspan=\"7 - week.length\"> </td>\n <calendar-month-day\n v-for=\"(day, dayIndex) in week\"\n :ref=\"addDayRef(day)\"\n :key=\"`calendar-day-${dayIndex}`\"\n :day=\"day\"\n :disabled=\"computedIsDateDisabled(day)\"\n :selected=\"isSelectedDate(day)\"\n :variant=\"dayVariant(day)\"\n @click=\"onDayClicked\"\n @mouseover=\"$emit('mouseover', day)\"\n @keyup.up.native=\"$emit('changeDay', day)\"\n @keyup.down.native=\"$emit('changeDay', day)\"\n @keyup.left.native=\"$emit('changeDay', day)\"\n @keyup.right.native=\"$emit('changeDay', day)\"\n />\n </tr>\n <template v-if=\"weeksOfMonth?.length < 6\">\n <tr v-for=\"n in 6 - weeksOfMonth?.length\" :key=\"`calendar month filler row ${n}`\">\n <td aria-hidden=\"true\" class=\"b-calendar-month__empty-cell-filler\" :colspan=\"7\"></td>\n </tr>\n </template>\n </tbody>\n </table>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, toRef } from 'vue';\n import BentoButton from '@/components/button/button.vue';\n import { CalendarYearSelector } from '../calendar-year-selector';\n import { CalendarMonthDay, CalendarMonthDayVariant } from './components/calendar-month-day';\n import { BentoTypography } from '@/components/typography';\n import { useI18n } from '@/utils/ts/i18n';\n import type { CalendarMonthProps } from './calendar-month.types';\n import { generateUid } from '@/utils/ts/generate-uid';\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n import { type CalendarEmit, CalendarFirstDayOfWeek } from '../../calendar.types';\n import { useMoveCalendarDate } from './composables/move-calendar-date';\n import { setDay } from 'date-fns/setDay';\n import { startOfMonth } from 'date-fns/startOfMonth';\n import { startOfDay } from 'date-fns/startOfDay';\n import { isSameDay } from 'date-fns/isSameDay';\n import { isWithinInterval } from 'date-fns/isWithinInterval';\n import { getDateTimeFormatter } from '@/utils/ts/format-date';\n import ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const emit = defineEmits([\"input\", \"changeDay\", \"nextMonth\", \"previousMonth\", \"mouseover\"]);\n\n const props = defineProps({\n endDate: { default: null },\n firstDayOfWeek: { default: CalendarFirstDayOfWeek.MONDAY },\n isDateDisabled: { type: Function, default: undefined },\n isRange: { type: Boolean, default: false },\n max: { default: null },\n min: { default: null },\n month: null,\n position: { default: 'unique' },\n startDate: { default: undefined },\n yearRange: { default: undefined }\n});\n\n // Date formatter locale options\n const { locale, t } = useI18n<{ message: MessageSchema }>({ messages });\n const monthLabelId = generateUid('bento-date-picker-month-label');\n\n const computedIsDateDisabled = computed(\n () => (date: Date) =>\n (props.min && date < props.min) || (props.max && date > props.max) || props.isDateDisabled?.(date)\n );\n\n const {\n internalDate,\n baseDate,\n // Calendar refs\n addDayRef,\n\n // Day navigation\n moveToNextDay,\n moveToPreviousDay,\n moveToPreviousWeek,\n moveToNextWeek,\n moveToFirstDayOfWeek,\n moveToLastDayOfWeek,\n moveToPreviousMonth,\n moveToPreviousYear,\n moveToNextMonth,\n moveToNextYear,\n focusOnDate,\n showNextMonth,\n showPreviousMonth,\n } = useMoveCalendarDate(\n {\n currentSelectedDate: toRef(props, 'startDate'),\n month: toRef(props, 'month'),\n isDateDisabled: computedIsDateDisabled.value,\n firstDayOfWeek: props.firstDayOfWeek,\n },\n emit\n );\n\n /**\n * Default to Monday if the value passed in is not part of the defined Enum\n */\n const fallbackFirstDayOfWeek = computed(() =>\n Object.values(CalendarFirstDayOfWeek).includes(props.firstDayOfWeek)\n ? props.firstDayOfWeek\n : CalendarFirstDayOfWeek.MONDAY\n );\n\n /**\n * Renders the previous month button if it's Unique or First calendar\n */\n const shouldShowPreviousMonthButton = computed(() => ['first', 'unique'].includes(props.position));\n\n /**\n * Renders the next month button if it's Unique or Last calendar\n */\n const shouldShowNextMonthButton = computed(() => ['last', 'unique'].includes(props.position));\n\n /**\n * Formats the month date to the name of the month\n */\n const formattedMonthName = computed(() =>\n getDateTimeFormatter(locale.value, { month: 'long' }).format(baseDate.value)\n );\n\n /**\n * Navigates the calendar to the newly selected year, preserving the currently displayed month.\n * @param newYear The year selected from the dropdown\n */\n const onYearSelected = (newYear: number) => {\n const currentYear = baseDate.value.getFullYear();\n const diffYears = newYear - currentYear;\n const diffMonths = diffYears * 12;\n\n if (diffMonths > 0) {\n showNextMonth(diffMonths);\n } else if (diffMonths < 0) {\n showPreviousMonth(Math.abs(diffMonths));\n }\n };\n\n /**\n * Formats all the days of the week to their day name\n */\n const daysOfWeek = computed(() =>\n new Array(7).fill(new Date()).map((date, index) => {\n const dayOfWeekDate = setDay(date, fallbackFirstDayOfWeek.value + index);\n\n return getDateTimeFormatter(locale.value, { weekday: 'short' }).format(dayOfWeekDate);\n })\n );\n\n /**\n * Calculates all the weeks of the current \"props.month\"\n * and adds the respective day number to each column and week\n */\n const weeksOfMonth = computed(() => {\n const weeks = [];\n const date = startOfMonth(props.month);\n let week = weeks[weeks.push([]) - 1];\n\n while (date.getMonth() === props.month.getMonth()) {\n if (date.getDay() - fallbackFirstDayOfWeek.value === 0 && week.length > 0) {\n week = weeks[weeks.push([]) - 1];\n }\n\n week.push(startOfDay(date));\n date.setDate(date.getDate() + 1);\n }\n\n return weeks;\n });\n\n const onDayClicked = (selectedDate: Date) => {\n emit('input', selectedDate);\n };\n\n /**\n * Calculates the variation of the days selected.\n * For single select it's always SINGLE\n * For ranges:\n * - Start & End is the same: SINGLE\n * - Start: BEGINNING\n * - End: END\n * - Within the range: MIDDLE\n * @param day Current day\n */\n const dayVariant = (day: Date) => {\n if (!props.isRange || isSameDay(props.startDate, props.endDate)) {\n return CalendarMonthDayVariant.SINGLE;\n }\n\n if (props.startDate && isSameDay(props.startDate, day)) {\n return CalendarMonthDayVariant.BEGINNING;\n }\n if (props.endDate && isSameDay(props.endDate, day)) {\n return CalendarMonthDayVariant.END;\n }\n if (props.startDate && props.endDate && isWithinInterval(day, { start: props.startDate, end: props.endDate })) {\n return CalendarMonthDayVariant.MIDDLE;\n }\n\n return undefined;\n };\n\n /**\n * Checks every date in the calendar to see if it's selected.\n * @param day Current day in the calendar\n */\n const isSelectedDate = (day: Date) => {\n // Single selection\n if (internalDate.value && isSameDay(internalDate.value, day) && !props.endDate) {\n return true;\n }\n\n // Range\n return (\n props.startDate && props.endDate && isWithinInterval(day, { start: props.startDate, end: props.endDate })\n );\n };\n\n const listeners = {\n 'keydown:arrow-right': moveToNextDay,\n 'keydown:arrow-left': moveToPreviousDay,\n 'keydown:arrow-up': moveToPreviousWeek,\n 'keydown:arrow-down': moveToNextWeek,\n 'keydown:home': moveToFirstDayOfWeek,\n 'keydown:end': moveToLastDayOfWeek,\n 'keydown:page-up': moveToPreviousMonth,\n 'keydown:shift-page-up': moveToPreviousYear,\n 'keydown:page-down': moveToNextMonth,\n 'keydown:shift-page-down': moveToNextYear,\n };\n\n defineExpose({\n focusOnDate,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * CalendarMonth that displays all the days of a given month and allows\n * to move back and forth the visible month with the Next and Previous buttons\n *\n * @example\n * import { CalendarMonthMonth, CalendarMonthFirstDayOfWeek, CalendarPosition } from '@/internal/calendar';\n *\n * export default {\n * components: { CalendarMonthMonth },\n * template: `\n * <calendar\n * :first-day-of-week=\"CalendarMonthFirstDayOfWeek.SUNDAY\"\n * :is-date-disabled=\"(date: Date) => boolean\"\n * :month=\"new Date()\"\n * position=\"last\"\n * is-range\n * :start-date=\"new Date()\"\n * :end-date=\"new Date()\"\n * @input=\"(selectedDate: Date) => void\"\n * @mouseover=\"(event: Event) => void\"\n * @nextMonth=\"() => void\"\n * @previousMonth=\"() => void\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'calendar-month',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./calendar-month.scss\" />\n","export interface CalendarYearMonthProps {\n /**\n * Date to be displayed as the calendar month. From 1st to 12th.\n */\n month: Date;\n\n /**\n * Indicate if a date should be disabled or not\n */\n disabled?: boolean;\n\n /**\n * Changes the state of the calendar month to selected.\n */\n selected?: boolean;\n\n /**\n * When the month is selected, this indicates if the selection is a single month or part of a range.\n * If it's a range it can be at the beginning, middle or end of the selection.\n */\n variant?: `${CalendarYearMonthVariant}`;\n}\n\n/**\n * Private types\n */\nexport enum CalendarYearMonthVariant {\n SINGLE = 'single',\n MIDDLE = 'middle',\n BEGINNING = 'beginning',\n END = 'end',\n}\n\nexport enum CalendarYearMonthClass {\n // Variant\n SINGLE = CalendarYearMonthVariant.SINGLE,\n MIDDLE = CalendarYearMonthVariant.MIDDLE,\n BEGINNING = CalendarYearMonthVariant.BEGINNING,\n END = CalendarYearMonthVariant.END,\n\n // Selected\n SELECTED = 'selected',\n UNSELECTED = 'unselected',\n\n // Current month\n CURRENT_MONTH = 'current-month',\n\n // Disabled\n DISABLED = 'disabled',\n}\n\nexport enum CalendarYearMonthEvent {\n CLICK = 'click',\n MOUSE_OVER = 'mouseover',\n}\n","<template>\n <td\n class=\"b-calendar-year-month\"\n :class=\"conditionalClasses\"\n :tabindex=\"selected ? '0' : '-1'\"\n :aria-selected=\"selected ? selected : undefined\"\n @click=\"e => onClick(e, month)\"\n @mouseover=\"emit(CalendarYearMonthEvent.MOUSE_OVER)\"\n @keydown.space.enter=\"e => onClick(e, month)\"\n >\n <div class=\"b-calendar-year-month__wrapper\">\n <bento-date class=\"b-calendar-year-month__label\" :date=\"month\" :format=\"BentoDateFormat.SHORT_MONTH\" />\n </div>\n </td>\n</template>\n\n<script setup lang=\"ts\">\n import { computed } from 'vue';\n import { BentoDate, BentoDateFormat } from '@/components/date';\n import {\n CalendarYearMonthClass,\n CalendarYearMonthEvent,\n type CalendarYearMonthProps,\n CalendarYearMonthVariant,\n } from './calendar-year-month.types';\n\n const props = defineProps({\n month: null,\n disabled: { type: Boolean, default: false },\n selected: { type: Boolean, default: false },\n variant: { default: CalendarYearMonthVariant.SINGLE }\n});\n\n const emit = defineEmits([\"click\", \"mouseover\"]);\n\n const isCurrentMonth = computed(() => {\n const today = new Date();\n return props.month.getMonth() === today.getMonth() && props.month.getFullYear() === today.getFullYear();\n });\n\n const conditionalClasses = computed(() => ({\n // Variants\n [`b-calendar-year-month--${CalendarYearMonthClass.BEGINNING}`]:\n props.variant === CalendarYearMonthVariant.BEGINNING,\n [`b-calendar-year-month--${CalendarYearMonthClass.MIDDLE}`]: props.variant === CalendarYearMonthVariant.MIDDLE,\n [`b-calendar-year-month--${CalendarYearMonthClass.END}`]: props.variant === CalendarYearMonthVariant.END,\n [`b-calendar-year-month--${CalendarYearMonthClass.SINGLE}`]: props.variant === CalendarYearMonthVariant.SINGLE,\n\n // Selected\n [`b-calendar-year-month--${CalendarYearMonthClass.UNSELECTED}`]: !props.selected,\n [`b-calendar-year-month--${CalendarYearMonthClass.SELECTED}`]: props.selected,\n\n // Current month\n [`b-calendar-year-month--${CalendarYearMonthClass.CURRENT_MONTH}`]: isCurrentMonth.value,\n\n // Disabled\n [`b-calendar-year-month--${CalendarYearMonthClass.DISABLED}`]: props.disabled,\n }));\n\n const onClick = (e: MouseEvent | KeyboardEvent, selectedDay: Date) => {\n if (!props.disabled) {\n emit(CalendarYearMonthEvent.CLICK, selectedDay, props.month);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Handles the styles and states of the individual months of the calendar.\n *\n * @example\n * import { CalendarYearMonth, CalendarYearMonthVariant } from './calendar-year-month';\n *\n * export default {\n * components: { CalendarYearMonth },\n * template: `\n * <table>\n * <tbody>\n * <tr>\n * <calendar-year-month\n * :month=\"new Date()\"\n * disabled\n * selected\n * :variant=\"CalendarYearMonthVariant.MIDDLE\"\n * />\n * </tr>\n * </tbody>\n * </table>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./calendar-year-month.scss\" />\n","<template>\n <div v-bento-keyboard-navigation-directive class=\"b-calendar-year\" v-on=\"listeners\">\n <div class=\"b-calendar-year__year-selector\">\n <!-- go to previous year -->\n <div class=\"b-calendar-year__previous\">\n <bento-button\n v-if=\"shouldShowPreviousYearButton\"\n variant=\"tertiary\"\n @click=\"moveToPreviousYear($event, true, 1)\"\n >\n <template #iconLeft>\n <chevron-left-icon :svg-title=\"t('previousYear')\" />\n </template>\n </bento-button>\n </div>\n\n <!-- year -->\n <div class=\"b-calendar-year__year-label-container\">\n <!-- Year selector -->\n <calendar-year-selector\n :current-year=\"year.getFullYear()\"\n :year-range=\"yearRange\"\n :min=\"min\"\n :max=\"max\"\n @update:year=\"onYearSelected\"\n />\n </div>\n\n <!-- go to next year -->\n <div class=\"b-calendar-year__next\">\n <bento-button v-if=\"shouldShowNextYearButton\" variant=\"tertiary\" @click=\"moveToNextYear($event, true)\">\n <template #iconLeft>\n <chevron-right-icon :svg-title=\"t('nextYear')\" />\n </template>\n </bento-button>\n </div>\n </div>\n\n <table class=\"b-calendar-year__year-container\" role=\"grid\" :aria-labelledby=\"yearLabelId\">\n <tbody>\n <tr v-for=\"(row, index) in monthRows\" :key=\"index\">\n <calendar-year-month\n v-for=\"(month, monthIndex) in row\"\n :ref=\"addDayRef(month)\"\n :key=\"`calendar-month-${monthIndex}`\"\n :month=\"month\"\n :disabled=\"isDateDisabled(month)\"\n :selected=\"isSelectedDate(month)\"\n :variant=\"monthVariant(month)\"\n @click=\"onMonthClicked\"\n @mouseover=\"emit('mouseover', month)\"\n />\n </tr>\n </tbody>\n </table>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, toRef } from 'vue';\n import { isSameMonth } from 'date-fns/isSameMonth';\n import { isWithinInterval } from 'date-fns/isWithinInterval';\n\n import BentoButton from '@/components/button/button.vue';\n import CalendarYearMonth from './components/calendar-year-month/calendar-year-month.vue';\n import { CalendarYearSelector } from '../calendar-year-selector';\n import ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n import { generateUid } from '@/utils/ts/generate-uid';\n import { useI18n } from '@/utils/ts/i18n';\n import { useMoveCalendarDate } from '@/internal/calendar/components/calendar-month/composables/move-calendar-date';\n\n import { type CalendarYearProps } from './calendar-year.types';\n import { CalendarYearMonthVariant } from './components/calendar-year-month/calendar-year-month.types';\n import { type CalendarEmit, CalendarPosition } from '../../calendar.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const yearLabelId = generateUid('bento-date-picker-year-label');\n\n const props = defineProps({\n endDate: { default: null },\n isDateDisabled: { type: Function, default: undefined },\n isRange: { type: Boolean, default: false },\n min: { default: null },\n max: { default: null },\n yearRange: { default: undefined },\n position: { default: CalendarPosition.UNIQUE },\n startDate: { default: null },\n year: null\n});\n\n const emit = defineEmits([\"input\", \"changeDay\", \"nextMonth\", \"previousMonth\", \"mouseover\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const isDateDisabled = (date: Date) =>\n (props.min && date < props.min) || (props.max && date > props.max) || props.isDateDisabled?.(date);\n\n /**\n * Renders the previous year button if it's Unique or First calendar\n */\n const shouldShowPreviousYearButton = computed(() =>\n (['first', 'unique'] as Array<CalendarPosition>).includes(props.position)\n );\n\n /**\n * Renders the next year button if it's Unique or Last calendar\n */\n const shouldShowNextYearButton = computed(() =>\n (['last', 'unique'] as Array<CalendarPosition>).includes(props.position)\n );\n\n const {\n internalDate,\n // Calendar refs\n addDayRef,\n\n // Day navigation\n moveToPreviousMonth,\n moveToPreviousYear,\n moveToNextMonth,\n moveToNextYear,\n moveToFirstMonthOfYear,\n moveToLastMonthOfYear,\n focusOnDate,\n } = useMoveCalendarDate(\n {\n currentSelectedDate: toRef(props, 'startDate'),\n month: toRef(props, 'year'),\n isDateDisabled,\n },\n emit\n );\n\n const onYearSelected = (newYear: number) => {\n const currentYear = props.year.getFullYear();\n const diffYears = newYear - currentYear;\n\n if (diffYears > 0) {\n moveToNextYear(null, true, diffYears);\n } else if (diffYears < 0) {\n moveToPreviousYear(null, true, Math.abs(diffYears));\n }\n };\n\n /**\n * Calculates all the months of the current \"props.month\"\n * and adds the respective day number to each column and week\n */\n const monthRows = computed(() => {\n const rows = [];\n let count = 0;\n\n for (let i = 0; i < 3; i++) {\n const innerArray = [];\n for (let j = 0; j < 4; j++) {\n innerArray.push(new Date(props.year.getFullYear(), count++, 1));\n }\n rows.push(innerArray);\n }\n\n return rows;\n });\n\n /**\n * Calculates the variation of the days selected.\n * For single select it's always SINGLE\n * For ranges:\n * - Start & End is the same: SINGLE\n * - Start: BEGINNING\n * - End: END\n * - Within the range: MIDDLE\n * @param {Date} day Current day\n */\n const monthVariant = (day: Date) => {\n if (!props.isRange || isSameMonth(props.startDate, props.endDate)) {\n return CalendarYearMonthVariant.SINGLE;\n }\n\n if (props.startDate && isSameMonth(props.startDate, day)) {\n return CalendarYearMonthVariant.BEGINNING;\n }\n if (props.endDate && isSameMonth(props.endDate, day)) {\n return CalendarYearMonthVariant.END;\n }\n if (props.startDate && props.endDate && isWithinInterval(day, { start: props.startDate, end: props.endDate })) {\n return CalendarYearMonthVariant.MIDDLE;\n }\n return null;\n };\n\n /**\n * Checks every date in the calendar to see if it's selected.\n * @param date Current date in the calendar\n */\n const isSelectedDate = (date: Date) => {\n // Single selection\n if (internalDate.value && isSameMonth(internalDate.value, date)) {\n return true;\n }\n\n // Range\n return (\n props.startDate && props.endDate && isWithinInterval(date, { start: props.startDate, end: props.endDate })\n );\n };\n\n const onMonthClicked = (selectedDate: Date) => {\n emit('input', selectedDate);\n };\n\n const listeners = !props.isRange\n ? {\n 'keydown:arrow-right': moveToNextMonth,\n 'keydown:arrow-left': moveToPreviousMonth,\n 'keydown:arrow-up': (ev: Event) => moveToPreviousMonth(ev, false, 4),\n 'keydown:arrow-down': (ev: Event) => moveToNextMonth(ev, false, 4),\n 'keydown:home': moveToFirstMonthOfYear,\n 'keydown:end': moveToLastMonthOfYear,\n 'keydown:page-up': moveToPreviousYear,\n 'keydown:page-down': moveToNextYear,\n }\n : {};\n\n defineExpose({ focusOnDate });\n</script>\n\n<script lang=\"ts\">\n /**\n * CalendarYear that displays all the months of a given year and allows\n * to move back and forth the visible year with the Next and Previous buttons\n *\n * @example\n * import { CalendarYear } from '@/internal/calendar';\n *\n * export default {\n * components: { CalendarYear },\n * template: `\n * <calendar-year\n * :is-date-disabled=\"(date: Date) => boolean\"\n * :year=\"new Date()\"\n * is-range\n * :start-date=\"new Date()\"\n * :end-date=\"new Date()\"\n * @input=\"(selectedDate: Date) => void\"\n * @mouseover=\"(event: Event) => void\"\n * @nextMonth=\"() => void\"\n * @previousMonth=\"() => void\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./calendar-year.scss\" />\n","import { reactive, watch } from 'vue';\nimport { CalendarEvent, type UseCalendarPane } from '../calendar.types';\n\nexport const useSinglePane: UseCalendarPane = ({ selectedDate }, emit) => {\n /**\n * Internal date manipulation.\n */\n const internalValue = reactive({\n startDate: null,\n endDate: null,\n });\n\n /**\n * Set \"internalValue\" to the initial date and kept in sync for when\n * the date is changed outside of the component while the component is mounted\n */\n watch(\n () => selectedDate.value,\n () => {\n internalValue.startDate = selectedDate.value;\n internalValue.endDate = undefined;\n },\n { immediate: true }\n );\n\n /**\n * Called when a date is selected.\n *\n * Emits the selected date\n *\n * @param date - Date clicked\n */\n const onDateInput = (date: Date) => {\n emit(CalendarEvent.INPUT, date);\n };\n\n return {\n internalValue,\n\n onDateInput,\n // Empty function to prevent the listeners from throwing a warning\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onMouseOver: () => {},\n };\n};\n","import { addDays } from 'date-fns/addDays';\nimport { addMonths } from 'date-fns/addMonths';\nimport { addQuarters } from 'date-fns/addQuarters';\nimport { addWeeks } from 'date-fns/addWeeks';\nimport { differenceInCalendarDays } from 'date-fns/differenceInCalendarDays';\nimport { differenceInCalendarMonths } from 'date-fns/differenceInCalendarMonths';\nimport { differenceInCalendarQuarters } from 'date-fns/differenceInCalendarQuarters';\nimport { endOfMonth } from 'date-fns/endOfMonth';\nimport { endOfQuarter } from 'date-fns/endOfQuarter';\nimport { endOfWeek } from 'date-fns/endOfWeek';\nimport { startOfMonth } from 'date-fns/startOfMonth';\nimport { startOfQuarter } from 'date-fns/startOfQuarter';\nimport { startOfWeek } from 'date-fns/startOfWeek';\nimport { subDays } from 'date-fns/subDays';\nimport { subMonths } from 'date-fns/subMonths';\nimport { subQuarters } from 'date-fns/subQuarters';\nimport { subWeeks } from 'date-fns/subWeeks';\n\nimport type { CalendarGranularityType } from '../calendar.types';\nimport type {\n BentoGranularityClampConfig,\n BentoNormalizeRangeOptions,\n UseGranularityAdjustments,\n} from './use-granularity-adjustments.types';\n\nconst fallbackMaxRangeStrategy: BentoGranularityClampConfig = {\n getCount: (end, start) => differenceInCalendarDays(end, start),\n sub: subDays,\n add: addDays,\n};\n\nconst maxRangeStrategyByGranularity: Record<CalendarGranularityType, BentoGranularityClampConfig> = {\n daily: {\n ...fallbackMaxRangeStrategy,\n getCount: (end, start) => differenceInCalendarDays(end, start) + 1,\n },\n weekly: {\n getCount: (end, start) => Math.round((differenceInCalendarDays(end, start) + 1) / 7),\n sub: subWeeks,\n add: addWeeks,\n },\n monthly: {\n getCount: (end, start) => differenceInCalendarMonths(end, start) + 1,\n sub: subMonths,\n add: addMonths,\n },\n quarterly: {\n getCount: (end, start) => differenceInCalendarQuarters(end, start) + 1,\n sub: subQuarters,\n add: addQuarters,\n },\n};\n\n/**\n * Provides utility function to adjust date range selections according to the selected granularity.\n * @param firstDayOfWeek The day a week starts on\n * @returns A set of functions to adjust date range objects and date strings to a specific granularity.\n */\nexport const useGranularityAdjustments: UseGranularityAdjustments = firstDayOfWeek => {\n /**\n * Adjusts a given date or date range to the weekly granularity.\n * Always returns full weeks.\n */\n const adjustDateForWeekly = (date: Date, endDate?: Date, min?: Date, max?: Date) => {\n let start = startOfWeek(date, { weekStartsOn: firstDayOfWeek });\n let end = endOfWeek(endDate || date, { weekStartsOn: firstDayOfWeek });\n\n const isStartOutOfBounds = min && start < min;\n const isEndOutOfBounds = max && end > max;\n\n if (isStartOutOfBounds) {\n start = startOfWeek(min, { weekStartsOn: firstDayOfWeek });\n }\n\n if (isEndOutOfBounds) {\n end = endOfWeek(max, { weekStartsOn: firstDayOfWeek });\n }\n\n // If min/max adjustments caused invalid range, set to first/last available full week\n if (start > end) {\n if (isStartOutOfBounds) {\n end = endOfWeek(start, { weekStartsOn: firstDayOfWeek });\n } else {\n start = startOfWeek(end, { weekStartsOn: firstDayOfWeek });\n }\n }\n\n return { startDate: start, endDate: end };\n };\n\n /**\n * Adjusts a given date or date range to the monthly granularity.\n * Always returns full months.\n */\n const adjustDateForMonthly = (date: Date, endDate?: Date, min?: Date, max?: Date) => {\n let start = startOfMonth(date);\n let end = endOfMonth(endDate || date);\n\n const isStartOutOfBounds = min && start < min;\n const isEndOutOfBounds = max && end > max;\n\n if (isStartOutOfBounds) {\n start = startOfMonth(min);\n }\n\n if (isEndOutOfBounds) {\n end = endOfMonth(max);\n }\n\n // If min/max adjustments caused invalid range, set to first/last available full month\n if (start > end) {\n if (isStartOutOfBounds) {\n end = endOfMonth(start);\n } else {\n start = startOfMonth(end);\n }\n }\n\n return { startDate: start, endDate: end };\n };\n\n /**\n * Adjusts a given date or date range to the quarterly granularity.\n * Always returns full quarters (Q1, Q2, Q3, Q4).\n */\n const adjustDateForQuarterly = (date: Date, endDate?: Date, min?: Date, max?: Date) => {\n let start = startOfQuarter(date);\n let end = endOfQuarter(endDate || date);\n\n const isStartOutOfBounds = min instanceof Date && start < min;\n const isEndOutOfBounds = max instanceof Date && end > max;\n\n if (isStartOutOfBounds) {\n start = startOfQuarter(min);\n }\n\n if (isEndOutOfBounds) {\n end = endOfQuarter(max);\n }\n\n if (start > end) {\n if (isStartOutOfBounds) {\n end = endOfQuarter(start);\n } else {\n start = startOfQuarter(end);\n }\n }\n\n return { startDate: start, endDate: end };\n };\n\n const normalizeBoundaryByGranularity = {\n weekly: adjustDateForWeekly,\n monthly: adjustDateForMonthly,\n quarterly: adjustDateForQuarterly,\n };\n\n /**\n * Applies all range rules in order: granularity boundaries, min/max dates, then maxRange.\n * If maxRange shortens the range, fixedEndpoint stays unchanged and the opposite endpoint moves.\n * @param options - Dates and constraints to apply.\n * @returns A range that satisfies the active granularity configuration.\n */\n const normalizeRange = ({\n startDate,\n endDate,\n fixedEndpoint,\n granularity,\n alignToGranularity = true,\n fallbackMaxRange,\n min,\n max,\n }: BentoNormalizeRangeOptions) => {\n let normalizedRange = { startDate, endDate };\n\n // Weekly, monthly, and quarterly ranges must cover complete calendar units.\n if (alignToGranularity && granularity?.type && granularity.type !== 'daily') {\n normalizedRange = normalizeBoundaryByGranularity[granularity.type](startDate, endDate, min, max);\n }\n\n // A granularity-specific limit takes priority over the general maxRange prop.\n const maximumRange = granularity?.maxRange || fallbackMaxRange;\n if (!maximumRange) {\n return normalizedRange;\n }\n\n const maxRangeStrategy = granularity?.type\n ? maxRangeStrategyByGranularity[granularity.type]\n : fallbackMaxRangeStrategy;\n const selectedUnitCount = maxRangeStrategy.getCount(normalizedRange.endDate, normalizedRange.startDate);\n if (selectedUnitCount <= maximumRange) {\n return normalizedRange;\n }\n\n // Remove excess units from the endpoint that is allowed to move.\n const unitsToRemove = selectedUnitCount - maximumRange;\n const shortenedRange =\n fixedEndpoint === 'start'\n ? {\n startDate: normalizedRange.startDate,\n endDate: maxRangeStrategy.sub(normalizedRange.endDate, unitsToRemove),\n }\n : {\n startDate: maxRangeStrategy.add(normalizedRange.startDate, unitsToRemove),\n endDate: normalizedRange.endDate,\n };\n\n // Reapply boundaries because adding or subtracting units may return a date inside a unit.\n return alignToGranularity && granularity?.type && granularity.type !== 'daily'\n ? normalizeBoundaryByGranularity[granularity.type](\n shortenedRange.startDate,\n shortenedRange.endDate,\n min,\n max\n )\n : shortenedRange;\n };\n\n return {\n normalizeRange,\n };\n};\n","import { reactive, ref, watch } from 'vue';\nimport { CalendarEvent, type CalendarRangeDateValue, type UseCalendarPane } from '../calendar.types';\nimport { isBefore } from 'date-fns/isBefore';\nimport { startOfDay } from 'date-fns/startOfDay';\nimport { isAfter } from 'date-fns/isAfter';\n\nimport { useGranularityAdjustments } from './use-granularity-adjustments';\n\n/**\n * Provides event handler logic to correctly display date range selection, as a user clicks calendar dates.\n * @param props Calendar properties and current date selection\n * @param emit The Vue event `emit` function\n * @returns A date range internal value, and a set of handlers for date mouse input.\n */\nexport const useRangePane: UseCalendarPane = (\n { selectedDate, isDateDisabled, maxRange, granularity, firstDayOfWeek, min, max },\n emit\n) => {\n const backwardsDirection = -1;\n const forwardDirection = 1;\n\n const { normalizeRange } = useGranularityAdjustments(firstDayOfWeek);\n\n /**\n * Internal date manipulation.\n * This allows to change the dates with the form.\n */\n const internalValue = reactive<CalendarRangeDateValue>({\n startDate: null,\n endDate: null,\n });\n\n /**\n * First clicked date to calculate the ranges with\n */\n const clickedDate = ref<Date | null>(null);\n\n /**\n * Set \"internalValue\" to the initial date and kept in sync for when\n * the date is changed outside of the component while the component is mounted\n */\n watch(\n () => selectedDate.value,\n () => {\n let { startDate = null, endDate = null } = (selectedDate.value as CalendarRangeDateValue) || {};\n\n if (startDate) {\n startDate = startOfDay(startDate);\n }\n\n if (endDate) {\n endDate = startOfDay(endDate);\n }\n\n if (\n (startDate && isDateDisabled && isDateDisabled(startDate)) ||\n (endDate && isDateDisabled && isDateDisabled(endDate)) ||\n (startDate && endDate && isAfter(startDate, endDate))\n ) {\n // Disabled dates do nothing\n return;\n }\n\n internalValue.startDate = startDate;\n internalValue.endDate = endDate;\n },\n { immediate: true, deep: true }\n );\n\n const setDates = (startDate: Date, endDate: Date, direction?: number) => {\n // Keep the date under the pointer fixed and shorten the opposite side when necessary.\n const normalizedRange = normalizeRange({\n startDate,\n endDate,\n fixedEndpoint: direction !== undefined && direction < 1 ? 'start' : 'end',\n granularity: granularity.value,\n fallbackMaxRange: maxRange.value,\n min: min.value,\n max: max.value,\n });\n\n internalValue.startDate = normalizedRange.startDate;\n internalValue.endDate = normalizedRange.endDate;\n\n emit(CalendarEvent.START_DATE_SELECTED, internalValue.startDate);\n emit(CalendarEvent.END_DATE_SELECTED, internalValue.endDate);\n };\n\n /**\n * When the mouse moves over the days it recalculates the\n * range and moves it to the next range.\n *\n * If it's before the intial date it switches the range (start becomes end and vice versa)\n * If it's after it sets the new end date.\n * @param date - Hovered date\n */\n const onMouseOver = (date: Date) => {\n if (!clickedDate.value || (isDateDisabled && isDateDisabled(date))) {\n return;\n }\n\n if (isBefore(date, clickedDate.value)) {\n setDates(date, clickedDate.value, backwardsDirection);\n } else {\n setDates(clickedDate.value, date, forwardDirection);\n }\n };\n\n /**\n * Called when a date is selected.\n *\n * - Initial click: Sets the selected date\n * - Second click: Selects the date range. Emits the Start date & End date\n *\n * @param date - Date clicked\n */\n const onDateInput = (date: Date) => {\n // Second click\n if (clickedDate.value) {\n // Reset clicked date after second click\n clickedDate.value = null;\n\n // Set the end date in our internal value which will be emitted\n // Emit when the second date (endDate) is selected\n emit(CalendarEvent.INPUT, internalValue);\n } else {\n // First click\n let correctedDate = date;\n\n if (granularity?.value?.type && granularity.value.type !== 'daily') {\n setDates(date, date);\n correctedDate = internalValue.startDate;\n }\n\n // For daily, manually trigger `onMouseOver` so that the full behavior is\n // replicated if the user clicks the same day twice\n clickedDate.value = correctedDate;\n\n onMouseOver(correctedDate);\n }\n };\n\n return {\n internalValue,\n\n onDateInput,\n onMouseOver,\n };\n};\n","<template>\n <div class=\"b-calendar\" :class=\"conditionalClasses\">\n <component\n :is=\"calendarComponent\"\n v-for=\"(_, index) in numberOfMonths\"\n :ref=\"numberOfMonths === 1 ? 'calendarRef' : null\"\n :key=\"`calendar-${index}`\"\n :first-day-of-week=\"firstDayOfWeek\"\n :is-date-disabled=\"isDateDisabled\"\n :month=\"calculateOffsetMonth(index)\"\n :year=\"calculateOffsetYear(index)\"\n :position=\"calendarPosition(index)\"\n :min=\"min\"\n :max=\"max\"\n :is-range=\"isRange\"\n :start-date=\"internalValue.startDate\"\n :end-date=\"internalValue.endDate\"\n :granularity=\"granularity\"\n :year-range=\"yearRange\"\n @input=\"onDateInput\"\n @mouseover=\"onMouseOver\"\n @changeDay=\"onMouseOver\"\n @nextMonth=\"calculateNextMonths\"\n @previousMonth=\"calculatePreviousMonths\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, type PropType, ref, toRef, watch } from 'vue';\n import CalendarMonth from './components/calendar-month/calendar-month.vue';\n import CalendarYear from './components/calendar-year/calendar-year.vue';\n import {\n CalendarEvent,\n CalendarFirstDayOfWeek,\n type CalendarGranularityConfig,\n type CalendarIsDateDisabled,\n CalendarPosition,\n type CalendarRangeDateValue,\n type CalendarValue,\n CalendarVariant,\n type CalendarYearRange,\n } from './calendar.types';\n import { useSinglePane } from './composables/use-single-pane';\n import { useRangePane } from './composables/use-range-pane';\n import { addMonths } from 'date-fns/addMonths';\n import { subMonths } from 'date-fns/subMonths';\n import { addYears } from 'date-fns/addYears';\n import { subYears } from 'date-fns/subYears';\n\n /**\n * Handles the calendar logic to change visible months for Single calendar\n * and Range calendar, as well as the selection logic for range.\n * All the processing necessary for the calendar to select dates\n *\n * @example\n * import { Calendar } from '@/internal/bento-vue2';\n *\n * export default {\n * components: { Calendar },\n * template: `\n * <calendar\n * :value=\"value\"\n * :first-day-of-week=\"CalendarFirstDayOfWeek.Monday\"\n * :is-date-disabled=\"(day: Date) => boolean\"\n * :number-of-months=\"2\"\n * is-range\n * @input=\"(selectedDate) => void\"\n * @start-date-selected=\"(startDate: Date) => void\"\n * @end-date-selected=\"(endDate: Date) => void\"\n * />\n * `\n * }\n */\n export default defineComponent({\n name: 'calendar',\n components: { CalendarMonth, CalendarYear },\n props: {\n /**\n * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n */\n firstDayOfWeek: {\n type: Number as PropType<CalendarFirstDayOfWeek>,\n default: CalendarFirstDayOfWeek.MONDAY,\n validator: (value: CalendarFirstDayOfWeek) => Object.values(CalendarFirstDayOfWeek).includes(value),\n },\n\n /**\n * The selected granularity configuration\n */\n granularity: {\n type: Object as PropType<CalendarGranularityConfig>,\n default: null,\n },\n\n /**\n * Indicate if a date should be disabled or not\n */\n isDateDisabled: { type: Function as PropType<CalendarIsDateDisabled>, default: undefined },\n\n /**\n * Enables the Date Range calendar\n */\n isRange: { type: Boolean, default: false },\n\n /**\n * Set a maximum number of dates to be selectable by the range.\n */\n maxRange: { type: Number, default: null, validator: (value: number) => !value || value > 0 },\n\n /**\n * Sets a minimum limit for selectable dates - dates before `min` will not be selectable\n */\n min: { type: Date, default: null },\n\n /**\n * Sets a maximum limit for selectable dates - dates after `max` will not be selectable\n */\n max: { type: Date, default: null },\n\n /**\n * Number of months rendered on pane\n */\n numberOfMonths: {\n type: Number,\n default: 3,\n validator: (n: number) => n >= 1,\n },\n\n /**\n * Upon opening date range picker, end date's month will be pre-selected.\n */\n showEndDateOnOpen: { type: Boolean, default: false },\n\n /**\n * Selected date. Can be a single Date or a CalendarRangeDate\n * instance that contains startDate and endDate attributes.\n */\n value: { type: [Date, Object] as PropType<CalendarValue>, default: undefined },\n\n /**\n * Default start date for the calendar pane\n */\n defaultDisplayMonth: {\n type: String,\n default: null,\n validator: (value: string) => {\n // Checks for YYYY-MM-DD format\n const dateRegex = /^\\d{4}-(0?[1-9]|1[012])(-(0?[1-9]|[12][0-9]|3[01]))?$/;\n const isValidDate = dateRegex.test(value);\n\n return isValidDate;\n },\n },\n\n /**\n * Range of years to be selectable from the year dropdown\n */\n yearRange: {\n type: Object as PropType<CalendarYearRange>,\n default: () => ({}),\n },\n\n /**\n * The type of calendar to display. Defaults to showing days.\n */\n variant: {\n type: String as PropType<`${CalendarVariant}`>,\n default: 'day',\n validator: (value: string) => Object.values(CalendarVariant).includes(value as CalendarVariant),\n },\n },\n emit: [CalendarEvent.INPUT, CalendarEvent.START_DATE_SELECTED, CalendarEvent.END_DATE_SELECTED],\n setup(props, { emit }) {\n // Single date calendar ref\n const calendarRef = ref(null);\n // Use a duplicate of \"month\" to move back and\n // forth with the arrows. Maintained in sync with the prop \"value\"\n const baseDate = ref();\n watch(\n () => props.value,\n () => {\n if (props.isRange) {\n baseDate.value =\n props?.showEndDateOnOpen && (props.value as CalendarRangeDateValue)?.endDate\n ? (props.value as CalendarRangeDateValue)?.endDate\n : (props.value as CalendarRangeDateValue)?.startDate || new Date();\n } else {\n const defaultDate =\n props.defaultDisplayMonth && new Date(props.defaultDisplayMonth).getTime()\n ? new Date(props.defaultDisplayMonth)\n : new Date();\n baseDate.value = (props.value as Date) || defaultDate;\n }\n },\n { immediate: true, deep: true }\n );\n\n const calendarComponent = computed(() =>\n props.variant === CalendarVariant.MONTH ? CalendarYear : CalendarMonth\n );\n\n const conditionalClasses = computed(() => ({\n 'b-calendar__range': props.isRange,\n }));\n\n const { internalValue, onDateInput, onMouseOver } = props.isRange\n ? useRangePane(\n {\n selectedDate: toRef(props, 'value'),\n isDateDisabled: props.isDateDisabled as (date: Date) => boolean,\n maxRange: toRef(props, 'maxRange'),\n granularity: toRef(props, 'granularity'),\n firstDayOfWeek: props.firstDayOfWeek,\n min: toRef(props, 'min'),\n max: toRef(props, 'max'),\n },\n emit\n )\n : useSinglePane(\n {\n selectedDate: toRef(props, 'value'),\n firstDayOfWeek: props.firstDayOfWeek,\n },\n emit\n );\n\n /**\n * Calculate the current month calendar.\n * This is used to render/hide the Previous & Next buttons on each calendar.\n * @param calendarIndex - Number to offset the calendar position\n */\n const calendarPosition = (calendarIndex: number): CalendarPosition => {\n if (props.numberOfMonths === 1) {\n return CalendarPosition.UNIQUE;\n }\n\n if (calendarIndex === 0) {\n return CalendarPosition.FIRST;\n }\n\n return calendarIndex === props.numberOfMonths - 1 ? CalendarPosition.LAST : CalendarPosition.MIDDLE;\n };\n\n /**\n * Calculates in relation to the amount of months defined in \"numberOfMonths\"\n * which calendar month should be render starting from the first (leftmost)\n * rendered calendar.\n * If showEndDateOnOpen is set to true, the last pane should be the baseDate month i.e. the end date\n * @param offsetMonth - Amount of months to add after the first month was rendered\n */\n const calculateOffsetMonth = computed(() => (offsetMonth: number) => {\n const monthOffset =\n props?.showEndDateOnOpen && props.isRange\n ? subMonths(baseDate.value, props.numberOfMonths - 1)\n : baseDate.value;\n\n return addMonths(monthOffset, offsetMonth);\n });\n\n const calculateOffsetYear = computed(() => (offsetYear: number) => {\n const yearOffset = props?.showEndDateOnOpen\n ? subYears(baseDate.value, props.numberOfMonths - 1)\n : baseDate.value;\n\n return addYears(yearOffset, offsetYear);\n });\n\n /**\n * By default shows the following month\n * Can skip multiple months by passing an additional param\n * Used for keyboard nav to be able to skip a year\n */\n const calculateNextMonths = (amountOfMonths = 1) => {\n baseDate.value = addMonths(baseDate.value, amountOfMonths);\n };\n\n /**\n * By default shows the previous month\n * Can skip multiple months by passing an additional param\n * Used for keyboard nav to be able to go back a year\n */\n const calculatePreviousMonths = (amountOfMonths = 1) => {\n baseDate.value = subMonths(baseDate.value, amountOfMonths);\n };\n\n return {\n // Refs\n calendarRef,\n\n // Values\n baseDate,\n calendarComponent,\n conditionalClasses,\n internalValue,\n\n // Methods\n calculateOffsetMonth,\n calculateOffsetYear,\n calendarPosition,\n\n // Events\n onDateInput,\n onMouseOver,\n calculateNextMonths,\n calculatePreviousMonths,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./calendar.scss\" />\n"],"names":["CalendarFirstDayOfWeek","CalendarFirstDayOfWeek2","CalendarPosition","CalendarPosition2","CalendarEvent","CalendarEvent2","CalendarVariant","CalendarVariant2","addDays","date","amount","options","_date","toDate","constructFrom","addMonths","dayOfMonth","endOfDesiredMonth","daysInMonth","startOfDay","differenceInCalendarDays","laterDate","earlierDate","laterDate_","earlierDate_","normalizeDates","laterStartOfDay","earlierStartOfDay","laterTimestamp","getTimezoneOffsetInMilliseconds","earlierTimestamp","millisecondsInDay","addQuarters","addWeeks","addYears","isSameDay","dateLeft_","dateRight_","getQuarter","differenceInCalendarQuarters","yearsDiff","quartersDiff","startOfQuarter","currentMonth","month","startOfMonth","startOfYear","date_","endOfWeek","defaultOptions","getDefaultOptions","weekStartsOn","day","diff","endOfQuarter","getDaysInMonth","year","monthIndex","lastDayOfMonth","isAfter","dateToCompare","isBefore","setDay","currentDay","dayIndex","delta","isSameMonth","isWithinInterval","interval","time","startTime","endTime","a","b","subDays","setMonth","midMonth","set","values","subMonths","subQuarters","subWeeks","subYears","__default__$3","messages$2","DEFAULT_YEAR_RANGE_OFFSET","t","useI18n","provide","DROPDOWN_SMALL_SIZE_INJECTION_KEY","DROPDOWN_UNDERLINE_STYLE_INJECTION_KEY","yearOptions","computed","systemCurrentYear","startYear","props","endYear","optionsLength","_","index","newYear","emit","CalendarMonthDayVariant","CalendarMonthDayVariant2","CalendarMonthDayClass","CalendarMonthDayClass2","CalendarMonthDayEvent","CalendarMonthDayEvent2","CalendarMonthDateProps","value","formatterCache","getDateTimeFormatter","locale","optionsKey","localeKey","cacheKey","newFormatter","dateToTimeInputString","pad","num","dateToNativeDateString","dateToNativeMonthString","parseNativeDateString","format","parseNativeMonthString","_sfc_main$4","defineComponent","BentoTypography","isCurrentDay","today","formattedDate","part","dateTime","e","selectedDay","useMoveCalendarDate","currentSelectedDate","isDateDisabled","firstDayOfWeek","baseDate","ref","watch","internalDate","activeElement","useActiveElement","focusedDate","el","currentDate","calendarRef","addDayRef","enteringRef","clearCalendarRefs","showNextMonth","amountOfMonths","showPreviousMonth","focusOnDate","dateToBeFocusedOn","getFocusedElement","dateExistsInCalendar","stopPropagation","event","changeDate","nextDate","isIncreasingDays","isCalendarButtonsNav","nextTick","isNextDateInTheDisplayedMonthAndYear","startOfWeek","monthsShifting","differenceInMonths","lastMonth","monthsToSubstract","yearsToSubstract","monthsToAdd","yearsToAdd","__default__$2","messages$1","monthLabelId","generateUid","computedIsDateDisabled","moveToNextDay","moveToPreviousDay","moveToPreviousWeek","moveToNextWeek","moveToFirstDayOfWeek","moveToLastDayOfWeek","moveToPreviousMonth","moveToPreviousYear","moveToNextMonth","moveToNextYear","toRef","fallbackFirstDayOfWeek","shouldShowPreviousMonthButton","shouldShowNextMonthButton","formattedMonthName","onYearSelected","currentYear","diffMonths","daysOfWeek","dayOfWeekDate","weeksOfMonth","weeks","week","onDayClicked","selectedDate","dayVariant","isSelectedDate","listeners","expose","CalendarYearMonthVariant","CalendarYearMonthVariant2","CalendarYearMonthClass","CalendarYearMonthClass2","CalendarYearMonthEvent","CalendarYearMonthEvent2","__default__$1","isCurrentMonth","conditionalClasses","__default__","messages","yearLabelId","shouldShowPreviousYearButton","shouldShowNextYearButton","moveToFirstMonthOfYear","moveToLastMonthOfYear","diffYears","monthRows","rows","count","i","innerArray","j","monthVariant","onMonthClicked","ev","useSinglePane","internalValue","reactive","fallbackMaxRangeStrategy","end","start","maxRangeStrategyByGranularity","differenceInCalendarMonths","useGranularityAdjustments","normalizeBoundaryByGranularity","endDate","min","max","isStartOutOfBounds","isEndOutOfBounds","endOfMonth","startDate","fixedEndpoint","granularity","alignToGranularity","fallbackMaxRange","normalizedRange","maximumRange","maxRangeStrategy","selectedUnitCount","unitsToRemove","shortenedRange","useRangePane","maxRange","normalizeRange","clickedDate","setDates","direction","onMouseOver","correctedDate","_sfc_main","CalendarMonth","CalendarYear","n","defaultDate","calendarComponent","onDateInput","calendarPosition","calendarIndex","calculateOffsetMonth","offsetMonth","monthOffset","calculateOffsetYear","offsetYear","yearOffset"],"mappings":";;;;;;;;;;;;;;;AAMO,IAAAA,IAAA,kBAAAC,OACHA,EAAAA,EAAA,SAAA,CAAA,IAAA,UACAA,EAAAA,EAAA,WAAA,CAAA,IAAA,YACAA,EAAAA,EAAA,SAAA,CAAA,IAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA,GAWLE,IAAA,kBAAAC,OACHA,EAAA,QAAA,SACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UACAA,EAAA,SAAA,UAJQA,IAAAD,KAAA,CAAA,CAAA,GAqCLE,IAAA,kBAAAC,OACHA,EAAA,QAAA,SACAA,EAAA,sBAAA,uBACAA,EAAA,oBAAA,qBAHQA,IAAAD,KAAA,CAAA,CAAA,GASLE,KAAA,kBAAAC,OACHA,EAAA,MAAA,OACAA,EAAA,QAAA,SAFQA,IAAAD,MAAA,CAAA,CAAA;AClCL,SAAAE,EAAAC,GAAAC,GAAAC,GAAA;AACP,QAAAC,IAAAC,EAAAJ,GAAAE,GAAA,EAAA;AACA,SAAA,MAAAD,CAAA,IAAAI,EAAAH,GAAA,MAAAF,GAAA,GAAA,KAGAC,KAEAE,EAAA,QAAAA,EAAA,QAAA,IAAAF,CAAA,GACAE;AACA;ACLO,SAAAG,EAAAN,GAAAC,GAAAC,GAAA;AACP,QAAAC,IAAAC,EAAAJ,GAAAE,GAAA,EAAA;AACA,MAAA,MAAAD,CAAA,EAAA,QAAAI,EAAAH,GAAA,MAAAF,GAAA,GAAA;AACA,MAAA,CAAAC;AAEA,WAAAE;AAEA,QAAAI,IAAAJ,EAAA,QAAA,GAUAK,IAAAH,EAAAH,GAAA,MAAAF,GAAAG,EAAA,QAAA,CAAA;AACA,EAAAK,EAAA,SAAAL,EAAA,SAAA,IAAAF,IAAA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