@adyen/bento-vue2 1.50.0 → 1.52.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/index.d.ts +513 -608
- package/dist/accordion.js +1 -1
- 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/alert.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.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/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.CTxrEQEW.js → accordion-item.C4tyRMCt.js} +2 -2
- package/dist/chunks/{accordion-item.CTxrEQEW.js.map → accordion-item.C4tyRMCt.js.map} +1 -1
- package/dist/chunks/{action-bar.CGJJrMpa.js → action-bar.DuJkjAt1.js} +7 -7
- package/dist/chunks/{action-bar.CGJJrMpa.js.map → action-bar.DuJkjAt1.js.map} +1 -1
- package/dist/chunks/{alert.hiTIDSeX.js → alert.BkMKX9wD.js} +15 -14
- package/dist/chunks/alert.BkMKX9wD.js.map +1 -0
- package/dist/chunks/{base-modal.8kcvtFRx.js → base-modal.CiTysydg.js} +6 -6
- package/dist/chunks/{base-modal.8kcvtFRx.js.map → base-modal.CiTysydg.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.B9oXYIgo.js +166 -0
- package/dist/chunks/button-actions-with-menu.B9oXYIgo.js.map +1 -0
- package/dist/chunks/{button-actions.BovYBINL.js → button-actions.DAvSJtOB.js} +4 -4
- package/dist/chunks/{button-actions.BovYBINL.js.map → button-actions.DAvSJtOB.js.map} +1 -1
- package/dist/chunks/{button.CdAFZa4V.js → button.D-3uUhuG.js} +2 -2
- package/dist/chunks/{button.CdAFZa4V.js.map → button.D-3uUhuG.js.map} +1 -1
- package/dist/chunks/calendar.Bq67h02Z.js +1130 -0
- package/dist/chunks/calendar.Bq67h02Z.js.map +1 -0
- package/dist/chunks/{card.D-w9c3-n.js → card.AQO_BjGb.js} +3 -3
- package/dist/chunks/{card.D-w9c3-n.js.map → card.AQO_BjGb.js.map} +1 -1
- package/dist/chunks/{checkbox-group.wa6Mtmxa.js → checkbox-group.CqSIn-lG.js} +4 -4
- package/dist/chunks/{checkbox-group.wa6Mtmxa.js.map → checkbox-group.CqSIn-lG.js.map} +1 -1
- package/dist/chunks/checkbox-input.CMhyJDdo.js +129 -0
- package/dist/chunks/checkbox-input.CMhyJDdo.js.map +1 -0
- package/dist/chunks/checkbox.BeYtbfPv.js +170 -0
- package/dist/chunks/checkbox.BeYtbfPv.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
- package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.C8T8ISN6.js} +4 -4
- package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
- package/dist/chunks/{chevron-left.PIu6yPqe.js → chevron-left.DOMTgGel.js} +6 -6
- package/dist/chunks/chevron-left.DOMTgGel.js.map +1 -0
- package/dist/chunks/{chevron-up.DVfo78kV.js → chevron-up.CSVyoaTy.js} +6 -6
- package/dist/chunks/chevron-up.CSVyoaTy.js.map +1 -0
- package/dist/chunks/{chip.HNUA9VZl.js → chip.BeK9uqmW.js} +24 -21
- package/dist/chunks/chip.BeK9uqmW.js.map +1 -0
- package/dist/chunks/{code-snippet.3s8WCnke.js → code-snippet.CW42FdpP.js} +7 -7
- package/dist/chunks/{code-snippet.3s8WCnke.js.map → code-snippet.CW42FdpP.js.map} +1 -1
- package/dist/chunks/{controls-group.BnDPMaGI.js → controls-group.D0_cJaFF.js} +2 -2
- package/dist/chunks/{controls-group.BnDPMaGI.js.map → controls-group.D0_cJaFF.js.map} +1 -1
- package/dist/chunks/{copy.DMlIj53I.js → copy.2iD8aI5a.js} +7 -6
- package/dist/chunks/copy.2iD8aI5a.js.map +1 -0
- package/dist/chunks/{cross-circle-fill-small.Oj6lPaDy.js → cross-circle-fill-small.YhLgeipP.js} +4 -4
- package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
- package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.CZqsjZDz.js} +4 -4
- package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
- package/dist/chunks/{cross.CsUPDmaA.js → cross.CJ5EEL2c.js} +4 -4
- package/dist/chunks/cross.CJ5EEL2c.js.map +1 -0
- package/dist/chunks/{dashboard-section.BgyN5u0K.js → dashboard-section.Cmulh6WM.js} +4 -4
- package/dist/chunks/{dashboard-section.BgyN5u0K.js.map → dashboard-section.Cmulh6WM.js.map} +1 -1
- package/dist/chunks/{dashed-underline.Cvn5IoHT.js → dashed-underline.eMF75SuT.js} +3 -3
- package/dist/chunks/{dashed-underline.Cvn5IoHT.js.map → dashed-underline.eMF75SuT.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DtWM0Tnu.js → data-grid-template.CdHnPE1-.js} +3 -3
- package/dist/chunks/{data-grid-template.DtWM0Tnu.js.map → data-grid-template.CdHnPE1-.js.map} +1 -1
- package/dist/chunks/{data-grid.N5Rxo6QB.js → data-grid.DedjAz4_.js} +38 -37
- package/dist/chunks/data-grid.DedjAz4_.js.map +1 -0
- package/dist/chunks/date-picker.BdMr3Sn2.js +235 -0
- package/dist/chunks/date-picker.BdMr3Sn2.js.map +1 -0
- package/dist/chunks/date-range-picker.BHfvD0GK.js +903 -0
- package/dist/chunks/date-range-picker.BHfvD0GK.js.map +1 -0
- package/dist/chunks/{date.YLIcAerL.js → date.dYFFEunA.js} +12 -12
- package/dist/chunks/{date.YLIcAerL.js.map → date.dYFFEunA.js.map} +1 -1
- package/dist/chunks/{dialog-page.Bf07JxdG.js → dialog-page.BfF5_hmG.js} +5 -4
- package/dist/chunks/dialog-page.BfF5_hmG.js.map +1 -0
- package/dist/chunks/{dot.BCX4w7eT.js → dot.CnkXzRn3.js} +4 -4
- package/dist/chunks/dot.CnkXzRn3.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js → dropdown-default-textbox.CDTdHfTv.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js.map → dropdown-default-textbox.CDTdHfTv.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.ClUMccWv.js → dropdown-tag.CvZ1jckk.js} +4 -4
- package/dist/chunks/{dropdown-tag.ClUMccWv.js.map → dropdown-tag.CvZ1jckk.js.map} +1 -1
- package/dist/chunks/{dropdown.CC1i41NX.js → dropdown.CcHoKbLz.js} +241 -232
- package/dist/chunks/dropdown.CcHoKbLz.js.map +1 -0
- package/dist/chunks/{empty-state.BnHTBgKG.js → empty-state.JbgxSrnv.js} +2 -2
- package/dist/chunks/{empty-state.BnHTBgKG.js.map → empty-state.JbgxSrnv.js.map} +1 -1
- package/dist/chunks/{error-message.xTNEaNn8.js → error-message.B1-ekAMa.js} +3 -3
- package/dist/chunks/{error-message.xTNEaNn8.js.map → error-message.B1-ekAMa.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{expand.CwwKq7Uc.js → expand.C263WARj.js} +4 -4
- package/dist/chunks/expand.C263WARj.js.map +1 -0
- package/dist/chunks/{file-uploader.DTkxh9Ct.js → file-uploader.Dlfzh5QQ.js} +17 -16
- package/dist/chunks/file-uploader.Dlfzh5QQ.js.map +1 -0
- package/dist/chunks/{filter-bar.gj9sdW5T.js → filter-bar.CwqoJGiK.js} +735 -844
- package/dist/chunks/filter-bar.CwqoJGiK.js.map +1 -0
- package/dist/chunks/{fixed-scroller.DX2YUuoU.js → fixed-scroller.BwvXYzE6.js} +3 -3
- package/dist/chunks/{fixed-scroller.DX2YUuoU.js.map → fixed-scroller.BwvXYzE6.js.map} +1 -1
- package/dist/chunks/{focus-trap._RrLaKlq.js → focus-trap.CWlKh48z.js} +2 -2
- package/dist/chunks/{focus-trap._RrLaKlq.js.map → focus-trap.CWlKh48z.js.map} +1 -1
- package/dist/chunks/{footer-actions.BsoofCrv.js → footer-actions.BkHpWa7A.js} +3 -3
- package/dist/chunks/{footer-actions.BsoofCrv.js.map → footer-actions.BkHpWa7A.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CJbgfh3P.js → form-layout-title.DK1-01RH.js} +50 -47
- package/dist/chunks/form-layout-title.DK1-01RH.js.map +1 -0
- package/dist/chunks/header.BAKjEGmH.js +183 -0
- package/dist/chunks/header.BAKjEGmH.js.map +1 -0
- package/dist/chunks/{index.CU8GKq4C.js → index.-wO_BQCb.js} +2 -1
- package/dist/chunks/{index.CU8GKq4C.js.map → index.-wO_BQCb.js.map} +1 -1
- package/dist/chunks/index.BDuTpjD8.js +40 -0
- package/dist/chunks/index.BDuTpjD8.js.map +1 -0
- package/dist/chunks/index.BxBB1rsx.js +15 -0
- package/dist/chunks/index.BxBB1rsx.js.map +1 -0
- package/dist/chunks/index.DD7TppDb.js +10 -0
- package/dist/chunks/index.DD7TppDb.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.B0zJWJZn.js → info-icon-with-popover.CxXWP4TR.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.B0zJWJZn.js.map → info-icon-with-popover.CxXWP4TR.js.map} +1 -1
- package/dist/chunks/{info-icon.C4_l0WAf.js → info-icon.D3neDWqH.js} +4 -4
- package/dist/chunks/{info-icon.C4_l0WAf.js.map → info-icon.D3neDWqH.js.map} +1 -1
- package/dist/chunks/info.4d_mJHvT.js +24 -0
- package/dist/chunks/info.4d_mJHvT.js.map +1 -0
- package/dist/chunks/{input-field-password.PU9SY4FC.js → input-field-password.CO0lAgMh.js} +73 -70
- package/dist/chunks/input-field-password.CO0lAgMh.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.D2juJ9ZD.js → input-field-phone-number.TXnK0dch.js} +324 -321
- package/dist/chunks/{input-field-phone-number.D2juJ9ZD.js.map → input-field-phone-number.TXnK0dch.js.map} +1 -1
- package/dist/chunks/input-field.De4sp76g.js +152 -0
- package/dist/chunks/input-field.De4sp76g.js.map +1 -0
- package/dist/chunks/{inspector.types.BtgXpTC7.js → inspector.types.ClnPOYmb.js} +6 -6
- package/dist/chunks/{inspector.types.BtgXpTC7.js.map → inspector.types.ClnPOYmb.js.map} +1 -1
- package/dist/chunks/{layout-row.CHwDU8yK.js → layout-row.dh2VyGoD.js} +2 -2
- package/dist/chunks/{layout-row.CHwDU8yK.js.map → layout-row.dh2VyGoD.js.map} +1 -1
- package/dist/chunks/{link.DZlbzVSB.js → link.BH3eB_7E.js} +4 -3
- package/dist/chunks/link.BH3eB_7E.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.BJBWnC2r.js → listbox-option-tag.xGQr3Su1.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BJBWnC2r.js.map → listbox-option-tag.xGQr3Su1.js.map} +1 -1
- package/dist/chunks/{menu.BC7ynpgF.js → menu.li3Kg9Uq.js} +227 -194
- package/dist/chunks/menu.li3Kg9Uq.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js → modal-fullscreen.C4eL63TC.js} +6 -6
- package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js.map → modal-fullscreen.C4eL63TC.js.map} +1 -1
- package/dist/chunks/{modal.DV55hSPn.js → modal.BpDz0Dhc.js} +5 -5
- package/dist/chunks/{modal.DV55hSPn.js.map → modal.BpDz0Dhc.js.map} +1 -1
- package/dist/chunks/{pagination.CT-h2q0J.js → pagination.FuELftBG.js} +6 -5
- package/dist/chunks/pagination.FuELftBG.js.map +1 -0
- package/dist/chunks/payment-method.NZKiNOmM.js +76 -0
- package/dist/chunks/payment-method.NZKiNOmM.js.map +1 -0
- package/dist/chunks/{popover.CRdrSmFW.js → popover.Cb6utVhS.js} +29 -22
- package/dist/chunks/{popover.CRdrSmFW.js.map → popover.Cb6utVhS.js.map} +1 -1
- package/dist/chunks/{popper-container.CsW4R0-t.js → popper-container.CiEkF7eb.js} +356 -352
- package/dist/chunks/popper-container.CiEkF7eb.js.map +1 -0
- package/dist/chunks/{promo-banner.BNXfyv3h.js → promo-banner.PnHud5Wi.js} +3 -3
- package/dist/chunks/{promo-banner.BNXfyv3h.js.map → promo-banner.PnHud5Wi.js.map} +1 -1
- package/dist/chunks/{radio-group.CUgib4vp.js → radio-group._8PsjPCZ.js} +4 -4
- package/dist/chunks/{radio-group.CUgib4vp.js.map → radio-group._8PsjPCZ.js.map} +1 -1
- package/dist/chunks/{refresh.BKI9WwKh.js → refresh.Bc9FzGjJ.js} +4 -4
- package/dist/chunks/refresh.Bc9FzGjJ.js.map +1 -0
- package/dist/chunks/{search-bar.bMOGN8_E.js → search-bar.CVY2e8_B.js} +28 -46
- package/dist/chunks/search-bar.CVY2e8_B.js.map +1 -0
- package/dist/chunks/search.DLtglc02.js +24 -0
- package/dist/chunks/search.DLtglc02.js.map +1 -0
- package/dist/chunks/{secondary-nav.C9sm93do.js → secondary-nav.LxcuTR16.js} +3 -3
- package/dist/chunks/{secondary-nav.C9sm93do.js.map → secondary-nav.LxcuTR16.js.map} +1 -1
- package/dist/chunks/{segmented-control.BxCcPbKd.js → segmented-control.D69WXQGh.js} +2 -2
- package/dist/chunks/{segmented-control.BxCcPbKd.js.map → segmented-control.D69WXQGh.js.map} +1 -1
- package/dist/chunks/{selection-card-group.0O3gmtoi.js → selection-card-group.MTKkCBeK.js} +11 -11
- package/dist/chunks/{selection-card-group.0O3gmtoi.js.map → selection-card-group.MTKkCBeK.js.map} +1 -1
- package/dist/chunks/{show.IEAxtCB7.js → show.e4LEpZKG.js} +6 -6
- package/dist/chunks/show.e4LEpZKG.js.map +1 -0
- package/dist/chunks/{sidepanel.Dp6dKRnq.js → sidepanel.BStCbRqN.js} +6 -6
- package/dist/chunks/{sidepanel.Dp6dKRnq.js.map → sidepanel.BStCbRqN.js.map} +1 -1
- package/dist/chunks/{step.DrP2Frvn.js → step.CuOpi-Ye.js} +3 -3
- package/dist/chunks/{step.DrP2Frvn.js.map → step.CuOpi-Ye.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DrY71Ndc.js → structured-list-item.CeosjL40.js} +6 -6
- package/dist/chunks/{structured-list-item.DrY71Ndc.js.map → structured-list-item.CeosjL40.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js → summary-grid-item-custom.CF_TS7oA.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js.map → summary-grid-item-custom.CF_TS7oA.js.map} +1 -1
- package/dist/chunks/{tabs.5zgaD1k3.js → tabs.UFoTqvew.js} +2 -2
- package/dist/chunks/{tabs.5zgaD1k3.js.map → tabs.UFoTqvew.js.map} +1 -1
- package/dist/chunks/{tag.CevG31iQ.js → tag.OgtZ3-ql.js} +2 -2
- package/dist/chunks/{tag.CevG31iQ.js.map → tag.OgtZ3-ql.js.map} +1 -1
- package/dist/chunks/{textarea.DHbXaxdU.js → textarea.BEISPJua.js} +4 -4
- package/dist/chunks/{textarea.DHbXaxdU.js.map → textarea.BEISPJua.js.map} +1 -1
- package/dist/chunks/{timeline-item.C4HOsaEG.js → timeline-item.BeWMuM8A.js} +15 -13
- package/dist/chunks/timeline-item.BeWMuM8A.js.map +1 -0
- package/dist/chunks/{toast.C5I7Wsfa.js → toast.DqSWycRO.js} +3 -3
- package/dist/chunks/{toast.C5I7Wsfa.js.map → toast.DqSWycRO.js.map} +1 -1
- package/dist/chunks/{toggle-button.DK4H4sHT.js → toggle-button.DgSFugBP.js} +2 -2
- package/dist/chunks/{toggle-button.DK4H4sHT.js.map → toggle-button.DgSFugBP.js.map} +1 -1
- package/dist/chunks/{toggle.CyaY0U0K.js → toggle.Q52IIKfi.js} +2 -2
- package/dist/chunks/{toggle.CyaY0U0K.js.map → toggle.Q52IIKfi.js.map} +1 -1
- package/dist/chunks/{tooltip.Bu8o7uyZ.js → tooltip.RPURZd36.js} +2 -2
- package/dist/chunks/{tooltip.Bu8o7uyZ.js.map → tooltip.RPURZd36.js.map} +1 -1
- package/dist/chunks/{tutorial.BbQox1EZ.js → tutorial.Ba8PTa0x.js} +10 -9
- package/dist/chunks/tutorial.Ba8PTa0x.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.CxlYYUbd.js +1164 -0
- package/dist/chunks/use-cached-selected-values.CxlYYUbd.js.map +1 -0
- package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.Cd0kVWwa.js} +4 -4
- package/dist/chunks/warning-filled.Cd0kVWwa.js.map +1 -0
- 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.js +1 -1
- package/dist/dropdown.js +4 -4
- 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 +61 -61
- 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/inspector.js +1 -1
- package/dist/internal.js +35 -33
- 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 +30 -4
- package/dist/styles/bento-light.css +30 -4
- package/dist/styles/bento.css +30 -4
- package/dist/styles/legacy.css +32 -6
- package/dist/styles/styleguide.css +30 -4
- package/dist/styles/utility.css +2 -2
- 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 +512 -195
- package/package.json +6 -6
- package/dist/chunks/alert.hiTIDSeX.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.C5OE7oOu.js +0 -112
- package/dist/chunks/button-actions-with-menu.C5OE7oOu.js.map +0 -1
- package/dist/chunks/calendar.Bb0-Svhx.js +0 -888
- package/dist/chunks/calendar.Bb0-Svhx.js.map +0 -1
- package/dist/chunks/checkbox-input.Bo4NxNOh.js +0 -127
- package/dist/chunks/checkbox-input.Bo4NxNOh.js.map +0 -1
- package/dist/chunks/checkbox.BPvnJrvd.js +0 -162
- package/dist/chunks/checkbox.BPvnJrvd.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.Cn7JN_Tk.js +0 -24
- package/dist/chunks/checkmark-circle-fill.Cn7JN_Tk.js.map +0 -1
- package/dist/chunks/checkmark-small.BtF8b2gE.js.map +0 -1
- package/dist/chunks/chevron-left.PIu6yPqe.js.map +0 -1
- package/dist/chunks/chevron-up.DVfo78kV.js.map +0 -1
- package/dist/chunks/chip.HNUA9VZl.js.map +0 -1
- package/dist/chunks/copy.DMlIj53I.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.Oj6lPaDy.js.map +0 -1
- package/dist/chunks/cross-circle-fill.CnYH4R_h.js +0 -24
- package/dist/chunks/cross-circle-fill.CnYH4R_h.js.map +0 -1
- package/dist/chunks/cross-small.BLUwtRB-.js.map +0 -1
- package/dist/chunks/cross.CsUPDmaA.js.map +0 -1
- package/dist/chunks/data-grid.N5Rxo6QB.js.map +0 -1
- package/dist/chunks/date-picker.Byv5Z-Xj.js +0 -213
- package/dist/chunks/date-picker.Byv5Z-Xj.js.map +0 -1
- package/dist/chunks/date-range-picker.CUS9Q53T.js +0 -884
- package/dist/chunks/date-range-picker.CUS9Q53T.js.map +0 -1
- package/dist/chunks/dialog-page.Bf07JxdG.js.map +0 -1
- package/dist/chunks/dot.BCX4w7eT.js.map +0 -1
- package/dist/chunks/dropdown.CC1i41NX.js.map +0 -1
- package/dist/chunks/expand.CwwKq7Uc.js.map +0 -1
- package/dist/chunks/file-uploader.DTkxh9Ct.js.map +0 -1
- package/dist/chunks/filter-bar.gj9sdW5T.js.map +0 -1
- package/dist/chunks/form-layout-title.CJbgfh3P.js.map +0 -1
- package/dist/chunks/header.5rAXro_L.js +0 -205
- package/dist/chunks/header.5rAXro_L.js.map +0 -1
- package/dist/chunks/index.CrhTVr5J.js +0 -10
- package/dist/chunks/index.CrhTVr5J.js.map +0 -1
- package/dist/chunks/index.DDnf1O9p.js +0 -22
- package/dist/chunks/index.DDnf1O9p.js.map +0 -1
- package/dist/chunks/index.DPafeRJa.js +0 -10
- package/dist/chunks/index.DPafeRJa.js.map +0 -1
- package/dist/chunks/info.CyeBsLgt.js +0 -24
- package/dist/chunks/info.CyeBsLgt.js.map +0 -1
- package/dist/chunks/input-field-password.PU9SY4FC.js.map +0 -1
- package/dist/chunks/input-field.BPbe00eB.js +0 -236
- package/dist/chunks/input-field.BPbe00eB.js.map +0 -1
- package/dist/chunks/link.DZlbzVSB.js.map +0 -1
- package/dist/chunks/menu.BC7ynpgF.js.map +0 -1
- package/dist/chunks/pagination.CT-h2q0J.js.map +0 -1
- package/dist/chunks/payment-method.Bu76jY3c.js +0 -59
- package/dist/chunks/payment-method.Bu76jY3c.js.map +0 -1
- package/dist/chunks/popper-container.CsW4R0-t.js.map +0 -1
- package/dist/chunks/refresh.BKI9WwKh.js.map +0 -1
- package/dist/chunks/search-bar.bMOGN8_E.js.map +0 -1
- package/dist/chunks/search.CBKhp7zB.js +0 -24
- package/dist/chunks/search.CBKhp7zB.js.map +0 -1
- package/dist/chunks/show.IEAxtCB7.js.map +0 -1
- package/dist/chunks/timeline-item.C4HOsaEG.js.map +0 -1
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
- package/dist/chunks/tutorial.BbQox1EZ.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.js +0 -1305
- package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.js.map +0 -1
- package/dist/chunks/warning-filled.CLKRzGMT.js.map +0 -1
- /package/dist/assets/{cross.css → main.css} +0 -0
|
@@ -0,0 +1,903 @@
|
|
|
1
|
+
import { reactive as se, defineComponent as Ae, computed as T, ref as w, onMounted as xe, toRaw as ce, toRef as ue, watch as de } from "vue";
|
|
2
|
+
import { B as je } from "./divider.Cc4JFWG_.js";
|
|
3
|
+
import { B as qe } from "./popover.Cb6utVhS.js";
|
|
4
|
+
import { B as Fe, d as Ke } from "./typography.J1v_SPG3.js";
|
|
5
|
+
import { r as V, t as J, g as De } from "./get-date-locale.BN8xEjY0.js";
|
|
6
|
+
import { g as Z } from "./generate-uid.NJ8tVoha.js";
|
|
7
|
+
import { u as me } from "./i18n.BQkEbtPM.js";
|
|
8
|
+
import { t as fe, f as ee } from "./date.dYFFEunA.js";
|
|
9
|
+
import { i as G, e as z, f as Re, g as ze, h as be, j as Je, s as Ie, k as Qe, l as Xe, a as B, u as Ze } from "./calendar.Bq67h02Z.js";
|
|
10
|
+
import { f as ke, v as et, D as k } from "./date-input.BqBdAO1E.js";
|
|
11
|
+
import { u as tt } from "./use-form-layout-loading.D3lALhtC.js";
|
|
12
|
+
import "./index.Cl4_42j5.js";
|
|
13
|
+
import { B as at } from "./input-field.De4sp76g.js";
|
|
14
|
+
import { B as nt } from "./dropdown.CcHoKbLz.js";
|
|
15
|
+
import { B as rt } from "./segmented-control.D69WXQGh.js";
|
|
16
|
+
import { d as ne } from "./debounce.DUTu11PS.js";
|
|
17
|
+
import { u as st } from "./use-has-slot.C9lQZ6nz.js";
|
|
18
|
+
import { e as N, a as Se } from "./index.BDuTpjD8.js";
|
|
19
|
+
import { n as Ue } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
20
|
+
import { D as ot } from "./dropdown-default-textbox.CDTdHfTv.js";
|
|
21
|
+
import { B as it } from "./directive.O3yEdalv.js";
|
|
22
|
+
import { F as lt, E as ut } from "./error-message.B1-ekAMa.js";
|
|
23
|
+
import { B as dt, c as ct } from "./button-actions.DAvSJtOB.js";
|
|
24
|
+
import "../assets/date-range-picker.css";
|
|
25
|
+
function Dt(t, e) {
|
|
26
|
+
V(2, arguments);
|
|
27
|
+
var r = J(t), i = J(e);
|
|
28
|
+
return r.getTime() === i.getTime();
|
|
29
|
+
}
|
|
30
|
+
function Ee(t) {
|
|
31
|
+
V(1, arguments);
|
|
32
|
+
var e = J(t);
|
|
33
|
+
return e.setMilliseconds(0), e;
|
|
34
|
+
}
|
|
35
|
+
function he(t, e) {
|
|
36
|
+
V(2, arguments);
|
|
37
|
+
var r = Ee(t), i = Ee(e);
|
|
38
|
+
return r.getTime() === i.getTime();
|
|
39
|
+
}
|
|
40
|
+
function mt(t) {
|
|
41
|
+
return V(1, arguments), G(t, Date.now());
|
|
42
|
+
}
|
|
43
|
+
function ft(t, e) {
|
|
44
|
+
V(2, arguments);
|
|
45
|
+
var r = J(t), i = fe(e);
|
|
46
|
+
return r.setHours(i), r;
|
|
47
|
+
}
|
|
48
|
+
function pt(t, e) {
|
|
49
|
+
V(2, arguments);
|
|
50
|
+
var r = J(t), i = fe(e);
|
|
51
|
+
return r.setMinutes(i), r;
|
|
52
|
+
}
|
|
53
|
+
function vt(t, e) {
|
|
54
|
+
V(2, arguments);
|
|
55
|
+
var r = J(t), i = fe(e);
|
|
56
|
+
return r.setSeconds(i), r;
|
|
57
|
+
}
|
|
58
|
+
function oe(t) {
|
|
59
|
+
if (t == null)
|
|
60
|
+
return z(/* @__PURE__ */ new Date());
|
|
61
|
+
const [e, r, i] = t.split("-").map((d) => parseInt(d, 10));
|
|
62
|
+
return new Date(e, r - 1, i);
|
|
63
|
+
}
|
|
64
|
+
const gt = ({
|
|
65
|
+
firstDayOfWeek: t,
|
|
66
|
+
min: e,
|
|
67
|
+
max: r
|
|
68
|
+
}) => ({ getGranularCalendarLimits: (d) => {
|
|
69
|
+
let m = z(e), n = N(r);
|
|
70
|
+
if ((d == null ? void 0 : d.type) === "weekly") {
|
|
71
|
+
if (d.earliest)
|
|
72
|
+
m = z(d.earliest);
|
|
73
|
+
else {
|
|
74
|
+
const f = Re(m, { weekStartsOn: t });
|
|
75
|
+
G(m, f) || (m = z(ze(be(m, { weekStartsOn: t }), 1)));
|
|
76
|
+
}
|
|
77
|
+
if (d.latest)
|
|
78
|
+
n = N(d.latest);
|
|
79
|
+
else {
|
|
80
|
+
const f = be(n, { weekStartsOn: t });
|
|
81
|
+
G(n, f) || (n = N(Je(Re(n, { weekStartsOn: t }), 1)));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if ((d == null ? void 0 : d.type) === "monthly") {
|
|
85
|
+
if (d.earliest)
|
|
86
|
+
m = z(d.earliest);
|
|
87
|
+
else {
|
|
88
|
+
const f = Ie(m);
|
|
89
|
+
G(m, f) || (m = Ie(Qe(m, 1)));
|
|
90
|
+
}
|
|
91
|
+
if (d.latest)
|
|
92
|
+
n = N(d.latest);
|
|
93
|
+
else {
|
|
94
|
+
const f = Se(n);
|
|
95
|
+
G(n, f) || (n = Se(Xe(n, 1)));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return { min: m, max: n };
|
|
99
|
+
} }), yt = () => {
|
|
100
|
+
const t = se({
|
|
101
|
+
daily: null,
|
|
102
|
+
weekly: null,
|
|
103
|
+
monthly: null
|
|
104
|
+
});
|
|
105
|
+
return {
|
|
106
|
+
savedRanges: t,
|
|
107
|
+
saveRange: (i, d) => {
|
|
108
|
+
t[i] = d;
|
|
109
|
+
},
|
|
110
|
+
resetSavedRanges: () => {
|
|
111
|
+
t.daily = null, t.weekly = null, t.monthly = null;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
var D = /* @__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))(D || {});
|
|
116
|
+
const Tt = /[\d]/, _t = /^\d{2}$/, Rt = /^\d{2}:\d{2}$/, bt = (t) => {
|
|
117
|
+
const { selectionStart: e } = t.target, r = Tt.test(t.key) || t.key === "Backspace" || t.key === "Tab", i = [1, 2, 4, 5].includes(e) && t.key === ":";
|
|
118
|
+
!r && !i && t.preventDefault();
|
|
119
|
+
}, Oe = (t) => {
|
|
120
|
+
if (!t)
|
|
121
|
+
return t;
|
|
122
|
+
let e = t;
|
|
123
|
+
if (e.length === 1 && parseInt(t, 10) > 2)
|
|
124
|
+
return `0${e}:`;
|
|
125
|
+
const [r, i] = e.slice(-2);
|
|
126
|
+
return [2, 5].includes(e.length) && i === ":" && (e = `${e.slice(0, e.length - 2)}0${r}`), (_t.test(e) || Rt.test(e)) && (e += ":"), e;
|
|
127
|
+
}, It = {
|
|
128
|
+
"en-US": {
|
|
129
|
+
customRange: "Custom range",
|
|
130
|
+
daily: "Daily",
|
|
131
|
+
dateFrom: "Date from",
|
|
132
|
+
dateTo: "Date to",
|
|
133
|
+
lastMonth: "Last month",
|
|
134
|
+
lastSevenDays: "Last 7 days",
|
|
135
|
+
lastThreeMonths: "Last three months",
|
|
136
|
+
monthly: "Monthly",
|
|
137
|
+
timeFrom: "Time from",
|
|
138
|
+
timeTo: "Time to",
|
|
139
|
+
weekly: "Weekly"
|
|
140
|
+
},
|
|
141
|
+
"ja-JP": {
|
|
142
|
+
customRange: "カスタム範囲を選択",
|
|
143
|
+
daily: "毎日",
|
|
144
|
+
lastMonth: "先月",
|
|
145
|
+
lastSevenDays: "過去7日間",
|
|
146
|
+
monthly: "毎月",
|
|
147
|
+
weekly: "毎週"
|
|
148
|
+
},
|
|
149
|
+
"pt-BR": {
|
|
150
|
+
customRange: "Selecione um intervalo personalizado",
|
|
151
|
+
daily: "Diário",
|
|
152
|
+
lastMonth: "Último mês",
|
|
153
|
+
lastSevenDays: "Últimos 7 dias",
|
|
154
|
+
monthly: "Mensal",
|
|
155
|
+
weekly: "Semanal"
|
|
156
|
+
}
|
|
157
|
+
}, we = 300, Me = "customRange", Ce = "daily", kt = Ae({
|
|
158
|
+
i18n: { messages: It },
|
|
159
|
+
name: "date-range-picker-calendar",
|
|
160
|
+
components: {
|
|
161
|
+
BentoDropdown: nt,
|
|
162
|
+
BentoInputField: at,
|
|
163
|
+
BentoSegmentedControl: rt,
|
|
164
|
+
BentoTypography: Fe,
|
|
165
|
+
Calendar: B
|
|
166
|
+
},
|
|
167
|
+
props: {
|
|
168
|
+
/**
|
|
169
|
+
* Allows user to enter time values in the form
|
|
170
|
+
*/
|
|
171
|
+
allowTimeInput: { type: Boolean, default: !1 },
|
|
172
|
+
/**
|
|
173
|
+
* Ranges form persistance data
|
|
174
|
+
*/
|
|
175
|
+
dateFormData: {
|
|
176
|
+
type: Object,
|
|
177
|
+
default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
181
|
+
*/
|
|
182
|
+
firstDayOfWeek: B.props.firstDayOfWeek,
|
|
183
|
+
/**
|
|
184
|
+
* A list of available granularities.
|
|
185
|
+
* If present, the date picker will display a segmented control to change granularity.
|
|
186
|
+
*/
|
|
187
|
+
granularities: {
|
|
188
|
+
type: Array,
|
|
189
|
+
default: null
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
* Indicate if a date should be disabled or not
|
|
193
|
+
*/
|
|
194
|
+
isDateDisabled: B.props.isDateDisabled,
|
|
195
|
+
/**
|
|
196
|
+
* Set a maximum number of dates to be selectable by the range.
|
|
197
|
+
*/
|
|
198
|
+
maxRange: B.props.maxRange,
|
|
199
|
+
/**
|
|
200
|
+
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
201
|
+
*/
|
|
202
|
+
min: B.props.min,
|
|
203
|
+
/**
|
|
204
|
+
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
205
|
+
*/
|
|
206
|
+
max: B.props.max,
|
|
207
|
+
/**
|
|
208
|
+
* Number of months rendered on pane
|
|
209
|
+
*/
|
|
210
|
+
numberOfMonths: B.props.numberOfMonths,
|
|
211
|
+
/**
|
|
212
|
+
* Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
|
|
213
|
+
*/
|
|
214
|
+
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
215
|
+
/**
|
|
216
|
+
* Enables the custom range selector.
|
|
217
|
+
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
218
|
+
* `label` - label of custom range item.
|
|
219
|
+
* `value` - a unique key of the custom range item.
|
|
220
|
+
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
221
|
+
*/
|
|
222
|
+
quickSelectRanges: {
|
|
223
|
+
type: Array,
|
|
224
|
+
default: void 0
|
|
225
|
+
},
|
|
226
|
+
/**
|
|
227
|
+
* Selected date
|
|
228
|
+
*/
|
|
229
|
+
value: { type: Object, default: void 0 },
|
|
230
|
+
/**
|
|
231
|
+
* The type of calendar to display. Defaults to showing days.
|
|
232
|
+
*/
|
|
233
|
+
variant: B.props.variant
|
|
234
|
+
},
|
|
235
|
+
emits: [
|
|
236
|
+
D.CUSTOM_RANGE,
|
|
237
|
+
D.INPUT,
|
|
238
|
+
D.ERROR,
|
|
239
|
+
D.FORM_DATE,
|
|
240
|
+
D.START_DATE_SELECTED
|
|
241
|
+
],
|
|
242
|
+
setup(t, { emit: e, slots: r }) {
|
|
243
|
+
var ge, ye, Te, _e;
|
|
244
|
+
const { locale: i, t: d } = me(), m = De(), n = se({
|
|
245
|
+
startDate: (ge = t.value) == null ? void 0 : ge.startDate,
|
|
246
|
+
endDate: (ye = t.value) == null ? void 0 : ye.endDate,
|
|
247
|
+
range: (Te = t.value) == null ? void 0 : Te.range,
|
|
248
|
+
...t.granularities ? {
|
|
249
|
+
granularity: ((_e = t.value) == null ? void 0 : _e.granularity) || Ce
|
|
250
|
+
} : {}
|
|
251
|
+
});
|
|
252
|
+
function f(a) {
|
|
253
|
+
return new Date(
|
|
254
|
+
a.getUTCFullYear(),
|
|
255
|
+
a.getUTCMonth(),
|
|
256
|
+
a.getUTCDate(),
|
|
257
|
+
a.getUTCHours(),
|
|
258
|
+
a.getUTCMinutes(),
|
|
259
|
+
a.getUTCSeconds()
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
const y = T(() => {
|
|
263
|
+
var a, s;
|
|
264
|
+
return ((s = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ value: l, data: u }) => {
|
|
265
|
+
if (!u.endDate)
|
|
266
|
+
return l === n.range || Dt(
|
|
267
|
+
f(u.startDate),
|
|
268
|
+
f(n.startDate)
|
|
269
|
+
) && mt(n.endDate);
|
|
270
|
+
if (t.allowTimeInput)
|
|
271
|
+
return he(
|
|
272
|
+
f(u.startDate),
|
|
273
|
+
f(n.startDate)
|
|
274
|
+
) && he(f(u.endDate), f(n.endDate));
|
|
275
|
+
if (u.endDate)
|
|
276
|
+
return G(u.startDate, n.startDate) && G(u.endDate, n.endDate);
|
|
277
|
+
})) == null ? void 0 : s.value) ?? Me;
|
|
278
|
+
}), M = T(() => ({
|
|
279
|
+
"b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
|
|
280
|
+
})), te = T(() => [
|
|
281
|
+
{ label: d("customRange"), value: Me },
|
|
282
|
+
..._.value ? _.value : []
|
|
283
|
+
]), g = T(
|
|
284
|
+
() => {
|
|
285
|
+
var a;
|
|
286
|
+
return ((a = t.granularities) == null ? void 0 : a.find(({ type: s }) => s === n.granularity)) || null;
|
|
287
|
+
}
|
|
288
|
+
), $ = T(
|
|
289
|
+
() => {
|
|
290
|
+
var a;
|
|
291
|
+
return ((a = t.granularities) == null ? void 0 : a.map(({ type: s, disabled: l }) => ({
|
|
292
|
+
label: d(s),
|
|
293
|
+
value: s,
|
|
294
|
+
disabled: l
|
|
295
|
+
}))) ?? [];
|
|
296
|
+
}
|
|
297
|
+
), _ = T(
|
|
298
|
+
() => t.quickSelectRanges && t.quickSelectRanges.map((a) => ({
|
|
299
|
+
...a,
|
|
300
|
+
data: {
|
|
301
|
+
...a.data,
|
|
302
|
+
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
303
|
+
timeDifference: a.data.endDate ? void 0 : new Date(Date.now()).getTime() - a.data.startDate.getTime()
|
|
304
|
+
}
|
|
305
|
+
}))
|
|
306
|
+
), { getGranularCalendarLimits: H } = gt(t), p = T(
|
|
307
|
+
() => t.granularities ? H(g.value) : { min: z(t.min), max: N(t.max) }
|
|
308
|
+
), {
|
|
309
|
+
adjustDateForMonthly: E,
|
|
310
|
+
adjustDateForWeekly: L,
|
|
311
|
+
adjustStartDateInputForWeekly: C,
|
|
312
|
+
adjustEndDateInputForWeekly: v,
|
|
313
|
+
adjustStartDateInputForMonthly: W,
|
|
314
|
+
adjustEndDateInputForMonthly: Q
|
|
315
|
+
} = Ze(t.firstDayOfWeek), { savedRanges: R, saveRange: ie, resetSavedRanges: X } = yt(), b = (a) => a ? ee(a, k.NUMERIC_DATE_YEAR_FIRST, {
|
|
316
|
+
locale: m[i.value.substring(0, 2)] || m.enUS
|
|
317
|
+
}) : "", h = (a) => a ? ee(a, k.HOUR_MINUTE_SECONDS, {
|
|
318
|
+
locale: m[i.value.substring(0, 2)] || m.enUS
|
|
319
|
+
}) : "", O = w(!1), F = w(!1), U = w(!1), P = w(!1), o = se({
|
|
320
|
+
startDate: t.dateFormData.startDate,
|
|
321
|
+
endDate: t.dateFormData.endDate,
|
|
322
|
+
startTime: t.dateFormData.startTime,
|
|
323
|
+
endTime: t.dateFormData.endTime
|
|
324
|
+
}), ae = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), A = (a, s) => {
|
|
325
|
+
if (!s || !ae(s) || t.variant === "month")
|
|
326
|
+
return a;
|
|
327
|
+
let l = new Date(a);
|
|
328
|
+
const [u, I, Y] = s.split(":");
|
|
329
|
+
return l = ft(l, parseInt(u, 10)), l = pt(l, parseInt(I, 10)), l = vt(l, parseInt(Y, 10)), l;
|
|
330
|
+
}, pe = (a) => {
|
|
331
|
+
n.startDate = A(a.startDate, o.startTime), n.endDate = A(a.endDate, o.endTime), n.range = null, t.granularities && X(), e(D.INPUT, {
|
|
332
|
+
...n,
|
|
333
|
+
range: y.value
|
|
334
|
+
});
|
|
335
|
+
}, j = (a) => {
|
|
336
|
+
const s = (u) => t.min && u <= t.min || t.max && u >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(u) : !0;
|
|
337
|
+
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && s(new Date(a));
|
|
338
|
+
};
|
|
339
|
+
xe(() => {
|
|
340
|
+
t.dateFormData.startDate && !j(t.dateFormData.startDate) ? O.value = !0 : (O.value = !1, U.value = !1), t.dateFormData.endDate && !j(t.dateFormData.endDate) ? F.value = !0 : (F.value = !1, P.value = !1);
|
|
341
|
+
});
|
|
342
|
+
const ve = (a) => {
|
|
343
|
+
var s;
|
|
344
|
+
o.startDate = b(a), o.startTime ? U.value && (o.startTime = (s = t.dateFormData) == null ? void 0 : s.startTime) : o.startTime = h(a), O.value = !1, U.value = !1, e(D.START_DATE_SELECTED, a);
|
|
345
|
+
}, c = (a) => {
|
|
346
|
+
var s;
|
|
347
|
+
o.endDate = b(a), o.endTime ? P.value && (o.endTime = (s = t.dateFormData) == null ? void 0 : s.endTime) : o.endTime = h(N(a)), F.value = !1, P.value = !1;
|
|
348
|
+
}, S = (a) => {
|
|
349
|
+
const s = t.value[a];
|
|
350
|
+
if (s)
|
|
351
|
+
return s;
|
|
352
|
+
if (t.dateFormData[a] && j(t.dateFormData[a]))
|
|
353
|
+
return new Date(t.dateFormData[a]);
|
|
354
|
+
}, q = ne((a) => {
|
|
355
|
+
var s;
|
|
356
|
+
if (j(a)) {
|
|
357
|
+
let l = a;
|
|
358
|
+
switch (O.value = !1, (s = g.value) == null ? void 0 : s.type) {
|
|
359
|
+
case "weekly":
|
|
360
|
+
l = C(
|
|
361
|
+
a,
|
|
362
|
+
b,
|
|
363
|
+
p.value.min,
|
|
364
|
+
p.value.max
|
|
365
|
+
), o.startDate = l;
|
|
366
|
+
break;
|
|
367
|
+
case "monthly":
|
|
368
|
+
l = W(
|
|
369
|
+
a,
|
|
370
|
+
b,
|
|
371
|
+
p.value.min,
|
|
372
|
+
p.value.max
|
|
373
|
+
), o.startDate = l;
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
const u = oe(l);
|
|
377
|
+
n.startDate = A(u, o.startTime);
|
|
378
|
+
const I = S("endDate");
|
|
379
|
+
e(D.FORM_DATE, {
|
|
380
|
+
startDate: u,
|
|
381
|
+
endDate: I
|
|
382
|
+
}), e(D.INPUT, {
|
|
383
|
+
...n,
|
|
384
|
+
range: y.value
|
|
385
|
+
});
|
|
386
|
+
} else
|
|
387
|
+
O.value = !0, e(D.ERROR, { ...o });
|
|
388
|
+
}, we), le = (a) => {
|
|
389
|
+
o.startDate = ke(a), q(o.startDate);
|
|
390
|
+
}, Pe = ne((a) => {
|
|
391
|
+
var s;
|
|
392
|
+
if (j(a)) {
|
|
393
|
+
let l = a;
|
|
394
|
+
switch (F.value = !1, (s = g.value) == null ? void 0 : s.type) {
|
|
395
|
+
case "weekly":
|
|
396
|
+
l = v(
|
|
397
|
+
a,
|
|
398
|
+
b,
|
|
399
|
+
p.value.min,
|
|
400
|
+
p.value.max
|
|
401
|
+
), o.endDate = l;
|
|
402
|
+
break;
|
|
403
|
+
case "monthly":
|
|
404
|
+
l = Q(
|
|
405
|
+
a,
|
|
406
|
+
b,
|
|
407
|
+
p.value.min,
|
|
408
|
+
p.value.max
|
|
409
|
+
), o.endDate = l;
|
|
410
|
+
break;
|
|
411
|
+
}
|
|
412
|
+
const u = oe(l);
|
|
413
|
+
n.endDate = A(u, o.endTime);
|
|
414
|
+
const I = S("startDate");
|
|
415
|
+
e(D.FORM_DATE, {
|
|
416
|
+
startDate: I,
|
|
417
|
+
endDate: u
|
|
418
|
+
}), e(D.INPUT, {
|
|
419
|
+
...n,
|
|
420
|
+
range: y.value
|
|
421
|
+
});
|
|
422
|
+
} else
|
|
423
|
+
F.value = !0, e(D.ERROR, { ...o });
|
|
424
|
+
}, we), Be = (a) => {
|
|
425
|
+
o.endDate = ke(a), Pe(o.endDate);
|
|
426
|
+
}, Ne = (a) => {
|
|
427
|
+
et(a);
|
|
428
|
+
}, Le = ne((a) => {
|
|
429
|
+
if (ae(a)) {
|
|
430
|
+
U.value = !1, n.startDate = A(n.startDate, a);
|
|
431
|
+
const s = S("endDate");
|
|
432
|
+
e(D.FORM_DATE, {
|
|
433
|
+
startDate: new Date(n.startDate),
|
|
434
|
+
endDate: s,
|
|
435
|
+
startTime: a,
|
|
436
|
+
endTime: t.dateFormData.endTime
|
|
437
|
+
}), e(D.INPUT, {
|
|
438
|
+
...n,
|
|
439
|
+
range: y.value
|
|
440
|
+
});
|
|
441
|
+
} else
|
|
442
|
+
U.value = !0, e(D.ERROR, { ...o });
|
|
443
|
+
}), Ye = ne((a) => {
|
|
444
|
+
if (ae(a)) {
|
|
445
|
+
P.value = !1, n.endDate = A(n.endDate, a);
|
|
446
|
+
const s = S("startDate");
|
|
447
|
+
n.startDate = A(new Date(s), t.dateFormData.startTime), e(D.FORM_DATE, {
|
|
448
|
+
startDate: A(new Date(s), t.dateFormData.startTime),
|
|
449
|
+
endDate: new Date(n.endDate),
|
|
450
|
+
startTime: t.dateFormData.startTime,
|
|
451
|
+
endTime: a
|
|
452
|
+
}), e(D.INPUT, {
|
|
453
|
+
...n,
|
|
454
|
+
range: y.value
|
|
455
|
+
});
|
|
456
|
+
} else
|
|
457
|
+
P.value = !0, e(D.ERROR, { ...o });
|
|
458
|
+
}), Ge = (a) => {
|
|
459
|
+
o.startTime = Oe(a), Le(o.startTime);
|
|
460
|
+
}, Ve = (a) => {
|
|
461
|
+
o.endTime = Oe(a), Ye(o.endTime);
|
|
462
|
+
}, $e = (a) => {
|
|
463
|
+
bt(a);
|
|
464
|
+
}, K = (a, s, l, u) => {
|
|
465
|
+
n.startDate = a, n.endDate = s, l && (n.granularity = l), u && (n.range = u);
|
|
466
|
+
}, He = (a) => {
|
|
467
|
+
var l;
|
|
468
|
+
const s = (l = _.value) == null ? void 0 : l.find(({ value: u }) => u === a);
|
|
469
|
+
if (s) {
|
|
470
|
+
X();
|
|
471
|
+
const u = s.data, I = u.endDate || new Date(Date.now()), Y = u.timeDifference ? new Date(I.getTime() - u.timeDifference) : u.startDate;
|
|
472
|
+
o.endDate = b(I), o.startDate = b(Y), K(Y, I, null, a), t.granularities && (n.granularity = u.granularity || Ce), o.startTime || (o.startTime = h(N(Y))), o.endTime || (o.endTime = h(N(I))), n.startDate = Y, n.endDate = I, e(D.CUSTOM_RANGE, {
|
|
473
|
+
...s.data,
|
|
474
|
+
startDate: Y,
|
|
475
|
+
endDate: I,
|
|
476
|
+
range: s.value
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
}, We = (a) => {
|
|
480
|
+
const s = n.granularity;
|
|
481
|
+
if (n.granularity = a, s && ie(s, structuredClone(ce(n))), n.startDate && n.endDate) {
|
|
482
|
+
switch (a) {
|
|
483
|
+
case "monthly": {
|
|
484
|
+
if (R.monthly) {
|
|
485
|
+
K(R.monthly.startDate, R.monthly.endDate, a);
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
const { startDate: l, endDate: u } = E(
|
|
489
|
+
n.startDate,
|
|
490
|
+
n.endDate,
|
|
491
|
+
p.value.min,
|
|
492
|
+
p.value.max
|
|
493
|
+
);
|
|
494
|
+
K(l, u, a);
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
case "weekly": {
|
|
498
|
+
if (R.weekly) {
|
|
499
|
+
K(R.weekly.startDate, R.weekly.endDate, a);
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
const { startDate: l, endDate: u } = L(
|
|
503
|
+
n.startDate,
|
|
504
|
+
n.endDate,
|
|
505
|
+
p.value.min,
|
|
506
|
+
p.value.max
|
|
507
|
+
);
|
|
508
|
+
K(l, u, a);
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
case "daily":
|
|
512
|
+
R.daily && K(R.daily.startDate, R.daily.endDate, a);
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
o.startDate = b(n.startDate), o.endDate = b(n.endDate), e(D.INPUT, {
|
|
516
|
+
...n,
|
|
517
|
+
range: y.value
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
return {
|
|
522
|
+
// Values
|
|
523
|
+
internalRangeDate: n,
|
|
524
|
+
dateTextInput: o,
|
|
525
|
+
endDateError: F,
|
|
526
|
+
endTimeError: P,
|
|
527
|
+
granularityItems: $,
|
|
528
|
+
selectedGranularity: g,
|
|
529
|
+
computedMinMax: p,
|
|
530
|
+
selectedRangeSelectorValue: y,
|
|
531
|
+
startDateError: O,
|
|
532
|
+
startTimeError: U,
|
|
533
|
+
adjustedQuickSelectRanges: _,
|
|
534
|
+
quickSelectRangeDefaultItems: te,
|
|
535
|
+
formInputWrapperConditionalClasses: M,
|
|
536
|
+
// Methods
|
|
537
|
+
hasSlot: st(r),
|
|
538
|
+
t: d,
|
|
539
|
+
// Events
|
|
540
|
+
onDateInput: pe,
|
|
541
|
+
onDateInputKeyDown: Ne,
|
|
542
|
+
onEndDateInput: Be,
|
|
543
|
+
onEndDateSelected: c,
|
|
544
|
+
onEndTimeInput: Ve,
|
|
545
|
+
onGranularityInput: We,
|
|
546
|
+
onRangeSelectorInput: He,
|
|
547
|
+
onStartDateInput: le,
|
|
548
|
+
onStartDateSelected: ve,
|
|
549
|
+
onStartTimeInput: Ge,
|
|
550
|
+
onTimeInputKeyDown: $e
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
var St = function() {
|
|
555
|
+
var e = this, r = e._self._c;
|
|
556
|
+
return e._self._setupProxy, r("div", { staticClass: "b-date-range-picker-calendar" }, [r("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [r("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.hasSlot("title") ? [e._t("title")] : e._e(), e.adjustedQuickSelectRanges ? r("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.granularities ? r("bento-segmented-control", { attrs: { items: e.granularityItems, "model-value": e.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": e.onGranularityInput } }) : e._e(), r("div", [r("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), r("div", { class: e.formInputWrapperConditionalClasses }, [r("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() {
|
|
557
|
+
return [e._v("YYYY-MM-DD")];
|
|
558
|
+
}, proxy: !0 }]) }), e.allowTimeInput ? r("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() {
|
|
559
|
+
return [e._v("HH:MM:SS")];
|
|
560
|
+
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1), r("div", [r("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" To ")]), r("div", { class: e.formInputWrapperConditionalClasses }, [r("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() {
|
|
561
|
+
return [e._v("YYYY-MM-DD")];
|
|
562
|
+
}, proxy: !0 }]) }), e.allowTimeInput ? r("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() {
|
|
563
|
+
return [e._v("HH:MM:SS")];
|
|
564
|
+
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? r("div", [e._t("actions")], 2) : e._e()]), r("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [r("calendar", { attrs: { value: e.internalRangeDate, "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, variant: e.variant, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
|
|
565
|
+
}, Et = [], ht = /* @__PURE__ */ Ue(
|
|
566
|
+
kt,
|
|
567
|
+
St,
|
|
568
|
+
Et,
|
|
569
|
+
!1,
|
|
570
|
+
null,
|
|
571
|
+
"b273133c"
|
|
572
|
+
);
|
|
573
|
+
const x = ht.exports, Ot = ({
|
|
574
|
+
datePickerValue: t,
|
|
575
|
+
isDateIncorrect: e,
|
|
576
|
+
quickSelectRanges: r,
|
|
577
|
+
isMonthVariant: i
|
|
578
|
+
}) => {
|
|
579
|
+
var $, _, H, p;
|
|
580
|
+
const { locale: d, t: m } = me(), n = De(), f = (E) => !!E && !isNaN(E.getTime()), y = (E, L) => f(E) ? ee(E, L, {
|
|
581
|
+
locale: n[d.value.substring(0, 2)] || n.enUS
|
|
582
|
+
}) : void 0, M = se({
|
|
583
|
+
startDate: y(($ = t.value) == null ? void 0 : $.startDate, k.NUMERIC_DATE_YEAR_FIRST),
|
|
584
|
+
endDate: y((_ = t.value) == null ? void 0 : _.endDate, k.NUMERIC_DATE_YEAR_FIRST),
|
|
585
|
+
startTime: y((H = t.value) == null ? void 0 : H.startDate, k.HOUR_MINUTE_SECONDS),
|
|
586
|
+
endTime: y((p = t.value) == null ? void 0 : p.endDate, k.HOUR_MINUTE_SECONDS)
|
|
587
|
+
});
|
|
588
|
+
return {
|
|
589
|
+
// Values
|
|
590
|
+
dateDisplayValue: T(() => {
|
|
591
|
+
var v;
|
|
592
|
+
if (e.value)
|
|
593
|
+
return `${M.startDate || ""} - ${M.endDate || ""}`;
|
|
594
|
+
if (!t.value || !t.value.startDate && !t.value.endDate)
|
|
595
|
+
return m("selectDateRange");
|
|
596
|
+
if ((v = r.value) != null && v.length) {
|
|
597
|
+
const W = r.value.find(({ value: Q }) => {
|
|
598
|
+
var R;
|
|
599
|
+
return Q === ((R = t.value) == null ? void 0 : R.range);
|
|
600
|
+
});
|
|
601
|
+
if (W)
|
|
602
|
+
return W.label;
|
|
603
|
+
}
|
|
604
|
+
const { startDate: E, endDate: L } = M, C = i != null && i.value ? k.LONG_MONTH_YEAR : k.FULL_DATE_MONTH_FIRST;
|
|
605
|
+
return `${y(oe(E), C)} - ${y(
|
|
606
|
+
oe(L),
|
|
607
|
+
C
|
|
608
|
+
)}`;
|
|
609
|
+
}),
|
|
610
|
+
textInputDisplayValue: M,
|
|
611
|
+
// Methods
|
|
612
|
+
formatTextInputDisplayValue: () => ""
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
var re = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(re || {});
|
|
616
|
+
const wt = {
|
|
617
|
+
"en-US": {
|
|
618
|
+
apply: "Apply",
|
|
619
|
+
cancel: "Cancel",
|
|
620
|
+
dateRangePicker: "Date range picker {name}",
|
|
621
|
+
provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
|
|
622
|
+
selectDate: "Select a date",
|
|
623
|
+
selectDateRange: "Select a date range",
|
|
624
|
+
selectedDateIsNotAvailable: "Selected date is not available"
|
|
625
|
+
},
|
|
626
|
+
"ja-JP": {
|
|
627
|
+
apply: "適用",
|
|
628
|
+
cancel: "キャンセル",
|
|
629
|
+
selectDate: "日付を選択"
|
|
630
|
+
},
|
|
631
|
+
"pt-BR": {
|
|
632
|
+
apply: "Aplicar",
|
|
633
|
+
cancel: "Cancelar",
|
|
634
|
+
selectDate: "Selecione uma data"
|
|
635
|
+
}
|
|
636
|
+
}, Mt = Ae({
|
|
637
|
+
i18n: { messages: wt },
|
|
638
|
+
name: "bento-date-range-picker",
|
|
639
|
+
components: {
|
|
640
|
+
BentoButtonActions: dt,
|
|
641
|
+
BentoDivider: je,
|
|
642
|
+
BentoTypography: Fe,
|
|
643
|
+
BentoPopover: qe,
|
|
644
|
+
DateRangePickerCalendar: x,
|
|
645
|
+
DropdownInputDefault: ot,
|
|
646
|
+
ErrorMessage: ut,
|
|
647
|
+
FieldLabel: lt
|
|
648
|
+
},
|
|
649
|
+
directives: { BentoClickOutsideDirective: it },
|
|
650
|
+
props: {
|
|
651
|
+
/**
|
|
652
|
+
* Allows user to enter time values in the form
|
|
653
|
+
*/
|
|
654
|
+
allowTimeInput: { type: Boolean, default: !1 },
|
|
655
|
+
/**
|
|
656
|
+
* Descriptive supporting text visbile underneath the dropdown.
|
|
657
|
+
*/
|
|
658
|
+
description: { type: String, default: void 0 },
|
|
659
|
+
/**
|
|
660
|
+
* Disables dropdown functionality.
|
|
661
|
+
*/
|
|
662
|
+
disabled: { type: Boolean, default: !1 },
|
|
663
|
+
/**
|
|
664
|
+
* Displays component in an error state with an error message
|
|
665
|
+
*/
|
|
666
|
+
errorMessage: { type: String, default: null },
|
|
667
|
+
/**
|
|
668
|
+
* Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
669
|
+
*/
|
|
670
|
+
firstDayOfWeek: x.props.firstDayOfWeek,
|
|
671
|
+
/**
|
|
672
|
+
* A list of available granularities.
|
|
673
|
+
* If present, the date picker will display a segmented control to change granularity.
|
|
674
|
+
*/
|
|
675
|
+
granularities: x.props.granularities,
|
|
676
|
+
/**
|
|
677
|
+
* Indicate if a date should be disabled or not
|
|
678
|
+
*/
|
|
679
|
+
isDateDisabled: x.props.isDateDisabled,
|
|
680
|
+
/**
|
|
681
|
+
* Text that is displayed as a label above the element.
|
|
682
|
+
*/
|
|
683
|
+
label: { type: String, default: void 0 },
|
|
684
|
+
/**
|
|
685
|
+
* Upon opening date range picker, end date's month will be pre-selected.
|
|
686
|
+
*/
|
|
687
|
+
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
688
|
+
/**
|
|
689
|
+
* Highlights the dropdown is optional.
|
|
690
|
+
*/
|
|
691
|
+
optional: { type: Boolean, default: !1 },
|
|
692
|
+
/**
|
|
693
|
+
* The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
|
|
694
|
+
*/
|
|
695
|
+
readonly: { type: Boolean, default: !1 },
|
|
696
|
+
/**
|
|
697
|
+
* Highlights the dropdown is required.
|
|
698
|
+
*/
|
|
699
|
+
required: { type: Boolean, default: !1 },
|
|
700
|
+
/**
|
|
701
|
+
* Adds a info icon next to the label to display the passed tooltip message.
|
|
702
|
+
*/
|
|
703
|
+
tooltipText: { type: String, default: null },
|
|
704
|
+
/**
|
|
705
|
+
* Enables the range selector.
|
|
706
|
+
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
707
|
+
* `label` - label of custom range item.
|
|
708
|
+
* `value` - a unique key of the custom range item.
|
|
709
|
+
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
710
|
+
*/
|
|
711
|
+
quickSelectRanges: {
|
|
712
|
+
type: Array,
|
|
713
|
+
default: void 0
|
|
714
|
+
},
|
|
715
|
+
/**
|
|
716
|
+
* Set a maximum number of dates to be selectable by the range.
|
|
717
|
+
*/
|
|
718
|
+
maxRange: x.props.maxRange,
|
|
719
|
+
/**
|
|
720
|
+
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
721
|
+
*/
|
|
722
|
+
min: x.props.min,
|
|
723
|
+
/**
|
|
724
|
+
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
725
|
+
*/
|
|
726
|
+
max: x.props.max,
|
|
727
|
+
/**
|
|
728
|
+
* Number of months rendered on pane
|
|
729
|
+
*/
|
|
730
|
+
numberOfMonths: x.props.numberOfMonths,
|
|
731
|
+
/**
|
|
732
|
+
* Selected date
|
|
733
|
+
*/
|
|
734
|
+
value: x.props.value,
|
|
735
|
+
/**
|
|
736
|
+
* The type of calendar to display. Defaults to showing days.
|
|
737
|
+
*/
|
|
738
|
+
variant: {
|
|
739
|
+
type: String,
|
|
740
|
+
default: void 0
|
|
741
|
+
// Default will be set by @/internal/calendar
|
|
742
|
+
},
|
|
743
|
+
/**
|
|
744
|
+
* Enables the date picker selection to persist until it is explicitly applied.
|
|
745
|
+
* Displays a set of buttons: Apply and Cancel.
|
|
746
|
+
*
|
|
747
|
+
* @deprecated This will be the default behaviour in v2.0.0.
|
|
748
|
+
*/
|
|
749
|
+
hasActions: { type: Boolean, default: !1 }
|
|
750
|
+
},
|
|
751
|
+
emits: [re.INPUT],
|
|
752
|
+
setup(t, { emit: e }) {
|
|
753
|
+
const { locale: r, t: i } = me(), d = De(), m = Z("bento-date-range-picker-container"), n = Z("bento-date-range-picker-label"), f = Z("bento-date-range-picker-description"), y = Z("bento-date-range-picker-error"), M = Z("bento-date-range-picker-date-error"), te = T(
|
|
754
|
+
() => t.label || i("dateRangePicker", { name: m })
|
|
755
|
+
), g = w(!1), $ = w(null), _ = w(!1), { isReadOnly: H } = tt(ue(t, "readonly"));
|
|
756
|
+
de(
|
|
757
|
+
() => t.disabled,
|
|
758
|
+
() => {
|
|
759
|
+
t.disabled && _.value && (_.value = !1);
|
|
760
|
+
}
|
|
761
|
+
);
|
|
762
|
+
const p = T(() => t.hasActions ? !O.value && g.value : g.value), E = T(() => ({
|
|
763
|
+
"b-date-range-picker__description--error": !!t.errorMessage || p.value
|
|
764
|
+
})), L = T(() => t.variant === "month"), { dateDisplayValue: C, textInputDisplayValue: v } = Ot({
|
|
765
|
+
datePickerValue: ue(t, "value"),
|
|
766
|
+
isDateIncorrect: g,
|
|
767
|
+
quickSelectRanges: ue(t, "quickSelectRanges"),
|
|
768
|
+
isMonthVariant: L
|
|
769
|
+
}), W = T(
|
|
770
|
+
() => `${t.description ? f : ""} ${t.errorMessage ? y : ""} ${g.value ? M : ""}`.trim() || null
|
|
771
|
+
), Q = T(() => t.allowTimeInput && t.variant !== "month"), R = () => {
|
|
772
|
+
_.value = !1;
|
|
773
|
+
}, ie = () => {
|
|
774
|
+
_.value = !0;
|
|
775
|
+
}, X = w(C.value), b = w(
|
|
776
|
+
// textInputDisplayValue is a reactive object
|
|
777
|
+
structuredClone(ce(v))
|
|
778
|
+
), h = w(t.value), O = w(!0), F = T(
|
|
779
|
+
() => t.hasActions ? b.value : v
|
|
780
|
+
), U = T(
|
|
781
|
+
() => t.hasActions ? X.value : C.value
|
|
782
|
+
);
|
|
783
|
+
xe(() => {
|
|
784
|
+
t.hasActions || Ke(
|
|
785
|
+
'BentoDateRangePicker "hasActions" property',
|
|
786
|
+
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
787
|
+
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
788
|
+
"2.0.0"
|
|
789
|
+
);
|
|
790
|
+
}), de(
|
|
791
|
+
() => t.value,
|
|
792
|
+
() => {
|
|
793
|
+
X.value = C.value, b.value = structuredClone(ce(v));
|
|
794
|
+
}
|
|
795
|
+
);
|
|
796
|
+
const P = T(() => [
|
|
797
|
+
{
|
|
798
|
+
title: i("apply"),
|
|
799
|
+
event: () => {
|
|
800
|
+
e(re.INPUT, h.value), R(), O.value = !0;
|
|
801
|
+
},
|
|
802
|
+
disabled: O.value
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
title: i("cancel"),
|
|
806
|
+
event: R
|
|
807
|
+
}
|
|
808
|
+
]);
|
|
809
|
+
return de(h, (c) => {
|
|
810
|
+
if (t.hasActions) {
|
|
811
|
+
O.value = g.value;
|
|
812
|
+
return;
|
|
813
|
+
}
|
|
814
|
+
e(re.INPUT, c);
|
|
815
|
+
}), {
|
|
816
|
+
// Refs
|
|
817
|
+
inputContainerRef: $,
|
|
818
|
+
// Values,
|
|
819
|
+
dateDisplayValue: C,
|
|
820
|
+
datePickerContainerId: m,
|
|
821
|
+
descriptionConditionalClasses: E,
|
|
822
|
+
displayedTextInputValue: F,
|
|
823
|
+
displayedDateValue: U,
|
|
824
|
+
isDateIncorrect: g,
|
|
825
|
+
isDateRangePickerOpen: _,
|
|
826
|
+
isReadOnly: H,
|
|
827
|
+
labelId: n,
|
|
828
|
+
descriptionId: f,
|
|
829
|
+
dateErrorId: M,
|
|
830
|
+
errorId: y,
|
|
831
|
+
popoverAriaLabel: te,
|
|
832
|
+
shouldDisplayError: p,
|
|
833
|
+
ariaDescribedBy: W,
|
|
834
|
+
textInputDisplayValue: v,
|
|
835
|
+
rangePickerButtonActions: P,
|
|
836
|
+
BentoButtonActionsLayout: ct,
|
|
837
|
+
withTimeInput: Q,
|
|
838
|
+
// Events
|
|
839
|
+
closeDateRangePicker: R,
|
|
840
|
+
clearDateRangePickerValue: async () => {
|
|
841
|
+
g.value && (g.value = !1), h.value = null;
|
|
842
|
+
},
|
|
843
|
+
openDateRangePicker: ie,
|
|
844
|
+
onRangeSelectorInput: (c) => {
|
|
845
|
+
if (c) {
|
|
846
|
+
const S = (q) => ee(q, k.NUMERIC_DATE_YEAR_FIRST, {
|
|
847
|
+
locale: d[r.value.substring(0, 2)] || d.enUS
|
|
848
|
+
});
|
|
849
|
+
v.startDate = S(c.startDate), v.endDate = S(c.endDate), h.value = c;
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
onEnterPressedOverInput: () => {
|
|
853
|
+
if (!_.value) {
|
|
854
|
+
_.value = !0;
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
g.value || (_.value = !1);
|
|
858
|
+
},
|
|
859
|
+
onDateRangePickerInput: (c) => {
|
|
860
|
+
g.value = !1;
|
|
861
|
+
const S = (q, le) => q ? ee(q, le, {
|
|
862
|
+
locale: d[r.value.substring(0, 2)] || d.enUS
|
|
863
|
+
}) : void 0;
|
|
864
|
+
v.startDate = S(
|
|
865
|
+
c.startDate,
|
|
866
|
+
k.NUMERIC_DATE_YEAR_FIRST
|
|
867
|
+
), v.endDate = S(c.endDate, k.NUMERIC_DATE_YEAR_FIRST), v.startTime = S(c.startDate, k.HOUR_MINUTE_SECONDS), v.endTime = S(c.endDate, k.HOUR_MINUTE_SECONDS), h.value = c;
|
|
868
|
+
},
|
|
869
|
+
onDateRangePickerError: (c) => {
|
|
870
|
+
g.value = !0, v.startDate = c.startDate, v.endDate = c.endDate, h.value = { startDate: null, endDate: null };
|
|
871
|
+
},
|
|
872
|
+
onDateRangePickerFormDateInputUpdate: (c) => {
|
|
873
|
+
g.value = !1, c.startTime && (v.startTime = c.startTime), c.endTime && (v.endTime = c.endTime);
|
|
874
|
+
},
|
|
875
|
+
// Translations
|
|
876
|
+
t: i
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
var Ct = function() {
|
|
881
|
+
var e = this, r = e._self._c;
|
|
882
|
+
return e._self._setupProxy, r("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 ? r("field-label", { attrs: { id: e.labelId, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), r("div", { on: { keydown: function(i) {
|
|
883
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
|
|
884
|
+
} } }, [r("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 ? r("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.t("provideDateInAFormat") } }) : e._e(), e.errorMessage ? r("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? r("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 ? r("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": "" } }, [r("date-range-picker-calendar", { attrs: { "allow-time-input": e.withTimeInput, "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, variant: e.variant }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate }, scopedSlots: e._u([e.hasActions ? { key: "actions", fn: function() {
|
|
885
|
+
return [r("bento-divider"), r("div", { staticClass: "b-date-range-picker__footer" }, [r("bento-button-actions", { attrs: { actions: e.rangePickerButtonActions, layout: e.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
|
|
886
|
+
}, proxy: !0 } : null], null, !0) })], 1) : e._e()], 1);
|
|
887
|
+
}, At = [], xt = /* @__PURE__ */ Ue(
|
|
888
|
+
Mt,
|
|
889
|
+
Ct,
|
|
890
|
+
At,
|
|
891
|
+
!1,
|
|
892
|
+
null,
|
|
893
|
+
"9cf2af81"
|
|
894
|
+
);
|
|
895
|
+
const na = xt.exports;
|
|
896
|
+
export {
|
|
897
|
+
na as B,
|
|
898
|
+
x as D,
|
|
899
|
+
re as a,
|
|
900
|
+
mt as b,
|
|
901
|
+
Dt as i
|
|
902
|
+
};
|
|
903
|
+
//# sourceMappingURL=date-range-picker.BHfvD0GK.js.map
|