@adyen/bento-vue2 1.47.1 → 1.49.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 +4 -0
- package/dist/@types/index.d.ts +541 -267
- package/dist/action-bar.js +1 -1
- package/dist/alert.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/card.css +1 -1
- package/dist/assets/chip.css +1 -0
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -0
- 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/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid-item-custom.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 +5 -0
- package/dist/chip.js.map +1 -0
- package/dist/chunks/{action-bar.EcN2I7Az.js → action-bar.pYOeP8WX.js} +6 -6
- package/dist/chunks/{action-bar.EcN2I7Az.js.map → action-bar.pYOeP8WX.js.map} +1 -1
- package/dist/chunks/{alert.BRN8cpXl.js → alert.hiTIDSeX.js} +2 -2
- package/dist/chunks/{alert.BRN8cpXl.js.map → alert.hiTIDSeX.js.map} +1 -1
- package/dist/chunks/{base-modal.BgTZ8iQ6.js → base-modal.8kcvtFRx.js} +5 -5
- package/dist/chunks/{base-modal.BgTZ8iQ6.js.map → base-modal.8kcvtFRx.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.C8EjGVCT.js → button-actions-with-menu.BxWulRXh.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.C8EjGVCT.js.map → button-actions-with-menu.BxWulRXh.js.map} +1 -1
- package/dist/chunks/{button-actions.BU173IFE.js → button-actions.BovYBINL.js} +2 -2
- package/dist/chunks/{button-actions.BU173IFE.js.map → button-actions.BovYBINL.js.map} +1 -1
- package/dist/chunks/{button.BX6ZJxF7.js → button.CdAFZa4V.js} +2 -2
- package/dist/chunks/{button.BX6ZJxF7.js.map → button.CdAFZa4V.js.map} +1 -1
- package/dist/chunks/{calendar.DlOcbH6E.js → calendar.Bb0-Svhx.js} +4 -4
- package/dist/chunks/{calendar.DlOcbH6E.js.map → calendar.Bb0-Svhx.js.map} +1 -1
- package/dist/chunks/{card.DoyCGJay.js → card.D-w9c3-n.js} +2 -2
- package/dist/chunks/{card.DoyCGJay.js.map → card.D-w9c3-n.js.map} +1 -1
- package/dist/chunks/{checkbox-group.k7Au5RP-.js → checkbox-group.4TiIcnc7.js} +4 -4
- package/dist/chunks/{checkbox-group.k7Au5RP-.js.map → checkbox-group.4TiIcnc7.js.map} +1 -1
- package/dist/chunks/{checkbox.Beyvm7Oh.js → checkbox.CE9NdY0R.js} +4 -4
- package/dist/chunks/{checkbox.Beyvm7Oh.js.map → checkbox.CE9NdY0R.js.map} +1 -1
- package/dist/chunks/chip.HNUA9VZl.js +63 -0
- package/dist/chunks/chip.HNUA9VZl.js.map +1 -0
- package/dist/chunks/{code-snippet.BDgd8txq.js → code-snippet.DSsZWtwa.js} +7 -7
- package/dist/chunks/{code-snippet.BDgd8txq.js.map → code-snippet.DSsZWtwa.js.map} +1 -1
- package/dist/chunks/{codemirror.0fz2cWJS.js → codemirror.Zv80n3Z2.js} +13 -14
- package/dist/chunks/{codemirror.0fz2cWJS.js.map → codemirror.Zv80n3Z2.js.map} +1 -1
- package/dist/chunks/{controls-group.C3RDqB9H.js → controls-group.BnDPMaGI.js} +2 -2
- package/dist/chunks/{controls-group.C3RDqB9H.js.map → controls-group.BnDPMaGI.js.map} +1 -1
- package/dist/chunks/{copy.BuMSGw23.js → copy.DMlIj53I.js} +4 -4
- package/dist/chunks/{copy.BuMSGw23.js.map → copy.DMlIj53I.js.map} +1 -1
- package/dist/chunks/{country.2-ZtYkh7.js → country.Df7erZov.js} +22 -21
- package/dist/chunks/{country.2-ZtYkh7.js.map → country.Df7erZov.js.map} +1 -1
- package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
- package/dist/chunks/{currency.BmI4Sqy5.js → currency.B1F9YOIx.js} +2 -2
- package/dist/chunks/currency.B1F9YOIx.js.map +1 -0
- package/dist/chunks/{dashboard-section.COWO5SVw.js → dashboard-section.DzMn8yDZ.js} +4 -4
- package/dist/chunks/{dashboard-section.COWO5SVw.js.map → dashboard-section.DzMn8yDZ.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BEAEmTCb.js → dashed-underline.COTMts4l.js} +3 -3
- package/dist/chunks/{dashed-underline.BEAEmTCb.js.map → dashed-underline.COTMts4l.js.map} +1 -1
- package/dist/chunks/{data-grid-template.vBl7u2cB.js → data-grid-template.BPBneEHq.js} +3 -3
- package/dist/chunks/{data-grid-template.vBl7u2cB.js.map → data-grid-template.BPBneEHq.js.map} +1 -1
- package/dist/chunks/{data-grid.CjtvBoki.js → data-grid.iqFUbiZy.js} +984 -973
- package/dist/chunks/data-grid.iqFUbiZy.js.map +1 -0
- package/dist/chunks/{date-picker.Bym2OEd9.js → date-picker.C68IAqHR.js} +5 -5
- package/dist/chunks/{date-picker.Bym2OEd9.js.map → date-picker.C68IAqHR.js.map} +1 -1
- package/dist/chunks/date-range-picker.dcQRDNS7.js +884 -0
- package/dist/chunks/date-range-picker.dcQRDNS7.js.map +1 -0
- package/dist/chunks/{date.1zs9CRhw.js → date.YLIcAerL.js} +69 -1
- package/dist/chunks/{date.1zs9CRhw.js.map → date.YLIcAerL.js.map} +1 -1
- package/dist/chunks/{dialog-page.DcJ7LaOE.js → dialog-page.Bf07JxdG.js} +2 -2
- package/dist/chunks/{dialog-page.DcJ7LaOE.js.map → dialog-page.Bf07JxdG.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DiOkEmGh.js → dropdown-tag.DhENnOHT.js} +6 -6
- package/dist/chunks/{dropdown-tag.DiOkEmGh.js.map → dropdown-tag.DhENnOHT.js.map} +1 -1
- package/dist/chunks/{dropdown.ndl5cKe0.js → dropdown.BBHNOorv.js} +6 -6
- package/dist/chunks/{dropdown.ndl5cKe0.js.map → dropdown.BBHNOorv.js.map} +1 -1
- package/dist/chunks/{empty-state.1TyzB5ju.js → empty-state.BnHTBgKG.js} +2 -2
- package/dist/chunks/{empty-state.1TyzB5ju.js.map → empty-state.BnHTBgKG.js.map} +1 -1
- package/dist/chunks/{error-message.Da-p1QIA.js → error-message.xTNEaNn8.js} +2 -2
- package/dist/chunks/{error-message.Da-p1QIA.js.map → error-message.xTNEaNn8.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.DVyryYaq.js → file-uploader.mLUYQnz1.js} +325 -316
- package/dist/chunks/{file-uploader.DVyryYaq.js.map → file-uploader.mLUYQnz1.js.map} +1 -1
- package/dist/chunks/{filter-bar.ClRwHFxl.js → filter-bar.CFcu6P8H.js} +105 -108
- package/dist/chunks/filter-bar.CFcu6P8H.js.map +1 -0
- package/dist/chunks/{fixed-scroller.IPM3AzHS.js → fixed-scroller.DX2YUuoU.js} +2 -2
- package/dist/chunks/{fixed-scroller.IPM3AzHS.js.map → fixed-scroller.DX2YUuoU.js.map} +1 -1
- package/dist/chunks/{focus-trap.CGypVwG6.js → focus-trap._RrLaKlq.js} +6 -3
- package/dist/chunks/{focus-trap.CGypVwG6.js.map → focus-trap._RrLaKlq.js.map} +1 -1
- package/dist/chunks/{footer-actions.Cbe_YLjP.js → footer-actions.BsoofCrv.js} +3 -3
- package/dist/chunks/{footer-actions.Cbe_YLjP.js.map → footer-actions.BsoofCrv.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Xdsi84v2.js → form-layout-title.CJbgfh3P.js} +2 -2
- package/dist/chunks/{form-layout-title.Xdsi84v2.js.map → form-layout-title.CJbgfh3P.js.map} +1 -1
- package/dist/chunks/get-slot-text.BQS5Olxm.js +12 -0
- package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -0
- package/dist/chunks/{header.BIZTUAJE.js → header.BeS6ktqU.js} +4 -4
- package/dist/chunks/{header.BIZTUAJE.js.map → header.BeS6ktqU.js.map} +1 -1
- package/dist/chunks/{index.D8ivUe7P.js → index.CU8GKq4C.js} +8 -7
- package/dist/chunks/{index.D8ivUe7P.js.map → index.CU8GKq4C.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.Bly2e0uy.js → info-icon-with-popover.yeIoJzhj.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.Bly2e0uy.js.map → info-icon-with-popover.yeIoJzhj.js.map} +1 -1
- package/dist/chunks/{info-icon.0d0GzDe2.js → info-icon.C4_l0WAf.js} +3 -3
- package/dist/chunks/{info-icon.0d0GzDe2.js.map → info-icon.C4_l0WAf.js.map} +1 -1
- package/dist/chunks/{input-field-password.DEW15Tfy.js → input-field-password.Dez8haIj.js} +6 -6
- package/dist/chunks/{input-field-password.DEW15Tfy.js.map → input-field-password.Dez8haIj.js.map} +1 -1
- package/dist/chunks/input-field-phone-number.CPTonsjM.js +3098 -0
- package/dist/chunks/input-field-phone-number.CPTonsjM.js.map +1 -0
- package/dist/chunks/{input-field.DUf6qDBc.js → input-field.lEMEBT7J.js} +32 -27
- package/dist/chunks/input-field.lEMEBT7J.js.map +1 -0
- package/dist/chunks/inspector.types.BtgXpTC7.js +101 -0
- package/dist/chunks/inspector.types.BtgXpTC7.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.Clz1jOaA.js → keyboard-navigation.pB8weElW.js} +2 -1
- package/dist/chunks/{keyboard-navigation.Clz1jOaA.js.map → keyboard-navigation.pB8weElW.js.map} +1 -1
- package/dist/chunks/{layout-row.BfS-cPky.js → layout-row.CHwDU8yK.js} +7 -7
- package/dist/chunks/{layout-row.BfS-cPky.js.map → layout-row.CHwDU8yK.js.map} +1 -1
- package/dist/chunks/{link.UOEUR35A.js → link.DZlbzVSB.js} +35 -28
- package/dist/chunks/link.DZlbzVSB.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.Co0ycEdQ.js → listbox-option-tag.BJBWnC2r.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Co0ycEdQ.js.map → listbox-option-tag.BJBWnC2r.js.map} +1 -1
- package/dist/chunks/{menu.Dq7RlryT.js → menu.lbODB0y3.js} +3 -3
- package/dist/chunks/{menu.Dq7RlryT.js.map → menu.lbODB0y3.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CfrgVR_K.js → modal-fullscreen.Dz3kSuTz.js} +5 -5
- package/dist/chunks/{modal-fullscreen.CfrgVR_K.js.map → modal-fullscreen.Dz3kSuTz.js.map} +1 -1
- package/dist/chunks/{modal.CuUUMIU_.js → modal.DV55hSPn.js} +5 -5
- package/dist/chunks/{modal.CuUUMIU_.js.map → modal.DV55hSPn.js.map} +1 -1
- package/dist/chunks/{pagination.H-13o3aM.js → pagination.CuJ-P2bO.js} +3 -3
- package/dist/chunks/{pagination.H-13o3aM.js.map → pagination.CuJ-P2bO.js.map} +1 -1
- package/dist/chunks/{payment-method.UaERFtej.js → payment-method.BKr_q5cZ.js} +2 -2
- package/dist/chunks/{payment-method.UaERFtej.js.map → payment-method.BKr_q5cZ.js.map} +1 -1
- package/dist/chunks/{popover.nev0GndY.js → popover.BQGNMbQN.js} +4 -4
- package/dist/chunks/{popover.nev0GndY.js.map → popover.BQGNMbQN.js.map} +1 -1
- package/dist/chunks/{popper-container.B1iB2ovW.js → popper-container.CsW4R0-t.js} +2 -2
- package/dist/chunks/{popper-container.B1iB2ovW.js.map → popper-container.CsW4R0-t.js.map} +1 -1
- package/dist/chunks/{promo-banner.BXtIM4C9.js → promo-banner.BNXfyv3h.js} +7 -7
- package/dist/chunks/{promo-banner.BXtIM4C9.js.map → promo-banner.BNXfyv3h.js.map} +1 -1
- package/dist/chunks/{radio-group.D1q0VKvv.js → radio-group.CUgib4vp.js} +5 -5
- package/dist/chunks/{radio-group.D1q0VKvv.js.map → radio-group.CUgib4vp.js.map} +1 -1
- package/dist/chunks/{search-bar.2uugiaDY.js → search-bar.Dk-GuqgF.js} +3 -3
- package/dist/chunks/{search-bar.2uugiaDY.js.map → search-bar.Dk-GuqgF.js.map} +1 -1
- package/dist/chunks/{secondary-nav.sknezArI.js → secondary-nav.DC2GrGaQ.js} +3 -3
- package/dist/chunks/{secondary-nav.sknezArI.js.map → secondary-nav.DC2GrGaQ.js.map} +1 -1
- package/dist/chunks/{segmented-control.DL0W7lJ_.js → segmented-control.BxCcPbKd.js} +18 -17
- package/dist/chunks/segmented-control.BxCcPbKd.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.usHcqYKO.js → selection-card-group.B-YY-iKp.js} +4 -4
- package/dist/chunks/{selection-card-group.usHcqYKO.js.map → selection-card-group.B-YY-iKp.js.map} +1 -1
- package/dist/chunks/{sidepanel.D-KuHnwI.js → sidepanel.Dp6dKRnq.js} +5 -5
- package/dist/chunks/{sidepanel.D-KuHnwI.js.map → sidepanel.Dp6dKRnq.js.map} +1 -1
- package/dist/chunks/{step.BsIdWhaZ.js → step.DrP2Frvn.js} +2 -2
- package/dist/chunks/{step.BsIdWhaZ.js.map → step.DrP2Frvn.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Dk8Z-FPn.js → structured-list-item.DrY71Ndc.js} +5 -5
- package/dist/chunks/{structured-list-item.Dk8Z-FPn.js.map → structured-list-item.DrY71Ndc.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.atXX3GY9.js → summary-grid-item-custom.CXs6AMS4.js} +109 -104
- package/dist/chunks/summary-grid-item-custom.CXs6AMS4.js.map +1 -0
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js +6 -0
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
- package/dist/chunks/{tabs.9kObZry9.js → tabs.5zgaD1k3.js} +2 -2
- package/dist/chunks/{tabs.9kObZry9.js.map → tabs.5zgaD1k3.js.map} +1 -1
- package/dist/chunks/{tag.-YNhsBv7.js → tag.CevG31iQ.js} +3 -3
- package/dist/chunks/{tag.-YNhsBv7.js.map → tag.CevG31iQ.js.map} +1 -1
- package/dist/chunks/{textarea.BVzGn3zO.js → textarea.DHbXaxdU.js} +3 -3
- package/dist/chunks/{textarea.BVzGn3zO.js.map → textarea.DHbXaxdU.js.map} +1 -1
- package/dist/chunks/{timeline-item.D_YNHlRi.js → timeline-item.C4HOsaEG.js} +8 -8
- package/dist/chunks/{timeline-item.D_YNHlRi.js.map → timeline-item.C4HOsaEG.js.map} +1 -1
- package/dist/chunks/{toast.DgJbW9CL.js → toast.C5I7Wsfa.js} +2 -2
- package/dist/chunks/{toast.DgJbW9CL.js.map → toast.C5I7Wsfa.js.map} +1 -1
- package/dist/chunks/{toggle-button.Cf8C7p6e.js → toggle-button.BX_9vB0d.js} +2 -2
- package/dist/chunks/{toggle-button.Cf8C7p6e.js.map → toggle-button.BX_9vB0d.js.map} +1 -1
- package/dist/chunks/{toggle.CnS7qszG.js → toggle.CyaY0U0K.js} +2 -2
- package/dist/chunks/{toggle.CnS7qszG.js.map → toggle.CyaY0U0K.js.map} +1 -1
- package/dist/chunks/{tooltip.R2sqydIE.js → tooltip.Bu8o7uyZ.js} +2 -2
- package/dist/chunks/{tooltip.R2sqydIE.js.map → tooltip.Bu8o7uyZ.js.map} +1 -1
- package/dist/chunks/truncate.BfIl_-71.js +8 -0
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
- package/dist/chunks/{tutorial.cQXPvqV4.js → tutorial.BWWTUI9f.js} +5 -5
- package/dist/chunks/{tutorial.cQXPvqV4.js.map → tutorial.BWWTUI9f.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.nHAjK6Nj.js → use-cached-selected-values.C5gHa-dC.js} +5 -5
- package/dist/chunks/{use-cached-selected-values.nHAjK6Nj.js.map → use-cached-selected-values.C5gHa-dC.js.map} +1 -1
- package/dist/chunks/use-country-items.HFnjuDsG.js +30 -0
- package/dist/chunks/{use-country-items.eWARMT6I.js.map → use-country-items.HFnjuDsG.js.map} +1 -1
- package/dist/chunks/{country.types.CLjbulKL.js → use-country-phon-code.DVgE19zT.js} +497 -761
- package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +7 -6
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.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 +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +218 -213
- 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 +5 -0
- package/dist/input-field-phone-number.js.map +1 -0
- package/dist/input-field.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/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.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 +16 -1
- package/dist/styles/bento-light.css +16 -1
- package/dist/styles/bento.css +16 -1
- package/dist/styles/legacy.css +15 -0
- package/dist/styles/styleguide.css +16 -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/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +293 -7
- package/package.json +7 -6
- package/dist/chunks/country.types.CLjbulKL.js.map +0 -1
- package/dist/chunks/currency.BmI4Sqy5.js.map +0 -1
- package/dist/chunks/data-grid.CjtvBoki.js.map +0 -1
- package/dist/chunks/date-range-picker.D6BNlau6.js +0 -840
- package/dist/chunks/date-range-picker.D6BNlau6.js.map +0 -1
- package/dist/chunks/filter-bar.ClRwHFxl.js.map +0 -1
- package/dist/chunks/get-slot-text.Cgn-E48s.js +0 -9
- package/dist/chunks/get-slot-text.Cgn-E48s.js.map +0 -1
- package/dist/chunks/input-field.DUf6qDBc.js.map +0 -1
- package/dist/chunks/inspector.types.8071wkf0.js +0 -70
- package/dist/chunks/inspector.types.8071wkf0.js.map +0 -1
- package/dist/chunks/link.UOEUR35A.js.map +0 -1
- package/dist/chunks/segmented-control.DL0W7lJ_.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.atXX3GY9.js.map +0 -1
- package/dist/chunks/summary-grid.keys.BBbFrFGF.js +0 -5
- package/dist/chunks/summary-grid.keys.BBbFrFGF.js.map +0 -1
- package/dist/chunks/use-country-items.eWARMT6I.js +0 -29
|
@@ -1,840 +0,0 @@
|
|
|
1
|
-
import { reactive as ne, defineComponent as Me, computed as T, ref as E, onMounted as Ce, toRaw as le, toRef as oe, watch as ve } from "vue";
|
|
2
|
-
import { B as We } from "./divider.Cc4JFWG_.js";
|
|
3
|
-
import { B as qe } from "./popover.nev0GndY.js";
|
|
4
|
-
import { B as we, d as He } from "./typography.J1v_SPG3.js";
|
|
5
|
-
import { D as je } from "./dropdown-default-textbox.CC9Z_RFG.js";
|
|
6
|
-
import { r as K, t as j, g as ie } from "./get-date-locale.BN8xEjY0.js";
|
|
7
|
-
import { g as X } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
-
import { u as ue } from "./i18n.BQkEbtPM.js";
|
|
9
|
-
import { t as de, f as Z } from "./date.1zs9CRhw.js";
|
|
10
|
-
import { s as q, c as ge, i as H, d as Ke, e as ye, f as ze, g as Te, h as Je, j as Qe, a as N, u as Xe } from "./calendar.DlOcbH6E.js";
|
|
11
|
-
import { f as _e, v as Ze, D as R } from "./date-input.BqBdAO1E.js";
|
|
12
|
-
import { u as et } from "./use-form-layout-loading.D3lALhtC.js";
|
|
13
|
-
import "./index.Cl4_42j5.js";
|
|
14
|
-
import { B as tt } from "./input-field.DUf6qDBc.js";
|
|
15
|
-
import { B as at } from "./dropdown.ndl5cKe0.js";
|
|
16
|
-
import { B as nt } from "./segmented-control.DL0W7lJ_.js";
|
|
17
|
-
import { d as te } from "./debounce.DUTu11PS.js";
|
|
18
|
-
import { u as rt } from "./use-has-slot.C9lQZ6nz.js";
|
|
19
|
-
import { e as U } from "./index.DPafeRJa.js";
|
|
20
|
-
import { e as Re } from "./index.CrhTVr5J.js";
|
|
21
|
-
import { n as Ae } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
22
|
-
import { B as st } from "./directive.O3yEdalv.js";
|
|
23
|
-
import { F as ot, E as lt } from "./error-message.Da-p1QIA.js";
|
|
24
|
-
import { B as it, c as ut } from "./button-actions.BU173IFE.js";
|
|
25
|
-
import "../assets/date-range-picker.css";
|
|
26
|
-
function Ie(t, e) {
|
|
27
|
-
K(2, arguments);
|
|
28
|
-
var n = j(t), i = j(e);
|
|
29
|
-
return n.getTime() === i.getTime();
|
|
30
|
-
}
|
|
31
|
-
function be(t) {
|
|
32
|
-
K(1, arguments);
|
|
33
|
-
var e = j(t);
|
|
34
|
-
return e.setMilliseconds(0), e;
|
|
35
|
-
}
|
|
36
|
-
function ke(t, e) {
|
|
37
|
-
K(2, arguments);
|
|
38
|
-
var n = be(t), i = be(e);
|
|
39
|
-
return n.getTime() === i.getTime();
|
|
40
|
-
}
|
|
41
|
-
function dt(t, e) {
|
|
42
|
-
K(2, arguments);
|
|
43
|
-
var n = j(t), i = de(e);
|
|
44
|
-
return n.setHours(i), n;
|
|
45
|
-
}
|
|
46
|
-
function ct(t, e) {
|
|
47
|
-
K(2, arguments);
|
|
48
|
-
var n = j(t), i = de(e);
|
|
49
|
-
return n.setMinutes(i), n;
|
|
50
|
-
}
|
|
51
|
-
function Dt(t, e) {
|
|
52
|
-
K(2, arguments);
|
|
53
|
-
var n = j(t), i = de(e);
|
|
54
|
-
return n.setSeconds(i), n;
|
|
55
|
-
}
|
|
56
|
-
function re(t) {
|
|
57
|
-
if (t == null)
|
|
58
|
-
return q(/* @__PURE__ */ new Date());
|
|
59
|
-
const [e, n, i] = t.split("-").map((u) => parseInt(u, 10));
|
|
60
|
-
return new Date(e, n - 1, i);
|
|
61
|
-
}
|
|
62
|
-
const mt = ({
|
|
63
|
-
firstDayOfWeek: t,
|
|
64
|
-
min: e,
|
|
65
|
-
max: n
|
|
66
|
-
}) => ({ getGranularCalendarLimits: (u) => {
|
|
67
|
-
let m = q(e), r = U(n);
|
|
68
|
-
if ((u == null ? void 0 : u.type) === "weekly") {
|
|
69
|
-
if (u.earliest)
|
|
70
|
-
m = q(u.earliest);
|
|
71
|
-
else {
|
|
72
|
-
const d = ge(m, { weekStartsOn: t });
|
|
73
|
-
H(m, d) || (m = q(Ke(ye(m, { weekStartsOn: t }), 1)));
|
|
74
|
-
}
|
|
75
|
-
if (u.latest)
|
|
76
|
-
r = U(u.latest);
|
|
77
|
-
else {
|
|
78
|
-
const d = ye(r, { weekStartsOn: t });
|
|
79
|
-
H(r, d) || (r = U(ze(ge(r, { weekStartsOn: t }), 1)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
if ((u == null ? void 0 : u.type) === "monthly") {
|
|
83
|
-
if (u.earliest)
|
|
84
|
-
m = q(u.earliest);
|
|
85
|
-
else {
|
|
86
|
-
const d = Te(m);
|
|
87
|
-
H(m, d) || (m = Te(Je(m, 1)));
|
|
88
|
-
}
|
|
89
|
-
if (u.latest)
|
|
90
|
-
r = U(u.latest);
|
|
91
|
-
else {
|
|
92
|
-
const d = Re(r);
|
|
93
|
-
H(r, d) || (r = Re(Qe(r, 1)));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return { min: m, max: r };
|
|
97
|
-
} }), ft = () => {
|
|
98
|
-
const t = ne({
|
|
99
|
-
daily: null,
|
|
100
|
-
weekly: null,
|
|
101
|
-
monthly: null
|
|
102
|
-
});
|
|
103
|
-
return {
|
|
104
|
-
savedRanges: t,
|
|
105
|
-
saveRange: (i, u) => {
|
|
106
|
-
t[i] = u;
|
|
107
|
-
},
|
|
108
|
-
resetSavedRanges: () => {
|
|
109
|
-
t.daily = null, t.weekly = null, t.monthly = null;
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
var p = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(p || {});
|
|
114
|
-
const pt = /[\d]/, vt = /^\d{2}$/, gt = /^\d{2}:\d{2}$/, yt = (t) => {
|
|
115
|
-
const { selectionStart: e } = t.target, n = pt.test(t.key) || t.key === "Backspace", i = [1, 2, 4, 5].includes(e) && t.key === ":";
|
|
116
|
-
!n && !i && t.preventDefault();
|
|
117
|
-
}, Se = (t) => {
|
|
118
|
-
if (!t)
|
|
119
|
-
return t;
|
|
120
|
-
let e = t;
|
|
121
|
-
if (e.length === 1 && parseInt(t, 10) > 2)
|
|
122
|
-
return `0${e}:`;
|
|
123
|
-
const [n, i] = e.slice(-2);
|
|
124
|
-
return [2, 5].includes(e.length) && i === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (vt.test(e) || gt.test(e)) && (e += ":"), e;
|
|
125
|
-
}, Tt = {
|
|
126
|
-
"en-US": {
|
|
127
|
-
customRange: "Custom range",
|
|
128
|
-
daily: "Daily",
|
|
129
|
-
dateFrom: "Date from",
|
|
130
|
-
dateTo: "Date to",
|
|
131
|
-
lastMonth: "Last month",
|
|
132
|
-
lastSevenDays: "Last 7 days",
|
|
133
|
-
lastThreeMonths: "Last three months",
|
|
134
|
-
monthly: "Monthly",
|
|
135
|
-
timeFrom: "Time from",
|
|
136
|
-
timeTo: "Time to",
|
|
137
|
-
weekly: "Weekly"
|
|
138
|
-
},
|
|
139
|
-
"ja-JP": {
|
|
140
|
-
customRange: "カスタム範囲を選択",
|
|
141
|
-
daily: "毎日",
|
|
142
|
-
lastMonth: "先月",
|
|
143
|
-
lastSevenDays: "過去7日間",
|
|
144
|
-
monthly: "毎月",
|
|
145
|
-
weekly: "毎週"
|
|
146
|
-
},
|
|
147
|
-
"pt-BR": {
|
|
148
|
-
customRange: "Selecione um intervalo personalizado",
|
|
149
|
-
daily: "Diário",
|
|
150
|
-
lastMonth: "Último mês",
|
|
151
|
-
lastSevenDays: "Últimos 7 dias",
|
|
152
|
-
monthly: "Mensal",
|
|
153
|
-
weekly: "Semanal"
|
|
154
|
-
}
|
|
155
|
-
}, Ee = 300, he = "customRange", Oe = "daily", _t = Me({
|
|
156
|
-
i18n: { messages: Tt },
|
|
157
|
-
name: "date-range-picker-calendar",
|
|
158
|
-
components: {
|
|
159
|
-
BentoDropdown: at,
|
|
160
|
-
BentoInputField: tt,
|
|
161
|
-
BentoSegmentedControl: nt,
|
|
162
|
-
BentoTypography: we,
|
|
163
|
-
Calendar: N
|
|
164
|
-
},
|
|
165
|
-
props: {
|
|
166
|
-
/**
|
|
167
|
-
* Allows user to enter time values in the form
|
|
168
|
-
*/
|
|
169
|
-
allowTimeInput: { type: Boolean, default: !1 },
|
|
170
|
-
/**
|
|
171
|
-
* Ranges form persistance data
|
|
172
|
-
*/
|
|
173
|
-
dateFormData: {
|
|
174
|
-
type: Object,
|
|
175
|
-
default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
|
|
176
|
-
},
|
|
177
|
-
/**
|
|
178
|
-
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
179
|
-
*/
|
|
180
|
-
firstDayOfWeek: N.props.firstDayOfWeek,
|
|
181
|
-
/**
|
|
182
|
-
* A list of available granularities.
|
|
183
|
-
* If present, the date picker will display a segmented control to change granularity.
|
|
184
|
-
*/
|
|
185
|
-
granularities: {
|
|
186
|
-
type: Array,
|
|
187
|
-
default: null
|
|
188
|
-
},
|
|
189
|
-
/**
|
|
190
|
-
* Indicate if a date should be disabled or not
|
|
191
|
-
*/
|
|
192
|
-
isDateDisabled: N.props.isDateDisabled,
|
|
193
|
-
/**
|
|
194
|
-
* Set a maximum number of dates to be selectable by the range.
|
|
195
|
-
*/
|
|
196
|
-
maxRange: N.props.maxRange,
|
|
197
|
-
/**
|
|
198
|
-
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
199
|
-
*/
|
|
200
|
-
min: N.props.min,
|
|
201
|
-
/**
|
|
202
|
-
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
203
|
-
*/
|
|
204
|
-
max: N.props.max,
|
|
205
|
-
/**
|
|
206
|
-
* Number of months rendered on pane
|
|
207
|
-
*/
|
|
208
|
-
numberOfMonths: N.props.numberOfMonths,
|
|
209
|
-
/**
|
|
210
|
-
* Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
|
|
211
|
-
*/
|
|
212
|
-
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
213
|
-
/**
|
|
214
|
-
* Enables the custom range selector.
|
|
215
|
-
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
216
|
-
* `label` - label of custom range item.
|
|
217
|
-
* `value` - a unique key of the custom range item.
|
|
218
|
-
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
219
|
-
*/
|
|
220
|
-
quickSelectRanges: {
|
|
221
|
-
type: Array,
|
|
222
|
-
default: void 0
|
|
223
|
-
},
|
|
224
|
-
/**
|
|
225
|
-
* Selected date
|
|
226
|
-
*/
|
|
227
|
-
value: { type: Object, default: void 0 }
|
|
228
|
-
},
|
|
229
|
-
emits: [
|
|
230
|
-
p.CUSTOM_RANGE,
|
|
231
|
-
p.INPUT,
|
|
232
|
-
p.ERROR,
|
|
233
|
-
p.FORM_DATE,
|
|
234
|
-
p.START_DATE_SELECTED
|
|
235
|
-
],
|
|
236
|
-
setup(t, { emit: e, slots: n }) {
|
|
237
|
-
var me, fe, pe;
|
|
238
|
-
const { locale: i, t: u } = ue(), m = ie(), r = ne({
|
|
239
|
-
startDate: (me = t.value) == null ? void 0 : me.startDate,
|
|
240
|
-
endDate: (fe = t.value) == null ? void 0 : fe.endDate,
|
|
241
|
-
...t.granularities ? {
|
|
242
|
-
granularity: ((pe = t.value) == null ? void 0 : pe.granularity) || Oe
|
|
243
|
-
} : {}
|
|
244
|
-
}), d = T(
|
|
245
|
-
() => {
|
|
246
|
-
var a, s;
|
|
247
|
-
return ((s = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ data: l }) => t.allowTimeInput ? ke(l.startDate, r.startDate) && ke(l.endDate, r.endDate) : H(l.startDate, r.startDate) && H(l.endDate, r.endDate))) == null ? void 0 : s.value) ?? he;
|
|
248
|
-
}
|
|
249
|
-
), O = T(() => ({
|
|
250
|
-
"b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
|
|
251
|
-
})), z = T(() => [
|
|
252
|
-
{ label: u("customRange"), value: he },
|
|
253
|
-
...t.quickSelectRanges ? t.quickSelectRanges : []
|
|
254
|
-
]), P = T(
|
|
255
|
-
() => {
|
|
256
|
-
var a;
|
|
257
|
-
return ((a = t.granularities) == null ? void 0 : a.find(({ type: s }) => s === r.granularity)) || null;
|
|
258
|
-
}
|
|
259
|
-
), g = T(
|
|
260
|
-
() => {
|
|
261
|
-
var a;
|
|
262
|
-
return ((a = t.granularities) == null ? void 0 : a.map(({ type: s, disabled: l }) => ({
|
|
263
|
-
label: u(s),
|
|
264
|
-
value: s,
|
|
265
|
-
disabled: l
|
|
266
|
-
}))) ?? [];
|
|
267
|
-
}
|
|
268
|
-
), { getGranularCalendarLimits: L } = mt(t), D = T(
|
|
269
|
-
() => t.granularities ? L(P.value) : { min: q(t.min), max: U(t.max) }
|
|
270
|
-
), {
|
|
271
|
-
adjustDateForMonthly: V,
|
|
272
|
-
adjustDateForWeekly: I,
|
|
273
|
-
adjustStartDateInputForWeekly: B,
|
|
274
|
-
adjustEndDateInputForWeekly: M,
|
|
275
|
-
adjustStartDateInputForMonthly: v,
|
|
276
|
-
adjustEndDateInputForMonthly: h
|
|
277
|
-
} = Xe(t.firstDayOfWeek), { savedRanges: y, saveRange: Y, resetSavedRanges: J } = ft(), _ = (a) => a ? Z(a, R.NUMERIC_DATE_YEAR_FIRST, {
|
|
278
|
-
locale: m[i.value.substring(0, 2)] || m.enUS
|
|
279
|
-
}) : "", k = (a) => a ? Z(a, R.HOUR_MINUTE_SECONDS, {
|
|
280
|
-
locale: m[i.value.substring(0, 2)] || m.enUS
|
|
281
|
-
}) : "", S = E(!1), A = E(!1), x = E(!1), F = E(!1), o = ne({
|
|
282
|
-
startDate: t.dateFormData.startDate,
|
|
283
|
-
endDate: t.dateFormData.endDate,
|
|
284
|
-
startTime: t.dateFormData.startTime,
|
|
285
|
-
endTime: t.dateFormData.endTime
|
|
286
|
-
}), ee = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), C = (a, s) => {
|
|
287
|
-
if (!s || !ee(s))
|
|
288
|
-
return a;
|
|
289
|
-
let l = new Date(a);
|
|
290
|
-
const [c, Q, Ge] = s.split(":");
|
|
291
|
-
return l = dt(l, parseInt(c, 10)), l = ct(l, parseInt(Q, 10)), l = Dt(l, parseInt(Ge, 10)), l;
|
|
292
|
-
}, ce = (a) => {
|
|
293
|
-
r.startDate = C(a.startDate, o.startTime), r.endDate = C(a.endDate, o.endTime), t.granularities && J(), e(p.INPUT, {
|
|
294
|
-
...r,
|
|
295
|
-
range: d.value
|
|
296
|
-
});
|
|
297
|
-
}, $ = (a) => {
|
|
298
|
-
const s = (c) => t.min && c <= t.min || t.max && c >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(c) : !0;
|
|
299
|
-
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && s(new Date(a));
|
|
300
|
-
};
|
|
301
|
-
Ce(() => {
|
|
302
|
-
t.dateFormData.startDate && !$(t.dateFormData.startDate) ? S.value = !0 : (S.value = !1, x.value = !1), t.dateFormData.endDate && !$(t.dateFormData.endDate) ? A.value = !0 : (A.value = !1, F.value = !1);
|
|
303
|
-
});
|
|
304
|
-
const De = (a) => {
|
|
305
|
-
var s;
|
|
306
|
-
o.startDate = _(a), o.startTime ? x.value && (o.startTime = (s = t.dateFormData) == null ? void 0 : s.startTime) : o.startTime = k(a), S.value = !1, x.value = !1, e(p.START_DATE_SELECTED, a);
|
|
307
|
-
}, f = (a) => {
|
|
308
|
-
var s;
|
|
309
|
-
o.endDate = _(a), o.endTime ? F.value && (o.endTime = (s = t.dateFormData) == null ? void 0 : s.endTime) : o.endTime = k(U(a)), A.value = !1, F.value = !1;
|
|
310
|
-
}, b = (a) => {
|
|
311
|
-
const s = t.value[a];
|
|
312
|
-
if (s)
|
|
313
|
-
return s;
|
|
314
|
-
if (t.dateFormData[a] && $(t.dateFormData[a]))
|
|
315
|
-
return new Date(t.dateFormData[a]);
|
|
316
|
-
}, G = te((a) => {
|
|
317
|
-
var s;
|
|
318
|
-
if ($(a)) {
|
|
319
|
-
let l = a;
|
|
320
|
-
switch (S.value = !1, (s = P.value) == null ? void 0 : s.type) {
|
|
321
|
-
case "weekly":
|
|
322
|
-
l = B(
|
|
323
|
-
a,
|
|
324
|
-
_,
|
|
325
|
-
D.value.min,
|
|
326
|
-
D.value.max
|
|
327
|
-
), o.startDate = l;
|
|
328
|
-
break;
|
|
329
|
-
case "monthly":
|
|
330
|
-
l = v(
|
|
331
|
-
a,
|
|
332
|
-
_,
|
|
333
|
-
D.value.min,
|
|
334
|
-
D.value.max
|
|
335
|
-
), o.startDate = l;
|
|
336
|
-
break;
|
|
337
|
-
}
|
|
338
|
-
const c = re(l);
|
|
339
|
-
r.startDate = C(c, o.startTime);
|
|
340
|
-
const Q = b("endDate");
|
|
341
|
-
e(p.FORM_DATE, {
|
|
342
|
-
startDate: c,
|
|
343
|
-
endDate: Q
|
|
344
|
-
}), e(p.INPUT, {
|
|
345
|
-
...r,
|
|
346
|
-
range: d.value
|
|
347
|
-
});
|
|
348
|
-
} else
|
|
349
|
-
S.value = !0, e(p.ERROR, { ...o });
|
|
350
|
-
}, Ee), se = (a) => {
|
|
351
|
-
o.startDate = _e(a), G(o.startDate);
|
|
352
|
-
}, xe = te((a) => {
|
|
353
|
-
var s;
|
|
354
|
-
if ($(a)) {
|
|
355
|
-
let l = a;
|
|
356
|
-
switch (A.value = !1, (s = P.value) == null ? void 0 : s.type) {
|
|
357
|
-
case "weekly":
|
|
358
|
-
l = M(
|
|
359
|
-
a,
|
|
360
|
-
_,
|
|
361
|
-
D.value.min,
|
|
362
|
-
D.value.max
|
|
363
|
-
), o.endDate = l;
|
|
364
|
-
break;
|
|
365
|
-
case "monthly":
|
|
366
|
-
l = h(
|
|
367
|
-
a,
|
|
368
|
-
_,
|
|
369
|
-
D.value.min,
|
|
370
|
-
D.value.max
|
|
371
|
-
), o.endDate = l;
|
|
372
|
-
break;
|
|
373
|
-
}
|
|
374
|
-
const c = re(l);
|
|
375
|
-
r.endDate = C(c, o.endTime);
|
|
376
|
-
const Q = b("startDate");
|
|
377
|
-
e(p.FORM_DATE, {
|
|
378
|
-
startDate: Q,
|
|
379
|
-
endDate: c
|
|
380
|
-
}), e(p.INPUT, {
|
|
381
|
-
...r,
|
|
382
|
-
range: d.value
|
|
383
|
-
});
|
|
384
|
-
} else
|
|
385
|
-
A.value = !0, e(p.ERROR, { ...o });
|
|
386
|
-
}, Ee), Fe = (a) => {
|
|
387
|
-
o.endDate = _e(a), xe(o.endDate);
|
|
388
|
-
}, Ue = (a) => {
|
|
389
|
-
Ze(a);
|
|
390
|
-
}, Pe = te((a) => {
|
|
391
|
-
if (ee(a)) {
|
|
392
|
-
x.value = !1, r.startDate = C(r.startDate, a);
|
|
393
|
-
const s = b("endDate");
|
|
394
|
-
e(p.FORM_DATE, {
|
|
395
|
-
startDate: new Date(r.startDate),
|
|
396
|
-
endDate: s,
|
|
397
|
-
startTime: a,
|
|
398
|
-
endTime: t.dateFormData.endTime
|
|
399
|
-
}), e(p.INPUT, {
|
|
400
|
-
...r,
|
|
401
|
-
range: d.value
|
|
402
|
-
});
|
|
403
|
-
} else
|
|
404
|
-
x.value = !0, e(p.ERROR, { ...o });
|
|
405
|
-
}), Be = te((a) => {
|
|
406
|
-
if (ee(a)) {
|
|
407
|
-
F.value = !1, r.endDate = C(r.endDate, a);
|
|
408
|
-
const s = b("startDate");
|
|
409
|
-
r.startDate = C(new Date(s), t.dateFormData.startTime), e(p.FORM_DATE, {
|
|
410
|
-
startDate: C(new Date(s), t.dateFormData.startTime),
|
|
411
|
-
endDate: new Date(r.endDate),
|
|
412
|
-
startTime: t.dateFormData.startTime,
|
|
413
|
-
endTime: a
|
|
414
|
-
}), e(p.INPUT, {
|
|
415
|
-
...r,
|
|
416
|
-
range: d.value
|
|
417
|
-
});
|
|
418
|
-
} else
|
|
419
|
-
F.value = !0, e(p.ERROR, { ...o });
|
|
420
|
-
}), Ne = (a) => {
|
|
421
|
-
o.startTime = Se(a), Pe(o.startTime);
|
|
422
|
-
}, Le = (a) => {
|
|
423
|
-
o.endTime = Se(a), Be(o.endTime);
|
|
424
|
-
}, Ve = (a) => {
|
|
425
|
-
yt(a);
|
|
426
|
-
}, W = (a, s, l) => {
|
|
427
|
-
r.startDate = a, r.endDate = s, l && (r.granularity = l);
|
|
428
|
-
}, Ye = (a) => {
|
|
429
|
-
var l;
|
|
430
|
-
const s = (l = t.quickSelectRanges) == null ? void 0 : l.find(({ value: c }) => c === a);
|
|
431
|
-
if (s) {
|
|
432
|
-
J();
|
|
433
|
-
const c = s.data;
|
|
434
|
-
o.startDate = _(c.startDate), o.endDate = _(c.endDate), W(c.startDate, c.endDate), t.granularities && (r.granularity = c.granularity || Oe), o.startTime || (o.startTime = k(U(c.startDate))), o.endTime || (o.endTime = k(U(c.endDate))), e(p.CUSTOM_RANGE, { ...s.data, range: s.value });
|
|
435
|
-
}
|
|
436
|
-
}, $e = (a) => {
|
|
437
|
-
const s = r.granularity;
|
|
438
|
-
if (r.granularity = a, s && Y(s, structuredClone(le(r))), r.startDate && r.endDate) {
|
|
439
|
-
switch (a) {
|
|
440
|
-
case "monthly": {
|
|
441
|
-
if (y.monthly) {
|
|
442
|
-
W(y.monthly.startDate, y.monthly.endDate, a);
|
|
443
|
-
break;
|
|
444
|
-
}
|
|
445
|
-
const { startDate: l, endDate: c } = V(
|
|
446
|
-
r.startDate,
|
|
447
|
-
r.endDate,
|
|
448
|
-
D.value.min,
|
|
449
|
-
D.value.max
|
|
450
|
-
);
|
|
451
|
-
W(l, c, a);
|
|
452
|
-
break;
|
|
453
|
-
}
|
|
454
|
-
case "weekly": {
|
|
455
|
-
if (y.weekly) {
|
|
456
|
-
W(y.weekly.startDate, y.weekly.endDate, a);
|
|
457
|
-
break;
|
|
458
|
-
}
|
|
459
|
-
const { startDate: l, endDate: c } = I(
|
|
460
|
-
r.startDate,
|
|
461
|
-
r.endDate,
|
|
462
|
-
D.value.min,
|
|
463
|
-
D.value.max
|
|
464
|
-
);
|
|
465
|
-
W(l, c, a);
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
case "daily":
|
|
469
|
-
y.daily && W(y.daily.startDate, y.daily.endDate, a);
|
|
470
|
-
break;
|
|
471
|
-
}
|
|
472
|
-
o.startDate = _(r.startDate), o.endDate = _(r.endDate), e(p.INPUT, {
|
|
473
|
-
...r,
|
|
474
|
-
range: d.value
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
|
-
return {
|
|
479
|
-
// Values
|
|
480
|
-
internalRangeDate: r,
|
|
481
|
-
dateTextInput: o,
|
|
482
|
-
endDateError: A,
|
|
483
|
-
endTimeError: F,
|
|
484
|
-
granularityItems: g,
|
|
485
|
-
selectedGranularity: P,
|
|
486
|
-
computedMinMax: D,
|
|
487
|
-
selectedRangeSelectorValue: d,
|
|
488
|
-
startDateError: S,
|
|
489
|
-
startTimeError: x,
|
|
490
|
-
quickSelectRangeDefaultItems: z,
|
|
491
|
-
formInputWrapperConditionalClasses: O,
|
|
492
|
-
// Methods
|
|
493
|
-
hasSlot: rt(n),
|
|
494
|
-
t: u,
|
|
495
|
-
// Events
|
|
496
|
-
onDateInput: ce,
|
|
497
|
-
onDateInputKeyDown: Ue,
|
|
498
|
-
onEndDateInput: Fe,
|
|
499
|
-
onEndDateSelected: f,
|
|
500
|
-
onEndTimeInput: Le,
|
|
501
|
-
onGranularityInput: $e,
|
|
502
|
-
onRangeSelectorInput: Ye,
|
|
503
|
-
onStartDateInput: se,
|
|
504
|
-
onStartDateSelected: De,
|
|
505
|
-
onStartTimeInput: Ne,
|
|
506
|
-
onTimeInputKeyDown: Ve
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
var Rt = function() {
|
|
511
|
-
var e = this, n = e._self._c;
|
|
512
|
-
return e._self._setupProxy, n("div", { staticClass: "b-date-range-picker-calendar" }, [n("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [n("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.hasSlot("title") ? [e._t("title")] : e._e(), e.quickSelectRanges ? n("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.granularities ? n("bento-segmented-control", { attrs: { items: e.granularityItems, "model-value": e.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": e.onGranularityInput } }) : e._e(), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateFrom"), value: e.dateTextInput.startDate, error: e.startDateError }, on: { input: e.onStartDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
513
|
-
return [e._v("YYYY-MM-DD")];
|
|
514
|
-
}, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeFrom"), value: e.dateTextInput.startTime, error: e.startTimeError }, on: { input: e.onStartTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
515
|
-
return [e._v("HH:MM:SS")];
|
|
516
|
-
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" To ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateTo"), value: e.dateTextInput.endDate, error: e.endDateError }, on: { input: e.onEndDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
517
|
-
return [e._v("YYYY-MM-DD")];
|
|
518
|
-
}, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
519
|
-
return [e._v("HH:MM:SS")];
|
|
520
|
-
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.value, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.computedMinMax.min, max: e.computedMinMax.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, granularity: e.selectedGranularity, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
|
|
521
|
-
}, It = [], bt = /* @__PURE__ */ Ae(
|
|
522
|
-
_t,
|
|
523
|
-
Rt,
|
|
524
|
-
It,
|
|
525
|
-
!1,
|
|
526
|
-
null,
|
|
527
|
-
"8869da62"
|
|
528
|
-
);
|
|
529
|
-
const w = bt.exports, kt = ({
|
|
530
|
-
datePickerValue: t,
|
|
531
|
-
isDateIncorrect: e,
|
|
532
|
-
quickSelectRanges: n
|
|
533
|
-
}) => {
|
|
534
|
-
var g, L, D, V;
|
|
535
|
-
const { locale: i, t: u } = ue(), m = ie(), r = (I) => !!I && !isNaN(I.getTime()), d = (I, B) => r(I) ? Z(I, B, {
|
|
536
|
-
locale: m[i.value.substring(0, 2)] || m.enUS
|
|
537
|
-
}) : void 0, O = ne({
|
|
538
|
-
startDate: d((g = t.value) == null ? void 0 : g.startDate, R.NUMERIC_DATE_YEAR_FIRST),
|
|
539
|
-
endDate: d((L = t.value) == null ? void 0 : L.endDate, R.NUMERIC_DATE_YEAR_FIRST),
|
|
540
|
-
startTime: d((D = t.value) == null ? void 0 : D.startDate, R.HOUR_MINUTE_SECONDS),
|
|
541
|
-
endTime: d((V = t.value) == null ? void 0 : V.endDate, R.HOUR_MINUTE_SECONDS)
|
|
542
|
-
});
|
|
543
|
-
return {
|
|
544
|
-
// Values
|
|
545
|
-
dateDisplayValue: T(() => {
|
|
546
|
-
var M;
|
|
547
|
-
if (e.value)
|
|
548
|
-
return `${O.startDate || ""} - ${O.endDate || ""}`;
|
|
549
|
-
if (!t.value || !t.value.startDate && !t.value.endDate)
|
|
550
|
-
return u("selectDateRange");
|
|
551
|
-
if ((M = n.value) != null && M.length) {
|
|
552
|
-
const v = n.value.find(
|
|
553
|
-
({ data: h }) => {
|
|
554
|
-
var y, Y;
|
|
555
|
-
return Ie(h == null ? void 0 : h.startDate, (y = t.value) == null ? void 0 : y.startDate) && Ie(h == null ? void 0 : h.endDate, (Y = t.value) == null ? void 0 : Y.endDate);
|
|
556
|
-
}
|
|
557
|
-
);
|
|
558
|
-
if (v)
|
|
559
|
-
return v.label;
|
|
560
|
-
}
|
|
561
|
-
const { startDate: I, endDate: B } = O;
|
|
562
|
-
return `${d(re(I), R.FULL_DATE_MONTH_FIRST)} - ${d(
|
|
563
|
-
re(B),
|
|
564
|
-
R.FULL_DATE_MONTH_FIRST
|
|
565
|
-
)}`;
|
|
566
|
-
}),
|
|
567
|
-
textInputDisplayValue: O,
|
|
568
|
-
// Methods
|
|
569
|
-
formatTextInputDisplayValue: () => ""
|
|
570
|
-
};
|
|
571
|
-
};
|
|
572
|
-
var ae = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(ae || {});
|
|
573
|
-
const St = {
|
|
574
|
-
"en-US": {
|
|
575
|
-
apply: "Apply",
|
|
576
|
-
cancel: "Cancel",
|
|
577
|
-
dateRangePicker: "Date range picker {name}",
|
|
578
|
-
provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
|
|
579
|
-
selectDate: "Select a date",
|
|
580
|
-
selectDateRange: "Select a date range",
|
|
581
|
-
selectedDateIsNotAvailable: "Selected date is not available"
|
|
582
|
-
},
|
|
583
|
-
"ja-JP": {
|
|
584
|
-
apply: "適用",
|
|
585
|
-
cancel: "キャンセル",
|
|
586
|
-
selectDate: "日付を選択"
|
|
587
|
-
},
|
|
588
|
-
"pt-BR": {
|
|
589
|
-
apply: "Aplicar",
|
|
590
|
-
cancel: "Cancelar",
|
|
591
|
-
selectDate: "Selecione uma data"
|
|
592
|
-
}
|
|
593
|
-
}, Et = Me({
|
|
594
|
-
i18n: { messages: St },
|
|
595
|
-
name: "bento-date-range-picker",
|
|
596
|
-
components: {
|
|
597
|
-
BentoButtonActions: it,
|
|
598
|
-
BentoDivider: We,
|
|
599
|
-
BentoTypography: we,
|
|
600
|
-
BentoPopover: qe,
|
|
601
|
-
DateRangePickerCalendar: w,
|
|
602
|
-
DropdownInputDefault: je,
|
|
603
|
-
ErrorMessage: lt,
|
|
604
|
-
FieldLabel: ot
|
|
605
|
-
},
|
|
606
|
-
directives: { BentoClickOutsideDirective: st },
|
|
607
|
-
props: {
|
|
608
|
-
/**
|
|
609
|
-
* Allows user to enter time values in the form
|
|
610
|
-
*/
|
|
611
|
-
allowTimeInput: { type: Boolean, default: !1 },
|
|
612
|
-
/**
|
|
613
|
-
* Descriptive supporting text visbile underneath the dropdown.
|
|
614
|
-
*/
|
|
615
|
-
description: { type: String, default: void 0 },
|
|
616
|
-
/**
|
|
617
|
-
* Disables dropdown functionality.
|
|
618
|
-
*/
|
|
619
|
-
disabled: { type: Boolean, default: !1 },
|
|
620
|
-
/**
|
|
621
|
-
* Displays component in an error state with an error message
|
|
622
|
-
*/
|
|
623
|
-
errorMessage: { type: String, default: null },
|
|
624
|
-
/**
|
|
625
|
-
* Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
626
|
-
*/
|
|
627
|
-
firstDayOfWeek: w.props.firstDayOfWeek,
|
|
628
|
-
/**
|
|
629
|
-
* A list of available granularities.
|
|
630
|
-
* If present, the date picker will display a segmented control to change granularity.
|
|
631
|
-
*/
|
|
632
|
-
granularities: w.props.granularities,
|
|
633
|
-
/**
|
|
634
|
-
* Indicate if a date should be disabled or not
|
|
635
|
-
*/
|
|
636
|
-
isDateDisabled: w.props.isDateDisabled,
|
|
637
|
-
/**
|
|
638
|
-
* Text that is displayed as a label above the element.
|
|
639
|
-
*/
|
|
640
|
-
label: { type: String, default: void 0 },
|
|
641
|
-
/**
|
|
642
|
-
* Upon opening date range picker, end date's month will be pre-selected.
|
|
643
|
-
*/
|
|
644
|
-
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
645
|
-
/**
|
|
646
|
-
* Highlights the dropdown is optional.
|
|
647
|
-
*/
|
|
648
|
-
optional: { type: Boolean, default: !1 },
|
|
649
|
-
/**
|
|
650
|
-
* The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
|
|
651
|
-
*/
|
|
652
|
-
readonly: { type: Boolean, default: !1 },
|
|
653
|
-
/**
|
|
654
|
-
* Highlights the dropdown is required.
|
|
655
|
-
*/
|
|
656
|
-
required: { type: Boolean, default: !1 },
|
|
657
|
-
/**
|
|
658
|
-
* Adds a info icon next to the label to display the passed tooltip message.
|
|
659
|
-
*/
|
|
660
|
-
tooltipText: { type: String, default: null },
|
|
661
|
-
/**
|
|
662
|
-
* Enables the range selector.
|
|
663
|
-
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
664
|
-
* `label` - label of custom range item.
|
|
665
|
-
* `value` - a unique key of the custom range item.
|
|
666
|
-
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
667
|
-
*/
|
|
668
|
-
quickSelectRanges: {
|
|
669
|
-
type: Array,
|
|
670
|
-
default: void 0
|
|
671
|
-
},
|
|
672
|
-
/**
|
|
673
|
-
* Set a maximum number of dates to be selectable by the range.
|
|
674
|
-
*/
|
|
675
|
-
maxRange: w.props.maxRange,
|
|
676
|
-
/**
|
|
677
|
-
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
678
|
-
*/
|
|
679
|
-
min: w.props.min,
|
|
680
|
-
/**
|
|
681
|
-
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
682
|
-
*/
|
|
683
|
-
max: w.props.max,
|
|
684
|
-
/**
|
|
685
|
-
* Number of months rendered on pane
|
|
686
|
-
*/
|
|
687
|
-
numberOfMonths: w.props.numberOfMonths,
|
|
688
|
-
/**
|
|
689
|
-
* Selected date
|
|
690
|
-
*/
|
|
691
|
-
value: w.props.value,
|
|
692
|
-
/**
|
|
693
|
-
* Enables the date picker selection to persist until it is explicitly applied.
|
|
694
|
-
* Displays a set of buttons: Apply and Cancel.
|
|
695
|
-
*
|
|
696
|
-
* @deprecated This will be the default behaviour in v2.0.0.
|
|
697
|
-
*/
|
|
698
|
-
hasActions: { type: Boolean, default: !1 }
|
|
699
|
-
},
|
|
700
|
-
emits: [ae.INPUT],
|
|
701
|
-
setup(t, { emit: e }) {
|
|
702
|
-
const { locale: n, t: i } = ue(), u = ie(), m = X("bento-date-range-picker-container"), r = X("bento-date-range-picker-label"), d = X("bento-date-range-picker-description"), O = X("bento-date-range-picker-error"), z = X("bento-date-range-picker-date-error"), P = T(
|
|
703
|
-
() => t.label || i("dateRangePicker", { name: m })
|
|
704
|
-
), g = E(!1), L = E(null), D = E(!1), { isReadOnly: V } = et(oe(t, "readonly"));
|
|
705
|
-
ve(
|
|
706
|
-
() => t.disabled,
|
|
707
|
-
() => {
|
|
708
|
-
t.disabled && D.value && (D.value = !1);
|
|
709
|
-
}
|
|
710
|
-
);
|
|
711
|
-
const I = T(() => t.hasActions ? !S.value && g.value : g.value), B = T(() => ({
|
|
712
|
-
"b-date-range-picker__description--error": !!t.errorMessage || I.value
|
|
713
|
-
})), { dateDisplayValue: M, textInputDisplayValue: v } = kt({
|
|
714
|
-
datePickerValue: oe(t, "value"),
|
|
715
|
-
isDateIncorrect: g,
|
|
716
|
-
quickSelectRanges: oe(t, "quickSelectRanges")
|
|
717
|
-
}), h = T(
|
|
718
|
-
() => `${t.description ? d : ""} ${t.errorMessage ? O : ""} ${g.value ? z : ""}`.trim() || null
|
|
719
|
-
), y = () => {
|
|
720
|
-
D.value = !1;
|
|
721
|
-
}, Y = () => {
|
|
722
|
-
D.value = !0;
|
|
723
|
-
}, J = E(M.value), _ = E(
|
|
724
|
-
// textInputDisplayValue is a reactive object
|
|
725
|
-
structuredClone(le(v))
|
|
726
|
-
), k = E(t.value), S = E(!0), A = T(
|
|
727
|
-
() => t.hasActions ? _.value : v
|
|
728
|
-
), x = T(
|
|
729
|
-
() => t.hasActions ? J.value : M.value
|
|
730
|
-
);
|
|
731
|
-
Ce(() => {
|
|
732
|
-
t.hasActions || He(
|
|
733
|
-
'BentoDateRangePicker "hasActions" property',
|
|
734
|
-
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
735
|
-
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
736
|
-
"2.0.0"
|
|
737
|
-
);
|
|
738
|
-
});
|
|
739
|
-
const F = T(() => [
|
|
740
|
-
{
|
|
741
|
-
title: i("apply"),
|
|
742
|
-
event: () => {
|
|
743
|
-
J.value = M.value, _.value = structuredClone(le(v)), e(ae.INPUT, k.value), y(), S.value = !0;
|
|
744
|
-
},
|
|
745
|
-
disabled: S.value
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
title: i("cancel"),
|
|
749
|
-
event: y
|
|
750
|
-
}
|
|
751
|
-
]);
|
|
752
|
-
return ve(k, (f) => {
|
|
753
|
-
if (t.hasActions) {
|
|
754
|
-
S.value = g.value;
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
e(ae.INPUT, f);
|
|
758
|
-
}), {
|
|
759
|
-
// Refs
|
|
760
|
-
inputContainerRef: L,
|
|
761
|
-
// Values,
|
|
762
|
-
dateDisplayValue: M,
|
|
763
|
-
datePickerContainerId: m,
|
|
764
|
-
descriptionConditionalClasses: B,
|
|
765
|
-
displayedTextInputValue: A,
|
|
766
|
-
displayedDateValue: x,
|
|
767
|
-
isDateIncorrect: g,
|
|
768
|
-
isDateRangePickerOpen: D,
|
|
769
|
-
isReadOnly: V,
|
|
770
|
-
labelId: r,
|
|
771
|
-
descriptionId: d,
|
|
772
|
-
dateErrorId: z,
|
|
773
|
-
errorId: O,
|
|
774
|
-
popoverAriaLabel: P,
|
|
775
|
-
shouldDisplayError: I,
|
|
776
|
-
ariaDescribedBy: h,
|
|
777
|
-
textInputDisplayValue: v,
|
|
778
|
-
rangePickerButtonActions: F,
|
|
779
|
-
BentoButtonActionsLayout: ut,
|
|
780
|
-
// Events
|
|
781
|
-
closeDateRangePicker: y,
|
|
782
|
-
clearDateRangePickerValue: async () => {
|
|
783
|
-
g.value && (g.value = !1), k.value = null;
|
|
784
|
-
},
|
|
785
|
-
openDateRangePicker: Y,
|
|
786
|
-
onRangeSelectorInput: (f) => {
|
|
787
|
-
if (f) {
|
|
788
|
-
const b = (G) => Z(G, R.NUMERIC_DATE_YEAR_FIRST, {
|
|
789
|
-
locale: u[n.value.substring(0, 2)] || u.enUS
|
|
790
|
-
});
|
|
791
|
-
v.startDate = b(f.startDate), v.endDate = b(f.endDate), k.value = f;
|
|
792
|
-
}
|
|
793
|
-
},
|
|
794
|
-
onEnterPressedOverInput: () => {
|
|
795
|
-
g.value || (D.value = !1);
|
|
796
|
-
},
|
|
797
|
-
onDateRangePickerInput: (f) => {
|
|
798
|
-
g.value = !1;
|
|
799
|
-
const b = (G, se) => G ? Z(G, se, {
|
|
800
|
-
locale: u[n.value.substring(0, 2)] || u.enUS
|
|
801
|
-
}) : void 0;
|
|
802
|
-
v.startDate = b(
|
|
803
|
-
f.startDate,
|
|
804
|
-
R.NUMERIC_DATE_YEAR_FIRST
|
|
805
|
-
), v.endDate = b(f.endDate, R.NUMERIC_DATE_YEAR_FIRST), v.startTime = b(f.startDate, R.HOUR_MINUTE_SECONDS), v.endTime = b(f.endDate, R.HOUR_MINUTE_SECONDS), k.value = f;
|
|
806
|
-
},
|
|
807
|
-
onDateRangePickerError: (f) => {
|
|
808
|
-
g.value = !0, v.startDate = f.startDate, v.endDate = f.endDate, k.value = { startDate: null, endDate: null };
|
|
809
|
-
},
|
|
810
|
-
onDateRangePickerFormDateInputUpdate: (f) => {
|
|
811
|
-
g.value = !1, f.startTime && (v.startTime = f.startTime), f.endTime && (v.endTime = f.endTime);
|
|
812
|
-
},
|
|
813
|
-
// Translations
|
|
814
|
-
t: i
|
|
815
|
-
};
|
|
816
|
-
}
|
|
817
|
-
});
|
|
818
|
-
var ht = function() {
|
|
819
|
-
var e = this, n = e._self._c;
|
|
820
|
-
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? n("field-label", { attrs: { id: e.labelId, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", { on: { keydown: function(i) {
|
|
821
|
-
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
|
|
822
|
-
} } }, [n("dropdown-input-default", { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.shouldDisplayError, open: e.isDateRangePickerOpen, "display-value": e.displayedDateValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.shouldDisplayError ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.t("provideDateInAFormat") } }) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? n("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [n("date-range-picker-calendar", { attrs: { "allow-time-input": e.allowTimeInput, "quick-select-ranges": e.quickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, granularities: e.granularities, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.min, max: e.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, "date-form-data": e.displayedTextInputValue }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate }, scopedSlots: e._u([e.hasActions ? { key: "actions", fn: function() {
|
|
823
|
-
return [n("bento-divider"), n("div", { staticClass: "b-date-range-picker__footer" }, [n("bento-button-actions", { attrs: { actions: e.rangePickerButtonActions, layout: e.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
|
|
824
|
-
}, proxy: !0 } : null], null, !0) })], 1) : e._e()], 1);
|
|
825
|
-
}, Ot = [], Mt = /* @__PURE__ */ Ae(
|
|
826
|
-
Et,
|
|
827
|
-
ht,
|
|
828
|
-
Ot,
|
|
829
|
-
!1,
|
|
830
|
-
null,
|
|
831
|
-
"83a361fe"
|
|
832
|
-
);
|
|
833
|
-
const ea = Mt.exports;
|
|
834
|
-
export {
|
|
835
|
-
ea as B,
|
|
836
|
-
w as D,
|
|
837
|
-
ae as a,
|
|
838
|
-
Ie as i
|
|
839
|
-
};
|
|
840
|
-
//# sourceMappingURL=date-range-picker.D6BNlau6.js.map
|