@adyen/bento-vue3 1.87.0 → 1.87.1
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/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/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- 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/sidepanel.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{checkbox-group.ODQy-ICn.js → checkbox-group.CYdDwMRy.js} +2 -2
- package/dist/chunks/{checkbox-group.ODQy-ICn.js.map → checkbox-group.CYdDwMRy.js.map} +1 -1
- package/dist/chunks/{checkbox.C3Ewfygy.js → checkbox.CSV86azi.js} +18 -18
- package/dist/chunks/{checkbox.C3Ewfygy.js.map → checkbox.CSV86azi.js.map} +1 -1
- package/dist/chunks/{data-grid.KudN-TcY.js → data-grid.DKys-Nai.js} +4 -4
- package/dist/chunks/{data-grid.KudN-TcY.js.map → data-grid.DKys-Nai.js.map} +1 -1
- package/dist/chunks/{date-range-picker.CDDw_xl_.js → date-range-picker.CHq6WwCb.js} +430 -450
- package/dist/chunks/{date-range-picker.CDDw_xl_.js.map → date-range-picker.CHq6WwCb.js.map} +1 -1
- package/dist/chunks/{filter-bar.xwfVuZw4.js → filter-bar.CuN1cxZZ.js} +8 -8
- package/dist/chunks/{filter-bar.xwfVuZw4.js.map → filter-bar.CuN1cxZZ.js.map} +1 -1
- package/dist/chunks/{header-with-views.BT6lbAby.js → header-with-views.BwhK4MPe.js} +2 -2
- package/dist/chunks/{header-with-views.BT6lbAby.js.map → header-with-views.BwhK4MPe.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DH1d5Zcp.js → rich-text-editor.B5sL2RuL.js} +2 -2
- package/dist/chunks/{rich-text-editor.DH1d5Zcp.js.map → rich-text-editor.B5sL2RuL.js.map} +1 -1
- package/dist/chunks/{selection-card-group.KBl4fVSH.js → selection-card-group.BuA6CLom.js} +9 -9
- package/dist/chunks/{selection-card-group.KBl4fVSH.js.map → selection-card-group.BuA6CLom.js.map} +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +8 -8
- package/dist/rich-text-editor.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { j as
|
|
1
|
+
import { reactive as ke, defineComponent as ra, useSlots as Ia, ref as B, computed as p, onMounted as sa, openBlock as F, createElementBlock as be, createElementVNode as z, normalizeClass as he, unref as c, renderSlot as We, createCommentVNode as C, createBlock as G, createVNode as K, withCtx as W, createTextVNode as ae, toDisplayString as Ae, toRaw as Be, watch as Re, useAttrs as Ma, toRef as Ee, withDirectives as Sa, withKeys as Ge, createSlots as Oa } from "vue";
|
|
2
|
+
import { j as wa } from "./index.Dppy4qHk.js";
|
|
3
3
|
import { B as Ea } from "./divider.BIY84UH7.js";
|
|
4
|
-
import { h as
|
|
5
|
-
import { B as
|
|
6
|
-
import { D as
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
9
|
-
import { e as la, f as
|
|
10
|
-
import { u as
|
|
11
|
-
import { t as
|
|
12
|
-
import { u as
|
|
13
|
-
import { B as
|
|
14
|
-
import { u as
|
|
4
|
+
import { h as Fa, B as _a } from "./button-actions.BYBpjNqy.js";
|
|
5
|
+
import { B as Ce, d as Ke } from "./typography.B3J6_tYk.js";
|
|
6
|
+
import { D as Aa } from "./dropdown-default-textbox.CskseEho.js";
|
|
7
|
+
import { g as le } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
+
import { u as qe } from "./index.B875RXHM.js";
|
|
9
|
+
import { e as la, f as oe, i as x, h as R, j as Ba, k as He, l as Ca, s as Pe, m as qa, n as Ve, b as Q, u as Ya, o as q, g as Na } from "./calendar.vM3abC8y.js";
|
|
10
|
+
import { u as Ye, a as xa } from "./use-date-input-formatter.dtbK-CEy.js";
|
|
11
|
+
import { t as H, n as Ua, c as $a } from "./en-US.YeSsZuOc.js";
|
|
12
|
+
import { u as ja } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
13
|
+
import { B as La } from "./directive.rXUeDb8p.js";
|
|
14
|
+
import { u as Qa } from "./form-field.D_2g7vaP.js";
|
|
15
15
|
import { B as ge } from "./input-field.DqXVoKpy.js";
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
16
|
+
import { B as Wa } from "./dropdown.Bdw2B-Cw.js";
|
|
17
|
+
import { B as Ga } from "./segmented-control.Aqquod8g.js";
|
|
18
18
|
import { d as Te } from "./debounce.DUTu11PS.js";
|
|
19
|
-
import { u as
|
|
20
|
-
import { e as
|
|
21
|
-
import { s as
|
|
22
|
-
import { c as
|
|
19
|
+
import { u as Ka } from "./use-has-slot.B7eQSabc.js";
|
|
20
|
+
import { e as $, a as ze } from "./differenceInMonths.CIYECBxK.js";
|
|
21
|
+
import { s as Je } from "./startOfWeek.CXhhX-R7.js";
|
|
22
|
+
import { c as Ha } from "./constructNow.CIc7d13I.js";
|
|
23
23
|
import { _ as oa } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
24
|
-
import { F as
|
|
25
|
-
import { B as
|
|
24
|
+
import { F as Pa, E as Xe } from "./error-message.oGiefI2-.js";
|
|
25
|
+
import { B as Va } from "./button-actions.types.BptAXjD8.js";
|
|
26
26
|
import "../assets/date-range-picker.css";
|
|
27
27
|
function ia(t, o, d) {
|
|
28
28
|
return la(t, o * 3, d);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
const d =
|
|
30
|
+
function Ze(t, o) {
|
|
31
|
+
const d = H(t, o == null ? void 0 : o.in);
|
|
32
32
|
return Math.trunc(d.getMonth() / 3) + 1;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return
|
|
34
|
+
function ea(t, o) {
|
|
35
|
+
return H(t, o == null ? void 0 : o.in).getFullYear();
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return +
|
|
37
|
+
function Fe(t, o) {
|
|
38
|
+
return +H(t) == +H(o);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const [r, e] =
|
|
40
|
+
function za(t, o, d) {
|
|
41
|
+
const [r, e] = Ua(
|
|
42
42
|
d == null ? void 0 : d.in,
|
|
43
43
|
t,
|
|
44
44
|
o
|
|
45
45
|
);
|
|
46
|
-
return +
|
|
46
|
+
return +oe(r) == +oe(e);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
const d =
|
|
48
|
+
function aa(t, o) {
|
|
49
|
+
const d = H(t, o == null ? void 0 : o.in);
|
|
50
50
|
return d.setMilliseconds(0), d;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return +
|
|
52
|
+
function _e(t, o) {
|
|
53
|
+
return +aa(t) == +aa(o);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
function Ja(t, o) {
|
|
56
|
+
return x(
|
|
57
|
+
$a(t, t),
|
|
58
|
+
Ha(t)
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
const r =
|
|
61
|
+
function Xa(t, o, d) {
|
|
62
|
+
const r = H(t, d == null ? void 0 : d.in);
|
|
63
63
|
return r.setHours(o), r;
|
|
64
64
|
}
|
|
65
65
|
function ta(t, o, d) {
|
|
66
|
-
const r =
|
|
66
|
+
const r = H(t, d == null ? void 0 : d.in);
|
|
67
67
|
return r.setMilliseconds(o), r;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const r =
|
|
69
|
+
function Za(t, o, d) {
|
|
70
|
+
const r = H(t, d == null ? void 0 : d.in);
|
|
71
71
|
return r.setMinutes(o), r;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
const r =
|
|
73
|
+
function et(t, o, d) {
|
|
74
|
+
const r = H(t, d == null ? void 0 : d.in);
|
|
75
75
|
return r.setSeconds(o), r;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function at(t, o, d) {
|
|
78
78
|
return ia(t, -1, d);
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const tt = ({
|
|
81
81
|
firstDayOfWeek: t,
|
|
82
82
|
min: o,
|
|
83
83
|
max: d
|
|
84
84
|
}) => ({ getGranularCalendarLimits: (e) => {
|
|
85
85
|
if (!o && !d)
|
|
86
86
|
return { min: null, max: null };
|
|
87
|
-
let u = o ?
|
|
87
|
+
let u = o ? R(o) : null, f = d ? $(d) : null;
|
|
88
88
|
if ((e == null ? void 0 : e.type) === "weekly") {
|
|
89
89
|
if (e.earliest)
|
|
90
|
-
u =
|
|
90
|
+
u = R(e.earliest);
|
|
91
91
|
else if (u) {
|
|
92
|
-
const y =
|
|
93
|
-
|
|
92
|
+
const y = Je(u, { weekStartsOn: t });
|
|
93
|
+
x(u, y) || (u = R(Ba(He(u, { weekStartsOn: t }), 1)));
|
|
94
94
|
}
|
|
95
95
|
if (e.latest)
|
|
96
|
-
f =
|
|
96
|
+
f = $(e.latest);
|
|
97
97
|
else if (f) {
|
|
98
|
-
const y =
|
|
99
|
-
|
|
98
|
+
const y = He(f, { weekStartsOn: t });
|
|
99
|
+
x(f, y) || (f = $(Ca(Je(f, { weekStartsOn: t }), 1)));
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
if ((e == null ? void 0 : e.type) === "monthly") {
|
|
103
103
|
if (e.earliest)
|
|
104
|
-
u =
|
|
104
|
+
u = R(e.earliest);
|
|
105
105
|
else if (u) {
|
|
106
|
-
const y =
|
|
107
|
-
|
|
106
|
+
const y = Pe(u);
|
|
107
|
+
x(u, y) || (u = Pe(la(u, 1)));
|
|
108
108
|
}
|
|
109
109
|
if (e.latest)
|
|
110
|
-
f =
|
|
110
|
+
f = $(e.latest);
|
|
111
111
|
else if (f) {
|
|
112
|
-
const y =
|
|
113
|
-
|
|
112
|
+
const y = ze(f);
|
|
113
|
+
x(f, y) || (f = ze(qa(f, 1)));
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
if ((e == null ? void 0 : e.type) === "quarterly") {
|
|
117
117
|
if (e.earliest)
|
|
118
|
-
u =
|
|
118
|
+
u = oe(e.earliest);
|
|
119
119
|
else if (u) {
|
|
120
|
-
const y =
|
|
121
|
-
|
|
120
|
+
const y = oe(u);
|
|
121
|
+
x(u, y) || (u = oe(ia(u, 1)));
|
|
122
122
|
}
|
|
123
123
|
if (e.latest)
|
|
124
|
-
f =
|
|
124
|
+
f = $(e.latest);
|
|
125
125
|
else if (f) {
|
|
126
|
-
const y =
|
|
127
|
-
|
|
126
|
+
const y = Ve(f);
|
|
127
|
+
x(f, y) || (f = Ve(at(f)));
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
return { min: u, max: f };
|
|
131
|
-
} }),
|
|
132
|
-
const t =
|
|
131
|
+
} }), nt = () => {
|
|
132
|
+
const t = ke({
|
|
133
133
|
daily: null,
|
|
134
134
|
weekly: null,
|
|
135
135
|
monthly: null,
|
|
@@ -146,8 +146,8 @@ const nt = ({
|
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
148
|
var g = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(g || {});
|
|
149
|
-
const
|
|
150
|
-
const { selectionStart: o } = t.target, d = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], r =
|
|
149
|
+
const rt = /[\d]/, st = /^\d{2}$/, lt = /^\d{2}:\d{2}$/, ot = (t) => {
|
|
150
|
+
const { selectionStart: o } = t.target, d = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], r = rt.test(t.key) || d.includes(t.key), e = [1, 2, 4, 5].includes(o) && t.key === ":";
|
|
151
151
|
!r && !e && t.preventDefault();
|
|
152
152
|
}, na = (t) => {
|
|
153
153
|
if (!t)
|
|
@@ -156,7 +156,7 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
156
156
|
if (o.length === 1 && parseInt(t, 10) > 2)
|
|
157
157
|
return `0${o}:`;
|
|
158
158
|
const [d, r] = o.slice(-2);
|
|
159
|
-
return [2, 5].includes(o.length) && r === ":" && (o = `${o.slice(0, o.length - 2)}0${d}`), (
|
|
159
|
+
return [2, 5].includes(o.length) && r === ":" && (o = `${o.slice(0, o.length - 2)}0${d}`), (st.test(o) || lt.test(o)) && (o += ":"), o;
|
|
160
160
|
}, ua = {
|
|
161
161
|
"en-US": {
|
|
162
162
|
"DD-MM-YYYY": "DD-MM-YYYY",
|
|
@@ -203,15 +203,15 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
203
203
|
timeTo: "Hora de",
|
|
204
204
|
weekly: "Semanal"
|
|
205
205
|
}
|
|
206
|
-
},
|
|
206
|
+
}, it = { class: "b-date-range-picker-calendar" }, ut = { class: "b-date-range-picker-calendar__form" }, dt = { key: 0 }, mt = {
|
|
207
207
|
key: 0,
|
|
208
208
|
class: "b-date-range-picker-calendar__calendars-container",
|
|
209
209
|
"data-testid": "date-range-picker-calendar-calendar-container"
|
|
210
|
-
},
|
|
210
|
+
}, ct = {
|
|
211
211
|
name: "date-range-picker-calendar",
|
|
212
212
|
i18n: { messages: ua }
|
|
213
|
-
},
|
|
214
|
-
...
|
|
213
|
+
}, Dt = /* @__PURE__ */ ra({
|
|
214
|
+
...ct,
|
|
215
215
|
props: {
|
|
216
216
|
/**
|
|
217
217
|
* Allows user to enter time values in the form
|
|
@@ -227,7 +227,7 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
227
227
|
/**
|
|
228
228
|
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
229
229
|
*/
|
|
230
|
-
firstDayOfWeek:
|
|
230
|
+
firstDayOfWeek: Q.props.firstDayOfWeek,
|
|
231
231
|
/**
|
|
232
232
|
* A list of available granularities.
|
|
233
233
|
* If present, the date picker will display a segmented control to change granularity.
|
|
@@ -239,25 +239,25 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
239
239
|
/**
|
|
240
240
|
* Indicate if a date should be disabled or not
|
|
241
241
|
*/
|
|
242
|
-
isDateDisabled:
|
|
242
|
+
isDateDisabled: Q.props.isDateDisabled,
|
|
243
243
|
/**
|
|
244
244
|
* Set a maximum number of dates to be selectable by the range.
|
|
245
245
|
*/
|
|
246
|
-
maxRange:
|
|
246
|
+
maxRange: Q.props.maxRange,
|
|
247
247
|
/**
|
|
248
248
|
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
249
249
|
*/
|
|
250
|
-
min:
|
|
250
|
+
min: Q.props.min,
|
|
251
251
|
/**
|
|
252
252
|
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
253
253
|
*/
|
|
254
|
-
max:
|
|
254
|
+
max: Q.props.max,
|
|
255
255
|
/**
|
|
256
256
|
* Number of months rendered on pane
|
|
257
257
|
*/
|
|
258
258
|
numberOfMonths: {
|
|
259
|
-
type:
|
|
260
|
-
default:
|
|
259
|
+
type: Q.props.numberOfMonths.type,
|
|
260
|
+
default: Q.props.numberOfMonths.default,
|
|
261
261
|
validator: (t) => t >= 0
|
|
262
262
|
},
|
|
263
263
|
/**
|
|
@@ -282,7 +282,7 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
282
282
|
/**
|
|
283
283
|
* The type of calendar to display. Defaults to showing days.
|
|
284
284
|
*/
|
|
285
|
-
variant:
|
|
285
|
+
variant: Q.props.variant
|
|
286
286
|
},
|
|
287
287
|
emits: [
|
|
288
288
|
g.CUSTOM_RANGE,
|
|
@@ -292,247 +292,227 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
292
292
|
g.START_DATE_SELECTED
|
|
293
293
|
],
|
|
294
294
|
setup(t, { emit: o }) {
|
|
295
|
-
var
|
|
296
|
-
const r = "customRange", e = t, u = o, f = Ia(), y =
|
|
297
|
-
dateFormat:
|
|
298
|
-
isFormatValid:
|
|
299
|
-
parseDate:
|
|
300
|
-
onKeyDown:
|
|
295
|
+
var $e, je, Le, Qe;
|
|
296
|
+
const r = "customRange", e = t, u = o, f = Ia(), y = Ka(f), { t: k } = qe({ messages: ua }), {
|
|
297
|
+
dateFormat: P,
|
|
298
|
+
isFormatValid: M,
|
|
299
|
+
parseDate: _,
|
|
300
|
+
onKeyDown: ie,
|
|
301
301
|
autoFormat: v,
|
|
302
|
-
formatDate:
|
|
303
|
-
} =
|
|
304
|
-
startDate: (
|
|
305
|
-
endDate: (
|
|
306
|
-
range: (
|
|
302
|
+
formatDate: te
|
|
303
|
+
} = Ye(), A = B({}), Y = p(() => e.variant === "month" ? "monthly" : "daily"), U = p(() => e.numberOfMonths === 0), n = ke({
|
|
304
|
+
startDate: ($e = e.value) == null ? void 0 : $e.startDate,
|
|
305
|
+
endDate: (je = e.value) == null ? void 0 : je.endDate,
|
|
306
|
+
range: (Le = e.value) == null ? void 0 : Le.range,
|
|
307
307
|
...e.granularities ? {
|
|
308
|
-
granularity: ((
|
|
308
|
+
granularity: ((Qe = e.value) == null ? void 0 : Qe.granularity) || Y.value
|
|
309
309
|
} : {}
|
|
310
|
-
})
|
|
311
|
-
function h(a) {
|
|
312
|
-
return a ? new Date(
|
|
313
|
-
a.getUTCFullYear(),
|
|
314
|
-
a.getUTCMonth(),
|
|
315
|
-
a.getUTCDate(),
|
|
316
|
-
a.getUTCHours(),
|
|
317
|
-
a.getUTCMinutes(),
|
|
318
|
-
a.getUTCSeconds()
|
|
319
|
-
) : null;
|
|
320
|
-
}
|
|
321
|
-
const T = p(() => {
|
|
310
|
+
}), N = p(() => {
|
|
322
311
|
var a, l;
|
|
323
312
|
return (
|
|
324
313
|
// eslint-disable-next-line consistent-return
|
|
325
314
|
((l = (a = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : a.find(({ value: m, data: D }) => {
|
|
326
|
-
var
|
|
315
|
+
var h;
|
|
327
316
|
if (!D.endDate) {
|
|
328
317
|
if (D.isRelativeToNow) {
|
|
329
|
-
const
|
|
330
|
-
return
|
|
331
|
-
h(w.startDate),
|
|
332
|
-
h(n.startDate)
|
|
333
|
-
) && be(
|
|
334
|
-
h(w.endDate),
|
|
335
|
-
h(n.endDate)
|
|
336
|
-
) : (
|
|
318
|
+
const E = (h = A.value) == null ? void 0 : h[m];
|
|
319
|
+
return E ? Fe(E.startDate, n.startDate) && Fe(E.endDate, n.endDate) : (
|
|
337
320
|
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
338
321
|
// with the internal range's stored range identifier.
|
|
339
322
|
m === n.range
|
|
340
323
|
);
|
|
341
324
|
}
|
|
342
|
-
return
|
|
343
|
-
h(n.endDate),
|
|
344
|
-
h(j(n.endDate))
|
|
345
|
-
) && Xa(h(n.endDate)) && (e.granularities ? D.granularity === n.granularity : !0);
|
|
325
|
+
return Fe(D.startDate, n.startDate) && Ja(n.endDate) && (!e.allowTimeInput || _e(n.endDate, $(n.endDate))) && (e.granularities ? D.granularity === n.granularity : !0);
|
|
346
326
|
}
|
|
347
327
|
if (e.allowTimeInput)
|
|
348
|
-
return
|
|
328
|
+
return _e(D.startDate, n.startDate) && _e(D.endDate, n.endDate) && (e.granularities ? D.granularity === n.granularity : !0);
|
|
349
329
|
if (D.endDate)
|
|
350
|
-
return
|
|
330
|
+
return x(D.startDate, n.startDate) && x(D.endDate, n.endDate) && (e.granularities ? D.granularity === n.granularity : !0);
|
|
351
331
|
})) == null ? void 0 : l.value) ?? r
|
|
352
332
|
);
|
|
353
|
-
}),
|
|
333
|
+
}), O = p(() => ({
|
|
354
334
|
"b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
|
|
355
|
-
})),
|
|
356
|
-
{ label:
|
|
335
|
+
})), Ie = p(() => [
|
|
336
|
+
{ label: k("customRange"), value: r },
|
|
357
337
|
...e.quickSelectRanges ? e.quickSelectRanges : []
|
|
358
|
-
]),
|
|
338
|
+
]), J = p(
|
|
359
339
|
() => {
|
|
360
340
|
var a;
|
|
361
341
|
return ((a = e.granularities) == null ? void 0 : a.find(({ type: l }) => l === n.granularity)) || null;
|
|
362
342
|
}
|
|
363
|
-
),
|
|
343
|
+
), ue = p(
|
|
364
344
|
() => {
|
|
365
345
|
var a;
|
|
366
346
|
return ((a = e.granularities) == null ? void 0 : a.map(({ type: l, disabled: m }) => ({
|
|
367
|
-
label:
|
|
347
|
+
label: k(l),
|
|
368
348
|
value: l,
|
|
369
349
|
disabled: m
|
|
370
350
|
}))) ?? [];
|
|
371
351
|
}
|
|
372
|
-
), { getGranularCalendarLimits:
|
|
373
|
-
() => e.granularities ?
|
|
352
|
+
), { getGranularCalendarLimits: re } = tt(e), T = p(
|
|
353
|
+
() => e.granularities ? re(J.value) : { min: e.min ? R(e.min) : null, max: e.max ? $(e.max) : null }
|
|
374
354
|
), {
|
|
375
|
-
adjustDateForQuarterly:
|
|
376
|
-
adjustDateForMonthly:
|
|
377
|
-
adjustDateForWeekly:
|
|
378
|
-
adjustStartDateInputForWeekly:
|
|
379
|
-
adjustEndDateInputForWeekly:
|
|
380
|
-
adjustStartDateInputForMonthly:
|
|
381
|
-
adjustEndDateInputForMonthly:
|
|
382
|
-
adjustStartDateInputForQuarterly:
|
|
383
|
-
adjustEndDateInputForQuarterly:
|
|
384
|
-
} = Ya(e.firstDayOfWeek), { savedRanges:
|
|
355
|
+
adjustDateForQuarterly: Me,
|
|
356
|
+
adjustDateForMonthly: de,
|
|
357
|
+
adjustDateForWeekly: se,
|
|
358
|
+
adjustStartDateInputForWeekly: b,
|
|
359
|
+
adjustEndDateInputForWeekly: Se,
|
|
360
|
+
adjustStartDateInputForMonthly: X,
|
|
361
|
+
adjustEndDateInputForMonthly: Oe,
|
|
362
|
+
adjustStartDateInputForQuarterly: me,
|
|
363
|
+
adjustEndDateInputForQuarterly: ce
|
|
364
|
+
} = Ya(e.firstDayOfWeek), { savedRanges: w, saveRange: ne, resetSavedRanges: De } = nt(), S = (a) => a ? te(a) : "", Z = B(!1), ee = B(!1), j = B(!1), L = B(!1), i = ke({
|
|
385
365
|
startDate: e.dateFormData.startDate,
|
|
386
366
|
endDate: e.dateFormData.endDate,
|
|
387
367
|
startTime: e.dateFormData.startTime,
|
|
388
368
|
endTime: e.dateFormData.endTime
|
|
389
|
-
}),
|
|
369
|
+
}), fe = (a, l) => {
|
|
390
370
|
let m = new Date(a);
|
|
391
|
-
const [D,
|
|
392
|
-
return m =
|
|
393
|
-
},
|
|
371
|
+
const [D, h, E] = l.split(":");
|
|
372
|
+
return m = Xa(m, parseInt(D, 10)), m = Za(m, parseInt(h, 10)), m = et(m, parseInt(E, 10)), m;
|
|
373
|
+
}, ve = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), s = (a, l) => {
|
|
394
374
|
const m = () => {
|
|
395
|
-
if (l &&
|
|
396
|
-
const D =
|
|
375
|
+
if (l && V(l)) {
|
|
376
|
+
const D = fe(_(l), a);
|
|
397
377
|
if (e.min && D < ta(e.min, 0) || e.max && D > ta(e.max, 0))
|
|
398
378
|
return !1;
|
|
399
379
|
}
|
|
400
380
|
return !0;
|
|
401
381
|
};
|
|
402
|
-
return
|
|
403
|
-
},
|
|
382
|
+
return ve(a) && m();
|
|
383
|
+
}, I = (a, l) => !l || !ve(l) || e.variant === "month" ? a : fe(new Date(a), l), pe = (a) => {
|
|
404
384
|
i.startTime = q(
|
|
405
|
-
e.min && e.allowTimeInput &&
|
|
385
|
+
e.min && e.allowTimeInput && x(e.min, a.startDate) ? e.min : R(a.startDate)
|
|
406
386
|
), i.endTime = q(
|
|
407
|
-
e.max && e.allowTimeInput &&
|
|
408
|
-
), n.startDate =
|
|
387
|
+
e.max && e.allowTimeInput && x(e.max, a.endDate) ? e.max : $(a.endDate)
|
|
388
|
+
), n.startDate = I(a.startDate, i.startTime), n.endDate = I(a.endDate, i.endTime), n.range = null, e.granularities && De(), u(g.INPUT, {
|
|
409
389
|
...n,
|
|
410
|
-
range:
|
|
390
|
+
range: N.value
|
|
411
391
|
});
|
|
412
|
-
},
|
|
392
|
+
}, V = (a) => {
|
|
413
393
|
if (!a)
|
|
414
394
|
return !1;
|
|
415
|
-
const l = (m) => e.min &&
|
|
416
|
-
return
|
|
395
|
+
const l = (m) => e.min && R(m) < R(e.min) || e.max && R(m) > R(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(R(m)) : !0;
|
|
396
|
+
return M(a) && l(_(a));
|
|
417
397
|
};
|
|
418
398
|
sa(() => {
|
|
419
|
-
|
|
399
|
+
Z.value = !!(e.dateFormData.startDate && !V(e.dateFormData.startDate)), e.allowTimeInput ? j.value = !!(e.dateFormData.startTime && !s(e.dateFormData.startTime, e.dateFormData.startDate)) : j.value = !1, ee.value = !!(e.dateFormData.endDate && !V(e.dateFormData.endDate)), e.allowTimeInput ? L.value = !!(e.dateFormData.endTime && !s(e.dateFormData.endTime, e.dateFormData.endDate)) : L.value = !1;
|
|
420
400
|
});
|
|
421
|
-
const
|
|
401
|
+
const da = (a) => {
|
|
422
402
|
var l;
|
|
423
|
-
i.startDate =
|
|
424
|
-
},
|
|
403
|
+
i.startDate = S(a), i.startTime ? j.value && (i.startTime = (l = e.dateFormData) == null ? void 0 : l.startTime) : i.startTime = q(a), Z.value = !1, j.value = !1, u(g.START_DATE_SELECTED, a);
|
|
404
|
+
}, ma = (a) => {
|
|
425
405
|
var l;
|
|
426
|
-
i.endDate =
|
|
427
|
-
},
|
|
406
|
+
i.endDate = S(a), i.endTime ? L.value && (i.endTime = (l = e.dateFormData) == null ? void 0 : l.endTime) : i.endTime = q($(a)), ee.value = !1, L.value = !1;
|
|
407
|
+
}, we = (a) => {
|
|
428
408
|
const l = e.value[a];
|
|
429
409
|
if (l)
|
|
430
410
|
return l;
|
|
431
|
-
if (e.dateFormData[a] &&
|
|
432
|
-
return
|
|
433
|
-
},
|
|
411
|
+
if (e.dateFormData[a] && V(e.dateFormData[a]))
|
|
412
|
+
return _(e.dateFormData[a]);
|
|
413
|
+
}, ca = Te((a) => {
|
|
434
414
|
var l;
|
|
435
|
-
if (
|
|
415
|
+
if (V(a)) {
|
|
436
416
|
let m = a;
|
|
437
|
-
switch (
|
|
417
|
+
switch (Z.value = !1, (l = J.value) == null ? void 0 : l.type) {
|
|
438
418
|
case "weekly":
|
|
439
|
-
m =
|
|
419
|
+
m = b(
|
|
440
420
|
a,
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
421
|
+
S,
|
|
422
|
+
T.value.min,
|
|
423
|
+
T.value.max
|
|
444
424
|
), i.startDate = m;
|
|
445
425
|
break;
|
|
446
426
|
case "monthly":
|
|
447
|
-
m =
|
|
427
|
+
m = X(
|
|
448
428
|
a,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
429
|
+
S,
|
|
430
|
+
T.value.min,
|
|
431
|
+
T.value.max
|
|
452
432
|
), i.startDate = m;
|
|
453
433
|
break;
|
|
454
434
|
case "quarterly":
|
|
455
|
-
m =
|
|
435
|
+
m = me(
|
|
456
436
|
a,
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
437
|
+
S,
|
|
438
|
+
T.value.min,
|
|
439
|
+
T.value.max
|
|
460
440
|
), i.startDate = m;
|
|
461
441
|
break;
|
|
462
442
|
}
|
|
463
|
-
const D =
|
|
464
|
-
n.startDate =
|
|
465
|
-
|
|
443
|
+
const D = R(_(m));
|
|
444
|
+
n.startDate = I(D, i.startTime), n.endDate = I(
|
|
445
|
+
R(_(i.endDate)),
|
|
466
446
|
i.endTime
|
|
467
|
-
),
|
|
468
|
-
|
|
447
|
+
), V(i.endDate) && (n.endDate = I(
|
|
448
|
+
R(_(i.endDate)),
|
|
469
449
|
i.endTime
|
|
470
450
|
));
|
|
471
|
-
const
|
|
451
|
+
const h = we("endDate");
|
|
472
452
|
n.range = null, u(g.FORM_DATE, {
|
|
473
453
|
startDate: D,
|
|
474
|
-
endDate:
|
|
454
|
+
endDate: h
|
|
475
455
|
}), u(g.INPUT, {
|
|
476
456
|
...n,
|
|
477
|
-
range:
|
|
457
|
+
range: N.value
|
|
478
458
|
});
|
|
479
459
|
} else
|
|
480
|
-
|
|
481
|
-
}, 300),
|
|
482
|
-
i.startDate = v(a),
|
|
483
|
-
},
|
|
460
|
+
Z.value = !0, u(g.ERROR, { ...i });
|
|
461
|
+
}, 300), Da = (a) => {
|
|
462
|
+
i.startDate = v(a), ca(i.startDate);
|
|
463
|
+
}, fa = Te((a) => {
|
|
484
464
|
var l;
|
|
485
|
-
if (
|
|
465
|
+
if (V(a)) {
|
|
486
466
|
let m = a;
|
|
487
|
-
switch (
|
|
467
|
+
switch (ee.value = !1, (l = J.value) == null ? void 0 : l.type) {
|
|
488
468
|
case "weekly":
|
|
489
|
-
m =
|
|
469
|
+
m = Se(
|
|
490
470
|
a,
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
471
|
+
S,
|
|
472
|
+
T.value.min,
|
|
473
|
+
T.value.max
|
|
494
474
|
), i.endDate = m;
|
|
495
475
|
break;
|
|
496
476
|
case "monthly":
|
|
497
|
-
m =
|
|
477
|
+
m = Oe(
|
|
498
478
|
a,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
479
|
+
S,
|
|
480
|
+
T.value.min,
|
|
481
|
+
T.value.max
|
|
502
482
|
), i.endDate = m;
|
|
503
483
|
break;
|
|
504
484
|
case "quarterly":
|
|
505
|
-
m =
|
|
485
|
+
m = ce(
|
|
506
486
|
a,
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
487
|
+
S,
|
|
488
|
+
T.value.min,
|
|
489
|
+
T.value.max
|
|
510
490
|
), i.endDate = m;
|
|
511
491
|
break;
|
|
512
492
|
}
|
|
513
|
-
const D =
|
|
514
|
-
n.endDate =
|
|
515
|
-
|
|
493
|
+
const D = R(_(m));
|
|
494
|
+
n.endDate = I(D, i.endTime), V(i.startDate) && (n.startDate = I(
|
|
495
|
+
R(_(i.startDate)),
|
|
516
496
|
i.startTime
|
|
517
497
|
));
|
|
518
|
-
const
|
|
498
|
+
const h = we("startDate");
|
|
519
499
|
n.range = null, u(g.FORM_DATE, {
|
|
520
|
-
startDate:
|
|
500
|
+
startDate: h,
|
|
521
501
|
endDate: D
|
|
522
502
|
}), u(g.INPUT, {
|
|
523
503
|
...n,
|
|
524
|
-
range:
|
|
504
|
+
range: N.value
|
|
525
505
|
});
|
|
526
506
|
} else
|
|
527
|
-
|
|
528
|
-
}, 300),
|
|
529
|
-
i.endDate = v(a),
|
|
530
|
-
},
|
|
531
|
-
|
|
532
|
-
},
|
|
533
|
-
if (
|
|
534
|
-
|
|
535
|
-
const l =
|
|
507
|
+
ee.value = !0, u(g.ERROR, { ...i });
|
|
508
|
+
}, 300), va = (a) => {
|
|
509
|
+
i.endDate = v(a), fa(i.endDate);
|
|
510
|
+
}, xe = (a) => {
|
|
511
|
+
ie(a);
|
|
512
|
+
}, pa = Te((a) => {
|
|
513
|
+
if (s(a, e.dateFormData.startDate)) {
|
|
514
|
+
j.value = !1, n.startDate = I(n.startDate, a);
|
|
515
|
+
const l = we("endDate");
|
|
536
516
|
u(g.FORM_DATE, {
|
|
537
517
|
startDate: n.startDate,
|
|
538
518
|
endDate: l,
|
|
@@ -540,216 +520,216 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
540
520
|
endTime: i.endTime ?? e.dateFormData.endTime
|
|
541
521
|
}), u(g.INPUT, {
|
|
542
522
|
...n,
|
|
543
|
-
range:
|
|
523
|
+
range: N.value
|
|
544
524
|
});
|
|
545
525
|
} else
|
|
546
|
-
|
|
547
|
-
}),
|
|
548
|
-
|
|
526
|
+
j.value = !0, u(g.ERROR, { ...i });
|
|
527
|
+
}), ya = Te((a) => {
|
|
528
|
+
s(a, e.dateFormData.endDate) ? (L.value = !1, n.endDate = I(n.endDate, a), u(g.FORM_DATE, {
|
|
549
529
|
startDate: n.startDate,
|
|
550
530
|
endDate: n.endDate,
|
|
551
531
|
startTime: i.startTime ?? e.dateFormData.startTime,
|
|
552
532
|
endTime: a
|
|
553
533
|
}), u(g.INPUT, {
|
|
554
534
|
...n,
|
|
555
|
-
range:
|
|
556
|
-
})) : (
|
|
557
|
-
}),
|
|
558
|
-
i.startTime = na(a),
|
|
559
|
-
},
|
|
560
|
-
i.endTime = na(a),
|
|
561
|
-
},
|
|
562
|
-
|
|
535
|
+
range: N.value
|
|
536
|
+
})) : (L.value = !0, u(g.ERROR, { ...i }));
|
|
537
|
+
}), ga = (a) => {
|
|
538
|
+
i.startTime = na(a), pa(i.startTime);
|
|
539
|
+
}, Ta = (a) => {
|
|
540
|
+
i.endTime = na(a), ya(i.endTime);
|
|
541
|
+
}, Ue = (a) => {
|
|
542
|
+
ot(a);
|
|
563
543
|
}, ye = (a, l, m, D) => {
|
|
564
544
|
n.startDate = a, n.endDate = l, m && (n.granularity = m), D && (n.range = D);
|
|
565
|
-
},
|
|
545
|
+
}, ba = (a) => {
|
|
566
546
|
var m;
|
|
567
547
|
const l = (m = e.quickSelectRanges) == null ? void 0 : m.find(({ value: D }) => D === a);
|
|
568
548
|
if (l) {
|
|
569
|
-
|
|
570
|
-
const D = l.data,
|
|
571
|
-
i.endDate =
|
|
572
|
-
...
|
|
549
|
+
De();
|
|
550
|
+
const D = l.data, h = D.endDate || (D.isRelativeToNow ? new Date(Date.now()) : $(new Date(Date.now()))), E = D.isRelativeToNow && D.timeDifference ? new Date(h.getTime() - D.timeDifference) : D.startDate;
|
|
551
|
+
i.endDate = S(h), i.startDate = S(E), ye(E, h, null, a), e.granularities && (n.granularity = D.granularity || Y.value), i.startTime = q(E), i.endTime = q(h), n.startDate = E, n.endDate = h, D.isRelativeToNow && (A.value = {
|
|
552
|
+
...A.value,
|
|
573
553
|
[a]: {
|
|
574
|
-
startDate:
|
|
575
|
-
endDate:
|
|
554
|
+
startDate: E,
|
|
555
|
+
endDate: h
|
|
576
556
|
}
|
|
577
557
|
}), u(g.CUSTOM_RANGE, {
|
|
578
558
|
...l.data,
|
|
579
|
-
startDate:
|
|
580
|
-
endDate:
|
|
559
|
+
startDate: E,
|
|
560
|
+
endDate: h,
|
|
581
561
|
range: l.value
|
|
582
562
|
});
|
|
583
563
|
}
|
|
584
|
-
},
|
|
585
|
-
weekly:
|
|
586
|
-
monthly:
|
|
587
|
-
quarterly:
|
|
588
|
-
},
|
|
564
|
+
}, ha = {
|
|
565
|
+
weekly: se,
|
|
566
|
+
monthly: de,
|
|
567
|
+
quarterly: Me
|
|
568
|
+
}, Ra = (a) => {
|
|
589
569
|
const l = n.granularity;
|
|
590
|
-
if (n.granularity = a, l &&
|
|
570
|
+
if (n.granularity = a, l && ne(l, structuredClone(Be(n))), n.startDate && n.endDate) {
|
|
591
571
|
switch (a) {
|
|
592
572
|
case "quarterly":
|
|
593
573
|
case "monthly":
|
|
594
574
|
case "weekly": {
|
|
595
|
-
if (
|
|
596
|
-
ye(
|
|
575
|
+
if (w[a]) {
|
|
576
|
+
ye(w[a].startDate, w[a].endDate, a);
|
|
597
577
|
break;
|
|
598
578
|
}
|
|
599
|
-
const { startDate: m, endDate: D } =
|
|
579
|
+
const { startDate: m, endDate: D } = ha[a](
|
|
600
580
|
n.startDate,
|
|
601
581
|
n.endDate,
|
|
602
|
-
|
|
603
|
-
|
|
582
|
+
T.value.min,
|
|
583
|
+
T.value.max
|
|
604
584
|
);
|
|
605
585
|
ye(m, D, a);
|
|
606
586
|
break;
|
|
607
587
|
}
|
|
608
588
|
case "daily":
|
|
609
|
-
|
|
589
|
+
w.daily && ye(w.daily.startDate, w.daily.endDate, a);
|
|
610
590
|
break;
|
|
611
591
|
}
|
|
612
|
-
i.startDate =
|
|
592
|
+
i.startDate = S(n.startDate), i.endDate = S(n.endDate), u(g.INPUT, {
|
|
613
593
|
...n,
|
|
614
|
-
range:
|
|
594
|
+
range: N.value
|
|
615
595
|
});
|
|
616
596
|
}
|
|
617
|
-
},
|
|
618
|
-
"b-date-range-picker-calendar__form-container--no-calendars":
|
|
597
|
+
}, ka = p(() => ({
|
|
598
|
+
"b-date-range-picker-calendar__form-container--no-calendars": U.value
|
|
619
599
|
}));
|
|
620
|
-
return (a, l) => (F(),
|
|
621
|
-
|
|
622
|
-
class:
|
|
600
|
+
return (a, l) => (F(), be("div", it, [
|
|
601
|
+
z("div", {
|
|
602
|
+
class: he(["b-date-range-picker-calendar__form-container", ka.value]),
|
|
623
603
|
"data-testid": "date-range-picker-calendar-form-container"
|
|
624
604
|
}, [
|
|
625
|
-
|
|
626
|
-
c(y)("title") ?
|
|
627
|
-
t.quickSelectRanges ? (F(),
|
|
605
|
+
z("div", ut, [
|
|
606
|
+
c(y)("title") ? We(a.$slots, "title", { key: 0 }, void 0, !0) : C("", !0),
|
|
607
|
+
t.quickSelectRanges ? (F(), G(Wa, {
|
|
628
608
|
key: 1,
|
|
629
|
-
"aria-label": c(
|
|
630
|
-
items:
|
|
631
|
-
"model-value":
|
|
632
|
-
"onUpdate:modelValue":
|
|
609
|
+
"aria-label": c(k)("customRange"),
|
|
610
|
+
items: Ie.value,
|
|
611
|
+
"model-value": N.value,
|
|
612
|
+
"onUpdate:modelValue": ba
|
|
633
613
|
}, null, 8, ["aria-label", "items", "model-value"])) : C("", !0),
|
|
634
|
-
t.granularities ? (F(),
|
|
614
|
+
t.granularities ? (F(), G(c(Ga), {
|
|
635
615
|
key: 2,
|
|
636
|
-
items:
|
|
616
|
+
items: ue.value,
|
|
637
617
|
"model-value": n.granularity,
|
|
638
618
|
"full-width": "",
|
|
639
|
-
"onUpdate:modelValue":
|
|
619
|
+
"onUpdate:modelValue": Ra
|
|
640
620
|
}, null, 8, ["items", "model-value"])) : C("", !0),
|
|
641
|
-
|
|
642
|
-
|
|
621
|
+
z("div", null, [
|
|
622
|
+
K(c(Ce), {
|
|
643
623
|
stronger: "",
|
|
644
624
|
el: "span",
|
|
645
625
|
class: "b-date-range-picker-calendar__label"
|
|
646
626
|
}, {
|
|
647
|
-
default:
|
|
648
|
-
|
|
627
|
+
default: W(() => l[0] || (l[0] = [
|
|
628
|
+
ae(" From ")
|
|
649
629
|
])),
|
|
650
630
|
_: 1
|
|
651
631
|
}),
|
|
652
|
-
|
|
653
|
-
class:
|
|
632
|
+
z("div", {
|
|
633
|
+
class: he(O.value)
|
|
654
634
|
}, [
|
|
655
|
-
|
|
656
|
-
"aria-label": c(
|
|
635
|
+
K(c(ge), {
|
|
636
|
+
"aria-label": c(k)("dateFrom"),
|
|
657
637
|
"model-value": i.startDate,
|
|
658
|
-
error:
|
|
638
|
+
error: Z.value,
|
|
659
639
|
class: "b-date-range-picker-calendar__form-input",
|
|
660
|
-
"onUpdate:modelValue":
|
|
661
|
-
onKeydown:
|
|
640
|
+
"onUpdate:modelValue": Da,
|
|
641
|
+
onKeydown: xe
|
|
662
642
|
}, {
|
|
663
|
-
description:
|
|
664
|
-
|
|
643
|
+
description: W(() => [
|
|
644
|
+
ae(Ae(c(k)(c(P))), 1)
|
|
665
645
|
]),
|
|
666
646
|
_: 1
|
|
667
647
|
}, 8, ["aria-label", "model-value", "error"]),
|
|
668
|
-
t.allowTimeInput ? (F(),
|
|
648
|
+
t.allowTimeInput ? (F(), G(c(ge), {
|
|
669
649
|
key: 0,
|
|
670
|
-
"aria-label": c(
|
|
650
|
+
"aria-label": c(k)("timeFrom"),
|
|
671
651
|
"model-value": i.startTime,
|
|
672
|
-
error:
|
|
652
|
+
error: j.value,
|
|
673
653
|
class: "b-date-range-picker-calendar__form-input",
|
|
674
|
-
"onUpdate:modelValue":
|
|
675
|
-
onKeydown:
|
|
654
|
+
"onUpdate:modelValue": ga,
|
|
655
|
+
onKeydown: Ue
|
|
676
656
|
}, {
|
|
677
|
-
description:
|
|
678
|
-
|
|
657
|
+
description: W(() => l[1] || (l[1] = [
|
|
658
|
+
ae("HH:MM:SS")
|
|
679
659
|
])),
|
|
680
660
|
_: 1
|
|
681
661
|
}, 8, ["aria-label", "model-value", "error"])) : C("", !0)
|
|
682
662
|
], 2)
|
|
683
663
|
]),
|
|
684
|
-
|
|
685
|
-
|
|
664
|
+
z("div", null, [
|
|
665
|
+
K(c(Ce), {
|
|
686
666
|
stronger: "",
|
|
687
667
|
el: "span",
|
|
688
668
|
class: "b-date-range-picker-calendar__label"
|
|
689
669
|
}, {
|
|
690
|
-
default:
|
|
691
|
-
|
|
670
|
+
default: W(() => l[2] || (l[2] = [
|
|
671
|
+
ae(" To ")
|
|
692
672
|
])),
|
|
693
673
|
_: 1
|
|
694
674
|
}),
|
|
695
|
-
|
|
696
|
-
class:
|
|
675
|
+
z("div", {
|
|
676
|
+
class: he(O.value)
|
|
697
677
|
}, [
|
|
698
|
-
|
|
678
|
+
K(c(ge), {
|
|
699
679
|
class: "b-date-range-picker-calendar__form-input",
|
|
700
|
-
"aria-label": c(
|
|
680
|
+
"aria-label": c(k)("dateTo"),
|
|
701
681
|
"model-value": i.endDate,
|
|
702
|
-
error:
|
|
703
|
-
"onUpdate:modelValue":
|
|
704
|
-
onKeydown:
|
|
682
|
+
error: ee.value,
|
|
683
|
+
"onUpdate:modelValue": va,
|
|
684
|
+
onKeydown: xe
|
|
705
685
|
}, {
|
|
706
|
-
description:
|
|
707
|
-
|
|
686
|
+
description: W(() => [
|
|
687
|
+
ae(Ae(c(k)(c(P))), 1)
|
|
708
688
|
]),
|
|
709
689
|
_: 1
|
|
710
690
|
}, 8, ["aria-label", "model-value", "error"]),
|
|
711
|
-
t.allowTimeInput ? (F(),
|
|
691
|
+
t.allowTimeInput ? (F(), G(c(ge), {
|
|
712
692
|
key: 0,
|
|
713
|
-
"aria-label": c(
|
|
693
|
+
"aria-label": c(k)("timeTo"),
|
|
714
694
|
"model-value": i.endTime,
|
|
715
|
-
error:
|
|
695
|
+
error: L.value,
|
|
716
696
|
class: "b-date-range-picker-calendar__form-input",
|
|
717
|
-
"onUpdate:modelValue":
|
|
718
|
-
onKeydown:
|
|
697
|
+
"onUpdate:modelValue": Ta,
|
|
698
|
+
onKeydown: Ue
|
|
719
699
|
}, {
|
|
720
|
-
description:
|
|
721
|
-
|
|
700
|
+
description: W(() => l[3] || (l[3] = [
|
|
701
|
+
ae("HH:MM:SS")
|
|
722
702
|
])),
|
|
723
703
|
_: 1
|
|
724
704
|
}, 8, ["aria-label", "model-value", "error"])) : C("", !0)
|
|
725
705
|
], 2)
|
|
726
706
|
])
|
|
727
707
|
]),
|
|
728
|
-
c(y)("actions") ? (F(),
|
|
729
|
-
|
|
708
|
+
c(y)("actions") ? (F(), be("div", dt, [
|
|
709
|
+
We(a.$slots, "actions", {}, void 0, !0)
|
|
730
710
|
])) : C("", !0)
|
|
731
711
|
], 2),
|
|
732
|
-
|
|
733
|
-
|
|
712
|
+
U.value ? C("", !0) : (F(), be("div", mt, [
|
|
713
|
+
K(c(Q), {
|
|
734
714
|
value: n,
|
|
735
715
|
"first-day-of-week": t.firstDayOfWeek,
|
|
736
716
|
"is-date-disabled": t.isDateDisabled,
|
|
737
717
|
"max-range": t.maxRange,
|
|
738
|
-
min:
|
|
739
|
-
max:
|
|
718
|
+
min: T.value.min,
|
|
719
|
+
max: T.value.max,
|
|
740
720
|
"number-of-months": t.numberOfMonths,
|
|
741
721
|
"show-end-date-on-open": t.showEndDateOnOpen,
|
|
742
|
-
granularity:
|
|
722
|
+
granularity: J.value,
|
|
743
723
|
variant: t.variant,
|
|
744
724
|
"is-range": "",
|
|
745
|
-
onInput:
|
|
746
|
-
onStartDateSelected:
|
|
747
|
-
onEndDateSelected:
|
|
725
|
+
onInput: pe,
|
|
726
|
+
onStartDateSelected: da,
|
|
727
|
+
onEndDateSelected: ma
|
|
748
728
|
}, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant"])
|
|
749
729
|
]))
|
|
750
730
|
]));
|
|
751
731
|
}
|
|
752
|
-
}),
|
|
732
|
+
}), ft = /* @__PURE__ */ oa(Dt, [["__scopeId", "data-v-cf6285de"]]), Ne = {
|
|
753
733
|
"en-US": {
|
|
754
734
|
apply: "Apply",
|
|
755
735
|
cancel: "Cancel",
|
|
@@ -780,7 +760,7 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
780
760
|
selectDateRange: "Selecione um intervalo de datas",
|
|
781
761
|
selectedDateIsNotAvailable: "A data selecionada não está disponível"
|
|
782
762
|
}
|
|
783
|
-
},
|
|
763
|
+
}, vt = ({
|
|
784
764
|
datePickerValue: t,
|
|
785
765
|
isDateIncorrect: o,
|
|
786
766
|
quickSelectRanges: d,
|
|
@@ -788,43 +768,43 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
788
768
|
withTimeInput: e,
|
|
789
769
|
placeholder: u
|
|
790
770
|
}) => {
|
|
791
|
-
const { locale: f, t: y } =
|
|
771
|
+
const { locale: f, t: y } = qe({ messages: Ne }), { dateToInputDateString: k } = Ye(), P = (v) => !!v && !isNaN(v.getTime()), M = ke({
|
|
792
772
|
startDate: null,
|
|
793
773
|
endDate: null,
|
|
794
774
|
startTime: null,
|
|
795
775
|
endTime: null
|
|
796
776
|
});
|
|
797
|
-
return
|
|
777
|
+
return Re(
|
|
798
778
|
t,
|
|
799
779
|
(v) => {
|
|
800
|
-
|
|
780
|
+
M.startDate = k(v == null ? void 0 : v.startDate), M.endDate = k(v == null ? void 0 : v.endDate), M.startTime = q(v == null ? void 0 : v.startDate), M.endTime = q(v == null ? void 0 : v.endDate);
|
|
801
781
|
},
|
|
802
782
|
{ immediate: !0 }
|
|
803
783
|
), {
|
|
804
784
|
// Values
|
|
805
785
|
dateDisplayValue: p(() => {
|
|
806
|
-
var
|
|
786
|
+
var te;
|
|
807
787
|
if (o.value)
|
|
808
|
-
return `${
|
|
788
|
+
return `${M.startDate || ""} - ${M.endDate || ""}`;
|
|
809
789
|
if (!t.value || !t.value.startDate && !t.value.endDate)
|
|
810
790
|
return (u == null ? void 0 : u.value) || y("selectDateRange");
|
|
811
|
-
if ((
|
|
812
|
-
const
|
|
813
|
-
var
|
|
814
|
-
return
|
|
791
|
+
if ((te = d.value) != null && te.length) {
|
|
792
|
+
const A = d.value.find(({ value: Y }) => {
|
|
793
|
+
var U;
|
|
794
|
+
return Y === ((U = t.value) == null ? void 0 : U.range);
|
|
815
795
|
});
|
|
816
|
-
if (
|
|
817
|
-
return
|
|
796
|
+
if (A)
|
|
797
|
+
return A.label;
|
|
818
798
|
}
|
|
819
799
|
if (t.value.granularity === "quarterly") {
|
|
820
|
-
const { startDate:
|
|
821
|
-
if (
|
|
822
|
-
return
|
|
823
|
-
const n = y("quarter", { quarter:
|
|
824
|
-
return `${
|
|
800
|
+
const { startDate: A, endDate: Y } = t.value, U = y("quarter", { quarter: Ze(A), year: ea(A) });
|
|
801
|
+
if (za(A, Y))
|
|
802
|
+
return U;
|
|
803
|
+
const n = y("quarter", { quarter: Ze(Y), year: ea(Y) });
|
|
804
|
+
return `${U} - ${n}`;
|
|
825
805
|
}
|
|
826
|
-
if (!
|
|
827
|
-
return `${
|
|
806
|
+
if (!P(t.value.startDate) || !P(t.value.endDate))
|
|
807
|
+
return `${M.startDate || ""} - ${M.endDate || ""}`;
|
|
828
808
|
let v = r != null && r.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
|
|
829
809
|
return e.value && (v = {
|
|
830
810
|
...v,
|
|
@@ -837,16 +817,16 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
837
817
|
t.value.endDate
|
|
838
818
|
);
|
|
839
819
|
}),
|
|
840
|
-
textInputDisplayValue:
|
|
820
|
+
textInputDisplayValue: M,
|
|
841
821
|
// Methods
|
|
842
822
|
formatTextInputDisplayValue: () => ""
|
|
843
823
|
};
|
|
844
|
-
},
|
|
845
|
-
i18n: { messages:
|
|
824
|
+
}, pt = { class: "b-date-range-picker" }, yt = { class: "b-date-range-picker__footer" }, gt = {
|
|
825
|
+
i18n: { messages: Ne },
|
|
846
826
|
name: "bento-date-range-picker",
|
|
847
827
|
model: { prop: "modelValue" }
|
|
848
|
-
},
|
|
849
|
-
...
|
|
828
|
+
}, Tt = /* @__PURE__ */ ra({
|
|
829
|
+
...gt,
|
|
850
830
|
props: {
|
|
851
831
|
allowTimeInput: { type: Boolean },
|
|
852
832
|
firstDayOfWeek: { default: void 0 },
|
|
@@ -874,7 +854,7 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
874
854
|
},
|
|
875
855
|
emits: ["update:model-value", "input"],
|
|
876
856
|
setup(t, { emit: o }) {
|
|
877
|
-
const d = o, r = t, e =
|
|
857
|
+
const d = o, r = t, e = Ma(), { t: u } = qe({ messages: Ne }), { dateToInputDateString: f } = Ye(), y = le("bento-date-range-picker-container"), k = le("bento-date-range-picker-label"), P = le("bento-date-range-picker-description"), M = le("bento-date-range-picker-error"), _ = le("bento-date-range-picker-date-error"), ie = p(() => r.label || u("dateRangePicker", { name: y })), { resolvedFirstDayOfWeek: v } = xa(Ee(r, "firstDayOfWeek")), te = wa({
|
|
878
858
|
none: 0,
|
|
879
859
|
one: 710,
|
|
880
860
|
// width of date range picker with one panes
|
|
@@ -882,205 +862,205 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
882
862
|
// width of date range picker with two panes
|
|
883
863
|
three: 1290
|
|
884
864
|
// width of date range picker with three panes
|
|
885
|
-
}),
|
|
886
|
-
const s =
|
|
865
|
+
}), A = p(() => {
|
|
866
|
+
const s = te.active().value, I = {
|
|
887
867
|
none: 0,
|
|
888
868
|
one: 1,
|
|
889
869
|
two: 2
|
|
890
870
|
};
|
|
891
|
-
if (s in
|
|
892
|
-
const
|
|
893
|
-
return r.numberOfMonths === void 0 ?
|
|
871
|
+
if (s in I) {
|
|
872
|
+
const pe = I[s];
|
|
873
|
+
return r.numberOfMonths === void 0 ? pe : Math.min(r.numberOfMonths, pe);
|
|
894
874
|
}
|
|
895
875
|
return r.numberOfMonths;
|
|
896
|
-
}),
|
|
897
|
-
const
|
|
876
|
+
}), Y = p(() => (r == null ? void 0 : r.quickSelectRanges) && r.quickSelectRanges.map((s) => {
|
|
877
|
+
const I = s.data.endDate ? void 0 : new Date(Date.now()).getTime() - s.data.startDate.getTime();
|
|
898
878
|
return {
|
|
899
879
|
...s,
|
|
900
880
|
data: {
|
|
901
881
|
...s.data,
|
|
902
882
|
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
903
|
-
timeDifference:
|
|
883
|
+
timeDifference: I
|
|
904
884
|
}
|
|
905
885
|
};
|
|
906
|
-
})),
|
|
907
|
-
|
|
886
|
+
})), U = p(() => r.label ? k : (e == null ? void 0 : e["aria-labelledby"]) ?? null), n = B(!1), N = B(null), O = B(!1), { isReadOnly: Ie } = ja(Ee(r, "readonly")), { emitValue: J } = Qa(d);
|
|
887
|
+
Re(
|
|
908
888
|
() => r.disabled,
|
|
909
889
|
() => {
|
|
910
|
-
r.disabled &&
|
|
890
|
+
r.disabled && O.value && (O.value = !1);
|
|
911
891
|
}
|
|
912
892
|
);
|
|
913
|
-
const
|
|
914
|
-
"b-date-range-picker__description--error": !!r.errorMessage ||
|
|
915
|
-
})),
|
|
916
|
-
datePickerValue:
|
|
893
|
+
const ue = p(() => r.modelValue || r.value), re = p(() => r.hasActions ? !ne.value && n.value : n.value), T = p(() => ({
|
|
894
|
+
"b-date-range-picker__description--error": !!r.errorMessage || re.value
|
|
895
|
+
})), Me = p(() => r.variant === "month"), de = p(() => r.allowTimeInput && r.variant !== "month"), { dateDisplayValue: se, textInputDisplayValue: b } = vt({
|
|
896
|
+
datePickerValue: ue,
|
|
917
897
|
isDateIncorrect: n,
|
|
918
|
-
quickSelectRanges:
|
|
919
|
-
isMonthVariant:
|
|
920
|
-
withTimeInput:
|
|
898
|
+
quickSelectRanges: Y,
|
|
899
|
+
isMonthVariant: Me,
|
|
900
|
+
withTimeInput: de,
|
|
921
901
|
placeholder: Ee(r, "placeholder")
|
|
922
902
|
}), Se = p(
|
|
923
|
-
() => `${r.description ?
|
|
924
|
-
),
|
|
925
|
-
|
|
903
|
+
() => `${r.description ? P : ""} ${r.errorMessage ? M : ""} ${n.value ? _ : ""}`.trim() || null
|
|
904
|
+
), X = () => {
|
|
905
|
+
O.value = !1;
|
|
926
906
|
}, Oe = () => {
|
|
927
|
-
|
|
928
|
-
},
|
|
907
|
+
O.value = !0;
|
|
908
|
+
}, me = B(se.value), ce = B(
|
|
929
909
|
// textInputDisplayValue is a reactive object
|
|
930
|
-
structuredClone(
|
|
931
|
-
),
|
|
932
|
-
() => r.hasActions ?
|
|
933
|
-
),
|
|
934
|
-
() => r.hasActions ?
|
|
910
|
+
structuredClone(Be(b))
|
|
911
|
+
), w = B(r.modelValue ?? r.value), ne = B(!0), De = p(
|
|
912
|
+
() => r.hasActions ? ce.value : b
|
|
913
|
+
), S = p(
|
|
914
|
+
() => r.hasActions ? me.value : se.value
|
|
935
915
|
);
|
|
936
916
|
sa(() => {
|
|
937
|
-
if (r.hasActions ||
|
|
917
|
+
if (r.hasActions || Ke(
|
|
938
918
|
'BentoDateRangePicker "hasActions" property',
|
|
939
919
|
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
940
920
|
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
941
921
|
"2.0.0"
|
|
942
|
-
), r.value &&
|
|
922
|
+
), r.value && Ke(
|
|
943
923
|
'BentoDateRangePicker "value" property',
|
|
944
924
|
'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
|
|
945
925
|
"2.0.0"
|
|
946
926
|
), r.granularities && r.variant !== "month" && r.granularities.find(({ type: s }) => s === "quarterly"))
|
|
947
927
|
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
948
|
-
}),
|
|
949
|
-
|
|
928
|
+
}), Re([() => r.value, () => r.modelValue], () => {
|
|
929
|
+
me.value = se.value, ce.value = structuredClone(Be(b));
|
|
950
930
|
});
|
|
951
|
-
const
|
|
931
|
+
const Z = p(() => [
|
|
952
932
|
{
|
|
953
933
|
title: u("apply"),
|
|
954
934
|
event: () => {
|
|
955
|
-
|
|
935
|
+
J(w.value), X(), ne.value = !0;
|
|
956
936
|
},
|
|
957
|
-
disabled:
|
|
937
|
+
disabled: ne.value
|
|
958
938
|
},
|
|
959
939
|
{
|
|
960
940
|
title: u("cancel"),
|
|
961
|
-
event:
|
|
941
|
+
event: X
|
|
962
942
|
}
|
|
963
943
|
]);
|
|
964
|
-
|
|
944
|
+
Re(w, (s) => {
|
|
965
945
|
if (r.hasActions) {
|
|
966
|
-
|
|
946
|
+
ne.value = n.value;
|
|
967
947
|
return;
|
|
968
948
|
}
|
|
969
|
-
|
|
949
|
+
J(s);
|
|
970
950
|
});
|
|
971
|
-
const
|
|
972
|
-
n.value = !1,
|
|
973
|
-
},
|
|
974
|
-
n.value && (n.value = !1),
|
|
951
|
+
const ee = (s) => {
|
|
952
|
+
n.value = !1, b.startDate = f(s.startDate), b.endDate = f(s.endDate), b.startTime = q(s.startDate), b.endTime = q(s.endDate), w.value = s;
|
|
953
|
+
}, j = async () => {
|
|
954
|
+
n.value && (n.value = !1), w.value = null;
|
|
975
955
|
}, L = () => {
|
|
976
|
-
if (!
|
|
977
|
-
|
|
956
|
+
if (!O.value) {
|
|
957
|
+
O.value = !0;
|
|
978
958
|
return;
|
|
979
959
|
}
|
|
980
|
-
n.value || (
|
|
981
|
-
}, Q = (s) => {
|
|
982
|
-
n.value = !1, s.startTime && (R.startTime = s.startTime), s.endTime && (R.endTime = s.endTime);
|
|
960
|
+
n.value || (O.value = !1);
|
|
983
961
|
}, i = (s) => {
|
|
984
|
-
n.value = !
|
|
985
|
-
},
|
|
986
|
-
|
|
962
|
+
n.value = !1, s.startTime && (b.startTime = s.startTime), s.endTime && (b.endTime = s.endTime);
|
|
963
|
+
}, fe = (s) => {
|
|
964
|
+
n.value = !0, b.startDate = s.startDate, b.endDate = s.endDate, w.value = { startDate: null, endDate: null };
|
|
965
|
+
}, ve = (s) => {
|
|
966
|
+
s && (b.startDate = f(s.startDate), b.endDate = f(s.endDate), b.startTime = q(s.startDate), b.endTime = q(s.endDate), w.value = s);
|
|
987
967
|
};
|
|
988
|
-
return (s,
|
|
989
|
-
s.label ? (F(),
|
|
968
|
+
return (s, I) => Sa((F(), be("div", pt, [
|
|
969
|
+
s.label ? (F(), G(c(Pa), {
|
|
990
970
|
key: 0,
|
|
991
|
-
id: c(
|
|
971
|
+
id: c(k),
|
|
992
972
|
label: s.label,
|
|
993
973
|
"tooltip-text": s.tooltipText,
|
|
994
974
|
optional: s.optional,
|
|
995
975
|
required: s.required
|
|
996
976
|
}, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : C("", !0),
|
|
997
|
-
|
|
998
|
-
onKeydown:
|
|
977
|
+
z("div", {
|
|
978
|
+
onKeydown: Ge(L, ["enter"])
|
|
999
979
|
}, [
|
|
1000
|
-
|
|
980
|
+
K(c(Aa), {
|
|
1001
981
|
ref_key: "inputContainerRef",
|
|
1002
|
-
ref:
|
|
982
|
+
ref: N,
|
|
1003
983
|
"always-combobox-is-input": "",
|
|
1004
984
|
ariaControls: c(y),
|
|
1005
|
-
ariaExpanded:
|
|
1006
|
-
"aria-labelledby":
|
|
985
|
+
ariaExpanded: O.value,
|
|
986
|
+
"aria-labelledby": U.value,
|
|
1007
987
|
"aria-describedby": Se.value,
|
|
1008
988
|
"aria-required": s.required,
|
|
1009
989
|
disabled: s.disabled,
|
|
1010
|
-
"is-invalid": !!s.errorMessage ||
|
|
1011
|
-
open:
|
|
1012
|
-
"display-value":
|
|
1013
|
-
readonly: c(
|
|
990
|
+
"is-invalid": !!s.errorMessage || re.value,
|
|
991
|
+
open: O.value,
|
|
992
|
+
"display-value": S.value,
|
|
993
|
+
readonly: c(Ie),
|
|
1014
994
|
onOpen: Oe,
|
|
1015
|
-
onClear:
|
|
1016
|
-
onClose:
|
|
995
|
+
onClear: j,
|
|
996
|
+
onClose: X
|
|
1017
997
|
}, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-required", "disabled", "is-invalid", "open", "display-value", "readonly"])
|
|
1018
998
|
], 32),
|
|
1019
|
-
|
|
999
|
+
re.value ? (F(), G(c(Xe), {
|
|
1020
1000
|
key: 1,
|
|
1021
|
-
id: c(
|
|
1001
|
+
id: c(_),
|
|
1022
1002
|
"error-message": c(u)("provideDateInAFormat"),
|
|
1023
1003
|
class: "b-date-range-picker__error-message"
|
|
1024
1004
|
}, null, 8, ["id", "error-message"])) : C("", !0),
|
|
1025
|
-
s.errorMessage ? (F(),
|
|
1005
|
+
s.errorMessage ? (F(), G(c(Xe), {
|
|
1026
1006
|
key: 2,
|
|
1027
|
-
id: c(
|
|
1007
|
+
id: c(M),
|
|
1028
1008
|
"error-message": s.errorMessage,
|
|
1029
1009
|
class: "b-date-range-picker__error-message"
|
|
1030
1010
|
}, null, 8, ["id", "error-message"])) : C("", !0),
|
|
1031
|
-
s.description ? (F(),
|
|
1011
|
+
s.description ? (F(), G(c(Ce), {
|
|
1032
1012
|
key: 3,
|
|
1033
|
-
id: c(
|
|
1034
|
-
class:
|
|
1013
|
+
id: c(P),
|
|
1014
|
+
class: he(["b-date-range-picker__description", T.value]),
|
|
1035
1015
|
el: "span"
|
|
1036
1016
|
}, {
|
|
1037
|
-
default:
|
|
1038
|
-
|
|
1017
|
+
default: W(() => [
|
|
1018
|
+
ae(Ae(s.description), 1)
|
|
1039
1019
|
]),
|
|
1040
1020
|
_: 1
|
|
1041
1021
|
}, 8, ["id", "class"])) : C("", !0),
|
|
1042
|
-
|
|
1022
|
+
N.value ? (F(), G(c(Fa), {
|
|
1043
1023
|
key: 4,
|
|
1044
1024
|
id: c(y),
|
|
1045
1025
|
class: "b-date-range-picker__container",
|
|
1046
|
-
open:
|
|
1047
|
-
"target-element":
|
|
1048
|
-
"aria-label":
|
|
1026
|
+
open: O.value,
|
|
1027
|
+
"target-element": N.value,
|
|
1028
|
+
"aria-label": ie.value,
|
|
1049
1029
|
position: "bottom-start",
|
|
1050
1030
|
"without-space": "",
|
|
1051
1031
|
"fit-content": "",
|
|
1052
1032
|
"trap-all": "",
|
|
1053
1033
|
"overflow-visible": "",
|
|
1054
|
-
onKeydown:
|
|
1034
|
+
onKeydown: Ge(X, ["esc", "native"])
|
|
1055
1035
|
}, {
|
|
1056
|
-
default:
|
|
1057
|
-
|
|
1058
|
-
"allow-time-input":
|
|
1059
|
-
"quick-select-ranges":
|
|
1060
|
-
value:
|
|
1036
|
+
default: W(() => [
|
|
1037
|
+
K(c(ft), {
|
|
1038
|
+
"allow-time-input": de.value,
|
|
1039
|
+
"quick-select-ranges": Y.value,
|
|
1040
|
+
value: ue.value,
|
|
1061
1041
|
"first-day-of-week": c(v),
|
|
1062
1042
|
granularities: s.granularities,
|
|
1063
1043
|
"is-date-disabled": s.isDateDisabled,
|
|
1064
1044
|
"max-range": s.maxRange,
|
|
1065
1045
|
min: s.min,
|
|
1066
1046
|
max: s.max,
|
|
1067
|
-
"number-of-months":
|
|
1047
|
+
"number-of-months": A.value,
|
|
1068
1048
|
"show-end-date-on-open": s.showEndDateOnOpen,
|
|
1069
|
-
"date-form-data":
|
|
1049
|
+
"date-form-data": De.value,
|
|
1070
1050
|
variant: s.variant,
|
|
1071
|
-
onCustomRange:
|
|
1072
|
-
onInput:
|
|
1073
|
-
onError:
|
|
1074
|
-
onFormDate:
|
|
1075
|
-
},
|
|
1051
|
+
onCustomRange: ve,
|
|
1052
|
+
onInput: ee,
|
|
1053
|
+
onError: fe,
|
|
1054
|
+
onFormDate: i
|
|
1055
|
+
}, Oa({ _: 2 }, [
|
|
1076
1056
|
s.hasActions ? {
|
|
1077
1057
|
name: "actions",
|
|
1078
|
-
fn:
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
actions:
|
|
1083
|
-
layout: c(
|
|
1058
|
+
fn: W(() => [
|
|
1059
|
+
K(c(Ea)),
|
|
1060
|
+
z("div", yt, [
|
|
1061
|
+
K(c(_a), {
|
|
1062
|
+
actions: Z.value,
|
|
1063
|
+
layout: c(Va).SPACE_BETWEEN
|
|
1084
1064
|
}, null, 8, ["actions", "layout"])
|
|
1085
1065
|
])
|
|
1086
1066
|
]),
|
|
@@ -1091,14 +1071,14 @@ const st = /[\d]/, lt = /^\d{2}$/, ot = /^\d{2}:\d{2}$/, it = (t) => {
|
|
|
1091
1071
|
_: 1
|
|
1092
1072
|
}, 8, ["id", "open", "target-element", "aria-label"])) : C("", !0)
|
|
1093
1073
|
])), [
|
|
1094
|
-
[c(
|
|
1074
|
+
[c(La), X]
|
|
1095
1075
|
]);
|
|
1096
1076
|
}
|
|
1097
|
-
}),
|
|
1077
|
+
}), Gt = /* @__PURE__ */ oa(Tt, [["__scopeId", "data-v-e00826fe"]]);
|
|
1098
1078
|
export {
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1079
|
+
Gt as B,
|
|
1080
|
+
ft as D,
|
|
1081
|
+
Ja as a,
|
|
1082
|
+
Fe as i
|
|
1103
1083
|
};
|
|
1104
|
-
//# sourceMappingURL=date-range-picker.
|
|
1084
|
+
//# sourceMappingURL=date-range-picker.CHq6WwCb.js.map
|