@adyen/bento-vue2 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 +27 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +522 -114
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +3 -3
- 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/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -1
- 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 +13 -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 +119 -71
- 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 +33 -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 +42 -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 +389 -50
- 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 +1 -1
- package/dist/alert.js +1 -1
- 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/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 -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 +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/base-button.89e9efbd.js +88 -0
- package/dist/chunks/base-button.89e9efbd.js.map +1 -0
- package/dist/chunks/base-modal.6eaa7e53.js +211 -0
- package/dist/chunks/base-modal.6eaa7e53.js.map +1 -0
- package/dist/chunks/{calendar.c20df708.js → calendar.44459d87.js} +2 -2
- package/dist/chunks/{calendar.c20df708.js.map → calendar.44459d87.js.map} +1 -1
- package/dist/chunks/{checkbox.5a69ce9d.js → checkbox.b69b8f22.js} +16 -16
- package/dist/chunks/{checkbox.5a69ce9d.js.map → checkbox.b69b8f22.js.map} +1 -1
- package/dist/chunks/{copy.982e1b19.js → copy.57f969d4.js} +2 -2
- package/dist/chunks/{copy.982e1b19.js.map → copy.57f969d4.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.9bef4138.js → dropdown-default-textbox.2d093874.js} +8 -7
- package/dist/chunks/{dropdown-default-textbox.9bef4138.js.map → dropdown-default-textbox.2d093874.js.map} +1 -1
- package/dist/chunks/{dropdown.15cc1c45.js → dropdown.10ea8304.js} +33 -31
- package/dist/chunks/dropdown.10ea8304.js.map +1 -0
- package/dist/chunks/{index.c39c64c9.js → index.0f8690c4.js} +2 -2
- package/dist/chunks/{index.c39c64c9.js.map → index.0f8690c4.js.map} +1 -1
- package/dist/chunks/{index.58ce168a.js → index.4a11da21.js} +179 -170
- package/dist/chunks/index.4a11da21.js.map +1 -0
- package/dist/chunks/{index.876ea5bf.js → index.660f2f2e.js} +2 -2
- package/dist/chunks/{index.876ea5bf.js.map → index.660f2f2e.js.map} +1 -1
- package/dist/chunks/{index.b9c8c99a.js → index.f607a3f1.js} +4 -4
- package/dist/chunks/{index.b9c8c99a.js.map → index.f607a3f1.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.f8b467a7.js → listbox-option-tag.e2688e54.js} +2 -2
- package/dist/chunks/{listbox-option-tag.f8b467a7.js.map → listbox-option-tag.e2688e54.js.map} +1 -1
- package/dist/chunks/{listbox.cbf47484.js → listbox.201a8521.js} +6 -5
- package/dist/chunks/{listbox.cbf47484.js.map → listbox.201a8521.js.map} +1 -1
- package/dist/chunks/{tooltip.0297fd5d.js → tooltip.f89cb0cd.js} +18 -18
- package/dist/chunks/{tooltip.0297fd5d.js.map → tooltip.f89cb0cd.js.map} +1 -1
- package/dist/chunks/use-has-slot.6052d56a.js.map +1 -1
- package/dist/code-snippet.js +193 -191
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +1 -1
- package/dist/data-grid.js +750 -640
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +5 -5
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +10 -10
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +533 -491
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +71 -50
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +181 -102
- package/dist/header.js.map +1 -1
- package/dist/image.js +3 -1
- package/dist/index.js +200 -193
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +2 -2
- package/dist/internal.js +4 -4
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +39 -30
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +29 -26
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +2 -2
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +43 -31
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +1228 -180
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +3 -3
- package/dist/segmented-control.js +9 -9
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +13 -13
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +229 -0
- package/dist/stepper.js.map +1 -0
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +2 -2
- package/dist/tabs.js +1 -1
- package/dist/tag.js +2 -2
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle.js +14 -14
- package/dist/toggle.js.map +1 -1
- package/dist/web-types.json +279 -60
- package/package.json +3 -3
- package/dist/chunks/base-button.7a676605.js +0 -82
- package/dist/chunks/base-button.7a676605.js.map +0 -1
- package/dist/chunks/base-modal.a51d2395.js +0 -207
- package/dist/chunks/base-modal.a51d2395.js.map +0 -1
- package/dist/chunks/debounce.f8d92e44.js.map +0 -1
- package/dist/chunks/dropdown.15cc1c45.js.map +0 -1
- package/dist/chunks/index.58ce168a.js.map +0 -1
|
@@ -1,51 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { BentoPopover as
|
|
1
|
+
import { defineComponent as ue, reactive as K, ref as y, computed as M, onMounted as Te, toRef as oe, watch as Ie } from "vue";
|
|
2
|
+
import { c as be } from "./dropdown-default-textbox.2d093874.js";
|
|
3
|
+
import { BentoPopover as ye } from "../popover.js";
|
|
4
4
|
import { g as N } from "./unique-id.a2a2b458.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { B as
|
|
7
|
-
import { t as
|
|
8
|
-
import { r as
|
|
9
|
-
import { f as
|
|
10
|
-
import { u as
|
|
11
|
-
import { BentoInputField as
|
|
12
|
-
import { B as
|
|
13
|
-
import { d as
|
|
14
|
-
import { u as
|
|
15
|
-
import { e as
|
|
16
|
-
import { C as $ } from "./calendar.
|
|
17
|
-
import { n as
|
|
18
|
-
import { E as
|
|
19
|
-
import { B as
|
|
20
|
-
import "../assets/
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
var n =
|
|
5
|
+
import { u as G } from "./i18n.155748d6.js";
|
|
6
|
+
import { B as De } from "./index.1645ffcb.js";
|
|
7
|
+
import { t as j, f as F } from "./index.e722eb60.js";
|
|
8
|
+
import { r as Y, t as B, e as I, d as z, f as J } from "./index.f55fdc32.js";
|
|
9
|
+
import { f as ie, v as ke, D as T } from "./date-input.9186a0bf.js";
|
|
10
|
+
import { u as Ee } from "./use-form-layout-loading.d03e5d48.js";
|
|
11
|
+
import { BentoInputField as Se } from "../input-field.js";
|
|
12
|
+
import { B as Ce } from "./dropdown.10ea8304.js";
|
|
13
|
+
import { d as q } from "./debounce.b5ef6acf.js";
|
|
14
|
+
import { u as Oe } from "./use-has-slot.6052d56a.js";
|
|
15
|
+
import { e as H } from "./index.fdf12170.js";
|
|
16
|
+
import { C as $ } from "./calendar.44459d87.js";
|
|
17
|
+
import { n as me } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
18
|
+
import { E as Me } from "./error-message.7a5db7f6.js";
|
|
19
|
+
import { B as Fe } from "./directive.0408e565.js";
|
|
20
|
+
import "../assets/index10.css";
|
|
21
|
+
function le(t, e) {
|
|
22
|
+
Y(2, arguments);
|
|
23
|
+
var n = B(t), o = B(e);
|
|
24
|
+
return n.getTime() === o.getTime();
|
|
25
|
+
}
|
|
26
|
+
function Pe(t, e) {
|
|
27
|
+
Y(2, arguments);
|
|
28
|
+
var n = B(t), o = j(e);
|
|
24
29
|
return n.setHours(o), n;
|
|
25
30
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
var n =
|
|
31
|
+
function we(t, e) {
|
|
32
|
+
Y(2, arguments);
|
|
33
|
+
var n = B(t), o = j(e);
|
|
29
34
|
return n.setMinutes(o), n;
|
|
30
35
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
var n =
|
|
36
|
+
function Ue(t, e) {
|
|
37
|
+
Y(2, arguments);
|
|
38
|
+
var n = B(t), o = j(e);
|
|
34
39
|
return n.setSeconds(o), n;
|
|
35
40
|
}
|
|
36
|
-
var
|
|
37
|
-
const
|
|
38
|
-
const { selectionStart: e } = t.target, n =
|
|
41
|
+
var l = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t))(l || {});
|
|
42
|
+
const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
43
|
+
const { selectionStart: e } = t.target, n = he.test(t.key) || t.key === "Backspace", o = [1, 2, 4, 5].includes(e) && t.key === ":";
|
|
39
44
|
!n && !o && t.preventDefault();
|
|
40
|
-
},
|
|
45
|
+
}, de = (t) => {
|
|
41
46
|
if (!t)
|
|
42
47
|
return t;
|
|
43
48
|
let e = t;
|
|
44
49
|
if (e.length === 1 && parseInt(t, 10) > 2)
|
|
45
50
|
return `0${e}:`;
|
|
46
51
|
const [n, o] = e.slice(-2);
|
|
47
|
-
return [2, 5].includes(e.length) && o === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (
|
|
48
|
-
},
|
|
52
|
+
return [2, 5].includes(e.length) && o === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (Ae.test(e) || xe.test(e)) && (e += ":"), e;
|
|
53
|
+
}, $e = {
|
|
49
54
|
"en-US": {
|
|
50
55
|
customRange: "Custom range",
|
|
51
56
|
dateFrom: "Date from",
|
|
@@ -56,13 +61,13 @@ const Pe = /[\d]/, we = /^\d{2}$/, Ue = /^\d{2}:\d{2}$/, he = (t) => {
|
|
|
56
61
|
timeFrom: "Time from",
|
|
57
62
|
timeTo: "Time to"
|
|
58
63
|
}
|
|
59
|
-
},
|
|
60
|
-
i18n: { messages:
|
|
64
|
+
}, ce = 300, W = "customRange", Be = ue({
|
|
65
|
+
i18n: { messages: $e },
|
|
61
66
|
name: "date-range-picker-calendar",
|
|
62
67
|
components: {
|
|
63
|
-
BentoDropdown:
|
|
64
|
-
BentoInputField:
|
|
65
|
-
BentoTypography:
|
|
68
|
+
BentoDropdown: Ce,
|
|
69
|
+
BentoInputField: Se,
|
|
70
|
+
BentoTypography: De,
|
|
66
71
|
Calendar: $
|
|
67
72
|
},
|
|
68
73
|
props: {
|
|
@@ -110,163 +115,167 @@ const Pe = /[\d]/, we = /^\d{2}$/, Ue = /^\d{2}:\d{2}$/, he = (t) => {
|
|
|
110
115
|
value: { type: Object, default: void 0 }
|
|
111
116
|
},
|
|
112
117
|
emits: [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
l.CUSTOM_RANGE,
|
|
119
|
+
l.INPUT,
|
|
120
|
+
l.ERROR,
|
|
121
|
+
l.FORM_DATE
|
|
117
122
|
],
|
|
118
123
|
setup(t, { emit: e, slots: n }) {
|
|
119
|
-
var ae, ne;
|
|
120
|
-
const { locale: o, t: b } =
|
|
124
|
+
var ae, ne, re, se;
|
|
125
|
+
const { locale: o, t: b } = G(), g = { de: z, enUS: I, fr: J }, i = K({
|
|
121
126
|
startDate: (ae = t.value) == null ? void 0 : ae.startDate,
|
|
122
127
|
endDate: (ne = t.value) == null ? void 0 : ne.endDate
|
|
123
|
-
}),
|
|
128
|
+
}), f = y(
|
|
129
|
+
((se = (re = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : re.find(
|
|
130
|
+
({ data: a }) => le(a.startDate, i.startDate) && le(a.endDate, i.endDate)
|
|
131
|
+
)) == null ? void 0 : se.value) ?? W
|
|
132
|
+
), P = M(() => ({
|
|
124
133
|
"b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
|
|
125
134
|
})), w = M(() => t.quickSelectRanges ? [
|
|
126
|
-
{ label: b("customRange"), value:
|
|
135
|
+
{ label: b("customRange"), value: W },
|
|
127
136
|
...t.quickSelectRanges
|
|
128
137
|
] : []), v = () => {
|
|
129
|
-
t != null && t.quickSelectRanges && (
|
|
130
|
-
},
|
|
138
|
+
t != null && t.quickSelectRanges && (f.value = W);
|
|
139
|
+
}, d = (a) => a ? F(a, T.NUMERIC_DATE_YEAR_FIRST, {
|
|
131
140
|
locale: g[o.value.substring(0, 2)] || I
|
|
132
141
|
}) : "", R = (a) => a ? F(a, T.HOUR_MINUTE_SECONDS, {
|
|
133
142
|
locale: g[o.value.substring(0, 2)] || I
|
|
134
|
-
}) : "", u = y(!1),
|
|
143
|
+
}) : "", u = y(!1), p = y(!1), D = y(!1), m = y(!1), r = K({
|
|
135
144
|
startDate: t.dateFormData.startDate,
|
|
136
145
|
endDate: t.dateFormData.endDate,
|
|
137
146
|
startTime: t.dateFormData.startTime,
|
|
138
147
|
endTime: t.dateFormData.endTime
|
|
139
|
-
}),
|
|
140
|
-
e(
|
|
148
|
+
}), L = (a) => {
|
|
149
|
+
e(l.INPUT, a);
|
|
141
150
|
}, U = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), h = (a, s) => {
|
|
142
151
|
if (!s || !U(s))
|
|
143
152
|
return a;
|
|
144
153
|
let _ = new Date(a);
|
|
145
|
-
const [S,
|
|
146
|
-
return _ =
|
|
154
|
+
const [S, V, Re] = s.split(":");
|
|
155
|
+
return _ = Pe(_, parseInt(S, 10)), _ = we(_, parseInt(V, 10)), _ = Ue(_, parseInt(Re, 10)), _;
|
|
147
156
|
}, E = (a) => {
|
|
148
157
|
const s = (S) => t.isDateDisabled ? !t.isDateDisabled(S) : !0;
|
|
149
158
|
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && s(new Date(a));
|
|
150
159
|
};
|
|
151
|
-
|
|
152
|
-
t.dateFormData.startDate && !E(t.dateFormData.startDate) ? u.value = !0 : (u.value = !1, D.value = !1), t.dateFormData.endDate && !E(t.dateFormData.endDate) ?
|
|
160
|
+
Te(() => {
|
|
161
|
+
t.dateFormData.startDate && !E(t.dateFormData.startDate) ? u.value = !0 : (u.value = !1, D.value = !1), t.dateFormData.endDate && !E(t.dateFormData.endDate) ? p.value = !0 : (p.value = !1, m.value = !1);
|
|
153
162
|
});
|
|
154
163
|
const Q = (a) => {
|
|
155
164
|
var s;
|
|
156
|
-
v(), r.startDate =
|
|
165
|
+
v(), r.startDate = d(a), r.startTime ? D.value && (r.startTime = (s = t.dateFormData) == null ? void 0 : s.startTime) : r.startTime = R(a), u.value = !1, D.value = !1;
|
|
157
166
|
}, X = (a) => {
|
|
158
167
|
var s;
|
|
159
|
-
r.endDate =
|
|
168
|
+
r.endDate = d(a), r.endTime ? m.value && (r.endTime = (s = t.dateFormData) == null ? void 0 : s.endTime) : r.endTime = R(H(a)), p.value = !1, m.value = !1;
|
|
160
169
|
}, A = (a) => {
|
|
161
170
|
const s = t.value[a];
|
|
162
171
|
if (s)
|
|
163
172
|
return s;
|
|
164
173
|
if (t.dateFormData[a] && E(t.dateFormData[a]))
|
|
165
174
|
return new Date(t.dateFormData[a]);
|
|
166
|
-
}, Z =
|
|
175
|
+
}, Z = q((a) => {
|
|
167
176
|
if (E(a)) {
|
|
168
|
-
u.value = !1,
|
|
177
|
+
u.value = !1, i.startDate = h(new Date(a), r.startTime);
|
|
169
178
|
const s = A("endDate");
|
|
170
|
-
e(
|
|
179
|
+
e(l.FORM_DATE, {
|
|
171
180
|
startDate: new Date(a),
|
|
172
181
|
endDate: s
|
|
173
|
-
}), e(
|
|
182
|
+
}), e(l.INPUT, {
|
|
174
183
|
startDate: new Date(a),
|
|
175
184
|
endDate: s
|
|
176
185
|
});
|
|
177
186
|
} else
|
|
178
|
-
u.value = !0, e(
|
|
179
|
-
},
|
|
180
|
-
v(), r.startDate =
|
|
181
|
-
}, te =
|
|
187
|
+
u.value = !0, e(l.ERROR, { ...r });
|
|
188
|
+
}, ce), ee = (a) => {
|
|
189
|
+
v(), r.startDate = ie(a), Z(r.startDate);
|
|
190
|
+
}, te = q((a) => {
|
|
182
191
|
if (E(a)) {
|
|
183
|
-
|
|
192
|
+
p.value = !1, i.endDate = h(new Date(a), r.endTime);
|
|
184
193
|
const s = A("startDate");
|
|
185
|
-
e(
|
|
194
|
+
e(l.FORM_DATE, {
|
|
186
195
|
startDate: s,
|
|
187
|
-
endDate: new Date(
|
|
196
|
+
endDate: new Date(i.endDate),
|
|
188
197
|
startTime: t.dateFormData.endTime,
|
|
189
198
|
endTime: a
|
|
190
|
-
}), e(
|
|
199
|
+
}), e(l.INPUT, {
|
|
191
200
|
startDate: s,
|
|
192
|
-
endDate: new Date(
|
|
201
|
+
endDate: new Date(i.endDate)
|
|
193
202
|
});
|
|
194
203
|
} else
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
v(), r.endDate =
|
|
204
|
+
p.value = !0, e(l.ERROR, { ...r });
|
|
205
|
+
}, ce), c = (a) => {
|
|
206
|
+
v(), r.endDate = ie(a), te(r.endDate);
|
|
198
207
|
}, k = (a) => {
|
|
199
|
-
|
|
200
|
-
}, x =
|
|
208
|
+
ke(a);
|
|
209
|
+
}, x = q((a) => {
|
|
201
210
|
if (U(a)) {
|
|
202
|
-
D.value = !1,
|
|
211
|
+
D.value = !1, i.startDate = h(i.startDate, a);
|
|
203
212
|
const s = A("endDate");
|
|
204
|
-
e(
|
|
205
|
-
startDate: new Date(
|
|
213
|
+
e(l.FORM_DATE, {
|
|
214
|
+
startDate: new Date(i.startDate),
|
|
206
215
|
endDate: s,
|
|
207
216
|
startTime: a,
|
|
208
217
|
endTime: t.dateFormData.endTime
|
|
209
|
-
}), e(
|
|
210
|
-
startDate: new Date(
|
|
218
|
+
}), e(l.INPUT, {
|
|
219
|
+
startDate: new Date(i.startDate),
|
|
211
220
|
endDate: s
|
|
212
221
|
});
|
|
213
222
|
} else
|
|
214
|
-
D.value = !0, e(
|
|
215
|
-
}),
|
|
223
|
+
D.value = !0, e(l.ERROR, { ...r });
|
|
224
|
+
}), fe = q((a) => {
|
|
216
225
|
if (U(a)) {
|
|
217
|
-
|
|
226
|
+
m.value = !1, i.endDate = h(i.endDate, a);
|
|
218
227
|
const s = A("startDate");
|
|
219
|
-
e(
|
|
228
|
+
e(l.FORM_DATE, {
|
|
220
229
|
startDate: s,
|
|
221
|
-
endDate: new Date(
|
|
230
|
+
endDate: new Date(i.endDate),
|
|
222
231
|
startTime: t.dateFormData.startTime,
|
|
223
232
|
endTime: a
|
|
224
|
-
}), e(
|
|
233
|
+
}), e(l.INPUT, {
|
|
225
234
|
startDate: s,
|
|
226
|
-
endDate: new Date(
|
|
235
|
+
endDate: new Date(i.endDate)
|
|
227
236
|
});
|
|
228
237
|
} else
|
|
229
|
-
|
|
230
|
-
}),
|
|
231
|
-
v(), r.startTime =
|
|
232
|
-
},
|
|
233
|
-
v(), r.endTime =
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
},
|
|
238
|
+
m.value = !0, e(l.ERROR, { ...r });
|
|
239
|
+
}), pe = (a) => {
|
|
240
|
+
v(), r.startTime = de(a), x(r.startTime);
|
|
241
|
+
}, _e = (a) => {
|
|
242
|
+
v(), r.endTime = de(a), fe(r.endTime);
|
|
243
|
+
}, ge = (a) => {
|
|
244
|
+
Ne(a);
|
|
245
|
+
}, ve = (a) => {
|
|
237
246
|
var _, S;
|
|
238
|
-
|
|
239
|
-
const s = (S = (_ = t.quickSelectRanges) == null ? void 0 : _.find(({ value:
|
|
240
|
-
s && (r.startDate =
|
|
247
|
+
f.value = a;
|
|
248
|
+
const s = (S = (_ = t.quickSelectRanges) == null ? void 0 : _.find(({ value: V }) => V === a)) == null ? void 0 : S.data;
|
|
249
|
+
s && (r.startDate = d(s.startDate), r.endDate = d(s.endDate), r.startTime || (r.startTime = R(H(s.startDate))), r.endTime || (r.endTime = R(H(s.endDate))), e(l.CUSTOM_RANGE, s));
|
|
241
250
|
};
|
|
242
251
|
return {
|
|
243
252
|
// Values
|
|
244
253
|
dateTextInput: r,
|
|
245
|
-
endDateError:
|
|
246
|
-
endTimeError:
|
|
247
|
-
selectedRangeSelectorValue:
|
|
254
|
+
endDateError: p,
|
|
255
|
+
endTimeError: m,
|
|
256
|
+
selectedRangeSelectorValue: f,
|
|
248
257
|
startDateError: u,
|
|
249
258
|
startTimeError: D,
|
|
250
259
|
quickSelectRangeDefaultItems: w,
|
|
251
260
|
formInputWrapperConditionalClasses: P,
|
|
252
261
|
// Methods
|
|
253
|
-
hasSlot:
|
|
262
|
+
hasSlot: Oe(n),
|
|
254
263
|
t: b,
|
|
255
264
|
// Events
|
|
256
|
-
onRangeSelectorInput:
|
|
257
|
-
onDateInput:
|
|
265
|
+
onRangeSelectorInput: ve,
|
|
266
|
+
onDateInput: L,
|
|
258
267
|
onDateInputKeyDown: k,
|
|
259
|
-
onEndDateInput:
|
|
268
|
+
onEndDateInput: c,
|
|
260
269
|
onEndDateSelected: X,
|
|
261
|
-
onEndTimeInput:
|
|
270
|
+
onEndTimeInput: _e,
|
|
262
271
|
onStartDateSelected: Q,
|
|
263
272
|
onStartDateInput: ee,
|
|
264
|
-
onStartTimeInput:
|
|
265
|
-
onTimeInputKeyDown:
|
|
273
|
+
onStartTimeInput: pe,
|
|
274
|
+
onTimeInputKeyDown: ge
|
|
266
275
|
};
|
|
267
276
|
}
|
|
268
277
|
});
|
|
269
|
-
var
|
|
278
|
+
var qe = function() {
|
|
270
279
|
var e = this, n = e._self._c;
|
|
271
280
|
return e._self._setupProxy, n("div", { staticClass: "b-date-range-picker-calendar" }, [n("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [n("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.quickSelectRanges ? n("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.hasSlot("title") ? [e._t("title")] : e._e(), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.$t("dateFrom"), value: e.dateTextInput.startDate, error: e.startDateError }, on: { input: e.onStartDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
272
281
|
return [e._v("YYYY-MM-DD")];
|
|
@@ -277,52 +286,52 @@ var Ne = function() {
|
|
|
277
286
|
}, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
278
287
|
return [e._v("HH:MM:SS")];
|
|
279
288
|
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.value, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, "number-of-months": e.numberOfMonths, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
289
|
+
}, Ye = [], Le = /* @__PURE__ */ me(
|
|
290
|
+
Be,
|
|
291
|
+
qe,
|
|
292
|
+
Ye,
|
|
284
293
|
!1,
|
|
285
294
|
null,
|
|
286
|
-
"
|
|
295
|
+
"d5d0c41d",
|
|
287
296
|
null,
|
|
288
297
|
null
|
|
289
298
|
);
|
|
290
|
-
const C =
|
|
299
|
+
const C = Le.exports;
|
|
291
300
|
var O = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(O || {});
|
|
292
|
-
const
|
|
301
|
+
const Ve = ({
|
|
293
302
|
datePickerValue: t,
|
|
294
303
|
isDateIncorrect: e
|
|
295
304
|
}) => {
|
|
296
|
-
var v,
|
|
297
|
-
const { locale: n, t: o } =
|
|
305
|
+
var v, d, R, u, p;
|
|
306
|
+
const { locale: n, t: o } = G(), b = { de: z, enUS: I, fr: J }, g = (D, m) => F(D, m, {
|
|
298
307
|
locale: b[n.value.substring(0, 2)] || I
|
|
299
|
-
}),
|
|
308
|
+
}), i = (D) => F(D, T.HOUR_MINUTE_SECONDS, {
|
|
300
309
|
locale: b[n.value.substring(0, 2)] || I
|
|
301
|
-
}),
|
|
310
|
+
}), f = K({
|
|
302
311
|
startDate: (v = t.value) != null && v.startDate ? g(t.value.startDate, T.NUMERIC_DATE_YEAR_FIRST) : void 0,
|
|
303
|
-
endDate: (
|
|
312
|
+
endDate: (d = t.value) != null && d.endDate ? g(t.value.endDate, T.NUMERIC_DATE_YEAR_FIRST) : void 0,
|
|
304
313
|
// Set time if the startDate/endDate are set
|
|
305
|
-
startTime: (R = t.value) != null && R.startDate ?
|
|
306
|
-
endTime: (
|
|
314
|
+
startTime: (R = t.value) != null && R.startDate ? i((u = t.value) == null ? void 0 : u.startDate) : void 0,
|
|
315
|
+
endTime: (p = t.value) != null && p.endDate ? i(t.value.endDate) : void 0
|
|
307
316
|
});
|
|
308
317
|
return {
|
|
309
318
|
// Values
|
|
310
319
|
dateDisplayValue: M(() => {
|
|
311
320
|
if (e.value)
|
|
312
|
-
return `${
|
|
321
|
+
return `${f.startDate || ""} - ${f.endDate || ""}`;
|
|
313
322
|
if (!t.value || !t.value.startDate && !t.value.endDate)
|
|
314
323
|
return o("selectDateRange");
|
|
315
|
-
const { startDate: D, endDate:
|
|
324
|
+
const { startDate: D, endDate: m } = f;
|
|
316
325
|
return `${g(new Date(D), T.FULL_DATE_MONTH_FIRST)} - ${g(
|
|
317
|
-
new Date(
|
|
326
|
+
new Date(m),
|
|
318
327
|
T.FULL_DATE_MONTH_FIRST
|
|
319
328
|
)}`;
|
|
320
329
|
}),
|
|
321
|
-
textInputDisplayValue:
|
|
330
|
+
textInputDisplayValue: f,
|
|
322
331
|
// Methods
|
|
323
332
|
formatTextInputDisplayValue: () => ""
|
|
324
333
|
};
|
|
325
|
-
},
|
|
334
|
+
}, He = {
|
|
326
335
|
"en-US": {
|
|
327
336
|
dateRangePicker: "Date range picker {name}",
|
|
328
337
|
optional: "optional",
|
|
@@ -332,17 +341,17 @@ const Ye = ({
|
|
|
332
341
|
selectDateRange: "Select a date range",
|
|
333
342
|
selectedDateIsNotAvailable: "Selected date is not available"
|
|
334
343
|
}
|
|
335
|
-
},
|
|
336
|
-
i18n: { messages:
|
|
344
|
+
}, We = ue({
|
|
345
|
+
i18n: { messages: He },
|
|
337
346
|
name: "bento-date-range-picker",
|
|
338
347
|
components: {
|
|
339
|
-
BentoTypography:
|
|
340
|
-
BentoPopover:
|
|
348
|
+
BentoTypography: De,
|
|
349
|
+
BentoPopover: ye,
|
|
341
350
|
DateRangePickerCalendar: C,
|
|
342
|
-
DropdownInputDefault:
|
|
343
|
-
ErrorMessage:
|
|
351
|
+
DropdownInputDefault: be,
|
|
352
|
+
ErrorMessage: Me
|
|
344
353
|
},
|
|
345
|
-
directives: { BentoClickOutsideDirective:
|
|
354
|
+
directives: { BentoClickOutsideDirective: Fe },
|
|
346
355
|
props: {
|
|
347
356
|
/**
|
|
348
357
|
* Allows user to enter time values in the form
|
|
@@ -410,35 +419,35 @@ const Ye = ({
|
|
|
410
419
|
},
|
|
411
420
|
emits: [O.INPUT],
|
|
412
421
|
setup(t, { emit: e }) {
|
|
413
|
-
const { locale: n, t: o } =
|
|
422
|
+
const { locale: n, t: o } = G(), b = { de: z, enUS: I, fr: J }, g = N("bento-date-range-picker-container"), i = N("bento-date-range-picker-label"), f = N("bento-date-range-picker-description"), P = N("bento-date-range-picker-error"), w = N("bento-date-range-picker-date-error"), v = M(
|
|
414
423
|
() => t.label || o("dateRangePicker", { name: g })
|
|
415
|
-
),
|
|
416
|
-
|
|
424
|
+
), d = y(!1), R = y(null), u = y(!1), { isReadOnly: p } = Ee(oe(t, "readonly"));
|
|
425
|
+
Ie(
|
|
417
426
|
() => t.disabled,
|
|
418
427
|
() => {
|
|
419
428
|
t.disabled && u.value && (u.value = !1);
|
|
420
429
|
}
|
|
421
430
|
);
|
|
422
431
|
const D = M(() => ({
|
|
423
|
-
"b-date-range-picker__description--error": !!t.errorMessage ||
|
|
424
|
-
})), { dateDisplayValue:
|
|
425
|
-
datePickerValue:
|
|
426
|
-
isDateIncorrect:
|
|
432
|
+
"b-date-range-picker__description--error": !!t.errorMessage || d.value
|
|
433
|
+
})), { dateDisplayValue: m, textInputDisplayValue: r, formatTextInputDisplayValue: L } = Ve({
|
|
434
|
+
datePickerValue: oe(t, "value"),
|
|
435
|
+
isDateIncorrect: d
|
|
427
436
|
}), U = M(
|
|
428
|
-
() => `${t.description ?
|
|
437
|
+
() => `${t.description ? f : ""} ${t.errorMessage ? P : ""} ${d.value ? w : ""}`.trim() || null
|
|
429
438
|
);
|
|
430
439
|
return {
|
|
431
440
|
// Refs
|
|
432
441
|
inputContainerRef: R,
|
|
433
442
|
// Values,
|
|
434
|
-
dateDisplayValue:
|
|
443
|
+
dateDisplayValue: m,
|
|
435
444
|
datePickerContainerId: g,
|
|
436
445
|
descriptionConditionalClasses: D,
|
|
437
|
-
isDateIncorrect:
|
|
446
|
+
isDateIncorrect: d,
|
|
438
447
|
isDateRangePickerOpen: u,
|
|
439
|
-
isReadOnly:
|
|
440
|
-
labelId:
|
|
441
|
-
descriptionId:
|
|
448
|
+
isReadOnly: p,
|
|
449
|
+
labelId: i,
|
|
450
|
+
descriptionId: f,
|
|
442
451
|
dateErrorId: w,
|
|
443
452
|
errorId: P,
|
|
444
453
|
popoverAriaLabel: v,
|
|
@@ -449,57 +458,57 @@ const Ye = ({
|
|
|
449
458
|
u.value = !1;
|
|
450
459
|
},
|
|
451
460
|
clearDateRangePickerValue: async () => {
|
|
452
|
-
|
|
461
|
+
d.value && (d.value = !1), e(O.INPUT, null);
|
|
453
462
|
},
|
|
454
463
|
openDateRangePicker: () => {
|
|
455
|
-
u.value = !0,
|
|
464
|
+
u.value = !0, L();
|
|
456
465
|
},
|
|
457
|
-
onRangeSelectorInput: (
|
|
458
|
-
if (
|
|
466
|
+
onRangeSelectorInput: (c) => {
|
|
467
|
+
if (c) {
|
|
459
468
|
const k = (x) => F(x, T.NUMERIC_DATE_YEAR_FIRST, {
|
|
460
469
|
locale: b[n.value.substring(0, 2)] || I
|
|
461
470
|
});
|
|
462
|
-
r.startDate = k(
|
|
471
|
+
r.startDate = k(c.startDate), r.endDate = k(c.endDate), e(O.INPUT, c);
|
|
463
472
|
}
|
|
464
473
|
},
|
|
465
474
|
onEnterPressedOverInput: () => {
|
|
466
|
-
|
|
475
|
+
d.value || (u.value = !1);
|
|
467
476
|
},
|
|
468
|
-
onDateRangePickerInput: (
|
|
469
|
-
|
|
477
|
+
onDateRangePickerInput: (c) => {
|
|
478
|
+
d.value = !1;
|
|
470
479
|
const k = (x) => F(x, T.NUMERIC_DATE_YEAR_FIRST, {
|
|
471
480
|
locale: b[n.value.substring(0, 2)] || I
|
|
472
481
|
});
|
|
473
|
-
r.startDate = k(
|
|
482
|
+
r.startDate = k(c.startDate), r.endDate = k(c.endDate), e(O.INPUT, c);
|
|
474
483
|
},
|
|
475
|
-
onDateRangePickerError: (
|
|
476
|
-
|
|
484
|
+
onDateRangePickerError: (c) => {
|
|
485
|
+
d.value = !0, r.startDate = c.startDate, r.endDate = c.endDate, e(O.INPUT, { startDate: null, endDate: null });
|
|
477
486
|
},
|
|
478
|
-
onDateRangePickerFormDateInputUpdate: (
|
|
479
|
-
|
|
487
|
+
onDateRangePickerFormDateInputUpdate: (c) => {
|
|
488
|
+
d.value = !1, c.startTime && (r.startTime = c.startTime), c.endTime && (r.endTime = c.endTime);
|
|
480
489
|
}
|
|
481
490
|
};
|
|
482
491
|
}
|
|
483
492
|
});
|
|
484
|
-
var
|
|
493
|
+
var Ke = function() {
|
|
485
494
|
var e = this, n = e._self._c;
|
|
486
495
|
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? n("div", { staticClass: "b-date-range-picker__label", attrs: { id: e.labelId } }, [n("bento-typography", { attrs: { el: "span", stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? n("bento-typography", { staticClass: "b-date-range-picker__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? n("bento-typography", { staticClass: "b-date-range-picker__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("required")) + ") ")]) : e._e()], 1) : e._e(), n("div", { on: { keydown: function(o) {
|
|
487
496
|
return !o.type.indexOf("key") && e._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
|
|
488
497
|
} } }, [n("dropdown-input-default", { ref: "inputContainerRef", attrs: { ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.isDateIncorrect, open: e.isDateRangePickerOpen, "display-value": e.dateDisplayValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.isDateIncorrect ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.$t("provideDateInAFormat").toString() } }) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? n("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [n("date-range-picker-calendar", { attrs: { "allow-time-input": e.allowTimeInput, "quick-select-ranges": e.quickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, "number-of-months": e.numberOfMonths, "date-form-data": e.textInputDisplayValue }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate } })], 1) : e._e()], 1);
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
498
|
+
}, Ge = [], je = /* @__PURE__ */ me(
|
|
499
|
+
We,
|
|
500
|
+
Ke,
|
|
501
|
+
Ge,
|
|
493
502
|
!1,
|
|
494
503
|
null,
|
|
495
504
|
"0efe8a9a",
|
|
496
505
|
null,
|
|
497
506
|
null
|
|
498
507
|
);
|
|
499
|
-
const
|
|
508
|
+
const ft = je.exports;
|
|
500
509
|
export {
|
|
501
|
-
|
|
510
|
+
ft as B,
|
|
502
511
|
C as D,
|
|
503
512
|
O as a
|
|
504
513
|
};
|
|
505
|
-
//# sourceMappingURL=index.
|
|
514
|
+
//# sourceMappingURL=index.4a11da21.js.map
|