@adyen/bento-vue2 1.72.0 → 1.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -10
- package/dist/@types/index.d.ts +1538 -1703
- package/dist/@types/use-form-v4.d.ts +1 -1
- 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/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.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/header-meta.css +1 -1
- package/dist/assets/header-with-views.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/listbox-option-tag.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.CoqaoVnC.js → accordion-item.nQhXD2tV.js} +2 -2
- package/dist/chunks/{accordion-item.CoqaoVnC.js.map → accordion-item.nQhXD2tV.js.map} +1 -1
- package/dist/chunks/{action-bar.Bxrtx1Vj.js → action-bar.MXZTIUNk.js} +5 -5
- package/dist/chunks/{action-bar.Bxrtx1Vj.js.map → action-bar.MXZTIUNk.js.map} +1 -1
- package/dist/chunks/{ai-button.FRPkTHz6.js → ai-button.DBwtNkyS.js} +2 -2
- package/dist/chunks/{ai-button.FRPkTHz6.js.map → ai-button.DBwtNkyS.js.map} +1 -1
- package/dist/chunks/{alert.CMyL-zWT.js → alert.SZPP58tl.js} +3 -3
- package/dist/chunks/{alert.CMyL-zWT.js.map → alert.SZPP58tl.js.map} +1 -1
- package/dist/chunks/{avatar.KdcsNOsm.js → avatar.CeDqq2Z-.js} +3 -3
- package/dist/chunks/avatar.CeDqq2Z-.js.map +1 -0
- package/dist/chunks/{base-modal.DInbAZlp.js → base-modal.BMdlCSd0.js} +7 -7
- package/dist/chunks/base-modal.BMdlCSd0.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.BtWUxmSL.js → button-actions-with-menu.BFRkPi6g.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BtWUxmSL.js.map → button-actions-with-menu.BFRkPi6g.js.map} +1 -1
- package/dist/chunks/{button-actions.55vIvDsX.js → button-actions.B81vY51z.js} +11 -14
- package/dist/chunks/button-actions.B81vY51z.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{button.CilT7NmM.js → button.CS_kdxYh.js} +3 -3
- package/dist/chunks/button.CS_kdxYh.js.map +1 -0
- package/dist/chunks/{calendar.M69sfyB9.js → calendar.EfqJlztU.js} +191 -187
- package/dist/chunks/calendar.EfqJlztU.js.map +1 -0
- package/dist/chunks/{card.C11dmth8.js → card.VOCKI7Ad.js} +8 -8
- package/dist/chunks/card.VOCKI7Ad.js.map +1 -0
- package/dist/chunks/{checkbox-group.Cr3WdkDM.js → checkbox-group.DETXTJqI.js} +4 -4
- package/dist/chunks/{checkbox-group.Cr3WdkDM.js.map → checkbox-group.DETXTJqI.js.map} +1 -1
- package/dist/chunks/{checkbox.D7-f9Y6w.js → checkbox.BPtHAAEa.js} +4 -4
- package/dist/chunks/{checkbox.D7-f9Y6w.js.map → checkbox.BPtHAAEa.js.map} +1 -1
- package/dist/chunks/{chip.omQX_Ziq.js → chip.fqEIkR-s.js} +2 -2
- package/dist/chunks/{chip.omQX_Ziq.js.map → chip.fqEIkR-s.js.map} +1 -1
- package/dist/chunks/{code-snippet.BGrwAxWy.js → code-snippet.VtrsOTEC.js} +7 -7
- package/dist/chunks/{code-snippet.BGrwAxWy.js.map → code-snippet.VtrsOTEC.js.map} +1 -1
- package/dist/chunks/{controls-group.CWeUgE2P.js → controls-group.82mB_GDw.js} +2 -2
- package/dist/chunks/{controls-group.CWeUgE2P.js.map → controls-group.82mB_GDw.js.map} +1 -1
- package/dist/chunks/{copy._BdbMnHK.js → copy.WQDLcs_T.js} +5 -5
- package/dist/chunks/{copy._BdbMnHK.js.map → copy.WQDLcs_T.js.map} +1 -1
- package/dist/chunks/country.CGn5WjFx.js +69 -0
- package/dist/chunks/country.CGn5WjFx.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
- package/dist/chunks/{currency.MT3baDtO.js → currency.DDB4G_A8.js} +52 -35
- package/dist/chunks/currency.DDB4G_A8.js.map +1 -0
- package/dist/chunks/{dashboard-section.e7ozaS9M.js → dashboard-section.jIpBvP6X.js} +3 -3
- package/dist/chunks/{dashboard-section.e7ozaS9M.js.map → dashboard-section.jIpBvP6X.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CGU6o7ni.js → dashed-underline.K-l-7bDq.js} +3 -3
- package/dist/chunks/{dashed-underline.CGU6o7ni.js.map → dashed-underline.K-l-7bDq.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BaPjUlZ2.js → data-grid-template.CozTcWQ0.js} +4 -4
- package/dist/chunks/{data-grid-template.BaPjUlZ2.js.map → data-grid-template.CozTcWQ0.js.map} +1 -1
- package/dist/chunks/{data-grid.B_Ha2vma.js → data-grid.DN9xml8y.js} +1275 -1214
- package/dist/chunks/data-grid.DN9xml8y.js.map +1 -0
- package/dist/chunks/{date-input.BqBdAO1E.js → date-format.B8RU7D42.js} +6 -6
- package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
- package/dist/chunks/date-picker.DoYYzWcA.js +158 -0
- package/dist/chunks/date-picker.DoYYzWcA.js.map +1 -0
- package/dist/chunks/date-range-picker.C_pJ8yH5.js +917 -0
- package/dist/chunks/date-range-picker.C_pJ8yH5.js.map +1 -0
- package/dist/chunks/{date.BTdCYdkj.js → date.C1z2TXzM.js} +2 -2
- package/dist/chunks/{date.BTdCYdkj.js.map → date.C1z2TXzM.js.map} +1 -1
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
- package/dist/chunks/{dialog-page.LA_ZhbYa.js → dialog-page.D23qNwKW.js} +3 -3
- package/dist/chunks/dialog-page.D23qNwKW.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.CDm-PQfc.js → dropdown-default-textbox.yLeN0E2z.js} +6 -6
- package/dist/chunks/dropdown-default-textbox.yLeN0E2z.js.map +1 -0
- package/dist/chunks/dropdown-tag.DBnurtCQ.js +245 -0
- package/dist/chunks/dropdown-tag.DBnurtCQ.js.map +1 -0
- package/dist/chunks/{dropdown.DQbTuKc5.js → dropdown.BOvtYKXS.js} +202 -193
- package/dist/chunks/dropdown.BOvtYKXS.js.map +1 -0
- package/dist/chunks/{empty-state.DNTrhYUm.js → empty-state.BsdRxzS2.js} +2 -2
- package/dist/chunks/{empty-state.DNTrhYUm.js.map → empty-state.BsdRxzS2.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{field-label.BKzuCnXr.js → field-label.Auq-Pzho.js} +3 -3
- package/dist/chunks/{field-label.BKzuCnXr.js.map → field-label.Auq-Pzho.js.map} +1 -1
- package/dist/chunks/{file-uploader.BEClGxsF.js → file-uploader.BGoCYrnw.js} +27 -28
- package/dist/chunks/file-uploader.BGoCYrnw.js.map +1 -0
- package/dist/chunks/{filter-bar.Dnnv0rpV.js → filter-bar.DzHJi42d.js} +680 -746
- package/dist/chunks/filter-bar.DzHJi42d.js.map +1 -0
- package/dist/chunks/{fixed-scroller.QCXpkadN.js → fixed-scroller.CgVOf5VE.js} +3 -3
- package/dist/chunks/{fixed-scroller.QCXpkadN.js.map → fixed-scroller.CgVOf5VE.js.map} +1 -1
- package/dist/chunks/focus-trap.BJfpIboH.js.map +1 -1
- package/dist/chunks/{footer-actions.BTELM6rh.js → footer-actions.CLq_kBwY.js} +3 -3
- package/dist/chunks/{footer-actions.BTELM6rh.js.map → footer-actions.CLq_kBwY.js.map} +1 -1
- package/dist/chunks/{form-layout-title.aXVuAWiG.js → form-layout-title.DoF6ovPB.js} +23 -16
- package/dist/chunks/form-layout-title.DoF6ovPB.js.map +1 -0
- package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -1
- package/dist/chunks/{header-meta.DZYH-qg-.js → header-meta.uiIO1wHP.js} +30 -27
- package/dist/chunks/{header-meta.DZYH-qg-.js.map → header-meta.uiIO1wHP.js.map} +1 -1
- package/dist/chunks/{header-with-views.DjZa4Wob.js → header-with-views.t5Fr63SD.js} +87 -87
- package/dist/chunks/header-with-views.t5Fr63SD.js.map +1 -0
- package/dist/chunks/{header.CQMiTG7f.js → header.DwSyDQ68.js} +3 -3
- package/dist/chunks/{header.CQMiTG7f.js.map → header.DwSyDQ68.js.map} +1 -1
- package/dist/chunks/index.B6WW_F-J.js +31 -0
- package/dist/chunks/index.B6WW_F-J.js.map +1 -0
- package/dist/chunks/{info-icon.fB7jf3NJ.js → info-icon.Bhka3oGh.js} +3 -3
- package/dist/chunks/{info-icon.fB7jf3NJ.js.map → info-icon.Bhka3oGh.js.map} +1 -1
- package/dist/chunks/{input-field-password.BPujvbx8.js → input-field-password.Dm3HYonF.js} +24 -24
- package/dist/chunks/input-field-password.Dm3HYonF.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.bqUe_CVf.js → input-field-phone-number.bZauIuHJ.js} +1149 -1149
- package/dist/chunks/{input-field-phone-number.bqUe_CVf.js.map → input-field-phone-number.bZauIuHJ.js.map} +1 -1
- package/dist/chunks/{input-field.CwF6ldRY.js → input-field.D52XYEzU.js} +5 -5
- package/dist/chunks/input-field.D52XYEzU.js.map +1 -0
- package/dist/chunks/{inspector.g3OErNAU.js → inspector.pmpheRch.js} +4 -4
- package/dist/chunks/inspector.pmpheRch.js.map +1 -0
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
- package/dist/chunks/{link.C4htMrDV.js → link.D8qpqg3W.js} +2 -2
- package/dist/chunks/{link.C4htMrDV.js.map → link.D8qpqg3W.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.UaD4kmXc.js → listbox-option-tag.Dl8GwHLT.js} +3 -3
- package/dist/chunks/listbox-option-tag.Dl8GwHLT.js.map +1 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js +42 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.B-9Ke6Ya.js → modal-fullscreen.BSKm6yn_.js} +6 -6
- package/dist/chunks/{modal-fullscreen.B-9Ke6Ya.js.map → modal-fullscreen.BSKm6yn_.js.map} +1 -1
- package/dist/chunks/{modal.qybFapnI.js → modal.Bp5twyjz.js} +6 -6
- package/dist/chunks/{modal.qybFapnI.js.map → modal.Bp5twyjz.js.map} +1 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
- package/dist/chunks/{pagination.BWTyXMRW.js → pagination.CKD9FDrA.js} +5 -5
- package/dist/chunks/pagination.CKD9FDrA.js.map +1 -0
- package/dist/chunks/popover.types.DK6opPkz.js +6 -0
- package/dist/chunks/{popover.types.iyDoIAOE.js.map → popover.types.DK6opPkz.js.map} +1 -1
- package/dist/chunks/{popper-container.C9KCAJxI.js → popper-container.agLYtGwv.js} +2 -2
- package/dist/chunks/{popper-container.C9KCAJxI.js.map → popper-container.agLYtGwv.js.map} +1 -1
- package/dist/chunks/{promo-banner.MI5NC2UT.js → promo-banner.DikQcQU2.js} +3 -3
- package/dist/chunks/promo-banner.DikQcQU2.js.map +1 -0
- package/dist/chunks/radio-group.AcYMFudv.js +177 -0
- package/dist/chunks/radio-group.AcYMFudv.js.map +1 -0
- package/dist/chunks/{radio-input.D8mv2EYC.js → radio-input.kzb4gxLW.js} +17 -17
- package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -0
- package/dist/chunks/{rich-text-editor.C905JEDW.js → rich-text-editor.BZgQ578S.js} +7 -7
- package/dist/chunks/{rich-text-editor.C905JEDW.js.map → rich-text-editor.BZgQ578S.js.map} +1 -1
- package/dist/chunks/{search-bar.CKt_-tZH.js → search-bar.c-w7Uky2.js} +4 -4
- package/dist/chunks/{search-bar.CKt_-tZH.js.map → search-bar.c-w7Uky2.js.map} +1 -1
- package/dist/chunks/{secondary-nav.B5L2bLmm.js → secondary-nav.D69COlqF.js} +9 -9
- package/dist/chunks/secondary-nav.D69COlqF.js.map +1 -0
- package/dist/chunks/{segmented-control.Dc34mUMM.js → segmented-control.Cma_nu0G.js} +17 -16
- package/dist/chunks/segmented-control.Cma_nu0G.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.CBVKMu6b.js → selection-card-group.8UIir78G.js} +5 -5
- package/dist/chunks/selection-card-group.8UIir78G.js.map +1 -0
- package/dist/chunks/{sidepanel.uWNc58r7.js → sidepanel.A9yG4FP_.js} +12 -12
- package/dist/chunks/{sidepanel.uWNc58r7.js.map → sidepanel.A9yG4FP_.js.map} +1 -1
- package/dist/chunks/{step.D8blWwfR.js → step.TzzZSA9f.js} +4 -4
- package/dist/chunks/step.TzzZSA9f.js.map +1 -0
- package/dist/chunks/{structured-list-item.BLalgOps.js → structured-list-item.CMsVwwA6.js} +6 -6
- package/dist/chunks/{structured-list-item.BLalgOps.js.map → structured-list-item.CMsVwwA6.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.DqzYJ9_N.js → summary-grid.types.B80533d1.js} +6 -6
- package/dist/chunks/{summary-grid.types.DqzYJ9_N.js.map → summary-grid.types.B80533d1.js.map} +1 -1
- package/dist/chunks/{tab.D8YyoNFV.js → tab.CTui3j3e.js} +3 -3
- package/dist/chunks/tab.CTui3j3e.js.map +1 -0
- package/dist/chunks/{tag.Tjg4linG.js → tag.BwKc2d2E.js} +2 -2
- package/dist/chunks/{tag.Tjg4linG.js.map → tag.BwKc2d2E.js.map} +1 -1
- package/dist/chunks/textarea.CIQuLWQ8.js +165 -0
- package/dist/chunks/textarea.CIQuLWQ8.js.map +1 -0
- package/dist/chunks/{timeline-item.DaRKHndA.js → timeline-item.VSw9vKdO.js} +10 -10
- package/dist/chunks/timeline-item.VSw9vKdO.js.map +1 -0
- package/dist/chunks/{toast.gMDjItrP.js → toast.B4J4V6n-.js} +3 -3
- package/dist/chunks/{toast.gMDjItrP.js.map → toast.B4J4V6n-.js.map} +1 -1
- package/dist/chunks/toggle.BJMXpHRu.js +108 -0
- package/dist/chunks/toggle.BJMXpHRu.js.map +1 -0
- package/dist/chunks/{tooltip.DOD_4rkI.js → tooltip.D3SDcRef.js} +64 -68
- package/dist/chunks/tooltip.D3SDcRef.js.map +1 -0
- package/dist/chunks/{tutorial.BwnRyUoh.js → tutorial.B32GMtIj.js} +6 -6
- package/dist/chunks/tutorial.B32GMtIj.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.C7j6YhuC.js → use-cached-selected-values.IsfhJHxQ.js} +19 -19
- package/dist/chunks/use-cached-selected-values.IsfhJHxQ.js.map +1 -0
- package/dist/chunks/{use-country-items.DFdM2Ank.js → use-country-items.B3Cd3Tdo.js} +2 -2
- package/dist/chunks/use-country-items.B3Cd3Tdo.js.map +1 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
- package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +5 -4
- package/dist/date-range-picker.js +5 -4
- 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 +5 -4
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +405 -329
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/link.js +1 -1
- package/dist/loading-indicator.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/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +25 -15
- package/dist/styles/bento-light.css +9 -3
- package/dist/styles/bento.css +9 -3
- package/dist/styles/legacy.css +9 -3
- package/dist/styles/styleguide.css +9 -3
- 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/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1297 -1026
- package/package.json +12 -12
- package/dist/chunks/avatar.KdcsNOsm.js.map +0 -1
- package/dist/chunks/base-modal.DInbAZlp.js.map +0 -1
- package/dist/chunks/button-actions.55vIvDsX.js.map +0 -1
- package/dist/chunks/button.CilT7NmM.js.map +0 -1
- package/dist/chunks/calendar.M69sfyB9.js.map +0 -1
- package/dist/chunks/card.C11dmth8.js.map +0 -1
- package/dist/chunks/country.1yIZNjdj.js +0 -94
- package/dist/chunks/country.1yIZNjdj.js.map +0 -1
- package/dist/chunks/currency.MT3baDtO.js.map +0 -1
- package/dist/chunks/data-grid.B_Ha2vma.js.map +0 -1
- package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
- package/dist/chunks/date-picker.CGTMHUNH.js +0 -240
- package/dist/chunks/date-picker.CGTMHUNH.js.map +0 -1
- package/dist/chunks/date-range-picker.ChGfJUPq.js +0 -971
- package/dist/chunks/date-range-picker.ChGfJUPq.js.map +0 -1
- package/dist/chunks/dialog-page.LA_ZhbYa.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.CDm-PQfc.js.map +0 -1
- package/dist/chunks/dropdown-tag.Bwl0fY7o.js +0 -306
- package/dist/chunks/dropdown-tag.Bwl0fY7o.js.map +0 -1
- package/dist/chunks/dropdown.DQbTuKc5.js.map +0 -1
- package/dist/chunks/file-uploader.BEClGxsF.js.map +0 -1
- package/dist/chunks/filter-bar.Dnnv0rpV.js.map +0 -1
- package/dist/chunks/form-layout-title.aXVuAWiG.js.map +0 -1
- package/dist/chunks/header-with-views.DjZa4Wob.js.map +0 -1
- package/dist/chunks/i18n.BQkEbtPM.js +0 -31
- package/dist/chunks/i18n.BQkEbtPM.js.map +0 -1
- package/dist/chunks/input-field-password.BPujvbx8.js.map +0 -1
- package/dist/chunks/input-field.CwF6ldRY.js.map +0 -1
- package/dist/chunks/inspector.g3OErNAU.js.map +0 -1
- package/dist/chunks/listbox-option-tag.UaD4kmXc.js.map +0 -1
- package/dist/chunks/loading-indicator.DXc7I1Lm.js +0 -48
- package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +0 -1
- package/dist/chunks/pagination.BWTyXMRW.js.map +0 -1
- package/dist/chunks/popover.types.iyDoIAOE.js +0 -6
- package/dist/chunks/promo-banner.MI5NC2UT.js.map +0 -1
- package/dist/chunks/radio-group.DHUa6baR.js +0 -231
- package/dist/chunks/radio-group.DHUa6baR.js.map +0 -1
- package/dist/chunks/radio-input.D8mv2EYC.js.map +0 -1
- package/dist/chunks/secondary-nav.B5L2bLmm.js.map +0 -1
- package/dist/chunks/segmented-control.Dc34mUMM.js.map +0 -1
- package/dist/chunks/selection-card-group.CBVKMu6b.js.map +0 -1
- package/dist/chunks/step.D8blWwfR.js.map +0 -1
- package/dist/chunks/tab.D8YyoNFV.js.map +0 -1
- package/dist/chunks/textarea.DUPV-I-L.js +0 -214
- package/dist/chunks/textarea.DUPV-I-L.js.map +0 -1
- package/dist/chunks/timeline-item.DaRKHndA.js.map +0 -1
- package/dist/chunks/toggle.Ct-5NUGu.js +0 -121
- package/dist/chunks/toggle.Ct-5NUGu.js.map +0 -1
- package/dist/chunks/tooltip.DOD_4rkI.js.map +0 -1
- package/dist/chunks/tutorial.BwnRyUoh.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.C7j6YhuC.js.map +0 -1
- package/dist/chunks/use-country-items.DFdM2Ank.js.map +0 -1
|
@@ -1,971 +0,0 @@
|
|
|
1
|
-
import { reactive as ve, defineComponent as Ye, ref as A, computed as I, onMounted as je, toRaw as Te, toRef as Ee, watch as ye } from "vue";
|
|
2
|
-
import { B as it } from "./divider.CFbtmKeQ.js";
|
|
3
|
-
import { h as ot, B as lt } from "./button-actions.55vIvDsX.js";
|
|
4
|
-
import { B as Qe, d as ut } from "./typography.hlOAxsEn.js";
|
|
5
|
-
import { D as dt } from "./dropdown-default-textbox.CDm-PQfc.js";
|
|
6
|
-
import { e as N, a as he, g as _e } from "./get-date-locale.CAyOIbcp.js";
|
|
7
|
-
import { g as le } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
-
import { u as Re } from "./i18n.BQkEbtPM.js";
|
|
9
|
-
import { e as $e, t as ne, g as ue, i as B, h as F, j as Oe, k as ct, l as we, m as Dt, s as Me, n as mt, o as Ce, a as G, u as ft, f as ae } from "./calendar.M69sfyB9.js";
|
|
10
|
-
import { r as w, t as j } from "./index.BrH1t1iu.js";
|
|
11
|
-
import { f as xe, v as vt, D as k } from "./date-input.BqBdAO1E.js";
|
|
12
|
-
import { u as pt } from "./use-form-layout-loading.D3lALhtC.js";
|
|
13
|
-
import "./index.Cl4_42j5.js";
|
|
14
|
-
import { B as gt } from "./input-field.CwF6ldRY.js";
|
|
15
|
-
import { B as yt } from "./dropdown.DQbTuKc5.js";
|
|
16
|
-
import { B as Tt } from "./segmented-control.Dc34mUMM.js";
|
|
17
|
-
import { d as De } from "./debounce.DUTu11PS.js";
|
|
18
|
-
import { u as _t } from "./use-has-slot.C9lQZ6nz.js";
|
|
19
|
-
import { n as Ge } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
20
|
-
import { B as Rt } from "./directive.Cbdox5VL.js";
|
|
21
|
-
import { F as It, E as St } from "./field-label.BKzuCnXr.js";
|
|
22
|
-
import { B as bt } from "./button-actions.types.BptAXjD8.js";
|
|
23
|
-
import "../assets/date-range-picker.css";
|
|
24
|
-
function He(t, e) {
|
|
25
|
-
w(2, arguments);
|
|
26
|
-
var n = ne(e), r = n * 3;
|
|
27
|
-
return $e(t, r);
|
|
28
|
-
}
|
|
29
|
-
function Ae(t) {
|
|
30
|
-
w(1, arguments);
|
|
31
|
-
var e = j(t), n = Math.floor(e.getMonth() / 3) + 1;
|
|
32
|
-
return n;
|
|
33
|
-
}
|
|
34
|
-
function Fe(t) {
|
|
35
|
-
return w(1, arguments), j(t).getFullYear();
|
|
36
|
-
}
|
|
37
|
-
function me(t, e) {
|
|
38
|
-
w(2, arguments);
|
|
39
|
-
var n = j(t), r = j(e);
|
|
40
|
-
return n.getTime() === r.getTime();
|
|
41
|
-
}
|
|
42
|
-
function kt(t, e) {
|
|
43
|
-
w(2, arguments);
|
|
44
|
-
var n = ue(t), r = ue(e);
|
|
45
|
-
return n.getTime() === r.getTime();
|
|
46
|
-
}
|
|
47
|
-
function Ue(t) {
|
|
48
|
-
w(1, arguments);
|
|
49
|
-
var e = j(t);
|
|
50
|
-
return e.setMilliseconds(0), e;
|
|
51
|
-
}
|
|
52
|
-
function Be(t, e) {
|
|
53
|
-
w(2, arguments);
|
|
54
|
-
var n = Ue(t), r = Ue(e);
|
|
55
|
-
return n.getTime() === r.getTime();
|
|
56
|
-
}
|
|
57
|
-
function Et(t) {
|
|
58
|
-
return w(1, arguments), B(t, Date.now());
|
|
59
|
-
}
|
|
60
|
-
function ht(t, e) {
|
|
61
|
-
w(2, arguments);
|
|
62
|
-
var n = j(t), r = ne(e);
|
|
63
|
-
return n.setHours(r), n;
|
|
64
|
-
}
|
|
65
|
-
function Pe(t, e) {
|
|
66
|
-
w(2, arguments);
|
|
67
|
-
var n = j(t), r = ne(e);
|
|
68
|
-
return n.setMilliseconds(r), n;
|
|
69
|
-
}
|
|
70
|
-
function Ot(t, e) {
|
|
71
|
-
w(2, arguments);
|
|
72
|
-
var n = j(t), r = ne(e);
|
|
73
|
-
return n.setMinutes(r), n;
|
|
74
|
-
}
|
|
75
|
-
function wt(t, e) {
|
|
76
|
-
w(2, arguments);
|
|
77
|
-
var n = j(t), r = ne(e);
|
|
78
|
-
return n.setSeconds(r), n;
|
|
79
|
-
}
|
|
80
|
-
function Mt(t, e) {
|
|
81
|
-
w(2, arguments);
|
|
82
|
-
var n = ne(e);
|
|
83
|
-
return He(t, -n);
|
|
84
|
-
}
|
|
85
|
-
function J(t) {
|
|
86
|
-
if (t == null)
|
|
87
|
-
return F(/* @__PURE__ */ new Date());
|
|
88
|
-
const [e, n, r] = t.split("-").map((o) => parseInt(o, 10));
|
|
89
|
-
return new Date(e, n - 1, r);
|
|
90
|
-
}
|
|
91
|
-
const Ct = ({
|
|
92
|
-
firstDayOfWeek: t,
|
|
93
|
-
min: e,
|
|
94
|
-
max: n
|
|
95
|
-
}) => ({ getGranularCalendarLimits: (o) => {
|
|
96
|
-
let c = F(e), m = N(n);
|
|
97
|
-
if ((o == null ? void 0 : o.type) === "weekly") {
|
|
98
|
-
if (o.earliest)
|
|
99
|
-
c = F(o.earliest);
|
|
100
|
-
else {
|
|
101
|
-
const _ = Oe(c, { weekStartsOn: t });
|
|
102
|
-
B(c, _) || (c = F(ct(we(c, { weekStartsOn: t }), 1)));
|
|
103
|
-
}
|
|
104
|
-
if (o.latest)
|
|
105
|
-
m = N(o.latest);
|
|
106
|
-
else {
|
|
107
|
-
const _ = we(m, { weekStartsOn: t });
|
|
108
|
-
B(m, _) || (m = N(Dt(Oe(m, { weekStartsOn: t }), 1)));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
if ((o == null ? void 0 : o.type) === "monthly") {
|
|
112
|
-
if (o.earliest)
|
|
113
|
-
c = F(o.earliest);
|
|
114
|
-
else {
|
|
115
|
-
const _ = Me(c);
|
|
116
|
-
B(c, _) || (c = Me($e(c, 1)));
|
|
117
|
-
}
|
|
118
|
-
if (o.latest)
|
|
119
|
-
m = N(o.latest);
|
|
120
|
-
else {
|
|
121
|
-
const _ = he(m);
|
|
122
|
-
B(m, _) || (m = he(mt(m, 1)));
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
if ((o == null ? void 0 : o.type) === "quarterly") {
|
|
126
|
-
if (o.earliest)
|
|
127
|
-
c = ue(o.earliest);
|
|
128
|
-
else {
|
|
129
|
-
const _ = ue(c);
|
|
130
|
-
B(c, _) || (c = ue(He(c, 1)));
|
|
131
|
-
}
|
|
132
|
-
if (o.latest)
|
|
133
|
-
m = N(o.latest);
|
|
134
|
-
else {
|
|
135
|
-
const _ = Ce(m);
|
|
136
|
-
B(m, _) || (m = Ce(Mt(m, 1)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return { min: c, max: m };
|
|
140
|
-
} }), xt = () => {
|
|
141
|
-
const t = ve({
|
|
142
|
-
daily: null,
|
|
143
|
-
weekly: null,
|
|
144
|
-
monthly: null,
|
|
145
|
-
quarterly: null
|
|
146
|
-
});
|
|
147
|
-
return {
|
|
148
|
-
savedRanges: t,
|
|
149
|
-
saveRange: (r, o) => {
|
|
150
|
-
t[r] = o;
|
|
151
|
-
},
|
|
152
|
-
resetSavedRanges: () => {
|
|
153
|
-
t.daily = null, t.weekly = null, t.monthly = null, t.quarterly = null;
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
var p = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(p || {});
|
|
158
|
-
const At = /[\d]/, Ft = /^\d{2}$/, Ut = /^\d{2}:\d{2}$/, Bt = (t) => {
|
|
159
|
-
const { selectionStart: e } = t.target, n = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], r = At.test(t.key) || n.includes(t.key), o = [1, 2, 4, 5].includes(e) && t.key === ":";
|
|
160
|
-
!r && !o && t.preventDefault();
|
|
161
|
-
}, Ne = (t) => {
|
|
162
|
-
if (!t)
|
|
163
|
-
return t;
|
|
164
|
-
let e = t;
|
|
165
|
-
if (e.length === 1 && parseInt(t, 10) > 2)
|
|
166
|
-
return `0${e}:`;
|
|
167
|
-
const [n, r] = e.slice(-2);
|
|
168
|
-
return [2, 5].includes(e.length) && r === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (Ft.test(e) || Ut.test(e)) && (e += ":"), e;
|
|
169
|
-
}, Pt = {
|
|
170
|
-
"en-US": {
|
|
171
|
-
customRange: "Custom range",
|
|
172
|
-
daily: "Daily",
|
|
173
|
-
dateFrom: "Date from",
|
|
174
|
-
dateTo: "Date to",
|
|
175
|
-
lastMonth: "Last month",
|
|
176
|
-
lastSevenDays: "Last 7 days",
|
|
177
|
-
lastThreeMonths: "Last three months",
|
|
178
|
-
monthly: "Monthly",
|
|
179
|
-
quarterly: "Quarterly",
|
|
180
|
-
timeFrom: "Time from",
|
|
181
|
-
timeTo: "Time to",
|
|
182
|
-
weekly: "Weekly"
|
|
183
|
-
},
|
|
184
|
-
"ja-JP": {
|
|
185
|
-
customRange: "カスタム範囲を選択",
|
|
186
|
-
daily: "毎日",
|
|
187
|
-
lastMonth: "先月",
|
|
188
|
-
lastSevenDays: "過去7日間",
|
|
189
|
-
monthly: "毎月",
|
|
190
|
-
weekly: "毎週"
|
|
191
|
-
},
|
|
192
|
-
"pt-BR": {
|
|
193
|
-
customRange: "Selecione um intervalo personalizado",
|
|
194
|
-
daily: "Diário",
|
|
195
|
-
lastMonth: "Último mês",
|
|
196
|
-
lastSevenDays: "Últimos 7 dias",
|
|
197
|
-
monthly: "Mensal",
|
|
198
|
-
weekly: "Semanal"
|
|
199
|
-
}
|
|
200
|
-
}, qe = 300, Le = "customRange", Nt = Ye({
|
|
201
|
-
i18n: { messages: Pt },
|
|
202
|
-
name: "date-range-picker-calendar",
|
|
203
|
-
components: {
|
|
204
|
-
BentoDropdown: yt,
|
|
205
|
-
BentoInputField: gt,
|
|
206
|
-
BentoSegmentedControl: Tt,
|
|
207
|
-
BentoTypography: Qe,
|
|
208
|
-
Calendar: G
|
|
209
|
-
},
|
|
210
|
-
props: {
|
|
211
|
-
/**
|
|
212
|
-
* Allows user to enter time values in the form
|
|
213
|
-
*/
|
|
214
|
-
allowTimeInput: { type: Boolean, default: !1 },
|
|
215
|
-
/**
|
|
216
|
-
* Ranges form persistance data
|
|
217
|
-
*/
|
|
218
|
-
dateFormData: {
|
|
219
|
-
type: Object,
|
|
220
|
-
default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
|
|
221
|
-
},
|
|
222
|
-
/**
|
|
223
|
-
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
224
|
-
*/
|
|
225
|
-
firstDayOfWeek: G.props.firstDayOfWeek,
|
|
226
|
-
/**
|
|
227
|
-
* A list of available granularities.
|
|
228
|
-
* If present, the date picker will display a segmented control to change granularity.
|
|
229
|
-
*/
|
|
230
|
-
granularities: {
|
|
231
|
-
type: Array,
|
|
232
|
-
default: null
|
|
233
|
-
},
|
|
234
|
-
/**
|
|
235
|
-
* Indicate if a date should be disabled or not
|
|
236
|
-
*/
|
|
237
|
-
isDateDisabled: G.props.isDateDisabled,
|
|
238
|
-
/**
|
|
239
|
-
* Set a maximum number of dates to be selectable by the range.
|
|
240
|
-
*/
|
|
241
|
-
maxRange: G.props.maxRange,
|
|
242
|
-
/**
|
|
243
|
-
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
244
|
-
*/
|
|
245
|
-
min: G.props.min,
|
|
246
|
-
/**
|
|
247
|
-
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
248
|
-
*/
|
|
249
|
-
max: G.props.max,
|
|
250
|
-
/**
|
|
251
|
-
* Number of months rendered on pane
|
|
252
|
-
*/
|
|
253
|
-
numberOfMonths: G.props.numberOfMonths,
|
|
254
|
-
/**
|
|
255
|
-
* Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
|
|
256
|
-
*/
|
|
257
|
-
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
258
|
-
/**
|
|
259
|
-
* Enables the custom range selector.
|
|
260
|
-
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
261
|
-
* `label` - label of custom range item.
|
|
262
|
-
* `value` - a unique key of the custom range item.
|
|
263
|
-
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
264
|
-
*/
|
|
265
|
-
quickSelectRanges: {
|
|
266
|
-
type: Array,
|
|
267
|
-
default: void 0
|
|
268
|
-
},
|
|
269
|
-
/**
|
|
270
|
-
* Selected date
|
|
271
|
-
*/
|
|
272
|
-
value: { type: Object, default: void 0 },
|
|
273
|
-
/**
|
|
274
|
-
* The type of calendar to display. Defaults to showing days.
|
|
275
|
-
*/
|
|
276
|
-
variant: G.props.variant
|
|
277
|
-
},
|
|
278
|
-
emits: [
|
|
279
|
-
p.CUSTOM_RANGE,
|
|
280
|
-
p.INPUT,
|
|
281
|
-
p.ERROR,
|
|
282
|
-
p.FORM_DATE,
|
|
283
|
-
p.START_DATE_SELECTED
|
|
284
|
-
],
|
|
285
|
-
setup(t, { emit: e, slots: n }) {
|
|
286
|
-
var Ie, Se, be, ke;
|
|
287
|
-
const { locale: r, t: o } = Re(), c = _e(), m = A({}), _ = I(() => t.variant === "month" ? "monthly" : "daily"), s = ve({
|
|
288
|
-
startDate: (Ie = t.value) == null ? void 0 : Ie.startDate,
|
|
289
|
-
endDate: (Se = t.value) == null ? void 0 : Se.endDate,
|
|
290
|
-
range: (be = t.value) == null ? void 0 : be.range,
|
|
291
|
-
...t.granularities ? {
|
|
292
|
-
granularity: ((ke = t.value) == null ? void 0 : ke.granularity) || _.value
|
|
293
|
-
} : {}
|
|
294
|
-
});
|
|
295
|
-
function v(a) {
|
|
296
|
-
return a ? new Date(
|
|
297
|
-
a.getUTCFullYear(),
|
|
298
|
-
a.getUTCMonth(),
|
|
299
|
-
a.getUTCDate(),
|
|
300
|
-
a.getUTCHours(),
|
|
301
|
-
a.getUTCMinutes(),
|
|
302
|
-
a.getUTCSeconds()
|
|
303
|
-
) : null;
|
|
304
|
-
}
|
|
305
|
-
const b = I(() => {
|
|
306
|
-
var a, l;
|
|
307
|
-
return (
|
|
308
|
-
// eslint-disable-next-line consistent-return
|
|
309
|
-
((l = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ value: u, data: d }) => {
|
|
310
|
-
var S;
|
|
311
|
-
if (!d.endDate) {
|
|
312
|
-
if (d.isRelativeToNow) {
|
|
313
|
-
const O = (S = m.value) == null ? void 0 : S[u];
|
|
314
|
-
return O ? me(
|
|
315
|
-
v(O.startDate),
|
|
316
|
-
v(s.startDate)
|
|
317
|
-
) && me(
|
|
318
|
-
v(O.endDate),
|
|
319
|
-
v(s.endDate)
|
|
320
|
-
) : (
|
|
321
|
-
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
322
|
-
// with the internal range's stored range identifier.
|
|
323
|
-
u === s.range
|
|
324
|
-
);
|
|
325
|
-
}
|
|
326
|
-
return me(
|
|
327
|
-
v(d.startDate),
|
|
328
|
-
v(s.startDate)
|
|
329
|
-
) && me(
|
|
330
|
-
v(s.endDate),
|
|
331
|
-
v(N(s.endDate))
|
|
332
|
-
) && Et(v(s.endDate));
|
|
333
|
-
}
|
|
334
|
-
if (t.allowTimeInput)
|
|
335
|
-
return Be(
|
|
336
|
-
v(d.startDate),
|
|
337
|
-
v(s.startDate)
|
|
338
|
-
) && Be(v(d.endDate), v(s.endDate));
|
|
339
|
-
if (d.endDate)
|
|
340
|
-
return B(d.startDate, s.startDate) && B(d.endDate, s.endDate);
|
|
341
|
-
})) == null ? void 0 : l.value) ?? Le
|
|
342
|
-
);
|
|
343
|
-
}), de = I(() => ({
|
|
344
|
-
"b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
|
|
345
|
-
})), re = I(() => [
|
|
346
|
-
{ label: o("customRange"), value: Le },
|
|
347
|
-
...t.quickSelectRanges ? t.quickSelectRanges : []
|
|
348
|
-
]), y = I(
|
|
349
|
-
() => {
|
|
350
|
-
var a;
|
|
351
|
-
return ((a = t.granularities) == null ? void 0 : a.find(({ type: l }) => l === s.granularity)) || null;
|
|
352
|
-
}
|
|
353
|
-
), X = I(
|
|
354
|
-
() => {
|
|
355
|
-
var a;
|
|
356
|
-
return ((a = t.granularities) == null ? void 0 : a.map(({ type: l, disabled: u }) => ({
|
|
357
|
-
label: o(l),
|
|
358
|
-
value: l,
|
|
359
|
-
disabled: u
|
|
360
|
-
}))) ?? [];
|
|
361
|
-
}
|
|
362
|
-
), { getGranularCalendarLimits: h } = Ct(t), T = I(
|
|
363
|
-
() => t.granularities ? h(y.value) : { min: F(t.min), max: N(t.max) }
|
|
364
|
-
), {
|
|
365
|
-
adjustDateForQuarterly: M,
|
|
366
|
-
adjustDateForMonthly: H,
|
|
367
|
-
adjustDateForWeekly: Z,
|
|
368
|
-
adjustStartDateInputForWeekly: ee,
|
|
369
|
-
adjustEndDateInputForWeekly: q,
|
|
370
|
-
adjustStartDateInputForMonthly: g,
|
|
371
|
-
adjustEndDateInputForMonthly: te,
|
|
372
|
-
adjustStartDateInputForQuarterly: se,
|
|
373
|
-
adjustEndDateInputForQuarterly: V
|
|
374
|
-
} = ft(t.firstDayOfWeek), { savedRanges: U, saveRange: C, resetSavedRanges: x } = xt(), f = (a) => a ? ae(a, k.NUMERIC_DATE_YEAR_FIRST, {
|
|
375
|
-
locale: c[r.value.substring(0, 2)] || c.enUS
|
|
376
|
-
}) : "", E = (a) => a ? ae(a, k.HOUR_MINUTE_SECONDS, {
|
|
377
|
-
locale: c[r.value.substring(0, 2)] || c.enUS
|
|
378
|
-
}) : "", W = A(!1), K = A(!1), L = A(!1), Q = A(!1), i = ve({
|
|
379
|
-
startDate: t.dateFormData.startDate,
|
|
380
|
-
endDate: t.dateFormData.endDate,
|
|
381
|
-
startTime: t.dateFormData.startTime,
|
|
382
|
-
endTime: t.dateFormData.endTime
|
|
383
|
-
}), pe = (a, l) => {
|
|
384
|
-
let u = new Date(a);
|
|
385
|
-
const [d, S, O] = l.split(":");
|
|
386
|
-
return u = ht(u, parseInt(d, 10)), u = Ot(u, parseInt(S, 10)), u = wt(u, parseInt(O, 10)), u;
|
|
387
|
-
}, ge = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), ie = (a, l) => {
|
|
388
|
-
const u = () => {
|
|
389
|
-
if (l && R(l)) {
|
|
390
|
-
const d = pe(new Date(l), a);
|
|
391
|
-
if (t.min && d < Pe(t.min, 0) || t.max && d > Pe(t.max, 0))
|
|
392
|
-
return !1;
|
|
393
|
-
}
|
|
394
|
-
return !0;
|
|
395
|
-
};
|
|
396
|
-
return ge(a) && u();
|
|
397
|
-
}, P = (a, l) => !l || !ge(l) || t.variant === "month" ? a : pe(new Date(a), l), D = (a) => {
|
|
398
|
-
i.startTime = E(
|
|
399
|
-
t.min && t.allowTimeInput && B(t.min, a.startDate) ? t.min : F(a.startDate)
|
|
400
|
-
), i.endTime = E(
|
|
401
|
-
t.max && t.allowTimeInput && B(t.max, a.endDate) ? t.max : N(a.endDate)
|
|
402
|
-
), s.startDate = P(a.startDate, i.startTime), s.endDate = P(a.endDate, i.endTime), s.range = null, t.granularities && x(), e(p.INPUT, {
|
|
403
|
-
...s,
|
|
404
|
-
range: b.value
|
|
405
|
-
});
|
|
406
|
-
}, R = (a) => {
|
|
407
|
-
const l = (d) => t.min && F(d) < F(t.min) || t.max && F(d) > F(t.max) ? !1 : t.isDateDisabled ? !t.isDateDisabled(F(d)) : !0;
|
|
408
|
-
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && l(new Date(a));
|
|
409
|
-
};
|
|
410
|
-
je(() => {
|
|
411
|
-
W.value = !!(t.dateFormData.startDate && !R(t.dateFormData.startDate)), t.allowTimeInput ? L.value = !!(t.dateFormData.startTime && !ie(t.dateFormData.startTime, t.dateFormData.startDate)) : L.value = !1, K.value = !!(t.dateFormData.endDate && !R(t.dateFormData.endDate)), t.allowTimeInput ? Q.value = !!(t.dateFormData.endTime && !ie(t.dateFormData.endTime, t.dateFormData.endDate)) : Q.value = !1;
|
|
412
|
-
});
|
|
413
|
-
const z = (a) => {
|
|
414
|
-
var l;
|
|
415
|
-
i.startDate = f(a), i.startTime ? L.value && (i.startTime = (l = t.dateFormData) == null ? void 0 : l.startTime) : i.startTime = E(a), W.value = !1, L.value = !1, e(p.START_DATE_SELECTED, a);
|
|
416
|
-
}, $ = (a) => {
|
|
417
|
-
var l;
|
|
418
|
-
i.endDate = f(a), i.endTime ? Q.value && (i.endTime = (l = t.dateFormData) == null ? void 0 : l.endTime) : i.endTime = E(N(a)), K.value = !1, Q.value = !1;
|
|
419
|
-
}, oe = (a) => {
|
|
420
|
-
const l = t.value[a];
|
|
421
|
-
if (l)
|
|
422
|
-
return l;
|
|
423
|
-
if (t.dateFormData[a] && R(t.dateFormData[a]))
|
|
424
|
-
return new Date(t.dateFormData[a]);
|
|
425
|
-
}, Ve = De((a) => {
|
|
426
|
-
var l;
|
|
427
|
-
if (R(a)) {
|
|
428
|
-
let u = a;
|
|
429
|
-
switch (W.value = !1, (l = y.value) == null ? void 0 : l.type) {
|
|
430
|
-
case "weekly":
|
|
431
|
-
u = ee(
|
|
432
|
-
a,
|
|
433
|
-
f,
|
|
434
|
-
T.value.min,
|
|
435
|
-
T.value.max
|
|
436
|
-
), i.startDate = u;
|
|
437
|
-
break;
|
|
438
|
-
case "monthly":
|
|
439
|
-
u = g(
|
|
440
|
-
a,
|
|
441
|
-
f,
|
|
442
|
-
T.value.min,
|
|
443
|
-
T.value.max
|
|
444
|
-
), i.startDate = u;
|
|
445
|
-
break;
|
|
446
|
-
case "quarterly":
|
|
447
|
-
u = se(
|
|
448
|
-
a,
|
|
449
|
-
f,
|
|
450
|
-
T.value.min,
|
|
451
|
-
T.value.max
|
|
452
|
-
), i.startDate = u;
|
|
453
|
-
break;
|
|
454
|
-
}
|
|
455
|
-
const d = J(u);
|
|
456
|
-
s.startDate = P(d, i.startTime), s.endDate = P(
|
|
457
|
-
J(i.endDate),
|
|
458
|
-
i.endTime
|
|
459
|
-
), R(i.endDate) && (s.endDate = P(
|
|
460
|
-
J(i.endDate),
|
|
461
|
-
i.endTime
|
|
462
|
-
));
|
|
463
|
-
const S = oe("endDate");
|
|
464
|
-
s.range = null, e(p.FORM_DATE, {
|
|
465
|
-
startDate: d,
|
|
466
|
-
endDate: S
|
|
467
|
-
}), e(p.INPUT, {
|
|
468
|
-
...s,
|
|
469
|
-
range: b.value
|
|
470
|
-
});
|
|
471
|
-
} else
|
|
472
|
-
W.value = !0, e(p.ERROR, { ...i });
|
|
473
|
-
}, qe), We = (a) => {
|
|
474
|
-
i.startDate = xe(a), Ve(i.startDate);
|
|
475
|
-
}, Ke = De((a) => {
|
|
476
|
-
var l;
|
|
477
|
-
if (R(a)) {
|
|
478
|
-
let u = a;
|
|
479
|
-
switch (K.value = !1, (l = y.value) == null ? void 0 : l.type) {
|
|
480
|
-
case "weekly":
|
|
481
|
-
u = q(
|
|
482
|
-
a,
|
|
483
|
-
f,
|
|
484
|
-
T.value.min,
|
|
485
|
-
T.value.max
|
|
486
|
-
), i.endDate = u;
|
|
487
|
-
break;
|
|
488
|
-
case "monthly":
|
|
489
|
-
u = te(
|
|
490
|
-
a,
|
|
491
|
-
f,
|
|
492
|
-
T.value.min,
|
|
493
|
-
T.value.max
|
|
494
|
-
), i.endDate = u;
|
|
495
|
-
break;
|
|
496
|
-
case "quarterly":
|
|
497
|
-
u = V(
|
|
498
|
-
a,
|
|
499
|
-
f,
|
|
500
|
-
T.value.min,
|
|
501
|
-
T.value.max
|
|
502
|
-
), i.endDate = u;
|
|
503
|
-
break;
|
|
504
|
-
}
|
|
505
|
-
const d = J(u);
|
|
506
|
-
s.endDate = P(d, i.endTime), R(i.startDate) && (s.startDate = P(
|
|
507
|
-
J(i.startDate),
|
|
508
|
-
i.startTime
|
|
509
|
-
));
|
|
510
|
-
const S = oe("startDate");
|
|
511
|
-
s.range = null, e(p.FORM_DATE, {
|
|
512
|
-
startDate: S,
|
|
513
|
-
endDate: d
|
|
514
|
-
}), e(p.INPUT, {
|
|
515
|
-
...s,
|
|
516
|
-
range: b.value
|
|
517
|
-
});
|
|
518
|
-
} else
|
|
519
|
-
K.value = !0, e(p.ERROR, { ...i });
|
|
520
|
-
}, qe), ze = (a) => {
|
|
521
|
-
i.endDate = xe(a), Ke(i.endDate);
|
|
522
|
-
}, Je = (a) => {
|
|
523
|
-
vt(a);
|
|
524
|
-
}, Xe = De((a) => {
|
|
525
|
-
if (ie(a, t.dateFormData.startDate)) {
|
|
526
|
-
L.value = !1, s.startDate = P(s.startDate, a);
|
|
527
|
-
const l = oe("endDate");
|
|
528
|
-
e(p.FORM_DATE, {
|
|
529
|
-
startDate: s.startDate,
|
|
530
|
-
endDate: l,
|
|
531
|
-
startTime: a,
|
|
532
|
-
endTime: i.endTime ?? t.dateFormData.endTime
|
|
533
|
-
}), e(p.INPUT, {
|
|
534
|
-
...s,
|
|
535
|
-
range: b.value
|
|
536
|
-
});
|
|
537
|
-
} else
|
|
538
|
-
L.value = !0, e(p.ERROR, { ...i });
|
|
539
|
-
}), Ze = De((a) => {
|
|
540
|
-
ie(a, t.dateFormData.endDate) ? (Q.value = !1, s.endDate = P(s.endDate, a), e(p.FORM_DATE, {
|
|
541
|
-
startDate: s.startDate,
|
|
542
|
-
endDate: s.endDate,
|
|
543
|
-
startTime: i.startTime ?? t.dateFormData.startTime,
|
|
544
|
-
endTime: a
|
|
545
|
-
}), e(p.INPUT, {
|
|
546
|
-
...s,
|
|
547
|
-
range: b.value
|
|
548
|
-
})) : (Q.value = !0, e(p.ERROR, { ...i }));
|
|
549
|
-
}), et = (a) => {
|
|
550
|
-
i.startTime = Ne(a), Xe(i.startTime);
|
|
551
|
-
}, tt = (a) => {
|
|
552
|
-
i.endTime = Ne(a), Ze(i.endTime);
|
|
553
|
-
}, at = (a) => {
|
|
554
|
-
Bt(a);
|
|
555
|
-
}, ce = (a, l, u, d) => {
|
|
556
|
-
s.startDate = a, s.endDate = l, u && (s.granularity = u), d && (s.range = d);
|
|
557
|
-
}, nt = (a) => {
|
|
558
|
-
var u;
|
|
559
|
-
const l = (u = t.quickSelectRanges) == null ? void 0 : u.find(({ value: d }) => d === a);
|
|
560
|
-
if (l) {
|
|
561
|
-
x();
|
|
562
|
-
const d = l.data, S = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : N(new Date(Date.now()))), O = d.isRelativeToNow && d.timeDifference ? new Date(S.getTime() - d.timeDifference) : d.startDate;
|
|
563
|
-
i.endDate = f(S), i.startDate = f(O), ce(O, S, null, a), t.granularities && (s.granularity = d.granularity || _.value), i.startTime = E(O), i.endTime = E(S), s.startDate = O, s.endDate = S, d.isRelativeToNow && (m.value = {
|
|
564
|
-
...m.value,
|
|
565
|
-
[a]: {
|
|
566
|
-
startDate: O,
|
|
567
|
-
endDate: S
|
|
568
|
-
}
|
|
569
|
-
}), e(p.CUSTOM_RANGE, {
|
|
570
|
-
...l.data,
|
|
571
|
-
startDate: O,
|
|
572
|
-
endDate: S,
|
|
573
|
-
range: l.value
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
}, rt = {
|
|
577
|
-
weekly: Z,
|
|
578
|
-
monthly: H,
|
|
579
|
-
quarterly: M
|
|
580
|
-
}, st = (a) => {
|
|
581
|
-
const l = s.granularity;
|
|
582
|
-
if (s.granularity = a, l && C(l, structuredClone(Te(s))), s.startDate && s.endDate) {
|
|
583
|
-
switch (a) {
|
|
584
|
-
case "quarterly":
|
|
585
|
-
case "monthly":
|
|
586
|
-
case "weekly": {
|
|
587
|
-
if (U[a]) {
|
|
588
|
-
ce(U[a].startDate, U[a].endDate, a);
|
|
589
|
-
break;
|
|
590
|
-
}
|
|
591
|
-
const { startDate: u, endDate: d } = rt[a](
|
|
592
|
-
s.startDate,
|
|
593
|
-
s.endDate,
|
|
594
|
-
T.value.min,
|
|
595
|
-
T.value.max
|
|
596
|
-
);
|
|
597
|
-
ce(u, d, a);
|
|
598
|
-
break;
|
|
599
|
-
}
|
|
600
|
-
case "daily":
|
|
601
|
-
U.daily && ce(U.daily.startDate, U.daily.endDate, a);
|
|
602
|
-
break;
|
|
603
|
-
}
|
|
604
|
-
i.startDate = f(s.startDate), i.endDate = f(s.endDate), e(p.INPUT, {
|
|
605
|
-
...s,
|
|
606
|
-
range: b.value
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
return {
|
|
611
|
-
// Values
|
|
612
|
-
internalRangeDate: s,
|
|
613
|
-
dateTextInput: i,
|
|
614
|
-
endDateError: K,
|
|
615
|
-
endTimeError: Q,
|
|
616
|
-
granularityItems: X,
|
|
617
|
-
selectedGranularity: y,
|
|
618
|
-
computedMinMax: T,
|
|
619
|
-
selectedRangeSelectorValue: b,
|
|
620
|
-
startDateError: W,
|
|
621
|
-
startTimeError: L,
|
|
622
|
-
quickSelectRangeDefaultItems: re,
|
|
623
|
-
formInputWrapperConditionalClasses: de,
|
|
624
|
-
// Methods
|
|
625
|
-
hasSlot: _t(n),
|
|
626
|
-
t: o,
|
|
627
|
-
// Events
|
|
628
|
-
onDateInput: D,
|
|
629
|
-
onDateInputKeyDown: Je,
|
|
630
|
-
onEndDateInput: ze,
|
|
631
|
-
onEndDateSelected: $,
|
|
632
|
-
onEndTimeInput: tt,
|
|
633
|
-
onGranularityInput: st,
|
|
634
|
-
onRangeSelectorInput: nt,
|
|
635
|
-
onStartDateInput: We,
|
|
636
|
-
onStartDateSelected: z,
|
|
637
|
-
onStartTimeInput: et,
|
|
638
|
-
onTimeInputKeyDown: at
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
});
|
|
642
|
-
var qt = function() {
|
|
643
|
-
var e = this, n = e._self._c;
|
|
644
|
-
return e._self._setupProxy, n("div", { staticClass: "b-date-range-picker-calendar" }, [n("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [n("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.hasSlot("title") ? [e._t("title")] : e._e(), e.quickSelectRanges ? n("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.granularities ? n("bento-segmented-control", { attrs: { items: e.granularityItems, "model-value": e.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": e.onGranularityInput } }) : e._e(), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateFrom"), value: e.dateTextInput.startDate, error: e.startDateError }, on: { input: e.onStartDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
645
|
-
return [e._v("YYYY-MM-DD")];
|
|
646
|
-
}, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeFrom"), value: e.dateTextInput.startTime, error: e.startTimeError }, on: { input: e.onStartTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
647
|
-
return [e._v("HH:MM:SS")];
|
|
648
|
-
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" To ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateTo"), value: e.dateTextInput.endDate, error: e.endDateError }, on: { input: e.onEndDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
649
|
-
return [e._v("YYYY-MM-DD")];
|
|
650
|
-
}, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
651
|
-
return [e._v("HH:MM:SS")];
|
|
652
|
-
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.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)]);
|
|
653
|
-
}, Lt = [], Yt = /* @__PURE__ */ Ge(
|
|
654
|
-
Nt,
|
|
655
|
-
qt,
|
|
656
|
-
Lt,
|
|
657
|
-
!1,
|
|
658
|
-
null,
|
|
659
|
-
"76992b41"
|
|
660
|
-
);
|
|
661
|
-
const Y = Yt.exports, jt = ({
|
|
662
|
-
datePickerValue: t,
|
|
663
|
-
isDateIncorrect: e,
|
|
664
|
-
quickSelectRanges: n,
|
|
665
|
-
isMonthVariant: r,
|
|
666
|
-
withTimeInput: o
|
|
667
|
-
}) => {
|
|
668
|
-
var y, X, h, T;
|
|
669
|
-
const { locale: c, t: m } = Re(), _ = _e(), s = (M) => !!M && !isNaN(M.getTime()), v = (M, H) => s(M) ? ae(M, H, {
|
|
670
|
-
locale: _[c.value.substring(0, 2)] || _.enUS
|
|
671
|
-
}) : void 0, b = ve({
|
|
672
|
-
startDate: v((y = t.value) == null ? void 0 : y.startDate, k.NUMERIC_DATE_YEAR_FIRST),
|
|
673
|
-
endDate: v((X = t.value) == null ? void 0 : X.endDate, k.NUMERIC_DATE_YEAR_FIRST),
|
|
674
|
-
startTime: v((h = t.value) == null ? void 0 : h.startDate, k.HOUR_MINUTE_SECONDS),
|
|
675
|
-
endTime: v((T = t.value) == null ? void 0 : T.endDate, k.HOUR_MINUTE_SECONDS)
|
|
676
|
-
});
|
|
677
|
-
return {
|
|
678
|
-
// Values
|
|
679
|
-
dateDisplayValue: I(() => {
|
|
680
|
-
var U;
|
|
681
|
-
if (e.value)
|
|
682
|
-
return `${b.startDate || ""} - ${b.endDate || ""}`;
|
|
683
|
-
if (!t.value || !t.value.startDate && !t.value.endDate)
|
|
684
|
-
return m("selectDateRange");
|
|
685
|
-
if ((U = n.value) != null && U.length) {
|
|
686
|
-
const C = n.value.find(({ value: x }) => {
|
|
687
|
-
var f;
|
|
688
|
-
return x === ((f = t.value) == null ? void 0 : f.range);
|
|
689
|
-
});
|
|
690
|
-
if (C)
|
|
691
|
-
return C.label;
|
|
692
|
-
}
|
|
693
|
-
if (t.value.granularity === "quarterly") {
|
|
694
|
-
const { startDate: C, endDate: x } = t.value, f = m("quarter", { quarter: Ae(C), year: Fe(C) });
|
|
695
|
-
if (kt(C, x))
|
|
696
|
-
return f;
|
|
697
|
-
const E = m("quarter", { quarter: Ae(x), year: Fe(x) });
|
|
698
|
-
return `${f} - ${E}`;
|
|
699
|
-
}
|
|
700
|
-
const { startDate: M, endDate: H, startTime: Z, endTime: ee } = b, q = r != null && r.value ? k.LONG_MONTH_YEAR : k.FULL_DATE_MONTH_FIRST, g = v(J(M), q), te = v(J(H), q);
|
|
701
|
-
if (!o.value)
|
|
702
|
-
return `${g} - ${te}`;
|
|
703
|
-
const se = [g, Z].filter(Boolean).join(", "), V = [te, ee].filter(Boolean).join(", ");
|
|
704
|
-
return `${se} - ${V}`;
|
|
705
|
-
}),
|
|
706
|
-
textInputDisplayValue: b,
|
|
707
|
-
// Methods
|
|
708
|
-
formatTextInputDisplayValue: () => ""
|
|
709
|
-
};
|
|
710
|
-
};
|
|
711
|
-
var fe = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(fe || {});
|
|
712
|
-
const Qt = {
|
|
713
|
-
"en-US": {
|
|
714
|
-
apply: "Apply",
|
|
715
|
-
cancel: "Cancel",
|
|
716
|
-
dateRangePicker: "Date range picker {name}",
|
|
717
|
-
provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
|
|
718
|
-
quarter: "Q{quarter} {year}",
|
|
719
|
-
selectDate: "Select a date",
|
|
720
|
-
selectDateRange: "Select a date range",
|
|
721
|
-
selectedDateIsNotAvailable: "Selected date is not available"
|
|
722
|
-
},
|
|
723
|
-
"ja-JP": {
|
|
724
|
-
apply: "適用",
|
|
725
|
-
cancel: "キャンセル",
|
|
726
|
-
selectDate: "日付を選択"
|
|
727
|
-
},
|
|
728
|
-
"pt-BR": {
|
|
729
|
-
apply: "Aplicar",
|
|
730
|
-
cancel: "Cancelar",
|
|
731
|
-
selectDate: "Selecione uma data"
|
|
732
|
-
}
|
|
733
|
-
}, $t = {
|
|
734
|
-
i18n: { messages: Qt },
|
|
735
|
-
name: "bento-date-range-picker"
|
|
736
|
-
}, Gt = /* @__PURE__ */ Ye({
|
|
737
|
-
...$t,
|
|
738
|
-
props: {
|
|
739
|
-
/**
|
|
740
|
-
* Allows user to enter time values in the form
|
|
741
|
-
*/
|
|
742
|
-
allowTimeInput: { type: Boolean, default: !1 },
|
|
743
|
-
/**
|
|
744
|
-
* Descriptive supporting text visbile underneath the dropdown.
|
|
745
|
-
*/
|
|
746
|
-
description: { type: String, default: void 0 },
|
|
747
|
-
/**
|
|
748
|
-
* Disables dropdown functionality.
|
|
749
|
-
*/
|
|
750
|
-
disabled: { type: Boolean, default: !1 },
|
|
751
|
-
/**
|
|
752
|
-
* Displays component in an error state with an error message
|
|
753
|
-
*/
|
|
754
|
-
errorMessage: { type: String, default: null },
|
|
755
|
-
/**
|
|
756
|
-
* Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
757
|
-
*/
|
|
758
|
-
firstDayOfWeek: Y.props.firstDayOfWeek,
|
|
759
|
-
/**
|
|
760
|
-
* A list of available granularities.
|
|
761
|
-
* If present, the date picker will display a segmented control to change granularity.
|
|
762
|
-
*/
|
|
763
|
-
granularities: Y.props.granularities,
|
|
764
|
-
/**
|
|
765
|
-
* Indicate if a date should be disabled or not
|
|
766
|
-
*/
|
|
767
|
-
isDateDisabled: Y.props.isDateDisabled,
|
|
768
|
-
/**
|
|
769
|
-
* Text that is displayed as a label above the element.
|
|
770
|
-
*/
|
|
771
|
-
label: { type: String, default: void 0 },
|
|
772
|
-
/**
|
|
773
|
-
* Upon opening date range picker, end date's month will be pre-selected.
|
|
774
|
-
*/
|
|
775
|
-
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
776
|
-
/**
|
|
777
|
-
* Highlights the dropdown is optional.
|
|
778
|
-
*/
|
|
779
|
-
optional: { type: Boolean, default: !1 },
|
|
780
|
-
/**
|
|
781
|
-
* The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
|
|
782
|
-
*/
|
|
783
|
-
readonly: { type: Boolean, default: !1 },
|
|
784
|
-
/**
|
|
785
|
-
* Highlights the dropdown is required.
|
|
786
|
-
*/
|
|
787
|
-
required: { type: Boolean, default: !1 },
|
|
788
|
-
/**
|
|
789
|
-
* Adds a info icon next to the label to display the passed tooltip message.
|
|
790
|
-
*/
|
|
791
|
-
tooltipText: { type: String, default: null },
|
|
792
|
-
/**
|
|
793
|
-
* Enables the range selector.
|
|
794
|
-
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
795
|
-
* `label` - label of custom range item.
|
|
796
|
-
* `value` - a unique key of the custom range item.
|
|
797
|
-
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
798
|
-
*/
|
|
799
|
-
quickSelectRanges: {
|
|
800
|
-
type: Array,
|
|
801
|
-
default: void 0
|
|
802
|
-
},
|
|
803
|
-
/**
|
|
804
|
-
* Set a maximum number of dates to be selectable by the range.
|
|
805
|
-
*/
|
|
806
|
-
maxRange: Y.props.maxRange,
|
|
807
|
-
/**
|
|
808
|
-
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
809
|
-
*/
|
|
810
|
-
min: Y.props.min,
|
|
811
|
-
/**
|
|
812
|
-
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
813
|
-
*/
|
|
814
|
-
max: Y.props.max,
|
|
815
|
-
/**
|
|
816
|
-
* Number of months rendered on pane
|
|
817
|
-
*/
|
|
818
|
-
numberOfMonths: Y.props.numberOfMonths,
|
|
819
|
-
/**
|
|
820
|
-
* Selected date
|
|
821
|
-
*/
|
|
822
|
-
value: Y.props.value,
|
|
823
|
-
/**
|
|
824
|
-
* The type of calendar to display. Defaults to showing days.
|
|
825
|
-
*/
|
|
826
|
-
variant: {
|
|
827
|
-
type: String,
|
|
828
|
-
default: void 0
|
|
829
|
-
// Default will be set by @/internal/calendar
|
|
830
|
-
},
|
|
831
|
-
/**
|
|
832
|
-
* Enables the date picker selection to persist until it is explicitly applied.
|
|
833
|
-
* Displays a set of buttons: Apply and Cancel.
|
|
834
|
-
*
|
|
835
|
-
* @deprecated This will be the default behaviour in v2.0.0.
|
|
836
|
-
*/
|
|
837
|
-
hasActions: { type: Boolean, default: !1 }
|
|
838
|
-
},
|
|
839
|
-
emits: [fe.INPUT],
|
|
840
|
-
setup(t, { emit: e }) {
|
|
841
|
-
const n = t, { locale: r, t: o } = Re(), c = _e(), m = le("bento-date-range-picker-container"), _ = le("bento-date-range-picker-label"), s = le("bento-date-range-picker-description"), v = le("bento-date-range-picker-error"), b = le("bento-date-range-picker-date-error"), de = I(() => n.label || o("dateRangePicker", { name: m })), re = I(() => (n == null ? void 0 : n.quickSelectRanges) && n.quickSelectRanges.map((D) => {
|
|
842
|
-
const R = D.data.endDate ? void 0 : new Date(Date.now()).getTime() - D.data.startDate.getTime();
|
|
843
|
-
return {
|
|
844
|
-
...D,
|
|
845
|
-
data: {
|
|
846
|
-
...D.data,
|
|
847
|
-
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
848
|
-
timeDifference: R
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
|
-
})), y = A(!1), X = A(null), h = A(!1), { isReadOnly: T } = pt(Ee(n, "readonly"));
|
|
852
|
-
ye(
|
|
853
|
-
() => n.disabled,
|
|
854
|
-
() => {
|
|
855
|
-
n.disabled && h.value && (h.value = !1);
|
|
856
|
-
}
|
|
857
|
-
);
|
|
858
|
-
const M = I(() => n.hasActions ? !E.value && y.value : y.value), H = I(() => ({
|
|
859
|
-
"b-date-range-picker__description--error": !!n.errorMessage || M.value
|
|
860
|
-
})), Z = I(() => n.variant === "month"), ee = I(() => n.allowTimeInput && n.variant !== "month"), { dateDisplayValue: q, textInputDisplayValue: g, formatTextInputDisplayValue: te } = jt({
|
|
861
|
-
datePickerValue: Ee(n, "value"),
|
|
862
|
-
isDateIncorrect: y,
|
|
863
|
-
quickSelectRanges: re,
|
|
864
|
-
isMonthVariant: Z,
|
|
865
|
-
withTimeInput: ee
|
|
866
|
-
}), se = I(
|
|
867
|
-
() => `${n.description ? s : ""} ${n.errorMessage ? v : ""} ${y.value ? b : ""}`.trim() || null
|
|
868
|
-
), V = () => {
|
|
869
|
-
h.value = !1;
|
|
870
|
-
}, U = () => {
|
|
871
|
-
h.value = !0;
|
|
872
|
-
}, C = A(q.value), x = A(
|
|
873
|
-
// textInputDisplayValue is a reactive object
|
|
874
|
-
structuredClone(Te(g))
|
|
875
|
-
), f = A(n.value), E = A(!0), W = I(
|
|
876
|
-
() => n.hasActions ? x.value : g
|
|
877
|
-
), K = I(
|
|
878
|
-
() => n.hasActions ? C.value : q.value
|
|
879
|
-
);
|
|
880
|
-
je(() => {
|
|
881
|
-
if (n.hasActions || ut(
|
|
882
|
-
'BentoDateRangePicker "hasActions" property',
|
|
883
|
-
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
884
|
-
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
885
|
-
"2.0.0"
|
|
886
|
-
), n.granularities && n.variant !== "month" && n.granularities.find(({ type: D }) => D === "quarterly"))
|
|
887
|
-
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
888
|
-
}), ye(
|
|
889
|
-
() => n.value,
|
|
890
|
-
() => {
|
|
891
|
-
C.value = q.value, x.value = structuredClone(Te(g));
|
|
892
|
-
}
|
|
893
|
-
);
|
|
894
|
-
const L = I(() => [
|
|
895
|
-
{
|
|
896
|
-
title: o("apply"),
|
|
897
|
-
event: () => {
|
|
898
|
-
e(fe.INPUT, f.value), V(), E.value = !0;
|
|
899
|
-
},
|
|
900
|
-
disabled: E.value
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
title: o("cancel"),
|
|
904
|
-
event: V
|
|
905
|
-
}
|
|
906
|
-
]);
|
|
907
|
-
return ye(f, (D) => {
|
|
908
|
-
if (n.hasActions) {
|
|
909
|
-
E.value = y.value;
|
|
910
|
-
return;
|
|
911
|
-
}
|
|
912
|
-
e(fe.INPUT, D);
|
|
913
|
-
}), { __sfc: !0, emit: e, props: n, locale: r, t: o, locales: c, datePickerContainerId: m, labelId: _, descriptionId: s, errorId: v, dateErrorId: b, popoverAriaLabel: de, adjustedQuickSelectRanges: re, isDateIncorrect: y, inputContainerRef: X, isDateRangePickerOpen: h, isReadOnly: T, shouldDisplayError: M, descriptionConditionalClasses: H, isMonthVariant: Z, withTimeInput: ee, dateDisplayValue: q, textInputDisplayValue: g, formatTextInputDisplayValue: te, ariaDescribedBy: se, closeDateRangePicker: V, openDateRangePicker: U, localDateDisplayValue: C, localTextInputDisplayValue: x, selectedDate: f, isApplyDisabled: E, displayedTextInputValue: W, displayedDateValue: K, rangePickerButtonActions: L, onDateRangePickerInput: (D) => {
|
|
914
|
-
y.value = !1;
|
|
915
|
-
const R = (z, $) => z ? ae(z, $, {
|
|
916
|
-
locale: c[r.value.substring(0, 2)] || c.enUS
|
|
917
|
-
}) : void 0;
|
|
918
|
-
g.startDate = R(D.startDate, k.NUMERIC_DATE_YEAR_FIRST), g.endDate = R(D.endDate, k.NUMERIC_DATE_YEAR_FIRST), g.startTime = R(D.startDate, k.HOUR_MINUTE_SECONDS), g.endTime = R(D.endDate, k.HOUR_MINUTE_SECONDS), f.value = D;
|
|
919
|
-
}, clearDateRangePickerValue: async () => {
|
|
920
|
-
y.value && (y.value = !1), f.value = null;
|
|
921
|
-
}, onEnterPressedOverInput: () => {
|
|
922
|
-
if (!h.value) {
|
|
923
|
-
h.value = !0;
|
|
924
|
-
return;
|
|
925
|
-
}
|
|
926
|
-
y.value || (h.value = !1);
|
|
927
|
-
}, onDateRangePickerFormDateInputUpdate: (D) => {
|
|
928
|
-
y.value = !1, D.startTime && (g.startTime = D.startTime), D.endTime && (g.endTime = D.endTime);
|
|
929
|
-
}, onDateRangePickerError: (D) => {
|
|
930
|
-
y.value = !0, g.startDate = D.startDate, g.endDate = D.endDate, f.value = { startDate: null, endDate: null };
|
|
931
|
-
}, onRangeSelectorInput: (D) => {
|
|
932
|
-
if (D) {
|
|
933
|
-
const R = ($, oe) => $ ? ae($, oe, {
|
|
934
|
-
locale: c[r.value.substring(0, 2)] || c.enUS
|
|
935
|
-
}) : void 0, z = ($) => ae($, k.NUMERIC_DATE_YEAR_FIRST, {
|
|
936
|
-
locale: c[r.value.substring(0, 2)] || c.enUS
|
|
937
|
-
});
|
|
938
|
-
g.startDate = z(D.startDate), g.endDate = z(D.endDate), g.startTime = R(
|
|
939
|
-
D.startDate,
|
|
940
|
-
k.HOUR_MINUTE_SECONDS
|
|
941
|
-
), g.endTime = R(D.endDate, k.HOUR_MINUTE_SECONDS), f.value = D;
|
|
942
|
-
}
|
|
943
|
-
}, BentoButtonActions: lt, BentoButtonActionsLayout: bt, BentoDivider: it, BentoPopover: ot, BentoTypography: Qe, DateRangePickerCalendar: Y, DropdownInputDefault: dt, ErrorMessage: St, FieldLabel: It, vBentoClickOutsideDirective: Rt };
|
|
944
|
-
}
|
|
945
|
-
});
|
|
946
|
-
var Ht = function() {
|
|
947
|
-
var e = this, n = e._self._c, r = e._self._setupProxy;
|
|
948
|
-
return n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: r.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? n(r.FieldLabel, { attrs: { id: r.labelId, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", { on: { keydown: function(o) {
|
|
949
|
-
return !o.type.indexOf("key") && e._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : r.onEnterPressedOverInput.apply(null, arguments);
|
|
950
|
-
} } }, [n(r.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: r.datePickerContainerId, ariaExpanded: r.isDateRangePickerOpen, "aria-labelledby": e.label ? r.labelId : null, "aria-describedby": r.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || r.shouldDisplayError, open: r.isDateRangePickerOpen, "display-value": r.displayedDateValue, readonly: r.isReadOnly }, on: { open: r.openDateRangePicker, clear: r.clearDateRangePickerValue, close: r.closeDateRangePicker } })], 1), r.shouldDisplayError ? n(r.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: r.dateErrorId, "error-message": r.t("provideDateInAFormat") } }) : e._e(), e.errorMessage ? n(r.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: r.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n(r.BentoTypography, { staticClass: "b-date-range-picker__description", class: r.descriptionConditionalClasses, attrs: { id: r.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), r.inputContainerRef ? n(r.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: r.datePickerContainerId, open: r.isDateRangePickerOpen, "target-element": r.inputContainerRef, "aria-label": r.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "", "trap-all": "" }, nativeOn: { keydown: function(o) {
|
|
951
|
-
return !o.type.indexOf("key") && e._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : r.closeDateRangePicker.apply(null, arguments);
|
|
952
|
-
} } }, [n(r.DateRangePickerCalendar, { attrs: { "allow-time-input": r.withTimeInput, "quick-select-ranges": r.adjustedQuickSelectRanges, 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": r.displayedTextInputValue, variant: e.variant }, on: { "custom-range": r.onRangeSelectorInput, input: r.onDateRangePickerInput, error: r.onDateRangePickerError, "form-date": r.onDateRangePickerFormDateInputUpdate }, scopedSlots: e._u([e.hasActions ? { key: "actions", fn: function() {
|
|
953
|
-
return [n(r.BentoDivider), n("div", { staticClass: "b-date-range-picker__footer" }, [n(r.BentoButtonActions, { attrs: { actions: r.rangePickerButtonActions, layout: r.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
|
|
954
|
-
}, proxy: !0 } : null], null, !0) })], 1) : e._e()], 1);
|
|
955
|
-
}, Vt = [], Wt = /* @__PURE__ */ Ge(
|
|
956
|
-
Gt,
|
|
957
|
-
Ht,
|
|
958
|
-
Vt,
|
|
959
|
-
!1,
|
|
960
|
-
null,
|
|
961
|
-
"209e4c3f"
|
|
962
|
-
);
|
|
963
|
-
const ga = Wt.exports;
|
|
964
|
-
export {
|
|
965
|
-
ga as B,
|
|
966
|
-
Y as D,
|
|
967
|
-
fe as a,
|
|
968
|
-
Et as b,
|
|
969
|
-
me as i
|
|
970
|
-
};
|
|
971
|
-
//# sourceMappingURL=date-range-picker.ChGfJUPq.js.map
|