redmine-ui-kit 1.5.3 → 1.5.5
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 +162 -161
- package/dist/redmine-ui-kit.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/redmine-ui-kit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Xl = Object.defineProperty;
|
|
2
2
|
var Jl = (e, a, t) => a in e ? Xl(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
|
|
3
3
|
var de = (e, a, t) => (Jl(e, typeof a != "symbol" ? a + "" : a, t), t);
|
|
4
|
-
import { defineComponent as Te, openBlock as h, createElementBlock as R, normalizeStyle as nt, createElementVNode as z, useSlots as Nt, computed as
|
|
4
|
+
import { defineComponent as Te, openBlock as h, createElementBlock as R, normalizeStyle as nt, createElementVNode as z, useSlots as Nt, computed as W, normalizeClass as ye, toDisplayString as ke, renderSlot as le, withDirectives as Xe, vShow as Yt, vModelCheckbox as Zl, createCommentVNode as I, ref as J, createTextVNode as ut, onMounted as Ue, nextTick as mt, unref as c, mergeProps as We, withKeys as Jt, toHandlerKey as Xa, withModifiers as Dt, vModelText as Ln, createBlock as be, Teleport as fn, createVNode as Ye, Transition as ot, withCtx as fe, shallowRef as pa, onBeforeUnmount as Kl, watch as dt, Fragment as _e, renderList as Se, reactive as _a, toRef as ga, onUnmounted as Ea, isRef as In, createSlots as tt, normalizeProps as Qe, guardReactiveProps as lt, resolveDynamicComponent as Ya, h as er, render as Nn, onBeforeUpdate as tr, getCurrentScope as ar, onScopeDispose as nr } from "vue";
|
|
5
5
|
const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
|
|
6
6
|
lr
|
|
7
7
|
], sc = /* @__PURE__ */ Te({
|
|
@@ -33,7 +33,7 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["click"],
|
|
35
35
|
setup(e) {
|
|
36
|
-
const a = Nt(), t =
|
|
36
|
+
const a = Nt(), t = W(() => !!a.icon);
|
|
37
37
|
return (n, l) => (h(), R("button", {
|
|
38
38
|
class: ye([
|
|
39
39
|
"rm-button",
|
|
@@ -66,7 +66,7 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
|
|
|
66
66
|
all: { default: 0 }
|
|
67
67
|
},
|
|
68
68
|
setup(e) {
|
|
69
|
-
const a = e, t =
|
|
69
|
+
const a = e, t = W(() => !a.done || !a.all ? 0 : Math.round(a.done / a.all * 100));
|
|
70
70
|
return (n, l) => (h(), R("div", dr, [
|
|
71
71
|
z("div", cr, [
|
|
72
72
|
z("div", {
|
|
@@ -88,7 +88,7 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
|
|
|
88
88
|
},
|
|
89
89
|
emits: ["update:modelValue", "change"],
|
|
90
90
|
setup(e, { emit: a }) {
|
|
91
|
-
const t = e, n = a, l =
|
|
91
|
+
const t = e, n = a, l = W({
|
|
92
92
|
get() {
|
|
93
93
|
return t.modelValue;
|
|
94
94
|
},
|
|
@@ -150,7 +150,7 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
|
|
|
150
150
|
MAX_SIZE: "maxFileSizeError",
|
|
151
151
|
FILE_TYPE: "fileTypeError"
|
|
152
152
|
}
|
|
153
|
-
}, r = J(), s =
|
|
153
|
+
}, r = J(), s = W(() => t.acceptFiles.split(",").map((b) => k(b)).join(", ")), o = W(() => t.deniedFiles.split(",").map((b) => k(b)).join(", ")), m = W(() => Math.round(t.maxFileSize / 1024 / 1024));
|
|
154
154
|
function k(b, D = "/") {
|
|
155
155
|
return b.split(D).slice(-1)[0];
|
|
156
156
|
}
|
|
@@ -165,7 +165,7 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
|
|
|
165
165
|
n("upload:error", { errorType: b, errorContent: D });
|
|
166
166
|
}
|
|
167
167
|
function M({ files: b, target: D }) {
|
|
168
|
-
const { MAX_SIZE: _, FILE_TYPE:
|
|
168
|
+
const { MAX_SIZE: _, FILE_TYPE: H } = l.ERROR_TYPES, U = new DataTransfer();
|
|
169
169
|
for (const $ of Object.values(b)) {
|
|
170
170
|
if ($.size > t.maxFileSize) {
|
|
171
171
|
u(
|
|
@@ -181,7 +181,7 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
|
|
|
181
181
|
let Y = !1;
|
|
182
182
|
if (t.deniedFiles && (Y = t.deniedFiles.includes(x) || t.deniedFiles.includes(v)), t.acceptFiles && (Y = !t.acceptFiles.includes(x) || !t.acceptFiles.includes(v)), Y) {
|
|
183
183
|
u(
|
|
184
|
-
|
|
184
|
+
H,
|
|
185
185
|
{ fileName: $.name, errorInfo: $.type }
|
|
186
186
|
);
|
|
187
187
|
continue;
|
|
@@ -260,7 +260,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
260
260
|
const t = e, n = a, l = Rr(), r = {
|
|
261
261
|
CTRL_ENTER: "keydown",
|
|
262
262
|
ALT_ENTER: "keydown"
|
|
263
|
-
}, s = J(!1), o = J(0), m = J(), k =
|
|
263
|
+
}, s = J(!1), o = J(0), m = J(), k = W({
|
|
264
264
|
get() {
|
|
265
265
|
return !t.modelValue && o.value && m.value && U(m.value, o.value), t.modelValue;
|
|
266
266
|
},
|
|
@@ -293,7 +293,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
293
293
|
function _($) {
|
|
294
294
|
n("alt-enter-press", $);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function H({ target: $ }) {
|
|
297
297
|
n("change", $.value);
|
|
298
298
|
}
|
|
299
299
|
function U($, v) {
|
|
@@ -327,7 +327,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
327
327
|
}, {
|
|
328
328
|
onFocus: g,
|
|
329
329
|
onBlur: u,
|
|
330
|
-
onChange: v[1] || (v[1] = (x) =>
|
|
330
|
+
onChange: v[1] || (v[1] = (x) => H(x))
|
|
331
331
|
}), null, 16, Er)), [
|
|
332
332
|
[Ln, k.value]
|
|
333
333
|
]) : Xe((h(), R("input", We({
|
|
@@ -345,7 +345,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
345
345
|
}, {
|
|
346
346
|
onFocus: g,
|
|
347
347
|
onBlur: u,
|
|
348
|
-
onChange: v[3] || (v[3] = (x) =>
|
|
348
|
+
onChange: v[3] || (v[3] = (x) => H(x))
|
|
349
349
|
}), null, 16, Yr)), [
|
|
350
350
|
[Ln, k.value]
|
|
351
351
|
]),
|
|
@@ -602,10 +602,10 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
602
602
|
const t = e, n = a, l = pa(null), r = pa(null), s = pa(null), o = J({
|
|
603
603
|
width: Number.POSITIVE_INFINITY,
|
|
604
604
|
height: Number.POSITIVE_INFINITY
|
|
605
|
-
}), m = J(!1), k = J(""), g =
|
|
605
|
+
}), m = J(!1), k = J(""), g = W(() => {
|
|
606
606
|
const v = D(t.options);
|
|
607
607
|
return t.searchable && k.value ? v.filter(({ name: x }) => x.toString().toLowerCase().includes(k.value.toLowerCase())) : v;
|
|
608
|
-
}), u =
|
|
608
|
+
}), u = W(() => {
|
|
609
609
|
var x;
|
|
610
610
|
if (!t.modelValue)
|
|
611
611
|
return "";
|
|
@@ -615,7 +615,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
615
615
|
return t.chips ? Y : Y.map(({ name: O }) => O).join(", ");
|
|
616
616
|
}
|
|
617
617
|
return ((x = v.find(({ value: Y }) => Y === t.modelValue)) == null ? void 0 : x.name.toString()) ?? "";
|
|
618
|
-
}), M =
|
|
618
|
+
}), M = W(() => {
|
|
619
619
|
if (!s.value)
|
|
620
620
|
return !1;
|
|
621
621
|
const v = o.value.width - (s.value.clientWidth + s.value.getBoundingClientRect().left + 4);
|
|
@@ -635,7 +635,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
635
635
|
function _() {
|
|
636
636
|
n("update:modelValue", !t.multiple && !t.chips ? "" : []), n("clear");
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function H(v) {
|
|
639
639
|
if (!t.multiple && !t.chips || !Array.isArray(t.modelValue)) {
|
|
640
640
|
n("update:modelValue", v.value), n("select", v), m.value = !1;
|
|
641
641
|
return;
|
|
@@ -714,7 +714,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
714
714
|
z("span", ao, ke(Y.name), 1),
|
|
715
715
|
z("button", {
|
|
716
716
|
class: "rm-select-chip__btn",
|
|
717
|
-
onClick: Dt((T) =>
|
|
717
|
+
onClick: Dt((T) => H(Y), ["stop"])
|
|
718
718
|
}, ro, 8, no)
|
|
719
719
|
]))), 128))
|
|
720
720
|
])) : I("", !0)
|
|
@@ -746,7 +746,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
746
746
|
class: "rm-select-inner",
|
|
747
747
|
style: nt(M.value)
|
|
748
748
|
}, [
|
|
749
|
-
v.searchable ? (h(), R("
|
|
749
|
+
v.searchable ? (h(), R("div", co, [
|
|
750
750
|
mo,
|
|
751
751
|
z("input", {
|
|
752
752
|
ref_key: "searchInputRef",
|
|
@@ -763,7 +763,8 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
763
763
|
v.$slots["slot-options"] ? le(v.$slots, "slot-options", {
|
|
764
764
|
key: 1,
|
|
765
765
|
options: g.value,
|
|
766
|
-
selected: u.value
|
|
766
|
+
selected: u.value,
|
|
767
|
+
handleSelect: H
|
|
767
768
|
}) : (h(), R("ul", po, [
|
|
768
769
|
(h(!0), R(_e, null, Se(g.value, (Y, O) => (h(), R("li", {
|
|
769
770
|
key: `${O}_option`,
|
|
@@ -774,7 +775,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
774
775
|
"rm-select-inner__item--selected": !v.multiple && !v.chips || !Array.isArray(v.modelValue) ? Y.value === u.value : v.modelValue.includes(Y.value)
|
|
775
776
|
}
|
|
776
777
|
]),
|
|
777
|
-
onClick: (T) =>
|
|
778
|
+
onClick: (T) => H(Y)
|
|
778
779
|
}, [
|
|
779
780
|
v.multiple || v.chips ? (h(), be(yr, {
|
|
780
781
|
key: 0,
|
|
@@ -782,7 +783,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
782
783
|
name: Y.name.toString(),
|
|
783
784
|
checked: v.modelValue.includes(Y.value),
|
|
784
785
|
class: "rm-select-inner-list__item-checkbox",
|
|
785
|
-
onClick: Dt((T) =>
|
|
786
|
+
onClick: Dt((T) => H(Y), ["stop", "prevent"])
|
|
786
787
|
}, null, 8, ["model-value", "name", "checked", "onClick"])) : I("", !0),
|
|
787
788
|
z("span", null, ke(Y.name), 1)
|
|
788
789
|
], 10, fo))), 128))
|
|
@@ -873,7 +874,7 @@ const Do = /* @__PURE__ */ yo(go, [["render", Mo]]), To = {
|
|
|
873
874
|
function D() {
|
|
874
875
|
n("change", o.value), u();
|
|
875
876
|
}
|
|
876
|
-
return (_,
|
|
877
|
+
return (_, H) => Xe((h(), R("div", {
|
|
877
878
|
class: ye(["rm-editable", { active: s.value }])
|
|
878
879
|
}, [
|
|
879
880
|
s.value ? (h(), R("div", To, [
|
|
@@ -2310,8 +2311,8 @@ function Is(e, a, t) {
|
|
|
2310
2311
|
}
|
|
2311
2312
|
const Ns = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Fs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Vs = /^'([^]*?)'?$/, Hs = /''/g, Ws = /[a-zA-Z]/;
|
|
2312
2313
|
function Tt(e, a, t) {
|
|
2313
|
-
var g, u, M, b, D, _,
|
|
2314
|
-
const n = Gt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? yl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((b = (M = n.locale) == null ? void 0 : M.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((U = (
|
|
2314
|
+
var g, u, M, b, D, _, H, U;
|
|
2315
|
+
const n = Gt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? yl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((b = (M = n.locale) == null ? void 0 : M.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((U = (H = n.locale) == null ? void 0 : H.options) == null ? void 0 : U.weekStartsOn) ?? 0, o = ve(e);
|
|
2315
2316
|
if (!ha(o))
|
|
2316
2317
|
throw new RangeError("Invalid time value");
|
|
2317
2318
|
let m = a.match(Fs).map(($) => {
|
|
@@ -3859,8 +3860,8 @@ const Yi = {
|
|
|
3859
3860
|
T: new Ei()
|
|
3860
3861
|
}, Bi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Li = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ii = /^'([^]*?)'?$/, Ni = /''/g, Fi = /\S/, Vi = /[a-zA-Z]/;
|
|
3861
3862
|
function mn(e, a, t, n) {
|
|
3862
|
-
var _,
|
|
3863
|
-
const l = Us(), r = (n == null ? void 0 : n.locale) ?? l.locale ?? yl, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((
|
|
3863
|
+
var _, H, U, $, v, x, Y, O;
|
|
3864
|
+
const l = Us(), r = (n == null ? void 0 : n.locale) ?? l.locale ?? yl, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((H = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : H.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? (($ = (U = l.locale) == null ? void 0 : U.options) == null ? void 0 : $.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((x = (v = n == null ? void 0 : n.locale) == null ? void 0 : v.options) == null ? void 0 : x.weekStartsOn) ?? l.weekStartsOn ?? ((O = (Y = l.locale) == null ? void 0 : Y.options) == null ? void 0 : O.weekStartsOn) ?? 0;
|
|
3864
3865
|
if (a === "")
|
|
3865
3866
|
return e === "" ? ve(t) : Pe(t, NaN);
|
|
3866
3867
|
const m = {
|
|
@@ -4403,7 +4404,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4403
4404
|
va.shiftKeyInMenu !== t && (va.shiftKeyInMenu = t);
|
|
4404
4405
|
};
|
|
4405
4406
|
return {
|
|
4406
|
-
control:
|
|
4407
|
+
control: W(() => ({ shiftKeyInMenu: va.shiftKeyInMenu, menuFocused: va.menuFocused })),
|
|
4407
4408
|
setMenuFocused: e,
|
|
4408
4409
|
setShiftKey: a
|
|
4409
4410
|
};
|
|
@@ -4419,7 +4420,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4419
4420
|
},
|
|
4420
4421
|
monthPicker: []
|
|
4421
4422
|
}), nn = J(null), Ca = J(!1), ln = J(!1), rn = J(!1), on = J(!1), Ke = J(0), Ve = J(0), Ft = () => {
|
|
4422
|
-
const e =
|
|
4423
|
+
const e = W(() => Ca.value ? [...Ee.selectionGrid, Ee.actionRow].filter((u) => u.length) : ln.value ? [
|
|
4423
4424
|
...Ee.timePicker[0],
|
|
4424
4425
|
...Ee.timePicker[1],
|
|
4425
4426
|
on.value ? [] : [nn.value],
|
|
@@ -4615,10 +4616,10 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4615
4616
|
return e.is24 ? `HH${O}${Y}` : `hh${O}${Y} aa`;
|
|
4616
4617
|
}, t = () => {
|
|
4617
4618
|
var Y;
|
|
4618
|
-
return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((Y =
|
|
4619
|
-
}, n = (Y) => Il(Y, e.enableSeconds), l = () => x.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, r =
|
|
4619
|
+
return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((Y = H.value) == null ? void 0 : Y.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${a()}` : "MM/dd/yyyy";
|
|
4620
|
+
}, n = (Y) => Il(Y, e.enableSeconds), l = () => x.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, r = W(() => cu(e.multiCalendars)), s = W(() => l()), o = W(() => du(e.ariaLabels)), m = W(() => fu(e.filters)), k = W(() => vu(e.transitions)), g = W(() => hu(e.actionRow)), u = W(
|
|
4620
4621
|
() => mu(e.previewFormat, e.format, t())
|
|
4621
|
-
), M =
|
|
4622
|
+
), M = W(() => pu(e.textInput)), b = W(() => yu(e.inline)), D = W(() => gu(e.config)), _ = W(() => bu(e.highlight)), H = W(() => wu(e.weekNumbers)), U = W(() => ku(e.timezone, e.emitTimezone)), $ = W(() => Tu(e.multiDates, e.multiDatesLimit)), v = W(
|
|
4622
4623
|
() => Du(
|
|
4623
4624
|
e.minDate,
|
|
4624
4625
|
e.maxDate,
|
|
@@ -4628,7 +4629,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4628
4629
|
e.markers,
|
|
4629
4630
|
U.value
|
|
4630
4631
|
)
|
|
4631
|
-
), x =
|
|
4632
|
+
), x = W(
|
|
4632
4633
|
() => _u(e.range, {
|
|
4633
4634
|
minMaxRawRange: !1,
|
|
4634
4635
|
maxRange: e.maxRange,
|
|
@@ -4654,7 +4655,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4654
4655
|
defaultedInline: b,
|
|
4655
4656
|
defaultedConfig: D,
|
|
4656
4657
|
defaultedHighlight: _,
|
|
4657
|
-
defaultedWeekNumbers:
|
|
4658
|
+
defaultedWeekNumbers: H,
|
|
4658
4659
|
defaultedRange: x,
|
|
4659
4660
|
propDates: v,
|
|
4660
4661
|
defaultedTz: U,
|
|
@@ -4693,7 +4694,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4693
4694
|
hours: At(f),
|
|
4694
4695
|
minutes: It(f),
|
|
4695
4696
|
seconds: a.enableSeconds ? ta(f) : 0
|
|
4696
|
-
} : null,
|
|
4697
|
+
} : null, H = (f) => a.modelType ? me(f) : { month: Me(f), year: we(f) }, U = (f) => Array.isArray(f) ? o.value.enabled ? f.map((ue) => $(ue, Mt(q(), ue))) : Aa(
|
|
4697
4698
|
() => [
|
|
4698
4699
|
Mt(q(), f[0]),
|
|
4699
4700
|
f[1] ? Mt(q(), f[1]) : Xt(r.value.partialRange)
|
|
@@ -4784,7 +4785,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4784
4785
|
}, S = (f, ue) => E(Ge(B(f)), !1, ue), ne = (f) => {
|
|
4785
4786
|
const ue = i();
|
|
4786
4787
|
return f ? ue : e("update:model-value", i());
|
|
4787
|
-
}, te = (f = !1) => (f || G(), a.monthPicker ? S(
|
|
4788
|
+
}, te = (f = !1) => (f || G(), a.monthPicker ? S(H, f) : a.timePicker ? S(_, f) : a.yearPicker ? S(we, f) : a.weekPicker ? ne(f) : E(L(f), !0, f));
|
|
4788
4789
|
return {
|
|
4789
4790
|
inputValue: k,
|
|
4790
4791
|
internalModelValue: n,
|
|
@@ -4808,7 +4809,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4808
4809
|
t.value.months.includes(D) && (b = r(b, g), D = Me(b), _ = we(b)), t.value.years.includes(_) && (b = s(b, g), _ = we(b)), l(D, _, g, e.preventMinMaxNavigation) && m(D, _, u);
|
|
4809
4810
|
}, m = (g, u, M) => {
|
|
4810
4811
|
a("update-month-year", { month: g, year: u, fromNav: M });
|
|
4811
|
-
}, k =
|
|
4812
|
+
}, k = W(() => (g) => Nl(
|
|
4812
4813
|
Oe(q(), { month: e.month, year: e.year }),
|
|
4813
4814
|
n.value.maxDate,
|
|
4814
4815
|
n.value.minDate,
|
|
@@ -4848,7 +4849,7 @@ const $u = ({
|
|
|
4848
4849
|
g.value.left = `${p + y - m.value.width}px`;
|
|
4849
4850
|
}, _ = (p) => {
|
|
4850
4851
|
g.value.left = `${p}px`;
|
|
4851
|
-
},
|
|
4852
|
+
}, H = (p, y) => {
|
|
4852
4853
|
s.position === Zt.left && _(p), s.position === Zt.right && D(p, y), s.position === Zt.center && (g.value.left = `${p + y / 2 - m.value.width / 2}px`);
|
|
4853
4854
|
}, U = (p) => {
|
|
4854
4855
|
const { width: y, height: A } = p.getBoundingClientRect(), { top: G, left: re } = s.altPosition ? s.altPosition(p) : b(p);
|
|
@@ -4872,7 +4873,7 @@ const $u = ({
|
|
|
4872
4873
|
return pe();
|
|
4873
4874
|
}
|
|
4874
4875
|
}, Y = ({ inputEl: p, left: y, width: A }) => {
|
|
4875
|
-
window.screen.width > 768 && !k.value &&
|
|
4876
|
+
window.screen.width > 768 && !k.value && H(y, A), F(p);
|
|
4876
4877
|
}, O = (p) => {
|
|
4877
4878
|
const { top: y, left: A, height: G, width: re } = U(p);
|
|
4878
4879
|
g.value.top = `${G + y + +s.offset}px`, u.value = !1, k.value || (g.value.left = `${A + re / 2 - m.value.width / 2}px`), Y({ inputEl: p, left: A, width: re });
|
|
@@ -4889,7 +4890,7 @@ const $u = ({
|
|
|
4889
4890
|
if (re >= document.documentElement.clientWidth)
|
|
4890
4891
|
return k.value = !0, D(y, A);
|
|
4891
4892
|
}
|
|
4892
|
-
return
|
|
4893
|
+
return H(y, A);
|
|
4893
4894
|
}
|
|
4894
4895
|
}
|
|
4895
4896
|
}, ee = () => {
|
|
@@ -5006,7 +5007,7 @@ const $u = ({
|
|
|
5006
5007
|
l.slot && n.push(l.slot);
|
|
5007
5008
|
}), n;
|
|
5008
5009
|
}, Ma = (e) => {
|
|
5009
|
-
const a =
|
|
5010
|
+
const a = W(() => (n) => e.value ? n ? e.value.open : e.value.close : ""), t = W(() => (n) => e.value ? n ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
|
|
5010
5011
|
return { transitionName: a, showTransition: !!e.value, menuTransition: t };
|
|
5011
5012
|
}, Da = (e, a) => {
|
|
5012
5013
|
const { defaultedRange: t, defaultedTz: n } = Ie(e), l = q(xt(q(), n.value.timezone)), r = J([{ month: Me(l), year: we(l) }]), s = (u) => {
|
|
@@ -5028,14 +5029,14 @@ const $u = ({
|
|
|
5028
5029
|
},
|
|
5029
5030
|
{ deep: !0 }
|
|
5030
5031
|
);
|
|
5031
|
-
const m =
|
|
5032
|
+
const m = W({
|
|
5032
5033
|
get: () => e.internalModelValue,
|
|
5033
5034
|
set: (u) => {
|
|
5034
5035
|
!e.readonly && !e.disabled && a("update:internal-model-value", u);
|
|
5035
5036
|
}
|
|
5036
|
-
}), k =
|
|
5037
|
+
}), k = W(
|
|
5037
5038
|
() => (u) => r.value[u] ? r.value[u].month : 0
|
|
5038
|
-
), g =
|
|
5039
|
+
), g = W(
|
|
5039
5040
|
() => (u) => r.value[u] ? r.value[u].year : 0
|
|
5040
5041
|
);
|
|
5041
5042
|
return {
|
|
@@ -5057,7 +5058,7 @@ const $u = ({
|
|
|
5057
5058
|
}, _ = (i) => {
|
|
5058
5059
|
const S = Array.isArray(e.value) ? e.value[0] : null;
|
|
5059
5060
|
return i ? !Ne(k.value ?? null, S) : !0;
|
|
5060
|
-
},
|
|
5061
|
+
}, H = (i, S = !0) => (o.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !i.current ? !1 : De(q(i.value), e.value[S ? 0 : 1]) : o.value.enabled ? D(i, S) && _(S) || De(i.value, Array.isArray(e.value) ? e.value[0] : null) && b(S) : !1, U = (i, S) => {
|
|
5061
5062
|
if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
|
|
5062
5063
|
const ne = De(i.value, k.value);
|
|
5063
5064
|
return S ? He(e.value[0], i.value) && ne : Ne(e.value[0], i.value) && ne;
|
|
@@ -5100,7 +5101,7 @@ const $u = ({
|
|
|
5100
5101
|
}, O = (i) => Ba(e.value, k.value, i.value), T = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, F = () => a.modelAuto ? Ol(a.internalModelValue) : !0, ee = (i) => {
|
|
5101
5102
|
if (a.weekPicker)
|
|
5102
5103
|
return !1;
|
|
5103
|
-
const S = o.value.enabled ? !
|
|
5104
|
+
const S = o.value.enabled ? !H(i) && !H(i, !1) : !0;
|
|
5104
5105
|
return !m(i.value) && !$(i) && !(!i.current && a.hideOffsetDates) && S;
|
|
5105
5106
|
}, se = (i) => o.value.enabled ? a.modelAuto ? T() && $(i) : !1 : $(i), pe = (i) => l.value ? au(i.value, s.value.highlight) : !1, L = (i) => {
|
|
5106
5107
|
const S = m(i.value);
|
|
@@ -5151,7 +5152,7 @@ const $u = ({
|
|
|
5151
5152
|
...E(i)
|
|
5152
5153
|
};
|
|
5153
5154
|
}, re = (i) => {
|
|
5154
|
-
const S = t.value.count > 0 ? i.current &&
|
|
5155
|
+
const S = t.value.count > 0 ? i.current && H(i) && F() : H(i) && F(), ne = t.value.count > 0 ? i.current && H(i, !1) && F() : H(i, !1) && F();
|
|
5155
5156
|
return { isRangeStart: S, isRangeEnd: ne };
|
|
5156
5157
|
}, me = (i) => {
|
|
5157
5158
|
const { isRangeStart: S, isRangeEnd: ne } = re(i);
|
|
@@ -5195,7 +5196,7 @@ const $u = ({
|
|
|
5195
5196
|
return V >= +e.yearRange[0] && V <= e.yearRange[1];
|
|
5196
5197
|
}
|
|
5197
5198
|
return !0;
|
|
5198
|
-
}, _ = (L, V) => !!(Array.isArray(L) && L[V] && (t.value.maxRange || t.value.minRange) && D(L[V])),
|
|
5199
|
+
}, _ = (L, V) => !!(Array.isArray(L) && L[V] && (t.value.maxRange || t.value.minRange) && D(L[V])), H = (L, V, oe = 0) => {
|
|
5199
5200
|
if (_(V, oe) && D(L)) {
|
|
5200
5201
|
const p = ml(L, V[oe]), y = Ll(V[oe], L), A = y.length === 1 ? 0 : y.filter((re) => M(re)).length, G = Math.abs(p) - (t.value.minMaxRawRange ? 0 : A);
|
|
5201
5202
|
if (t.value.minRange && t.value.maxRange)
|
|
@@ -5253,26 +5254,26 @@ const $u = ({
|
|
|
5253
5254
|
V = Ne(oe, p) || De(oe, p);
|
|
5254
5255
|
}
|
|
5255
5256
|
return V;
|
|
5256
|
-
}, se =
|
|
5257
|
+
}, se = W(() => (L) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : F(L)), pe = W(() => (L) => e.monthPicker ? Array.isArray(L) && (t.value.enabled || l.value.enabled) ? !L.filter((V) => !ee(V)).length : ee(L) : !0);
|
|
5257
5258
|
return {
|
|
5258
5259
|
isDisabled: M,
|
|
5259
5260
|
validateDate: s,
|
|
5260
5261
|
validateMonthYearInRange: g,
|
|
5261
5262
|
isDateRangeAllowed: b,
|
|
5262
|
-
checkMinMaxRange:
|
|
5263
|
+
checkMinMaxRange: H,
|
|
5263
5264
|
isValidTime: F,
|
|
5264
5265
|
isTimeValid: se,
|
|
5265
5266
|
isMonthValid: pe
|
|
5266
5267
|
};
|
|
5267
5268
|
}, La = () => {
|
|
5268
|
-
const e =
|
|
5269
|
+
const e = W(() => (n, l) => n == null ? void 0 : n.includes(l)), a = W(() => (n, l) => n.count ? n.solo ? !0 : l === 0 : !0), t = W(() => (n, l) => n.count ? n.solo ? !0 : l === n.count - 1 : !0);
|
|
5269
5270
|
return { hideNavigationButtons: e, showLeftIcon: a, showRightIcon: t };
|
|
5270
5271
|
}, Ou = (e, a, t) => {
|
|
5271
5272
|
const n = J(0), l = _a({
|
|
5272
5273
|
[qt.timePicker]: !e.enableTimePicker || e.timePicker || e.monthPicker,
|
|
5273
5274
|
[qt.calendar]: !1,
|
|
5274
5275
|
[qt.header]: !1
|
|
5275
|
-
}), r =
|
|
5276
|
+
}), r = W(() => e.monthPicker || e.timePicker), s = (u) => {
|
|
5276
5277
|
var M;
|
|
5277
5278
|
if ((M = e.flow) != null && M.length) {
|
|
5278
5279
|
if (!u && r.value)
|
|
@@ -5475,7 +5476,7 @@ const $u = ({
|
|
|
5475
5476
|
defaultedMultiDates: g,
|
|
5476
5477
|
getDefaultPattern: u,
|
|
5477
5478
|
getDefaultStartTime: M
|
|
5478
|
-
} = Ie(l), { checkMinMaxRange: b } = Vt(l), D = J(), _ = J(null),
|
|
5479
|
+
} = Ie(l), { checkMinMaxRange: b } = Vt(l), D = J(), _ = J(null), H = J(!1), U = J(!1), $ = W(
|
|
5479
5480
|
() => ({
|
|
5480
5481
|
dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
|
|
5481
5482
|
dp__disabled: l.disabled,
|
|
@@ -5484,7 +5485,7 @@ const $u = ({
|
|
|
5484
5485
|
dp__input_icon_pad: !l.hideInputIcon,
|
|
5485
5486
|
dp__input_valid: !!l.state,
|
|
5486
5487
|
dp__input_invalid: l.state === !1,
|
|
5487
|
-
dp__input_focus:
|
|
5488
|
+
dp__input_focus: H.value || l.isMenuOpen,
|
|
5488
5489
|
dp__input_reg: !r.value.enabled,
|
|
5489
5490
|
[l.inputClassName]: !!l.inputClassName
|
|
5490
5491
|
})
|
|
@@ -5528,14 +5529,14 @@ const $u = ({
|
|
|
5528
5529
|
}, se = (y) => {
|
|
5529
5530
|
r.value.enabled && r.value.tabSubmit && T(y.target.value), r.value.tabSubmit && pn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0, !0), D.value = null) : r.value.tabSubmit && l.inputValue === "" && (D.value = null, n("clear", !0));
|
|
5530
5531
|
}, pe = () => {
|
|
5531
|
-
|
|
5532
|
+
H.value = !0, n("focus"), mt().then(() => {
|
|
5532
5533
|
var y;
|
|
5533
5534
|
r.value.enabled && r.value.selectOnFocus && ((y = _.value) == null || y.select());
|
|
5534
5535
|
});
|
|
5535
5536
|
}, L = (y) => {
|
|
5536
5537
|
y.preventDefault(), Bt(y, m.value, !0), r.value.enabled && r.value.openMenu && !o.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
|
|
5537
5538
|
}, V = () => {
|
|
5538
|
-
n("real-blur"),
|
|
5539
|
+
n("real-blur"), H.value = !1, (!l.isMenuOpen || o.value.enabled && o.value.input) && n("blur"), l.autoApply && r.value.enabled && D.value && !l.isMenuOpen && (n("set-input-date", D.value), n("select-date"), D.value = null);
|
|
5539
5540
|
}, oe = (y) => {
|
|
5540
5541
|
Bt(y, m.value, !0), n("clear");
|
|
5541
5542
|
}, p = (y) => {
|
|
@@ -5648,9 +5649,9 @@ const $u = ({
|
|
|
5648
5649
|
defaultedRange: k,
|
|
5649
5650
|
defaultedMultiDates: g,
|
|
5650
5651
|
getDefaultPattern: u
|
|
5651
|
-
} = Ie(n), { isTimeValid: M, isMonthValid: b } = Vt(n), { buildMatrix: D } = Ft(), _ = J(null),
|
|
5652
|
+
} = Ie(n), { isTimeValid: M, isMonthValid: b } = Vt(n), { buildMatrix: D } = Ft(), _ = J(null), H = J(null), U = J(!1), $ = J({}), v = J(null), x = J(null);
|
|
5652
5653
|
Ue(() => {
|
|
5653
|
-
n.arrowNavigation && D([qe(_), qe(
|
|
5654
|
+
n.arrowNavigation && D([qe(_), qe(H)], "actionRow"), Y(), window.addEventListener("resize", Y);
|
|
5654
5655
|
}), Ea(() => {
|
|
5655
5656
|
window.removeEventListener("resize", Y);
|
|
5656
5657
|
});
|
|
@@ -5660,7 +5661,7 @@ const $u = ({
|
|
|
5660
5661
|
const A = (p = v.value) == null ? void 0 : p.getBoundingClientRect(), G = (y = x.value) == null ? void 0 : y.getBoundingClientRect();
|
|
5661
5662
|
A && G && ($.value.maxWidth = `${G.width - A.width - 20}px`), U.value = !0;
|
|
5662
5663
|
}, 0);
|
|
5663
|
-
}, O =
|
|
5664
|
+
}, O = W(() => k.value.enabled && !k.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), T = W(
|
|
5664
5665
|
() => !M.value(n.internalModelValue) || !b.value(n.internalModelValue) || !O.value
|
|
5665
5666
|
), F = () => {
|
|
5666
5667
|
const p = r.value;
|
|
@@ -5675,7 +5676,7 @@ const $u = ({
|
|
|
5675
5676
|
o.value.rangeSeparator,
|
|
5676
5677
|
n.modelAuto,
|
|
5677
5678
|
u()
|
|
5678
|
-
), pe =
|
|
5679
|
+
), pe = W(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? ee() : g.value.enabled ? n.internalModelValue.map((p) => `${se(p)}`) : n.modelAuto ? `${se(n.internalModelValue[0])}` : `${se(n.internalModelValue[0])} -` : se(n.internalModelValue) : F()), L = () => g.value.enabled ? "; " : " - ", V = W(
|
|
5679
5680
|
() => Array.isArray(pe.value) ? pe.value.join(L()) : pe.value
|
|
5680
5681
|
), oe = () => {
|
|
5681
5682
|
M.value(n.internalModelValue) && b.value(n.internalModelValue) && O.value ? t("select-date") : t("invalid-select");
|
|
@@ -5735,7 +5736,7 @@ const $u = ({
|
|
|
5735
5736
|
c(l).showSelect ? (h(), R("button", {
|
|
5736
5737
|
key: 2,
|
|
5737
5738
|
ref_key: "selectButtonRef",
|
|
5738
|
-
ref:
|
|
5739
|
+
ref: H,
|
|
5739
5740
|
type: "button",
|
|
5740
5741
|
class: "dp__action_button dp__action_select",
|
|
5741
5742
|
disabled: T.value,
|
|
@@ -5772,7 +5773,7 @@ const $u = ({
|
|
|
5772
5773
|
setup(e, { expose: a, emit: t }) {
|
|
5773
5774
|
const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Ft(), s = t, o = e, { defaultedAriaLabels: m, defaultedTextInput: k, defaultedConfig: g } = Ie(
|
|
5774
5775
|
o
|
|
5775
|
-
), { hideNavigationButtons: u } = La(), M = J(!1), b = J(null), D = J(null), _ = J([]),
|
|
5776
|
+
), { hideNavigationButtons: u } = La(), M = J(!1), b = J(null), D = J(null), _ = J([]), H = J(), U = J(null), $ = J(0), v = J(null);
|
|
5776
5777
|
tr(() => {
|
|
5777
5778
|
b.value = null;
|
|
5778
5779
|
}), Ue(() => {
|
|
@@ -5785,17 +5786,17 @@ const $u = ({
|
|
|
5785
5786
|
var B;
|
|
5786
5787
|
const i = qe(D);
|
|
5787
5788
|
i && (k.value.enabled || (b.value ? (B = b.value) == null || B.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), M.value = i.clientHeight < i.scrollHeight);
|
|
5788
|
-
}, O =
|
|
5789
|
+
}, O = W(
|
|
5789
5790
|
() => ({
|
|
5790
5791
|
dp__overlay: !0,
|
|
5791
5792
|
"dp--overlay-absolute": !o.useRelative,
|
|
5792
5793
|
"dp--overlay-relative": o.useRelative
|
|
5793
5794
|
})
|
|
5794
|
-
), T =
|
|
5795
|
+
), T = W(
|
|
5795
5796
|
() => o.useRelative ? { height: `${o.height}px`, width: "260px" } : void 0
|
|
5796
|
-
), F =
|
|
5797
|
+
), F = W(() => ({
|
|
5797
5798
|
dp__overlay_col: !0
|
|
5798
|
-
})), ee =
|
|
5799
|
+
})), ee = W(
|
|
5799
5800
|
() => ({
|
|
5800
5801
|
dp__btn: !0,
|
|
5801
5802
|
dp__button: !0,
|
|
@@ -5803,7 +5804,7 @@ const $u = ({
|
|
|
5803
5804
|
dp__over_action_scroll: M.value,
|
|
5804
5805
|
dp__button_bottom: o.isLast
|
|
5805
5806
|
})
|
|
5806
|
-
), se =
|
|
5807
|
+
), se = W(() => {
|
|
5807
5808
|
var B, i;
|
|
5808
5809
|
return {
|
|
5809
5810
|
dp__overlay_container: !0,
|
|
@@ -5836,7 +5837,7 @@ const $u = ({
|
|
|
5836
5837
|
}, A = (B) => {
|
|
5837
5838
|
o.arrowNavigation || Bt(B, g.value, !0);
|
|
5838
5839
|
}, G = (B) => {
|
|
5839
|
-
|
|
5840
|
+
H.value = B, s("hover-value", B);
|
|
5840
5841
|
}, re = () => {
|
|
5841
5842
|
if (V(), !o.isLast) {
|
|
5842
5843
|
const B = tu(o.menuWrapRef ?? null, "action-row");
|
|
@@ -5946,9 +5947,9 @@ const $u = ({
|
|
|
5946
5947
|
collapse: { type: Boolean }
|
|
5947
5948
|
},
|
|
5948
5949
|
setup(e) {
|
|
5949
|
-
const a = e, t =
|
|
5950
|
+
const a = e, t = W(
|
|
5950
5951
|
() => a.multiCalendars > 0 ? [...Array(a.multiCalendars).keys()] : [0]
|
|
5951
|
-
), n =
|
|
5952
|
+
), n = W(() => ({
|
|
5952
5953
|
dp__instance_calendar: a.multiCalendars > 0
|
|
5953
5954
|
}));
|
|
5954
5955
|
return (l, r) => (h(), R("div", {
|
|
@@ -6012,14 +6013,14 @@ const $u = ({
|
|
|
6012
6013
|
},
|
|
6013
6014
|
emits: ["toggle-year-picker", "year-select", "handle-year"],
|
|
6014
6015
|
setup(e, { emit: a }) {
|
|
6015
|
-
const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = La(), { defaultedConfig: s, defaultedMultiCalendars: o, defaultedAriaLabels: m, defaultedTransitions: k } = Ie(n), { showTransition: g, transitionName: u } = Ma(k), M = (_ = !1,
|
|
6016
|
-
t("toggle-year-picker", { flow: _, show:
|
|
6016
|
+
const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = La(), { defaultedConfig: s, defaultedMultiCalendars: o, defaultedAriaLabels: m, defaultedTransitions: k } = Ie(n), { showTransition: g, transitionName: u } = Ma(k), M = (_ = !1, H) => {
|
|
6017
|
+
t("toggle-year-picker", { flow: _, show: H });
|
|
6017
6018
|
}, b = (_) => {
|
|
6018
6019
|
t("year-select", _);
|
|
6019
6020
|
}, D = (_ = !1) => {
|
|
6020
6021
|
t("handle-year", _);
|
|
6021
6022
|
};
|
|
6022
|
-
return (_,
|
|
6023
|
+
return (_, H) => {
|
|
6023
6024
|
var U, $, v;
|
|
6024
6025
|
return h(), R("div", zu, [
|
|
6025
6026
|
c(r)(c(o), e.instance) ? (h(), be(ya, {
|
|
@@ -6027,7 +6028,7 @@ const $u = ({
|
|
|
6027
6028
|
ref: "mpPrevIconRef",
|
|
6028
6029
|
"aria-label": (U = c(m)) == null ? void 0 : U.prevYear,
|
|
6029
6030
|
disabled: e.isDisabled(!1),
|
|
6030
|
-
onActivate:
|
|
6031
|
+
onActivate: H[0] || (H[0] = (x) => D(!1))
|
|
6031
6032
|
}, {
|
|
6032
6033
|
default: fe(() => [
|
|
6033
6034
|
_.$slots["arrow-left"] ? le(_.$slots, "arrow-left", { key: 0 }) : I("", !0),
|
|
@@ -6041,8 +6042,8 @@ const $u = ({
|
|
|
6041
6042
|
type: "button",
|
|
6042
6043
|
"aria-label": ($ = c(m)) == null ? void 0 : $.openYearsOverlay,
|
|
6043
6044
|
"data-test": `year-mode-btn-${e.instance}`,
|
|
6044
|
-
onClick:
|
|
6045
|
-
onKeydown:
|
|
6045
|
+
onClick: H[1] || (H[1] = () => M(!1)),
|
|
6046
|
+
onKeydown: H[2] || (H[2] = Jt(() => M(!1), ["enter"]))
|
|
6046
6047
|
}, [
|
|
6047
6048
|
_.$slots.year ? le(_.$slots, "year", {
|
|
6048
6049
|
key: 0,
|
|
@@ -6057,7 +6058,7 @@ const $u = ({
|
|
|
6057
6058
|
ref: "mpNextIconRef",
|
|
6058
6059
|
"aria-label": (v = c(m)) == null ? void 0 : v.nextYear,
|
|
6059
6060
|
disabled: e.isDisabled(!0),
|
|
6060
|
-
onActivate:
|
|
6061
|
+
onActivate: H[3] || (H[3] = (x) => D(!0))
|
|
6061
6062
|
}, {
|
|
6062
6063
|
default: fe(() => [
|
|
6063
6064
|
_.$slots["arrow-right"] ? le(_.$slots, "arrow-right", { key: 0 }) : I("", !0),
|
|
@@ -6081,7 +6082,7 @@ const $u = ({
|
|
|
6081
6082
|
"aria-labels": _.ariaLabels,
|
|
6082
6083
|
type: "year",
|
|
6083
6084
|
onToggle: M,
|
|
6084
|
-
onSelected:
|
|
6085
|
+
onSelected: H[4] || (H[4] = (x) => b(x))
|
|
6085
6086
|
}, tt({
|
|
6086
6087
|
"button-icon": fe(() => [
|
|
6087
6088
|
_.$slots["calendar-icon"] ? le(_.$slots, "calendar-icon", { key: 0 }) : I("", !0),
|
|
@@ -6134,7 +6135,7 @@ const $u = ({
|
|
|
6134
6135
|
month: m,
|
|
6135
6136
|
emit: k
|
|
6136
6137
|
}) => {
|
|
6137
|
-
const g =
|
|
6138
|
+
const g = W(() => Cn(r.yearRange, r.locale, r.reverseYears)), u = J([!1]), M = W(() => (O, T) => {
|
|
6138
6139
|
const F = Oe(ht(/* @__PURE__ */ new Date()), {
|
|
6139
6140
|
month: m.value(O),
|
|
6140
6141
|
year: o.value(O)
|
|
@@ -6159,18 +6160,18 @@ const $u = ({
|
|
|
6159
6160
|
return b();
|
|
6160
6161
|
const T = Oe(q(), n.value[O]);
|
|
6161
6162
|
return n.value[0].year = we($l(T, e.value.count - 1)), b();
|
|
6162
|
-
}, _ = (O) => r.focusStartDate ? O[0] : O[1] ? O[1] : O[0],
|
|
6163
|
+
}, _ = (O) => r.focusStartDate ? O[0] : O[1] ? O[1] : O[0], H = () => {
|
|
6163
6164
|
if (l.value) {
|
|
6164
6165
|
const O = Array.isArray(l.value) ? _(l.value) : l.value;
|
|
6165
6166
|
n.value[0] = { month: Me(O), year: we(O) };
|
|
6166
6167
|
}
|
|
6167
6168
|
};
|
|
6168
6169
|
Ue(() => {
|
|
6169
|
-
|
|
6170
|
+
H(), e.value.count && b();
|
|
6170
6171
|
});
|
|
6171
6172
|
const U = (O, T) => {
|
|
6172
6173
|
n.value[T].year = O, k("update-month-year", { instance: T, year: O, month: n.value[T].month }), e.value.count && !e.value.solo && D(T);
|
|
6173
|
-
}, $ =
|
|
6174
|
+
}, $ = W(() => (O) => la(g.value, (T) => {
|
|
6174
6175
|
var F;
|
|
6175
6176
|
const ee = o.value(O) === T.value, se = wa(
|
|
6176
6177
|
T.value,
|
|
@@ -6209,7 +6210,7 @@ const $u = ({
|
|
|
6209
6210
|
defaultedTz: k,
|
|
6210
6211
|
defaultedFilters: g,
|
|
6211
6212
|
defaultedMultiDates: u
|
|
6212
|
-
} = Ie(e), { modelValue: M, year: b, month: D, calendars: _ } = Da(e, a),
|
|
6213
|
+
} = Ie(e), { modelValue: M, year: b, month: D, calendars: _ } = Da(e, a), H = W(() => Rl(e.formatLocale, e.locale, e.monthNameFormat)), U = J(null), { checkMinMaxRange: $ } = Vt(e), {
|
|
6213
6214
|
selectYear: v,
|
|
6214
6215
|
groupedYears: x,
|
|
6215
6216
|
showYearPicker: Y,
|
|
@@ -6249,7 +6250,7 @@ const $u = ({
|
|
|
6249
6250
|
return !1;
|
|
6250
6251
|
}
|
|
6251
6252
|
return !1;
|
|
6252
|
-
}, p =
|
|
6253
|
+
}, p = W(() => (i) => la(H.value, (S) => {
|
|
6253
6254
|
var ne;
|
|
6254
6255
|
const te = L(i, S.value), f = wa(
|
|
6255
6256
|
S.value,
|
|
@@ -6342,7 +6343,7 @@ const $u = ({
|
|
|
6342
6343
|
showYearPicker: b,
|
|
6343
6344
|
modelValue: D,
|
|
6344
6345
|
presetDate: _,
|
|
6345
|
-
setHoverDate:
|
|
6346
|
+
setHoverDate: H,
|
|
6346
6347
|
selectMonth: U,
|
|
6347
6348
|
selectYear: $,
|
|
6348
6349
|
toggleYearPicker: v,
|
|
@@ -6386,7 +6387,7 @@ const $u = ({
|
|
|
6386
6387
|
"use-relative": "",
|
|
6387
6388
|
type: "month",
|
|
6388
6389
|
onSelected: (se) => c(U)(se, ee),
|
|
6389
|
-
onHoverValue: (se) => c(
|
|
6390
|
+
onHoverValue: (se) => c(H)(se, ee)
|
|
6390
6391
|
}, tt({
|
|
6391
6392
|
header: fe(() => [
|
|
6392
6393
|
Ye(Wl, We(T.$props, {
|
|
@@ -6429,13 +6430,13 @@ const $u = ({
|
|
|
6429
6430
|
Ue(() => {
|
|
6430
6431
|
e.startDate && (t.value && e.focusStartDate || !t.value) && (k.value = we(q(e.startDate)));
|
|
6431
6432
|
});
|
|
6432
|
-
const g = (D) => Array.isArray(t.value) ? t.value.some((_) => we(_) === D) : t.value ? we(t.value) === D : !1, u = (D) => o.value.enabled && Array.isArray(t.value) ? Ba(t.value, n.value, b(D)) : !1, M =
|
|
6433
|
-
const _ = g(D.value),
|
|
6433
|
+
const g = (D) => Array.isArray(t.value) ? t.value.some((_) => we(_) === D) : t.value ? we(t.value) === D : !1, u = (D) => o.value.enabled && Array.isArray(t.value) ? Ba(t.value, n.value, b(D)) : !1, M = W(() => la(Cn(e.yearRange, e.locale, e.reverseYears), (D) => {
|
|
6434
|
+
const _ = g(D.value), H = wa(
|
|
6434
6435
|
D.value,
|
|
6435
6436
|
ra(m.value.minDate),
|
|
6436
6437
|
ra(m.value.maxDate)
|
|
6437
6438
|
) || s.value.years.includes(D.value), U = u(D.value) && !_, $ = Sn(l.value, D.value);
|
|
6438
|
-
return { active: _, disabled:
|
|
6439
|
+
return { active: _, disabled: H, isBetween: U, highlighted: $ };
|
|
6439
6440
|
})), b = (D) => Mt(ht(/* @__PURE__ */ new Date()), D);
|
|
6440
6441
|
return {
|
|
6441
6442
|
groupedYears: M,
|
|
@@ -6447,7 +6448,7 @@ const $u = ({
|
|
|
6447
6448
|
selectYear: (D) => {
|
|
6448
6449
|
var _;
|
|
6449
6450
|
if (a("update-month-year", { instance: 0, year: D }), r.value.enabled)
|
|
6450
|
-
return t.value ? Array.isArray(t.value) && (((_ = t.value) == null ? void 0 : _.map((
|
|
6451
|
+
return t.value ? Array.isArray(t.value) && (((_ = t.value) == null ? void 0 : _.map((H) => we(H))).includes(D) ? t.value = t.value.filter((H) => we(H) !== D) : t.value.push(Mt(ct(q()), D))) : t.value = [Mt(ct(q()), D)], a("auto-apply", !0);
|
|
6451
6452
|
o.value.enabled ? (t.value = Yn(t, b(D), a), mt().then(() => {
|
|
6452
6453
|
Fa(t.value, a, e.autoApply, e.modelAuto);
|
|
6453
6454
|
})) : (t.value = b(D), a("auto-apply"));
|
|
@@ -6543,7 +6544,7 @@ const $u = ({
|
|
|
6543
6544
|
hours: !1,
|
|
6544
6545
|
minutes: !1,
|
|
6545
6546
|
seconds: !1
|
|
6546
|
-
}), _ = J("AM"),
|
|
6547
|
+
}), _ = J("AM"), H = J(null), U = J([]), $ = J();
|
|
6547
6548
|
Ue(() => {
|
|
6548
6549
|
n("mounted");
|
|
6549
6550
|
});
|
|
@@ -6552,15 +6553,15 @@ const $u = ({
|
|
|
6552
6553
|
minutes: d.minutes,
|
|
6553
6554
|
seconds: l.enableSeconds ? d.seconds : 0,
|
|
6554
6555
|
milliseconds: 0
|
|
6555
|
-
}), x =
|
|
6556
|
+
}), x = W(
|
|
6556
6557
|
() => (d) => y(d, l[d]) || O(d, l[d])
|
|
6557
|
-
), Y =
|
|
6558
|
+
), Y = W(() => ({ hours: l.hours, minutes: l.minutes, seconds: l.seconds })), O = (d, j) => u.value.enabled && !u.value.disableTimeRangeValidation ? !l.validateTime(d, j) : !1, T = (d, j) => {
|
|
6558
6559
|
if (u.value.enabled && !u.value.disableTimeRangeValidation) {
|
|
6559
6560
|
const ce = j ? +l[`${d}Increment`] : -+l[`${d}Increment`], N = l[d] + ce;
|
|
6560
6561
|
return !l.validateTime(d, N);
|
|
6561
6562
|
}
|
|
6562
6563
|
return !1;
|
|
6563
|
-
}, F =
|
|
6564
|
+
}, F = W(() => (d) => !E(+l[d] + +l[`${d}Increment`], d) || T(d, !0)), ee = W(() => (d) => !E(+l[d] - +l[`${d}Increment`], d) || T(d, !1)), se = (d, j) => il(Oe(q(), d), j), pe = (d, j) => zi(Oe(q(), d), j), L = W(
|
|
6564
6565
|
() => ({
|
|
6565
6566
|
dp__time_col: !0,
|
|
6566
6567
|
dp__time_col_block: !l.timePickerInline,
|
|
@@ -6570,14 +6571,14 @@ const $u = ({
|
|
|
6570
6571
|
dp__time_col_sec: l.enableSeconds && l.is24,
|
|
6571
6572
|
dp__time_col_sec_with_button: l.enableSeconds && !l.is24
|
|
6572
6573
|
})
|
|
6573
|
-
), V =
|
|
6574
|
+
), V = W(() => {
|
|
6574
6575
|
const d = [{ type: "hours" }];
|
|
6575
6576
|
return l.enableMinutes && d.push({ type: "", separator: !0 }, {
|
|
6576
6577
|
type: "minutes"
|
|
6577
6578
|
}), l.enableSeconds && d.push({ type: "", separator: !0 }, {
|
|
6578
6579
|
type: "seconds"
|
|
6579
6580
|
}), d;
|
|
6580
|
-
}), oe =
|
|
6581
|
+
}), oe = W(() => V.value.filter((d) => !d.separator)), p = W(() => (d) => {
|
|
6581
6582
|
if (d === "hours") {
|
|
6582
6583
|
const j = f(+l.hours);
|
|
6583
6584
|
return { text: j < 10 ? `0${j}` : `${j}`, value: j };
|
|
@@ -6626,7 +6627,7 @@ const $u = ({
|
|
|
6626
6627
|
(w, Q) => Q.map((he, Re) => [...w[Re] || [], Q[Re]]),
|
|
6627
6628
|
[]
|
|
6628
6629
|
);
|
|
6629
|
-
s(l.closeTimePickerBtn),
|
|
6630
|
+
s(l.closeTimePickerBtn), H.value && (N[1] = N[1].concat(H.value)), r(N, l.order);
|
|
6630
6631
|
}
|
|
6631
6632
|
}, Z = (d, j) => (i(d), n(`update:${d}`, j));
|
|
6632
6633
|
return a({ openChildCmp: ge }), (d, j) => {
|
|
@@ -6734,7 +6735,7 @@ const $u = ({
|
|
|
6734
6735
|
d.$slots["am-pm-button"] ? I("", !0) : (h(), R("button", {
|
|
6735
6736
|
key: 1,
|
|
6736
6737
|
ref_key: "amPmButton",
|
|
6737
|
-
ref:
|
|
6738
|
+
ref: H,
|
|
6738
6739
|
type: "button",
|
|
6739
6740
|
class: "dp__pm_am_button",
|
|
6740
6741
|
role: "button",
|
|
@@ -6823,15 +6824,15 @@ const $u = ({
|
|
|
6823
6824
|
"am-pm-change"
|
|
6824
6825
|
],
|
|
6825
6826
|
setup(e, { expose: a, emit: t }) {
|
|
6826
|
-
const n = t, l = e, { buildMatrix: r, setTimePicker: s } = Ft(), o = Nt(), { defaultedTransitions: m, defaultedAriaLabels: k, defaultedTextInput: g, defaultedConfig: u, defaultedRange: M } = Ie(l), { transitionName: b, showTransition: D } = Ma(m), { hideNavigationButtons: _ } = La(),
|
|
6827
|
+
const n = t, l = e, { buildMatrix: r, setTimePicker: s } = Ft(), o = Nt(), { defaultedTransitions: m, defaultedAriaLabels: k, defaultedTextInput: g, defaultedConfig: u, defaultedRange: M } = Ie(l), { transitionName: b, showTransition: D } = Ma(m), { hideNavigationButtons: _ } = La(), H = J(null), U = J(null), $ = J([]), v = J(null);
|
|
6827
6828
|
Ue(() => {
|
|
6828
|
-
n("mount"), !l.timePicker && l.arrowNavigation ? r([qe(
|
|
6829
|
+
n("mount"), !l.timePicker && l.arrowNavigation ? r([qe(H.value)], "time") : s(!0, l.timePicker);
|
|
6829
6830
|
});
|
|
6830
|
-
const x =
|
|
6831
|
+
const x = W(() => M.value.enabled && l.modelAuto ? Ol(l.internalModelValue) : !0), Y = J(!1), O = (A) => ({
|
|
6831
6832
|
hours: Array.isArray(l.hours) ? l.hours[A] : l.hours,
|
|
6832
6833
|
minutes: Array.isArray(l.minutes) ? l.minutes[A] : l.minutes,
|
|
6833
6834
|
seconds: Array.isArray(l.seconds) ? l.seconds[A] : l.seconds
|
|
6834
|
-
}), T =
|
|
6835
|
+
}), T = W(() => {
|
|
6835
6836
|
const A = [];
|
|
6836
6837
|
if (M.value.enabled)
|
|
6837
6838
|
for (let G = 0; G < 2; G++)
|
|
@@ -6843,7 +6844,7 @@ const $u = ({
|
|
|
6843
6844
|
G || n("reset-flow"), Y.value = A, n(A ? "overlay-opened" : "overlay-closed", et.time), l.arrowNavigation && s(A), mt(() => {
|
|
6844
6845
|
re !== "" && $.value[0] && $.value[0].openChildCmp(re);
|
|
6845
6846
|
});
|
|
6846
|
-
}, ee =
|
|
6847
|
+
}, ee = W(() => ({
|
|
6847
6848
|
dp__btn: !0,
|
|
6848
6849
|
dp__button: !0,
|
|
6849
6850
|
dp__button_bottom: l.autoApply && !u.value.keepActionRow
|
|
@@ -6867,7 +6868,7 @@ const $u = ({
|
|
|
6867
6868
|
!A.timePicker && !A.timePickerInline ? Xe((h(), R("button", {
|
|
6868
6869
|
key: 0,
|
|
6869
6870
|
ref_key: "openTimePickerBtn",
|
|
6870
|
-
ref:
|
|
6871
|
+
ref: H,
|
|
6871
6872
|
type: "button",
|
|
6872
6873
|
class: ye(ee.value),
|
|
6873
6874
|
"aria-label": (re = c(k)) == null ? void 0 : re.openTimePicker,
|
|
@@ -6982,7 +6983,7 @@ const $u = ({
|
|
|
6982
6983
|
}), Gl = (e, a, t, n) => {
|
|
6983
6984
|
const { defaultedRange: l } = Ie(e), r = (v, x) => Array.isArray(a[v]) ? a[v][x] : a[v], s = (v) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[v] : a.seconds : 0, o = (v, x) => v ? x !== void 0 ? Lt(v, r("hours", x), r("minutes", x), s(x)) : Lt(v, a.hours, a.minutes, s()) : Dn(q(), s(x)), m = (v, x) => {
|
|
6984
6985
|
a[v] = x;
|
|
6985
|
-
}, k =
|
|
6986
|
+
}, k = W(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), g = (v, x) => {
|
|
6986
6987
|
const Y = Object.fromEntries(
|
|
6987
6988
|
Object.keys(a).map((O) => O === v ? [O, x] : [O, a[O]].slice())
|
|
6988
6989
|
);
|
|
@@ -7006,7 +7007,7 @@ const $u = ({
|
|
|
7006
7007
|
u("seconds", v);
|
|
7007
7008
|
}, _ = (v, x, Y, O) => {
|
|
7008
7009
|
x && M(v), !x && !Y && b(v), Y && D(v), t.value && O(t.value);
|
|
7009
|
-
},
|
|
7010
|
+
}, H = (v) => {
|
|
7010
7011
|
if (v) {
|
|
7011
7012
|
const x = Array.isArray(v), Y = x ? [+v[0].hours, +v[1].hours] : +v.hours, O = x ? [+v[0].minutes, +v[1].minutes] : +v.minutes, T = x ? [+v[0].seconds, +v[1].seconds] : +v.seconds;
|
|
7012
7013
|
m("hours", Y), m("minutes", O), e.enableSeconds && m("seconds", T);
|
|
@@ -7017,7 +7018,7 @@ const $u = ({
|
|
|
7017
7018
|
disabledArr: []
|
|
7018
7019
|
};
|
|
7019
7020
|
return (x || x === 0) && (Y.hours = x), Array.isArray(e.disabledTimes) && (Y.disabledArr = l.value.enabled && Array.isArray(e.disabledTimes[v]) ? e.disabledTimes[v] : e.disabledTimes), Y;
|
|
7020
|
-
}, $ =
|
|
7021
|
+
}, $ = W(() => (v, x) => {
|
|
7021
7022
|
var Y;
|
|
7022
7023
|
if (Array.isArray(e.disabledTimes)) {
|
|
7023
7024
|
const { disabledArr: O, hours: T } = U(v, x), F = O.filter((ee) => +ee.hours === T);
|
|
@@ -7037,7 +7038,7 @@ const $u = ({
|
|
|
7037
7038
|
getSetDateTime: o,
|
|
7038
7039
|
updateTimeValues: _,
|
|
7039
7040
|
getSecondsValue: s,
|
|
7040
|
-
assignStartTime:
|
|
7041
|
+
assignStartTime: H,
|
|
7041
7042
|
validateTime: g,
|
|
7042
7043
|
disabledTimesConfig: $
|
|
7043
7044
|
};
|
|
@@ -7065,10 +7066,10 @@ const $u = ({
|
|
|
7065
7066
|
t.value = [o(x, 0), o(Y, 1)];
|
|
7066
7067
|
} else
|
|
7067
7068
|
t.value = o(D());
|
|
7068
|
-
},
|
|
7069
|
+
}, H = (x) => Array.isArray(x) ? [Ut(q(x[0])), Ut(q(x[1]))] : [Ut(x ?? q())], U = (x, Y, O) => {
|
|
7069
7070
|
m("hours", x), m("minutes", Y), m("seconds", e.enableSeconds ? O : 0);
|
|
7070
7071
|
}, $ = () => {
|
|
7071
|
-
const [x, Y] =
|
|
7072
|
+
const [x, Y] = H(t.value);
|
|
7072
7073
|
return r.value.enabled ? U(
|
|
7073
7074
|
[x.hours, Y.hours],
|
|
7074
7075
|
[x.minutes, Y.minutes],
|
|
@@ -7117,8 +7118,8 @@ const $u = ({
|
|
|
7117
7118
|
time: m,
|
|
7118
7119
|
updateTime: u
|
|
7119
7120
|
}), toggleTimePicker: (b, D = !1, _ = "") => {
|
|
7120
|
-
var
|
|
7121
|
-
(
|
|
7121
|
+
var H;
|
|
7122
|
+
(H = o.value) == null || H.toggleTimePicker(b, D, _);
|
|
7122
7123
|
} }), (b, D) => (h(), be(Na, {
|
|
7123
7124
|
"multi-calendars": 0,
|
|
7124
7125
|
stretch: ""
|
|
@@ -7142,7 +7143,7 @@ const $u = ({
|
|
|
7142
7143
|
onOverlayClosed: D[5] || (D[5] = (_) => b.$emit("overlay-toggle", { open: !1, overlay: _ })),
|
|
7143
7144
|
onOverlayOpened: D[6] || (D[6] = (_) => b.$emit("overlay-toggle", { open: !0, overlay: _ }))
|
|
7144
7145
|
}), tt({ _: 2 }, [
|
|
7145
|
-
Se(c(s), (_,
|
|
7146
|
+
Se(c(s), (_, H) => ({
|
|
7146
7147
|
name: _,
|
|
7147
7148
|
fn: fe((U) => [
|
|
7148
7149
|
le(b.$slots, _, Qe(lt(U)))
|
|
@@ -7179,7 +7180,7 @@ const $u = ({
|
|
|
7179
7180
|
defaultedConfig: k,
|
|
7180
7181
|
defaultedHighlight: g,
|
|
7181
7182
|
propDates: u
|
|
7182
|
-
} = Ie(l), { transitionName: M, showTransition: b } = Ma(r), { buildMatrix: D } = Ft(), { handleMonthYearChange: _, isDisabled:
|
|
7183
|
+
} = Ie(l), { transitionName: M, showTransition: b } = Ma(r), { buildMatrix: D } = Ft(), { handleMonthYearChange: _, isDisabled: H, updateMonthYear: U } = Pu(l, n), { showLeftIcon: $, showRightIcon: v } = La(), x = J(!1), Y = J(!1), O = J([null, null, null, null]);
|
|
7183
7184
|
Ue(() => {
|
|
7184
7185
|
n("mount");
|
|
7185
7186
|
});
|
|
@@ -7189,21 +7190,21 @@ const $u = ({
|
|
|
7189
7190
|
const i = E === pt.month ? pt.year : pt.month;
|
|
7190
7191
|
n("update-month-year", { [E]: B, [i]: l[i] }), E === pt.month ? p(!0) : y(!0);
|
|
7191
7192
|
}
|
|
7192
|
-
}), F =
|
|
7193
|
+
}), F = W(T(pt.month)), ee = W(T(pt.year)), se = W(() => (E) => ({
|
|
7193
7194
|
month: l.month,
|
|
7194
7195
|
year: l.year,
|
|
7195
7196
|
items: E === pt.month ? l.months : l.years,
|
|
7196
7197
|
instance: l.instance,
|
|
7197
7198
|
updateMonthYear: U,
|
|
7198
7199
|
toggle: E === pt.month ? p : y
|
|
7199
|
-
})), pe =
|
|
7200
|
+
})), pe = W(() => l.months.find((B) => B.value === l.month) || { text: "", value: 0 }), L = W(() => la(l.months, (E) => {
|
|
7200
7201
|
const B = l.month === E.value, i = wa(
|
|
7201
7202
|
E.value,
|
|
7202
7203
|
Yl(l.year, u.value.minDate),
|
|
7203
7204
|
Bl(l.year, u.value.maxDate)
|
|
7204
7205
|
) || m.value.months.includes(E.value), S = Vl(g.value, E.value, l.year);
|
|
7205
7206
|
return { active: B, disabled: i, highlighted: S };
|
|
7206
|
-
})), V =
|
|
7207
|
+
})), V = W(() => la(l.years, (E) => {
|
|
7207
7208
|
const B = l.year === E.value, i = wa(
|
|
7208
7209
|
E.value,
|
|
7209
7210
|
ra(u.value.minDate),
|
|
@@ -7220,7 +7221,7 @@ const $u = ({
|
|
|
7220
7221
|
E || n("reset-flow");
|
|
7221
7222
|
}, G = (E, B) => {
|
|
7222
7223
|
l.arrowNavigation && (O.value[B] = qe(E), D(O.value, "monthYear"));
|
|
7223
|
-
}, re =
|
|
7224
|
+
}, re = W(() => {
|
|
7224
7225
|
var E, B;
|
|
7225
7226
|
return [
|
|
7226
7227
|
{
|
|
@@ -7246,7 +7247,7 @@ const $u = ({
|
|
|
7246
7247
|
ariaLabel: (B = s.value) == null ? void 0 : B.openYearsOverlay
|
|
7247
7248
|
}
|
|
7248
7249
|
];
|
|
7249
|
-
}), me =
|
|
7250
|
+
}), me = W(() => l.disableYearSelect ? [re.value[0]] : l.yearFirst ? [...re.value].reverse() : re.value);
|
|
7250
7251
|
return a({
|
|
7251
7252
|
toggleMonthPicker: p,
|
|
7252
7253
|
toggleYearPicker: y,
|
|
@@ -7264,7 +7265,7 @@ const $u = ({
|
|
|
7264
7265
|
c($)(c(o), e.instance) && !E.vertical ? (h(), be(ya, {
|
|
7265
7266
|
key: 0,
|
|
7266
7267
|
"aria-label": (i = c(s)) == null ? void 0 : i.prevMonth,
|
|
7267
|
-
disabled: c(
|
|
7268
|
+
disabled: c(H)(!1),
|
|
7268
7269
|
onActivate: B[0] || (B[0] = (te) => c(_)(!1, !0)),
|
|
7269
7270
|
onSetRef: B[1] || (B[1] = (te) => G(te, 0))
|
|
7270
7271
|
}, {
|
|
@@ -7365,7 +7366,7 @@ const $u = ({
|
|
|
7365
7366
|
c($)(c(o), e.instance) && E.vertical ? (h(), be(ya, {
|
|
7366
7367
|
key: 1,
|
|
7367
7368
|
"aria-label": (S = c(s)) == null ? void 0 : S.prevMonth,
|
|
7368
|
-
disabled: c(
|
|
7369
|
+
disabled: c(H)(!1),
|
|
7369
7370
|
onActivate: B[2] || (B[2] = (te) => c(_)(!1, !0))
|
|
7370
7371
|
}, {
|
|
7371
7372
|
default: fe(() => [
|
|
@@ -7377,7 +7378,7 @@ const $u = ({
|
|
|
7377
7378
|
c(v)(c(o), e.instance) ? (h(), be(ya, {
|
|
7378
7379
|
key: 2,
|
|
7379
7380
|
ref: "rightIcon",
|
|
7380
|
-
disabled: c(
|
|
7381
|
+
disabled: c(H)(!0),
|
|
7381
7382
|
"aria-label": (ne = c(s)) == null ? void 0 : ne.nextMonth,
|
|
7382
7383
|
onActivate: B[3] || (B[3] = (te) => c(_)(!0, !0)),
|
|
7383
7384
|
onSetRef: B[4] || (B[4] = (te) => G(te, E.disableYearSelect ? 2 : 3))
|
|
@@ -7438,31 +7439,31 @@ const $u = ({
|
|
|
7438
7439
|
bottom: "",
|
|
7439
7440
|
left: "",
|
|
7440
7441
|
transform: ""
|
|
7441
|
-
}), D = J([]), _ = J(null),
|
|
7442
|
+
}), D = J([]), _ = J(null), H = J(!0), U = J(""), $ = J({ startX: 0, endX: 0, startY: 0, endY: 0 }), v = J([]), x = J({ left: "50%" }), Y = J(!1), O = W(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), T = W(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Qi(l.formatLocale, l.locale, +l.weekStart));
|
|
7442
7443
|
Ue(() => {
|
|
7443
7444
|
n("mount", { cmp: "calendar", refs: D }), o.value.noSwipe || _.value && (_.value.addEventListener("touchstart", re, { passive: !1 }), _.value.addEventListener("touchend", me, { passive: !1 }), _.value.addEventListener("touchmove", E, { passive: !1 })), l.monthChangeOnScroll && _.value && _.value.addEventListener("wheel", S, { passive: !1 });
|
|
7444
7445
|
});
|
|
7445
7446
|
const F = (K) => K ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", ee = (K, Z) => {
|
|
7446
7447
|
if (l.transitions) {
|
|
7447
7448
|
const d = ct($t(q(), l.month, l.year));
|
|
7448
|
-
U.value = He(ct($t(q(), K, Z)), d) ? s.value[F(!0)] : s.value[F(!1)],
|
|
7449
|
-
|
|
7449
|
+
U.value = He(ct($t(q(), K, Z)), d) ? s.value[F(!0)] : s.value[F(!1)], H.value = !1, mt(() => {
|
|
7450
|
+
H.value = !0;
|
|
7450
7451
|
});
|
|
7451
7452
|
}
|
|
7452
|
-
}, se =
|
|
7453
|
+
}, se = W(
|
|
7453
7454
|
() => ({
|
|
7454
7455
|
[l.calendarClassName]: !!l.calendarClassName
|
|
7455
7456
|
})
|
|
7456
|
-
), pe =
|
|
7457
|
+
), pe = W(() => (K) => {
|
|
7457
7458
|
const Z = Ji(K);
|
|
7458
7459
|
return {
|
|
7459
7460
|
dp__marker_dot: Z.type === "dot",
|
|
7460
7461
|
dp__marker_line: Z.type === "line"
|
|
7461
7462
|
};
|
|
7462
|
-
}), L =
|
|
7463
|
+
}), L = W(() => (K) => De(K, M.value)), V = W(() => ({
|
|
7463
7464
|
dp__calendar: !0,
|
|
7464
7465
|
dp__calendar_next: k.value.count > 0 && l.instance !== 0
|
|
7465
|
-
})), oe =
|
|
7466
|
+
})), oe = W(() => (K) => l.hideOffsetDates ? K.current : !0), p = (K) => Tt(K, "yyyy-MM-dd"), y = async (K, Z, d) => {
|
|
7466
7467
|
const j = qe(D.value[Z][d]);
|
|
7467
7468
|
if (j) {
|
|
7468
7469
|
const { width: ce, height: N } = j.getBoundingClientRect();
|
|
@@ -7550,7 +7551,7 @@ const $u = ({
|
|
|
7550
7551
|
default: fe(() => {
|
|
7551
7552
|
var j;
|
|
7552
7553
|
return [
|
|
7553
|
-
|
|
7554
|
+
H.value ? (h(), R("div", {
|
|
7554
7555
|
key: 0,
|
|
7555
7556
|
class: "dp__calendar",
|
|
7556
7557
|
role: "rowgroup",
|
|
@@ -7665,11 +7666,11 @@ const $u = ({
|
|
|
7665
7666
|
defaultedRange: b,
|
|
7666
7667
|
defaultedConfig: D,
|
|
7667
7668
|
defaultedTz: _,
|
|
7668
|
-
propDates:
|
|
7669
|
+
propDates: H,
|
|
7669
7670
|
defaultedMultiDates: U
|
|
7670
|
-
} = Ie(e), { validateMonthYearInRange: $, isDisabled: v, isDateRangeAllowed: x, checkMinMaxRange: Y } = Vt(e), { updateTimeValues: O, getSetDateTime: T, setTime: F, assignStartTime: ee, validateTime: se, disabledTimesConfig: pe } = Gl(e, k, o, n), L =
|
|
7671
|
+
} = Ie(e), { validateMonthYearInRange: $, isDisabled: v, isDateRangeAllowed: x, checkMinMaxRange: Y } = Vt(e), { updateTimeValues: O, getSetDateTime: T, setTime: F, assignStartTime: ee, validateTime: se, disabledTimesConfig: pe } = Gl(e, k, o, n), L = W(
|
|
7671
7672
|
() => (C) => m.value[C] ? m.value[C].month : 0
|
|
7672
|
-
), V =
|
|
7673
|
+
), V = W(
|
|
7673
7674
|
() => (C) => m.value[C] ? m.value[C].year : 0
|
|
7674
7675
|
), oe = (C) => !D.value.keepViewOnOffsetClick || C ? !0 : !s.value, p = (C, P, X, ae = !1) => {
|
|
7675
7676
|
var Ae, Je;
|
|
@@ -7686,7 +7687,7 @@ const $u = ({
|
|
|
7686
7687
|
), Ue(() => {
|
|
7687
7688
|
e.shadow || (o.value || (K(), M.value && ee(M.value)), re(!0), e.focusStartDate && e.startDate && K());
|
|
7688
7689
|
});
|
|
7689
|
-
const A =
|
|
7690
|
+
const A = W(() => {
|
|
7690
7691
|
var C;
|
|
7691
7692
|
return (C = e.flow) != null && C.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
|
|
7692
7693
|
}), G = () => {
|
|
@@ -7762,8 +7763,8 @@ const $u = ({
|
|
|
7762
7763
|
}, j = (C, P) => {
|
|
7763
7764
|
f(C === "right" ? -1 : 1, P);
|
|
7764
7765
|
}, ce = (C) => {
|
|
7765
|
-
if (
|
|
7766
|
-
return Sa(C.value,
|
|
7766
|
+
if (H.value.markers)
|
|
7767
|
+
return Sa(C.value, H.value.markers);
|
|
7767
7768
|
}, N = (C, P) => {
|
|
7768
7769
|
switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
|
|
7769
7770
|
case "prepend":
|
|
@@ -7952,7 +7953,7 @@ const $u = ({
|
|
|
7952
7953
|
getCalendarDays: b,
|
|
7953
7954
|
getMarker: D,
|
|
7954
7955
|
handleArrow: _,
|
|
7955
|
-
handleScroll:
|
|
7956
|
+
handleScroll: H,
|
|
7956
7957
|
handleSwipe: U,
|
|
7957
7958
|
selectDate: $,
|
|
7958
7959
|
updateMonthYear: v,
|
|
@@ -7971,7 +7972,7 @@ const $u = ({
|
|
|
7971
7972
|
},
|
|
7972
7973
|
{ deep: !0 }
|
|
7973
7974
|
);
|
|
7974
|
-
const re =
|
|
7975
|
+
const re = W(() => (Z) => b(s.value(Z), o.value(Z)).map((d) => ({
|
|
7975
7976
|
...d,
|
|
7976
7977
|
days: d.days.map((j) => (j.marker = D(j), j.classData = ee(j), j))
|
|
7977
7978
|
})));
|
|
@@ -8077,7 +8078,7 @@ const $u = ({
|
|
|
8077
8078
|
onSelectDate: (N) => c($)(N, j !== 1),
|
|
8078
8079
|
onHandleSpace: (N) => B(N, j !== 1),
|
|
8079
8080
|
onSetHoverDate: d[3] || (d[3] = (N) => c(F)(N)),
|
|
8080
|
-
onHandleScroll: (N) => c(
|
|
8081
|
+
onHandleScroll: (N) => c(H)(N, j),
|
|
8081
8082
|
onHandleSwipe: (N) => c(U)(N, j),
|
|
8082
8083
|
onMount: d[4] || (d[4] = (N) => G(c(qt).calendar)),
|
|
8083
8084
|
onResetFlow: d[5] || (d[5] = (N) => Z.$emit("reset-flow")),
|
|
@@ -8134,7 +8135,7 @@ const $u = ({
|
|
|
8134
8135
|
propDates: o,
|
|
8135
8136
|
defaultedFilters: m,
|
|
8136
8137
|
defaultedMultiDates: k
|
|
8137
|
-
} = Ie(e), { modelValue: g, year: u, month: M, calendars: b } = Da(e, a), { isDisabled: D } = Vt(e), { selectYear: _, groupedYears:
|
|
8138
|
+
} = Ie(e), { modelValue: g, year: u, month: M, calendars: b } = Da(e, a), { isDisabled: D } = Vt(e), { selectYear: _, groupedYears: H, showYearPicker: U, isDisabled: $, toggleYearPicker: v, handleYearSelect: x, handleYear: Y } = ql({
|
|
8138
8139
|
modelValue: g,
|
|
8139
8140
|
multiCalendars: n,
|
|
8140
8141
|
highlight: r,
|
|
@@ -8145,7 +8146,7 @@ const $u = ({
|
|
|
8145
8146
|
filters: m,
|
|
8146
8147
|
props: e,
|
|
8147
8148
|
emit: a
|
|
8148
|
-
}), O = (p, y) => [p, y].map((A) => Tt(A, "MMMM", { locale: e.formatLocale })).join("-"), T =
|
|
8149
|
+
}), O = (p, y) => [p, y].map((A) => Tt(A, "MMMM", { locale: e.formatLocale })).join("-"), T = W(() => (p) => g.value ? Array.isArray(g.value) ? g.value.some((y) => Gn(p, y)) : Gn(g.value, p) : !1), F = (p) => {
|
|
8149
8150
|
if (s.value.enabled) {
|
|
8150
8151
|
if (Array.isArray(g.value)) {
|
|
8151
8152
|
const y = De(p, g.value[0]) || De(p, g.value[1]);
|
|
@@ -8154,7 +8155,7 @@ const $u = ({
|
|
|
8154
8155
|
return !1;
|
|
8155
8156
|
}
|
|
8156
8157
|
return !1;
|
|
8157
|
-
}, ee = (p, y) => p.quarter === Hn(y) && p.year === we(y), se = (p) => typeof r.value == "function" ? r.value({ quarter: Hn(p), year: we(p) }) : !!r.value.quarters.find((y) => ee(y, p)), pe =
|
|
8158
|
+
}, ee = (p, y) => p.quarter === Hn(y) && p.year === we(y), se = (p) => typeof r.value == "function" ? r.value({ quarter: Hn(p), year: we(p) }) : !!r.value.quarters.find((y) => ee(y, p)), pe = W(() => (p) => {
|
|
8158
8159
|
const y = Oe(/* @__PURE__ */ new Date(), { year: u.value(p) });
|
|
8159
8160
|
return Ko({
|
|
8160
8161
|
start: yn(y),
|
|
@@ -8180,7 +8181,7 @@ const $u = ({
|
|
|
8180
8181
|
return {
|
|
8181
8182
|
defaultedConfig: l,
|
|
8182
8183
|
defaultedMultiCalendars: n,
|
|
8183
|
-
groupedYears:
|
|
8184
|
+
groupedYears: H,
|
|
8184
8185
|
year: u,
|
|
8185
8186
|
isDisabled: $,
|
|
8186
8187
|
quarters: pe,
|
|
@@ -8227,7 +8228,7 @@ const $u = ({
|
|
|
8227
8228
|
modelValue: b,
|
|
8228
8229
|
showYearPicker: D,
|
|
8229
8230
|
setHoverDate: _,
|
|
8230
|
-
selectQuarter:
|
|
8231
|
+
selectQuarter: H,
|
|
8231
8232
|
toggleYearPicker: U,
|
|
8232
8233
|
handleYearSelect: $,
|
|
8233
8234
|
handleYear: v
|
|
@@ -8235,7 +8236,7 @@ const $u = ({
|
|
|
8235
8236
|
return a({ getSidebarProps: () => ({
|
|
8236
8237
|
modelValue: b,
|
|
8237
8238
|
year: g,
|
|
8238
|
-
selectQuarter:
|
|
8239
|
+
selectQuarter: H,
|
|
8239
8240
|
handleYearSelect: $,
|
|
8240
8241
|
handleYear: v
|
|
8241
8242
|
}) }), (x, Y) => (h(), be(Na, {
|
|
@@ -8283,7 +8284,7 @@ const $u = ({
|
|
|
8283
8284
|
}]),
|
|
8284
8285
|
"data-test": T.value,
|
|
8285
8286
|
disabled: T.disabled,
|
|
8286
|
-
onClick: (ee) => c(
|
|
8287
|
+
onClick: (ee) => c(H)(T.value, O, T.disabled),
|
|
8287
8288
|
onMouseover: (ee) => c(_)(T.value)
|
|
8288
8289
|
}, [
|
|
8289
8290
|
x.$slots.quarter ? le(x.$slots, "quarter", {
|
|
@@ -8353,7 +8354,7 @@ const $u = ({
|
|
|
8353
8354
|
"overlay-toggle"
|
|
8354
8355
|
],
|
|
8355
8356
|
setup(e, { expose: a, emit: t }) {
|
|
8356
|
-
const n = t, l = e, r = J(null), s =
|
|
8357
|
+
const n = t, l = e, r = J(null), s = W(() => {
|
|
8357
8358
|
const { openOnTop: w, ...Q } = l;
|
|
8358
8359
|
return {
|
|
8359
8360
|
...Q,
|
|
@@ -8362,7 +8363,7 @@ const $u = ({
|
|
|
8362
8363
|
noOverlayFocus: l.noOverlayFocus,
|
|
8363
8364
|
menuWrapRef: r.value
|
|
8364
8365
|
};
|
|
8365
|
-
}), { setMenuFocused: o, setShiftKey: m, control: k } = Hl(), g = Nt(), { defaultedTextInput: u, defaultedInline: M, defaultedConfig: b } = Ie(l), D = J(null), _ = J(0),
|
|
8366
|
+
}), { setMenuFocused: o, setShiftKey: m, control: k } = Hl(), g = Nt(), { defaultedTextInput: u, defaultedInline: M, defaultedConfig: b } = Ie(l), D = J(null), _ = J(0), H = J(null), U = J(!1), $ = J(null);
|
|
8366
8367
|
Ue(() => {
|
|
8367
8368
|
if (!l.shadow) {
|
|
8368
8369
|
U.value = !0, v(), window.addEventListener("resize", v);
|
|
@@ -8378,9 +8379,9 @@ const $u = ({
|
|
|
8378
8379
|
window.removeEventListener("resize", v);
|
|
8379
8380
|
});
|
|
8380
8381
|
const v = () => {
|
|
8381
|
-
const w = qe(
|
|
8382
|
+
const w = qe(H);
|
|
8382
8383
|
w && (_.value = w.getBoundingClientRect().width);
|
|
8383
|
-
}, { arrowRight: x, arrowLeft: Y, arrowDown: O, arrowUp: T } = Ft(), { flowStep: F, updateFlowStep: ee, childMount: se, resetFlow: pe } = Ou(l, n, $), L =
|
|
8384
|
+
}, { arrowRight: x, arrowLeft: Y, arrowDown: O, arrowUp: T } = Ft(), { flowStep: F, updateFlowStep: ee, childMount: se, resetFlow: pe } = Ou(l, n, $), L = W(() => l.monthPicker ? Uu : l.yearPicker ? Qu : l.timePicker ? md : l.quarterPicker ? Yd : Rd), V = W(() => {
|
|
8384
8385
|
var w;
|
|
8385
8386
|
if (b.value.arrowLeft)
|
|
8386
8387
|
return b.value.arrowLeft;
|
|
@@ -8389,16 +8390,16 @@ const $u = ({
|
|
|
8389
8390
|
}), oe = () => {
|
|
8390
8391
|
const w = qe(r);
|
|
8391
8392
|
w && w.focus({ preventScroll: !0 });
|
|
8392
|
-
}, p =
|
|
8393
|
+
}, p = W(() => {
|
|
8393
8394
|
var w;
|
|
8394
8395
|
return ((w = $.value) == null ? void 0 : w.getSidebarProps()) || {};
|
|
8395
8396
|
}), y = () => {
|
|
8396
8397
|
l.openOnTop && n("recalculate-position");
|
|
8397
|
-
}, A = it(g, "action"), G =
|
|
8398
|
+
}, A = it(g, "action"), G = W(() => l.monthPicker || l.yearPicker ? it(g, "monthYear") : l.timePicker ? it(g, "timePicker") : it(g, "shared")), re = W(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = W(() => ({
|
|
8398
8399
|
dp__menu_disabled: l.disabled,
|
|
8399
8400
|
dp__menu_readonly: l.readonly,
|
|
8400
8401
|
"dp-menu-loading": l.loading
|
|
8401
|
-
})), E =
|
|
8402
|
+
})), E = W(
|
|
8402
8403
|
() => ({
|
|
8403
8404
|
dp__menu: !0,
|
|
8404
8405
|
dp__menu_index: !M.value.enabled,
|
|
@@ -8494,7 +8495,7 @@ const $u = ({
|
|
|
8494
8495
|
}, null, 2)) : I("", !0),
|
|
8495
8496
|
z("div", {
|
|
8496
8497
|
ref_key: "innerMenuRef",
|
|
8497
|
-
ref:
|
|
8498
|
+
ref: H,
|
|
8498
8499
|
class: ye({
|
|
8499
8500
|
dp__menu_content_wrapper: ((Re = w.presetDates) == null ? void 0 : Re.length) || !!w.$slots["left-sidebar"] || !!w.$slots["right-sidebar"],
|
|
8500
8501
|
"dp--menu-content-wrapper-collapsed": e.collapse && (((xe = w.presetDates) == null ? void 0 : xe.length) || !!w.$slots["left-sidebar"] || !!w.$slots["right-sidebar"])
|
|
@@ -8655,7 +8656,7 @@ const $u = ({
|
|
|
8655
8656
|
"overlay-toggle"
|
|
8656
8657
|
],
|
|
8657
8658
|
setup(e, { expose: a, emit: t }) {
|
|
8658
|
-
const n = t, l = e, r = Nt(), s = J(!1), o = ga(l, "modelValue"), m = ga(l, "timezone"), k = J(null), g = J(null), u = J(null), M = J(!1), b = J(null), D = J(!1), _ = J(!1),
|
|
8659
|
+
const n = t, l = e, r = Nt(), s = J(!1), o = ga(l, "modelValue"), m = ga(l, "timezone"), k = J(null), g = J(null), u = J(null), M = J(!1), b = J(null), D = J(!1), _ = J(!1), H = J(!1), { setMenuFocused: U, setShiftKey: $ } = Hl(), { clearArrowNav: v } = Ft(), { validateDate: x, isValidTime: Y } = Vt(l), {
|
|
8659
8660
|
defaultedTransitions: O,
|
|
8660
8661
|
defaultedTextInput: T,
|
|
8661
8662
|
defaultedInline: F,
|
|
@@ -8701,19 +8702,19 @@ const $u = ({
|
|
|
8701
8702
|
emitModelValue: ne,
|
|
8702
8703
|
formatInputValue: te,
|
|
8703
8704
|
checkBeforeEmit: f
|
|
8704
|
-
} = xu(n, l, M), ue =
|
|
8705
|
+
} = xu(n, l, M), ue = W(
|
|
8705
8706
|
() => ({
|
|
8706
8707
|
dp__main: !0,
|
|
8707
8708
|
dp__theme_dark: l.dark,
|
|
8708
8709
|
dp__theme_light: !l.dark,
|
|
8709
8710
|
dp__flex_display: F.value.enabled,
|
|
8710
|
-
"dp--flex-display-collapsed":
|
|
8711
|
+
"dp--flex-display-collapsed": H.value,
|
|
8711
8712
|
dp__flex_display_with_input: F.value.input
|
|
8712
8713
|
})
|
|
8713
|
-
), ge =
|
|
8714
|
+
), ge = W(() => l.dark ? "dp__theme_dark" : "dp__theme_light"), K = W(() => l.teleport ? {
|
|
8714
8715
|
to: typeof l.teleport == "boolean" ? "body" : l.teleport,
|
|
8715
8716
|
disabled: !l.teleport || F.value.enabled
|
|
8716
|
-
} : {}), Z =
|
|
8717
|
+
} : {}), Z = W(() => ({ class: "dp__outer_menu_wrap" })), d = W(() => F.value.enabled && (l.timePicker || l.monthPicker || l.yearPicker || l.quarterPicker)), j = () => {
|
|
8717
8718
|
var P, X;
|
|
8718
8719
|
return (X = (P = u.value) == null ? void 0 : P.$el) == null ? void 0 : X.getBoundingClientRect();
|
|
8719
8720
|
}, ce = () => {
|
|
@@ -8722,7 +8723,7 @@ const $u = ({
|
|
|
8722
8723
|
var P;
|
|
8723
8724
|
s.value && re();
|
|
8724
8725
|
const X = (P = g.value) == null ? void 0 : P.$el.getBoundingClientRect().width;
|
|
8725
|
-
|
|
8726
|
+
H.value = document.body.offsetWidth <= X;
|
|
8726
8727
|
}, w = (P) => {
|
|
8727
8728
|
P.key === "Tab" && !F.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (b.value.contains(document.activeElement) || st()), _.value = P.shiftKey;
|
|
8728
8729
|
}, Q = (P) => {
|
|
@@ -8846,7 +8847,7 @@ const $u = ({
|
|
|
8846
8847
|
class: { [ge.value]: !0, "dp--menu-wrapper": P.teleport },
|
|
8847
8848
|
"open-on-top": c(y),
|
|
8848
8849
|
"no-overlay-focus": d.value,
|
|
8849
|
-
collapse:
|
|
8850
|
+
collapse: H.value,
|
|
8850
8851
|
"get-input-rect": j,
|
|
8851
8852
|
onClosePicker: st,
|
|
8852
8853
|
onSelectDate: ie,
|
|
@@ -8914,7 +8915,7 @@ const Xd = { class: "rm-datepicker" }, yc = /* @__PURE__ */ Te({
|
|
|
8914
8915
|
},
|
|
8915
8916
|
emits: ["change", "delete"],
|
|
8916
8917
|
setup(e, { emit: a }) {
|
|
8917
|
-
const t = e, n = a, l = J(), r =
|
|
8918
|
+
const t = e, n = a, l = J(), r = W(() => ({
|
|
8918
8919
|
maxDate: t.maxDate,
|
|
8919
8920
|
minDate: t.minDate,
|
|
8920
8921
|
startDate: t.startDate,
|
|
@@ -8997,7 +8998,7 @@ const Xd = { class: "rm-datepicker" }, yc = /* @__PURE__ */ Te({
|
|
|
8997
8998
|
labelBorderColor: {}
|
|
8998
8999
|
},
|
|
8999
9000
|
setup(e) {
|
|
9000
|
-
const a = e, t =
|
|
9001
|
+
const a = e, t = W(() => a.label.trim().replace(/\s+/g, " ").split(" ").map((n) => n[0].toUpperCase()).join("").slice(0, 2));
|
|
9001
9002
|
return (n, l) => (h(), R("div", {
|
|
9002
9003
|
class: ye([
|
|
9003
9004
|
"rm-avatar",
|