@adyen/bento-vue3 1.4.1 → 1.5.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 +4 -0
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-lazy-load/data-grid-lazy-load.vue.d.ts +17 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useLazyLoading/useLazyLoading.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +28 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +455 -123
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +12 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +5 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +12 -3
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +14 -3
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.types.d.ts +1 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.utils.d.ts +5 -21
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +122 -72
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/stepper/components/step/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/stepper/components/step/step.vue.d.ts +35 -0
- package/dist/@types/packages/vue2/src/components/stepper/composables/useKeyboardNavigation/useKeyboardNavigation.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/stepper/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.keys.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +44 -0
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +363 -82
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/types/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/types/lazy-load.d.ts +1 -0
- package/dist/accordion.js +3 -3
- package/dist/alert.js +4 -4
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +4 -4
- package/dist/checkbox.js +6 -6
- package/dist/chunks/base-button.9740f320.js +116 -0
- package/dist/chunks/base-button.9740f320.js.map +1 -0
- package/dist/chunks/base-modal.be77971f.js +296 -0
- package/dist/chunks/base-modal.be77971f.js.map +1 -0
- package/dist/chunks/{button.7d09c245.js → button.7072457f.js} +3 -3
- package/dist/chunks/{button.7d09c245.js.map → button.7072457f.js.map} +1 -1
- package/dist/chunks/{calendar.0e42130b.js → calendar.1e50c7d1.js} +5 -5
- package/dist/chunks/{calendar.0e42130b.js.map → calendar.1e50c7d1.js.map} +1 -1
- package/dist/chunks/{checkbox.17462cb0.js → checkbox.638bab98.js} +24 -24
- package/dist/chunks/{checkbox.17462cb0.js.map → checkbox.638bab98.js.map} +1 -1
- package/dist/chunks/{chevron-up.c03b58f8.js → chevron-up.9bf21068.js} +3 -3
- package/dist/chunks/{chevron-up.c03b58f8.js.map → chevron-up.9bf21068.js.map} +1 -1
- package/dist/chunks/{controls-group.0d6db9c0.js → controls-group.efcf4e8d.js} +2 -2
- package/dist/chunks/{controls-group.0d6db9c0.js.map → controls-group.efcf4e8d.js.map} +1 -1
- package/dist/chunks/{copy.c9a29be0.js → copy.527c3d76.js} +3 -3
- package/dist/chunks/{copy.c9a29be0.js.map → copy.527c3d76.js.map} +1 -1
- package/dist/chunks/debounce.b5ef6acf.js +10 -0
- package/dist/chunks/debounce.b5ef6acf.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.cd789a95.js → dropdown-default-textbox.a1789dc7.js} +19 -18
- package/dist/chunks/{dropdown-default-textbox.cd789a95.js.map → dropdown-default-textbox.a1789dc7.js.map} +1 -1
- package/dist/chunks/{dropdown.ff4f94a8.js → dropdown.22e51667.js} +9 -7
- package/dist/chunks/dropdown.22e51667.js.map +1 -0
- package/dist/chunks/{error-message.8c67a507.js → error-message.37b6c7aa.js} +2 -2
- package/dist/chunks/{error-message.8c67a507.js.map → error-message.37b6c7aa.js.map} +1 -1
- package/dist/chunks/{footer-actions.a587e374.js → footer-actions.5275203a.js} +3 -3
- package/dist/chunks/{footer-actions.a587e374.js.map → footer-actions.5275203a.js.map} +1 -1
- package/dist/chunks/{grid-layout.984317d7.js → grid-layout.c98e6bc7.js} +2 -2
- package/dist/chunks/{grid-layout.984317d7.js.map → grid-layout.c98e6bc7.js.map} +1 -1
- package/dist/chunks/{index.77c651df.js → index.32ed68b7.js} +2 -2
- package/dist/chunks/{index.77c651df.js.map → index.32ed68b7.js.map} +1 -1
- package/dist/chunks/{index.fdb0c13d.js → index.604da8e9.js} +3 -3
- package/dist/chunks/{index.fdb0c13d.js.map → index.604da8e9.js.map} +1 -1
- package/dist/chunks/{index.fd1cd23a.js → index.a57930ba.js} +197 -188
- package/dist/chunks/index.a57930ba.js.map +1 -0
- package/dist/chunks/{index.ee69b530.js → index.c22c4278.js} +6 -6
- package/dist/chunks/{index.ee69b530.js.map → index.c22c4278.js.map} +1 -1
- package/dist/chunks/{index.140bf28f.js → index.c62ea69f.js} +2 -2
- package/dist/chunks/{index.140bf28f.js.map → index.c62ea69f.js.map} +1 -1
- package/dist/chunks/{index.450b70d5.js → index.dd20095f.js} +3 -3
- package/dist/chunks/{index.450b70d5.js.map → index.dd20095f.js.map} +1 -1
- package/dist/chunks/{debounce.f8d92e44.js → keyboard-navigation.ca47dfa8.js} +11 -17
- package/dist/chunks/keyboard-navigation.ca47dfa8.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.ffe70226.js → listbox-option-tag.fa70334e.js} +3 -3
- package/dist/chunks/{listbox-option-tag.ffe70226.js.map → listbox-option-tag.fa70334e.js.map} +1 -1
- package/dist/chunks/{listbox.f535a736.js → listbox.4205c0de.js} +12 -11
- package/dist/chunks/{listbox.f535a736.js.map → listbox.4205c0de.js.map} +1 -1
- package/dist/chunks/{loading-button.bc6e3967.js → loading-button.41c15584.js} +2 -2
- package/dist/chunks/{loading-button.bc6e3967.js.map → loading-button.41c15584.js.map} +1 -1
- package/dist/chunks/{tooltip.973c86d3.js → tooltip.c8350cd0.js} +37 -36
- package/dist/chunks/{tooltip.973c86d3.js.map → tooltip.c8350cd0.js.map} +1 -1
- package/dist/chunks/use-has-slot.3daaffc6.js +17 -0
- package/dist/chunks/use-has-slot.3daaffc6.js.map +1 -0
- package/dist/code-snippet.js +469 -466
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +963 -834
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +21 -21
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +853 -784
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +72 -51
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +190 -112
- package/dist/header.js.map +1 -1
- package/dist/image.js +3 -1
- package/dist/index.js +219 -211
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +5 -5
- package/dist/internal.js +7 -7
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +114 -104
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +33 -30
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +72 -61
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +1238 -192
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +5 -5
- package/dist/search-bar.js +3 -3
- package/dist/segmented-control.js +15 -15
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +7 -7
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +276 -0
- package/dist/stepper.js.map +1 -0
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +5 -5
- package/dist/tabs.js +2 -2
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +5 -5
- package/dist/toast.js +4 -4
- package/dist/toggle.js +12 -12
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +3 -3
- package/dist/chunks/base-button.c4ac1ad1.js +0 -108
- package/dist/chunks/base-button.c4ac1ad1.js.map +0 -1
- package/dist/chunks/base-modal.db7a9829.js +0 -291
- package/dist/chunks/base-modal.db7a9829.js.map +0 -1
- package/dist/chunks/debounce.f8d92e44.js.map +0 -1
- package/dist/chunks/dropdown.ff4f94a8.js.map +0 -1
- package/dist/chunks/index.fd1cd23a.js.map +0 -1
- package/dist/chunks/use-has-slot.9fac7123.js +0 -16
- package/dist/chunks/use-has-slot.9fac7123.js.map +0 -1
|
@@ -1,51 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { c as
|
|
4
|
-
import { BentoPopover as
|
|
1
|
+
import { defineComponent as Ee, reactive as te, ref as F, computed as q, onMounted as Ue, resolveComponent as w, openBlock as f, createElementBlock as Q, createElementVNode as h, createBlock as O, createCommentVNode as R, renderSlot as ve, createVNode as P, withCtx as k, createTextVNode as E, normalizeClass as ne, toRef as Ie, watch as $e, resolveDirective as Ne, withDirectives as Ae, toDisplayString as z, withKeys as Be } from "vue";
|
|
2
|
+
import { B as qe } from "./directive.0408e565.js";
|
|
3
|
+
import { c as Ke } from "./dropdown-default-textbox.a1789dc7.js";
|
|
4
|
+
import { BentoPopover as Ye } from "../popover.js";
|
|
5
5
|
import { g as W } from "./unique-id.a2a2b458.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { B as
|
|
8
|
-
import { f as
|
|
9
|
-
import { t as
|
|
10
|
-
import { r as
|
|
11
|
-
import { u as
|
|
12
|
-
import { BentoInputField as
|
|
13
|
-
import { B as
|
|
14
|
-
import { d as
|
|
15
|
-
import { u as
|
|
16
|
-
import { e as
|
|
17
|
-
import { C as G } from "./calendar.
|
|
18
|
-
import { _ as
|
|
19
|
-
import { E as
|
|
20
|
-
import "../assets/
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
var s =
|
|
24
|
-
return s.
|
|
6
|
+
import { u as re } from "./i18n.6c402773.js";
|
|
7
|
+
import { B as Se } from "./index.32ed68b7.js";
|
|
8
|
+
import { f as Re, v as Ve, D as M } from "./date-input.9186a0bf.js";
|
|
9
|
+
import { t as oe, f as K } from "./index.c62ea69f.js";
|
|
10
|
+
import { r as X, t as j, e as C, d as se, f as ie } from "./index.f55fdc32.js";
|
|
11
|
+
import { u as Le } from "./use-form-layout-loading.d03e5d48.js";
|
|
12
|
+
import { BentoInputField as He } from "../input-field.js";
|
|
13
|
+
import { B as We } from "./dropdown.22e51667.js";
|
|
14
|
+
import { d as J } from "./debounce.b5ef6acf.js";
|
|
15
|
+
import { u as Ge } from "./use-has-slot.3daaffc6.js";
|
|
16
|
+
import { e as ee } from "./index.fdf12170.js";
|
|
17
|
+
import { C as G } from "./calendar.1e50c7d1.js";
|
|
18
|
+
import { _ as Oe } from "./_plugin-vue_export-helper.dad06003.js";
|
|
19
|
+
import { E as je } from "./error-message.37b6c7aa.js";
|
|
20
|
+
import "../assets/index12.css";
|
|
21
|
+
function be(e, t) {
|
|
22
|
+
X(2, arguments);
|
|
23
|
+
var s = j(e), i = j(t);
|
|
24
|
+
return s.getTime() === i.getTime();
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
var s =
|
|
29
|
-
return s.
|
|
26
|
+
function ze(e, t) {
|
|
27
|
+
X(2, arguments);
|
|
28
|
+
var s = j(e), i = oe(t);
|
|
29
|
+
return s.setHours(i), s;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
var s =
|
|
34
|
-
return s.
|
|
31
|
+
function Je(e, t) {
|
|
32
|
+
X(2, arguments);
|
|
33
|
+
var s = j(e), i = oe(t);
|
|
34
|
+
return s.setMinutes(i), s;
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
36
|
+
function Qe(e, t) {
|
|
37
|
+
X(2, arguments);
|
|
38
|
+
var s = j(e), i = oe(t);
|
|
39
|
+
return s.setSeconds(i), s;
|
|
40
|
+
}
|
|
41
|
+
var d = /* @__PURE__ */ ((e) => (e.CUSTOM_RANGE = "custom-range", e.INPUT = "input", e.ERROR = "error", e.FORM_DATE = "form-date", e))(d || {});
|
|
42
|
+
const Xe = /[\d]/, Ze = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, ea = (e) => {
|
|
43
|
+
const { selectionStart: t } = e.target, s = Xe.test(e.key) || e.key === "Backspace", i = [1, 2, 4, 5].includes(t) && e.key === ":";
|
|
44
|
+
!s && !i && e.preventDefault();
|
|
45
|
+
}, Te = (e) => {
|
|
41
46
|
if (!e)
|
|
42
47
|
return e;
|
|
43
48
|
let t = e;
|
|
44
49
|
if (t.length === 1 && parseInt(e, 10) > 2)
|
|
45
50
|
return `0${t}:`;
|
|
46
|
-
const [s,
|
|
47
|
-
return [2, 5].includes(t.length) &&
|
|
48
|
-
},
|
|
51
|
+
const [s, i] = t.slice(-2);
|
|
52
|
+
return [2, 5].includes(t.length) && i === ":" && (t = `${t.slice(0, t.length - 2)}0${s}`), (Ze.test(t) || xe.test(t)) && (t += ":"), t;
|
|
53
|
+
}, ye = {
|
|
49
54
|
"en-US": {
|
|
50
55
|
customRange: "Custom range",
|
|
51
56
|
dateFrom: "Date from",
|
|
@@ -56,13 +61,13 @@ const ze = /[\d]/, Je = /^\d{2}$/, Qe = /^\d{2}:\d{2}$/, Xe = (e) => {
|
|
|
56
61
|
timeFrom: "Time from",
|
|
57
62
|
timeTo: "Time to"
|
|
58
63
|
}
|
|
59
|
-
},
|
|
60
|
-
i18n: { messages:
|
|
64
|
+
}, ke = 300, ae = "customRange", aa = Ee({
|
|
65
|
+
i18n: { messages: ye },
|
|
61
66
|
name: "date-range-picker-calendar",
|
|
62
67
|
components: {
|
|
63
|
-
BentoDropdown:
|
|
64
|
-
BentoInputField:
|
|
65
|
-
BentoTypography:
|
|
68
|
+
BentoDropdown: We,
|
|
69
|
+
BentoInputField: He,
|
|
70
|
+
BentoTypography: Se,
|
|
66
71
|
Calendar: G
|
|
67
72
|
},
|
|
68
73
|
props: {
|
|
@@ -110,134 +115,138 @@ const ze = /[\d]/, Je = /^\d{2}$/, Qe = /^\d{2}:\d{2}$/, Xe = (e) => {
|
|
|
110
115
|
value: { type: Object, default: void 0 }
|
|
111
116
|
},
|
|
112
117
|
emits: [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
d.CUSTOM_RANGE,
|
|
119
|
+
d.INPUT,
|
|
120
|
+
d.ERROR,
|
|
121
|
+
d.FORM_DATE
|
|
117
122
|
],
|
|
118
123
|
setup(e, { emit: t, slots: s }) {
|
|
119
|
-
var me, pe;
|
|
120
|
-
const { locale:
|
|
124
|
+
var me, pe, fe, ge;
|
|
125
|
+
const { locale: i, t: _ } = re({ messages: ye }), g = { de: se, enUS: C, fr: ie }, o = te({
|
|
121
126
|
startDate: (me = e.value) == null ? void 0 : me.startDate,
|
|
122
127
|
endDate: (pe = e.value) == null ? void 0 : pe.endDate
|
|
123
|
-
}), c =
|
|
128
|
+
}), c = F(
|
|
129
|
+
((ge = (fe = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : fe.find(
|
|
130
|
+
({ data: a }) => be(a.startDate, o.startDate) && be(a.endDate, o.endDate)
|
|
131
|
+
)) == null ? void 0 : ge.value) ?? ae
|
|
132
|
+
), p = q(() => ({
|
|
124
133
|
"b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
|
|
125
|
-
})), S =
|
|
126
|
-
{ label: _("customRange"), value:
|
|
134
|
+
})), S = q(() => e.quickSelectRanges ? [
|
|
135
|
+
{ label: _("customRange"), value: ae },
|
|
127
136
|
...e.quickSelectRanges
|
|
128
137
|
] : []), v = () => {
|
|
129
|
-
e != null && e.quickSelectRanges && (c.value =
|
|
130
|
-
},
|
|
131
|
-
locale: g[
|
|
132
|
-
}) : "",
|
|
133
|
-
locale: g[
|
|
134
|
-
}) : "", D =
|
|
138
|
+
e != null && e.quickSelectRanges && (c.value = ae);
|
|
139
|
+
}, l = (a) => a ? K(a, M.NUMERIC_DATE_YEAR_FIRST, {
|
|
140
|
+
locale: g[i.value.substring(0, 2)] || C
|
|
141
|
+
}) : "", b = (a) => a ? K(a, M.HOUR_MINUTE_SECONDS, {
|
|
142
|
+
locale: g[i.value.substring(0, 2)] || C
|
|
143
|
+
}) : "", D = F(!1), T = F(!1), m = F(!1), I = F(!1), n = te({
|
|
135
144
|
startDate: e.dateFormData.startDate,
|
|
136
145
|
endDate: e.dateFormData.endDate,
|
|
137
146
|
startTime: e.dateFormData.startTime,
|
|
138
147
|
endTime: e.dateFormData.endTime
|
|
139
|
-
}),
|
|
140
|
-
t(
|
|
141
|
-
},
|
|
142
|
-
if (!r || !
|
|
148
|
+
}), Z = (a) => {
|
|
149
|
+
t(d.INPUT, a);
|
|
150
|
+
}, Y = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), V = (a, r) => {
|
|
151
|
+
if (!r || !Y(r))
|
|
143
152
|
return a;
|
|
144
153
|
let y = new Date(a);
|
|
145
|
-
const [N,
|
|
146
|
-
return y =
|
|
154
|
+
const [N, x, Pe] = r.split(":");
|
|
155
|
+
return y = ze(y, parseInt(N, 10)), y = Je(y, parseInt(x, 10)), y = Qe(y, parseInt(Pe, 10)), y;
|
|
147
156
|
}, $ = (a) => {
|
|
148
157
|
const r = (N) => e.isDateDisabled ? !e.isDateDisabled(N) : !0;
|
|
149
158
|
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && r(new Date(a));
|
|
150
159
|
};
|
|
151
|
-
|
|
160
|
+
Ue(() => {
|
|
152
161
|
e.dateFormData.startDate && !$(e.dateFormData.startDate) ? D.value = !0 : (D.value = !1, m.value = !1), e.dateFormData.endDate && !$(e.dateFormData.endDate) ? T.value = !0 : (T.value = !1, I.value = !1);
|
|
153
162
|
});
|
|
154
163
|
const le = (a) => {
|
|
155
164
|
var r;
|
|
156
|
-
v(), n.startDate =
|
|
165
|
+
v(), n.startDate = l(a), n.startTime ? m.value && (n.startTime = (r = e.dateFormData) == null ? void 0 : r.startTime) : n.startTime = b(a), D.value = !1, m.value = !1;
|
|
157
166
|
}, de = (a) => {
|
|
158
167
|
var r;
|
|
159
|
-
n.endDate =
|
|
168
|
+
n.endDate = l(a), n.endTime ? I.value && (n.endTime = (r = e.dateFormData) == null ? void 0 : r.endTime) : n.endTime = b(ee(a)), T.value = !1, I.value = !1;
|
|
160
169
|
}, L = (a) => {
|
|
161
170
|
const r = e.value[a];
|
|
162
171
|
if (r)
|
|
163
172
|
return r;
|
|
164
173
|
if (e.dateFormData[a] && $(e.dateFormData[a]))
|
|
165
174
|
return new Date(e.dateFormData[a]);
|
|
166
|
-
}, ue =
|
|
175
|
+
}, ue = J((a) => {
|
|
167
176
|
if ($(a)) {
|
|
168
177
|
D.value = !1, o.startDate = V(new Date(a), n.startTime);
|
|
169
178
|
const r = L("endDate");
|
|
170
|
-
t(
|
|
179
|
+
t(d.FORM_DATE, {
|
|
171
180
|
startDate: new Date(a),
|
|
172
181
|
endDate: r
|
|
173
|
-
}), t(
|
|
182
|
+
}), t(d.INPUT, {
|
|
174
183
|
startDate: new Date(a),
|
|
175
184
|
endDate: r
|
|
176
185
|
});
|
|
177
186
|
} else
|
|
178
|
-
D.value = !0, t(
|
|
179
|
-
},
|
|
180
|
-
v(), n.startDate =
|
|
181
|
-
}, De =
|
|
187
|
+
D.value = !0, t(d.ERROR, { ...n });
|
|
188
|
+
}, ke), ce = (a) => {
|
|
189
|
+
v(), n.startDate = Re(a), ue(n.startDate);
|
|
190
|
+
}, De = J((a) => {
|
|
182
191
|
if ($(a)) {
|
|
183
192
|
T.value = !1, o.endDate = V(new Date(a), n.endTime);
|
|
184
193
|
const r = L("startDate");
|
|
185
|
-
t(
|
|
194
|
+
t(d.FORM_DATE, {
|
|
186
195
|
startDate: r,
|
|
187
196
|
endDate: new Date(o.endDate),
|
|
188
197
|
startTime: e.dateFormData.endTime,
|
|
189
198
|
endTime: a
|
|
190
|
-
}), t(
|
|
199
|
+
}), t(d.INPUT, {
|
|
191
200
|
startDate: r,
|
|
192
201
|
endDate: new Date(o.endDate)
|
|
193
202
|
});
|
|
194
203
|
} else
|
|
195
|
-
T.value = !0, t(
|
|
196
|
-
},
|
|
197
|
-
v(), n.endDate =
|
|
204
|
+
T.value = !0, t(d.ERROR, { ...n });
|
|
205
|
+
}, ke), u = (a) => {
|
|
206
|
+
v(), n.endDate = Re(a), De(n.endDate);
|
|
198
207
|
}, U = (a) => {
|
|
199
|
-
|
|
200
|
-
}, H =
|
|
201
|
-
if (
|
|
208
|
+
Ve(a);
|
|
209
|
+
}, H = J((a) => {
|
|
210
|
+
if (Y(a)) {
|
|
202
211
|
m.value = !1, o.startDate = V(o.startDate, a);
|
|
203
212
|
const r = L("endDate");
|
|
204
|
-
t(
|
|
213
|
+
t(d.FORM_DATE, {
|
|
205
214
|
startDate: new Date(o.startDate),
|
|
206
215
|
endDate: r,
|
|
207
216
|
startTime: a,
|
|
208
217
|
endTime: e.dateFormData.endTime
|
|
209
|
-
}), t(
|
|
218
|
+
}), t(d.INPUT, {
|
|
210
219
|
startDate: new Date(o.startDate),
|
|
211
220
|
endDate: r
|
|
212
221
|
});
|
|
213
222
|
} else
|
|
214
|
-
m.value = !0, t(
|
|
215
|
-
}),
|
|
216
|
-
if (
|
|
223
|
+
m.value = !0, t(d.ERROR, { ...n });
|
|
224
|
+
}), we = J((a) => {
|
|
225
|
+
if (Y(a)) {
|
|
217
226
|
I.value = !1, o.endDate = V(o.endDate, a);
|
|
218
227
|
const r = L("startDate");
|
|
219
|
-
t(
|
|
228
|
+
t(d.FORM_DATE, {
|
|
220
229
|
startDate: r,
|
|
221
230
|
endDate: new Date(o.endDate),
|
|
222
231
|
startTime: e.dateFormData.startTime,
|
|
223
232
|
endTime: a
|
|
224
|
-
}), t(
|
|
233
|
+
}), t(d.INPUT, {
|
|
225
234
|
startDate: r,
|
|
226
235
|
endDate: new Date(o.endDate)
|
|
227
236
|
});
|
|
228
237
|
} else
|
|
229
|
-
I.value = !0, t(
|
|
230
|
-
}),
|
|
231
|
-
v(), n.startTime =
|
|
232
|
-
},
|
|
233
|
-
v(), n.endTime =
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
},
|
|
238
|
+
I.value = !0, t(d.ERROR, { ...n });
|
|
239
|
+
}), Me = (a) => {
|
|
240
|
+
v(), n.startTime = Te(a), H(n.startTime);
|
|
241
|
+
}, Ce = (a) => {
|
|
242
|
+
v(), n.endTime = Te(a), we(n.endTime);
|
|
243
|
+
}, he = (a) => {
|
|
244
|
+
ea(a);
|
|
245
|
+
}, Fe = (a) => {
|
|
237
246
|
var y, N;
|
|
238
247
|
c.value = a;
|
|
239
|
-
const r = (N = (y = e.quickSelectRanges) == null ? void 0 : y.find(({ value:
|
|
240
|
-
r && (n.startDate =
|
|
248
|
+
const r = (N = (y = e.quickSelectRanges) == null ? void 0 : y.find(({ value: x }) => x === a)) == null ? void 0 : N.data;
|
|
249
|
+
r && (n.startDate = l(r.startDate), n.endDate = l(r.endDate), n.startTime || (n.startTime = b(ee(r.startDate))), n.endTime || (n.endTime = b(ee(r.endDate))), t(d.CUSTOM_RANGE, r));
|
|
241
250
|
};
|
|
242
251
|
return {
|
|
243
252
|
// Values
|
|
@@ -250,37 +259,37 @@ const ze = /[\d]/, Je = /^\d{2}$/, Qe = /^\d{2}:\d{2}$/, Xe = (e) => {
|
|
|
250
259
|
quickSelectRangeDefaultItems: S,
|
|
251
260
|
formInputWrapperConditionalClasses: p,
|
|
252
261
|
// Methods
|
|
253
|
-
hasSlot:
|
|
262
|
+
hasSlot: Ge(s),
|
|
254
263
|
t: _,
|
|
255
264
|
// Events
|
|
256
|
-
onRangeSelectorInput:
|
|
257
|
-
onDateInput:
|
|
265
|
+
onRangeSelectorInput: Fe,
|
|
266
|
+
onDateInput: Z,
|
|
258
267
|
onDateInputKeyDown: U,
|
|
259
268
|
onEndDateInput: u,
|
|
260
269
|
onEndDateSelected: de,
|
|
261
|
-
onEndTimeInput:
|
|
270
|
+
onEndTimeInput: Ce,
|
|
262
271
|
onStartDateSelected: le,
|
|
263
272
|
onStartDateInput: ce,
|
|
264
|
-
onStartTimeInput:
|
|
265
|
-
onTimeInputKeyDown:
|
|
273
|
+
onStartTimeInput: Me,
|
|
274
|
+
onTimeInputKeyDown: he
|
|
266
275
|
};
|
|
267
276
|
}
|
|
268
277
|
});
|
|
269
|
-
const
|
|
270
|
-
function
|
|
278
|
+
const ta = { class: "b-date-range-picker-calendar" }, na = { class: "b-date-range-picker-calendar__form-container" }, ra = { class: "b-date-range-picker-calendar__form" }, oa = { key: 0 }, sa = { class: "b-date-range-picker-calendar__calendars-container" };
|
|
279
|
+
function ia(e, t, s, i, _, g) {
|
|
271
280
|
const o = w("bento-dropdown"), c = w("bento-typography"), p = w("bento-input-field"), S = w("calendar");
|
|
272
|
-
return f(),
|
|
273
|
-
|
|
274
|
-
|
|
281
|
+
return f(), Q("div", ta, [
|
|
282
|
+
h("div", na, [
|
|
283
|
+
h("div", ra, [
|
|
275
284
|
e.quickSelectRanges ? (f(), O(o, {
|
|
276
285
|
key: 0,
|
|
277
286
|
"aria-label": e.t("customRange"),
|
|
278
287
|
items: e.quickSelectRangeDefaultItems,
|
|
279
288
|
value: e.selectedRangeSelectorValue,
|
|
280
289
|
onInput: e.onRangeSelectorInput
|
|
281
|
-
}, null, 8, ["aria-label", "items", "value", "onInput"])) :
|
|
282
|
-
e.hasSlot("title") ?
|
|
283
|
-
|
|
290
|
+
}, null, 8, ["aria-label", "items", "value", "onInput"])) : R("", !0),
|
|
291
|
+
e.hasSlot("title") ? ve(e.$slots, "title", { key: 1 }, void 0, !0) : R("", !0),
|
|
292
|
+
h("div", null, [
|
|
284
293
|
P(c, {
|
|
285
294
|
stronger: "",
|
|
286
295
|
el: "span",
|
|
@@ -291,8 +300,8 @@ function ra(e, t, s, d, _, g) {
|
|
|
291
300
|
]),
|
|
292
301
|
_: 1
|
|
293
302
|
}),
|
|
294
|
-
|
|
295
|
-
class:
|
|
303
|
+
h("div", {
|
|
304
|
+
class: ne(e.formInputWrapperConditionalClasses)
|
|
296
305
|
}, [
|
|
297
306
|
P(p, {
|
|
298
307
|
"aria-label": e.$t("dateFrom"),
|
|
@@ -320,10 +329,10 @@ function ra(e, t, s, d, _, g) {
|
|
|
320
329
|
E("HH:MM:SS")
|
|
321
330
|
]),
|
|
322
331
|
_: 1
|
|
323
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) :
|
|
332
|
+
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : R("", !0)
|
|
324
333
|
], 2)
|
|
325
334
|
]),
|
|
326
|
-
|
|
335
|
+
h("div", null, [
|
|
327
336
|
P(c, {
|
|
328
337
|
stronger: "",
|
|
329
338
|
el: "span",
|
|
@@ -334,8 +343,8 @@ function ra(e, t, s, d, _, g) {
|
|
|
334
343
|
]),
|
|
335
344
|
_: 1
|
|
336
345
|
}),
|
|
337
|
-
|
|
338
|
-
class:
|
|
346
|
+
h("div", {
|
|
347
|
+
class: ne(e.formInputWrapperConditionalClasses)
|
|
339
348
|
}, [
|
|
340
349
|
P(p, {
|
|
341
350
|
class: "b-date-range-picker-calendar__form-input",
|
|
@@ -363,15 +372,15 @@ function ra(e, t, s, d, _, g) {
|
|
|
363
372
|
E("HH:MM:SS")
|
|
364
373
|
]),
|
|
365
374
|
_: 1
|
|
366
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) :
|
|
375
|
+
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : R("", !0)
|
|
367
376
|
], 2)
|
|
368
377
|
])
|
|
369
378
|
]),
|
|
370
|
-
e.hasSlot("actions") ? (f(),
|
|
371
|
-
|
|
372
|
-
])) :
|
|
379
|
+
e.hasSlot("actions") ? (f(), Q("div", oa, [
|
|
380
|
+
ve(e.$slots, "actions", {}, void 0, !0)
|
|
381
|
+
])) : R("", !0)
|
|
373
382
|
]),
|
|
374
|
-
|
|
383
|
+
h("div", sa, [
|
|
375
384
|
P(S, {
|
|
376
385
|
value: e.value,
|
|
377
386
|
"first-day-of-week": e.firstDayOfWeek,
|
|
@@ -386,31 +395,31 @@ function ra(e, t, s, d, _, g) {
|
|
|
386
395
|
])
|
|
387
396
|
]);
|
|
388
397
|
}
|
|
389
|
-
const A = /* @__PURE__ */
|
|
398
|
+
const A = /* @__PURE__ */ Oe(aa, [["render", ia], ["__scopeId", "data-v-d38a4818"]]);
|
|
390
399
|
var B = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(B || {});
|
|
391
|
-
const
|
|
400
|
+
const la = ({
|
|
392
401
|
datePickerValue: e,
|
|
393
402
|
isDateIncorrect: t
|
|
394
403
|
}) => {
|
|
395
|
-
var v,
|
|
396
|
-
const { locale: s, t:
|
|
404
|
+
var v, l, b, D, T;
|
|
405
|
+
const { locale: s, t: i } = re(), _ = { de: se, enUS: C, fr: ie }, g = (m, I) => K(m, I, {
|
|
397
406
|
locale: _[s.value.substring(0, 2)] || C
|
|
398
|
-
}), o = (m) =>
|
|
407
|
+
}), o = (m) => K(m, M.HOUR_MINUTE_SECONDS, {
|
|
399
408
|
locale: _[s.value.substring(0, 2)] || C
|
|
400
|
-
}), c =
|
|
409
|
+
}), c = te({
|
|
401
410
|
startDate: (v = e.value) != null && v.startDate ? g(e.value.startDate, M.NUMERIC_DATE_YEAR_FIRST) : void 0,
|
|
402
|
-
endDate: (
|
|
411
|
+
endDate: (l = e.value) != null && l.endDate ? g(e.value.endDate, M.NUMERIC_DATE_YEAR_FIRST) : void 0,
|
|
403
412
|
// Set time if the startDate/endDate are set
|
|
404
|
-
startTime: (
|
|
413
|
+
startTime: (b = e.value) != null && b.startDate ? o((D = e.value) == null ? void 0 : D.startDate) : void 0,
|
|
405
414
|
endTime: (T = e.value) != null && T.endDate ? o(e.value.endDate) : void 0
|
|
406
415
|
});
|
|
407
416
|
return {
|
|
408
417
|
// Values
|
|
409
|
-
dateDisplayValue:
|
|
418
|
+
dateDisplayValue: q(() => {
|
|
410
419
|
if (t.value)
|
|
411
420
|
return `${c.startDate || ""} - ${c.endDate || ""}`;
|
|
412
421
|
if (!e.value || !e.value.startDate && !e.value.endDate)
|
|
413
|
-
return
|
|
422
|
+
return i("selectDateRange");
|
|
414
423
|
const { startDate: m, endDate: I } = c;
|
|
415
424
|
return `${g(new Date(m), M.FULL_DATE_MONTH_FIRST)} - ${g(
|
|
416
425
|
new Date(I),
|
|
@@ -421,7 +430,7 @@ const oa = ({
|
|
|
421
430
|
// Methods
|
|
422
431
|
formatTextInputDisplayValue: () => ""
|
|
423
432
|
};
|
|
424
|
-
},
|
|
433
|
+
}, _e = {
|
|
425
434
|
"en-US": {
|
|
426
435
|
dateRangePicker: "Date range picker {name}",
|
|
427
436
|
optional: "optional",
|
|
@@ -431,17 +440,17 @@ const oa = ({
|
|
|
431
440
|
selectDateRange: "Select a date range",
|
|
432
441
|
selectedDateIsNotAvailable: "Selected date is not available"
|
|
433
442
|
}
|
|
434
|
-
},
|
|
435
|
-
i18n: { messages:
|
|
443
|
+
}, da = Ee({
|
|
444
|
+
i18n: { messages: _e },
|
|
436
445
|
name: "bento-date-range-picker",
|
|
437
446
|
components: {
|
|
438
|
-
BentoTypography:
|
|
439
|
-
BentoPopover:
|
|
447
|
+
BentoTypography: Se,
|
|
448
|
+
BentoPopover: Ye,
|
|
440
449
|
DateRangePickerCalendar: A,
|
|
441
|
-
DropdownInputDefault:
|
|
442
|
-
ErrorMessage:
|
|
450
|
+
DropdownInputDefault: Ke,
|
|
451
|
+
ErrorMessage: je
|
|
443
452
|
},
|
|
444
|
-
directives: { BentoClickOutsideDirective:
|
|
453
|
+
directives: { BentoClickOutsideDirective: qe },
|
|
445
454
|
props: {
|
|
446
455
|
/**
|
|
447
456
|
* Allows user to enter time values in the form
|
|
@@ -509,31 +518,31 @@ const oa = ({
|
|
|
509
518
|
},
|
|
510
519
|
emits: [B.INPUT],
|
|
511
520
|
setup(e, { emit: t }) {
|
|
512
|
-
const { locale: s, t:
|
|
513
|
-
() => e.label ||
|
|
514
|
-
),
|
|
515
|
-
|
|
521
|
+
const { locale: s, t: i } = re({ messages: _e }), _ = { de: se, enUS: C, fr: ie }, g = W("bento-date-range-picker-container"), o = W("bento-date-range-picker-label"), c = W("bento-date-range-picker-description"), p = W("bento-date-range-picker-error"), S = W("bento-date-range-picker-date-error"), v = q(
|
|
522
|
+
() => e.label || i("dateRangePicker", { name: g })
|
|
523
|
+
), l = F(!1), b = F(null), D = F(!1), { isReadOnly: T } = Le(Ie(e, "readonly"));
|
|
524
|
+
$e(
|
|
516
525
|
() => e.disabled,
|
|
517
526
|
() => {
|
|
518
527
|
e.disabled && D.value && (D.value = !1);
|
|
519
528
|
}
|
|
520
529
|
);
|
|
521
|
-
const m =
|
|
522
|
-
"b-date-range-picker__description--error": !!e.errorMessage ||
|
|
523
|
-
})), { dateDisplayValue: I, textInputDisplayValue: n, formatTextInputDisplayValue:
|
|
524
|
-
datePickerValue:
|
|
525
|
-
isDateIncorrect:
|
|
526
|
-
}),
|
|
527
|
-
() => `${e.description ? c : ""} ${e.errorMessage ? p : ""} ${
|
|
530
|
+
const m = q(() => ({
|
|
531
|
+
"b-date-range-picker__description--error": !!e.errorMessage || l.value
|
|
532
|
+
})), { dateDisplayValue: I, textInputDisplayValue: n, formatTextInputDisplayValue: Z } = la({
|
|
533
|
+
datePickerValue: Ie(e, "value"),
|
|
534
|
+
isDateIncorrect: l
|
|
535
|
+
}), Y = q(
|
|
536
|
+
() => `${e.description ? c : ""} ${e.errorMessage ? p : ""} ${l.value ? S : ""}`.trim() || null
|
|
528
537
|
);
|
|
529
538
|
return {
|
|
530
539
|
// Refs
|
|
531
|
-
inputContainerRef:
|
|
540
|
+
inputContainerRef: b,
|
|
532
541
|
// Values,
|
|
533
542
|
dateDisplayValue: I,
|
|
534
543
|
datePickerContainerId: g,
|
|
535
544
|
descriptionConditionalClasses: m,
|
|
536
|
-
isDateIncorrect:
|
|
545
|
+
isDateIncorrect: l,
|
|
537
546
|
isDateRangePickerOpen: D,
|
|
538
547
|
isReadOnly: T,
|
|
539
548
|
labelId: o,
|
|
@@ -541,50 +550,50 @@ const oa = ({
|
|
|
541
550
|
dateErrorId: S,
|
|
542
551
|
errorId: p,
|
|
543
552
|
popoverAriaLabel: v,
|
|
544
|
-
ariaDescribedBy:
|
|
553
|
+
ariaDescribedBy: Y,
|
|
545
554
|
textInputDisplayValue: n,
|
|
546
555
|
// Events
|
|
547
556
|
closeDateRangePicker: () => {
|
|
548
557
|
D.value = !1;
|
|
549
558
|
},
|
|
550
559
|
clearDateRangePickerValue: async () => {
|
|
551
|
-
|
|
560
|
+
l.value && (l.value = !1), t(B.INPUT, null);
|
|
552
561
|
},
|
|
553
562
|
openDateRangePicker: () => {
|
|
554
|
-
D.value = !0,
|
|
563
|
+
D.value = !0, Z();
|
|
555
564
|
},
|
|
556
565
|
onRangeSelectorInput: (u) => {
|
|
557
566
|
if (u) {
|
|
558
|
-
const U = (H) =>
|
|
567
|
+
const U = (H) => K(H, M.NUMERIC_DATE_YEAR_FIRST, {
|
|
559
568
|
locale: _[s.value.substring(0, 2)] || C
|
|
560
569
|
});
|
|
561
570
|
n.startDate = U(u.startDate), n.endDate = U(u.endDate), t(B.INPUT, u);
|
|
562
571
|
}
|
|
563
572
|
},
|
|
564
573
|
onEnterPressedOverInput: () => {
|
|
565
|
-
|
|
574
|
+
l.value || (D.value = !1);
|
|
566
575
|
},
|
|
567
576
|
onDateRangePickerInput: (u) => {
|
|
568
|
-
|
|
569
|
-
const U = (H) =>
|
|
577
|
+
l.value = !1;
|
|
578
|
+
const U = (H) => K(H, M.NUMERIC_DATE_YEAR_FIRST, {
|
|
570
579
|
locale: _[s.value.substring(0, 2)] || C
|
|
571
580
|
});
|
|
572
581
|
n.startDate = U(u.startDate), n.endDate = U(u.endDate), t(B.INPUT, u);
|
|
573
582
|
},
|
|
574
583
|
onDateRangePickerError: (u) => {
|
|
575
|
-
|
|
584
|
+
l.value = !0, n.startDate = u.startDate, n.endDate = u.endDate, t(B.INPUT, { startDate: null, endDate: null });
|
|
576
585
|
},
|
|
577
586
|
onDateRangePickerFormDateInputUpdate: (u) => {
|
|
578
|
-
|
|
587
|
+
l.value = !1, u.startTime && (n.startTime = u.startTime), u.endTime && (n.endTime = u.endTime);
|
|
579
588
|
}
|
|
580
589
|
};
|
|
581
590
|
}
|
|
582
591
|
});
|
|
583
|
-
const
|
|
584
|
-
function
|
|
585
|
-
const o = w("bento-typography"), c = w("dropdown-input-default"), p = w("error-message"), S = w("date-range-picker-calendar"), v = w("bento-popover"),
|
|
586
|
-
return
|
|
587
|
-
e.label ? (f(),
|
|
592
|
+
const ua = { class: "b-date-range-picker" }, ca = ["id"];
|
|
593
|
+
function Da(e, t, s, i, _, g) {
|
|
594
|
+
const o = w("bento-typography"), c = w("dropdown-input-default"), p = w("error-message"), S = w("date-range-picker-calendar"), v = w("bento-popover"), l = Ne("bento-click-outside-directive");
|
|
595
|
+
return Ae((f(), Q("div", ua, [
|
|
596
|
+
e.label ? (f(), Q("div", {
|
|
588
597
|
key: 0,
|
|
589
598
|
id: e.labelId,
|
|
590
599
|
class: "b-date-range-picker__label"
|
|
@@ -594,7 +603,7 @@ function da(e, t, s, d, _, g) {
|
|
|
594
603
|
stronger: ""
|
|
595
604
|
}, {
|
|
596
605
|
default: k(() => [
|
|
597
|
-
E(
|
|
606
|
+
E(z(e.label), 1)
|
|
598
607
|
]),
|
|
599
608
|
_: 1
|
|
600
609
|
}),
|
|
@@ -604,23 +613,23 @@ function da(e, t, s, d, _, g) {
|
|
|
604
613
|
el: "span"
|
|
605
614
|
}, {
|
|
606
615
|
default: k(() => [
|
|
607
|
-
E(" (" +
|
|
616
|
+
E(" (" + z(e.$t("optional")) + ") ", 1)
|
|
608
617
|
]),
|
|
609
618
|
_: 1
|
|
610
|
-
})) :
|
|
619
|
+
})) : R("", !0),
|
|
611
620
|
e.required ? (f(), O(o, {
|
|
612
621
|
key: 1,
|
|
613
622
|
class: "b-date-range-picker__label-requirement",
|
|
614
623
|
el: "span"
|
|
615
624
|
}, {
|
|
616
625
|
default: k(() => [
|
|
617
|
-
E(" (" +
|
|
626
|
+
E(" (" + z(e.$t("required")) + ") ", 1)
|
|
618
627
|
]),
|
|
619
628
|
_: 1
|
|
620
|
-
})) :
|
|
621
|
-
], 8,
|
|
622
|
-
|
|
623
|
-
onKeydown: t[0] || (t[0] =
|
|
629
|
+
})) : R("", !0)
|
|
630
|
+
], 8, ca)) : R("", !0),
|
|
631
|
+
h("div", {
|
|
632
|
+
onKeydown: t[0] || (t[0] = Be((...b) => e.onEnterPressedOverInput && e.onEnterPressedOverInput(...b), ["enter"]))
|
|
624
633
|
}, [
|
|
625
634
|
P(c, {
|
|
626
635
|
ref: "inputContainerRef",
|
|
@@ -643,24 +652,24 @@ function da(e, t, s, d, _, g) {
|
|
|
643
652
|
id: e.dateErrorId,
|
|
644
653
|
"error-message": e.$t("provideDateInAFormat").toString(),
|
|
645
654
|
class: "b-date-range-picker__error-message"
|
|
646
|
-
}, null, 8, ["id", "error-message"])) :
|
|
655
|
+
}, null, 8, ["id", "error-message"])) : R("", !0),
|
|
647
656
|
e.errorMessage ? (f(), O(p, {
|
|
648
657
|
key: 2,
|
|
649
658
|
id: e.errorId,
|
|
650
659
|
"error-message": e.errorMessage,
|
|
651
660
|
class: "b-date-range-picker__error-message"
|
|
652
|
-
}, null, 8, ["id", "error-message"])) :
|
|
661
|
+
}, null, 8, ["id", "error-message"])) : R("", !0),
|
|
653
662
|
e.description ? (f(), O(o, {
|
|
654
663
|
key: 3,
|
|
655
664
|
id: e.descriptionId,
|
|
656
|
-
class:
|
|
665
|
+
class: ne(["b-date-range-picker__description", e.descriptionConditionalClasses]),
|
|
657
666
|
el: "span"
|
|
658
667
|
}, {
|
|
659
668
|
default: k(() => [
|
|
660
|
-
E(
|
|
669
|
+
E(z(e.description), 1)
|
|
661
670
|
]),
|
|
662
671
|
_: 1
|
|
663
|
-
}, 8, ["id", "class"])) :
|
|
672
|
+
}, 8, ["id", "class"])) : R("", !0),
|
|
664
673
|
e.inputContainerRef ? (f(), O(v, {
|
|
665
674
|
key: 4,
|
|
666
675
|
id: e.datePickerContainerId,
|
|
@@ -690,15 +699,15 @@ function da(e, t, s, d, _, g) {
|
|
|
690
699
|
}, null, 8, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "is-date-disabled", "max-range", "number-of-months", "date-form-data", "onCustomRange", "onInput", "onError", "onFormDate"])
|
|
691
700
|
]),
|
|
692
701
|
_: 1
|
|
693
|
-
}, 8, ["id", "open", "target-element", "aria-label"])) :
|
|
702
|
+
}, 8, ["id", "open", "target-element", "aria-label"])) : R("", !0)
|
|
694
703
|
])), [
|
|
695
|
-
[
|
|
704
|
+
[l, e.closeDateRangePicker]
|
|
696
705
|
]);
|
|
697
706
|
}
|
|
698
|
-
const
|
|
707
|
+
const Fa = /* @__PURE__ */ Oe(da, [["render", Da], ["__scopeId", "data-v-18aefd79"]]);
|
|
699
708
|
export {
|
|
700
|
-
|
|
709
|
+
Fa as B,
|
|
701
710
|
A as D,
|
|
702
711
|
B as a
|
|
703
712
|
};
|
|
704
|
-
//# sourceMappingURL=index.
|
|
713
|
+
//# sourceMappingURL=index.a57930ba.js.map
|