redmine-ui-kit 1.2.2 → 1.2.4
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 +60 -57
- 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 $e, openBlock as m, createElementBlock as O, normalizeStyle as yt, createElementVNode as E, useSlots as Gt, computed as V, normalizeClass as pe, Fragment as ve, createTextVNode as Ge, toDisplayString as me, renderSlot as j, withDirectives as Ve, vShow as bt, unref as c, isRef as it, vModelCheckbox as Xl, createCommentVNode as T, ref as H, onMounted as
|
|
1
|
+
import { defineComponent as $e, openBlock as m, createElementBlock as O, normalizeStyle as yt, createElementVNode as E, useSlots as Gt, computed as V, normalizeClass as pe, Fragment as ve, createTextVNode as Ge, toDisplayString as me, renderSlot as j, withDirectives as Ve, vShow as bt, unref as c, isRef as it, vModelCheckbox as Xl, createCommentVNode as T, ref as H, 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 ht, renderList as Ne, reactive as Jt, toRef as oa, onUnmounted as wo, mergeProps as Be, createSlots as Ze, normalizeProps as tt, guardReactiveProps as mt, Teleport as Zl, resolveDynamicComponent as un, onBeforeUpdate as Gl, getCurrentScope as Jl, onScopeDispose as eu } from "vue";
|
|
2
2
|
const tu = /* @__PURE__ */ E("span", null, null, -1), nu = [
|
|
3
3
|
tu
|
|
4
4
|
], D0 = /* @__PURE__ */ $e({
|
|
@@ -270,7 +270,7 @@ const Du = ["for"], xu = { class: "rm-input-wrapper" }, Su = ["id", "maxlength",
|
|
|
270
270
|
n.isAutoGrow && i.value && w(i.value), t("update:modelValue", k);
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
|
-
|
|
273
|
+
Je(() => {
|
|
274
274
|
var k;
|
|
275
275
|
Mt().then(() => {
|
|
276
276
|
var A;
|
|
@@ -384,7 +384,7 @@ const Cu = "data:image/svg+xml;base64,PHN2ZwogICAgd2lkdGg9IjIyIgogICAgaGVpZ2h0PS
|
|
|
384
384
|
function r() {
|
|
385
385
|
n.persistent || t("close");
|
|
386
386
|
}
|
|
387
|
-
return (a, o) => (m(), ye(
|
|
387
|
+
return (a, o) => (m(), ye(nt, {
|
|
388
388
|
name: e.transitionName,
|
|
389
389
|
appear: ""
|
|
390
390
|
}, {
|
|
@@ -394,7 +394,7 @@ const Cu = "data:image/svg+xml;base64,PHN2ZwogICAgd2lkdGg9IjIyIgogICAgaGVpZ2h0PS
|
|
|
394
394
|
class: "rm-modal__overlay",
|
|
395
395
|
onClick: Ke(r, ["self"])
|
|
396
396
|
}, null, 8, Iu),
|
|
397
|
-
Ee(
|
|
397
|
+
Ee(nt, {
|
|
398
398
|
name: e.contentTransition.length ? e.contentTransition : e.transitionName,
|
|
399
399
|
mode: "out-in"
|
|
400
400
|
}, {
|
|
@@ -552,7 +552,7 @@ const Lu = (e, t = 150) => {
|
|
|
552
552
|
n.selectedOptions && (o.value = n.selectedOptions);
|
|
553
553
|
}), ht(() => n.closable, ($) => a.value = !$), ht(a, ($) => {
|
|
554
554
|
$ && (K(), t("close"));
|
|
555
|
-
}),
|
|
555
|
+
}), Je(() => {
|
|
556
556
|
var $, Y;
|
|
557
557
|
n.focused ? ($ = f.value) == null || $.focus() : (Y = f.value) == null || Y.blur();
|
|
558
558
|
});
|
|
@@ -634,7 +634,7 @@ const Lu = (e, t = 150) => {
|
|
|
634
634
|
]),
|
|
635
635
|
_: 1
|
|
636
636
|
}, 8, ["class"]),
|
|
637
|
-
Ee(
|
|
637
|
+
Ee(nt, {
|
|
638
638
|
name: "fade",
|
|
639
639
|
mode: "out-in"
|
|
640
640
|
}, {
|
|
@@ -654,7 +654,7 @@ const Lu = (e, t = 150) => {
|
|
|
654
654
|
})
|
|
655
655
|
])
|
|
656
656
|
]),
|
|
657
|
-
Ee(
|
|
657
|
+
Ee(nt, { name: "fade" }, {
|
|
658
658
|
default: ae(() => [
|
|
659
659
|
Ve(E("ul", {
|
|
660
660
|
ref_key: "selectOptions",
|
|
@@ -828,7 +828,7 @@ const $s = { render: Os }, ks = {
|
|
|
828
828
|
},
|
|
829
829
|
emits: ["close"],
|
|
830
830
|
setup(e, { emit: t }) {
|
|
831
|
-
return (n, r) => (m(), ye(
|
|
831
|
+
return (n, r) => (m(), ye(nt, { name: "slide" }, {
|
|
832
832
|
default: ae(() => [
|
|
833
833
|
e.visibility ? (m(), O("div", ks, [
|
|
834
834
|
Ve((m(), O("div", {
|
|
@@ -877,7 +877,7 @@ const Ss = {
|
|
|
877
877
|
},
|
|
878
878
|
emits: ["cancel", "confirm"],
|
|
879
879
|
setup(e, { emit: t }) {
|
|
880
|
-
return (n, r) => (m(), ye(
|
|
880
|
+
return (n, r) => (m(), ye(nt, { name: "fade" }, {
|
|
881
881
|
default: ae(() => [
|
|
882
882
|
e.visibility ? Ve((m(), O("div", Ss, [
|
|
883
883
|
E("h3", Rs, me(e.title), 1),
|
|
@@ -909,7 +909,7 @@ const Cs = {
|
|
|
909
909
|
},
|
|
910
910
|
emits: ["update:isActive"],
|
|
911
911
|
setup(e, { emit: t }) {
|
|
912
|
-
return (n, r) => (m(), ye(
|
|
912
|
+
return (n, r) => (m(), ye(nt, { name: "slide" }, {
|
|
913
913
|
default: ae(() => [
|
|
914
914
|
e.isActive ? Ve((m(), O("div", Cs, [
|
|
915
915
|
j(n.$slots, "default")
|
|
@@ -6354,22 +6354,22 @@ function _o(e, t, n, r) {
|
|
|
6354
6354
|
var v = function() {
|
|
6355
6355
|
var ue = l.value;
|
|
6356
6356
|
!(r != null && r.useAdditionalWeekYearTokens) && Dl(ue) && Gn(ue, D, e), !(r != null && r.useAdditionalDayOfYearTokens) && Tl(ue) && Gn(ue, D, e);
|
|
6357
|
-
var Re = ue[0],
|
|
6358
|
-
if (
|
|
6359
|
-
var se =
|
|
6357
|
+
var Re = ue[0], et = sm[Re];
|
|
6358
|
+
if (et) {
|
|
6359
|
+
var se = et.incompatibleTokens;
|
|
6360
6360
|
if (Array.isArray(se)) {
|
|
6361
6361
|
var fe = b.find(function(be) {
|
|
6362
6362
|
return se.includes(be.token) || be.token === Re;
|
|
6363
6363
|
});
|
|
6364
6364
|
if (fe)
|
|
6365
6365
|
throw new RangeError("The format string mustn't contain `".concat(fe.fullToken, "` and `").concat(ue, "` at the same time"));
|
|
6366
|
-
} else if (
|
|
6366
|
+
} else if (et.incompatibleTokens === "*" && b.length > 0)
|
|
6367
6367
|
throw new RangeError("The format string mustn't contain `".concat(ue, "` and any other token at the same time"));
|
|
6368
6368
|
b.push({
|
|
6369
6369
|
token: Re,
|
|
6370
6370
|
fullToken: ue
|
|
6371
6371
|
});
|
|
6372
|
-
var ke =
|
|
6372
|
+
var ke = et.run(P, ue, z.match, Z);
|
|
6373
6373
|
if (!ke)
|
|
6374
6374
|
return {
|
|
6375
6375
|
v: new Date(NaN)
|
|
@@ -7464,7 +7464,7 @@ const Zv = (e, t = 3) => {
|
|
|
7464
7464
|
}, Y = (p, C) => {
|
|
7465
7465
|
A[p] = C;
|
|
7466
7466
|
};
|
|
7467
|
-
|
|
7467
|
+
Je(() => {
|
|
7468
7468
|
s.value || (e.startDate && ($(0, Te(N(e.startDate)), De(N(e.startDate))), d.value.multiCalendars && Lt(0)), d.value.startTime && b()), X(!0);
|
|
7469
7469
|
});
|
|
7470
7470
|
const X = (p = !1) => {
|
|
@@ -7577,13 +7577,13 @@ const Zv = (e, t = 3) => {
|
|
|
7577
7577
|
}, Re = (p, C) => {
|
|
7578
7578
|
const te = [N(p.value), gt(N(p.value), +e.autoRange)];
|
|
7579
7579
|
I(te) && (C && x(p.value), g.value = te);
|
|
7580
|
-
},
|
|
7580
|
+
}, et = (p) => {
|
|
7581
7581
|
g.value = J(N(p.value));
|
|
7582
7582
|
}, se = (p) => e.noDisabledRange ? U(g.value[0], p).some((C) => i(C)) : !1, fe = (p, C) => {
|
|
7583
7583
|
if (ue(), e.autoRange)
|
|
7584
7584
|
return Re(p, C);
|
|
7585
7585
|
if (e.fixedStart || e.fixedEnd)
|
|
7586
|
-
return
|
|
7586
|
+
return et(p);
|
|
7587
7587
|
g.value[0] ? h(N(p.value)) && !se(p.value) && (Fe(N(p.value), N(g.value[0])) ? g.value.unshift(N(p.value)) : g.value[1] = N(p.value)) : g.value[0] = N(p.value);
|
|
7588
7588
|
}, ke = (p) => {
|
|
7589
7589
|
g.value[p] = at(
|
|
@@ -8210,7 +8210,7 @@ const dh = (e, t, n, r) => {
|
|
|
8210
8210
|
emits: ["close-picker", "select-date", "invalid-select"],
|
|
8211
8211
|
setup(e, { emit: t }) {
|
|
8212
8212
|
const n = e, { formatDate: r, isValidTime: a, defaults: o } = rt(n), { buildMatrix: i } = Ot(), u = H(null), f = H(null);
|
|
8213
|
-
|
|
8213
|
+
Je(() => {
|
|
8214
8214
|
n.arrowNavigation && i([Le(u), Le(f)], "actionRow");
|
|
8215
8215
|
});
|
|
8216
8216
|
const y = V(() => n.range && !n.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), w = V(() => !s.value || !g.value || !y.value), d = V(() => ({
|
|
@@ -8235,7 +8235,7 @@ const dh = (e, t, n, r) => {
|
|
|
8235
8235
|
class: "dp__action_row",
|
|
8236
8236
|
style: yt(e.calendarWidth ? { width: `${e.calendarWidth}px` } : {})
|
|
8237
8237
|
}, [
|
|
8238
|
-
$.$slots["action-row"] ? j($.$slots, "action-row",
|
|
8238
|
+
$.$slots["action-row"] ? j($.$slots, "action-row", tt(Be({ key: 0 }, {
|
|
8239
8239
|
internalModelValue: e.internalModelValue,
|
|
8240
8240
|
disabled: c(w),
|
|
8241
8241
|
selectDate: () => $.$emit("select-date"),
|
|
@@ -8323,7 +8323,7 @@ const dh = (e, t, n, r) => {
|
|
|
8323
8323
|
],
|
|
8324
8324
|
setup(e, { expose: t, emit: n }) {
|
|
8325
8325
|
const r = e, { buildMultiLevelMatrix: a } = Ot(), { setDateMonthOrYear: o, defaults: i } = rt(r), u = H(null), f = H({ bottom: "", left: "", transform: "" }), y = H([]), w = H(null), d = H(!0), s = H(""), g = H({ startX: 0, endX: 0, startY: 0, endY: 0 }), k = V(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Gv(r.locale, +r.weekStart));
|
|
8326
|
-
|
|
8326
|
+
Je(() => {
|
|
8327
8327
|
n("mount", { cmp: "calendar", refs: y }), r.noSwipe || w.value && (w.value.addEventListener("touchstart", z, { passive: !1 }), w.value.addEventListener("touchend", Q, { passive: !1 }), w.value.addEventListener("touchmove", L, { passive: !1 })), r.monthChangeOnScroll && w.value && w.value.addEventListener("wheel", B, { passive: !1 });
|
|
8328
8328
|
});
|
|
8329
8329
|
const A = (b) => b ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", F = (b, W) => {
|
|
@@ -8411,7 +8411,7 @@ const dh = (e, t, n, r) => {
|
|
|
8411
8411
|
]))), 128))
|
|
8412
8412
|
]),
|
|
8413
8413
|
xh,
|
|
8414
|
-
Ee(
|
|
8414
|
+
Ee(nt, {
|
|
8415
8415
|
name: s.value,
|
|
8416
8416
|
css: !!b.transitions
|
|
8417
8417
|
}, {
|
|
@@ -8523,7 +8523,7 @@ const dh = (e, t, n, r) => {
|
|
|
8523
8523
|
emits: ["activate", "set-ref"],
|
|
8524
8524
|
setup(e, { emit: t }) {
|
|
8525
8525
|
const n = H(null);
|
|
8526
|
-
return
|
|
8526
|
+
return Je(() => t("set-ref", n)), (r, a) => (m(), O("div", {
|
|
8527
8527
|
class: "dp__month_year_col_nav",
|
|
8528
8528
|
onClick: a[0] || (a[0] = (o) => r.$emit("activate")),
|
|
8529
8529
|
onKeydown: [
|
|
@@ -8572,7 +8572,7 @@ const dh = (e, t, n, r) => {
|
|
|
8572
8572
|
const r = e, { setSelectionGrid: a, buildMultiLevelMatrix: o, setMonthPicker: i } = Ot(), { hideNavigationButtons: u } = rt(r), f = H(!1), y = H(null), w = H(null), d = H([]), s = H(), g = H(null);
|
|
8573
8573
|
Gl(() => {
|
|
8574
8574
|
y.value = null;
|
|
8575
|
-
}),
|
|
8575
|
+
}), Je(() => {
|
|
8576
8576
|
Mt().then(() => D()), A(), k(!0);
|
|
8577
8577
|
}), wo(() => k(!1));
|
|
8578
8578
|
const k = (B) => {
|
|
@@ -8753,7 +8753,7 @@ const dh = (e, t, n, r) => {
|
|
|
8753
8753
|
emits: ["update:model-value", "toggle", "set-ref"],
|
|
8754
8754
|
setup(e, { emit: t }) {
|
|
8755
8755
|
const n = e, { transitionName: r, showTransition: a } = Yr(n.transitions), o = H(null);
|
|
8756
|
-
return
|
|
8756
|
+
return Je(() => t("set-ref", o)), (i, u) => (m(), O(ve, null, [
|
|
8757
8757
|
E("div", {
|
|
8758
8758
|
class: "dp__month_year_select",
|
|
8759
8759
|
onClick: u[0] || (u[0] = (f) => i.$emit("toggle")),
|
|
@@ -8769,7 +8769,7 @@ const dh = (e, t, n, r) => {
|
|
|
8769
8769
|
}, [
|
|
8770
8770
|
j(i.$slots, "default")
|
|
8771
8771
|
], 40, Lh),
|
|
8772
|
-
Ee(
|
|
8772
|
+
Ee(nt, {
|
|
8773
8773
|
name: c(r)(e.showSelectionGrid),
|
|
8774
8774
|
css: c(a)
|
|
8775
8775
|
}, {
|
|
@@ -8839,7 +8839,7 @@ const dh = (e, t, n, r) => {
|
|
|
8839
8839
|
emits: ["update-month-year", "month-year-select", "mount", "reset-flow", "overlay-closed"],
|
|
8840
8840
|
setup(e, { expose: t, emit: n }) {
|
|
8841
8841
|
const r = e, { defaults: a } = rt(r), { transitionName: o, showTransition: i } = Yr(a.value.transitions), { buildMatrix: u } = Ot(), { handleMonthYearChange: f, isDisabled: y, updateMonthYear: w } = fh(r, n), d = H(!1), s = H(!1), g = H([null, null, null, null]), k = H(null), A = H(null), F = H(null);
|
|
8842
|
-
|
|
8842
|
+
Je(() => {
|
|
8843
8843
|
n("mount");
|
|
8844
8844
|
});
|
|
8845
8845
|
const q = (_) => ({
|
|
@@ -8909,9 +8909,9 @@ const dh = (e, t, n, r) => {
|
|
|
8909
8909
|
toggleMonthPicker: S,
|
|
8910
8910
|
toggleYearPicker: U
|
|
8911
8911
|
}), (_, I) => {
|
|
8912
|
-
var xe, he, ue, Re,
|
|
8912
|
+
var xe, he, ue, Re, et;
|
|
8913
8913
|
return m(), O("div", Vh, [
|
|
8914
|
-
_.$slots["month-year"] ? j(_.$slots, "month-year",
|
|
8914
|
+
_.$slots["month-year"] ? j(_.$slots, "month-year", tt(Be({ key: 0 }, { month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(w), handleMonthYearChange: c(f), instance: e.instance }))) : (m(), O(ve, { key: 1 }, [
|
|
8915
8915
|
!_.monthPicker && !_.yearPicker ? (m(), O(ve, { key: 0 }, [
|
|
8916
8916
|
c(v) && !_.vertical ? (m(), ye(ra, {
|
|
8917
8917
|
key: 0,
|
|
@@ -8939,7 +8939,7 @@ const dh = (e, t, n, r) => {
|
|
|
8939
8939
|
onSetRef: I[3] || (I[3] = (se) => ce(se, 1))
|
|
8940
8940
|
}), Ze({
|
|
8941
8941
|
default: ae(() => [
|
|
8942
|
-
_.$slots.month ? j(_.$slots, "month",
|
|
8942
|
+
_.$slots.month ? j(_.$slots, "month", tt(Be({ key: 0 }, c(b)))) : T("", !0),
|
|
8943
8943
|
_.$slots.month ? T("", !0) : (m(), O(ve, { key: 1 }, [
|
|
8944
8944
|
Ge(me(c(b).text), 1)
|
|
8945
8945
|
], 64))
|
|
@@ -8966,7 +8966,7 @@ const dh = (e, t, n, r) => {
|
|
|
8966
8966
|
_.$slots["month-overlay"] ? {
|
|
8967
8967
|
name: "overlay-month",
|
|
8968
8968
|
fn: ae(() => [
|
|
8969
|
-
j(_.$slots, "month-overlay",
|
|
8969
|
+
j(_.$slots, "month-overlay", tt(mt(c(D)("month"))))
|
|
8970
8970
|
]),
|
|
8971
8971
|
key: "2"
|
|
8972
8972
|
} : void 0,
|
|
@@ -9020,7 +9020,7 @@ const dh = (e, t, n, r) => {
|
|
|
9020
9020
|
_.$slots["year-overlay"] ? {
|
|
9021
9021
|
name: "overlay-year",
|
|
9022
9022
|
fn: ae(() => [
|
|
9023
|
-
j(_.$slots, "year-overlay",
|
|
9023
|
+
j(_.$slots, "year-overlay", tt(mt(c(D)("year"))))
|
|
9024
9024
|
]),
|
|
9025
9025
|
key: "2"
|
|
9026
9026
|
} : void 0,
|
|
@@ -9049,7 +9049,7 @@ const dh = (e, t, n, r) => {
|
|
|
9049
9049
|
key: 2,
|
|
9050
9050
|
ref: "rightIcon",
|
|
9051
9051
|
disabled: c(y)(!0),
|
|
9052
|
-
"aria-label": (
|
|
9052
|
+
"aria-label": (et = c(a).ariaLabels) == null ? void 0 : et.nextMonth,
|
|
9053
9053
|
onActivate: I[7] || (I[7] = (se) => c(f)(!0)),
|
|
9054
9054
|
onSetRef: I[8] || (I[8] = (se) => ce(se, 3))
|
|
9055
9055
|
}, {
|
|
@@ -9127,7 +9127,7 @@ const dh = (e, t, n, r) => {
|
|
|
9127
9127
|
], 10, zh)
|
|
9128
9128
|
], 544)
|
|
9129
9129
|
]),
|
|
9130
|
-
Ee(
|
|
9130
|
+
Ee(nt, {
|
|
9131
9131
|
name: c(o)(s.value),
|
|
9132
9132
|
css: c(i)
|
|
9133
9133
|
}, {
|
|
@@ -9227,7 +9227,7 @@ const dh = (e, t, n, r) => {
|
|
|
9227
9227
|
minutes: !1,
|
|
9228
9228
|
seconds: !1
|
|
9229
9229
|
}), w = H("AM"), d = H(null), s = H([]);
|
|
9230
|
-
|
|
9230
|
+
Je(() => {
|
|
9231
9231
|
n("mounted");
|
|
9232
9232
|
});
|
|
9233
9233
|
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) => _l(ze(N(), l), v), F = (l, v) => Im(ze(N(), l), v), q = V(
|
|
@@ -9377,7 +9377,7 @@ const dh = (e, t, n, r) => {
|
|
|
9377
9377
|
]
|
|
9378
9378
|
}, me(w.value), 41, Jh))
|
|
9379
9379
|
])),
|
|
9380
|
-
(m(!0), O(ve, null, Ne(c($), (S, U) => (m(), ye(
|
|
9380
|
+
(m(!0), O(ve, null, Ne(c($), (S, U) => (m(), ye(nt, {
|
|
9381
9381
|
key: U,
|
|
9382
9382
|
name: c(u)(y[S.type]),
|
|
9383
9383
|
css: c(f)
|
|
@@ -9441,7 +9441,7 @@ const dh = (e, t, n, r) => {
|
|
|
9441
9441
|
],
|
|
9442
9442
|
setup(e, { expose: t, emit: n }) {
|
|
9443
9443
|
const r = e, { buildMatrix: a, setTimePicker: o } = Ot(), i = Gt(), { hideNavigationButtons: u, defaults: f } = rt(r), { transitionName: y, showTransition: w } = Yr(f.value.transitions), d = H(null), s = H(null), g = H([]), k = H(null);
|
|
9444
|
-
|
|
9444
|
+
Je(() => {
|
|
9445
9445
|
n("mount"), !r.timePicker && r.arrowNavigation ? a([Le(d.value)], "time") : o(!0, r.timePicker);
|
|
9446
9446
|
});
|
|
9447
9447
|
const A = V(() => r.range && r.modelAuto ? ql(r.internalModelValue) : !0), F = H(!1), q = (L) => ({
|
|
@@ -9495,7 +9495,7 @@ const dh = (e, t, n, r) => {
|
|
|
9495
9495
|
], 42, t0)), [
|
|
9496
9496
|
[bt, !c(u)("time")]
|
|
9497
9497
|
]),
|
|
9498
|
-
Ee(
|
|
9498
|
+
Ee(nt, {
|
|
9499
9499
|
name: c(y)(F.value),
|
|
9500
9500
|
css: c(w)
|
|
9501
9501
|
}, {
|
|
@@ -9541,7 +9541,7 @@ const dh = (e, t, n, r) => {
|
|
|
9541
9541
|
Ne(c(X), (l, v) => ({
|
|
9542
9542
|
name: l,
|
|
9543
9543
|
fn: ae((x) => [
|
|
9544
|
-
j(L.$slots, l,
|
|
9544
|
+
j(L.$slots, l, tt(mt(x)))
|
|
9545
9545
|
])
|
|
9546
9546
|
}))
|
|
9547
9547
|
]), 1040, ["onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
|
|
@@ -9698,7 +9698,7 @@ const dh = (e, t, n, r) => {
|
|
|
9698
9698
|
monthYearInput: !!r.timePicker,
|
|
9699
9699
|
calendar: !1
|
|
9700
9700
|
}), s = H([]), g = H([]), k = H(null), A = H(null), F = H(0), q = H(!1), K = H(0);
|
|
9701
|
-
|
|
9701
|
+
Je(() => {
|
|
9702
9702
|
var R;
|
|
9703
9703
|
q.value = !0, !((R = r.presetRanges) != null && R.length) && !y["left-sidebar"] && !y["right-sidebar"] && ft();
|
|
9704
9704
|
const G = Le(A);
|
|
@@ -9754,7 +9754,7 @@ const dh = (e, t, n, r) => {
|
|
|
9754
9754
|
},
|
|
9755
9755
|
{ deep: !0 }
|
|
9756
9756
|
);
|
|
9757
|
-
const Re = xt(y, "calendar"),
|
|
9757
|
+
const Re = xt(y, "calendar"), et = xt(y, "action"), se = xt(y, "timePicker"), fe = xt(y, "monthYear"), ke = V(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), be = V(() => Jv(r.yearRange)), Ut = V(() => eh(r.locale, r.monthNameFormat)), ft = () => {
|
|
9758
9758
|
const R = Le(w);
|
|
9759
9759
|
R && (F.value = R.getBoundingClientRect().width);
|
|
9760
9760
|
}, Lt = V(() => (R) => u(ie.value(R), B.value(R))), kt = V(
|
|
@@ -9819,7 +9819,7 @@ const dh = (e, t, n, r) => {
|
|
|
9819
9819
|
updateMonthYear: l
|
|
9820
9820
|
}), (R, G) => {
|
|
9821
9821
|
var We;
|
|
9822
|
-
return m(), ye(
|
|
9822
|
+
return m(), ye(nt, {
|
|
9823
9823
|
appear: "",
|
|
9824
9824
|
name: (We = c(f).transitions) == null ? void 0 : We.menuAppear,
|
|
9825
9825
|
mode: "out-in",
|
|
@@ -9914,7 +9914,7 @@ const dh = (e, t, n, r) => {
|
|
|
9914
9914
|
Ne(c(fe), (_e, Kl) => ({
|
|
9915
9915
|
name: _e,
|
|
9916
9916
|
fn: ae((Wr) => [
|
|
9917
|
-
j(R.$slots, _e,
|
|
9917
|
+
j(R.$slots, _e, tt(mt(Wr)))
|
|
9918
9918
|
])
|
|
9919
9919
|
}))
|
|
9920
9920
|
]), 1040, ["months", "years", "month", "year", "instance", "internal-model-value", "onUpdateMonthYear", "onMonthYearSelect"])) : T("", !0),
|
|
@@ -9943,14 +9943,14 @@ const dh = (e, t, n, r) => {
|
|
|
9943
9943
|
Ne(c(Re), (_e, Kl) => ({
|
|
9944
9944
|
name: _e,
|
|
9945
9945
|
fn: ae((Wr) => [
|
|
9946
|
-
j(R.$slots, _e,
|
|
9946
|
+
j(R.$slots, _e, tt(mt({ ...Wr })))
|
|
9947
9947
|
])
|
|
9948
9948
|
}))
|
|
9949
9949
|
]), 1040, ["specific-mode", "get-week-num", "instance", "mapped-dates", "month", "year", "flow-step", "onSelectDate", "onHandleSpace", "onHandleScroll", "onHandleSwipe"])
|
|
9950
9950
|
], 2))), 128))
|
|
9951
9951
|
], 2),
|
|
9952
9952
|
E("div", null, [
|
|
9953
|
-
R.$slots["time-picker"] ? j(R.$slots, "time-picker",
|
|
9953
|
+
R.$slots["time-picker"] ? j(R.$slots, "time-picker", tt(Be({ key: 0 }, { time: c(b), updateTime: c(W) }))) : (m(), O(ve, { key: 1 }, [
|
|
9954
9954
|
R.enableTimePicker && !R.monthPicker && !R.weekPicker ? (m(), ye(un(R.timePickerComponent ? R.timePickerComponent : o0), Be({
|
|
9955
9955
|
key: 0,
|
|
9956
9956
|
ref_key: "timePickerRef",
|
|
@@ -9970,7 +9970,7 @@ const dh = (e, t, n, r) => {
|
|
|
9970
9970
|
Ne(c(se), (re, Nt) => ({
|
|
9971
9971
|
name: re,
|
|
9972
9972
|
fn: ae((_e) => [
|
|
9973
|
-
j(R.$slots, re,
|
|
9973
|
+
j(R.$slots, re, tt(mt(_e)))
|
|
9974
9974
|
])
|
|
9975
9975
|
}))
|
|
9976
9976
|
]), 1040, ["hours", "minutes", "seconds", "internal-model-value"])) : T("", !0)
|
|
@@ -10004,10 +10004,10 @@ const dh = (e, t, n, r) => {
|
|
|
10004
10004
|
onSelectDate: G[10] || (G[10] = (re) => R.$emit("select-date")),
|
|
10005
10005
|
onInvalidSelect: G[11] || (G[11] = (re) => R.$emit("invalid-select"))
|
|
10006
10006
|
}), Ze({ _: 2 }, [
|
|
10007
|
-
Ne(c(
|
|
10007
|
+
Ne(c(et), (re, Nt) => ({
|
|
10008
10008
|
name: re,
|
|
10009
10009
|
fn: ae((_e) => [
|
|
10010
|
-
j(R.$slots, re,
|
|
10010
|
+
j(R.$slots, re, tt(mt({ ..._e })))
|
|
10011
10011
|
])
|
|
10012
10012
|
}))
|
|
10013
10013
|
]), 1040, ["menu-mount", "calendar-width", "internal-model-value"])) : T("", !0)
|
|
@@ -10062,7 +10062,7 @@ const dh = (e, t, n, r) => {
|
|
|
10062
10062
|
],
|
|
10063
10063
|
setup(e, { expose: t, emit: n }) {
|
|
10064
10064
|
const r = e, a = Gt(), o = H(!1), i = oa(r, "modelValue"), u = oa(r, "timezone"), f = H(null), y = H(null), w = H(!1), { setMenuFocused: d, setShiftKey: s } = Wl(), { clearArrowNav: g } = Ot(), { validateDate: k, isValidTime: A, defaults: F } = rt(r);
|
|
10065
|
-
|
|
10065
|
+
Je(() => {
|
|
10066
10066
|
z(r.modelValue), r.inline || (window.addEventListener("scroll", b), window.addEventListener("resize", W)), r.inline && (o.value = !0);
|
|
10067
10067
|
}), wo(() => {
|
|
10068
10068
|
r.inline || (window.removeEventListener("scroll", b), window.removeEventListener("resize", W));
|
|
@@ -10130,7 +10130,7 @@ const dh = (e, t, n, r) => {
|
|
|
10130
10130
|
M.value = fe;
|
|
10131
10131
|
}, ue = V(() => r.textInput && F.value.textInputOptions.format), Re = () => {
|
|
10132
10132
|
ue.value && (w.value = !0, L()), n("focus");
|
|
10133
|
-
},
|
|
10133
|
+
}, et = () => {
|
|
10134
10134
|
ue.value && (w.value = !1, L()), n("blur");
|
|
10135
10135
|
}, se = (fe) => {
|
|
10136
10136
|
f.value && f.value.updateMonthYear(0, {
|
|
@@ -10169,12 +10169,12 @@ const dh = (e, t, n, r) => {
|
|
|
10169
10169
|
onToggle: xe,
|
|
10170
10170
|
onClose: ce,
|
|
10171
10171
|
onFocus: Re,
|
|
10172
|
-
onBlur:
|
|
10172
|
+
onBlur: et
|
|
10173
10173
|
}), Ze({ _: 2 }, [
|
|
10174
10174
|
Ne(c(K), (be, Ut) => ({
|
|
10175
10175
|
name: be,
|
|
10176
10176
|
fn: ae((ft) => [
|
|
10177
|
-
j(fe.$slots, be,
|
|
10177
|
+
j(fe.$slots, be, tt(mt(ft)))
|
|
10178
10178
|
])
|
|
10179
10179
|
}))
|
|
10180
10180
|
]), 1040, ["is-menu-open", "input-value", "onSetEmptyDate"]),
|
|
@@ -10205,7 +10205,7 @@ const dh = (e, t, n, r) => {
|
|
|
10205
10205
|
Ne(c(q), (be, Ut) => ({
|
|
10206
10206
|
name: be,
|
|
10207
10207
|
fn: ae((ft) => [
|
|
10208
|
-
j(fe.$slots, be,
|
|
10208
|
+
j(fe.$slots, be, tt(mt({ ...ft })))
|
|
10209
10209
|
])
|
|
10210
10210
|
}))
|
|
10211
10211
|
]), 1040, ["class", "style", "open-on-top", "internal-model-value", "onRecalculatePosition"])) : T("", !0)
|
|
@@ -10228,14 +10228,14 @@ const g0 = { class: "rm-datepicker" }, B0 = /* @__PURE__ */ $e({
|
|
|
10228
10228
|
__name: "RMDatepicker",
|
|
10229
10229
|
props: {
|
|
10230
10230
|
label: { default: "" },
|
|
10231
|
-
currentDate: { default:
|
|
10231
|
+
currentDate: { default: null },
|
|
10232
10232
|
maxDate: { default: "" },
|
|
10233
10233
|
minDate: { default: "" },
|
|
10234
10234
|
startDate: { default: "" },
|
|
10235
10235
|
allowedDates: { default: () => [] },
|
|
10236
10236
|
disabledDates: { default: () => [] },
|
|
10237
10237
|
disabled: { type: Boolean, default: !1 },
|
|
10238
|
-
format: { default: "MM/
|
|
10238
|
+
format: { default: "dd/MM/yyyy" },
|
|
10239
10239
|
locale: { default: "en" }
|
|
10240
10240
|
},
|
|
10241
10241
|
emits: ["change", "delete"],
|
|
@@ -10253,7 +10253,9 @@ const g0 = { class: "rm-datepicker" }, B0 = /* @__PURE__ */ $e({
|
|
|
10253
10253
|
function o(i) {
|
|
10254
10254
|
i && t("change", i);
|
|
10255
10255
|
}
|
|
10256
|
-
return (
|
|
10256
|
+
return Je(() => {
|
|
10257
|
+
n.currentDate && (r.value = n.currentDate);
|
|
10258
|
+
}), (i, u) => (m(), O("div", g0, [
|
|
10257
10259
|
Ve(E("p", { class: "rm-datepicker__label" }, me(e.label), 513), [
|
|
10258
10260
|
[bt, e.label]
|
|
10259
10261
|
]),
|
|
@@ -10294,6 +10296,7 @@ const $0 = { class: "rm-avatar__overlay" }, k0 = ["src"], P0 = { class: "rm-avat
|
|
|
10294
10296
|
__name: "RMAvatar",
|
|
10295
10297
|
props: {
|
|
10296
10298
|
label: { default: "Anon" },
|
|
10299
|
+
staticLabel: { default: "" },
|
|
10297
10300
|
small: { type: Boolean, default: !1 },
|
|
10298
10301
|
avatar: { default: null }
|
|
10299
10302
|
},
|
|
@@ -10316,7 +10319,7 @@ const $0 = { class: "rm-avatar__overlay" }, k0 = ["src"], P0 = { class: "rm-avat
|
|
|
10316
10319
|
alt: ""
|
|
10317
10320
|
}, null, 8, k0)) : T("", !0)
|
|
10318
10321
|
]),
|
|
10319
|
-
E("div", P0, me(c(n)), 1)
|
|
10322
|
+
E("div", P0, me(e.staticLabel || c(n)), 1)
|
|
10320
10323
|
], 2));
|
|
10321
10324
|
}
|
|
10322
10325
|
});
|