@adyen/bento-vue2 2.0.0-rc.5 → 2.0.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 +0 -38
- package/dist/@types/index.d.ts +148 -56
- 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/ai-tag.css +1 -1
- package/dist/assets/anchor-scroller.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/drawer.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/header.css +1 -1
- package/dist/assets/info-icon-with-popover.css +1 -0
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.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/popper-container.css +1 -1
- package/dist/assets/progress-bar.css +1 -1
- package/dist/assets/promo-banner.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/table-of-contents.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/title-details.css +1 -0
- package/dist/assets/toggle.css +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.V3zpgTzM.js → accordion-item.DOj7vqeL.js} +2 -2
- package/dist/chunks/accordion-item.DOj7vqeL.js.map +1 -0
- package/dist/chunks/{action-bar.Br6mamx3.js → action-bar.BsXW7BI2.js} +77 -67
- package/dist/chunks/action-bar.BsXW7BI2.js.map +1 -0
- package/dist/chunks/{ai-button.CeT3y12R.js → ai-button.BnFk5CzK.js} +2 -2
- package/dist/chunks/{ai-button.CeT3y12R.js.map → ai-button.BnFk5CzK.js.map} +1 -1
- package/dist/chunks/{ai-tag.DtngkeLj.js → ai-tag.D2Q0xhFK.js} +3 -3
- package/dist/chunks/ai-tag.D2Q0xhFK.js.map +1 -0
- package/dist/chunks/{alert.DrGpzkQI.js → alert.DJDHwVeR.js} +2 -2
- package/dist/chunks/{alert.DrGpzkQI.js.map → alert.DJDHwVeR.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.DT7QZd5b.js → anchor-scroller.BbvghQxZ.js} +8 -8
- package/dist/chunks/anchor-scroller.BbvghQxZ.js.map +1 -0
- package/dist/chunks/{base-button.edpjvY15.js → base-button.DOhHyU7x.js} +2 -2
- package/dist/chunks/{base-button.edpjvY15.js.map → base-button.DOhHyU7x.js.map} +1 -1
- package/dist/chunks/{base-modal.DsqIEM0p.js → base-modal.CcmoTJdc.js} +90 -82
- package/dist/chunks/base-modal.CcmoTJdc.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.BBuKZYuH.js → button-actions-with-menu.BY394ars.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BBuKZYuH.js.map → button-actions-with-menu.BY394ars.js.map} +1 -1
- package/dist/chunks/{button-actions.CFOxzahr.js → button-actions.bkcLUE1G.js} +51 -50
- package/dist/chunks/button-actions.bkcLUE1G.js.map +1 -0
- package/dist/chunks/{button.CBqJGWy5.js → button.DII5Ifwa.js} +2 -2
- package/dist/chunks/{button.CBqJGWy5.js.map → button.DII5Ifwa.js.map} +1 -1
- package/dist/chunks/{calendar.Bi7oa397.js → calendar.CXdLEeN4.js} +8 -8
- package/dist/chunks/calendar.CXdLEeN4.js.map +1 -0
- package/dist/chunks/card.b9PEJ7hm.js +139 -0
- package/dist/chunks/card.b9PEJ7hm.js.map +1 -0
- package/dist/chunks/{checkbox-group.FlQJn1Zm.js → checkbox-group.UYN1ljai.js} +7 -7
- package/dist/chunks/checkbox-group.UYN1ljai.js.map +1 -0
- package/dist/chunks/{checkbox.D7kTrRAJ.js → checkbox.Co4HoHKF.js} +15 -15
- package/dist/chunks/checkbox.Co4HoHKF.js.map +1 -0
- package/dist/chunks/{chip.CCBRXSGa.js → chip.DRsJylWl.js} +2 -2
- package/dist/chunks/{chip.CCBRXSGa.js.map → chip.DRsJylWl.js.map} +1 -1
- package/dist/chunks/{code-snippet.DOtmgwGx.js → code-snippet.CnThWqVb.js} +73 -74
- package/dist/chunks/code-snippet.CnThWqVb.js.map +1 -0
- package/dist/chunks/constructNow.Dl44Mvpp.js +8 -0
- package/dist/chunks/{constructNow.DyOJDyZZ.js.map → constructNow.Dl44Mvpp.js.map} +1 -1
- package/dist/chunks/{controls-group.C1YlswQH.js → controls-group.fdGc6epa.js} +2 -2
- package/dist/chunks/{controls-group.C1YlswQH.js.map → controls-group.fdGc6epa.js.map} +1 -1
- package/dist/chunks/{copy.DIRgGox4.js → copy.CSk1rCRo.js} +4 -4
- package/dist/chunks/{copy.DIRgGox4.js.map → copy.CSk1rCRo.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill-small.Doaiq7Wx.js → cross-circle-fill-small.CZN966bc.js} +2 -2
- package/dist/chunks/cross-circle-fill-small.CZN966bc.js.map +1 -0
- package/dist/chunks/{dashboard-section.DvYJk8aj.js → dashboard-section.CYEoNH9Q.js} +3 -3
- package/dist/chunks/{dashboard-section.DvYJk8aj.js.map → dashboard-section.CYEoNH9Q.js.map} +1 -1
- package/dist/chunks/{dashed-underline.D3YXHh-k.js → dashed-underline.CzKc-fJW.js} +3 -3
- package/dist/chunks/{dashed-underline.D3YXHh-k.js.map → dashed-underline.CzKc-fJW.js.map} +1 -1
- package/dist/chunks/{data-grid-template.ZZNd2LWk.js → data-grid-template.DCwzh2G7.js} +4 -4
- package/dist/chunks/{data-grid-template.ZZNd2LWk.js.map → data-grid-template.DCwzh2G7.js.map} +1 -1
- package/dist/chunks/{data-grid.4_JJV1_Z.js → data-grid.B1lI07ze.js} +24 -24
- package/dist/chunks/data-grid.B1lI07ze.js.map +1 -0
- package/dist/chunks/{date-picker.EuvvrhtF.js → date-picker.gDsw8bn1.js} +8 -8
- package/dist/chunks/date-picker.gDsw8bn1.js.map +1 -0
- package/dist/chunks/{date-range-picker.Bi5j0eED.js → date-range-picker.CqixIJxG.js} +278 -275
- package/dist/chunks/{date-range-picker.Bi5j0eED.js.map → date-range-picker.CqixIJxG.js.map} +1 -1
- package/dist/chunks/{date-time-picker.DinENKL0.js → date-time-picker.Bktntun4.js} +6 -6
- package/dist/chunks/{date-time-picker.DinENKL0.js.map → date-time-picker.Bktntun4.js.map} +1 -1
- package/dist/chunks/{de.ctR_lBqr.js → de.D953eFBg.js} +2 -2
- package/dist/chunks/{de.ctR_lBqr.js.map → de.D953eFBg.js.map} +1 -1
- package/dist/chunks/{dialog-page.DM6imlbn.js → dialog-page.Bct3zOQO.js} +44 -44
- package/dist/chunks/dialog-page.Bct3zOQO.js.map +1 -0
- package/dist/chunks/{differenceInMonths.yz4Dfe-b.js → differenceInMonths.CPDkGea3.js} +2 -2
- package/dist/chunks/{differenceInMonths.yz4Dfe-b.js.map → differenceInMonths.CPDkGea3.js.map} +1 -1
- package/dist/chunks/{draggable-handle.UmaDf-G4.js → draggable-handle.DgVdGC1V.js} +2 -2
- package/dist/chunks/{draggable-handle.UmaDf-G4.js.map → draggable-handle.DgVdGC1V.js.map} +1 -1
- package/dist/chunks/{draggable.3Uuc40QN.js → draggable.DYKdXdbj.js} +2 -2
- package/dist/chunks/{draggable.3Uuc40QN.js.map → draggable.DYKdXdbj.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.3mltTUPq.js → dropdown-tag.Dk7SooVv.js} +3 -3
- package/dist/chunks/{dropdown-tag.3mltTUPq.js.map → dropdown-tag.Dk7SooVv.js.map} +1 -1
- package/dist/chunks/{dropdown.BdfmQmO_.js → dropdown.Bnq4kP7k.js} +12 -12
- package/dist/chunks/dropdown.Bnq4kP7k.js.map +1 -0
- package/dist/chunks/{empty-state.DWnWb0jM.js → empty-state.C2wjdE3y.js} +3 -3
- package/dist/chunks/{empty-state.DWnWb0jM.js.map → empty-state.C2wjdE3y.js.map} +1 -1
- package/dist/chunks/{en-GB.BsQNm5GT.js → en-GB.DRXS-7tU.js} +2 -2
- package/dist/chunks/{en-GB.BsQNm5GT.js.map → en-GB.DRXS-7tU.js.map} +1 -1
- package/dist/chunks/{en-US.BR6y7foR.js → en-US.C412g-7U.js} +3 -3
- package/dist/chunks/{en-US.BR6y7foR.js.map → en-US.C412g-7U.js.map} +1 -1
- package/dist/chunks/{es.DxqH-QhP.js → es.DieAs0jD.js} +2 -2
- package/dist/chunks/{es.DxqH-QhP.js.map → es.DieAs0jD.js.map} +1 -1
- package/dist/chunks/es6.yPcTMnSH.js.map +1 -1
- package/dist/chunks/{field-label.DsNcfZ6m.js → field-label.C7BCsofY.js} +2 -2
- package/dist/chunks/{field-label.DsNcfZ6m.js.map → field-label.C7BCsofY.js.map} +1 -1
- package/dist/chunks/{file-uploader.D1xDlbsu.js → file-uploader.DllKBmP8.js} +8 -8
- package/dist/chunks/file-uploader.DllKBmP8.js.map +1 -0
- package/dist/chunks/{filter-bar.DlSyWQQ0.js → filter-bar.DXpLhnxG.js} +1050 -974
- package/dist/chunks/filter-bar.DXpLhnxG.js.map +1 -0
- package/dist/chunks/{fixed-scroller.QHqymN36.js → fixed-scroller.YC4bZifw.js} +2 -2
- package/dist/chunks/{fixed-scroller.QHqymN36.js.map → fixed-scroller.YC4bZifw.js.map} +1 -1
- package/dist/chunks/{focus-trap.DK6-TX-N.js → focus-trap.fd6_d2EW.js} +3 -3
- package/dist/chunks/{focus-trap.DK6-TX-N.js.map → focus-trap.fd6_d2EW.js.map} +1 -1
- package/dist/chunks/{footer-actions.cJxmP0fK.js → footer-actions.C9STwwcv.js} +3 -3
- package/dist/chunks/{footer-actions.cJxmP0fK.js.map → footer-actions.C9STwwcv.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CCsmZ9E8.js → form-layout-title.C0lwzPZz.js} +2 -2
- package/dist/chunks/{form-layout-title.CCsmZ9E8.js.map → form-layout-title.C0lwzPZz.js.map} +1 -1
- package/dist/chunks/{fr.DJtn8ron.js → fr.ChY2aIns.js} +2 -2
- package/dist/chunks/{fr.DJtn8ron.js.map → fr.ChY2aIns.js.map} +1 -1
- package/dist/chunks/generate-uid.DBWe4g6T.js.map +1 -1
- package/dist/chunks/{header-with-views.D8XDYW5N.js → header-with-views.HwbE278X.js} +671 -666
- package/dist/chunks/{header-with-views.D8XDYW5N.js.map → header-with-views.HwbE278X.js.map} +1 -1
- package/dist/chunks/{header.BLhATjz3.js → header.CmyqVXuG.js} +14 -13
- package/dist/chunks/header.CmyqVXuG.js.map +1 -0
- package/dist/chunks/info-icon-with-popover.BvYyGm4D.js +65 -0
- package/dist/chunks/info-icon-with-popover.BvYyGm4D.js.map +1 -0
- package/dist/chunks/{info-icon.-3-LB8Zq.js → info-icon.B-FAeceD.js} +3 -3
- package/dist/chunks/{info-icon.-3-LB8Zq.js.map → info-icon.B-FAeceD.js.map} +1 -1
- package/dist/chunks/{input-field-password.KgSx3KDe.js → input-field-password.9bWhLud0.js} +6 -6
- package/dist/chunks/input-field-password.9bWhLud0.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.DE9XpiFH.js → input-field-phone-number.CCn1N9St.js} +2 -2
- package/dist/chunks/{input-field-phone-number.DE9XpiFH.js.map → input-field-phone-number.CCn1N9St.js.map} +1 -1
- package/dist/chunks/{input-field.Dz8yVBEl.js → input-field.D912rZS_.js} +4 -4
- package/dist/chunks/input-field.D912rZS_.js.map +1 -0
- package/dist/chunks/{input-time.Bc50jTCQ.js → input-time.CXMuvF9N.js} +3 -3
- package/dist/chunks/{input-time.Bc50jTCQ.js.map → input-time.CXMuvF9N.js.map} +1 -1
- package/dist/chunks/{inspector-page.BwPtRsaZ.js → inspector-page.BRC_7uro.js} +3 -3
- package/dist/chunks/{inspector-page.BwPtRsaZ.js.map → inspector-page.BRC_7uro.js.map} +1 -1
- package/dist/chunks/inspector.IOtNex1r.js +142 -0
- package/dist/chunks/inspector.IOtNex1r.js.map +1 -0
- package/dist/chunks/isSameWeek.CcrBd5ov.js +14 -0
- package/dist/chunks/{isSameWeek.CieN9XgL.js.map → isSameWeek.CcrBd5ov.js.map} +1 -1
- package/dist/chunks/{it.keS7oN5l.js → it.9ITe-tO1.js} +3 -3
- package/dist/chunks/{it.keS7oN5l.js.map → it.9ITe-tO1.js.map} +1 -1
- package/dist/chunks/{ja.cLwacUE6.js → ja.D1PTbbq5.js} +2 -2
- package/dist/chunks/{ja.cLwacUE6.js.map → ja.D1PTbbq5.js.map} +1 -1
- package/dist/chunks/{link.BzIDMKgE.js → link.Cls8XShm.js} +4 -4
- package/dist/chunks/link.Cls8XShm.js.map +1 -0
- package/dist/chunks/{list-item.CKKEar92.js → list-item.HjabBEb8.js} +3 -3
- package/dist/chunks/{list-item.CKKEar92.js.map → list-item.HjabBEb8.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CQ7jWrle.js → listbox-option-tag.DhNxvqRO.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CQ7jWrle.js.map → listbox-option-tag.DhNxvqRO.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BMGoNT7r.js → modal-fullscreen.Bi1bQs4Z.js} +9 -9
- package/dist/chunks/modal-fullscreen.Bi1bQs4Z.js.map +1 -0
- package/dist/chunks/{modal.BNqEbVvC.js → modal.B3-pmL5s.js} +5 -5
- package/dist/chunks/{modal.BNqEbVvC.js.map → modal.B3-pmL5s.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.uRQvdRyU.js → navigation-menu-group.B-AV49Bn.js} +7 -7
- package/dist/chunks/navigation-menu-group.B-AV49Bn.js.map +1 -0
- package/dist/chunks/{pagination.QuT_65w4.js → pagination.cI_pc6oE.js} +5 -5
- package/dist/chunks/pagination.cI_pc6oE.js.map +1 -0
- package/dist/chunks/popover.types.DvIwSAAp.js +6 -0
- package/dist/chunks/{popover.types.hyPD5Kv1.js.map → popover.types.DvIwSAAp.js.map} +1 -1
- package/dist/chunks/{popper-container.scV0X0nk.js → popper-container.Cj3AWXSd.js} +355 -338
- package/dist/chunks/{popper-container.scV0X0nk.js.map → popper-container.Cj3AWXSd.js.map} +1 -1
- package/dist/chunks/{progress-bar.C2EFmk8E.js → progress-bar.RlF3a0Gb.js} +3 -3
- package/dist/chunks/progress-bar.RlF3a0Gb.js.map +1 -0
- package/dist/chunks/{promo-banner.BzTq9SMT.js → promo-banner.B5szTysj.js} +7 -7
- package/dist/chunks/{promo-banner.BzTq9SMT.js.map → promo-banner.B5szTysj.js.map} +1 -1
- package/dist/chunks/{pt-BR.ChPOra5s.js → pt-BR.DmEVD7V-.js} +2 -2
- package/dist/chunks/{pt-BR.ChPOra5s.js.map → pt-BR.DmEVD7V-.js.map} +1 -1
- package/dist/chunks/{radio-group.77fvFrmz.js → radio-group.CvsQDlHi.js} +5 -5
- package/dist/chunks/radio-group.CvsQDlHi.js.map +1 -0
- package/dist/chunks/{rich-text-editor.DL6h2H5r.js → rich-text-editor.DNmVJilP.js} +7 -7
- package/dist/chunks/{rich-text-editor.DL6h2H5r.js.map → rich-text-editor.DNmVJilP.js.map} +1 -1
- package/dist/chunks/{search-bar.CiEKUPNX.js → search-bar.--4KVNkf.js} +3 -3
- package/dist/chunks/{search-bar.CiEKUPNX.js.map → search-bar.--4KVNkf.js.map} +1 -1
- package/dist/chunks/{secondary-nav.ekia7NO0.js → secondary-nav.CXtDQAay.js} +50 -50
- package/dist/chunks/secondary-nav.CXtDQAay.js.map +1 -0
- package/dist/chunks/{segmented-control.qykQS10o.js → segmented-control.nYpRQTGc.js} +3 -3
- package/dist/chunks/segmented-control.nYpRQTGc.js.map +1 -0
- package/dist/chunks/{selection-card-group.BEjddn7D.js → selection-card-group.DjFWMqVZ.js} +22 -22
- package/dist/chunks/selection-card-group.DjFWMqVZ.js.map +1 -0
- package/dist/chunks/{set-time-in-date.BVfkl8K8.js → set-time-in-date.B3K4C7CB.js} +2 -2
- package/dist/chunks/{set-time-in-date.BVfkl8K8.js.map → set-time-in-date.B3K4C7CB.js.map} +1 -1
- package/dist/chunks/{sidepanel.DeX_rFk7.js → sidepanel.CntIcmx-.js} +7 -7
- package/dist/chunks/sidepanel.CntIcmx-.js.map +1 -0
- package/dist/chunks/{startOfWeek.muMEhS7U.js → startOfWeek.CzdYFzXX.js} +2 -2
- package/dist/chunks/{startOfWeek.muMEhS7U.js.map → startOfWeek.CzdYFzXX.js.map} +1 -1
- package/dist/chunks/{step.DWC-MMij.js → step.BCa9IOWB.js} +2 -2
- package/dist/chunks/{step.DWC-MMij.js.map → step.BCa9IOWB.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Bfn0A2G8.js → structured-list-item.Bhe0CH1M.js} +5 -5
- package/dist/chunks/{structured-list-item.Bfn0A2G8.js.map → structured-list-item.Bhe0CH1M.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.B4WEQPEz.js → summary-grid.types.C70ED6WD.js} +5 -5
- package/dist/chunks/{summary-grid.types.B4WEQPEz.js.map → summary-grid.types.C70ED6WD.js.map} +1 -1
- package/dist/chunks/{tab.DCLrEYwn.js → tab.BK1sIJAJ.js} +45 -45
- package/dist/chunks/tab.BK1sIJAJ.js.map +1 -0
- package/dist/chunks/{table-of-contents.f_6G1qFS.js → table-of-contents.BTy95Rrs.js} +2 -2
- package/dist/chunks/table-of-contents.BTy95Rrs.js.map +1 -0
- package/dist/chunks/tag.Dz1FQSZb.js +56 -0
- package/dist/chunks/tag.Dz1FQSZb.js.map +1 -0
- package/dist/chunks/{textarea.OTgZOHYu.js → textarea.CcV9U3I7.js} +5 -5
- package/dist/chunks/textarea.CcV9U3I7.js.map +1 -0
- package/dist/chunks/{timeline-item.Be0xWRey.js → timeline-item.BG2by0xf.js} +10 -10
- package/dist/chunks/{timeline-item.Be0xWRey.js.map → timeline-item.BG2by0xf.js.map} +1 -1
- package/dist/chunks/title-details.ChwPP7C5.js +119 -0
- package/dist/chunks/title-details.ChwPP7C5.js.map +1 -0
- package/dist/chunks/{toast.DL_9zlHB.js → toast.CO6ByH3n.js} +2 -2
- package/dist/chunks/{toast.DL_9zlHB.js.map → toast.CO6ByH3n.js.map} +1 -1
- package/dist/chunks/{toggle.BkTeqKsx.js → toggle.Dgh7aw1D.js} +2 -2
- package/dist/chunks/toggle.Dgh7aw1D.js.map +1 -0
- package/dist/chunks/{tooltip.BwD3JuFl.js → tooltip.DFYc5NKM.js} +11 -11
- package/dist/chunks/tooltip.DFYc5NKM.js.map +1 -0
- package/dist/chunks/{tutorial.BrKSt9Sb.js → tutorial.K0aOQWIg.js} +4 -4
- package/dist/chunks/{tutorial.BrKSt9Sb.js.map → tutorial.K0aOQWIg.js.map} +1 -1
- package/dist/chunks/use-bento-toast-controller.A5xraVqa.js.map +1 -1
- package/dist/chunks/{use-date-input-formatter.Du8KZnNZ.js → use-date-input-formatter.MgbFwUqJ.js} +4 -4
- package/dist/chunks/{use-date-input-formatter.Du8KZnNZ.js.map → use-date-input-formatter.MgbFwUqJ.js.map} +1 -1
- package/dist/chunks/use-dynamic-date-fns-locale.Bpb2DeYR.js +39 -0
- package/dist/chunks/use-dynamic-date-fns-locale.Bpb2DeYR.js.map +1 -0
- package/dist/chunks/{zh-CN.ZG6obniO.js → zh-CN.C-da5IoS.js} +3 -3
- package/dist/chunks/{zh-CN.ZG6obniO.js.map → zh-CN.C-da5IoS.js.map} +1 -1
- package/dist/code-snippet.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/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/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +67 -67
- 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 +25 -24
- package/dist/internal.js.map +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 +3 -3
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.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/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +3 -3
- package/dist/styles/bento-light.css +4 -4
- package/dist/styles/bento.css +4 -4
- package/dist/styles/legacy.css +4 -4
- package/dist/styles/styleguide.css +4 -4
- package/dist/styles/utility.css +4 -4
- 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/web-types.json +381 -48
- package/package.json +6 -6
- package/dist/assets/header-meta.css +0 -1
- package/dist/chunks/accordion-item.V3zpgTzM.js.map +0 -1
- package/dist/chunks/action-bar.Br6mamx3.js.map +0 -1
- package/dist/chunks/ai-tag.DtngkeLj.js.map +0 -1
- package/dist/chunks/anchor-scroller.DT7QZd5b.js.map +0 -1
- package/dist/chunks/base-modal.DsqIEM0p.js.map +0 -1
- package/dist/chunks/button-actions.CFOxzahr.js.map +0 -1
- package/dist/chunks/calendar.Bi7oa397.js.map +0 -1
- package/dist/chunks/card.B2rIoYTV.js +0 -124
- package/dist/chunks/card.B2rIoYTV.js.map +0 -1
- package/dist/chunks/checkbox-group.FlQJn1Zm.js.map +0 -1
- package/dist/chunks/checkbox.D7kTrRAJ.js.map +0 -1
- package/dist/chunks/code-snippet.DOtmgwGx.js.map +0 -1
- package/dist/chunks/constructNow.DyOJDyZZ.js +0 -8
- package/dist/chunks/cross-circle-fill-small.Doaiq7Wx.js.map +0 -1
- package/dist/chunks/data-grid.4_JJV1_Z.js.map +0 -1
- package/dist/chunks/date-picker.EuvvrhtF.js.map +0 -1
- package/dist/chunks/dialog-page.DM6imlbn.js.map +0 -1
- package/dist/chunks/dropdown.BdfmQmO_.js.map +0 -1
- package/dist/chunks/file-uploader.D1xDlbsu.js.map +0 -1
- package/dist/chunks/filter-bar.DlSyWQQ0.js.map +0 -1
- package/dist/chunks/header-meta.C5Ojlg8H.js +0 -206
- package/dist/chunks/header-meta.C5Ojlg8H.js.map +0 -1
- package/dist/chunks/header.BLhATjz3.js.map +0 -1
- package/dist/chunks/input-field-password.KgSx3KDe.js.map +0 -1
- package/dist/chunks/input-field.Dz8yVBEl.js.map +0 -1
- package/dist/chunks/inspector.CUJSQfsX.js +0 -128
- package/dist/chunks/inspector.CUJSQfsX.js.map +0 -1
- package/dist/chunks/isSameWeek.CieN9XgL.js +0 -14
- package/dist/chunks/link.BzIDMKgE.js.map +0 -1
- package/dist/chunks/modal-fullscreen.BMGoNT7r.js.map +0 -1
- package/dist/chunks/navigation-menu-group.uRQvdRyU.js.map +0 -1
- package/dist/chunks/pagination.QuT_65w4.js.map +0 -1
- package/dist/chunks/popover.types.hyPD5Kv1.js +0 -6
- package/dist/chunks/progress-bar.C2EFmk8E.js.map +0 -1
- package/dist/chunks/radio-group.77fvFrmz.js.map +0 -1
- package/dist/chunks/secondary-nav.ekia7NO0.js.map +0 -1
- package/dist/chunks/segmented-control.qykQS10o.js.map +0 -1
- package/dist/chunks/selection-card-group.BEjddn7D.js.map +0 -1
- package/dist/chunks/sidepanel.DeX_rFk7.js.map +0 -1
- package/dist/chunks/tab.DCLrEYwn.js.map +0 -1
- package/dist/chunks/table-of-contents.f_6G1qFS.js.map +0 -1
- package/dist/chunks/tag.Bm-widp9.js +0 -50
- package/dist/chunks/tag.Bm-widp9.js.map +0 -1
- package/dist/chunks/textarea.OTgZOHYu.js.map +0 -1
- package/dist/chunks/toggle.BkTeqKsx.js.map +0 -1
- package/dist/chunks/tooltip.BwD3JuFl.js.map +0 -1
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { defineComponent as be, computed as c, reactive as
|
|
2
|
-
import { d as ca } from "./index.CL3TXc0a.js";
|
|
3
|
-
import { B as
|
|
4
|
-
import { h as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import { B as
|
|
8
|
-
import { B as
|
|
1
|
+
import { defineComponent as be, computed as c, reactive as ve, useSlots as ua, ref as I, onMounted as je, toRaw as Ye, watch as pe, useAttrs as da, toRef as Re } from "vue";
|
|
2
|
+
import { d as ca, h as ma } from "./index.CL3TXc0a.js";
|
|
3
|
+
import { B as Da } from "./divider.KxXy6nzJ.js";
|
|
4
|
+
import { h as pa, B as va } from "./button-actions.bkcLUE1G.js";
|
|
5
|
+
import { B as Je } from "./typography.D1OZJbEa.js";
|
|
6
|
+
import { B as fa } from "./alert.DJDHwVeR.js";
|
|
7
|
+
import { B as ga, g as qe, D as Ma } from "./dropdown.Bnq4kP7k.js";
|
|
8
|
+
import { B as ya } from "./segmented-control.nYpRQTGc.js";
|
|
9
9
|
import { u as Ae } from "./index.CPOlyau9.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as ke, a as
|
|
10
|
+
import { u as ha } from "./use-has-slot.C9lQZ6nz.js";
|
|
11
|
+
import { u as ke, a as Ra } from "./use-date-input-formatter.MgbFwUqJ.js";
|
|
12
12
|
import { u as Ta } from "./use-touch-device.DTqFAbXh.js";
|
|
13
|
-
import { j as re, k as
|
|
14
|
-
import { e as
|
|
15
|
-
import { s as
|
|
16
|
-
import { t as
|
|
17
|
-
import { c as
|
|
18
|
-
import { s as
|
|
19
|
-
import { B as
|
|
20
|
-
import { B as
|
|
21
|
-
import { B as
|
|
13
|
+
import { j as re, k as P, s as b, l as Ya, m as Ce, n as ba, f as Be, o as Aa, q as ka, r as _a, t as Ne, u as Ia, b as C, v as Sa, h as Ea, i as Fa, e as S, w as ze, x as Ve, g as xa } from "./calendar.CXdLEeN4.js";
|
|
14
|
+
import { e as B, a as Le } from "./differenceInMonths.CPDkGea3.js";
|
|
15
|
+
import { s as We } from "./startOfWeek.CzdYFzXX.js";
|
|
16
|
+
import { t as fe, n as Pa, c as wa } from "./en-US.C412g-7U.js";
|
|
17
|
+
import { c as Oa } from "./constructNow.Dl44Mvpp.js";
|
|
18
|
+
import { s as De, a as Qe } from "./set-time-in-date.B3K4C7CB.js";
|
|
19
|
+
import { B as qa, i as Ge } from "./input-time.CXMuvF9N.js";
|
|
20
|
+
import { B as Ca } from "./input-field.D912rZS_.js";
|
|
21
|
+
import { B as Ba } from "./form-layout-group.D4T0Z5xk.js";
|
|
22
22
|
import { n as _e } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
23
23
|
import { g as te } from "./generate-uid.DBWe4g6T.js";
|
|
24
|
-
import { u as
|
|
24
|
+
import { u as Na } 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
|
|
26
|
+
import { u as za } from "./form-field.B60VsF8d.js";
|
|
27
|
+
import { B as Va } from "./directive.D1-d-C2K.js";
|
|
28
|
+
import { F as La } from "./field-label.C7BCsofY.js";
|
|
29
|
+
import { E as Wa } from "./error-message.DKnoUezI.js";
|
|
30
30
|
import { B as Qa } from "./button-actions.types.BptAXjD8.js";
|
|
31
31
|
import "../assets/date-range-picker.css";
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function Ue(o, t) {
|
|
33
|
+
return fe(o, t?.in).getFullYear();
|
|
34
34
|
}
|
|
35
35
|
function ne(o, t) {
|
|
36
|
-
return +
|
|
36
|
+
return +fe(o) == +fe(t);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const [a, i] =
|
|
38
|
+
function Ga(o, t, e) {
|
|
39
|
+
const [a, i] = Pa(
|
|
40
40
|
e?.in,
|
|
41
41
|
o,
|
|
42
42
|
t
|
|
43
43
|
);
|
|
44
44
|
return +re(a) == +re(i);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const e =
|
|
46
|
+
function $e(o, t) {
|
|
47
|
+
const e = fe(o, t?.in);
|
|
48
48
|
return e.setMilliseconds(0), e;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function Te(o, t) {
|
|
51
|
+
return +$e(o) == +$e(t);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
function Ua(o, t) {
|
|
54
|
+
return P(
|
|
55
|
+
wa(o, o),
|
|
56
|
+
Oa(o)
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const $a = {
|
|
60
60
|
name: "date-time-input"
|
|
61
|
-
},
|
|
62
|
-
|
|
61
|
+
}, ja = /* @__PURE__ */ be({
|
|
62
|
+
...$a,
|
|
63
63
|
props: {
|
|
64
64
|
dateModelValue: { default: "" },
|
|
65
65
|
dateProps: { default: () => ({}) },
|
|
@@ -77,10 +77,10 @@ const Ua = {
|
|
|
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: Ba, BentoInputField: Ca, BentoInputTime: qa };
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
var
|
|
83
|
+
var Ja = function() {
|
|
84
84
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
85
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: { "update:model-value": function(i) {
|
|
86
86
|
return t.$emit("update:date-model-value", i);
|
|
@@ -93,67 +93,67 @@ var ja = function() {
|
|
|
93
93
|
}, "input:valid": function(i) {
|
|
94
94
|
return t.$emit("time:valid");
|
|
95
95
|
} } }, "bento-input-time", a.resolvedTimeProps, !1)) : t._e()], 1);
|
|
96
|
-
},
|
|
97
|
-
$a,
|
|
96
|
+
}, Ha = [], Ka = /* @__PURE__ */ _e(
|
|
98
97
|
ja,
|
|
99
98
|
Ja,
|
|
99
|
+
Ha,
|
|
100
100
|
!1,
|
|
101
101
|
null,
|
|
102
102
|
null
|
|
103
103
|
);
|
|
104
|
-
const
|
|
104
|
+
const Xa = Ka.exports, Za = ({
|
|
105
105
|
firstDayOfWeek: o,
|
|
106
106
|
min: t,
|
|
107
107
|
max: e
|
|
108
108
|
}) => ({ getGranularCalendarLimits: (i) => {
|
|
109
109
|
if (!t && !e)
|
|
110
110
|
return { min: null, max: null };
|
|
111
|
-
let m = t ?
|
|
111
|
+
let m = t ? b(t) : null, p = e ? B(e) : null;
|
|
112
112
|
if (i?.type === "weekly") {
|
|
113
113
|
if (i.earliest)
|
|
114
|
-
m =
|
|
114
|
+
m = b(i.earliest);
|
|
115
115
|
else if (m) {
|
|
116
|
-
const
|
|
117
|
-
|
|
116
|
+
const y = We(m, { weekStartsOn: o });
|
|
117
|
+
P(m, y) || (m = b(Ya(Ce(m, { weekStartsOn: o }), 1)));
|
|
118
118
|
}
|
|
119
119
|
if (i.latest)
|
|
120
|
-
p =
|
|
120
|
+
p = B(i.latest);
|
|
121
121
|
else if (p) {
|
|
122
|
-
const
|
|
123
|
-
|
|
122
|
+
const y = Ce(p, { weekStartsOn: o });
|
|
123
|
+
P(p, y) || (p = B(ba(We(p, { weekStartsOn: o }), 1)));
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
if (i?.type === "monthly") {
|
|
127
127
|
if (i.earliest)
|
|
128
|
-
m =
|
|
128
|
+
m = b(i.earliest);
|
|
129
129
|
else if (m) {
|
|
130
|
-
const
|
|
131
|
-
|
|
130
|
+
const y = Be(m);
|
|
131
|
+
P(m, y) || (m = Be(Aa(m, 1)));
|
|
132
132
|
}
|
|
133
133
|
if (i.latest)
|
|
134
|
-
p =
|
|
134
|
+
p = B(i.latest);
|
|
135
135
|
else if (p) {
|
|
136
|
-
const
|
|
137
|
-
|
|
136
|
+
const y = Le(p);
|
|
137
|
+
P(p, y) || (p = Le(ka(p, 1)));
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
if (i?.type === "quarterly") {
|
|
141
141
|
if (i.earliest)
|
|
142
142
|
m = re(i.earliest);
|
|
143
143
|
else if (m) {
|
|
144
|
-
const
|
|
145
|
-
|
|
144
|
+
const y = re(m);
|
|
145
|
+
P(m, y) || (m = re(_a(m, 1)));
|
|
146
146
|
}
|
|
147
147
|
if (i.latest)
|
|
148
|
-
p =
|
|
148
|
+
p = B(i.latest);
|
|
149
149
|
else if (p) {
|
|
150
|
-
const
|
|
151
|
-
|
|
150
|
+
const y = Ne(p);
|
|
151
|
+
P(p, y) || (p = Ne(Ia(p, 1)));
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
return { min: m, max: p };
|
|
155
|
-
} }),
|
|
156
|
-
const o =
|
|
155
|
+
} }), et = () => {
|
|
156
|
+
const o = ve({
|
|
157
157
|
daily: null,
|
|
158
158
|
weekly: null,
|
|
159
159
|
monthly: null,
|
|
@@ -170,7 +170,7 @@ const Ka = Ha.exports, Xa = ({
|
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
172
|
var D = /* @__PURE__ */ ((o) => (o.CUSTOM_RANGE = "custom-range", o.INPUT = "input", o.ERROR = "error", o.FORM_DATE = "form-date", o.START_DATE_SELECTED = "start-date-selected", o))(D || {});
|
|
173
|
-
const
|
|
173
|
+
const at = {
|
|
174
174
|
"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
175
|
"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
176
|
"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 +182,11 @@ const et = {
|
|
|
182
182
|
"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
183
|
"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
184
|
"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
|
-
},
|
|
185
|
+
}, tt = {
|
|
186
186
|
name: "date-range-picker-calendar",
|
|
187
|
-
i18n: { messages:
|
|
188
|
-
},
|
|
189
|
-
...
|
|
187
|
+
i18n: { messages: at }
|
|
188
|
+
}, nt = /* @__PURE__ */ be({
|
|
189
|
+
...tt,
|
|
190
190
|
props: {
|
|
191
191
|
/**
|
|
192
192
|
* Allows user to enter time values in the form
|
|
@@ -202,7 +202,7 @@ const et = {
|
|
|
202
202
|
/**
|
|
203
203
|
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
204
204
|
*/
|
|
205
|
-
firstDayOfWeek:
|
|
205
|
+
firstDayOfWeek: C.props.firstDayOfWeek,
|
|
206
206
|
/**
|
|
207
207
|
* A list of available granularities.
|
|
208
208
|
* If present, the date picker will display a segmented control to change granularity.
|
|
@@ -214,25 +214,25 @@ const et = {
|
|
|
214
214
|
/**
|
|
215
215
|
* Indicate if a date should be disabled or not
|
|
216
216
|
*/
|
|
217
|
-
isDateDisabled:
|
|
217
|
+
isDateDisabled: C.props.isDateDisabled,
|
|
218
218
|
/**
|
|
219
219
|
* Set a maximum number of dates to be selectable by the range.
|
|
220
220
|
*/
|
|
221
|
-
maxRange:
|
|
221
|
+
maxRange: C.props.maxRange,
|
|
222
222
|
/**
|
|
223
223
|
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
224
224
|
*/
|
|
225
|
-
min:
|
|
225
|
+
min: C.props.min,
|
|
226
226
|
/**
|
|
227
227
|
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
228
228
|
*/
|
|
229
|
-
max:
|
|
229
|
+
max: C.props.max,
|
|
230
230
|
/**
|
|
231
231
|
* Number of months rendered on pane
|
|
232
232
|
*/
|
|
233
233
|
numberOfMonths: {
|
|
234
|
-
type:
|
|
235
|
-
default:
|
|
234
|
+
type: C.props.numberOfMonths.type,
|
|
235
|
+
default: C.props.numberOfMonths.default,
|
|
236
236
|
validator: (o) => o >= 0
|
|
237
237
|
},
|
|
238
238
|
/**
|
|
@@ -257,11 +257,11 @@ const et = {
|
|
|
257
257
|
/**
|
|
258
258
|
* The type of calendar to display. Defaults to showing days.
|
|
259
259
|
*/
|
|
260
|
-
variant:
|
|
260
|
+
variant: C.props.variant,
|
|
261
261
|
/**
|
|
262
262
|
* Range of years to be selectable from the year dropdown
|
|
263
263
|
*/
|
|
264
|
-
yearRange:
|
|
264
|
+
yearRange: C.props.yearRange
|
|
265
265
|
},
|
|
266
266
|
emits: [
|
|
267
267
|
D.CUSTOM_RANGE,
|
|
@@ -276,180 +276,180 @@ const et = {
|
|
|
276
276
|
weekly: "maxRangeWeeks",
|
|
277
277
|
monthly: "maxRangeMonths",
|
|
278
278
|
quarterly: "maxRangeQuarters"
|
|
279
|
-
}, p = ua(),
|
|
279
|
+
}, p = ua(), y = ha(p), { t: E, tc: N } = Ae(), { isTouchDevice: f } = Ta(), {
|
|
280
280
|
dateFormat: se,
|
|
281
|
-
isFormatValid:
|
|
281
|
+
isFormatValid: H,
|
|
282
282
|
parseDate: v,
|
|
283
|
-
onKeyDown:
|
|
284
|
-
autoFormat:
|
|
285
|
-
formatDate:
|
|
286
|
-
} = ke(),
|
|
283
|
+
onKeyDown: A,
|
|
284
|
+
autoFormat: k,
|
|
285
|
+
formatDate: z
|
|
286
|
+
} = ke(), R = I({}), K = c(() => e.variant === "month" ? "monthly" : "daily"), X = c(() => e.numberOfMonths === 0), r = ve({
|
|
287
287
|
startDate: e.value?.startDate,
|
|
288
288
|
endDate: e.value?.endDate,
|
|
289
289
|
range: e.value?.range,
|
|
290
290
|
...e.granularities ? {
|
|
291
|
-
granularity: e.value?.granularity ||
|
|
291
|
+
granularity: e.value?.granularity || K.value
|
|
292
292
|
} : {}
|
|
293
|
-
}),
|
|
293
|
+
}), F = c(() => (
|
|
294
294
|
// eslint-disable-next-line consistent-return
|
|
295
295
|
e?.quickSelectRanges?.find(({ value: n, data: l }) => {
|
|
296
296
|
if (!l.endDate) {
|
|
297
297
|
if (l.isRelativeToNow) {
|
|
298
|
-
const u =
|
|
298
|
+
const u = R.value?.[n];
|
|
299
299
|
return u ? ne(u.startDate, r.startDate) && ne(u.endDate, r.endDate) : (
|
|
300
300
|
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
301
301
|
// with the internal range's stored range identifier.
|
|
302
302
|
n === r.range
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
|
-
return ne(l.startDate, r.startDate) &&
|
|
305
|
+
return ne(l.startDate, r.startDate) && Ua(r.endDate) && (!e.allowTimeInput || Te(r.endDate, B(r.endDate))) && (e.granularities ? l.granularity === r.granularity : !0);
|
|
306
306
|
}
|
|
307
307
|
if (e.allowTimeInput)
|
|
308
|
-
return
|
|
308
|
+
return Te(l.startDate, r.startDate) && Te(l.endDate, r.endDate) && (e.granularities ? l.granularity === r.granularity : !0);
|
|
309
309
|
if (l.endDate)
|
|
310
|
-
return
|
|
310
|
+
return P(l.startDate, r.startDate) && P(l.endDate, r.endDate) && (e.granularities ? l.granularity === r.granularity : !0);
|
|
311
311
|
})?.value ?? i
|
|
312
|
-
)),
|
|
312
|
+
)), ge = c(() => [
|
|
313
313
|
{ label: E("customRange"), value: i },
|
|
314
314
|
...e.quickSelectRanges ? e.quickSelectRanges : []
|
|
315
|
-
]),
|
|
315
|
+
]), V = c(
|
|
316
316
|
() => e.granularities?.find(({ type: n }) => n === r.granularity) || null
|
|
317
|
-
),
|
|
317
|
+
), Me = c(
|
|
318
318
|
() => e.granularities?.map(({ type: n, disabled: l }) => ({
|
|
319
319
|
label: E(n),
|
|
320
320
|
value: n,
|
|
321
321
|
disabled: l
|
|
322
322
|
})) ?? []
|
|
323
|
-
), { getGranularCalendarLimits:
|
|
324
|
-
() => e.granularities ?
|
|
325
|
-
), { normalizeRange:
|
|
323
|
+
), { getGranularCalendarLimits: L } = Za(e), G = c(
|
|
324
|
+
() => e.granularities ? L(V.value) : { min: e.min ? b(e.min) : null, max: e.max ? B(e.max) : null }
|
|
325
|
+
), { normalizeRange: oe } = Sa(e.firstDayOfWeek), { savedRanges: W, saveRange: Z, resetSavedRanges: Q } = et(), Y = (n) => n ? z(n) : "", U = (n, l = !0) => {
|
|
326
326
|
if (!r.startDate || !r.endDate)
|
|
327
327
|
return;
|
|
328
|
-
const u =
|
|
328
|
+
const u = oe({
|
|
329
329
|
startDate: r.startDate,
|
|
330
330
|
endDate: r.endDate,
|
|
331
331
|
fixedEndpoint: n,
|
|
332
|
-
granularity:
|
|
332
|
+
granularity: V.value,
|
|
333
333
|
alignToGranularity: l,
|
|
334
334
|
fallbackMaxRange: e.maxRange,
|
|
335
|
-
min:
|
|
336
|
-
max:
|
|
335
|
+
min: G.value.min,
|
|
336
|
+
max: G.value.max
|
|
337
337
|
});
|
|
338
338
|
ne(u.startDate, r.startDate) && ne(u.endDate, r.endDate) || (r.startDate = u.startDate, r.endDate = u.endDate, s.startDate = Y(u.startDate), s.endDate = Y(u.endDate));
|
|
339
|
-
},
|
|
340
|
-
() =>
|
|
341
|
-
),
|
|
342
|
-
if (!n || !
|
|
339
|
+
}, h = I(null), g = I(null), le = c(() => h.value ? E(h.value) : null), ee = c(() => g.value ? E(g.value) : null), $ = c(
|
|
340
|
+
() => h.value === "invalidDateFormat" ? null : le.value
|
|
341
|
+
), w = c(() => g.value === "invalidDateFormat" ? null : ee.value), T = (n, l, u, M) => {
|
|
342
|
+
if (!n || !H(n))
|
|
343
343
|
return "invalidDateFormat";
|
|
344
|
-
const
|
|
345
|
-
if (e.min &&
|
|
344
|
+
const _ = v(n), q = b(_);
|
|
345
|
+
if (e.min && q < b(e.min) || e.max && q > b(e.max) || e.isDateDisabled && e.isDateDisabled(q))
|
|
346
346
|
return "selectedDateIsNotAvailable";
|
|
347
347
|
if (l) {
|
|
348
|
-
const
|
|
349
|
-
if (u === "start" ?
|
|
348
|
+
const we = M ? De(M, 0).getTime() : q.getTime(), Oe = M ? De(l, 0).getTime() : b(l).getTime();
|
|
349
|
+
if (u === "start" ? we >= Oe : we <= Oe)
|
|
350
350
|
return "startDateMustPrecedeEndDate";
|
|
351
351
|
}
|
|
352
352
|
return null;
|
|
353
|
-
}, s =
|
|
353
|
+
}, s = ve({
|
|
354
354
|
startDate: e.dateFormData.startDate,
|
|
355
355
|
endDate: e.dateFormData.endDate,
|
|
356
356
|
startTime: e.dateFormData.startTime,
|
|
357
357
|
endTime: e.dateFormData.endTime
|
|
358
358
|
}), ae = (n, l) => {
|
|
359
359
|
const u = () => {
|
|
360
|
-
if (l &&
|
|
361
|
-
const
|
|
362
|
-
if (e.min &&
|
|
360
|
+
if (l && d(l)) {
|
|
361
|
+
const M = Qe(v(l), n);
|
|
362
|
+
if (e.min && M < De(e.min, 0) || e.max && M > De(e.max, 0))
|
|
363
363
|
return !1;
|
|
364
364
|
}
|
|
365
365
|
return !0;
|
|
366
366
|
};
|
|
367
|
-
return
|
|
368
|
-
},
|
|
367
|
+
return Ge(n) && u();
|
|
368
|
+
}, x = c(() => e.variant === "month"), j = (n) => n ? x.value ? Ea(n) : Fa(n) : "", ie = c(() => j(r.startDate)), ye = c(() => j(r.endDate)), Ie = c(() => f.value ? x.value ? "month" : "date" : "text"), Se = c(() => f.value ? ie.value : s.startDate), Ee = c(() => f.value ? ye.value : s.endDate), O = (n, l) => !l || !Ge(l) || e.variant === "month" ? n : Qe(new Date(n), l), Fe = (n) => {
|
|
369
369
|
s.startTime = S(
|
|
370
|
-
e.min && e.allowTimeInput &&
|
|
370
|
+
e.min && e.allowTimeInput && P(e.min, n.startDate) ? e.min : b(n.startDate)
|
|
371
371
|
), s.endTime = S(
|
|
372
|
-
e.max && e.allowTimeInput &&
|
|
373
|
-
), r.startDate =
|
|
372
|
+
e.max && e.allowTimeInput && P(e.max, n.endDate) ? e.max : B(n.endDate)
|
|
373
|
+
), r.startDate = O(n.startDate, s.startTime), r.endDate = O(n.endDate, s.endTime), r.range = null, e.granularities && Q(), t(D.INPUT, {
|
|
374
374
|
...r,
|
|
375
|
-
range:
|
|
375
|
+
range: F.value
|
|
376
376
|
});
|
|
377
|
-
},
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
}, d = (n) => !!n && !T(n);
|
|
378
|
+
je(() => {
|
|
379
|
+
h.value = e.dateFormData.startDate ? T(e.dateFormData.startDate) : null, g.value = e.dateFormData.endDate ? T(e.dateFormData.endDate) : null;
|
|
380
380
|
});
|
|
381
|
-
const
|
|
382
|
-
s.startDate = Y(n), s.startTime || (s.startTime = S(n)),
|
|
383
|
-
}, Je = (n) => {
|
|
384
|
-
s.endDate = Y(n), s.endTime || (s.endTime = S(N(n))), f.value = null, M.value === "startDateMustPrecedeEndDate" && (M.value = null);
|
|
381
|
+
const J = (n) => {
|
|
382
|
+
s.startDate = Y(n), s.startTime || (s.startTime = S(n)), h.value = null, g.value === "startDateMustPrecedeEndDate" && (g.value = null), t(D.START_DATE_SELECTED, n);
|
|
385
383
|
}, ue = (n) => {
|
|
384
|
+
s.endDate = Y(n), s.endTime || (s.endTime = S(B(n))), g.value = null, h.value === "startDateMustPrecedeEndDate" && (h.value = null);
|
|
385
|
+
}, de = (n) => {
|
|
386
386
|
const l = e.value?.[n];
|
|
387
387
|
if (l)
|
|
388
388
|
return l;
|
|
389
|
-
if (e.dateFormData[n] &&
|
|
389
|
+
if (e.dateFormData[n] && d(e.dateFormData[n]))
|
|
390
390
|
return v(e.dateFormData[n]);
|
|
391
|
-
},
|
|
392
|
-
if (
|
|
391
|
+
}, ce = (n, l = !1) => {
|
|
392
|
+
if (d(n)) {
|
|
393
393
|
const u = n;
|
|
394
|
-
|
|
395
|
-
const
|
|
396
|
-
r.startDate =
|
|
397
|
-
|
|
394
|
+
h.value = null, s.startDate = u;
|
|
395
|
+
const M = b(v(u));
|
|
396
|
+
r.startDate = O(M, s.startTime), d(s.endDate) && (r.endDate = O(
|
|
397
|
+
b(v(s.endDate)),
|
|
398
398
|
s.endTime
|
|
399
399
|
));
|
|
400
|
-
const
|
|
400
|
+
const _ = de("endDate"), q = T(
|
|
401
401
|
u,
|
|
402
|
-
e.allowTimeInput ? r.endDate :
|
|
402
|
+
e.allowTimeInput ? r.endDate : _,
|
|
403
403
|
"start",
|
|
404
404
|
e.allowTimeInput ? r.startDate : void 0
|
|
405
405
|
);
|
|
406
|
-
if (
|
|
407
|
-
|
|
406
|
+
if (q) {
|
|
407
|
+
h.value = q, t(D.ERROR, { ...s });
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
|
-
|
|
410
|
+
g.value === "startDateMustPrecedeEndDate" && (g.value = null), U("end", l), r.range = null, t(D.FORM_DATE, {
|
|
411
411
|
startDate: r.startDate,
|
|
412
412
|
endDate: r.endDate
|
|
413
413
|
}), t(D.INPUT, {
|
|
414
414
|
...r,
|
|
415
|
-
range:
|
|
415
|
+
range: F.value
|
|
416
416
|
});
|
|
417
417
|
} else
|
|
418
|
-
|
|
419
|
-
},
|
|
420
|
-
s.startDate =
|
|
421
|
-
},
|
|
422
|
-
if (
|
|
418
|
+
h.value = T(n), t(D.ERROR, { ...s });
|
|
419
|
+
}, xe = qe(ce, a), He = (n) => {
|
|
420
|
+
s.startDate = f.value && x.value ? n : k(n), f.value ? x.value && n ? ce(Y(ze(n)), !0) : s.startDate ? ce(s.startDate) : h.value = null : xe(s.startDate);
|
|
421
|
+
}, me = (n, l = !1) => {
|
|
422
|
+
if (d(n)) {
|
|
423
423
|
const u = n;
|
|
424
|
-
|
|
425
|
-
const
|
|
426
|
-
r.endDate =
|
|
427
|
-
|
|
424
|
+
g.value = null, s.endDate = u;
|
|
425
|
+
const M = b(v(u));
|
|
426
|
+
r.endDate = O(M, s.endTime), d(s.startDate) && (r.startDate = O(
|
|
427
|
+
b(v(s.startDate)),
|
|
428
428
|
s.startTime
|
|
429
429
|
));
|
|
430
|
-
const
|
|
430
|
+
const _ = de("startDate"), q = T(
|
|
431
431
|
u,
|
|
432
|
-
e.allowTimeInput ? r.startDate :
|
|
432
|
+
e.allowTimeInput ? r.startDate : _,
|
|
433
433
|
"end",
|
|
434
434
|
e.allowTimeInput ? r.endDate : void 0
|
|
435
435
|
);
|
|
436
|
-
if (
|
|
437
|
-
|
|
436
|
+
if (q) {
|
|
437
|
+
g.value = q, t(D.ERROR, { ...s });
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
|
-
|
|
440
|
+
h.value === "startDateMustPrecedeEndDate" && (h.value = null), U("start", l), r.range = null, t(D.FORM_DATE, {
|
|
441
441
|
startDate: r.startDate,
|
|
442
442
|
endDate: r.endDate
|
|
443
443
|
}), t(D.INPUT, {
|
|
444
444
|
...r,
|
|
445
|
-
range:
|
|
445
|
+
range: F.value
|
|
446
446
|
});
|
|
447
447
|
} else
|
|
448
|
-
|
|
449
|
-
},
|
|
450
|
-
s.endDate =
|
|
448
|
+
g.value = T(n), t(D.ERROR, { ...s });
|
|
449
|
+
}, Pe = qe(me, a), Ke = (n) => {
|
|
450
|
+
s.endDate = f.value && x.value ? n : k(n), f.value ? x.value && n ? me(Y(ze(n)), !0) : s.endDate ? me(s.endDate) : g.value = null : Pe(s.endDate);
|
|
451
451
|
}, Xe = (n) => {
|
|
452
|
-
|
|
452
|
+
A(n);
|
|
453
453
|
}, Ze = () => {
|
|
454
454
|
t(D.ERROR, { ...s });
|
|
455
455
|
}, ea = () => {
|
|
@@ -458,20 +458,20 @@ const et = {
|
|
|
458
458
|
t(D.ERROR, { ...s });
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
461
|
-
if (r.startDate =
|
|
462
|
-
const u =
|
|
461
|
+
if (r.startDate = O(r.startDate, n), s.startDate && r.endDate) {
|
|
462
|
+
const u = T(
|
|
463
463
|
s.startDate,
|
|
464
464
|
r.endDate,
|
|
465
465
|
"start",
|
|
466
466
|
r.startDate
|
|
467
467
|
);
|
|
468
468
|
if (u) {
|
|
469
|
-
|
|
469
|
+
h.value = u, t(D.ERROR, { ...s });
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
|
|
474
|
-
const l =
|
|
473
|
+
h.value = null, g.value === "startDateMustPrecedeEndDate" && (g.value = null);
|
|
474
|
+
const l = de("endDate");
|
|
475
475
|
t(D.FORM_DATE, {
|
|
476
476
|
startDate: r.startDate,
|
|
477
477
|
endDate: l,
|
|
@@ -479,7 +479,7 @@ const et = {
|
|
|
479
479
|
endTime: s.endTime ?? e.dateFormData.endTime
|
|
480
480
|
}), t(D.INPUT, {
|
|
481
481
|
...r,
|
|
482
|
-
range:
|
|
482
|
+
range: F.value
|
|
483
483
|
});
|
|
484
484
|
}, aa = () => {
|
|
485
485
|
t(D.ERROR, { ...s });
|
|
@@ -489,70 +489,70 @@ const et = {
|
|
|
489
489
|
t(D.ERROR, { ...s });
|
|
490
490
|
return;
|
|
491
491
|
}
|
|
492
|
-
if (r.endDate =
|
|
493
|
-
const l =
|
|
492
|
+
if (r.endDate = O(r.endDate, n), s.endDate && r.startDate) {
|
|
493
|
+
const l = T(
|
|
494
494
|
s.endDate,
|
|
495
495
|
r.startDate,
|
|
496
496
|
"end",
|
|
497
497
|
r.endDate
|
|
498
498
|
);
|
|
499
499
|
if (l) {
|
|
500
|
-
|
|
500
|
+
g.value = l, t(D.ERROR, { ...s });
|
|
501
501
|
return;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
|
|
504
|
+
g.value = null, h.value === "startDateMustPrecedeEndDate" && (h.value = null), t(D.FORM_DATE, {
|
|
505
505
|
startDate: r.startDate,
|
|
506
506
|
endDate: r.endDate,
|
|
507
507
|
startTime: s.startTime ?? e.dateFormData.startTime,
|
|
508
508
|
endTime: n
|
|
509
509
|
}), t(D.INPUT, {
|
|
510
510
|
...r,
|
|
511
|
-
range:
|
|
511
|
+
range: F.value
|
|
512
512
|
});
|
|
513
513
|
}, na = (n) => {
|
|
514
514
|
s.startTime = n;
|
|
515
515
|
}, ra = (n) => {
|
|
516
516
|
s.endTime = n;
|
|
517
|
-
}, he = (n, l, u,
|
|
518
|
-
r.startDate = n, r.endDate = l, u && (r.granularity = u),
|
|
517
|
+
}, he = (n, l, u, M) => {
|
|
518
|
+
r.startDate = n, r.endDate = l, u && (r.granularity = u), M && (r.range = M);
|
|
519
519
|
}, sa = (n) => {
|
|
520
520
|
const l = e.quickSelectRanges?.find(({ value: u }) => u === n);
|
|
521
521
|
if (l) {
|
|
522
|
-
|
|
523
|
-
const u = l.data,
|
|
524
|
-
s.endDate = Y(
|
|
525
|
-
...
|
|
522
|
+
Q();
|
|
523
|
+
const u = l.data, M = u.endDate || (u.isRelativeToNow ? new Date(Date.now()) : B(new Date(Date.now()))), _ = u.isRelativeToNow && u.timeDifference ? new Date(M.getTime() - u.timeDifference) : u.startDate;
|
|
524
|
+
s.endDate = Y(M), s.startDate = Y(_), he(_, M, null, n), e.granularities && (r.granularity = u.granularity || K.value), s.startTime = S(_), s.endTime = S(M), r.startDate = _, r.endDate = M, u.isRelativeToNow && (R.value = {
|
|
525
|
+
...R.value,
|
|
526
526
|
[n]: {
|
|
527
|
-
startDate:
|
|
528
|
-
endDate:
|
|
527
|
+
startDate: _,
|
|
528
|
+
endDate: M
|
|
529
529
|
}
|
|
530
530
|
}), t(D.CUSTOM_RANGE, {
|
|
531
531
|
...l.data,
|
|
532
|
-
startDate:
|
|
533
|
-
endDate:
|
|
532
|
+
startDate: _,
|
|
533
|
+
endDate: M,
|
|
534
534
|
range: l.value
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
}, oa = (n) => {
|
|
538
538
|
const l = r.granularity;
|
|
539
|
-
r.granularity = n, l &&
|
|
539
|
+
r.granularity = n, l && Z(l, structuredClone(Ye(r))), r.startDate && r.endDate && (W[n] && he(W[n].startDate, W[n].endDate, n), U("end"), s.startDate = Y(r.startDate), s.endDate = Y(r.endDate), t(D.INPUT, {
|
|
540
540
|
...r,
|
|
541
|
-
range:
|
|
541
|
+
range: F.value
|
|
542
542
|
}));
|
|
543
543
|
}, la = c(() => ({
|
|
544
|
-
"b-date-range-picker-calendar__form-container--no-calendars":
|
|
544
|
+
"b-date-range-picker-calendar__form-container--no-calendars": X.value || f.value
|
|
545
545
|
})), ia = c(() => {
|
|
546
|
-
const n =
|
|
546
|
+
const n = V.value, l = n?.maxRange || e.maxRange;
|
|
547
547
|
if (!l)
|
|
548
548
|
return null;
|
|
549
549
|
const u = m[n?.type ?? "daily"];
|
|
550
|
-
return
|
|
550
|
+
return N(u, l, { count: l });
|
|
551
551
|
});
|
|
552
|
-
return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: p, hasSlot:
|
|
552
|
+
return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: p, hasSlot: y, t: E, tc: N, isTouchDevice: f, dateFormat: se, isFormatValid: H, parseDate: v, onKeyDown: A, autoFormat: k, formatDateUtil: z, calculatedIsRelativeToNowQuickSelectRanges: R, defaultGranularity: K, hasNoCalendars: X, internalRangeDate: r, selectedRangeSelectorValue: F, quickSelectRangeDefaultItems: ge, selectedGranularity: V, granularityItems: Me, getGranularCalendarLimits: L, computedMinMax: G, normalizeRange: oe, savedRanges: W, saveRange: Z, resetSavedRanges: Q, formatDate: Y, normalizeInternalRange: U, startDateError: h, endDateError: g, startDateErrorText: le, endDateErrorText: ee, startSharedError: $, endSharedError: w, getDateErrorMessage: T, dateTextInput: s, isValidTime: ae, isMonthVariant: x, formatNativeDate: j, nativeStartDate: ie, nativeEndDate: ye, dateInputType: Ie, startDateValue: Se, endDateValue: Ee, setTimeInDateRef: O, onDateInput: Fe, isValidDate: d, onStartDateSelected: J, onEndDateSelected: ue, getDate: de, validateStartDate: ce, validateStartDateDebounced: xe, onStartDateInput: He, validateEndDate: me, validateEndDateDebounced: Pe, onEndDateInput: Ke, onDateInputKeyDown: Xe, onStartTimeError: Ze, onStartTimeValid: ea, onEndTimeError: aa, onEndTimeValid: ta, onStartTimeInput: na, onEndTimeInput: ra, setInternalRange: he, onRangeSelectorInput: sa, onGranularityInput: oa, computedFormContainerClasses: la, maxRangeMessage: ia, Calendar: C, DateTimeInput: Xa, BentoAlert: fa, BentoTypography: Je, BentoDropdown: ga, BentoSegmentedControl: ya };
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
|
-
var
|
|
555
|
+
var rt = function() {
|
|
556
556
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
557
557
|
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
558
|
return [t._v(" " + t._s(a.maxRangeMessage) + " ")];
|
|
@@ -573,15 +573,15 @@ var nt = function() {
|
|
|
573
573
|
"aria-label": a.t("timeTo"),
|
|
574
574
|
errorMessage: a.endSharedError
|
|
575
575
|
} }, on: { "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, { 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()]);
|
|
576
|
-
},
|
|
577
|
-
tt,
|
|
576
|
+
}, st = [], ot = /* @__PURE__ */ _e(
|
|
578
577
|
nt,
|
|
579
578
|
rt,
|
|
579
|
+
st,
|
|
580
580
|
!1,
|
|
581
581
|
null,
|
|
582
|
-
"
|
|
582
|
+
"41d7722c"
|
|
583
583
|
);
|
|
584
|
-
const
|
|
584
|
+
const lt = ot.exports, it = {
|
|
585
585
|
"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
586
|
"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
587
|
"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,7 +593,7 @@ const ot = st.exports, lt = {
|
|
|
593
593
|
"ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", invalidDateFormat: "無効な日付形式", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
|
|
594
594
|
"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
595
|
"zh-CN": { apply: "应用", cancel: "取消", dateRangePicker: "日期范围选择器 {name}", invalidDateFormat: "日期格式无效", quarter: "{year} {quarter} 季度", selectDate: "选择日期", selectDateRange: "选择日期范围", selectedDateIsNotAvailable: "所选日期不可用" }
|
|
596
|
-
},
|
|
596
|
+
}, ut = ({
|
|
597
597
|
datePickerValue: o,
|
|
598
598
|
isDateIncorrect: t,
|
|
599
599
|
quickSelectRanges: e,
|
|
@@ -601,39 +601,39 @@ const ot = st.exports, lt = {
|
|
|
601
601
|
withTimeInput: i,
|
|
602
602
|
placeholder: m
|
|
603
603
|
}) => {
|
|
604
|
-
const { locale: p, t:
|
|
604
|
+
const { locale: p, t: y } = Ae(), { dateToInputDateString: E } = ke(), N = (v) => !!v && !isNaN(v.getTime()), f = ve({
|
|
605
605
|
startDate: null,
|
|
606
606
|
endDate: null,
|
|
607
607
|
startTime: null,
|
|
608
608
|
endTime: null
|
|
609
609
|
});
|
|
610
|
-
return
|
|
610
|
+
return pe(
|
|
611
611
|
o,
|
|
612
612
|
(v) => {
|
|
613
|
-
|
|
613
|
+
f.startDate = E(v?.startDate), f.endDate = E(v?.endDate), f.startTime = S(v?.startDate), f.endTime = S(v?.endDate);
|
|
614
614
|
},
|
|
615
615
|
{ immediate: !0 }
|
|
616
616
|
), {
|
|
617
617
|
// Values
|
|
618
618
|
dateDisplayValue: c(() => {
|
|
619
619
|
if (t.value)
|
|
620
|
-
return `${
|
|
620
|
+
return `${f.startDate || ""} - ${f.endDate || ""}`;
|
|
621
621
|
if (!o.value || !o.value.startDate && !o.value.endDate)
|
|
622
|
-
return m?.value ||
|
|
622
|
+
return m?.value || y("selectDateRange");
|
|
623
623
|
if (e.value?.length) {
|
|
624
|
-
const
|
|
625
|
-
if (
|
|
626
|
-
return
|
|
624
|
+
const A = e.value.find(({ value: k }) => k === o.value?.range);
|
|
625
|
+
if (A)
|
|
626
|
+
return A.label;
|
|
627
627
|
}
|
|
628
628
|
if (o.value.granularity === "quarterly") {
|
|
629
|
-
const { startDate:
|
|
630
|
-
if (
|
|
631
|
-
return
|
|
632
|
-
const
|
|
633
|
-
return `${
|
|
629
|
+
const { startDate: A, endDate: k } = o.value, z = y("quarter", { quarter: Ve(A), year: Ue(A) });
|
|
630
|
+
if (Ga(A, k))
|
|
631
|
+
return z;
|
|
632
|
+
const R = y("quarter", { quarter: Ve(k), year: Ue(k) });
|
|
633
|
+
return `${z} - ${R}`;
|
|
634
634
|
}
|
|
635
|
-
if (!
|
|
636
|
-
return `${
|
|
635
|
+
if (!N(o.value.startDate) || !N(o.value.endDate))
|
|
636
|
+
return `${f.startDate || ""} - ${f.endDate || ""}`;
|
|
637
637
|
let v = a?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
|
|
638
638
|
return i.value && (v = {
|
|
639
639
|
...v,
|
|
@@ -641,21 +641,21 @@ const ot = st.exports, lt = {
|
|
|
641
641
|
minute: "numeric",
|
|
642
642
|
second: "numeric",
|
|
643
643
|
hour12: !1
|
|
644
|
-
}),
|
|
644
|
+
}), xa(p.value, v).formatRange(
|
|
645
645
|
o.value.startDate,
|
|
646
646
|
o.value.endDate
|
|
647
647
|
);
|
|
648
648
|
}),
|
|
649
|
-
textInputDisplayValue:
|
|
649
|
+
textInputDisplayValue: f,
|
|
650
650
|
// Methods
|
|
651
651
|
formatTextInputDisplayValue: () => ""
|
|
652
652
|
};
|
|
653
|
-
},
|
|
654
|
-
i18n: { messages:
|
|
653
|
+
}, dt = {
|
|
654
|
+
i18n: { messages: it },
|
|
655
655
|
name: "bento-date-range-picker",
|
|
656
656
|
model: { prop: "modelValue", event: "update:model-value" }
|
|
657
|
-
},
|
|
658
|
-
...
|
|
657
|
+
}, ct = /* @__PURE__ */ be({
|
|
658
|
+
...dt,
|
|
659
659
|
props: {
|
|
660
660
|
description: { default: void 0 },
|
|
661
661
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -682,7 +682,7 @@ const ot = st.exports, lt = {
|
|
|
682
682
|
},
|
|
683
683
|
emits: ["update:model-value"],
|
|
684
684
|
setup(o, { emit: t }) {
|
|
685
|
-
const e = o, a = da(), { t: i } = Ae(), { dateToInputDateString: m } = ke(), p = te("bento-date-range-picker-container"),
|
|
685
|
+
const e = o, a = da(), { t: i } = Ae(), { dateToInputDateString: m } = ke(), p = te("bento-date-range-picker-container"), y = te("bento-date-range-picker-label"), E = te("bento-date-range-picker-description"), N = te("bento-date-range-picker-error"), f = te("bento-date-range-picker-date-error"), se = c(() => e.label || i("dateRangePicker", { name: p })), { resolvedFirstDayOfWeek: H } = Ra(Re(e, "firstDayOfWeek")), v = ca({
|
|
686
686
|
none: 0,
|
|
687
687
|
one: 710,
|
|
688
688
|
// width of date range picker with one panes
|
|
@@ -690,126 +690,129 @@ const ot = st.exports, lt = {
|
|
|
690
690
|
// width of date range picker with two panes
|
|
691
691
|
three: 1290
|
|
692
692
|
// width of date range picker with three panes
|
|
693
|
-
}),
|
|
694
|
-
const d = v.active().value,
|
|
693
|
+
}), A = c(() => {
|
|
694
|
+
const d = v.active().value, J = {
|
|
695
695
|
none: 0,
|
|
696
696
|
one: 1,
|
|
697
697
|
two: 2
|
|
698
698
|
};
|
|
699
|
-
if (d in
|
|
700
|
-
const
|
|
701
|
-
return e.numberOfMonths === void 0 ?
|
|
699
|
+
if (d in J) {
|
|
700
|
+
const ue = J[d];
|
|
701
|
+
return e.numberOfMonths === void 0 ? ue : Math.min(e.numberOfMonths, ue);
|
|
702
702
|
}
|
|
703
703
|
return e.numberOfMonths;
|
|
704
|
-
}),
|
|
705
|
-
const
|
|
704
|
+
}), k = c(() => e?.quickSelectRanges && e.quickSelectRanges.map((d) => {
|
|
705
|
+
const J = d.data.endDate ? void 0 : new Date(Date.now()).getTime() - d.data.startDate.getTime();
|
|
706
706
|
return {
|
|
707
707
|
...d,
|
|
708
708
|
data: {
|
|
709
709
|
...d.data,
|
|
710
710
|
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
711
|
-
timeDifference:
|
|
711
|
+
timeDifference: J
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
|
-
})),
|
|
715
|
-
|
|
714
|
+
})), z = c(() => e.label ? y : a?.["aria-labelledby"] ?? null), R = I(!1), K = I(null), X = I(null), r = I(!1), { width: F } = ma(X), { isReadOnly: ge } = Na(Re(e, "readonly")), { emitValue: V } = za(t);
|
|
715
|
+
pe(
|
|
716
716
|
() => e.disabled,
|
|
717
717
|
() => {
|
|
718
|
-
e.disabled &&
|
|
718
|
+
e.disabled && r.value && (r.value = !1);
|
|
719
719
|
}
|
|
720
720
|
);
|
|
721
|
-
const
|
|
721
|
+
const Me = c(
|
|
722
|
+
() => A.value === 0 && F.value > 0 && F.value < 332
|
|
723
|
+
// size of date range picker form
|
|
724
|
+
), L = c(() => e.modelValue), G = c(() => !T.value && R.value), oe = c(() => ({
|
|
722
725
|
"b-date-range-picker__description--error": !!e.errorMessage || G.value
|
|
723
|
-
})),
|
|
724
|
-
datePickerValue:
|
|
725
|
-
isDateIncorrect:
|
|
726
|
-
quickSelectRanges:
|
|
727
|
-
isMonthVariant:
|
|
728
|
-
withTimeInput:
|
|
729
|
-
placeholder:
|
|
730
|
-
}),
|
|
731
|
-
() => `${e.description ? E : ""} ${e.errorMessage ?
|
|
732
|
-
),
|
|
733
|
-
|
|
734
|
-
},
|
|
735
|
-
|
|
736
|
-
},
|
|
726
|
+
})), W = c(() => e.variant === "month"), Z = c(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: Q, textInputDisplayValue: Y, formatTextInputDisplayValue: U } = ut({
|
|
727
|
+
datePickerValue: L,
|
|
728
|
+
isDateIncorrect: R,
|
|
729
|
+
quickSelectRanges: k,
|
|
730
|
+
isMonthVariant: W,
|
|
731
|
+
withTimeInput: Z,
|
|
732
|
+
placeholder: Re(e, "placeholder")
|
|
733
|
+
}), h = c(
|
|
734
|
+
() => `${e.description ? E : ""} ${e.errorMessage ? N : ""} ${R.value ? f : ""}`.trim() || null
|
|
735
|
+
), g = () => {
|
|
736
|
+
r.value = !1;
|
|
737
|
+
}, le = () => {
|
|
738
|
+
r.value = !0;
|
|
739
|
+
}, ee = I(Q.value), $ = I(
|
|
737
740
|
// textInputDisplayValue is a reactive object
|
|
738
|
-
structuredClone(Ye(
|
|
739
|
-
),
|
|
741
|
+
structuredClone(Ye(Y))
|
|
742
|
+
), w = I(e.modelValue), T = I(!0), s = I($.value), ae = {
|
|
740
743
|
allowOutsideClick: !0
|
|
741
744
|
};
|
|
742
|
-
|
|
745
|
+
je(() => {
|
|
743
746
|
if (e.granularities && e.variant !== "month" && e.granularities.find(({ type: d }) => d === "quarterly"))
|
|
744
747
|
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
745
748
|
});
|
|
746
|
-
const
|
|
747
|
-
|
|
749
|
+
const x = () => {
|
|
750
|
+
ee.value = Q.value, $.value = structuredClone(Ye(Y)), s.value = $.value, w.value = L.value;
|
|
748
751
|
};
|
|
749
|
-
|
|
752
|
+
pe(
|
|
750
753
|
() => e.modelValue,
|
|
751
754
|
() => {
|
|
752
|
-
|
|
755
|
+
x();
|
|
753
756
|
}
|
|
754
757
|
);
|
|
755
|
-
const
|
|
756
|
-
|
|
757
|
-
},
|
|
758
|
+
const j = () => {
|
|
759
|
+
x(), R.value = !1, T.value = !0, g();
|
|
760
|
+
}, ie = c(() => [
|
|
758
761
|
{
|
|
759
762
|
title: i("apply"),
|
|
760
763
|
event: () => {
|
|
761
|
-
|
|
764
|
+
V(w.value), g(), T.value = !0;
|
|
762
765
|
},
|
|
763
|
-
disabled:
|
|
766
|
+
disabled: T.value
|
|
764
767
|
},
|
|
765
768
|
{
|
|
766
769
|
title: i("cancel"),
|
|
767
|
-
event:
|
|
770
|
+
event: j
|
|
768
771
|
}
|
|
769
772
|
]);
|
|
770
|
-
return
|
|
771
|
-
|
|
772
|
-
}), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: p, labelId:
|
|
773
|
-
|
|
773
|
+
return pe(w, (d) => {
|
|
774
|
+
T.value = R.value || d === L.value;
|
|
775
|
+
}), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: p, labelId: y, descriptionId: E, errorId: N, dateErrorId: f, popoverAriaLabel: se, resolvedFirstDayOfWeek: H, breakpoints: v, computedNumberOfMonths: A, adjustedQuickSelectRanges: k, dropdownInputAriaLabelledBy: z, isDateIncorrect: R, inputContainerRef: K, inputWrapperRef: X, isDateRangePickerOpen: r, inputWrapperWidth: F, isReadOnly: ge, emitValue: V, shouldMatchPopoverWidth: Me, internalModelValue: L, shouldDisplayError: G, descriptionConditionalClasses: oe, isMonthVariant: W, withTimeInput: Z, dateDisplayValue: Q, textInputDisplayValue: Y, formatTextInputDisplayValue: U, ariaDescribedBy: h, closeDateRangePicker: g, openDateRangePicker: le, localDateDisplayValue: ee, localTextInputDisplayValue: $, selectedDate: w, isApplyDisabled: T, displayedTextInputValue: s, trapAllOptions: ae, syncLocalDisplayStateFromCommittedValue: x, cancelDateRangePicker: j, rangePickerButtonActions: ie, onDateRangePickerInput: (d) => {
|
|
776
|
+
R.value = !1, s.value.startDate = m(d.startDate), s.value.endDate = m(d.endDate), s.value.startTime = S(d.startDate), s.value.endTime = S(d.endDate), w.value = d;
|
|
774
777
|
}, clearDateRangePickerValue: async () => {
|
|
775
|
-
|
|
778
|
+
R.value && (R.value = !1), w.value = null;
|
|
776
779
|
}, onEnterPressedOverInput: () => {
|
|
777
|
-
if (!
|
|
778
|
-
|
|
780
|
+
if (!r.value) {
|
|
781
|
+
r.value = !0;
|
|
779
782
|
return;
|
|
780
783
|
}
|
|
781
|
-
|
|
784
|
+
R.value || (r.value = !1);
|
|
782
785
|
}, onDateRangePickerFormDateInputUpdate: (d) => {
|
|
783
|
-
|
|
786
|
+
R.value = !1, d.startTime && (s.value.startTime = d.startTime), d.endTime && (s.value.endTime = d.endTime);
|
|
784
787
|
}, onDateRangePickerError: (d) => {
|
|
785
|
-
|
|
788
|
+
R.value = !0, s.value.startDate = d.startDate, s.value.endDate = d.endDate, w.value = { startDate: null, endDate: null };
|
|
786
789
|
}, onRangeSelectorInput: (d) => {
|
|
787
|
-
d && (
|
|
788
|
-
}, BentoButtonActions:
|
|
790
|
+
d && (s.value.startDate = m(d.startDate), s.value.endDate = m(d.endDate), s.value.startTime = S(d.startDate), s.value.endTime = S(d.endDate), w.value = d);
|
|
791
|
+
}, BentoButtonActions: va, BentoButtonActionsLayout: Qa, BentoDivider: Da, BentoPopover: pa, BentoTypography: Je, DateRangePickerCalendar: lt, DropdownInputDefault: Ma, ErrorMessage: Wa, FieldLabel: La, vBentoClickOutsideDirective: Va };
|
|
789
792
|
}
|
|
790
793
|
});
|
|
791
|
-
var
|
|
794
|
+
var mt = function() {
|
|
792
795
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
793
|
-
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", { on: { keydown: function(i) {
|
|
796
|
+
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) {
|
|
794
797
|
return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
|
|
795
|
-
} } }, [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": "", "trap-all": "", "overflow-visible": "", "trap-all-options": a.trapAllOptions }, nativeOn: { keydown: function(i) {
|
|
798
|
+
} } }, [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) {
|
|
796
799
|
return !i.type.indexOf("key") && t._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : a.closeDateRangePicker.apply(null, arguments);
|
|
797
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() {
|
|
798
801
|
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)];
|
|
799
802
|
}, proxy: !0 }], null, !1, 600066749) })], 1) : t._e()], 1);
|
|
800
|
-
},
|
|
801
|
-
dt,
|
|
803
|
+
}, Dt = [], pt = /* @__PURE__ */ _e(
|
|
802
804
|
ct,
|
|
803
805
|
mt,
|
|
806
|
+
Dt,
|
|
804
807
|
!1,
|
|
805
808
|
null,
|
|
806
|
-
"
|
|
809
|
+
"92dc9b52"
|
|
807
810
|
);
|
|
808
|
-
const
|
|
811
|
+
const Ut = pt.exports;
|
|
809
812
|
export {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
+
Ut as B,
|
|
814
|
+
lt as D,
|
|
815
|
+
Ua as a,
|
|
813
816
|
ne as i
|
|
814
817
|
};
|
|
815
|
-
//# sourceMappingURL=date-range-picker.
|
|
818
|
+
//# sourceMappingURL=date-range-picker.CqixIJxG.js.map
|