redmine-ui-kit 1.4.7 → 1.4.9
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/redmine-ui-kit.js +364 -363
- package/dist/redmine-ui-kit.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/redmine-ui-kit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Oe, openBlock as p, createElementBlock as k, normalizeStyle as bt, createElementVNode as S, useSlots as Ca, computed as W, normalizeClass as he, Fragment as we, createTextVNode as at, toDisplayString as pe, renderSlot as q, withDirectives as
|
|
1
|
+
import { defineComponent as Oe, openBlock as p, createElementBlock as k, normalizeStyle as bt, createElementVNode as S, useSlots as Ca, computed as W, normalizeClass as he, Fragment as we, createTextVNode as at, toDisplayString as pe, renderSlot as q, withDirectives as ze, vShow as Tt, vModelCheckbox as br, createCommentVNode as T, ref as F, onMounted as ot, nextTick as Ut, unref as v, withKeys as fe, withModifiers as qe, vModelText as fn, createBlock as ye, Teleport as Ja, createVNode as We, Transition as lt, withCtx as ie, watch as ht, renderList as Ee, reactive as la, toRef as pa, onUnmounted as en, mergeProps as Fe, isRef as St, createSlots as rt, normalizeProps as st, guardReactiveProps as kt, resolveDynamicComponent as ma, onBeforeUpdate as kr, getCurrentScope as Dr, onScopeDispose as Tr } from "vue";
|
|
2
2
|
const Mr = /* @__PURE__ */ S("span", null, null, -1), Cr = [
|
|
3
3
|
Mr
|
|
4
4
|
], Yc = /* @__PURE__ */ Oe({
|
|
@@ -52,7 +52,7 @@ const $r = ["disabled", "type"], xr = { class: "rm-button__label" }, Pr = { clas
|
|
|
52
52
|
at(pe(e.label), 1)
|
|
53
53
|
], 64)) : q(e.$slots, "default", { key: 1 })
|
|
54
54
|
]),
|
|
55
|
-
|
|
55
|
+
ze(S("div", Pr, [
|
|
56
56
|
q(e.$slots, "icon")
|
|
57
57
|
], 512), [
|
|
58
58
|
[Tt, a.value]
|
|
@@ -99,7 +99,7 @@ const Sr = { class: "rm-checkbox" }, Ir = ["id", "name", "disabled", "checked"],
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
return (l, o) => (p(), k("div", Sr, [
|
|
102
|
-
|
|
102
|
+
ze(S("input", {
|
|
103
103
|
id: `${l.name}_checkbox`,
|
|
104
104
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => r.value = s),
|
|
105
105
|
type: "checkbox",
|
|
@@ -168,7 +168,7 @@ const Lr = { class: "rm-attach" }, Er = {
|
|
|
168
168
|
e("upload:error", { errorType: h, errorContent: P });
|
|
169
169
|
}
|
|
170
170
|
function u({ files: h, target: P }) {
|
|
171
|
-
const { MAX_SIZE: b, FILE_TYPE: C } = r.ERROR_TYPES,
|
|
171
|
+
const { MAX_SIZE: b, FILE_TYPE: C } = r.ERROR_TYPES, I = new DataTransfer();
|
|
172
172
|
for (const V of Object.values(h)) {
|
|
173
173
|
if (V.size > a.maxFileSize) {
|
|
174
174
|
f(
|
|
@@ -180,18 +180,18 @@ const Lr = { class: "rm-attach" }, Er = {
|
|
|
180
180
|
);
|
|
181
181
|
continue;
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const L = c(V.type), Z = c(V.name, ".");
|
|
184
184
|
let J = !1;
|
|
185
|
-
if (a.deniedFiles && (J = a.deniedFiles.includes(Z) || a.deniedFiles.includes(
|
|
185
|
+
if (a.deniedFiles && (J = a.deniedFiles.includes(Z) || a.deniedFiles.includes(L)), a.acceptFiles && (J = !a.acceptFiles.includes(Z) || !a.acceptFiles.includes(L)), J) {
|
|
186
186
|
f(
|
|
187
187
|
C,
|
|
188
188
|
{ fileName: V.name, errorInfo: V.type }
|
|
189
189
|
);
|
|
190
190
|
continue;
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
I.items.add(V);
|
|
193
193
|
}
|
|
194
|
-
return P.files =
|
|
194
|
+
return P.files = I.files, I.files;
|
|
195
195
|
}
|
|
196
196
|
return (h, P) => (p(), k("div", Lr, [
|
|
197
197
|
S("label", Er, [
|
|
@@ -229,11 +229,11 @@ function Zr() {
|
|
|
229
229
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
230
230
|
return da(Gr);
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const Ze = [];
|
|
233
233
|
for (let t = 0; t < 256; ++t)
|
|
234
|
-
|
|
234
|
+
Ze.push((t + 256).toString(16).slice(1));
|
|
235
235
|
function Qr(t, n = 0) {
|
|
236
|
-
return
|
|
236
|
+
return Ze[t[n + 0]] + Ze[t[n + 1]] + Ze[t[n + 2]] + Ze[t[n + 3]] + "-" + Ze[t[n + 4]] + Ze[t[n + 5]] + "-" + Ze[t[n + 6]] + Ze[t[n + 7]] + "-" + Ze[t[n + 8]] + Ze[t[n + 9]] + "-" + Ze[t[n + 10]] + Ze[t[n + 11]] + Ze[t[n + 12]] + Ze[t[n + 13]] + Ze[t[n + 14]] + Ze[t[n + 15]];
|
|
237
237
|
}
|
|
238
238
|
const Kr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), pn = {
|
|
239
239
|
randomUUID: Kr
|
|
@@ -277,8 +277,8 @@ const Xr = ["for"], Jr = { class: "rm-input-wrapper" }, el = ["id", "maxlength",
|
|
|
277
277
|
ot(() => {
|
|
278
278
|
var C;
|
|
279
279
|
Ut().then(() => {
|
|
280
|
-
var
|
|
281
|
-
o.value = ((
|
|
280
|
+
var I;
|
|
281
|
+
o.value = ((I = s.value) == null ? void 0 : I.offsetHeight) || 0;
|
|
282
282
|
}), a.isAutoGrow && s.value && f(s.value), a.isAutofocus && ((C = s.value) == null || C.focus());
|
|
283
283
|
});
|
|
284
284
|
function c(C) {
|
|
@@ -299,10 +299,10 @@ const Xr = ["for"], Jr = { class: "rm-input-wrapper" }, el = ["id", "maxlength",
|
|
|
299
299
|
function P(C) {
|
|
300
300
|
e("alt-enter-press", C);
|
|
301
301
|
}
|
|
302
|
-
function b(C,
|
|
303
|
-
C.style.height = `${
|
|
302
|
+
function b(C, I) {
|
|
303
|
+
C.style.height = `${I}px`;
|
|
304
304
|
}
|
|
305
|
-
return (C,
|
|
305
|
+
return (C, I) => (p(), k("div", {
|
|
306
306
|
class: he(["rm-input", { disabled: C.disabled }])
|
|
307
307
|
}, [
|
|
308
308
|
C.label ? (p(), k("label", {
|
|
@@ -311,12 +311,12 @@ const Xr = ["for"], Jr = { class: "rm-input-wrapper" }, el = ["id", "maxlength",
|
|
|
311
311
|
class: "rm-input__label"
|
|
312
312
|
}, pe(C.label), 9, Xr)) : T("", !0),
|
|
313
313
|
S("div", Jr, [
|
|
314
|
-
C.isAutoGrow ?
|
|
314
|
+
C.isAutoGrow ? ze((p(), k("textarea", {
|
|
315
315
|
key: 0,
|
|
316
316
|
id: v(r),
|
|
317
317
|
ref_key: "textareaRef",
|
|
318
318
|
ref: s,
|
|
319
|
-
"onUpdate:modelValue":
|
|
319
|
+
"onUpdate:modelValue": I[0] || (I[0] = (V) => d.value = V),
|
|
320
320
|
class: "rm-input__input",
|
|
321
321
|
maxlength: C.maxlength,
|
|
322
322
|
required: C.required,
|
|
@@ -324,32 +324,32 @@ const Xr = ["for"], Jr = { class: "rm-input-wrapper" }, el = ["id", "maxlength",
|
|
|
324
324
|
disabled: C.disabled,
|
|
325
325
|
onKeypress: fe(u, ["enter"]),
|
|
326
326
|
onKeydown: [
|
|
327
|
-
fe(
|
|
328
|
-
fe(
|
|
327
|
+
fe(qe(h, ["ctrl"]), ["enter"]),
|
|
328
|
+
fe(qe(P, ["alt"]), ["enter"])
|
|
329
329
|
],
|
|
330
330
|
onFocus: c,
|
|
331
331
|
onBlur: D,
|
|
332
|
-
onChange:
|
|
332
|
+
onChange: I[1] || (I[1] = ({ target: V }) => e("change", V.value))
|
|
333
333
|
}, null, 40, el)), [
|
|
334
334
|
[fn, d.value]
|
|
335
|
-
]) :
|
|
335
|
+
]) : ze((p(), k("input", {
|
|
336
336
|
key: 1,
|
|
337
337
|
id: v(r),
|
|
338
|
-
"onUpdate:modelValue":
|
|
338
|
+
"onUpdate:modelValue": I[2] || (I[2] = (V) => d.value = V),
|
|
339
339
|
class: "rm-input__input",
|
|
340
340
|
maxlength: C.maxlength,
|
|
341
341
|
required: C.required,
|
|
342
342
|
placeholder: C.placeholder,
|
|
343
343
|
disabled: C.disabled,
|
|
344
344
|
onKeypress: fe(u, ["enter"]),
|
|
345
|
-
onKeydown: fe(
|
|
345
|
+
onKeydown: fe(qe(h, ["ctrl"]), ["enter"]),
|
|
346
346
|
onFocus: c,
|
|
347
347
|
onBlur: D,
|
|
348
|
-
onChange:
|
|
348
|
+
onChange: I[3] || (I[3] = ({ target: V }) => e("change", V.value))
|
|
349
349
|
}, null, 40, tl)), [
|
|
350
350
|
[fn, d.value]
|
|
351
351
|
]),
|
|
352
|
-
|
|
352
|
+
ze(S("span", { class: "rm-input__hint" }, pe(C.hint), 513), [
|
|
353
353
|
[Tt, l.value]
|
|
354
354
|
])
|
|
355
355
|
])
|
|
@@ -400,10 +400,10 @@ const nl = "data:image/svg+xml;base64,PHN2ZwogICAgd2lkdGg9IjIyIgogICAgaGVpZ2h0PS
|
|
|
400
400
|
appear: ""
|
|
401
401
|
}, {
|
|
402
402
|
default: ie(() => [
|
|
403
|
-
l.isActive ?
|
|
403
|
+
l.isActive ? ze((p(), k("div", rl, [
|
|
404
404
|
S("div", {
|
|
405
405
|
class: "rm-modal__overlay",
|
|
406
|
-
onClick:
|
|
406
|
+
onClick: qe(r, ["self"])
|
|
407
407
|
}),
|
|
408
408
|
We(lt, {
|
|
409
409
|
name: l.contentTransition.length ? l.contentTransition : l.transitionName,
|
|
@@ -606,10 +606,10 @@ const ul = (t, n = 150) => {
|
|
|
606
606
|
return "";
|
|
607
607
|
const b = f(a.options);
|
|
608
608
|
if ((a.multiple || a.chips) && Array.isArray(a.modelValue)) {
|
|
609
|
-
const
|
|
610
|
-
return a.chips ?
|
|
609
|
+
const I = b.filter(({ value: V }) => Array.isArray(a.modelValue) && a.modelValue.includes(V));
|
|
610
|
+
return a.chips ? I : I.map(({ name: V }) => V).join(", ");
|
|
611
611
|
}
|
|
612
|
-
return ((C = b.find(({ value:
|
|
612
|
+
return ((C = b.find(({ value: I }) => I === a.modelValue)) == null ? void 0 : C.name.toString()) ?? "";
|
|
613
613
|
}), D = ul(function({ target: b }) {
|
|
614
614
|
s.value = b.value;
|
|
615
615
|
}, 300);
|
|
@@ -628,11 +628,11 @@ const ul = (t, n = 150) => {
|
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
630
|
if (a.modelValue.includes(b.value)) {
|
|
631
|
-
const C = a.modelValue.filter((
|
|
632
|
-
e("update:modelValue", C), e("select", d.value.filter(({ value:
|
|
631
|
+
const C = a.modelValue.filter((I) => I !== b.value);
|
|
632
|
+
e("update:modelValue", C), e("select", d.value.filter(({ value: I }) => C.includes(I)));
|
|
633
633
|
} else {
|
|
634
634
|
const C = [...a.modelValue, b.value];
|
|
635
|
-
e("update:modelValue", C), e("select", d.value.filter(({ value:
|
|
635
|
+
e("update:modelValue", C), e("select", d.value.filter(({ value: I }) => C.includes(I)));
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
function P() {
|
|
@@ -640,7 +640,7 @@ const ul = (t, n = 150) => {
|
|
|
640
640
|
}
|
|
641
641
|
return ht(o, () => {
|
|
642
642
|
o.value || setTimeout(P, 300);
|
|
643
|
-
}), (b, C) =>
|
|
643
|
+
}), (b, C) => ze((p(), k("div", {
|
|
644
644
|
class: he([
|
|
645
645
|
"rm-select",
|
|
646
646
|
{
|
|
@@ -652,7 +652,7 @@ const ul = (t, n = 150) => {
|
|
|
652
652
|
b.label ? (p(), k("span", {
|
|
653
653
|
key: 0,
|
|
654
654
|
class: "rm-select__label",
|
|
655
|
-
onClick: C[0] || (C[0] = (
|
|
655
|
+
onClick: C[0] || (C[0] = (I) => o.value = !o.value)
|
|
656
656
|
}, pe(b.label), 1)) : T("", !0),
|
|
657
657
|
S("div", {
|
|
658
658
|
class: he([
|
|
@@ -661,7 +661,7 @@ const ul = (t, n = 150) => {
|
|
|
661
661
|
"rm-select-input--focused": o.value
|
|
662
662
|
}
|
|
663
663
|
]),
|
|
664
|
-
onClick: C[1] || (C[1] = (
|
|
664
|
+
onClick: C[1] || (C[1] = (I) => o.value = !o.value)
|
|
665
665
|
}, [
|
|
666
666
|
S("input", {
|
|
667
667
|
id: `select__${b.name}`,
|
|
@@ -687,14 +687,14 @@ const ul = (t, n = 150) => {
|
|
|
687
687
|
at(pe(c.value), 1)
|
|
688
688
|
], 64)) : T("", !0),
|
|
689
689
|
Array.isArray(c.value) && b.chips ? (p(), k("div", kl, [
|
|
690
|
-
(p(!0), k(we, null, Ee(c.value, (
|
|
690
|
+
(p(!0), k(we, null, Ee(c.value, (I, V) => (p(), k("div", {
|
|
691
691
|
key: `chip__${V}`,
|
|
692
692
|
class: "rm-select-chip"
|
|
693
693
|
}, [
|
|
694
|
-
S("span", Dl, pe(
|
|
694
|
+
S("span", Dl, pe(I.name), 1),
|
|
695
695
|
S("button", {
|
|
696
696
|
class: "rm-select-chip__btn",
|
|
697
|
-
onClick:
|
|
697
|
+
onClick: qe((L) => h(I), ["stop"])
|
|
698
698
|
}, Cl, 8, Tl)
|
|
699
699
|
]))), 128))
|
|
700
700
|
])) : T("", !0)
|
|
@@ -707,11 +707,11 @@ const ul = (t, n = 150) => {
|
|
|
707
707
|
mode: "out-in"
|
|
708
708
|
}, {
|
|
709
709
|
default: ie(() => [
|
|
710
|
-
b.removable ? (p(), k("button", {
|
|
710
|
+
b.removable && b.modelValue.toString().length ? (p(), k("button", {
|
|
711
711
|
key: 0,
|
|
712
712
|
class: "rm-select-input-controls__btn rm-select-input-controls__btn--remove",
|
|
713
713
|
type: "button",
|
|
714
|
-
onClick:
|
|
714
|
+
onClick: qe(u, ["stop"])
|
|
715
715
|
}, Ol)) : T("", !0)
|
|
716
716
|
]),
|
|
717
717
|
_: 1
|
|
@@ -720,7 +720,7 @@ const ul = (t, n = 150) => {
|
|
|
720
720
|
], 2),
|
|
721
721
|
We(lt, { name: "slide" }, {
|
|
722
722
|
default: ie(() => [
|
|
723
|
-
|
|
723
|
+
ze(S("ul", Al, [
|
|
724
724
|
b.searchable ? (p(), k("li", Nl, [
|
|
725
725
|
Sl,
|
|
726
726
|
S("input", {
|
|
@@ -731,7 +731,7 @@ const ul = (t, n = 150) => {
|
|
|
731
731
|
class: "rm-select-inner__search-input",
|
|
732
732
|
placeholder: b.searchPlaceholder,
|
|
733
733
|
onInput: C[2] || (C[2] = //@ts-ignore
|
|
734
|
-
(...
|
|
734
|
+
(...I) => v(D) && v(D)(...I))
|
|
735
735
|
}, null, 40, Il)
|
|
736
736
|
])) : T("", !0),
|
|
737
737
|
d.value && d.value.length ? (p(), k(we, { key: 1 }, [
|
|
@@ -739,25 +739,26 @@ const ul = (t, n = 150) => {
|
|
|
739
739
|
key: 1,
|
|
740
740
|
options: d.value,
|
|
741
741
|
selected: c.value
|
|
742
|
-
}) : (p(!0), k(we, { key: 0 }, Ee(d.value, (
|
|
742
|
+
}) : (p(!0), k(we, { key: 0 }, Ee(d.value, (I, V) => (p(), k("li", {
|
|
743
743
|
key: `${V}_option`,
|
|
744
744
|
class: he([
|
|
745
745
|
"rm-select-inner__item",
|
|
746
746
|
{
|
|
747
747
|
// eslint-disable-next-line max-len
|
|
748
|
-
"rm-select-inner__item--selected": !b.multiple && !b.chips || !Array.isArray(b.modelValue) ?
|
|
748
|
+
"rm-select-inner__item--selected": !b.multiple && !b.chips || !Array.isArray(b.modelValue) ? I.value === c.value : b.modelValue.includes(I.value)
|
|
749
749
|
}
|
|
750
750
|
]),
|
|
751
|
-
onClick: (
|
|
751
|
+
onClick: (L) => h(I)
|
|
752
752
|
}, [
|
|
753
753
|
b.multiple || b.chips ? (p(), ye(Ur, {
|
|
754
754
|
key: 0,
|
|
755
|
-
"model-value": b.modelValue.includes(
|
|
756
|
-
name:
|
|
757
|
-
checked: b.modelValue.includes(
|
|
758
|
-
class: "rm-select-inner__item-checkbox"
|
|
759
|
-
|
|
760
|
-
|
|
755
|
+
"model-value": b.modelValue.includes(I.value),
|
|
756
|
+
name: I.name.toString(),
|
|
757
|
+
checked: b.modelValue.includes(I.value),
|
|
758
|
+
class: "rm-select-inner__item-checkbox",
|
|
759
|
+
onClick: qe((L) => h(I), ["stop", "prevent"])
|
|
760
|
+
}, null, 8, ["model-value", "name", "checked", "onClick"])) : T("", !0),
|
|
761
|
+
S("span", null, pe(I.name), 1)
|
|
761
762
|
], 10, Rl))), 128))
|
|
762
763
|
], 64)) : (p(), k("li", Yl, pe(b.emptySelectLabel), 1))
|
|
763
764
|
], 512), [
|
|
@@ -844,7 +845,7 @@ const Fl = /* @__PURE__ */ Ul(Ll, [["render", Hl]]), ql = {
|
|
|
844
845
|
function f() {
|
|
845
846
|
a.editByFocus && (r.value = !0);
|
|
846
847
|
}
|
|
847
|
-
return (u, h) =>
|
|
848
|
+
return (u, h) => ze((p(), k("div", {
|
|
848
849
|
class: he(["rm-editable", { active: r.value }])
|
|
849
850
|
}, [
|
|
850
851
|
r.value ? (p(), k("div", ql, [
|
|
@@ -863,8 +864,8 @@ const Fl = /* @__PURE__ */ Ul(Ll, [["render", Hl]]), ql = {
|
|
|
863
864
|
onChange: s,
|
|
864
865
|
onKeypress: h[1] || (h[1] = fe((P) => d(P, "press-enter"), ["enter"])),
|
|
865
866
|
onKeydown: [
|
|
866
|
-
h[2] || (h[2] = fe(
|
|
867
|
-
h[3] || (h[3] = fe(
|
|
867
|
+
h[2] || (h[2] = fe(qe((P) => d(P, "press-ctrl-change"), ["ctrl"]), ["enter"])),
|
|
868
|
+
h[3] || (h[3] = fe(qe((P) => d(P, "press-alt-change"), ["alt"]), ["enter"]))
|
|
868
869
|
]
|
|
869
870
|
}, null, 8, ["model-value", "maxlength", "is-auto-grow"])) : (p(), k("div", zl, [
|
|
870
871
|
q(u.$slots, "default", { value: u.value }),
|
|
@@ -935,7 +936,7 @@ const Jl = { render: Xl }, eo = {
|
|
|
935
936
|
return (e, r) => (p(), ye(lt, { name: "slide" }, {
|
|
936
937
|
default: ie(() => [
|
|
937
938
|
e.visibility ? (p(), k("div", eo, [
|
|
938
|
-
|
|
939
|
+
ze((p(), k("div", {
|
|
939
940
|
class: he(["rm-alert", e.status])
|
|
940
941
|
}, [
|
|
941
942
|
S("div", to, [
|
|
@@ -984,7 +985,7 @@ const oo = {
|
|
|
984
985
|
const a = n;
|
|
985
986
|
return (e, r) => (p(), ye(lt, { name: "fade" }, {
|
|
986
987
|
default: ie(() => [
|
|
987
|
-
e.visibility ?
|
|
988
|
+
e.visibility ? ze((p(), k("div", oo, [
|
|
988
989
|
S("h3", io, pe(e.title), 1),
|
|
989
990
|
S("div", so, [
|
|
990
991
|
We(Rt, {
|
|
@@ -1017,7 +1018,7 @@ const uo = {
|
|
|
1017
1018
|
const a = n;
|
|
1018
1019
|
return (e, r) => (p(), ye(lt, { name: "slide" }, {
|
|
1019
1020
|
default: ie(() => [
|
|
1020
|
-
e.isActive ?
|
|
1021
|
+
e.isActive ? ze((p(), k("div", uo, [
|
|
1021
1022
|
q(e.$slots, "default")
|
|
1022
1023
|
])), [
|
|
1023
1024
|
[v(oa), () => a("update:isActive", !1)]
|
|
@@ -1225,8 +1226,8 @@ function nn(t, n) {
|
|
|
1225
1226
|
P.setUTCFullYear(f + 1, 0, h), P.setUTCHours(0, 0, 0, 0);
|
|
1226
1227
|
var b = Lt(P, n), C = /* @__PURE__ */ new Date(0);
|
|
1227
1228
|
C.setUTCFullYear(f, 0, h), C.setUTCHours(0, 0, 0, 0);
|
|
1228
|
-
var
|
|
1229
|
-
return D.getTime() >= b.getTime() ? f + 1 : D.getTime() >=
|
|
1229
|
+
var I = Lt(C, n);
|
|
1230
|
+
return D.getTime() >= b.getTime() ? f + 1 : D.getTime() >= I.getTime() ? f : f - 1;
|
|
1230
1231
|
}
|
|
1231
1232
|
function Do(t, n) {
|
|
1232
1233
|
var a, e, r, l, o, s, d, c;
|
|
@@ -2348,12 +2349,12 @@ var pi = {
|
|
|
2348
2349
|
const er = pi;
|
|
2349
2350
|
var hi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, yi = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, gi = /^'([^]*?)'?$/, wi = /''/g, _i = /[a-zA-Z]/;
|
|
2350
2351
|
function aa(t, n, a) {
|
|
2351
|
-
var e, r, l, o, s, d, c, D, f, u, h, P, b, C,
|
|
2352
|
+
var e, r, l, o, s, d, c, D, f, u, h, P, b, C, I, V, L, Z;
|
|
2352
2353
|
ee(2, arguments);
|
|
2353
2354
|
var J = String(n), ae = Ct(), w = (e = (r = a == null ? void 0 : a.locale) !== null && r !== void 0 ? r : ae.locale) !== null && e !== void 0 ? e : er, A = se((l = (o = (s = (d = a == null ? void 0 : a.firstWeekContainsDate) !== null && d !== void 0 ? d : a == null || (c = a.locale) === null || c === void 0 || (D = c.options) === null || D === void 0 ? void 0 : D.firstWeekContainsDate) !== null && s !== void 0 ? s : ae.firstWeekContainsDate) !== null && o !== void 0 ? o : (f = ae.locale) === null || f === void 0 || (u = f.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : 1);
|
|
2354
2355
|
if (!(A >= 1 && A <= 7))
|
|
2355
2356
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2356
|
-
var H = se((h = (P = (b = (C = a == null ? void 0 : a.weekStartsOn) !== null && C !== void 0 ? C : a == null || (
|
|
2357
|
+
var H = se((h = (P = (b = (C = a == null ? void 0 : a.weekStartsOn) !== null && C !== void 0 ? C : a == null || (I = a.locale) === null || I === void 0 || (V = I.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && b !== void 0 ? b : ae.weekStartsOn) !== null && P !== void 0 ? P : (L = ae.locale) === null || L === void 0 || (Z = L.options) === null || Z === void 0 ? void 0 : Z.weekStartsOn) !== null && h !== void 0 ? h : 0);
|
|
2357
2358
|
if (!(H >= 0 && H <= 6))
|
|
2358
2359
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2359
2360
|
if (!w.localize)
|
|
@@ -3402,7 +3403,7 @@ function sn(t, n, a) {
|
|
|
3402
3403
|
var f = Ct(), u = se((e = (r = (l = (o = a == null ? void 0 : a.weekStartsOn) !== null && o !== void 0 ? o : a == null || (s = a.locale) === null || s === void 0 || (d = s.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && l !== void 0 ? l : f.weekStartsOn) !== null && r !== void 0 ? r : (c = f.locale) === null || c === void 0 || (D = c.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && e !== void 0 ? e : 0);
|
|
3403
3404
|
if (!(u >= 0 && u <= 6))
|
|
3404
3405
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
3405
|
-
var h = ue(t), P = se(n), b = h.getUTCDay(), C = P % 7,
|
|
3406
|
+
var h = ue(t), P = se(n), b = h.getUTCDay(), C = P % 7, I = (C + 7) % 7, V = (I < u ? 7 : 0) + P - b;
|
|
3406
3407
|
return h.setUTCDate(h.getUTCDate() + V), h;
|
|
3407
3408
|
}
|
|
3408
3409
|
var Ki = /* @__PURE__ */ function(t) {
|
|
@@ -4241,7 +4242,7 @@ var es = /* @__PURE__ */ function(t) {
|
|
|
4241
4242
|
T: new fs()
|
|
4242
4243
|
}, hs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ys = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, gs = /^'([^]*?)'?$/, ws = /''/g, _s = /\S/, bs = /[a-zA-Z]/;
|
|
4243
4244
|
function Ka(t, n, a, e) {
|
|
4244
|
-
var r, l, o, s, d, c, D, f, u, h, P, b, C,
|
|
4245
|
+
var r, l, o, s, d, c, D, f, u, h, P, b, C, I, V, L, Z, J;
|
|
4245
4246
|
ee(3, arguments);
|
|
4246
4247
|
var ae = String(t), w = String(n), A = Ct(), H = (r = (l = e == null ? void 0 : e.locale) !== null && l !== void 0 ? l : A.locale) !== null && r !== void 0 ? r : er;
|
|
4247
4248
|
if (!H.match)
|
|
@@ -4249,7 +4250,7 @@ function Ka(t, n, a, e) {
|
|
|
4249
4250
|
var j = se((o = (s = (d = (c = e == null ? void 0 : e.firstWeekContainsDate) !== null && c !== void 0 ? c : e == null || (D = e.locale) === null || D === void 0 || (f = D.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && d !== void 0 ? d : A.firstWeekContainsDate) !== null && s !== void 0 ? s : (u = A.locale) === null || u === void 0 || (h = u.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
4250
4251
|
if (!(j >= 1 && j <= 7))
|
|
4251
4252
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
4252
|
-
var B = se((P = (b = (C = (
|
|
4253
|
+
var B = se((P = (b = (C = (I = e == null ? void 0 : e.weekStartsOn) !== null && I !== void 0 ? I : e == null || (V = e.locale) === null || V === void 0 || (L = V.options) === null || L === void 0 ? void 0 : L.weekStartsOn) !== null && C !== void 0 ? C : A.weekStartsOn) !== null && b !== void 0 ? b : (Z = A.locale) === null || Z === void 0 || (J = Z.options) === null || J === void 0 ? void 0 : J.weekStartsOn) !== null && P !== void 0 ? P : 0);
|
|
4253
4254
|
if (!(B >= 0 && B <= 6))
|
|
4254
4255
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
4255
4256
|
if (w === "")
|
|
@@ -4328,10 +4329,10 @@ function Ka(t, n, a, e) {
|
|
|
4328
4329
|
});
|
|
4329
4330
|
}).map(function(Me) {
|
|
4330
4331
|
return Me[0];
|
|
4331
|
-
}),
|
|
4332
|
-
if (isNaN(
|
|
4332
|
+
}), E = ue(a);
|
|
4333
|
+
if (isNaN(E.getTime()))
|
|
4333
4334
|
return /* @__PURE__ */ new Date(NaN);
|
|
4334
|
-
var X = Gn(
|
|
4335
|
+
var X = Gn(E, ya(E)), ne = {}, _ = kn(M), y;
|
|
4335
4336
|
try {
|
|
4336
4337
|
for (_.s(); !(y = _.n()).done; ) {
|
|
4337
4338
|
var U = y.value;
|
|
@@ -4638,7 +4639,7 @@ const fr = /* @__PURE__ */ Et(Tu, [["render", xu]]), Cn = (t, n) => {
|
|
|
4638
4639
|
return a;
|
|
4639
4640
|
}
|
|
4640
4641
|
return typeof n == "function" ? n(t) : null;
|
|
4641
|
-
},
|
|
4642
|
+
}, Y = (t) => t ? new Date(t) : /* @__PURE__ */ new Date(), Ou = (t, n) => {
|
|
4642
4643
|
if (n) {
|
|
4643
4644
|
const e = (t.getMonth() + 1).toString().padStart(2, "0"), r = t.getDate().toString().padStart(2, "0"), l = t.getHours().toString().padStart(2, "0"), o = t.getMinutes().toString().padStart(2, "0");
|
|
4644
4645
|
return `${t.getFullYear()}-${e}-${r}T${l}:${o}:00.000Z`;
|
|
@@ -4653,10 +4654,10 @@ const fr = /* @__PURE__ */ Et(Tu, [["render", xu]]), Cn = (t, n) => {
|
|
|
4653
4654
|
);
|
|
4654
4655
|
return new Date(a).toISOString();
|
|
4655
4656
|
}, yt = (t) => {
|
|
4656
|
-
let n =
|
|
4657
|
+
let n = Y(JSON.parse(JSON.stringify(t)));
|
|
4657
4658
|
return n = ur(n, 0), n = dr(n, 0), n = cr(n, 0), n = un(n, 0), n;
|
|
4658
4659
|
}, dt = (t, n, a, e) => {
|
|
4659
|
-
let r = t ?
|
|
4660
|
+
let r = t ? Y(t) : Y();
|
|
4660
4661
|
return (n || n === 0) && (r = ur(r, +n)), (a || a === 0) && (r = dr(r, +a)), (e || e === 0) && (r = cr(r, +e)), un(r, 0);
|
|
4661
4662
|
}, Ke = (t, n) => !t || !n ? !1 : ln(yt(t), yt(n)), Re = (t, n) => !t || !n ? !1 : tr(yt(t), yt(n)), tt = (t, n) => !t || !n ? !1 : rn(yt(t), yt(n)), pr = (t, n, a) => t && t[0] && t[1] ? tt(a, t[0]) && Ke(a, t[1]) : t && t[0] && n ? tt(a, t[0]) && Ke(a, n) || Ke(a, t[0]) && tt(a, n) : !1, Jt = la({
|
|
4662
4663
|
menuFocused: !1,
|
|
@@ -5178,22 +5179,22 @@ const nd = (t, n = 3) => {
|
|
|
5178
5179
|
var g;
|
|
5179
5180
|
return (g = t.hideNavigation) == null ? void 0 : g.includes(i);
|
|
5180
5181
|
}), D = (i) => {
|
|
5181
|
-
const g = t.maxDate ? tt(s(i), s(
|
|
5182
|
-
return !(g || x || M ||
|
|
5182
|
+
const g = t.maxDate ? tt(s(i), s(Y(t.maxDate))) : !1, x = t.minDate ? Ke(s(i), s(Y(t.minDate))) : !1, M = I(i, t.disabledDates), E = a.value.filters.months.map((U) => +U).includes(Se(i)), X = t.disabledWeekDays.length ? t.disabledWeekDays.some((U) => +U === Di(i)) : !1, ne = t.allowedDates.length ? !t.allowedDates.some((U) => Re(s(Y(U)), s(i))) : !1, _ = Ie(i), y = _ < +t.yearRange[0] || _ > +t.yearRange[1];
|
|
5183
|
+
return !(g || x || M || E || y || X || ne);
|
|
5183
5184
|
}, f = (i) => {
|
|
5184
5185
|
const g = {
|
|
5185
|
-
hours: wt(
|
|
5186
|
-
minutes: _t(
|
|
5187
|
-
seconds: qt(
|
|
5186
|
+
hours: wt(Y()),
|
|
5187
|
+
minutes: _t(Y()),
|
|
5188
|
+
seconds: qt(Y())
|
|
5188
5189
|
};
|
|
5189
5190
|
return Object.assign(g, i);
|
|
5190
5191
|
}, u = () => t.range ? t.startTime && Array.isArray(t.startTime) ? [f(t.startTime[0]), f(t.startTime[1])] : null : t.startTime && !Array.isArray(t.startTime) ? f(t.startTime) : null, h = (i) => !D(i), P = (i) => Array.isArray(i) ? ta(i[0]) && (i[1] ? ta(i[1]) : !0) : i ? ta(i) : !1, b = (i) => i instanceof Date ? i : Ts(i), C = (i) => {
|
|
5191
5192
|
const g = Ga(s(i), { weekStartsOn: +t.weekStart }), x = go(s(i), { weekStartsOn: +t.weekStart });
|
|
5192
5193
|
return [g, x];
|
|
5193
|
-
},
|
|
5194
|
-
let M = i ?
|
|
5194
|
+
}, I = (i, g) => Array.isArray(g) ? g.some((x) => Re(s(Y(x)), s(i))) : g(i), V = (i, g, x) => {
|
|
5195
|
+
let M = i ? Y(i) : Y();
|
|
5195
5196
|
return (g || g === 0) && (M = na(M, g)), x && (M = Yt(M, x)), M;
|
|
5196
|
-
},
|
|
5197
|
+
}, L = (i) => Je(Y(), { hours: wt(i), minutes: _t(i), seconds: qt(i) }), Z = (i) => Je(Y(), {
|
|
5197
5198
|
hours: +i.hours || 0,
|
|
5198
5199
|
minutes: +i.minutes || 0,
|
|
5199
5200
|
seconds: +i.seconds || 0
|
|
@@ -5201,15 +5202,15 @@ const nd = (t, n = 3) => {
|
|
|
5201
5202
|
if (!i)
|
|
5202
5203
|
return !0;
|
|
5203
5204
|
if (M) {
|
|
5204
|
-
const
|
|
5205
|
-
return
|
|
5205
|
+
const E = x === "max" ? ln(i, g) : rn(i, g), X = { seconds: 0, milliseconds: 0 };
|
|
5206
|
+
return E || tr(Je(i, X), Je(g, X));
|
|
5206
5207
|
}
|
|
5207
5208
|
return x === "max" ? i.getTime() <= g.getTime() : i.getTime() >= g.getTime();
|
|
5208
|
-
}, ae = () => !t.enableTimePicker || t.monthPicker || t.yearPicker || t.ignoreTimeValidation, w = (i) => Array.isArray(i) ? [i[0] ?
|
|
5209
|
-
const g = t.maxTime ? Z(t.maxTime) :
|
|
5209
|
+
}, ae = () => !t.enableTimePicker || t.monthPicker || t.yearPicker || t.ignoreTimeValidation, w = (i) => Array.isArray(i) ? [i[0] ? L(i[0]) : null, i[1] ? L(i[1]) : null] : L(i), A = (i) => {
|
|
5210
|
+
const g = t.maxTime ? Z(t.maxTime) : Y(t.maxDate);
|
|
5210
5211
|
return Array.isArray(i) ? J(i[0], g, "max", !!t.maxDate) && J(i[1], g, "max", !!t.maxDate) : J(i, g, "max", !!t.maxDate);
|
|
5211
5212
|
}, H = (i, g) => {
|
|
5212
|
-
const x = t.minTime ? Z(t.minTime) :
|
|
5213
|
+
const x = t.minTime ? Z(t.minTime) : Y(t.minDate);
|
|
5213
5214
|
return Array.isArray(i) ? J(i[0], x, "min", !!t.minDate) && J(i[1], x, "min", !!t.minDate) && g : J(i, x, "min", !!t.minDate) && g;
|
|
5214
5215
|
}, j = (i) => {
|
|
5215
5216
|
let g = !0;
|
|
@@ -5218,9 +5219,9 @@ const nd = (t, n = 3) => {
|
|
|
5218
5219
|
const x = !t.minDate && !t.maxDate ? w(i) : i;
|
|
5219
5220
|
return (t.maxTime || t.maxDate) && (g = A(Qe(x))), (t.minTime || t.minDate) && (g = H(Qe(x), g)), g;
|
|
5220
5221
|
}, B = (i, g) => {
|
|
5221
|
-
const x =
|
|
5222
|
-
for (let
|
|
5223
|
-
const X = Mt(x,
|
|
5222
|
+
const x = Y(JSON.parse(JSON.stringify(i))), M = [];
|
|
5223
|
+
for (let E = 0; E < 7; E++) {
|
|
5224
|
+
const X = Mt(x, E), ne = Se(X) !== g;
|
|
5224
5225
|
M.push({
|
|
5225
5226
|
text: t.hideOffsetDates && ne ? "" : X.getDate(),
|
|
5226
5227
|
value: X,
|
|
@@ -5230,10 +5231,10 @@ const nd = (t, n = 3) => {
|
|
|
5230
5231
|
}
|
|
5231
5232
|
return M;
|
|
5232
5233
|
}, Q = (i, g) => {
|
|
5233
|
-
const x = [], M =
|
|
5234
|
+
const x = [], M = Y(s(new Date(g, i))), E = Y(s(new Date(g, i + 1, 0))), X = Ga(M, { weekStartsOn: t.weekStart }), ne = (_) => {
|
|
5234
5235
|
const y = B(_, i);
|
|
5235
5236
|
if (x.push({ days: y }), !x[x.length - 1].days.some(
|
|
5236
|
-
(U) => Re(yt(U.value), yt(
|
|
5237
|
+
(U) => Re(yt(U.value), yt(E))
|
|
5237
5238
|
)) {
|
|
5238
5239
|
const U = Mt(_, 7);
|
|
5239
5240
|
ne(U);
|
|
@@ -5247,7 +5248,7 @@ const nd = (t, n = 3) => {
|
|
|
5247
5248
|
}
|
|
5248
5249
|
}
|
|
5249
5250
|
return x;
|
|
5250
|
-
}, re = (i, g, x) => [Je(
|
|
5251
|
+
}, re = (i, g, x) => [Je(Y(i), { date: 1 }), Je(Y(), { month: g, year: x, date: 1 })], de = (i, g) => Ke(...re(t.minDate, i, g)) || Re(...re(t.minDate, i, g)), O = (i, g) => tt(...re(t.maxDate, i, g)) || Re(...re(t.maxDate, i, g)), N = (i, g, x) => {
|
|
5251
5252
|
let M = !1;
|
|
5252
5253
|
return t.maxDate && x && O(i, g) && (M = !0), t.minDate && !x && de(i, g) && (M = !0), M;
|
|
5253
5254
|
};
|
|
@@ -5264,13 +5265,13 @@ const nd = (t, n = 3) => {
|
|
|
5264
5265
|
isValidDate: P,
|
|
5265
5266
|
sanitizeDate: b,
|
|
5266
5267
|
getWeekFromDate: C,
|
|
5267
|
-
matchDate:
|
|
5268
|
+
matchDate: I,
|
|
5268
5269
|
setDateMonthOrYear: V,
|
|
5269
5270
|
isValidTime: j,
|
|
5270
5271
|
getCalendarDays: Q,
|
|
5271
5272
|
validateMonthYearInRange: (i, g, x, M) => {
|
|
5272
|
-
let
|
|
5273
|
-
return M ? t.minDate && t.maxDate ?
|
|
5273
|
+
let E = !1;
|
|
5274
|
+
return M ? t.minDate && t.maxDate ? E = N(i, g, x) : (t.minDate && de(i, g) || t.maxDate && O(i, g)) && (E = !0) : E = !0, E;
|
|
5274
5275
|
},
|
|
5275
5276
|
validateMaxDate: O,
|
|
5276
5277
|
validateMinDate: de,
|
|
@@ -5288,7 +5289,7 @@ const nd = (t, n = 3) => {
|
|
|
5288
5289
|
1: []
|
|
5289
5290
|
},
|
|
5290
5291
|
monthPicker: []
|
|
5291
|
-
}), Va = F(null), va = F(!1), Wa = F(!1), Ha = F(!1), Fa = F(!1), Xe = F(0),
|
|
5292
|
+
}), Va = F(null), va = F(!1), Wa = F(!1), Ha = F(!1), Fa = F(!1), Xe = F(0), Ge = F(0), $t = () => {
|
|
5292
5293
|
const t = W(() => va.value ? [...Ne.selectionGrid, Ne.actionRow].filter((f) => f.length) : Wa.value ? [
|
|
5293
5294
|
...Ne.timePicker[0],
|
|
5294
5295
|
...Ne.timePicker[1],
|
|
@@ -5297,12 +5298,12 @@ const nd = (t, n = 3) => {
|
|
|
5297
5298
|
].filter((f) => f.length) : Ha.value ? [...Ne.monthPicker, Ne.actionRow] : [Ne.monthYear, ...Ne.calendar, Ne.time, Ne.actionRow].filter((f) => f.length)), n = (f) => {
|
|
5298
5299
|
Xe.value = f ? Xe.value + 1 : Xe.value - 1;
|
|
5299
5300
|
let u = null;
|
|
5300
|
-
t.value[
|
|
5301
|
+
t.value[Ge.value] && (u = t.value[Ge.value][Xe.value]), u || (Xe.value = f ? Xe.value - 1 : Xe.value + 1);
|
|
5301
5302
|
}, a = (f) => {
|
|
5302
|
-
|
|
5303
|
+
Ge.value === 0 && !f || Ge.value === t.value.length && f || (Ge.value = f ? Ge.value + 1 : Ge.value - 1, t.value[Ge.value] ? t.value[Ge.value] && !t.value[Ge.value][Xe.value] && Xe.value !== 0 && (Xe.value = t.value[Ge.value].length - 1) : Ge.value = f ? Ge.value - 1 : Ge.value + 1);
|
|
5303
5304
|
}, e = (f) => {
|
|
5304
5305
|
let u = null;
|
|
5305
|
-
t.value[
|
|
5306
|
+
t.value[Ge.value] && (u = t.value[Ge.value][Xe.value]), u ? u.focus({ preventScroll: !va.value }) : Xe.value = f ? Xe.value - 1 : Xe.value + 1;
|
|
5306
5307
|
}, r = () => {
|
|
5307
5308
|
n(!0), e(!0);
|
|
5308
5309
|
}, l = () => {
|
|
@@ -5316,7 +5317,7 @@ const nd = (t, n = 3) => {
|
|
|
5316
5317
|
}, c = (f, u) => {
|
|
5317
5318
|
Ne[u] = f;
|
|
5318
5319
|
}, D = () => {
|
|
5319
|
-
Xe.value = 0,
|
|
5320
|
+
Xe.value = 0, Ge.value = 0;
|
|
5320
5321
|
};
|
|
5321
5322
|
return {
|
|
5322
5323
|
buildMatrix: d,
|
|
@@ -5364,22 +5365,22 @@ const nd = (t, n = 3) => {
|
|
|
5364
5365
|
ht(u, () => {
|
|
5365
5366
|
t.multiCalendars || J();
|
|
5366
5367
|
});
|
|
5367
|
-
const P = F([{ month: Se(
|
|
5368
|
-
hours: t.range ? [wt(
|
|
5369
|
-
minutes: t.range ? [_t(
|
|
5368
|
+
const P = F([{ month: Se(Y()), year: Ie(Y()) }]), b = la({
|
|
5369
|
+
hours: t.range ? [wt(Y()), wt(Y())] : wt(Y()),
|
|
5370
|
+
minutes: t.range ? [_t(Y()), _t(Y())] : _t(Y()),
|
|
5370
5371
|
seconds: t.range ? [0, 0] : 0
|
|
5371
5372
|
}), C = W(
|
|
5372
5373
|
() => (m) => P.value[m] ? P.value[m].month : 0
|
|
5373
|
-
),
|
|
5374
|
+
), I = W(
|
|
5374
5375
|
() => (m) => P.value[m] ? P.value[m].year : 0
|
|
5375
|
-
), V = W(() => t.flow && t.flow.length ? r.value === t.flow.length : !0),
|
|
5376
|
+
), V = W(() => t.flow && t.flow.length ? r.value === t.flow.length : !0), L = (m, R, te) => {
|
|
5376
5377
|
var le, Ae;
|
|
5377
|
-
P.value[m] || (P.value[m] = { month: 0, year: 0 }), P.value[m].month =
|
|
5378
|
-
}, Z = (m,
|
|
5379
|
-
b[m] =
|
|
5378
|
+
P.value[m] || (P.value[m] = { month: 0, year: 0 }), P.value[m].month = R === null ? (le = P.value[m]) == null ? void 0 : le.month : R, P.value[m].year = te === null ? (Ae = P.value[m]) == null ? void 0 : Ae.year : te;
|
|
5379
|
+
}, Z = (m, R) => {
|
|
5380
|
+
b[m] = R;
|
|
5380
5381
|
};
|
|
5381
5382
|
ot(() => {
|
|
5382
|
-
u.value || (t.startDate && (
|
|
5383
|
+
u.value || (t.startDate && (L(0, Se(Y(t.startDate)), Ie(Y(t.startDate))), f.value.multiCalendars && Gt(0)), f.value.startTime && O()), J(!0);
|
|
5383
5384
|
});
|
|
5384
5385
|
const J = (m = !1) => {
|
|
5385
5386
|
if (u.value)
|
|
@@ -5391,86 +5392,86 @@ const nd = (t, n = 3) => {
|
|
|
5391
5392
|
if (t.yearPicker && !t.range)
|
|
5392
5393
|
return re();
|
|
5393
5394
|
if (f.value.multiCalendars && m && !t.startDate)
|
|
5394
|
-
return ae(
|
|
5395
|
-
}, ae = (m,
|
|
5396
|
-
if ((!f.value.multiCalendars || !t.multiStatic ||
|
|
5395
|
+
return ae(Y(), m);
|
|
5396
|
+
}, ae = (m, R = !1) => {
|
|
5397
|
+
if ((!f.value.multiCalendars || !t.multiStatic || R) && L(0, Se(m), Ie(m)), f.value.multiCalendars)
|
|
5397
5398
|
for (let te = 1; te < f.value.multiCalendars; te++) {
|
|
5398
|
-
const le = Je(
|
|
5399
|
+
const le = Je(Y(), { month: C.value(te - 1), year: I.value(te - 1) }), Ae = Fn(le, { months: 1 });
|
|
5399
5400
|
P.value[te] = { month: Se(Ae), year: Ie(Ae) };
|
|
5400
5401
|
}
|
|
5401
5402
|
}, w = (m) => {
|
|
5402
5403
|
ae(m), Z("hours", wt(m)), Z("minutes", _t(m)), Z("seconds", qt(m));
|
|
5403
|
-
}, A = (m,
|
|
5404
|
-
ae(m[0],
|
|
5404
|
+
}, A = (m, R) => {
|
|
5405
|
+
ae(m[0], R);
|
|
5405
5406
|
const te = (le, Ae) => [
|
|
5406
5407
|
le(m[0]),
|
|
5407
5408
|
m[1] ? le(m[1]) : b[Ae][1]
|
|
5408
5409
|
];
|
|
5409
5410
|
Z("hours", te(wt, "hours")), Z("minutes", te(_t, "minutes")), Z("seconds", te(qt, "seconds"));
|
|
5410
|
-
}, H = (m,
|
|
5411
|
+
}, H = (m, R) => {
|
|
5411
5412
|
if ((t.range || t.weekPicker) && !t.multiDates)
|
|
5412
|
-
return A(m,
|
|
5413
|
+
return A(m, R);
|
|
5413
5414
|
if (t.multiDates) {
|
|
5414
5415
|
const te = m[m.length - 1];
|
|
5415
5416
|
return w(te);
|
|
5416
5417
|
}
|
|
5417
5418
|
}, j = (m) => {
|
|
5418
|
-
const
|
|
5419
|
-
H(
|
|
5419
|
+
const R = u.value;
|
|
5420
|
+
H(R, m), f.value.multiCalendars && t.multiCalendarsSolo && i();
|
|
5420
5421
|
}, B = () => {
|
|
5421
5422
|
if (O(), !t.range)
|
|
5422
|
-
u.value = dt(
|
|
5423
|
+
u.value = dt(Y(), b.hours, b.minutes, de());
|
|
5423
5424
|
else {
|
|
5424
|
-
const m = b.hours,
|
|
5425
|
+
const m = b.hours, R = b.minutes;
|
|
5425
5426
|
u.value = [
|
|
5426
|
-
dt(
|
|
5427
|
-
dt(
|
|
5427
|
+
dt(Y(), m[0], R[0], de()),
|
|
5428
|
+
dt(Y(), m[1], R[1], de(!1))
|
|
5428
5429
|
];
|
|
5429
5430
|
}
|
|
5430
5431
|
}, Q = () => {
|
|
5431
|
-
u.value = c(
|
|
5432
|
+
u.value = c(Y(), C.value(0), I.value(0));
|
|
5432
5433
|
}, re = () => {
|
|
5433
|
-
u.value =
|
|
5434
|
+
u.value = Y();
|
|
5434
5435
|
}, de = (m = !0) => t.enableSeconds ? Array.isArray(b.seconds) ? m ? b.seconds[0] : b.seconds[1] : b.seconds : 0, O = () => {
|
|
5435
5436
|
const m = l();
|
|
5436
5437
|
if (m) {
|
|
5437
|
-
const
|
|
5438
|
+
const R = Array.isArray(m), te = R ? [+m[0].hours, +m[1].hours] : +m.hours, le = R ? [+m[0].minutes, +m[1].minutes] : +m.minutes, Ae = R ? [+m[0].seconds, +m[1].seconds] : +m.seconds;
|
|
5438
5439
|
Z("hours", te), Z("minutes", le), t.enableSeconds && Z("seconds", Ae);
|
|
5439
5440
|
}
|
|
5440
5441
|
}, N = () => Array.isArray(u.value) && u.value.length ? u.value[u.value.length - 1] : null, i = () => {
|
|
5441
5442
|
if (Array.isArray(u.value) && u.value.length === 2) {
|
|
5442
|
-
const m =
|
|
5443
|
-
|
|
5444
|
-
), [
|
|
5445
|
-
(
|
|
5443
|
+
const m = Y(
|
|
5444
|
+
Y(u.value[1] ? u.value[1] : pt(u.value[0], 1))
|
|
5445
|
+
), [R, te] = [Se(u.value[0]), Ie(u.value[0])], [le, Ae] = [Se(u.value[1]), Ie(u.value[1])];
|
|
5446
|
+
(R !== le || R === le && te !== Ae) && t.multiCalendarsSolo && L(1, Se(m), Ie(m));
|
|
5446
5447
|
}
|
|
5447
5448
|
}, g = (m) => {
|
|
5448
|
-
const
|
|
5449
|
-
return { month: Se(
|
|
5449
|
+
const R = pt(m, 1);
|
|
5450
|
+
return { month: Se(R), year: Ie(R) };
|
|
5450
5451
|
}, x = (m) => {
|
|
5451
|
-
const
|
|
5452
|
-
if (
|
|
5452
|
+
const R = Se(Y(m)), te = Ie(Y(m));
|
|
5453
|
+
if (L(0, R, te), f.value.multiCalendars > 0)
|
|
5453
5454
|
for (let le = 1; le < f.value.multiCalendars; le++) {
|
|
5454
5455
|
const Ae = g(
|
|
5455
|
-
Je(
|
|
5456
|
+
Je(Y(m), { year: C.value(le - 1), month: I.value(le - 1) })
|
|
5456
5457
|
);
|
|
5457
|
-
|
|
5458
|
+
L(le, Ae.month, Ae.year);
|
|
5458
5459
|
}
|
|
5459
5460
|
}, M = (m) => {
|
|
5460
5461
|
if (u.value && Array.isArray(u.value))
|
|
5461
|
-
if (u.value.some((
|
|
5462
|
-
const
|
|
5463
|
-
u.value =
|
|
5462
|
+
if (u.value.some((R) => Re(m, R))) {
|
|
5463
|
+
const R = u.value.filter((te) => !Re(te, m));
|
|
5464
|
+
u.value = R.length ? R : null;
|
|
5464
5465
|
} else
|
|
5465
5466
|
(t.multiDatesLimit && +t.multiDatesLimit > u.value.length || !t.multiDatesLimit) && u.value.push(m);
|
|
5466
5467
|
else
|
|
5467
5468
|
u.value = [m];
|
|
5468
|
-
},
|
|
5469
|
-
const te = tt(m,
|
|
5469
|
+
}, E = (m, R) => {
|
|
5470
|
+
const te = tt(m, R) ? R : m, le = tt(R, m) ? R : m;
|
|
5470
5471
|
return yn({ start: te, end: le });
|
|
5471
5472
|
}, X = (m) => {
|
|
5472
5473
|
if (Array.isArray(u.value) && u.value[0]) {
|
|
5473
|
-
const
|
|
5474
|
+
const R = ho(m, u.value[0]), te = E(u.value[0], m), le = te.length === 1 ? 0 : te.filter((vt) => o(vt)).length, Ae = Math.abs(R) - le;
|
|
5474
5475
|
if (t.minRange && t.maxRange)
|
|
5475
5476
|
return Ae >= +t.minRange && Ae <= +t.maxRange;
|
|
5476
5477
|
if (t.minRange)
|
|
@@ -5483,22 +5484,22 @@ const nd = (t, n = 3) => {
|
|
|
5483
5484
|
t.autoApply && V.value && n("auto-apply");
|
|
5484
5485
|
}, y = () => {
|
|
5485
5486
|
t.autoApply && n("select-date");
|
|
5486
|
-
}, U = (m) => !yn({ start: m[0], end: m[1] }).some((
|
|
5487
|
-
const
|
|
5488
|
-
t.multiDates ? M(
|
|
5487
|
+
}, U = (m) => !yn({ start: m[0], end: m[1] }).some((R) => o(R)), Pe = (m) => (u.value = d(Y(m.value)), _()), Me = (m) => {
|
|
5488
|
+
const R = dt(Y(m.value), b.hours, b.minutes, de());
|
|
5489
|
+
t.multiDates ? M(R) : u.value = R, a(), _();
|
|
5489
5490
|
}, ce = () => {
|
|
5490
5491
|
h.value = u.value ? u.value.slice() : [], h.value.length === 2 && !(t.fixedStart || t.fixedEnd) && (h.value = []);
|
|
5491
|
-
}, Ye = (m,
|
|
5492
|
-
const te = [
|
|
5493
|
-
U(te) && (
|
|
5492
|
+
}, Ye = (m, R) => {
|
|
5493
|
+
const te = [Y(m.value), Mt(Y(m.value), +t.autoRange)];
|
|
5494
|
+
U(te) && (R && x(m.value), h.value = te);
|
|
5494
5495
|
}, it = (m) => {
|
|
5495
|
-
ve(m.value) || (h.value = ne(
|
|
5496
|
-
}, ve = (m) => t.noDisabledRange ?
|
|
5496
|
+
ve(m.value) || (h.value = ne(Y(m.value)));
|
|
5497
|
+
}, ve = (m) => t.noDisabledRange ? E(h.value[0], m).some((R) => o(R)) : !1, me = (m, R) => {
|
|
5497
5498
|
if (ce(), t.autoRange)
|
|
5498
|
-
return Ye(m,
|
|
5499
|
+
return Ye(m, R);
|
|
5499
5500
|
if (t.fixedStart || t.fixedEnd)
|
|
5500
5501
|
return it(m);
|
|
5501
|
-
h.value[0] ? X(
|
|
5502
|
+
h.value[0] ? X(Y(m.value)) && !ve(m.value) && (Ke(Y(m.value), Y(h.value[0])) ? h.value.unshift(Y(m.value)) : h.value[1] = Y(m.value)) : h.value[0] = Y(m.value);
|
|
5502
5503
|
}, Ce = (m) => {
|
|
5503
5504
|
h.value[m] = dt(
|
|
5504
5505
|
h.value[m],
|
|
@@ -5508,29 +5509,29 @@ const nd = (t, n = 3) => {
|
|
|
5508
5509
|
);
|
|
5509
5510
|
}, ge = () => {
|
|
5510
5511
|
h.value.length && (h.value[0] && !h.value[1] ? Ce(0) : (Ce(0), Ce(1), a()), u.value = h.value.slice(), h.value[0] && h.value[1] && t.autoApply && n("auto-apply"), h.value[0] && !h.value[1] && t.modelAuto && t.autoApply && n("auto-apply"));
|
|
5511
|
-
}, zt = (m,
|
|
5512
|
+
}, zt = (m, R = !1) => {
|
|
5512
5513
|
if (!(o(m.value) || !m.current && t.hideOffsetDates)) {
|
|
5513
5514
|
if (t.weekPicker)
|
|
5514
5515
|
return Pe(m);
|
|
5515
5516
|
if (!t.range)
|
|
5516
5517
|
return Me(m);
|
|
5517
|
-
At(b.hours) && At(b.minutes) && !t.multiDates && (me(m,
|
|
5518
|
+
At(b.hours) && At(b.minutes) && !t.multiDates && (me(m, R), ge());
|
|
5518
5519
|
}
|
|
5519
5520
|
}, gt = (m) => {
|
|
5520
|
-
const
|
|
5521
|
-
return
|
|
5521
|
+
const R = m.find((te) => te.current);
|
|
5522
|
+
return R ? Ci(R.value) : "";
|
|
5522
5523
|
}, Gt = (m) => {
|
|
5523
|
-
for (let
|
|
5524
|
-
const te = Ht(Je(
|
|
5525
|
-
|
|
5524
|
+
for (let R = m - 1; R >= 0; R--) {
|
|
5525
|
+
const te = Ht(Je(Y(), { month: C.value(R + 1), year: I.value(R + 1) }), 1);
|
|
5526
|
+
L(R, Se(te), Ie(te));
|
|
5526
5527
|
}
|
|
5527
|
-
for (let
|
|
5528
|
-
const te = pt(Je(
|
|
5529
|
-
|
|
5528
|
+
for (let R = m + 1; R <= f.value.multiCalendars - 1; R++) {
|
|
5529
|
+
const te = pt(Je(Y(), { month: C.value(R - 1), year: I.value(R - 1) }), 1);
|
|
5530
|
+
L(R, Se(te), Ie(te));
|
|
5530
5531
|
}
|
|
5531
|
-
}, Pt = (m) => c(
|
|
5532
|
-
const te = t.monthPicker ? C.value(m) !==
|
|
5533
|
-
if (
|
|
5532
|
+
}, Pt = (m) => c(Y(), C.value(m), I.value(m)), Zt = (m) => dt(m, b.hours, b.minutes, de()), Pa = (m, R) => {
|
|
5533
|
+
const te = t.monthPicker ? C.value(m) !== R.month || !R.fromNav : I.value(m) !== R.year;
|
|
5534
|
+
if (L(m, R.month, R.year), f.value.multiCalendars && !t.multiCalendarsSolo && Gt(m), t.monthPicker || t.yearPicker)
|
|
5534
5535
|
if (t.range) {
|
|
5535
5536
|
if (te) {
|
|
5536
5537
|
let le = u.value ? u.value.slice() : [];
|
|
@@ -5538,21 +5539,21 @@ const nd = (t, n = 3) => {
|
|
|
5538
5539
|
}
|
|
5539
5540
|
} else
|
|
5540
5541
|
u.value = Pt(m);
|
|
5541
|
-
n("update-month-year", { instance: m, month:
|
|
5542
|
+
n("update-month-year", { instance: m, month: R.month, year: R.year }), e(t.multiCalendarsSolo ? m : void 0);
|
|
5542
5543
|
}, Oa = async (m = !1) => {
|
|
5543
5544
|
if (t.autoApply && (t.monthPicker || t.yearPicker)) {
|
|
5544
5545
|
await Ut();
|
|
5545
|
-
const
|
|
5546
|
-
t.range ? n("auto-apply",
|
|
5546
|
+
const R = t.monthPicker ? m : !1;
|
|
5547
|
+
t.range ? n("auto-apply", R || !u.value || u.value.length === 1) : n("auto-apply", R);
|
|
5547
5548
|
}
|
|
5548
5549
|
a();
|
|
5549
|
-
}, ia = (m,
|
|
5550
|
-
const te = Je(
|
|
5551
|
-
D(Se(le), Ie(le), m < 0, t.preventMinMaxNavigation) && (
|
|
5550
|
+
}, ia = (m, R) => {
|
|
5551
|
+
const te = Je(Y(), { month: C.value(R), year: I.value(R) }), le = m < 0 ? pt(te, 1) : Ht(te, 1);
|
|
5552
|
+
D(Se(le), Ie(le), m < 0, t.preventMinMaxNavigation) && (L(R, Se(le), Ie(le)), f.value.multiCalendars && !t.multiCalendarsSolo && Gt(R), n("update-month-year", { instance: R, month: Se(le), year: Ie(le) }), e());
|
|
5552
5553
|
}, Qt = (m) => {
|
|
5553
5554
|
Un(m) && Un(u.value) && At(b.hours) && At(b.minutes) ? (m[0] && u.value[0] && (u.value[0] = dt(m[0], b.hours[0], b.minutes[0], de())), m[1] && u.value[1] && (u.value[1] = dt(m[1], b.hours[1], b.minutes[1], de(!1)))) : t.multiDates && Array.isArray(u.value) ? u.value[u.value.length - 1] = Zt(m) : !t.range && !Ln(m) && (u.value = Zt(m)), n("time-update");
|
|
5554
|
-
}, Aa = (m,
|
|
5555
|
-
const le =
|
|
5555
|
+
}, Aa = (m, R = !0, te = !1) => {
|
|
5556
|
+
const le = R ? m : b.hours, Ae = !R && !te ? m : b.minutes, vt = te ? m : b.seconds;
|
|
5556
5557
|
if (t.range && Ln(u.value) && At(le) && At(Ae) && At(vt) && !t.disableTimeRangeValidation) {
|
|
5557
5558
|
const Ot = (K) => dt(u.value[K], le[K], Ae[K], vt[K]), $ = (K) => un(u.value[K], 0);
|
|
5558
5559
|
if (Re(u.value[0], u.value[1]) && (rn(Ot(0), $(1)) || ln(Ot(1), $(0))))
|
|
@@ -5565,19 +5566,19 @@ const nd = (t, n = 3) => {
|
|
|
5565
5566
|
} else
|
|
5566
5567
|
Qt(u.value);
|
|
5567
5568
|
else
|
|
5568
|
-
t.timePicker && Qt(t.range ? [
|
|
5569
|
+
t.timePicker && Qt(t.range ? [Y(), Y()] : Y());
|
|
5569
5570
|
a();
|
|
5570
|
-
}, Na = (m,
|
|
5571
|
-
t.monthChangeOnScroll && ia(t.monthChangeOnScroll !== "inverse" ? -m.deltaY : m.deltaY,
|
|
5572
|
-
}, Sa = (m,
|
|
5573
|
-
t.monthChangeOnArrows && t.vertical === te && sa(m,
|
|
5574
|
-
}, sa = (m,
|
|
5575
|
-
ia(m === "right" ? -1 : 1,
|
|
5571
|
+
}, Na = (m, R) => {
|
|
5572
|
+
t.monthChangeOnScroll && ia(t.monthChangeOnScroll !== "inverse" ? -m.deltaY : m.deltaY, R);
|
|
5573
|
+
}, Sa = (m, R, te = !1) => {
|
|
5574
|
+
t.monthChangeOnArrows && t.vertical === te && sa(m, R);
|
|
5575
|
+
}, sa = (m, R) => {
|
|
5576
|
+
ia(m === "right" ? -1 : 1, R);
|
|
5576
5577
|
};
|
|
5577
5578
|
return {
|
|
5578
5579
|
time: b,
|
|
5579
5580
|
month: C,
|
|
5580
|
-
year:
|
|
5581
|
+
year: I,
|
|
5581
5582
|
modelValue: u,
|
|
5582
5583
|
calendars: P,
|
|
5583
5584
|
monthYearSelect: Oa,
|
|
@@ -5587,14 +5588,14 @@ const nd = (t, n = 3) => {
|
|
|
5587
5588
|
selectDate: zt,
|
|
5588
5589
|
updateMonthYear: Pa,
|
|
5589
5590
|
handleScroll: Na,
|
|
5590
|
-
getMarker: (m) => t.markers.find((
|
|
5591
|
+
getMarker: (m) => t.markers.find((R) => Re(s(m.value), s(R.date))),
|
|
5591
5592
|
handleArrow: Sa,
|
|
5592
5593
|
handleSwipe: sa,
|
|
5593
5594
|
selectCurrentDate: () => {
|
|
5594
|
-
t.range ? u.value && Array.isArray(u.value) && u.value[0] ? u.value = Ke(
|
|
5595
|
+
t.range ? u.value && Array.isArray(u.value) && u.value[0] ? u.value = Ke(Y(), u.value[0]) ? [Y(), u.value[0]] : [u.value[0], Y()] : u.value = [Y()] : u.value = Y(), y();
|
|
5595
5596
|
},
|
|
5596
|
-
presetDateRange: (m,
|
|
5597
|
-
|
|
5597
|
+
presetDateRange: (m, R) => {
|
|
5598
|
+
R || m.length && m.length <= 2 && t.range && (u.value = m.map((te) => Y(te)), y(), t.multiCalendars && Ut().then(() => J(!0)));
|
|
5598
5599
|
}
|
|
5599
5600
|
};
|
|
5600
5601
|
}, hd = (t, n, a) => {
|
|
@@ -5615,16 +5616,16 @@ const nd = (t, n = 3) => {
|
|
|
5615
5616
|
g();
|
|
5616
5617
|
});
|
|
5617
5618
|
const b = (_) => {
|
|
5618
|
-
const y = _ ||
|
|
5619
|
+
const y = _ || Y();
|
|
5619
5620
|
return n.modelType ? M(y) : {
|
|
5620
5621
|
hours: wt(y),
|
|
5621
5622
|
minutes: _t(y),
|
|
5622
5623
|
seconds: n.enableSeconds ? qt(y) : 0
|
|
5623
5624
|
};
|
|
5624
|
-
}, C = (_) => n.modelType ? M(_) : { month: Se(_), year: Ie(_) },
|
|
5625
|
-
Yt(
|
|
5626
|
-
_[1] ? Yt(
|
|
5627
|
-
]) : Yt(
|
|
5625
|
+
}, C = (_) => n.modelType ? M(_) : { month: Se(_), year: Ie(_) }, I = (_) => Array.isArray(_) ? d(() => [
|
|
5626
|
+
Yt(Y(), _[0]),
|
|
5627
|
+
_[1] ? Yt(Y(), _[1]) : c()
|
|
5628
|
+
]) : Yt(Y(), +_), V = (_, y) => (typeof _ == "string" || typeof _ == "number") && n.modelType ? x(_) : y, L = (_) => Array.isArray(_) ? [
|
|
5628
5629
|
V(
|
|
5629
5630
|
_[0],
|
|
5630
5631
|
dt(null, +_[0].hours, +_[0].minutes, _[0].seconds)
|
|
@@ -5645,7 +5646,7 @@ const nd = (t, n = 3) => {
|
|
|
5645
5646
|
throw new Error(Ma.dateArr("multi-dates"));
|
|
5646
5647
|
}, ae = (_) => {
|
|
5647
5648
|
if (Array.isArray(_))
|
|
5648
|
-
return [
|
|
5649
|
+
return [Y(_[0]), Y(_[1])];
|
|
5649
5650
|
throw new Error(Ma.dateArr("week-picker"));
|
|
5650
5651
|
}, w = (_) => n.modelAuto ? Array.isArray(_) ? [x(_[0]), x(_[1])] : n.autoApply ? [x(_)] : [x(_), null] : Array.isArray(_) ? d(() => [
|
|
5651
5652
|
x(_[0]),
|
|
@@ -5658,7 +5659,7 @@ const nd = (t, n = 3) => {
|
|
|
5658
5659
|
M(_[0]),
|
|
5659
5660
|
_[1] ? M(_[1]) : c()
|
|
5660
5661
|
];
|
|
5661
|
-
}, j = () => e.value[1] ? H() : M(Qe(e.value[0])), B = () => (e.value || []).map((_) => M(_)), Q = () => (A(), n.modelAuto ? j() : n.multiDates ? B() : Array.isArray(e.value) ? d(() => H()) : M(Qe(e.value))), re = (_) => _ ? n.timePicker ?
|
|
5662
|
+
}, j = () => e.value[1] ? H() : M(Qe(e.value[0])), B = () => (e.value || []).map((_) => M(_)), Q = () => (A(), n.modelAuto ? j() : n.multiDates ? B() : Array.isArray(e.value) ? d(() => H()) : M(Qe(e.value))), re = (_) => _ ? n.timePicker ? L(Qe(_)) : n.monthPicker ? Z(Qe(_)) : n.yearPicker ? I(Qe(_)) : n.multiDates ? J(Qe(_)) : n.weekPicker ? ae(Qe(_)) : w(Qe(_)) : null, de = (_) => {
|
|
5662
5663
|
const y = re(_);
|
|
5663
5664
|
D(Qe(y)) ? (e.value = Qe(y), g()) : (e.value = null, h.value = "");
|
|
5664
5665
|
}, O = () => {
|
|
@@ -5682,19 +5683,19 @@ const nd = (t, n = 3) => {
|
|
|
5682
5683
|
return n.utc === "preserve" ? new Date(y.getTime() + y.getTimezoneOffset() * 6e4) : y;
|
|
5683
5684
|
}
|
|
5684
5685
|
return n.modelType ? n.modelType === "date" || n.modelType === "timestamp" ? l(new Date(_)) : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? Ka(_, s(), /* @__PURE__ */ new Date()) : l(Ka(_, n.modelType, /* @__PURE__ */ new Date())) : l(new Date(_));
|
|
5685
|
-
}, M = (_) => n.utc ? Ou(_, n.utc === "preserve") : n.modelType ? n.modelType === "timestamp" ? +r(_) : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? o(r(_)) : o(r(_), n.modelType) : r(_),
|
|
5686
|
+
}, M = (_) => n.utc ? Ou(_, n.utc === "preserve") : n.modelType ? n.modelType === "timestamp" ? +r(_) : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? o(r(_)) : o(r(_), n.modelType) : r(_), E = (_) => {
|
|
5686
5687
|
t("update:model-value", _);
|
|
5687
5688
|
}, X = (_) => Array.isArray(e.value) ? [
|
|
5688
5689
|
_(e.value[0]),
|
|
5689
5690
|
e.value[1] ? _(e.value[1]) : c()
|
|
5690
|
-
] : _(Qe(e.value)), ne = (_) =>
|
|
5691
|
+
] : _(Qe(e.value)), ne = (_) => E(Qe(X(_)));
|
|
5691
5692
|
return {
|
|
5692
5693
|
inputValue: h,
|
|
5693
5694
|
internalModelValue: e,
|
|
5694
5695
|
checkBeforeEmit: () => e.value ? n.range ? n.partialRange ? e.value.length >= 1 : e.value.length === 2 : !!e.value : !1,
|
|
5695
5696
|
parseExternalModelValue: de,
|
|
5696
5697
|
formatInputValue: g,
|
|
5697
|
-
emitModelValue: () => (g(), n.monthPicker ? ne(C) : n.timePicker ? ne(b) : n.yearPicker ? ne(Ie) : n.weekPicker ?
|
|
5698
|
+
emitModelValue: () => (g(), n.monthPicker ? ne(C) : n.timePicker ? ne(b) : n.yearPicker ? ne(Ie) : n.weekPicker ? E(e.value) : E(Q()))
|
|
5698
5699
|
};
|
|
5699
5700
|
}, yd = (t, n) => {
|
|
5700
5701
|
const { validateMonthYearInRange: a, validateMaxDate: e, validateMinDate: r, defaults: l } = ut(t), o = (f, u) => {
|
|
@@ -5762,7 +5763,7 @@ const gd = (t, n, a, e) => {
|
|
|
5762
5763
|
}, C = (w = !0) => {
|
|
5763
5764
|
if (!e.inline)
|
|
5764
5765
|
return o.value ? P() : e.altPosition && typeof e.altPosition != "boolean" ? b() : (w && a("recalculate-position"), ae());
|
|
5765
|
-
},
|
|
5766
|
+
}, I = ({
|
|
5766
5767
|
inputEl: w,
|
|
5767
5768
|
menuEl: A,
|
|
5768
5769
|
left: H,
|
|
@@ -5771,10 +5772,10 @@ const gd = (t, n, a, e) => {
|
|
|
5771
5772
|
window.screen.width > 768 && f(H, j), Z(w, A);
|
|
5772
5773
|
}, V = (w, A) => {
|
|
5773
5774
|
const { top: H, left: j, height: B, width: Q } = u(w);
|
|
5774
|
-
r.value.top = `${B + H + +e.offset}px`,
|
|
5775
|
-
},
|
|
5775
|
+
r.value.top = `${B + H + +e.offset}px`, I({ inputEl: w, menuEl: A, left: j, width: Q }), l.value = !1;
|
|
5776
|
+
}, L = (w, A) => {
|
|
5776
5777
|
const { top: H, left: j, width: B } = u(w), { height: Q } = A.getBoundingClientRect();
|
|
5777
|
-
r.value.top = `${H - Q - +e.offset}px`,
|
|
5778
|
+
r.value.top = `${H - Q - +e.offset}px`, I({ inputEl: w, menuEl: A, left: j, width: B }), l.value = !0;
|
|
5778
5779
|
}, Z = (w, A) => {
|
|
5779
5780
|
if (e.autoPosition) {
|
|
5780
5781
|
const { left: H, width: j } = u(w), { left: B, right: Q } = A.getBoundingClientRect();
|
|
@@ -5785,7 +5786,7 @@ const gd = (t, n, a, e) => {
|
|
|
5785
5786
|
}
|
|
5786
5787
|
}, J = (w, A) => {
|
|
5787
5788
|
const { height: H } = A.getBoundingClientRect(), { top: j, height: B } = w.getBoundingClientRect(), Q = window.innerHeight - j - B, re = j;
|
|
5788
|
-
return H <= Q ? V(w, A) : H > Q && H <= re ?
|
|
5789
|
+
return H <= Q ? V(w, A) : H > Q && H <= re ? L(w, A) : Q >= re ? V(w, A) : L(w, A);
|
|
5789
5790
|
}, ae = () => {
|
|
5790
5791
|
const w = He(n), A = He(t);
|
|
5791
5792
|
if (w && A)
|
|
@@ -6043,12 +6044,12 @@ const gd = (t, n, a, e) => {
|
|
|
6043
6044
|
}, C = () => {
|
|
6044
6045
|
var w, A;
|
|
6045
6046
|
(w = o.value.textInputOptions) != null && w.enterSubmit && l(s.value) && e.inputValue !== "" ? (a("set-input-date", s.value, !0), s.value = null) : (A = o.value.textInputOptions) != null && A.enterSubmit && e.inputValue === "" && (s.value = null, a("clear"));
|
|
6046
|
-
},
|
|
6047
|
+
}, I = () => {
|
|
6047
6048
|
var w, A;
|
|
6048
6049
|
(w = o.value.textInputOptions) != null && w.tabSubmit && l(s.value) && e.inputValue !== "" ? (a("set-input-date", s.value, !0), s.value = null) : (A = o.value.textInputOptions) != null && A.tabSubmit && e.inputValue === "" && (s.value = null, a("clear"));
|
|
6049
6050
|
}, V = () => {
|
|
6050
6051
|
c.value = !0, a("focus");
|
|
6051
|
-
},
|
|
6052
|
+
}, L = (w) => {
|
|
6052
6053
|
var A;
|
|
6053
6054
|
w.preventDefault(), w.stopImmediatePropagation(), w.stopPropagation(), e.textInput && (A = o.value.textInputOptions) != null && A.openMenu && !e.inlineWithInput ? e.isMenuOpen ? o.value.textInputOptions.enterSubmit && a("select-date") : a("open") : e.textInput || a("toggle");
|
|
6054
6055
|
}, Z = () => {
|
|
@@ -6065,7 +6066,7 @@ const gd = (t, n, a, e) => {
|
|
|
6065
6066
|
}), (w, A) => {
|
|
6066
6067
|
var H;
|
|
6067
6068
|
return p(), k("div", {
|
|
6068
|
-
onClick:
|
|
6069
|
+
onClick: L,
|
|
6069
6070
|
"aria-label": (H = v(o).ariaLabels) == null ? void 0 : H.input,
|
|
6070
6071
|
role: "textbox",
|
|
6071
6072
|
"aria-multiline": "false",
|
|
@@ -6079,7 +6080,7 @@ const gd = (t, n, a, e) => {
|
|
|
6079
6080
|
value: t.inputValue,
|
|
6080
6081
|
onInput: b,
|
|
6081
6082
|
onEnter: C,
|
|
6082
|
-
onTab:
|
|
6083
|
+
onTab: I,
|
|
6083
6084
|
onClear: J
|
|
6084
6085
|
}) : T("", !0),
|
|
6085
6086
|
w.$slots["dp-input"] ? T("", !0) : (p(), k("input", {
|
|
@@ -6098,8 +6099,8 @@ const gd = (t, n, a, e) => {
|
|
|
6098
6099
|
autocomplete: w.autocomplete,
|
|
6099
6100
|
onInput: b,
|
|
6100
6101
|
onKeydown: [
|
|
6101
|
-
fe(
|
|
6102
|
-
fe(
|
|
6102
|
+
fe(L, ["enter"]),
|
|
6103
|
+
fe(I, ["tab"])
|
|
6103
6104
|
],
|
|
6104
6105
|
onBlur: Z,
|
|
6105
6106
|
onFocus: V,
|
|
@@ -6119,7 +6120,7 @@ const gd = (t, n, a, e) => {
|
|
|
6119
6120
|
key: 5,
|
|
6120
6121
|
class: "dp__clear_icon dp__input_icons",
|
|
6121
6122
|
"data-test": "clear-icon",
|
|
6122
|
-
onClick:
|
|
6123
|
+
onClick: qe(J, ["stop", "prevent"])
|
|
6123
6124
|
}, null, 8, ["onClick"])) : T("", !0)
|
|
6124
6125
|
])) : T("", !0)
|
|
6125
6126
|
], 8, bd);
|
|
@@ -6143,36 +6144,36 @@ const gd = (t, n, a, e) => {
|
|
|
6143
6144
|
dp__action: !0,
|
|
6144
6145
|
dp__select: !0,
|
|
6145
6146
|
dp__action_disabled: D.value
|
|
6146
|
-
})), u = W(() => !a.enableTimePicker || a.ignoreTimeValidation ? !0 : r(a.internalModelValue)), h = W(() => a.monthPicker ?
|
|
6147
|
-
const
|
|
6148
|
-
return a.timePicker || a.monthPicker,
|
|
6147
|
+
})), u = W(() => !a.enableTimePicker || a.ignoreTimeValidation ? !0 : r(a.internalModelValue)), h = W(() => a.monthPicker ? I(a.internalModelValue) : !0), P = () => {
|
|
6148
|
+
const L = l.value.previewFormat;
|
|
6149
|
+
return a.timePicker || a.monthPicker, L(Qe(a.internalModelValue));
|
|
6149
6150
|
}, b = () => {
|
|
6150
|
-
const
|
|
6151
|
-
return l.value.multiCalendars > 0 ? `${e(
|
|
6152
|
-
}, C = W(() => !a.internalModelValue || !a.menuMount ? "" : typeof l.value.previewFormat == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? b() : a.multiDates ? a.internalModelValue.map((
|
|
6151
|
+
const L = a.internalModelValue;
|
|
6152
|
+
return l.value.multiCalendars > 0 ? `${e(L[0])} - ${e(L[1])}` : [e(L[0]), e(L[1])];
|
|
6153
|
+
}, C = W(() => !a.internalModelValue || !a.menuMount ? "" : typeof l.value.previewFormat == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? b() : a.multiDates ? a.internalModelValue.map((L) => `${e(L)}`) : a.modelAuto ? `${e(a.internalModelValue[0])}` : `${e(a.internalModelValue[0])} -` : e(a.internalModelValue) : P()), I = (L) => {
|
|
6153
6154
|
if (!a.monthPicker)
|
|
6154
6155
|
return !0;
|
|
6155
6156
|
let Z = !0;
|
|
6156
|
-
return a.minDate && a.maxDate ? tt(
|
|
6157
|
+
return a.minDate && a.maxDate ? tt(Y(L), Y(a.minDate)) && Ke(Y(L), Y(a.maxDate)) : (a.minDate && (Z = tt(Y(L), Y(a.minDate))), a.maxDate && (Z = Ke(Y(L), Y(a.maxDate))), Z);
|
|
6157
6158
|
}, V = () => {
|
|
6158
6159
|
u.value && h.value && c.value ? n("select-date") : n("invalid-select");
|
|
6159
6160
|
};
|
|
6160
|
-
return (
|
|
6161
|
+
return (L, Z) => (p(), k("div", {
|
|
6161
6162
|
class: "dp__action_row",
|
|
6162
6163
|
style: bt(t.calendarWidth ? { width: `${t.calendarWidth}px` } : {})
|
|
6163
6164
|
}, [
|
|
6164
|
-
|
|
6165
|
+
L.$slots["action-row"] ? q(L.$slots, "action-row", st(Fe({ key: 0 }, {
|
|
6165
6166
|
internalModelValue: t.internalModelValue,
|
|
6166
6167
|
disabled: v(D),
|
|
6167
|
-
selectDate: () =>
|
|
6168
|
-
closePicker: () =>
|
|
6168
|
+
selectDate: () => L.$emit("select-date"),
|
|
6169
|
+
closePicker: () => L.$emit("close-picker")
|
|
6169
6170
|
}))) : (p(), k(we, { key: 1 }, [
|
|
6170
6171
|
S("div", $d, [
|
|
6171
|
-
|
|
6172
|
+
L.$slots["action-preview"] ? q(L.$slots, "action-preview", {
|
|
6172
6173
|
key: 0,
|
|
6173
6174
|
value: t.internalModelValue
|
|
6174
6175
|
}) : T("", !0),
|
|
6175
|
-
|
|
6176
|
+
L.$slots["action-preview"] ? T("", !0) : (p(), k(we, { key: 1 }, [
|
|
6176
6177
|
Array.isArray(v(C)) ? T("", !0) : (p(), k(we, { key: 0 }, [
|
|
6177
6178
|
at(pe(v(C)), 1)
|
|
6178
6179
|
], 64)),
|
|
@@ -6180,23 +6181,23 @@ const gd = (t, n, a, e) => {
|
|
|
6180
6181
|
], 64))
|
|
6181
6182
|
]),
|
|
6182
6183
|
S("div", xd, [
|
|
6183
|
-
|
|
6184
|
+
L.$slots["action-select"] ? q(L.$slots, "action-select", {
|
|
6184
6185
|
key: 0,
|
|
6185
6186
|
value: t.internalModelValue
|
|
6186
6187
|
}) : T("", !0),
|
|
6187
|
-
|
|
6188
|
-
|
|
6188
|
+
L.$slots["action-select"] ? T("", !0) : (p(), k(we, { key: 1 }, [
|
|
6189
|
+
L.inline ? T("", !0) : (p(), k("span", {
|
|
6189
6190
|
key: 0,
|
|
6190
6191
|
class: "dp__action dp__cancel",
|
|
6191
6192
|
ref_key: "cancelButtonRef",
|
|
6192
6193
|
ref: s,
|
|
6193
6194
|
tabindex: "0",
|
|
6194
|
-
onClick: Z[0] || (Z[0] = (J) =>
|
|
6195
|
+
onClick: Z[0] || (Z[0] = (J) => L.$emit("close-picker")),
|
|
6195
6196
|
onKeydown: [
|
|
6196
|
-
Z[1] || (Z[1] = fe((J) =>
|
|
6197
|
-
Z[2] || (Z[2] = fe((J) =>
|
|
6197
|
+
Z[1] || (Z[1] = fe((J) => L.$emit("close-picker"), ["enter"])),
|
|
6198
|
+
Z[2] || (Z[2] = fe((J) => L.$emit("close-picker"), ["space"]))
|
|
6198
6199
|
]
|
|
6199
|
-
}, pe(
|
|
6200
|
+
}, pe(L.cancelText), 545)),
|
|
6200
6201
|
S("span", {
|
|
6201
6202
|
class: he(v(f)),
|
|
6202
6203
|
tabindex: "0",
|
|
@@ -6208,7 +6209,7 @@ const gd = (t, n, a, e) => {
|
|
|
6208
6209
|
"data-test": "select-button",
|
|
6209
6210
|
ref_key: "selectButtonRef",
|
|
6210
6211
|
ref: d
|
|
6211
|
-
}, pe(
|
|
6212
|
+
}, pe(L.selectText), 43, Pd)
|
|
6212
6213
|
], 64))
|
|
6213
6214
|
])
|
|
6214
6215
|
], 64))
|
|
@@ -6256,12 +6257,12 @@ const gd = (t, n, a, e) => {
|
|
|
6256
6257
|
});
|
|
6257
6258
|
const b = (O) => O ? e.vertical ? "vNext" : "next" : e.vertical ? "vPrevious" : "previous", C = (O, N) => {
|
|
6258
6259
|
if (e.transitions) {
|
|
6259
|
-
const i = yt(l(
|
|
6260
|
-
u.value = tt(yt(l(
|
|
6260
|
+
const i = yt(l(Y(), e.month, e.year));
|
|
6261
|
+
u.value = tt(yt(l(Y(), O, N)), i) ? o.value.transitions[b(!0)] : o.value.transitions[b(!1)], f.value = !1, Ut(() => {
|
|
6261
6262
|
f.value = !0;
|
|
6262
6263
|
});
|
|
6263
6264
|
}
|
|
6264
|
-
},
|
|
6265
|
+
}, I = W(
|
|
6265
6266
|
() => ({
|
|
6266
6267
|
dp__calendar_wrap: !0,
|
|
6267
6268
|
[e.calendarClassName]: !!e.calendarClassName
|
|
@@ -6272,7 +6273,7 @@ const gd = (t, n, a, e) => {
|
|
|
6272
6273
|
dp__marker_dot: N.type === "dot",
|
|
6273
6274
|
dp__marker_line: N.type === "line"
|
|
6274
6275
|
};
|
|
6275
|
-
}),
|
|
6276
|
+
}), L = W(() => (O) => Re(O, s.value)), Z = W(() => ({
|
|
6276
6277
|
dp__calendar: !0,
|
|
6277
6278
|
dp__calendar_next: o.value.multiCalendars > 0 && e.instance !== 0
|
|
6278
6279
|
})), J = W(() => (O) => e.hideOffsetDates ? O.current : !0), ae = W(() => e.specificMode ? { height: `${e.modeHeight}px` } : void 0), w = (O, N, i) => {
|
|
@@ -6280,10 +6281,10 @@ const gd = (t, n, a, e) => {
|
|
|
6280
6281
|
if (a("set-hover-date", O), (x = (g = O.marker) == null ? void 0 : g.tooltip) != null && x.length) {
|
|
6281
6282
|
const M = He(c.value[N][i]);
|
|
6282
6283
|
if (M) {
|
|
6283
|
-
const { width:
|
|
6284
|
+
const { width: E, height: X } = M.getBoundingClientRect();
|
|
6284
6285
|
d.value = {
|
|
6285
6286
|
bottom: `${X}px`,
|
|
6286
|
-
left: `${
|
|
6287
|
+
left: `${E / 2}px`,
|
|
6287
6288
|
transform: "translateX(-50%)"
|
|
6288
6289
|
}, s.value = O.value, a("tooltip-open", O.value);
|
|
6289
6290
|
}
|
|
@@ -6316,7 +6317,7 @@ const gd = (t, n, a, e) => {
|
|
|
6316
6317
|
key: 0,
|
|
6317
6318
|
ref_key: "calendarWrapRef",
|
|
6318
6319
|
ref: D,
|
|
6319
|
-
class: he(v(
|
|
6320
|
+
class: he(v(I)),
|
|
6320
6321
|
role: "grid",
|
|
6321
6322
|
"aria-label": (i = v(o).ariaLabels) == null ? void 0 : i.calendarWrap
|
|
6322
6323
|
}, [
|
|
@@ -6360,7 +6361,7 @@ const gd = (t, n, a, e) => {
|
|
|
6360
6361
|
O.weekNumbers ? (p(), k("div", Yd, [
|
|
6361
6362
|
S("div", Ud, pe(t.getWeekNum(x.days)), 1)
|
|
6362
6363
|
])) : T("", !0),
|
|
6363
|
-
(p(!0), k(we, null, Ee(x.days, (
|
|
6364
|
+
(p(!0), k(we, null, Ee(x.days, (E, X) => {
|
|
6364
6365
|
var ne, _, y;
|
|
6365
6366
|
return p(), k("div", {
|
|
6366
6367
|
role: "gridcell",
|
|
@@ -6368,54 +6369,54 @@ const gd = (t, n, a, e) => {
|
|
|
6368
6369
|
ref_for: !0,
|
|
6369
6370
|
ref: (U) => re(U, M, X),
|
|
6370
6371
|
key: X + M,
|
|
6371
|
-
"aria-selected":
|
|
6372
|
-
"aria-disabled":
|
|
6373
|
-
"aria-label": (_ = (ne = v(o).ariaLabels) == null ? void 0 : ne.day) == null ? void 0 : _.call(ne,
|
|
6372
|
+
"aria-selected": E.classData.dp__active_date || E.classData.dp__range_start || E.classData.dp__range_start,
|
|
6373
|
+
"aria-disabled": E.classData.dp__cell_disabled,
|
|
6374
|
+
"aria-label": (_ = (ne = v(o).ariaLabels) == null ? void 0 : ne.day) == null ? void 0 : _.call(ne, E),
|
|
6374
6375
|
tabindex: "0",
|
|
6375
|
-
"data-test":
|
|
6376
|
-
onClick:
|
|
6376
|
+
"data-test": E.value,
|
|
6377
|
+
onClick: qe((U) => O.$emit("select-date", E), ["stop", "prevent"]),
|
|
6377
6378
|
onKeydown: [
|
|
6378
|
-
fe((U) => O.$emit("select-date",
|
|
6379
|
-
fe((U) => O.$emit("handle-space",
|
|
6379
|
+
fe((U) => O.$emit("select-date", E), ["enter"]),
|
|
6380
|
+
fe((U) => O.$emit("handle-space", E), ["space"])
|
|
6380
6381
|
],
|
|
6381
|
-
onMouseenter: (U) => w(
|
|
6382
|
-
onMouseleave: (U) => A(
|
|
6382
|
+
onMouseenter: (U) => w(E, M, X),
|
|
6383
|
+
onMouseleave: (U) => A(E)
|
|
6383
6384
|
}, [
|
|
6384
6385
|
S("div", {
|
|
6385
|
-
class: he(["dp__cell_inner",
|
|
6386
|
+
class: he(["dp__cell_inner", E.classData])
|
|
6386
6387
|
}, [
|
|
6387
|
-
O.$slots.day && v(J)(
|
|
6388
|
+
O.$slots.day && v(J)(E) ? q(O.$slots, "day", {
|
|
6388
6389
|
key: 0,
|
|
6389
|
-
day: +
|
|
6390
|
-
date:
|
|
6390
|
+
day: +E.text,
|
|
6391
|
+
date: E.value
|
|
6391
6392
|
}) : T("", !0),
|
|
6392
6393
|
O.$slots.day ? T("", !0) : (p(), k(we, { key: 1 }, [
|
|
6393
|
-
at(pe(
|
|
6394
|
+
at(pe(E.text), 1)
|
|
6394
6395
|
], 64)),
|
|
6395
|
-
|
|
6396
|
+
E.marker && v(J)(E) ? (p(), k("div", {
|
|
6396
6397
|
key: 2,
|
|
6397
|
-
class: he(v(V)(
|
|
6398
|
-
style: bt(
|
|
6398
|
+
class: he(v(V)(E.marker)),
|
|
6399
|
+
style: bt(E.marker.color ? { backgroundColor: E.marker.color } : {})
|
|
6399
6400
|
}, null, 6)) : T("", !0),
|
|
6400
|
-
v(
|
|
6401
|
+
v(L)(E.value) ? (p(), k("div", {
|
|
6401
6402
|
key: 3,
|
|
6402
6403
|
class: "dp__marker_tooltip",
|
|
6403
6404
|
style: bt(d.value)
|
|
6404
6405
|
}, [
|
|
6405
|
-
(y =
|
|
6406
|
+
(y = E.marker) != null && y.tooltip ? (p(), k("div", {
|
|
6406
6407
|
key: 0,
|
|
6407
6408
|
class: "dp__tooltip_content",
|
|
6408
|
-
onClick: N[0] || (N[0] =
|
|
6409
|
+
onClick: N[0] || (N[0] = qe(() => {
|
|
6409
6410
|
}, ["stop"]))
|
|
6410
6411
|
}, [
|
|
6411
|
-
(p(!0), k(we, null, Ee(
|
|
6412
|
+
(p(!0), k(we, null, Ee(E.marker.tooltip, (U, Pe) => (p(), k("div", {
|
|
6412
6413
|
key: Pe,
|
|
6413
6414
|
class: "dp__tooltip_text"
|
|
6414
6415
|
}, [
|
|
6415
6416
|
O.$slots["marker-tooltip"] ? q(O.$slots, "marker-tooltip", {
|
|
6416
6417
|
key: 0,
|
|
6417
6418
|
tooltip: U,
|
|
6418
|
-
day:
|
|
6419
|
+
day: E.value
|
|
6419
6420
|
}) : T("", !0),
|
|
6420
6421
|
O.$slots["marker-tooltip"] ? T("", !0) : (p(), k(we, { key: 1 }, [
|
|
6421
6422
|
S("div", {
|
|
@@ -6501,23 +6502,23 @@ const gd = (t, n, a, e) => {
|
|
|
6501
6502
|
kr(() => {
|
|
6502
6503
|
c.value = null;
|
|
6503
6504
|
}), ot(() => {
|
|
6504
|
-
Ut().then(() => H()),
|
|
6505
|
+
Ut().then(() => H()), I(), C(!0);
|
|
6505
6506
|
}), en(() => C(!1));
|
|
6506
6507
|
const C = (N) => {
|
|
6507
6508
|
var i;
|
|
6508
6509
|
e.arrowNavigation && ((i = e.headerRefs) != null && i.length ? o(N) : r(N));
|
|
6509
|
-
},
|
|
6510
|
+
}, I = () => {
|
|
6510
6511
|
const N = He(D);
|
|
6511
6512
|
N && (e.textInput || N.focus({ preventScroll: !0 }), d.value = N.clientHeight < N.scrollHeight);
|
|
6512
6513
|
}, V = W(
|
|
6513
6514
|
() => ({
|
|
6514
6515
|
dp__overlay: !0
|
|
6515
6516
|
})
|
|
6516
|
-
),
|
|
6517
|
+
), L = W(() => ({
|
|
6517
6518
|
dp__overlay_col: !0
|
|
6518
6519
|
})), Z = (N) => e.skipActive ? !1 : N.value === e.modelValue, J = W(() => e.items.map((N) => N.filter((i) => i).map((i) => {
|
|
6519
6520
|
var g, x, M;
|
|
6520
|
-
const
|
|
6521
|
+
const E = e.disabledValues.some((ne) => ne === i.value) || A(i.value), X = (g = e.multiModelValue) != null && g.length ? (x = e.multiModelValue) == null ? void 0 : x.some(
|
|
6521
6522
|
(ne) => Re(
|
|
6522
6523
|
ne,
|
|
6523
6524
|
Yt(
|
|
@@ -6531,8 +6532,8 @@ const gd = (t, n, a, e) => {
|
|
|
6531
6532
|
className: {
|
|
6532
6533
|
dp__overlay_cell_active: X,
|
|
6533
6534
|
dp__overlay_cell: !X,
|
|
6534
|
-
dp__overlay_cell_disabled:
|
|
6535
|
-
dp__overlay_cell_active_disabled:
|
|
6535
|
+
dp__overlay_cell_disabled: E,
|
|
6536
|
+
dp__overlay_cell_active_disabled: E && X,
|
|
6536
6537
|
dp__overlay_cell_pad: !0,
|
|
6537
6538
|
dp__cell_in_between: (M = e.multiModelValue) != null && M.length ? B(i.value) : !1
|
|
6538
6539
|
}
|
|
@@ -6580,7 +6581,7 @@ const gd = (t, n, a, e) => {
|
|
|
6580
6581
|
const g = (N = e.headerRefs) != null && N.length ? [e.headerRefs].concat(f.value) : f.value.concat([e.skipButtonRef ? [] : [h.value]]);
|
|
6581
6582
|
l(Qe(g), (i = e.headerRefs) != null && i.length ? "monthPicker" : "selectionGrid");
|
|
6582
6583
|
};
|
|
6583
|
-
return n({ focusGrid:
|
|
6584
|
+
return n({ focusGrid: I }), (N, i) => {
|
|
6584
6585
|
var g;
|
|
6585
6586
|
return p(), k("div", {
|
|
6586
6587
|
ref_key: "gridWrapRef",
|
|
@@ -6605,38 +6606,38 @@ const gd = (t, n, a, e) => {
|
|
|
6605
6606
|
key: M,
|
|
6606
6607
|
role: "row"
|
|
6607
6608
|
}, [
|
|
6608
|
-
(p(!0), k(we, null, Ee(x, (
|
|
6609
|
+
(p(!0), k(we, null, Ee(x, (E, X) => (p(), k("div", {
|
|
6609
6610
|
role: "gridcell",
|
|
6610
|
-
class: he(v(
|
|
6611
|
-
key:
|
|
6612
|
-
"aria-selected":
|
|
6613
|
-
"aria-disabled":
|
|
6611
|
+
class: he(v(L)),
|
|
6612
|
+
key: E.value,
|
|
6613
|
+
"aria-selected": E.value === t.modelValue && !t.disabledValues.includes(E.value),
|
|
6614
|
+
"aria-disabled": E.className.dp__overlay_cell_disabled,
|
|
6614
6615
|
ref_for: !0,
|
|
6615
|
-
ref: (ne) => de(ne,
|
|
6616
|
+
ref: (ne) => de(ne, E, M, X),
|
|
6616
6617
|
tabindex: "0",
|
|
6617
|
-
"data-test":
|
|
6618
|
-
onClick: (ne) => j(
|
|
6618
|
+
"data-test": E.text,
|
|
6619
|
+
onClick: (ne) => j(E.value),
|
|
6619
6620
|
onKeydown: [
|
|
6620
|
-
fe((ne) => j(
|
|
6621
|
-
fe((ne) => j(
|
|
6621
|
+
fe((ne) => j(E.value), ["enter"]),
|
|
6622
|
+
fe((ne) => j(E.value), ["space"])
|
|
6622
6623
|
],
|
|
6623
|
-
onMouseover: (ne) => u.value =
|
|
6624
|
+
onMouseover: (ne) => u.value = E.value
|
|
6624
6625
|
}, [
|
|
6625
6626
|
S("div", {
|
|
6626
|
-
class: he(
|
|
6627
|
+
class: he(E.className)
|
|
6627
6628
|
}, [
|
|
6628
6629
|
N.$slots.item ? q(N.$slots, "item", {
|
|
6629
6630
|
key: 0,
|
|
6630
|
-
item:
|
|
6631
|
+
item: E
|
|
6631
6632
|
}) : T("", !0),
|
|
6632
6633
|
N.$slots.item ? T("", !0) : (p(), k(we, { key: 1 }, [
|
|
6633
|
-
at(pe(
|
|
6634
|
+
at(pe(E.text), 1)
|
|
6634
6635
|
], 64))
|
|
6635
6636
|
], 2)
|
|
6636
6637
|
], 42, Fd))), 128))
|
|
6637
6638
|
]))), 128))
|
|
6638
6639
|
], 6),
|
|
6639
|
-
N.$slots["button-icon"] ?
|
|
6640
|
+
N.$slots["button-icon"] ? ze((p(), k("div", {
|
|
6640
6641
|
key: 0,
|
|
6641
6642
|
role: "button",
|
|
6642
6643
|
"aria-label": (g = t.ariaLabels) == null ? void 0 : g.toggleOverlay,
|
|
@@ -6768,16 +6769,16 @@ const gd = (t, n, a, e) => {
|
|
|
6768
6769
|
ot(() => {
|
|
6769
6770
|
a("mount");
|
|
6770
6771
|
});
|
|
6771
|
-
const
|
|
6772
|
+
const I = (y) => ({
|
|
6772
6773
|
get: () => e[y],
|
|
6773
6774
|
set: (U) => {
|
|
6774
6775
|
const Pe = y === "month" ? "year" : "month";
|
|
6775
|
-
a("update-month-year", { [y]: U, [Pe]: e[Pe] }), a("month-year-select", y === "year"), y === "month" ? M(!0) :
|
|
6776
|
+
a("update-month-year", { [y]: U, [Pe]: e[Pe] }), a("month-year-select", y === "year"), y === "month" ? M(!0) : E(!0);
|
|
6776
6777
|
}
|
|
6777
|
-
}), V = W(
|
|
6778
|
-
const U = Ie(
|
|
6778
|
+
}), V = W(I("month")), L = W(I("year")), Z = (y) => {
|
|
6779
|
+
const U = Ie(Y(y));
|
|
6779
6780
|
return e.year === U;
|
|
6780
|
-
}, J = W(() => e.monthPicker ? Array.isArray(e.disabledDates) ? e.disabledDates.map((y) =>
|
|
6781
|
+
}, J = W(() => e.monthPicker ? Array.isArray(e.disabledDates) ? e.disabledDates.map((y) => Y(y)).filter((y) => Z(y)).map((y) => Se(y)) : [] : []), ae = W(() => (y) => {
|
|
6781
6782
|
const U = y === "month";
|
|
6782
6783
|
return {
|
|
6783
6784
|
showSelectionGrid: (U ? f : u).value,
|
|
@@ -6800,16 +6801,16 @@ const gd = (t, n, a, e) => {
|
|
|
6800
6801
|
items: y === "month" ? e.months : e.years,
|
|
6801
6802
|
instance: e.instance,
|
|
6802
6803
|
updateMonthYear: D,
|
|
6803
|
-
toggle: y === "month" ? M :
|
|
6804
|
-
})), A = W(() => e.minDate ? Ie(
|
|
6804
|
+
toggle: y === "month" ? M : E
|
|
6805
|
+
})), A = W(() => e.minDate ? Ie(Y(e.minDate)) : null), H = W(() => e.maxDate ? Ie(Y(e.maxDate)) : null), j = W(() => {
|
|
6805
6806
|
if (e.minDate && A.value) {
|
|
6806
6807
|
if (A.value > e.year)
|
|
6807
6808
|
return 12;
|
|
6808
6809
|
if (A.value === e.year)
|
|
6809
|
-
return Se(
|
|
6810
|
+
return Se(Y(e.minDate));
|
|
6810
6811
|
}
|
|
6811
6812
|
return null;
|
|
6812
|
-
}), B = W(() => e.maxDate && H.value ? H.value < e.year ? -1 : H.value === e.year ? Se(
|
|
6813
|
+
}), B = W(() => e.maxDate && H.value ? H.value < e.year ? -1 : H.value === e.year ? Se(Y(e.maxDate)) : null : null), Q = W(() => e.range && e.internalModelValue && (e.monthPicker || e.yearPicker) ? e.internalModelValue : []), re = (y) => y.reverse(), de = (y, U = !1) => {
|
|
6813
6814
|
const Pe = [], Me = (ce) => U ? re(ce) : ce;
|
|
6814
6815
|
for (let ce = 0; ce < y.length; ce += 3) {
|
|
6815
6816
|
const Ye = [y[ce], y[ce + 1], y[ce + 2]];
|
|
@@ -6818,7 +6819,7 @@ const gd = (t, n, a, e) => {
|
|
|
6818
6819
|
return U ? Pe.reverse() : Pe;
|
|
6819
6820
|
}, O = W(() => e.months.find((U) => U.value === e.month) || { text: "", value: 0 }), N = W(() => de(e.months)), i = W(() => de(e.years, e.reverseYears)), g = W(() => r.value.multiCalendars ? e.multiCalendarsSolo ? !0 : e.instance === 0 : !0), x = W(() => r.value.multiCalendars ? e.multiCalendarsSolo ? !0 : e.instance === r.value.multiCalendars - 1 : !0), M = (y = !1) => {
|
|
6820
6821
|
X(y), f.value = !f.value, f.value || a("overlay-closed");
|
|
6821
|
-
},
|
|
6822
|
+
}, E = (y = !1) => {
|
|
6822
6823
|
X(y), u.value = !u.value, u.value || a("overlay-closed");
|
|
6823
6824
|
}, X = (y) => {
|
|
6824
6825
|
y || a("reset-flow");
|
|
@@ -6833,7 +6834,7 @@ const gd = (t, n, a, e) => {
|
|
|
6833
6834
|
};
|
|
6834
6835
|
return n({
|
|
6835
6836
|
toggleMonthPicker: M,
|
|
6836
|
-
toggleYearPicker:
|
|
6837
|
+
toggleYearPicker: E
|
|
6837
6838
|
}), (y, U) => {
|
|
6838
6839
|
var Pe, Me, ce, Ye, it;
|
|
6839
6840
|
return p(), k("div", Gd, [
|
|
@@ -6909,10 +6910,10 @@ const gd = (t, n, a, e) => {
|
|
|
6909
6910
|
"slot-name": "year-overlay-val",
|
|
6910
6911
|
"overlay-slot": "overlay-year",
|
|
6911
6912
|
"aria-label": (ce = v(r).ariaLabels) == null ? void 0 : ce.openYearsOverlay,
|
|
6912
|
-
modelValue: v(
|
|
6913
|
-
"onUpdate:modelValue": U[4] || (U[4] = (ve) => St(
|
|
6913
|
+
modelValue: v(L),
|
|
6914
|
+
"onUpdate:modelValue": U[4] || (U[4] = (ve) => St(L) ? L.value = ve : null)
|
|
6914
6915
|
}, v(ae)("year"), {
|
|
6915
|
-
onToggle:
|
|
6916
|
+
onToggle: E,
|
|
6916
6917
|
onSetRef: U[5] || (U[5] = (ve) => _(ve, 2))
|
|
6917
6918
|
}), rt({
|
|
6918
6919
|
default: ie(() => [
|
|
@@ -6953,7 +6954,7 @@ const gd = (t, n, a, e) => {
|
|
|
6953
6954
|
y.$slots["year-overlay-header"] ? {
|
|
6954
6955
|
name: "overlay-year-header",
|
|
6955
6956
|
fn: ie(() => [
|
|
6956
|
-
q(y.$slots, "year-overlay-header", { toggle:
|
|
6957
|
+
q(y.$slots, "year-overlay-header", { toggle: E })
|
|
6957
6958
|
]),
|
|
6958
6959
|
key: "3"
|
|
6959
6960
|
} : void 0
|
|
@@ -7024,8 +7025,8 @@ const gd = (t, n, a, e) => {
|
|
|
7024
7025
|
ref: b,
|
|
7025
7026
|
"aria-label": (me = v(r).ariaLabels) == null ? void 0 : me.openYearsOverlay,
|
|
7026
7027
|
tabindex: "0",
|
|
7027
|
-
onClick: U[11] || (U[11] = () =>
|
|
7028
|
-
onKeydown: U[12] || (U[12] = fe(() =>
|
|
7028
|
+
onClick: U[11] || (U[11] = () => E(!1)),
|
|
7029
|
+
onKeydown: U[12] || (U[12] = fe(() => E(!1), ["enter"]))
|
|
7029
7030
|
}, [
|
|
7030
7031
|
y.$slots.year ? q(y.$slots, "year", {
|
|
7031
7032
|
key: 0,
|
|
@@ -7059,9 +7060,9 @@ const gd = (t, n, a, e) => {
|
|
|
7059
7060
|
}, {
|
|
7060
7061
|
default: ie(() => [
|
|
7061
7062
|
u.value ? (p(), ye(ra, Fe({ key: 0 }, v(ae)("year"), {
|
|
7062
|
-
modelValue: v(
|
|
7063
|
-
"onUpdate:modelValue": U[15] || (U[15] = (ge) => St(
|
|
7064
|
-
onToggle:
|
|
7063
|
+
modelValue: v(L),
|
|
7064
|
+
"onUpdate:modelValue": U[15] || (U[15] = (ge) => St(L) ? L.value = ge : null),
|
|
7065
|
+
onToggle: E,
|
|
7065
7066
|
onSelected: U[16] || (U[16] = (ge) => y.$emit("overlay-closed"))
|
|
7066
7067
|
}), rt({
|
|
7067
7068
|
"button-icon": ie(() => [
|
|
@@ -7100,13 +7101,13 @@ const gd = (t, n, a, e) => {
|
|
|
7100
7101
|
} : void 0
|
|
7101
7102
|
]), 1040, ["skip-active", "year", "multi-model-value", "modelValue"])) : T("", !0),
|
|
7102
7103
|
y.yearPicker ? (p(), ye(ra, Fe({ key: 2 }, v(ae)("year"), {
|
|
7103
|
-
modelValue: v(
|
|
7104
|
-
"onUpdate:modelValue": U[19] || (U[19] = (ve) => St(
|
|
7104
|
+
modelValue: v(L),
|
|
7105
|
+
"onUpdate:modelValue": U[19] || (U[19] = (ve) => St(L) ? L.value = ve : null),
|
|
7105
7106
|
"multi-model-value": v(Q),
|
|
7106
7107
|
"skip-active": y.range,
|
|
7107
7108
|
"skip-button-ref": "",
|
|
7108
7109
|
"year-picker": "",
|
|
7109
|
-
onToggle:
|
|
7110
|
+
onToggle: E,
|
|
7110
7111
|
onSelected: U[20] || (U[20] = (ve) => y.$emit("overlay-closed"))
|
|
7111
7112
|
}), rt({ _: 2 }, [
|
|
7112
7113
|
y.$slots["year-overlay-value"] ? {
|
|
@@ -7156,7 +7157,7 @@ const gd = (t, n, a, e) => {
|
|
|
7156
7157
|
ot(() => {
|
|
7157
7158
|
a("mounted");
|
|
7158
7159
|
});
|
|
7159
|
-
const h = W(() => (i) => !!(e.maxTime && e.maxTime[i] && e.maxTime[i] < e[i] + +e[`${i}Increment`])), P = W(() => (i) => !!(e.minTime && e.minTime[i] && e.minTime[i] > e[i] - +e[`${i}Increment`])), b = (i, g) => Fn(Je(
|
|
7160
|
+
const h = W(() => (i) => !!(e.maxTime && e.maxTime[i] && e.maxTime[i] < e[i] + +e[`${i}Increment`])), P = W(() => (i) => !!(e.minTime && e.minTime[i] && e.minTime[i] > e[i] - +e[`${i}Increment`])), b = (i, g) => Fn(Je(Y(), i), g), C = (i, g) => Bs(Je(Y(), i), g), I = W(
|
|
7160
7161
|
() => ({
|
|
7161
7162
|
dp__time_col: !0,
|
|
7162
7163
|
dp__time_col_reg: !e.enableSeconds && e.is24,
|
|
@@ -7167,15 +7168,15 @@ const gd = (t, n, a, e) => {
|
|
|
7167
7168
|
), V = W(() => {
|
|
7168
7169
|
const i = [{ type: "hours" }, { type: "", separator: !0 }, { type: "minutes" }];
|
|
7169
7170
|
return e.enableSeconds ? i.concat([{ type: "", separator: !0 }, { type: "seconds" }]) : i;
|
|
7170
|
-
}),
|
|
7171
|
+
}), L = W(() => V.value.filter((i) => !i.separator)), Z = W(() => (i) => {
|
|
7171
7172
|
if (i === "hours") {
|
|
7172
7173
|
const g = Q(e.hours);
|
|
7173
7174
|
return { text: g < 10 ? `0${g}` : `${g}`, value: g };
|
|
7174
7175
|
}
|
|
7175
7176
|
return { text: e[i] < 10 ? `0${e[i]}` : `${e[i]}`, value: e[i] };
|
|
7176
7177
|
}), J = (i) => {
|
|
7177
|
-
const g = e.is24 ? 24 : 12, x = i === "hours" ? g : 60, M = +e[`${i}GridIncrement`],
|
|
7178
|
-
for (let ne =
|
|
7178
|
+
const g = e.is24 ? 24 : 12, x = i === "hours" ? g : 60, M = +e[`${i}GridIncrement`], E = i === "hours" && !e.is24 ? M : 0, X = [];
|
|
7179
|
+
for (let ne = E; ne < x; ne += M)
|
|
7179
7180
|
X.push({ value: ne, text: ne < 10 ? `0${ne}` : `${ne}` });
|
|
7180
7181
|
return i === "hours" && !e.is24 && X.push({ value: 0, text: "12" }), nd(X);
|
|
7181
7182
|
}, ae = (i, g) => {
|
|
@@ -7197,7 +7198,7 @@ const gd = (t, n, a, e) => {
|
|
|
7197
7198
|
if (i && e.arrowNavigation) {
|
|
7198
7199
|
Array.isArray(u.value[g]) ? u.value[g][x] = i : u.value[g] = [i];
|
|
7199
7200
|
const M = u.value.reduce(
|
|
7200
|
-
(
|
|
7201
|
+
(E, X) => X.map((ne, _) => [...E[_] || [], X[_]]),
|
|
7201
7202
|
[]
|
|
7202
7203
|
);
|
|
7203
7204
|
l(e.closeTimePickerBtn), f.value && (M[1] = M[1].concat(f.value)), r(M, e.order);
|
|
@@ -7206,11 +7207,11 @@ const gd = (t, n, a, e) => {
|
|
|
7206
7207
|
return n({ openChildCmp: de }), (i, g) => {
|
|
7207
7208
|
var x;
|
|
7208
7209
|
return i.disabled ? T("", !0) : (p(), k("div", ec, [
|
|
7209
|
-
(p(!0), k(we, null, Ee(v(V), (M,
|
|
7210
|
+
(p(!0), k(we, null, Ee(v(V), (M, E) => {
|
|
7210
7211
|
var X, ne, _;
|
|
7211
7212
|
return p(), k("div", {
|
|
7212
|
-
key:
|
|
7213
|
-
class: he(v(
|
|
7213
|
+
key: E,
|
|
7214
|
+
class: he(v(I))
|
|
7214
7215
|
}, [
|
|
7215
7216
|
M.separator ? (p(), k(we, { key: 0 }, [
|
|
7216
7217
|
at(" : ")
|
|
@@ -7230,7 +7231,7 @@ const gd = (t, n, a, e) => {
|
|
|
7230
7231
|
],
|
|
7231
7232
|
onClick: (y) => B(M.type),
|
|
7232
7233
|
ref_for: !0,
|
|
7233
|
-
ref: (y) => O(y,
|
|
7234
|
+
ref: (y) => O(y, E, 0)
|
|
7234
7235
|
}, [
|
|
7235
7236
|
i.$slots["arrow-up"] ? q(i.$slots, "arrow-up", { key: 0 }) : T("", !0),
|
|
7236
7237
|
i.$slots["arrow-up"] ? T("", !0) : (p(), ye(v(mr), { key: 1 }))
|
|
@@ -7247,7 +7248,7 @@ const gd = (t, n, a, e) => {
|
|
|
7247
7248
|
],
|
|
7248
7249
|
onClick: (y) => H(M.type),
|
|
7249
7250
|
ref_for: !0,
|
|
7250
|
-
ref: (y) => O(y,
|
|
7251
|
+
ref: (y) => O(y, E, 1)
|
|
7251
7252
|
}, [
|
|
7252
7253
|
i.$slots[M.type] ? q(i.$slots, M.type, {
|
|
7253
7254
|
key: 0,
|
|
@@ -7273,7 +7274,7 @@ const gd = (t, n, a, e) => {
|
|
|
7273
7274
|
],
|
|
7274
7275
|
onClick: (y) => B(M.type, !1),
|
|
7275
7276
|
ref_for: !0,
|
|
7276
|
-
ref: (y) => O(y,
|
|
7277
|
+
ref: (y) => O(y, E, 2)
|
|
7277
7278
|
}, [
|
|
7278
7279
|
i.$slots["arrow-down"] ? q(i.$slots, "arrow-down", { key: 0 }) : T("", !0),
|
|
7279
7280
|
i.$slots["arrow-down"] ? T("", !0) : (p(), ye(v(fr), { key: 1 }))
|
|
@@ -7298,13 +7299,13 @@ const gd = (t, n, a, e) => {
|
|
|
7298
7299
|
tabindex: "0",
|
|
7299
7300
|
onClick: re,
|
|
7300
7301
|
onKeydown: [
|
|
7301
|
-
fe(
|
|
7302
|
-
fe(
|
|
7302
|
+
fe(qe(re, ["prevent"]), ["enter"]),
|
|
7303
|
+
fe(qe(re, ["prevent"]), ["space"])
|
|
7303
7304
|
]
|
|
7304
7305
|
}, pe(D.value), 41, lc))
|
|
7305
7306
|
])),
|
|
7306
|
-
(p(!0), k(we, null, Ee(v(
|
|
7307
|
-
key:
|
|
7307
|
+
(p(!0), k(we, null, Ee(v(L), (M, E) => (p(), ye(lt, {
|
|
7308
|
+
key: E,
|
|
7308
7309
|
name: v(s)(c[M.type]),
|
|
7309
7310
|
css: v(d)
|
|
7310
7311
|
}, {
|
|
@@ -7370,7 +7371,7 @@ const gd = (t, n, a, e) => {
|
|
|
7370
7371
|
ot(() => {
|
|
7371
7372
|
a("mount"), !e.timePicker && e.arrowNavigation ? r([He(f.value)], "time") : l(!0, e.timePicker);
|
|
7372
7373
|
});
|
|
7373
|
-
const b = W(() => e.range && e.modelAuto ? wr(e.internalModelValue) : !0), C = F(!1),
|
|
7374
|
+
const b = W(() => e.range && e.modelAuto ? wr(e.internalModelValue) : !0), C = F(!1), I = (B) => ({
|
|
7374
7375
|
hours: Array.isArray(e.hours) ? e.hours[B] : e.hours,
|
|
7375
7376
|
minutes: Array.isArray(e.minutes) ? e.minutes[B] : e.minutes,
|
|
7376
7377
|
seconds: Array.isArray(e.seconds) ? e.seconds[B] : e.seconds
|
|
@@ -7378,11 +7379,11 @@ const gd = (t, n, a, e) => {
|
|
|
7378
7379
|
const B = [];
|
|
7379
7380
|
if (e.range)
|
|
7380
7381
|
for (let Q = 0; Q < 2; Q++)
|
|
7381
|
-
B.push(
|
|
7382
|
+
B.push(I(Q));
|
|
7382
7383
|
else
|
|
7383
|
-
B.push(
|
|
7384
|
+
B.push(I(0));
|
|
7384
7385
|
return B;
|
|
7385
|
-
}),
|
|
7386
|
+
}), L = (B, Q = !1, re = "") => {
|
|
7386
7387
|
Q || a("reset-flow"), C.value = B, e.arrowNavigation && (l(B), B || a("overlay-closed")), Ut(() => {
|
|
7387
7388
|
re !== "" && h.value[0] && h.value[0].openChildCmp(re);
|
|
7388
7389
|
});
|
|
@@ -7398,10 +7399,10 @@ const gd = (t, n, a, e) => {
|
|
|
7398
7399
|
}, j = () => {
|
|
7399
7400
|
P.value && e.arrowNavigation && P.value.focus({ preventScroll: !0 });
|
|
7400
7401
|
};
|
|
7401
|
-
return n({ toggleTimePicker:
|
|
7402
|
+
return n({ toggleTimePicker: L }), (B, Q) => {
|
|
7402
7403
|
var re;
|
|
7403
7404
|
return p(), k("div", null, [
|
|
7404
|
-
B.timePicker ? T("", !0) :
|
|
7405
|
+
B.timePicker ? T("", !0) : ze((p(), k("div", {
|
|
7405
7406
|
key: 0,
|
|
7406
7407
|
class: he(v(Z)),
|
|
7407
7408
|
role: "button",
|
|
@@ -7411,10 +7412,10 @@ const gd = (t, n, a, e) => {
|
|
|
7411
7412
|
ref_key: "openTimePickerBtn",
|
|
7412
7413
|
ref: f,
|
|
7413
7414
|
onKeydown: [
|
|
7414
|
-
Q[0] || (Q[0] = fe((de) =>
|
|
7415
|
-
Q[1] || (Q[1] = fe((de) =>
|
|
7415
|
+
Q[0] || (Q[0] = fe((de) => L(!0), ["enter"])),
|
|
7416
|
+
Q[1] || (Q[1] = fe((de) => L(!0), ["space"]))
|
|
7416
7417
|
],
|
|
7417
|
-
onClick: Q[2] || (Q[2] = (de) =>
|
|
7418
|
+
onClick: Q[2] || (Q[2] = (de) => L(!0))
|
|
7418
7419
|
}, [
|
|
7419
7420
|
B.$slots["clock-icon"] ? q(B.$slots, "clock-icon", { key: 0 }) : T("", !0),
|
|
7420
7421
|
B.$slots["clock-icon"] ? T("", !0) : (p(), ye(v(vr), { key: 1 }))
|
|
@@ -7446,7 +7447,7 @@ const gd = (t, n, a, e) => {
|
|
|
7446
7447
|
setSeconds: H
|
|
7447
7448
|
}) : T("", !0),
|
|
7448
7449
|
B.$slots["time-picker-overlay"] ? T("", !0) : (p(), k("div", uc, [
|
|
7449
|
-
(p(!0), k(we, null, Ee(v(V), (O, N) =>
|
|
7450
|
+
(p(!0), k(we, null, Ee(v(V), (O, N) => ze((p(), ye(oc, Fe({ key: N }, {
|
|
7450
7451
|
...B.$props,
|
|
7451
7452
|
order: N,
|
|
7452
7453
|
hours: O.hours,
|
|
@@ -7474,7 +7475,7 @@ const gd = (t, n, a, e) => {
|
|
|
7474
7475
|
[Tt, N === 0 ? !0 : v(b)]
|
|
7475
7476
|
])), 128))
|
|
7476
7477
|
])),
|
|
7477
|
-
B.timePicker ? T("", !0) :
|
|
7478
|
+
B.timePicker ? T("", !0) : ze((p(), k("div", {
|
|
7478
7479
|
key: 2,
|
|
7479
7480
|
ref_key: "closeTimePickerBtn",
|
|
7480
7481
|
ref: u,
|
|
@@ -7483,10 +7484,10 @@ const gd = (t, n, a, e) => {
|
|
|
7483
7484
|
"aria-label": (de = v(d).ariaLabels) == null ? void 0 : de.closeTimePicker,
|
|
7484
7485
|
tabindex: "0",
|
|
7485
7486
|
onKeydown: [
|
|
7486
|
-
Q[3] || (Q[3] = fe((O) =>
|
|
7487
|
-
Q[4] || (Q[4] = fe((O) =>
|
|
7487
|
+
Q[3] || (Q[3] = fe((O) => L(!1), ["enter"])),
|
|
7488
|
+
Q[4] || (Q[4] = fe((O) => L(!1), ["space"]))
|
|
7488
7489
|
],
|
|
7489
|
-
onClick: Q[5] || (Q[5] = (O) =>
|
|
7490
|
+
onClick: Q[5] || (Q[5] = (O) => L(!1))
|
|
7490
7491
|
}, [
|
|
7491
7492
|
B.$slots["calendar-icon"] ? q(B.$slots, "calendar-icon", { key: 0 }) : T("", !0),
|
|
7492
7493
|
B.$slots["calendar-icon"] ? T("", !0) : (p(), ye(v($a), { key: 1 }))
|
|
@@ -7503,23 +7504,23 @@ const gd = (t, n, a, e) => {
|
|
|
7503
7504
|
};
|
|
7504
7505
|
}
|
|
7505
7506
|
}), vc = (t, n) => {
|
|
7506
|
-
const { isDisabled: a, matchDate: e, getWeekFromDate: r } = ut(n), l = F(null), o = F(
|
|
7507
|
+
const { isDisabled: a, matchDate: e, getWeekFromDate: r } = ut(n), l = F(null), o = F(Y()), s = (i) => {
|
|
7507
7508
|
!i.current && n.hideOffsetDates || (l.value = i.value);
|
|
7508
7509
|
}, d = () => {
|
|
7509
7510
|
l.value = null;
|
|
7510
7511
|
}, c = (i) => Array.isArray(t.value) && n.range && t.value[0] && l.value ? i ? tt(l.value, t.value[0]) : Ke(l.value, t.value[0]) : !0, D = (i, g) => {
|
|
7511
7512
|
const x = () => t.value ? g ? t.value[0] || null : t.value[1] : null, M = t.value && Array.isArray(t.value) ? x() : null;
|
|
7512
|
-
return Re(
|
|
7513
|
+
return Re(Y(i.value), M);
|
|
7513
7514
|
}, f = (i) => {
|
|
7514
7515
|
const g = Array.isArray(t.value) ? t.value[0] : null;
|
|
7515
7516
|
return i ? !Ke(l.value || null, g) : !0;
|
|
7516
|
-
}, u = (i, g = !0) => (n.range || n.weekPicker) && Array.isArray(t.value) ? n.hideOffsetDates && !i.current ? !1 : Re(
|
|
7517
|
+
}, u = (i, g = !0) => (n.range || n.weekPicker) && Array.isArray(t.value) ? n.hideOffsetDates && !i.current ? !1 : Re(Y(i.value), t.value[g ? 0 : 1]) : n.range ? D(i, g) && f(g) || Re(i.value, Array.isArray(t.value) ? t.value[0] : null) && c(g) : !1, h = (i, g, x) => Array.isArray(t.value) && t.value[0] && t.value.length === 1 ? i ? !1 : x ? tt(t.value[0], g.value) : Ke(t.value[0], g.value) : !1, P = (i) => !t.value || n.hideOffsetDates && !i.current ? !1 : n.range ? n.modelAuto && Array.isArray(t.value) ? Re(i.value, t.value[0] ? t.value[0] : o.value) : !1 : n.multiDates && Array.isArray(t.value) ? t.value.some((g) => Re(g, i.value)) : Re(i.value, t.value ? t.value : o.value), b = (i) => {
|
|
7517
7518
|
if (n.autoRange || n.weekPicker) {
|
|
7518
7519
|
if (l.value) {
|
|
7519
7520
|
if (n.hideOffsetDates && !i.current)
|
|
7520
7521
|
return !1;
|
|
7521
|
-
const g = Mt(l.value, +n.autoRange), x = r(
|
|
7522
|
-
return n.weekPicker ? Re(x[1],
|
|
7522
|
+
const g = Mt(l.value, +n.autoRange), x = r(Y(l.value));
|
|
7523
|
+
return n.weekPicker ? Re(x[1], Y(i.value)) : Re(g, Y(i.value));
|
|
7523
7524
|
}
|
|
7524
7525
|
return !1;
|
|
7525
7526
|
}
|
|
@@ -7530,29 +7531,29 @@ const gd = (t, n, a, e) => {
|
|
|
7530
7531
|
const g = Mt(l.value, +n.autoRange);
|
|
7531
7532
|
if (n.hideOffsetDates && !i.current)
|
|
7532
7533
|
return !1;
|
|
7533
|
-
const x = r(
|
|
7534
|
+
const x = r(Y(l.value));
|
|
7534
7535
|
return n.weekPicker ? tt(i.value, x[0]) && Ke(i.value, x[1]) : tt(i.value, l.value) && Ke(i.value, g);
|
|
7535
7536
|
}
|
|
7536
7537
|
return !1;
|
|
7537
7538
|
}
|
|
7538
7539
|
return !1;
|
|
7539
|
-
},
|
|
7540
|
+
}, I = (i) => {
|
|
7540
7541
|
if (n.autoRange || n.weekPicker) {
|
|
7541
7542
|
if (l.value) {
|
|
7542
7543
|
if (n.hideOffsetDates && !i.current)
|
|
7543
7544
|
return !1;
|
|
7544
|
-
const g = r(
|
|
7545
|
+
const g = r(Y(l.value));
|
|
7545
7546
|
return n.weekPicker ? Re(g[0], i.value) : Re(l.value, i.value);
|
|
7546
7547
|
}
|
|
7547
7548
|
return !1;
|
|
7548
7549
|
}
|
|
7549
7550
|
return !1;
|
|
7550
|
-
}, V = (i) => pr(t.value, l.value, i.value),
|
|
7551
|
+
}, V = (i) => pr(t.value, l.value, i.value), L = () => n.modelAuto && Array.isArray(n.internalModelValue) ? !!n.internalModelValue[0] : !1, Z = () => n.modelAuto ? wr(n.internalModelValue) : !0, J = (i) => {
|
|
7551
7552
|
if (Array.isArray(t.value) && t.value.length || n.weekPicker)
|
|
7552
7553
|
return !1;
|
|
7553
7554
|
const g = n.range ? !u(i) && !u(i, !1) : !0;
|
|
7554
7555
|
return !a(i.value) && !P(i) && !(!i.current && n.hideOffsetDates) && g;
|
|
7555
|
-
}, ae = (i) => n.range ? n.modelAuto ?
|
|
7556
|
+
}, ae = (i) => n.range ? n.modelAuto ? L() && P(i) : !1 : P(i), w = (i) => n.highlight ? e(i.value, n.highlight) : !1, A = (i) => a(i.value) && n.highlightDisabledDays === !1, H = (i) => n.highlightWeekDays && n.highlightWeekDays.includes(i.value.getDay()), j = (i) => (n.range || n.weekPicker) && (!(n.multiCalendars > 0) || i.current) && Z() && !(!i.current && n.hideOffsetDates) && !P(i) ? V(i) : !1, B = (i) => ({
|
|
7556
7557
|
dp__cell_offset: !i.current,
|
|
7557
7558
|
dp__pointer: !n.disabled && !(!i.current && n.hideOffsetDates) && !a(i.value),
|
|
7558
7559
|
dp__cell_disabled: a(i.value),
|
|
@@ -7575,7 +7576,7 @@ const gd = (t, n, a, e) => {
|
|
|
7575
7576
|
}), O = (i) => ({
|
|
7576
7577
|
...de(i),
|
|
7577
7578
|
dp__cell_auto_range: C(i),
|
|
7578
|
-
dp__cell_auto_range_start:
|
|
7579
|
+
dp__cell_auto_range_start: I(i),
|
|
7579
7580
|
dp__cell_auto_range_end: b(i)
|
|
7580
7581
|
}), N = (i) => n.range ? n.autoRange ? O(i) : n.modelAuto ? { ...Q(i), ...de(i) } : de(i) : n.weekPicker ? re(i) : Q(i);
|
|
7581
7582
|
return {
|
|
@@ -7626,10 +7627,10 @@ const gd = (t, n, a, e) => {
|
|
|
7626
7627
|
timePicker: !!(!e.enableTimePicker || e.timePicker || e.monthPicker),
|
|
7627
7628
|
monthYearInput: !!e.timePicker,
|
|
7628
7629
|
calendar: !1
|
|
7629
|
-
}), u = F([]), h = F([]), P = F(null), b = F(null), C = F(0),
|
|
7630
|
+
}), u = F([]), h = F([]), P = F(null), b = F(null), C = F(0), I = F(!1), V = F(0);
|
|
7630
7631
|
ot(() => {
|
|
7631
7632
|
var $;
|
|
7632
|
-
|
|
7633
|
+
I.value = !0, !(($ = e.presetRanges) != null && $.length) && !c["left-sidebar"] && !c["right-sidebar"] && gt();
|
|
7633
7634
|
const K = He(b);
|
|
7634
7635
|
if (K && !e.textInput && !e.inline && (r(!0), A()), K) {
|
|
7635
7636
|
const je = (nt) => {
|
|
@@ -7641,7 +7642,7 @@ const gd = (t, n, a, e) => {
|
|
|
7641
7642
|
}), en(() => {
|
|
7642
7643
|
window.removeEventListener("resize", gt);
|
|
7643
7644
|
});
|
|
7644
|
-
const { arrowRight:
|
|
7645
|
+
const { arrowRight: L, arrowLeft: Z, arrowDown: J, arrowUp: ae } = $t(), w = ($) => {
|
|
7645
7646
|
$ || $ === 0 ? h.value[$].triggerTransition(
|
|
7646
7647
|
re.value($),
|
|
7647
7648
|
de.value($)
|
|
@@ -7667,7 +7668,7 @@ const gd = (t, n, a, e) => {
|
|
|
7667
7668
|
selectDate: g,
|
|
7668
7669
|
getWeekNum: x,
|
|
7669
7670
|
monthYearSelect: M,
|
|
7670
|
-
handleScroll:
|
|
7671
|
+
handleScroll: E,
|
|
7671
7672
|
handleArrow: X,
|
|
7672
7673
|
handleSwipe: ne,
|
|
7673
7674
|
getMarker: _,
|
|
@@ -7715,7 +7716,7 @@ const gd = (t, n, a, e) => {
|
|
|
7715
7716
|
$.stopPropagation(), $.stopImmediatePropagation();
|
|
7716
7717
|
}, m = () => {
|
|
7717
7718
|
e.escClose && a("close-picker");
|
|
7718
|
-
},
|
|
7719
|
+
}, R = ($, K = !1) => {
|
|
7719
7720
|
g($, K), e.spaceConfirm && a("select-date");
|
|
7720
7721
|
}, te = ($) => {
|
|
7721
7722
|
var K;
|
|
@@ -7738,7 +7739,7 @@ const gd = (t, n, a, e) => {
|
|
|
7738
7739
|
if ($ === "left")
|
|
7739
7740
|
return Z();
|
|
7740
7741
|
if ($ === "right")
|
|
7741
|
-
return
|
|
7742
|
+
return L();
|
|
7742
7743
|
} else
|
|
7743
7744
|
$ === "left" || $ === "up" ? X("left", 0, $ === "up") : X("right", 0, $ === "down");
|
|
7744
7745
|
}, Ot = ($) => {
|
|
@@ -7769,10 +7770,10 @@ const gd = (t, n, a, e) => {
|
|
|
7769
7770
|
onClick: sa,
|
|
7770
7771
|
onKeydown: [
|
|
7771
7772
|
fe(m, ["esc"]),
|
|
7772
|
-
K[15] || (K[15] = fe(
|
|
7773
|
-
K[16] || (K[16] = fe(
|
|
7774
|
-
K[17] || (K[17] = fe(
|
|
7775
|
-
K[18] || (K[18] = fe(
|
|
7773
|
+
K[15] || (K[15] = fe(qe((oe) => vt("left"), ["prevent"]), ["left"])),
|
|
7774
|
+
K[16] || (K[16] = fe(qe((oe) => vt("up"), ["prevent"]), ["up"])),
|
|
7775
|
+
K[17] || (K[17] = fe(qe((oe) => vt("down"), ["prevent"]), ["down"])),
|
|
7776
|
+
K[18] || (K[18] = fe(qe((oe) => vt("right"), ["prevent"]), ["right"])),
|
|
7776
7777
|
Ot
|
|
7777
7778
|
]
|
|
7778
7779
|
}, [
|
|
@@ -7863,9 +7864,9 @@ const gd = (t, n, a, e) => {
|
|
|
7863
7864
|
"flow-step": V.value,
|
|
7864
7865
|
"onUpdate:flowStep": K[1] || (K[1] = (_e) => V.value = _e),
|
|
7865
7866
|
onSelectDate: (_e) => v(g)(_e, !v(Zt)(oe)),
|
|
7866
|
-
onHandleSpace: (_e) =>
|
|
7867
|
+
onHandleSpace: (_e) => R(_e, !v(Zt)(oe)),
|
|
7867
7868
|
onSetHoverDate: K[2] || (K[2] = (_e) => v(Pe)(_e)),
|
|
7868
|
-
onHandleScroll: (_e) => v(
|
|
7869
|
+
onHandleScroll: (_e) => v(E)(_e, oe),
|
|
7869
7870
|
onHandleSwipe: (_e) => v(ne)(_e, oe),
|
|
7870
7871
|
onMount: K[3] || (K[3] = (_e) => te("calendar")),
|
|
7871
7872
|
onResetFlow: j,
|
|
@@ -7929,7 +7930,7 @@ const gd = (t, n, a, e) => {
|
|
|
7929
7930
|
], 2),
|
|
7930
7931
|
!$.autoApply || $.keepActionRow ? (p(), ye(ma($.actionRowComponent ? $.actionRowComponent : Od), Fe({
|
|
7931
7932
|
key: 2,
|
|
7932
|
-
"menu-mount":
|
|
7933
|
+
"menu-mount": I.value,
|
|
7933
7934
|
"calendar-width": C.value,
|
|
7934
7935
|
"internal-model-value": t.internalModelValue
|
|
7935
7936
|
}, $.$props, {
|
|
@@ -8003,7 +8004,7 @@ const gd = (t, n, a, e) => {
|
|
|
8003
8004
|
}), en(() => {
|
|
8004
8005
|
e.inline || (window.removeEventListener("scroll", O), window.removeEventListener("resize", N));
|
|
8005
8006
|
});
|
|
8006
|
-
const
|
|
8007
|
+
const I = It(r, "all", e.presetRanges), V = It(r, "input");
|
|
8007
8008
|
ht(
|
|
8008
8009
|
[o, s],
|
|
8009
8010
|
() => {
|
|
@@ -8011,7 +8012,7 @@ const gd = (t, n, a, e) => {
|
|
|
8011
8012
|
},
|
|
8012
8013
|
{ deep: !0 }
|
|
8013
8014
|
);
|
|
8014
|
-
const { openOnTop:
|
|
8015
|
+
const { openOnTop: L, menuPosition: Z, setMenuPosition: J, setInitialPosition: ae } = gd(
|
|
8015
8016
|
d,
|
|
8016
8017
|
c,
|
|
8017
8018
|
a,
|
|
@@ -8046,10 +8047,10 @@ const gd = (t, n, a, e) => {
|
|
|
8046
8047
|
return !me || !Array.isArray(me) && P(me) ? !0 : Array.isArray(me) ? me.length === 2 && P(me[0]) && P(me[1]) ? !0 : P(me[0]) : !1;
|
|
8047
8048
|
}, M = () => {
|
|
8048
8049
|
Q() && x() ? (j(), _()) : a("invalid-select", A.value);
|
|
8049
|
-
},
|
|
8050
|
+
}, E = (me) => {
|
|
8050
8051
|
j(), e.closeOnAutoApply && !me && _();
|
|
8051
8052
|
}, X = (me = !1) => {
|
|
8052
|
-
e.autoApply && b(A.value) && x() && (e.range && Array.isArray(A.value) ? (e.partialRange || A.value.length === 2) &&
|
|
8053
|
+
e.autoApply && b(A.value) && x() && (e.range && Array.isArray(A.value) ? (e.partialRange || A.value.length === 2) && E(me) : E(me));
|
|
8053
8054
|
}, ne = () => {
|
|
8054
8055
|
e.textInput || (A.value = null);
|
|
8055
8056
|
}, _ = () => {
|
|
@@ -8127,7 +8128,7 @@ const gd = (t, n, a, e) => {
|
|
|
8127
8128
|
ref: d,
|
|
8128
8129
|
class: v(de),
|
|
8129
8130
|
style: v(Z),
|
|
8130
|
-
"open-on-top": v(
|
|
8131
|
+
"open-on-top": v(L)
|
|
8131
8132
|
}, me.$props, {
|
|
8132
8133
|
"internal-model-value": v(A),
|
|
8133
8134
|
"onUpdate:internalModelValue": Ce[1] || (Ce[1] = (ge) => St(A) ? A.value = ge : null),
|
|
@@ -8143,7 +8144,7 @@ const gd = (t, n, a, e) => {
|
|
|
8143
8144
|
onTooltipOpen: Ce[6] || (Ce[6] = (ge) => me.$emit("tooltip-open", ge)),
|
|
8144
8145
|
onTooltipClose: Ce[7] || (Ce[7] = (ge) => me.$emit("tooltip-close", ge))
|
|
8145
8146
|
}), rt({ _: 2 }, [
|
|
8146
|
-
Ee(v(
|
|
8147
|
+
Ee(v(I), (ge, zt) => ({
|
|
8147
8148
|
name: ge,
|
|
8148
8149
|
fn: ie((gt) => [
|
|
8149
8150
|
q(me.$slots, ge, st(kt({ ...gt })))
|
|
@@ -8199,7 +8200,7 @@ const Cc = { class: "rm-datepicker" }, qc = /* @__PURE__ */ Oe({
|
|
|
8199
8200
|
return ot(() => {
|
|
8200
8201
|
a.currentDate && (r.value = a.currentDate);
|
|
8201
8202
|
}), (s, d) => (p(), k("div", Cc, [
|
|
8202
|
-
|
|
8203
|
+
ze(S("p", { class: "rm-datepicker__label" }, pe(s.label), 513), [
|
|
8203
8204
|
[Tt, s.label]
|
|
8204
8205
|
]),
|
|
8205
8206
|
We(v(mn), Fe({
|
|
@@ -8316,7 +8317,7 @@ const Ac = {
|
|
|
8316
8317
|
return (n, a) => (p(), ye(Ja, { to: "body" }, [
|
|
8317
8318
|
We(lt, { name: "fade" }, {
|
|
8318
8319
|
default: ie(() => [
|
|
8319
|
-
n.isActive ?
|
|
8320
|
+
n.isActive ? ze((p(), k("div", Ac, Ic)), [
|
|
8320
8321
|
[v(Bn), n.isLock && n.isActive]
|
|
8321
8322
|
]) : T("", !0)
|
|
8322
8323
|
]),
|