@adyen/bento-vue2 1.92.2 → 1.93.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 +8 -0
- package/dist/@types/index.d.ts +483 -136
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/drawer.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -0
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.ChuPTyQG.js → action-bar.BPsug0x7.js} +4 -4
- package/dist/chunks/{action-bar.ChuPTyQG.js.map → action-bar.BPsug0x7.js.map} +1 -1
- package/dist/chunks/{ai-tag.Dt8nijLW.js → ai-tag.BfAbJI_v.js} +2 -2
- package/dist/chunks/{ai-tag.Dt8nijLW.js.map → ai-tag.BfAbJI_v.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.DWaykZQj.js → anchor-scroller.cFxql5sk.js} +2 -2
- package/dist/chunks/{anchor-scroller.DWaykZQj.js.map → anchor-scroller.cFxql5sk.js.map} +1 -1
- package/dist/chunks/{base-modal.DMdzcBrq.js → base-modal.ByhHqRuT.js} +5 -5
- package/dist/chunks/{base-modal.DMdzcBrq.js.map → base-modal.ByhHqRuT.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CXFziNUr.js → button-actions-with-menu.Ctu2EwxW.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.CXFziNUr.js.map → button-actions-with-menu.Ctu2EwxW.js.map} +1 -1
- package/dist/chunks/{button-actions.CXD6_9qN.js → button-actions.CdsmKyvj.js} +3 -3
- package/dist/chunks/{button-actions.CXD6_9qN.js.map → button-actions.CdsmKyvj.js.map} +1 -1
- package/dist/chunks/{calendar.rZsIZPxm.js → calendar.BaPh-1UW.js} +2 -2
- package/dist/chunks/{calendar.rZsIZPxm.js.map → calendar.BaPh-1UW.js.map} +1 -1
- package/dist/chunks/{card.Brma5kdb.js → card.BHssPRpx.js} +2 -2
- package/dist/chunks/{card.Brma5kdb.js.map → card.BHssPRpx.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DmKZQlxZ.js → checkbox-group.KJvcjvpx.js} +3 -3
- package/dist/chunks/{checkbox-group.DmKZQlxZ.js.map → checkbox-group.KJvcjvpx.js.map} +1 -1
- package/dist/chunks/{checkbox.BObXaofv.js → checkbox.B2lQl9BE.js} +2 -2
- package/dist/chunks/{checkbox.BObXaofv.js.map → checkbox.B2lQl9BE.js.map} +1 -1
- package/dist/chunks/{code-snippet.DHAymIXp.js → code-snippet.7SHuhPxc.js} +5 -5
- package/dist/chunks/{code-snippet.DHAymIXp.js.map → code-snippet.7SHuhPxc.js.map} +1 -1
- package/dist/chunks/{controls-group.DSm2Ujwt.js → controls-group.DNmVV2pt.js} +2 -2
- package/dist/chunks/{controls-group.DSm2Ujwt.js.map → controls-group.DNmVV2pt.js.map} +1 -1
- package/dist/chunks/{copy.qqGYFbKJ.js → copy.DcpG08B_.js} +3 -3
- package/dist/chunks/{copy.qqGYFbKJ.js.map → copy.DcpG08B_.js.map} +1 -1
- package/dist/chunks/{dashboard-section.D9rS8myE.js → dashboard-section.BWhw2hvx.js} +3 -3
- package/dist/chunks/{dashboard-section.D9rS8myE.js.map → dashboard-section.BWhw2hvx.js.map} +1 -1
- package/dist/chunks/{dashed-underline.D_FhFRXM.js → dashed-underline.CPTkubjQ.js} +3 -3
- package/dist/chunks/{dashed-underline.D_FhFRXM.js.map → dashed-underline.CPTkubjQ.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CRijG20n.js → data-grid-template.ZB5anthH.js} +3 -3
- package/dist/chunks/{data-grid-template.CRijG20n.js.map → data-grid-template.ZB5anthH.js.map} +1 -1
- package/dist/chunks/{data-grid.CJzEtn4Q.js → data-grid.CuLOPenn.js} +18 -18
- package/dist/chunks/{data-grid.CJzEtn4Q.js.map → data-grid.CuLOPenn.js.map} +1 -1
- package/dist/chunks/{date-picker.C9DIeaWH.js → date-picker.NdHdiufy.js} +8 -8
- package/dist/chunks/{date-picker.C9DIeaWH.js.map → date-picker.NdHdiufy.js.map} +1 -1
- package/dist/chunks/date-range-picker.BFgnw81F.js +1133 -0
- package/dist/chunks/{date-range-picker.zT42F9r4.js.map → date-range-picker.BFgnw81F.js.map} +1 -1
- package/dist/chunks/{dialog-page.EdejG53a.js → dialog-page.CziegEuc.js} +2 -2
- package/dist/chunks/{dialog-page.EdejG53a.js.map → dialog-page.CziegEuc.js.map} +1 -1
- package/dist/chunks/{draggable-handle.BR_aQH5N.js → draggable-handle.BsGnEMAT.js} +2 -2
- package/dist/chunks/{draggable-handle.BR_aQH5N.js.map → draggable-handle.BsGnEMAT.js.map} +1 -1
- package/dist/chunks/drawer.BqqodvlR.js +47 -0
- package/dist/chunks/drawer.BqqodvlR.js.map +1 -0
- package/dist/chunks/{dropdown-tag.z3rsxbpW.js → dropdown-tag.C6hkNptM.js} +3 -3
- package/dist/chunks/{dropdown-tag.z3rsxbpW.js.map → dropdown-tag.C6hkNptM.js.map} +1 -1
- package/dist/chunks/{dropdown.BYJwx-JD.js → dropdown.CF6Gf7ya.js} +5 -5
- package/dist/chunks/{dropdown.BYJwx-JD.js.map → dropdown.CF6Gf7ya.js.map} +1 -1
- package/dist/chunks/{es6.C1DXQV6f.js → es6.Cu3DYUPA.js} +3 -3
- package/dist/chunks/es6.Cu3DYUPA.js.map +1 -0
- package/dist/chunks/{field-label.DjjjkcO6.js → field-label.D7w7mHvW.js} +2 -2
- package/dist/chunks/{field-label.DjjjkcO6.js.map → field-label.D7w7mHvW.js.map} +1 -1
- package/dist/chunks/{file-uploader.Djl0xaDN.js → file-uploader.CX48W2BT.js} +3 -3
- package/dist/chunks/{file-uploader.Djl0xaDN.js.map → file-uploader.CX48W2BT.js.map} +1 -1
- package/dist/chunks/{filter-bar.C5NxhUhF.js → filter-bar.CFXeAK8X.js} +17 -17
- package/dist/chunks/{filter-bar.C5NxhUhF.js.map → filter-bar.CFXeAK8X.js.map} +1 -1
- package/dist/chunks/{focus-trap.DRqjHzt6.js → focus-trap.D4WDxUwu.js} +2 -2
- package/dist/chunks/{focus-trap.DRqjHzt6.js.map → focus-trap.D4WDxUwu.js.map} +1 -1
- package/dist/chunks/{footer-actions.D9mHwk5l.js → footer-actions.BoAzqs48.js} +2 -2
- package/dist/chunks/{footer-actions.D9mHwk5l.js.map → footer-actions.BoAzqs48.js.map} +1 -1
- package/dist/chunks/{header-meta.BSPnWWmi.js → header-meta.pubDFdDH.js} +3 -3
- package/dist/chunks/{header-meta.BSPnWWmi.js.map → header-meta.pubDFdDH.js.map} +1 -1
- package/dist/chunks/{header-with-views.DKD7O8pU.js → header-with-views.wMqUhzME.js} +10 -10
- package/dist/chunks/{header-with-views.DKD7O8pU.js.map → header-with-views.wMqUhzME.js.map} +1 -1
- package/dist/chunks/{header.DyZG7qWe.js → header.9h-5ZCv8.js} +3 -3
- package/dist/chunks/{header.DyZG7qWe.js.map → header.9h-5ZCv8.js.map} +1 -1
- package/dist/chunks/{index.CwzYJHw2.js → index.ByaCaB1Z.js} +15 -15
- package/dist/chunks/{index.CwzYJHw2.js.map → index.ByaCaB1Z.js.map} +1 -1
- package/dist/chunks/{info-icon.DCR42Kvm.js → info-icon.BOX4oIVD.js} +3 -3
- package/dist/chunks/{info-icon.DCR42Kvm.js.map → info-icon.BOX4oIVD.js.map} +1 -1
- package/dist/chunks/{input-field-password.hd-w1gkL.js → input-field-password.Ir5jAkAn.js} +6 -6
- package/dist/chunks/{input-field-password.hd-w1gkL.js.map → input-field-password.Ir5jAkAn.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BRmSDrCn.js → input-field-phone-number.DmC5am2a.js} +3 -3
- package/dist/chunks/{input-field-phone-number.BRmSDrCn.js.map → input-field-phone-number.DmC5am2a.js.map} +1 -1
- package/dist/chunks/{input-field.BgzXEyxn.js → input-field.Cwep4H_C.js} +3 -3
- package/dist/chunks/input-field.Cwep4H_C.js.map +1 -0
- package/dist/chunks/{input-time.CF2kTtAp.js → input-time.CNgIob-u.js} +4 -4
- package/dist/chunks/{input-time.CF2kTtAp.js.map → input-time.CNgIob-u.js.map} +1 -1
- package/dist/chunks/{inspector.BzBPlz-5.js → inspector._xqiBe9X.js} +3 -3
- package/dist/chunks/{inspector.BzBPlz-5.js.map → inspector._xqiBe9X.js.map} +1 -1
- package/dist/chunks/{layout-row.B_IQC9Nq.js → layout-row.Du_4NPVx.js} +8 -8
- package/dist/chunks/{layout-row.B_IQC9Nq.js.map → layout-row.Du_4NPVx.js.map} +1 -1
- package/dist/chunks/{list-item.DqTHh8-Z.js → list-item.Disq4nSZ.js} +2 -2
- package/dist/chunks/{list-item.DqTHh8-Z.js.map → list-item.Disq4nSZ.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CvbE-EuG.js → listbox-option-tag.B28d45lY.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CvbE-EuG.js.map → listbox-option-tag.B28d45lY.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.De6mevyD.js → modal-fullscreen.CEGc-wKf.js} +4 -4
- package/dist/chunks/{modal-fullscreen.De6mevyD.js.map → modal-fullscreen.CEGc-wKf.js.map} +1 -1
- package/dist/chunks/{modal.B6n5AWs2.js → modal.DMMqMdJF.js} +4 -4
- package/dist/chunks/{modal.B6n5AWs2.js.map → modal.DMMqMdJF.js.map} +1 -1
- package/dist/chunks/navigation-menu-group.KJvGw1tX.js +231 -0
- package/dist/chunks/navigation-menu-group.KJvGw1tX.js.map +1 -0
- package/dist/chunks/{pagination.BzsKZFnw.js → pagination.hOIvu4hj.js} +2 -2
- package/dist/chunks/{pagination.BzsKZFnw.js.map → pagination.hOIvu4hj.js.map} +1 -1
- package/dist/chunks/popover.types.DhuEjpRI.js +6 -0
- package/dist/chunks/{popover.types.hA13DZPg.js.map → popover.types.DhuEjpRI.js.map} +1 -1
- package/dist/chunks/{popper-container.C_n9Ds1W.js → popper-container.D7-KbKnN.js} +2 -2
- package/dist/chunks/{popper-container.C_n9Ds1W.js.map → popper-container.D7-KbKnN.js.map} +1 -1
- package/dist/chunks/{promo-banner.Dc_kK1x9.js → promo-banner.BzKZCMJp.js} +2 -2
- package/dist/chunks/{promo-banner.Dc_kK1x9.js.map → promo-banner.BzKZCMJp.js.map} +1 -1
- package/dist/chunks/{radio-group.Bb-L-0io.js → radio-group.U3G8U7p0.js} +3 -3
- package/dist/chunks/{radio-group.Bb-L-0io.js.map → radio-group.U3G8U7p0.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CmsmiW87.js → rich-text-editor.BHo3e81W.js} +4 -4
- package/dist/chunks/{rich-text-editor.CmsmiW87.js.map → rich-text-editor.BHo3e81W.js.map} +1 -1
- package/dist/chunks/{search-bar.Brb3OP-y.js → search-bar.CHINuvXx.js} +4 -4
- package/dist/chunks/{search-bar.Brb3OP-y.js.map → search-bar.CHINuvXx.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BBL5zZPK.js → secondary-nav.BWn_I33v.js} +4 -4
- package/dist/chunks/{secondary-nav.BBL5zZPK.js.map → secondary-nav.BWn_I33v.js.map} +1 -1
- package/dist/chunks/{segmented-control.DDtjX-V5.js → segmented-control.Dww21VC2.js} +2 -2
- package/dist/chunks/{segmented-control.DDtjX-V5.js.map → segmented-control.Dww21VC2.js.map} +1 -1
- package/dist/chunks/{selection-card-group.5jzX23fU.js → selection-card-group.DRP4Vk2d.js} +21 -21
- package/dist/chunks/{selection-card-group.5jzX23fU.js.map → selection-card-group.DRP4Vk2d.js.map} +1 -1
- package/dist/chunks/{sidepanel.nW0Bhk_u.js → sidepanel.B9ecjbyC.js} +5 -5
- package/dist/chunks/{sidepanel.nW0Bhk_u.js.map → sidepanel.B9ecjbyC.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BBBtie1s.js → structured-list-item.De_yYayn.js} +4 -4
- package/dist/chunks/{structured-list-item.BBBtie1s.js.map → structured-list-item.De_yYayn.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.Dp_efYVN.js → summary-grid.types.Dc-PJlfH.js} +5 -5
- package/dist/chunks/{summary-grid.types.Dp_efYVN.js.map → summary-grid.types.Dc-PJlfH.js.map} +1 -1
- package/dist/chunks/{tag.D2xagTJv.js → tag.DPNSUeue.js} +2 -2
- package/dist/chunks/{tag.D2xagTJv.js.map → tag.DPNSUeue.js.map} +1 -1
- package/dist/chunks/{textarea.CJS-1I41.js → textarea.C2gJX1kj.js} +3 -3
- package/dist/chunks/{textarea.CJS-1I41.js.map → textarea.C2gJX1kj.js.map} +1 -1
- package/dist/chunks/{timeline-item.CF9jbIRr.js → timeline-item.BKc5c9sS.js} +6 -6
- package/dist/chunks/{timeline-item.CF9jbIRr.js.map → timeline-item.BKc5c9sS.js.map} +1 -1
- package/dist/chunks/{tooltip.BxtnF3is.js → tooltip.Bl6kedql.js} +3 -3
- package/dist/chunks/{tooltip.BxtnF3is.js.map → tooltip.Bl6kedql.js.map} +1 -1
- package/dist/chunks/{tutorial.CoWDVs7_.js → tutorial.C1dZpvsz.js} +4 -4
- package/dist/chunks/{tutorial.CoWDVs7_.js.map → tutorial.C1dZpvsz.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.Du8-wWR2.js → use-cached-selected-values.C6aShVBp.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.Du8-wWR2.js.map → use-cached-selected-values.C6aShVBp.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.ibZeLD_V.js → use-date-input-formatter.CrkJ_UfS.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.ibZeLD_V.js.map → use-date-input-formatter.CrkJ_UfS.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable.js +1 -1
- package/dist/drawer.js +5 -0
- package/dist/drawer.js.map +1 -0
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +291 -285
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +7 -0
- package/dist/navigation-menu.js.map +1 -0
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +3 -0
- package/dist/styles/bento-light.css +3 -0
- package/dist/styles/bento.css +3 -0
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +3 -0
- package/dist/styles/utility.css +9 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +236 -2
- package/package.json +5 -5
- package/dist/chunks/date-range-picker.zT42F9r4.js +0 -1097
- package/dist/chunks/es6.C1DXQV6f.js.map +0 -1
- package/dist/chunks/input-field.BgzXEyxn.js.map +0 -1
- package/dist/chunks/popover.types.hA13DZPg.js +0 -6
|
@@ -0,0 +1,1133 @@
|
|
|
1
|
+
import { reactive as ge, defineComponent as Ue, useSlots as va, ref as O, computed as p, onMounted as Je, toRaw as Ye, watch as ve, useAttrs as ga, toRef as he } from "vue";
|
|
2
|
+
import { a as ya } from "./index.ByaCaB1Z.js";
|
|
3
|
+
import { B as Ma } from "./divider.DX5gwN7p.js";
|
|
4
|
+
import { h as ha, B as Ta } from "./button-actions.CdsmKyvj.js";
|
|
5
|
+
import { B as $e, d as Oe } from "./typography.C8lPlsbD.js";
|
|
6
|
+
import { B as Ra } from "./alert.CLqcPN0Q.js";
|
|
7
|
+
import { B as Ya } from "./input-field.Cwep4H_C.js";
|
|
8
|
+
import { B as Aa, i as Ce } from "./input-time.CNgIob-u.js";
|
|
9
|
+
import { B as ba, D as ka } from "./dropdown.CF6Gf7ya.js";
|
|
10
|
+
import { B as Ia } from "./segmented-control.Dww21VC2.js";
|
|
11
|
+
import { u as Ae } from "./index.B6WW_F-J.js";
|
|
12
|
+
import { d as Be } from "./use-cached-selected-values.C6aShVBp.js";
|
|
13
|
+
import { u as _a } from "./use-has-slot.C9lQZ6nz.js";
|
|
14
|
+
import { u as be, a as Sa } from "./use-date-input-formatter.CrkJ_UfS.js";
|
|
15
|
+
import { u as xa } from "./use-touch-device.DTqFAbXh.js";
|
|
16
|
+
import { h as re, i as F, j as Y, k as Fa, l as qe, m as Ea, s as Pe, n as wa, o as Oa, q as Ca, r as Ne, t as Ba, b as N, u as qa, e as Pa, f as Na, v as S, p as ze, w as Qe, g as za } from "./calendar.BaPh-1UW.js";
|
|
17
|
+
import { e as C, a as We } from "./differenceInMonths.CpwVtHZX.js";
|
|
18
|
+
import { s as je } from "./startOfWeek.Br5KM4z_.js";
|
|
19
|
+
import { t as j, n as Qa, c as Wa } from "./en-US.BK5uiAND.js";
|
|
20
|
+
import { c as ja } from "./constructNow.CK0ryPil.js";
|
|
21
|
+
import { n as He } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
22
|
+
import { g as ne } from "./generate-uid.NJ8tVoha.js";
|
|
23
|
+
import { u as La } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
24
|
+
import "./index.Cl4_42j5.js";
|
|
25
|
+
import { u as Ga } from "./form-field.D_2g7vaP.js";
|
|
26
|
+
import { B as Va } from "./directive.Bfr4fuOy.js";
|
|
27
|
+
import { F as Ua } from "./field-label.D7w7mHvW.js";
|
|
28
|
+
import { E as Ja } from "./error-message.CyERcfdt.js";
|
|
29
|
+
import { B as $a } from "./button-actions.types.BptAXjD8.js";
|
|
30
|
+
import "../assets/date-range-picker.css";
|
|
31
|
+
function Le(s, t) {
|
|
32
|
+
return j(s, t == null ? void 0 : t.in).getFullYear();
|
|
33
|
+
}
|
|
34
|
+
function Te(s, t) {
|
|
35
|
+
return +j(s) == +j(t);
|
|
36
|
+
}
|
|
37
|
+
function Ha(s, t, e) {
|
|
38
|
+
const [a, i] = Qa(
|
|
39
|
+
e == null ? void 0 : e.in,
|
|
40
|
+
s,
|
|
41
|
+
t
|
|
42
|
+
);
|
|
43
|
+
return +re(a) == +re(i);
|
|
44
|
+
}
|
|
45
|
+
function Ge(s, t) {
|
|
46
|
+
const e = j(s, t == null ? void 0 : t.in);
|
|
47
|
+
return e.setMilliseconds(0), e;
|
|
48
|
+
}
|
|
49
|
+
function Re(s, t) {
|
|
50
|
+
return +Ge(s) == +Ge(t);
|
|
51
|
+
}
|
|
52
|
+
function Ka(s, t) {
|
|
53
|
+
return F(
|
|
54
|
+
Wa(s, s),
|
|
55
|
+
ja(s)
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
function Xa(s, t, e) {
|
|
59
|
+
const a = j(s, e == null ? void 0 : e.in);
|
|
60
|
+
return a.setHours(t), a;
|
|
61
|
+
}
|
|
62
|
+
function Ve(s, t, e) {
|
|
63
|
+
const a = j(s, e == null ? void 0 : e.in);
|
|
64
|
+
return a.setMilliseconds(t), a;
|
|
65
|
+
}
|
|
66
|
+
function Za(s, t, e) {
|
|
67
|
+
const a = j(s, e == null ? void 0 : e.in);
|
|
68
|
+
return a.setMinutes(t), a;
|
|
69
|
+
}
|
|
70
|
+
function et(s, t, e) {
|
|
71
|
+
const a = j(s, e == null ? void 0 : e.in);
|
|
72
|
+
return a.setSeconds(t), a;
|
|
73
|
+
}
|
|
74
|
+
const at = ({
|
|
75
|
+
firstDayOfWeek: s,
|
|
76
|
+
min: t,
|
|
77
|
+
max: e
|
|
78
|
+
}) => ({ getGranularCalendarLimits: (i) => {
|
|
79
|
+
if (!t && !e)
|
|
80
|
+
return { min: null, max: null };
|
|
81
|
+
let m = t ? Y(t) : null, f = e ? C(e) : null;
|
|
82
|
+
if ((i == null ? void 0 : i.type) === "weekly") {
|
|
83
|
+
if (i.earliest)
|
|
84
|
+
m = Y(i.earliest);
|
|
85
|
+
else if (m) {
|
|
86
|
+
const M = je(m, { weekStartsOn: s });
|
|
87
|
+
F(m, M) || (m = Y(Fa(qe(m, { weekStartsOn: s }), 1)));
|
|
88
|
+
}
|
|
89
|
+
if (i.latest)
|
|
90
|
+
f = C(i.latest);
|
|
91
|
+
else if (f) {
|
|
92
|
+
const M = qe(f, { weekStartsOn: s });
|
|
93
|
+
F(f, M) || (f = C(Ea(je(f, { weekStartsOn: s }), 1)));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if ((i == null ? void 0 : i.type) === "monthly") {
|
|
97
|
+
if (i.earliest)
|
|
98
|
+
m = Y(i.earliest);
|
|
99
|
+
else if (m) {
|
|
100
|
+
const M = Pe(m);
|
|
101
|
+
F(m, M) || (m = Pe(wa(m, 1)));
|
|
102
|
+
}
|
|
103
|
+
if (i.latest)
|
|
104
|
+
f = C(i.latest);
|
|
105
|
+
else if (f) {
|
|
106
|
+
const M = We(f);
|
|
107
|
+
F(f, M) || (f = We(Oa(f, 1)));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
if ((i == null ? void 0 : i.type) === "quarterly") {
|
|
111
|
+
if (i.earliest)
|
|
112
|
+
m = re(i.earliest);
|
|
113
|
+
else if (m) {
|
|
114
|
+
const M = re(m);
|
|
115
|
+
F(m, M) || (m = re(Ca(m, 1)));
|
|
116
|
+
}
|
|
117
|
+
if (i.latest)
|
|
118
|
+
f = C(i.latest);
|
|
119
|
+
else if (f) {
|
|
120
|
+
const M = Ne(f);
|
|
121
|
+
F(f, M) || (f = Ne(Ba(f, 1)));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return { min: m, max: f };
|
|
125
|
+
} }), tt = () => {
|
|
126
|
+
const s = ge({
|
|
127
|
+
daily: null,
|
|
128
|
+
weekly: null,
|
|
129
|
+
monthly: null,
|
|
130
|
+
quarterly: null
|
|
131
|
+
});
|
|
132
|
+
return {
|
|
133
|
+
savedRanges: s,
|
|
134
|
+
saveRange: (a, i) => {
|
|
135
|
+
s[a] = i;
|
|
136
|
+
},
|
|
137
|
+
resetSavedRanges: () => {
|
|
138
|
+
s.daily = null, s.weekly = null, s.monthly = null, s.quarterly = null;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
var v = /* @__PURE__ */ ((s) => (s.CUSTOM_RANGE = "custom-range", s.INPUT = "input", s.ERROR = "error", s.FORM_DATE = "form-date", s.START_DATE_SELECTED = "start-date-selected", s))(v || {});
|
|
143
|
+
const nt = {
|
|
144
|
+
"de-DE": {
|
|
145
|
+
"DD-MM-YYYY": "TT-MM-JJJJ",
|
|
146
|
+
"MM-DD-YYYY": "JJJJ-MM-TT",
|
|
147
|
+
"YYYY-MM-DD": "JJJJ-MM-TT",
|
|
148
|
+
customRange: "Benutzerdefinierter Bereich",
|
|
149
|
+
daily: "Täglich",
|
|
150
|
+
dateFrom: "Datum von",
|
|
151
|
+
dateTo: "Datum bis",
|
|
152
|
+
lastMonth: "Letzter Monat",
|
|
153
|
+
lastSevenDays: "Letzte 7 Tage",
|
|
154
|
+
lastThreeMonths: "Letzte drei Monate",
|
|
155
|
+
maxRangeDays: "Sie können bis zu {count} Tag auswählen | Sie können bis zu {count} Tage auswählen",
|
|
156
|
+
maxRangeMonths: "Sie können bis zu {count} Monat auswählen | Sie können bis zu {count} Monate auswählen",
|
|
157
|
+
maxRangeQuarters: "Sie können bis zu {count} Quartal auswählen | Sie können bis zu {count} Quartale auswählen",
|
|
158
|
+
maxRangeWeeks: "Sie können bis zu {count} Woche auswählen | Sie können bis zu {count} Wochen auswählen",
|
|
159
|
+
monthly: "Monatlich",
|
|
160
|
+
quarterly: "Vierteljährlich",
|
|
161
|
+
timeFrom: "Zeit von",
|
|
162
|
+
timeTo: "Zeit bis",
|
|
163
|
+
weekly: "Wöchentlich"
|
|
164
|
+
},
|
|
165
|
+
"en-GB": {
|
|
166
|
+
"DD-MM-YYYY": "DD-MM-YYYY",
|
|
167
|
+
"MM-DD-YYYY": "MM-DD-YYYY",
|
|
168
|
+
"YYYY-MM-DD": "YYYY-MM-DD",
|
|
169
|
+
customRange: "Custom range",
|
|
170
|
+
daily: "Daily",
|
|
171
|
+
dateFrom: "Date from",
|
|
172
|
+
dateTo: "Date to",
|
|
173
|
+
lastMonth: "Last month",
|
|
174
|
+
lastSevenDays: "Last 7 days",
|
|
175
|
+
lastThreeMonths: "The last three months",
|
|
176
|
+
maxRangeDays: "You can select up to {count} day | You can select up to {count} days",
|
|
177
|
+
maxRangeMonths: "You can select up to {count} month | You can select up to {count} months",
|
|
178
|
+
maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters",
|
|
179
|
+
maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks",
|
|
180
|
+
monthly: "Monthly",
|
|
181
|
+
quarterly: "Quarterly",
|
|
182
|
+
timeFrom: "Time from",
|
|
183
|
+
timeTo: "Time to",
|
|
184
|
+
weekly: "Weekly"
|
|
185
|
+
},
|
|
186
|
+
"en-US": {
|
|
187
|
+
"DD-MM-YYYY": "DD-MM-YYYY",
|
|
188
|
+
"MM-DD-YYYY": "MM-DD-YYYY",
|
|
189
|
+
"YYYY-MM-DD": "YYYY-MM-DD",
|
|
190
|
+
customRange: "Custom range",
|
|
191
|
+
daily: "Daily",
|
|
192
|
+
dateFrom: "Date from",
|
|
193
|
+
dateTo: "Date to",
|
|
194
|
+
lastMonth: "Last month",
|
|
195
|
+
lastSevenDays: "Last 7 days",
|
|
196
|
+
lastThreeMonths: "Last three months",
|
|
197
|
+
maxRangeDays: "You can select up to {count} day | You can select up to {count} days",
|
|
198
|
+
maxRangeMonths: "You can select up to {count} month | You can select up to {count} months",
|
|
199
|
+
maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters",
|
|
200
|
+
maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks",
|
|
201
|
+
monthly: "Monthly",
|
|
202
|
+
quarterly: "Quarterly",
|
|
203
|
+
timeFrom: "Time from",
|
|
204
|
+
timeTo: "Time to",
|
|
205
|
+
weekly: "Weekly"
|
|
206
|
+
},
|
|
207
|
+
"es-ES": {
|
|
208
|
+
"DD-MM-YYYY": "DD-MM-AAAA",
|
|
209
|
+
"MM-DD-YYYY": "MM-DD-AAAA",
|
|
210
|
+
"YYYY-MM-DD": "AAAA-MM-DD",
|
|
211
|
+
customRange: "Rango personalizado",
|
|
212
|
+
daily: "Diario",
|
|
213
|
+
dateFrom: "Fecha desde",
|
|
214
|
+
dateTo: "Fecha hasta",
|
|
215
|
+
lastMonth: "El mes pasado",
|
|
216
|
+
lastSevenDays: "Últimos 7 días",
|
|
217
|
+
lastThreeMonths: "Últimos tres meses",
|
|
218
|
+
maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días",
|
|
219
|
+
maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses",
|
|
220
|
+
maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres",
|
|
221
|
+
maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas",
|
|
222
|
+
monthly: "Mensualmente",
|
|
223
|
+
quarterly: "Trimestral",
|
|
224
|
+
timeFrom: "Hora desde",
|
|
225
|
+
timeTo: "Hora hasta",
|
|
226
|
+
weekly: "Semanal"
|
|
227
|
+
},
|
|
228
|
+
"es-MX": {
|
|
229
|
+
"DD-MM-YYYY": "DD-MM-AAAA",
|
|
230
|
+
"MM-DD-YYYY": "MM-DD-AAAA",
|
|
231
|
+
"YYYY-MM-DD": "AAAA-MM-DD",
|
|
232
|
+
customRange: "Rango personalizado",
|
|
233
|
+
daily: "Diario",
|
|
234
|
+
dateFrom: "Fecha de",
|
|
235
|
+
dateTo: "Fecha hasta",
|
|
236
|
+
lastMonth: "El mes pasado",
|
|
237
|
+
lastSevenDays: "Últimos 7 días",
|
|
238
|
+
lastThreeMonths: "Últimos tres meses",
|
|
239
|
+
maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días",
|
|
240
|
+
maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses",
|
|
241
|
+
maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres",
|
|
242
|
+
maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas",
|
|
243
|
+
monthly: "Mensual",
|
|
244
|
+
quarterly: "Trimestral",
|
|
245
|
+
timeFrom: "Tiempo desde",
|
|
246
|
+
timeTo: "Es hora de",
|
|
247
|
+
weekly: "Semanal"
|
|
248
|
+
},
|
|
249
|
+
"fr-FR": {
|
|
250
|
+
"DD-MM-YYYY": "JJ-MM-AAAA",
|
|
251
|
+
"MM-DD-YYYY": "MM-JJ-AAAA",
|
|
252
|
+
"YYYY-MM-DD": "AAAA-MM-JJ",
|
|
253
|
+
customRange: "Plage personnalisée",
|
|
254
|
+
daily: "Quotidien",
|
|
255
|
+
dateFrom: "Date de début",
|
|
256
|
+
dateTo: "Date de fin",
|
|
257
|
+
lastMonth: "Le mois dernier",
|
|
258
|
+
lastSevenDays: "7 derniers jours",
|
|
259
|
+
lastThreeMonths: "Trois derniers mois",
|
|
260
|
+
maxRangeDays: "Vous pouvez sélectionner jusqu'à {count} jour | Vous pouvez sélectionner jusqu'à {count} jours",
|
|
261
|
+
maxRangeMonths: "Vous pouvez sélectionner jusqu'à {count} mois | Vous pouvez sélectionner jusqu'à {count} mois",
|
|
262
|
+
maxRangeQuarters: "Vous pouvez sélectionner jusqu'à {count} trimestre | Vous pouvez sélectionner jusqu'à {count} trimestres",
|
|
263
|
+
maxRangeWeeks: "Vous pouvez sélectionner jusqu'à {count} semaine | Vous pouvez sélectionner jusqu'à {count} semaines",
|
|
264
|
+
monthly: "Mensuel",
|
|
265
|
+
quarterly: "Trimestriel",
|
|
266
|
+
timeFrom: "Heure de début",
|
|
267
|
+
timeTo: "Heure de fin",
|
|
268
|
+
weekly: "Hebdomadaire"
|
|
269
|
+
},
|
|
270
|
+
"it-IT": {
|
|
271
|
+
"DD-MM-YYYY": "GG-MM-AAAA",
|
|
272
|
+
"MM-DD-YYYY": "MM-GG-AAAA",
|
|
273
|
+
"YYYY-MM-DD": "AAAA-MM-GG",
|
|
274
|
+
customRange: "Intervallo personalizzato",
|
|
275
|
+
daily: "Giornaliero",
|
|
276
|
+
dateFrom: "Data da",
|
|
277
|
+
dateTo: "Da",
|
|
278
|
+
lastMonth: "Il mese scorso",
|
|
279
|
+
lastSevenDays: "Ultimi 7 giorni",
|
|
280
|
+
lastThreeMonths: "Gli ultimi tre mesi",
|
|
281
|
+
maxRangeDays: "Puoi selezionare fino a {count} giorno | Puoi selezionare fino a {count} giorni",
|
|
282
|
+
maxRangeMonths: "Puoi selezionare fino a {count} mese | Puoi selezionare fino a {count} mesi",
|
|
283
|
+
maxRangeQuarters: "Puoi selezionare fino a {count} trimestre | Puoi selezionare fino a {count} trimestri",
|
|
284
|
+
maxRangeWeeks: "Puoi selezionare fino a {count} settimana | Puoi selezionare fino a {count} settimane",
|
|
285
|
+
monthly: "Mensile",
|
|
286
|
+
quarterly: "Trimestrale",
|
|
287
|
+
timeFrom: "Tempo dal",
|
|
288
|
+
timeTo: "Tempo fino al",
|
|
289
|
+
weekly: "Settimanale"
|
|
290
|
+
},
|
|
291
|
+
"ja-JP": {
|
|
292
|
+
"DD-MM-YYYY": "DD-MM-YYYY",
|
|
293
|
+
"MM-DD-YYYY": "MM-DD-YYYY",
|
|
294
|
+
"YYYY-MM-DD": "YYYY-MM-DD",
|
|
295
|
+
customRange: "カスタム範囲",
|
|
296
|
+
daily: "毎日",
|
|
297
|
+
dateFrom: "開始日",
|
|
298
|
+
dateTo: "終了日",
|
|
299
|
+
lastMonth: "先月",
|
|
300
|
+
lastSevenDays: "過去 7 日間",
|
|
301
|
+
lastThreeMonths: "過去3か月",
|
|
302
|
+
maxRangeDays: "{count}日間まで選択できます | {count}日間まで選択できます",
|
|
303
|
+
maxRangeMonths: "{count}か月まで選択できます | {count}か月まで選択できます",
|
|
304
|
+
maxRangeQuarters: "{count}四半期まで選択できます | {count}四半期まで選択できます",
|
|
305
|
+
maxRangeWeeks: "{count}週間まで選択できます | {count}週間まで選択できます",
|
|
306
|
+
monthly: "毎月",
|
|
307
|
+
quarterly: "四半期ごと",
|
|
308
|
+
timeFrom: "開始時刻",
|
|
309
|
+
timeTo: "終了時刻",
|
|
310
|
+
weekly: "毎週"
|
|
311
|
+
},
|
|
312
|
+
"pt-BR": {
|
|
313
|
+
"DD-MM-YYYY": "DD-MM-AAAA",
|
|
314
|
+
"MM-DD-YYYY": "MM-DD-AAAA",
|
|
315
|
+
"YYYY-MM-DD": "AAAA-MM-DD",
|
|
316
|
+
customRange: "Intervalo personalizado",
|
|
317
|
+
daily: "Diário",
|
|
318
|
+
dateFrom: "Data a partir de",
|
|
319
|
+
dateTo: "Data até",
|
|
320
|
+
lastMonth: "Último mês",
|
|
321
|
+
lastSevenDays: "Últimos 7 dias",
|
|
322
|
+
lastThreeMonths: "Últimos 3 meses",
|
|
323
|
+
maxRangeDays: "Você pode selecionar até {count} dia | Você pode selecionar até {count} dias",
|
|
324
|
+
maxRangeMonths: "Você pode selecionar até {count} mês | Você pode selecionar até {count} meses",
|
|
325
|
+
maxRangeQuarters: "Você pode selecionar até {count} trimestre | Você pode selecionar até {count} trimestres",
|
|
326
|
+
maxRangeWeeks: "Você pode selecionar até {count} semana | Você pode selecionar até {count} semanas",
|
|
327
|
+
monthly: "Mensal",
|
|
328
|
+
quarterly: "Trimestral",
|
|
329
|
+
timeFrom: "Horário a partir de",
|
|
330
|
+
timeTo: "Horário até",
|
|
331
|
+
weekly: "Semanal"
|
|
332
|
+
},
|
|
333
|
+
"zh-CN": {
|
|
334
|
+
"DD-MM-YYYY": "日-月-年",
|
|
335
|
+
"MM-DD-YYYY": "YYYY-MM-DD",
|
|
336
|
+
"YYYY-MM-DD": "年-月-日",
|
|
337
|
+
customRange: "自定义范围",
|
|
338
|
+
daily: "每日",
|
|
339
|
+
dateFrom: "日期自",
|
|
340
|
+
dateTo: "日期至",
|
|
341
|
+
lastMonth: "上个月",
|
|
342
|
+
lastSevenDays: "最近 7 天",
|
|
343
|
+
lastThreeMonths: "过去三个月",
|
|
344
|
+
maxRangeDays: "您可以选择最多 {count} 天 | 您可以选择最多 {count} 天",
|
|
345
|
+
maxRangeMonths: "您可以选择最多 {count} 个月 | 您可以选择最多 {count} 个月",
|
|
346
|
+
maxRangeQuarters: "您最多可以选择 {count} 个季度 | 您最多可以选择 {count} 个季度",
|
|
347
|
+
maxRangeWeeks: "您最多可以选择 {count} 周 | 您最多可以选择 {count} 周",
|
|
348
|
+
monthly: "每月",
|
|
349
|
+
quarterly: "每季度",
|
|
350
|
+
timeFrom: "时间自",
|
|
351
|
+
timeTo: "是时候",
|
|
352
|
+
weekly: "每周"
|
|
353
|
+
}
|
|
354
|
+
}, rt = {
|
|
355
|
+
name: "date-range-picker-calendar",
|
|
356
|
+
i18n: { messages: nt }
|
|
357
|
+
}, st = /* @__PURE__ */ Ue({
|
|
358
|
+
...rt,
|
|
359
|
+
props: {
|
|
360
|
+
/**
|
|
361
|
+
* Allows user to enter time values in the form
|
|
362
|
+
*/
|
|
363
|
+
allowTimeInput: { type: Boolean, default: !1 },
|
|
364
|
+
/**
|
|
365
|
+
* Ranges form persistance data
|
|
366
|
+
*/
|
|
367
|
+
dateFormData: {
|
|
368
|
+
type: Object,
|
|
369
|
+
default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
373
|
+
*/
|
|
374
|
+
firstDayOfWeek: N.props.firstDayOfWeek,
|
|
375
|
+
/**
|
|
376
|
+
* A list of available granularities.
|
|
377
|
+
* If present, the date picker will display a segmented control to change granularity.
|
|
378
|
+
*/
|
|
379
|
+
granularities: {
|
|
380
|
+
type: Array,
|
|
381
|
+
default: null
|
|
382
|
+
},
|
|
383
|
+
/**
|
|
384
|
+
* Indicate if a date should be disabled or not
|
|
385
|
+
*/
|
|
386
|
+
isDateDisabled: N.props.isDateDisabled,
|
|
387
|
+
/**
|
|
388
|
+
* Set a maximum number of dates to be selectable by the range.
|
|
389
|
+
*/
|
|
390
|
+
maxRange: N.props.maxRange,
|
|
391
|
+
/**
|
|
392
|
+
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
393
|
+
*/
|
|
394
|
+
min: N.props.min,
|
|
395
|
+
/**
|
|
396
|
+
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
397
|
+
*/
|
|
398
|
+
max: N.props.max,
|
|
399
|
+
/**
|
|
400
|
+
* Number of months rendered on pane
|
|
401
|
+
*/
|
|
402
|
+
numberOfMonths: {
|
|
403
|
+
type: N.props.numberOfMonths.type,
|
|
404
|
+
default: N.props.numberOfMonths.default,
|
|
405
|
+
validator: (s) => s >= 0
|
|
406
|
+
},
|
|
407
|
+
/**
|
|
408
|
+
* Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
|
|
409
|
+
*/
|
|
410
|
+
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
411
|
+
/**
|
|
412
|
+
* Enables the custom range selector.
|
|
413
|
+
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
414
|
+
* `label` - label of custom range item.
|
|
415
|
+
* `value` - a unique key of the custom range item.
|
|
416
|
+
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
417
|
+
*/
|
|
418
|
+
quickSelectRanges: {
|
|
419
|
+
type: Array,
|
|
420
|
+
default: void 0
|
|
421
|
+
},
|
|
422
|
+
/**
|
|
423
|
+
* Selected date
|
|
424
|
+
*/
|
|
425
|
+
value: { type: Object, default: void 0 },
|
|
426
|
+
/**
|
|
427
|
+
* The type of calendar to display. Defaults to showing days.
|
|
428
|
+
*/
|
|
429
|
+
variant: N.props.variant
|
|
430
|
+
},
|
|
431
|
+
emits: [
|
|
432
|
+
v.CUSTOM_RANGE,
|
|
433
|
+
v.INPUT,
|
|
434
|
+
v.ERROR,
|
|
435
|
+
v.FORM_DATE,
|
|
436
|
+
v.START_DATE_SELECTED
|
|
437
|
+
],
|
|
438
|
+
setup(s, { emit: t }) {
|
|
439
|
+
var xe, Fe, Ee, we;
|
|
440
|
+
const e = s, a = 300, i = "customRange", m = {
|
|
441
|
+
daily: "maxRangeDays",
|
|
442
|
+
weekly: "maxRangeWeeks",
|
|
443
|
+
monthly: "maxRangeMonths",
|
|
444
|
+
quarterly: "maxRangeQuarters"
|
|
445
|
+
}, f = va(), M = _a(f), { t: B, tc: z } = Ae(), { isTouchDevice: y } = xa(), {
|
|
446
|
+
dateFormat: se,
|
|
447
|
+
isFormatValid: X,
|
|
448
|
+
parseDate: D,
|
|
449
|
+
onKeyDown: L,
|
|
450
|
+
autoFormat: b,
|
|
451
|
+
formatDate: E
|
|
452
|
+
} = be(), g = O({}), G = p(() => e.variant === "month" ? "monthly" : "daily"), x = p(() => e.numberOfMonths === 0), r = ge({
|
|
453
|
+
startDate: (xe = e.value) == null ? void 0 : xe.startDate,
|
|
454
|
+
endDate: (Fe = e.value) == null ? void 0 : Fe.endDate,
|
|
455
|
+
range: (Ee = e.value) == null ? void 0 : Ee.range,
|
|
456
|
+
...e.granularities ? {
|
|
457
|
+
granularity: ((we = e.value) == null ? void 0 : we.granularity) || G.value
|
|
458
|
+
} : {}
|
|
459
|
+
}), k = p(() => {
|
|
460
|
+
var n, l;
|
|
461
|
+
return (
|
|
462
|
+
// eslint-disable-next-line consistent-return
|
|
463
|
+
((l = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: u, data: d }) => {
|
|
464
|
+
var R;
|
|
465
|
+
if (!d.endDate) {
|
|
466
|
+
if (d.isRelativeToNow) {
|
|
467
|
+
const I = (R = g.value) == null ? void 0 : R[u];
|
|
468
|
+
return I ? Te(I.startDate, r.startDate) && Te(I.endDate, r.endDate) : (
|
|
469
|
+
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
470
|
+
// with the internal range's stored range identifier.
|
|
471
|
+
u === r.range
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
return Te(d.startDate, r.startDate) && Ka(r.endDate) && (!e.allowTimeInput || Re(r.endDate, C(r.endDate))) && (e.granularities ? d.granularity === r.granularity : !0);
|
|
475
|
+
}
|
|
476
|
+
if (e.allowTimeInput)
|
|
477
|
+
return Re(d.startDate, r.startDate) && Re(d.endDate, r.endDate) && (e.granularities ? d.granularity === r.granularity : !0);
|
|
478
|
+
if (d.endDate)
|
|
479
|
+
return F(d.startDate, r.startDate) && F(d.endDate, r.endDate) && (e.granularities ? d.granularity === r.granularity : !0);
|
|
480
|
+
})) == null ? void 0 : l.value) ?? i
|
|
481
|
+
);
|
|
482
|
+
}), oe = p(() => ({
|
|
483
|
+
"b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
|
|
484
|
+
})), le = p(() => [
|
|
485
|
+
{ label: B("customRange"), value: i },
|
|
486
|
+
...e.quickSelectRanges ? e.quickSelectRanges : []
|
|
487
|
+
]), V = p(
|
|
488
|
+
() => {
|
|
489
|
+
var n;
|
|
490
|
+
return ((n = e.granularities) == null ? void 0 : n.find(({ type: l }) => l === r.granularity)) || null;
|
|
491
|
+
}
|
|
492
|
+
), ie = p(
|
|
493
|
+
() => {
|
|
494
|
+
var n;
|
|
495
|
+
return ((n = e.granularities) == null ? void 0 : n.map(({ type: l, disabled: u }) => ({
|
|
496
|
+
label: B(l),
|
|
497
|
+
value: l,
|
|
498
|
+
disabled: u
|
|
499
|
+
}))) ?? [];
|
|
500
|
+
}
|
|
501
|
+
), { getGranularCalendarLimits: Z } = at(e), h = p(
|
|
502
|
+
() => e.granularities ? Z(V.value) : { min: e.min ? Y(e.min) : null, max: e.max ? C(e.max) : null }
|
|
503
|
+
), {
|
|
504
|
+
adjustDateForQuarterly: T,
|
|
505
|
+
adjustDateForMonthly: ue,
|
|
506
|
+
adjustDateForWeekly: ce,
|
|
507
|
+
adjustStartDateInputForWeekly: U,
|
|
508
|
+
adjustEndDateInputForWeekly: de,
|
|
509
|
+
adjustStartDateInputForMonthly: J,
|
|
510
|
+
adjustEndDateInputForMonthly: $,
|
|
511
|
+
adjustStartDateInputForQuarterly: w,
|
|
512
|
+
adjustEndDateInputForQuarterly: Q
|
|
513
|
+
} = qa(e.firstDayOfWeek), { savedRanges: q, saveRange: me, resetSavedRanges: ee } = tt(), A = (n) => n ? E(n) : "", H = O(!1), K = O(!1), o = ge({
|
|
514
|
+
startDate: e.dateFormData.startDate,
|
|
515
|
+
endDate: e.dateFormData.endDate,
|
|
516
|
+
startTime: e.dateFormData.startTime,
|
|
517
|
+
endTime: e.dateFormData.endTime
|
|
518
|
+
}), De = (n, l) => {
|
|
519
|
+
let u = new Date(n);
|
|
520
|
+
const [d, R, I] = l.split(":");
|
|
521
|
+
return u = Xa(u, parseInt(d, 10)), u = Za(u, parseInt(R, 10)), u = et(u, parseInt(I, 10)), u;
|
|
522
|
+
}, pe = (n, l) => {
|
|
523
|
+
const u = () => {
|
|
524
|
+
if (l && P(l)) {
|
|
525
|
+
const d = De(D(l), n);
|
|
526
|
+
if (e.min && d < Ve(e.min, 0) || e.max && d > Ve(e.max, 0))
|
|
527
|
+
return !1;
|
|
528
|
+
}
|
|
529
|
+
return !0;
|
|
530
|
+
};
|
|
531
|
+
return Ce(n) && u();
|
|
532
|
+
}, c = p(() => e.variant === "month"), W = (n) => n ? c.value ? Pa(n) : Na(n) : "", ae = p(() => W(r.startDate)), ke = p(() => W(r.endDate)), Ke = p(() => y.value ? c.value ? "month" : "date" : "text"), Xe = p(() => y.value ? ae.value : o.startDate), Ze = p(() => y.value ? ke.value : o.endDate), _ = (n, l) => !l || !Ce(l) || e.variant === "month" ? n : De(new Date(n), l), ea = (n) => {
|
|
533
|
+
o.startTime = S(
|
|
534
|
+
e.min && e.allowTimeInput && F(e.min, n.startDate) ? e.min : Y(n.startDate)
|
|
535
|
+
), o.endTime = S(
|
|
536
|
+
e.max && e.allowTimeInput && F(e.max, n.endDate) ? e.max : C(n.endDate)
|
|
537
|
+
), r.startDate = _(n.startDate, o.startTime), r.endDate = _(n.endDate, o.endTime), r.range = null, e.granularities && ee(), t(v.INPUT, {
|
|
538
|
+
...r,
|
|
539
|
+
range: k.value
|
|
540
|
+
});
|
|
541
|
+
}, P = (n) => {
|
|
542
|
+
if (!n)
|
|
543
|
+
return !1;
|
|
544
|
+
const l = (u) => e.min && Y(u) < Y(e.min) || e.max && Y(u) > Y(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(Y(u)) : !0;
|
|
545
|
+
return X(n) && l(D(n));
|
|
546
|
+
};
|
|
547
|
+
Je(() => {
|
|
548
|
+
H.value = !!(e.dateFormData.startDate && !P(e.dateFormData.startDate)), K.value = !!(e.dateFormData.endDate && !P(e.dateFormData.endDate));
|
|
549
|
+
});
|
|
550
|
+
const aa = (n) => {
|
|
551
|
+
o.startDate = A(n), o.startTime || (o.startTime = S(n)), H.value = !1, t(v.START_DATE_SELECTED, n);
|
|
552
|
+
}, ta = (n) => {
|
|
553
|
+
o.endDate = A(n), o.endTime || (o.endTime = S(C(n))), K.value = !1;
|
|
554
|
+
}, fe = (n) => {
|
|
555
|
+
const l = e.value[n];
|
|
556
|
+
if (l)
|
|
557
|
+
return l;
|
|
558
|
+
if (e.dateFormData[n] && P(e.dateFormData[n]))
|
|
559
|
+
return D(e.dateFormData[n]);
|
|
560
|
+
}, ye = (n) => {
|
|
561
|
+
var l;
|
|
562
|
+
if (P(n)) {
|
|
563
|
+
let u = n;
|
|
564
|
+
switch (H.value = !1, (l = V.value) == null ? void 0 : l.type) {
|
|
565
|
+
case "weekly":
|
|
566
|
+
u = U(
|
|
567
|
+
n,
|
|
568
|
+
A,
|
|
569
|
+
h.value.min,
|
|
570
|
+
h.value.max
|
|
571
|
+
), o.startDate = u;
|
|
572
|
+
break;
|
|
573
|
+
case "monthly":
|
|
574
|
+
u = J(
|
|
575
|
+
n,
|
|
576
|
+
A,
|
|
577
|
+
h.value.min,
|
|
578
|
+
h.value.max
|
|
579
|
+
), o.startDate = u;
|
|
580
|
+
break;
|
|
581
|
+
case "quarterly":
|
|
582
|
+
u = w(
|
|
583
|
+
n,
|
|
584
|
+
A,
|
|
585
|
+
h.value.min,
|
|
586
|
+
h.value.max
|
|
587
|
+
), o.startDate = u;
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
const d = Y(D(u));
|
|
591
|
+
r.startDate = _(d, o.startTime), r.endDate = _(
|
|
592
|
+
Y(D(o.endDate)),
|
|
593
|
+
o.endTime
|
|
594
|
+
), P(o.endDate) && (r.endDate = _(
|
|
595
|
+
Y(D(o.endDate)),
|
|
596
|
+
o.endTime
|
|
597
|
+
));
|
|
598
|
+
const R = fe("endDate");
|
|
599
|
+
r.range = null, t(v.FORM_DATE, {
|
|
600
|
+
startDate: d,
|
|
601
|
+
endDate: R
|
|
602
|
+
}), t(v.INPUT, {
|
|
603
|
+
...r,
|
|
604
|
+
range: k.value
|
|
605
|
+
});
|
|
606
|
+
} else
|
|
607
|
+
H.value = !0, t(v.ERROR, { ...o });
|
|
608
|
+
}, Ie = Be(ye, a), na = (n) => {
|
|
609
|
+
if (o.startDate = y.value && c.value ? n : b(n), y.value)
|
|
610
|
+
if (c.value && n) {
|
|
611
|
+
const l = ze(n);
|
|
612
|
+
r.startDate = _(l, o.startTime), r.range = null, t(v.INPUT, {
|
|
613
|
+
...r,
|
|
614
|
+
range: k.value
|
|
615
|
+
});
|
|
616
|
+
} else
|
|
617
|
+
ye(o.startDate);
|
|
618
|
+
else
|
|
619
|
+
Ie(o.startDate);
|
|
620
|
+
}, Me = (n) => {
|
|
621
|
+
var l;
|
|
622
|
+
if (P(n)) {
|
|
623
|
+
let u = n;
|
|
624
|
+
switch (K.value = !1, (l = V.value) == null ? void 0 : l.type) {
|
|
625
|
+
case "weekly":
|
|
626
|
+
u = de(
|
|
627
|
+
n,
|
|
628
|
+
A,
|
|
629
|
+
h.value.min,
|
|
630
|
+
h.value.max
|
|
631
|
+
), o.endDate = u;
|
|
632
|
+
break;
|
|
633
|
+
case "monthly":
|
|
634
|
+
u = $(
|
|
635
|
+
n,
|
|
636
|
+
A,
|
|
637
|
+
h.value.min,
|
|
638
|
+
h.value.max
|
|
639
|
+
), o.endDate = u;
|
|
640
|
+
break;
|
|
641
|
+
case "quarterly":
|
|
642
|
+
u = Q(
|
|
643
|
+
n,
|
|
644
|
+
A,
|
|
645
|
+
h.value.min,
|
|
646
|
+
h.value.max
|
|
647
|
+
), o.endDate = u;
|
|
648
|
+
break;
|
|
649
|
+
}
|
|
650
|
+
const d = Y(D(u));
|
|
651
|
+
r.endDate = _(d, o.endTime), P(o.startDate) && (r.startDate = _(
|
|
652
|
+
Y(D(o.startDate)),
|
|
653
|
+
o.startTime
|
|
654
|
+
));
|
|
655
|
+
const R = fe("startDate");
|
|
656
|
+
r.range = null, t(v.FORM_DATE, {
|
|
657
|
+
startDate: R,
|
|
658
|
+
endDate: d
|
|
659
|
+
}), t(v.INPUT, {
|
|
660
|
+
...r,
|
|
661
|
+
range: k.value
|
|
662
|
+
});
|
|
663
|
+
} else
|
|
664
|
+
K.value = !0, t(v.ERROR, { ...o });
|
|
665
|
+
}, _e = Be(Me, a), ra = (n) => {
|
|
666
|
+
if (o.endDate = y.value && c.value ? n : b(n), y.value)
|
|
667
|
+
if (c.value && n) {
|
|
668
|
+
const l = ze(n);
|
|
669
|
+
r.endDate = _(l, o.endTime), r.range = null, t(v.INPUT, {
|
|
670
|
+
...r,
|
|
671
|
+
range: k.value
|
|
672
|
+
});
|
|
673
|
+
} else
|
|
674
|
+
Me(o.endDate);
|
|
675
|
+
else
|
|
676
|
+
_e(o.endDate);
|
|
677
|
+
}, sa = (n) => {
|
|
678
|
+
L(n);
|
|
679
|
+
}, oa = () => {
|
|
680
|
+
t(v.ERROR, { ...o });
|
|
681
|
+
}, la = () => {
|
|
682
|
+
const n = o.startTime;
|
|
683
|
+
if (!pe(n, o.startDate)) {
|
|
684
|
+
t(v.ERROR, { ...o });
|
|
685
|
+
return;
|
|
686
|
+
}
|
|
687
|
+
r.startDate = _(r.startDate, n);
|
|
688
|
+
const l = fe("endDate");
|
|
689
|
+
t(v.FORM_DATE, {
|
|
690
|
+
startDate: r.startDate,
|
|
691
|
+
endDate: l,
|
|
692
|
+
startTime: n,
|
|
693
|
+
endTime: o.endTime ?? e.dateFormData.endTime
|
|
694
|
+
}), t(v.INPUT, {
|
|
695
|
+
...r,
|
|
696
|
+
range: k.value
|
|
697
|
+
});
|
|
698
|
+
}, ia = () => {
|
|
699
|
+
t(v.ERROR, { ...o });
|
|
700
|
+
}, ua = () => {
|
|
701
|
+
const n = o.endTime;
|
|
702
|
+
if (!pe(n, o.endDate)) {
|
|
703
|
+
t(v.ERROR, { ...o });
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
r.endDate = _(r.endDate, n), t(v.FORM_DATE, {
|
|
707
|
+
startDate: r.startDate,
|
|
708
|
+
endDate: r.endDate,
|
|
709
|
+
startTime: o.startTime ?? e.dateFormData.startTime,
|
|
710
|
+
endTime: n
|
|
711
|
+
}), t(v.INPUT, {
|
|
712
|
+
...r,
|
|
713
|
+
range: k.value
|
|
714
|
+
});
|
|
715
|
+
}, ca = (n) => {
|
|
716
|
+
o.startTime = n;
|
|
717
|
+
}, da = (n) => {
|
|
718
|
+
o.endTime = n;
|
|
719
|
+
}, te = (n, l, u, d) => {
|
|
720
|
+
r.startDate = n, r.endDate = l, u && (r.granularity = u), d && (r.range = d);
|
|
721
|
+
}, ma = (n) => {
|
|
722
|
+
var u;
|
|
723
|
+
const l = (u = e.quickSelectRanges) == null ? void 0 : u.find(({ value: d }) => d === n);
|
|
724
|
+
if (l) {
|
|
725
|
+
ee();
|
|
726
|
+
const d = l.data, R = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : C(new Date(Date.now()))), I = d.isRelativeToNow && d.timeDifference ? new Date(R.getTime() - d.timeDifference) : d.startDate;
|
|
727
|
+
o.endDate = A(R), o.startDate = A(I), te(I, R, null, n), e.granularities && (r.granularity = d.granularity || G.value), o.startTime = S(I), o.endTime = S(R), r.startDate = I, r.endDate = R, d.isRelativeToNow && (g.value = {
|
|
728
|
+
...g.value,
|
|
729
|
+
[n]: {
|
|
730
|
+
startDate: I,
|
|
731
|
+
endDate: R
|
|
732
|
+
}
|
|
733
|
+
}), t(v.CUSTOM_RANGE, {
|
|
734
|
+
...l.data,
|
|
735
|
+
startDate: I,
|
|
736
|
+
endDate: R,
|
|
737
|
+
range: l.value
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
}, Se = {
|
|
741
|
+
weekly: ce,
|
|
742
|
+
monthly: ue,
|
|
743
|
+
quarterly: T
|
|
744
|
+
}, Da = (n) => {
|
|
745
|
+
const l = r.granularity;
|
|
746
|
+
if (r.granularity = n, l && me(l, structuredClone(Ye(r))), r.startDate && r.endDate) {
|
|
747
|
+
switch (n) {
|
|
748
|
+
case "quarterly":
|
|
749
|
+
case "monthly":
|
|
750
|
+
case "weekly": {
|
|
751
|
+
if (q[n]) {
|
|
752
|
+
te(q[n].startDate, q[n].endDate, n);
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
755
|
+
const { startDate: u, endDate: d } = Se[n](
|
|
756
|
+
r.startDate,
|
|
757
|
+
r.endDate,
|
|
758
|
+
h.value.min,
|
|
759
|
+
h.value.max
|
|
760
|
+
);
|
|
761
|
+
te(u, d, n);
|
|
762
|
+
break;
|
|
763
|
+
}
|
|
764
|
+
case "daily":
|
|
765
|
+
q.daily && te(q.daily.startDate, q.daily.endDate, n);
|
|
766
|
+
break;
|
|
767
|
+
}
|
|
768
|
+
o.startDate = A(r.startDate), o.endDate = A(r.endDate), t(v.INPUT, {
|
|
769
|
+
...r,
|
|
770
|
+
range: k.value
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
}, pa = p(() => ({
|
|
774
|
+
"b-date-range-picker-calendar__form-container--no-calendars": x.value
|
|
775
|
+
})), fa = p(() => {
|
|
776
|
+
const n = V.value, l = (n == null ? void 0 : n.maxRange) || e.maxRange;
|
|
777
|
+
if (!l)
|
|
778
|
+
return null;
|
|
779
|
+
const u = m[(n == null ? void 0 : n.type) ?? "daily"];
|
|
780
|
+
return z(u, l, { count: l });
|
|
781
|
+
});
|
|
782
|
+
return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: f, hasSlot: M, t: B, tc: z, isTouchDevice: y, dateFormat: se, isFormatValid: X, parseDate: D, onKeyDown: L, autoFormat: b, formatDateUtil: E, calculatedIsRelativeToNowQuickSelectRanges: g, defaultGranularity: G, hasNoCalendars: x, internalRangeDate: r, selectedRangeSelectorValue: k, formInputWrapperConditionalClasses: oe, quickSelectRangeDefaultItems: le, selectedGranularity: V, granularityItems: ie, getGranularCalendarLimits: Z, computedMinMax: h, adjustDateForQuarterly: T, adjustDateForMonthly: ue, adjustDateForWeekly: ce, adjustStartDateInputForWeekly: U, adjustEndDateInputForWeekly: de, adjustStartDateInputForMonthly: J, adjustEndDateInputForMonthly: $, adjustStartDateInputForQuarterly: w, adjustEndDateInputForQuarterly: Q, savedRanges: q, saveRange: me, resetSavedRanges: ee, formatDate: A, startDateError: H, endDateError: K, dateTextInput: o, setTimeInDateObject: De, isValidTime: pe, isMonthVariant: c, formatNativeDate: W, nativeStartDate: ae, nativeEndDate: ke, dateInputType: Ke, startDateValue: Xe, endDateValue: Ze, setTimeInDateRef: _, onDateInput: ea, isValidDate: P, onStartDateSelected: aa, onEndDateSelected: ta, getDate: fe, validateStartDate: ye, validateStartDateDebounced: Ie, onStartDateInput: na, validateEndDate: Me, validateEndDateDebounced: _e, onEndDateInput: ra, onDateInputKeyDown: sa, onStartTimeError: oa, onStartTimeValid: la, onEndTimeError: ia, onEndTimeValid: ua, onStartTimeInput: ca, onEndTimeInput: da, setInternalRange: te, onRangeSelectorInput: ma, adjustDate: Se, onGranularityInput: Da, computedFormContainerClasses: pa, maxRangeMessage: fa, Calendar: N, BentoAlert: Ra, BentoTypography: $e, BentoInputField: Ya, BentoInputTime: Aa, BentoDropdown: ba, BentoSegmentedControl: Ia };
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
var ot = function() {
|
|
786
|
+
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
787
|
+
return e("div", { staticClass: "b-date-range-picker-calendar" }, [e("div", { staticClass: "b-date-range-picker-calendar__form-container", class: a.computedFormContainerClasses, attrs: { "data-testid": "date-range-picker-calendar-form-container" } }, [e("div", { staticClass: "b-date-range-picker-calendar__form" }, [a.hasSlot("title") ? [t._t("title")] : t._e(), t.quickSelectRanges ? e(a.BentoDropdown, { attrs: { "aria-label": a.t("customRange"), items: a.quickSelectRangeDefaultItems, "model-value": a.selectedRangeSelectorValue }, on: { "update:model-value": a.onRangeSelectorInput } }) : t._e(), t.granularities ? e(a.BentoSegmentedControl, { attrs: { items: a.granularityItems, "model-value": a.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": a.onGranularityInput } }) : t._e(), a.maxRangeMessage ? e(a.BentoAlert, { attrs: { variant: "tip" }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
788
|
+
return [t._v(" " + t._s(a.maxRangeMessage) + " ")];
|
|
789
|
+
}, proxy: !0 }], null, !1, 1192229622) }) : t._e(), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" From ")]), e("div", { class: a.formInputWrapperConditionalClasses }, [e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("dateFrom"), "model-value": a.startDateValue, error: a.startDateError, type: a.dateInputType }, on: { "update:model-value": a.onStartDateInput, keydown: a.onDateInputKeyDown }, scopedSlots: t._u([a.isTouchDevice ? null : { key: "description", fn: function() {
|
|
790
|
+
return [t._v(t._s(a.t(a.dateFormat)))];
|
|
791
|
+
}, proxy: !0 }], null, !0) }), t.allowTimeInput ? e(a.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeFrom"), "model-value": a.dateTextInput.startTime }, on: { "update:model-value": a.onStartTimeInput, "input:error": a.onStartTimeError, "input:valid": a.onStartTimeValid } }) : t._e()], 1)], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" To ")]), e("div", { class: a.formInputWrapperConditionalClasses }, [e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("dateTo"), "model-value": a.endDateValue, error: a.endDateError, type: a.dateInputType }, on: { "update:model-value": a.onEndDateInput, keydown: a.onDateInputKeyDown }, scopedSlots: t._u([a.isTouchDevice ? null : { key: "description", fn: function() {
|
|
792
|
+
return [t._v(t._s(a.t(a.dateFormat)))];
|
|
793
|
+
}, proxy: !0 }], null, !0) }), t.allowTimeInput ? e(a.BentoInputTime, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeTo"), "model-value": a.dateTextInput.endTime }, on: { "update:model-value": a.onEndTimeInput, "input:error": a.onEndTimeError, "input:valid": a.onEndTimeValid } }) : t._e()], 1)], 1)], 2), a.hasSlot("actions") ? e("div", [t._t("actions")], 2) : t._e()]), !a.hasNoCalendars && !a.isTouchDevice ? e("div", { staticClass: "b-date-range-picker-calendar__calendars-container", attrs: { "data-testid": "date-range-picker-calendar-calendar-container" } }, [e(a.Calendar, { attrs: { value: a.internalRangeDate, "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: a.computedMinMax.min, max: a.computedMinMax.max, "number-of-months": t.numberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, granularity: a.selectedGranularity, variant: t.variant, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1) : t._e()]);
|
|
794
|
+
}, lt = [], it = /* @__PURE__ */ He(
|
|
795
|
+
st,
|
|
796
|
+
ot,
|
|
797
|
+
lt,
|
|
798
|
+
!1,
|
|
799
|
+
null,
|
|
800
|
+
"7338c0ea"
|
|
801
|
+
);
|
|
802
|
+
const ut = it.exports, ct = {
|
|
803
|
+
"de-DE": {
|
|
804
|
+
apply: "Anwenden",
|
|
805
|
+
cancel: "Abbrechen",
|
|
806
|
+
dateRangePicker: "Datumsbereichauswahl {name}",
|
|
807
|
+
provideDateInAFormat: "Geben Sie das Datum im Format YYYY-MM-DD an",
|
|
808
|
+
quarter: "Q{quarter} {year}",
|
|
809
|
+
selectDate: "Wählen Sie ein Datum",
|
|
810
|
+
selectDateRange: "Wählen Sie einen Datumsbereich aus",
|
|
811
|
+
selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar"
|
|
812
|
+
},
|
|
813
|
+
"en-GB": {
|
|
814
|
+
apply: "Apply",
|
|
815
|
+
cancel: "Cancel",
|
|
816
|
+
dateRangePicker: "Date range picker {name}",
|
|
817
|
+
provideDateInAFormat: "Enter date in YYYY-MM-DD format",
|
|
818
|
+
quarter: "Q{quarter} {year}",
|
|
819
|
+
selectDate: "Select a date",
|
|
820
|
+
selectDateRange: "Select a date range",
|
|
821
|
+
selectedDateIsNotAvailable: "Selected date is not available"
|
|
822
|
+
},
|
|
823
|
+
"en-US": {
|
|
824
|
+
apply: "Apply",
|
|
825
|
+
cancel: "Cancel",
|
|
826
|
+
dateRangePicker: "Date range picker {name}",
|
|
827
|
+
provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
|
|
828
|
+
quarter: "Q{quarter} {year}",
|
|
829
|
+
selectDate: "Select a date",
|
|
830
|
+
selectDateRange: "Select a date range",
|
|
831
|
+
selectedDateIsNotAvailable: "Selected date is not available"
|
|
832
|
+
},
|
|
833
|
+
"es-ES": {
|
|
834
|
+
apply: "Aplicar",
|
|
835
|
+
cancel: "Cancelar",
|
|
836
|
+
dateRangePicker: "Selector de intervalos de fechas {name}",
|
|
837
|
+
provideDateInAFormat: "Proporciona la fecha en formato AAAAA-MM-DD",
|
|
838
|
+
quarter: "T{quarter} {year}",
|
|
839
|
+
selectDate: "Selecciona una fecha",
|
|
840
|
+
selectDateRange: "Selecciona un rango de fechas",
|
|
841
|
+
selectedDateIsNotAvailable: "La fecha seleccionada no está disponible"
|
|
842
|
+
},
|
|
843
|
+
"es-MX": {
|
|
844
|
+
apply: "Aplicar",
|
|
845
|
+
cancel: "Cancelar",
|
|
846
|
+
dateRangePicker: "Selector de intervalos de fechas {name}",
|
|
847
|
+
provideDateInAFormat: "Proporciona la fecha en formato AAAA-MM-DD",
|
|
848
|
+
quarter: "T{quarter} {year}",
|
|
849
|
+
selectDate: "Selecciona una fecha",
|
|
850
|
+
selectDateRange: "Selecciona un rango de fechas",
|
|
851
|
+
selectedDateIsNotAvailable: "La fecha seleccionada no está disponible"
|
|
852
|
+
},
|
|
853
|
+
"fr-FR": {
|
|
854
|
+
apply: "Appliquer",
|
|
855
|
+
cancel: "Annuler",
|
|
856
|
+
dateRangePicker: "Sélecteur de plages de dates {name}",
|
|
857
|
+
provideDateInAFormat: "Fournissez la date au format AAAA-MM-JJ",
|
|
858
|
+
quarter: "T{quarter} {year}",
|
|
859
|
+
selectDate: "Sélectionnez une date",
|
|
860
|
+
selectDateRange: "Sélectionnez une plage de dates",
|
|
861
|
+
selectedDateIsNotAvailable: "La date sélectionnée n’est pas disponible"
|
|
862
|
+
},
|
|
863
|
+
"it-IT": {
|
|
864
|
+
apply: "Applica",
|
|
865
|
+
cancel: "Annulla",
|
|
866
|
+
dateRangePicker: "Selettore intervallo di date {name}",
|
|
867
|
+
provideDateInAFormat: "Inserisci la data nel formato AAAA-MM-GG",
|
|
868
|
+
quarter: "Q{quarter} {year}",
|
|
869
|
+
selectDate: "Seleziona una data",
|
|
870
|
+
selectDateRange: "Seleziona un intervallo di date",
|
|
871
|
+
selectedDateIsNotAvailable: "La data selezionata non è disponibile"
|
|
872
|
+
},
|
|
873
|
+
"ja-JP": {
|
|
874
|
+
apply: "適用",
|
|
875
|
+
cancel: "キャンセル",
|
|
876
|
+
dateRangePicker: "日付範囲ピッカー {name}",
|
|
877
|
+
provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください",
|
|
878
|
+
quarter: "{year}年第{quarter}四半期",
|
|
879
|
+
selectDate: "日付を選択",
|
|
880
|
+
selectDateRange: "日付範囲を選択",
|
|
881
|
+
selectedDateIsNotAvailable: "選択した日付は利用できません"
|
|
882
|
+
},
|
|
883
|
+
"pt-BR": {
|
|
884
|
+
apply: "Aplicar",
|
|
885
|
+
cancel: "Cancelar",
|
|
886
|
+
dateRangePicker: "Seletor de intervalo de datas {name}",
|
|
887
|
+
provideDateInAFormat: "Inclua a data no formato AAAA-MM-DD",
|
|
888
|
+
quarter: "{quarter}º trimestre de {year}",
|
|
889
|
+
selectDate: "Selecione uma data",
|
|
890
|
+
selectDateRange: "Selecione um intervalo de datas",
|
|
891
|
+
selectedDateIsNotAvailable: "A data selecionada não está disponível"
|
|
892
|
+
},
|
|
893
|
+
"zh-CN": {
|
|
894
|
+
apply: "应用",
|
|
895
|
+
cancel: "取消",
|
|
896
|
+
dateRangePicker: "日期范围选择器 {name}",
|
|
897
|
+
provideDateInAFormat: "提供 YYYY-MM-DD 格式的日期",
|
|
898
|
+
quarter: "{year} {quarter} 季度",
|
|
899
|
+
selectDate: "选择日期",
|
|
900
|
+
selectDateRange: "选择日期范围",
|
|
901
|
+
selectedDateIsNotAvailable: "所选日期不可用"
|
|
902
|
+
}
|
|
903
|
+
}, dt = ({
|
|
904
|
+
datePickerValue: s,
|
|
905
|
+
isDateIncorrect: t,
|
|
906
|
+
quickSelectRanges: e,
|
|
907
|
+
isMonthVariant: a,
|
|
908
|
+
withTimeInput: i,
|
|
909
|
+
placeholder: m
|
|
910
|
+
}) => {
|
|
911
|
+
const { locale: f, t: M } = Ae(), { dateToInputDateString: B } = be(), z = (D) => !!D && !isNaN(D.getTime()), y = ge({
|
|
912
|
+
startDate: null,
|
|
913
|
+
endDate: null,
|
|
914
|
+
startTime: null,
|
|
915
|
+
endTime: null
|
|
916
|
+
});
|
|
917
|
+
return ve(
|
|
918
|
+
s,
|
|
919
|
+
(D) => {
|
|
920
|
+
y.startDate = B(D == null ? void 0 : D.startDate), y.endDate = B(D == null ? void 0 : D.endDate), y.startTime = S(D == null ? void 0 : D.startDate), y.endTime = S(D == null ? void 0 : D.endDate);
|
|
921
|
+
},
|
|
922
|
+
{ immediate: !0 }
|
|
923
|
+
), {
|
|
924
|
+
// Values
|
|
925
|
+
dateDisplayValue: p(() => {
|
|
926
|
+
var L;
|
|
927
|
+
if (t.value)
|
|
928
|
+
return `${y.startDate || ""} - ${y.endDate || ""}`;
|
|
929
|
+
if (!s.value || !s.value.startDate && !s.value.endDate)
|
|
930
|
+
return (m == null ? void 0 : m.value) || M("selectDateRange");
|
|
931
|
+
if ((L = e.value) != null && L.length) {
|
|
932
|
+
const b = e.value.find(({ value: E }) => {
|
|
933
|
+
var g;
|
|
934
|
+
return E === ((g = s.value) == null ? void 0 : g.range);
|
|
935
|
+
});
|
|
936
|
+
if (b)
|
|
937
|
+
return b.label;
|
|
938
|
+
}
|
|
939
|
+
if (s.value.granularity === "quarterly") {
|
|
940
|
+
const { startDate: b, endDate: E } = s.value, g = M("quarter", { quarter: Qe(b), year: Le(b) });
|
|
941
|
+
if (Ha(b, E))
|
|
942
|
+
return g;
|
|
943
|
+
const G = M("quarter", { quarter: Qe(E), year: Le(E) });
|
|
944
|
+
return `${g} - ${G}`;
|
|
945
|
+
}
|
|
946
|
+
if (!z(s.value.startDate) || !z(s.value.endDate))
|
|
947
|
+
return `${y.startDate || ""} - ${y.endDate || ""}`;
|
|
948
|
+
let D = a != null && a.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
|
|
949
|
+
return i.value && (D = {
|
|
950
|
+
...D,
|
|
951
|
+
hour: "numeric",
|
|
952
|
+
minute: "numeric",
|
|
953
|
+
second: "numeric",
|
|
954
|
+
hour12: !1
|
|
955
|
+
}), za(f.value, D).formatRange(
|
|
956
|
+
s.value.startDate,
|
|
957
|
+
s.value.endDate
|
|
958
|
+
);
|
|
959
|
+
}),
|
|
960
|
+
textInputDisplayValue: y,
|
|
961
|
+
// Methods
|
|
962
|
+
formatTextInputDisplayValue: () => ""
|
|
963
|
+
};
|
|
964
|
+
}, mt = {
|
|
965
|
+
i18n: { messages: ct },
|
|
966
|
+
name: "bento-date-range-picker",
|
|
967
|
+
model: { prop: "modelValue" }
|
|
968
|
+
}, Dt = /* @__PURE__ */ Ue({
|
|
969
|
+
...mt,
|
|
970
|
+
props: {
|
|
971
|
+
description: { default: void 0 },
|
|
972
|
+
disabled: { type: Boolean, default: !1 },
|
|
973
|
+
errorMessage: { default: null },
|
|
974
|
+
label: { default: void 0 },
|
|
975
|
+
optional: { type: Boolean, default: !1 },
|
|
976
|
+
placeholder: { default: null },
|
|
977
|
+
readonly: { type: Boolean, default: !1 },
|
|
978
|
+
required: { type: Boolean, default: !1 },
|
|
979
|
+
tooltipText: { default: null },
|
|
980
|
+
allowTimeInput: { type: Boolean },
|
|
981
|
+
firstDayOfWeek: { default: void 0 },
|
|
982
|
+
granularities: null,
|
|
983
|
+
isDateDisabled: { default: void 0 },
|
|
984
|
+
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
985
|
+
quickSelectRanges: { default: void 0 },
|
|
986
|
+
maxRange: { default: null },
|
|
987
|
+
min: { default: null },
|
|
988
|
+
max: { default: null },
|
|
989
|
+
numberOfMonths: { default: void 0 },
|
|
990
|
+
modelValue: { default: null },
|
|
991
|
+
value: { default: null },
|
|
992
|
+
variant: { default: void 0 },
|
|
993
|
+
hasActions: { type: Boolean, default: !1 }
|
|
994
|
+
},
|
|
995
|
+
emits: ["update:model-value", "input"],
|
|
996
|
+
setup(s, { emit: t }) {
|
|
997
|
+
const e = s, a = ga(), { t: i } = Ae(), { dateToInputDateString: m } = be(), f = ne("bento-date-range-picker-container"), M = ne("bento-date-range-picker-label"), B = ne("bento-date-range-picker-description"), z = ne("bento-date-range-picker-error"), y = ne("bento-date-range-picker-date-error"), se = p(() => e.label || i("dateRangePicker", { name: f })), { resolvedFirstDayOfWeek: X } = Sa(he(e, "firstDayOfWeek")), D = ya({
|
|
998
|
+
none: 0,
|
|
999
|
+
one: 710,
|
|
1000
|
+
// width of date range picker with one panes
|
|
1001
|
+
two: 1030,
|
|
1002
|
+
// width of date range picker with two panes
|
|
1003
|
+
three: 1290
|
|
1004
|
+
// width of date range picker with three panes
|
|
1005
|
+
}), L = p(() => {
|
|
1006
|
+
const c = D.active().value, W = {
|
|
1007
|
+
none: 0,
|
|
1008
|
+
one: 1,
|
|
1009
|
+
two: 2
|
|
1010
|
+
};
|
|
1011
|
+
if (c in W) {
|
|
1012
|
+
const ae = W[c];
|
|
1013
|
+
return e.numberOfMonths === void 0 ? ae : Math.min(e.numberOfMonths, ae);
|
|
1014
|
+
}
|
|
1015
|
+
return e.numberOfMonths;
|
|
1016
|
+
}), b = p(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((c) => {
|
|
1017
|
+
const W = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
|
|
1018
|
+
return {
|
|
1019
|
+
...c,
|
|
1020
|
+
data: {
|
|
1021
|
+
...c.data,
|
|
1022
|
+
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
1023
|
+
timeDifference: W
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
})), E = p(() => e.label ? M : (a == null ? void 0 : a["aria-labelledby"]) ?? null), g = O(!1), G = O(null), x = O(!1), { isReadOnly: r } = La(he(e, "readonly")), { emitValue: k } = Ga(t);
|
|
1027
|
+
ve(
|
|
1028
|
+
() => e.disabled,
|
|
1029
|
+
() => {
|
|
1030
|
+
e.disabled && x.value && (x.value = !1);
|
|
1031
|
+
}
|
|
1032
|
+
);
|
|
1033
|
+
const oe = p(() => e.modelValue || e.value), le = p(() => e.hasActions ? !Q.value && g.value : g.value), V = p(() => ({
|
|
1034
|
+
"b-date-range-picker__description--error": !!e.errorMessage || le.value
|
|
1035
|
+
})), ie = p(() => e.variant === "month"), Z = p(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: h, textInputDisplayValue: T, formatTextInputDisplayValue: ue } = dt({
|
|
1036
|
+
datePickerValue: oe,
|
|
1037
|
+
isDateIncorrect: g,
|
|
1038
|
+
quickSelectRanges: b,
|
|
1039
|
+
isMonthVariant: ie,
|
|
1040
|
+
withTimeInput: Z,
|
|
1041
|
+
placeholder: he(e, "placeholder")
|
|
1042
|
+
}), ce = p(
|
|
1043
|
+
() => `${e.description ? B : ""} ${e.errorMessage ? z : ""} ${g.value ? y : ""}`.trim() || null
|
|
1044
|
+
), U = () => {
|
|
1045
|
+
x.value = !1;
|
|
1046
|
+
}, de = () => {
|
|
1047
|
+
x.value = !0;
|
|
1048
|
+
}, J = O(h.value), $ = O(
|
|
1049
|
+
// textInputDisplayValue is a reactive object
|
|
1050
|
+
structuredClone(Ye(T))
|
|
1051
|
+
), w = O(e.modelValue ?? e.value), Q = O(!0), q = p(
|
|
1052
|
+
() => e.hasActions ? $.value : T
|
|
1053
|
+
), me = p(
|
|
1054
|
+
() => e.hasActions ? J.value : h.value
|
|
1055
|
+
);
|
|
1056
|
+
Je(() => {
|
|
1057
|
+
if (e.hasActions || Oe(
|
|
1058
|
+
'BentoDateRangePicker "hasActions" property',
|
|
1059
|
+
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
1060
|
+
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
1061
|
+
"2.0.0"
|
|
1062
|
+
), e.value && Oe(
|
|
1063
|
+
'BentoDateRangePicker "value" property',
|
|
1064
|
+
'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
|
|
1065
|
+
"2.0.0"
|
|
1066
|
+
), e.granularities && e.variant !== "month" && e.granularities.find(({ type: c }) => c === "quarterly"))
|
|
1067
|
+
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
1068
|
+
}), ve([() => e.value, () => e.modelValue], () => {
|
|
1069
|
+
J.value = h.value, $.value = structuredClone(Ye(T));
|
|
1070
|
+
});
|
|
1071
|
+
const ee = p(() => [
|
|
1072
|
+
{
|
|
1073
|
+
title: i("apply"),
|
|
1074
|
+
event: () => {
|
|
1075
|
+
k(w.value), U(), Q.value = !0;
|
|
1076
|
+
},
|
|
1077
|
+
disabled: Q.value
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
title: i("cancel"),
|
|
1081
|
+
event: U
|
|
1082
|
+
}
|
|
1083
|
+
]);
|
|
1084
|
+
return ve(w, (c) => {
|
|
1085
|
+
if (e.hasActions) {
|
|
1086
|
+
Q.value = g.value;
|
|
1087
|
+
return;
|
|
1088
|
+
}
|
|
1089
|
+
k(c);
|
|
1090
|
+
}), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: f, labelId: M, descriptionId: B, errorId: z, dateErrorId: y, popoverAriaLabel: se, resolvedFirstDayOfWeek: X, breakpoints: D, computedNumberOfMonths: L, adjustedQuickSelectRanges: b, dropdownInputAriaLabelledBy: E, isDateIncorrect: g, inputContainerRef: G, isDateRangePickerOpen: x, isReadOnly: r, emitValue: k, internalModelValue: oe, shouldDisplayError: le, descriptionConditionalClasses: V, isMonthVariant: ie, withTimeInput: Z, dateDisplayValue: h, textInputDisplayValue: T, formatTextInputDisplayValue: ue, ariaDescribedBy: ce, closeDateRangePicker: U, openDateRangePicker: de, localDateDisplayValue: J, localTextInputDisplayValue: $, selectedDate: w, isApplyDisabled: Q, displayedTextInputValue: q, displayedDateValue: me, rangePickerButtonActions: ee, onDateRangePickerInput: (c) => {
|
|
1091
|
+
g.value = !1, T.startDate = m(c.startDate), T.endDate = m(c.endDate), T.startTime = S(c.startDate), T.endTime = S(c.endDate), w.value = c;
|
|
1092
|
+
}, clearDateRangePickerValue: async () => {
|
|
1093
|
+
g.value && (g.value = !1), w.value = null;
|
|
1094
|
+
}, onEnterPressedOverInput: () => {
|
|
1095
|
+
if (!x.value) {
|
|
1096
|
+
x.value = !0;
|
|
1097
|
+
return;
|
|
1098
|
+
}
|
|
1099
|
+
g.value || (x.value = !1);
|
|
1100
|
+
}, onDateRangePickerFormDateInputUpdate: (c) => {
|
|
1101
|
+
g.value = !1, c.startTime && (T.startTime = c.startTime), c.endTime && (T.endTime = c.endTime);
|
|
1102
|
+
}, onDateRangePickerError: (c) => {
|
|
1103
|
+
g.value = !0, T.startDate = c.startDate, T.endDate = c.endDate, w.value = { startDate: null, endDate: null };
|
|
1104
|
+
}, onRangeSelectorInput: (c) => {
|
|
1105
|
+
c && (T.startDate = m(c.startDate), T.endDate = m(c.endDate), T.startTime = S(c.startDate), T.endTime = S(c.endDate), w.value = c);
|
|
1106
|
+
}, BentoButtonActions: Ta, BentoButtonActionsLayout: $a, BentoDivider: Ma, BentoPopover: ha, BentoTypography: $e, DateRangePickerCalendar: ut, DropdownInputDefault: ka, ErrorMessage: Ja, FieldLabel: Ua, vBentoClickOutsideDirective: Va };
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
var pt = function() {
|
|
1110
|
+
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
1111
|
+
return e("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: a.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [t.label ? e(a.FieldLabel, { attrs: { id: a.labelId, label: t.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), e("div", { on: { keydown: function(i) {
|
|
1112
|
+
return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
|
|
1113
|
+
} } }, [e(a.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: a.datePickerContainerId, ariaExpanded: a.isDateRangePickerOpen, "aria-labelledby": a.dropdownInputAriaLabelledBy, "aria-describedby": a.ariaDescribedBy, "aria-required": t.required, disabled: t.disabled, "is-invalid": !!t.errorMessage || a.shouldDisplayError, open: a.isDateRangePickerOpen, "display-value": a.displayedDateValue, readonly: a.isReadOnly }, on: { open: a.openDateRangePicker, clear: a.clearDateRangePickerValue, close: a.closeDateRangePicker } })], 1), a.shouldDisplayError ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.dateErrorId, "error-message": a.t("provideDateInAFormat") } }) : t._e(), t.errorMessage ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.errorId, "error-message": t.errorMessage } }) : t._e(), t.description ? e(a.BentoTypography, { staticClass: "b-date-range-picker__description", class: a.descriptionConditionalClasses, attrs: { id: a.descriptionId, el: "span" } }, [t._v(" " + t._s(t.description) + " ")]) : t._e(), a.inputContainerRef ? e(a.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: a.datePickerContainerId, open: a.isDateRangePickerOpen, "target-element": a.inputContainerRef, "aria-label": a.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "", "trap-all": "", "overflow-visible": "" }, nativeOn: { keydown: function(i) {
|
|
1114
|
+
return !i.type.indexOf("key") && t._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : a.closeDateRangePicker.apply(null, arguments);
|
|
1115
|
+
} } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.internalModelValue, "first-day-of-week": a.resolvedFirstDayOfWeek, granularities: t.granularities, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: t.min, max: t.max, "number-of-months": a.computedNumberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, "date-form-data": a.displayedTextInputValue, variant: t.variant }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([t.hasActions ? { key: "actions", fn: function() {
|
|
1116
|
+
return [e(a.BentoDivider), e("div", { staticClass: "b-date-range-picker__footer" }, [e(a.BentoButtonActions, { attrs: { actions: a.rangePickerButtonActions, layout: a.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
|
|
1117
|
+
}, proxy: !0 } : null], null, !0) })], 1) : t._e()], 1);
|
|
1118
|
+
}, ft = [], vt = /* @__PURE__ */ He(
|
|
1119
|
+
Dt,
|
|
1120
|
+
pt,
|
|
1121
|
+
ft,
|
|
1122
|
+
!1,
|
|
1123
|
+
null,
|
|
1124
|
+
"fbf1b83e"
|
|
1125
|
+
);
|
|
1126
|
+
const Vt = vt.exports;
|
|
1127
|
+
export {
|
|
1128
|
+
Vt as B,
|
|
1129
|
+
ut as D,
|
|
1130
|
+
Ka as a,
|
|
1131
|
+
Te as i
|
|
1132
|
+
};
|
|
1133
|
+
//# sourceMappingURL=date-range-picker.BFgnw81F.js.map
|