redmine-ui-kit 1.2.14 → 1.2.16
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 +88 -68
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $e, openBlock as m, createElementBlock as O, normalizeStyle as
|
|
1
|
+
import { defineComponent as $e, openBlock as m, createElementBlock as O, normalizeStyle as mt, createElementVNode as Y, useSlots as Er, computed as H, normalizeClass as pe, Fragment as ve, createTextVNode as Ge, toDisplayString as me, renderSlot as z, withDirectives as Ve, vShow as bt, unref as c, isRef as it, vModelCheckbox as Xl, createCommentVNode as k, ref as F, onMounted as Je, nextTick as Mt, withKeys as de, withModifiers as Ke, vModelText as Eo, createBlock as ye, Transition as nt, withCtx as ae, createVNode as Ee, watchEffect as Ql, watch as ct, renderList as Ne, reactive as Gt, toRef as oa, onUnmounted as wo, mergeProps as Be, createSlots as Ze, normalizeProps as tt, guardReactiveProps as vt, Teleport as Zl, resolveDynamicComponent as ln, onBeforeUpdate as Gl, getCurrentScope as Jl, onScopeDispose as eu } from "vue";
|
|
2
2
|
const tu = /* @__PURE__ */ Y("span", null, null, -1), nu = [
|
|
3
3
|
tu
|
|
4
4
|
], D0 = /* @__PURE__ */ $e({
|
|
@@ -10,14 +10,14 @@ const tu = /* @__PURE__ */ Y("span", null, null, -1), nu = [
|
|
|
10
10
|
setup(e) {
|
|
11
11
|
return (t, n) => (m(), O("div", {
|
|
12
12
|
class: "rm-skeleton",
|
|
13
|
-
style:
|
|
13
|
+
style: mt({
|
|
14
14
|
backgroundColor: e.color,
|
|
15
15
|
minHeight: `${e.minHeight}px`
|
|
16
16
|
})
|
|
17
17
|
}, nu, 4));
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const ru = ["disabled", "type"], au = { class: "rm-button__label" }, ou = { class: "rm-button__icon" },
|
|
20
|
+
const ru = ["disabled", "type"], au = { class: "rm-button__label" }, ou = { class: "rm-button__icon" }, ht = /* @__PURE__ */ $e({
|
|
21
21
|
__name: "RMButton",
|
|
22
22
|
props: {
|
|
23
23
|
label: { default: "" },
|
|
@@ -72,7 +72,7 @@ const iu = { class: "rm-progress" }, lu = { class: "rm-progress-line" }, uu = /*
|
|
|
72
72
|
Y("div", lu, [
|
|
73
73
|
Y("div", {
|
|
74
74
|
class: "rm-progress-line__done",
|
|
75
|
-
style:
|
|
75
|
+
style: mt(`max-width:${c(n)}%`)
|
|
76
76
|
}, null, 4),
|
|
77
77
|
uu
|
|
78
78
|
])
|
|
@@ -405,7 +405,7 @@ const Cu = "data:image/svg+xml;base64,PHN2ZwogICAgd2lkdGg9IjIyIgogICAgaGVpZ2h0PS
|
|
|
405
405
|
key: 0,
|
|
406
406
|
class: pe(["rm-modal-wrapper", e.contentClass])
|
|
407
407
|
}, [
|
|
408
|
-
e.persistent ? k("", !0) : (m(), ye(
|
|
408
|
+
e.persistent ? k("", !0) : (m(), ye(ht, {
|
|
409
409
|
key: 0,
|
|
410
410
|
class: "rm-modal__close",
|
|
411
411
|
onClick: r
|
|
@@ -552,7 +552,7 @@ const Lu = (e, t = 150) => {
|
|
|
552
552
|
}), w = H(() => o.value ? n.options.filter(({ name: I }) => I.toLowerCase().includes(o.value.toLowerCase())) : n.options);
|
|
553
553
|
Ql(() => {
|
|
554
554
|
n.selectedOptions && (a.value = n.selectedOptions);
|
|
555
|
-
}),
|
|
555
|
+
}), ct(() => n.closable, (I) => r.value = !I), ct(r, (I) => {
|
|
556
556
|
I && (q(), t("close"));
|
|
557
557
|
}), Je(() => {
|
|
558
558
|
var I, V;
|
|
@@ -594,7 +594,7 @@ const Lu = (e, t = 150) => {
|
|
|
594
594
|
Y("div", Xu, [
|
|
595
595
|
Y("div", {
|
|
596
596
|
class: "rm-select-container",
|
|
597
|
-
style:
|
|
597
|
+
style: mt({
|
|
598
598
|
display: e.useChips ? "flex" : "block"
|
|
599
599
|
}),
|
|
600
600
|
onClick: V[2] || (V[2] = Ke((R) => r.value = !0, ["self"]))
|
|
@@ -628,7 +628,7 @@ const Lu = (e, t = 150) => {
|
|
|
628
628
|
}, null, 40, ts)
|
|
629
629
|
], 4),
|
|
630
630
|
Y("div", ns, [
|
|
631
|
-
Ee(
|
|
631
|
+
Ee(ht, {
|
|
632
632
|
class: pe(["rm-select-input__cheveron", { open: r.value }]),
|
|
633
633
|
onClick: V[3] || (V[3] = Ke((R) => r.value = !r.value, ["prevent"]))
|
|
634
634
|
}, {
|
|
@@ -642,7 +642,7 @@ const Lu = (e, t = 150) => {
|
|
|
642
642
|
mode: "out-in"
|
|
643
643
|
}, {
|
|
644
644
|
default: ae(() => [
|
|
645
|
-
e.removable && (c(y) || o.value) ? (m(), ye(
|
|
645
|
+
e.removable && (c(y) || o.value) ? (m(), ye(ht, {
|
|
646
646
|
key: 0,
|
|
647
647
|
class: "rm-select-input__remove",
|
|
648
648
|
onClick: Ke(d, ["prevent"])
|
|
@@ -737,7 +737,7 @@ const ys = /* @__PURE__ */ ls(us, [["render", ps]]), ms = {
|
|
|
737
737
|
emits: ["change"],
|
|
738
738
|
setup(e, { emit: t }) {
|
|
739
739
|
const n = e, r = F(!1), a = F(n.value);
|
|
740
|
-
|
|
740
|
+
ct(() => n.value, (w) => a.value = w);
|
|
741
741
|
function o() {
|
|
742
742
|
t("change", a.value), f();
|
|
743
743
|
}
|
|
@@ -771,7 +771,7 @@ const ys = /* @__PURE__ */ ls(us, [["render", ps]]), ms = {
|
|
|
771
771
|
onChange: i
|
|
772
772
|
}, null, 8, ["model-value", "maxlength"])) : (m(), O("div", vs, [
|
|
773
773
|
z(w.$slots, "default", { value: e.value }),
|
|
774
|
-
e.editByFocus ? k("", !0) : (m(), ye(
|
|
774
|
+
e.editByFocus ? k("", !0) : (m(), ye(ht, {
|
|
775
775
|
key: 0,
|
|
776
776
|
class: "rm-editable__content-slot__edit rm-common-button rm-common-button--flat",
|
|
777
777
|
onClick: d[0] || (d[0] = (s) => r.value = !0)
|
|
@@ -786,12 +786,12 @@ const ys = /* @__PURE__ */ ls(us, [["render", ps]]), ms = {
|
|
|
786
786
|
r.value ? (m(), O("div", hs, [
|
|
787
787
|
w.$slots.footer ? z(w.$slots, "footer", { key: 0 }) : k("", !0),
|
|
788
788
|
!w.$slots.footer && e.hasActions ? (m(), O("div", _s, [
|
|
789
|
-
Ee(
|
|
789
|
+
Ee(ht, {
|
|
790
790
|
label: e.saveLabel,
|
|
791
791
|
class: "rm-common-button rm-common-button--flat rm-common-button--blue",
|
|
792
792
|
onClick: o
|
|
793
793
|
}, null, 8, ["label"]),
|
|
794
|
-
Ee(
|
|
794
|
+
Ee(ht, {
|
|
795
795
|
label: e.cancelLabel,
|
|
796
796
|
class: "rm-common-button rm-common-button--flat",
|
|
797
797
|
onClick: f
|
|
@@ -849,7 +849,7 @@ const $s = { render: Os }, ks = {
|
|
|
849
849
|
])
|
|
850
850
|
]),
|
|
851
851
|
Y("div", xs, [
|
|
852
|
-
Ee(
|
|
852
|
+
Ee(ht, {
|
|
853
853
|
onClick: r[0] || (r[0] = (a) => t("close"))
|
|
854
854
|
}, {
|
|
855
855
|
icon: ae(() => [
|
|
@@ -887,11 +887,11 @@ const Ss = {
|
|
|
887
887
|
e.visibility ? Ve((m(), O("div", Ss, [
|
|
888
888
|
Y("h3", Rs, me(e.title), 1),
|
|
889
889
|
Y("div", Ms, [
|
|
890
|
-
Ee(
|
|
890
|
+
Ee(ht, {
|
|
891
891
|
label: e.confirmLabel,
|
|
892
892
|
onClick: r[0] || (r[0] = (a) => t("confirm"))
|
|
893
893
|
}, null, 8, ["label"]),
|
|
894
|
-
Ee(
|
|
894
|
+
Ee(ht, {
|
|
895
895
|
label: e.cancelLabel,
|
|
896
896
|
onClick: r[1] || (r[1] = (a) => t("cancel"))
|
|
897
897
|
}, null, 8, ["label"])
|
|
@@ -2323,7 +2323,7 @@ function zc(e) {
|
|
|
2323
2323
|
var t = le(e), n = t.getFullYear(), r = t.getMonth(), a = new Date(0);
|
|
2324
2324
|
return a.setFullYear(n, r + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function pt(e) {
|
|
2327
2327
|
J(1, arguments);
|
|
2328
2328
|
var t = le(e), n = t.getHours();
|
|
2329
2329
|
return n;
|
|
@@ -2334,7 +2334,7 @@ function Kc(e) {
|
|
|
2334
2334
|
var t = le(e), n = Xn(t).getTime() - Es(t).getTime();
|
|
2335
2335
|
return Math.round(n / qc) + 1;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function yt(e) {
|
|
2338
2338
|
J(1, arguments);
|
|
2339
2339
|
var t = le(e), n = t.getMinutes();
|
|
2340
2340
|
return n;
|
|
@@ -6755,13 +6755,13 @@ const Hl = /* @__PURE__ */ Ct(bv, [["render", $v]]), tl = (e, t) => {
|
|
|
6755
6755
|
e.getUTCSeconds()
|
|
6756
6756
|
);
|
|
6757
6757
|
return new Date(n).toISOString();
|
|
6758
|
-
},
|
|
6758
|
+
}, ft = (e) => {
|
|
6759
6759
|
let t = N(JSON.parse(JSON.stringify(e)));
|
|
6760
6760
|
return t = Bl(t, 0), t = Yl(t, 0), t = Ul(t, 0), t = Mo(t, 0), t;
|
|
6761
6761
|
}, at = (e, t, n, r) => {
|
|
6762
6762
|
let a = e ? N(e) : N();
|
|
6763
6763
|
return (t || t === 0) && (a = Bl(a, +t)), (n || n === 0) && (a = Yl(a, +n)), (r || r === 0) && (a = Ul(a, +r)), Mo(a, 0);
|
|
6764
|
-
}, Fe = (e, t) => !e || !t ? !1 : To(
|
|
6764
|
+
}, Fe = (e, t) => !e || !t ? !1 : To(ft(e), ft(t)), Se = (e, t) => !e || !t ? !1 : Sl(ft(e), ft(t)), Xe = (e, t) => !e || !t ? !1 : Po(ft(e), ft(t)), Fl = (e, t, n) => e && e[0] && e[1] ? Xe(n, e[0]) && Fe(n, e[1]) : e && e[0] && t ? Xe(n, e[0]) && Fe(n, t) || Fe(n, e[0]) && Xe(n, t) : !1, zt = Gt({
|
|
6765
6765
|
menuFocused: !1,
|
|
6766
6766
|
shiftKeyInMenu: !1
|
|
6767
6767
|
}), Wl = () => {
|
|
@@ -7274,8 +7274,8 @@ const Zv = (e, t = 3) => {
|
|
|
7274
7274
|
return !(v || D || x || U || _ || h || G);
|
|
7275
7275
|
}, d = (l) => {
|
|
7276
7276
|
const v = {
|
|
7277
|
-
hours:
|
|
7278
|
-
minutes:
|
|
7277
|
+
hours: pt(N()),
|
|
7278
|
+
minutes: yt(N()),
|
|
7279
7279
|
seconds: Yt(N())
|
|
7280
7280
|
};
|
|
7281
7281
|
return Object.assign(v, l);
|
|
@@ -7285,7 +7285,7 @@ const Zv = (e, t = 3) => {
|
|
|
7285
7285
|
}, I = (l, v) => Array.isArray(v) ? v.some((D) => Se(u(N(D)), u(l))) : v(l), V = (l, v, D) => {
|
|
7286
7286
|
let x = l ? N(l) : N();
|
|
7287
7287
|
return (v || v === 0) && (x = Qt(x, v)), D && (x = St(x, D)), x;
|
|
7288
|
-
}, R = (l) => ze(N(), { hours:
|
|
7288
|
+
}, R = (l) => ze(N(), { hours: pt(l), minutes: yt(l), seconds: Yt(l) }), W = (l) => ze(N(), {
|
|
7289
7289
|
hours: +l.hours || 0,
|
|
7290
7290
|
minutes: +l.minutes || 0,
|
|
7291
7291
|
seconds: +l.seconds || 0
|
|
@@ -7325,7 +7325,7 @@ const Zv = (e, t = 3) => {
|
|
|
7325
7325
|
const D = [], x = N(u(new Date(v, l))), U = N(u(new Date(v, l + 1, 0))), h = ia(x, { weekStartsOn: e.weekStart }), G = (ce) => {
|
|
7326
7326
|
const _ = L(ce, l);
|
|
7327
7327
|
if (D.push({ days: _ }), !D[D.length - 1].days.some(
|
|
7328
|
-
(E) => Se(
|
|
7328
|
+
(E) => Se(ft(E.value), ft(U))
|
|
7329
7329
|
)) {
|
|
7330
7330
|
const E = gt(ce, 7);
|
|
7331
7331
|
G(E);
|
|
@@ -7452,12 +7452,12 @@ const Zv = (e, t = 3) => {
|
|
|
7452
7452
|
!e.readonly && !e.disabled && t("update:internal-model-value", p);
|
|
7453
7453
|
}
|
|
7454
7454
|
}), g = F([]);
|
|
7455
|
-
|
|
7455
|
+
ct(s, () => {
|
|
7456
7456
|
e.multiCalendars || te();
|
|
7457
7457
|
});
|
|
7458
7458
|
const $ = F([{ month: Te(N()), year: De(N()) }]), A = Gt({
|
|
7459
|
-
hours: e.range ? [
|
|
7460
|
-
minutes: e.range ? [
|
|
7459
|
+
hours: e.range ? [pt(N()), pt(N())] : pt(N()),
|
|
7460
|
+
minutes: e.range ? [yt(N()), yt(N())] : yt(N()),
|
|
7461
7461
|
seconds: e.range ? [0, 0] : 0
|
|
7462
7462
|
}), q = H(
|
|
7463
7463
|
() => (p) => $.value[p] ? $.value[p].month : 0
|
|
@@ -7490,14 +7490,14 @@ const Zv = (e, t = 3) => {
|
|
|
7490
7490
|
$.value[ee] = { month: Te(Oe), year: De(Oe) };
|
|
7491
7491
|
}
|
|
7492
7492
|
}, T = (p) => {
|
|
7493
|
-
P(p), W("hours",
|
|
7493
|
+
P(p), W("hours", pt(p)), W("minutes", yt(p)), W("seconds", Yt(p));
|
|
7494
7494
|
}, M = (p, C) => {
|
|
7495
7495
|
P(p[0], C);
|
|
7496
7496
|
const ee = (ne, Oe) => [
|
|
7497
7497
|
ne(p[0]),
|
|
7498
7498
|
p[1] ? ne(p[1]) : A[Oe][1]
|
|
7499
7499
|
];
|
|
7500
|
-
W("hours", ee(
|
|
7500
|
+
W("hours", ee(pt, "hours")), W("minutes", ee(yt, "minutes")), W("seconds", ee(Yt, "seconds"));
|
|
7501
7501
|
}, K = (p, C) => {
|
|
7502
7502
|
if ((e.range || e.weekPicker) && !e.multiDates)
|
|
7503
7503
|
return M(p, C);
|
|
@@ -7607,7 +7607,7 @@ const Zv = (e, t = 3) => {
|
|
|
7607
7607
|
return he(p);
|
|
7608
7608
|
Tt(A.hours) && Tt(A.minutes) && !e.multiDates && (fe(p, C), be());
|
|
7609
7609
|
}
|
|
7610
|
-
},
|
|
7610
|
+
}, dt = (p) => {
|
|
7611
7611
|
const C = p.find((ee) => ee.current);
|
|
7612
7612
|
return C ? Kc(C.value) : "";
|
|
7613
7613
|
}, Lt = (p) => {
|
|
@@ -7674,7 +7674,7 @@ const Zv = (e, t = 3) => {
|
|
|
7674
7674
|
monthYearSelect: Lr,
|
|
7675
7675
|
isDisabled: i,
|
|
7676
7676
|
updateTime: Vr,
|
|
7677
|
-
getWeekNum:
|
|
7677
|
+
getWeekNum: dt,
|
|
7678
7678
|
selectDate: Ut,
|
|
7679
7679
|
updateMonthYear: Ur,
|
|
7680
7680
|
handleScroll: Hr,
|
|
@@ -7700,14 +7700,14 @@ const Zv = (e, t = 3) => {
|
|
|
7700
7700
|
setDateMonthOrYear: d,
|
|
7701
7701
|
defaults: s
|
|
7702
7702
|
} = rt(t), g = F("");
|
|
7703
|
-
|
|
7703
|
+
ct(r, () => {
|
|
7704
7704
|
e("internal-model-change", r.value);
|
|
7705
7705
|
});
|
|
7706
7706
|
const $ = (h) => {
|
|
7707
7707
|
const G = h || N();
|
|
7708
7708
|
return {
|
|
7709
|
-
hours:
|
|
7710
|
-
minutes:
|
|
7709
|
+
hours: pt(G),
|
|
7710
|
+
minutes: yt(G),
|
|
7711
7711
|
seconds: t.enableSeconds ? Yt(G) : 0
|
|
7712
7712
|
};
|
|
7713
7713
|
}, A = (h) => ({ month: Te(h), year: De(h) }), q = (h) => Array.isArray(h) ? f(() => [
|
|
@@ -7804,7 +7804,7 @@ const dh = (e, t, n, r) => {
|
|
|
7804
7804
|
left: "0",
|
|
7805
7805
|
transform: "none"
|
|
7806
7806
|
}), o = F(!1), i = oa(r, "teleportCenter");
|
|
7807
|
-
|
|
7807
|
+
ct(i, () => {
|
|
7808
7808
|
q();
|
|
7809
7809
|
});
|
|
7810
7810
|
const u = (T) => {
|
|
@@ -8238,7 +8238,7 @@ const dh = (e, t, n, r) => {
|
|
|
8238
8238
|
};
|
|
8239
8239
|
return (R, W) => (m(), O("div", {
|
|
8240
8240
|
class: "dp__action_row",
|
|
8241
|
-
style:
|
|
8241
|
+
style: mt(e.calendarWidth ? { width: `${e.calendarWidth}px` } : {})
|
|
8242
8242
|
}, [
|
|
8243
8243
|
R.$slots["action-row"] ? z(R.$slots, "action-row", tt(Be({ key: 0 }, {
|
|
8244
8244
|
internalModelValue: e.internalModelValue,
|
|
@@ -8333,8 +8333,8 @@ const dh = (e, t, n, r) => {
|
|
|
8333
8333
|
});
|
|
8334
8334
|
const A = (b) => b ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", q = (b, j) => {
|
|
8335
8335
|
if (r.transitions) {
|
|
8336
|
-
const l =
|
|
8337
|
-
s.value = Xe(
|
|
8336
|
+
const l = ft(o(N(), r.month, r.year));
|
|
8337
|
+
s.value = Xe(ft(o(N(), b, j)), l) ? i.value.transitions[A(!0)] : i.value.transitions[A(!1)], d.value = !1, Mt(() => {
|
|
8338
8338
|
d.value = !0;
|
|
8339
8339
|
});
|
|
8340
8340
|
}
|
|
@@ -8387,7 +8387,7 @@ const dh = (e, t, n, r) => {
|
|
|
8387
8387
|
class: pe(c(W))
|
|
8388
8388
|
}, [
|
|
8389
8389
|
Y("div", {
|
|
8390
|
-
style:
|
|
8390
|
+
style: mt(c(P))
|
|
8391
8391
|
}, [
|
|
8392
8392
|
e.specificMode ? k("", !0) : (m(), O("div", {
|
|
8393
8393
|
key: 0,
|
|
@@ -8472,12 +8472,12 @@ const dh = (e, t, n, r) => {
|
|
|
8472
8472
|
U.marker && c(te)(U) ? (m(), O("div", {
|
|
8473
8473
|
key: 2,
|
|
8474
8474
|
class: pe(c(V)(U.marker)),
|
|
8475
|
-
style:
|
|
8475
|
+
style: mt(U.marker.color ? { backgroundColor: U.marker.color } : {})
|
|
8476
8476
|
}, null, 6)) : k("", !0),
|
|
8477
8477
|
c(R)(U.value) ? (m(), O("div", {
|
|
8478
8478
|
key: 3,
|
|
8479
8479
|
class: "dp__marker_tooltip",
|
|
8480
|
-
style:
|
|
8480
|
+
style: mt(f.value)
|
|
8481
8481
|
}, [
|
|
8482
8482
|
(_ = U.marker) != null && _.tooltip ? (m(), O("div", {
|
|
8483
8483
|
key: 0,
|
|
@@ -8497,7 +8497,7 @@ const dh = (e, t, n, r) => {
|
|
|
8497
8497
|
b.$slots["marker-tooltip"] ? k("", !0) : (m(), O(ve, { key: 1 }, [
|
|
8498
8498
|
Y("div", {
|
|
8499
8499
|
class: "dp__tooltip_mark",
|
|
8500
|
-
style:
|
|
8500
|
+
style: mt(E.color ? { backgroundColor: E.color } : {})
|
|
8501
8501
|
}, null, 4),
|
|
8502
8502
|
Y("div", null, me(E.text), 1)
|
|
8503
8503
|
], 64))
|
|
@@ -8971,7 +8971,7 @@ const dh = (e, t, n, r) => {
|
|
|
8971
8971
|
_.$slots["month-overlay"] ? {
|
|
8972
8972
|
name: "overlay-month",
|
|
8973
8973
|
fn: ae(() => [
|
|
8974
|
-
z(_.$slots, "month-overlay", tt(
|
|
8974
|
+
z(_.$slots, "month-overlay", tt(vt(c(T)("month"))))
|
|
8975
8975
|
]),
|
|
8976
8976
|
key: "2"
|
|
8977
8977
|
} : void 0,
|
|
@@ -9025,7 +9025,7 @@ const dh = (e, t, n, r) => {
|
|
|
9025
9025
|
_.$slots["year-overlay"] ? {
|
|
9026
9026
|
name: "overlay-year",
|
|
9027
9027
|
fn: ae(() => [
|
|
9028
|
-
z(_.$slots, "year-overlay", tt(
|
|
9028
|
+
z(_.$slots, "year-overlay", tt(vt(c(T)("year"))))
|
|
9029
9029
|
]),
|
|
9030
9030
|
key: "2"
|
|
9031
9031
|
} : void 0,
|
|
@@ -9262,7 +9262,7 @@ const dh = (e, t, n, r) => {
|
|
|
9262
9262
|
return D && x ? l < D || l > x : D ? l < D : x ? l > x : !1;
|
|
9263
9263
|
}, T = H(() => (l) => te(l).flat().map((v) => v.value).filter((v) => P(v, l))), M = (l) => r[`no${l[0].toUpperCase() + l.slice(1)}Overlay`], K = (l) => {
|
|
9264
9264
|
M(l) || (y[l] = !y[l], y[l] || n("overlay-closed"));
|
|
9265
|
-
}, X = (l) => l === "hours" ?
|
|
9265
|
+
}, X = (l) => l === "hours" ? pt : l === "minutes" ? yt : Yt, L = (l, v = !0) => {
|
|
9266
9266
|
const D = v ? A : q;
|
|
9267
9267
|
(v ? g.value(l) : $.value(l)) || n(
|
|
9268
9268
|
`update:${l}`,
|
|
@@ -9546,7 +9546,7 @@ const dh = (e, t, n, r) => {
|
|
|
9546
9546
|
Ne(c(te), (l, v) => ({
|
|
9547
9547
|
name: l,
|
|
9548
9548
|
fn: ae((D) => [
|
|
9549
|
-
z(L.$slots, l, tt(
|
|
9549
|
+
z(L.$slots, l, tt(vt(D)))
|
|
9550
9550
|
])
|
|
9551
9551
|
}))
|
|
9552
9552
|
]), 1040, ["onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
|
|
@@ -9705,7 +9705,7 @@ const dh = (e, t, n, r) => {
|
|
|
9705
9705
|
}), s = F([]), g = F([]), $ = F(null), A = F(null), q = F(0), I = F(!1), V = F(0);
|
|
9706
9706
|
Je(() => {
|
|
9707
9707
|
var S;
|
|
9708
|
-
I.value = !0, !((S = r.presetRanges) != null && S.length) && !y["left-sidebar"] && !y["right-sidebar"] &&
|
|
9708
|
+
I.value = !0, !((S = r.presetRanges) != null && S.length) && !y["left-sidebar"] && !y["right-sidebar"] && dt();
|
|
9709
9709
|
const Z = Le(A);
|
|
9710
9710
|
if (Z && !r.textInput && !r.inline && (a(!0), M()), Z) {
|
|
9711
9711
|
const We = (Qe) => {
|
|
@@ -9713,9 +9713,9 @@ const dh = (e, t, n, r) => {
|
|
|
9713
9713
|
};
|
|
9714
9714
|
Z.addEventListener("pointerdown", We), Z.addEventListener("mousedown", We);
|
|
9715
9715
|
}
|
|
9716
|
-
window.addEventListener("resize",
|
|
9716
|
+
window.addEventListener("resize", dt);
|
|
9717
9717
|
}), wo(() => {
|
|
9718
|
-
window.removeEventListener("resize",
|
|
9718
|
+
window.removeEventListener("resize", dt);
|
|
9719
9719
|
});
|
|
9720
9720
|
const { arrowRight: R, arrowLeft: W, arrowDown: te, arrowUp: P } = Ot(), T = (S) => {
|
|
9721
9721
|
S || S === 0 ? g.value[S].triggerTransition(
|
|
@@ -9750,7 +9750,7 @@ const dh = (e, t, n, r) => {
|
|
|
9750
9750
|
selectCurrentDate: _,
|
|
9751
9751
|
presetDateRange: E
|
|
9752
9752
|
} = sh(r, n, K, T, V), { setHoverDate: xe, clearHoverDate: he, getDayClassData: ue } = i0(Q, r);
|
|
9753
|
-
|
|
9753
|
+
ct(
|
|
9754
9754
|
L,
|
|
9755
9755
|
() => {
|
|
9756
9756
|
r.openOnTop && setTimeout(() => {
|
|
@@ -9759,7 +9759,7 @@ const dh = (e, t, n, r) => {
|
|
|
9759
9759
|
},
|
|
9760
9760
|
{ deep: !0 }
|
|
9761
9761
|
);
|
|
9762
|
-
const Re = xt(y, "calendar"), et = xt(y, "action"), se = xt(y, "timePicker"), fe = xt(y, "monthYear"), ke = H(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), be = H(() => Jv(r.yearRange)), Ut = H(() => eh(r.locale, r.monthNameFormat)),
|
|
9762
|
+
const Re = xt(y, "calendar"), et = xt(y, "action"), se = xt(y, "timePicker"), fe = xt(y, "monthYear"), ke = H(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), be = H(() => Jv(r.yearRange)), Ut = H(() => eh(r.locale, r.monthNameFormat)), dt = () => {
|
|
9763
9763
|
const S = Le(w);
|
|
9764
9764
|
S && (q.value = S.getBoundingClientRect().width);
|
|
9765
9765
|
}, Lt = H(() => (S) => u(ie.value(S), B.value(S))), kt = H(
|
|
@@ -9870,7 +9870,7 @@ const dh = (e, t, n, r) => {
|
|
|
9870
9870
|
(nn = S.presetRanges) != null && nn.length ? (m(), O("div", s0, [
|
|
9871
9871
|
(m(!0), O(ve, null, Ne(S.presetRanges, (re, Nt) => (m(), O("div", {
|
|
9872
9872
|
key: Nt,
|
|
9873
|
-
style:
|
|
9873
|
+
style: mt(re.style || {}),
|
|
9874
9874
|
class: "dp__preset_range",
|
|
9875
9875
|
onClick: (_e) => c(E)(re.range, !!re.slot)
|
|
9876
9876
|
}, [
|
|
@@ -9919,7 +9919,7 @@ const dh = (e, t, n, r) => {
|
|
|
9919
9919
|
Ne(c(fe), (_e, Kl) => ({
|
|
9920
9920
|
name: _e,
|
|
9921
9921
|
fn: ae((Wr) => [
|
|
9922
|
-
z(S.$slots, _e, tt(
|
|
9922
|
+
z(S.$slots, _e, tt(vt(Wr)))
|
|
9923
9923
|
])
|
|
9924
9924
|
}))
|
|
9925
9925
|
]), 1040, ["months", "years", "month", "year", "instance", "internal-model-value", "onUpdateMonthYear", "onMonthYearSelect"])) : k("", !0),
|
|
@@ -9948,7 +9948,7 @@ const dh = (e, t, n, r) => {
|
|
|
9948
9948
|
Ne(c(Re), (_e, Kl) => ({
|
|
9949
9949
|
name: _e,
|
|
9950
9950
|
fn: ae((Wr) => [
|
|
9951
|
-
z(S.$slots, _e, tt(
|
|
9951
|
+
z(S.$slots, _e, tt(vt({ ...Wr })))
|
|
9952
9952
|
])
|
|
9953
9953
|
}))
|
|
9954
9954
|
]), 1040, ["specific-mode", "get-week-num", "instance", "mapped-dates", "month", "year", "flow-step", "onSelectDate", "onHandleSpace", "onHandleScroll", "onHandleSwipe"])
|
|
@@ -9975,7 +9975,7 @@ const dh = (e, t, n, r) => {
|
|
|
9975
9975
|
Ne(c(se), (re, Nt) => ({
|
|
9976
9976
|
name: re,
|
|
9977
9977
|
fn: ae((_e) => [
|
|
9978
|
-
z(S.$slots, re, tt(
|
|
9978
|
+
z(S.$slots, re, tt(vt(_e)))
|
|
9979
9979
|
])
|
|
9980
9980
|
}))
|
|
9981
9981
|
]), 1040, ["hours", "minutes", "seconds", "internal-model-value"])) : k("", !0)
|
|
@@ -10012,7 +10012,7 @@ const dh = (e, t, n, r) => {
|
|
|
10012
10012
|
Ne(c(et), (re, Nt) => ({
|
|
10013
10013
|
name: re,
|
|
10014
10014
|
fn: ae((_e) => [
|
|
10015
|
-
z(S.$slots, re, tt(
|
|
10015
|
+
z(S.$slots, re, tt(vt({ ..._e })))
|
|
10016
10016
|
])
|
|
10017
10017
|
}))
|
|
10018
10018
|
]), 1040, ["menu-mount", "calendar-width", "internal-model-value"])) : k("", !0)
|
|
@@ -10028,7 +10028,7 @@ const dh = (e, t, n, r) => {
|
|
|
10028
10028
|
if (!e)
|
|
10029
10029
|
return aa;
|
|
10030
10030
|
let a = aa;
|
|
10031
|
-
const o =
|
|
10031
|
+
const o = ct(
|
|
10032
10032
|
() => c(e),
|
|
10033
10033
|
(u) => {
|
|
10034
10034
|
a(), u && (u.addEventListener(t, n, r), a = () => {
|
|
@@ -10073,7 +10073,7 @@ const dh = (e, t, n, r) => {
|
|
|
10073
10073
|
r.inline || (window.removeEventListener("scroll", b), window.removeEventListener("resize", j));
|
|
10074
10074
|
});
|
|
10075
10075
|
const I = xt(a, "all", r.presetRanges), V = xt(a, "input");
|
|
10076
|
-
|
|
10076
|
+
ct(
|
|
10077
10077
|
[i, u],
|
|
10078
10078
|
() => {
|
|
10079
10079
|
K(i.value);
|
|
@@ -10178,8 +10178,8 @@ const dh = (e, t, n, r) => {
|
|
|
10178
10178
|
}), Ze({ _: 2 }, [
|
|
10179
10179
|
Ne(c(V), (be, Ut) => ({
|
|
10180
10180
|
name: be,
|
|
10181
|
-
fn: ae((
|
|
10182
|
-
z(fe.$slots, be, tt(
|
|
10181
|
+
fn: ae((dt) => [
|
|
10182
|
+
z(fe.$slots, be, tt(vt(dt)))
|
|
10183
10183
|
])
|
|
10184
10184
|
}))
|
|
10185
10185
|
]), 1040, ["is-menu-open", "input-value", "onSetEmptyDate"]),
|
|
@@ -10209,8 +10209,8 @@ const dh = (e, t, n, r) => {
|
|
|
10209
10209
|
}), Ze({ _: 2 }, [
|
|
10210
10210
|
Ne(c(I), (be, Ut) => ({
|
|
10211
10211
|
name: be,
|
|
10212
|
-
fn: ae((
|
|
10213
|
-
z(fe.$slots, be, tt(
|
|
10212
|
+
fn: ae((dt) => [
|
|
10213
|
+
z(fe.$slots, be, tt(vt({ ...dt })))
|
|
10214
10214
|
])
|
|
10215
10215
|
}))
|
|
10216
10216
|
]), 1040, ["class", "style", "open-on-top", "internal-model-value", "onRecalculatePosition"])) : k("", !0)
|
|
@@ -10287,17 +10287,37 @@ const w0 = {
|
|
|
10287
10287
|
props: {
|
|
10288
10288
|
label: { default: "" },
|
|
10289
10289
|
position: { default: "bottom" },
|
|
10290
|
-
dark: { type: Boolean, default: !1 }
|
|
10290
|
+
dark: { type: Boolean, default: !1 },
|
|
10291
|
+
dynamic: { type: Boolean, default: !1 },
|
|
10292
|
+
visible: { type: Boolean, default: !1 },
|
|
10293
|
+
duration: { default: 3e3 }
|
|
10291
10294
|
},
|
|
10292
10295
|
setup(e) {
|
|
10293
|
-
|
|
10294
|
-
|
|
10296
|
+
const t = e, n = F(!1);
|
|
10297
|
+
function r() {
|
|
10298
|
+
t.dynamic || (n.value = !n.value);
|
|
10299
|
+
}
|
|
10300
|
+
return ct(() => t.visible, () => {
|
|
10301
|
+
console.log("props.visible :>> ", t.visible), t.dynamic && (n.value = !0, setTimeout(() => {
|
|
10302
|
+
n.value = !1;
|
|
10303
|
+
}, +t.duration));
|
|
10304
|
+
}), (a, o) => (m(), O("div", {
|
|
10305
|
+
class: pe([
|
|
10306
|
+
"rm-tooltip",
|
|
10307
|
+
`position-${e.position}`,
|
|
10308
|
+
{
|
|
10309
|
+
dark: e.dark,
|
|
10310
|
+
visible: n.value
|
|
10311
|
+
}
|
|
10312
|
+
]),
|
|
10313
|
+
onMouseover: r,
|
|
10314
|
+
onMouseout: r
|
|
10295
10315
|
}, [
|
|
10296
|
-
z(
|
|
10316
|
+
z(a.$slots, "default"),
|
|
10297
10317
|
e.label ? (m(), O("div", w0, [
|
|
10298
10318
|
Y("p", O0, me(e.label), 1)
|
|
10299
10319
|
])) : k("", !0)
|
|
10300
|
-
],
|
|
10320
|
+
], 34));
|
|
10301
10321
|
}
|
|
10302
10322
|
});
|
|
10303
10323
|
const $0 = { class: "rm-avatar__overlay" }, k0 = ["src"], P0 = { class: "rm-avatar__label" }, U0 = /* @__PURE__ */ $e({
|
|
@@ -10335,7 +10355,7 @@ export {
|
|
|
10335
10355
|
A0 as RMAlert,
|
|
10336
10356
|
R0 as RMAttachFiles,
|
|
10337
10357
|
U0 as RMAvatar,
|
|
10338
|
-
|
|
10358
|
+
ht as RMButton,
|
|
10339
10359
|
S0 as RMCheckbox,
|
|
10340
10360
|
I0 as RMConfirm,
|
|
10341
10361
|
B0 as RMDatepicker,
|