redmine-ui-kit 1.7.12 → 1.7.13
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 +388 -385
- package/dist/redmine-ui-kit.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/redmine-ui-kit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Zl = Object.defineProperty;
|
|
2
2
|
var Kl = (e, a, t) => a in e ? Zl(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
|
|
3
3
|
var de = (e, a, t) => (Kl(e, typeof a != "symbol" ? a + "" : a, t), t);
|
|
4
|
-
import { defineComponent as Te, openBlock as h, createElementBlock as A, normalizeStyle as tt, createElementVNode as
|
|
4
|
+
import { defineComponent as Te, openBlock as h, createElementBlock as A, normalizeStyle as tt, createElementVNode as j, useSlots as Ft, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as L, renderSlot as ne, withDirectives as Xe, vModelCheckbox as er, ref as G, createTextVNode as dt, shallowRef as $t, onMounted as qe, nextTick as mt, unref as c, mergeProps as Le, withKeys as Yt, toHandlerKey as va, withModifiers as Dt, vModelText as Nn, vShow as qt, createBlock as be, Teleport as Ia, createVNode as Oe, Transition as rt, withCtx as pe, isRef as Sa, watch as lt, onBeforeUnmount as tr, Fragment as _e, renderList as Ee, reactive as Da, toRef as _a, onUnmounted as La, createSlots as at, normalizeProps as Qe, guardReactiveProps as ot, resolveDynamicComponent as Na, h as ar, render as Fn, onBeforeUpdate as nr, getCurrentScope as lr, onScopeDispose as rr } from "vue";
|
|
5
5
|
import { useEventListener as Vn, useInfiniteScroll as or } from "@vueuse/core";
|
|
6
6
|
import { vOnClickOutside as sr } from "@vueuse/components";
|
|
7
7
|
const Xd = /* @__PURE__ */ Te({
|
|
@@ -18,7 +18,7 @@ const Xd = /* @__PURE__ */ Te({
|
|
|
18
18
|
minHeight: `${a.minHeight}px`
|
|
19
19
|
})
|
|
20
20
|
}, t[0] || (t[0] = [
|
|
21
|
-
|
|
21
|
+
j("span", null, null, -1)
|
|
22
22
|
]), 4));
|
|
23
23
|
}
|
|
24
24
|
}), ir = ["disabled", "type"], ur = { class: "rm-button__label" }, dr = { key: 0 }, cr = { key: 1 }, mr = {
|
|
@@ -54,7 +54,7 @@ const Xd = /* @__PURE__ */ Te({
|
|
|
54
54
|
type: l.type,
|
|
55
55
|
onClick: r[0] || (r[0] = (o) => l.$emit("click", o))
|
|
56
56
|
}, [
|
|
57
|
-
|
|
57
|
+
j("div", ur, [
|
|
58
58
|
l.label ? (h(), A("span", dr, ke(l.label), 1)) : L("", !0),
|
|
59
59
|
!l.label && n.value ? (h(), A("span", cr, [
|
|
60
60
|
ne(l.$slots, "default")
|
|
@@ -74,12 +74,12 @@ const Xd = /* @__PURE__ */ Te({
|
|
|
74
74
|
setup(e) {
|
|
75
75
|
const a = e, t = H(() => !a.done || !a.all ? 0 : Math.round(a.done / a.all * 100));
|
|
76
76
|
return (n, l) => (h(), A("div", vr, [
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
j("div", pr, [
|
|
78
|
+
j("div", {
|
|
79
79
|
class: "rm-progress-line__done",
|
|
80
80
|
style: tt(`max-width:${t.value}%`)
|
|
81
81
|
}, null, 4),
|
|
82
|
-
l[0] || (l[0] =
|
|
82
|
+
l[0] || (l[0] = j("div", { class: "rm-progress-line__skeleton" }, null, -1))
|
|
83
83
|
])
|
|
84
84
|
]));
|
|
85
85
|
}
|
|
@@ -103,7 +103,7 @@ const Xd = /* @__PURE__ */ Te({
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
return (r, o) => (h(), A("div", fr, [
|
|
106
|
-
Xe(
|
|
106
|
+
Xe(j("input", {
|
|
107
107
|
id: `${r.name}_checkbox`,
|
|
108
108
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => l.value = s),
|
|
109
109
|
type: "checkbox",
|
|
@@ -116,7 +116,7 @@ const Xd = /* @__PURE__ */ Te({
|
|
|
116
116
|
}, null, 40, hr), [
|
|
117
117
|
[er, l.value]
|
|
118
118
|
]),
|
|
119
|
-
|
|
119
|
+
j("label", {
|
|
120
120
|
for: `${r.name}_checkbox`,
|
|
121
121
|
class: ye([
|
|
122
122
|
"rm-checkbox-icon",
|
|
@@ -197,9 +197,9 @@ const Xd = /* @__PURE__ */ Te({
|
|
|
197
197
|
return v.files = Q.files, Q.files;
|
|
198
198
|
}
|
|
199
199
|
return (b, v) => (h(), A("div", wr, [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
200
|
+
j("label", _r, [
|
|
201
|
+
j("span", kr, ke(b.attachLabel), 1),
|
|
202
|
+
j("input", {
|
|
203
203
|
id: "file",
|
|
204
204
|
ref_key: "file",
|
|
205
205
|
ref: r,
|
|
@@ -211,14 +211,14 @@ const Xd = /* @__PURE__ */ Te({
|
|
|
211
211
|
onChange: v[0] || (v[0] = (k) => g(k))
|
|
212
212
|
}, null, 40, Mr)
|
|
213
213
|
]),
|
|
214
|
-
|
|
214
|
+
j("span", Dr, [
|
|
215
215
|
s.value && s.value.length ? (h(), A("span", Tr, [
|
|
216
216
|
dt(ke(b.deniedFilesLabel) + ": " + ke(s.value), 1),
|
|
217
|
-
v[1] || (v[1] =
|
|
217
|
+
v[1] || (v[1] = j("br", null, null, -1))
|
|
218
218
|
])) : L("", !0),
|
|
219
219
|
o.value && o.value.length ? (h(), A("span", Pr, [
|
|
220
220
|
dt(ke(b.acceptFilesLabel) + ": " + ke(o.value), 1),
|
|
221
|
-
v[2] || (v[2] =
|
|
221
|
+
v[2] || (v[2] = j("br", null, null, -1))
|
|
222
222
|
])) : L("", !0),
|
|
223
223
|
dt(" " + ke(b.maxFileSizeLabel) + ": " + ke(m.value) + "mb ", 1)
|
|
224
224
|
])
|
|
@@ -313,7 +313,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
313
313
|
for: c(r),
|
|
314
314
|
class: "rm-input__label"
|
|
315
315
|
}, ke(P.label), 9, Or)) : L("", !0),
|
|
316
|
-
|
|
316
|
+
j("div", Sr, [
|
|
317
317
|
P.isAutoGrow ? Xe((h(), A("textarea", Le({
|
|
318
318
|
key: 0,
|
|
319
319
|
id: c(r),
|
|
@@ -361,7 +361,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
361
361
|
}), null, 16, Yr)), [
|
|
362
362
|
[Nn, g.value]
|
|
363
363
|
]),
|
|
364
|
-
Xe(
|
|
364
|
+
Xe(j("span", { class: "rm-input__hint" }, ke(P.hint), 513), [
|
|
365
365
|
[qt, o.value]
|
|
366
366
|
])
|
|
367
367
|
])
|
|
@@ -415,7 +415,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
415
415
|
}, {
|
|
416
416
|
default: pe(() => [
|
|
417
417
|
r.isActive ? Xe((h(), A("div", Le({ key: 0 }, r.rootAttributes, { class: "rm-modal" }), [
|
|
418
|
-
|
|
418
|
+
j("div", {
|
|
419
419
|
class: "rm-modal__overlay",
|
|
420
420
|
onClick: Dt(l, ["self"])
|
|
421
421
|
}),
|
|
@@ -435,14 +435,14 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
435
435
|
onClick: l
|
|
436
436
|
}, {
|
|
437
437
|
default: pe(() => [
|
|
438
|
-
|
|
438
|
+
j("img", {
|
|
439
439
|
src: c(Br),
|
|
440
440
|
alt: "close"
|
|
441
441
|
}, null, 8, Ir)
|
|
442
442
|
]),
|
|
443
443
|
_: 1
|
|
444
444
|
})),
|
|
445
|
-
|
|
445
|
+
j("div", Lr, [
|
|
446
446
|
ne(r.$slots, "default")
|
|
447
447
|
])
|
|
448
448
|
], 2)) : (h(), A("div", Nr, [
|
|
@@ -580,7 +580,7 @@ const Xr = { class: "rm-dropdown" }, Jr = /* @__PURE__ */ Te({
|
|
|
580
580
|
flush: "post"
|
|
581
581
|
}
|
|
582
582
|
), (v, k) => Xe((h(), A("div", Xr, [
|
|
583
|
-
|
|
583
|
+
j("div", {
|
|
584
584
|
ref_key: "targetRef",
|
|
585
585
|
ref: m,
|
|
586
586
|
"aria-hidden": "true",
|
|
@@ -685,8 +685,8 @@ const Xr = { class: "rm-dropdown" }, Jr = /* @__PURE__ */ Te({
|
|
|
685
685
|
return "";
|
|
686
686
|
const M = Q(t.options);
|
|
687
687
|
if ((t.multiple || t.chips) && Array.isArray(t.modelValue)) {
|
|
688
|
-
const S = M.filter(({ value:
|
|
689
|
-
return t.chips ? S : S.map(({ name:
|
|
688
|
+
const S = M.filter(({ value: z }) => Array.isArray(t.modelValue) && t.modelValue.includes(z));
|
|
689
|
+
return t.chips ? S : S.map(({ name: z }) => z).join(", ");
|
|
690
690
|
}
|
|
691
691
|
return ((f = M.find(({ value: S }) => S === t.modelValue)) == null ? void 0 : f.name.toString()) ?? "";
|
|
692
692
|
}), k = H(() => {
|
|
@@ -755,128 +755,131 @@ const Xr = { class: "rm-dropdown" }, Jr = /* @__PURE__ */ Te({
|
|
|
755
755
|
class: "rm-select-dropdown",
|
|
756
756
|
"content-class": "rm-select-dropdown-content"
|
|
757
757
|
}), {
|
|
758
|
-
trigger: pe(() =>
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
"rm-select-input
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
M.
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
758
|
+
trigger: pe(() => {
|
|
759
|
+
var S;
|
|
760
|
+
return [
|
|
761
|
+
j("div", {
|
|
762
|
+
class: ye([
|
|
763
|
+
"rm-select-input",
|
|
764
|
+
{
|
|
765
|
+
"rm-select-input--focused": _.value
|
|
766
|
+
}
|
|
767
|
+
]),
|
|
768
|
+
onClick: f[1] || (f[1] = (z) => _.value = !_.value)
|
|
769
|
+
}, [
|
|
770
|
+
j("input", {
|
|
771
|
+
id: `select__${M.name}`,
|
|
772
|
+
ref_key: "selectRef",
|
|
773
|
+
ref: l,
|
|
774
|
+
class: "rm-select-input__field",
|
|
775
|
+
type: "text",
|
|
776
|
+
readonly: "",
|
|
777
|
+
hidden: "",
|
|
778
|
+
autocomplete: "off",
|
|
779
|
+
role: "presentation"
|
|
780
|
+
}, null, 8, Zr),
|
|
781
|
+
M.$slots["slot-placeholder"] ? ne(M.$slots, "slot-placeholder", {
|
|
782
|
+
key: 1,
|
|
783
|
+
options: b.value,
|
|
784
|
+
selected: v.value
|
|
785
|
+
}) : (h(), A(_e, { key: 0 }, [
|
|
786
|
+
M.placeholder && (M.staticPlaceholder || !((S = v.value) != null && S.length)) ? (h(), A("div", Kr, [
|
|
787
|
+
j("span", eo, ke(M.placeholder), 1),
|
|
788
|
+
M.staticPlaceholder && (M.multiple || M.chips) && v.value ? (h(), A("span", to, ke(Array.isArray(v.value) ? v.value.length : v.value.toString().split(", ").length), 1)) : L("", !0)
|
|
789
|
+
])) : (h(), A("div", ao, [
|
|
790
|
+
typeof v.value == "string" ? (h(), A(_e, { key: 0 }, [
|
|
791
|
+
dt(ke(v.value), 1)
|
|
792
|
+
], 64)) : L("", !0),
|
|
793
|
+
Array.isArray(v.value) && M.chips ? (h(), A("div", no, [
|
|
794
|
+
(h(!0), A(_e, null, Ee(v.value, (z, re) => (h(), A("div", {
|
|
795
|
+
key: `chip__${re}`,
|
|
796
|
+
class: "rm-select-chip"
|
|
797
|
+
}, [
|
|
798
|
+
j("span", lo, ke(z.name), 1),
|
|
799
|
+
j("button", {
|
|
800
|
+
class: "rm-select-chip__btn",
|
|
801
|
+
type: "button",
|
|
802
|
+
onClick: Dt((ve) => P(z), ["stop"])
|
|
803
|
+
}, f[5] || (f[5] = [
|
|
804
|
+
j("svg", {
|
|
805
|
+
viewBox: "0 0 24 24",
|
|
806
|
+
focusable: "false"
|
|
807
|
+
}, [
|
|
808
|
+
j("path", { d: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z" })
|
|
809
|
+
], -1)
|
|
810
|
+
]), 8, ro)
|
|
811
|
+
]))), 128))
|
|
812
|
+
])) : L("", !0)
|
|
813
|
+
]))
|
|
814
|
+
], 64)),
|
|
815
|
+
j("div", oo, [
|
|
816
|
+
f[7] || (f[7] = j("button", {
|
|
817
|
+
class: "rm-select-input-controls__btn rm-select-input-controls__btn--cheveron",
|
|
818
|
+
type: "button"
|
|
819
|
+
}, [
|
|
820
|
+
j("svg", {
|
|
821
|
+
width: "10",
|
|
822
|
+
height: "6",
|
|
823
|
+
viewBox: "0 0 10 6",
|
|
824
|
+
fill: "none",
|
|
825
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
795
826
|
}, [
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
827
|
+
j("path", {
|
|
828
|
+
d: "M1 1L5 5L9 1",
|
|
829
|
+
stroke: "var(--uikit-color-black-500)",
|
|
830
|
+
"stroke-width": "1.4",
|
|
831
|
+
"stroke-linecap": "round",
|
|
832
|
+
"stroke-linejoin": "round"
|
|
833
|
+
})
|
|
834
|
+
])
|
|
835
|
+
], -1)),
|
|
836
|
+
Oe(rt, {
|
|
837
|
+
name: "fade",
|
|
838
|
+
mode: "out-in"
|
|
839
|
+
}, {
|
|
840
|
+
default: pe(() => [
|
|
841
|
+
M.removable && M.modelValue.toString().length ? (h(), A("button", {
|
|
842
|
+
key: 0,
|
|
843
|
+
class: "rm-select-input-controls__btn rm-select-input-controls__btn--remove",
|
|
799
844
|
type: "button",
|
|
800
|
-
onClick: Dt(
|
|
801
|
-
}, f[
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
845
|
+
onClick: Dt(B, ["stop"])
|
|
846
|
+
}, f[6] || (f[6] = [
|
|
847
|
+
j("svg", {
|
|
848
|
+
width: "10",
|
|
849
|
+
height: "10",
|
|
850
|
+
viewBox: "0 0 10 10",
|
|
851
|
+
fill: "none",
|
|
852
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
805
853
|
}, [
|
|
806
|
-
|
|
854
|
+
j("path", {
|
|
855
|
+
"fill-rule": "evenodd",
|
|
856
|
+
"clip-rule": "evenodd",
|
|
857
|
+
d: "M1.17449 1.16875C1.40714 0.943752 1.78435 0.943752 2.017 1.16875L5 4.05354L7.983 1.16875C8.21565 0.943752 8.59286 0.943752 8.82551 1.16875C9.05816 1.39374 9.05816 1.75852 8.82551 1.98352L5.42125 5.2757C5.1886 5.50069 4.8114 5.50069 4.57874 5.2757L1.17449 1.98352C0.941837 1.75852 0.941837 1.39374 1.17449 1.16875Z",
|
|
858
|
+
fill: "var(--uikit-color-black-500)",
|
|
859
|
+
stroke: "var(--uikit-color-black-500)",
|
|
860
|
+
"stroke-width": "0.2",
|
|
861
|
+
"stroke-linecap": "round",
|
|
862
|
+
"stroke-linejoin": "round"
|
|
863
|
+
}),
|
|
864
|
+
j("path", {
|
|
865
|
+
"fill-rule": "evenodd",
|
|
866
|
+
"clip-rule": "evenodd",
|
|
867
|
+
d: "M1.17449 8.83125C1.40714 9.05625 1.78435 9.05625 2.017 8.83125L5 5.94646L7.983 8.83125C8.21565 9.05625 8.59286 9.05625 8.82551 8.83125C9.05816 8.60626 9.05816 8.24148 8.82551 8.01648L5.42125 4.7243C5.1886 4.49931 4.8114 4.49931 4.57874 4.7243L1.17449 8.01648C0.941837 8.24148 0.941837 8.60626 1.17449 8.83125Z",
|
|
868
|
+
fill: "var(--uikit-color-black-500)",
|
|
869
|
+
stroke: "var(--uikit-color-black-500)",
|
|
870
|
+
"stroke-width": "0.2",
|
|
871
|
+
"stroke-linecap": "round",
|
|
872
|
+
"stroke-linejoin": "round"
|
|
873
|
+
})
|
|
807
874
|
], -1)
|
|
808
|
-
])
|
|
809
|
-
])
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
type: "button"
|
|
817
|
-
}, [
|
|
818
|
-
z("svg", {
|
|
819
|
-
width: "10",
|
|
820
|
-
height: "6",
|
|
821
|
-
viewBox: "0 0 10 6",
|
|
822
|
-
fill: "none",
|
|
823
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
824
|
-
}, [
|
|
825
|
-
z("path", {
|
|
826
|
-
d: "M1 1L5 5L9 1",
|
|
827
|
-
stroke: "var(--uikit-color-black-500)",
|
|
828
|
-
"stroke-width": "1.4",
|
|
829
|
-
"stroke-linecap": "round",
|
|
830
|
-
"stroke-linejoin": "round"
|
|
831
|
-
})
|
|
832
|
-
])
|
|
833
|
-
], -1)),
|
|
834
|
-
Oe(rt, {
|
|
835
|
-
name: "fade",
|
|
836
|
-
mode: "out-in"
|
|
837
|
-
}, {
|
|
838
|
-
default: pe(() => [
|
|
839
|
-
M.removable && M.modelValue.toString().length ? (h(), A("button", {
|
|
840
|
-
key: 0,
|
|
841
|
-
class: "rm-select-input-controls__btn rm-select-input-controls__btn--remove",
|
|
842
|
-
type: "button",
|
|
843
|
-
onClick: Dt(B, ["stop"])
|
|
844
|
-
}, f[6] || (f[6] = [
|
|
845
|
-
z("svg", {
|
|
846
|
-
width: "10",
|
|
847
|
-
height: "10",
|
|
848
|
-
viewBox: "0 0 10 10",
|
|
849
|
-
fill: "none",
|
|
850
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
851
|
-
}, [
|
|
852
|
-
z("path", {
|
|
853
|
-
"fill-rule": "evenodd",
|
|
854
|
-
"clip-rule": "evenodd",
|
|
855
|
-
d: "M1.17449 1.16875C1.40714 0.943752 1.78435 0.943752 2.017 1.16875L5 4.05354L7.983 1.16875C8.21565 0.943752 8.59286 0.943752 8.82551 1.16875C9.05816 1.39374 9.05816 1.75852 8.82551 1.98352L5.42125 5.2757C5.1886 5.50069 4.8114 5.50069 4.57874 5.2757L1.17449 1.98352C0.941837 1.75852 0.941837 1.39374 1.17449 1.16875Z",
|
|
856
|
-
fill: "var(--uikit-color-black-500)",
|
|
857
|
-
stroke: "var(--uikit-color-black-500)",
|
|
858
|
-
"stroke-width": "0.2",
|
|
859
|
-
"stroke-linecap": "round",
|
|
860
|
-
"stroke-linejoin": "round"
|
|
861
|
-
}),
|
|
862
|
-
z("path", {
|
|
863
|
-
"fill-rule": "evenodd",
|
|
864
|
-
"clip-rule": "evenodd",
|
|
865
|
-
d: "M1.17449 8.83125C1.40714 9.05625 1.78435 9.05625 2.017 8.83125L5 5.94646L7.983 8.83125C8.21565 9.05625 8.59286 9.05625 8.82551 8.83125C9.05816 8.60626 9.05816 8.24148 8.82551 8.01648L5.42125 4.7243C5.1886 4.49931 4.8114 4.49931 4.57874 4.7243L1.17449 8.01648C0.941837 8.24148 0.941837 8.60626 1.17449 8.83125Z",
|
|
866
|
-
fill: "var(--uikit-color-black-500)",
|
|
867
|
-
stroke: "var(--uikit-color-black-500)",
|
|
868
|
-
"stroke-width": "0.2",
|
|
869
|
-
"stroke-linecap": "round",
|
|
870
|
-
"stroke-linejoin": "round"
|
|
871
|
-
})
|
|
872
|
-
], -1)
|
|
873
|
-
]))) : L("", !0)
|
|
874
|
-
]),
|
|
875
|
-
_: 1
|
|
876
|
-
})
|
|
877
|
-
])
|
|
878
|
-
], 2)
|
|
879
|
-
]),
|
|
875
|
+
]))) : L("", !0)
|
|
876
|
+
]),
|
|
877
|
+
_: 1
|
|
878
|
+
})
|
|
879
|
+
])
|
|
880
|
+
], 2)
|
|
881
|
+
];
|
|
882
|
+
}),
|
|
880
883
|
content: pe(({ closeDropdown: S }) => [
|
|
881
884
|
Oe(rt, { name: "slide" }, {
|
|
882
885
|
default: pe(() => [
|
|
@@ -887,15 +890,15 @@ const Xr = { class: "rm-dropdown" }, Jr = /* @__PURE__ */ Te({
|
|
|
887
890
|
style: tt(k.value)
|
|
888
891
|
}, [
|
|
889
892
|
M.searchable ? (h(), A("div", so, [
|
|
890
|
-
f[8] || (f[8] =
|
|
891
|
-
|
|
893
|
+
f[8] || (f[8] = j("div", { class: "rm-select-inner__search-icon" }, [
|
|
894
|
+
j("svg", {
|
|
892
895
|
width: "14",
|
|
893
896
|
height: "14",
|
|
894
897
|
viewBox: "0 0 14 14",
|
|
895
898
|
fill: "none",
|
|
896
899
|
xmlns: "http://www.w3.org/2000/svg"
|
|
897
900
|
}, [
|
|
898
|
-
|
|
901
|
+
j("path", {
|
|
899
902
|
"fill-rule": "evenodd",
|
|
900
903
|
"clip-rule": "evenodd",
|
|
901
904
|
d: "M11.096 9.76448L10.1462 9.5248C11.0161 8.51285 11.5398 7.19908 11.5398 5.76992C11.5398 2.58315 8.95669 0 5.76992 0C2.58315 0 0 2.58315 0 5.76992C0 8.95669 2.58315 11.5398 5.76992 11.5398C7.19908 11.5398 8.51285 11.0161 9.5248 10.1462L9.76448 11.096L12.6743 14L14 12.6743L11.096 9.76448ZM5.79999 10.3C8.28527 10.3 10.3 8.28527 10.3 5.79999C10.3 3.31471 8.28527 1.29999 5.79999 1.29999C3.31471 1.29999 1.29999 3.31471 1.29999 5.79999C1.29999 8.28527 3.31471 10.3 5.79999 10.3Z",
|
|
@@ -903,17 +906,17 @@ const Xr = { class: "rm-dropdown" }, Jr = /* @__PURE__ */ Te({
|
|
|
903
906
|
})
|
|
904
907
|
])
|
|
905
908
|
], -1)),
|
|
906
|
-
|
|
909
|
+
j("input", {
|
|
907
910
|
ref_key: "searchInputRef",
|
|
908
911
|
ref: r,
|
|
909
912
|
"model-value": g.value,
|
|
910
913
|
type: "text",
|
|
911
914
|
class: "rm-select-inner__search-input",
|
|
912
915
|
placeholder: M.searchPlaceholder,
|
|
913
|
-
onFocus: f[2] || (f[2] = (
|
|
914
|
-
onBlur: f[3] || (f[3] = (
|
|
916
|
+
onFocus: f[2] || (f[2] = (z) => u.value = !0),
|
|
917
|
+
onBlur: f[3] || (f[3] = (z) => u.value = !1),
|
|
915
918
|
onInput: f[4] || (f[4] = //@ts-ignore
|
|
916
|
-
(...
|
|
919
|
+
(...z) => c(W) && c(W)(...z))
|
|
917
920
|
}, null, 40, io)
|
|
918
921
|
])) : L("", !0),
|
|
919
922
|
b.value && b.value.length ? (h(), A(_e, { key: 1 }, [
|
|
@@ -929,26 +932,26 @@ const Xr = { class: "rm-dropdown" }, Jr = /* @__PURE__ */ Te({
|
|
|
929
932
|
ref: s,
|
|
930
933
|
class: "rm-select-inner-list"
|
|
931
934
|
}, [
|
|
932
|
-
(h(!0), A(_e, null, Ee(b.value, (
|
|
933
|
-
key: `${
|
|
935
|
+
(h(!0), A(_e, null, Ee(b.value, (z, re) => (h(), A("li", {
|
|
936
|
+
key: `${re}_option`,
|
|
934
937
|
class: ye([
|
|
935
938
|
"rm-select-inner-list__item",
|
|
936
939
|
{
|
|
937
940
|
// eslint-disable-next-line max-len
|
|
938
|
-
"rm-select-inner__item--selected": !M.multiple && !M.chips || !Array.isArray(M.modelValue) ?
|
|
941
|
+
"rm-select-inner__item--selected": !M.multiple && !M.chips || !Array.isArray(M.modelValue) ? z.value === v.value : M.modelValue.includes(z.value)
|
|
939
942
|
}
|
|
940
943
|
]),
|
|
941
|
-
onClick: (ve) => P(
|
|
944
|
+
onClick: (ve) => P(z)
|
|
942
945
|
}, [
|
|
943
946
|
M.multiple || M.chips ? (h(), be(br, {
|
|
944
947
|
key: 0,
|
|
945
|
-
"model-value": M.modelValue.includes(
|
|
946
|
-
name:
|
|
947
|
-
checked: M.modelValue.includes(
|
|
948
|
+
"model-value": M.modelValue.includes(z.value),
|
|
949
|
+
name: z.name.toString(),
|
|
950
|
+
checked: M.modelValue.includes(z.value),
|
|
948
951
|
class: "rm-select-inner-list__item-checkbox",
|
|
949
|
-
onClick: Dt((ve) => P(
|
|
952
|
+
onClick: Dt((ve) => P(z), ["stop", "prevent"])
|
|
950
953
|
}, null, 8, ["model-value", "name", "checked", "onClick"])) : L("", !0),
|
|
951
|
-
|
|
954
|
+
j("span", null, ke(z.name), 1)
|
|
952
955
|
], 10, uo))), 128))
|
|
953
956
|
], 512))
|
|
954
957
|
], 64)) : (h(), A("li", co, ke(M.emptySelectLabel), 1))
|
|
@@ -980,11 +983,11 @@ const Xr = { class: "rm-dropdown" }, Jr = /* @__PURE__ */ Te({
|
|
|
980
983
|
};
|
|
981
984
|
function fo(e, a) {
|
|
982
985
|
return h(), A("svg", po, a[0] || (a[0] = [
|
|
983
|
-
|
|
986
|
+
j("path", {
|
|
984
987
|
d: "M6.75795 3.6789L7.32009 4.24113L1.7842 9.77779H1.22205V9.21557L6.75795 3.6789ZM8.95765 1.52588e-05C8.80489 1.52588e-05 8.64602 0.0611263 8.52993 0.177237L7.41175 1.29557L9.7031 3.58724L10.8213 2.4689C11.0596 2.23057 11.0596 1.84557 10.8213 1.60724L9.39147 0.177237C9.26927 0.0550152 9.11651 1.52588e-05 8.95765 1.52588e-05ZM6.75795 1.94946L0 8.70835V11H2.29135L9.0493 4.24113L6.75795 1.94946Z",
|
|
985
988
|
fill: "#96B8D4"
|
|
986
989
|
}, null, -1),
|
|
987
|
-
|
|
990
|
+
j("rect", {
|
|
988
991
|
y: "13",
|
|
989
992
|
width: "13",
|
|
990
993
|
height: "2",
|
|
@@ -1048,12 +1051,12 @@ const ho = /* @__PURE__ */ mo(vo, [["render", fo]]), yo = {
|
|
|
1048
1051
|
o.value ? (h(), A("div", yo, [
|
|
1049
1052
|
ne(k.$slots, "header")
|
|
1050
1053
|
])) : L("", !0),
|
|
1051
|
-
|
|
1054
|
+
j("div", {
|
|
1052
1055
|
class: "rm-editable__content",
|
|
1053
1056
|
onClick: _
|
|
1054
1057
|
}, [
|
|
1055
|
-
|
|
1056
|
-
|
|
1058
|
+
j("div", go, [
|
|
1059
|
+
j("div", {
|
|
1057
1060
|
ref_key: "contentRef",
|
|
1058
1061
|
ref: l,
|
|
1059
1062
|
contenteditable: o.value && !k.disabled,
|
|
@@ -1114,7 +1117,7 @@ const ho = /* @__PURE__ */ mo(vo, [["render", fo]]), yo = {
|
|
|
1114
1117
|
};
|
|
1115
1118
|
function Mo(e, a) {
|
|
1116
1119
|
return h(), A("svg", ko, a[0] || (a[0] = [
|
|
1117
|
-
|
|
1120
|
+
j("path", {
|
|
1118
1121
|
stroke: "#494e6a",
|
|
1119
1122
|
"stroke-linecap": "round",
|
|
1120
1123
|
"stroke-linejoin": "round",
|
|
@@ -1143,16 +1146,16 @@ const Do = { render: Mo }, To = {
|
|
|
1143
1146
|
Xe((h(), A("div", {
|
|
1144
1147
|
class: ye(["rm-alert", n.status])
|
|
1145
1148
|
}, [
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1149
|
+
j("div", Po, [
|
|
1150
|
+
j("h3", xo, ke(n.title), 1),
|
|
1151
|
+
j("div", $o, [
|
|
1152
|
+
j("p", { innerHTML: n.message }, null, 8, Co),
|
|
1153
|
+
j("div", null, [
|
|
1151
1154
|
ne(n.$slots, "default")
|
|
1152
1155
|
])
|
|
1153
1156
|
])
|
|
1154
1157
|
]),
|
|
1155
|
-
|
|
1158
|
+
j("div", Ao, [
|
|
1156
1159
|
Oe(Ut, {
|
|
1157
1160
|
type: "button",
|
|
1158
1161
|
flat: "",
|
|
@@ -1191,8 +1194,8 @@ const Do = { render: Mo }, To = {
|
|
|
1191
1194
|
return (n, l) => (h(), be(rt, { name: "fade" }, {
|
|
1192
1195
|
default: pe(() => [
|
|
1193
1196
|
n.visibility ? Xe((h(), A("div", Ro, [
|
|
1194
|
-
|
|
1195
|
-
|
|
1197
|
+
j("h3", Oo, ke(n.title), 1),
|
|
1198
|
+
j("div", So, [
|
|
1196
1199
|
Oe(Ut, {
|
|
1197
1200
|
label: n.confirmLabel,
|
|
1198
1201
|
type: "button",
|
|
@@ -4039,30 +4042,30 @@ function fn(e, a, t, n) {
|
|
|
4039
4042
|
}, _ = [new Hs()], g = a.match(xi).map((f) => {
|
|
4040
4043
|
const S = f[0];
|
|
4041
4044
|
if (S in vn) {
|
|
4042
|
-
const
|
|
4043
|
-
return
|
|
4045
|
+
const z = vn[S];
|
|
4046
|
+
return z(f, r.formatLong);
|
|
4044
4047
|
}
|
|
4045
4048
|
return f;
|
|
4046
4049
|
}).join("").match(Pi), u = [];
|
|
4047
4050
|
for (let f of g) {
|
|
4048
4051
|
!(n != null && n.useAdditionalWeekYearTokens) && kl(f) && pn(f, a, e), !(n != null && n.useAdditionalDayOfYearTokens) && _l(f) && pn(f, a, e);
|
|
4049
|
-
const S = f[0],
|
|
4050
|
-
if (
|
|
4051
|
-
const { incompatibleTokens:
|
|
4052
|
-
if (Array.isArray(
|
|
4052
|
+
const S = f[0], z = Ti[S];
|
|
4053
|
+
if (z) {
|
|
4054
|
+
const { incompatibleTokens: re } = z;
|
|
4055
|
+
if (Array.isArray(re)) {
|
|
4053
4056
|
const I = u.find(
|
|
4054
|
-
(V) =>
|
|
4057
|
+
(V) => re.includes(V.token) || V.token === S
|
|
4055
4058
|
);
|
|
4056
4059
|
if (I)
|
|
4057
4060
|
throw new RangeError(
|
|
4058
4061
|
`The format string mustn't contain \`${I.fullToken}\` and \`${f}\` at the same time`
|
|
4059
4062
|
);
|
|
4060
|
-
} else if (
|
|
4063
|
+
} else if (z.incompatibleTokens === "*" && u.length > 0)
|
|
4061
4064
|
throw new RangeError(
|
|
4062
4065
|
`The format string mustn't contain \`${f}\` and any other token at the same time`
|
|
4063
4066
|
);
|
|
4064
4067
|
u.push({ token: S, fullToken: f });
|
|
4065
|
-
const ve =
|
|
4068
|
+
const ve = z.run(
|
|
4066
4069
|
e,
|
|
4067
4070
|
f,
|
|
4068
4071
|
r.match,
|
|
@@ -4084,8 +4087,8 @@ function fn(e, a, t, n) {
|
|
|
4084
4087
|
}
|
|
4085
4088
|
if (e.length > 0 && Ai.test(e))
|
|
4086
4089
|
return xe(t, NaN);
|
|
4087
|
-
const T = _.map((f) => f.priority).sort((f, S) => S - f).filter((f, S,
|
|
4088
|
-
(f) => _.filter((S) => S.priority === f).sort((S,
|
|
4090
|
+
const T = _.map((f) => f.priority).sort((f, S) => S - f).filter((f, S, z) => z.indexOf(f) === S).map(
|
|
4091
|
+
(f) => _.filter((S) => S.priority === f).sort((S, z) => z.subPriority - S.subPriority)
|
|
4089
4092
|
).map((f) => f[0]);
|
|
4090
4093
|
let b = fe(t);
|
|
4091
4094
|
if (isNaN(b.getTime()))
|
|
@@ -4168,16 +4171,16 @@ function ia() {
|
|
|
4168
4171
|
class: "dp__icon"
|
|
4169
4172
|
},
|
|
4170
4173
|
[
|
|
4171
|
-
|
|
4174
|
+
j("path", {
|
|
4172
4175
|
d: "M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"
|
|
4173
4176
|
}),
|
|
4174
|
-
|
|
4177
|
+
j("path", {
|
|
4175
4178
|
d: "M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"
|
|
4176
4179
|
}),
|
|
4177
|
-
|
|
4180
|
+
j("path", {
|
|
4178
4181
|
d: "M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"
|
|
4179
4182
|
}),
|
|
4180
|
-
|
|
4183
|
+
j("path", {
|
|
4181
4184
|
d: "M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"
|
|
4182
4185
|
})
|
|
4183
4186
|
]
|
|
@@ -4197,10 +4200,10 @@ function Rl() {
|
|
|
4197
4200
|
class: "dp__icon"
|
|
4198
4201
|
},
|
|
4199
4202
|
[
|
|
4200
|
-
|
|
4203
|
+
j("path", {
|
|
4201
4204
|
d: "M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"
|
|
4202
4205
|
}),
|
|
4203
|
-
|
|
4206
|
+
j("path", {
|
|
4204
4207
|
d: "M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"
|
|
4205
4208
|
})
|
|
4206
4209
|
]
|
|
@@ -4220,7 +4223,7 @@ function xn() {
|
|
|
4220
4223
|
class: "dp__icon"
|
|
4221
4224
|
},
|
|
4222
4225
|
[
|
|
4223
|
-
|
|
4226
|
+
j("path", {
|
|
4224
4227
|
d: "M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"
|
|
4225
4228
|
})
|
|
4226
4229
|
]
|
|
@@ -4240,7 +4243,7 @@ function $n() {
|
|
|
4240
4243
|
class: "dp__icon"
|
|
4241
4244
|
},
|
|
4242
4245
|
[
|
|
4243
|
-
|
|
4246
|
+
j("path", {
|
|
4244
4247
|
d: "M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"
|
|
4245
4248
|
})
|
|
4246
4249
|
]
|
|
@@ -4260,10 +4263,10 @@ function Cn() {
|
|
|
4260
4263
|
class: "dp__icon"
|
|
4261
4264
|
},
|
|
4262
4265
|
[
|
|
4263
|
-
|
|
4266
|
+
j("path", {
|
|
4264
4267
|
d: "M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"
|
|
4265
4268
|
}),
|
|
4266
|
-
|
|
4269
|
+
j("path", {
|
|
4267
4270
|
d: "M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"
|
|
4268
4271
|
})
|
|
4269
4272
|
]
|
|
@@ -4283,7 +4286,7 @@ function An() {
|
|
|
4283
4286
|
class: "dp__icon"
|
|
4284
4287
|
},
|
|
4285
4288
|
[
|
|
4286
|
-
|
|
4289
|
+
j("path", {
|
|
4287
4290
|
d: "M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"
|
|
4288
4291
|
})
|
|
4289
4292
|
]
|
|
@@ -4303,7 +4306,7 @@ function Rn() {
|
|
|
4303
4306
|
class: "dp__icon"
|
|
4304
4307
|
},
|
|
4305
4308
|
[
|
|
4306
|
-
|
|
4309
|
+
j("path", {
|
|
4307
4310
|
d: "M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"
|
|
4308
4311
|
})
|
|
4309
4312
|
]
|
|
@@ -4868,7 +4871,7 @@ const ji = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4868
4871
|
y[1] ? Mt(U(), y[1]) : Zt(r.value.partialRange)
|
|
4869
4872
|
],
|
|
4870
4873
|
r.value.enabled
|
|
4871
|
-
) : Mt(U(), +y), B = (y, ue) => (typeof y == "string" || typeof y == "number") && a.modelType ?
|
|
4874
|
+
) : Mt(U(), +y), B = (y, ue) => (typeof y == "string" || typeof y == "number") && a.modelType ? oe(y) : ue, P = (y) => Array.isArray(y) ? [
|
|
4872
4875
|
B(
|
|
4873
4876
|
y[0],
|
|
4874
4877
|
Lt(null, +y[0].hours, +y[0].minutes, y[0].seconds)
|
|
@@ -4891,7 +4894,7 @@ const ji = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4891
4894
|
) : B(y, Ct(ue, +y.month, +y.year));
|
|
4892
4895
|
}, N = (y) => {
|
|
4893
4896
|
if (Array.isArray(y))
|
|
4894
|
-
return y.map((ue) =>
|
|
4897
|
+
return y.map((ue) => oe(ue));
|
|
4895
4898
|
throw new Error(Sn.dateArr("multi-dates"));
|
|
4896
4899
|
}, M = (y) => {
|
|
4897
4900
|
if (Array.isArray(y) && r.value.enabled) {
|
|
@@ -4902,21 +4905,21 @@ const ji = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4902
4905
|
];
|
|
4903
4906
|
}
|
|
4904
4907
|
return U(y[0]);
|
|
4905
|
-
}, f = (y) => a.modelAuto ? Array.isArray(y) ? [
|
|
4908
|
+
}, f = (y) => a.modelAuto ? Array.isArray(y) ? [oe(y[0]), oe(y[1])] : a.autoApply ? [oe(y)] : [oe(y), null] : Array.isArray(y) ? Ra(
|
|
4906
4909
|
() => y[1] ? [
|
|
4907
|
-
|
|
4908
|
-
y[1] ?
|
|
4909
|
-
] : [
|
|
4910
|
+
oe(y[0]),
|
|
4911
|
+
y[1] ? oe(y[1]) : Zt(r.value.partialRange)
|
|
4912
|
+
] : [oe(y[0])],
|
|
4910
4913
|
r.value.enabled
|
|
4911
|
-
) :
|
|
4914
|
+
) : oe(y), S = () => {
|
|
4912
4915
|
Array.isArray(n.value) && r.value.enabled && n.value.length === 1 && n.value.push(Zt(r.value.partialRange));
|
|
4913
|
-
},
|
|
4916
|
+
}, z = () => {
|
|
4914
4917
|
const y = n.value;
|
|
4915
4918
|
return [
|
|
4916
4919
|
me(y[0]),
|
|
4917
4920
|
y[1] ? me(y[1]) : Zt(r.value.partialRange)
|
|
4918
4921
|
];
|
|
4919
|
-
},
|
|
4922
|
+
}, re = () => n.value[1] ? z() : me(Ge(n.value[0])), ve = () => (n.value || []).map((y) => me(y)), I = (y = !1) => (y || S(), a.modelAuto ? re() : s.value.enabled ? ve() : Array.isArray(n.value) ? Ra(() => z(), r.value.enabled) : me(Ge(n.value))), V = (y) => !y || Array.isArray(y) && !y.length ? null : a.timePicker ? P(Ge(y)) : a.monthPicker ? $(Ge(y)) : a.yearPicker ? Q(Ge(y)) : s.value.enabled ? N(Ge(y)) : a.weekPicker ? M(Ge(y)) : f(Ge(y)), se = (y) => {
|
|
4920
4923
|
const ue = V(y);
|
|
4921
4924
|
yn(Ge(ue)) ? (n.value = Ge(ue), X()) : (n.value = null, _.value = "");
|
|
4922
4925
|
}, p = () => {
|
|
@@ -4924,7 +4927,7 @@ const ji = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4924
4927
|
return `${y(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? y(n.value[1]) : ""}`;
|
|
4925
4928
|
}, w = () => t.value && n.value ? Array.isArray(n.value) ? p() : Tt(n.value, l.value.format) : v(n.value), C = () => n.value ? s.value.enabled ? n.value.map((y) => v(y)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? w() : v(n.value) : "", X = () => {
|
|
4926
4929
|
!a.format || typeof a.format == "string" || l.value.enabled && typeof l.value.format == "string" ? _.value = C() : _.value = a.format(n.value);
|
|
4927
|
-
},
|
|
4930
|
+
}, oe = (y) => {
|
|
4928
4931
|
if (a.utc) {
|
|
4929
4932
|
const ue = new Date(y);
|
|
4930
4933
|
return a.utc === "preserve" ? new Date(ue.getTime() + ue.getTimezoneOffset() * 6e4) : ue;
|
|
@@ -5020,8 +5023,8 @@ const gu = ({
|
|
|
5020
5023
|
}, W = (p, w) => {
|
|
5021
5024
|
o.position === Kt.left && k(p), o.position === Kt.right && v(p, w), o.position === Kt.center && (g.value.left = `${p + w / 2 - m.value.width / 2}px`);
|
|
5022
5025
|
}, Q = (p) => {
|
|
5023
|
-
const { width: w, height: C } = p.getBoundingClientRect(), { top: X, left:
|
|
5024
|
-
return { top: +X, left: +
|
|
5026
|
+
const { width: w, height: C } = p.getBoundingClientRect(), { top: X, left: oe } = o.altPosition ? o.altPosition(p) : b(p);
|
|
5027
|
+
return { top: +X, left: +oe, width: w, height: C };
|
|
5025
5028
|
}, B = () => {
|
|
5026
5029
|
g.value.left = "50%", g.value.top = "50%", g.value.transform = "translate(-50%, -50%)", g.value.position = "fixed", delete g.value.opacity;
|
|
5027
5030
|
}, P = () => {
|
|
@@ -5043,35 +5046,35 @@ const gu = ({
|
|
|
5043
5046
|
}, N = ({ inputEl: p, left: w, width: C }) => {
|
|
5044
5047
|
window.screen.width > 768 && !_.value && W(w, C), S(p);
|
|
5045
5048
|
}, M = (p) => {
|
|
5046
|
-
const { top: w, left: C, height: X, width:
|
|
5047
|
-
g.value.top = `${X + w + +o.offset}px`, u.value = !1, _.value || (g.value.left = `${C +
|
|
5049
|
+
const { top: w, left: C, height: X, width: oe } = Q(p);
|
|
5050
|
+
g.value.top = `${X + w + +o.offset}px`, u.value = !1, _.value || (g.value.left = `${C + oe / 2 - m.value.width / 2}px`), N({ inputEl: p, left: C, width: oe });
|
|
5048
5051
|
}, f = (p) => {
|
|
5049
5052
|
const { top: w, left: C, width: X } = Q(p);
|
|
5050
5053
|
g.value.top = `${w - +o.offset - m.value.height}px`, u.value = !0, N({ inputEl: p, left: C, width: X });
|
|
5051
5054
|
}, S = (p) => {
|
|
5052
5055
|
if (o.autoPosition) {
|
|
5053
|
-
const { left: w, width: C } = Q(p), { left: X, right:
|
|
5056
|
+
const { left: w, width: C } = Q(p), { left: X, right: oe } = m.value;
|
|
5054
5057
|
if (!_.value) {
|
|
5055
|
-
if (Math.abs(X) !== Math.abs(
|
|
5058
|
+
if (Math.abs(X) !== Math.abs(oe)) {
|
|
5056
5059
|
if (X <= 0)
|
|
5057
5060
|
return _.value = !0, k(w);
|
|
5058
|
-
if (
|
|
5061
|
+
if (oe >= document.documentElement.clientWidth)
|
|
5059
5062
|
return _.value = !0, v(w, C);
|
|
5060
5063
|
}
|
|
5061
5064
|
return W(w, C);
|
|
5062
5065
|
}
|
|
5063
5066
|
}
|
|
5064
|
-
},
|
|
5067
|
+
}, z = () => {
|
|
5065
5068
|
const p = Ue(t);
|
|
5066
5069
|
if (p) {
|
|
5067
|
-
const { height: w } = m.value, { top: C, height: X } = p.getBoundingClientRect(),
|
|
5068
|
-
return w <=
|
|
5070
|
+
const { height: w } = m.value, { top: C, height: X } = p.getBoundingClientRect(), oe = window.innerHeight - C - X, me = C;
|
|
5071
|
+
return w <= oe ? zt.bottom : w > oe && w <= me ? zt.top : oe >= me ? zt.bottom : zt.top;
|
|
5069
5072
|
}
|
|
5070
5073
|
return zt.bottom;
|
|
5071
|
-
},
|
|
5074
|
+
}, re = (p) => z() === zt.bottom ? M(p) : f(p), ve = () => {
|
|
5072
5075
|
const p = Ue(t);
|
|
5073
5076
|
if (p)
|
|
5074
|
-
return o.autoPosition ?
|
|
5077
|
+
return o.autoPosition ? re(p) : M(p);
|
|
5075
5078
|
}, I = function(p) {
|
|
5076
5079
|
if (p) {
|
|
5077
5080
|
const w = p.scrollHeight > p.clientHeight, C = window.getComputedStyle(p).overflowY.indexOf("hidden") !== -1;
|
|
@@ -5099,7 +5102,7 @@ const gu = ({
|
|
|
5099
5102
|
setMenuPosition: $,
|
|
5100
5103
|
getScrollableParent: V,
|
|
5101
5104
|
shadowRender: (p, w) => {
|
|
5102
|
-
var C, X,
|
|
5105
|
+
var C, X, oe;
|
|
5103
5106
|
const me = document.createElement("div"), E = (C = Ue(t)) == null ? void 0 : C.getBoundingClientRect();
|
|
5104
5107
|
me.setAttribute("id", "dp--temp-container");
|
|
5105
5108
|
const Y = (X = n.value) != null && X.clientWidth ? n.value : document.body;
|
|
@@ -5115,7 +5118,7 @@ const gu = ({
|
|
|
5115
5118
|
Object.keys(s).filter((le) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(le)).map((le) => [le, s[le]])
|
|
5116
5119
|
)
|
|
5117
5120
|
);
|
|
5118
|
-
Fn(O, me), m.value = (
|
|
5121
|
+
Fn(O, me), m.value = (oe = O.el) == null ? void 0 : oe.getBoundingClientRect(), Fn(null, me), Y.removeChild(me);
|
|
5119
5122
|
}
|
|
5120
5123
|
};
|
|
5121
5124
|
}, Et = [
|
|
@@ -5266,32 +5269,32 @@ const gu = ({
|
|
|
5266
5269
|
return !1;
|
|
5267
5270
|
}
|
|
5268
5271
|
return !1;
|
|
5269
|
-
}, M = (i) => Fa(e.value, _.value, i.value), f = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, S = () => a.modelAuto ? El(a.internalModelValue) : !0,
|
|
5272
|
+
}, M = (i) => Fa(e.value, _.value, i.value), f = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, S = () => a.modelAuto ? El(a.internalModelValue) : !0, z = (i) => {
|
|
5270
5273
|
if (a.weekPicker)
|
|
5271
5274
|
return !1;
|
|
5272
5275
|
const O = s.value.enabled ? !W(i) && !W(i, !1) : !0;
|
|
5273
5276
|
return !m(i.value) && !B(i) && !(!i.current && a.hideOffsetDates) && O;
|
|
5274
|
-
},
|
|
5277
|
+
}, re = (i) => s.value.enabled ? a.modelAuto ? f() && B(i) : !1 : B(i), ve = (i) => l.value ? qi(i.value, o.value.highlight) : !1, I = (i) => {
|
|
5275
5278
|
const O = m(i.value);
|
|
5276
5279
|
return O && (typeof l.value == "function" ? !l.value(i.value, O) : !l.value.options.highlightDisabled);
|
|
5277
5280
|
}, V = (i) => {
|
|
5278
5281
|
var O;
|
|
5279
5282
|
return typeof l.value == "function" ? l.value(i.value) : (O = l.value.weekdays) == null ? void 0 : O.includes(i.value.getDay());
|
|
5280
5283
|
}, se = (i) => (s.value.enabled || a.weekPicker) && (!(t.value.count > 0) || i.current) && S() && !(!i.current && a.hideOffsetDates) && !B(i) ? M(i) : !1, p = (i) => {
|
|
5281
|
-
const { isRangeStart: O, isRangeEnd: le } =
|
|
5284
|
+
const { isRangeStart: O, isRangeEnd: le } = oe(i), te = s.value.enabled ? O || le : !1;
|
|
5282
5285
|
return {
|
|
5283
5286
|
dp__cell_offset: !i.current,
|
|
5284
5287
|
dp__pointer: !a.disabled && !(!i.current && a.hideOffsetDates) && !m(i.value),
|
|
5285
5288
|
dp__cell_disabled: m(i.value),
|
|
5286
|
-
dp__cell_highlight: !I(i) && (ve(i) || V(i)) && !
|
|
5287
|
-
dp__cell_highlight_active: !I(i) && (ve(i) || V(i)) &&
|
|
5289
|
+
dp__cell_highlight: !I(i) && (ve(i) || V(i)) && !re(i) && !te && !N(i) && !(se(i) && a.weekPicker) && !le,
|
|
5290
|
+
dp__cell_highlight_active: !I(i) && (ve(i) || V(i)) && re(i),
|
|
5288
5291
|
dp__today: !a.noToday && De(i.value, g.value) && i.current,
|
|
5289
5292
|
"dp--past": Fe(i.value, g.value),
|
|
5290
5293
|
"dp--future": We(i.value, g.value)
|
|
5291
5294
|
};
|
|
5292
5295
|
}, w = (i) => ({
|
|
5293
|
-
dp__active_date:
|
|
5294
|
-
dp__date_hover:
|
|
5296
|
+
dp__active_date: re(i),
|
|
5297
|
+
dp__date_hover: z(i)
|
|
5295
5298
|
}), C = (i) => {
|
|
5296
5299
|
if (e.value && !Array.isArray(e.value)) {
|
|
5297
5300
|
const O = xt(e.value, a.weekStart);
|
|
@@ -5319,11 +5322,11 @@ const gu = ({
|
|
|
5319
5322
|
return {
|
|
5320
5323
|
...E(i)
|
|
5321
5324
|
};
|
|
5322
|
-
},
|
|
5325
|
+
}, oe = (i) => {
|
|
5323
5326
|
const O = t.value.count > 0 ? i.current && W(i) && S() : W(i) && S(), le = t.value.count > 0 ? i.current && W(i, !1) && S() : W(i, !1) && S();
|
|
5324
5327
|
return { isRangeStart: O, isRangeEnd: le };
|
|
5325
5328
|
}, me = (i) => {
|
|
5326
|
-
const { isRangeStart: O, isRangeEnd: le } =
|
|
5329
|
+
const { isRangeStart: O, isRangeEnd: le } = oe(i);
|
|
5327
5330
|
return {
|
|
5328
5331
|
dp__range_start: O,
|
|
5329
5332
|
dp__range_end: le,
|
|
@@ -5350,7 +5353,7 @@ const gu = ({
|
|
|
5350
5353
|
};
|
|
5351
5354
|
}, Ht = (e) => {
|
|
5352
5355
|
const { defaultedFilters: a, defaultedRange: t, propDates: n, defaultedMultiDates: l } = Ne(e), r = (I) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(U(I)) : !!Ba(I, n.value.disabledDates) : !1, o = (I) => {
|
|
5353
|
-
const V = n.value.maxDate ? We(I, n.value.maxDate) : !1, se = n.value.minDate ? Fe(I, n.value.minDate) : !1, p = r(I), w = a.value.months.map((E) => +E).includes(Me(I)), C = e.disabledWeekDays.length ? e.disabledWeekDays.some((E) => +E === Ys(I)) : !1, X = u(I),
|
|
5356
|
+
const V = n.value.maxDate ? We(I, n.value.maxDate) : !1, se = n.value.minDate ? Fe(I, n.value.minDate) : !1, p = r(I), w = a.value.months.map((E) => +E).includes(Me(I)), C = e.disabledWeekDays.length ? e.disabledWeekDays.some((E) => +E === Ys(I)) : !1, X = u(I), oe = we(I), me = oe < +e.yearRange[0] || oe > +e.yearRange[1];
|
|
5354
5357
|
return !(V || se || p || w || me || C || X);
|
|
5355
5358
|
}, s = (I, V) => Fe(...Bt(n.value.minDate, I, V)) || De(...Bt(n.value.minDate, I, V)), m = (I, V) => We(...Bt(n.value.maxDate, I, V)) || De(...Bt(n.value.maxDate, I, V)), _ = (I, V, se) => {
|
|
5356
5359
|
let p = !1;
|
|
@@ -5366,7 +5369,7 @@ const gu = ({
|
|
|
5366
5369
|
return !0;
|
|
5367
5370
|
}, k = (I, V) => !!(Array.isArray(I) && I[V] && (t.value.maxRange || t.value.minRange) && v(I[V])), W = (I, V, se = 0) => {
|
|
5368
5371
|
if (k(V, se) && v(I)) {
|
|
5369
|
-
const p = pl(I, V[se]), w = Nl(V[se], I), C = w.length === 1 ? 0 : w.filter((
|
|
5372
|
+
const p = pl(I, V[se]), w = Nl(V[se], I), C = w.length === 1 ? 0 : w.filter((oe) => T(oe)).length, X = Math.abs(p) - (t.value.minMaxRawRange ? 0 : C);
|
|
5370
5373
|
if (t.value.minRange && t.value.maxRange)
|
|
5371
5374
|
return X >= +t.value.minRange && X <= +t.value.maxRange;
|
|
5372
5375
|
if (t.value.minRange)
|
|
@@ -5404,7 +5407,7 @@ const gu = ({
|
|
|
5404
5407
|
Ge(se),
|
|
5405
5408
|
V
|
|
5406
5409
|
)), f(I, V);
|
|
5407
|
-
},
|
|
5410
|
+
}, z = (I) => {
|
|
5408
5411
|
if (!e.monthPicker)
|
|
5409
5412
|
return !0;
|
|
5410
5413
|
let V = !0;
|
|
@@ -5422,7 +5425,7 @@ const gu = ({
|
|
|
5422
5425
|
V = Fe(se, p) || De(se, p);
|
|
5423
5426
|
}
|
|
5424
5427
|
return V;
|
|
5425
|
-
},
|
|
5428
|
+
}, re = H(() => (I) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : S(I)), ve = H(() => (I) => e.monthPicker ? Array.isArray(I) && (t.value.enabled || l.value.enabled) ? !I.filter((V) => !z(V)).length : z(I) : !0);
|
|
5426
5429
|
return {
|
|
5427
5430
|
isDisabled: T,
|
|
5428
5431
|
validateDate: o,
|
|
@@ -5430,7 +5433,7 @@ const gu = ({
|
|
|
5430
5433
|
isDateRangeAllowed: b,
|
|
5431
5434
|
checkMinMaxRange: W,
|
|
5432
5435
|
isValidTime: S,
|
|
5433
|
-
isTimeValid:
|
|
5436
|
+
isTimeValid: re,
|
|
5434
5437
|
isMonthValid: ve
|
|
5435
5438
|
};
|
|
5436
5439
|
}, Va = () => {
|
|
@@ -5670,9 +5673,9 @@ const gu = ({
|
|
|
5670
5673
|
l.formatLocale
|
|
5671
5674
|
);
|
|
5672
5675
|
}, N = (w) => {
|
|
5673
|
-
const { rangeSeparator: C } = r.value, [X,
|
|
5676
|
+
const { rangeSeparator: C } = r.value, [X, oe] = w.split(`${C}`);
|
|
5674
5677
|
if (X) {
|
|
5675
|
-
const me = $(X.trim()), E =
|
|
5678
|
+
const me = $(X.trim()), E = oe ? $(oe.trim()) : null;
|
|
5676
5679
|
if (la(me, E))
|
|
5677
5680
|
return;
|
|
5678
5681
|
const Y = me && E ? [me, E] : [me];
|
|
@@ -5692,9 +5695,9 @@ const gu = ({
|
|
|
5692
5695
|
var C;
|
|
5693
5696
|
const X = typeof w == "string" ? w : (C = w.target) == null ? void 0 : C.value;
|
|
5694
5697
|
X !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), f(X), n("set-input-date", v.value)) : P(), Q.value = !1, n("update:input-value", X);
|
|
5695
|
-
},
|
|
5698
|
+
}, z = (w) => {
|
|
5696
5699
|
r.value.enabled ? (f(w.target.value), r.value.enterSubmit && yn(v.value) && l.inputValue !== "" ? (n("set-input-date", v.value, !0), v.value = null) : r.value.enterSubmit && l.inputValue === "" && (v.value = null, n("clear"))) : I(w);
|
|
5697
|
-
},
|
|
5700
|
+
}, re = (w) => {
|
|
5698
5701
|
r.value.enabled && r.value.tabSubmit && f(w.target.value), r.value.tabSubmit && yn(v.value) && l.inputValue !== "" ? (n("set-input-date", v.value, !0, !0), v.value = null) : r.value.tabSubmit && l.inputValue === "" && (v.value = null, n("clear", !0));
|
|
5699
5702
|
}, ve = () => {
|
|
5700
5703
|
W.value = !0, n("focus"), mt().then(() => {
|
|
@@ -5708,7 +5711,7 @@ const gu = ({
|
|
|
5708
5711
|
}, se = (w) => {
|
|
5709
5712
|
It(w, m.value, !0), n("clear");
|
|
5710
5713
|
}, p = (w) => {
|
|
5711
|
-
if (w.key === "Tab" &&
|
|
5714
|
+
if (w.key === "Tab" && re(w), w.key === "Enter" && z(w), !r.value.enabled) {
|
|
5712
5715
|
if (w.code === "Tab")
|
|
5713
5716
|
return;
|
|
5714
5717
|
w.preventDefault();
|
|
@@ -5732,8 +5735,8 @@ const gu = ({
|
|
|
5732
5735
|
value: e.inputValue,
|
|
5733
5736
|
isMenuOpen: e.isMenuOpen,
|
|
5734
5737
|
onInput: S,
|
|
5735
|
-
onEnter:
|
|
5736
|
-
onTab:
|
|
5738
|
+
onEnter: z,
|
|
5739
|
+
onTab: re,
|
|
5737
5740
|
onClear: se,
|
|
5738
5741
|
onBlur: V,
|
|
5739
5742
|
onKeypress: p,
|
|
@@ -5767,20 +5770,20 @@ const gu = ({
|
|
|
5767
5770
|
onKeydown: p,
|
|
5768
5771
|
onPaste: M
|
|
5769
5772
|
}, null, 42, Du)),
|
|
5770
|
-
|
|
5771
|
-
onClick: C[2] || (C[2] = (
|
|
5773
|
+
j("div", {
|
|
5774
|
+
onClick: C[2] || (C[2] = (oe) => n("toggle"))
|
|
5772
5775
|
}, [
|
|
5773
5776
|
w.$slots["input-icon"] && !w.hideInputIcon ? (h(), A("span", {
|
|
5774
5777
|
key: 0,
|
|
5775
5778
|
class: "dp__input_icon",
|
|
5776
|
-
onClick: C[0] || (C[0] = (
|
|
5779
|
+
onClick: C[0] || (C[0] = (oe) => n("toggle"))
|
|
5777
5780
|
}, [
|
|
5778
5781
|
ne(w.$slots, "input-icon")
|
|
5779
5782
|
])) : L("", !0),
|
|
5780
5783
|
!w.$slots["input-icon"] && !w.hideInputIcon && !w.$slots["dp-input"] ? (h(), be(c(ia), {
|
|
5781
5784
|
key: 1,
|
|
5782
5785
|
class: "dp__input_icon dp__input_icons",
|
|
5783
|
-
onClick: C[1] || (C[1] = (
|
|
5786
|
+
onClick: C[1] || (C[1] = (oe) => n("toggle"))
|
|
5784
5787
|
})) : L("", !0)
|
|
5785
5788
|
]),
|
|
5786
5789
|
w.$slots["clear-icon"] && e.inputValue && w.clearable && !w.disabled && !w.readonly ? (h(), A("span", Tu, [
|
|
@@ -5790,7 +5793,7 @@ const gu = ({
|
|
|
5790
5793
|
key: 3,
|
|
5791
5794
|
class: "dp__clear_icon dp__input_icons",
|
|
5792
5795
|
"data-test": "clear-icon",
|
|
5793
|
-
onClick: C[3] || (C[3] = Dt((
|
|
5796
|
+
onClick: C[3] || (C[3] = Dt((oe) => se(oe), ["prevent"]))
|
|
5794
5797
|
})) : L("", !0)
|
|
5795
5798
|
])) : L("", !0)
|
|
5796
5799
|
]);
|
|
@@ -5834,17 +5837,17 @@ const gu = ({
|
|
|
5834
5837
|
), S = () => {
|
|
5835
5838
|
const p = r.value;
|
|
5836
5839
|
return n.timePicker || n.monthPicker, p(Ge(n.internalModelValue));
|
|
5837
|
-
},
|
|
5840
|
+
}, z = () => {
|
|
5838
5841
|
const p = n.internalModelValue;
|
|
5839
|
-
return o.value.count > 0 ? `${
|
|
5840
|
-
},
|
|
5842
|
+
return o.value.count > 0 ? `${re(p[0])} - ${re(p[1])}` : [re(p[0]), re(p[1])];
|
|
5843
|
+
}, re = (p) => Hl(
|
|
5841
5844
|
p,
|
|
5842
5845
|
r.value,
|
|
5843
5846
|
n.formatLocale,
|
|
5844
5847
|
s.value.rangeSeparator,
|
|
5845
5848
|
n.modelAuto,
|
|
5846
5849
|
u()
|
|
5847
|
-
), ve = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ?
|
|
5850
|
+
), ve = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? z() : g.value.enabled ? n.internalModelValue.map((p) => `${re(p)}`) : n.modelAuto ? `${re(n.internalModelValue[0])}` : `${re(n.internalModelValue[0])} -` : re(n.internalModelValue) : S()), I = () => g.value.enabled ? "; " : " - ", V = H(
|
|
5848
5851
|
() => Array.isArray(ve.value) ? ve.value.join(I()) : ve.value
|
|
5849
5852
|
), se = () => {
|
|
5850
5853
|
T.value(n.internalModelValue) && b.value(n.internalModelValue) && M.value ? t("select-date") : t("invalid-select");
|
|
@@ -5874,7 +5877,7 @@ const gu = ({
|
|
|
5874
5877
|
dt(ke(V.value), 1)
|
|
5875
5878
|
], 64)) : L("", !0)
|
|
5876
5879
|
], 12, xu)) : L("", !0),
|
|
5877
|
-
|
|
5880
|
+
j("div", {
|
|
5878
5881
|
ref_key: "actionBtnContainer",
|
|
5879
5882
|
ref: P,
|
|
5880
5883
|
class: "dp__action_buttons",
|
|
@@ -5964,7 +5967,7 @@ const gu = ({
|
|
|
5964
5967
|
() => s.useRelative ? { height: `${s.height}px`, width: "260px" } : void 0
|
|
5965
5968
|
), S = H(() => ({
|
|
5966
5969
|
dp__overlay_col: !0
|
|
5967
|
-
})),
|
|
5970
|
+
})), z = H(
|
|
5968
5971
|
() => ({
|
|
5969
5972
|
dp__btn: !0,
|
|
5970
5973
|
dp__button: !0,
|
|
@@ -5972,7 +5975,7 @@ const gu = ({
|
|
|
5972
5975
|
dp__over_action_scroll: T.value,
|
|
5973
5976
|
dp__button_bottom: s.isLast
|
|
5974
5977
|
})
|
|
5975
|
-
),
|
|
5978
|
+
), re = H(() => {
|
|
5976
5979
|
var Y, i;
|
|
5977
5980
|
return {
|
|
5978
5981
|
dp__overlay_container: !0,
|
|
@@ -6006,7 +6009,7 @@ const gu = ({
|
|
|
6006
6009
|
s.arrowNavigation || It(Y, g.value, !0);
|
|
6007
6010
|
}, X = (Y) => {
|
|
6008
6011
|
W.value = Y, o("hover-value", Y);
|
|
6009
|
-
},
|
|
6012
|
+
}, oe = () => {
|
|
6010
6013
|
if (V(), !s.isLast) {
|
|
6011
6014
|
const Y = ji(s.menuWrapRef ?? null, "action-row");
|
|
6012
6015
|
if (Y) {
|
|
@@ -6033,7 +6036,7 @@ const gu = ({
|
|
|
6033
6036
|
if (Y.key === Be.enter)
|
|
6034
6037
|
return V();
|
|
6035
6038
|
if (Y.key === Be.tab)
|
|
6036
|
-
return
|
|
6039
|
+
return oe();
|
|
6037
6040
|
};
|
|
6038
6041
|
return a({ focusGrid: N }), (Y, i) => {
|
|
6039
6042
|
var O;
|
|
@@ -6046,14 +6049,14 @@ const gu = ({
|
|
|
6046
6049
|
tabindex: "0",
|
|
6047
6050
|
onKeydown: me
|
|
6048
6051
|
}, [
|
|
6049
|
-
|
|
6052
|
+
j("div", {
|
|
6050
6053
|
ref_key: "containerRef",
|
|
6051
6054
|
ref: P,
|
|
6052
|
-
class: ye(
|
|
6055
|
+
class: ye(re.value),
|
|
6053
6056
|
role: "grid",
|
|
6054
6057
|
style: tt({ "--dp-overlay-height": `${B.value}px` })
|
|
6055
6058
|
}, [
|
|
6056
|
-
|
|
6059
|
+
j("div", Au, [
|
|
6057
6060
|
ne(Y.$slots, "header")
|
|
6058
6061
|
]),
|
|
6059
6062
|
Y.$slots.overlay ? ne(Y.$slots, "overlay", { key: 0 }) : (h(!0), A(_e, { key: 1 }, Ee(Y.items, (le, te) => (h(), A("div", {
|
|
@@ -6075,7 +6078,7 @@ const gu = ({
|
|
|
6075
6078
|
onKeydown: (ge) => c(st)(ge, () => I(y), !0),
|
|
6076
6079
|
onMouseover: (ge) => X(y.value)
|
|
6077
6080
|
}, [
|
|
6078
|
-
|
|
6081
|
+
j("div", {
|
|
6079
6082
|
class: ye(y.className)
|
|
6080
6083
|
}, [
|
|
6081
6084
|
Y.$slots.item ? ne(Y.$slots, "item", {
|
|
@@ -6095,7 +6098,7 @@ const gu = ({
|
|
|
6095
6098
|
ref: Q,
|
|
6096
6099
|
type: "button",
|
|
6097
6100
|
"aria-label": (O = c(m)) == null ? void 0 : O.toggleOverlay,
|
|
6098
|
-
class: ye(
|
|
6101
|
+
class: ye(z.value),
|
|
6099
6102
|
tabindex: "0",
|
|
6100
6103
|
onClick: V,
|
|
6101
6104
|
onKeydown: E
|
|
@@ -6162,7 +6165,7 @@ const gu = ({
|
|
|
6162
6165
|
onClick: r[0] || (r[0] = (o) => l.$emit("activate")),
|
|
6163
6166
|
onKeydown: r[1] || (r[1] = (o) => c(st)(o, () => l.$emit("activate"), !0))
|
|
6164
6167
|
}, [
|
|
6165
|
-
|
|
6168
|
+
j("span", {
|
|
6166
6169
|
class: ye(["dp__inner_nav", { dp__inner_nav_disabled: l.disabled }])
|
|
6167
6170
|
}, [
|
|
6168
6171
|
ne(l.$slots, "default")
|
|
@@ -6204,7 +6207,7 @@ const gu = ({
|
|
|
6204
6207
|
]),
|
|
6205
6208
|
_: 3
|
|
6206
6209
|
}, 8, ["aria-label", "disabled"])) : L("", !0),
|
|
6207
|
-
|
|
6210
|
+
j("button", {
|
|
6208
6211
|
ref: "mpYearButtonRef",
|
|
6209
6212
|
class: "dp__btn dp--year-select",
|
|
6210
6213
|
type: "button",
|
|
@@ -6307,9 +6310,9 @@ const gu = ({
|
|
|
6307
6310
|
const S = Se(ht(/* @__PURE__ */ new Date()), {
|
|
6308
6311
|
month: m.value(M),
|
|
6309
6312
|
year: s.value(M)
|
|
6310
|
-
}),
|
|
6313
|
+
}), z = f ? yl(S) : bn(S);
|
|
6311
6314
|
return Vl(
|
|
6312
|
-
|
|
6315
|
+
z,
|
|
6313
6316
|
t.value.maxDate,
|
|
6314
6317
|
t.value.minDate,
|
|
6315
6318
|
r.preventMinMaxNavigation,
|
|
@@ -6341,12 +6344,12 @@ const gu = ({
|
|
|
6341
6344
|
n.value[f].year = M, _("update-month-year", { instance: f, year: M, month: n.value[f].month }), e.value.count && !e.value.solo && v(f);
|
|
6342
6345
|
}, B = H(() => (M) => oa(g.value, (f) => {
|
|
6343
6346
|
var S;
|
|
6344
|
-
const
|
|
6347
|
+
const z = s.value(M) === f.value, re = Ma(
|
|
6345
6348
|
f.value,
|
|
6346
6349
|
sa(t.value.minDate),
|
|
6347
6350
|
sa(t.value.maxDate)
|
|
6348
6351
|
) || ((S = o.value.years) == null ? void 0 : S.includes(s.value(M))), ve = Yn(a.value, f.value);
|
|
6349
|
-
return { active:
|
|
6352
|
+
return { active: z, disabled: re, highlighted: ve };
|
|
6350
6353
|
})), P = (M, f) => {
|
|
6351
6354
|
Q(M, f), N(f);
|
|
6352
6355
|
}, $ = (M, f = !1) => {
|
|
@@ -6385,7 +6388,7 @@ const gu = ({
|
|
|
6385
6388
|
toggleYearPicker: M,
|
|
6386
6389
|
handleYearSelect: f,
|
|
6387
6390
|
handleYear: S,
|
|
6388
|
-
isDisabled:
|
|
6391
|
+
isDisabled: z
|
|
6389
6392
|
} = Gl({
|
|
6390
6393
|
modelValue: T,
|
|
6391
6394
|
multiCalendars: t,
|
|
@@ -6401,7 +6404,7 @@ const gu = ({
|
|
|
6401
6404
|
qe(() => {
|
|
6402
6405
|
e.startDate && (T.value && e.focusStartDate || !T.value) && P(we(U(e.startDate)), 0);
|
|
6403
6406
|
});
|
|
6404
|
-
const
|
|
6407
|
+
const re = (i) => i ? { month: Me(i), year: we(i) } : { month: null, year: null }, ve = () => T.value ? Array.isArray(T.value) ? T.value.map((i) => re(i)) : re(T.value) : re(), I = (i, O) => {
|
|
6405
6408
|
const le = k.value[i], te = ve();
|
|
6406
6409
|
return Array.isArray(te) ? te.some((y) => y.year === (le == null ? void 0 : le.year) && y.month === O) : (le == null ? void 0 : le.year) === te.year && O === te.month;
|
|
6407
6410
|
}, V = (i, O, le) => {
|
|
@@ -6434,9 +6437,9 @@ const gu = ({
|
|
|
6434
6437
|
o.value.fixedEnd || o.value.fixedStart ? T.value = Ul(le, T, a, o) : T.value ? B(le, T.value) && (T.value = In(T, w(i, O), a)) : T.value = [w(i, O)], mt().then(() => {
|
|
6435
6438
|
za(T.value, a, e.autoApply, e.modelAuto);
|
|
6436
6439
|
});
|
|
6437
|
-
},
|
|
6440
|
+
}, oe = (i, O) => {
|
|
6438
6441
|
Bn(w(i, O), T, u.value.limit), a("auto-apply", !0);
|
|
6439
|
-
}, me = (i, O) => (k.value[O].month = i, Y(O, k.value[O].year, i), u.value.enabled ?
|
|
6442
|
+
}, me = (i, O) => (k.value[O].month = i, Y(O, k.value[O].year, i), u.value.enabled ? oe(i, O) : o.value.enabled ? X(i, O) : C(i, O)), E = (i, O) => {
|
|
6440
6443
|
P(i, O), Y(O, i, null);
|
|
6441
6444
|
}, Y = (i, O, le) => {
|
|
6442
6445
|
let te = le;
|
|
@@ -6450,7 +6453,7 @@ const gu = ({
|
|
|
6450
6453
|
groupedMonths: p,
|
|
6451
6454
|
groupedYears: $,
|
|
6452
6455
|
year: b,
|
|
6453
|
-
isDisabled:
|
|
6456
|
+
isDisabled: z,
|
|
6454
6457
|
defaultedMultiCalendars: t,
|
|
6455
6458
|
defaultedAriaLabels: n,
|
|
6456
6459
|
defaultedTransitions: l,
|
|
@@ -6531,21 +6534,21 @@ const gu = ({
|
|
|
6531
6534
|
collapse: f.collapse,
|
|
6532
6535
|
stretch: ""
|
|
6533
6536
|
}, {
|
|
6534
|
-
default: pe(({ instance:
|
|
6537
|
+
default: pe(({ instance: z }) => [
|
|
6535
6538
|
f.$slots["top-extra"] ? ne(f.$slots, "top-extra", {
|
|
6536
6539
|
key: 0,
|
|
6537
6540
|
value: f.internalModelValue
|
|
6538
6541
|
}) : L("", !0),
|
|
6539
6542
|
f.$slots["month-year"] ? ne(f.$slots, "month-year", Qe(Le({ key: 1 }, {
|
|
6540
6543
|
year: c(_),
|
|
6541
|
-
months: c(s)(
|
|
6542
|
-
years: c(m)(
|
|
6544
|
+
months: c(s)(z),
|
|
6545
|
+
years: c(m)(z),
|
|
6543
6546
|
selectMonth: c(Q),
|
|
6544
6547
|
selectYear: c(B),
|
|
6545
|
-
instance:
|
|
6548
|
+
instance: z
|
|
6546
6549
|
}))) : (h(), be(xa, {
|
|
6547
6550
|
key: 2,
|
|
6548
|
-
items: c(s)(
|
|
6551
|
+
items: c(s)(z),
|
|
6549
6552
|
"arrow-navigation": f.arrowNavigation,
|
|
6550
6553
|
"is-last": f.autoApply && !c(T).keepActionRow,
|
|
6551
6554
|
"esc-close": f.escClose,
|
|
@@ -6554,24 +6557,24 @@ const gu = ({
|
|
|
6554
6557
|
"no-overlay-focus": !!(f.noOverlayFocus || f.textInput),
|
|
6555
6558
|
"use-relative": "",
|
|
6556
6559
|
type: "month",
|
|
6557
|
-
onSelected: (
|
|
6558
|
-
onHoverValue: (
|
|
6560
|
+
onSelected: (re) => c(Q)(re, z),
|
|
6561
|
+
onHoverValue: (re) => c(W)(re, z)
|
|
6559
6562
|
}, at({
|
|
6560
6563
|
header: pe(() => [
|
|
6561
6564
|
Oe(jl, Le(f.$props, {
|
|
6562
|
-
items: c(m)(
|
|
6563
|
-
instance:
|
|
6564
|
-
"show-year-picker": c(b)[
|
|
6565
|
-
year: c(_)(
|
|
6566
|
-
"is-disabled": (
|
|
6567
|
-
onHandleYear: (
|
|
6568
|
-
onYearSelect: (
|
|
6569
|
-
onToggleYearPicker: (
|
|
6565
|
+
items: c(m)(z),
|
|
6566
|
+
instance: z,
|
|
6567
|
+
"show-year-picker": c(b)[z],
|
|
6568
|
+
year: c(_)(z),
|
|
6569
|
+
"is-disabled": (re) => c(g)(z, re),
|
|
6570
|
+
onHandleYear: (re) => c(N)(z, re),
|
|
6571
|
+
onYearSelect: (re) => c($)(re, z),
|
|
6572
|
+
onToggleYearPicker: (re) => c(P)(z, re == null ? void 0 : re.flow, re == null ? void 0 : re.show)
|
|
6570
6573
|
}), at({ _: 2 }, [
|
|
6571
|
-
Ee(c(r), (
|
|
6572
|
-
name:
|
|
6574
|
+
Ee(c(r), (re, ve) => ({
|
|
6575
|
+
name: re,
|
|
6573
6576
|
fn: pe((I) => [
|
|
6574
|
-
ne(f.$slots,
|
|
6577
|
+
ne(f.$slots, re, Qe(ot(I)))
|
|
6575
6578
|
])
|
|
6576
6579
|
}))
|
|
6577
6580
|
]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
|
|
@@ -6580,10 +6583,10 @@ const gu = ({
|
|
|
6580
6583
|
}, [
|
|
6581
6584
|
f.$slots["month-overlay-value"] ? {
|
|
6582
6585
|
name: "item",
|
|
6583
|
-
fn: pe(({ item:
|
|
6586
|
+
fn: pe(({ item: re }) => [
|
|
6584
6587
|
ne(f.$slots, "month-overlay-value", {
|
|
6585
|
-
text:
|
|
6586
|
-
value:
|
|
6588
|
+
text: re.text,
|
|
6589
|
+
value: re.value
|
|
6587
6590
|
})
|
|
6588
6591
|
]),
|
|
6589
6592
|
key: "0"
|
|
@@ -6680,7 +6683,7 @@ const gu = ({
|
|
|
6680
6683
|
}), Fu = {
|
|
6681
6684
|
key: 0,
|
|
6682
6685
|
class: "dp__time_input"
|
|
6683
|
-
}, Vu = ["data-test", "aria-label", "onKeydown", "onClick", "onMousedown"], Hu = /* @__PURE__ */
|
|
6686
|
+
}, Vu = ["data-test", "aria-label", "onKeydown", "onClick", "onMousedown"], Hu = /* @__PURE__ */ j("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1), Wu = /* @__PURE__ */ j("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1), zu = ["aria-label", "disabled", "data-test", "onKeydown", "onClick"], ju = ["data-test", "aria-label", "onKeydown", "onClick", "onMousedown"], qu = /* @__PURE__ */ j("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1), Uu = /* @__PURE__ */ j("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1), Gu = { key: 0 }, Qu = ["aria-label"], Xu = /* @__PURE__ */ Te({
|
|
6684
6687
|
compatConfig: {
|
|
6685
6688
|
MODE: 3
|
|
6686
6689
|
},
|
|
@@ -6729,7 +6732,7 @@ const gu = ({
|
|
|
6729
6732
|
return !l.validateTime(d, F);
|
|
6730
6733
|
}
|
|
6731
6734
|
return !1;
|
|
6732
|
-
}, S = H(() => (d) => !E(+l[d] + +l[`${d}Increment`], d) || f(d, !0)),
|
|
6735
|
+
}, S = H(() => (d) => !E(+l[d] + +l[`${d}Increment`], d) || f(d, !0)), z = H(() => (d) => !E(+l[d] - +l[`${d}Increment`], d) || f(d, !1)), re = (d, q) => dl(Se(U(), d), q), ve = (d, q) => Ei(Se(U(), d), q), I = H(
|
|
6733
6736
|
() => ({
|
|
6734
6737
|
dp__time_col: !0,
|
|
6735
6738
|
dp__time_col_block: !l.timePickerInline,
|
|
@@ -6763,12 +6766,12 @@ const gu = ({
|
|
|
6763
6766
|
for (let he = D; he < ce; he += F)
|
|
6764
6767
|
J.push({ value: l.is24 ? he : C(he, d), text: he < 10 ? `0${he}` : `${he}` });
|
|
6765
6768
|
return d === "hours" && !l.is24 && J.unshift({ value: k.value === "PM" ? 12 : 0, text: "12" }), oa(J, (he) => ({ active: !1, disabled: _.value.times[d].includes(he.value) || !E(he.value, d) || w(d, he.value) || M(d, he.value) }));
|
|
6766
|
-
},
|
|
6769
|
+
}, oe = (d) => d >= 0 ? d : 59, me = (d) => d >= 0 ? d : 23, E = (d, q) => {
|
|
6767
6770
|
const ce = l.minTime ? P(an(l.minTime)) : null, F = l.maxTime ? P(an(l.maxTime)) : null, D = P(
|
|
6768
6771
|
an(
|
|
6769
6772
|
N.value,
|
|
6770
6773
|
q,
|
|
6771
|
-
q === "minutes" || q === "seconds" ?
|
|
6774
|
+
q === "minutes" || q === "seconds" ? oe(d) : me(d)
|
|
6772
6775
|
)
|
|
6773
6776
|
);
|
|
6774
6777
|
return ce && F ? (ka(D, F) || ea(D, F)) && (la(D, ce) || ea(D, ce)) : ce ? la(D, ce) || ea(D, ce) : F ? ka(D, F) || ea(D, F) : !0;
|
|
@@ -6777,7 +6780,7 @@ const gu = ({
|
|
|
6777
6780
|
}, O = (d) => d === "hours" ? At : d === "minutes" ? Nt : na, le = () => {
|
|
6778
6781
|
B.value && clearTimeout(B.value);
|
|
6779
6782
|
}, te = (d, q = !0, ce) => {
|
|
6780
|
-
const F = q ?
|
|
6783
|
+
const F = q ? re : ve, D = q ? +l[`${d}Increment`] : -+l[`${d}Increment`];
|
|
6781
6784
|
E(+l[d] + D, d) && n(
|
|
6782
6785
|
`update:${d}`,
|
|
6783
6786
|
O(d)(F({ [d]: +l[d] }, { [d]: +l[`${d}Increment`] }))
|
|
@@ -6810,7 +6813,7 @@ const gu = ({
|
|
|
6810
6813
|
F.separator ? (h(), A(_e, { key: 0 }, [
|
|
6811
6814
|
dt(" : ")
|
|
6812
6815
|
], 64)) : (h(), A(_e, { key: 1 }, [
|
|
6813
|
-
|
|
6816
|
+
j("button", {
|
|
6814
6817
|
ref_for: !0,
|
|
6815
6818
|
ref: (Pe) => ee(Pe, D, 0),
|
|
6816
6819
|
type: "button",
|
|
@@ -6837,7 +6840,7 @@ const gu = ({
|
|
|
6837
6840
|
d.$slots["arrow-up"] ? L("", !0) : (h(), be(c(An), { key: 1 }))
|
|
6838
6841
|
], 64))
|
|
6839
6842
|
], 42, Vu),
|
|
6840
|
-
|
|
6843
|
+
j("button", {
|
|
6841
6844
|
ref_for: !0,
|
|
6842
6845
|
ref: (Pe) => ee(Pe, D, 1),
|
|
6843
6846
|
type: "button",
|
|
@@ -6864,7 +6867,7 @@ const gu = ({
|
|
|
6864
6867
|
dt(ke(p.value(F.type).text), 1)
|
|
6865
6868
|
], 64))
|
|
6866
6869
|
], 42, zu),
|
|
6867
|
-
|
|
6870
|
+
j("button", {
|
|
6868
6871
|
ref_for: !0,
|
|
6869
6872
|
ref: (Pe) => ee(Pe, D, 2),
|
|
6870
6873
|
type: "button",
|
|
@@ -6873,7 +6876,7 @@ const gu = ({
|
|
|
6873
6876
|
dp__inc_dec_button: !d.timePickerInline,
|
|
6874
6877
|
dp__inc_dec_button_inline: d.timePickerInline,
|
|
6875
6878
|
dp__tp_inline_btn_bottom: d.timePickerInline,
|
|
6876
|
-
dp__inc_dec_button_disabled:
|
|
6879
|
+
dp__inc_dec_button_disabled: z.value(F.type)
|
|
6877
6880
|
}),
|
|
6878
6881
|
"data-test": `${F.type}-time-dec-btn-${l.order}`,
|
|
6879
6882
|
"aria-label": (Re = c(s)) == null ? void 0 : Re.decrementValue(F.type),
|
|
@@ -7008,15 +7011,15 @@ const gu = ({
|
|
|
7008
7011
|
else
|
|
7009
7012
|
C.push(M(0));
|
|
7010
7013
|
return C;
|
|
7011
|
-
}), S = (C, X = !1,
|
|
7014
|
+
}), S = (C, X = !1, oe = "") => {
|
|
7012
7015
|
X || n("reset-flow"), N.value = C, n(C ? "overlay-opened" : "overlay-closed", et.time), l.arrowNavigation && o(C), mt(() => {
|
|
7013
|
-
|
|
7016
|
+
oe !== "" && B.value[0] && B.value[0].openChildCmp(oe);
|
|
7014
7017
|
});
|
|
7015
|
-
},
|
|
7018
|
+
}, z = H(() => ({
|
|
7016
7019
|
dp__btn: !0,
|
|
7017
7020
|
dp__button: !0,
|
|
7018
7021
|
dp__button_bottom: l.autoApply && !u.value.keepActionRow
|
|
7019
|
-
})),
|
|
7022
|
+
})), re = ut(s, "timePicker"), ve = (C, X, oe) => T.value.enabled ? X === 0 ? [C, f.value[1][oe]] : [f.value[0][oe], C] : C, I = (C) => {
|
|
7020
7023
|
n("update:hours", C);
|
|
7021
7024
|
}, V = (C) => {
|
|
7022
7025
|
n("update:minutes", C);
|
|
@@ -7031,15 +7034,15 @@ const gu = ({
|
|
|
7031
7034
|
n("overlay-closed", C);
|
|
7032
7035
|
};
|
|
7033
7036
|
return a({ toggleTimePicker: S }), (C, X) => {
|
|
7034
|
-
var
|
|
7037
|
+
var oe;
|
|
7035
7038
|
return h(), A("div", Ju, [
|
|
7036
7039
|
!C.timePicker && !C.timePickerInline ? Xe((h(), A("button", {
|
|
7037
7040
|
key: 0,
|
|
7038
7041
|
ref_key: "openTimePickerBtn",
|
|
7039
7042
|
ref: W,
|
|
7040
7043
|
type: "button",
|
|
7041
|
-
class: ye(
|
|
7042
|
-
"aria-label": (
|
|
7044
|
+
class: ye(z.value),
|
|
7045
|
+
"aria-label": (oe = c(_)) == null ? void 0 : oe.openTimePicker,
|
|
7043
7046
|
tabindex: C.noOverlayFocus ? void 0 : 0,
|
|
7044
7047
|
"data-test": "open-time-picker-btn",
|
|
7045
7048
|
onKeydown: X[0] || (X[0] = (me) => c(st)(me, () => S(!0))),
|
|
@@ -7069,7 +7072,7 @@ const gu = ({
|
|
|
7069
7072
|
style: tt(C.timePicker ? { height: `${c(u).modeHeight}px` } : void 0),
|
|
7070
7073
|
tabindex: C.timePickerInline ? void 0 : 0
|
|
7071
7074
|
}, [
|
|
7072
|
-
|
|
7075
|
+
j("div", {
|
|
7073
7076
|
class: ye(
|
|
7074
7077
|
C.timePickerInline ? "dp__time_picker_inline_container" : "dp__overlay_container dp__container_flex dp__time_picker_overlay_container"
|
|
7075
7078
|
),
|
|
@@ -7113,7 +7116,7 @@ const gu = ({
|
|
|
7113
7116
|
onOverlayOpened: X[2] || (X[2] = (i) => C.$emit("overlay-opened", i)),
|
|
7114
7117
|
onAmPmChange: X[3] || (X[3] = (i) => C.$emit("am-pm-change", i))
|
|
7115
7118
|
}), at({ _: 2 }, [
|
|
7116
|
-
Ee(c(
|
|
7119
|
+
Ee(c(re), (i, O) => ({
|
|
7117
7120
|
name: i,
|
|
7118
7121
|
fn: pe((le) => [
|
|
7119
7122
|
ne(C.$slots, i, Le({ ref_for: !0 }, le))
|
|
@@ -7128,7 +7131,7 @@ const gu = ({
|
|
|
7128
7131
|
ref_key: "closeTimePickerBtn",
|
|
7129
7132
|
ref: Q,
|
|
7130
7133
|
type: "button",
|
|
7131
|
-
class: ye(
|
|
7134
|
+
class: ye(z.value),
|
|
7132
7135
|
"aria-label": (me = c(_)) == null ? void 0 : me.closeTimePicker,
|
|
7133
7136
|
tabindex: "0",
|
|
7134
7137
|
onKeydown: X[4] || (X[4] = (E) => c(st)(E, () => S(!1))),
|
|
@@ -7189,11 +7192,11 @@ const gu = ({
|
|
|
7189
7192
|
}, B = H(() => (P, $) => {
|
|
7190
7193
|
var N;
|
|
7191
7194
|
if (Array.isArray(e.disabledTimes)) {
|
|
7192
|
-
const { disabledArr: M, hours: f } = Q(P, $), S = M.filter((
|
|
7195
|
+
const { disabledArr: M, hours: f } = Q(P, $), S = M.filter((z) => +z.hours === f);
|
|
7193
7196
|
return ((N = S[0]) == null ? void 0 : N.minutes) === "*" ? { hours: [f], minutes: void 0, seconds: void 0 } : {
|
|
7194
7197
|
hours: [],
|
|
7195
|
-
minutes: (S == null ? void 0 : S.map((
|
|
7196
|
-
seconds: (S == null ? void 0 : S.map((
|
|
7198
|
+
minutes: (S == null ? void 0 : S.map((z) => +z.minutes)) ?? [],
|
|
7199
|
+
seconds: (S == null ? void 0 : S.map((z) => z.seconds ? +z.seconds : void 0)) ?? []
|
|
7197
7200
|
};
|
|
7198
7201
|
}
|
|
7199
7202
|
return { hours: [], minutes: [], seconds: [] };
|
|
@@ -7358,7 +7361,7 @@ const gu = ({
|
|
|
7358
7361
|
const i = E === pt.month ? pt.year : pt.month;
|
|
7359
7362
|
n("update-month-year", { [E]: Y, [i]: l[i] }), E === pt.month ? p(!0) : w(!0);
|
|
7360
7363
|
}
|
|
7361
|
-
}), S = H(f(pt.month)),
|
|
7364
|
+
}), S = H(f(pt.month)), z = H(f(pt.year)), re = H(() => (E) => ({
|
|
7362
7365
|
month: l.month,
|
|
7363
7366
|
year: l.year,
|
|
7364
7367
|
items: E === pt.month ? l.months : l.years,
|
|
@@ -7389,7 +7392,7 @@ const gu = ({
|
|
|
7389
7392
|
E || n("reset-flow");
|
|
7390
7393
|
}, X = (E, Y) => {
|
|
7391
7394
|
l.arrowNavigation && (M.value[Y] = Ue(E), v(M.value, "monthYear"));
|
|
7392
|
-
},
|
|
7395
|
+
}, oe = H(() => {
|
|
7393
7396
|
var E, Y;
|
|
7394
7397
|
return [
|
|
7395
7398
|
{
|
|
@@ -7407,15 +7410,15 @@ const gu = ({
|
|
|
7407
7410
|
type: pt.year,
|
|
7408
7411
|
index: 2,
|
|
7409
7412
|
toggle: w,
|
|
7410
|
-
modelValue:
|
|
7411
|
-
updateModelValue: (i) =>
|
|
7413
|
+
modelValue: z.value,
|
|
7414
|
+
updateModelValue: (i) => z.value = i,
|
|
7412
7415
|
text: Bl(l.year, l.locale),
|
|
7413
7416
|
showSelectionGrid: N.value,
|
|
7414
7417
|
items: V.value,
|
|
7415
7418
|
ariaLabel: (Y = o.value) == null ? void 0 : Y.openYearsOverlay
|
|
7416
7419
|
}
|
|
7417
7420
|
];
|
|
7418
|
-
}), me = H(() => l.disableYearSelect ? [
|
|
7421
|
+
}), me = H(() => l.disableYearSelect ? [oe.value[0]] : l.yearFirst ? [...oe.value].reverse() : oe.value);
|
|
7419
7422
|
return a({
|
|
7420
7423
|
toggleMonthPicker: p,
|
|
7421
7424
|
toggleYearPicker: w,
|
|
@@ -7429,7 +7432,7 @@ const gu = ({
|
|
|
7429
7432
|
E.$slots["top-extra"] ? (h(), A("div", rd, [
|
|
7430
7433
|
ne(E.$slots, "top-extra", { value: E.internalModelValue })
|
|
7431
7434
|
])) : L("", !0),
|
|
7432
|
-
|
|
7435
|
+
j("div", od, [
|
|
7433
7436
|
c(B)(c(s), e.instance) && !E.vertical ? (h(), be(wa, {
|
|
7434
7437
|
key: 0,
|
|
7435
7438
|
"aria-label": (i = c(o)) == null ? void 0 : i.prevMonth,
|
|
@@ -7443,7 +7446,7 @@ const gu = ({
|
|
|
7443
7446
|
]),
|
|
7444
7447
|
_: 3
|
|
7445
7448
|
}, 8, ["aria-label", "disabled"])) : L("", !0),
|
|
7446
|
-
|
|
7449
|
+
j("div", {
|
|
7447
7450
|
class: ye(["dp__month_year_wrap", {
|
|
7448
7451
|
dp__year_disable_select: E.disableYearSelect
|
|
7449
7452
|
}])
|
|
@@ -7451,7 +7454,7 @@ const gu = ({
|
|
|
7451
7454
|
(h(!0), A(_e, null, Ee(me.value, (te, y) => (h(), A(_e, {
|
|
7452
7455
|
key: te.type
|
|
7453
7456
|
}, [
|
|
7454
|
-
|
|
7457
|
+
j("button", {
|
|
7455
7458
|
ref_for: !0,
|
|
7456
7459
|
ref: (ue) => X(ue, y + 1),
|
|
7457
7460
|
type: "button",
|
|
@@ -7512,7 +7515,7 @@ const gu = ({
|
|
|
7512
7515
|
E.$slots[`${te.type}-overlay`] ? {
|
|
7513
7516
|
name: "overlay",
|
|
7514
7517
|
fn: pe(() => [
|
|
7515
|
-
ne(E.$slots, `${te.type}-overlay`, Le({ ref_for: !0 },
|
|
7518
|
+
ne(E.$slots, `${te.type}-overlay`, Le({ ref_for: !0 }, re.value(te.type)))
|
|
7516
7519
|
]),
|
|
7517
7520
|
key: "1"
|
|
7518
7521
|
} : void 0,
|
|
@@ -7569,7 +7572,7 @@ const gu = ({
|
|
|
7569
7572
|
key: 0,
|
|
7570
7573
|
class: "dp__calendar_header_item",
|
|
7571
7574
|
role: "gridcell"
|
|
7572
|
-
}, md = ["aria-label"], vd = /* @__PURE__ */
|
|
7575
|
+
}, md = ["aria-label"], vd = /* @__PURE__ */ j("div", { class: "dp__calendar_header_separator" }, null, -1), pd = ["aria-label"], fd = {
|
|
7573
7576
|
key: 0,
|
|
7574
7577
|
role: "gridcell",
|
|
7575
7578
|
class: "dp__calendar_item dp__week_num"
|
|
@@ -7609,16 +7612,16 @@ const gu = ({
|
|
|
7609
7612
|
transform: ""
|
|
7610
7613
|
}), v = G([]), k = G(null), W = G(!0), Q = G(""), B = G({ startX: 0, endX: 0, startY: 0, endY: 0 }), P = G([]), $ = G({ left: "50%" }), N = G(!1), M = H(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), f = H(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Ni(l.formatLocale, l.locale, +l.weekStart));
|
|
7611
7614
|
qe(() => {
|
|
7612
|
-
n("mount", { cmp: "calendar", refs: v }), s.value.noSwipe || k.value && (k.value.addEventListener("touchstart",
|
|
7615
|
+
n("mount", { cmp: "calendar", refs: v }), s.value.noSwipe || k.value && (k.value.addEventListener("touchstart", oe, { passive: !1 }), k.value.addEventListener("touchend", me, { passive: !1 }), k.value.addEventListener("touchmove", E, { passive: !1 })), l.monthChangeOnScroll && k.value && k.value.addEventListener("wheel", O, { passive: !1 });
|
|
7613
7616
|
});
|
|
7614
|
-
const S = (ee) => ee ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous",
|
|
7617
|
+
const S = (ee) => ee ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", z = (ee, K) => {
|
|
7615
7618
|
if (l.transitions) {
|
|
7616
7619
|
const d = ct(Ct(U(), l.month, l.year));
|
|
7617
7620
|
Q.value = We(ct(Ct(U(), ee, K)), d) ? o.value[S(!0)] : o.value[S(!1)], W.value = !1, mt(() => {
|
|
7618
7621
|
W.value = !0;
|
|
7619
7622
|
});
|
|
7620
7623
|
}
|
|
7621
|
-
},
|
|
7624
|
+
}, re = H(
|
|
7622
7625
|
() => ({
|
|
7623
7626
|
[l.calendarClassName]: !!l.calendarClassName
|
|
7624
7627
|
})
|
|
@@ -7654,7 +7657,7 @@ const gu = ({
|
|
|
7654
7657
|
n("set-hover-date", ee), (ce = (q = ee.marker) == null ? void 0 : q.tooltip) != null && ce.length && await w(ee, K, d);
|
|
7655
7658
|
}, X = (ee) => {
|
|
7656
7659
|
T.value && (T.value = null, b.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", ee.marker));
|
|
7657
|
-
},
|
|
7660
|
+
}, oe = (ee) => {
|
|
7658
7661
|
B.value.startX = ee.changedTouches[0].screenX, B.value.startY = ee.changedTouches[0].screenY;
|
|
7659
7662
|
}, me = (ee) => {
|
|
7660
7663
|
B.value.endX = ee.changedTouches[0].screenX, B.value.endY = ee.changedTouches[0].screenY, Y();
|
|
@@ -7677,19 +7680,19 @@ const gu = ({
|
|
|
7677
7680
|
}, ge = (ee) => {
|
|
7678
7681
|
u.value.enabled && u.value.dragSelect ? (N.value = !0, n("select-date", ee)) : u.value.enabled && n("select-date", ee);
|
|
7679
7682
|
};
|
|
7680
|
-
return a({ triggerTransition:
|
|
7683
|
+
return a({ triggerTransition: z }), (ee, K) => {
|
|
7681
7684
|
var d;
|
|
7682
7685
|
return h(), A("div", {
|
|
7683
7686
|
class: ye(V.value)
|
|
7684
7687
|
}, [
|
|
7685
|
-
|
|
7688
|
+
j("div", {
|
|
7686
7689
|
ref_key: "calendarWrapRef",
|
|
7687
7690
|
ref: k,
|
|
7688
7691
|
role: "grid",
|
|
7689
|
-
class: ye(
|
|
7692
|
+
class: ye(re.value),
|
|
7690
7693
|
"aria-label": (d = c(m)) == null ? void 0 : d.calendarWrap
|
|
7691
7694
|
}, [
|
|
7692
|
-
|
|
7695
|
+
j("div", dd, [
|
|
7693
7696
|
ee.weekNumbers ? (h(), A("div", cd, ke(ee.weekNumName), 1)) : L("", !0),
|
|
7694
7697
|
(h(!0), A(_e, null, Ee(f.value, (q, ce) => {
|
|
7695
7698
|
var F, D;
|
|
@@ -7732,7 +7735,7 @@ const gu = ({
|
|
|
7732
7735
|
role: "row"
|
|
7733
7736
|
}, [
|
|
7734
7737
|
ee.weekNumbers ? (h(), A("div", fd, [
|
|
7735
|
-
|
|
7738
|
+
j("div", hd, ke(te(ce.days)), 1)
|
|
7736
7739
|
])) : L("", !0),
|
|
7737
7740
|
(h(!0), A(_e, null, Ee(ce.days, (D, J) => {
|
|
7738
7741
|
var he, Re, Pe;
|
|
@@ -7755,7 +7758,7 @@ const gu = ({
|
|
|
7755
7758
|
onMousedown: (ie) => ge(D),
|
|
7756
7759
|
onMouseup: K[0] || (K[0] = (ie) => N.value = !1)
|
|
7757
7760
|
}, [
|
|
7758
|
-
|
|
7761
|
+
j("div", {
|
|
7759
7762
|
class: ye(["dp__cell_inner", D.classData])
|
|
7760
7763
|
}, [
|
|
7761
7764
|
ee.$slots.day && se.value(D) ? ne(ee.$slots, "day", {
|
|
@@ -7801,14 +7804,14 @@ const gu = ({
|
|
|
7801
7804
|
day: D.value
|
|
7802
7805
|
}) : L("", !0),
|
|
7803
7806
|
ee.$slots["marker-tooltip"] ? L("", !0) : (h(), A(_e, { key: 1 }, [
|
|
7804
|
-
|
|
7807
|
+
j("div", {
|
|
7805
7808
|
class: "dp__tooltip_mark",
|
|
7806
7809
|
style: tt(ie.color ? { backgroundColor: ie.color } : {})
|
|
7807
7810
|
}, null, 4),
|
|
7808
|
-
|
|
7811
|
+
j("div", null, ke(ie.text), 1)
|
|
7809
7812
|
], 64))
|
|
7810
7813
|
]))), 128)),
|
|
7811
|
-
|
|
7814
|
+
j("div", {
|
|
7812
7815
|
class: "dp__arrow_bottom_tp",
|
|
7813
7816
|
style: tt($.value)
|
|
7814
7817
|
}, null, 4)
|
|
@@ -7836,7 +7839,7 @@ const gu = ({
|
|
|
7836
7839
|
defaultedTz: k,
|
|
7837
7840
|
propDates: W,
|
|
7838
7841
|
defaultedMultiDates: Q
|
|
7839
|
-
} = Ne(e), { validateMonthYearInRange: B, isDisabled: P, isDateRangeAllowed: $, checkMinMaxRange: N } = Ht(e), { updateTimeValues: M, getSetDateTime: f, setTime: S, assignStartTime:
|
|
7842
|
+
} = Ne(e), { validateMonthYearInRange: B, isDisabled: P, isDateRangeAllowed: $, checkMinMaxRange: N } = Ht(e), { updateTimeValues: M, getSetDateTime: f, setTime: S, assignStartTime: z, validateTime: re, disabledTimesConfig: ve } = Xl(e, _, s, n), I = H(
|
|
7840
7843
|
() => (R) => m.value[R] ? m.value[R].month : 0
|
|
7841
7844
|
), V = H(
|
|
7842
7845
|
() => (R) => m.value[R] ? m.value[R].year : 0
|
|
@@ -7849,18 +7852,18 @@ const gu = ({
|
|
|
7849
7852
|
lt(
|
|
7850
7853
|
s,
|
|
7851
7854
|
(R, x) => {
|
|
7852
|
-
JSON.stringify(R) !== JSON.stringify(x) &&
|
|
7855
|
+
JSON.stringify(R) !== JSON.stringify(x) && oe();
|
|
7853
7856
|
},
|
|
7854
7857
|
{ deep: !0 }
|
|
7855
7858
|
), qe(() => {
|
|
7856
|
-
e.shadow || (s.value || (ee(), T.value &&
|
|
7859
|
+
e.shadow || (s.value || (ee(), T.value && z(T.value)), oe(!0), e.focusStartDate && e.startDate && ee());
|
|
7857
7860
|
});
|
|
7858
7861
|
const C = H(() => {
|
|
7859
7862
|
var R;
|
|
7860
7863
|
return (R = e.flow) != null && R.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
|
|
7861
7864
|
}), X = () => {
|
|
7862
7865
|
e.autoApply && C.value && a("auto-apply");
|
|
7863
|
-
},
|
|
7866
|
+
}, oe = (R = !1) => {
|
|
7864
7867
|
if (s.value)
|
|
7865
7868
|
return Array.isArray(s.value) ? (l.value = s.value, te(R)) : Y(s.value, R);
|
|
7866
7869
|
if (u.value.count && R && !e.startDate)
|
|
@@ -8043,7 +8046,7 @@ const gu = ({
|
|
|
8043
8046
|
modelValue: s,
|
|
8044
8047
|
range: b.value.enabled,
|
|
8045
8048
|
timezone: x ? void 0 : k.value.timezone
|
|
8046
|
-
}), w(), e.multiCalendars && mt().then(() =>
|
|
8049
|
+
}), w(), e.multiCalendars && mt().then(() => oe(!0));
|
|
8047
8050
|
}, Xa = () => {
|
|
8048
8051
|
b.value.enabled ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Fe(U(), s.value[0]) ? [U(), s.value[0]] : [s.value[0], U()] : s.value = [U()] : s.value = U(), w();
|
|
8049
8052
|
}, Ja = () => {
|
|
@@ -8065,7 +8068,7 @@ const gu = ({
|
|
|
8065
8068
|
time: _,
|
|
8066
8069
|
disabledTimesConfig: ve,
|
|
8067
8070
|
today: g,
|
|
8068
|
-
validateTime:
|
|
8071
|
+
validateTime: re,
|
|
8069
8072
|
getCalendarDays: he,
|
|
8070
8073
|
getMarker: ce,
|
|
8071
8074
|
handleScroll: K,
|
|
@@ -8128,7 +8131,7 @@ const gu = ({
|
|
|
8128
8131
|
presetDate: $,
|
|
8129
8132
|
selectCurrentDate: N,
|
|
8130
8133
|
updateTime: M
|
|
8131
|
-
} = bd(l, n, me, E), f = Ft(), { setHoverDate: S, getDayClassData:
|
|
8134
|
+
} = bd(l, n, me, E), f = Ft(), { setHoverDate: S, getDayClassData: z, clearHoverDate: re } = _u(m, l), { defaultedMultiCalendars: ve } = Ne(l), I = G([]), V = G([]), se = G(null), p = ut(f, "calendar"), w = ut(f, "monthYear"), C = ut(f, "timePicker"), X = (K) => {
|
|
8132
8135
|
l.shadow || n("mount", K);
|
|
8133
8136
|
};
|
|
8134
8137
|
lt(
|
|
@@ -8140,9 +8143,9 @@ const gu = ({
|
|
|
8140
8143
|
},
|
|
8141
8144
|
{ deep: !0 }
|
|
8142
8145
|
);
|
|
8143
|
-
const
|
|
8146
|
+
const oe = H(() => (K) => b(o.value(K), s.value(K)).map((d) => ({
|
|
8144
8147
|
...d,
|
|
8145
|
-
days: d.days.map((q) => (q.marker = v(q), q.classData =
|
|
8148
|
+
days: d.days.map((q) => (q.marker = v(q), q.classData = z(q), q))
|
|
8146
8149
|
})));
|
|
8147
8150
|
function me(K) {
|
|
8148
8151
|
var d;
|
|
@@ -8183,7 +8186,7 @@ const gu = ({
|
|
|
8183
8186
|
n("overlay-toggle", { open: !1, overlay: K }), n("focus-menu");
|
|
8184
8187
|
};
|
|
8185
8188
|
return a({
|
|
8186
|
-
clearHoverDate:
|
|
8189
|
+
clearHoverDate: re,
|
|
8187
8190
|
presetDate: $,
|
|
8188
8191
|
selectCurrentDate: N,
|
|
8189
8192
|
toggleMonthPicker: i,
|
|
@@ -8238,7 +8241,7 @@ const gu = ({
|
|
|
8238
8241
|
ref: (F) => {
|
|
8239
8242
|
F && (V.value[ce] = F);
|
|
8240
8243
|
},
|
|
8241
|
-
"mapped-dates":
|
|
8244
|
+
"mapped-dates": oe.value(q),
|
|
8242
8245
|
month: c(o)(q),
|
|
8243
8246
|
year: c(s)(q),
|
|
8244
8247
|
instance: q
|
|
@@ -8323,15 +8326,15 @@ const gu = ({
|
|
|
8323
8326
|
return !1;
|
|
8324
8327
|
}
|
|
8325
8328
|
return !1;
|
|
8326
|
-
},
|
|
8329
|
+
}, z = (p, w) => p.quarter === zn(w) && p.year === we(w), re = (p) => typeof r.value == "function" ? r.value({ quarter: zn(p), year: we(p) }) : !!r.value.quarters.find((w) => z(w, p)), ve = H(() => (p) => {
|
|
8327
8330
|
const w = Se(/* @__PURE__ */ new Date(), { year: u.value(p) });
|
|
8328
8331
|
return Wo({
|
|
8329
8332
|
start: bn(w),
|
|
8330
8333
|
end: yl(w)
|
|
8331
8334
|
}).map((C) => {
|
|
8332
|
-
const X = jt(C),
|
|
8335
|
+
const X = jt(C), oe = jn(C), me = v(C), E = S(X), Y = re(X);
|
|
8333
8336
|
return {
|
|
8334
|
-
text: M(X,
|
|
8337
|
+
text: M(X, oe),
|
|
8335
8338
|
value: X,
|
|
8336
8339
|
active: f.value(X),
|
|
8337
8340
|
highlighted: Y,
|
|
@@ -8413,7 +8416,7 @@ const gu = ({
|
|
|
8413
8416
|
stretch: ""
|
|
8414
8417
|
}, {
|
|
8415
8418
|
default: pe(({ instance: M }) => [
|
|
8416
|
-
|
|
8419
|
+
j("div", {
|
|
8417
8420
|
class: "dp-quarter-picker-wrap",
|
|
8418
8421
|
style: tt({ minHeight: `${c(m).modeHeight}px` })
|
|
8419
8422
|
}, [
|
|
@@ -8421,7 +8424,7 @@ const gu = ({
|
|
|
8421
8424
|
key: 0,
|
|
8422
8425
|
value: $.internalModelValue
|
|
8423
8426
|
}) : L("", !0),
|
|
8424
|
-
|
|
8427
|
+
j("div", null, [
|
|
8425
8428
|
Oe(jl, Le($.$props, {
|
|
8426
8429
|
items: c(_)(M),
|
|
8427
8430
|
instance: M,
|
|
@@ -8434,15 +8437,15 @@ const gu = ({
|
|
|
8434
8437
|
}), at({ _: 2 }, [
|
|
8435
8438
|
Ee(c(o), (f, S) => ({
|
|
8436
8439
|
name: f,
|
|
8437
|
-
fn: pe((
|
|
8438
|
-
ne($.$slots, f, Qe(ot(
|
|
8440
|
+
fn: pe((z) => [
|
|
8441
|
+
ne($.$slots, f, Qe(ot(z)))
|
|
8439
8442
|
])
|
|
8440
8443
|
}))
|
|
8441
8444
|
]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
|
|
8442
8445
|
]),
|
|
8443
|
-
|
|
8446
|
+
j("div", Md, [
|
|
8444
8447
|
(h(!0), A(_e, null, Ee(c(T)(M), (f, S) => (h(), A("div", { key: S }, [
|
|
8445
|
-
|
|
8448
|
+
j("button", {
|
|
8446
8449
|
type: "button",
|
|
8447
8450
|
class: ye(["dp--qr-btn", {
|
|
8448
8451
|
"dp--qr-btn-active": f.active,
|
|
@@ -8452,8 +8455,8 @@ const gu = ({
|
|
|
8452
8455
|
}]),
|
|
8453
8456
|
"data-test": f.value,
|
|
8454
8457
|
disabled: f.disabled,
|
|
8455
|
-
onClick: (
|
|
8456
|
-
onMouseover: (
|
|
8458
|
+
onClick: (z) => c(W)(f.value, M, f.disabled),
|
|
8459
|
+
onMouseover: (z) => c(k)(f.value)
|
|
8457
8460
|
}, [
|
|
8458
8461
|
$.$slots.quarter ? ne($.$slots, "quarter", {
|
|
8459
8462
|
key: 0,
|
|
@@ -8473,7 +8476,7 @@ const gu = ({
|
|
|
8473
8476
|
}), Pd = ["id", "aria-label"], xd = {
|
|
8474
8477
|
key: 0,
|
|
8475
8478
|
class: "dp--menu-load-container"
|
|
8476
|
-
}, $d = /* @__PURE__ */
|
|
8479
|
+
}, $d = /* @__PURE__ */ j("span", { class: "dp--menu-loader" }, null, -1), Cd = [
|
|
8477
8480
|
$d
|
|
8478
8481
|
], Ad = {
|
|
8479
8482
|
key: 0,
|
|
@@ -8549,7 +8552,7 @@ const gu = ({
|
|
|
8549
8552
|
const P = () => {
|
|
8550
8553
|
const D = Ue(W);
|
|
8551
8554
|
D && (k.value = D.getBoundingClientRect().width);
|
|
8552
|
-
}, { arrowRight: $, arrowLeft: N, arrowDown: M, arrowUp: f } = Vt(), { flowStep: S, updateFlowStep:
|
|
8555
|
+
}, { arrowRight: $, arrowLeft: N, arrowDown: M, arrowUp: f } = Vt(), { flowStep: S, updateFlowStep: z, childMount: re, resetFlow: ve } = ku(l, n, B), I = H(() => l.monthPicker ? Iu : l.yearPicker ? Nu : l.timePicker ? ad : l.quarterPicker ? Td : _d), V = H(() => {
|
|
8553
8556
|
var D;
|
|
8554
8557
|
if (b.value.arrowLeft)
|
|
8555
8558
|
return b.value.arrowLeft;
|
|
@@ -8563,7 +8566,7 @@ const gu = ({
|
|
|
8563
8566
|
return ((D = B.value) == null ? void 0 : D.getSidebarProps()) || {};
|
|
8564
8567
|
}), w = () => {
|
|
8565
8568
|
l.openOnTop && n("recalculate-position");
|
|
8566
|
-
}, C = ut(g, "action"), X = H(() => l.monthPicker || l.yearPicker ? ut(g, "monthYear") : l.timePicker ? ut(g, "timePicker") : ut(g, "shared")),
|
|
8569
|
+
}, C = ut(g, "action"), X = H(() => l.monthPicker || l.yearPicker ? ut(g, "monthYear") : l.timePicker ? ut(g, "timePicker") : ut(g, "shared")), oe = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
|
|
8567
8570
|
dp__menu_disabled: l.disabled,
|
|
8568
8571
|
dp__menu_readonly: l.readonly,
|
|
8569
8572
|
"dp-menu-loading": l.loading
|
|
@@ -8659,9 +8662,9 @@ const gu = ({
|
|
|
8659
8662
|
], 2)) : L("", !0),
|
|
8660
8663
|
!c(T).enabled && !D.teleportCenter ? (h(), A("div", {
|
|
8661
8664
|
key: 1,
|
|
8662
|
-
class: ye(
|
|
8665
|
+
class: ye(oe.value)
|
|
8663
8666
|
}, null, 2)) : L("", !0),
|
|
8664
|
-
|
|
8667
|
+
j("div", {
|
|
8665
8668
|
ref_key: "innerMenuRef",
|
|
8666
8669
|
ref: W,
|
|
8667
8670
|
class: ye({
|
|
@@ -8694,7 +8697,7 @@ const gu = ({
|
|
|
8694
8697
|
}, ke(ie.label), 47, Rd))
|
|
8695
8698
|
], 64))), 128))
|
|
8696
8699
|
], 2)) : L("", !0),
|
|
8697
|
-
|
|
8700
|
+
j("div", {
|
|
8698
8701
|
ref_key: "calendarWrapperRef",
|
|
8699
8702
|
ref: v,
|
|
8700
8703
|
class: "dp__instance_calendar",
|
|
@@ -8705,8 +8708,8 @@ const gu = ({
|
|
|
8705
8708
|
ref: B
|
|
8706
8709
|
}, o.value, {
|
|
8707
8710
|
"flow-step": c(S),
|
|
8708
|
-
onMount: c(
|
|
8709
|
-
onUpdateFlowStep: c(
|
|
8711
|
+
onMount: c(re),
|
|
8712
|
+
onUpdateFlowStep: c(z),
|
|
8710
8713
|
onResetFlow: c(ve),
|
|
8711
8714
|
onFocusMenu: se,
|
|
8712
8715
|
onSelectDate: J[0] || (J[0] = (ie) => D.$emit("select-date")),
|
|
@@ -8828,8 +8831,8 @@ const gu = ({
|
|
|
8828
8831
|
defaultedTransitions: M,
|
|
8829
8832
|
defaultedTextInput: f,
|
|
8830
8833
|
defaultedInline: S,
|
|
8831
|
-
defaultedConfig:
|
|
8832
|
-
defaultedRange:
|
|
8834
|
+
defaultedConfig: z,
|
|
8835
|
+
defaultedRange: re,
|
|
8833
8836
|
defaultedMultiDates: ve
|
|
8834
8837
|
} = Ne(l), { menuTransition: I, showTransition: V } = Ta(M);
|
|
8835
8838
|
qe(() => {
|
|
@@ -8854,7 +8857,7 @@ const gu = ({
|
|
|
8854
8857
|
},
|
|
8855
8858
|
{ deep: !0 }
|
|
8856
8859
|
);
|
|
8857
|
-
const { openOnTop: w, menuStyle: C, xCorrect: X, setMenuPosition:
|
|
8860
|
+
const { openOnTop: w, menuStyle: C, xCorrect: X, setMenuPosition: oe, getScrollableParent: me, shadowRender: E } = gu({
|
|
8858
8861
|
menuRef: _,
|
|
8859
8862
|
menuRefInner: g,
|
|
8860
8863
|
inputRef: u,
|
|
@@ -8886,32 +8889,32 @@ const gu = ({
|
|
|
8886
8889
|
var x, Z;
|
|
8887
8890
|
return (Z = (x = u.value) == null ? void 0 : x.$el) == null ? void 0 : Z.getBoundingClientRect();
|
|
8888
8891
|
}, ce = () => {
|
|
8889
|
-
o.value && (
|
|
8892
|
+
o.value && (z.value.closeOnScroll ? it() : oe());
|
|
8890
8893
|
}, F = () => {
|
|
8891
8894
|
var x;
|
|
8892
|
-
o.value &&
|
|
8895
|
+
o.value && oe();
|
|
8893
8896
|
const Z = (x = g.value) == null ? void 0 : x.$el.getBoundingClientRect().width;
|
|
8894
8897
|
W.value = document.body.offsetWidth <= Z;
|
|
8895
8898
|
}, D = (x) => {
|
|
8896
|
-
x.key === "Tab" && !S.value.enabled && !l.teleport &&
|
|
8899
|
+
x.key === "Tab" && !S.value.enabled && !l.teleport && z.value.tabOutClosesMenu && (b.value.contains(document.activeElement) || it()), k.value = x.shiftKey;
|
|
8897
8900
|
}, J = (x) => {
|
|
8898
8901
|
k.value = x.shiftKey;
|
|
8899
8902
|
}, he = () => {
|
|
8900
|
-
!l.disabled && !l.readonly && (E(rl, l),
|
|
8903
|
+
!l.disabled && !l.readonly && (E(rl, l), oe(!1), o.value = !0, o.value && n("open"), o.value || ua(), O(l.modelValue));
|
|
8901
8904
|
}, Re = () => {
|
|
8902
8905
|
var x;
|
|
8903
|
-
Y.value = "", ua(), (x = u.value) == null || x.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"),
|
|
8906
|
+
Y.value = "", ua(), (x = u.value) == null || x.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), z.value.closeOnClearValue && it();
|
|
8904
8907
|
}, Pe = () => {
|
|
8905
8908
|
const x = i.value;
|
|
8906
|
-
return !x || !Array.isArray(x) && $(x) ? !0 : Array.isArray(x) ? ve.value.enabled || x.length === 2 && $(x[0]) && $(x[1]) ? !0 :
|
|
8909
|
+
return !x || !Array.isArray(x) && $(x) ? !0 : Array.isArray(x) ? ve.value.enabled || x.length === 2 && $(x[0]) && $(x[1]) ? !0 : re.value.partialRange && !l.timePicker ? $(x[0]) : !1 : !1;
|
|
8907
8910
|
}, ie = () => {
|
|
8908
8911
|
y() && Pe() ? (le(), it()) : n("invalid-select", i.value);
|
|
8909
8912
|
}, wt = (x) => {
|
|
8910
|
-
vt(), le(),
|
|
8913
|
+
vt(), le(), z.value.closeOnAutoApply && !x && it();
|
|
8911
8914
|
}, vt = () => {
|
|
8912
8915
|
u.value && f.value.enabled && u.value.setParsedDate(i.value);
|
|
8913
8916
|
}, ja = (x = !1) => {
|
|
8914
|
-
l.autoApply && N(i.value) && Pe() && (
|
|
8917
|
+
l.autoApply && N(i.value) && Pe() && (re.value.enabled && Array.isArray(i.value) ? (re.value.partialRange || i.value.length === 2) && wt(x) : wt(x));
|
|
8915
8918
|
}, ua = () => {
|
|
8916
8919
|
f.value.enabled || (i.value = null);
|
|
8917
8920
|
}, it = () => {
|
|
@@ -8945,7 +8948,7 @@ const gu = ({
|
|
|
8945
8948
|
}, Za = (x, Z) => {
|
|
8946
8949
|
var ae;
|
|
8947
8950
|
(ae = g.value) == null || ae.switchView(x, Z);
|
|
8948
|
-
}, R = (x) =>
|
|
8951
|
+
}, R = (x) => z.value.onClickOutside ? z.value.onClickOutside(x) : it();
|
|
8949
8952
|
return Id(_, u, () => R(Pe)), a({
|
|
8950
8953
|
closeMenu: it,
|
|
8951
8954
|
selectDate: ie,
|
|
@@ -9026,7 +9029,7 @@ const gu = ({
|
|
|
9026
9029
|
onInvalidSelect: Z[5] || (Z[5] = (ae) => x.$emit("invalid-select", c(i))),
|
|
9027
9030
|
onAutoApplyInvalid: Z[6] || (Z[6] = (ae) => x.$emit("invalid-select", ae)),
|
|
9028
9031
|
onInvalidFixedRange: Z[7] || (Z[7] = (ae) => x.$emit("invalid-fixed-range", ae)),
|
|
9029
|
-
onRecalculatePosition: c(
|
|
9032
|
+
onRecalculatePosition: c(oe),
|
|
9030
9033
|
onTooltipOpen: Z[8] || (Z[8] = (ae) => x.$emit("tooltip-open", ae)),
|
|
9031
9034
|
onTooltipClose: Z[9] || (Z[9] = (ae) => x.$emit("tooltip-close", ae)),
|
|
9032
9035
|
onTimePickerOpen: Z[10] || (Z[10] = (ae) => x.$emit("time-picker-open", ae)),
|
|
@@ -9100,7 +9103,7 @@ const Fd = { class: "rm-datepicker" }, oc = /* @__PURE__ */ Te({
|
|
|
9100
9103
|
var m;
|
|
9101
9104
|
t.currentDate && (l.value = t.currentDate), t.opened && ((m = r.value) == null || m.openMenu());
|
|
9102
9105
|
}), (m, _) => (h(), A("div", Fd, [
|
|
9103
|
-
Xe(
|
|
9106
|
+
Xe(j("p", { class: "rm-datepicker__label" }, ke(m.label), 513), [
|
|
9104
9107
|
[qt, m.label]
|
|
9105
9108
|
]),
|
|
9106
9109
|
Oe(c(Ln), Le({
|
|
@@ -9155,7 +9158,7 @@ const Fd = { class: "rm-datepicker" }, oc = /* @__PURE__ */ Te({
|
|
|
9155
9158
|
}, [
|
|
9156
9159
|
ne(l.$slots, "default"),
|
|
9157
9160
|
l.label ? (h(), A("div", Vd, [
|
|
9158
|
-
|
|
9161
|
+
j("p", Hd, ke(l.label), 1)
|
|
9159
9162
|
])) : L("", !0)
|
|
9160
9163
|
], 34));
|
|
9161
9164
|
}
|
|
@@ -9180,7 +9183,7 @@ const Fd = { class: "rm-datepicker" }, oc = /* @__PURE__ */ Te({
|
|
|
9180
9183
|
}
|
|
9181
9184
|
])
|
|
9182
9185
|
}, [
|
|
9183
|
-
|
|
9186
|
+
j("div", Wd, [
|
|
9184
9187
|
n.avatar ? (h(), A("img", {
|
|
9185
9188
|
key: 0,
|
|
9186
9189
|
src: n.avatar,
|
|
@@ -9188,7 +9191,7 @@ const Fd = { class: "rm-datepicker" }, oc = /* @__PURE__ */ Te({
|
|
|
9188
9191
|
alt: ""
|
|
9189
9192
|
}, null, 8, zd)) : L("", !0)
|
|
9190
9193
|
]),
|
|
9191
|
-
|
|
9194
|
+
j("div", {
|
|
9192
9195
|
class: ye([
|
|
9193
9196
|
"rm-avatar__label",
|
|
9194
9197
|
{
|
|
@@ -9196,7 +9199,7 @@ const Fd = { class: "rm-datepicker" }, oc = /* @__PURE__ */ Te({
|
|
|
9196
9199
|
}
|
|
9197
9200
|
])
|
|
9198
9201
|
}, [
|
|
9199
|
-
|
|
9202
|
+
j("span", null, ke(n.staticLabel || t.value), 1)
|
|
9200
9203
|
], 2)
|
|
9201
9204
|
], 2));
|
|
9202
9205
|
}
|
|
@@ -9214,9 +9217,9 @@ const Fd = { class: "rm-datepicker" }, oc = /* @__PURE__ */ Te({
|
|
|
9214
9217
|
Oe(rt, { name: "fade" }, {
|
|
9215
9218
|
default: pe(() => [
|
|
9216
9219
|
a.isActive ? Xe((h(), A("div", jd, t[0] || (t[0] = [
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
+
j("div", { class: "rm-loader__overlay" }, null, -1),
|
|
9221
|
+
j("div", { class: "rm-loader__wr" }, [
|
|
9222
|
+
j("div", { class: "rm-loader__spinner" })
|
|
9220
9223
|
], -1)
|
|
9221
9224
|
]))), [
|
|
9222
9225
|
[c(ol), a.isLock && a.isActive]
|