@adyen/bento-vue3 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.Cf184uiI.js → accordion-item.DLyCF015.js} +2 -2
- package/dist/chunks/{accordion-item.Cf184uiI.js.map → accordion-item.DLyCF015.js.map} +1 -1
- package/dist/chunks/{action-bar.DkGjsKiy.js → action-bar.eo5EXYmg.js} +7 -7
- package/dist/chunks/{action-bar.DkGjsKiy.js.map → action-bar.eo5EXYmg.js.map} +1 -1
- package/dist/chunks/{alert.DGewBB2a.js → alert.DEf0borp.js} +45 -44
- package/dist/chunks/alert.DEf0borp.js.map +1 -0
- package/dist/chunks/{base-modal.gW2mkOwf.js → base-modal.BlC6TZNz.js} +6 -6
- package/dist/chunks/{base-modal.gW2mkOwf.js.map → base-modal.BlC6TZNz.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.DQaq1bkf.js +174 -0
- package/dist/chunks/button-actions-with-menu.DQaq1bkf.js.map +1 -0
- package/dist/chunks/{button-actions.BZEKcCbe.js → button-actions.BvGAE7sw.js} +4 -4
- package/dist/chunks/{button-actions.BZEKcCbe.js.map → button-actions.BvGAE7sw.js.map} +1 -1
- package/dist/chunks/{button.BXVKUuum.js → button.6HMG0xEY.js} +2 -2
- package/dist/chunks/{button.BXVKUuum.js.map → button.6HMG0xEY.js.map} +1 -1
- package/dist/chunks/calendar.D2X834TU.js +1252 -0
- package/dist/chunks/calendar.D2X834TU.js.map +1 -0
- package/dist/chunks/{card.Ec-SR2qG.js → card.IrL_Fw-f.js} +3 -3
- package/dist/chunks/{card.Ec-SR2qG.js.map → card.IrL_Fw-f.js.map} +1 -1
- package/dist/chunks/{checkbox-group.KeIRO8lx.js → checkbox-group.BVJfN48k.js} +4 -4
- package/dist/chunks/{checkbox-group.KeIRO8lx.js.map → checkbox-group.BVJfN48k.js.map} +1 -1
- package/dist/chunks/{checkbox-input.CAYgiRHG.js → checkbox-input.CgbJsFXD.js} +62 -55
- package/dist/chunks/checkbox-input.CgbJsFXD.js.map +1 -0
- package/dist/chunks/{checkbox.BllRk82F.js → checkbox.erdZ58Kk.js} +72 -64
- package/dist/chunks/checkbox.erdZ58Kk.js.map +1 -0
- package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js → checkmark-circle-fill.jicbqe7k.js} +13 -13
- package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +1 -0
- package/dist/chunks/{checkmark-small.BDqUF-Ni.js → checkmark-small.D7l69yBf.js} +4 -4
- package/dist/chunks/checkmark-small.D7l69yBf.js.map +1 -0
- package/dist/chunks/{chevron-left.CYEK2UTr.js → chevron-left.BF63HtOH.js} +6 -6
- package/dist/chunks/chevron-left.BF63HtOH.js.map +1 -0
- package/dist/chunks/{chevron-up.Cu9qXgBY.js → chevron-up.-0oLlHmh.js} +6 -6
- package/dist/chunks/chevron-up.-0oLlHmh.js.map +1 -0
- package/dist/chunks/chip.3T0x6FuI.js +74 -0
- package/dist/chunks/chip.3T0x6FuI.js.map +1 -0
- package/dist/chunks/{code-snippet.DfTfz3vU.js → code-snippet.Bb4_r0C8.js} +7 -7
- package/dist/chunks/{code-snippet.DfTfz3vU.js.map → code-snippet.Bb4_r0C8.js.map} +1 -1
- package/dist/chunks/{controls-group.BnbQO34k.js → controls-group.BaDhGB9H.js} +2 -2
- package/dist/chunks/{controls-group.BnbQO34k.js.map → controls-group.BaDhGB9H.js.map} +1 -1
- package/dist/chunks/{copy.DAu8GrR9.js → copy.gmSTAqHY.js} +10 -9
- package/dist/chunks/copy.gmSTAqHY.js.map +1 -0
- package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js → cross-circle-fill-small.mY6ihJcA.js} +4 -4
- package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +1 -0
- package/dist/chunks/cross-circle-fill.B7YpDLTK.js +44 -0
- package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +1 -0
- package/dist/chunks/{cross-small.Z5EKYRm0.js → cross-small.CFrBIeYK.js} +4 -4
- package/dist/chunks/cross-small.CFrBIeYK.js.map +1 -0
- package/dist/chunks/{cross.BZYw4R3N.js → cross.CbLEjiVy.js} +4 -4
- package/dist/chunks/cross.CbLEjiVy.js.map +1 -0
- package/dist/chunks/{dashboard-section.pyg05_v_.js → dashboard-section.MAHmbUDG.js} +4 -4
- package/dist/chunks/{dashboard-section.pyg05_v_.js.map → dashboard-section.MAHmbUDG.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DTZGLrPu.js → dashed-underline.DY8xR9GH.js} +3 -3
- package/dist/chunks/{dashed-underline.DTZGLrPu.js.map → dashed-underline.DY8xR9GH.js.map} +1 -1
- package/dist/chunks/{data-grid-template.sUNqCvbt.js → data-grid-template.Dievz913.js} +3 -3
- package/dist/chunks/{data-grid-template.sUNqCvbt.js.map → data-grid-template.Dievz913.js.map} +1 -1
- package/dist/chunks/{data-grid.BNXoMZf9.js → data-grid.KZqjmRvk.js} +956 -976
- package/dist/chunks/data-grid.KZqjmRvk.js.map +1 -0
- package/dist/chunks/{date-picker.DgpHNnu_.js → date-picker.BWJYkSmo.js} +123 -100
- package/dist/chunks/date-picker.BWJYkSmo.js.map +1 -0
- package/dist/chunks/date-range-picker.1Vbf9Zk8.js +1107 -0
- package/dist/chunks/date-range-picker.1Vbf9Zk8.js.map +1 -0
- package/dist/chunks/{date.Cvfyq77s.js → date.DoJuTLhO.js} +17 -17
- package/dist/chunks/{date.Cvfyq77s.js.map → date.DoJuTLhO.js.map} +1 -1
- package/dist/chunks/{dialog-page.DK2UKGH8.js → dialog-page.CXQafL9G.js} +5 -4
- package/dist/chunks/dialog-page.CXQafL9G.js.map +1 -0
- package/dist/chunks/{dot.cpdFEk6G.js → dot.BW-xtyjC.js} +4 -4
- package/dist/chunks/dot.BW-xtyjC.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js → dropdown-default-textbox.CwsgzDpx.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js.map → dropdown-default-textbox.CwsgzDpx.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DqfoOcUU.js → dropdown-tag.C9nM0YHC.js} +4 -4
- package/dist/chunks/{dropdown-tag.DqfoOcUU.js.map → dropdown-tag.C9nM0YHC.js.map} +1 -1
- package/dist/chunks/{dropdown.a8OeeVAZ.js → dropdown.qw5oXFYs.js} +268 -259
- package/dist/chunks/dropdown.qw5oXFYs.js.map +1 -0
- package/dist/chunks/{empty-state.DkYtiTHG.js → empty-state.BffIZp3a.js} +2 -2
- package/dist/chunks/{empty-state.DkYtiTHG.js.map → empty-state.BffIZp3a.js.map} +1 -1
- package/dist/chunks/{error-message.B3z5WkLF.js → error-message.DAjisbU1.js} +3 -3
- package/dist/chunks/{error-message.B3z5WkLF.js.map → error-message.DAjisbU1.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{expand.CJ162RaJ.js → expand.DusW7F7p.js} +4 -4
- package/dist/chunks/expand.DusW7F7p.js.map +1 -0
- package/dist/chunks/{file-uploader.DV4I5Lvf.js → file-uploader.BLJpDgAZ.js} +57 -56
- package/dist/chunks/file-uploader.BLJpDgAZ.js.map +1 -0
- package/dist/chunks/filter-bar.DYrXBQDF.js +2754 -0
- package/dist/chunks/filter-bar.DYrXBQDF.js.map +1 -0
- package/dist/chunks/{fixed-scroller.B4Eag_Sd.js → fixed-scroller.Bfk75Nei.js} +3 -3
- package/dist/chunks/{fixed-scroller.B4Eag_Sd.js.map → fixed-scroller.Bfk75Nei.js.map} +1 -1
- package/dist/chunks/{focus-trap.DPJj05sV.js → focus-trap.DMgm-9f7.js} +2 -2
- package/dist/chunks/{focus-trap.DPJj05sV.js.map → focus-trap.DMgm-9f7.js.map} +1 -1
- package/dist/chunks/{footer-actions.WvWwFKM8.js → footer-actions.DK3pMfDY.js} +3 -3
- package/dist/chunks/{footer-actions.WvWwFKM8.js.map → footer-actions.DK3pMfDY.js.map} +1 -1
- package/dist/chunks/{form-layout-title.BHL_MDqT.js → form-layout-title.BWCOZyay.js} +62 -60
- package/dist/chunks/form-layout-title.BWCOZyay.js.map +1 -0
- package/dist/chunks/header.BASKzNwu.js +234 -0
- package/dist/chunks/header.BASKzNwu.js.map +1 -0
- 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.BS3BeXQJ.js → index.CMGT-6mh.js} +2 -1
- package/dist/chunks/{index.BS3BeXQJ.js.map → index.CMGT-6mh.js.map} +1 -1
- package/dist/chunks/index.DD7TppDb.js +10 -0
- package/dist/chunks/index.DD7TppDb.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.BM0esxKN.js → info-icon-with-popover.BJccyOFx.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.BM0esxKN.js.map → info-icon-with-popover.BJccyOFx.js.map} +1 -1
- package/dist/chunks/{info-icon.DQn8-VSp.js → info-icon.L8AexnZg.js} +3 -3
- package/dist/chunks/{info-icon.DQn8-VSp.js.map → info-icon.L8AexnZg.js.map} +1 -1
- package/dist/chunks/{info.DYNe2WnZ.js → info.HK3R7Drc.js} +11 -11
- package/dist/chunks/info.HK3R7Drc.js.map +1 -0
- package/dist/chunks/{input-field-password.Bo7FiAOq.js → input-field-password.CZNUHo6s.js} +93 -90
- package/dist/chunks/input-field-password.CZNUHo6s.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.DO2uU2XW.js → input-field-phone-number.D1zlBh3R.js} +348 -345
- package/dist/chunks/{input-field-phone-number.DO2uU2XW.js.map → input-field-phone-number.D1zlBh3R.js.map} +1 -1
- package/dist/chunks/input-field.DqMdqM2u.js +298 -0
- package/dist/chunks/input-field.DqMdqM2u.js.map +1 -0
- package/dist/chunks/{inspector.types.Io6ONte7.js → inspector.types.Dwt3V80X.js} +6 -6
- package/dist/chunks/{inspector.types.Io6ONte7.js.map → inspector.types.Dwt3V80X.js.map} +1 -1
- package/dist/chunks/{layout-row.BAz7JrXo.js → layout-row.Drm_y8e3.js} +2 -2
- package/dist/chunks/{layout-row.BAz7JrXo.js.map → layout-row.Drm_y8e3.js.map} +1 -1
- package/dist/chunks/{link.CyGCtpse.js → link.D3Fq5tt_.js} +15 -13
- package/dist/chunks/link.D3Fq5tt_.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.DIk4F59J.js → listbox-option-tag.YSvtcy4P.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DIk4F59J.js.map → listbox-option-tag.YSvtcy4P.js.map} +1 -1
- package/dist/chunks/menu.DfzP2nRU.js +735 -0
- package/dist/chunks/menu.DfzP2nRU.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.D1gvJFag.js → modal-fullscreen.T1x_vroe.js} +6 -6
- package/dist/chunks/{modal-fullscreen.D1gvJFag.js.map → modal-fullscreen.T1x_vroe.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js → modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js} +5 -5
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js.map → modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js.map} +1 -1
- package/dist/chunks/{pagination.CGS6fGUm.js → pagination.Bt8DNme-.js} +37 -36
- package/dist/chunks/pagination.Bt8DNme-.js.map +1 -0
- package/dist/chunks/payment-method.CLUppDo_.js +125 -0
- package/dist/chunks/payment-method.CLUppDo_.js.map +1 -0
- package/dist/chunks/{popover.BNOfWuSb.js → popover.COzLcAET.js} +27 -20
- package/dist/chunks/{popover.BNOfWuSb.js.map → popover.COzLcAET.js.map} +1 -1
- package/dist/chunks/{popper-container.BvGYgqiE.js → popper-container.CEtaux25.js} +448 -444
- package/dist/chunks/popper-container.CEtaux25.js.map +1 -0
- package/dist/chunks/{promo-banner.BUtq-2iR.js → promo-banner.BCpw2tDD.js} +3 -3
- package/dist/chunks/{promo-banner.BUtq-2iR.js.map → promo-banner.BCpw2tDD.js.map} +1 -1
- package/dist/chunks/{radio-group.CivaJaaQ.js → radio-group.rxg-4rF_.js} +4 -4
- package/dist/chunks/{radio-group.CivaJaaQ.js.map → radio-group.rxg-4rF_.js.map} +1 -1
- package/dist/chunks/{refresh.SzRxQ44W.js → refresh.C20ROVDS.js} +4 -4
- package/dist/chunks/refresh.C20ROVDS.js.map +1 -0
- package/dist/chunks/search-bar.DlihXfPt.js +114 -0
- package/dist/chunks/search-bar.DlihXfPt.js.map +1 -0
- package/dist/chunks/{search.KgjmJMHa.js → search.CW_aTqip.js} +15 -15
- package/dist/chunks/search.CW_aTqip.js.map +1 -0
- package/dist/chunks/{secondary-nav.C6D6dcs6.js → secondary-nav.D2loVonk.js} +3 -3
- package/dist/chunks/{secondary-nav.C6D6dcs6.js.map → secondary-nav.D2loVonk.js.map} +1 -1
- package/dist/chunks/{segmented-control.DKWpxDho.js → segmented-control.Wn-miTIl.js} +2 -2
- package/dist/chunks/{segmented-control.DKWpxDho.js.map → segmented-control.Wn-miTIl.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DzwIeKQC.js → selection-card-group.CtQaeZFM.js} +12 -12
- package/dist/chunks/{selection-card-group.DzwIeKQC.js.map → selection-card-group.CtQaeZFM.js.map} +1 -1
- package/dist/chunks/{show.J9zXGWlK.js → show.ByWWaogc.js} +6 -6
- package/dist/chunks/show.ByWWaogc.js.map +1 -0
- package/dist/chunks/{sidepanel.DzF1iCZM.js → sidepanel.CjaHQEin.js} +6 -6
- package/dist/chunks/{sidepanel.DzF1iCZM.js.map → sidepanel.CjaHQEin.js.map} +1 -1
- package/dist/chunks/{step.DsfmsUU6.js → step.BGFaHGFO.js} +3 -3
- package/dist/chunks/{step.DsfmsUU6.js.map → step.BGFaHGFO.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DQHvIbQo.js → structured-list-item.DAwADFpI.js} +6 -6
- package/dist/chunks/{structured-list-item.DQHvIbQo.js.map → structured-list-item.DAwADFpI.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.D6s8sw36.js → summary-grid-item-custom.DTCzOBBy.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.D6s8sw36.js.map → summary-grid-item-custom.DTCzOBBy.js.map} +1 -1
- package/dist/chunks/{tabs.CiTn85aw.js → tabs.hp52NnXH.js} +2 -2
- package/dist/chunks/{tabs.CiTn85aw.js.map → tabs.hp52NnXH.js.map} +1 -1
- package/dist/chunks/{tag.Bmw9RaOG.js → tag.B1hW92hG.js} +2 -2
- package/dist/chunks/{tag.Bmw9RaOG.js.map → tag.B1hW92hG.js.map} +1 -1
- package/dist/chunks/{textarea.CzuRg2pM.js → textarea.DMA29yQA.js} +4 -4
- package/dist/chunks/{textarea.CzuRg2pM.js.map → textarea.DMA29yQA.js.map} +1 -1
- package/dist/chunks/{timeline-item.CjltBKy0.js → timeline-item.kWg3dTy1.js} +15 -13
- package/dist/chunks/timeline-item.kWg3dTy1.js.map +1 -0
- package/dist/chunks/{toast.BWxPbCOy.js → toast.7D23cICy.js} +3 -3
- package/dist/chunks/{toast.BWxPbCOy.js.map → toast.7D23cICy.js.map} +1 -1
- package/dist/chunks/{toggle-button.B9LWddx9.js → toggle-button.7iAfO6Xx.js} +2 -2
- package/dist/chunks/{toggle-button.B9LWddx9.js.map → toggle-button.7iAfO6Xx.js.map} +1 -1
- package/dist/chunks/{toggle.BmwlaQon.js → toggle.hoD_i2Ey.js} +2 -2
- package/dist/chunks/{toggle.BmwlaQon.js.map → toggle.hoD_i2Ey.js.map} +1 -1
- package/dist/chunks/{tooltip.DS1ok8gh.js → tooltip.Y730-n-n.js} +2 -2
- package/dist/chunks/{tooltip.DS1ok8gh.js.map → tooltip.Y730-n-n.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js → tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js} +11 -10
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.DDP7LJoI.js +1446 -0
- package/dist/chunks/use-cached-selected-values.DDP7LJoI.js.map +1 -0
- package/dist/chunks/{warning-filled.tTkVob0l.js → warning-filled.DmHh0nYG.js} +4 -4
- package/dist/chunks/warning-filled.DmHh0nYG.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 +1 -1
- package/package.json +6 -6
- package/dist/chunks/alert.DGewBB2a.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.BXRKkFiw.js +0 -119
- package/dist/chunks/button-actions-with-menu.BXRKkFiw.js.map +0 -1
- package/dist/chunks/calendar.DNQlLbkK.js +0 -971
- package/dist/chunks/calendar.DNQlLbkK.js.map +0 -1
- package/dist/chunks/checkbox-input.CAYgiRHG.js.map +0 -1
- package/dist/chunks/checkbox.BllRk82F.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.g_tcBhFJ.js.map +0 -1
- package/dist/chunks/checkmark-small.BDqUF-Ni.js.map +0 -1
- package/dist/chunks/chevron-left.CYEK2UTr.js.map +0 -1
- package/dist/chunks/chevron-up.Cu9qXgBY.js.map +0 -1
- package/dist/chunks/chip.sG_6gh3Z.js +0 -71
- package/dist/chunks/chip.sG_6gh3Z.js.map +0 -1
- package/dist/chunks/copy.DAu8GrR9.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.CJyARMSZ.js.map +0 -1
- package/dist/chunks/cross-circle-fill.BzSjakuO.js +0 -44
- package/dist/chunks/cross-circle-fill.BzSjakuO.js.map +0 -1
- package/dist/chunks/cross-small.Z5EKYRm0.js.map +0 -1
- package/dist/chunks/cross.BZYw4R3N.js.map +0 -1
- package/dist/chunks/data-grid.BNXoMZf9.js.map +0 -1
- package/dist/chunks/date-picker.DgpHNnu_.js.map +0 -1
- package/dist/chunks/date-range-picker.CUIOfxjB.js +0 -1086
- package/dist/chunks/date-range-picker.CUIOfxjB.js.map +0 -1
- package/dist/chunks/dialog-page.DK2UKGH8.js.map +0 -1
- package/dist/chunks/dot.cpdFEk6G.js.map +0 -1
- package/dist/chunks/dropdown.a8OeeVAZ.js.map +0 -1
- package/dist/chunks/expand.CJ162RaJ.js.map +0 -1
- package/dist/chunks/file-uploader.DV4I5Lvf.js.map +0 -1
- package/dist/chunks/filter-bar.BZkXUVLH.js +0 -2865
- package/dist/chunks/filter-bar.BZkXUVLH.js.map +0 -1
- package/dist/chunks/form-layout-title.BHL_MDqT.js.map +0 -1
- package/dist/chunks/header.CRC9X7v2.js +0 -256
- package/dist/chunks/header.CRC9X7v2.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.DYNe2WnZ.js.map +0 -1
- package/dist/chunks/input-field-password.Bo7FiAOq.js.map +0 -1
- package/dist/chunks/input-field.rgA0t2sp.js +0 -382
- package/dist/chunks/input-field.rgA0t2sp.js.map +0 -1
- package/dist/chunks/link.CyGCtpse.js.map +0 -1
- package/dist/chunks/menu.DKluB_Dn.js +0 -699
- package/dist/chunks/menu.DKluB_Dn.js.map +0 -1
- package/dist/chunks/pagination.CGS6fGUm.js.map +0 -1
- package/dist/chunks/payment-method.CGNHCiy1.js +0 -73
- package/dist/chunks/payment-method.CGNHCiy1.js.map +0 -1
- package/dist/chunks/popper-container.BvGYgqiE.js.map +0 -1
- package/dist/chunks/refresh.SzRxQ44W.js.map +0 -1
- package/dist/chunks/search-bar.Zdai5UhB.js +0 -132
- package/dist/chunks/search-bar.Zdai5UhB.js.map +0 -1
- package/dist/chunks/search.KgjmJMHa.js.map +0 -1
- package/dist/chunks/show.J9zXGWlK.js.map +0 -1
- package/dist/chunks/timeline-item.CjltBKy0.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.vue_vue_type_script_setup_true_lang.CxTHd8yr.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CxAhnNa6.js +0 -1595
- package/dist/chunks/use-cached-selected-values.CxAhnNa6.js.map +0 -1
- package/dist/chunks/warning-filled.tTkVob0l.js.map +0 -1
- /package/dist/assets/{cross.css → main.css} +0 -0
|
@@ -1,1086 +0,0 @@
|
|
|
1
|
-
import { reactive as De, defineComponent as Ge, computed as I, ref as O, onMounted as He, toRaw as ye, resolveComponent as R, createElementBlock as Te, openBlock as w, createElementVNode as B, createCommentVNode as M, renderSlot as Me, createBlock as N, createVNode as $, withCtx as P, createTextVNode as X, normalizeClass as be, toRef as ge, watch as ve, resolveDirective as ot, withDirectives as st, withKeys as lt, toDisplayString as it, createSlots as dt } from "vue";
|
|
2
|
-
import { B as ut } from "./divider.qUOSAbU6.js";
|
|
3
|
-
import { B as mt } from "./popover.BNOfWuSb.js";
|
|
4
|
-
import { B as We, d as ct } from "./typography.DN5eC5ch.js";
|
|
5
|
-
import { r as x, t as oe, g as Ie } from "./get-date-locale.BN8xEjY0.js";
|
|
6
|
-
import { g as le } from "./generate-uid.NJ8tVoha.js";
|
|
7
|
-
import { u as Re } from "./i18n.D9azDLPe.js";
|
|
8
|
-
import { t as ke, f as ie } from "./date.Cvfyq77s.js";
|
|
9
|
-
import { i as Z, s as re, c as Ce, d as Dt, e as Ae, f as pt, g as _e, h as ft, j as gt, a as Q, u as vt } from "./calendar.DNQlLbkK.js";
|
|
10
|
-
import { f as Ue, v as yt, D as k } from "./date-input.BqBdAO1E.js";
|
|
11
|
-
import { u as Tt } from "./use-form-layout-loading.D3lALhtC.js";
|
|
12
|
-
import { B as bt } from "./directive.O3yEdalv.js";
|
|
13
|
-
import "./events.FNmSWp_P.js";
|
|
14
|
-
import { B as It } from "./input-field.rgA0t2sp.js";
|
|
15
|
-
import { B as Rt } from "./dropdown.a8OeeVAZ.js";
|
|
16
|
-
import { B as kt } from "./segmented-control.DKWpxDho.js";
|
|
17
|
-
import { d as me } from "./debounce.DUTu11PS.js";
|
|
18
|
-
import { u as St } from "./use-has-slot.B7eQSabc.js";
|
|
19
|
-
import { e as W } from "./index.DPafeRJa.js";
|
|
20
|
-
import { e as Fe } from "./index.CrhTVr5J.js";
|
|
21
|
-
import { _ as je } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
22
|
-
import { D as Et } from "./dropdown-default-textbox.BpvVMlcX.js";
|
|
23
|
-
import { F as ht, E as wt } from "./error-message.B3z5WkLF.js";
|
|
24
|
-
import { B as Ot, c as Mt } from "./button-actions.BZEKcCbe.js";
|
|
25
|
-
import "../assets/date-range-picker.css";
|
|
26
|
-
function Ct(e, a) {
|
|
27
|
-
x(2, arguments);
|
|
28
|
-
var l = oe(e), d = oe(a);
|
|
29
|
-
return l.getTime() === d.getTime();
|
|
30
|
-
}
|
|
31
|
-
function Be(e) {
|
|
32
|
-
x(1, arguments);
|
|
33
|
-
var a = oe(e);
|
|
34
|
-
return a.setMilliseconds(0), a;
|
|
35
|
-
}
|
|
36
|
-
function Pe(e, a) {
|
|
37
|
-
x(2, arguments);
|
|
38
|
-
var l = Be(e), d = Be(a);
|
|
39
|
-
return l.getTime() === d.getTime();
|
|
40
|
-
}
|
|
41
|
-
function At(e) {
|
|
42
|
-
return x(1, arguments), Z(e, Date.now());
|
|
43
|
-
}
|
|
44
|
-
function _t(e, a) {
|
|
45
|
-
x(2, arguments);
|
|
46
|
-
var l = oe(e), d = ke(a);
|
|
47
|
-
return l.setHours(d), l;
|
|
48
|
-
}
|
|
49
|
-
function Ut(e, a) {
|
|
50
|
-
x(2, arguments);
|
|
51
|
-
var l = oe(e), d = ke(a);
|
|
52
|
-
return l.setMinutes(d), l;
|
|
53
|
-
}
|
|
54
|
-
function Ft(e, a) {
|
|
55
|
-
x(2, arguments);
|
|
56
|
-
var l = oe(e), d = ke(a);
|
|
57
|
-
return l.setSeconds(d), l;
|
|
58
|
-
}
|
|
59
|
-
function pe(e) {
|
|
60
|
-
if (e == null)
|
|
61
|
-
return re(/* @__PURE__ */ new Date());
|
|
62
|
-
const [a, l, d] = e.split("-").map((i) => parseInt(i, 10));
|
|
63
|
-
return new Date(a, l - 1, d);
|
|
64
|
-
}
|
|
65
|
-
const Bt = ({
|
|
66
|
-
firstDayOfWeek: e,
|
|
67
|
-
min: a,
|
|
68
|
-
max: l
|
|
69
|
-
}) => ({ getGranularCalendarLimits: (i) => {
|
|
70
|
-
let p = re(a), n = W(l);
|
|
71
|
-
if ((i == null ? void 0 : i.type) === "weekly") {
|
|
72
|
-
if (i.earliest)
|
|
73
|
-
p = re(i.earliest);
|
|
74
|
-
else {
|
|
75
|
-
const u = Ce(p, { weekStartsOn: e });
|
|
76
|
-
Z(p, u) || (p = re(Dt(Ae(p, { weekStartsOn: e }), 1)));
|
|
77
|
-
}
|
|
78
|
-
if (i.latest)
|
|
79
|
-
n = W(i.latest);
|
|
80
|
-
else {
|
|
81
|
-
const u = Ae(n, { weekStartsOn: e });
|
|
82
|
-
Z(n, u) || (n = W(pt(Ce(n, { weekStartsOn: e }), 1)));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if ((i == null ? void 0 : i.type) === "monthly") {
|
|
86
|
-
if (i.earliest)
|
|
87
|
-
p = re(i.earliest);
|
|
88
|
-
else {
|
|
89
|
-
const u = _e(p);
|
|
90
|
-
Z(p, u) || (p = _e(ft(p, 1)));
|
|
91
|
-
}
|
|
92
|
-
if (i.latest)
|
|
93
|
-
n = W(i.latest);
|
|
94
|
-
else {
|
|
95
|
-
const u = Fe(n);
|
|
96
|
-
Z(n, u) || (n = Fe(gt(n, 1)));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return { min: p, max: n };
|
|
100
|
-
} }), Pt = () => {
|
|
101
|
-
const e = De({
|
|
102
|
-
daily: null,
|
|
103
|
-
weekly: null,
|
|
104
|
-
monthly: null
|
|
105
|
-
});
|
|
106
|
-
return {
|
|
107
|
-
savedRanges: e,
|
|
108
|
-
saveRange: (d, i) => {
|
|
109
|
-
e[d] = i;
|
|
110
|
-
},
|
|
111
|
-
resetSavedRanges: () => {
|
|
112
|
-
e.daily = null, e.weekly = null, e.monthly = null;
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
var g = /* @__PURE__ */ ((e) => (e.CUSTOM_RANGE = "custom-range", e.INPUT = "input", e.ERROR = "error", e.FORM_DATE = "form-date", e.START_DATE_SELECTED = "start-date-selected", e))(g || {});
|
|
117
|
-
const Nt = /[\d]/, $t = /^\d{2}$/, Lt = /^\d{2}:\d{2}$/, Vt = (e) => {
|
|
118
|
-
const { selectionStart: a } = e.target, l = Nt.test(e.key) || e.key === "Backspace", d = [1, 2, 4, 5].includes(a) && e.key === ":";
|
|
119
|
-
!l && !d && e.preventDefault();
|
|
120
|
-
}, Ne = (e) => {
|
|
121
|
-
if (!e)
|
|
122
|
-
return e;
|
|
123
|
-
let a = e;
|
|
124
|
-
if (a.length === 1 && parseInt(e, 10) > 2)
|
|
125
|
-
return `0${a}:`;
|
|
126
|
-
const [l, d] = a.slice(-2);
|
|
127
|
-
return [2, 5].includes(a.length) && d === ":" && (a = `${a.slice(0, a.length - 2)}0${l}`), ($t.test(a) || Lt.test(a)) && (a += ":"), a;
|
|
128
|
-
}, $e = {
|
|
129
|
-
"en-US": {
|
|
130
|
-
customRange: "Custom range",
|
|
131
|
-
daily: "Daily",
|
|
132
|
-
dateFrom: "Date from",
|
|
133
|
-
dateTo: "Date to",
|
|
134
|
-
lastMonth: "Last month",
|
|
135
|
-
lastSevenDays: "Last 7 days",
|
|
136
|
-
lastThreeMonths: "Last three months",
|
|
137
|
-
monthly: "Monthly",
|
|
138
|
-
timeFrom: "Time from",
|
|
139
|
-
timeTo: "Time to",
|
|
140
|
-
weekly: "Weekly"
|
|
141
|
-
},
|
|
142
|
-
"ja-JP": {
|
|
143
|
-
customRange: "カスタム範囲を選択",
|
|
144
|
-
daily: "毎日",
|
|
145
|
-
lastMonth: "先月",
|
|
146
|
-
lastSevenDays: "過去7日間",
|
|
147
|
-
monthly: "毎月",
|
|
148
|
-
weekly: "毎週"
|
|
149
|
-
},
|
|
150
|
-
"pt-BR": {
|
|
151
|
-
customRange: "Selecione um intervalo personalizado",
|
|
152
|
-
daily: "Diário",
|
|
153
|
-
lastMonth: "Último mês",
|
|
154
|
-
lastSevenDays: "Últimos 7 dias",
|
|
155
|
-
monthly: "Mensal",
|
|
156
|
-
weekly: "Semanal"
|
|
157
|
-
}
|
|
158
|
-
}, Le = 300, Ve = "customRange", Ye = "daily", Yt = Ge({
|
|
159
|
-
i18n: { messages: $e },
|
|
160
|
-
name: "date-range-picker-calendar",
|
|
161
|
-
components: {
|
|
162
|
-
BentoDropdown: Rt,
|
|
163
|
-
BentoInputField: It,
|
|
164
|
-
BentoSegmentedControl: kt,
|
|
165
|
-
BentoTypography: We,
|
|
166
|
-
Calendar: Q
|
|
167
|
-
},
|
|
168
|
-
props: {
|
|
169
|
-
/**
|
|
170
|
-
* Allows user to enter time values in the form
|
|
171
|
-
*/
|
|
172
|
-
allowTimeInput: { type: Boolean, default: !1 },
|
|
173
|
-
/**
|
|
174
|
-
* Ranges form persistance data
|
|
175
|
-
*/
|
|
176
|
-
dateFormData: {
|
|
177
|
-
type: Object,
|
|
178
|
-
default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
|
|
179
|
-
},
|
|
180
|
-
/**
|
|
181
|
-
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
182
|
-
*/
|
|
183
|
-
firstDayOfWeek: Q.props.firstDayOfWeek,
|
|
184
|
-
/**
|
|
185
|
-
* A list of available granularities.
|
|
186
|
-
* If present, the date picker will display a segmented control to change granularity.
|
|
187
|
-
*/
|
|
188
|
-
granularities: {
|
|
189
|
-
type: Array,
|
|
190
|
-
default: null
|
|
191
|
-
},
|
|
192
|
-
/**
|
|
193
|
-
* Indicate if a date should be disabled or not
|
|
194
|
-
*/
|
|
195
|
-
isDateDisabled: Q.props.isDateDisabled,
|
|
196
|
-
/**
|
|
197
|
-
* Set a maximum number of dates to be selectable by the range.
|
|
198
|
-
*/
|
|
199
|
-
maxRange: Q.props.maxRange,
|
|
200
|
-
/**
|
|
201
|
-
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
202
|
-
*/
|
|
203
|
-
min: Q.props.min,
|
|
204
|
-
/**
|
|
205
|
-
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
206
|
-
*/
|
|
207
|
-
max: Q.props.max,
|
|
208
|
-
/**
|
|
209
|
-
* Number of months rendered on pane
|
|
210
|
-
*/
|
|
211
|
-
numberOfMonths: Q.props.numberOfMonths,
|
|
212
|
-
/**
|
|
213
|
-
* Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
|
|
214
|
-
*/
|
|
215
|
-
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
216
|
-
/**
|
|
217
|
-
* Enables the custom range selector.
|
|
218
|
-
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
219
|
-
* `label` - label of custom range item.
|
|
220
|
-
* `value` - a unique key of the custom range item.
|
|
221
|
-
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
222
|
-
*/
|
|
223
|
-
quickSelectRanges: {
|
|
224
|
-
type: Array,
|
|
225
|
-
default: void 0
|
|
226
|
-
},
|
|
227
|
-
/**
|
|
228
|
-
* Selected date
|
|
229
|
-
*/
|
|
230
|
-
value: { type: Object, default: void 0 }
|
|
231
|
-
},
|
|
232
|
-
emits: [
|
|
233
|
-
g.CUSTOM_RANGE,
|
|
234
|
-
g.INPUT,
|
|
235
|
-
g.ERROR,
|
|
236
|
-
g.FORM_DATE,
|
|
237
|
-
g.START_DATE_SELECTED
|
|
238
|
-
],
|
|
239
|
-
setup(e, { emit: a, slots: l }) {
|
|
240
|
-
var Ee, he, we, Oe;
|
|
241
|
-
const { locale: d, t: i } = Re({ messages: $e }), p = Ie(), n = De({
|
|
242
|
-
startDate: (Ee = e.value) == null ? void 0 : Ee.startDate,
|
|
243
|
-
endDate: (he = e.value) == null ? void 0 : he.endDate,
|
|
244
|
-
range: (we = e.value) == null ? void 0 : we.range,
|
|
245
|
-
...e.granularities ? {
|
|
246
|
-
granularity: ((Oe = e.value) == null ? void 0 : Oe.granularity) || Ye
|
|
247
|
-
} : {}
|
|
248
|
-
});
|
|
249
|
-
function u(t) {
|
|
250
|
-
return new Date(
|
|
251
|
-
t.getUTCFullYear(),
|
|
252
|
-
t.getUTCMonth(),
|
|
253
|
-
t.getUTCDate(),
|
|
254
|
-
t.getUTCHours(),
|
|
255
|
-
t.getUTCMinutes(),
|
|
256
|
-
t.getUTCSeconds()
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
const v = I(() => {
|
|
260
|
-
var t, r;
|
|
261
|
-
return ((r = (t = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : t.find(({ data: o }) => {
|
|
262
|
-
if (!o.endDate)
|
|
263
|
-
return Ct(
|
|
264
|
-
u(o.startDate),
|
|
265
|
-
u(n.startDate)
|
|
266
|
-
) && At(n.endDate);
|
|
267
|
-
if (e.allowTimeInput)
|
|
268
|
-
return Pe(
|
|
269
|
-
u(o.startDate),
|
|
270
|
-
u(n.startDate)
|
|
271
|
-
) && Pe(u(o.endDate), u(n.endDate));
|
|
272
|
-
if (o.endDate)
|
|
273
|
-
return Z(o.startDate, n.startDate) && Z(o.endDate, n.endDate);
|
|
274
|
-
})) == null ? void 0 : r.value) ?? Ve;
|
|
275
|
-
}), S = I(() => ({
|
|
276
|
-
"b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
|
|
277
|
-
})), L = I(() => [
|
|
278
|
-
{ label: i("customRange"), value: Ve },
|
|
279
|
-
...T.value ? T.value : []
|
|
280
|
-
]), f = I(
|
|
281
|
-
() => {
|
|
282
|
-
var t;
|
|
283
|
-
return ((t = e.granularities) == null ? void 0 : t.find(({ type: r }) => r === n.granularity)) || null;
|
|
284
|
-
}
|
|
285
|
-
), V = I(
|
|
286
|
-
() => {
|
|
287
|
-
var t;
|
|
288
|
-
return ((t = e.granularities) == null ? void 0 : t.map(({ type: r, disabled: o }) => ({
|
|
289
|
-
label: i(r),
|
|
290
|
-
value: r,
|
|
291
|
-
disabled: o
|
|
292
|
-
}))) ?? [];
|
|
293
|
-
}
|
|
294
|
-
), T = I(
|
|
295
|
-
() => e.quickSelectRanges && e.quickSelectRanges.map((t) => ({
|
|
296
|
-
...t,
|
|
297
|
-
data: {
|
|
298
|
-
...t.data,
|
|
299
|
-
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
300
|
-
timeDifference: t.data.endDate ? void 0 : new Date(Date.now()).getTime() - t.data.startDate.getTime()
|
|
301
|
-
}
|
|
302
|
-
}))
|
|
303
|
-
), { getGranularCalendarLimits: Y } = Bt(e), c = I(
|
|
304
|
-
() => e.granularities ? Y(f.value) : { min: re(e.min), max: W(e.max) }
|
|
305
|
-
), {
|
|
306
|
-
adjustDateForMonthly: j,
|
|
307
|
-
adjustDateForWeekly: C,
|
|
308
|
-
adjustStartDateInputForWeekly: y,
|
|
309
|
-
adjustEndDateInputForWeekly: se,
|
|
310
|
-
adjustStartDateInputForMonthly: K,
|
|
311
|
-
adjustEndDateInputForMonthly: fe
|
|
312
|
-
} = vt(e.firstDayOfWeek), { savedRanges: E, saveRange: de, resetSavedRanges: A } = Pt(), b = (t) => t ? ie(t, k.NUMERIC_DATE_YEAR_FIRST, {
|
|
313
|
-
locale: p[d.value.substring(0, 2)] || p.enUS
|
|
314
|
-
}) : "", ee = (t) => t ? ie(t, k.HOUR_MINUTE_SECONDS, {
|
|
315
|
-
locale: p[d.value.substring(0, 2)] || p.enUS
|
|
316
|
-
}) : "", G = O(!1), H = O(!1), q = O(!1), z = O(!1), s = De({
|
|
317
|
-
startDate: e.dateFormData.startDate,
|
|
318
|
-
endDate: e.dateFormData.endDate,
|
|
319
|
-
startTime: e.dateFormData.startTime,
|
|
320
|
-
endTime: e.dateFormData.endTime
|
|
321
|
-
}), ue = (t) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(t), _ = (t, r) => {
|
|
322
|
-
if (!r || !ue(r))
|
|
323
|
-
return t;
|
|
324
|
-
let o = new Date(t);
|
|
325
|
-
const [m, h, J] = r.split(":");
|
|
326
|
-
return o = _t(o, parseInt(m, 10)), o = Ut(o, parseInt(h, 10)), o = Ft(o, parseInt(J, 10)), o;
|
|
327
|
-
}, Se = (t) => {
|
|
328
|
-
n.startDate = _(t.startDate, s.startTime), n.endDate = _(t.endDate, s.endTime), e.granularities && A(), a(g.INPUT, {
|
|
329
|
-
...n,
|
|
330
|
-
range: v.value
|
|
331
|
-
});
|
|
332
|
-
}, D = (t) => {
|
|
333
|
-
const r = (m) => e.min && m <= e.min || e.max && m >= e.max ? !1 : e.isDateDisabled ? !e.isDateDisabled(m) : !0;
|
|
334
|
-
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(t) && r(new Date(t));
|
|
335
|
-
};
|
|
336
|
-
He(() => {
|
|
337
|
-
e.dateFormData.startDate && !D(e.dateFormData.startDate) ? G.value = !0 : (G.value = !1, q.value = !1), e.dateFormData.endDate && !D(e.dateFormData.endDate) ? H.value = !0 : (H.value = !1, z.value = !1);
|
|
338
|
-
});
|
|
339
|
-
const U = (t) => {
|
|
340
|
-
var r;
|
|
341
|
-
s.startDate = b(t), s.startTime ? q.value && (s.startTime = (r = e.dateFormData) == null ? void 0 : r.startTime) : s.startTime = ee(t), G.value = !1, q.value = !1, a(g.START_DATE_SELECTED, t);
|
|
342
|
-
}, te = (t) => {
|
|
343
|
-
var r;
|
|
344
|
-
s.endDate = b(t), s.endTime ? z.value && (s.endTime = (r = e.dateFormData) == null ? void 0 : r.endTime) : s.endTime = ee(W(t)), H.value = !1, z.value = !1;
|
|
345
|
-
}, ae = (t) => {
|
|
346
|
-
const r = e.value[t];
|
|
347
|
-
if (r)
|
|
348
|
-
return r;
|
|
349
|
-
if (e.dateFormData[t] && D(e.dateFormData[t]))
|
|
350
|
-
return new Date(e.dateFormData[t]);
|
|
351
|
-
}, qe = me((t) => {
|
|
352
|
-
var r;
|
|
353
|
-
if (D(t)) {
|
|
354
|
-
let o = t;
|
|
355
|
-
switch (G.value = !1, (r = f.value) == null ? void 0 : r.type) {
|
|
356
|
-
case "weekly":
|
|
357
|
-
o = y(
|
|
358
|
-
t,
|
|
359
|
-
b,
|
|
360
|
-
c.value.min,
|
|
361
|
-
c.value.max
|
|
362
|
-
), s.startDate = o;
|
|
363
|
-
break;
|
|
364
|
-
case "monthly":
|
|
365
|
-
o = K(
|
|
366
|
-
t,
|
|
367
|
-
b,
|
|
368
|
-
c.value.min,
|
|
369
|
-
c.value.max
|
|
370
|
-
), s.startDate = o;
|
|
371
|
-
break;
|
|
372
|
-
}
|
|
373
|
-
const m = pe(o);
|
|
374
|
-
n.startDate = _(m, s.startTime);
|
|
375
|
-
const h = ae("endDate");
|
|
376
|
-
a(g.FORM_DATE, {
|
|
377
|
-
startDate: m,
|
|
378
|
-
endDate: h
|
|
379
|
-
}), a(g.INPUT, {
|
|
380
|
-
...n,
|
|
381
|
-
range: v.value
|
|
382
|
-
});
|
|
383
|
-
} else
|
|
384
|
-
G.value = !0, a(g.ERROR, { ...s });
|
|
385
|
-
}, Le), ze = (t) => {
|
|
386
|
-
s.startDate = Ue(t), qe(s.startDate);
|
|
387
|
-
}, Je = me((t) => {
|
|
388
|
-
var r;
|
|
389
|
-
if (D(t)) {
|
|
390
|
-
let o = t;
|
|
391
|
-
switch (H.value = !1, (r = f.value) == null ? void 0 : r.type) {
|
|
392
|
-
case "weekly":
|
|
393
|
-
o = se(
|
|
394
|
-
t,
|
|
395
|
-
b,
|
|
396
|
-
c.value.min,
|
|
397
|
-
c.value.max
|
|
398
|
-
), s.endDate = o;
|
|
399
|
-
break;
|
|
400
|
-
case "monthly":
|
|
401
|
-
o = fe(
|
|
402
|
-
t,
|
|
403
|
-
b,
|
|
404
|
-
c.value.min,
|
|
405
|
-
c.value.max
|
|
406
|
-
), s.endDate = o;
|
|
407
|
-
break;
|
|
408
|
-
}
|
|
409
|
-
const m = pe(o);
|
|
410
|
-
n.endDate = _(m, s.endTime);
|
|
411
|
-
const h = ae("startDate");
|
|
412
|
-
a(g.FORM_DATE, {
|
|
413
|
-
startDate: h,
|
|
414
|
-
endDate: m
|
|
415
|
-
}), a(g.INPUT, {
|
|
416
|
-
...n,
|
|
417
|
-
range: v.value
|
|
418
|
-
});
|
|
419
|
-
} else
|
|
420
|
-
H.value = !0, a(g.ERROR, { ...s });
|
|
421
|
-
}, Le), Qe = (t) => {
|
|
422
|
-
s.endDate = Ue(t), Je(s.endDate);
|
|
423
|
-
}, Xe = (t) => {
|
|
424
|
-
yt(t);
|
|
425
|
-
}, Ze = me((t) => {
|
|
426
|
-
if (ue(t)) {
|
|
427
|
-
q.value = !1, n.startDate = _(n.startDate, t);
|
|
428
|
-
const r = ae("endDate");
|
|
429
|
-
a(g.FORM_DATE, {
|
|
430
|
-
startDate: new Date(n.startDate),
|
|
431
|
-
endDate: r,
|
|
432
|
-
startTime: t,
|
|
433
|
-
endTime: e.dateFormData.endTime
|
|
434
|
-
}), a(g.INPUT, {
|
|
435
|
-
...n,
|
|
436
|
-
range: v.value
|
|
437
|
-
});
|
|
438
|
-
} else
|
|
439
|
-
q.value = !0, a(g.ERROR, { ...s });
|
|
440
|
-
}), xe = me((t) => {
|
|
441
|
-
if (ue(t)) {
|
|
442
|
-
z.value = !1, n.endDate = _(n.endDate, t);
|
|
443
|
-
const r = ae("startDate");
|
|
444
|
-
n.startDate = _(new Date(r), e.dateFormData.startTime), a(g.FORM_DATE, {
|
|
445
|
-
startDate: _(new Date(r), e.dateFormData.startTime),
|
|
446
|
-
endDate: new Date(n.endDate),
|
|
447
|
-
startTime: e.dateFormData.startTime,
|
|
448
|
-
endTime: t
|
|
449
|
-
}), a(g.INPUT, {
|
|
450
|
-
...n,
|
|
451
|
-
range: v.value
|
|
452
|
-
});
|
|
453
|
-
} else
|
|
454
|
-
z.value = !0, a(g.ERROR, { ...s });
|
|
455
|
-
}), et = (t) => {
|
|
456
|
-
s.startTime = Ne(t), Ze(s.startTime);
|
|
457
|
-
}, tt = (t) => {
|
|
458
|
-
s.endTime = Ne(t), xe(s.endTime);
|
|
459
|
-
}, at = (t) => {
|
|
460
|
-
Vt(t);
|
|
461
|
-
}, ne = (t, r, o, m) => {
|
|
462
|
-
n.startDate = t, n.endDate = r, o && (n.granularity = o), m && (n.range = m);
|
|
463
|
-
}, nt = (t) => {
|
|
464
|
-
var o;
|
|
465
|
-
const r = (o = T.value) == null ? void 0 : o.find(({ value: m }) => m === t);
|
|
466
|
-
if (r) {
|
|
467
|
-
A();
|
|
468
|
-
const m = r.data, h = m.endDate || new Date(Date.now()), J = m.timeDifference ? new Date(h.getTime() - m.timeDifference) : m.startDate;
|
|
469
|
-
s.endDate = b(h), s.startDate = b(J), ne(J, h, null, t), e.granularities && (n.granularity = m.granularity || Ye), s.startTime || (s.startTime = ee(W(J))), s.endTime || (s.endTime = ee(W(h))), n.startDate = J, n.endDate = h, a(g.CUSTOM_RANGE, {
|
|
470
|
-
...r.data,
|
|
471
|
-
startDate: J,
|
|
472
|
-
endDate: h,
|
|
473
|
-
range: r.value
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
}, rt = (t) => {
|
|
477
|
-
const r = n.granularity;
|
|
478
|
-
if (n.granularity = t, r && de(r, structuredClone(ye(n))), n.startDate && n.endDate) {
|
|
479
|
-
switch (t) {
|
|
480
|
-
case "monthly": {
|
|
481
|
-
if (E.monthly) {
|
|
482
|
-
ne(E.monthly.startDate, E.monthly.endDate, t);
|
|
483
|
-
break;
|
|
484
|
-
}
|
|
485
|
-
const { startDate: o, endDate: m } = j(
|
|
486
|
-
n.startDate,
|
|
487
|
-
n.endDate,
|
|
488
|
-
c.value.min,
|
|
489
|
-
c.value.max
|
|
490
|
-
);
|
|
491
|
-
ne(o, m, t);
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
|
-
case "weekly": {
|
|
495
|
-
if (E.weekly) {
|
|
496
|
-
ne(E.weekly.startDate, E.weekly.endDate, t);
|
|
497
|
-
break;
|
|
498
|
-
}
|
|
499
|
-
const { startDate: o, endDate: m } = C(
|
|
500
|
-
n.startDate,
|
|
501
|
-
n.endDate,
|
|
502
|
-
c.value.min,
|
|
503
|
-
c.value.max
|
|
504
|
-
);
|
|
505
|
-
ne(o, m, t);
|
|
506
|
-
break;
|
|
507
|
-
}
|
|
508
|
-
case "daily":
|
|
509
|
-
E.daily && ne(E.daily.startDate, E.daily.endDate, t);
|
|
510
|
-
break;
|
|
511
|
-
}
|
|
512
|
-
s.startDate = b(n.startDate), s.endDate = b(n.endDate), a(g.INPUT, {
|
|
513
|
-
...n,
|
|
514
|
-
range: v.value
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
return {
|
|
519
|
-
// Values
|
|
520
|
-
internalRangeDate: n,
|
|
521
|
-
dateTextInput: s,
|
|
522
|
-
endDateError: H,
|
|
523
|
-
endTimeError: z,
|
|
524
|
-
granularityItems: V,
|
|
525
|
-
selectedGranularity: f,
|
|
526
|
-
computedMinMax: c,
|
|
527
|
-
selectedRangeSelectorValue: v,
|
|
528
|
-
startDateError: G,
|
|
529
|
-
startTimeError: q,
|
|
530
|
-
adjustedQuickSelectRanges: T,
|
|
531
|
-
quickSelectRangeDefaultItems: L,
|
|
532
|
-
formInputWrapperConditionalClasses: S,
|
|
533
|
-
// Methods
|
|
534
|
-
hasSlot: St(l),
|
|
535
|
-
t: i,
|
|
536
|
-
// Events
|
|
537
|
-
onDateInput: Se,
|
|
538
|
-
onDateInputKeyDown: Xe,
|
|
539
|
-
onEndDateInput: Qe,
|
|
540
|
-
onEndDateSelected: te,
|
|
541
|
-
onEndTimeInput: tt,
|
|
542
|
-
onGranularityInput: rt,
|
|
543
|
-
onRangeSelectorInput: nt,
|
|
544
|
-
onStartDateInput: ze,
|
|
545
|
-
onStartDateSelected: U,
|
|
546
|
-
onStartTimeInput: et,
|
|
547
|
-
onTimeInputKeyDown: at
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
}), Kt = { class: "b-date-range-picker-calendar" }, Gt = { class: "b-date-range-picker-calendar__form-container" }, Ht = { class: "b-date-range-picker-calendar__form" }, Wt = { key: 0 }, jt = { class: "b-date-range-picker-calendar__calendars-container" };
|
|
551
|
-
function qt(e, a, l, d, i, p) {
|
|
552
|
-
const n = R("bento-dropdown"), u = R("bento-segmented-control"), v = R("bento-typography"), S = R("bento-input-field"), L = R("calendar");
|
|
553
|
-
return w(), Te("div", Kt, [
|
|
554
|
-
B("div", Gt, [
|
|
555
|
-
B("div", Ht, [
|
|
556
|
-
e.hasSlot("title") ? Me(e.$slots, "title", { key: 0 }, void 0, !0) : M("", !0),
|
|
557
|
-
e.adjustedQuickSelectRanges ? (w(), N(n, {
|
|
558
|
-
key: 1,
|
|
559
|
-
"aria-label": e.t("customRange"),
|
|
560
|
-
items: e.quickSelectRangeDefaultItems,
|
|
561
|
-
value: e.selectedRangeSelectorValue,
|
|
562
|
-
onInput: e.onRangeSelectorInput
|
|
563
|
-
}, null, 8, ["aria-label", "items", "value", "onInput"])) : M("", !0),
|
|
564
|
-
e.granularities ? (w(), N(u, {
|
|
565
|
-
key: 2,
|
|
566
|
-
items: e.granularityItems,
|
|
567
|
-
"model-value": e.internalRangeDate.granularity,
|
|
568
|
-
"full-width": "",
|
|
569
|
-
"onUpdate:modelValue": e.onGranularityInput
|
|
570
|
-
}, null, 8, ["items", "model-value", "onUpdate:modelValue"])) : M("", !0),
|
|
571
|
-
B("div", null, [
|
|
572
|
-
$(v, {
|
|
573
|
-
stronger: "",
|
|
574
|
-
el: "span",
|
|
575
|
-
class: "b-date-range-picker-calendar__label"
|
|
576
|
-
}, {
|
|
577
|
-
default: P(() => a[0] || (a[0] = [
|
|
578
|
-
X(" From ")
|
|
579
|
-
])),
|
|
580
|
-
_: 1
|
|
581
|
-
}),
|
|
582
|
-
B("div", {
|
|
583
|
-
class: be(e.formInputWrapperConditionalClasses)
|
|
584
|
-
}, [
|
|
585
|
-
$(S, {
|
|
586
|
-
"aria-label": e.t("dateFrom"),
|
|
587
|
-
value: e.dateTextInput.startDate,
|
|
588
|
-
error: e.startDateError,
|
|
589
|
-
class: "b-date-range-picker-calendar__form-input",
|
|
590
|
-
onInput: e.onStartDateInput,
|
|
591
|
-
onKeydown: e.onDateInputKeyDown
|
|
592
|
-
}, {
|
|
593
|
-
description: P(() => a[1] || (a[1] = [
|
|
594
|
-
X("YYYY-MM-DD")
|
|
595
|
-
])),
|
|
596
|
-
_: 1
|
|
597
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
|
|
598
|
-
e.allowTimeInput ? (w(), N(S, {
|
|
599
|
-
key: 0,
|
|
600
|
-
"aria-label": e.t("timeFrom"),
|
|
601
|
-
value: e.dateTextInput.startTime,
|
|
602
|
-
error: e.startTimeError,
|
|
603
|
-
class: "b-date-range-picker-calendar__form-input",
|
|
604
|
-
onInput: e.onStartTimeInput,
|
|
605
|
-
onKeydown: e.onTimeInputKeyDown
|
|
606
|
-
}, {
|
|
607
|
-
description: P(() => a[2] || (a[2] = [
|
|
608
|
-
X("HH:MM:SS")
|
|
609
|
-
])),
|
|
610
|
-
_: 1
|
|
611
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : M("", !0)
|
|
612
|
-
], 2)
|
|
613
|
-
]),
|
|
614
|
-
B("div", null, [
|
|
615
|
-
$(v, {
|
|
616
|
-
stronger: "",
|
|
617
|
-
el: "span",
|
|
618
|
-
class: "b-date-range-picker-calendar__label"
|
|
619
|
-
}, {
|
|
620
|
-
default: P(() => a[3] || (a[3] = [
|
|
621
|
-
X(" To ")
|
|
622
|
-
])),
|
|
623
|
-
_: 1
|
|
624
|
-
}),
|
|
625
|
-
B("div", {
|
|
626
|
-
class: be(e.formInputWrapperConditionalClasses)
|
|
627
|
-
}, [
|
|
628
|
-
$(S, {
|
|
629
|
-
class: "b-date-range-picker-calendar__form-input",
|
|
630
|
-
"aria-label": e.t("dateTo"),
|
|
631
|
-
value: e.dateTextInput.endDate,
|
|
632
|
-
error: e.endDateError,
|
|
633
|
-
onInput: e.onEndDateInput,
|
|
634
|
-
onKeydown: e.onDateInputKeyDown
|
|
635
|
-
}, {
|
|
636
|
-
description: P(() => a[4] || (a[4] = [
|
|
637
|
-
X("YYYY-MM-DD")
|
|
638
|
-
])),
|
|
639
|
-
_: 1
|
|
640
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
|
|
641
|
-
e.allowTimeInput ? (w(), N(S, {
|
|
642
|
-
key: 0,
|
|
643
|
-
"aria-label": e.t("timeTo"),
|
|
644
|
-
value: e.dateTextInput.endTime,
|
|
645
|
-
error: e.endTimeError,
|
|
646
|
-
class: "b-date-range-picker-calendar__form-input",
|
|
647
|
-
onInput: e.onEndTimeInput,
|
|
648
|
-
onKeydown: e.onTimeInputKeyDown
|
|
649
|
-
}, {
|
|
650
|
-
description: P(() => a[5] || (a[5] = [
|
|
651
|
-
X("HH:MM:SS")
|
|
652
|
-
])),
|
|
653
|
-
_: 1
|
|
654
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : M("", !0)
|
|
655
|
-
], 2)
|
|
656
|
-
])
|
|
657
|
-
]),
|
|
658
|
-
e.hasSlot("actions") ? (w(), Te("div", Wt, [
|
|
659
|
-
Me(e.$slots, "actions", {}, void 0, !0)
|
|
660
|
-
])) : M("", !0)
|
|
661
|
-
]),
|
|
662
|
-
B("div", jt, [
|
|
663
|
-
$(L, {
|
|
664
|
-
value: e.internalRangeDate,
|
|
665
|
-
"first-day-of-week": e.firstDayOfWeek,
|
|
666
|
-
"is-date-disabled": e.isDateDisabled,
|
|
667
|
-
"max-range": e.maxRange,
|
|
668
|
-
min: e.computedMinMax.min,
|
|
669
|
-
max: e.computedMinMax.max,
|
|
670
|
-
"number-of-months": e.numberOfMonths,
|
|
671
|
-
"show-end-date-on-open": e.showEndDateOnOpen,
|
|
672
|
-
granularity: e.selectedGranularity,
|
|
673
|
-
"is-range": "",
|
|
674
|
-
onInput: e.onDateInput,
|
|
675
|
-
onStartDateSelected: e.onStartDateSelected,
|
|
676
|
-
onEndDateSelected: e.onEndDateSelected
|
|
677
|
-
}, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "onInput", "onStartDateSelected", "onEndDateSelected"])
|
|
678
|
-
])
|
|
679
|
-
]);
|
|
680
|
-
}
|
|
681
|
-
const F = /* @__PURE__ */ je(Yt, [["render", qt], ["__scopeId", "data-v-1873f648"]]), zt = ({
|
|
682
|
-
datePickerValue: e,
|
|
683
|
-
isDateIncorrect: a,
|
|
684
|
-
quickSelectRanges: l
|
|
685
|
-
}) => {
|
|
686
|
-
var f, V, T, Y;
|
|
687
|
-
const { locale: d, t: i } = Re(), p = Ie(), n = (c) => !!c && !isNaN(c.getTime()), u = (c, j) => n(c) ? ie(c, j, {
|
|
688
|
-
locale: p[d.value.substring(0, 2)] || p.enUS
|
|
689
|
-
}) : void 0, v = De({
|
|
690
|
-
startDate: u((f = e.value) == null ? void 0 : f.startDate, k.NUMERIC_DATE_YEAR_FIRST),
|
|
691
|
-
endDate: u((V = e.value) == null ? void 0 : V.endDate, k.NUMERIC_DATE_YEAR_FIRST),
|
|
692
|
-
startTime: u((T = e.value) == null ? void 0 : T.startDate, k.HOUR_MINUTE_SECONDS),
|
|
693
|
-
endTime: u((Y = e.value) == null ? void 0 : Y.endDate, k.HOUR_MINUTE_SECONDS)
|
|
694
|
-
});
|
|
695
|
-
return {
|
|
696
|
-
// Values
|
|
697
|
-
dateDisplayValue: I(() => {
|
|
698
|
-
var C;
|
|
699
|
-
if (a.value)
|
|
700
|
-
return `${v.startDate || ""} - ${v.endDate || ""}`;
|
|
701
|
-
if (!e.value || !e.value.startDate && !e.value.endDate)
|
|
702
|
-
return i("selectDateRange");
|
|
703
|
-
if ((C = l.value) != null && C.length) {
|
|
704
|
-
const y = l.value.find(({ value: se }) => {
|
|
705
|
-
var K;
|
|
706
|
-
return se === ((K = e.value) == null ? void 0 : K.range);
|
|
707
|
-
});
|
|
708
|
-
if (y)
|
|
709
|
-
return y.label;
|
|
710
|
-
}
|
|
711
|
-
const { startDate: c, endDate: j } = v;
|
|
712
|
-
return `${u(pe(c), k.FULL_DATE_MONTH_FIRST)} - ${u(
|
|
713
|
-
pe(j),
|
|
714
|
-
k.FULL_DATE_MONTH_FIRST
|
|
715
|
-
)}`;
|
|
716
|
-
}),
|
|
717
|
-
textInputDisplayValue: v,
|
|
718
|
-
// Methods
|
|
719
|
-
formatTextInputDisplayValue: () => ""
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
var ce = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(ce || {});
|
|
723
|
-
const Ke = {
|
|
724
|
-
"en-US": {
|
|
725
|
-
apply: "Apply",
|
|
726
|
-
cancel: "Cancel",
|
|
727
|
-
dateRangePicker: "Date range picker {name}",
|
|
728
|
-
provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
|
|
729
|
-
selectDate: "Select a date",
|
|
730
|
-
selectDateRange: "Select a date range",
|
|
731
|
-
selectedDateIsNotAvailable: "Selected date is not available"
|
|
732
|
-
},
|
|
733
|
-
"ja-JP": {
|
|
734
|
-
apply: "適用",
|
|
735
|
-
cancel: "キャンセル",
|
|
736
|
-
selectDate: "日付を選択"
|
|
737
|
-
},
|
|
738
|
-
"pt-BR": {
|
|
739
|
-
apply: "Aplicar",
|
|
740
|
-
cancel: "Cancelar",
|
|
741
|
-
selectDate: "Selecione uma data"
|
|
742
|
-
}
|
|
743
|
-
}, Jt = Ge({
|
|
744
|
-
i18n: { messages: Ke },
|
|
745
|
-
name: "bento-date-range-picker",
|
|
746
|
-
components: {
|
|
747
|
-
BentoButtonActions: Ot,
|
|
748
|
-
BentoDivider: ut,
|
|
749
|
-
BentoTypography: We,
|
|
750
|
-
BentoPopover: mt,
|
|
751
|
-
DateRangePickerCalendar: F,
|
|
752
|
-
DropdownInputDefault: Et,
|
|
753
|
-
ErrorMessage: wt,
|
|
754
|
-
FieldLabel: ht
|
|
755
|
-
},
|
|
756
|
-
directives: { BentoClickOutsideDirective: bt },
|
|
757
|
-
props: {
|
|
758
|
-
/**
|
|
759
|
-
* Allows user to enter time values in the form
|
|
760
|
-
*/
|
|
761
|
-
allowTimeInput: { type: Boolean, default: !1 },
|
|
762
|
-
/**
|
|
763
|
-
* Descriptive supporting text visbile underneath the dropdown.
|
|
764
|
-
*/
|
|
765
|
-
description: { type: String, default: void 0 },
|
|
766
|
-
/**
|
|
767
|
-
* Disables dropdown functionality.
|
|
768
|
-
*/
|
|
769
|
-
disabled: { type: Boolean, default: !1 },
|
|
770
|
-
/**
|
|
771
|
-
* Displays component in an error state with an error message
|
|
772
|
-
*/
|
|
773
|
-
errorMessage: { type: String, default: null },
|
|
774
|
-
/**
|
|
775
|
-
* Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
776
|
-
*/
|
|
777
|
-
firstDayOfWeek: F.props.firstDayOfWeek,
|
|
778
|
-
/**
|
|
779
|
-
* A list of available granularities.
|
|
780
|
-
* If present, the date picker will display a segmented control to change granularity.
|
|
781
|
-
*/
|
|
782
|
-
granularities: F.props.granularities,
|
|
783
|
-
/**
|
|
784
|
-
* Indicate if a date should be disabled or not
|
|
785
|
-
*/
|
|
786
|
-
isDateDisabled: F.props.isDateDisabled,
|
|
787
|
-
/**
|
|
788
|
-
* Text that is displayed as a label above the element.
|
|
789
|
-
*/
|
|
790
|
-
label: { type: String, default: void 0 },
|
|
791
|
-
/**
|
|
792
|
-
* Upon opening date range picker, end date's month will be pre-selected.
|
|
793
|
-
*/
|
|
794
|
-
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
795
|
-
/**
|
|
796
|
-
* Highlights the dropdown is optional.
|
|
797
|
-
*/
|
|
798
|
-
optional: { type: Boolean, default: !1 },
|
|
799
|
-
/**
|
|
800
|
-
* The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
|
|
801
|
-
*/
|
|
802
|
-
readonly: { type: Boolean, default: !1 },
|
|
803
|
-
/**
|
|
804
|
-
* Highlights the dropdown is required.
|
|
805
|
-
*/
|
|
806
|
-
required: { type: Boolean, default: !1 },
|
|
807
|
-
/**
|
|
808
|
-
* Adds a info icon next to the label to display the passed tooltip message.
|
|
809
|
-
*/
|
|
810
|
-
tooltipText: { type: String, default: null },
|
|
811
|
-
/**
|
|
812
|
-
* Enables the range selector.
|
|
813
|
-
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
814
|
-
* `label` - label of custom range item.
|
|
815
|
-
* `value` - a unique key of the custom range item.
|
|
816
|
-
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
817
|
-
*/
|
|
818
|
-
quickSelectRanges: {
|
|
819
|
-
type: Array,
|
|
820
|
-
default: void 0
|
|
821
|
-
},
|
|
822
|
-
/**
|
|
823
|
-
* Set a maximum number of dates to be selectable by the range.
|
|
824
|
-
*/
|
|
825
|
-
maxRange: F.props.maxRange,
|
|
826
|
-
/**
|
|
827
|
-
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
828
|
-
*/
|
|
829
|
-
min: F.props.min,
|
|
830
|
-
/**
|
|
831
|
-
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
832
|
-
*/
|
|
833
|
-
max: F.props.max,
|
|
834
|
-
/**
|
|
835
|
-
* Number of months rendered on pane
|
|
836
|
-
*/
|
|
837
|
-
numberOfMonths: F.props.numberOfMonths,
|
|
838
|
-
/**
|
|
839
|
-
* Selected date
|
|
840
|
-
*/
|
|
841
|
-
value: F.props.value,
|
|
842
|
-
/**
|
|
843
|
-
* Enables the date picker selection to persist until it is explicitly applied.
|
|
844
|
-
* Displays a set of buttons: Apply and Cancel.
|
|
845
|
-
*
|
|
846
|
-
* @deprecated This will be the default behaviour in v2.0.0.
|
|
847
|
-
*/
|
|
848
|
-
hasActions: { type: Boolean, default: !1 }
|
|
849
|
-
},
|
|
850
|
-
emits: [ce.INPUT],
|
|
851
|
-
setup(e, { emit: a }) {
|
|
852
|
-
const { locale: l, t: d } = Re({ messages: Ke }), i = Ie(), p = le("bento-date-range-picker-container"), n = le("bento-date-range-picker-label"), u = le("bento-date-range-picker-description"), v = le("bento-date-range-picker-error"), S = le("bento-date-range-picker-date-error"), L = I(
|
|
853
|
-
() => e.label || d("dateRangePicker", { name: p })
|
|
854
|
-
), f = O(!1), V = O(null), T = O(!1), { isReadOnly: Y } = Tt(ge(e, "readonly"));
|
|
855
|
-
ve(
|
|
856
|
-
() => e.disabled,
|
|
857
|
-
() => {
|
|
858
|
-
e.disabled && T.value && (T.value = !1);
|
|
859
|
-
}
|
|
860
|
-
);
|
|
861
|
-
const c = I(() => e.hasActions ? !b.value && f.value : f.value), j = I(() => ({
|
|
862
|
-
"b-date-range-picker__description--error": !!e.errorMessage || c.value
|
|
863
|
-
})), { dateDisplayValue: C, textInputDisplayValue: y } = zt({
|
|
864
|
-
datePickerValue: ge(e, "value"),
|
|
865
|
-
isDateIncorrect: f,
|
|
866
|
-
quickSelectRanges: ge(e, "quickSelectRanges")
|
|
867
|
-
}), se = I(
|
|
868
|
-
() => `${e.description ? u : ""} ${e.errorMessage ? v : ""} ${f.value ? S : ""}`.trim() || null
|
|
869
|
-
), K = () => {
|
|
870
|
-
T.value = !1;
|
|
871
|
-
}, fe = () => {
|
|
872
|
-
T.value = !0;
|
|
873
|
-
}, E = O(C.value), de = O(
|
|
874
|
-
// textInputDisplayValue is a reactive object
|
|
875
|
-
structuredClone(ye(y))
|
|
876
|
-
), A = O(e.value), b = O(!0), ee = I(
|
|
877
|
-
() => e.hasActions ? de.value : y
|
|
878
|
-
), G = I(
|
|
879
|
-
() => e.hasActions ? E.value : C.value
|
|
880
|
-
);
|
|
881
|
-
He(() => {
|
|
882
|
-
e.hasActions || ct(
|
|
883
|
-
'BentoDateRangePicker "hasActions" property',
|
|
884
|
-
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
885
|
-
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
886
|
-
"2.0.0"
|
|
887
|
-
);
|
|
888
|
-
}), ve(
|
|
889
|
-
() => e.value,
|
|
890
|
-
() => {
|
|
891
|
-
E.value = C.value, de.value = structuredClone(ye(y));
|
|
892
|
-
}
|
|
893
|
-
);
|
|
894
|
-
const H = I(() => [
|
|
895
|
-
{
|
|
896
|
-
title: d("apply"),
|
|
897
|
-
event: () => {
|
|
898
|
-
a(ce.INPUT, A.value), K(), b.value = !0;
|
|
899
|
-
},
|
|
900
|
-
disabled: b.value
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
title: d("cancel"),
|
|
904
|
-
event: K
|
|
905
|
-
}
|
|
906
|
-
]);
|
|
907
|
-
return ve(A, (D) => {
|
|
908
|
-
if (e.hasActions) {
|
|
909
|
-
b.value = f.value;
|
|
910
|
-
return;
|
|
911
|
-
}
|
|
912
|
-
a(ce.INPUT, D);
|
|
913
|
-
}), {
|
|
914
|
-
// Refs
|
|
915
|
-
inputContainerRef: V,
|
|
916
|
-
// Values,
|
|
917
|
-
dateDisplayValue: C,
|
|
918
|
-
datePickerContainerId: p,
|
|
919
|
-
descriptionConditionalClasses: j,
|
|
920
|
-
displayedTextInputValue: ee,
|
|
921
|
-
displayedDateValue: G,
|
|
922
|
-
isDateIncorrect: f,
|
|
923
|
-
isDateRangePickerOpen: T,
|
|
924
|
-
isReadOnly: Y,
|
|
925
|
-
labelId: n,
|
|
926
|
-
descriptionId: u,
|
|
927
|
-
dateErrorId: S,
|
|
928
|
-
errorId: v,
|
|
929
|
-
popoverAriaLabel: L,
|
|
930
|
-
shouldDisplayError: c,
|
|
931
|
-
ariaDescribedBy: se,
|
|
932
|
-
textInputDisplayValue: y,
|
|
933
|
-
rangePickerButtonActions: H,
|
|
934
|
-
BentoButtonActionsLayout: Mt,
|
|
935
|
-
// Events
|
|
936
|
-
closeDateRangePicker: K,
|
|
937
|
-
clearDateRangePickerValue: async () => {
|
|
938
|
-
f.value && (f.value = !1), A.value = null;
|
|
939
|
-
},
|
|
940
|
-
openDateRangePicker: fe,
|
|
941
|
-
onRangeSelectorInput: (D) => {
|
|
942
|
-
if (D) {
|
|
943
|
-
const U = (te) => ie(te, k.NUMERIC_DATE_YEAR_FIRST, {
|
|
944
|
-
locale: i[l.value.substring(0, 2)] || i.enUS
|
|
945
|
-
});
|
|
946
|
-
y.startDate = U(D.startDate), y.endDate = U(D.endDate), A.value = D;
|
|
947
|
-
}
|
|
948
|
-
},
|
|
949
|
-
onEnterPressedOverInput: () => {
|
|
950
|
-
f.value || (T.value = !1);
|
|
951
|
-
},
|
|
952
|
-
onDateRangePickerInput: (D) => {
|
|
953
|
-
f.value = !1;
|
|
954
|
-
const U = (te, ae) => te ? ie(te, ae, {
|
|
955
|
-
locale: i[l.value.substring(0, 2)] || i.enUS
|
|
956
|
-
}) : void 0;
|
|
957
|
-
y.startDate = U(
|
|
958
|
-
D.startDate,
|
|
959
|
-
k.NUMERIC_DATE_YEAR_FIRST
|
|
960
|
-
), y.endDate = U(D.endDate, k.NUMERIC_DATE_YEAR_FIRST), y.startTime = U(D.startDate, k.HOUR_MINUTE_SECONDS), y.endTime = U(D.endDate, k.HOUR_MINUTE_SECONDS), A.value = D;
|
|
961
|
-
},
|
|
962
|
-
onDateRangePickerError: (D) => {
|
|
963
|
-
f.value = !0, y.startDate = D.startDate, y.endDate = D.endDate, A.value = { startDate: null, endDate: null };
|
|
964
|
-
},
|
|
965
|
-
onDateRangePickerFormDateInputUpdate: (D) => {
|
|
966
|
-
f.value = !1, D.startTime && (y.startTime = D.startTime), D.endTime && (y.endTime = D.endTime);
|
|
967
|
-
},
|
|
968
|
-
// Translations
|
|
969
|
-
t: d
|
|
970
|
-
};
|
|
971
|
-
}
|
|
972
|
-
}), Qt = { class: "b-date-range-picker" }, Xt = { class: "b-date-range-picker__footer" };
|
|
973
|
-
function Zt(e, a, l, d, i, p) {
|
|
974
|
-
const n = R("field-label"), u = R("dropdown-input-default"), v = R("error-message"), S = R("bento-typography"), L = R("bento-divider"), f = R("bento-button-actions"), V = R("date-range-picker-calendar"), T = R("bento-popover"), Y = ot("bento-click-outside-directive");
|
|
975
|
-
return st((w(), Te("div", Qt, [
|
|
976
|
-
e.label ? (w(), N(n, {
|
|
977
|
-
key: 0,
|
|
978
|
-
id: e.labelId,
|
|
979
|
-
label: e.label,
|
|
980
|
-
"tooltip-text": e.tooltipText,
|
|
981
|
-
optional: e.optional,
|
|
982
|
-
required: e.required
|
|
983
|
-
}, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : M("", !0),
|
|
984
|
-
B("div", {
|
|
985
|
-
onKeydown: a[0] || (a[0] = lt((...c) => e.onEnterPressedOverInput && e.onEnterPressedOverInput(...c), ["enter"]))
|
|
986
|
-
}, [
|
|
987
|
-
$(u, {
|
|
988
|
-
ref: "inputContainerRef",
|
|
989
|
-
"always-combobox-is-input": "",
|
|
990
|
-
ariaControls: e.datePickerContainerId,
|
|
991
|
-
ariaExpanded: e.isDateRangePickerOpen,
|
|
992
|
-
"aria-labelledby": e.label ? e.labelId : null,
|
|
993
|
-
"aria-describedby": e.ariaDescribedBy,
|
|
994
|
-
disabled: e.disabled,
|
|
995
|
-
"is-invalid": !!e.errorMessage || e.shouldDisplayError,
|
|
996
|
-
open: e.isDateRangePickerOpen,
|
|
997
|
-
"display-value": e.displayedDateValue,
|
|
998
|
-
readonly: e.isReadOnly,
|
|
999
|
-
onOpen: e.openDateRangePicker,
|
|
1000
|
-
onClear: e.clearDateRangePickerValue,
|
|
1001
|
-
onClose: e.closeDateRangePicker
|
|
1002
|
-
}, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly", "onOpen", "onClear", "onClose"])
|
|
1003
|
-
], 32),
|
|
1004
|
-
e.shouldDisplayError ? (w(), N(v, {
|
|
1005
|
-
key: 1,
|
|
1006
|
-
id: e.dateErrorId,
|
|
1007
|
-
"error-message": e.t("provideDateInAFormat"),
|
|
1008
|
-
class: "b-date-range-picker__error-message"
|
|
1009
|
-
}, null, 8, ["id", "error-message"])) : M("", !0),
|
|
1010
|
-
e.errorMessage ? (w(), N(v, {
|
|
1011
|
-
key: 2,
|
|
1012
|
-
id: e.errorId,
|
|
1013
|
-
"error-message": e.errorMessage,
|
|
1014
|
-
class: "b-date-range-picker__error-message"
|
|
1015
|
-
}, null, 8, ["id", "error-message"])) : M("", !0),
|
|
1016
|
-
e.description ? (w(), N(S, {
|
|
1017
|
-
key: 3,
|
|
1018
|
-
id: e.descriptionId,
|
|
1019
|
-
class: be(["b-date-range-picker__description", e.descriptionConditionalClasses]),
|
|
1020
|
-
el: "span"
|
|
1021
|
-
}, {
|
|
1022
|
-
default: P(() => [
|
|
1023
|
-
X(it(e.description), 1)
|
|
1024
|
-
]),
|
|
1025
|
-
_: 1
|
|
1026
|
-
}, 8, ["id", "class"])) : M("", !0),
|
|
1027
|
-
e.inputContainerRef ? (w(), N(T, {
|
|
1028
|
-
key: 4,
|
|
1029
|
-
id: e.datePickerContainerId,
|
|
1030
|
-
class: "b-date-range-picker__container",
|
|
1031
|
-
open: e.isDateRangePickerOpen,
|
|
1032
|
-
"target-element": e.inputContainerRef,
|
|
1033
|
-
"disable-focus-trap": !0,
|
|
1034
|
-
"aria-label": e.popoverAriaLabel,
|
|
1035
|
-
position: "bottom-start",
|
|
1036
|
-
"without-space": "",
|
|
1037
|
-
"fit-content": ""
|
|
1038
|
-
}, {
|
|
1039
|
-
default: P(() => [
|
|
1040
|
-
$(V, {
|
|
1041
|
-
"allow-time-input": e.allowTimeInput,
|
|
1042
|
-
"quick-select-ranges": e.quickSelectRanges,
|
|
1043
|
-
value: e.value,
|
|
1044
|
-
"first-day-of-week": e.firstDayOfWeek,
|
|
1045
|
-
granularities: e.granularities,
|
|
1046
|
-
"is-date-disabled": e.isDateDisabled,
|
|
1047
|
-
"max-range": e.maxRange,
|
|
1048
|
-
min: e.min,
|
|
1049
|
-
max: e.max,
|
|
1050
|
-
"number-of-months": e.numberOfMonths,
|
|
1051
|
-
"show-end-date-on-open": e.showEndDateOnOpen,
|
|
1052
|
-
"date-form-data": e.displayedTextInputValue,
|
|
1053
|
-
onCustomRange: e.onRangeSelectorInput,
|
|
1054
|
-
onInput: e.onDateRangePickerInput,
|
|
1055
|
-
onError: e.onDateRangePickerError,
|
|
1056
|
-
onFormDate: e.onDateRangePickerFormDateInputUpdate
|
|
1057
|
-
}, dt({ _: 2 }, [
|
|
1058
|
-
e.hasActions ? {
|
|
1059
|
-
name: "actions",
|
|
1060
|
-
fn: P(() => [
|
|
1061
|
-
$(L),
|
|
1062
|
-
B("div", Xt, [
|
|
1063
|
-
$(f, {
|
|
1064
|
-
actions: e.rangePickerButtonActions,
|
|
1065
|
-
layout: e.BentoButtonActionsLayout.SPACE_BETWEEN
|
|
1066
|
-
}, null, 8, ["actions", "layout"])
|
|
1067
|
-
])
|
|
1068
|
-
]),
|
|
1069
|
-
key: "0"
|
|
1070
|
-
} : void 0
|
|
1071
|
-
]), 1032, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "granularities", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "date-form-data", "onCustomRange", "onInput", "onError", "onFormDate"])
|
|
1072
|
-
]),
|
|
1073
|
-
_: 1
|
|
1074
|
-
}, 8, ["id", "open", "target-element", "aria-label"])) : M("", !0)
|
|
1075
|
-
])), [
|
|
1076
|
-
[Y, e.closeDateRangePicker]
|
|
1077
|
-
]);
|
|
1078
|
-
}
|
|
1079
|
-
const ka = /* @__PURE__ */ je(Jt, [["render", Zt], ["__scopeId", "data-v-d4f9424a"]]);
|
|
1080
|
-
export {
|
|
1081
|
-
ka as B,
|
|
1082
|
-
F as D,
|
|
1083
|
-
ce as a,
|
|
1084
|
-
Ct as i
|
|
1085
|
-
};
|
|
1086
|
-
//# sourceMappingURL=date-range-picker.CUIOfxjB.js.map
|