@adyen/bento-vue3 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 +1191 -717
- 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.BxyRAZn1.js → action-bar.B-OoRono.js} +4 -4
- package/dist/chunks/{action-bar.BxyRAZn1.js.map → action-bar.B-OoRono.js.map} +1 -1
- package/dist/chunks/{ai-tag.CpeZm2Yf.js → ai-tag.BbQ3hh1b.js} +2 -2
- package/dist/chunks/{ai-tag.CpeZm2Yf.js.map → ai-tag.BbQ3hh1b.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.DSfXK6vK.js → anchor-scroller.WJlZwrLh.js} +2 -2
- package/dist/chunks/{anchor-scroller.DSfXK6vK.js.map → anchor-scroller.WJlZwrLh.js.map} +1 -1
- package/dist/chunks/{base-modal.C8Rsc2oO.js → base-modal.Dzvnfomn.js} +5 -5
- package/dist/chunks/{base-modal.C8Rsc2oO.js.map → base-modal.Dzvnfomn.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.KaWdHibo.js → button-actions-with-menu.DVMjHT7W.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.KaWdHibo.js.map → button-actions-with-menu.DVMjHT7W.js.map} +1 -1
- package/dist/chunks/{button-actions.7Oi2Ra4p.js → button-actions.Dp3VkQWU.js} +3 -3
- package/dist/chunks/{button-actions.7Oi2Ra4p.js.map → button-actions.Dp3VkQWU.js.map} +1 -1
- package/dist/chunks/{calendar.DfMwuOIR.js → calendar.DPSJK8zi.js} +55 -55
- package/dist/chunks/{calendar.DfMwuOIR.js.map → calendar.DPSJK8zi.js.map} +1 -1
- package/dist/chunks/{card.7q8tTfjG.js → card.oClcA99e.js} +2 -2
- package/dist/chunks/{card.7q8tTfjG.js.map → card.oClcA99e.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CgrmMYbN.js → checkbox-group.BjLXIH31.js} +3 -3
- package/dist/chunks/{checkbox-group.CgrmMYbN.js.map → checkbox-group.BjLXIH31.js.map} +1 -1
- package/dist/chunks/{checkbox.CdkqCAAL.js → checkbox.BEQ8QnKY.js} +18 -18
- package/dist/chunks/{checkbox.CdkqCAAL.js.map → checkbox.BEQ8QnKY.js.map} +1 -1
- package/dist/chunks/{code-snippet.Dtb7CDv9.js → code-snippet.B51W5xRW.js} +5 -5
- package/dist/chunks/{code-snippet.Dtb7CDv9.js.map → code-snippet.B51W5xRW.js.map} +1 -1
- package/dist/chunks/{controls-group.DqRpF9bh.js → controls-group.i2Lxh7sB.js} +2 -2
- package/dist/chunks/{controls-group.DqRpF9bh.js.map → controls-group.i2Lxh7sB.js.map} +1 -1
- package/dist/chunks/{copy.CL893i9-.js → copy.C4LTKtNj.js} +3 -3
- package/dist/chunks/{copy.CL893i9-.js.map → copy.C4LTKtNj.js.map} +1 -1
- package/dist/chunks/{dashboard-section.kwKlujP-.js → dashboard-section.TSdidWWP.js} +3 -3
- package/dist/chunks/{dashboard-section.kwKlujP-.js.map → dashboard-section.TSdidWWP.js.map} +1 -1
- package/dist/chunks/{dashed-underline.ADDEdamG.js → dashed-underline.C0n0UG5_.js} +3 -3
- package/dist/chunks/{dashed-underline.ADDEdamG.js.map → dashed-underline.C0n0UG5_.js.map} +1 -1
- package/dist/chunks/{data-grid-template.C69yN3ZR.js → data-grid-template.DNJI6xng.js} +3 -3
- package/dist/chunks/{data-grid-template.C69yN3ZR.js.map → data-grid-template.DNJI6xng.js.map} +1 -1
- package/dist/chunks/{data-grid.T-FnwChG.js → data-grid.CZjC3vWa.js} +18 -18
- package/dist/chunks/{data-grid.T-FnwChG.js.map → data-grid.CZjC3vWa.js.map} +1 -1
- package/dist/chunks/{date-picker.hUcnFn4K.js → date-picker.BhseFocw.js} +8 -8
- package/dist/chunks/{date-picker.hUcnFn4K.js.map → date-picker.BhseFocw.js.map} +1 -1
- package/dist/chunks/{date-range-picker.BM5gxJcL.js → date-range-picker.DK9M8DHP.js} +369 -369
- package/dist/chunks/{date-range-picker.BM5gxJcL.js.map → date-range-picker.DK9M8DHP.js.map} +1 -1
- package/dist/chunks/{dialog-page.Bh-7RAwX.js → dialog-page.DM3Lie55.js} +2 -2
- package/dist/chunks/{dialog-page.Bh-7RAwX.js.map → dialog-page.DM3Lie55.js.map} +1 -1
- package/dist/chunks/{draggable-handle.BWHOlabB.js → draggable-handle.B8QnrFve.js} +2 -2
- package/dist/chunks/{draggable-handle.BWHOlabB.js.map → draggable-handle.B8QnrFve.js.map} +1 -1
- package/dist/chunks/drawer.EtJfGbNI.js +55 -0
- package/dist/chunks/drawer.EtJfGbNI.js.map +1 -0
- package/dist/chunks/{dropdown-tag.Sk2n9gbl.js → dropdown-tag.vZytpy7r.js} +3 -3
- package/dist/chunks/{dropdown-tag.Sk2n9gbl.js.map → dropdown-tag.vZytpy7r.js.map} +1 -1
- package/dist/chunks/{dropdown.CuIBYLdy.js → dropdown.B4pTluCz.js} +5 -5
- package/dist/chunks/{dropdown.CuIBYLdy.js.map → dropdown.B4pTluCz.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.DZYFjFgr.js → field-label.B_E_3J8j.js} +2 -2
- package/dist/chunks/{field-label.DZYFjFgr.js.map → field-label.B_E_3J8j.js.map} +1 -1
- package/dist/chunks/{file-uploader.B5_l2uQO.js → file-uploader.C8k__hVq.js} +3 -3
- package/dist/chunks/{file-uploader.B5_l2uQO.js.map → file-uploader.C8k__hVq.js.map} +1 -1
- package/dist/chunks/{filter-bar.BA2Rtf_p.js → filter-bar.r_s53sYN.js} +21 -21
- package/dist/chunks/{filter-bar.BA2Rtf_p.js.map → filter-bar.r_s53sYN.js.map} +1 -1
- package/dist/chunks/{focus-trap.BAiM_ywb.js → focus-trap.D24gS9oB.js} +26 -26
- package/dist/chunks/{focus-trap.BAiM_ywb.js.map → focus-trap.D24gS9oB.js.map} +1 -1
- package/dist/chunks/{footer-actions.4Qj_I3cd.js → footer-actions.D6m7ct7i.js} +2 -2
- package/dist/chunks/{footer-actions.4Qj_I3cd.js.map → footer-actions.D6m7ct7i.js.map} +1 -1
- package/dist/chunks/{header-meta.BJjFOcxY.js → header-meta.BCyK7ndE.js} +3 -3
- package/dist/chunks/{header-meta.BJjFOcxY.js.map → header-meta.BCyK7ndE.js.map} +1 -1
- package/dist/chunks/{header-with-views.CYBBcnCP.js → header-with-views.Cg3TfbGl.js} +10 -10
- package/dist/chunks/{header-with-views.CYBBcnCP.js.map → header-with-views.Cg3TfbGl.js.map} +1 -1
- package/dist/chunks/{header.5RQulwlL.js → header.FZwBPZLA.js} +3 -3
- package/dist/chunks/{header.5RQulwlL.js.map → header.FZwBPZLA.js.map} +1 -1
- package/dist/chunks/{index.DDwcHPb6.js → index.CxrHirmk.js} +15 -15
- package/dist/chunks/{index.DDwcHPb6.js.map → index.CxrHirmk.js.map} +1 -1
- package/dist/chunks/{info-icon.B3MDsjMu.js → info-icon.PcvZwhgr.js} +3 -3
- package/dist/chunks/{info-icon.B3MDsjMu.js.map → info-icon.PcvZwhgr.js.map} +1 -1
- package/dist/chunks/{input-field-password.CpRKmq4h.js → input-field-password.CeG5ZP5I.js} +6 -6
- package/dist/chunks/{input-field-password.CpRKmq4h.js.map → input-field-password.CeG5ZP5I.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BZy1o9VW.js → input-field-phone-number.86z6mzPz.js} +3 -3
- package/dist/chunks/{input-field-phone-number.BZy1o9VW.js.map → input-field-phone-number.86z6mzPz.js.map} +1 -1
- package/dist/chunks/{input-field.BseE_MT0.js → input-field.B7wHgguP.js} +3 -3
- package/dist/chunks/input-field.B7wHgguP.js.map +1 -0
- package/dist/chunks/{input-time.DAxp5Kku.js → input-time.PpFtmHYm.js} +4 -4
- package/dist/chunks/{input-time.DAxp5Kku.js.map → input-time.PpFtmHYm.js.map} +1 -1
- package/dist/chunks/{inspector.DMhKNW1K.js → inspector.BNZxnDFh.js} +3 -3
- package/dist/chunks/{inspector.DMhKNW1K.js.map → inspector.BNZxnDFh.js.map} +1 -1
- package/dist/chunks/{layout-row.B5VJGEQH.js → layout-row.ByVDza7f.js} +8 -8
- package/dist/chunks/{layout-row.B5VJGEQH.js.map → layout-row.ByVDza7f.js.map} +1 -1
- package/dist/chunks/{list-item.BHvXpqaS.js → list-item.B2tBYsTW.js} +2 -2
- package/dist/chunks/{list-item.BHvXpqaS.js.map → list-item.B2tBYsTW.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CVxaZqbc.js → listbox-option-tag.ByoUG-fO.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CVxaZqbc.js.map → listbox-option-tag.ByoUG-fO.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CepaWyoi.js → modal-fullscreen.DmnnwPRi.js} +4 -4
- package/dist/chunks/{modal-fullscreen.CepaWyoi.js.map → modal-fullscreen.DmnnwPRi.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Bh_GY-Ah.js → modal.vue_vue_type_script_setup_true_lang.2GzUt81U.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Bh_GY-Ah.js.map → modal.vue_vue_type_script_setup_true_lang.2GzUt81U.js.map} +1 -1
- package/dist/chunks/navigation-menu-group.DeDmNZ4C.js +335 -0
- package/dist/chunks/navigation-menu-group.DeDmNZ4C.js.map +1 -0
- package/dist/chunks/{pagination.Ch_Occwt.js → pagination.DE2QAUeF.js} +2 -2
- package/dist/chunks/{pagination.Ch_Occwt.js.map → pagination.DE2QAUeF.js.map} +1 -1
- package/dist/chunks/popover.types.DTieDKDn.js +6 -0
- package/dist/chunks/{popover.types.D8tHtFl3.js.map → popover.types.DTieDKDn.js.map} +1 -1
- package/dist/chunks/{popper-container.DMN8n5iC.js → popper-container.Agl6sImi.js} +2 -2
- package/dist/chunks/{popper-container.DMN8n5iC.js.map → popper-container.Agl6sImi.js.map} +1 -1
- package/dist/chunks/{promo-banner.-H4r_cwj.js → promo-banner.DMmSl_ca.js} +8 -8
- package/dist/chunks/{promo-banner.-H4r_cwj.js.map → promo-banner.DMmSl_ca.js.map} +1 -1
- package/dist/chunks/{radio-group.CfMr1fmW.js → radio-group.BxJS4qfR.js} +3 -3
- package/dist/chunks/{radio-group.CfMr1fmW.js.map → radio-group.BxJS4qfR.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CSvPpLth.js → rich-text-editor.By4B8RWI.js} +4 -4
- package/dist/chunks/{rich-text-editor.CSvPpLth.js.map → rich-text-editor.By4B8RWI.js.map} +1 -1
- package/dist/chunks/{search-bar.BRf_Mf7n.js → search-bar.7jhPiuah.js} +4 -4
- package/dist/chunks/{search-bar.BRf_Mf7n.js.map → search-bar.7jhPiuah.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CROQNbYk.js → secondary-nav.CuhX-Akn.js} +4 -4
- package/dist/chunks/{secondary-nav.CROQNbYk.js.map → secondary-nav.CuhX-Akn.js.map} +1 -1
- package/dist/chunks/{segmented-control.CQWOO1-J.js → segmented-control.DQSuLjJX.js} +2 -2
- package/dist/chunks/{segmented-control.CQWOO1-J.js.map → segmented-control.DQSuLjJX.js.map} +1 -1
- package/dist/chunks/{selection-card-group.58XZj_SJ.js → selection-card-group.DmqSNQPQ.js} +12 -12
- package/dist/chunks/{selection-card-group.58XZj_SJ.js.map → selection-card-group.DmqSNQPQ.js.map} +1 -1
- package/dist/chunks/{sidepanel.S037xghX.js → sidepanel.EKe43ODO.js} +5 -5
- package/dist/chunks/{sidepanel.S037xghX.js.map → sidepanel.EKe43ODO.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CgJR_ufh.js → structured-list-item.BkPA7std.js} +4 -4
- package/dist/chunks/{structured-list-item.CgJR_ufh.js.map → structured-list-item.BkPA7std.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.D1JQ_jtv.js → summary-grid.types.BXqnRVnK.js} +5 -5
- package/dist/chunks/{summary-grid.types.D1JQ_jtv.js.map → summary-grid.types.BXqnRVnK.js.map} +1 -1
- package/dist/chunks/{tag.YN2r-Pp3.js → tag.DkhJRE0r.js} +2 -2
- package/dist/chunks/{tag.YN2r-Pp3.js.map → tag.DkhJRE0r.js.map} +1 -1
- package/dist/chunks/{textarea.-6FHesSp.js → textarea.Cn52prhR.js} +3 -3
- package/dist/chunks/{textarea.-6FHesSp.js.map → textarea.Cn52prhR.js.map} +1 -1
- package/dist/chunks/{timeline-item.BJaFr2_Y.js → timeline-item.C6jPnHUZ.js} +6 -6
- package/dist/chunks/{timeline-item.BJaFr2_Y.js.map → timeline-item.C6jPnHUZ.js.map} +1 -1
- package/dist/chunks/{tooltip.DHfG2aRt.js → tooltip.CZ_sV-Vj.js} +3 -3
- package/dist/chunks/{tooltip.DHfG2aRt.js.map → tooltip.CZ_sV-Vj.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js → tutorial.vue_vue_type_script_setup_true_lang.Z5MhMTSh.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js.map → tutorial.vue_vue_type_script_setup_true_lang.Z5MhMTSh.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DUWGSMvO.js → use-cached-selected-values.D_CQxKZa.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.DUWGSMvO.js.map → use-cached-selected-values.D_CQxKZa.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.BH4hdEJW.js → use-date-input-formatter.NK5sHoV9.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BH4hdEJW.js.map → use-date-input-formatter.NK5sHoV9.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 +283 -277
- 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 +1 -1
- package/package.json +5 -5
- package/dist/chunks/es6.C1DXQV6f.js.map +0 -1
- package/dist/chunks/input-field.BseE_MT0.js.map +0 -1
- package/dist/chunks/popover.types.D8tHtFl3.js +0 -6
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { reactive as Te, defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { B as
|
|
4
|
-
import { h as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
1
|
+
import { reactive as Te, defineComponent as oa, useSlots as xa, ref as P, computed as c, onMounted as la, openBlock as I, createElementBlock as ye, createElementVNode as J, normalizeClass as ge, unref as u, renderSlot as Qe, createCommentVNode as F, createBlock as B, withCtx as $, createTextVNode as ne, toDisplayString as Me, createVNode as z, createSlots as Ee, toRaw as xe, watch as he, useAttrs as Oa, toRef as Ie, withDirectives as qa, withKeys as Ue } from "vue";
|
|
2
|
+
import { a as _a } from "./index.CxrHirmk.js";
|
|
3
|
+
import { B as Pa } from "./divider.BIY84UH7.js";
|
|
4
|
+
import { h as Ba, B as Ca } from "./button-actions.Dp3VkQWU.js";
|
|
5
|
+
import { B as Oe, d as We } from "./typography.B3J6_tYk.js";
|
|
6
|
+
import { B as Na, D as Va } from "./dropdown.B4pTluCz.js";
|
|
7
7
|
import { g as ue } from "./generate-uid.DBWe4g6T.js";
|
|
8
8
|
import { u as qe } from "./index.B875RXHM.js";
|
|
9
|
-
import { h as de, i as
|
|
10
|
-
import { u as
|
|
9
|
+
import { h as de, i as _, j as T, k as za, l as je, m as Qa, s as Ge, n as Ua, o as Wa, q as ja, r as Le, t as Ga, b as V, u as La, e as Ja, f as $a, v as O, p as Je, w as $e, g as Ha } from "./calendar.DPSJK8zi.js";
|
|
10
|
+
import { u as _e, a as Ka } from "./use-date-input-formatter.NK5sHoV9.js";
|
|
11
11
|
import { t as H, n as Xa, c as Za } from "./en-US.BR6y7foR.js";
|
|
12
12
|
import { u as et } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
13
13
|
import { B as at } from "./directive.C8kY-ZW-.js";
|
|
14
14
|
import { u as tt } from "./form-field.D_2g7vaP.js";
|
|
15
15
|
import { B as nt } from "./alert.RD0qOLhx.js";
|
|
16
|
-
import { B as He } from "./input-field.
|
|
17
|
-
import { B as Ke, i as Xe } from "./input-time.
|
|
18
|
-
import { B as rt } from "./segmented-control.
|
|
19
|
-
import { d as Ze } from "./use-cached-selected-values.
|
|
20
|
-
import { u as
|
|
21
|
-
import { u as
|
|
22
|
-
import { e as
|
|
16
|
+
import { B as He } from "./input-field.B7wHgguP.js";
|
|
17
|
+
import { B as Ke, i as Xe } from "./input-time.PpFtmHYm.js";
|
|
18
|
+
import { B as rt } from "./segmented-control.DQSuLjJX.js";
|
|
19
|
+
import { d as Ze } from "./use-cached-selected-values.D_CQxKZa.js";
|
|
20
|
+
import { u as st } from "./use-has-slot.CyMiImRQ.js";
|
|
21
|
+
import { u as ot } from "./use-touch-device.DTqFAbXh.js";
|
|
22
|
+
import { e as C, a as ea } from "./differenceInMonths.yz4Dfe-b.js";
|
|
23
23
|
import { s as aa } from "./startOfWeek.muMEhS7U.js";
|
|
24
|
-
import { c as
|
|
24
|
+
import { c as lt } from "./constructNow.DyOJDyZZ.js";
|
|
25
25
|
import { _ as ia } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
26
|
-
import { F as it } from "./field-label.
|
|
26
|
+
import { F as it } from "./field-label.B_E_3J8j.js";
|
|
27
27
|
import { E as ta } from "./error-message.Dyvrw6ZB.js";
|
|
28
28
|
import { B as ut } from "./button-actions.types.BptAXjD8.js";
|
|
29
29
|
import "../assets/date-range-picker.css";
|
|
@@ -34,12 +34,12 @@ function we(n, m) {
|
|
|
34
34
|
return +H(n) == +H(m);
|
|
35
35
|
}
|
|
36
36
|
function dt(n, m, v) {
|
|
37
|
-
const [
|
|
37
|
+
const [l, p] = Xa(
|
|
38
38
|
v?.in,
|
|
39
39
|
n,
|
|
40
40
|
m
|
|
41
41
|
);
|
|
42
|
-
return +de(
|
|
42
|
+
return +de(l) == +de(p);
|
|
43
43
|
}
|
|
44
44
|
function ra(n, m) {
|
|
45
45
|
const v = H(n, m?.in);
|
|
@@ -49,26 +49,26 @@ function Fe(n, m) {
|
|
|
49
49
|
return +ra(n) == +ra(m);
|
|
50
50
|
}
|
|
51
51
|
function ct(n, m) {
|
|
52
|
-
return
|
|
52
|
+
return _(
|
|
53
53
|
Za(n, n),
|
|
54
|
-
|
|
54
|
+
lt(n)
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
function mt(n, m, v) {
|
|
58
|
-
const
|
|
59
|
-
return
|
|
58
|
+
const l = H(n, v?.in);
|
|
59
|
+
return l.setHours(m), l;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
const
|
|
63
|
-
return
|
|
61
|
+
function sa(n, m, v) {
|
|
62
|
+
const l = H(n, v?.in);
|
|
63
|
+
return l.setMilliseconds(m), l;
|
|
64
64
|
}
|
|
65
65
|
function Dt(n, m, v) {
|
|
66
|
-
const
|
|
67
|
-
return
|
|
66
|
+
const l = H(n, v?.in);
|
|
67
|
+
return l.setMinutes(m), l;
|
|
68
68
|
}
|
|
69
69
|
function pt(n, m, v) {
|
|
70
|
-
const
|
|
71
|
-
return
|
|
70
|
+
const l = H(n, v?.in);
|
|
71
|
+
return l.setSeconds(m), l;
|
|
72
72
|
}
|
|
73
73
|
const vt = ({
|
|
74
74
|
firstDayOfWeek: n,
|
|
@@ -77,33 +77,33 @@ const vt = ({
|
|
|
77
77
|
}) => ({ getGranularCalendarLimits: (p) => {
|
|
78
78
|
if (!m && !v)
|
|
79
79
|
return { min: null, max: null };
|
|
80
|
-
let a = m ? T(m) : null, i = v ?
|
|
80
|
+
let a = m ? T(m) : null, i = v ? C(v) : null;
|
|
81
81
|
if (p?.type === "weekly") {
|
|
82
82
|
if (p.earliest)
|
|
83
83
|
a = T(p.earliest);
|
|
84
84
|
else if (a) {
|
|
85
85
|
const f = aa(a, { weekStartsOn: n });
|
|
86
|
-
|
|
86
|
+
_(a, f) || (a = T(za(je(a, { weekStartsOn: n }), 1)));
|
|
87
87
|
}
|
|
88
88
|
if (p.latest)
|
|
89
|
-
i =
|
|
89
|
+
i = C(p.latest);
|
|
90
90
|
else if (i) {
|
|
91
|
-
const f =
|
|
92
|
-
|
|
91
|
+
const f = je(i, { weekStartsOn: n });
|
|
92
|
+
_(i, f) || (i = C(Qa(aa(i, { weekStartsOn: n }), 1)));
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
if (p?.type === "monthly") {
|
|
96
96
|
if (p.earliest)
|
|
97
97
|
a = T(p.earliest);
|
|
98
98
|
else if (a) {
|
|
99
|
-
const f =
|
|
100
|
-
|
|
99
|
+
const f = Ge(a);
|
|
100
|
+
_(a, f) || (a = Ge(Ua(a, 1)));
|
|
101
101
|
}
|
|
102
102
|
if (p.latest)
|
|
103
|
-
i =
|
|
103
|
+
i = C(p.latest);
|
|
104
104
|
else if (i) {
|
|
105
105
|
const f = ea(i);
|
|
106
|
-
|
|
106
|
+
_(i, f) || (i = ea(Wa(i, 1)));
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
if (p?.type === "quarterly") {
|
|
@@ -111,13 +111,13 @@ const vt = ({
|
|
|
111
111
|
a = de(p.earliest);
|
|
112
112
|
else if (a) {
|
|
113
113
|
const f = de(a);
|
|
114
|
-
|
|
114
|
+
_(a, f) || (a = de(ja(a, 1)));
|
|
115
115
|
}
|
|
116
116
|
if (p.latest)
|
|
117
|
-
i =
|
|
117
|
+
i = C(p.latest);
|
|
118
118
|
else if (i) {
|
|
119
|
-
const f =
|
|
120
|
-
|
|
119
|
+
const f = Le(i);
|
|
120
|
+
_(i, f) || (i = Le(Ga(i, 1)));
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
return { min: a, max: i };
|
|
@@ -130,8 +130,8 @@ const vt = ({
|
|
|
130
130
|
});
|
|
131
131
|
return {
|
|
132
132
|
savedRanges: n,
|
|
133
|
-
saveRange: (
|
|
134
|
-
n[
|
|
133
|
+
saveRange: (l, p) => {
|
|
134
|
+
n[l] = p;
|
|
135
135
|
},
|
|
136
136
|
resetSavedRanges: () => {
|
|
137
137
|
n.daily = null, n.weekly = null, n.monthly = null, n.quarterly = null;
|
|
@@ -140,24 +140,24 @@ const vt = ({
|
|
|
140
140
|
};
|
|
141
141
|
var D = /* @__PURE__ */ ((n) => (n.CUSTOM_RANGE = "custom-range", n.INPUT = "input", n.ERROR = "error", n.FORM_DATE = "form-date", n.START_DATE_SELECTED = "start-date-selected", n))(D || {});
|
|
142
142
|
const ua = {
|
|
143
|
-
"de-DE": { "DD-MM-YYYY": "TT-MM-JJJJ", "MM-DD-YYYY": "JJJJ-MM-TT", "YYYY-MM-DD": "JJJJ-MM-TT", customRange: "Benutzerdefinierter Bereich", daily: "Täglich", dateFrom: "Datum von", dateTo: "Datum bis", lastMonth: "Letzter Monat", lastSevenDays: "Letzte 7 Tage", lastThreeMonths: "Letzte drei Monate", monthly: "Monatlich", quarterly: "Vierteljährlich", timeFrom: "Zeit von", timeTo: "Zeit bis", weekly: "Wöchentlich" },
|
|
144
|
-
"en-GB": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "The last three months", monthly: "Monthly", quarterly: "Quarterly", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
|
|
143
|
+
"de-DE": { "DD-MM-YYYY": "TT-MM-JJJJ", "MM-DD-YYYY": "JJJJ-MM-TT", "YYYY-MM-DD": "JJJJ-MM-TT", customRange: "Benutzerdefinierter Bereich", daily: "Täglich", dateFrom: "Datum von", dateTo: "Datum bis", lastMonth: "Letzter Monat", lastSevenDays: "Letzte 7 Tage", lastThreeMonths: "Letzte drei Monate", maxRangeDays: "Sie können bis zu {count} Tag auswählen | Sie können bis zu {count} Tage auswählen", maxRangeMonths: "Sie können bis zu {count} Monat auswählen | Sie können bis zu {count} Monate auswählen", maxRangeQuarters: "Sie können bis zu {count} Quartal auswählen | Sie können bis zu {count} Quartale auswählen", maxRangeWeeks: "Sie können bis zu {count} Woche auswählen | Sie können bis zu {count} Wochen auswählen", monthly: "Monatlich", quarterly: "Vierteljährlich", timeFrom: "Zeit von", timeTo: "Zeit bis", weekly: "Wöchentlich" },
|
|
144
|
+
"en-GB": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "The last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
|
|
145
145
|
"en-US": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "Last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
|
|
146
|
-
"es-ES": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha desde", dateTo: "Fecha hasta", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", monthly: "Mensualmente", quarterly: "Trimestral", timeFrom: "Hora desde", timeTo: "Hora hasta", weekly: "Semanal" },
|
|
147
|
-
"es-MX": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha de", dateTo: "Fecha hasta", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", monthly: "Mensual", quarterly: "Trimestral", timeFrom: "Tiempo desde", timeTo: "Es hora de", weekly: "Semanal" },
|
|
148
|
-
"fr-FR": { "DD-MM-YYYY": "JJ-MM-AAAA", "MM-DD-YYYY": "MM-JJ-AAAA", "YYYY-MM-DD": "AAAA-MM-JJ", customRange: "Plage personnalisée", daily: "Quotidien", dateFrom: "Date de début", dateTo: "Date de fin", lastMonth: "Le mois dernier", lastSevenDays: "7 derniers jours", lastThreeMonths: "Trois derniers mois", monthly: "Mensuel", quarterly: "Trimestriel", timeFrom: "Heure de début", timeTo: "Heure de fin", weekly: "Hebdomadaire" },
|
|
149
|
-
"it-IT": { "DD-MM-YYYY": "GG-MM-AAAA", "MM-DD-YYYY": "MM-GG-AAAA", "YYYY-MM-DD": "AAAA-MM-GG", customRange: "Intervallo personalizzato", daily: "Giornaliero", dateFrom: "Data da", dateTo: "Da", lastMonth: "Il mese scorso", lastSevenDays: "Ultimi 7 giorni", lastThreeMonths: "Gli ultimi tre mesi", monthly: "Mensile", quarterly: "Trimestrale", timeFrom: "Tempo dal", timeTo: "Tempo fino al", weekly: "Settimanale" },
|
|
150
|
-
"ja-JP": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "カスタム範囲", daily: "毎日", dateFrom: "開始日", dateTo: "終了日", lastMonth: "先月", lastSevenDays: "過去 7 日間", lastThreeMonths: "過去3か月", monthly: "毎月", quarterly: "四半期ごと", timeFrom: "開始時刻", timeTo: "終了時刻", weekly: "毎週" },
|
|
151
|
-
"pt-BR": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Intervalo personalizado", daily: "Diário", dateFrom: "Data a partir de", dateTo: "Data até", lastMonth: "Último mês", lastSevenDays: "Últimos 7 dias", lastThreeMonths: "Últimos 3 meses", monthly: "Mensal", quarterly: "Trimestral", timeFrom: "Horário a partir de", timeTo: "Horário até", weekly: "Semanal" },
|
|
152
|
-
"zh-CN": { "DD-MM-YYYY": "日-月-年", "MM-DD-YYYY": "YYYY-MM-DD", "YYYY-MM-DD": "年-月-日", customRange: "自定义范围", daily: "每日", dateFrom: "日期自", dateTo: "日期至", lastMonth: "上个月", lastSevenDays: "最近 7 天", lastThreeMonths: "过去三个月", monthly: "每月", quarterly: "每季度", timeFrom: "时间自", timeTo: "是时候", weekly: "每周" }
|
|
153
|
-
}, yt = { class: "b-date-range-picker-calendar" },
|
|
146
|
+
"es-ES": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha desde", dateTo: "Fecha hasta", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días", maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses", maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres", maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas", monthly: "Mensualmente", quarterly: "Trimestral", timeFrom: "Hora desde", timeTo: "Hora hasta", weekly: "Semanal" },
|
|
147
|
+
"es-MX": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha de", dateTo: "Fecha hasta", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días", maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses", maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres", maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas", monthly: "Mensual", quarterly: "Trimestral", timeFrom: "Tiempo desde", timeTo: "Es hora de", weekly: "Semanal" },
|
|
148
|
+
"fr-FR": { "DD-MM-YYYY": "JJ-MM-AAAA", "MM-DD-YYYY": "MM-JJ-AAAA", "YYYY-MM-DD": "AAAA-MM-JJ", customRange: "Plage personnalisée", daily: "Quotidien", dateFrom: "Date de début", dateTo: "Date de fin", lastMonth: "Le mois dernier", lastSevenDays: "7 derniers jours", lastThreeMonths: "Trois derniers mois", maxRangeDays: "Vous pouvez sélectionner jusqu'à {count} jour | Vous pouvez sélectionner jusqu'à {count} jours", maxRangeMonths: "Vous pouvez sélectionner jusqu'à {count} mois | Vous pouvez sélectionner jusqu'à {count} mois", maxRangeQuarters: "Vous pouvez sélectionner jusqu'à {count} trimestre | Vous pouvez sélectionner jusqu'à {count} trimestres", maxRangeWeeks: "Vous pouvez sélectionner jusqu'à {count} semaine | Vous pouvez sélectionner jusqu'à {count} semaines", monthly: "Mensuel", quarterly: "Trimestriel", timeFrom: "Heure de début", timeTo: "Heure de fin", weekly: "Hebdomadaire" },
|
|
149
|
+
"it-IT": { "DD-MM-YYYY": "GG-MM-AAAA", "MM-DD-YYYY": "MM-GG-AAAA", "YYYY-MM-DD": "AAAA-MM-GG", customRange: "Intervallo personalizzato", daily: "Giornaliero", dateFrom: "Data da", dateTo: "Da", lastMonth: "Il mese scorso", lastSevenDays: "Ultimi 7 giorni", lastThreeMonths: "Gli ultimi tre mesi", maxRangeDays: "Puoi selezionare fino a {count} giorno | Puoi selezionare fino a {count} giorni", maxRangeMonths: "Puoi selezionare fino a {count} mese | Puoi selezionare fino a {count} mesi", maxRangeQuarters: "Puoi selezionare fino a {count} trimestre | Puoi selezionare fino a {count} trimestri", maxRangeWeeks: "Puoi selezionare fino a {count} settimana | Puoi selezionare fino a {count} settimane", monthly: "Mensile", quarterly: "Trimestrale", timeFrom: "Tempo dal", timeTo: "Tempo fino al", weekly: "Settimanale" },
|
|
150
|
+
"ja-JP": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "カスタム範囲", daily: "毎日", dateFrom: "開始日", dateTo: "終了日", lastMonth: "先月", lastSevenDays: "過去 7 日間", lastThreeMonths: "過去3か月", maxRangeDays: "{count}日間まで選択できます | {count}日間まで選択できます", maxRangeMonths: "{count}か月まで選択できます | {count}か月まで選択できます", maxRangeQuarters: "{count}四半期まで選択できます | {count}四半期まで選択できます", maxRangeWeeks: "{count}週間まで選択できます | {count}週間まで選択できます", monthly: "毎月", quarterly: "四半期ごと", timeFrom: "開始時刻", timeTo: "終了時刻", weekly: "毎週" },
|
|
151
|
+
"pt-BR": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Intervalo personalizado", daily: "Diário", dateFrom: "Data a partir de", dateTo: "Data até", lastMonth: "Último mês", lastSevenDays: "Últimos 7 dias", lastThreeMonths: "Últimos 3 meses", maxRangeDays: "Você pode selecionar até {count} dia | Você pode selecionar até {count} dias", maxRangeMonths: "Você pode selecionar até {count} mês | Você pode selecionar até {count} meses", maxRangeQuarters: "Você pode selecionar até {count} trimestre | Você pode selecionar até {count} trimestres", maxRangeWeeks: "Você pode selecionar até {count} semana | Você pode selecionar até {count} semanas", monthly: "Mensal", quarterly: "Trimestral", timeFrom: "Horário a partir de", timeTo: "Horário até", weekly: "Semanal" },
|
|
152
|
+
"zh-CN": { "DD-MM-YYYY": "日-月-年", "MM-DD-YYYY": "YYYY-MM-DD", "YYYY-MM-DD": "年-月-日", customRange: "自定义范围", daily: "每日", dateFrom: "日期自", dateTo: "日期至", lastMonth: "上个月", lastSevenDays: "最近 7 天", lastThreeMonths: "过去三个月", maxRangeDays: "您可以选择最多 {count} 天 | 您可以选择最多 {count} 天", maxRangeMonths: "您可以选择最多 {count} 个月 | 您可以选择最多 {count} 个月", maxRangeQuarters: "您最多可以选择 {count} 个季度 | 您最多可以选择 {count} 个季度", maxRangeWeeks: "您最多可以选择 {count} 周 | 您最多可以选择 {count} 周", monthly: "每月", quarterly: "每季度", timeFrom: "时间自", timeTo: "是时候", weekly: "每周" }
|
|
153
|
+
}, yt = { class: "b-date-range-picker-calendar" }, gt = { class: "b-date-range-picker-calendar__form" }, Mt = { key: 0 }, ht = {
|
|
154
154
|
key: 0,
|
|
155
155
|
class: "b-date-range-picker-calendar__calendars-container",
|
|
156
156
|
"data-testid": "date-range-picker-calendar-calendar-container"
|
|
157
157
|
}, Tt = {
|
|
158
158
|
name: "date-range-picker-calendar",
|
|
159
159
|
i18n: { messages: ua }
|
|
160
|
-
}, Yt = /* @__PURE__ */
|
|
160
|
+
}, Yt = /* @__PURE__ */ oa({
|
|
161
161
|
...Tt,
|
|
162
162
|
props: {
|
|
163
163
|
/**
|
|
@@ -174,7 +174,7 @@ const ua = {
|
|
|
174
174
|
/**
|
|
175
175
|
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
176
176
|
*/
|
|
177
|
-
firstDayOfWeek:
|
|
177
|
+
firstDayOfWeek: V.props.firstDayOfWeek,
|
|
178
178
|
/**
|
|
179
179
|
* A list of available granularities.
|
|
180
180
|
* If present, the date picker will display a segmented control to change granularity.
|
|
@@ -186,25 +186,25 @@ const ua = {
|
|
|
186
186
|
/**
|
|
187
187
|
* Indicate if a date should be disabled or not
|
|
188
188
|
*/
|
|
189
|
-
isDateDisabled:
|
|
189
|
+
isDateDisabled: V.props.isDateDisabled,
|
|
190
190
|
/**
|
|
191
191
|
* Set a maximum number of dates to be selectable by the range.
|
|
192
192
|
*/
|
|
193
|
-
maxRange:
|
|
193
|
+
maxRange: V.props.maxRange,
|
|
194
194
|
/**
|
|
195
195
|
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
196
196
|
*/
|
|
197
|
-
min:
|
|
197
|
+
min: V.props.min,
|
|
198
198
|
/**
|
|
199
199
|
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
200
200
|
*/
|
|
201
|
-
max:
|
|
201
|
+
max: V.props.max,
|
|
202
202
|
/**
|
|
203
203
|
* Number of months rendered on pane
|
|
204
204
|
*/
|
|
205
205
|
numberOfMonths: {
|
|
206
|
-
type:
|
|
207
|
-
default:
|
|
206
|
+
type: V.props.numberOfMonths.type,
|
|
207
|
+
default: V.props.numberOfMonths.default,
|
|
208
208
|
validator: (n) => n >= 0
|
|
209
209
|
},
|
|
210
210
|
/**
|
|
@@ -229,7 +229,7 @@ const ua = {
|
|
|
229
229
|
/**
|
|
230
230
|
* The type of calendar to display. Defaults to showing days.
|
|
231
231
|
*/
|
|
232
|
-
variant:
|
|
232
|
+
variant: V.props.variant
|
|
233
233
|
},
|
|
234
234
|
emits: [
|
|
235
235
|
D.CUSTOM_RANGE,
|
|
@@ -239,19 +239,19 @@ const ua = {
|
|
|
239
239
|
D.START_DATE_SELECTED
|
|
240
240
|
],
|
|
241
241
|
setup(n, { emit: m }) {
|
|
242
|
-
const
|
|
242
|
+
const l = "customRange", p = {
|
|
243
243
|
daily: "maxRangeDays",
|
|
244
244
|
weekly: "maxRangeWeeks",
|
|
245
245
|
monthly: "maxRangeMonths",
|
|
246
246
|
quarterly: "maxRangeQuarters"
|
|
247
|
-
}, a = n, i = m, f =
|
|
247
|
+
}, a = n, i = m, f = xa(), Q = st(f), { t: Y, tc: A } = qe({ messages: ua }), { isTouchDevice: k } = ot(), {
|
|
248
248
|
dateFormat: re,
|
|
249
|
-
isFormatValid:
|
|
250
|
-
parseDate:
|
|
251
|
-
onKeyDown:
|
|
252
|
-
autoFormat:
|
|
253
|
-
formatDate:
|
|
254
|
-
} =
|
|
249
|
+
isFormatValid: R,
|
|
250
|
+
parseDate: M,
|
|
251
|
+
onKeyDown: N,
|
|
252
|
+
autoFormat: U,
|
|
253
|
+
formatDate: se
|
|
254
|
+
} = _e(), b = P({}), ae = c(() => a.variant === "month" ? "monthly" : "daily"), w = c(() => a.numberOfMonths === 0), r = Te({
|
|
255
255
|
startDate: a.value?.startDate,
|
|
256
256
|
endDate: a.value?.endDate,
|
|
257
257
|
range: a.value?.range,
|
|
@@ -263,24 +263,24 @@ const ua = {
|
|
|
263
263
|
a?.quickSelectRanges?.find(({ value: e, data: t }) => {
|
|
264
264
|
if (!t.endDate) {
|
|
265
265
|
if (t.isRelativeToNow) {
|
|
266
|
-
const d =
|
|
266
|
+
const d = b.value?.[e];
|
|
267
267
|
return d ? we(d.startDate, r.startDate) && we(d.endDate, r.endDate) : (
|
|
268
268
|
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
269
269
|
// with the internal range's stored range identifier.
|
|
270
270
|
e === r.range
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
|
-
return we(t.startDate, r.startDate) && ct(r.endDate) && (!a.allowTimeInput || Fe(r.endDate,
|
|
273
|
+
return we(t.startDate, r.startDate) && ct(r.endDate) && (!a.allowTimeInput || Fe(r.endDate, C(r.endDate))) && (a.granularities ? t.granularity === r.granularity : !0);
|
|
274
274
|
}
|
|
275
275
|
if (a.allowTimeInput)
|
|
276
276
|
return Fe(t.startDate, r.startDate) && Fe(t.endDate, r.endDate) && (a.granularities ? t.granularity === r.granularity : !0);
|
|
277
277
|
if (t.endDate)
|
|
278
|
-
return
|
|
279
|
-
})?.value ??
|
|
280
|
-
)),
|
|
278
|
+
return _(t.startDate, r.startDate) && _(t.endDate, r.endDate) && (a.granularities ? t.granularity === r.granularity : !0);
|
|
279
|
+
})?.value ?? l
|
|
280
|
+
)), oe = c(() => ({
|
|
281
281
|
"b-date-range-picker-calendar__form-input-wrapper": a.allowTimeInput
|
|
282
|
-
})),
|
|
283
|
-
{ label: Y("customRange"), value:
|
|
282
|
+
})), le = c(() => [
|
|
283
|
+
{ label: Y("customRange"), value: l },
|
|
284
284
|
...a.quickSelectRanges ? a.quickSelectRanges : []
|
|
285
285
|
]), K = c(
|
|
286
286
|
() => a.granularities?.find(({ type: e }) => e === r.granularity) || null
|
|
@@ -290,103 +290,103 @@ const ua = {
|
|
|
290
290
|
value: e,
|
|
291
291
|
disabled: t
|
|
292
292
|
})) ?? []
|
|
293
|
-
), { getGranularCalendarLimits: ce } = vt(a),
|
|
294
|
-
() => a.granularities ? ce(K.value) : { min: a.min ? T(a.min) : null, max: a.max ?
|
|
293
|
+
), { getGranularCalendarLimits: ce } = vt(a), g = c(
|
|
294
|
+
() => a.granularities ? ce(K.value) : { min: a.min ? T(a.min) : null, max: a.max ? C(a.max) : null }
|
|
295
295
|
), {
|
|
296
296
|
adjustDateForQuarterly: h,
|
|
297
|
-
adjustDateForMonthly:
|
|
297
|
+
adjustDateForMonthly: Re,
|
|
298
298
|
adjustDateForWeekly: X,
|
|
299
|
-
adjustStartDateInputForWeekly:
|
|
299
|
+
adjustStartDateInputForWeekly: be,
|
|
300
300
|
adjustEndDateInputForWeekly: me,
|
|
301
301
|
adjustStartDateInputForMonthly: De,
|
|
302
|
-
adjustEndDateInputForMonthly:
|
|
302
|
+
adjustEndDateInputForMonthly: W,
|
|
303
303
|
adjustStartDateInputForQuarterly: te,
|
|
304
|
-
adjustEndDateInputForQuarterly:
|
|
305
|
-
} =
|
|
304
|
+
adjustEndDateInputForQuarterly: Ae
|
|
305
|
+
} = La(a.firstDayOfWeek), { savedRanges: j, saveRange: ke, resetSavedRanges: pe } = ft(), S = (e) => e ? se(e) : "", Z = P(!1), ee = P(!1), s = Te({
|
|
306
306
|
startDate: a.dateFormData.startDate,
|
|
307
307
|
endDate: a.dateFormData.endDate,
|
|
308
308
|
startTime: a.dateFormData.startTime,
|
|
309
309
|
endTime: a.dateFormData.endTime
|
|
310
310
|
}), ve = (e, t) => {
|
|
311
311
|
let d = new Date(e);
|
|
312
|
-
const [y,
|
|
313
|
-
return d = mt(d, parseInt(y, 10)), d = Dt(d, parseInt(
|
|
314
|
-
},
|
|
312
|
+
const [y, L, Ea] = t.split(":");
|
|
313
|
+
return d = mt(d, parseInt(y, 10)), d = Dt(d, parseInt(L, 10)), d = pt(d, parseInt(Ea, 10)), d;
|
|
314
|
+
}, o = (e, t) => {
|
|
315
315
|
const d = () => {
|
|
316
|
-
if (t &&
|
|
317
|
-
const y = ve(
|
|
318
|
-
if (a.min && y <
|
|
316
|
+
if (t && G(t)) {
|
|
317
|
+
const y = ve(M(t), e);
|
|
318
|
+
if (a.min && y < sa(a.min, 0) || a.max && y > sa(a.max, 0))
|
|
319
319
|
return !1;
|
|
320
320
|
}
|
|
321
321
|
return !0;
|
|
322
322
|
};
|
|
323
323
|
return Xe(e) && d();
|
|
324
|
-
},
|
|
325
|
-
|
|
326
|
-
a.min && a.allowTimeInput &&
|
|
327
|
-
),
|
|
328
|
-
a.max && a.allowTimeInput &&
|
|
329
|
-
), r.startDate = q(e.startDate,
|
|
324
|
+
}, x = c(() => a.variant === "month"), ie = (e) => e ? x.value ? Ja(e) : $a(e) : "", da = c(() => ie(r.startDate)), ca = c(() => ie(r.endDate)), Be = c(() => k.value ? x.value ? "month" : "date" : "text"), ma = c(() => k.value ? da.value : s.startDate), Da = c(() => k.value ? ca.value : s.endDate), q = (e, t) => !t || !Xe(t) || a.variant === "month" ? e : ve(new Date(e), t), pa = (e) => {
|
|
325
|
+
s.startTime = O(
|
|
326
|
+
a.min && a.allowTimeInput && _(a.min, e.startDate) ? a.min : T(e.startDate)
|
|
327
|
+
), s.endTime = O(
|
|
328
|
+
a.max && a.allowTimeInput && _(a.max, e.endDate) ? a.max : C(e.endDate)
|
|
329
|
+
), r.startDate = q(e.startDate, s.startTime), r.endDate = q(e.endDate, s.endTime), r.range = null, a.granularities && pe(), i(D.INPUT, {
|
|
330
330
|
...r,
|
|
331
331
|
range: E.value
|
|
332
332
|
});
|
|
333
|
-
},
|
|
333
|
+
}, G = (e) => {
|
|
334
334
|
if (!e)
|
|
335
335
|
return !1;
|
|
336
336
|
const t = (d) => a.min && T(d) < T(a.min) || a.max && T(d) > T(a.max) ? !1 : a.isDateDisabled ? !a.isDateDisabled(T(d)) : !0;
|
|
337
|
-
return
|
|
337
|
+
return R(e) && t(M(e));
|
|
338
338
|
};
|
|
339
|
-
|
|
340
|
-
Z.value = !!(a.dateFormData.startDate && !
|
|
339
|
+
la(() => {
|
|
340
|
+
Z.value = !!(a.dateFormData.startDate && !G(a.dateFormData.startDate)), ee.value = !!(a.dateFormData.endDate && !G(a.dateFormData.endDate));
|
|
341
341
|
});
|
|
342
342
|
const va = (e) => {
|
|
343
|
-
|
|
343
|
+
s.startDate = S(e), s.startTime || (s.startTime = O(e)), Z.value = !1, i(D.START_DATE_SELECTED, e);
|
|
344
344
|
}, fa = (e) => {
|
|
345
|
-
|
|
346
|
-
},
|
|
345
|
+
s.endDate = S(e), s.endTime || (s.endTime = O(C(e))), ee.value = !1;
|
|
346
|
+
}, Se = (e) => {
|
|
347
347
|
const t = a.value[e];
|
|
348
348
|
if (t)
|
|
349
349
|
return t;
|
|
350
|
-
if (a.dateFormData[e] &&
|
|
351
|
-
return
|
|
352
|
-
},
|
|
353
|
-
if (
|
|
350
|
+
if (a.dateFormData[e] && G(a.dateFormData[e]))
|
|
351
|
+
return M(a.dateFormData[e]);
|
|
352
|
+
}, Ce = (e) => {
|
|
353
|
+
if (G(e)) {
|
|
354
354
|
let t = e;
|
|
355
355
|
switch (Z.value = !1, K.value?.type) {
|
|
356
356
|
case "weekly":
|
|
357
|
-
t =
|
|
357
|
+
t = be(
|
|
358
358
|
e,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
),
|
|
359
|
+
S,
|
|
360
|
+
g.value.min,
|
|
361
|
+
g.value.max
|
|
362
|
+
), s.startDate = t;
|
|
363
363
|
break;
|
|
364
364
|
case "monthly":
|
|
365
365
|
t = De(
|
|
366
366
|
e,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
),
|
|
367
|
+
S,
|
|
368
|
+
g.value.min,
|
|
369
|
+
g.value.max
|
|
370
|
+
), s.startDate = t;
|
|
371
371
|
break;
|
|
372
372
|
case "quarterly":
|
|
373
373
|
t = te(
|
|
374
374
|
e,
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
),
|
|
375
|
+
S,
|
|
376
|
+
g.value.min,
|
|
377
|
+
g.value.max
|
|
378
|
+
), s.startDate = t;
|
|
379
379
|
break;
|
|
380
380
|
}
|
|
381
|
-
const d = T(
|
|
382
|
-
r.startDate = q(d,
|
|
383
|
-
T(
|
|
384
|
-
|
|
385
|
-
),
|
|
386
|
-
T(
|
|
387
|
-
|
|
381
|
+
const d = T(M(t));
|
|
382
|
+
r.startDate = q(d, s.startTime), r.endDate = q(
|
|
383
|
+
T(M(s.endDate)),
|
|
384
|
+
s.endTime
|
|
385
|
+
), G(s.endDate) && (r.endDate = q(
|
|
386
|
+
T(M(s.endDate)),
|
|
387
|
+
s.endTime
|
|
388
388
|
));
|
|
389
|
-
const y =
|
|
389
|
+
const y = Se("endDate");
|
|
390
390
|
r.range = null, i(D.FORM_DATE, {
|
|
391
391
|
startDate: d,
|
|
392
392
|
endDate: y
|
|
@@ -395,54 +395,54 @@ const ua = {
|
|
|
395
395
|
range: E.value
|
|
396
396
|
});
|
|
397
397
|
} else
|
|
398
|
-
Z.value = !0, i(D.ERROR, { ...
|
|
399
|
-
}, ya = Ze(
|
|
400
|
-
if (
|
|
401
|
-
if (
|
|
402
|
-
const t =
|
|
403
|
-
r.startDate = q(t,
|
|
398
|
+
Z.value = !0, i(D.ERROR, { ...s });
|
|
399
|
+
}, ya = Ze(Ce, 300), ga = (e) => {
|
|
400
|
+
if (s.startDate = k.value && x.value ? e : U(e), k.value)
|
|
401
|
+
if (x.value && e) {
|
|
402
|
+
const t = Je(e);
|
|
403
|
+
r.startDate = q(t, s.startTime), r.range = null, i(D.INPUT, {
|
|
404
404
|
...r,
|
|
405
405
|
range: E.value
|
|
406
406
|
});
|
|
407
407
|
} else
|
|
408
|
-
|
|
408
|
+
Ce(s.startDate);
|
|
409
409
|
else
|
|
410
|
-
ya(
|
|
411
|
-
},
|
|
412
|
-
if (
|
|
410
|
+
ya(s.startDate);
|
|
411
|
+
}, Ne = (e) => {
|
|
412
|
+
if (G(e)) {
|
|
413
413
|
let t = e;
|
|
414
414
|
switch (ee.value = !1, K.value?.type) {
|
|
415
415
|
case "weekly":
|
|
416
416
|
t = me(
|
|
417
417
|
e,
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
),
|
|
418
|
+
S,
|
|
419
|
+
g.value.min,
|
|
420
|
+
g.value.max
|
|
421
|
+
), s.endDate = t;
|
|
422
422
|
break;
|
|
423
423
|
case "monthly":
|
|
424
|
-
t =
|
|
424
|
+
t = W(
|
|
425
425
|
e,
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
),
|
|
426
|
+
S,
|
|
427
|
+
g.value.min,
|
|
428
|
+
g.value.max
|
|
429
|
+
), s.endDate = t;
|
|
430
430
|
break;
|
|
431
431
|
case "quarterly":
|
|
432
|
-
t =
|
|
432
|
+
t = Ae(
|
|
433
433
|
e,
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
),
|
|
434
|
+
S,
|
|
435
|
+
g.value.min,
|
|
436
|
+
g.value.max
|
|
437
|
+
), s.endDate = t;
|
|
438
438
|
break;
|
|
439
439
|
}
|
|
440
|
-
const d = T(
|
|
441
|
-
r.endDate = q(d,
|
|
442
|
-
T(
|
|
443
|
-
|
|
440
|
+
const d = T(M(t));
|
|
441
|
+
r.endDate = q(d, s.endTime), G(s.startDate) && (r.startDate = q(
|
|
442
|
+
T(M(s.startDate)),
|
|
443
|
+
s.startTime
|
|
444
444
|
));
|
|
445
|
-
const y =
|
|
445
|
+
const y = Se("startDate");
|
|
446
446
|
r.range = null, i(D.FORM_DATE, {
|
|
447
447
|
startDate: y,
|
|
448
448
|
endDate: d
|
|
@@ -451,155 +451,155 @@ const ua = {
|
|
|
451
451
|
range: E.value
|
|
452
452
|
});
|
|
453
453
|
} else
|
|
454
|
-
ee.value = !0, i(D.ERROR, { ...
|
|
455
|
-
},
|
|
456
|
-
if (
|
|
457
|
-
if (
|
|
458
|
-
const t =
|
|
459
|
-
r.endDate = q(t,
|
|
454
|
+
ee.value = !0, i(D.ERROR, { ...s });
|
|
455
|
+
}, Ma = Ze(Ne, 300), ha = (e) => {
|
|
456
|
+
if (s.endDate = k.value && x.value ? e : U(e), k.value)
|
|
457
|
+
if (x.value && e) {
|
|
458
|
+
const t = Je(e);
|
|
459
|
+
r.endDate = q(t, s.endTime), r.range = null, i(D.INPUT, {
|
|
460
460
|
...r,
|
|
461
461
|
range: E.value
|
|
462
462
|
});
|
|
463
463
|
} else
|
|
464
|
-
|
|
464
|
+
Ne(s.endDate);
|
|
465
465
|
else
|
|
466
|
-
|
|
467
|
-
},
|
|
468
|
-
|
|
466
|
+
Ma(s.endDate);
|
|
467
|
+
}, Ve = (e) => {
|
|
468
|
+
N(e);
|
|
469
469
|
}, Ta = () => {
|
|
470
|
-
i(D.ERROR, { ...
|
|
470
|
+
i(D.ERROR, { ...s });
|
|
471
471
|
}, Ya = () => {
|
|
472
|
-
const e =
|
|
473
|
-
if (!
|
|
474
|
-
i(D.ERROR, { ...
|
|
472
|
+
const e = s.startTime;
|
|
473
|
+
if (!o(e, s.startDate)) {
|
|
474
|
+
i(D.ERROR, { ...s });
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
477
|
r.startDate = q(r.startDate, e);
|
|
478
|
-
const t =
|
|
478
|
+
const t = Se("endDate");
|
|
479
479
|
i(D.FORM_DATE, {
|
|
480
480
|
startDate: r.startDate,
|
|
481
481
|
endDate: t,
|
|
482
482
|
startTime: e,
|
|
483
|
-
endTime:
|
|
483
|
+
endTime: s.endTime ?? a.dateFormData.endTime
|
|
484
484
|
}), i(D.INPUT, {
|
|
485
485
|
...r,
|
|
486
486
|
range: E.value
|
|
487
487
|
});
|
|
488
|
+
}, Ra = () => {
|
|
489
|
+
i(D.ERROR, { ...s });
|
|
488
490
|
}, ba = () => {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
if (!s(e, l.endDate)) {
|
|
493
|
-
i(D.ERROR, { ...l });
|
|
491
|
+
const e = s.endTime;
|
|
492
|
+
if (!o(e, s.endDate)) {
|
|
493
|
+
i(D.ERROR, { ...s });
|
|
494
494
|
return;
|
|
495
495
|
}
|
|
496
496
|
r.endDate = q(r.endDate, e), i(D.FORM_DATE, {
|
|
497
497
|
startDate: r.startDate,
|
|
498
498
|
endDate: r.endDate,
|
|
499
|
-
startTime:
|
|
499
|
+
startTime: s.startTime ?? a.dateFormData.startTime,
|
|
500
500
|
endTime: e
|
|
501
501
|
}), i(D.INPUT, {
|
|
502
502
|
...r,
|
|
503
503
|
range: E.value
|
|
504
504
|
});
|
|
505
|
-
},
|
|
506
|
-
|
|
505
|
+
}, Aa = (e) => {
|
|
506
|
+
s.startTime = e;
|
|
507
507
|
}, ka = (e) => {
|
|
508
|
-
|
|
508
|
+
s.endTime = e;
|
|
509
509
|
}, fe = (e, t, d, y) => {
|
|
510
510
|
r.startDate = e, r.endDate = t, d && (r.granularity = d), y && (r.range = y);
|
|
511
|
-
},
|
|
511
|
+
}, Sa = (e) => {
|
|
512
512
|
const t = a.quickSelectRanges?.find(({ value: d }) => d === e);
|
|
513
513
|
if (t) {
|
|
514
514
|
pe();
|
|
515
|
-
const d = t.data, y = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) :
|
|
516
|
-
|
|
517
|
-
...
|
|
515
|
+
const d = t.data, y = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : C(new Date(Date.now()))), L = d.isRelativeToNow && d.timeDifference ? new Date(y.getTime() - d.timeDifference) : d.startDate;
|
|
516
|
+
s.endDate = S(y), s.startDate = S(L), fe(L, y, null, e), a.granularities && (r.granularity = d.granularity || ae.value), s.startTime = O(L), s.endTime = O(y), r.startDate = L, r.endDate = y, d.isRelativeToNow && (b.value = {
|
|
517
|
+
...b.value,
|
|
518
518
|
[e]: {
|
|
519
|
-
startDate:
|
|
519
|
+
startDate: L,
|
|
520
520
|
endDate: y
|
|
521
521
|
}
|
|
522
522
|
}), i(D.CUSTOM_RANGE, {
|
|
523
523
|
...t.data,
|
|
524
|
-
startDate:
|
|
524
|
+
startDate: L,
|
|
525
525
|
endDate: y,
|
|
526
526
|
range: t.value
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
|
-
},
|
|
529
|
+
}, Ia = {
|
|
530
530
|
weekly: X,
|
|
531
|
-
monthly:
|
|
531
|
+
monthly: Re,
|
|
532
532
|
quarterly: h
|
|
533
533
|
}, wa = (e) => {
|
|
534
534
|
const t = r.granularity;
|
|
535
|
-
if (r.granularity = e, t && ke(t, structuredClone(
|
|
535
|
+
if (r.granularity = e, t && ke(t, structuredClone(xe(r))), r.startDate && r.endDate) {
|
|
536
536
|
switch (e) {
|
|
537
537
|
case "quarterly":
|
|
538
538
|
case "monthly":
|
|
539
539
|
case "weekly": {
|
|
540
|
-
if (
|
|
541
|
-
fe(
|
|
540
|
+
if (j[e]) {
|
|
541
|
+
fe(j[e].startDate, j[e].endDate, e);
|
|
542
542
|
break;
|
|
543
543
|
}
|
|
544
|
-
const { startDate: d, endDate: y } =
|
|
544
|
+
const { startDate: d, endDate: y } = Ia[e](
|
|
545
545
|
r.startDate,
|
|
546
546
|
r.endDate,
|
|
547
|
-
|
|
548
|
-
|
|
547
|
+
g.value.min,
|
|
548
|
+
g.value.max
|
|
549
549
|
);
|
|
550
550
|
fe(d, y, e);
|
|
551
551
|
break;
|
|
552
552
|
}
|
|
553
553
|
case "daily":
|
|
554
|
-
|
|
554
|
+
j.daily && fe(j.daily.startDate, j.daily.endDate, e);
|
|
555
555
|
break;
|
|
556
556
|
}
|
|
557
|
-
|
|
557
|
+
s.startDate = S(r.startDate), s.endDate = S(r.endDate), i(D.INPUT, {
|
|
558
558
|
...r,
|
|
559
559
|
range: E.value
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
562
|
}, Fa = c(() => ({
|
|
563
563
|
"b-date-range-picker-calendar__form-container--no-calendars": w.value
|
|
564
|
-
})),
|
|
564
|
+
})), ze = c(() => {
|
|
565
565
|
const e = K.value, t = e?.maxRange || a.maxRange;
|
|
566
566
|
if (!t)
|
|
567
567
|
return null;
|
|
568
568
|
const d = p[e?.type ?? "daily"];
|
|
569
|
-
return
|
|
569
|
+
return A(d, t, { count: t });
|
|
570
570
|
});
|
|
571
|
-
return (e, t) => (
|
|
572
|
-
|
|
573
|
-
class:
|
|
571
|
+
return (e, t) => (I(), ye("div", yt, [
|
|
572
|
+
J("div", {
|
|
573
|
+
class: ge(["b-date-range-picker-calendar__form-container", Fa.value]),
|
|
574
574
|
"data-testid": "date-range-picker-calendar-form-container"
|
|
575
575
|
}, [
|
|
576
|
-
|
|
577
|
-
u(
|
|
578
|
-
n.quickSelectRanges ? (
|
|
576
|
+
J("div", gt, [
|
|
577
|
+
u(Q)("title") ? Qe(e.$slots, "title", { key: 0 }, void 0, !0) : F("", !0),
|
|
578
|
+
n.quickSelectRanges ? (I(), B(Na, {
|
|
579
579
|
key: 1,
|
|
580
580
|
"aria-label": u(Y)("customRange"),
|
|
581
|
-
items:
|
|
581
|
+
items: le.value,
|
|
582
582
|
"model-value": E.value,
|
|
583
|
-
"onUpdate:modelValue":
|
|
583
|
+
"onUpdate:modelValue": Sa
|
|
584
584
|
}, null, 8, ["aria-label", "items", "model-value"])) : F("", !0),
|
|
585
|
-
n.granularities ? (
|
|
585
|
+
n.granularities ? (I(), B(u(rt), {
|
|
586
586
|
key: 2,
|
|
587
587
|
items: Ye.value,
|
|
588
588
|
"model-value": r.granularity,
|
|
589
589
|
"full-width": "",
|
|
590
590
|
"onUpdate:modelValue": wa
|
|
591
591
|
}, null, 8, ["items", "model-value"])) : F("", !0),
|
|
592
|
-
|
|
592
|
+
ze.value ? (I(), B(u(nt), {
|
|
593
593
|
key: 3,
|
|
594
594
|
variant: "tip"
|
|
595
595
|
}, {
|
|
596
596
|
description: $(() => [
|
|
597
|
-
ne(
|
|
597
|
+
ne(Me(ze.value), 1)
|
|
598
598
|
]),
|
|
599
599
|
_: 1
|
|
600
600
|
})) : F("", !0),
|
|
601
|
-
|
|
602
|
-
|
|
601
|
+
J("div", null, [
|
|
602
|
+
z(u(Oe), {
|
|
603
603
|
stronger: "",
|
|
604
604
|
el: "span",
|
|
605
605
|
class: "b-date-range-picker-calendar__label"
|
|
@@ -609,39 +609,39 @@ const ua = {
|
|
|
609
609
|
])),
|
|
610
610
|
_: 1
|
|
611
611
|
}),
|
|
612
|
-
|
|
613
|
-
class:
|
|
612
|
+
J("div", {
|
|
613
|
+
class: ge(oe.value)
|
|
614
614
|
}, [
|
|
615
|
-
|
|
615
|
+
z(u(He), {
|
|
616
616
|
"aria-label": u(Y)("dateFrom"),
|
|
617
617
|
"model-value": ma.value,
|
|
618
618
|
error: Z.value,
|
|
619
619
|
class: "b-date-range-picker-calendar__form-input",
|
|
620
|
-
type:
|
|
621
|
-
"onUpdate:modelValue":
|
|
622
|
-
onKeydown:
|
|
620
|
+
type: Be.value,
|
|
621
|
+
"onUpdate:modelValue": ga,
|
|
622
|
+
onKeydown: Ve
|
|
623
623
|
}, Ee({ _: 2 }, [
|
|
624
624
|
u(k) ? void 0 : {
|
|
625
625
|
name: "description",
|
|
626
626
|
fn: $(() => [
|
|
627
|
-
ne(
|
|
627
|
+
ne(Me(u(Y)(u(re))), 1)
|
|
628
628
|
]),
|
|
629
629
|
key: "0"
|
|
630
630
|
}
|
|
631
631
|
]), 1032, ["aria-label", "model-value", "error", "type"]),
|
|
632
|
-
n.allowTimeInput ? (
|
|
632
|
+
n.allowTimeInput ? (I(), B(u(Ke), {
|
|
633
633
|
key: 0,
|
|
634
634
|
"aria-label": u(Y)("timeFrom"),
|
|
635
|
-
"model-value":
|
|
635
|
+
"model-value": s.startTime,
|
|
636
636
|
class: "b-date-range-picker-calendar__form-input",
|
|
637
|
-
"onUpdate:modelValue":
|
|
637
|
+
"onUpdate:modelValue": Aa,
|
|
638
638
|
"onInput:error": Ta,
|
|
639
639
|
"onInput:valid": Ya
|
|
640
640
|
}, null, 8, ["aria-label", "model-value"])) : F("", !0)
|
|
641
641
|
], 2)
|
|
642
642
|
]),
|
|
643
|
-
|
|
644
|
-
|
|
643
|
+
J("div", null, [
|
|
644
|
+
z(u(Oe), {
|
|
645
645
|
stronger: "",
|
|
646
646
|
el: "span",
|
|
647
647
|
class: "b-date-range-picker-calendar__label"
|
|
@@ -651,50 +651,50 @@ const ua = {
|
|
|
651
651
|
])),
|
|
652
652
|
_: 1
|
|
653
653
|
}),
|
|
654
|
-
|
|
655
|
-
class:
|
|
654
|
+
J("div", {
|
|
655
|
+
class: ge(oe.value)
|
|
656
656
|
}, [
|
|
657
|
-
|
|
657
|
+
z(u(He), {
|
|
658
658
|
class: "b-date-range-picker-calendar__form-input",
|
|
659
659
|
"aria-label": u(Y)("dateTo"),
|
|
660
660
|
"model-value": Da.value,
|
|
661
661
|
error: ee.value,
|
|
662
|
-
type:
|
|
662
|
+
type: Be.value,
|
|
663
663
|
"onUpdate:modelValue": ha,
|
|
664
|
-
onKeydown:
|
|
664
|
+
onKeydown: Ve
|
|
665
665
|
}, Ee({ _: 2 }, [
|
|
666
666
|
u(k) ? void 0 : {
|
|
667
667
|
name: "description",
|
|
668
668
|
fn: $(() => [
|
|
669
|
-
ne(
|
|
669
|
+
ne(Me(u(Y)(u(re))), 1)
|
|
670
670
|
]),
|
|
671
671
|
key: "0"
|
|
672
672
|
}
|
|
673
673
|
]), 1032, ["aria-label", "model-value", "error", "type"]),
|
|
674
|
-
n.allowTimeInput ? (
|
|
674
|
+
n.allowTimeInput ? (I(), B(u(Ke), {
|
|
675
675
|
key: 0,
|
|
676
676
|
"aria-label": u(Y)("timeTo"),
|
|
677
|
-
"model-value":
|
|
677
|
+
"model-value": s.endTime,
|
|
678
678
|
class: "b-date-range-picker-calendar__form-input",
|
|
679
679
|
"onUpdate:modelValue": ka,
|
|
680
|
-
"onInput:error":
|
|
681
|
-
"onInput:valid":
|
|
680
|
+
"onInput:error": Ra,
|
|
681
|
+
"onInput:valid": ba
|
|
682
682
|
}, null, 8, ["aria-label", "model-value"])) : F("", !0)
|
|
683
683
|
], 2)
|
|
684
684
|
])
|
|
685
685
|
]),
|
|
686
|
-
u(
|
|
687
|
-
|
|
686
|
+
u(Q)("actions") ? (I(), ye("div", Mt, [
|
|
687
|
+
Qe(e.$slots, "actions", {}, void 0, !0)
|
|
688
688
|
])) : F("", !0)
|
|
689
689
|
], 2),
|
|
690
|
-
!w.value && !u(k) ? (
|
|
691
|
-
|
|
690
|
+
!w.value && !u(k) ? (I(), ye("div", ht, [
|
|
691
|
+
z(u(V), {
|
|
692
692
|
value: r,
|
|
693
693
|
"first-day-of-week": n.firstDayOfWeek,
|
|
694
694
|
"is-date-disabled": n.isDateDisabled,
|
|
695
695
|
"max-range": n.maxRange,
|
|
696
|
-
min:
|
|
697
|
-
max:
|
|
696
|
+
min: g.value.min,
|
|
697
|
+
max: g.value.max,
|
|
698
698
|
"number-of-months": n.numberOfMonths,
|
|
699
699
|
"show-end-date-on-open": n.showEndDateOnOpen,
|
|
700
700
|
granularity: K.value,
|
|
@@ -707,7 +707,7 @@ const ua = {
|
|
|
707
707
|
])) : F("", !0)
|
|
708
708
|
]));
|
|
709
709
|
}
|
|
710
|
-
}),
|
|
710
|
+
}), Rt = /* @__PURE__ */ ia(Yt, [["__scopeId", "data-v-91390acb"]]), Pe = {
|
|
711
711
|
"de-DE": { apply: "Anwenden", cancel: "Abbrechen", dateRangePicker: "Datumsbereichauswahl {name}", provideDateInAFormat: "Geben Sie das Datum im Format YYYY-MM-DD an", quarter: "Q{quarter} {year}", selectDate: "Wählen Sie ein Datum", selectDateRange: "Wählen Sie einen Datumsbereich aus", selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar" },
|
|
712
712
|
"en-GB": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", provideDateInAFormat: "Enter date in YYYY-MM-DD format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
|
|
713
713
|
"en-US": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", provideDateInAFormat: "Provide date in a YYYY-MM-DD format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
|
|
@@ -718,15 +718,15 @@ const ua = {
|
|
|
718
718
|
"ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
|
|
719
719
|
"pt-BR": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Seletor de intervalo de datas {name}", provideDateInAFormat: "Inclua a data no formato AAAA-MM-DD", quarter: "{quarter}º trimestre de {year}", selectDate: "Selecione uma data", selectDateRange: "Selecione um intervalo de datas", selectedDateIsNotAvailable: "A data selecionada não está disponível" },
|
|
720
720
|
"zh-CN": { apply: "应用", cancel: "取消", dateRangePicker: "日期范围选择器 {name}", provideDateInAFormat: "提供 YYYY-MM-DD 格式的日期", quarter: "{year} {quarter} 季度", selectDate: "选择日期", selectDateRange: "选择日期范围", selectedDateIsNotAvailable: "所选日期不可用" }
|
|
721
|
-
},
|
|
721
|
+
}, bt = ({
|
|
722
722
|
datePickerValue: n,
|
|
723
723
|
isDateIncorrect: m,
|
|
724
724
|
quickSelectRanges: v,
|
|
725
|
-
isMonthVariant:
|
|
725
|
+
isMonthVariant: l,
|
|
726
726
|
withTimeInput: p,
|
|
727
727
|
placeholder: a
|
|
728
728
|
}) => {
|
|
729
|
-
const { locale: i, t: f } = qe({ messages:
|
|
729
|
+
const { locale: i, t: f } = qe({ messages: Pe }), { dateToInputDateString: Q } = _e(), Y = (R) => !!R && !isNaN(R.getTime()), A = Te({
|
|
730
730
|
startDate: null,
|
|
731
731
|
endDate: null,
|
|
732
732
|
startTime: null,
|
|
@@ -734,53 +734,53 @@ const ua = {
|
|
|
734
734
|
});
|
|
735
735
|
return he(
|
|
736
736
|
n,
|
|
737
|
-
(
|
|
738
|
-
|
|
737
|
+
(R) => {
|
|
738
|
+
A.startDate = Q(R?.startDate), A.endDate = Q(R?.endDate), A.startTime = O(R?.startDate), A.endTime = O(R?.endDate);
|
|
739
739
|
},
|
|
740
740
|
{ immediate: !0 }
|
|
741
741
|
), {
|
|
742
742
|
// Values
|
|
743
743
|
dateDisplayValue: c(() => {
|
|
744
744
|
if (m.value)
|
|
745
|
-
return `${
|
|
745
|
+
return `${A.startDate || ""} - ${A.endDate || ""}`;
|
|
746
746
|
if (!n.value || !n.value.startDate && !n.value.endDate)
|
|
747
747
|
return a?.value || f("selectDateRange");
|
|
748
748
|
if (v.value?.length) {
|
|
749
|
-
const
|
|
750
|
-
if (
|
|
751
|
-
return
|
|
749
|
+
const M = v.value.find(({ value: N }) => N === n.value?.range);
|
|
750
|
+
if (M)
|
|
751
|
+
return M.label;
|
|
752
752
|
}
|
|
753
753
|
if (n.value.granularity === "quarterly") {
|
|
754
|
-
const { startDate:
|
|
755
|
-
if (dt(
|
|
756
|
-
return
|
|
757
|
-
const
|
|
758
|
-
return `${
|
|
754
|
+
const { startDate: M, endDate: N } = n.value, U = f("quarter", { quarter: $e(M), year: na(M) });
|
|
755
|
+
if (dt(M, N))
|
|
756
|
+
return U;
|
|
757
|
+
const se = f("quarter", { quarter: $e(N), year: na(N) });
|
|
758
|
+
return `${U} - ${se}`;
|
|
759
759
|
}
|
|
760
760
|
if (!Y(n.value.startDate) || !Y(n.value.endDate))
|
|
761
|
-
return `${
|
|
762
|
-
let
|
|
763
|
-
return p.value && (
|
|
764
|
-
...
|
|
761
|
+
return `${A.startDate || ""} - ${A.endDate || ""}`;
|
|
762
|
+
let R = l?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
|
|
763
|
+
return p.value && (R = {
|
|
764
|
+
...R,
|
|
765
765
|
hour: "numeric",
|
|
766
766
|
minute: "numeric",
|
|
767
767
|
second: "numeric",
|
|
768
768
|
hour12: !1
|
|
769
|
-
}), Ha(i.value,
|
|
769
|
+
}), Ha(i.value, R).formatRange(
|
|
770
770
|
n.value.startDate,
|
|
771
771
|
n.value.endDate
|
|
772
772
|
);
|
|
773
773
|
}),
|
|
774
|
-
textInputDisplayValue:
|
|
774
|
+
textInputDisplayValue: A,
|
|
775
775
|
// Methods
|
|
776
776
|
formatTextInputDisplayValue: () => ""
|
|
777
777
|
};
|
|
778
|
-
},
|
|
779
|
-
i18n: { messages:
|
|
778
|
+
}, At = { class: "b-date-range-picker" }, kt = { class: "b-date-range-picker__footer" }, St = {
|
|
779
|
+
i18n: { messages: Pe },
|
|
780
780
|
name: "bento-date-range-picker",
|
|
781
781
|
model: { prop: "modelValue" }
|
|
782
|
-
},
|
|
783
|
-
...
|
|
782
|
+
}, It = /* @__PURE__ */ oa({
|
|
783
|
+
...St,
|
|
784
784
|
props: {
|
|
785
785
|
allowTimeInput: { type: Boolean },
|
|
786
786
|
firstDayOfWeek: { default: void 0 },
|
|
@@ -808,7 +808,7 @@ const ua = {
|
|
|
808
808
|
},
|
|
809
809
|
emits: ["update:model-value", "input"],
|
|
810
810
|
setup(n, { emit: m }) {
|
|
811
|
-
const v = m,
|
|
811
|
+
const v = m, l = n, p = Oa(), { t: a } = qe({ messages: Pe }), { dateToInputDateString: i } = _e(), f = ue("bento-date-range-picker-container"), Q = ue("bento-date-range-picker-label"), Y = ue("bento-date-range-picker-description"), A = ue("bento-date-range-picker-error"), k = ue("bento-date-range-picker-date-error"), re = c(() => l.label || a("dateRangePicker", { name: f })), { resolvedFirstDayOfWeek: R } = Ka(Ie(l, "firstDayOfWeek")), M = _a({
|
|
812
812
|
none: 0,
|
|
813
813
|
one: 710,
|
|
814
814
|
// width of date range picker with one panes
|
|
@@ -816,77 +816,77 @@ const ua = {
|
|
|
816
816
|
// width of date range picker with two panes
|
|
817
817
|
three: 1290
|
|
818
818
|
// width of date range picker with three panes
|
|
819
|
-
}),
|
|
820
|
-
const
|
|
819
|
+
}), N = c(() => {
|
|
820
|
+
const o = M.active().value, x = {
|
|
821
821
|
none: 0,
|
|
822
822
|
one: 1,
|
|
823
823
|
two: 2
|
|
824
824
|
};
|
|
825
|
-
if (
|
|
826
|
-
const ie =
|
|
827
|
-
return
|
|
825
|
+
if (o in x) {
|
|
826
|
+
const ie = x[o];
|
|
827
|
+
return l.numberOfMonths === void 0 ? ie : Math.min(l.numberOfMonths, ie);
|
|
828
828
|
}
|
|
829
|
-
return
|
|
830
|
-
}),
|
|
831
|
-
const
|
|
829
|
+
return l.numberOfMonths;
|
|
830
|
+
}), U = c(() => l?.quickSelectRanges && l.quickSelectRanges.map((o) => {
|
|
831
|
+
const x = o.data.endDate ? void 0 : new Date(Date.now()).getTime() - o.data.startDate.getTime();
|
|
832
832
|
return {
|
|
833
|
-
...
|
|
833
|
+
...o,
|
|
834
834
|
data: {
|
|
835
|
-
...
|
|
835
|
+
...o.data,
|
|
836
836
|
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
837
|
-
timeDifference:
|
|
837
|
+
timeDifference: x
|
|
838
838
|
}
|
|
839
839
|
};
|
|
840
|
-
})),
|
|
840
|
+
})), se = c(() => l.label ? Q : p?.["aria-labelledby"] ?? null), b = P(!1), ae = P(null), w = P(!1), { isReadOnly: r } = et(Ie(l, "readonly")), { emitValue: E } = tt(v);
|
|
841
841
|
he(
|
|
842
|
-
() =>
|
|
842
|
+
() => l.disabled,
|
|
843
843
|
() => {
|
|
844
|
-
|
|
844
|
+
l.disabled && w.value && (w.value = !1);
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
|
-
const
|
|
848
|
-
"b-date-range-picker__description--error": !!
|
|
849
|
-
})), Ye = c(() =>
|
|
850
|
-
datePickerValue:
|
|
851
|
-
isDateIncorrect:
|
|
852
|
-
quickSelectRanges:
|
|
847
|
+
const oe = c(() => l.modelValue || l.value), le = c(() => l.hasActions ? !te.value && b.value : b.value), K = c(() => ({
|
|
848
|
+
"b-date-range-picker__description--error": !!l.errorMessage || le.value
|
|
849
|
+
})), Ye = c(() => l.variant === "month"), ce = c(() => l.allowTimeInput && l.variant !== "month"), { dateDisplayValue: g, textInputDisplayValue: h } = bt({
|
|
850
|
+
datePickerValue: oe,
|
|
851
|
+
isDateIncorrect: b,
|
|
852
|
+
quickSelectRanges: U,
|
|
853
853
|
isMonthVariant: Ye,
|
|
854
854
|
withTimeInput: ce,
|
|
855
|
-
placeholder:
|
|
856
|
-
}),
|
|
857
|
-
() => `${
|
|
855
|
+
placeholder: Ie(l, "placeholder")
|
|
856
|
+
}), Re = c(
|
|
857
|
+
() => `${l.description ? Y : ""} ${l.errorMessage ? A : ""} ${b.value ? k : ""}`.trim() || null
|
|
858
858
|
), X = () => {
|
|
859
859
|
w.value = !1;
|
|
860
|
-
},
|
|
860
|
+
}, be = () => {
|
|
861
861
|
w.value = !0;
|
|
862
|
-
}, me =
|
|
862
|
+
}, me = P(g.value), De = P(
|
|
863
863
|
// textInputDisplayValue is a reactive object
|
|
864
|
-
structuredClone(
|
|
865
|
-
),
|
|
866
|
-
() =>
|
|
867
|
-
),
|
|
868
|
-
() =>
|
|
864
|
+
structuredClone(xe(h))
|
|
865
|
+
), W = P(l.modelValue ?? l.value), te = P(!0), Ae = c(
|
|
866
|
+
() => l.hasActions ? De.value : h
|
|
867
|
+
), j = c(
|
|
868
|
+
() => l.hasActions ? me.value : g.value
|
|
869
869
|
);
|
|
870
|
-
|
|
871
|
-
if (
|
|
870
|
+
la(() => {
|
|
871
|
+
if (l.hasActions || We(
|
|
872
872
|
'BentoDateRangePicker "hasActions" property',
|
|
873
873
|
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
874
874
|
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
875
875
|
"2.0.0"
|
|
876
|
-
),
|
|
876
|
+
), l.value && We(
|
|
877
877
|
'BentoDateRangePicker "value" property',
|
|
878
878
|
'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
|
|
879
879
|
"2.0.0"
|
|
880
|
-
),
|
|
880
|
+
), l.granularities && l.variant !== "month" && l.granularities.find(({ type: o }) => o === "quarterly"))
|
|
881
881
|
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
882
|
-
}), he([() =>
|
|
883
|
-
me.value =
|
|
882
|
+
}), he([() => l.value, () => l.modelValue], () => {
|
|
883
|
+
me.value = g.value, De.value = structuredClone(xe(h));
|
|
884
884
|
});
|
|
885
885
|
const ke = c(() => [
|
|
886
886
|
{
|
|
887
887
|
title: a("apply"),
|
|
888
888
|
event: () => {
|
|
889
|
-
E(
|
|
889
|
+
E(W.value), X(), te.value = !0;
|
|
890
890
|
},
|
|
891
891
|
disabled: te.value
|
|
892
892
|
},
|
|
@@ -895,85 +895,85 @@ const ua = {
|
|
|
895
895
|
event: X
|
|
896
896
|
}
|
|
897
897
|
]);
|
|
898
|
-
he(
|
|
899
|
-
if (
|
|
900
|
-
te.value =
|
|
898
|
+
he(W, (o) => {
|
|
899
|
+
if (l.hasActions) {
|
|
900
|
+
te.value = b.value;
|
|
901
901
|
return;
|
|
902
902
|
}
|
|
903
|
-
E(
|
|
903
|
+
E(o);
|
|
904
904
|
});
|
|
905
|
-
const pe = (
|
|
906
|
-
|
|
907
|
-
},
|
|
908
|
-
|
|
905
|
+
const pe = (o) => {
|
|
906
|
+
b.value = !1, h.startDate = i(o.startDate), h.endDate = i(o.endDate), h.startTime = O(o.startDate), h.endTime = O(o.endDate), W.value = o;
|
|
907
|
+
}, S = async () => {
|
|
908
|
+
b.value && (b.value = !1), W.value = null;
|
|
909
909
|
}, Z = () => {
|
|
910
910
|
if (!w.value) {
|
|
911
911
|
w.value = !0;
|
|
912
912
|
return;
|
|
913
913
|
}
|
|
914
|
-
|
|
915
|
-
}, ee = (
|
|
916
|
-
|
|
917
|
-
},
|
|
918
|
-
|
|
919
|
-
}, ve = (
|
|
920
|
-
|
|
914
|
+
b.value || (w.value = !1);
|
|
915
|
+
}, ee = (o) => {
|
|
916
|
+
b.value = !1, o.startTime && (h.startTime = o.startTime), o.endTime && (h.endTime = o.endTime);
|
|
917
|
+
}, s = (o) => {
|
|
918
|
+
b.value = !0, h.startDate = o.startDate, h.endDate = o.endDate, W.value = { startDate: null, endDate: null };
|
|
919
|
+
}, ve = (o) => {
|
|
920
|
+
o && (h.startDate = i(o.startDate), h.endDate = i(o.endDate), h.startTime = O(o.startDate), h.endTime = O(o.endDate), W.value = o);
|
|
921
921
|
};
|
|
922
|
-
return (
|
|
923
|
-
|
|
922
|
+
return (o, x) => qa((I(), ye("div", At, [
|
|
923
|
+
o.label ? (I(), B(u(it), {
|
|
924
924
|
key: 0,
|
|
925
|
-
id: u(
|
|
926
|
-
label:
|
|
927
|
-
"tooltip-text":
|
|
928
|
-
optional:
|
|
929
|
-
required:
|
|
925
|
+
id: u(Q),
|
|
926
|
+
label: o.label,
|
|
927
|
+
"tooltip-text": o.tooltipText,
|
|
928
|
+
optional: o.optional,
|
|
929
|
+
required: o.required
|
|
930
930
|
}, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : F("", !0),
|
|
931
|
-
|
|
932
|
-
onKeydown:
|
|
931
|
+
J("div", {
|
|
932
|
+
onKeydown: Ue(Z, ["enter"])
|
|
933
933
|
}, [
|
|
934
|
-
|
|
934
|
+
z(u(Va), {
|
|
935
935
|
ref_key: "inputContainerRef",
|
|
936
936
|
ref: ae,
|
|
937
937
|
"always-combobox-is-input": "",
|
|
938
938
|
ariaControls: u(f),
|
|
939
939
|
ariaExpanded: w.value,
|
|
940
|
-
"aria-labelledby":
|
|
941
|
-
"aria-describedby":
|
|
942
|
-
"aria-required":
|
|
943
|
-
disabled:
|
|
944
|
-
"is-invalid": !!
|
|
940
|
+
"aria-labelledby": se.value,
|
|
941
|
+
"aria-describedby": Re.value,
|
|
942
|
+
"aria-required": o.required,
|
|
943
|
+
disabled: o.disabled,
|
|
944
|
+
"is-invalid": !!o.errorMessage || le.value,
|
|
945
945
|
open: w.value,
|
|
946
|
-
"display-value":
|
|
946
|
+
"display-value": j.value,
|
|
947
947
|
readonly: u(r),
|
|
948
|
-
onOpen:
|
|
949
|
-
onClear:
|
|
948
|
+
onOpen: be,
|
|
949
|
+
onClear: S,
|
|
950
950
|
onClose: X
|
|
951
951
|
}, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-required", "disabled", "is-invalid", "open", "display-value", "readonly"])
|
|
952
952
|
], 32),
|
|
953
|
-
|
|
953
|
+
le.value ? (I(), B(u(ta), {
|
|
954
954
|
key: 1,
|
|
955
955
|
id: u(k),
|
|
956
956
|
"error-message": u(a)("provideDateInAFormat"),
|
|
957
957
|
class: "b-date-range-picker__error-message"
|
|
958
958
|
}, null, 8, ["id", "error-message"])) : F("", !0),
|
|
959
|
-
|
|
959
|
+
o.errorMessage ? (I(), B(u(ta), {
|
|
960
960
|
key: 2,
|
|
961
|
-
id: u(
|
|
962
|
-
"error-message":
|
|
961
|
+
id: u(A),
|
|
962
|
+
"error-message": o.errorMessage,
|
|
963
963
|
class: "b-date-range-picker__error-message"
|
|
964
964
|
}, null, 8, ["id", "error-message"])) : F("", !0),
|
|
965
|
-
|
|
965
|
+
o.description ? (I(), B(u(Oe), {
|
|
966
966
|
key: 3,
|
|
967
967
|
id: u(Y),
|
|
968
|
-
class:
|
|
968
|
+
class: ge(["b-date-range-picker__description", K.value]),
|
|
969
969
|
el: "span"
|
|
970
970
|
}, {
|
|
971
971
|
default: $(() => [
|
|
972
|
-
ne(
|
|
972
|
+
ne(Me(o.description), 1)
|
|
973
973
|
]),
|
|
974
974
|
_: 1
|
|
975
975
|
}, 8, ["id", "class"])) : F("", !0),
|
|
976
|
-
ae.value ? (
|
|
976
|
+
ae.value ? (I(), B(u(Ba), {
|
|
977
977
|
key: 4,
|
|
978
978
|
id: u(f),
|
|
979
979
|
class: "b-date-range-picker__container",
|
|
@@ -985,34 +985,34 @@ const ua = {
|
|
|
985
985
|
"fit-content": "",
|
|
986
986
|
"trap-all": "",
|
|
987
987
|
"overflow-visible": "",
|
|
988
|
-
onKeydown:
|
|
988
|
+
onKeydown: Ue(X, ["esc", "native"])
|
|
989
989
|
}, {
|
|
990
990
|
default: $(() => [
|
|
991
|
-
|
|
991
|
+
z(u(Rt), {
|
|
992
992
|
"allow-time-input": ce.value,
|
|
993
|
-
"quick-select-ranges":
|
|
994
|
-
value:
|
|
995
|
-
"first-day-of-week": u(
|
|
996
|
-
granularities:
|
|
997
|
-
"is-date-disabled":
|
|
998
|
-
"max-range":
|
|
999
|
-
min:
|
|
1000
|
-
max:
|
|
1001
|
-
"number-of-months":
|
|
1002
|
-
"show-end-date-on-open":
|
|
1003
|
-
"date-form-data":
|
|
1004
|
-
variant:
|
|
993
|
+
"quick-select-ranges": U.value,
|
|
994
|
+
value: oe.value,
|
|
995
|
+
"first-day-of-week": u(R),
|
|
996
|
+
granularities: o.granularities,
|
|
997
|
+
"is-date-disabled": o.isDateDisabled,
|
|
998
|
+
"max-range": o.maxRange,
|
|
999
|
+
min: o.min,
|
|
1000
|
+
max: o.max,
|
|
1001
|
+
"number-of-months": N.value,
|
|
1002
|
+
"show-end-date-on-open": o.showEndDateOnOpen,
|
|
1003
|
+
"date-form-data": Ae.value,
|
|
1004
|
+
variant: o.variant,
|
|
1005
1005
|
onCustomRange: ve,
|
|
1006
1006
|
onInput: pe,
|
|
1007
|
-
onError:
|
|
1007
|
+
onError: s,
|
|
1008
1008
|
onFormDate: ee
|
|
1009
1009
|
}, Ee({ _: 2 }, [
|
|
1010
|
-
|
|
1010
|
+
o.hasActions ? {
|
|
1011
1011
|
name: "actions",
|
|
1012
1012
|
fn: $(() => [
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1013
|
+
z(u(Pa)),
|
|
1014
|
+
J("div", kt, [
|
|
1015
|
+
z(u(Ca), {
|
|
1016
1016
|
actions: ke.value,
|
|
1017
1017
|
layout: u(ut).SPACE_BETWEEN
|
|
1018
1018
|
}, null, 8, ["actions", "layout"])
|
|
@@ -1028,11 +1028,11 @@ const ua = {
|
|
|
1028
1028
|
[u(at), X]
|
|
1029
1029
|
]);
|
|
1030
1030
|
}
|
|
1031
|
-
}), nn = /* @__PURE__ */ ia(
|
|
1031
|
+
}), nn = /* @__PURE__ */ ia(It, [["__scopeId", "data-v-e00826fe"]]);
|
|
1032
1032
|
export {
|
|
1033
1033
|
nn as B,
|
|
1034
|
-
|
|
1034
|
+
Rt as D,
|
|
1035
1035
|
ct as a,
|
|
1036
1036
|
we as i
|
|
1037
1037
|
};
|
|
1038
|
-
//# sourceMappingURL=date-range-picker.
|
|
1038
|
+
//# sourceMappingURL=date-range-picker.DK9M8DHP.js.map
|