@adyen/bento-vue2 1.94.0 → 1.96.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/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +373 -126
- 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/card.css +1 -1
- package/dist/assets/dashed-underline.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/date-time-picker.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-group.css +1 -0
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- 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/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.ZR2oO4Qc.js → action-bar.Chu-0oVy.js} +5 -5
- package/dist/chunks/{action-bar.ZR2oO4Qc.js.map → action-bar.Chu-0oVy.js.map} +1 -1
- package/dist/chunks/{ai-button.7L9bANlk.js → ai-button.DvOq4s2_.js} +2 -2
- package/dist/chunks/{ai-button.7L9bANlk.js.map → ai-button.DvOq4s2_.js.map} +1 -1
- package/dist/chunks/{ai-tag.CzloguAR.js → ai-tag.DVmvni7U.js} +2 -2
- package/dist/chunks/{ai-tag.CzloguAR.js.map → ai-tag.DVmvni7U.js.map} +1 -1
- package/dist/chunks/{alert.CLqcPN0Q.js → alert.B4bHCE8V.js} +2 -2
- package/dist/chunks/{alert.CLqcPN0Q.js.map → alert.B4bHCE8V.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.8LdkI0J0.js → anchor-scroller.B8VXotik.js} +4 -4
- package/dist/chunks/{anchor-scroller.8LdkI0J0.js.map → anchor-scroller.B8VXotik.js.map} +1 -1
- package/dist/chunks/{base-modal.YbZ5vHH4.js → base-modal.CC7gm9fc.js} +7 -7
- package/dist/chunks/{base-modal.YbZ5vHH4.js.map → base-modal.CC7gm9fc.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CljH-yOh.js → button-actions-with-menu.BlOBDvdL.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.CljH-yOh.js.map → button-actions-with-menu.BlOBDvdL.js.map} +1 -1
- package/dist/chunks/{button-actions.CyMKvVwN.js → button-actions.D1jRC1fs.js} +3 -3
- package/dist/chunks/{button-actions.CyMKvVwN.js.map → button-actions.D1jRC1fs.js.map} +1 -1
- package/dist/chunks/{button.C9b2AC9w.js → button.DITA6YtS.js} +2 -2
- package/dist/chunks/{button.C9b2AC9w.js.map → button.DITA6YtS.js.map} +1 -1
- package/dist/chunks/{calendar.CCUVI1IF.js → calendar.D0JIbmoS.js} +327 -321
- package/dist/chunks/calendar.D0JIbmoS.js.map +1 -0
- package/dist/chunks/{card.DqKD40s7.js → card.ErZLKN0q.js} +2 -2
- package/dist/chunks/{card.DqKD40s7.js.map → card.ErZLKN0q.js.map} +1 -1
- package/dist/chunks/{checkbox-group.0tRtGhHh.js → checkbox-group.BAjvgXlc.js} +3 -3
- package/dist/chunks/{checkbox-group.0tRtGhHh.js.map → checkbox-group.BAjvgXlc.js.map} +1 -1
- package/dist/chunks/{checkbox.D-5Uyu7y.js → checkbox.BAQDBNL6.js} +2 -2
- package/dist/chunks/{checkbox.D-5Uyu7y.js.map → checkbox.BAQDBNL6.js.map} +1 -1
- package/dist/chunks/{code-snippet.CmUPzpQp.js → code-snippet.lcQRsLdZ.js} +5 -5
- package/dist/chunks/{code-snippet.CmUPzpQp.js.map → code-snippet.lcQRsLdZ.js.map} +1 -1
- package/dist/chunks/{controls-group.CcI4EbW_.js → controls-group.Bzpsrtcx.js} +2 -2
- package/dist/chunks/{controls-group.CcI4EbW_.js.map → controls-group.Bzpsrtcx.js.map} +1 -1
- package/dist/chunks/{copy.BA1G-Pi2.js → copy.DVB6pQC8.js} +4 -4
- package/dist/chunks/{copy.BA1G-Pi2.js.map → copy.DVB6pQC8.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BOySJG3P.js → dashboard-section.DiGQXS9L.js} +4 -4
- package/dist/chunks/{dashboard-section.BOySJG3P.js.map → dashboard-section.DiGQXS9L.js.map} +1 -1
- package/dist/chunks/dashed-underline.Cl07OQID.js +55 -0
- package/dist/chunks/dashed-underline.Cl07OQID.js.map +1 -0
- package/dist/chunks/{data-grid-template.C6Sym5we.js → data-grid-template.BVppx9kZ.js} +4 -4
- package/dist/chunks/{data-grid-template.C6Sym5we.js.map → data-grid-template.BVppx9kZ.js.map} +1 -1
- package/dist/chunks/{data-grid.By3YYFjp.js → data-grid.Djy7XjVS.js} +216 -216
- package/dist/chunks/{data-grid.By3YYFjp.js.map → data-grid.Djy7XjVS.js.map} +1 -1
- package/dist/chunks/{date-picker.B5dusL9n.js → date-picker.BWxvyK5J.js} +96 -88
- package/dist/chunks/date-picker.BWxvyK5J.js.map +1 -0
- package/dist/chunks/{date-range-picker.C_9uZ3up.js → date-range-picker.gfRJmzXn.js} +255 -274
- package/dist/chunks/date-range-picker.gfRJmzXn.js.map +1 -0
- package/dist/chunks/date-time-picker.BIl9kFLh.js +129 -0
- package/dist/chunks/date-time-picker.BIl9kFLh.js.map +1 -0
- package/dist/chunks/{dialog-page.B65F56Ha.js → dialog-page.DYWnKdnP.js} +3 -3
- package/dist/chunks/{dialog-page.B65F56Ha.js.map → dialog-page.DYWnKdnP.js.map} +1 -1
- package/dist/chunks/directive.BBWhsNtO.js +28 -0
- package/dist/chunks/directive.BBWhsNtO.js.map +1 -0
- package/dist/chunks/{draggable-handle.BFGaZNTT.js → draggable-handle.DIhHtHG9.js} +531 -500
- package/dist/chunks/{draggable-handle.BFGaZNTT.js.map → draggable-handle.DIhHtHG9.js.map} +1 -1
- package/dist/chunks/{drawer.DqUvBlma.js → drawer.WW7G9cSC.js} +46 -19
- package/dist/chunks/{drawer.DqUvBlma.js.map → drawer.WW7G9cSC.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CY0-p_gn.js → dropdown-tag.CuDxdSfb.js} +3 -3
- package/dist/chunks/{dropdown-tag.CY0-p_gn.js.map → dropdown-tag.CuDxdSfb.js.map} +1 -1
- package/dist/chunks/{dropdown.Dx0HybJ8.js → dropdown.C70AlvOT.js} +375 -368
- package/dist/chunks/dropdown.C70AlvOT.js.map +1 -0
- package/dist/chunks/{empty-state.DMV23IZy.js → empty-state.Dttc-ZO_.js} +2 -2
- package/dist/chunks/{empty-state.DMV23IZy.js.map → empty-state.Dttc-ZO_.js.map} +1 -1
- package/dist/chunks/{field-label.Cq01oVR-.js → field-label.CdVbAfK-.js} +2 -2
- package/dist/chunks/{field-label.Cq01oVR-.js.map → field-label.CdVbAfK-.js.map} +1 -1
- package/dist/chunks/{file-uploader.BdvtbVvC.js → file-uploader.CO2MeHwl.js} +8 -8
- package/dist/chunks/{file-uploader.BdvtbVvC.js.map → file-uploader.CO2MeHwl.js.map} +1 -1
- package/dist/chunks/{filter-bar.mPy_N4BF.js → filter-bar.C6ZBgizQ.js} +25 -25
- package/dist/chunks/{filter-bar.mPy_N4BF.js.map → filter-bar.C6ZBgizQ.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.DR2E_No4.js → fixed-scroller.4xAzt_OI.js} +2 -2
- package/dist/chunks/{fixed-scroller.DR2E_No4.js.map → fixed-scroller.4xAzt_OI.js.map} +1 -1
- package/dist/chunks/{focus-trap.CKs45fnj.js → focus-trap.CBIb3SyN.js} +22 -22
- package/dist/chunks/{focus-trap.CKs45fnj.js.map → focus-trap.CBIb3SyN.js.map} +1 -1
- package/dist/chunks/{footer-actions.BE_hrleY.js → footer-actions.CZE9dcmA.js} +3 -3
- package/dist/chunks/{footer-actions.BE_hrleY.js.map → footer-actions.CZE9dcmA.js.map} +1 -1
- package/dist/chunks/form-layout-group.zE6TNlzD.js +84 -0
- package/dist/chunks/form-layout-group.zE6TNlzD.js.map +1 -0
- package/dist/chunks/form-layout-title.CXXdsiK5.js +171 -0
- package/dist/chunks/form-layout-title.CXXdsiK5.js.map +1 -0
- package/dist/chunks/header-meta.6rZdOgXD.js +239 -0
- package/dist/chunks/{header-meta._l0IV3jf.js.map → header-meta.6rZdOgXD.js.map} +1 -1
- package/dist/chunks/{header-with-views.LrySsX1p.js → header-with-views.m0xMmoav.js} +11 -11
- package/dist/chunks/{header-with-views.LrySsX1p.js.map → header-with-views.m0xMmoav.js.map} +1 -1
- package/dist/chunks/{header.BJZ-o7Mz.js → header.BsroOD5b.js} +3 -3
- package/dist/chunks/{header.BJZ-o7Mz.js.map → header.BsroOD5b.js.map} +1 -1
- package/dist/chunks/{index.DZx81HG1.js → index.CJYgd0QI.js} +220 -197
- package/dist/chunks/{index.DZx81HG1.js.map → index.CJYgd0QI.js.map} +1 -1
- package/dist/chunks/{info-icon.CRpEtx-P.js → info-icon.9Nt7zg3D.js} +3 -3
- package/dist/chunks/{info-icon.CRpEtx-P.js.map → info-icon.9Nt7zg3D.js.map} +1 -1
- package/dist/chunks/{input-field-password.C2ogXvbh.js → input-field-password.CRqYWZGS.js} +48 -49
- package/dist/chunks/input-field-password.CRqYWZGS.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.D8Enmcny.js → input-field-phone-number.DHiuL0cF.js} +13 -14
- package/dist/chunks/{input-field-phone-number.D8Enmcny.js.map → input-field-phone-number.DHiuL0cF.js.map} +1 -1
- package/dist/chunks/{input-field.CRsU2NBh.js → input-field.BkQZ6Qzl.js} +77 -74
- package/dist/chunks/input-field.BkQZ6Qzl.js.map +1 -0
- package/dist/chunks/{input-time.BSrSAN3r.js → input-time.BiOHvUEA.js} +7 -8
- package/dist/chunks/{input-time.BSrSAN3r.js.map → input-time.BiOHvUEA.js.map} +1 -1
- package/dist/chunks/{inspector.Dagz-JL1.js → inspector.BY3SoX-l.js} +4 -4
- package/dist/chunks/{inspector.Dagz-JL1.js.map → inspector.BY3SoX-l.js.map} +1 -1
- package/dist/chunks/{layout-row.CdpQeT7f.js → layout-row.BI9ZJa-9.js} +13 -13
- package/dist/chunks/{layout-row.CdpQeT7f.js.map → layout-row.BI9ZJa-9.js.map} +1 -1
- package/dist/chunks/{link.DB5g6d48.js → link.BpuCRgok.js} +11 -11
- package/dist/chunks/link.BpuCRgok.js.map +1 -0
- package/dist/chunks/{list-item.CQEmr9Yw.js → list-item.D2ZLiS_D.js} +2 -2
- package/dist/chunks/{list-item.CQEmr9Yw.js.map → list-item.D2ZLiS_D.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CnxNmmva.js → listbox-option-tag.Ddyl2vuc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CnxNmmva.js.map → listbox-option-tag.Ddyl2vuc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js → modal-fullscreen.OS6KhVdg.js} +6 -6
- package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js.map → modal-fullscreen.OS6KhVdg.js.map} +1 -1
- package/dist/chunks/{modal.Bm-nN8pa.js → modal.DHL3TGHv.js} +5 -5
- package/dist/chunks/{modal.Bm-nN8pa.js.map → modal.DHL3TGHv.js.map} +1 -1
- package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js +261 -0
- package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js.map +1 -0
- package/dist/chunks/{pagination.Jv60K59y.js → pagination.DItyAwy1.js} +3 -3
- package/dist/chunks/{pagination.Jv60K59y.js.map → pagination.DItyAwy1.js.map} +1 -1
- package/dist/chunks/popover.types.B9TXaqAt.js +6 -0
- package/dist/chunks/{popover.types.CQ5g4kw2.js.map → popover.types.B9TXaqAt.js.map} +1 -1
- package/dist/chunks/{popper-container.D10i5aF5.js → popper-container.CFYFCz6u.js} +2 -2
- package/dist/chunks/{popper-container.D10i5aF5.js.map → popper-container.CFYFCz6u.js.map} +1 -1
- package/dist/chunks/{promo-banner.DjRIdEh7.js → promo-banner.tljKS80K.js} +3 -3
- package/dist/chunks/{promo-banner.DjRIdEh7.js.map → promo-banner.tljKS80K.js.map} +1 -1
- package/dist/chunks/{radio-group.BrRXAuJ6.js → radio-group.cn4lZb8R.js} +3 -3
- package/dist/chunks/{radio-group.BrRXAuJ6.js.map → radio-group.cn4lZb8R.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DazA-Rlh.js → rich-text-editor.Dwq3Z_lK.js} +6 -6
- package/dist/chunks/{rich-text-editor.DazA-Rlh.js.map → rich-text-editor.Dwq3Z_lK.js.map} +1 -1
- package/dist/chunks/{search-bar.DeKlBnxE.js → search-bar.D-WK8eMQ.js} +10 -11
- package/dist/chunks/{search-bar.DeKlBnxE.js.map → search-bar.D-WK8eMQ.js.map} +1 -1
- package/dist/chunks/secondary-nav.C7lEDaoj.js +259 -0
- package/dist/chunks/{secondary-nav.BLF9iQOV.js.map → secondary-nav.C7lEDaoj.js.map} +1 -1
- package/dist/chunks/{segmented-control.BBG-0da6.js → segmented-control.C0JtDa4q.js} +2 -2
- package/dist/chunks/{segmented-control.BBG-0da6.js.map → segmented-control.C0JtDa4q.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CXBbA_P1.js → selection-card-group.ZZ_qF1L1.js} +3 -3
- package/dist/chunks/{selection-card-group.CXBbA_P1.js.map → selection-card-group.ZZ_qF1L1.js.map} +1 -1
- package/dist/chunks/set-time-in-date.CU7HeZLY.js +27 -0
- package/dist/chunks/set-time-in-date.CU7HeZLY.js.map +1 -0
- package/dist/chunks/{sidepanel.ChPk9qYd.js → sidepanel.B8zQp_MJ.js} +7 -7
- package/dist/chunks/{sidepanel.ChPk9qYd.js.map → sidepanel.B8zQp_MJ.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Dwftc8Ns.js → structured-list-item.DE0L0kvs.js} +5 -5
- package/dist/chunks/{structured-list-item.Dwftc8Ns.js.map → structured-list-item.DE0L0kvs.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.Cv27iNrx.js → summary-grid.types.CkqRXOKv.js} +5 -5
- package/dist/chunks/{summary-grid.types.Cv27iNrx.js.map → summary-grid.types.CkqRXOKv.js.map} +1 -1
- package/dist/chunks/tab.QEKU5Udp.js +256 -0
- package/dist/chunks/{tab.t1v1GxSA.js.map → tab.QEKU5Udp.js.map} +1 -1
- package/dist/chunks/{tag.lfN7xFuw.js → tag.CbNFG45Y.js} +2 -2
- package/dist/chunks/{tag.lfN7xFuw.js.map → tag.CbNFG45Y.js.map} +1 -1
- package/dist/chunks/{textarea.DSRAB-Ox.js → textarea.DJ7095b6.js} +3 -3
- package/dist/chunks/{textarea.DSRAB-Ox.js.map → textarea.DJ7095b6.js.map} +1 -1
- package/dist/chunks/{timeline-item.gWNnZjsZ.js → timeline-item.sdxvTjmS.js} +8 -8
- package/dist/chunks/{timeline-item.gWNnZjsZ.js.map → timeline-item.sdxvTjmS.js.map} +1 -1
- package/dist/chunks/{toast.d8vg71CB.js → toast.BMGR5QrI.js} +2 -2
- package/dist/chunks/{toast.d8vg71CB.js.map → toast.BMGR5QrI.js.map} +1 -1
- package/dist/chunks/{tooltip.DmFTmAGi.js → tooltip.CnkqMpOA.js} +3 -3
- package/dist/chunks/{tooltip.DmFTmAGi.js.map → tooltip.CnkqMpOA.js.map} +1 -1
- package/dist/chunks/{tutorial.CO7DzdET.js → tutorial.Ba9dqb2j.js} +4 -4
- package/dist/chunks/{tutorial.CO7DzdET.js.map → tutorial.Ba9dqb2j.js.map} +1 -1
- package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js +30 -0
- package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js → use-cached-selected-values.D0s14AxT.js} +4 -4
- package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js.map → use-cached-selected-values.D0s14AxT.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js → use-date-input-formatter.B5GQd3s2.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js.map → use-date-input-formatter.B5GQd3s2.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 +5 -0
- package/dist/date-time-picker.js.map +1 -0
- package/dist/draggable.js +1 -1
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +3 -3
- 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 +5 -4
- package/dist/form-layout.js.map +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +273 -268
- 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 +1 -1
- package/dist/internal.js +12 -12
- 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/popover.js +2 -2
- package/dist/popper-container.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/structured-list.js +1 -1
- package/dist/summary-grid.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/tutorial.js +1 -1
- package/dist/web-types.json +170 -3
- package/package.json +7 -7
- package/dist/chunks/calendar.CCUVI1IF.js.map +0 -1
- package/dist/chunks/dashed-underline.B9Q0T4ss.js +0 -77
- package/dist/chunks/dashed-underline.B9Q0T4ss.js.map +0 -1
- package/dist/chunks/date-picker.B5dusL9n.js.map +0 -1
- package/dist/chunks/date-range-picker.C_9uZ3up.js.map +0 -1
- package/dist/chunks/directive.Bfr4fuOy.js +0 -23
- package/dist/chunks/directive.Bfr4fuOy.js.map +0 -1
- package/dist/chunks/dropdown.Dx0HybJ8.js.map +0 -1
- package/dist/chunks/form-layout-title.zZVLCyqe.js +0 -248
- package/dist/chunks/form-layout-title.zZVLCyqe.js.map +0 -1
- package/dist/chunks/header-meta._l0IV3jf.js +0 -248
- package/dist/chunks/input-field-password.C2ogXvbh.js.map +0 -1
- package/dist/chunks/input-field.CRsU2NBh.js.map +0 -1
- package/dist/chunks/link.DB5g6d48.js.map +0 -1
- package/dist/chunks/navigation-menu-group.DHWp-pJO.js +0 -216
- package/dist/chunks/navigation-menu-group.DHWp-pJO.js.map +0 -1
- package/dist/chunks/popover.types.CQ5g4kw2.js +0 -6
- package/dist/chunks/secondary-nav.BLF9iQOV.js +0 -223
- package/dist/chunks/tab.t1v1GxSA.js +0 -229
|
@@ -1,110 +1,95 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import {
|
|
1
|
+
import { reactive as ve, defineComponent as Ue, useSlots as va, ref as O, computed as p, onMounted as Je, toRaw as Ye, watch as fe, useAttrs as ga, toRef as he } from "vue";
|
|
2
|
+
import { b as ya } from "./index.CJYgd0QI.js";
|
|
3
3
|
import { B as Ma } from "./divider.DX5gwN7p.js";
|
|
4
|
-
import { h as ha, B as Ta } from "./button-actions.
|
|
5
|
-
import { B as $e, d as
|
|
6
|
-
import { B as Ra } from "./alert.
|
|
7
|
-
import { B as Ya } from "./input-field.
|
|
8
|
-
import { B as Aa, i as
|
|
9
|
-
import { B as ba, D as ka } from "./dropdown.
|
|
10
|
-
import { B as Ia } from "./segmented-control.
|
|
4
|
+
import { h as ha, B as Ta } from "./button-actions.D1jRC1fs.js";
|
|
5
|
+
import { B as $e, d as we } from "./typography.C8lPlsbD.js";
|
|
6
|
+
import { B as Ra } from "./alert.B4bHCE8V.js";
|
|
7
|
+
import { B as Ya } from "./input-field.BkQZ6Qzl.js";
|
|
8
|
+
import { B as Aa, i as Oe } from "./input-time.BiOHvUEA.js";
|
|
9
|
+
import { B as ba, D as ka } from "./dropdown.C70AlvOT.js";
|
|
10
|
+
import { B as Ia } from "./segmented-control.C0JtDa4q.js";
|
|
11
11
|
import { u as Ae } from "./index.B6WW_F-J.js";
|
|
12
|
-
import { d as
|
|
12
|
+
import { d as Ce } from "./use-cached-selected-values.D0s14AxT.js";
|
|
13
13
|
import { u as _a } from "./use-has-slot.C9lQZ6nz.js";
|
|
14
|
-
import { u as be, a as Sa } from "./use-date-input-formatter.
|
|
14
|
+
import { u as be, a as Sa } from "./use-date-input-formatter.B5GQd3s2.js";
|
|
15
15
|
import { u as xa } from "./use-touch-device.DTqFAbXh.js";
|
|
16
|
-
import {
|
|
17
|
-
import { e as C, a as
|
|
18
|
-
import { s as
|
|
19
|
-
import { t as
|
|
16
|
+
import { j as re, k as F, s as R, l as Fa, m as Be, n as Ea, f as qe, o as wa, q as Oa, r as Ca, t as Pe, u as Ba, b as N, v as qa, h as Pa, i as Na, e as _, w as Ne, x as ze, g as za } from "./calendar.D0JIbmoS.js";
|
|
17
|
+
import { e as C, a as Qe } from "./differenceInMonths.CpwVtHZX.js";
|
|
18
|
+
import { s as We } from "./startOfWeek.Br5KM4z_.js";
|
|
19
|
+
import { t as ge, n as Qa, c as Wa } from "./en-US.BK5uiAND.js";
|
|
20
20
|
import { c as ja } from "./constructNow.CK0ryPil.js";
|
|
21
|
+
import { a as je, s as Le } from "./set-time-in-date.CU7HeZLY.js";
|
|
21
22
|
import { n as He } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
22
23
|
import { g as ne } from "./generate-uid.NJ8tVoha.js";
|
|
23
24
|
import { u as La } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
24
25
|
import "./index.Cl4_42j5.js";
|
|
25
26
|
import { u as Ga } from "./form-field.D_2g7vaP.js";
|
|
26
|
-
import { B as Va } from "./directive.
|
|
27
|
-
import { F as Ua } from "./field-label.
|
|
27
|
+
import { B as Va } from "./directive.BBWhsNtO.js";
|
|
28
|
+
import { F as Ua } from "./field-label.CdVbAfK-.js";
|
|
28
29
|
import { E as Ja } from "./error-message.CyERcfdt.js";
|
|
29
30
|
import { B as $a } from "./button-actions.types.BptAXjD8.js";
|
|
30
31
|
import "../assets/date-range-picker.css";
|
|
31
|
-
function
|
|
32
|
-
return
|
|
32
|
+
function Ge(o, t) {
|
|
33
|
+
return ge(o, t == null ? void 0 : t.in).getFullYear();
|
|
33
34
|
}
|
|
34
|
-
function Te(
|
|
35
|
-
return +
|
|
35
|
+
function Te(o, t) {
|
|
36
|
+
return +ge(o) == +ge(t);
|
|
36
37
|
}
|
|
37
|
-
function Ha(
|
|
38
|
+
function Ha(o, t, e) {
|
|
38
39
|
const [a, i] = Qa(
|
|
39
40
|
e == null ? void 0 : e.in,
|
|
40
|
-
|
|
41
|
+
o,
|
|
41
42
|
t
|
|
42
43
|
);
|
|
43
44
|
return +re(a) == +re(i);
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
const e =
|
|
46
|
+
function Ve(o, t) {
|
|
47
|
+
const e = ge(o, t == null ? void 0 : t.in);
|
|
47
48
|
return e.setMilliseconds(0), e;
|
|
48
49
|
}
|
|
49
|
-
function Re(
|
|
50
|
-
return +
|
|
50
|
+
function Re(o, t) {
|
|
51
|
+
return +Ve(o) == +Ve(t);
|
|
51
52
|
}
|
|
52
|
-
function Ka(
|
|
53
|
+
function Ka(o, t) {
|
|
53
54
|
return F(
|
|
54
|
-
Wa(
|
|
55
|
-
ja(
|
|
55
|
+
Wa(o, o),
|
|
56
|
+
ja(o)
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return a.setHours(t), a;
|
|
61
|
-
}
|
|
62
|
-
function Ve(s, t, e) {
|
|
63
|
-
const a = j(s, e == null ? void 0 : e.in);
|
|
64
|
-
return a.setMilliseconds(t), a;
|
|
65
|
-
}
|
|
66
|
-
function Za(s, t, e) {
|
|
67
|
-
const a = j(s, e == null ? void 0 : e.in);
|
|
68
|
-
return a.setMinutes(t), a;
|
|
69
|
-
}
|
|
70
|
-
function et(s, t, e) {
|
|
71
|
-
const a = j(s, e == null ? void 0 : e.in);
|
|
72
|
-
return a.setSeconds(t), a;
|
|
73
|
-
}
|
|
74
|
-
const at = ({
|
|
75
|
-
firstDayOfWeek: s,
|
|
59
|
+
const Xa = ({
|
|
60
|
+
firstDayOfWeek: o,
|
|
76
61
|
min: t,
|
|
77
62
|
max: e
|
|
78
63
|
}) => ({ getGranularCalendarLimits: (i) => {
|
|
79
64
|
if (!t && !e)
|
|
80
65
|
return { min: null, max: null };
|
|
81
|
-
let m = t ?
|
|
66
|
+
let m = t ? R(t) : null, f = e ? C(e) : null;
|
|
82
67
|
if ((i == null ? void 0 : i.type) === "weekly") {
|
|
83
68
|
if (i.earliest)
|
|
84
|
-
m =
|
|
69
|
+
m = R(i.earliest);
|
|
85
70
|
else if (m) {
|
|
86
|
-
const M =
|
|
87
|
-
F(m, M) || (m =
|
|
71
|
+
const M = We(m, { weekStartsOn: o });
|
|
72
|
+
F(m, M) || (m = R(Fa(Be(m, { weekStartsOn: o }), 1)));
|
|
88
73
|
}
|
|
89
74
|
if (i.latest)
|
|
90
75
|
f = C(i.latest);
|
|
91
76
|
else if (f) {
|
|
92
|
-
const M =
|
|
93
|
-
F(f, M) || (f = C(Ea(
|
|
77
|
+
const M = Be(f, { weekStartsOn: o });
|
|
78
|
+
F(f, M) || (f = C(Ea(We(f, { weekStartsOn: o }), 1)));
|
|
94
79
|
}
|
|
95
80
|
}
|
|
96
81
|
if ((i == null ? void 0 : i.type) === "monthly") {
|
|
97
82
|
if (i.earliest)
|
|
98
|
-
m =
|
|
83
|
+
m = R(i.earliest);
|
|
99
84
|
else if (m) {
|
|
100
|
-
const M =
|
|
101
|
-
F(m, M) || (m =
|
|
85
|
+
const M = qe(m);
|
|
86
|
+
F(m, M) || (m = qe(wa(m, 1)));
|
|
102
87
|
}
|
|
103
88
|
if (i.latest)
|
|
104
89
|
f = C(i.latest);
|
|
105
90
|
else if (f) {
|
|
106
|
-
const M =
|
|
107
|
-
F(f, M) || (f =
|
|
91
|
+
const M = Qe(f);
|
|
92
|
+
F(f, M) || (f = Qe(Oa(f, 1)));
|
|
108
93
|
}
|
|
109
94
|
}
|
|
110
95
|
if ((i == null ? void 0 : i.type) === "quarterly") {
|
|
@@ -117,33 +102,33 @@ const at = ({
|
|
|
117
102
|
if (i.latest)
|
|
118
103
|
f = C(i.latest);
|
|
119
104
|
else if (f) {
|
|
120
|
-
const M =
|
|
121
|
-
F(f, M) || (f =
|
|
105
|
+
const M = Pe(f);
|
|
106
|
+
F(f, M) || (f = Pe(Ba(f, 1)));
|
|
122
107
|
}
|
|
123
108
|
}
|
|
124
109
|
return { min: m, max: f };
|
|
125
|
-
} }),
|
|
126
|
-
const
|
|
110
|
+
} }), Za = () => {
|
|
111
|
+
const o = ve({
|
|
127
112
|
daily: null,
|
|
128
113
|
weekly: null,
|
|
129
114
|
monthly: null,
|
|
130
115
|
quarterly: null
|
|
131
116
|
});
|
|
132
117
|
return {
|
|
133
|
-
savedRanges:
|
|
118
|
+
savedRanges: o,
|
|
134
119
|
saveRange: (a, i) => {
|
|
135
|
-
|
|
120
|
+
o[a] = i;
|
|
136
121
|
},
|
|
137
122
|
resetSavedRanges: () => {
|
|
138
|
-
|
|
123
|
+
o.daily = null, o.weekly = null, o.monthly = null, o.quarterly = null;
|
|
139
124
|
}
|
|
140
125
|
};
|
|
141
126
|
};
|
|
142
|
-
var v = /* @__PURE__ */ ((
|
|
143
|
-
const
|
|
127
|
+
var v = /* @__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))(v || {});
|
|
128
|
+
const et = {
|
|
144
129
|
"de-DE": {
|
|
145
130
|
"DD-MM-YYYY": "TT-MM-JJJJ",
|
|
146
|
-
"MM-DD-YYYY": "
|
|
131
|
+
"MM-DD-YYYY": "MM-TT-JJJJ",
|
|
147
132
|
"YYYY-MM-DD": "JJJJ-MM-TT",
|
|
148
133
|
customRange: "Benutzerdefinierter Bereich",
|
|
149
134
|
daily: "Täglich",
|
|
@@ -332,7 +317,7 @@ const nt = {
|
|
|
332
317
|
},
|
|
333
318
|
"zh-CN": {
|
|
334
319
|
"DD-MM-YYYY": "日-月-年",
|
|
335
|
-
"MM-DD-YYYY": "
|
|
320
|
+
"MM-DD-YYYY": "月-日-年",
|
|
336
321
|
"YYYY-MM-DD": "年-月-日",
|
|
337
322
|
customRange: "自定义范围",
|
|
338
323
|
daily: "每日",
|
|
@@ -351,11 +336,11 @@ const nt = {
|
|
|
351
336
|
timeTo: "是时候",
|
|
352
337
|
weekly: "每周"
|
|
353
338
|
}
|
|
354
|
-
},
|
|
339
|
+
}, at = {
|
|
355
340
|
name: "date-range-picker-calendar",
|
|
356
|
-
i18n: { messages:
|
|
357
|
-
},
|
|
358
|
-
...
|
|
341
|
+
i18n: { messages: et }
|
|
342
|
+
}, tt = /* @__PURE__ */ Ue({
|
|
343
|
+
...at,
|
|
359
344
|
props: {
|
|
360
345
|
/**
|
|
361
346
|
* Allows user to enter time values in the form
|
|
@@ -402,7 +387,7 @@ const nt = {
|
|
|
402
387
|
numberOfMonths: {
|
|
403
388
|
type: N.props.numberOfMonths.type,
|
|
404
389
|
default: N.props.numberOfMonths.default,
|
|
405
|
-
validator: (
|
|
390
|
+
validator: (o) => o >= 0
|
|
406
391
|
},
|
|
407
392
|
/**
|
|
408
393
|
* Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
|
|
@@ -435,9 +420,9 @@ const nt = {
|
|
|
435
420
|
v.FORM_DATE,
|
|
436
421
|
v.START_DATE_SELECTED
|
|
437
422
|
],
|
|
438
|
-
setup(
|
|
439
|
-
var xe, Fe, Ee
|
|
440
|
-
const e =
|
|
423
|
+
setup(o, { emit: t }) {
|
|
424
|
+
var Se, xe, Fe, Ee;
|
|
425
|
+
const e = o, a = 300, i = "customRange", m = {
|
|
441
426
|
daily: "maxRangeDays",
|
|
442
427
|
weekly: "maxRangeWeeks",
|
|
443
428
|
monthly: "maxRangeMonths",
|
|
@@ -446,29 +431,29 @@ const nt = {
|
|
|
446
431
|
dateFormat: se,
|
|
447
432
|
isFormatValid: X,
|
|
448
433
|
parseDate: D,
|
|
449
|
-
onKeyDown:
|
|
434
|
+
onKeyDown: j,
|
|
450
435
|
autoFormat: b,
|
|
451
436
|
formatDate: E
|
|
452
|
-
} = be(), g = O({}),
|
|
453
|
-
startDate: (
|
|
454
|
-
endDate: (
|
|
455
|
-
range: (
|
|
437
|
+
} = be(), g = O({}), L = p(() => e.variant === "month" ? "monthly" : "daily"), S = p(() => e.numberOfMonths === 0), r = ve({
|
|
438
|
+
startDate: (Se = e.value) == null ? void 0 : Se.startDate,
|
|
439
|
+
endDate: (xe = e.value) == null ? void 0 : xe.endDate,
|
|
440
|
+
range: (Fe = e.value) == null ? void 0 : Fe.range,
|
|
456
441
|
...e.granularities ? {
|
|
457
|
-
granularity: ((
|
|
442
|
+
granularity: ((Ee = e.value) == null ? void 0 : Ee.granularity) || L.value
|
|
458
443
|
} : {}
|
|
459
444
|
}), k = p(() => {
|
|
460
445
|
var n, l;
|
|
461
446
|
return (
|
|
462
447
|
// eslint-disable-next-line consistent-return
|
|
463
|
-
((l = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value:
|
|
464
|
-
var
|
|
448
|
+
((l = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: c, data: d }) => {
|
|
449
|
+
var A;
|
|
465
450
|
if (!d.endDate) {
|
|
466
451
|
if (d.isRelativeToNow) {
|
|
467
|
-
const
|
|
468
|
-
return
|
|
452
|
+
const x = (A = g.value) == null ? void 0 : A[c];
|
|
453
|
+
return x ? Te(x.startDate, r.startDate) && Te(x.endDate, r.endDate) : (
|
|
469
454
|
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
470
455
|
// with the internal range's stored range identifier.
|
|
471
|
-
|
|
456
|
+
c === r.range
|
|
472
457
|
);
|
|
473
458
|
}
|
|
474
459
|
return Te(d.startDate, r.startDate) && Ka(r.endDate) && (!e.allowTimeInput || Re(r.endDate, C(r.endDate))) && (e.granularities ? d.granularity === r.granularity : !0);
|
|
@@ -484,7 +469,7 @@ const nt = {
|
|
|
484
469
|
})), le = p(() => [
|
|
485
470
|
{ label: B("customRange"), value: i },
|
|
486
471
|
...e.quickSelectRanges ? e.quickSelectRanges : []
|
|
487
|
-
]),
|
|
472
|
+
]), G = p(
|
|
488
473
|
() => {
|
|
489
474
|
var n;
|
|
490
475
|
return ((n = e.granularities) == null ? void 0 : n.find(({ type: l }) => l === r.granularity)) || null;
|
|
@@ -492,14 +477,14 @@ const nt = {
|
|
|
492
477
|
), ie = p(
|
|
493
478
|
() => {
|
|
494
479
|
var n;
|
|
495
|
-
return ((n = e.granularities) == null ? void 0 : n.map(({ type: l, disabled:
|
|
480
|
+
return ((n = e.granularities) == null ? void 0 : n.map(({ type: l, disabled: c }) => ({
|
|
496
481
|
label: B(l),
|
|
497
482
|
value: l,
|
|
498
|
-
disabled:
|
|
483
|
+
disabled: c
|
|
499
484
|
}))) ?? [];
|
|
500
485
|
}
|
|
501
|
-
), { getGranularCalendarLimits: Z } =
|
|
502
|
-
() => e.granularities ? Z(
|
|
486
|
+
), { getGranularCalendarLimits: Z } = Xa(e), h = p(
|
|
487
|
+
() => e.granularities ? Z(G.value) : { min: e.min ? R(e.min) : null, max: e.max ? C(e.max) : null }
|
|
503
488
|
), {
|
|
504
489
|
adjustDateForQuarterly: T,
|
|
505
490
|
adjustDateForMonthly: ue,
|
|
@@ -510,48 +495,44 @@ const nt = {
|
|
|
510
495
|
adjustEndDateInputForMonthly: $,
|
|
511
496
|
adjustStartDateInputForQuarterly: w,
|
|
512
497
|
adjustEndDateInputForQuarterly: Q
|
|
513
|
-
} = qa(e.firstDayOfWeek), { savedRanges: q, saveRange: me, resetSavedRanges: ee } =
|
|
498
|
+
} = qa(e.firstDayOfWeek), { savedRanges: q, saveRange: me, resetSavedRanges: ee } = Za(), Y = (n) => n ? E(n) : "", H = O(!1), K = O(!1), s = ve({
|
|
514
499
|
startDate: e.dateFormData.startDate,
|
|
515
500
|
endDate: e.dateFormData.endDate,
|
|
516
501
|
startTime: e.dateFormData.startTime,
|
|
517
502
|
endTime: e.dateFormData.endTime
|
|
518
503
|
}), De = (n, l) => {
|
|
519
|
-
|
|
520
|
-
const [d, R, I] = l.split(":");
|
|
521
|
-
return u = Xa(u, parseInt(d, 10)), u = Za(u, parseInt(R, 10)), u = et(u, parseInt(I, 10)), u;
|
|
522
|
-
}, pe = (n, l) => {
|
|
523
|
-
const u = () => {
|
|
504
|
+
const c = () => {
|
|
524
505
|
if (l && P(l)) {
|
|
525
|
-
const d =
|
|
526
|
-
if (e.min && d <
|
|
506
|
+
const d = je(D(l), n);
|
|
507
|
+
if (e.min && d < Le(e.min, 0) || e.max && d > Le(e.max, 0))
|
|
527
508
|
return !1;
|
|
528
509
|
}
|
|
529
510
|
return !0;
|
|
530
511
|
};
|
|
531
|
-
return
|
|
532
|
-
},
|
|
533
|
-
|
|
534
|
-
e.min && e.allowTimeInput && F(e.min, n.startDate) ? e.min :
|
|
535
|
-
),
|
|
512
|
+
return Oe(n) && c();
|
|
513
|
+
}, W = p(() => e.variant === "month"), u = (n) => n ? W.value ? Pa(n) : Na(n) : "", V = p(() => u(r.startDate)), ae = p(() => u(r.endDate)), Ke = p(() => y.value ? W.value ? "month" : "date" : "text"), Xe = p(() => y.value ? V.value : s.startDate), Ze = p(() => y.value ? ae.value : s.endDate), I = (n, l) => !l || !Oe(l) || e.variant === "month" ? n : je(new Date(n), l), ea = (n) => {
|
|
514
|
+
s.startTime = _(
|
|
515
|
+
e.min && e.allowTimeInput && F(e.min, n.startDate) ? e.min : R(n.startDate)
|
|
516
|
+
), s.endTime = _(
|
|
536
517
|
e.max && e.allowTimeInput && F(e.max, n.endDate) ? e.max : C(n.endDate)
|
|
537
|
-
), r.startDate =
|
|
518
|
+
), r.startDate = I(n.startDate, s.startTime), r.endDate = I(n.endDate, s.endTime), r.range = null, e.granularities && ee(), t(v.INPUT, {
|
|
538
519
|
...r,
|
|
539
520
|
range: k.value
|
|
540
521
|
});
|
|
541
522
|
}, P = (n) => {
|
|
542
523
|
if (!n)
|
|
543
524
|
return !1;
|
|
544
|
-
const l = (
|
|
525
|
+
const l = (c) => e.min && R(c) < R(e.min) || e.max && R(c) > R(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(R(c)) : !0;
|
|
545
526
|
return X(n) && l(D(n));
|
|
546
527
|
};
|
|
547
528
|
Je(() => {
|
|
548
529
|
H.value = !!(e.dateFormData.startDate && !P(e.dateFormData.startDate)), K.value = !!(e.dateFormData.endDate && !P(e.dateFormData.endDate));
|
|
549
530
|
});
|
|
550
531
|
const aa = (n) => {
|
|
551
|
-
|
|
532
|
+
s.startDate = Y(n), s.startTime || (s.startTime = _(n)), H.value = !1, t(v.START_DATE_SELECTED, n);
|
|
552
533
|
}, ta = (n) => {
|
|
553
|
-
|
|
554
|
-
},
|
|
534
|
+
s.endDate = Y(n), s.endTime || (s.endTime = _(C(n))), K.value = !1;
|
|
535
|
+
}, pe = (n) => {
|
|
555
536
|
const l = e.value[n];
|
|
556
537
|
if (l)
|
|
557
538
|
return l;
|
|
@@ -560,184 +541,184 @@ const nt = {
|
|
|
560
541
|
}, ye = (n) => {
|
|
561
542
|
var l;
|
|
562
543
|
if (P(n)) {
|
|
563
|
-
let
|
|
564
|
-
switch (H.value = !1, (l =
|
|
544
|
+
let c = n;
|
|
545
|
+
switch (H.value = !1, (l = G.value) == null ? void 0 : l.type) {
|
|
565
546
|
case "weekly":
|
|
566
|
-
|
|
547
|
+
c = U(
|
|
567
548
|
n,
|
|
568
|
-
|
|
549
|
+
Y,
|
|
569
550
|
h.value.min,
|
|
570
551
|
h.value.max
|
|
571
|
-
),
|
|
552
|
+
), s.startDate = c;
|
|
572
553
|
break;
|
|
573
554
|
case "monthly":
|
|
574
|
-
|
|
555
|
+
c = J(
|
|
575
556
|
n,
|
|
576
|
-
|
|
557
|
+
Y,
|
|
577
558
|
h.value.min,
|
|
578
559
|
h.value.max
|
|
579
|
-
),
|
|
560
|
+
), s.startDate = c;
|
|
580
561
|
break;
|
|
581
562
|
case "quarterly":
|
|
582
|
-
|
|
563
|
+
c = w(
|
|
583
564
|
n,
|
|
584
|
-
|
|
565
|
+
Y,
|
|
585
566
|
h.value.min,
|
|
586
567
|
h.value.max
|
|
587
|
-
),
|
|
568
|
+
), s.startDate = c;
|
|
588
569
|
break;
|
|
589
570
|
}
|
|
590
|
-
const d =
|
|
591
|
-
r.startDate =
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
), P(
|
|
595
|
-
|
|
596
|
-
|
|
571
|
+
const d = R(D(c));
|
|
572
|
+
r.startDate = I(d, s.startTime), r.endDate = I(
|
|
573
|
+
R(D(s.endDate)),
|
|
574
|
+
s.endTime
|
|
575
|
+
), P(s.endDate) && (r.endDate = I(
|
|
576
|
+
R(D(s.endDate)),
|
|
577
|
+
s.endTime
|
|
597
578
|
));
|
|
598
|
-
const
|
|
579
|
+
const A = pe("endDate");
|
|
599
580
|
r.range = null, t(v.FORM_DATE, {
|
|
600
581
|
startDate: d,
|
|
601
|
-
endDate:
|
|
582
|
+
endDate: A
|
|
602
583
|
}), t(v.INPUT, {
|
|
603
584
|
...r,
|
|
604
585
|
range: k.value
|
|
605
586
|
});
|
|
606
587
|
} else
|
|
607
|
-
H.value = !0, t(v.ERROR, { ...
|
|
608
|
-
},
|
|
609
|
-
if (
|
|
610
|
-
if (
|
|
611
|
-
const l =
|
|
612
|
-
r.startDate =
|
|
588
|
+
H.value = !0, t(v.ERROR, { ...s });
|
|
589
|
+
}, ke = Ce(ye, a), na = (n) => {
|
|
590
|
+
if (s.startDate = y.value && W.value ? n : b(n), y.value)
|
|
591
|
+
if (W.value && n) {
|
|
592
|
+
const l = Ne(n);
|
|
593
|
+
r.startDate = I(l, s.startTime), r.range = null, t(v.INPUT, {
|
|
613
594
|
...r,
|
|
614
595
|
range: k.value
|
|
615
596
|
});
|
|
616
597
|
} else
|
|
617
|
-
ye(
|
|
598
|
+
ye(s.startDate);
|
|
618
599
|
else
|
|
619
|
-
|
|
600
|
+
ke(s.startDate);
|
|
620
601
|
}, Me = (n) => {
|
|
621
602
|
var l;
|
|
622
603
|
if (P(n)) {
|
|
623
|
-
let
|
|
624
|
-
switch (K.value = !1, (l =
|
|
604
|
+
let c = n;
|
|
605
|
+
switch (K.value = !1, (l = G.value) == null ? void 0 : l.type) {
|
|
625
606
|
case "weekly":
|
|
626
|
-
|
|
607
|
+
c = de(
|
|
627
608
|
n,
|
|
628
|
-
|
|
609
|
+
Y,
|
|
629
610
|
h.value.min,
|
|
630
611
|
h.value.max
|
|
631
|
-
),
|
|
612
|
+
), s.endDate = c;
|
|
632
613
|
break;
|
|
633
614
|
case "monthly":
|
|
634
|
-
|
|
615
|
+
c = $(
|
|
635
616
|
n,
|
|
636
|
-
|
|
617
|
+
Y,
|
|
637
618
|
h.value.min,
|
|
638
619
|
h.value.max
|
|
639
|
-
),
|
|
620
|
+
), s.endDate = c;
|
|
640
621
|
break;
|
|
641
622
|
case "quarterly":
|
|
642
|
-
|
|
623
|
+
c = Q(
|
|
643
624
|
n,
|
|
644
|
-
|
|
625
|
+
Y,
|
|
645
626
|
h.value.min,
|
|
646
627
|
h.value.max
|
|
647
|
-
),
|
|
628
|
+
), s.endDate = c;
|
|
648
629
|
break;
|
|
649
630
|
}
|
|
650
|
-
const d =
|
|
651
|
-
r.endDate =
|
|
652
|
-
|
|
653
|
-
|
|
631
|
+
const d = R(D(c));
|
|
632
|
+
r.endDate = I(d, s.endTime), P(s.startDate) && (r.startDate = I(
|
|
633
|
+
R(D(s.startDate)),
|
|
634
|
+
s.startTime
|
|
654
635
|
));
|
|
655
|
-
const
|
|
636
|
+
const A = pe("startDate");
|
|
656
637
|
r.range = null, t(v.FORM_DATE, {
|
|
657
|
-
startDate:
|
|
638
|
+
startDate: A,
|
|
658
639
|
endDate: d
|
|
659
640
|
}), t(v.INPUT, {
|
|
660
641
|
...r,
|
|
661
642
|
range: k.value
|
|
662
643
|
});
|
|
663
644
|
} else
|
|
664
|
-
K.value = !0, t(v.ERROR, { ...
|
|
665
|
-
},
|
|
666
|
-
if (
|
|
667
|
-
if (
|
|
668
|
-
const l =
|
|
669
|
-
r.endDate =
|
|
645
|
+
K.value = !0, t(v.ERROR, { ...s });
|
|
646
|
+
}, Ie = Ce(Me, a), ra = (n) => {
|
|
647
|
+
if (s.endDate = y.value && W.value ? n : b(n), y.value)
|
|
648
|
+
if (W.value && n) {
|
|
649
|
+
const l = Ne(n);
|
|
650
|
+
r.endDate = I(l, s.endTime), r.range = null, t(v.INPUT, {
|
|
670
651
|
...r,
|
|
671
652
|
range: k.value
|
|
672
653
|
});
|
|
673
654
|
} else
|
|
674
|
-
Me(
|
|
655
|
+
Me(s.endDate);
|
|
675
656
|
else
|
|
676
|
-
|
|
657
|
+
Ie(s.endDate);
|
|
677
658
|
}, sa = (n) => {
|
|
678
|
-
|
|
659
|
+
j(n);
|
|
679
660
|
}, oa = () => {
|
|
680
|
-
t(v.ERROR, { ...
|
|
661
|
+
t(v.ERROR, { ...s });
|
|
681
662
|
}, la = () => {
|
|
682
|
-
const n =
|
|
683
|
-
if (!
|
|
684
|
-
t(v.ERROR, { ...
|
|
663
|
+
const n = s.startTime;
|
|
664
|
+
if (!De(n, s.startDate)) {
|
|
665
|
+
t(v.ERROR, { ...s });
|
|
685
666
|
return;
|
|
686
667
|
}
|
|
687
|
-
r.startDate =
|
|
688
|
-
const l =
|
|
668
|
+
r.startDate = I(r.startDate, n);
|
|
669
|
+
const l = pe("endDate");
|
|
689
670
|
t(v.FORM_DATE, {
|
|
690
671
|
startDate: r.startDate,
|
|
691
672
|
endDate: l,
|
|
692
673
|
startTime: n,
|
|
693
|
-
endTime:
|
|
674
|
+
endTime: s.endTime ?? e.dateFormData.endTime
|
|
694
675
|
}), t(v.INPUT, {
|
|
695
676
|
...r,
|
|
696
677
|
range: k.value
|
|
697
678
|
});
|
|
698
679
|
}, ia = () => {
|
|
699
|
-
t(v.ERROR, { ...
|
|
680
|
+
t(v.ERROR, { ...s });
|
|
700
681
|
}, ua = () => {
|
|
701
|
-
const n =
|
|
702
|
-
if (!
|
|
703
|
-
t(v.ERROR, { ...
|
|
682
|
+
const n = s.endTime;
|
|
683
|
+
if (!De(n, s.endDate)) {
|
|
684
|
+
t(v.ERROR, { ...s });
|
|
704
685
|
return;
|
|
705
686
|
}
|
|
706
|
-
r.endDate =
|
|
687
|
+
r.endDate = I(r.endDate, n), t(v.FORM_DATE, {
|
|
707
688
|
startDate: r.startDate,
|
|
708
689
|
endDate: r.endDate,
|
|
709
|
-
startTime:
|
|
690
|
+
startTime: s.startTime ?? e.dateFormData.startTime,
|
|
710
691
|
endTime: n
|
|
711
692
|
}), t(v.INPUT, {
|
|
712
693
|
...r,
|
|
713
694
|
range: k.value
|
|
714
695
|
});
|
|
715
696
|
}, ca = (n) => {
|
|
716
|
-
|
|
697
|
+
s.startTime = n;
|
|
717
698
|
}, da = (n) => {
|
|
718
|
-
|
|
719
|
-
}, te = (n, l,
|
|
720
|
-
r.startDate = n, r.endDate = l,
|
|
699
|
+
s.endTime = n;
|
|
700
|
+
}, te = (n, l, c, d) => {
|
|
701
|
+
r.startDate = n, r.endDate = l, c && (r.granularity = c), d && (r.range = d);
|
|
721
702
|
}, ma = (n) => {
|
|
722
|
-
var
|
|
723
|
-
const l = (
|
|
703
|
+
var c;
|
|
704
|
+
const l = (c = e.quickSelectRanges) == null ? void 0 : c.find(({ value: d }) => d === n);
|
|
724
705
|
if (l) {
|
|
725
706
|
ee();
|
|
726
|
-
const d = l.data,
|
|
727
|
-
|
|
707
|
+
const d = l.data, A = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : C(new Date(Date.now()))), x = d.isRelativeToNow && d.timeDifference ? new Date(A.getTime() - d.timeDifference) : d.startDate;
|
|
708
|
+
s.endDate = Y(A), s.startDate = Y(x), te(x, A, null, n), e.granularities && (r.granularity = d.granularity || L.value), s.startTime = _(x), s.endTime = _(A), r.startDate = x, r.endDate = A, d.isRelativeToNow && (g.value = {
|
|
728
709
|
...g.value,
|
|
729
710
|
[n]: {
|
|
730
|
-
startDate:
|
|
731
|
-
endDate:
|
|
711
|
+
startDate: x,
|
|
712
|
+
endDate: A
|
|
732
713
|
}
|
|
733
714
|
}), t(v.CUSTOM_RANGE, {
|
|
734
715
|
...l.data,
|
|
735
|
-
startDate:
|
|
736
|
-
endDate:
|
|
716
|
+
startDate: x,
|
|
717
|
+
endDate: A,
|
|
737
718
|
range: l.value
|
|
738
719
|
});
|
|
739
720
|
}
|
|
740
|
-
},
|
|
721
|
+
}, _e = {
|
|
741
722
|
weekly: ce,
|
|
742
723
|
monthly: ue,
|
|
743
724
|
quarterly: T
|
|
@@ -752,37 +733,37 @@ const nt = {
|
|
|
752
733
|
te(q[n].startDate, q[n].endDate, n);
|
|
753
734
|
break;
|
|
754
735
|
}
|
|
755
|
-
const { startDate:
|
|
736
|
+
const { startDate: c, endDate: d } = _e[n](
|
|
756
737
|
r.startDate,
|
|
757
738
|
r.endDate,
|
|
758
739
|
h.value.min,
|
|
759
740
|
h.value.max
|
|
760
741
|
);
|
|
761
|
-
te(
|
|
742
|
+
te(c, d, n);
|
|
762
743
|
break;
|
|
763
744
|
}
|
|
764
745
|
case "daily":
|
|
765
746
|
q.daily && te(q.daily.startDate, q.daily.endDate, n);
|
|
766
747
|
break;
|
|
767
748
|
}
|
|
768
|
-
|
|
749
|
+
s.startDate = Y(r.startDate), s.endDate = Y(r.endDate), t(v.INPUT, {
|
|
769
750
|
...r,
|
|
770
751
|
range: k.value
|
|
771
752
|
});
|
|
772
753
|
}
|
|
773
754
|
}, pa = p(() => ({
|
|
774
|
-
"b-date-range-picker-calendar__form-container--no-calendars":
|
|
755
|
+
"b-date-range-picker-calendar__form-container--no-calendars": S.value
|
|
775
756
|
})), fa = p(() => {
|
|
776
|
-
const n =
|
|
757
|
+
const n = G.value, l = (n == null ? void 0 : n.maxRange) || e.maxRange;
|
|
777
758
|
if (!l)
|
|
778
759
|
return null;
|
|
779
|
-
const
|
|
780
|
-
return z(
|
|
760
|
+
const c = m[(n == null ? void 0 : n.type) ?? "daily"];
|
|
761
|
+
return z(c, l, { count: l });
|
|
781
762
|
});
|
|
782
|
-
return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: f, hasSlot: M, t: B, tc: z, isTouchDevice: y, dateFormat: se, isFormatValid: X, parseDate: D, onKeyDown:
|
|
763
|
+
return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: f, hasSlot: M, t: B, tc: z, isTouchDevice: y, dateFormat: se, isFormatValid: X, parseDate: D, onKeyDown: j, autoFormat: b, formatDateUtil: E, calculatedIsRelativeToNowQuickSelectRanges: g, defaultGranularity: L, hasNoCalendars: S, internalRangeDate: r, selectedRangeSelectorValue: k, formInputWrapperConditionalClasses: oe, quickSelectRangeDefaultItems: le, selectedGranularity: G, granularityItems: ie, getGranularCalendarLimits: Z, computedMinMax: h, adjustDateForQuarterly: T, adjustDateForMonthly: ue, adjustDateForWeekly: ce, adjustStartDateInputForWeekly: U, adjustEndDateInputForWeekly: de, adjustStartDateInputForMonthly: J, adjustEndDateInputForMonthly: $, adjustStartDateInputForQuarterly: w, adjustEndDateInputForQuarterly: Q, savedRanges: q, saveRange: me, resetSavedRanges: ee, formatDate: Y, startDateError: H, endDateError: K, dateTextInput: s, isValidTime: De, isMonthVariant: W, formatNativeDate: u, nativeStartDate: V, nativeEndDate: ae, dateInputType: Ke, startDateValue: Xe, endDateValue: Ze, setTimeInDateRef: I, onDateInput: ea, isValidDate: P, onStartDateSelected: aa, onEndDateSelected: ta, getDate: pe, validateStartDate: ye, validateStartDateDebounced: ke, onStartDateInput: na, validateEndDate: Me, validateEndDateDebounced: Ie, onEndDateInput: ra, onDateInputKeyDown: sa, onStartTimeError: oa, onStartTimeValid: la, onEndTimeError: ia, onEndTimeValid: ua, onStartTimeInput: ca, onEndTimeInput: da, setInternalRange: te, onRangeSelectorInput: ma, adjustDate: _e, onGranularityInput: Da, computedFormContainerClasses: pa, maxRangeMessage: fa, Calendar: N, BentoAlert: Ra, BentoTypography: $e, BentoInputField: Ya, BentoInputTime: Aa, BentoDropdown: ba, BentoSegmentedControl: Ia };
|
|
783
764
|
}
|
|
784
765
|
});
|
|
785
|
-
var
|
|
766
|
+
var nt = function() {
|
|
786
767
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
787
768
|
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() {
|
|
788
769
|
return [t._v(" " + t._s(a.maxRangeMessage) + " ")];
|
|
@@ -791,15 +772,15 @@ var ot = function() {
|
|
|
791
772
|
}, proxy: !0 }], null, !0) }), t.allowTimeInput ? e(a.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeFrom"), "model-value": a.dateTextInput.startTime }, on: { "update:model-value": a.onStartTimeInput, "input:error": a.onStartTimeError, "input:valid": a.onStartTimeValid } }) : t._e()], 1)], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" To ")]), e("div", { class: a.formInputWrapperConditionalClasses }, [e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("dateTo"), "model-value": a.endDateValue, error: a.endDateError, type: a.dateInputType }, on: { "update:model-value": a.onEndDateInput, keydown: a.onDateInputKeyDown }, scopedSlots: t._u([a.isTouchDevice ? null : { key: "description", fn: function() {
|
|
792
773
|
return [t._v(t._s(a.t(a.dateFormat)))];
|
|
793
774
|
}, proxy: !0 }], null, !0) }), t.allowTimeInput ? e(a.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeTo"), "model-value": a.dateTextInput.endTime }, on: { "update:model-value": a.onEndTimeInput, "input:error": a.onEndTimeError, "input:valid": a.onEndTimeValid } }) : t._e()], 1)], 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, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1) : t._e()]);
|
|
794
|
-
},
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
775
|
+
}, rt = [], st = /* @__PURE__ */ He(
|
|
776
|
+
tt,
|
|
777
|
+
nt,
|
|
778
|
+
rt,
|
|
798
779
|
!1,
|
|
799
780
|
null,
|
|
800
|
-
"
|
|
781
|
+
"4f97c782"
|
|
801
782
|
);
|
|
802
|
-
const
|
|
783
|
+
const ot = st.exports, lt = {
|
|
803
784
|
"de-DE": {
|
|
804
785
|
apply: "Anwenden",
|
|
805
786
|
cancel: "Abbrechen",
|
|
@@ -894,56 +875,56 @@ const ut = it.exports, ct = {
|
|
|
894
875
|
apply: "应用",
|
|
895
876
|
cancel: "取消",
|
|
896
877
|
dateRangePicker: "日期范围选择器 {name}",
|
|
897
|
-
provideDateInAFormat: "
|
|
878
|
+
provideDateInAFormat: "提供年-月-日格式的日期",
|
|
898
879
|
quarter: "{year} {quarter} 季度",
|
|
899
880
|
selectDate: "选择日期",
|
|
900
881
|
selectDateRange: "选择日期范围",
|
|
901
882
|
selectedDateIsNotAvailable: "所选日期不可用"
|
|
902
883
|
}
|
|
903
|
-
},
|
|
904
|
-
datePickerValue:
|
|
884
|
+
}, it = ({
|
|
885
|
+
datePickerValue: o,
|
|
905
886
|
isDateIncorrect: t,
|
|
906
887
|
quickSelectRanges: e,
|
|
907
888
|
isMonthVariant: a,
|
|
908
889
|
withTimeInput: i,
|
|
909
890
|
placeholder: m
|
|
910
891
|
}) => {
|
|
911
|
-
const { locale: f, t: M } = Ae(), { dateToInputDateString: B } = be(), z = (D) => !!D && !isNaN(D.getTime()), y =
|
|
892
|
+
const { locale: f, t: M } = Ae(), { dateToInputDateString: B } = be(), z = (D) => !!D && !isNaN(D.getTime()), y = ve({
|
|
912
893
|
startDate: null,
|
|
913
894
|
endDate: null,
|
|
914
895
|
startTime: null,
|
|
915
896
|
endTime: null
|
|
916
897
|
});
|
|
917
|
-
return
|
|
918
|
-
|
|
898
|
+
return fe(
|
|
899
|
+
o,
|
|
919
900
|
(D) => {
|
|
920
|
-
y.startDate = B(D == null ? void 0 : D.startDate), y.endDate = B(D == null ? void 0 : D.endDate), y.startTime =
|
|
901
|
+
y.startDate = B(D == null ? void 0 : D.startDate), y.endDate = B(D == null ? void 0 : D.endDate), y.startTime = _(D == null ? void 0 : D.startDate), y.endTime = _(D == null ? void 0 : D.endDate);
|
|
921
902
|
},
|
|
922
903
|
{ immediate: !0 }
|
|
923
904
|
), {
|
|
924
905
|
// Values
|
|
925
906
|
dateDisplayValue: p(() => {
|
|
926
|
-
var
|
|
907
|
+
var j;
|
|
927
908
|
if (t.value)
|
|
928
909
|
return `${y.startDate || ""} - ${y.endDate || ""}`;
|
|
929
|
-
if (!
|
|
910
|
+
if (!o.value || !o.value.startDate && !o.value.endDate)
|
|
930
911
|
return (m == null ? void 0 : m.value) || M("selectDateRange");
|
|
931
|
-
if ((
|
|
912
|
+
if ((j = e.value) != null && j.length) {
|
|
932
913
|
const b = e.value.find(({ value: E }) => {
|
|
933
914
|
var g;
|
|
934
|
-
return E === ((g =
|
|
915
|
+
return E === ((g = o.value) == null ? void 0 : g.range);
|
|
935
916
|
});
|
|
936
917
|
if (b)
|
|
937
918
|
return b.label;
|
|
938
919
|
}
|
|
939
|
-
if (
|
|
940
|
-
const { startDate: b, endDate: E } =
|
|
920
|
+
if (o.value.granularity === "quarterly") {
|
|
921
|
+
const { startDate: b, endDate: E } = o.value, g = M("quarter", { quarter: ze(b), year: Ge(b) });
|
|
941
922
|
if (Ha(b, E))
|
|
942
923
|
return g;
|
|
943
|
-
const
|
|
944
|
-
return `${g} - ${
|
|
924
|
+
const L = M("quarter", { quarter: ze(E), year: Ge(E) });
|
|
925
|
+
return `${g} - ${L}`;
|
|
945
926
|
}
|
|
946
|
-
if (!z(
|
|
927
|
+
if (!z(o.value.startDate) || !z(o.value.endDate))
|
|
947
928
|
return `${y.startDate || ""} - ${y.endDate || ""}`;
|
|
948
929
|
let D = a != null && a.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
|
|
949
930
|
return i.value && (D = {
|
|
@@ -953,20 +934,20 @@ const ut = it.exports, ct = {
|
|
|
953
934
|
second: "numeric",
|
|
954
935
|
hour12: !1
|
|
955
936
|
}), za(f.value, D).formatRange(
|
|
956
|
-
|
|
957
|
-
|
|
937
|
+
o.value.startDate,
|
|
938
|
+
o.value.endDate
|
|
958
939
|
);
|
|
959
940
|
}),
|
|
960
941
|
textInputDisplayValue: y,
|
|
961
942
|
// Methods
|
|
962
943
|
formatTextInputDisplayValue: () => ""
|
|
963
944
|
};
|
|
964
|
-
},
|
|
965
|
-
i18n: { messages:
|
|
945
|
+
}, ut = {
|
|
946
|
+
i18n: { messages: lt },
|
|
966
947
|
name: "bento-date-range-picker",
|
|
967
948
|
model: { prop: "modelValue" }
|
|
968
|
-
},
|
|
969
|
-
...
|
|
949
|
+
}, ct = /* @__PURE__ */ Ue({
|
|
950
|
+
...ut,
|
|
970
951
|
props: {
|
|
971
952
|
description: { default: void 0 },
|
|
972
953
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -993,8 +974,8 @@ const ut = it.exports, ct = {
|
|
|
993
974
|
hasActions: { type: Boolean, default: !1 }
|
|
994
975
|
},
|
|
995
976
|
emits: ["update:model-value", "input"],
|
|
996
|
-
setup(
|
|
997
|
-
const e =
|
|
977
|
+
setup(o, { emit: t }) {
|
|
978
|
+
const e = o, a = ga(), { t: i } = Ae(), { dateToInputDateString: m } = be(), f = ne("bento-date-range-picker-container"), M = ne("bento-date-range-picker-label"), B = ne("bento-date-range-picker-description"), z = ne("bento-date-range-picker-error"), y = ne("bento-date-range-picker-date-error"), se = p(() => e.label || i("dateRangePicker", { name: f })), { resolvedFirstDayOfWeek: X } = Sa(he(e, "firstDayOfWeek")), D = ya({
|
|
998
979
|
none: 0,
|
|
999
980
|
one: 710,
|
|
1000
981
|
// width of date range picker with one panes
|
|
@@ -1002,37 +983,37 @@ const ut = it.exports, ct = {
|
|
|
1002
983
|
// width of date range picker with two panes
|
|
1003
984
|
three: 1290
|
|
1004
985
|
// width of date range picker with three panes
|
|
1005
|
-
}),
|
|
1006
|
-
const
|
|
986
|
+
}), j = p(() => {
|
|
987
|
+
const u = D.active().value, V = {
|
|
1007
988
|
none: 0,
|
|
1008
989
|
one: 1,
|
|
1009
990
|
two: 2
|
|
1010
991
|
};
|
|
1011
|
-
if (
|
|
1012
|
-
const ae =
|
|
992
|
+
if (u in V) {
|
|
993
|
+
const ae = V[u];
|
|
1013
994
|
return e.numberOfMonths === void 0 ? ae : Math.min(e.numberOfMonths, ae);
|
|
1014
995
|
}
|
|
1015
996
|
return e.numberOfMonths;
|
|
1016
|
-
}), b = p(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((
|
|
1017
|
-
const
|
|
997
|
+
}), b = p(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((u) => {
|
|
998
|
+
const V = u.data.endDate ? void 0 : new Date(Date.now()).getTime() - u.data.startDate.getTime();
|
|
1018
999
|
return {
|
|
1019
|
-
...
|
|
1000
|
+
...u,
|
|
1020
1001
|
data: {
|
|
1021
|
-
...
|
|
1002
|
+
...u.data,
|
|
1022
1003
|
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
1023
|
-
timeDifference:
|
|
1004
|
+
timeDifference: V
|
|
1024
1005
|
}
|
|
1025
1006
|
};
|
|
1026
|
-
})), E = p(() => e.label ? M : (a == null ? void 0 : a["aria-labelledby"]) ?? null), g = O(!1),
|
|
1027
|
-
|
|
1007
|
+
})), E = p(() => e.label ? M : (a == null ? void 0 : a["aria-labelledby"]) ?? null), g = O(!1), L = O(null), S = O(!1), { isReadOnly: r } = La(he(e, "readonly")), { emitValue: k } = Ga(t);
|
|
1008
|
+
fe(
|
|
1028
1009
|
() => e.disabled,
|
|
1029
1010
|
() => {
|
|
1030
|
-
e.disabled &&
|
|
1011
|
+
e.disabled && S.value && (S.value = !1);
|
|
1031
1012
|
}
|
|
1032
1013
|
);
|
|
1033
|
-
const oe = p(() => e.modelValue || e.value), le = p(() => e.hasActions ? !Q.value && g.value : g.value),
|
|
1014
|
+
const oe = p(() => e.modelValue || e.value), le = p(() => e.hasActions ? !Q.value && g.value : g.value), G = p(() => ({
|
|
1034
1015
|
"b-date-range-picker__description--error": !!e.errorMessage || le.value
|
|
1035
|
-
})), ie = p(() => e.variant === "month"), Z = p(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: h, textInputDisplayValue: T, formatTextInputDisplayValue: ue } =
|
|
1016
|
+
})), ie = p(() => e.variant === "month"), Z = p(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: h, textInputDisplayValue: T, formatTextInputDisplayValue: ue } = it({
|
|
1036
1017
|
datePickerValue: oe,
|
|
1037
1018
|
isDateIncorrect: g,
|
|
1038
1019
|
quickSelectRanges: b,
|
|
@@ -1042,9 +1023,9 @@ const ut = it.exports, ct = {
|
|
|
1042
1023
|
}), ce = p(
|
|
1043
1024
|
() => `${e.description ? B : ""} ${e.errorMessage ? z : ""} ${g.value ? y : ""}`.trim() || null
|
|
1044
1025
|
), U = () => {
|
|
1045
|
-
|
|
1026
|
+
S.value = !1;
|
|
1046
1027
|
}, de = () => {
|
|
1047
|
-
|
|
1028
|
+
S.value = !0;
|
|
1048
1029
|
}, J = O(h.value), $ = O(
|
|
1049
1030
|
// textInputDisplayValue is a reactive object
|
|
1050
1031
|
structuredClone(Ye(T))
|
|
@@ -1054,18 +1035,18 @@ const ut = it.exports, ct = {
|
|
|
1054
1035
|
() => e.hasActions ? J.value : h.value
|
|
1055
1036
|
);
|
|
1056
1037
|
Je(() => {
|
|
1057
|
-
if (e.hasActions ||
|
|
1038
|
+
if (e.hasActions || we(
|
|
1058
1039
|
'BentoDateRangePicker "hasActions" property',
|
|
1059
1040
|
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
1060
1041
|
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
1061
1042
|
"2.0.0"
|
|
1062
|
-
), e.value &&
|
|
1043
|
+
), e.value && we(
|
|
1063
1044
|
'BentoDateRangePicker "value" property',
|
|
1064
1045
|
'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
|
|
1065
1046
|
"2.0.0"
|
|
1066
|
-
), e.granularities && e.variant !== "month" && e.granularities.find(({ type:
|
|
1047
|
+
), e.granularities && e.variant !== "month" && e.granularities.find(({ type: u }) => u === "quarterly"))
|
|
1067
1048
|
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
1068
|
-
}),
|
|
1049
|
+
}), fe([() => e.value, () => e.modelValue], () => {
|
|
1069
1050
|
J.value = h.value, $.value = structuredClone(Ye(T));
|
|
1070
1051
|
});
|
|
1071
1052
|
const ee = p(() => [
|
|
@@ -1081,32 +1062,32 @@ const ut = it.exports, ct = {
|
|
|
1081
1062
|
event: U
|
|
1082
1063
|
}
|
|
1083
1064
|
]);
|
|
1084
|
-
return
|
|
1065
|
+
return fe(w, (u) => {
|
|
1085
1066
|
if (e.hasActions) {
|
|
1086
1067
|
Q.value = g.value;
|
|
1087
1068
|
return;
|
|
1088
1069
|
}
|
|
1089
|
-
k(
|
|
1090
|
-
}), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: f, labelId: M, descriptionId: B, errorId: z, dateErrorId: y, popoverAriaLabel: se, resolvedFirstDayOfWeek: X, breakpoints: D, computedNumberOfMonths:
|
|
1091
|
-
g.value = !1, T.startDate = m(
|
|
1070
|
+
k(u);
|
|
1071
|
+
}), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: f, labelId: M, descriptionId: B, errorId: z, dateErrorId: y, popoverAriaLabel: se, resolvedFirstDayOfWeek: X, breakpoints: D, computedNumberOfMonths: j, adjustedQuickSelectRanges: b, dropdownInputAriaLabelledBy: E, isDateIncorrect: g, inputContainerRef: L, isDateRangePickerOpen: S, isReadOnly: r, emitValue: k, internalModelValue: oe, shouldDisplayError: le, descriptionConditionalClasses: G, isMonthVariant: ie, withTimeInput: Z, dateDisplayValue: h, textInputDisplayValue: T, formatTextInputDisplayValue: ue, ariaDescribedBy: ce, closeDateRangePicker: U, openDateRangePicker: de, localDateDisplayValue: J, localTextInputDisplayValue: $, selectedDate: w, isApplyDisabled: Q, displayedTextInputValue: q, displayedDateValue: me, rangePickerButtonActions: ee, onDateRangePickerInput: (u) => {
|
|
1072
|
+
g.value = !1, T.startDate = m(u.startDate), T.endDate = m(u.endDate), T.startTime = _(u.startDate), T.endTime = _(u.endDate), w.value = u;
|
|
1092
1073
|
}, clearDateRangePickerValue: async () => {
|
|
1093
1074
|
g.value && (g.value = !1), w.value = null;
|
|
1094
1075
|
}, onEnterPressedOverInput: () => {
|
|
1095
|
-
if (!
|
|
1096
|
-
|
|
1076
|
+
if (!S.value) {
|
|
1077
|
+
S.value = !0;
|
|
1097
1078
|
return;
|
|
1098
1079
|
}
|
|
1099
|
-
g.value || (
|
|
1100
|
-
}, onDateRangePickerFormDateInputUpdate: (
|
|
1101
|
-
g.value = !1,
|
|
1102
|
-
}, onDateRangePickerError: (
|
|
1103
|
-
g.value = !0, T.startDate =
|
|
1104
|
-
}, onRangeSelectorInput: (
|
|
1105
|
-
|
|
1106
|
-
}, BentoButtonActions: Ta, BentoButtonActionsLayout: $a, BentoDivider: Ma, BentoPopover: ha, BentoTypography: $e, DateRangePickerCalendar:
|
|
1080
|
+
g.value || (S.value = !1);
|
|
1081
|
+
}, onDateRangePickerFormDateInputUpdate: (u) => {
|
|
1082
|
+
g.value = !1, u.startTime && (T.startTime = u.startTime), u.endTime && (T.endTime = u.endTime);
|
|
1083
|
+
}, onDateRangePickerError: (u) => {
|
|
1084
|
+
g.value = !0, T.startDate = u.startDate, T.endDate = u.endDate, w.value = { startDate: null, endDate: null };
|
|
1085
|
+
}, onRangeSelectorInput: (u) => {
|
|
1086
|
+
u && (T.startDate = m(u.startDate), T.endDate = m(u.endDate), T.startTime = _(u.startDate), T.endTime = _(u.endDate), w.value = u);
|
|
1087
|
+
}, BentoButtonActions: Ta, BentoButtonActionsLayout: $a, BentoDivider: Ma, BentoPopover: ha, BentoTypography: $e, DateRangePickerCalendar: ot, DropdownInputDefault: ka, ErrorMessage: Ja, FieldLabel: Ua, vBentoClickOutsideDirective: Va };
|
|
1107
1088
|
}
|
|
1108
1089
|
});
|
|
1109
|
-
var
|
|
1090
|
+
var dt = function() {
|
|
1110
1091
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
1111
1092
|
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) {
|
|
1112
1093
|
return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
|
|
@@ -1115,19 +1096,19 @@ var pt = function() {
|
|
|
1115
1096
|
} } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.internalModelValue, "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 }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([t.hasActions ? { key: "actions", fn: function() {
|
|
1116
1097
|
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)];
|
|
1117
1098
|
}, proxy: !0 } : null], null, !0) })], 1) : t._e()], 1);
|
|
1118
|
-
},
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1099
|
+
}, mt = [], Dt = /* @__PURE__ */ He(
|
|
1100
|
+
ct,
|
|
1101
|
+
dt,
|
|
1102
|
+
mt,
|
|
1122
1103
|
!1,
|
|
1123
1104
|
null,
|
|
1124
1105
|
"fbf1b83e"
|
|
1125
1106
|
);
|
|
1126
|
-
const
|
|
1107
|
+
const Lt = Dt.exports;
|
|
1127
1108
|
export {
|
|
1128
|
-
|
|
1129
|
-
|
|
1109
|
+
Lt as B,
|
|
1110
|
+
ot as D,
|
|
1130
1111
|
Ka as a,
|
|
1131
1112
|
Te as i
|
|
1132
1113
|
};
|
|
1133
|
-
//# sourceMappingURL=date-range-picker.
|
|
1114
|
+
//# sourceMappingURL=date-range-picker.gfRJmzXn.js.map
|