redmine-ui-kit 1.5.5 → 1.5.6
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 +161 -160
- 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 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 H, 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 = H(() => !!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 = H(() => !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 = H({
|
|
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 = H(() => t.acceptFiles.split(",").map((b) => k(b)).join(", ")), o = H(() => t.deniedFiles.split(",").map((b) => k(b)).join(", ")), m = H(() => 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: W } = 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
|
+
W,
|
|
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 = H({
|
|
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 W({ 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) => W(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) => W(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 = H(() => {
|
|
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 = H(() => {
|
|
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 = H(() => {
|
|
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 W(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) => W(Y), ["stop"])
|
|
718
718
|
}, ro, 8, no)
|
|
719
719
|
]))), 128))
|
|
720
720
|
])) : I("", !0)
|
|
@@ -764,7 +764,8 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
764
764
|
key: 1,
|
|
765
765
|
options: g.value,
|
|
766
766
|
selected: u.value,
|
|
767
|
-
|
|
767
|
+
isFocus: m.value,
|
|
768
|
+
close: () => m.value = !1
|
|
768
769
|
}) : (h(), R("ul", po, [
|
|
769
770
|
(h(!0), R(_e, null, Se(g.value, (Y, O) => (h(), R("li", {
|
|
770
771
|
key: `${O}_option`,
|
|
@@ -775,7 +776,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
775
776
|
"rm-select-inner__item--selected": !v.multiple && !v.chips || !Array.isArray(v.modelValue) ? Y.value === u.value : v.modelValue.includes(Y.value)
|
|
776
777
|
}
|
|
777
778
|
]),
|
|
778
|
-
onClick: (T) =>
|
|
779
|
+
onClick: (T) => W(Y)
|
|
779
780
|
}, [
|
|
780
781
|
v.multiple || v.chips ? (h(), be(yr, {
|
|
781
782
|
key: 0,
|
|
@@ -783,7 +784,7 @@ const Or = ["for"], Sr = { class: "rm-input-wrapper" }, Er = ["id", "maxlength",
|
|
|
783
784
|
name: Y.name.toString(),
|
|
784
785
|
checked: v.modelValue.includes(Y.value),
|
|
785
786
|
class: "rm-select-inner-list__item-checkbox",
|
|
786
|
-
onClick: Dt((T) =>
|
|
787
|
+
onClick: Dt((T) => W(Y), ["stop", "prevent"])
|
|
787
788
|
}, null, 8, ["model-value", "name", "checked", "onClick"])) : I("", !0),
|
|
788
789
|
z("span", null, ke(Y.name), 1)
|
|
789
790
|
], 10, fo))), 128))
|
|
@@ -874,7 +875,7 @@ const Do = /* @__PURE__ */ yo(go, [["render", Mo]]), To = {
|
|
|
874
875
|
function D() {
|
|
875
876
|
n("change", o.value), u();
|
|
876
877
|
}
|
|
877
|
-
return (_,
|
|
878
|
+
return (_, W) => Xe((h(), R("div", {
|
|
878
879
|
class: ye(["rm-editable", { active: s.value }])
|
|
879
880
|
}, [
|
|
880
881
|
s.value ? (h(), R("div", To, [
|
|
@@ -2311,8 +2312,8 @@ function Is(e, a, t) {
|
|
|
2311
2312
|
}
|
|
2312
2313
|
const Ns = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Fs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Vs = /^'([^]*?)'?$/, Hs = /''/g, Ws = /[a-zA-Z]/;
|
|
2313
2314
|
function Tt(e, a, t) {
|
|
2314
|
-
var g, u, M, b, D, _,
|
|
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 = (
|
|
2315
|
+
var g, u, M, b, D, _, W, U;
|
|
2316
|
+
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 = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : U.weekStartsOn) ?? 0, o = ve(e);
|
|
2316
2317
|
if (!ha(o))
|
|
2317
2318
|
throw new RangeError("Invalid time value");
|
|
2318
2319
|
let m = a.match(Fs).map(($) => {
|
|
@@ -3860,8 +3861,8 @@ const Yi = {
|
|
|
3860
3861
|
T: new Ei()
|
|
3861
3862
|
}, Bi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Li = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ii = /^'([^]*?)'?$/, Ni = /''/g, Fi = /\S/, Vi = /[a-zA-Z]/;
|
|
3862
3863
|
function mn(e, a, t, n) {
|
|
3863
|
-
var _,
|
|
3864
|
-
const l = Us(), r = (n == null ? void 0 : n.locale) ?? l.locale ?? yl, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((
|
|
3864
|
+
var _, W, U, $, v, x, Y, O;
|
|
3865
|
+
const l = Us(), r = (n == null ? void 0 : n.locale) ?? l.locale ?? yl, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((W = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : W.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;
|
|
3865
3866
|
if (a === "")
|
|
3866
3867
|
return e === "" ? ve(t) : Pe(t, NaN);
|
|
3867
3868
|
const m = {
|
|
@@ -4404,7 +4405,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4404
4405
|
va.shiftKeyInMenu !== t && (va.shiftKeyInMenu = t);
|
|
4405
4406
|
};
|
|
4406
4407
|
return {
|
|
4407
|
-
control:
|
|
4408
|
+
control: H(() => ({ shiftKeyInMenu: va.shiftKeyInMenu, menuFocused: va.menuFocused })),
|
|
4408
4409
|
setMenuFocused: e,
|
|
4409
4410
|
setShiftKey: a
|
|
4410
4411
|
};
|
|
@@ -4420,7 +4421,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4420
4421
|
},
|
|
4421
4422
|
monthPicker: []
|
|
4422
4423
|
}), nn = J(null), Ca = J(!1), ln = J(!1), rn = J(!1), on = J(!1), Ke = J(0), Ve = J(0), Ft = () => {
|
|
4423
|
-
const e =
|
|
4424
|
+
const e = H(() => Ca.value ? [...Ee.selectionGrid, Ee.actionRow].filter((u) => u.length) : ln.value ? [
|
|
4424
4425
|
...Ee.timePicker[0],
|
|
4425
4426
|
...Ee.timePicker[1],
|
|
4426
4427
|
on.value ? [] : [nn.value],
|
|
@@ -4616,10 +4617,10 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4616
4617
|
return e.is24 ? `HH${O}${Y}` : `hh${O}${Y} aa`;
|
|
4617
4618
|
}, t = () => {
|
|
4618
4619
|
var Y;
|
|
4619
|
-
return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((Y =
|
|
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 =
|
|
4620
|
+
return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((Y = W.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";
|
|
4621
|
+
}, 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 = H(() => cu(e.multiCalendars)), s = H(() => l()), o = H(() => du(e.ariaLabels)), m = H(() => fu(e.filters)), k = H(() => vu(e.transitions)), g = H(() => hu(e.actionRow)), u = H(
|
|
4621
4622
|
() => mu(e.previewFormat, e.format, t())
|
|
4622
|
-
), M =
|
|
4623
|
+
), M = H(() => pu(e.textInput)), b = H(() => yu(e.inline)), D = H(() => gu(e.config)), _ = H(() => bu(e.highlight)), W = H(() => wu(e.weekNumbers)), U = H(() => ku(e.timezone, e.emitTimezone)), $ = H(() => Tu(e.multiDates, e.multiDatesLimit)), v = H(
|
|
4623
4624
|
() => Du(
|
|
4624
4625
|
e.minDate,
|
|
4625
4626
|
e.maxDate,
|
|
@@ -4629,7 +4630,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4629
4630
|
e.markers,
|
|
4630
4631
|
U.value
|
|
4631
4632
|
)
|
|
4632
|
-
), x =
|
|
4633
|
+
), x = H(
|
|
4633
4634
|
() => _u(e.range, {
|
|
4634
4635
|
minMaxRawRange: !1,
|
|
4635
4636
|
maxRange: e.maxRange,
|
|
@@ -4655,7 +4656,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4655
4656
|
defaultedInline: b,
|
|
4656
4657
|
defaultedConfig: D,
|
|
4657
4658
|
defaultedHighlight: _,
|
|
4658
|
-
defaultedWeekNumbers:
|
|
4659
|
+
defaultedWeekNumbers: W,
|
|
4659
4660
|
defaultedRange: x,
|
|
4660
4661
|
propDates: v,
|
|
4661
4662
|
defaultedTz: U,
|
|
@@ -4694,7 +4695,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4694
4695
|
hours: At(f),
|
|
4695
4696
|
minutes: It(f),
|
|
4696
4697
|
seconds: a.enableSeconds ? ta(f) : 0
|
|
4697
|
-
} : null,
|
|
4698
|
+
} : null, W = (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(
|
|
4698
4699
|
() => [
|
|
4699
4700
|
Mt(q(), f[0]),
|
|
4700
4701
|
f[1] ? Mt(q(), f[1]) : Xt(r.value.partialRange)
|
|
@@ -4785,7 +4786,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4785
4786
|
}, S = (f, ue) => E(Ge(B(f)), !1, ue), ne = (f) => {
|
|
4786
4787
|
const ue = i();
|
|
4787
4788
|
return f ? ue : e("update:model-value", i());
|
|
4788
|
-
}, te = (f = !1) => (f || G(), a.monthPicker ? S(
|
|
4789
|
+
}, te = (f = !1) => (f || G(), a.monthPicker ? S(W, f) : a.timePicker ? S(_, f) : a.yearPicker ? S(we, f) : a.weekPicker ? ne(f) : E(L(f), !0, f));
|
|
4789
4790
|
return {
|
|
4790
4791
|
inputValue: k,
|
|
4791
4792
|
internalModelValue: n,
|
|
@@ -4809,7 +4810,7 @@ const tu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
4809
4810
|
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);
|
|
4810
4811
|
}, m = (g, u, M) => {
|
|
4811
4812
|
a("update-month-year", { month: g, year: u, fromNav: M });
|
|
4812
|
-
}, k =
|
|
4813
|
+
}, k = H(() => (g) => Nl(
|
|
4813
4814
|
Oe(q(), { month: e.month, year: e.year }),
|
|
4814
4815
|
n.value.maxDate,
|
|
4815
4816
|
n.value.minDate,
|
|
@@ -4849,7 +4850,7 @@ const $u = ({
|
|
|
4849
4850
|
g.value.left = `${p + y - m.value.width}px`;
|
|
4850
4851
|
}, _ = (p) => {
|
|
4851
4852
|
g.value.left = `${p}px`;
|
|
4852
|
-
},
|
|
4853
|
+
}, W = (p, y) => {
|
|
4853
4854
|
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`);
|
|
4854
4855
|
}, U = (p) => {
|
|
4855
4856
|
const { width: y, height: A } = p.getBoundingClientRect(), { top: G, left: re } = s.altPosition ? s.altPosition(p) : b(p);
|
|
@@ -4873,7 +4874,7 @@ const $u = ({
|
|
|
4873
4874
|
return pe();
|
|
4874
4875
|
}
|
|
4875
4876
|
}, Y = ({ inputEl: p, left: y, width: A }) => {
|
|
4876
|
-
window.screen.width > 768 && !k.value &&
|
|
4877
|
+
window.screen.width > 768 && !k.value && W(y, A), F(p);
|
|
4877
4878
|
}, O = (p) => {
|
|
4878
4879
|
const { top: y, left: A, height: G, width: re } = U(p);
|
|
4879
4880
|
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 });
|
|
@@ -4890,7 +4891,7 @@ const $u = ({
|
|
|
4890
4891
|
if (re >= document.documentElement.clientWidth)
|
|
4891
4892
|
return k.value = !0, D(y, A);
|
|
4892
4893
|
}
|
|
4893
|
-
return
|
|
4894
|
+
return W(y, A);
|
|
4894
4895
|
}
|
|
4895
4896
|
}
|
|
4896
4897
|
}, ee = () => {
|
|
@@ -5007,7 +5008,7 @@ const $u = ({
|
|
|
5007
5008
|
l.slot && n.push(l.slot);
|
|
5008
5009
|
}), n;
|
|
5009
5010
|
}, Ma = (e) => {
|
|
5010
|
-
const a =
|
|
5011
|
+
const a = H(() => (n) => e.value ? n ? e.value.open : e.value.close : ""), t = H(() => (n) => e.value ? n ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
|
|
5011
5012
|
return { transitionName: a, showTransition: !!e.value, menuTransition: t };
|
|
5012
5013
|
}, Da = (e, a) => {
|
|
5013
5014
|
const { defaultedRange: t, defaultedTz: n } = Ie(e), l = q(xt(q(), n.value.timezone)), r = J([{ month: Me(l), year: we(l) }]), s = (u) => {
|
|
@@ -5029,14 +5030,14 @@ const $u = ({
|
|
|
5029
5030
|
},
|
|
5030
5031
|
{ deep: !0 }
|
|
5031
5032
|
);
|
|
5032
|
-
const m =
|
|
5033
|
+
const m = H({
|
|
5033
5034
|
get: () => e.internalModelValue,
|
|
5034
5035
|
set: (u) => {
|
|
5035
5036
|
!e.readonly && !e.disabled && a("update:internal-model-value", u);
|
|
5036
5037
|
}
|
|
5037
|
-
}), k =
|
|
5038
|
+
}), k = H(
|
|
5038
5039
|
() => (u) => r.value[u] ? r.value[u].month : 0
|
|
5039
|
-
), g =
|
|
5040
|
+
), g = H(
|
|
5040
5041
|
() => (u) => r.value[u] ? r.value[u].year : 0
|
|
5041
5042
|
);
|
|
5042
5043
|
return {
|
|
@@ -5058,7 +5059,7 @@ const $u = ({
|
|
|
5058
5059
|
}, _ = (i) => {
|
|
5059
5060
|
const S = Array.isArray(e.value) ? e.value[0] : null;
|
|
5060
5061
|
return i ? !Ne(k.value ?? null, S) : !0;
|
|
5061
|
-
},
|
|
5062
|
+
}, W = (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) => {
|
|
5062
5063
|
if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
|
|
5063
5064
|
const ne = De(i.value, k.value);
|
|
5064
5065
|
return S ? He(e.value[0], i.value) && ne : Ne(e.value[0], i.value) && ne;
|
|
@@ -5101,7 +5102,7 @@ const $u = ({
|
|
|
5101
5102
|
}, 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) => {
|
|
5102
5103
|
if (a.weekPicker)
|
|
5103
5104
|
return !1;
|
|
5104
|
-
const S = o.value.enabled ? !
|
|
5105
|
+
const S = o.value.enabled ? !W(i) && !W(i, !1) : !0;
|
|
5105
5106
|
return !m(i.value) && !$(i) && !(!i.current && a.hideOffsetDates) && S;
|
|
5106
5107
|
}, se = (i) => o.value.enabled ? a.modelAuto ? T() && $(i) : !1 : $(i), pe = (i) => l.value ? au(i.value, s.value.highlight) : !1, L = (i) => {
|
|
5107
5108
|
const S = m(i.value);
|
|
@@ -5152,7 +5153,7 @@ const $u = ({
|
|
|
5152
5153
|
...E(i)
|
|
5153
5154
|
};
|
|
5154
5155
|
}, re = (i) => {
|
|
5155
|
-
const S = t.value.count > 0 ? i.current &&
|
|
5156
|
+
const S = t.value.count > 0 ? i.current && W(i) && F() : W(i) && F(), ne = t.value.count > 0 ? i.current && W(i, !1) && F() : W(i, !1) && F();
|
|
5156
5157
|
return { isRangeStart: S, isRangeEnd: ne };
|
|
5157
5158
|
}, me = (i) => {
|
|
5158
5159
|
const { isRangeStart: S, isRangeEnd: ne } = re(i);
|
|
@@ -5196,7 +5197,7 @@ const $u = ({
|
|
|
5196
5197
|
return V >= +e.yearRange[0] && V <= e.yearRange[1];
|
|
5197
5198
|
}
|
|
5198
5199
|
return !0;
|
|
5199
|
-
}, _ = (L, V) => !!(Array.isArray(L) && L[V] && (t.value.maxRange || t.value.minRange) && D(L[V])),
|
|
5200
|
+
}, _ = (L, V) => !!(Array.isArray(L) && L[V] && (t.value.maxRange || t.value.minRange) && D(L[V])), W = (L, V, oe = 0) => {
|
|
5200
5201
|
if (_(V, oe) && D(L)) {
|
|
5201
5202
|
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);
|
|
5202
5203
|
if (t.value.minRange && t.value.maxRange)
|
|
@@ -5254,26 +5255,26 @@ const $u = ({
|
|
|
5254
5255
|
V = Ne(oe, p) || De(oe, p);
|
|
5255
5256
|
}
|
|
5256
5257
|
return V;
|
|
5257
|
-
}, se =
|
|
5258
|
+
}, se = H(() => (L) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : F(L)), pe = H(() => (L) => e.monthPicker ? Array.isArray(L) && (t.value.enabled || l.value.enabled) ? !L.filter((V) => !ee(V)).length : ee(L) : !0);
|
|
5258
5259
|
return {
|
|
5259
5260
|
isDisabled: M,
|
|
5260
5261
|
validateDate: s,
|
|
5261
5262
|
validateMonthYearInRange: g,
|
|
5262
5263
|
isDateRangeAllowed: b,
|
|
5263
|
-
checkMinMaxRange:
|
|
5264
|
+
checkMinMaxRange: W,
|
|
5264
5265
|
isValidTime: F,
|
|
5265
5266
|
isTimeValid: se,
|
|
5266
5267
|
isMonthValid: pe
|
|
5267
5268
|
};
|
|
5268
5269
|
}, La = () => {
|
|
5269
|
-
const e =
|
|
5270
|
+
const e = H(() => (n, l) => n == null ? void 0 : n.includes(l)), a = H(() => (n, l) => n.count ? n.solo ? !0 : l === 0 : !0), t = H(() => (n, l) => n.count ? n.solo ? !0 : l === n.count - 1 : !0);
|
|
5270
5271
|
return { hideNavigationButtons: e, showLeftIcon: a, showRightIcon: t };
|
|
5271
5272
|
}, Ou = (e, a, t) => {
|
|
5272
5273
|
const n = J(0), l = _a({
|
|
5273
5274
|
[qt.timePicker]: !e.enableTimePicker || e.timePicker || e.monthPicker,
|
|
5274
5275
|
[qt.calendar]: !1,
|
|
5275
5276
|
[qt.header]: !1
|
|
5276
|
-
}), r =
|
|
5277
|
+
}), r = H(() => e.monthPicker || e.timePicker), s = (u) => {
|
|
5277
5278
|
var M;
|
|
5278
5279
|
if ((M = e.flow) != null && M.length) {
|
|
5279
5280
|
if (!u && r.value)
|
|
@@ -5476,7 +5477,7 @@ const $u = ({
|
|
|
5476
5477
|
defaultedMultiDates: g,
|
|
5477
5478
|
getDefaultPattern: u,
|
|
5478
5479
|
getDefaultStartTime: M
|
|
5479
|
-
} = Ie(l), { checkMinMaxRange: b } = Vt(l), D = J(), _ = J(null),
|
|
5480
|
+
} = Ie(l), { checkMinMaxRange: b } = Vt(l), D = J(), _ = J(null), W = J(!1), U = J(!1), $ = H(
|
|
5480
5481
|
() => ({
|
|
5481
5482
|
dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
|
|
5482
5483
|
dp__disabled: l.disabled,
|
|
@@ -5485,7 +5486,7 @@ const $u = ({
|
|
|
5485
5486
|
dp__input_icon_pad: !l.hideInputIcon,
|
|
5486
5487
|
dp__input_valid: !!l.state,
|
|
5487
5488
|
dp__input_invalid: l.state === !1,
|
|
5488
|
-
dp__input_focus:
|
|
5489
|
+
dp__input_focus: W.value || l.isMenuOpen,
|
|
5489
5490
|
dp__input_reg: !r.value.enabled,
|
|
5490
5491
|
[l.inputClassName]: !!l.inputClassName
|
|
5491
5492
|
})
|
|
@@ -5529,14 +5530,14 @@ const $u = ({
|
|
|
5529
5530
|
}, se = (y) => {
|
|
5530
5531
|
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));
|
|
5531
5532
|
}, pe = () => {
|
|
5532
|
-
|
|
5533
|
+
W.value = !0, n("focus"), mt().then(() => {
|
|
5533
5534
|
var y;
|
|
5534
5535
|
r.value.enabled && r.value.selectOnFocus && ((y = _.value) == null || y.select());
|
|
5535
5536
|
});
|
|
5536
5537
|
}, L = (y) => {
|
|
5537
5538
|
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");
|
|
5538
5539
|
}, V = () => {
|
|
5539
|
-
n("real-blur"),
|
|
5540
|
+
n("real-blur"), W.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);
|
|
5540
5541
|
}, oe = (y) => {
|
|
5541
5542
|
Bt(y, m.value, !0), n("clear");
|
|
5542
5543
|
}, p = (y) => {
|
|
@@ -5649,9 +5650,9 @@ const $u = ({
|
|
|
5649
5650
|
defaultedRange: k,
|
|
5650
5651
|
defaultedMultiDates: g,
|
|
5651
5652
|
getDefaultPattern: u
|
|
5652
|
-
} = Ie(n), { isTimeValid: M, isMonthValid: b } = Vt(n), { buildMatrix: D } = Ft(), _ = J(null),
|
|
5653
|
+
} = Ie(n), { isTimeValid: M, isMonthValid: b } = Vt(n), { buildMatrix: D } = Ft(), _ = J(null), W = J(null), U = J(!1), $ = J({}), v = J(null), x = J(null);
|
|
5653
5654
|
Ue(() => {
|
|
5654
|
-
n.arrowNavigation && D([qe(_), qe(
|
|
5655
|
+
n.arrowNavigation && D([qe(_), qe(W)], "actionRow"), Y(), window.addEventListener("resize", Y);
|
|
5655
5656
|
}), Ea(() => {
|
|
5656
5657
|
window.removeEventListener("resize", Y);
|
|
5657
5658
|
});
|
|
@@ -5661,7 +5662,7 @@ const $u = ({
|
|
|
5661
5662
|
const A = (p = v.value) == null ? void 0 : p.getBoundingClientRect(), G = (y = x.value) == null ? void 0 : y.getBoundingClientRect();
|
|
5662
5663
|
A && G && ($.value.maxWidth = `${G.width - A.width - 20}px`), U.value = !0;
|
|
5663
5664
|
}, 0);
|
|
5664
|
-
}, O =
|
|
5665
|
+
}, O = H(() => k.value.enabled && !k.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), T = H(
|
|
5665
5666
|
() => !M.value(n.internalModelValue) || !b.value(n.internalModelValue) || !O.value
|
|
5666
5667
|
), F = () => {
|
|
5667
5668
|
const p = r.value;
|
|
@@ -5676,7 +5677,7 @@ const $u = ({
|
|
|
5676
5677
|
o.value.rangeSeparator,
|
|
5677
5678
|
n.modelAuto,
|
|
5678
5679
|
u()
|
|
5679
|
-
), pe =
|
|
5680
|
+
), pe = H(() => !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 = H(
|
|
5680
5681
|
() => Array.isArray(pe.value) ? pe.value.join(L()) : pe.value
|
|
5681
5682
|
), oe = () => {
|
|
5682
5683
|
M.value(n.internalModelValue) && b.value(n.internalModelValue) && O.value ? t("select-date") : t("invalid-select");
|
|
@@ -5736,7 +5737,7 @@ const $u = ({
|
|
|
5736
5737
|
c(l).showSelect ? (h(), R("button", {
|
|
5737
5738
|
key: 2,
|
|
5738
5739
|
ref_key: "selectButtonRef",
|
|
5739
|
-
ref:
|
|
5740
|
+
ref: W,
|
|
5740
5741
|
type: "button",
|
|
5741
5742
|
class: "dp__action_button dp__action_select",
|
|
5742
5743
|
disabled: T.value,
|
|
@@ -5773,7 +5774,7 @@ const $u = ({
|
|
|
5773
5774
|
setup(e, { expose: a, emit: t }) {
|
|
5774
5775
|
const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Ft(), s = t, o = e, { defaultedAriaLabels: m, defaultedTextInput: k, defaultedConfig: g } = Ie(
|
|
5775
5776
|
o
|
|
5776
|
-
), { hideNavigationButtons: u } = La(), M = J(!1), b = J(null), D = J(null), _ = J([]),
|
|
5777
|
+
), { hideNavigationButtons: u } = La(), M = J(!1), b = J(null), D = J(null), _ = J([]), W = J(), U = J(null), $ = J(0), v = J(null);
|
|
5777
5778
|
tr(() => {
|
|
5778
5779
|
b.value = null;
|
|
5779
5780
|
}), Ue(() => {
|
|
@@ -5786,17 +5787,17 @@ const $u = ({
|
|
|
5786
5787
|
var B;
|
|
5787
5788
|
const i = qe(D);
|
|
5788
5789
|
i && (k.value.enabled || (b.value ? (B = b.value) == null || B.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), M.value = i.clientHeight < i.scrollHeight);
|
|
5789
|
-
}, O =
|
|
5790
|
+
}, O = H(
|
|
5790
5791
|
() => ({
|
|
5791
5792
|
dp__overlay: !0,
|
|
5792
5793
|
"dp--overlay-absolute": !o.useRelative,
|
|
5793
5794
|
"dp--overlay-relative": o.useRelative
|
|
5794
5795
|
})
|
|
5795
|
-
), T =
|
|
5796
|
+
), T = H(
|
|
5796
5797
|
() => o.useRelative ? { height: `${o.height}px`, width: "260px" } : void 0
|
|
5797
|
-
), F =
|
|
5798
|
+
), F = H(() => ({
|
|
5798
5799
|
dp__overlay_col: !0
|
|
5799
|
-
})), ee =
|
|
5800
|
+
})), ee = H(
|
|
5800
5801
|
() => ({
|
|
5801
5802
|
dp__btn: !0,
|
|
5802
5803
|
dp__button: !0,
|
|
@@ -5804,7 +5805,7 @@ const $u = ({
|
|
|
5804
5805
|
dp__over_action_scroll: M.value,
|
|
5805
5806
|
dp__button_bottom: o.isLast
|
|
5806
5807
|
})
|
|
5807
|
-
), se =
|
|
5808
|
+
), se = H(() => {
|
|
5808
5809
|
var B, i;
|
|
5809
5810
|
return {
|
|
5810
5811
|
dp__overlay_container: !0,
|
|
@@ -5837,7 +5838,7 @@ const $u = ({
|
|
|
5837
5838
|
}, A = (B) => {
|
|
5838
5839
|
o.arrowNavigation || Bt(B, g.value, !0);
|
|
5839
5840
|
}, G = (B) => {
|
|
5840
|
-
|
|
5841
|
+
W.value = B, s("hover-value", B);
|
|
5841
5842
|
}, re = () => {
|
|
5842
5843
|
if (V(), !o.isLast) {
|
|
5843
5844
|
const B = tu(o.menuWrapRef ?? null, "action-row");
|
|
@@ -5947,9 +5948,9 @@ const $u = ({
|
|
|
5947
5948
|
collapse: { type: Boolean }
|
|
5948
5949
|
},
|
|
5949
5950
|
setup(e) {
|
|
5950
|
-
const a = e, t =
|
|
5951
|
+
const a = e, t = H(
|
|
5951
5952
|
() => a.multiCalendars > 0 ? [...Array(a.multiCalendars).keys()] : [0]
|
|
5952
|
-
), n =
|
|
5953
|
+
), n = H(() => ({
|
|
5953
5954
|
dp__instance_calendar: a.multiCalendars > 0
|
|
5954
5955
|
}));
|
|
5955
5956
|
return (l, r) => (h(), R("div", {
|
|
@@ -6013,14 +6014,14 @@ const $u = ({
|
|
|
6013
6014
|
},
|
|
6014
6015
|
emits: ["toggle-year-picker", "year-select", "handle-year"],
|
|
6015
6016
|
setup(e, { emit: a }) {
|
|
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,
|
|
6017
|
-
t("toggle-year-picker", { flow: _, show:
|
|
6017
|
+
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, W) => {
|
|
6018
|
+
t("toggle-year-picker", { flow: _, show: W });
|
|
6018
6019
|
}, b = (_) => {
|
|
6019
6020
|
t("year-select", _);
|
|
6020
6021
|
}, D = (_ = !1) => {
|
|
6021
6022
|
t("handle-year", _);
|
|
6022
6023
|
};
|
|
6023
|
-
return (_,
|
|
6024
|
+
return (_, W) => {
|
|
6024
6025
|
var U, $, v;
|
|
6025
6026
|
return h(), R("div", zu, [
|
|
6026
6027
|
c(r)(c(o), e.instance) ? (h(), be(ya, {
|
|
@@ -6028,7 +6029,7 @@ const $u = ({
|
|
|
6028
6029
|
ref: "mpPrevIconRef",
|
|
6029
6030
|
"aria-label": (U = c(m)) == null ? void 0 : U.prevYear,
|
|
6030
6031
|
disabled: e.isDisabled(!1),
|
|
6031
|
-
onActivate:
|
|
6032
|
+
onActivate: W[0] || (W[0] = (x) => D(!1))
|
|
6032
6033
|
}, {
|
|
6033
6034
|
default: fe(() => [
|
|
6034
6035
|
_.$slots["arrow-left"] ? le(_.$slots, "arrow-left", { key: 0 }) : I("", !0),
|
|
@@ -6042,8 +6043,8 @@ const $u = ({
|
|
|
6042
6043
|
type: "button",
|
|
6043
6044
|
"aria-label": ($ = c(m)) == null ? void 0 : $.openYearsOverlay,
|
|
6044
6045
|
"data-test": `year-mode-btn-${e.instance}`,
|
|
6045
|
-
onClick:
|
|
6046
|
-
onKeydown:
|
|
6046
|
+
onClick: W[1] || (W[1] = () => M(!1)),
|
|
6047
|
+
onKeydown: W[2] || (W[2] = Jt(() => M(!1), ["enter"]))
|
|
6047
6048
|
}, [
|
|
6048
6049
|
_.$slots.year ? le(_.$slots, "year", {
|
|
6049
6050
|
key: 0,
|
|
@@ -6058,7 +6059,7 @@ const $u = ({
|
|
|
6058
6059
|
ref: "mpNextIconRef",
|
|
6059
6060
|
"aria-label": (v = c(m)) == null ? void 0 : v.nextYear,
|
|
6060
6061
|
disabled: e.isDisabled(!0),
|
|
6061
|
-
onActivate:
|
|
6062
|
+
onActivate: W[3] || (W[3] = (x) => D(!0))
|
|
6062
6063
|
}, {
|
|
6063
6064
|
default: fe(() => [
|
|
6064
6065
|
_.$slots["arrow-right"] ? le(_.$slots, "arrow-right", { key: 0 }) : I("", !0),
|
|
@@ -6082,7 +6083,7 @@ const $u = ({
|
|
|
6082
6083
|
"aria-labels": _.ariaLabels,
|
|
6083
6084
|
type: "year",
|
|
6084
6085
|
onToggle: M,
|
|
6085
|
-
onSelected:
|
|
6086
|
+
onSelected: W[4] || (W[4] = (x) => b(x))
|
|
6086
6087
|
}, tt({
|
|
6087
6088
|
"button-icon": fe(() => [
|
|
6088
6089
|
_.$slots["calendar-icon"] ? le(_.$slots, "calendar-icon", { key: 0 }) : I("", !0),
|
|
@@ -6135,7 +6136,7 @@ const $u = ({
|
|
|
6135
6136
|
month: m,
|
|
6136
6137
|
emit: k
|
|
6137
6138
|
}) => {
|
|
6138
|
-
const g =
|
|
6139
|
+
const g = H(() => Cn(r.yearRange, r.locale, r.reverseYears)), u = J([!1]), M = H(() => (O, T) => {
|
|
6139
6140
|
const F = Oe(ht(/* @__PURE__ */ new Date()), {
|
|
6140
6141
|
month: m.value(O),
|
|
6141
6142
|
year: o.value(O)
|
|
@@ -6160,18 +6161,18 @@ const $u = ({
|
|
|
6160
6161
|
return b();
|
|
6161
6162
|
const T = Oe(q(), n.value[O]);
|
|
6162
6163
|
return n.value[0].year = we($l(T, e.value.count - 1)), b();
|
|
6163
|
-
}, _ = (O) => r.focusStartDate ? O[0] : O[1] ? O[1] : O[0],
|
|
6164
|
+
}, _ = (O) => r.focusStartDate ? O[0] : O[1] ? O[1] : O[0], W = () => {
|
|
6164
6165
|
if (l.value) {
|
|
6165
6166
|
const O = Array.isArray(l.value) ? _(l.value) : l.value;
|
|
6166
6167
|
n.value[0] = { month: Me(O), year: we(O) };
|
|
6167
6168
|
}
|
|
6168
6169
|
};
|
|
6169
6170
|
Ue(() => {
|
|
6170
|
-
|
|
6171
|
+
W(), e.value.count && b();
|
|
6171
6172
|
});
|
|
6172
6173
|
const U = (O, T) => {
|
|
6173
6174
|
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);
|
|
6174
|
-
}, $ =
|
|
6175
|
+
}, $ = H(() => (O) => la(g.value, (T) => {
|
|
6175
6176
|
var F;
|
|
6176
6177
|
const ee = o.value(O) === T.value, se = wa(
|
|
6177
6178
|
T.value,
|
|
@@ -6210,7 +6211,7 @@ const $u = ({
|
|
|
6210
6211
|
defaultedTz: k,
|
|
6211
6212
|
defaultedFilters: g,
|
|
6212
6213
|
defaultedMultiDates: u
|
|
6213
|
-
} = Ie(e), { modelValue: M, year: b, month: D, calendars: _ } = Da(e, a),
|
|
6214
|
+
} = Ie(e), { modelValue: M, year: b, month: D, calendars: _ } = Da(e, a), W = H(() => Rl(e.formatLocale, e.locale, e.monthNameFormat)), U = J(null), { checkMinMaxRange: $ } = Vt(e), {
|
|
6214
6215
|
selectYear: v,
|
|
6215
6216
|
groupedYears: x,
|
|
6216
6217
|
showYearPicker: Y,
|
|
@@ -6250,7 +6251,7 @@ const $u = ({
|
|
|
6250
6251
|
return !1;
|
|
6251
6252
|
}
|
|
6252
6253
|
return !1;
|
|
6253
|
-
}, p =
|
|
6254
|
+
}, p = H(() => (i) => la(W.value, (S) => {
|
|
6254
6255
|
var ne;
|
|
6255
6256
|
const te = L(i, S.value), f = wa(
|
|
6256
6257
|
S.value,
|
|
@@ -6343,7 +6344,7 @@ const $u = ({
|
|
|
6343
6344
|
showYearPicker: b,
|
|
6344
6345
|
modelValue: D,
|
|
6345
6346
|
presetDate: _,
|
|
6346
|
-
setHoverDate:
|
|
6347
|
+
setHoverDate: W,
|
|
6347
6348
|
selectMonth: U,
|
|
6348
6349
|
selectYear: $,
|
|
6349
6350
|
toggleYearPicker: v,
|
|
@@ -6387,7 +6388,7 @@ const $u = ({
|
|
|
6387
6388
|
"use-relative": "",
|
|
6388
6389
|
type: "month",
|
|
6389
6390
|
onSelected: (se) => c(U)(se, ee),
|
|
6390
|
-
onHoverValue: (se) => c(
|
|
6391
|
+
onHoverValue: (se) => c(W)(se, ee)
|
|
6391
6392
|
}, tt({
|
|
6392
6393
|
header: fe(() => [
|
|
6393
6394
|
Ye(Wl, We(T.$props, {
|
|
@@ -6430,13 +6431,13 @@ const $u = ({
|
|
|
6430
6431
|
Ue(() => {
|
|
6431
6432
|
e.startDate && (t.value && e.focusStartDate || !t.value) && (k.value = we(q(e.startDate)));
|
|
6432
6433
|
});
|
|
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 =
|
|
6434
|
-
const _ = g(D.value),
|
|
6434
|
+
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 = H(() => la(Cn(e.yearRange, e.locale, e.reverseYears), (D) => {
|
|
6435
|
+
const _ = g(D.value), W = wa(
|
|
6435
6436
|
D.value,
|
|
6436
6437
|
ra(m.value.minDate),
|
|
6437
6438
|
ra(m.value.maxDate)
|
|
6438
6439
|
) || s.value.years.includes(D.value), U = u(D.value) && !_, $ = Sn(l.value, D.value);
|
|
6439
|
-
return { active: _, disabled:
|
|
6440
|
+
return { active: _, disabled: W, isBetween: U, highlighted: $ };
|
|
6440
6441
|
})), b = (D) => Mt(ht(/* @__PURE__ */ new Date()), D);
|
|
6441
6442
|
return {
|
|
6442
6443
|
groupedYears: M,
|
|
@@ -6448,7 +6449,7 @@ const $u = ({
|
|
|
6448
6449
|
selectYear: (D) => {
|
|
6449
6450
|
var _;
|
|
6450
6451
|
if (a("update-month-year", { instance: 0, year: D }), r.value.enabled)
|
|
6451
|
-
return t.value ? Array.isArray(t.value) && (((_ = t.value) == null ? void 0 : _.map((
|
|
6452
|
+
return t.value ? Array.isArray(t.value) && (((_ = t.value) == null ? void 0 : _.map((W) => we(W))).includes(D) ? t.value = t.value.filter((W) => we(W) !== D) : t.value.push(Mt(ct(q()), D))) : t.value = [Mt(ct(q()), D)], a("auto-apply", !0);
|
|
6452
6453
|
o.value.enabled ? (t.value = Yn(t, b(D), a), mt().then(() => {
|
|
6453
6454
|
Fa(t.value, a, e.autoApply, e.modelAuto);
|
|
6454
6455
|
})) : (t.value = b(D), a("auto-apply"));
|
|
@@ -6544,7 +6545,7 @@ const $u = ({
|
|
|
6544
6545
|
hours: !1,
|
|
6545
6546
|
minutes: !1,
|
|
6546
6547
|
seconds: !1
|
|
6547
|
-
}), _ = J("AM"),
|
|
6548
|
+
}), _ = J("AM"), W = J(null), U = J([]), $ = J();
|
|
6548
6549
|
Ue(() => {
|
|
6549
6550
|
n("mounted");
|
|
6550
6551
|
});
|
|
@@ -6553,15 +6554,15 @@ const $u = ({
|
|
|
6553
6554
|
minutes: d.minutes,
|
|
6554
6555
|
seconds: l.enableSeconds ? d.seconds : 0,
|
|
6555
6556
|
milliseconds: 0
|
|
6556
|
-
}), x =
|
|
6557
|
+
}), x = H(
|
|
6557
6558
|
() => (d) => y(d, l[d]) || O(d, l[d])
|
|
6558
|
-
), Y =
|
|
6559
|
+
), Y = H(() => ({ 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) => {
|
|
6559
6560
|
if (u.value.enabled && !u.value.disableTimeRangeValidation) {
|
|
6560
6561
|
const ce = j ? +l[`${d}Increment`] : -+l[`${d}Increment`], N = l[d] + ce;
|
|
6561
6562
|
return !l.validateTime(d, N);
|
|
6562
6563
|
}
|
|
6563
6564
|
return !1;
|
|
6564
|
-
}, F =
|
|
6565
|
+
}, F = H(() => (d) => !E(+l[d] + +l[`${d}Increment`], d) || T(d, !0)), ee = H(() => (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 = H(
|
|
6565
6566
|
() => ({
|
|
6566
6567
|
dp__time_col: !0,
|
|
6567
6568
|
dp__time_col_block: !l.timePickerInline,
|
|
@@ -6571,14 +6572,14 @@ const $u = ({
|
|
|
6571
6572
|
dp__time_col_sec: l.enableSeconds && l.is24,
|
|
6572
6573
|
dp__time_col_sec_with_button: l.enableSeconds && !l.is24
|
|
6573
6574
|
})
|
|
6574
|
-
), V =
|
|
6575
|
+
), V = H(() => {
|
|
6575
6576
|
const d = [{ type: "hours" }];
|
|
6576
6577
|
return l.enableMinutes && d.push({ type: "", separator: !0 }, {
|
|
6577
6578
|
type: "minutes"
|
|
6578
6579
|
}), l.enableSeconds && d.push({ type: "", separator: !0 }, {
|
|
6579
6580
|
type: "seconds"
|
|
6580
6581
|
}), d;
|
|
6581
|
-
}), oe =
|
|
6582
|
+
}), oe = H(() => V.value.filter((d) => !d.separator)), p = H(() => (d) => {
|
|
6582
6583
|
if (d === "hours") {
|
|
6583
6584
|
const j = f(+l.hours);
|
|
6584
6585
|
return { text: j < 10 ? `0${j}` : `${j}`, value: j };
|
|
@@ -6627,7 +6628,7 @@ const $u = ({
|
|
|
6627
6628
|
(w, Q) => Q.map((he, Re) => [...w[Re] || [], Q[Re]]),
|
|
6628
6629
|
[]
|
|
6629
6630
|
);
|
|
6630
|
-
s(l.closeTimePickerBtn),
|
|
6631
|
+
s(l.closeTimePickerBtn), W.value && (N[1] = N[1].concat(W.value)), r(N, l.order);
|
|
6631
6632
|
}
|
|
6632
6633
|
}, Z = (d, j) => (i(d), n(`update:${d}`, j));
|
|
6633
6634
|
return a({ openChildCmp: ge }), (d, j) => {
|
|
@@ -6735,7 +6736,7 @@ const $u = ({
|
|
|
6735
6736
|
d.$slots["am-pm-button"] ? I("", !0) : (h(), R("button", {
|
|
6736
6737
|
key: 1,
|
|
6737
6738
|
ref_key: "amPmButton",
|
|
6738
|
-
ref:
|
|
6739
|
+
ref: W,
|
|
6739
6740
|
type: "button",
|
|
6740
6741
|
class: "dp__pm_am_button",
|
|
6741
6742
|
role: "button",
|
|
@@ -6824,15 +6825,15 @@ const $u = ({
|
|
|
6824
6825
|
"am-pm-change"
|
|
6825
6826
|
],
|
|
6826
6827
|
setup(e, { expose: a, emit: t }) {
|
|
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(),
|
|
6828
|
+
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(), W = J(null), U = J(null), $ = J([]), v = J(null);
|
|
6828
6829
|
Ue(() => {
|
|
6829
|
-
n("mount"), !l.timePicker && l.arrowNavigation ? r([qe(
|
|
6830
|
+
n("mount"), !l.timePicker && l.arrowNavigation ? r([qe(W.value)], "time") : s(!0, l.timePicker);
|
|
6830
6831
|
});
|
|
6831
|
-
const x =
|
|
6832
|
+
const x = H(() => M.value.enabled && l.modelAuto ? Ol(l.internalModelValue) : !0), Y = J(!1), O = (A) => ({
|
|
6832
6833
|
hours: Array.isArray(l.hours) ? l.hours[A] : l.hours,
|
|
6833
6834
|
minutes: Array.isArray(l.minutes) ? l.minutes[A] : l.minutes,
|
|
6834
6835
|
seconds: Array.isArray(l.seconds) ? l.seconds[A] : l.seconds
|
|
6835
|
-
}), T =
|
|
6836
|
+
}), T = H(() => {
|
|
6836
6837
|
const A = [];
|
|
6837
6838
|
if (M.value.enabled)
|
|
6838
6839
|
for (let G = 0; G < 2; G++)
|
|
@@ -6844,7 +6845,7 @@ const $u = ({
|
|
|
6844
6845
|
G || n("reset-flow"), Y.value = A, n(A ? "overlay-opened" : "overlay-closed", et.time), l.arrowNavigation && s(A), mt(() => {
|
|
6845
6846
|
re !== "" && $.value[0] && $.value[0].openChildCmp(re);
|
|
6846
6847
|
});
|
|
6847
|
-
}, ee =
|
|
6848
|
+
}, ee = H(() => ({
|
|
6848
6849
|
dp__btn: !0,
|
|
6849
6850
|
dp__button: !0,
|
|
6850
6851
|
dp__button_bottom: l.autoApply && !u.value.keepActionRow
|
|
@@ -6868,7 +6869,7 @@ const $u = ({
|
|
|
6868
6869
|
!A.timePicker && !A.timePickerInline ? Xe((h(), R("button", {
|
|
6869
6870
|
key: 0,
|
|
6870
6871
|
ref_key: "openTimePickerBtn",
|
|
6871
|
-
ref:
|
|
6872
|
+
ref: W,
|
|
6872
6873
|
type: "button",
|
|
6873
6874
|
class: ye(ee.value),
|
|
6874
6875
|
"aria-label": (re = c(k)) == null ? void 0 : re.openTimePicker,
|
|
@@ -6983,7 +6984,7 @@ const $u = ({
|
|
|
6983
6984
|
}), Gl = (e, a, t, n) => {
|
|
6984
6985
|
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) => {
|
|
6985
6986
|
a[v] = x;
|
|
6986
|
-
}, k =
|
|
6987
|
+
}, k = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), g = (v, x) => {
|
|
6987
6988
|
const Y = Object.fromEntries(
|
|
6988
6989
|
Object.keys(a).map((O) => O === v ? [O, x] : [O, a[O]].slice())
|
|
6989
6990
|
);
|
|
@@ -7007,7 +7008,7 @@ const $u = ({
|
|
|
7007
7008
|
u("seconds", v);
|
|
7008
7009
|
}, _ = (v, x, Y, O) => {
|
|
7009
7010
|
x && M(v), !x && !Y && b(v), Y && D(v), t.value && O(t.value);
|
|
7010
|
-
},
|
|
7011
|
+
}, W = (v) => {
|
|
7011
7012
|
if (v) {
|
|
7012
7013
|
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;
|
|
7013
7014
|
m("hours", Y), m("minutes", O), e.enableSeconds && m("seconds", T);
|
|
@@ -7018,7 +7019,7 @@ const $u = ({
|
|
|
7018
7019
|
disabledArr: []
|
|
7019
7020
|
};
|
|
7020
7021
|
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;
|
|
7021
|
-
}, $ =
|
|
7022
|
+
}, $ = H(() => (v, x) => {
|
|
7022
7023
|
var Y;
|
|
7023
7024
|
if (Array.isArray(e.disabledTimes)) {
|
|
7024
7025
|
const { disabledArr: O, hours: T } = U(v, x), F = O.filter((ee) => +ee.hours === T);
|
|
@@ -7038,7 +7039,7 @@ const $u = ({
|
|
|
7038
7039
|
getSetDateTime: o,
|
|
7039
7040
|
updateTimeValues: _,
|
|
7040
7041
|
getSecondsValue: s,
|
|
7041
|
-
assignStartTime:
|
|
7042
|
+
assignStartTime: W,
|
|
7042
7043
|
validateTime: g,
|
|
7043
7044
|
disabledTimesConfig: $
|
|
7044
7045
|
};
|
|
@@ -7066,10 +7067,10 @@ const $u = ({
|
|
|
7066
7067
|
t.value = [o(x, 0), o(Y, 1)];
|
|
7067
7068
|
} else
|
|
7068
7069
|
t.value = o(D());
|
|
7069
|
-
},
|
|
7070
|
+
}, W = (x) => Array.isArray(x) ? [Ut(q(x[0])), Ut(q(x[1]))] : [Ut(x ?? q())], U = (x, Y, O) => {
|
|
7070
7071
|
m("hours", x), m("minutes", Y), m("seconds", e.enableSeconds ? O : 0);
|
|
7071
7072
|
}, $ = () => {
|
|
7072
|
-
const [x, Y] =
|
|
7073
|
+
const [x, Y] = W(t.value);
|
|
7073
7074
|
return r.value.enabled ? U(
|
|
7074
7075
|
[x.hours, Y.hours],
|
|
7075
7076
|
[x.minutes, Y.minutes],
|
|
@@ -7118,8 +7119,8 @@ const $u = ({
|
|
|
7118
7119
|
time: m,
|
|
7119
7120
|
updateTime: u
|
|
7120
7121
|
}), toggleTimePicker: (b, D = !1, _ = "") => {
|
|
7121
|
-
var
|
|
7122
|
-
(
|
|
7122
|
+
var W;
|
|
7123
|
+
(W = o.value) == null || W.toggleTimePicker(b, D, _);
|
|
7123
7124
|
} }), (b, D) => (h(), be(Na, {
|
|
7124
7125
|
"multi-calendars": 0,
|
|
7125
7126
|
stretch: ""
|
|
@@ -7143,7 +7144,7 @@ const $u = ({
|
|
|
7143
7144
|
onOverlayClosed: D[5] || (D[5] = (_) => b.$emit("overlay-toggle", { open: !1, overlay: _ })),
|
|
7144
7145
|
onOverlayOpened: D[6] || (D[6] = (_) => b.$emit("overlay-toggle", { open: !0, overlay: _ }))
|
|
7145
7146
|
}), tt({ _: 2 }, [
|
|
7146
|
-
Se(c(s), (_,
|
|
7147
|
+
Se(c(s), (_, W) => ({
|
|
7147
7148
|
name: _,
|
|
7148
7149
|
fn: fe((U) => [
|
|
7149
7150
|
le(b.$slots, _, Qe(lt(U)))
|
|
@@ -7180,7 +7181,7 @@ const $u = ({
|
|
|
7180
7181
|
defaultedConfig: k,
|
|
7181
7182
|
defaultedHighlight: g,
|
|
7182
7183
|
propDates: u
|
|
7183
|
-
} = Ie(l), { transitionName: M, showTransition: b } = Ma(r), { buildMatrix: D } = Ft(), { handleMonthYearChange: _, isDisabled:
|
|
7184
|
+
} = Ie(l), { transitionName: M, showTransition: b } = Ma(r), { buildMatrix: D } = Ft(), { handleMonthYearChange: _, isDisabled: W, updateMonthYear: U } = Pu(l, n), { showLeftIcon: $, showRightIcon: v } = La(), x = J(!1), Y = J(!1), O = J([null, null, null, null]);
|
|
7184
7185
|
Ue(() => {
|
|
7185
7186
|
n("mount");
|
|
7186
7187
|
});
|
|
@@ -7190,21 +7191,21 @@ const $u = ({
|
|
|
7190
7191
|
const i = E === pt.month ? pt.year : pt.month;
|
|
7191
7192
|
n("update-month-year", { [E]: B, [i]: l[i] }), E === pt.month ? p(!0) : y(!0);
|
|
7192
7193
|
}
|
|
7193
|
-
}), F =
|
|
7194
|
+
}), F = H(T(pt.month)), ee = H(T(pt.year)), se = H(() => (E) => ({
|
|
7194
7195
|
month: l.month,
|
|
7195
7196
|
year: l.year,
|
|
7196
7197
|
items: E === pt.month ? l.months : l.years,
|
|
7197
7198
|
instance: l.instance,
|
|
7198
7199
|
updateMonthYear: U,
|
|
7199
7200
|
toggle: E === pt.month ? p : y
|
|
7200
|
-
})), pe =
|
|
7201
|
+
})), pe = H(() => l.months.find((B) => B.value === l.month) || { text: "", value: 0 }), L = H(() => la(l.months, (E) => {
|
|
7201
7202
|
const B = l.month === E.value, i = wa(
|
|
7202
7203
|
E.value,
|
|
7203
7204
|
Yl(l.year, u.value.minDate),
|
|
7204
7205
|
Bl(l.year, u.value.maxDate)
|
|
7205
7206
|
) || m.value.months.includes(E.value), S = Vl(g.value, E.value, l.year);
|
|
7206
7207
|
return { active: B, disabled: i, highlighted: S };
|
|
7207
|
-
})), V =
|
|
7208
|
+
})), V = H(() => la(l.years, (E) => {
|
|
7208
7209
|
const B = l.year === E.value, i = wa(
|
|
7209
7210
|
E.value,
|
|
7210
7211
|
ra(u.value.minDate),
|
|
@@ -7221,7 +7222,7 @@ const $u = ({
|
|
|
7221
7222
|
E || n("reset-flow");
|
|
7222
7223
|
}, G = (E, B) => {
|
|
7223
7224
|
l.arrowNavigation && (O.value[B] = qe(E), D(O.value, "monthYear"));
|
|
7224
|
-
}, re =
|
|
7225
|
+
}, re = H(() => {
|
|
7225
7226
|
var E, B;
|
|
7226
7227
|
return [
|
|
7227
7228
|
{
|
|
@@ -7247,7 +7248,7 @@ const $u = ({
|
|
|
7247
7248
|
ariaLabel: (B = s.value) == null ? void 0 : B.openYearsOverlay
|
|
7248
7249
|
}
|
|
7249
7250
|
];
|
|
7250
|
-
}), me =
|
|
7251
|
+
}), me = H(() => l.disableYearSelect ? [re.value[0]] : l.yearFirst ? [...re.value].reverse() : re.value);
|
|
7251
7252
|
return a({
|
|
7252
7253
|
toggleMonthPicker: p,
|
|
7253
7254
|
toggleYearPicker: y,
|
|
@@ -7265,7 +7266,7 @@ const $u = ({
|
|
|
7265
7266
|
c($)(c(o), e.instance) && !E.vertical ? (h(), be(ya, {
|
|
7266
7267
|
key: 0,
|
|
7267
7268
|
"aria-label": (i = c(s)) == null ? void 0 : i.prevMonth,
|
|
7268
|
-
disabled: c(
|
|
7269
|
+
disabled: c(W)(!1),
|
|
7269
7270
|
onActivate: B[0] || (B[0] = (te) => c(_)(!1, !0)),
|
|
7270
7271
|
onSetRef: B[1] || (B[1] = (te) => G(te, 0))
|
|
7271
7272
|
}, {
|
|
@@ -7366,7 +7367,7 @@ const $u = ({
|
|
|
7366
7367
|
c($)(c(o), e.instance) && E.vertical ? (h(), be(ya, {
|
|
7367
7368
|
key: 1,
|
|
7368
7369
|
"aria-label": (S = c(s)) == null ? void 0 : S.prevMonth,
|
|
7369
|
-
disabled: c(
|
|
7370
|
+
disabled: c(W)(!1),
|
|
7370
7371
|
onActivate: B[2] || (B[2] = (te) => c(_)(!1, !0))
|
|
7371
7372
|
}, {
|
|
7372
7373
|
default: fe(() => [
|
|
@@ -7378,7 +7379,7 @@ const $u = ({
|
|
|
7378
7379
|
c(v)(c(o), e.instance) ? (h(), be(ya, {
|
|
7379
7380
|
key: 2,
|
|
7380
7381
|
ref: "rightIcon",
|
|
7381
|
-
disabled: c(
|
|
7382
|
+
disabled: c(W)(!0),
|
|
7382
7383
|
"aria-label": (ne = c(s)) == null ? void 0 : ne.nextMonth,
|
|
7383
7384
|
onActivate: B[3] || (B[3] = (te) => c(_)(!0, !0)),
|
|
7384
7385
|
onSetRef: B[4] || (B[4] = (te) => G(te, E.disableYearSelect ? 2 : 3))
|
|
@@ -7439,31 +7440,31 @@ const $u = ({
|
|
|
7439
7440
|
bottom: "",
|
|
7440
7441
|
left: "",
|
|
7441
7442
|
transform: ""
|
|
7442
|
-
}), D = J([]), _ = J(null),
|
|
7443
|
+
}), D = J([]), _ = J(null), W = J(!0), U = J(""), $ = J({ startX: 0, endX: 0, startY: 0, endY: 0 }), v = J([]), x = J({ left: "50%" }), Y = J(!1), O = H(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), T = H(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Qi(l.formatLocale, l.locale, +l.weekStart));
|
|
7443
7444
|
Ue(() => {
|
|
7444
7445
|
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 });
|
|
7445
7446
|
});
|
|
7446
7447
|
const F = (K) => K ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", ee = (K, Z) => {
|
|
7447
7448
|
if (l.transitions) {
|
|
7448
7449
|
const d = ct($t(q(), l.month, l.year));
|
|
7449
|
-
U.value = He(ct($t(q(), K, Z)), d) ? s.value[F(!0)] : s.value[F(!1)],
|
|
7450
|
-
|
|
7450
|
+
U.value = He(ct($t(q(), K, Z)), d) ? s.value[F(!0)] : s.value[F(!1)], W.value = !1, mt(() => {
|
|
7451
|
+
W.value = !0;
|
|
7451
7452
|
});
|
|
7452
7453
|
}
|
|
7453
|
-
}, se =
|
|
7454
|
+
}, se = H(
|
|
7454
7455
|
() => ({
|
|
7455
7456
|
[l.calendarClassName]: !!l.calendarClassName
|
|
7456
7457
|
})
|
|
7457
|
-
), pe =
|
|
7458
|
+
), pe = H(() => (K) => {
|
|
7458
7459
|
const Z = Ji(K);
|
|
7459
7460
|
return {
|
|
7460
7461
|
dp__marker_dot: Z.type === "dot",
|
|
7461
7462
|
dp__marker_line: Z.type === "line"
|
|
7462
7463
|
};
|
|
7463
|
-
}), L =
|
|
7464
|
+
}), L = H(() => (K) => De(K, M.value)), V = H(() => ({
|
|
7464
7465
|
dp__calendar: !0,
|
|
7465
7466
|
dp__calendar_next: k.value.count > 0 && l.instance !== 0
|
|
7466
|
-
})), oe =
|
|
7467
|
+
})), oe = H(() => (K) => l.hideOffsetDates ? K.current : !0), p = (K) => Tt(K, "yyyy-MM-dd"), y = async (K, Z, d) => {
|
|
7467
7468
|
const j = qe(D.value[Z][d]);
|
|
7468
7469
|
if (j) {
|
|
7469
7470
|
const { width: ce, height: N } = j.getBoundingClientRect();
|
|
@@ -7551,7 +7552,7 @@ const $u = ({
|
|
|
7551
7552
|
default: fe(() => {
|
|
7552
7553
|
var j;
|
|
7553
7554
|
return [
|
|
7554
|
-
|
|
7555
|
+
W.value ? (h(), R("div", {
|
|
7555
7556
|
key: 0,
|
|
7556
7557
|
class: "dp__calendar",
|
|
7557
7558
|
role: "rowgroup",
|
|
@@ -7666,11 +7667,11 @@ const $u = ({
|
|
|
7666
7667
|
defaultedRange: b,
|
|
7667
7668
|
defaultedConfig: D,
|
|
7668
7669
|
defaultedTz: _,
|
|
7669
|
-
propDates:
|
|
7670
|
+
propDates: W,
|
|
7670
7671
|
defaultedMultiDates: U
|
|
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 =
|
|
7672
|
+
} = 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 = H(
|
|
7672
7673
|
() => (C) => m.value[C] ? m.value[C].month : 0
|
|
7673
|
-
), V =
|
|
7674
|
+
), V = H(
|
|
7674
7675
|
() => (C) => m.value[C] ? m.value[C].year : 0
|
|
7675
7676
|
), oe = (C) => !D.value.keepViewOnOffsetClick || C ? !0 : !s.value, p = (C, P, X, ae = !1) => {
|
|
7676
7677
|
var Ae, Je;
|
|
@@ -7687,7 +7688,7 @@ const $u = ({
|
|
|
7687
7688
|
), Ue(() => {
|
|
7688
7689
|
e.shadow || (o.value || (K(), M.value && ee(M.value)), re(!0), e.focusStartDate && e.startDate && K());
|
|
7689
7690
|
});
|
|
7690
|
-
const A =
|
|
7691
|
+
const A = H(() => {
|
|
7691
7692
|
var C;
|
|
7692
7693
|
return (C = e.flow) != null && C.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
|
|
7693
7694
|
}), G = () => {
|
|
@@ -7763,8 +7764,8 @@ const $u = ({
|
|
|
7763
7764
|
}, j = (C, P) => {
|
|
7764
7765
|
f(C === "right" ? -1 : 1, P);
|
|
7765
7766
|
}, ce = (C) => {
|
|
7766
|
-
if (
|
|
7767
|
-
return Sa(C.value,
|
|
7767
|
+
if (W.value.markers)
|
|
7768
|
+
return Sa(C.value, W.value.markers);
|
|
7768
7769
|
}, N = (C, P) => {
|
|
7769
7770
|
switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
|
|
7770
7771
|
case "prepend":
|
|
@@ -7953,7 +7954,7 @@ const $u = ({
|
|
|
7953
7954
|
getCalendarDays: b,
|
|
7954
7955
|
getMarker: D,
|
|
7955
7956
|
handleArrow: _,
|
|
7956
|
-
handleScroll:
|
|
7957
|
+
handleScroll: W,
|
|
7957
7958
|
handleSwipe: U,
|
|
7958
7959
|
selectDate: $,
|
|
7959
7960
|
updateMonthYear: v,
|
|
@@ -7972,7 +7973,7 @@ const $u = ({
|
|
|
7972
7973
|
},
|
|
7973
7974
|
{ deep: !0 }
|
|
7974
7975
|
);
|
|
7975
|
-
const re =
|
|
7976
|
+
const re = H(() => (Z) => b(s.value(Z), o.value(Z)).map((d) => ({
|
|
7976
7977
|
...d,
|
|
7977
7978
|
days: d.days.map((j) => (j.marker = D(j), j.classData = ee(j), j))
|
|
7978
7979
|
})));
|
|
@@ -8078,7 +8079,7 @@ const $u = ({
|
|
|
8078
8079
|
onSelectDate: (N) => c($)(N, j !== 1),
|
|
8079
8080
|
onHandleSpace: (N) => B(N, j !== 1),
|
|
8080
8081
|
onSetHoverDate: d[3] || (d[3] = (N) => c(F)(N)),
|
|
8081
|
-
onHandleScroll: (N) => c(
|
|
8082
|
+
onHandleScroll: (N) => c(W)(N, j),
|
|
8082
8083
|
onHandleSwipe: (N) => c(U)(N, j),
|
|
8083
8084
|
onMount: d[4] || (d[4] = (N) => G(c(qt).calendar)),
|
|
8084
8085
|
onResetFlow: d[5] || (d[5] = (N) => Z.$emit("reset-flow")),
|
|
@@ -8135,7 +8136,7 @@ const $u = ({
|
|
|
8135
8136
|
propDates: o,
|
|
8136
8137
|
defaultedFilters: m,
|
|
8137
8138
|
defaultedMultiDates: k
|
|
8138
|
-
} = Ie(e), { modelValue: g, year: u, month: M, calendars: b } = Da(e, a), { isDisabled: D } = Vt(e), { selectYear: _, groupedYears:
|
|
8139
|
+
} = Ie(e), { modelValue: g, year: u, month: M, calendars: b } = Da(e, a), { isDisabled: D } = Vt(e), { selectYear: _, groupedYears: W, showYearPicker: U, isDisabled: $, toggleYearPicker: v, handleYearSelect: x, handleYear: Y } = ql({
|
|
8139
8140
|
modelValue: g,
|
|
8140
8141
|
multiCalendars: n,
|
|
8141
8142
|
highlight: r,
|
|
@@ -8146,7 +8147,7 @@ const $u = ({
|
|
|
8146
8147
|
filters: m,
|
|
8147
8148
|
props: e,
|
|
8148
8149
|
emit: a
|
|
8149
|
-
}), O = (p, y) => [p, y].map((A) => Tt(A, "MMMM", { locale: e.formatLocale })).join("-"), T =
|
|
8150
|
+
}), O = (p, y) => [p, y].map((A) => Tt(A, "MMMM", { locale: e.formatLocale })).join("-"), T = H(() => (p) => g.value ? Array.isArray(g.value) ? g.value.some((y) => Gn(p, y)) : Gn(g.value, p) : !1), F = (p) => {
|
|
8150
8151
|
if (s.value.enabled) {
|
|
8151
8152
|
if (Array.isArray(g.value)) {
|
|
8152
8153
|
const y = De(p, g.value[0]) || De(p, g.value[1]);
|
|
@@ -8155,7 +8156,7 @@ const $u = ({
|
|
|
8155
8156
|
return !1;
|
|
8156
8157
|
}
|
|
8157
8158
|
return !1;
|
|
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 =
|
|
8159
|
+
}, 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 = H(() => (p) => {
|
|
8159
8160
|
const y = Oe(/* @__PURE__ */ new Date(), { year: u.value(p) });
|
|
8160
8161
|
return Ko({
|
|
8161
8162
|
start: yn(y),
|
|
@@ -8181,7 +8182,7 @@ const $u = ({
|
|
|
8181
8182
|
return {
|
|
8182
8183
|
defaultedConfig: l,
|
|
8183
8184
|
defaultedMultiCalendars: n,
|
|
8184
|
-
groupedYears:
|
|
8185
|
+
groupedYears: W,
|
|
8185
8186
|
year: u,
|
|
8186
8187
|
isDisabled: $,
|
|
8187
8188
|
quarters: pe,
|
|
@@ -8228,7 +8229,7 @@ const $u = ({
|
|
|
8228
8229
|
modelValue: b,
|
|
8229
8230
|
showYearPicker: D,
|
|
8230
8231
|
setHoverDate: _,
|
|
8231
|
-
selectQuarter:
|
|
8232
|
+
selectQuarter: W,
|
|
8232
8233
|
toggleYearPicker: U,
|
|
8233
8234
|
handleYearSelect: $,
|
|
8234
8235
|
handleYear: v
|
|
@@ -8236,7 +8237,7 @@ const $u = ({
|
|
|
8236
8237
|
return a({ getSidebarProps: () => ({
|
|
8237
8238
|
modelValue: b,
|
|
8238
8239
|
year: g,
|
|
8239
|
-
selectQuarter:
|
|
8240
|
+
selectQuarter: W,
|
|
8240
8241
|
handleYearSelect: $,
|
|
8241
8242
|
handleYear: v
|
|
8242
8243
|
}) }), (x, Y) => (h(), be(Na, {
|
|
@@ -8284,7 +8285,7 @@ const $u = ({
|
|
|
8284
8285
|
}]),
|
|
8285
8286
|
"data-test": T.value,
|
|
8286
8287
|
disabled: T.disabled,
|
|
8287
|
-
onClick: (ee) => c(
|
|
8288
|
+
onClick: (ee) => c(W)(T.value, O, T.disabled),
|
|
8288
8289
|
onMouseover: (ee) => c(_)(T.value)
|
|
8289
8290
|
}, [
|
|
8290
8291
|
x.$slots.quarter ? le(x.$slots, "quarter", {
|
|
@@ -8354,7 +8355,7 @@ const $u = ({
|
|
|
8354
8355
|
"overlay-toggle"
|
|
8355
8356
|
],
|
|
8356
8357
|
setup(e, { expose: a, emit: t }) {
|
|
8357
|
-
const n = t, l = e, r = J(null), s =
|
|
8358
|
+
const n = t, l = e, r = J(null), s = H(() => {
|
|
8358
8359
|
const { openOnTop: w, ...Q } = l;
|
|
8359
8360
|
return {
|
|
8360
8361
|
...Q,
|
|
@@ -8363,7 +8364,7 @@ const $u = ({
|
|
|
8363
8364
|
noOverlayFocus: l.noOverlayFocus,
|
|
8364
8365
|
menuWrapRef: r.value
|
|
8365
8366
|
};
|
|
8366
|
-
}), { setMenuFocused: o, setShiftKey: m, control: k } = Hl(), g = Nt(), { defaultedTextInput: u, defaultedInline: M, defaultedConfig: b } = Ie(l), D = J(null), _ = J(0),
|
|
8367
|
+
}), { setMenuFocused: o, setShiftKey: m, control: k } = Hl(), g = Nt(), { defaultedTextInput: u, defaultedInline: M, defaultedConfig: b } = Ie(l), D = J(null), _ = J(0), W = J(null), U = J(!1), $ = J(null);
|
|
8367
8368
|
Ue(() => {
|
|
8368
8369
|
if (!l.shadow) {
|
|
8369
8370
|
U.value = !0, v(), window.addEventListener("resize", v);
|
|
@@ -8379,9 +8380,9 @@ const $u = ({
|
|
|
8379
8380
|
window.removeEventListener("resize", v);
|
|
8380
8381
|
});
|
|
8381
8382
|
const v = () => {
|
|
8382
|
-
const w = qe(
|
|
8383
|
+
const w = qe(W);
|
|
8383
8384
|
w && (_.value = w.getBoundingClientRect().width);
|
|
8384
|
-
}, { arrowRight: x, arrowLeft: Y, arrowDown: O, arrowUp: T } = Ft(), { flowStep: F, updateFlowStep: ee, childMount: se, resetFlow: pe } = Ou(l, n, $), L =
|
|
8385
|
+
}, { arrowRight: x, arrowLeft: Y, arrowDown: O, arrowUp: T } = Ft(), { flowStep: F, updateFlowStep: ee, childMount: se, resetFlow: pe } = Ou(l, n, $), L = H(() => l.monthPicker ? Uu : l.yearPicker ? Qu : l.timePicker ? md : l.quarterPicker ? Yd : Rd), V = H(() => {
|
|
8385
8386
|
var w;
|
|
8386
8387
|
if (b.value.arrowLeft)
|
|
8387
8388
|
return b.value.arrowLeft;
|
|
@@ -8390,16 +8391,16 @@ const $u = ({
|
|
|
8390
8391
|
}), oe = () => {
|
|
8391
8392
|
const w = qe(r);
|
|
8392
8393
|
w && w.focus({ preventScroll: !0 });
|
|
8393
|
-
}, p =
|
|
8394
|
+
}, p = H(() => {
|
|
8394
8395
|
var w;
|
|
8395
8396
|
return ((w = $.value) == null ? void 0 : w.getSidebarProps()) || {};
|
|
8396
8397
|
}), y = () => {
|
|
8397
8398
|
l.openOnTop && n("recalculate-position");
|
|
8398
|
-
}, A = it(g, "action"), G =
|
|
8399
|
+
}, A = it(g, "action"), G = H(() => l.monthPicker || l.yearPicker ? it(g, "monthYear") : l.timePicker ? it(g, "timePicker") : it(g, "shared")), re = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
|
|
8399
8400
|
dp__menu_disabled: l.disabled,
|
|
8400
8401
|
dp__menu_readonly: l.readonly,
|
|
8401
8402
|
"dp-menu-loading": l.loading
|
|
8402
|
-
})), E =
|
|
8403
|
+
})), E = H(
|
|
8403
8404
|
() => ({
|
|
8404
8405
|
dp__menu: !0,
|
|
8405
8406
|
dp__menu_index: !M.value.enabled,
|
|
@@ -8495,7 +8496,7 @@ const $u = ({
|
|
|
8495
8496
|
}, null, 2)) : I("", !0),
|
|
8496
8497
|
z("div", {
|
|
8497
8498
|
ref_key: "innerMenuRef",
|
|
8498
|
-
ref:
|
|
8499
|
+
ref: W,
|
|
8499
8500
|
class: ye({
|
|
8500
8501
|
dp__menu_content_wrapper: ((Re = w.presetDates) == null ? void 0 : Re.length) || !!w.$slots["left-sidebar"] || !!w.$slots["right-sidebar"],
|
|
8501
8502
|
"dp--menu-content-wrapper-collapsed": e.collapse && (((xe = w.presetDates) == null ? void 0 : xe.length) || !!w.$slots["left-sidebar"] || !!w.$slots["right-sidebar"])
|
|
@@ -8656,7 +8657,7 @@ const $u = ({
|
|
|
8656
8657
|
"overlay-toggle"
|
|
8657
8658
|
],
|
|
8658
8659
|
setup(e, { expose: a, emit: t }) {
|
|
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),
|
|
8660
|
+
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), W = J(!1), { setMenuFocused: U, setShiftKey: $ } = Hl(), { clearArrowNav: v } = Ft(), { validateDate: x, isValidTime: Y } = Vt(l), {
|
|
8660
8661
|
defaultedTransitions: O,
|
|
8661
8662
|
defaultedTextInput: T,
|
|
8662
8663
|
defaultedInline: F,
|
|
@@ -8702,19 +8703,19 @@ const $u = ({
|
|
|
8702
8703
|
emitModelValue: ne,
|
|
8703
8704
|
formatInputValue: te,
|
|
8704
8705
|
checkBeforeEmit: f
|
|
8705
|
-
} = xu(n, l, M), ue =
|
|
8706
|
+
} = xu(n, l, M), ue = H(
|
|
8706
8707
|
() => ({
|
|
8707
8708
|
dp__main: !0,
|
|
8708
8709
|
dp__theme_dark: l.dark,
|
|
8709
8710
|
dp__theme_light: !l.dark,
|
|
8710
8711
|
dp__flex_display: F.value.enabled,
|
|
8711
|
-
"dp--flex-display-collapsed":
|
|
8712
|
+
"dp--flex-display-collapsed": W.value,
|
|
8712
8713
|
dp__flex_display_with_input: F.value.input
|
|
8713
8714
|
})
|
|
8714
|
-
), ge =
|
|
8715
|
+
), ge = H(() => l.dark ? "dp__theme_dark" : "dp__theme_light"), K = H(() => l.teleport ? {
|
|
8715
8716
|
to: typeof l.teleport == "boolean" ? "body" : l.teleport,
|
|
8716
8717
|
disabled: !l.teleport || F.value.enabled
|
|
8717
|
-
} : {}), Z =
|
|
8718
|
+
} : {}), Z = H(() => ({ class: "dp__outer_menu_wrap" })), d = H(() => F.value.enabled && (l.timePicker || l.monthPicker || l.yearPicker || l.quarterPicker)), j = () => {
|
|
8718
8719
|
var P, X;
|
|
8719
8720
|
return (X = (P = u.value) == null ? void 0 : P.$el) == null ? void 0 : X.getBoundingClientRect();
|
|
8720
8721
|
}, ce = () => {
|
|
@@ -8723,7 +8724,7 @@ const $u = ({
|
|
|
8723
8724
|
var P;
|
|
8724
8725
|
s.value && re();
|
|
8725
8726
|
const X = (P = g.value) == null ? void 0 : P.$el.getBoundingClientRect().width;
|
|
8726
|
-
|
|
8727
|
+
W.value = document.body.offsetWidth <= X;
|
|
8727
8728
|
}, w = (P) => {
|
|
8728
8729
|
P.key === "Tab" && !F.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (b.value.contains(document.activeElement) || st()), _.value = P.shiftKey;
|
|
8729
8730
|
}, Q = (P) => {
|
|
@@ -8847,7 +8848,7 @@ const $u = ({
|
|
|
8847
8848
|
class: { [ge.value]: !0, "dp--menu-wrapper": P.teleport },
|
|
8848
8849
|
"open-on-top": c(y),
|
|
8849
8850
|
"no-overlay-focus": d.value,
|
|
8850
|
-
collapse:
|
|
8851
|
+
collapse: W.value,
|
|
8851
8852
|
"get-input-rect": j,
|
|
8852
8853
|
onClosePicker: st,
|
|
8853
8854
|
onSelectDate: ie,
|
|
@@ -8915,7 +8916,7 @@ const Xd = { class: "rm-datepicker" }, yc = /* @__PURE__ */ Te({
|
|
|
8915
8916
|
},
|
|
8916
8917
|
emits: ["change", "delete"],
|
|
8917
8918
|
setup(e, { emit: a }) {
|
|
8918
|
-
const t = e, n = a, l = J(), r =
|
|
8919
|
+
const t = e, n = a, l = J(), r = H(() => ({
|
|
8919
8920
|
maxDate: t.maxDate,
|
|
8920
8921
|
minDate: t.minDate,
|
|
8921
8922
|
startDate: t.startDate,
|
|
@@ -8998,7 +8999,7 @@ const Xd = { class: "rm-datepicker" }, yc = /* @__PURE__ */ Te({
|
|
|
8998
8999
|
labelBorderColor: {}
|
|
8999
9000
|
},
|
|
9000
9001
|
setup(e) {
|
|
9001
|
-
const a = e, t =
|
|
9002
|
+
const a = e, t = H(() => a.label.trim().replace(/\s+/g, " ").split(" ").map((n) => n[0].toUpperCase()).join("").slice(0, 2));
|
|
9002
9003
|
return (n, l) => (h(), R("div", {
|
|
9003
9004
|
class: ye([
|
|
9004
9005
|
"rm-avatar",
|