@adyen/bento-vue2 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,65 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { d as
|
|
3
|
-
import { B as
|
|
4
|
-
import { h as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import { B as
|
|
8
|
-
import { B as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { j as
|
|
14
|
-
import { e as
|
|
15
|
-
import { s as
|
|
16
|
-
import { t as
|
|
17
|
-
import { c as
|
|
18
|
-
import {
|
|
19
|
-
import { B as
|
|
20
|
-
import { B as
|
|
21
|
-
import { B as
|
|
22
|
-
import { n as
|
|
23
|
-
import { g as
|
|
24
|
-
import { u as
|
|
1
|
+
import { defineComponent as xe, computed as c, reactive as be, useSlots as ya, ref as E, onMounted as ea, toRaw as we, watch as De, useAttrs as Ma, toRef as Ee } from "vue";
|
|
2
|
+
import { d as ha, h as Ta } from "./index.CL3TXc0a.js";
|
|
3
|
+
import { B as Ra } from "./divider.KxXy6nzJ.js";
|
|
4
|
+
import { h as Ya, B as ba } from "./button-actions.CdetBz3J.js";
|
|
5
|
+
import { B as aa, p as Ia } from "./typography.Cd386LC_.js";
|
|
6
|
+
import { B as ka } from "./alert.BddJPWMN.js";
|
|
7
|
+
import { B as Aa, g as We, D as _a } from "./dropdown.CpZQYisR.js";
|
|
8
|
+
import { B as Sa } from "./segmented-control.CcQoBTfT.js";
|
|
9
|
+
import { u as Pe } from "./index.CPOlyau9.js";
|
|
10
|
+
import { u as Ea } from "./use-has-slot.C9lQZ6nz.js";
|
|
11
|
+
import { u as Oe, a as Fa } from "./use-date-input-formatter.CouOE5tF.js";
|
|
12
|
+
import { u as wa } from "./use-touch-device.DTqFAbXh.js";
|
|
13
|
+
import { j as pe, k as x, s as k, l as xa, m as Qe, n as Pa, f as Ge, o as Oa, q as Ba, r as qa, t as $e, u as Ca, b as C, v as Na, e as Y, h as za, i as Va, w as Ue, x as je, g as La } from "./calendar.BalfhApP.js";
|
|
14
|
+
import { e as N, a as Je } from "./differenceInMonths.CPDkGea3.js";
|
|
15
|
+
import { s as He } from "./startOfWeek.CzdYFzXX.js";
|
|
16
|
+
import { t as Ie, n as Wa, c as Qa } from "./en-US.C412g-7U.js";
|
|
17
|
+
import { c as Ga } from "./constructNow.Dl44Mvpp.js";
|
|
18
|
+
import { a as Ye, s as Re } from "./set-time-in-date.B3K4C7CB.js";
|
|
19
|
+
import { B as $a, s as ta, i as Ke } from "./input-time.D7IsprlH.js";
|
|
20
|
+
import { B as Ua } from "./input-field.90DWNO1a.js";
|
|
21
|
+
import { B as ja } from "./form-layout-group.BSC2esG8.js";
|
|
22
|
+
import { n as Be } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
23
|
+
import { g as ce } from "./generate-uid.DBWe4g6T.js";
|
|
24
|
+
import { u as Ja } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
25
25
|
import "./index.Cl4_42j5.js";
|
|
26
|
-
import { u as
|
|
27
|
-
import { B as
|
|
28
|
-
import { F as
|
|
29
|
-
import { E as
|
|
30
|
-
import { B as
|
|
26
|
+
import { u as Ha } from "./form-field.B60VsF8d.js";
|
|
27
|
+
import { B as Ka } from "./directive.D1-d-C2K.js";
|
|
28
|
+
import { F as Xa } from "./field-label.BQaDr37D.js";
|
|
29
|
+
import { E as Za } from "./error-message.B-n8wzFo.js";
|
|
30
|
+
import { B as et } from "./button-actions.types.BptAXjD8.js";
|
|
31
31
|
import "../assets/date-range-picker.css";
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function Xe(l, t) {
|
|
33
|
+
return Ie(l, t?.in).getFullYear();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return +
|
|
35
|
+
function me(l, t) {
|
|
36
|
+
return +Ie(l) == +Ie(t);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const [a, i] =
|
|
38
|
+
function at(l, t, e) {
|
|
39
|
+
const [a, i] = Wa(
|
|
40
40
|
e?.in,
|
|
41
|
-
|
|
41
|
+
l,
|
|
42
42
|
t
|
|
43
43
|
);
|
|
44
|
-
return +
|
|
44
|
+
return +pe(a) == +pe(i);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const e =
|
|
46
|
+
function Ze(l, t) {
|
|
47
|
+
const e = Ie(l, t?.in);
|
|
48
48
|
return e.setMilliseconds(0), e;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function Fe(l, t) {
|
|
51
|
+
return +Ze(l) == +Ze(t);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
function tt(l, t) {
|
|
54
|
+
return x(
|
|
55
|
+
Qa(l, l),
|
|
56
|
+
Ga(l)
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const nt = {
|
|
60
60
|
name: "date-time-input"
|
|
61
|
-
},
|
|
62
|
-
|
|
61
|
+
}, rt = /* @__PURE__ */ xe({
|
|
62
|
+
...nt,
|
|
63
63
|
props: {
|
|
64
64
|
dateModelValue: { default: "" },
|
|
65
65
|
dateProps: { default: () => ({}) },
|
|
@@ -68,109 +68,113 @@ const $a = {
|
|
|
68
68
|
timeModelValue: { default: "" },
|
|
69
69
|
timeProps: { default: () => ({}) }
|
|
70
70
|
},
|
|
71
|
-
emits: ["update:date-model-value", "date:keydown", "update:time-model-value", "time:error", "time:valid"],
|
|
72
|
-
setup(
|
|
73
|
-
const t =
|
|
71
|
+
emits: ["click", "update:date-model-value", "date:keydown", "update:time-model-value", "time:error", "time:valid"],
|
|
72
|
+
setup(l) {
|
|
73
|
+
const t = l, e = c(() => ({
|
|
74
74
|
errorMessage: t.errorMessage,
|
|
75
75
|
...t.dateProps
|
|
76
76
|
})), a = c(() => ({
|
|
77
77
|
errorMessage: t.errorMessage,
|
|
78
78
|
...t.timeProps
|
|
79
79
|
}));
|
|
80
|
-
return { __sfc: !0, props: t, resolvedDateProps: e, resolvedTimeProps: a, BentoFormLayoutGroup:
|
|
80
|
+
return { __sfc: !0, props: t, resolvedDateProps: e, resolvedTimeProps: a, BentoFormLayoutGroup: ja, BentoInputField: Ua, BentoInputTime: $a };
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
var
|
|
83
|
+
var st = function() {
|
|
84
84
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
85
|
-
return e(a.BentoFormLayoutGroup, { attrs: { layout: t.showTimeInput ? "50-50" : "100", "error-message": t.errorMessage } }, [e(a.BentoInputField, t._b({ attrs: { "model-value": t.dateModelValue }, on: {
|
|
85
|
+
return e(a.BentoFormLayoutGroup, { attrs: { layout: t.showTimeInput ? "50-50" : "100", "error-message": t.errorMessage } }, [e(a.BentoInputField, t._b({ attrs: { "model-value": t.dateModelValue }, on: { click: function(i) {
|
|
86
|
+
return t.$emit("click");
|
|
87
|
+
}, "update:model-value": function(i) {
|
|
86
88
|
return t.$emit("update:date-model-value", i);
|
|
87
89
|
}, keydown: function(i) {
|
|
88
90
|
return t.$emit("date:keydown", i);
|
|
89
|
-
} } }, "bento-input-field", a.resolvedDateProps, !1)), t.showTimeInput ? e(a.BentoInputTime, t._b({ attrs: { "model-value": t.timeModelValue }, on: {
|
|
91
|
+
} } }, "bento-input-field", a.resolvedDateProps, !1)), t.showTimeInput ? e(a.BentoInputTime, t._b({ attrs: { "model-value": t.timeModelValue }, on: { click: function(i) {
|
|
92
|
+
return t.$emit("click");
|
|
93
|
+
}, "update:model-value": function(i) {
|
|
90
94
|
return t.$emit("update:time-model-value", i);
|
|
91
95
|
}, "input:error": function(i) {
|
|
92
96
|
return t.$emit("time:error");
|
|
93
97
|
}, "input:valid": function(i) {
|
|
94
98
|
return t.$emit("time:valid");
|
|
95
99
|
} } }, "bento-input-time", a.resolvedTimeProps, !1)) : t._e()], 1);
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
}, ot = [], lt = /* @__PURE__ */ Be(
|
|
101
|
+
rt,
|
|
102
|
+
st,
|
|
103
|
+
ot,
|
|
100
104
|
!1,
|
|
101
105
|
null,
|
|
102
106
|
null
|
|
103
107
|
);
|
|
104
|
-
const
|
|
105
|
-
firstDayOfWeek:
|
|
108
|
+
const it = lt.exports, ut = ({
|
|
109
|
+
firstDayOfWeek: l,
|
|
106
110
|
min: t,
|
|
107
111
|
max: e
|
|
108
112
|
}) => ({ getGranularCalendarLimits: (i) => {
|
|
109
113
|
if (!t && !e)
|
|
110
114
|
return { min: null, max: null };
|
|
111
|
-
let m = t ?
|
|
115
|
+
let m = t ? k(t) : null, p = e ? N(e) : null;
|
|
112
116
|
if (i?.type === "weekly") {
|
|
113
117
|
if (i.earliest)
|
|
114
|
-
m =
|
|
118
|
+
m = k(i.earliest);
|
|
115
119
|
else if (m) {
|
|
116
|
-
const
|
|
117
|
-
|
|
120
|
+
const h = He(m, { weekStartsOn: l });
|
|
121
|
+
x(m, h) || (m = k(xa(Qe(m, { weekStartsOn: l }), 1)));
|
|
118
122
|
}
|
|
119
123
|
if (i.latest)
|
|
120
|
-
p =
|
|
124
|
+
p = N(i.latest);
|
|
121
125
|
else if (p) {
|
|
122
|
-
const
|
|
123
|
-
|
|
126
|
+
const h = Qe(p, { weekStartsOn: l });
|
|
127
|
+
x(p, h) || (p = N(Pa(He(p, { weekStartsOn: l }), 1)));
|
|
124
128
|
}
|
|
125
129
|
}
|
|
126
130
|
if (i?.type === "monthly") {
|
|
127
131
|
if (i.earliest)
|
|
128
|
-
m =
|
|
132
|
+
m = k(i.earliest);
|
|
129
133
|
else if (m) {
|
|
130
|
-
const
|
|
131
|
-
|
|
134
|
+
const h = Ge(m);
|
|
135
|
+
x(m, h) || (m = Ge(Oa(m, 1)));
|
|
132
136
|
}
|
|
133
137
|
if (i.latest)
|
|
134
|
-
p =
|
|
138
|
+
p = N(i.latest);
|
|
135
139
|
else if (p) {
|
|
136
|
-
const
|
|
137
|
-
|
|
140
|
+
const h = Je(p);
|
|
141
|
+
x(p, h) || (p = Je(Ba(p, 1)));
|
|
138
142
|
}
|
|
139
143
|
}
|
|
140
144
|
if (i?.type === "quarterly") {
|
|
141
145
|
if (i.earliest)
|
|
142
|
-
m =
|
|
146
|
+
m = pe(i.earliest);
|
|
143
147
|
else if (m) {
|
|
144
|
-
const
|
|
145
|
-
|
|
148
|
+
const h = pe(m);
|
|
149
|
+
x(m, h) || (m = pe(qa(m, 1)));
|
|
146
150
|
}
|
|
147
151
|
if (i.latest)
|
|
148
|
-
p =
|
|
152
|
+
p = N(i.latest);
|
|
149
153
|
else if (p) {
|
|
150
|
-
const
|
|
151
|
-
|
|
154
|
+
const h = $e(p);
|
|
155
|
+
x(p, h) || (p = $e(Ca(p, 1)));
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
158
|
return { min: m, max: p };
|
|
155
|
-
} }),
|
|
156
|
-
const
|
|
159
|
+
} }), dt = () => {
|
|
160
|
+
const l = be({
|
|
157
161
|
daily: null,
|
|
158
162
|
weekly: null,
|
|
159
163
|
monthly: null,
|
|
160
164
|
quarterly: null
|
|
161
165
|
});
|
|
162
166
|
return {
|
|
163
|
-
savedRanges:
|
|
167
|
+
savedRanges: l,
|
|
164
168
|
saveRange: (a, i) => {
|
|
165
|
-
|
|
169
|
+
l[a] = i;
|
|
166
170
|
},
|
|
167
171
|
resetSavedRanges: () => {
|
|
168
|
-
|
|
172
|
+
l.daily = null, l.weekly = null, l.monthly = null, l.quarterly = null;
|
|
169
173
|
}
|
|
170
174
|
};
|
|
171
175
|
};
|
|
172
|
-
var D = /* @__PURE__ */ ((
|
|
173
|
-
const
|
|
176
|
+
var D = /* @__PURE__ */ ((l) => (l.CUSTOM_RANGE = "custom-range", l.INPUT = "input", l.ERROR = "error", l.FORM_DATE = "form-date", l.START_DATE_SELECTED = "start-date-selected", l))(D || {});
|
|
177
|
+
const ct = {
|
|
174
178
|
"de-DE": { "DD-MM-YYYY": "TT-MM-JJJJ", "MM-DD-YYYY": "MM-TT-JJJJ", "YYYY-MM-DD": "JJJJ-MM-TT", customRange: "Benutzerdefinierter Bereich", daily: "Täglich", dateFrom: "Datum von", dateTo: "Datum bis", invalidDateFormat: "Ungültiges Datumsformat", lastMonth: "Letzter Monat", lastSevenDays: "Letzte 7 Tage", lastThreeMonths: "Letzte drei Monate", maxRangeDays: "Sie können bis zu {count} Tag auswählen | Sie können bis zu {count} Tage auswählen", maxRangeMonths: "Sie können bis zu {count} Monat auswählen | Sie können bis zu {count} Monate auswählen", maxRangeQuarters: "Sie können bis zu {count} Quartal auswählen | Sie können bis zu {count} Quartale auswählen", maxRangeWeeks: "Sie können bis zu {count} Woche auswählen | Sie können bis zu {count} Wochen auswählen", monthly: "Monatlich", quarterly: "Vierteljährlich", selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar", startDateMustPrecedeEndDate: "Das Anfangsdatum muss vor dem Enddatum liegen", timeFrom: "Zeit von", timeTo: "Zeit bis", weekly: "Wöchentlich" },
|
|
175
179
|
"en-GB": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", invalidDateFormat: "Invalid date format", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "The last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", selectedDateIsNotAvailable: "Selected date is not available", startDateMustPrecedeEndDate: "Start date must precede end date", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
|
|
176
180
|
"en-US": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", from: "From", invalidDateFormat: "Invalid date format", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "Last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", selectedDateIsNotAvailable: "Selected date is not available", startDateMustPrecedeEndDate: "Start date must precede end date", timeFrom: "Time from", timeTo: "Time to", to: "To", weekly: "Weekly" },
|
|
@@ -182,11 +186,11 @@ const at = {
|
|
|
182
186
|
"ja-JP": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "カスタム範囲", daily: "毎日", dateFrom: "開始日", dateTo: "終了日", invalidDateFormat: "無効な日付形式", lastMonth: "先月", lastSevenDays: "過去 7 日間", lastThreeMonths: "過去3か月", maxRangeDays: "{count}日間まで選択できます | {count}日間まで選択できます", maxRangeMonths: "{count}か月まで選択できます | {count}か月まで選択できます", maxRangeQuarters: "{count}四半期まで選択できます | {count}四半期まで選択できます", maxRangeWeeks: "{count}週間まで選択できます | {count}週間まで選択できます", monthly: "毎月", quarterly: "四半期ごと", selectedDateIsNotAvailable: "選択した日付は利用できません", startDateMustPrecedeEndDate: "開始日は終了日より前にする必要があります", timeFrom: "開始時刻", timeTo: "終了時刻", weekly: "毎週" },
|
|
183
187
|
"pt-BR": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Intervalo personalizado", daily: "Diário", dateFrom: "Data a partir de", dateTo: "Data até", invalidDateFormat: "Formato de data inválido", lastMonth: "Último mês", lastSevenDays: "Últimos 7 dias", lastThreeMonths: "Últimos 3 meses", maxRangeDays: "Você pode selecionar até {count} dia | Você pode selecionar até {count} dias", maxRangeMonths: "Você pode selecionar até {count} mês | Você pode selecionar até {count} meses", maxRangeQuarters: "Você pode selecionar até {count} trimestre | Você pode selecionar até {count} trimestres", maxRangeWeeks: "Você pode selecionar até {count} semana | Você pode selecionar até {count} semanas", monthly: "Mensal", quarterly: "Trimestral", selectedDateIsNotAvailable: "A data selecionada não está disponível", startDateMustPrecedeEndDate: "A data de início deve preceder a data de término", timeFrom: "Horário a partir de", timeTo: "Horário até", weekly: "Semanal" },
|
|
184
188
|
"zh-CN": { "DD-MM-YYYY": "日-月-年", "MM-DD-YYYY": "月-日-年", "YYYY-MM-DD": "年-月-日", customRange: "自定义范围", daily: "每日", dateFrom: "日期自", dateTo: "日期至", invalidDateFormat: "日期格式无效", lastMonth: "上个月", lastSevenDays: "最近 7 天", lastThreeMonths: "过去三个月", maxRangeDays: "您可以选择最多 {count} 天 | 您可以选择最多 {count} 天", maxRangeMonths: "您可以选择最多 {count} 个月 | 您可以选择最多 {count} 个月", maxRangeQuarters: "您最多可以选择 {count} 个季度 | 您最多可以选择 {count} 个季度", maxRangeWeeks: "您最多可以选择 {count} 周 | 您最多可以选择 {count} 周", monthly: "每月", quarterly: "每季度", selectedDateIsNotAvailable: "所选日期不可用", startDateMustPrecedeEndDate: "开始日期必须早于结束日期", timeFrom: "时间自", timeTo: "是时候", weekly: "每周" }
|
|
185
|
-
},
|
|
189
|
+
}, mt = {
|
|
186
190
|
name: "date-range-picker-calendar",
|
|
187
|
-
i18n: { messages:
|
|
188
|
-
},
|
|
189
|
-
...
|
|
191
|
+
i18n: { messages: ct }
|
|
192
|
+
}, Dt = /* @__PURE__ */ xe({
|
|
193
|
+
...mt,
|
|
190
194
|
props: {
|
|
191
195
|
/**
|
|
192
196
|
* Allows user to enter time values in the form
|
|
@@ -233,12 +237,16 @@ const at = {
|
|
|
233
237
|
numberOfMonths: {
|
|
234
238
|
type: C.props.numberOfMonths.type,
|
|
235
239
|
default: C.props.numberOfMonths.default,
|
|
236
|
-
validator: (
|
|
240
|
+
validator: (l) => l >= 0
|
|
237
241
|
},
|
|
238
242
|
/**
|
|
239
243
|
* Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
|
|
240
244
|
*/
|
|
241
245
|
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
246
|
+
/**
|
|
247
|
+
* Limits the selectable times to a fixed interval, expressed in minutes.
|
|
248
|
+
*/
|
|
249
|
+
timeInterval: { type: Number, default: null },
|
|
242
250
|
/**
|
|
243
251
|
* Enables the custom range selector.
|
|
244
252
|
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
@@ -270,289 +278,302 @@ const at = {
|
|
|
270
278
|
D.FORM_DATE,
|
|
271
279
|
D.START_DATE_SELECTED
|
|
272
280
|
],
|
|
273
|
-
setup(
|
|
274
|
-
const e =
|
|
281
|
+
setup(l, { emit: t }) {
|
|
282
|
+
const e = l, a = 300, i = "customRange", m = {
|
|
275
283
|
daily: "maxRangeDays",
|
|
276
284
|
weekly: "maxRangeWeeks",
|
|
277
285
|
monthly: "maxRangeMonths",
|
|
278
286
|
quarterly: "maxRangeQuarters"
|
|
279
|
-
}, p =
|
|
280
|
-
dateFormat:
|
|
281
|
-
isFormatValid:
|
|
282
|
-
parseDate:
|
|
283
|
-
onKeyDown:
|
|
284
|
-
autoFormat:
|
|
285
|
-
formatDate:
|
|
286
|
-
} =
|
|
287
|
+
}, p = ya(), h = Ea(p), { t: w, tc: L } = Pe(), { isTouchDevice: g } = wa(), {
|
|
288
|
+
dateFormat: ve,
|
|
289
|
+
isFormatValid: ne,
|
|
290
|
+
parseDate: f,
|
|
291
|
+
onKeyDown: F,
|
|
292
|
+
autoFormat: A,
|
|
293
|
+
formatDate: W
|
|
294
|
+
} = Oe(), Q = E({}), b = E(null), re = c(() => e.variant === "month" ? "monthly" : "daily"), se = c(() => e.numberOfMonths === 0), M = (n, o) => e.timeInterval ? ta(n, e.timeInterval, o) : n, K = (n) => {
|
|
295
|
+
const o = N(n);
|
|
296
|
+
return e.timeInterval ? Ye(o, M(Y(o), "up")) : o;
|
|
297
|
+
}, r = be({
|
|
287
298
|
startDate: e.value?.startDate,
|
|
288
299
|
endDate: e.value?.endDate,
|
|
289
300
|
range: e.value?.range,
|
|
290
301
|
...e.granularities ? {
|
|
291
|
-
granularity: e.value?.granularity ||
|
|
302
|
+
granularity: e.value?.granularity || re.value
|
|
292
303
|
} : {}
|
|
293
|
-
}),
|
|
304
|
+
}), P = c(() => (
|
|
294
305
|
// eslint-disable-next-line consistent-return
|
|
295
|
-
e?.quickSelectRanges?.find(({ value: n, data:
|
|
296
|
-
if (!
|
|
297
|
-
if (
|
|
298
|
-
const
|
|
299
|
-
return
|
|
306
|
+
e?.quickSelectRanges?.find(({ value: n, data: o }) => {
|
|
307
|
+
if (!o.endDate) {
|
|
308
|
+
if (o.isRelativeToNow) {
|
|
309
|
+
const d = Q.value?.[n];
|
|
310
|
+
return d ? me(d.startDate, r.startDate) && me(d.endDate, r.endDate) : (
|
|
300
311
|
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
301
312
|
// with the internal range's stored range identifier.
|
|
302
313
|
n === r.range
|
|
303
314
|
);
|
|
304
315
|
}
|
|
305
|
-
return
|
|
316
|
+
return me(o.startDate, r.startDate) && tt(r.endDate) && (!e.allowTimeInput || Fe(
|
|
317
|
+
r.endDate,
|
|
318
|
+
K(r.endDate)
|
|
319
|
+
)) && (e.granularities ? o.granularity === r.granularity : !0);
|
|
306
320
|
}
|
|
307
321
|
if (e.allowTimeInput)
|
|
308
|
-
return
|
|
309
|
-
if (
|
|
310
|
-
return
|
|
322
|
+
return Fe(o.startDate, r.startDate) && Fe(o.endDate, r.endDate) && (e.granularities ? o.granularity === r.granularity : !0);
|
|
323
|
+
if (o.endDate)
|
|
324
|
+
return x(o.startDate, r.startDate) && x(o.endDate, r.endDate) && (e.granularities ? o.granularity === r.granularity : !0);
|
|
311
325
|
})?.value ?? i
|
|
312
|
-
)),
|
|
313
|
-
{ label:
|
|
326
|
+
)), ke = c(() => [
|
|
327
|
+
{ label: w("customRange"), value: i },
|
|
314
328
|
...e.quickSelectRanges ? e.quickSelectRanges : []
|
|
315
|
-
]),
|
|
329
|
+
]), z = c(
|
|
316
330
|
() => e.granularities?.find(({ type: n }) => n === r.granularity) || null
|
|
317
|
-
),
|
|
318
|
-
() => e.granularities?.map(({ type: n, disabled:
|
|
319
|
-
label:
|
|
331
|
+
), fe = c(
|
|
332
|
+
() => e.granularities?.map(({ type: n, disabled: o }) => ({
|
|
333
|
+
label: w(n),
|
|
320
334
|
value: n,
|
|
321
|
-
disabled:
|
|
335
|
+
disabled: o
|
|
322
336
|
})) ?? []
|
|
323
|
-
), { getGranularCalendarLimits:
|
|
324
|
-
() => e.granularities ?
|
|
325
|
-
), { normalizeRange:
|
|
337
|
+
), { getGranularCalendarLimits: ge } = ut(e), X = c(
|
|
338
|
+
() => e.granularities ? ge(z.value) : { min: e.min ? k(e.min) : null, max: e.max ? N(e.max) : null }
|
|
339
|
+
), { normalizeRange: Z } = Na(e.firstDayOfWeek), { savedRanges: G, saveRange: ee, resetSavedRanges: U } = dt(), _ = (n) => n ? W(n) : "", ae = (n, o = !0) => {
|
|
326
340
|
if (!r.startDate || !r.endDate)
|
|
327
341
|
return;
|
|
328
|
-
const
|
|
342
|
+
const d = Z({
|
|
329
343
|
startDate: r.startDate,
|
|
330
344
|
endDate: r.endDate,
|
|
331
345
|
fixedEndpoint: n,
|
|
332
|
-
granularity:
|
|
333
|
-
alignToGranularity:
|
|
346
|
+
granularity: z.value,
|
|
347
|
+
alignToGranularity: o,
|
|
334
348
|
fallbackMaxRange: e.maxRange,
|
|
335
|
-
min:
|
|
336
|
-
max:
|
|
349
|
+
min: X.value.min,
|
|
350
|
+
max: X.value.max
|
|
337
351
|
});
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
() =>
|
|
341
|
-
),
|
|
342
|
-
if (!n || !
|
|
352
|
+
me(d.startDate, r.startDate) && me(d.endDate, r.endDate) || (r.startDate = d.startDate, r.endDate = d.endDate, s.startDate = _(d.startDate), s.endDate = _(d.endDate));
|
|
353
|
+
}, y = E(null), T = E(null), oe = c(() => y.value ? w(y.value) : null), j = c(() => T.value ? w(T.value) : null), O = c(
|
|
354
|
+
() => y.value === "invalidDateFormat" ? null : oe.value
|
|
355
|
+
), $ = c(() => T.value === "invalidDateFormat" ? null : j.value), v = (n, o, d, R) => {
|
|
356
|
+
if (!n || !ne(n))
|
|
343
357
|
return "invalidDateFormat";
|
|
344
|
-
const
|
|
345
|
-
if (e.min &&
|
|
358
|
+
const V = f(n), S = k(V);
|
|
359
|
+
if (e.min && S < k(e.min) || e.max && S > k(e.max) || e.isDateDisabled && e.isDateDisabled(S))
|
|
346
360
|
return "selectedDateIsNotAvailable";
|
|
347
|
-
if (
|
|
348
|
-
const
|
|
349
|
-
if (
|
|
361
|
+
if (o) {
|
|
362
|
+
const ie = R ? Re(R, 0).getTime() : S.getTime(), ue = R ? Re(o, 0).getTime() : k(o).getTime();
|
|
363
|
+
if (d === "start" ? ie >= ue : ie <= ue)
|
|
350
364
|
return "startDateMustPrecedeEndDate";
|
|
351
365
|
}
|
|
352
366
|
return null;
|
|
353
|
-
}, s =
|
|
367
|
+
}, s = be({
|
|
354
368
|
startDate: e.dateFormData.startDate,
|
|
355
369
|
endDate: e.dateFormData.endDate,
|
|
356
|
-
startTime: e.dateFormData.startTime,
|
|
357
|
-
endTime: e.dateFormData.endTime
|
|
358
|
-
}),
|
|
359
|
-
const
|
|
360
|
-
if (
|
|
361
|
-
const
|
|
362
|
-
if (e.min &&
|
|
370
|
+
startTime: M(e.dateFormData.startTime, "down"),
|
|
371
|
+
endTime: M(e.dateFormData.endTime, "up")
|
|
372
|
+
}), J = (n, o) => {
|
|
373
|
+
const d = () => {
|
|
374
|
+
if (o && H(o)) {
|
|
375
|
+
const R = Ye(f(o), n);
|
|
376
|
+
if (e.min && R < Re(e.min, 0) || e.max && R > Re(e.max, 0))
|
|
363
377
|
return !1;
|
|
364
378
|
}
|
|
365
379
|
return !0;
|
|
366
380
|
};
|
|
367
|
-
return
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
e.min && e.allowTimeInput &&
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
381
|
+
return Ke(n) && d();
|
|
382
|
+
}, B = c(() => e.variant === "month"), le = (n) => n ? B.value ? za(n) : Va(n) : "", Ae = c(() => le(r.startDate)), _e = c(() => le(r.endDate)), qe = c(() => g.value ? B.value ? "month" : "date" : "text"), Ce = c(() => g.value ? Ae.value : s.startDate), Ne = c(() => g.value ? _e.value : s.endDate), I = (n, o) => !o || !Ke(o) || e.variant === "month" ? n : Ye(new Date(n), o), u = (n, o = !1) => {
|
|
383
|
+
if (!o) {
|
|
384
|
+
const d = e.min && e.allowTimeInput && x(e.min, n.startDate), R = e.max && e.allowTimeInput && x(e.max, n.endDate);
|
|
385
|
+
s.startTime = d ? M(Y(e.min), "up") : M(Y(k(n.startDate)), "down"), s.endTime = R ? M(Y(e.max), "down") : M(Y(N(n.endDate)), "up");
|
|
386
|
+
}
|
|
387
|
+
r.startDate = I(n.startDate, s.startTime), r.endDate = I(n.endDate, s.endTime), r.range = null, e.granularities && U(), t(D.INPUT, {
|
|
374
388
|
...r,
|
|
375
|
-
range:
|
|
389
|
+
range: P.value
|
|
376
390
|
});
|
|
377
|
-
},
|
|
378
|
-
|
|
379
|
-
|
|
391
|
+
}, q = (n) => {
|
|
392
|
+
u(n);
|
|
393
|
+
}, te = () => {
|
|
394
|
+
const n = b.value?.finalizeRangeSelection();
|
|
395
|
+
n && u(n, !0);
|
|
396
|
+
}, H = (n) => !!n && !v(n);
|
|
397
|
+
ea(() => {
|
|
398
|
+
y.value = e.dateFormData.startDate ? v(e.dateFormData.startDate) : null, T.value = e.dateFormData.endDate ? v(e.dateFormData.endDate) : null;
|
|
380
399
|
});
|
|
381
|
-
const
|
|
382
|
-
s.startDate =
|
|
383
|
-
},
|
|
384
|
-
s.endDate =
|
|
385
|
-
},
|
|
386
|
-
const
|
|
387
|
-
if (
|
|
388
|
-
return
|
|
389
|
-
if (e.dateFormData[n] &&
|
|
390
|
-
return
|
|
391
|
-
},
|
|
392
|
-
if (
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
const
|
|
396
|
-
r.startDate =
|
|
397
|
-
|
|
400
|
+
const na = (n) => {
|
|
401
|
+
s.startDate = _(n), s.startTime || (s.startTime = M(Y(n), "down")), y.value = null, T.value === "startDateMustPrecedeEndDate" && (T.value = null), t(D.START_DATE_SELECTED, n);
|
|
402
|
+
}, ra = (n) => {
|
|
403
|
+
s.endDate = _(n), s.endTime || (s.endTime = M(Y(N(n)), "up")), T.value = null, y.value === "startDateMustPrecedeEndDate" && (y.value = null);
|
|
404
|
+
}, ye = (n) => {
|
|
405
|
+
const o = e.value?.[n];
|
|
406
|
+
if (o)
|
|
407
|
+
return o;
|
|
408
|
+
if (e.dateFormData[n] && H(e.dateFormData[n]))
|
|
409
|
+
return f(e.dateFormData[n]);
|
|
410
|
+
}, Me = (n, o = !1) => {
|
|
411
|
+
if (H(n)) {
|
|
412
|
+
const d = n;
|
|
413
|
+
y.value = null, s.startDate = d;
|
|
414
|
+
const R = k(f(d));
|
|
415
|
+
r.startDate = I(R, s.startTime), H(s.endDate) && (r.endDate = I(
|
|
416
|
+
k(f(s.endDate)),
|
|
398
417
|
s.endTime
|
|
399
418
|
));
|
|
400
|
-
const
|
|
401
|
-
|
|
402
|
-
e.allowTimeInput ? r.endDate :
|
|
419
|
+
const V = ye("endDate"), S = v(
|
|
420
|
+
d,
|
|
421
|
+
e.allowTimeInput ? r.endDate : V,
|
|
403
422
|
"start",
|
|
404
423
|
e.allowTimeInput ? r.startDate : void 0
|
|
405
424
|
);
|
|
406
|
-
if (
|
|
407
|
-
|
|
425
|
+
if (S) {
|
|
426
|
+
y.value = S, t(D.ERROR, { ...s });
|
|
408
427
|
return;
|
|
409
428
|
}
|
|
410
|
-
|
|
429
|
+
T.value === "startDateMustPrecedeEndDate" && (T.value = null), ae("end", o), r.range = null, t(D.FORM_DATE, {
|
|
411
430
|
startDate: r.startDate,
|
|
412
431
|
endDate: r.endDate
|
|
413
432
|
}), t(D.INPUT, {
|
|
414
433
|
...r,
|
|
415
|
-
range:
|
|
434
|
+
range: P.value
|
|
416
435
|
});
|
|
417
436
|
} else
|
|
418
|
-
|
|
419
|
-
},
|
|
420
|
-
s.startDate =
|
|
421
|
-
},
|
|
422
|
-
if (
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
const
|
|
426
|
-
r.endDate =
|
|
427
|
-
|
|
437
|
+
y.value = v(n), t(D.ERROR, { ...s });
|
|
438
|
+
}, ze = We(Me, a), sa = (n) => {
|
|
439
|
+
s.startDate = g.value && B.value ? n : A(n), g.value ? B.value && n ? Me(_(Ue(n)), !0) : s.startDate ? Me(s.startDate) : y.value = null : ze(s.startDate);
|
|
440
|
+
}, he = (n, o = !1) => {
|
|
441
|
+
if (H(n)) {
|
|
442
|
+
const d = n;
|
|
443
|
+
T.value = null, s.endDate = d;
|
|
444
|
+
const R = k(f(d));
|
|
445
|
+
r.endDate = I(R, s.endTime), H(s.startDate) && (r.startDate = I(
|
|
446
|
+
k(f(s.startDate)),
|
|
428
447
|
s.startTime
|
|
429
448
|
));
|
|
430
|
-
const
|
|
431
|
-
|
|
432
|
-
e.allowTimeInput ? r.startDate :
|
|
449
|
+
const V = ye("startDate"), S = v(
|
|
450
|
+
d,
|
|
451
|
+
e.allowTimeInput ? r.startDate : V,
|
|
433
452
|
"end",
|
|
434
453
|
e.allowTimeInput ? r.endDate : void 0
|
|
435
454
|
);
|
|
436
|
-
if (
|
|
437
|
-
|
|
455
|
+
if (S) {
|
|
456
|
+
T.value = S, t(D.ERROR, { ...s });
|
|
438
457
|
return;
|
|
439
458
|
}
|
|
440
|
-
|
|
459
|
+
y.value === "startDateMustPrecedeEndDate" && (y.value = null), ae("start", o), r.range = null, t(D.FORM_DATE, {
|
|
441
460
|
startDate: r.startDate,
|
|
442
461
|
endDate: r.endDate
|
|
443
462
|
}), t(D.INPUT, {
|
|
444
463
|
...r,
|
|
445
|
-
range:
|
|
464
|
+
range: P.value
|
|
446
465
|
});
|
|
447
466
|
} else
|
|
448
|
-
|
|
449
|
-
},
|
|
450
|
-
s.endDate =
|
|
451
|
-
},
|
|
452
|
-
|
|
453
|
-
},
|
|
467
|
+
T.value = v(n), t(D.ERROR, { ...s });
|
|
468
|
+
}, Ve = We(he, a), oa = (n) => {
|
|
469
|
+
s.endDate = g.value && B.value ? n : A(n), g.value ? B.value && n ? he(_(Ue(n)), !0) : s.endDate ? he(s.endDate) : T.value = null : Ve(s.endDate);
|
|
470
|
+
}, la = (n) => {
|
|
471
|
+
F(n);
|
|
472
|
+
}, ia = () => {
|
|
454
473
|
t(D.ERROR, { ...s });
|
|
455
|
-
},
|
|
474
|
+
}, ua = () => {
|
|
456
475
|
const n = s.startTime;
|
|
457
|
-
if (!
|
|
476
|
+
if (!J(n, s.startDate)) {
|
|
458
477
|
t(D.ERROR, { ...s });
|
|
459
478
|
return;
|
|
460
479
|
}
|
|
461
|
-
if (r.startDate =
|
|
462
|
-
const
|
|
480
|
+
if (r.startDate = I(r.startDate, n), s.startDate && r.endDate) {
|
|
481
|
+
const d = v(
|
|
463
482
|
s.startDate,
|
|
464
483
|
r.endDate,
|
|
465
484
|
"start",
|
|
466
485
|
r.startDate
|
|
467
486
|
);
|
|
468
|
-
if (
|
|
469
|
-
|
|
487
|
+
if (d) {
|
|
488
|
+
y.value = d, t(D.ERROR, { ...s });
|
|
470
489
|
return;
|
|
471
490
|
}
|
|
472
491
|
}
|
|
473
|
-
|
|
474
|
-
const
|
|
492
|
+
y.value = null, T.value === "startDateMustPrecedeEndDate" && (T.value = null);
|
|
493
|
+
const o = ye("endDate");
|
|
475
494
|
t(D.FORM_DATE, {
|
|
476
495
|
startDate: r.startDate,
|
|
477
|
-
endDate:
|
|
496
|
+
endDate: o,
|
|
478
497
|
startTime: n,
|
|
479
498
|
endTime: s.endTime ?? e.dateFormData.endTime
|
|
480
499
|
}), t(D.INPUT, {
|
|
481
500
|
...r,
|
|
482
|
-
range:
|
|
501
|
+
range: P.value
|
|
483
502
|
});
|
|
484
|
-
},
|
|
503
|
+
}, da = () => {
|
|
485
504
|
t(D.ERROR, { ...s });
|
|
486
|
-
},
|
|
505
|
+
}, ca = () => {
|
|
487
506
|
const n = s.endTime;
|
|
488
|
-
if (!
|
|
507
|
+
if (!J(n, s.endDate)) {
|
|
489
508
|
t(D.ERROR, { ...s });
|
|
490
509
|
return;
|
|
491
510
|
}
|
|
492
|
-
if (r.endDate =
|
|
493
|
-
const
|
|
511
|
+
if (r.endDate = I(r.endDate, n), s.endDate && r.startDate) {
|
|
512
|
+
const o = v(
|
|
494
513
|
s.endDate,
|
|
495
514
|
r.startDate,
|
|
496
515
|
"end",
|
|
497
516
|
r.endDate
|
|
498
517
|
);
|
|
499
|
-
if (
|
|
500
|
-
|
|
518
|
+
if (o) {
|
|
519
|
+
T.value = o, t(D.ERROR, { ...s });
|
|
501
520
|
return;
|
|
502
521
|
}
|
|
503
522
|
}
|
|
504
|
-
|
|
523
|
+
T.value = null, y.value === "startDateMustPrecedeEndDate" && (y.value = null), t(D.FORM_DATE, {
|
|
505
524
|
startDate: r.startDate,
|
|
506
525
|
endDate: r.endDate,
|
|
507
526
|
startTime: s.startTime ?? e.dateFormData.startTime,
|
|
508
527
|
endTime: n
|
|
509
528
|
}), t(D.INPUT, {
|
|
510
529
|
...r,
|
|
511
|
-
range:
|
|
530
|
+
range: P.value
|
|
512
531
|
});
|
|
513
|
-
},
|
|
532
|
+
}, ma = (n) => {
|
|
514
533
|
s.startTime = n;
|
|
515
|
-
},
|
|
534
|
+
}, Da = (n) => {
|
|
516
535
|
s.endTime = n;
|
|
517
|
-
},
|
|
518
|
-
r.startDate = n, r.endDate =
|
|
519
|
-
},
|
|
520
|
-
const
|
|
521
|
-
if (
|
|
522
|
-
|
|
523
|
-
const
|
|
524
|
-
s.endDate =
|
|
525
|
-
...
|
|
536
|
+
}, Se = (n, o, d, R) => {
|
|
537
|
+
r.startDate = n, r.endDate = o, d && (r.granularity = d), R && (r.range = R);
|
|
538
|
+
}, pa = (n) => {
|
|
539
|
+
const o = e.quickSelectRanges?.find(({ value: d }) => d === n);
|
|
540
|
+
if (o) {
|
|
541
|
+
U();
|
|
542
|
+
const d = o.data, R = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : N(new Date(Date.now()))), V = d.isRelativeToNow && d.timeDifference ? new Date(R.getTime() - d.timeDifference) : d.startDate, S = M(Y(V), "down"), ie = M(Y(R), "up"), ue = e.allowTimeInput && !!e.timeInterval, de = ue ? I(V, S) : V, Te = ue ? I(R, ie) : R;
|
|
543
|
+
s.endDate = _(Te), s.startDate = _(de), s.startTime = S, s.endTime = ie, Se(de, Te, null, n), e.granularities && (r.granularity = d.granularity || re.value), d.isRelativeToNow && (Q.value = {
|
|
544
|
+
...Q.value,
|
|
526
545
|
[n]: {
|
|
527
|
-
startDate:
|
|
528
|
-
endDate:
|
|
546
|
+
startDate: de,
|
|
547
|
+
endDate: Te
|
|
529
548
|
}
|
|
530
549
|
}), t(D.CUSTOM_RANGE, {
|
|
531
|
-
...
|
|
532
|
-
startDate:
|
|
533
|
-
endDate:
|
|
534
|
-
range:
|
|
550
|
+
...o.data,
|
|
551
|
+
startDate: de,
|
|
552
|
+
endDate: Te,
|
|
553
|
+
range: o.value
|
|
535
554
|
});
|
|
536
555
|
}
|
|
537
|
-
},
|
|
538
|
-
const
|
|
539
|
-
r.granularity = n,
|
|
556
|
+
}, va = (n) => {
|
|
557
|
+
const o = r.granularity;
|
|
558
|
+
r.granularity = n, o && ee(o, structuredClone(we(r))), r.startDate && r.endDate && (G[n] && Se(G[n].startDate, G[n].endDate, n), ae("end"), s.startDate = _(r.startDate), s.endDate = _(r.endDate), t(D.INPUT, {
|
|
540
559
|
...r,
|
|
541
|
-
range:
|
|
560
|
+
range: P.value
|
|
542
561
|
}));
|
|
543
|
-
},
|
|
544
|
-
"b-date-range-picker-calendar__form-container--no-calendars":
|
|
545
|
-
})),
|
|
546
|
-
const n =
|
|
547
|
-
if (!
|
|
562
|
+
}, fa = c(() => ({
|
|
563
|
+
"b-date-range-picker-calendar__form-container--no-calendars": se.value || g.value
|
|
564
|
+
})), ga = c(() => {
|
|
565
|
+
const n = z.value, o = n?.maxRange || e.maxRange;
|
|
566
|
+
if (!o)
|
|
548
567
|
return null;
|
|
549
|
-
const
|
|
550
|
-
return
|
|
551
|
-
})
|
|
552
|
-
|
|
568
|
+
const d = m[n?.type ?? "daily"];
|
|
569
|
+
return L(d, o, { count: o });
|
|
570
|
+
}), Le = () => {
|
|
571
|
+
!e.allowTimeInput || !e.timeInterval || (r.startDate && (r.startDate = I(r.startDate, s.startTime)), r.endDate && (r.endDate = I(r.endDate, s.endTime)));
|
|
572
|
+
};
|
|
573
|
+
return Le(), { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: p, hasSlot: h, t: w, tc: L, isTouchDevice: g, dateFormat: ve, isFormatValid: ne, parseDate: f, onKeyDown: F, autoFormat: A, formatDateUtil: W, calculatedIsRelativeToNowQuickSelectRanges: Q, calendarRef: b, defaultGranularity: re, hasNoCalendars: se, snapTime: M, resolveEndOfSelectableDay: K, internalRangeDate: r, selectedRangeSelectorValue: P, quickSelectRangeDefaultItems: ke, selectedGranularity: z, granularityItems: fe, getGranularCalendarLimits: ge, computedMinMax: X, normalizeRange: Z, savedRanges: G, saveRange: ee, resetSavedRanges: U, formatDate: _, normalizeInternalRange: ae, startDateError: y, endDateError: T, startDateErrorText: oe, endDateErrorText: j, startSharedError: O, endSharedError: $, getDateErrorMessage: v, dateTextInput: s, isValidTime: J, isMonthVariant: B, formatNativeDate: le, nativeStartDate: Ae, nativeEndDate: _e, dateInputType: qe, startDateValue: Ce, endDateValue: Ne, setTimeInDateRef: I, updateSelectedRange: u, onDateInput: q, finalizeHoveredRange: te, isValidDate: H, onStartDateSelected: na, onEndDateSelected: ra, getDate: ye, validateStartDate: Me, validateStartDateDebounced: ze, onStartDateInput: sa, validateEndDate: he, validateEndDateDebounced: Ve, onEndDateInput: oa, onDateInputKeyDown: la, onStartTimeError: ia, onStartTimeValid: ua, onEndTimeError: da, onEndTimeValid: ca, onStartTimeInput: ma, onEndTimeInput: Da, setInternalRange: Se, onRangeSelectorInput: pa, onGranularityInput: va, computedFormContainerClasses: fa, maxRangeMessage: ga, alignInitialRangeWithTimeInterval: Le, Calendar: C, DateTimeInput: it, BentoAlert: ka, BentoTypography: aa, BentoDropdown: Aa, BentoSegmentedControl: Sa };
|
|
553
574
|
}
|
|
554
575
|
});
|
|
555
|
-
var
|
|
576
|
+
var pt = function() {
|
|
556
577
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
557
578
|
return e("div", { staticClass: "b-date-range-picker-calendar" }, [e("div", { staticClass: "b-date-range-picker-calendar__form-container", class: a.computedFormContainerClasses, attrs: { "data-testid": "date-range-picker-calendar-form-container" } }, [e("div", { staticClass: "b-date-range-picker-calendar__form" }, [a.hasSlot("title") ? [t._t("title")] : t._e(), t.quickSelectRanges ? e(a.BentoDropdown, { attrs: { "aria-label": a.t("customRange"), items: a.quickSelectRangeDefaultItems, "model-value": a.selectedRangeSelectorValue }, on: { "update:model-value": a.onRangeSelectorInput } }) : t._e(), t.granularities ? e(a.BentoSegmentedControl, { attrs: { items: a.granularityItems, "model-value": a.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": a.onGranularityInput } }) : t._e(), a.maxRangeMessage ? e(a.BentoAlert, { attrs: { variant: "tip" }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
558
579
|
return [t._v(" " + t._s(a.maxRangeMessage) + " ")];
|
|
@@ -563,25 +584,27 @@ var rt = function() {
|
|
|
563
584
|
errorMessage: a.startDateErrorText
|
|
564
585
|
}, "error-message": a.startSharedError, "show-time-input": t.allowTimeInput, "time-model-value": a.dateTextInput.startTime, "time-props": {
|
|
565
586
|
"aria-label": a.t("timeFrom"),
|
|
566
|
-
errorMessage: a.startSharedError
|
|
567
|
-
|
|
587
|
+
errorMessage: a.startSharedError,
|
|
588
|
+
interval: t.timeInterval
|
|
589
|
+
} }, on: { click: a.finalizeHoveredRange, "update:date-model-value": a.onStartDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onStartTimeInput, "time:error": a.onStartTimeError, "time:valid": a.onStartTimeValid } })], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" " + t._s(a.t("to")) + " ")]), e(a.DateTimeInput, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "date-model-value": a.endDateValue, "date-props": {
|
|
568
590
|
"aria-label": a.t("dateTo"),
|
|
569
591
|
type: a.dateInputType,
|
|
570
592
|
description: a.isTouchDevice ? void 0 : a.t(a.dateFormat),
|
|
571
593
|
errorMessage: a.endDateErrorText
|
|
572
594
|
}, "error-message": a.endSharedError, "show-time-input": t.allowTimeInput, "time-model-value": a.dateTextInput.endTime, "time-props": {
|
|
573
595
|
"aria-label": a.t("timeTo"),
|
|
574
|
-
errorMessage: a.endSharedError
|
|
575
|
-
|
|
576
|
-
},
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
596
|
+
errorMessage: a.endSharedError,
|
|
597
|
+
interval: t.timeInterval
|
|
598
|
+
} }, on: { click: a.finalizeHoveredRange, "update:date-model-value": a.onEndDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onEndTimeInput, "time:error": a.onEndTimeError, "time:valid": a.onEndTimeValid } })], 1)], 2), a.hasSlot("actions") ? e("div", [t._t("actions")], 2) : t._e()]), !a.hasNoCalendars && !a.isTouchDevice ? e("div", { staticClass: "b-date-range-picker-calendar__calendars-container", attrs: { "data-testid": "date-range-picker-calendar-calendar-container" } }, [e(a.Calendar, { ref: "calendarRef", attrs: { value: a.internalRangeDate, "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: a.computedMinMax.min, max: a.computedMinMax.max, "number-of-months": t.numberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, granularity: a.selectedGranularity, variant: t.variant, "year-range": t.yearRange, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1) : t._e()]);
|
|
599
|
+
}, vt = [], ft = /* @__PURE__ */ Be(
|
|
600
|
+
Dt,
|
|
601
|
+
pt,
|
|
602
|
+
vt,
|
|
580
603
|
!1,
|
|
581
604
|
null,
|
|
582
|
-
"
|
|
605
|
+
"379e2e7b"
|
|
583
606
|
);
|
|
584
|
-
const
|
|
607
|
+
const gt = ft.exports, yt = {
|
|
585
608
|
"de-DE": { apply: "Anwenden", cancel: "Abbrechen", dateRangePicker: "Datumsbereichauswahl {name}", invalidDateFormat: "Ungültiges Datumsformat", quarter: "Q{quarter} {year}", selectDate: "Wählen Sie ein Datum", selectDateRange: "Wählen Sie einen Datumsbereich aus", selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar" },
|
|
586
609
|
"en-GB": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", invalidDateFormat: "Invalid date format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
|
|
587
610
|
"en-US": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", invalidDateFormat: "Invalid date format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
|
|
@@ -593,69 +616,69 @@ const lt = ot.exports, it = {
|
|
|
593
616
|
"ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", invalidDateFormat: "無効な日付形式", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
|
|
594
617
|
"pt-BR": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Seletor de intervalo de datas {name}", invalidDateFormat: "Formato de data inválido", quarter: "{quarter}º trimestre de {year}", selectDate: "Selecione uma data", selectDateRange: "Selecione um intervalo de datas", selectedDateIsNotAvailable: "A data selecionada não está disponível" },
|
|
595
618
|
"zh-CN": { apply: "应用", cancel: "取消", dateRangePicker: "日期范围选择器 {name}", invalidDateFormat: "日期格式无效", quarter: "{year} {quarter} 季度", selectDate: "选择日期", selectDateRange: "选择日期范围", selectedDateIsNotAvailable: "所选日期不可用" }
|
|
596
|
-
},
|
|
597
|
-
datePickerValue:
|
|
619
|
+
}, Mt = ({
|
|
620
|
+
datePickerValue: l,
|
|
598
621
|
isDateIncorrect: t,
|
|
599
622
|
quickSelectRanges: e,
|
|
600
623
|
isMonthVariant: a,
|
|
601
624
|
withTimeInput: i,
|
|
602
625
|
placeholder: m
|
|
603
626
|
}) => {
|
|
604
|
-
const { locale: p, t:
|
|
627
|
+
const { locale: p, t: h } = Pe(), { dateToInputDateString: w } = Oe(), L = (f) => !!f && !isNaN(f.getTime()), g = be({
|
|
605
628
|
startDate: null,
|
|
606
629
|
endDate: null,
|
|
607
630
|
startTime: null,
|
|
608
631
|
endTime: null
|
|
609
632
|
});
|
|
610
|
-
return
|
|
611
|
-
|
|
612
|
-
(
|
|
613
|
-
|
|
633
|
+
return De(
|
|
634
|
+
l,
|
|
635
|
+
(f) => {
|
|
636
|
+
g.startDate = w(f?.startDate), g.endDate = w(f?.endDate), g.startTime = Y(f?.startDate), g.endTime = Y(f?.endDate);
|
|
614
637
|
},
|
|
615
638
|
{ immediate: !0 }
|
|
616
639
|
), {
|
|
617
640
|
// Values
|
|
618
641
|
dateDisplayValue: c(() => {
|
|
619
642
|
if (t.value)
|
|
620
|
-
return `${
|
|
621
|
-
if (!
|
|
622
|
-
return m?.value ||
|
|
643
|
+
return `${g.startDate || ""} - ${g.endDate || ""}`;
|
|
644
|
+
if (!l.value || !l.value.startDate && !l.value.endDate)
|
|
645
|
+
return m?.value || h("selectDateRange");
|
|
623
646
|
if (e.value?.length) {
|
|
624
|
-
const
|
|
625
|
-
if (
|
|
626
|
-
return
|
|
647
|
+
const F = e.value.find(({ value: A }) => A === l.value?.range);
|
|
648
|
+
if (F)
|
|
649
|
+
return F.label;
|
|
627
650
|
}
|
|
628
|
-
if (
|
|
629
|
-
const { startDate:
|
|
630
|
-
if (
|
|
631
|
-
return
|
|
632
|
-
const
|
|
633
|
-
return `${
|
|
651
|
+
if (l.value.granularity === "quarterly") {
|
|
652
|
+
const { startDate: F, endDate: A } = l.value, W = h("quarter", { quarter: je(F), year: Xe(F) });
|
|
653
|
+
if (at(F, A))
|
|
654
|
+
return W;
|
|
655
|
+
const Q = h("quarter", { quarter: je(A), year: Xe(A) });
|
|
656
|
+
return `${W} - ${Q}`;
|
|
634
657
|
}
|
|
635
|
-
if (!
|
|
636
|
-
return `${
|
|
637
|
-
let
|
|
638
|
-
return i.value && (
|
|
639
|
-
...
|
|
658
|
+
if (!L(l.value.startDate) || !L(l.value.endDate))
|
|
659
|
+
return `${g.startDate || ""} - ${g.endDate || ""}`;
|
|
660
|
+
let f = a?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
|
|
661
|
+
return i.value && (f = {
|
|
662
|
+
...f,
|
|
640
663
|
hour: "numeric",
|
|
641
664
|
minute: "numeric",
|
|
642
665
|
second: "numeric",
|
|
643
666
|
hour12: !1
|
|
644
|
-
}),
|
|
645
|
-
|
|
646
|
-
|
|
667
|
+
}), La(p.value, f).formatRange(
|
|
668
|
+
l.value.startDate,
|
|
669
|
+
l.value.endDate
|
|
647
670
|
);
|
|
648
671
|
}),
|
|
649
|
-
textInputDisplayValue:
|
|
672
|
+
textInputDisplayValue: g,
|
|
650
673
|
// Methods
|
|
651
674
|
formatTextInputDisplayValue: () => ""
|
|
652
675
|
};
|
|
653
|
-
},
|
|
654
|
-
i18n: { messages:
|
|
676
|
+
}, ht = {
|
|
677
|
+
i18n: { messages: yt },
|
|
655
678
|
name: "bento-date-range-picker",
|
|
656
679
|
model: { prop: "modelValue", event: "update:model-value" }
|
|
657
|
-
},
|
|
658
|
-
...
|
|
680
|
+
}, Tt = /* @__PURE__ */ xe({
|
|
681
|
+
...ht,
|
|
659
682
|
props: {
|
|
660
683
|
description: { default: void 0 },
|
|
661
684
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -676,13 +699,14 @@ const lt = ot.exports, it = {
|
|
|
676
699
|
min: { default: null },
|
|
677
700
|
max: { default: null },
|
|
678
701
|
numberOfMonths: { default: void 0 },
|
|
702
|
+
timeInterval: { default: void 0 },
|
|
679
703
|
modelValue: { default: null },
|
|
680
704
|
variant: { default: void 0 },
|
|
681
705
|
yearRange: { default: void 0 }
|
|
682
706
|
},
|
|
683
707
|
emits: ["update:model-value"],
|
|
684
|
-
setup(
|
|
685
|
-
const e =
|
|
708
|
+
setup(l, { emit: t }) {
|
|
709
|
+
const e = l, a = Ma(), { t: i } = Pe(), { dateToInputDateString: m } = Oe(), p = ce("bento-date-range-picker-container"), h = ce("bento-date-range-picker-label"), w = ce("bento-date-range-picker-description"), L = ce("bento-date-range-picker-error"), g = ce("bento-date-range-picker-date-error"), ve = c(() => e.label || i("dateRangePicker", { name: p })), { resolvedFirstDayOfWeek: ne } = Fa(Ee(e, "firstDayOfWeek")), f = ha({
|
|
686
710
|
none: 0,
|
|
687
711
|
one: 710,
|
|
688
712
|
// width of date range picker with one panes
|
|
@@ -690,129 +714,146 @@ const lt = ot.exports, it = {
|
|
|
690
714
|
// width of date range picker with two panes
|
|
691
715
|
three: 1290
|
|
692
716
|
// width of date range picker with three panes
|
|
693
|
-
}),
|
|
694
|
-
const
|
|
717
|
+
}), F = c(() => {
|
|
718
|
+
const u = f.active().value, q = {
|
|
695
719
|
none: 0,
|
|
696
720
|
one: 1,
|
|
697
721
|
two: 2
|
|
698
722
|
};
|
|
699
|
-
if (
|
|
700
|
-
const
|
|
701
|
-
return e.numberOfMonths === void 0 ?
|
|
723
|
+
if (u in q) {
|
|
724
|
+
const te = q[u];
|
|
725
|
+
return e.numberOfMonths === void 0 ? te : Math.min(e.numberOfMonths, te);
|
|
702
726
|
}
|
|
703
727
|
return e.numberOfMonths;
|
|
704
|
-
}),
|
|
705
|
-
|
|
728
|
+
}), A = (u, q) => Ye(
|
|
729
|
+
u,
|
|
730
|
+
ta(Y(u), G.value, q)
|
|
731
|
+
), W = c(() => e?.quickSelectRanges && e.quickSelectRanges.map((u) => {
|
|
732
|
+
const q = u.data.endDate ? void 0 : new Date(Date.now()).getTime() - u.data.startDate.getTime(), te = G.value ? {
|
|
733
|
+
startDate: A(u.data.startDate, "down"),
|
|
734
|
+
...u.data.endDate ? { endDate: A(u.data.endDate, "up") } : {}
|
|
735
|
+
} : {};
|
|
706
736
|
return {
|
|
707
|
-
...
|
|
737
|
+
...u,
|
|
708
738
|
data: {
|
|
709
|
-
...
|
|
739
|
+
...u.data,
|
|
740
|
+
...te,
|
|
710
741
|
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
711
|
-
timeDifference:
|
|
742
|
+
timeDifference: q
|
|
712
743
|
}
|
|
713
744
|
};
|
|
714
|
-
})),
|
|
715
|
-
|
|
745
|
+
})), Q = c(() => e.label ? h : a?.["aria-labelledby"] ?? null), b = E(!1), re = E(null), se = E(null), M = E(!1), { width: K } = Ta(se), { isReadOnly: r } = Ja(Ee(e, "readonly")), { emitValue: P } = Ha(t);
|
|
746
|
+
De(
|
|
716
747
|
() => e.disabled,
|
|
717
748
|
() => {
|
|
718
|
-
e.disabled &&
|
|
749
|
+
e.disabled && M.value && (M.value = !1);
|
|
719
750
|
}
|
|
720
751
|
);
|
|
721
|
-
const
|
|
722
|
-
() =>
|
|
752
|
+
const ke = c(
|
|
753
|
+
() => F.value === 0 && K.value > 0 && K.value < 332
|
|
723
754
|
// size of date range picker form
|
|
724
|
-
),
|
|
725
|
-
"b-date-range-picker__description--error": !!e.errorMessage ||
|
|
726
|
-
})),
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
755
|
+
), z = c(() => e.modelValue), fe = c(() => !$.value && b.value), ge = c(() => ({
|
|
756
|
+
"b-date-range-picker__description--error": !!e.errorMessage || fe.value
|
|
757
|
+
})), X = c(() => e.variant === "month"), Z = c(() => e.allowTimeInput && e.variant !== "month"), G = c(() => Z.value ? e.timeInterval : null);
|
|
758
|
+
De(
|
|
759
|
+
[() => e.timeInterval, () => e.allowTimeInput],
|
|
760
|
+
([u, q]) => {
|
|
761
|
+
u && !q && Ia(
|
|
762
|
+
'"bento-date-range-picker" ignores the "timeInterval" prop unless "allowTimeInput" is enabled.'
|
|
763
|
+
);
|
|
764
|
+
},
|
|
765
|
+
{ immediate: !0 }
|
|
766
|
+
);
|
|
767
|
+
const { dateDisplayValue: ee, textInputDisplayValue: U, formatTextInputDisplayValue: _ } = Mt({
|
|
768
|
+
datePickerValue: z,
|
|
769
|
+
isDateIncorrect: b,
|
|
770
|
+
quickSelectRanges: W,
|
|
771
|
+
isMonthVariant: X,
|
|
731
772
|
withTimeInput: Z,
|
|
732
|
-
placeholder:
|
|
733
|
-
}),
|
|
734
|
-
() => `${e.description ?
|
|
735
|
-
),
|
|
736
|
-
|
|
737
|
-
},
|
|
738
|
-
|
|
739
|
-
},
|
|
773
|
+
placeholder: Ee(e, "placeholder")
|
|
774
|
+
}), ae = c(
|
|
775
|
+
() => `${e.description ? w : ""} ${e.errorMessage ? L : ""} ${b.value ? g : ""}`.trim() || null
|
|
776
|
+
), y = () => {
|
|
777
|
+
M.value = !1;
|
|
778
|
+
}, T = () => {
|
|
779
|
+
M.value = !0;
|
|
780
|
+
}, oe = E(ee.value), j = E(
|
|
740
781
|
// textInputDisplayValue is a reactive object
|
|
741
|
-
structuredClone(
|
|
742
|
-
),
|
|
782
|
+
structuredClone(we(U))
|
|
783
|
+
), O = E(e.modelValue), $ = E(!0), v = E(j.value), s = {
|
|
743
784
|
allowOutsideClick: !0
|
|
744
785
|
};
|
|
745
|
-
|
|
746
|
-
if (e.granularities && e.variant !== "month" && e.granularities.find(({ type:
|
|
786
|
+
ea(() => {
|
|
787
|
+
if (e.granularities && e.variant !== "month" && e.granularities.find(({ type: u }) => u === "quarterly"))
|
|
747
788
|
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
748
789
|
});
|
|
749
|
-
const
|
|
750
|
-
|
|
790
|
+
const J = () => {
|
|
791
|
+
oe.value = ee.value, j.value = structuredClone(we(U)), v.value = j.value, O.value = z.value;
|
|
751
792
|
};
|
|
752
|
-
|
|
793
|
+
De(
|
|
753
794
|
() => e.modelValue,
|
|
754
795
|
() => {
|
|
755
|
-
|
|
796
|
+
J();
|
|
756
797
|
}
|
|
757
798
|
);
|
|
758
|
-
const
|
|
759
|
-
|
|
760
|
-
},
|
|
799
|
+
const B = () => {
|
|
800
|
+
J(), b.value = !1, $.value = !0, y();
|
|
801
|
+
}, le = c(() => [
|
|
761
802
|
{
|
|
762
803
|
title: i("apply"),
|
|
763
804
|
event: () => {
|
|
764
|
-
|
|
805
|
+
P(O.value), y(), $.value = !0;
|
|
765
806
|
},
|
|
766
|
-
disabled:
|
|
807
|
+
disabled: $.value
|
|
767
808
|
},
|
|
768
809
|
{
|
|
769
810
|
title: i("cancel"),
|
|
770
|
-
event:
|
|
811
|
+
event: B
|
|
771
812
|
}
|
|
772
813
|
]);
|
|
773
|
-
return
|
|
774
|
-
|
|
775
|
-
}), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: p, labelId:
|
|
776
|
-
|
|
814
|
+
return De(O, (u) => {
|
|
815
|
+
$.value = b.value || u === z.value;
|
|
816
|
+
}), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: p, labelId: h, descriptionId: w, errorId: L, dateErrorId: g, popoverAriaLabel: ve, resolvedFirstDayOfWeek: ne, breakpoints: f, computedNumberOfMonths: F, snapDateTime: A, adjustedQuickSelectRanges: W, dropdownInputAriaLabelledBy: Q, isDateIncorrect: b, inputContainerRef: re, inputWrapperRef: se, isDateRangePickerOpen: M, inputWrapperWidth: K, isReadOnly: r, emitValue: P, shouldMatchPopoverWidth: ke, internalModelValue: z, shouldDisplayError: fe, descriptionConditionalClasses: ge, isMonthVariant: X, withTimeInput: Z, resolvedTimeInterval: G, dateDisplayValue: ee, textInputDisplayValue: U, formatTextInputDisplayValue: _, ariaDescribedBy: ae, closeDateRangePicker: y, openDateRangePicker: T, localDateDisplayValue: oe, localTextInputDisplayValue: j, selectedDate: O, isApplyDisabled: $, displayedTextInputValue: v, trapAllOptions: s, syncLocalDisplayStateFromCommittedValue: J, cancelDateRangePicker: B, rangePickerButtonActions: le, onDateRangePickerInput: (u) => {
|
|
817
|
+
b.value = !1, v.value.startDate = m(u.startDate), v.value.endDate = m(u.endDate), v.value.startTime = Y(u.startDate), v.value.endTime = Y(u.endDate), O.value = u;
|
|
777
818
|
}, clearDateRangePickerValue: async () => {
|
|
778
|
-
|
|
819
|
+
b.value && (b.value = !1), O.value = null;
|
|
779
820
|
}, onEnterPressedOverInput: () => {
|
|
780
|
-
if (!
|
|
781
|
-
|
|
821
|
+
if (!M.value) {
|
|
822
|
+
M.value = !0;
|
|
782
823
|
return;
|
|
783
824
|
}
|
|
784
|
-
|
|
785
|
-
}, onDateRangePickerFormDateInputUpdate: (
|
|
786
|
-
|
|
787
|
-
}, onDateRangePickerError: (
|
|
788
|
-
|
|
789
|
-
}, onRangeSelectorInput: (
|
|
790
|
-
|
|
791
|
-
}, BentoButtonActions:
|
|
825
|
+
b.value || (M.value = !1);
|
|
826
|
+
}, onDateRangePickerFormDateInputUpdate: (u) => {
|
|
827
|
+
b.value = !1, u.startTime && (v.value.startTime = u.startTime), u.endTime && (v.value.endTime = u.endTime);
|
|
828
|
+
}, onDateRangePickerError: (u) => {
|
|
829
|
+
b.value = !0, v.value.startDate = u.startDate, v.value.endDate = u.endDate, O.value = { startDate: null, endDate: null };
|
|
830
|
+
}, onRangeSelectorInput: (u) => {
|
|
831
|
+
u && (v.value.startDate = m(u.startDate), v.value.endDate = m(u.endDate), v.value.startTime = Y(u.startDate), v.value.endTime = Y(u.endDate), O.value = u);
|
|
832
|
+
}, BentoButtonActions: ba, BentoButtonActionsLayout: et, BentoDivider: Ra, BentoPopover: Ya, BentoTypography: aa, DateRangePickerCalendar: gt, DropdownInputDefault: _a, ErrorMessage: Za, FieldLabel: Xa, vBentoClickOutsideDirective: Ka };
|
|
792
833
|
}
|
|
793
834
|
});
|
|
794
|
-
var
|
|
835
|
+
var Rt = function() {
|
|
795
836
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
796
837
|
return e("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: a.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [t.label ? e(a.FieldLabel, { attrs: { id: a.labelId, label: t.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), e("div", { ref: "inputWrapperRef", on: { keydown: function(i) {
|
|
797
838
|
return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
|
|
798
839
|
} } }, [e(a.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: a.datePickerContainerId, ariaExpanded: a.isDateRangePickerOpen, "aria-labelledby": a.dropdownInputAriaLabelledBy, "aria-describedby": a.ariaDescribedBy, "aria-required": t.required, disabled: t.disabled, "is-invalid": !!t.errorMessage || a.shouldDisplayError, open: a.isDateRangePickerOpen, "display-value": a.localDateDisplayValue, readonly: a.isReadOnly }, on: { open: a.openDateRangePicker, clear: a.clearDateRangePickerValue, close: a.closeDateRangePicker } })], 1), a.shouldDisplayError ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.dateErrorId, "error-message": a.t("invalidDateFormat") } }) : t._e(), t.errorMessage ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.errorId, "error-message": t.errorMessage } }) : t._e(), t.description ? e(a.BentoTypography, { staticClass: "b-date-range-picker__description", class: a.descriptionConditionalClasses, attrs: { id: a.descriptionId, el: "span" } }, [t._v(" " + t._s(t.description) + " ")]) : t._e(), a.inputContainerRef ? e(a.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: a.datePickerContainerId, open: a.isDateRangePickerOpen, "target-element": a.inputContainerRef, "aria-label": a.popoverAriaLabel, position: "bottom-start", "fallback-strategy": "initialPlacement", "without-space": "", "fit-content": "", "match-width": a.shouldMatchPopoverWidth, "trap-all": "", "overflow-visible": "", "trap-all-options": a.trapAllOptions }, nativeOn: { keydown: function(i) {
|
|
799
840
|
return !i.type.indexOf("key") && t._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : a.closeDateRangePicker.apply(null, arguments);
|
|
800
|
-
} } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.selectedDate, "first-day-of-week": a.resolvedFirstDayOfWeek, granularities: t.granularities, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: t.min, max: t.max, "number-of-months": a.computedNumberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, "date-form-data": a.displayedTextInputValue, variant: t.variant, "year-range": t.yearRange }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([{ key: "actions", fn: function() {
|
|
841
|
+
} } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.selectedDate, "first-day-of-week": a.resolvedFirstDayOfWeek, granularities: t.granularities, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: t.min, max: t.max, "number-of-months": a.computedNumberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, "time-interval": a.resolvedTimeInterval, "date-form-data": a.displayedTextInputValue, variant: t.variant, "year-range": t.yearRange }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([{ key: "actions", fn: function() {
|
|
801
842
|
return [e(a.BentoDivider), e("div", { staticClass: "b-date-range-picker__footer" }, [e(a.BentoButtonActions, { attrs: { actions: a.rangePickerButtonActions, layout: a.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
|
|
802
843
|
}, proxy: !0 }], null, !1, 600066749) })], 1) : t._e()], 1);
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
844
|
+
}, Yt = [], bt = /* @__PURE__ */ Be(
|
|
845
|
+
Tt,
|
|
846
|
+
Rt,
|
|
847
|
+
Yt,
|
|
807
848
|
!1,
|
|
808
849
|
null,
|
|
809
|
-
"
|
|
850
|
+
"854a9d65"
|
|
810
851
|
);
|
|
811
|
-
const
|
|
852
|
+
const an = bt.exports;
|
|
812
853
|
export {
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
854
|
+
an as B,
|
|
855
|
+
gt as D,
|
|
856
|
+
tt as a,
|
|
857
|
+
me as i
|
|
817
858
|
};
|
|
818
|
-
//# sourceMappingURL=date-range-picker.
|
|
859
|
+
//# sourceMappingURL=date-range-picker.B2B4hO6R.js.map
|