redmine-ui-kit 1.0.18 → 1.0.20
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 +64 -64
- package/dist/redmine-ui-kit.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/redmine-ui-kit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Se, openBlock as m, createElementBlock as $, normalizeStyle as pt, createElementVNode as Y, useSlots as Zt, computed as V, normalizeClass as ye,
|
|
1
|
+
import { defineComponent as Se, openBlock as m, createElementBlock as $, normalizeStyle as pt, createElementVNode as Y, useSlots as Zt, computed as V, normalizeClass as ye, Fragment as me, createTextVNode as Ze, toDisplayString as ve, renderSlot as j, withDirectives as Le, vShow as _t, unref as c, isRef as ot, vModelCheckbox as zl, createCommentVNode as D, ref as H, onMounted as tt, nextTick as Rt, withKeys as de, withModifiers as qe, vModelText as Ao, createBlock as pe, Transition as et, withCtx as ae, createVNode as Ee, watchEffect as ql, watch as vt, renderList as Ne, reactive as Gt, toRef as ra, onUnmounted as bo, mergeProps as Be, createSlots as Qe, normalizeProps as Je, guardReactiveProps as yt, Teleport as Kl, resolveDynamicComponent as on, onBeforeUpdate as Xl, getCurrentScope as Ql, onScopeDispose as Zl } from "vue";
|
|
2
2
|
const Gl = /* @__PURE__ */ Y("span", null, null, -1), Jl = [
|
|
3
3
|
Gl
|
|
4
4
|
], y0 = /* @__PURE__ */ Se({
|
|
@@ -43,7 +43,7 @@ const eu = ["disabled"], tu = { class: "rm-button__label" }, nu = { class: "rm-b
|
|
|
43
43
|
}
|
|
44
44
|
]),
|
|
45
45
|
disabled: e.disabled,
|
|
46
|
-
onClick: a[0] || (a[0] =
|
|
46
|
+
onClick: a[0] || (a[0] = (o) => r.$emit("click", o))
|
|
47
47
|
}, [
|
|
48
48
|
Y("div", tu, [
|
|
49
49
|
e.label ? (m(), $(me, { key: 0 }, [
|
|
@@ -287,7 +287,7 @@ const bu = ["for"], gu = { class: "rm-input-wrapper" }, wu = ["id", "maxlength",
|
|
|
287
287
|
placeholder: e.placeholder,
|
|
288
288
|
disabled: e.disabled,
|
|
289
289
|
onKeypress: de(d, ["enter"]),
|
|
290
|
-
onKeydown: de(
|
|
290
|
+
onKeydown: de(qe(s, ["ctrl"]), ["enter"]),
|
|
291
291
|
onFocus: f,
|
|
292
292
|
onBlur: y,
|
|
293
293
|
onChange: A[1] || (A[1] = ({ target: F }) => t("change", F.value))
|
|
@@ -303,7 +303,7 @@ const bu = ["for"], gu = { class: "rm-input-wrapper" }, wu = ["id", "maxlength",
|
|
|
303
303
|
placeholder: e.placeholder,
|
|
304
304
|
disabled: e.disabled,
|
|
305
305
|
onKeypress: de(d, ["enter"]),
|
|
306
|
-
onKeydown: de(
|
|
306
|
+
onKeydown: de(qe(s, ["ctrl"]), ["enter"]),
|
|
307
307
|
onFocus: f,
|
|
308
308
|
onBlur: y,
|
|
309
309
|
onChange: A[3] || (A[3] = ({ target: F }) => t("change", F.value))
|
|
@@ -326,9 +326,9 @@ const ku = "data:image/svg+xml;base64,PHN2ZwogICAgd2lkdGg9IjIyIgogICAgaGVpZ2h0PS
|
|
|
326
326
|
document.body.dataset.modalcount = (n + 1).toString(), document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden";
|
|
327
327
|
},
|
|
328
328
|
beforeUnmount() {
|
|
329
|
-
var
|
|
330
|
-
const
|
|
331
|
-
document.body.dataset.modalcount =
|
|
329
|
+
var n;
|
|
330
|
+
const t = +(((n = document.body.dataset) == null ? void 0 : n.modalcount) ?? 0) - 1;
|
|
331
|
+
document.body.dataset.modalcount = t.toString(), !(t > 0) && (document.body.style.overflow = "visible", document.documentElement.style.overflow = "visible");
|
|
332
332
|
}
|
|
333
333
|
}, Tu = {
|
|
334
334
|
key: 0,
|
|
@@ -363,7 +363,7 @@ const ku = "data:image/svg+xml;base64,PHN2ZwogICAgd2lkdGg9IjIyIgogICAgaGVpZ2h0PS
|
|
|
363
363
|
e.isActive ? Le((m(), $("div", Tu, [
|
|
364
364
|
Y("div", {
|
|
365
365
|
class: "rm-modal__overlay",
|
|
366
|
-
onClick:
|
|
366
|
+
onClick: qe(r, ["self"])
|
|
367
367
|
}, null, 8, Du),
|
|
368
368
|
Ee(et, {
|
|
369
369
|
name: e.contentTransition.length ? e.contentTransition : e.transitionName,
|
|
@@ -565,7 +565,7 @@ const Cu = (e, t = 150) => {
|
|
|
565
565
|
style: pt({
|
|
566
566
|
display: e.useChips ? "flex" : "block"
|
|
567
567
|
}),
|
|
568
|
-
onClick: B[2] || (B[2] =
|
|
568
|
+
onClick: B[2] || (B[2] = qe((X) => a.value = !0, ["self"]))
|
|
569
569
|
}, [
|
|
570
570
|
e.useChips ? (m(), $("div", Hu, [
|
|
571
571
|
(m(!0), $(me, null, Ne(o.value, (X, P) => (m(), $("div", {
|
|
@@ -598,7 +598,7 @@ const Cu = (e, t = 150) => {
|
|
|
598
598
|
Y("div", Ku, [
|
|
599
599
|
Ee(mt, {
|
|
600
600
|
class: ye(["rm-select-input__cheveron", { open: a.value }]),
|
|
601
|
-
onClick: B[3] || (B[3] =
|
|
601
|
+
onClick: B[3] || (B[3] = qe((X) => a.value = !a.value, ["prevent"]))
|
|
602
602
|
}, {
|
|
603
603
|
default: ae(() => [
|
|
604
604
|
Xu
|
|
@@ -613,7 +613,7 @@ const Cu = (e, t = 150) => {
|
|
|
613
613
|
e.removable && (c(w) || i.value) ? (m(), pe(mt, {
|
|
614
614
|
key: 0,
|
|
615
615
|
class: "rm-select-input__remove",
|
|
616
|
-
onClick:
|
|
616
|
+
onClick: qe(g, ["prevent"])
|
|
617
617
|
}, {
|
|
618
618
|
default: ae(() => [
|
|
619
619
|
Qu
|
|
@@ -6538,7 +6538,7 @@ function jn(e) {
|
|
|
6538
6538
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
6539
6539
|
}, jn(e);
|
|
6540
6540
|
}
|
|
6541
|
-
function
|
|
6541
|
+
function je(e, t) {
|
|
6542
6542
|
if (ee(2, arguments), jn(t) !== "object" || t === null)
|
|
6543
6543
|
throw new RangeError("values parameter must be an object");
|
|
6544
6544
|
var n = le(e);
|
|
@@ -6922,7 +6922,7 @@ function Sv(e) {
|
|
|
6922
6922
|
return !1;
|
|
6923
6923
|
}
|
|
6924
6924
|
}
|
|
6925
|
-
var Hl = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Xr = 36e5, rl = 6e4, Rv = 2,
|
|
6925
|
+
var Hl = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Xr = 36e5, rl = 6e4, Rv = 2, ze = {
|
|
6926
6926
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
6927
6927
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
6928
6928
|
plainTime: /:/,
|
|
@@ -6979,23 +6979,23 @@ function _o(e, t) {
|
|
|
6979
6979
|
return new Date(NaN);
|
|
6980
6980
|
}
|
|
6981
6981
|
function Mv(e) {
|
|
6982
|
-
var t = {}, n =
|
|
6983
|
-
if (n ? (t.date = n[1], r = n[3]) : (n =
|
|
6984
|
-
var a =
|
|
6982
|
+
var t = {}, n = ze.dateTimePattern.exec(e), r;
|
|
6983
|
+
if (n ? (t.date = n[1], r = n[3]) : (n = ze.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
|
|
6984
|
+
var a = ze.timeZone.exec(r);
|
|
6985
6985
|
a ? (t.time = r.replace(a[1], ""), t.timeZone = a[1].trim()) : t.time = r;
|
|
6986
6986
|
}
|
|
6987
6987
|
return t;
|
|
6988
6988
|
}
|
|
6989
6989
|
function Cv(e, t) {
|
|
6990
|
-
var n =
|
|
6991
|
-
if (a =
|
|
6990
|
+
var n = ze.YYY[t], r = ze.YYYYY[t], a;
|
|
6991
|
+
if (a = ze.YYYY.exec(e) || r.exec(e), a) {
|
|
6992
6992
|
var o = a[1];
|
|
6993
6993
|
return {
|
|
6994
6994
|
year: parseInt(o, 10),
|
|
6995
6995
|
restDateString: e.slice(o.length)
|
|
6996
6996
|
};
|
|
6997
6997
|
}
|
|
6998
|
-
if (a =
|
|
6998
|
+
if (a = ze.YY.exec(e) || n.exec(e), a) {
|
|
6999
6999
|
var i = a[1];
|
|
7000
7000
|
return {
|
|
7001
7001
|
year: parseInt(i, 10) * 100,
|
|
@@ -7012,21 +7012,21 @@ function Nv(e, t) {
|
|
|
7012
7012
|
var n, r, a, o;
|
|
7013
7013
|
if (e.length === 0)
|
|
7014
7014
|
return r = new Date(0), r.setUTCFullYear(t), r;
|
|
7015
|
-
if (n =
|
|
7015
|
+
if (n = ze.MM.exec(e), n)
|
|
7016
7016
|
return r = new Date(0), a = parseInt(n[1], 10) - 1, ol(t, a) ? (r.setUTCFullYear(t, a), r) : new Date(NaN);
|
|
7017
|
-
if (n =
|
|
7017
|
+
if (n = ze.DDD.exec(e), n) {
|
|
7018
7018
|
r = new Date(0);
|
|
7019
7019
|
var i = parseInt(n[1], 10);
|
|
7020
7020
|
return Bv(t, i) ? (r.setUTCFullYear(t, 0, i), r) : new Date(NaN);
|
|
7021
7021
|
}
|
|
7022
|
-
if (n =
|
|
7022
|
+
if (n = ze.MMDD.exec(e), n) {
|
|
7023
7023
|
r = new Date(0), a = parseInt(n[1], 10) - 1;
|
|
7024
7024
|
var u = parseInt(n[2], 10);
|
|
7025
7025
|
return ol(t, a, u) ? (r.setUTCFullYear(t, a, u), r) : new Date(NaN);
|
|
7026
7026
|
}
|
|
7027
|
-
if (n =
|
|
7027
|
+
if (n = ze.Www.exec(e), n)
|
|
7028
7028
|
return o = parseInt(n[1], 10) - 1, il(t, o) ? al(t, o) : new Date(NaN);
|
|
7029
|
-
if (n =
|
|
7029
|
+
if (n = ze.WwwD.exec(e), n) {
|
|
7030
7030
|
o = parseInt(n[1], 10) - 1;
|
|
7031
7031
|
var f = parseInt(n[2], 10) - 1;
|
|
7032
7032
|
return il(t, o, f) ? al(t, o, f) : new Date(NaN);
|
|
@@ -7035,11 +7035,11 @@ function Nv(e, t) {
|
|
|
7035
7035
|
}
|
|
7036
7036
|
function Av(e) {
|
|
7037
7037
|
var t, n, r;
|
|
7038
|
-
if (t =
|
|
7038
|
+
if (t = ze.HH.exec(e), t)
|
|
7039
7039
|
return n = parseFloat(t[1].replace(",", ".")), Qr(n) ? n % 24 * Xr : NaN;
|
|
7040
|
-
if (t =
|
|
7040
|
+
if (t = ze.HHMM.exec(e), t)
|
|
7041
7041
|
return n = parseInt(t[1], 10), r = parseFloat(t[2].replace(",", ".")), Qr(n, r) ? n % 24 * Xr + r * rl : NaN;
|
|
7042
|
-
if (t =
|
|
7042
|
+
if (t = ze.HHMMSS.exec(e), t) {
|
|
7043
7043
|
n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
7044
7044
|
var a = parseFloat(t[3].replace(",", "."));
|
|
7045
7045
|
return Qr(n, r, a) ? n % 24 * Xr + r * rl + a * 1e3 : NaN;
|
|
@@ -7251,7 +7251,7 @@ const Fv = (e, t = 3) => {
|
|
|
7251
7251
|
}, q = (l, v) => Array.isArray(v) ? v.some((x) => xe(u(N(x)), u(l))) : v(l), K = (l, v, x) => {
|
|
7252
7252
|
let S = l ? N(l) : N();
|
|
7253
7253
|
return (v || v === 0) && (S = Xt(S, v)), x && (S = xt(S, x)), S;
|
|
7254
|
-
}, O = (l) =>
|
|
7254
|
+
}, O = (l) => je(N(), { hours: ft(l), minutes: dt(l), seconds: Bt(l) }), B = (l) => je(N(), {
|
|
7255
7255
|
hours: +l.hours || 0,
|
|
7256
7256
|
minutes: +l.minutes || 0,
|
|
7257
7257
|
seconds: +l.seconds || 0
|
|
@@ -7260,7 +7260,7 @@ const Fv = (e, t = 3) => {
|
|
|
7260
7260
|
return !0;
|
|
7261
7261
|
if (S) {
|
|
7262
7262
|
const U = x === "max" ? ko(l, v) : $o(l, v), h = { seconds: 0, milliseconds: 0 };
|
|
7263
|
-
return U || Tl(
|
|
7263
|
+
return U || Tl(je(l, h), je(v, h));
|
|
7264
7264
|
}
|
|
7265
7265
|
return x === "max" ? l.getTime() <= v.getTime() : l.getTime() >= v.getTime();
|
|
7266
7266
|
}, P = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, T = (l) => Array.isArray(l) ? [l[0] ? O(l[0]) : null, l[1] ? O(l[1]) : null] : O(l), M = (l) => {
|
|
@@ -7305,7 +7305,7 @@ const Fv = (e, t = 3) => {
|
|
|
7305
7305
|
}
|
|
7306
7306
|
}
|
|
7307
7307
|
return x;
|
|
7308
|
-
}, ie = (l, v, x) => [
|
|
7308
|
+
}, ie = (l, v, x) => [je(N(l), { date: 1 }), je(N(), { month: v, year: x, date: 1 })], E = (l, v) => He(...ie(e.minDate, l, v)) || xe(...ie(e.minDate, l, v)), b = (l, v) => Ke(...ie(e.maxDate, l, v)) || xe(...ie(e.maxDate, l, v)), W = (l, v, x) => {
|
|
7309
7309
|
let S = !1;
|
|
7310
7310
|
return e.maxDate && x && b(l, v) && (S = !0), e.minDate && !x && E(l, v) && (S = !0), S;
|
|
7311
7311
|
};
|
|
@@ -7346,21 +7346,21 @@ const Fv = (e, t = 3) => {
|
|
|
7346
7346
|
1: []
|
|
7347
7347
|
},
|
|
7348
7348
|
monthPicker: []
|
|
7349
|
-
}), Zr = H(null), an = H(!1), Gr = H(!1), Jr = H(!1), ea = H(!1),
|
|
7349
|
+
}), Zr = H(null), an = H(!1), Gr = H(!1), Jr = H(!1), ea = H(!1), We = H(0), Ye = H(0), wt = () => {
|
|
7350
7350
|
const e = V(() => an.value ? [...ke.selectionGrid, ke.actionRow].filter((d) => d.length) : Gr.value ? [
|
|
7351
7351
|
...ke.timePicker[0],
|
|
7352
7352
|
...ke.timePicker[1],
|
|
7353
7353
|
ea.value ? [] : [Zr.value],
|
|
7354
7354
|
ke.actionRow
|
|
7355
7355
|
].filter((d) => d.length) : Jr.value ? [...ke.monthPicker, ke.actionRow] : [ke.monthYear, ...ke.calendar, ke.time, ke.actionRow].filter((d) => d.length)), t = (d) => {
|
|
7356
|
-
|
|
7356
|
+
We.value = d ? We.value + 1 : We.value - 1;
|
|
7357
7357
|
let s = null;
|
|
7358
|
-
e.value[Ye.value] && (s = e.value[Ye.value][
|
|
7358
|
+
e.value[Ye.value] && (s = e.value[Ye.value][We.value]), s || (We.value = d ? We.value - 1 : We.value + 1);
|
|
7359
7359
|
}, n = (d) => {
|
|
7360
|
-
Ye.value === 0 && !d || Ye.value === e.value.length && d || (Ye.value = d ? Ye.value + 1 : Ye.value - 1, e.value[Ye.value] ? e.value[Ye.value] && !e.value[Ye.value][
|
|
7360
|
+
Ye.value === 0 && !d || Ye.value === e.value.length && d || (Ye.value = d ? Ye.value + 1 : Ye.value - 1, e.value[Ye.value] ? e.value[Ye.value] && !e.value[Ye.value][We.value] && We.value !== 0 && (We.value = e.value[Ye.value].length - 1) : Ye.value = d ? Ye.value - 1 : Ye.value + 1);
|
|
7361
7361
|
}, r = (d) => {
|
|
7362
7362
|
let s = null;
|
|
7363
|
-
e.value[Ye.value] && (s = e.value[Ye.value][
|
|
7363
|
+
e.value[Ye.value] && (s = e.value[Ye.value][We.value]), s ? s.focus({ preventScroll: !an.value }) : We.value = d ? We.value - 1 : We.value + 1;
|
|
7364
7364
|
}, a = () => {
|
|
7365
7365
|
t(!0), r(!0);
|
|
7366
7366
|
}, o = () => {
|
|
@@ -7374,7 +7374,7 @@ const Fv = (e, t = 3) => {
|
|
|
7374
7374
|
}, y = (d, s) => {
|
|
7375
7375
|
ke[s] = d;
|
|
7376
7376
|
}, w = () => {
|
|
7377
|
-
|
|
7377
|
+
We.value = 0, Ye.value = 0;
|
|
7378
7378
|
};
|
|
7379
7379
|
return {
|
|
7380
7380
|
buildMatrix: f,
|
|
@@ -7452,7 +7452,7 @@ const Fv = (e, t = 3) => {
|
|
|
7452
7452
|
}, P = (p, C = !1) => {
|
|
7453
7453
|
if ((!d.value.multiCalendars || !e.multiStatic || C) && O(0, Pe(p), Te(p)), d.value.multiCalendars)
|
|
7454
7454
|
for (let te = 1; te < d.value.multiCalendars; te++) {
|
|
7455
|
-
const ne =
|
|
7455
|
+
const ne = je(N(), { month: F.value(te - 1), year: q.value(te - 1) }), Oe = ml(ne, { months: 1 });
|
|
7456
7456
|
k.value[te] = { month: Pe(Oe), year: Te(Oe) };
|
|
7457
7457
|
}
|
|
7458
7458
|
}, T = (p) => {
|
|
@@ -7509,7 +7509,7 @@ const Fv = (e, t = 3) => {
|
|
|
7509
7509
|
if (O(0, C, te), d.value.multiCalendars > 0)
|
|
7510
7510
|
for (let ne = 1; ne < d.value.multiCalendars; ne++) {
|
|
7511
7511
|
const Oe = v(
|
|
7512
|
-
|
|
7512
|
+
je(N(p), { year: F.value(ne - 1), month: q.value(ne - 1) })
|
|
7513
7513
|
);
|
|
7514
7514
|
O(ne, Oe.month, Oe.year);
|
|
7515
7515
|
}
|
|
@@ -7578,11 +7578,11 @@ const Fv = (e, t = 3) => {
|
|
|
7578
7578
|
return C ? Lc(C.value) : "";
|
|
7579
7579
|
}, Ut = (p) => {
|
|
7580
7580
|
for (let C = p - 1; C >= 0; C--) {
|
|
7581
|
-
const te = It(
|
|
7581
|
+
const te = It(je(N(), { month: F.value(C + 1), year: q.value(C + 1) }), 1);
|
|
7582
7582
|
O(C, Pe(te), Te(te));
|
|
7583
7583
|
}
|
|
7584
7584
|
for (let C = p + 1; C <= d.value.multiCalendars - 1; C++) {
|
|
7585
|
-
const te = ut(
|
|
7585
|
+
const te = ut(je(N(), { month: F.value(C - 1), year: q.value(C - 1) }), 1);
|
|
7586
7586
|
O(C, Pe(te), Te(te));
|
|
7587
7587
|
}
|
|
7588
7588
|
}, $t = (p) => y(N(), F.value(p), q.value(p)), Lt = (p) => rt(p, A.hours, A.minutes, E()), Br = (p, C) => {
|
|
@@ -7604,7 +7604,7 @@ const Fv = (e, t = 3) => {
|
|
|
7604
7604
|
}
|
|
7605
7605
|
n();
|
|
7606
7606
|
}, en = (p, C) => {
|
|
7607
|
-
const te =
|
|
7607
|
+
const te = je(N(), { month: F.value(C), year: q.value(C) }), ne = p < 0 ? ut(te, 1) : It(te, 1);
|
|
7608
7608
|
w(Pe(ne), Te(ne), p < 0, e.preventMinMaxNavigation) && (O(C, Pe(ne), Te(ne)), d.value.multiCalendars && !e.multiCalendarsSolo && Ut(C), t("update-month-year", { instance: C, month: Pe(ne), year: Te(ne) }), r());
|
|
7609
7609
|
}, Vt = (p) => {
|
|
7610
7610
|
sl(p) && sl(s.value) && Pt(A.hours) && Pt(A.minutes) ? (p[0] && s.value[0] && (s.value[0] = rt(p[0], A.hours[0], A.minutes[0], E())), p[1] && s.value[1] && (s.value[1] = rt(p[1], A.hours[1], A.minutes[1], E(!1)))) : e.multiDates && Array.isArray(s.value) ? s.value[s.value.length - 1] = Lt(p) : !e.range && !cl(p) && (s.value = Lt(p)), t("time-update");
|
|
@@ -7750,7 +7750,7 @@ const Fv = (e, t = 3) => {
|
|
|
7750
7750
|
let g = d;
|
|
7751
7751
|
return o.value.filters.years.includes(Te(g)) ? (g = s ? vl(d, 1) : xm(d, 1), u(g, s)) : g;
|
|
7752
7752
|
}, f = (d) => {
|
|
7753
|
-
const s =
|
|
7753
|
+
const s = je(new Date(), { month: e.month, year: e.year });
|
|
7754
7754
|
let g = d ? ut(s, 1) : It(s, 1), k = Pe(g), A = Te(g);
|
|
7755
7755
|
o.value.filters.months.includes(k) && (g = i(g, d), k = Pe(g), A = Te(g)), o.value.filters.years.includes(A) && (g = u(g, d), A = Te(g)), n(k, A, d, e.preventMinMaxNavigation) && y(k, A);
|
|
7756
7756
|
}, y = (d, s) => {
|
|
@@ -7758,7 +7758,7 @@ const Fv = (e, t = 3) => {
|
|
|
7758
7758
|
}, w = V(() => (d) => {
|
|
7759
7759
|
if (!e.preventMinMaxNavigation || d && !e.maxDate || !d && !e.minDate)
|
|
7760
7760
|
return !1;
|
|
7761
|
-
const s =
|
|
7761
|
+
const s = je(new Date(), { month: e.month, year: e.year }), g = d ? ut(s, 1) : It(s, 1), k = [Pe(g), Te(g)];
|
|
7762
7762
|
return d ? !r(...k) : !a(...k);
|
|
7763
7763
|
});
|
|
7764
7764
|
return { handleMonthYearChange: f, isDisabled: w, updateMonthYear: y };
|
|
@@ -8164,7 +8164,7 @@ const ah = (e, t, n, r) => {
|
|
|
8164
8164
|
key: 5,
|
|
8165
8165
|
class: "dp__clear_icon dp__input_icons",
|
|
8166
8166
|
"data-test": "clear-icon",
|
|
8167
|
-
onClick:
|
|
8167
|
+
onClick: qe(B, ["stop", "prevent"])
|
|
8168
8168
|
}, null, 8, ["onClick"])) : D("", !0)
|
|
8169
8169
|
])) : D("", !0)
|
|
8170
8170
|
], 8, lh);
|
|
@@ -8416,7 +8416,7 @@ const ah = (e, t, n, r) => {
|
|
|
8416
8416
|
"aria-label": (ce = (J = c(i).ariaLabels) == null ? void 0 : J.day) == null ? void 0 : ce.call(J, U),
|
|
8417
8417
|
tabindex: "0",
|
|
8418
8418
|
"data-test": U.value,
|
|
8419
|
-
onClick:
|
|
8419
|
+
onClick: qe((I) => b.$emit("select-date", U), ["stop", "prevent"]),
|
|
8420
8420
|
onKeydown: [
|
|
8421
8421
|
de((I) => b.$emit("select-date", U), ["enter"]),
|
|
8422
8422
|
de((I) => b.$emit("handle-space", U), ["space"])
|
|
@@ -8448,7 +8448,7 @@ const ah = (e, t, n, r) => {
|
|
|
8448
8448
|
(_ = U.marker) != null && _.tooltip ? (m(), $("div", {
|
|
8449
8449
|
key: 0,
|
|
8450
8450
|
class: "dp__tooltip_content",
|
|
8451
|
-
onClick: W[0] || (W[0] =
|
|
8451
|
+
onClick: W[0] || (W[0] = qe(() => {
|
|
8452
8452
|
}, ["stop"]))
|
|
8453
8453
|
}, [
|
|
8454
8454
|
(m(!0), $(me, null, Ne(U.marker.tooltip, (I, De) => (m(), $("div", {
|
|
@@ -9201,7 +9201,7 @@ const ah = (e, t, n, r) => {
|
|
|
9201
9201
|
tt(() => {
|
|
9202
9202
|
n("mounted");
|
|
9203
9203
|
});
|
|
9204
|
-
const g = V(() => (l) => !!(r.maxTime && r.maxTime[l] && r.maxTime[l] < r[l] + +r[`${l}Increment`])), k = V(() => (l) => !!(r.minTime && r.minTime[l] && r.minTime[l] > r[l] - +r[`${l}Increment`])), A = (l, v) => ml(
|
|
9204
|
+
const g = V(() => (l) => !!(r.maxTime && r.maxTime[l] && r.maxTime[l] < r[l] + +r[`${l}Increment`])), k = V(() => (l) => !!(r.minTime && r.minTime[l] && r.minTime[l] > r[l] - +r[`${l}Increment`])), A = (l, v) => ml(je(N(), l), v), F = (l, v) => Dm(je(N(), l), v), q = V(
|
|
9205
9205
|
() => ({
|
|
9206
9206
|
dp__time_col: !0,
|
|
9207
9207
|
dp__time_col_reg: !r.enableSeconds && r.is24,
|
|
@@ -9343,8 +9343,8 @@ const ah = (e, t, n, r) => {
|
|
|
9343
9343
|
tabindex: "0",
|
|
9344
9344
|
onClick: ie,
|
|
9345
9345
|
onKeydown: [
|
|
9346
|
-
de(
|
|
9347
|
-
de(
|
|
9346
|
+
de(qe(ie, ["prevent"]), ["enter"]),
|
|
9347
|
+
de(qe(ie, ["prevent"]), ["space"])
|
|
9348
9348
|
]
|
|
9349
9349
|
}, ve(w.value), 41, jh))
|
|
9350
9350
|
])),
|
|
@@ -9674,10 +9674,10 @@ const ah = (e, t, n, r) => {
|
|
|
9674
9674
|
q.value = !0, !((R = r.presetRanges) != null && R.length) && !y["left-sidebar"] && !y["right-sidebar"] && ct();
|
|
9675
9675
|
const G = Ue(A);
|
|
9676
9676
|
if (G && !r.textInput && !r.inline && (a(!0), M()), G) {
|
|
9677
|
-
const
|
|
9677
|
+
const Fe = (Xe) => {
|
|
9678
9678
|
!r.monthYearComponent && !r.timePickerComponent && !Object.keys(y).length && Xe.preventDefault(), Xe.stopImmediatePropagation(), Xe.stopPropagation();
|
|
9679
9679
|
};
|
|
9680
|
-
G.addEventListener("pointerdown",
|
|
9680
|
+
G.addEventListener("pointerdown", Fe), G.addEventListener("mousedown", Fe);
|
|
9681
9681
|
}
|
|
9682
9682
|
window.addEventListener("resize", ct);
|
|
9683
9683
|
}), bo(() => {
|
|
@@ -9688,7 +9688,7 @@ const ah = (e, t, n, r) => {
|
|
|
9688
9688
|
ie.value(R),
|
|
9689
9689
|
E.value(R)
|
|
9690
9690
|
) : g.value.forEach(
|
|
9691
|
-
(G,
|
|
9691
|
+
(G, Fe) => G.triggerTransition(ie.value(Fe), E.value(Fe))
|
|
9692
9692
|
);
|
|
9693
9693
|
}, M = () => {
|
|
9694
9694
|
const R = Ue(A);
|
|
@@ -9750,9 +9750,9 @@ const ah = (e, t, n, r) => {
|
|
|
9750
9750
|
dp__relative: r.inline,
|
|
9751
9751
|
[r.menuClassName]: !!r.menuClassName
|
|
9752
9752
|
})
|
|
9753
|
-
), Vr = (R, G) => R.value(G).map((
|
|
9754
|
-
...
|
|
9755
|
-
days:
|
|
9753
|
+
), Vr = (R, G) => R.value(G).map((Fe) => ({
|
|
9754
|
+
...Fe,
|
|
9755
|
+
days: Fe.days.map((Xe) => (Xe.marker = ce(Xe), Xe.classData = ue(Xe), Xe))
|
|
9756
9756
|
})), tn = (R) => {
|
|
9757
9757
|
R.stopPropagation(), R.stopImmediatePropagation();
|
|
9758
9758
|
}, p = () => {
|
|
@@ -9761,11 +9761,11 @@ const ah = (e, t, n, r) => {
|
|
|
9761
9761
|
v(R, G), r.spaceConfirm && n("select-date");
|
|
9762
9762
|
}, te = (R) => {
|
|
9763
9763
|
var G;
|
|
9764
|
-
(G = r.flow) != null && G.length && (d[R] = !0, Object.keys(d).filter((
|
|
9765
|
-
}, ne = (R, G,
|
|
9764
|
+
(G = r.flow) != null && G.length && (d[R] = !0, Object.keys(d).filter((Fe) => !d[Fe]).length || Oe());
|
|
9765
|
+
}, ne = (R, G, Fe, Xe, ...nn) => {
|
|
9766
9766
|
if (r.flow[K.value] === R) {
|
|
9767
9767
|
const re = Xe ? G.value[0] : G.value;
|
|
9768
|
-
re && re[
|
|
9768
|
+
re && re[Fe](...nn);
|
|
9769
9769
|
}
|
|
9770
9770
|
}, Oe = () => {
|
|
9771
9771
|
ne("month", s, "toggleMonthPicker", !0, !0), ne("year", s, "toggleYearPicker", !0, !0), ne("calendar", k, "toggleTimePicker", !1, !1, !0), ne("time", k, "toggleTimePicker", !1, !0, !0);
|
|
@@ -9789,10 +9789,10 @@ const ah = (e, t, n, r) => {
|
|
|
9789
9789
|
return t({
|
|
9790
9790
|
updateMonthYear: l
|
|
9791
9791
|
}), (R, G) => {
|
|
9792
|
-
var
|
|
9792
|
+
var Fe;
|
|
9793
9793
|
return m(), pe(et, {
|
|
9794
9794
|
appear: "",
|
|
9795
|
-
name: (
|
|
9795
|
+
name: (Fe = c(f).transitions) == null ? void 0 : Fe.menuAppear,
|
|
9796
9796
|
mode: "out-in",
|
|
9797
9797
|
css: !!R.transitions
|
|
9798
9798
|
}, {
|
|
@@ -9810,10 +9810,10 @@ const ah = (e, t, n, r) => {
|
|
|
9810
9810
|
onClick: tn,
|
|
9811
9811
|
onKeydown: [
|
|
9812
9812
|
de(p, ["esc"]),
|
|
9813
|
-
G[13] || (G[13] = de(
|
|
9814
|
-
G[14] || (G[14] = de(
|
|
9815
|
-
G[15] || (G[15] = de(
|
|
9816
|
-
G[16] || (G[16] = de(
|
|
9813
|
+
G[13] || (G[13] = de(qe((re) => at("left"), ["prevent"]), ["left"])),
|
|
9814
|
+
G[14] || (G[14] = de(qe((re) => at("up"), ["prevent"]), ["up"])),
|
|
9815
|
+
G[15] || (G[15] = de(qe((re) => at("down"), ["prevent"]), ["down"])),
|
|
9816
|
+
G[16] || (G[16] = de(qe((re) => at("right"), ["prevent"]), ["right"])),
|
|
9817
9817
|
kt
|
|
9818
9818
|
]
|
|
9819
9819
|
}, [
|