redmine-ui-kit 1.6.17 → 1.6.18
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 +58 -51
- 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 Jl = Object.defineProperty;
|
|
2
2
|
var Zl = (e, a, t) => a in e ? Jl(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
|
|
3
3
|
var de = (e, a, t) => (Zl(e, typeof a != "symbol" ? a + "" : a, t), t);
|
|
4
|
-
import { defineComponent as Te, openBlock as p, createElementBlock as C, normalizeStyle as tt, createElementVNode as W, useSlots as It, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as I, renderSlot as ne, withDirectives as Xe, vModelCheckbox as Kl, ref as U, createTextVNode as dt, onMounted as
|
|
4
|
+
import { defineComponent as Te, openBlock as p, createElementBlock as C, normalizeStyle as tt, createElementVNode as W, useSlots as It, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as I, renderSlot as ne, withDirectives as Xe, vModelCheckbox as Kl, ref as U, createTextVNode as dt, onMounted as qe, nextTick as mt, unref as c, mergeProps as Fe, withKeys as Zt, toHandlerKey as Za, withModifiers as Dt, vModelText as In, vShow as jt, createBlock as be, Teleport as Ya, createVNode as Oe, Transition as rt, withCtx as ve, isRef as Ra, watch as lt, shallowRef as Wt, onBeforeUnmount as er, Fragment as _e, renderList as Ee, reactive as _a, toRef as ga, onUnmounted as Ba, createSlots as at, normalizeProps as Qe, guardReactiveProps as ot, resolveDynamicComponent as La, h as tr, render as Nn, onBeforeUpdate as ar, getCurrentScope as nr, onScopeDispose as lr } from "vue";
|
|
5
5
|
import { useEventListener as Fn, useInfiniteScroll as rr } from "@vueuse/core";
|
|
6
6
|
import { vOnClickOutside as or } from "@vueuse/components";
|
|
7
7
|
const sr = /* @__PURE__ */ W("span", null, null, -1), ir = [
|
|
@@ -274,7 +274,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
|
|
|
274
274
|
t.isAutoGrow && m.value && b(m.value), n("update:modelValue", P);
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
|
-
|
|
277
|
+
qe(() => {
|
|
278
278
|
var P;
|
|
279
279
|
mt().then(() => {
|
|
280
280
|
var O;
|
|
@@ -519,7 +519,8 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
|
|
|
519
519
|
transition: { default: "dropdown-slide" },
|
|
520
520
|
manualClose: { type: Boolean, default: !1 },
|
|
521
521
|
contentClass: { default: "" },
|
|
522
|
-
closeImmediate: { type: Boolean, default: !1 }
|
|
522
|
+
closeImmediate: { type: Boolean, default: !1 },
|
|
523
|
+
active: { type: Boolean, default: !1 }
|
|
523
524
|
},
|
|
524
525
|
setup(e) {
|
|
525
526
|
const a = {
|
|
@@ -529,12 +530,6 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
|
|
|
529
530
|
}, t = e;
|
|
530
531
|
let n = null;
|
|
531
532
|
const l = U(!1), r = U({ ...a }), o = U(null), s = U(null);
|
|
532
|
-
lt(
|
|
533
|
-
() => t.closeImmediate,
|
|
534
|
-
(b) => {
|
|
535
|
-
b && g();
|
|
536
|
-
}
|
|
537
|
-
);
|
|
538
533
|
function m() {
|
|
539
534
|
o.value && (r.value = Kr(o, s) || { ...a });
|
|
540
535
|
}
|
|
@@ -554,12 +549,23 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
|
|
|
554
549
|
function u() {
|
|
555
550
|
l.value ? g() : w();
|
|
556
551
|
}
|
|
557
|
-
return
|
|
558
|
-
l.value
|
|
559
|
-
},
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
552
|
+
return qe(() => {
|
|
553
|
+
console.log("props.active :>> ", t.active), l.value = t.active;
|
|
554
|
+
}), lt(
|
|
555
|
+
() => t.closeImmediate,
|
|
556
|
+
(b) => {
|
|
557
|
+
b && g();
|
|
558
|
+
}
|
|
559
|
+
), lt(
|
|
560
|
+
l,
|
|
561
|
+
() => {
|
|
562
|
+
l.value && m();
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
immediate: !0,
|
|
566
|
+
flush: "post"
|
|
567
|
+
}
|
|
568
|
+
), (b, f) => Xe((p(), C("div", eo, [
|
|
563
569
|
W("div", {
|
|
564
570
|
ref_key: "targetRef",
|
|
565
571
|
ref: o,
|
|
@@ -774,8 +780,8 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
|
|
|
774
780
|
function R() {
|
|
775
781
|
m.value.width = window.innerWidth, m.value.height = window.innerHeight;
|
|
776
782
|
}
|
|
777
|
-
return
|
|
778
|
-
w.value = t.opened, (t.multiple || t.chips) && !Array.isArray(t.modelValue) && n("update:modelValue", []), document.addEventListener("DOMContentLoaded", R), window.addEventListener("resize", R);
|
|
783
|
+
return qe(() => {
|
|
784
|
+
w.value = t.opened, console.log("isFocus :>> ", t.opened), (t.multiple || t.chips) && !Array.isArray(t.modelValue) && n("update:modelValue", []), document.addEventListener("DOMContentLoaded", R), window.addEventListener("resize", R);
|
|
779
785
|
}), er(() => {
|
|
780
786
|
document.addEventListener("DOMContentLoaded", R), window.removeEventListener("resize", R);
|
|
781
787
|
}), lt(w, () => {
|
|
@@ -795,6 +801,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
|
|
|
795
801
|
onClick: S[0] || (S[0] = (h) => w.value = !w.value)
|
|
796
802
|
}, ke(x.label), 1)) : I("", !0),
|
|
797
803
|
Oe(to, {
|
|
804
|
+
active: x.opened,
|
|
798
805
|
class: "rm-select-dropdown",
|
|
799
806
|
"content-class": "rm-select-dropdown-content"
|
|
800
807
|
}, {
|
|
@@ -924,14 +931,14 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
|
|
|
924
931
|
], 512))
|
|
925
932
|
], 64)) : (p(), C("li", _o, ke(x.emptySelectLabel), 1))
|
|
926
933
|
], 4), [
|
|
927
|
-
[jt,
|
|
934
|
+
[jt, !0]
|
|
928
935
|
])
|
|
929
936
|
]),
|
|
930
937
|
_: 3
|
|
931
938
|
})
|
|
932
939
|
]),
|
|
933
940
|
_: 3
|
|
934
|
-
})
|
|
941
|
+
}, 8, ["active"])
|
|
935
942
|
], 2)), [
|
|
936
943
|
[c(ka), () => w.value = !1]
|
|
937
944
|
]);
|
|
@@ -4347,7 +4354,7 @@ const eu = (e, a, t) => {
|
|
|
4347
4354
|
value: o
|
|
4348
4355
|
};
|
|
4349
4356
|
});
|
|
4350
|
-
}, tu = (e) => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][e],
|
|
4357
|
+
}, tu = (e) => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][e], Ue = (e) => {
|
|
4351
4358
|
const a = c(e);
|
|
4352
4359
|
return a != null && a.$el ? a == null ? void 0 : a.$el : a;
|
|
4353
4360
|
}, au = (e) => ({ type: "dot", ...e ?? {} }), Sl = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, On = {
|
|
@@ -4995,7 +5002,7 @@ const Su = ({
|
|
|
4995
5002
|
}, P = () => {
|
|
4996
5003
|
g.value.left = "50%", g.value.top = "50%", g.value.transform = "translate(-50%, -50%)", g.value.position = "fixed", delete g.value.opacity;
|
|
4997
5004
|
}, O = () => {
|
|
4998
|
-
const v =
|
|
5005
|
+
const v = Ue(t), { top: _, left: $, transform: Q } = o.altPosition(v);
|
|
4999
5006
|
g.value = { top: `${_}px`, left: `${$}px`, transform: Q ?? "" };
|
|
5000
5007
|
}, R = (v = !0) => {
|
|
5001
5008
|
var _;
|
|
@@ -5032,14 +5039,14 @@ const Su = ({
|
|
|
5032
5039
|
}
|
|
5033
5040
|
}
|
|
5034
5041
|
}, ee = () => {
|
|
5035
|
-
const v =
|
|
5042
|
+
const v = Ue(t);
|
|
5036
5043
|
if (v) {
|
|
5037
5044
|
const { height: _ } = m.value, { top: $, height: Q } = v.getBoundingClientRect(), re = window.innerHeight - $ - Q, me = $;
|
|
5038
5045
|
return _ <= re ? Ht.bottom : _ > re && _ <= me ? Ht.top : re >= me ? Ht.bottom : Ht.top;
|
|
5039
5046
|
}
|
|
5040
5047
|
return Ht.bottom;
|
|
5041
5048
|
}, se = (v) => ee() === Ht.bottom ? S(v) : h(v), fe = () => {
|
|
5042
|
-
const v =
|
|
5049
|
+
const v = Ue(t);
|
|
5043
5050
|
if (v)
|
|
5044
5051
|
return o.autoPosition ? se(v) : S(v);
|
|
5045
5052
|
}, L = function(v) {
|
|
@@ -5070,7 +5077,7 @@ const Su = ({
|
|
|
5070
5077
|
getScrollableParent: V,
|
|
5071
5078
|
shadowRender: (v, _) => {
|
|
5072
5079
|
var $, Q, re;
|
|
5073
|
-
const me = document.createElement("div"), Y = ($ =
|
|
5080
|
+
const me = document.createElement("div"), Y = ($ = Ue(t)) == null ? void 0 : $.getBoundingClientRect();
|
|
5074
5081
|
me.setAttribute("id", "dp--temp-container");
|
|
5075
5082
|
const B = (Q = n.value) != null && Q.clientWidth ? n.value : document.body;
|
|
5076
5083
|
B.append(me);
|
|
@@ -5788,8 +5795,8 @@ const Su = ({
|
|
|
5788
5795
|
defaultedMultiDates: g,
|
|
5789
5796
|
getDefaultPattern: u
|
|
5790
5797
|
} = Ie(n), { isTimeValid: b, isMonthValid: f } = Ft(n), { buildMatrix: D } = Nt(), k = U(null), z = U(null), G = U(!1), P = U({}), O = U(null), R = U(null);
|
|
5791
|
-
|
|
5792
|
-
n.arrowNavigation && D([
|
|
5798
|
+
qe(() => {
|
|
5799
|
+
n.arrowNavigation && D([Ue(k), Ue(z)], "actionRow"), x(), window.addEventListener("resize", x);
|
|
5793
5800
|
}), Ba(() => {
|
|
5794
5801
|
window.removeEventListener("resize", x);
|
|
5795
5802
|
});
|
|
@@ -5914,7 +5921,7 @@ const Su = ({
|
|
|
5914
5921
|
), { hideNavigationButtons: u } = Na(), b = U(!1), f = U(null), D = U(null), k = U([]), z = U(), G = U(null), P = U(0), O = U(null);
|
|
5915
5922
|
ar(() => {
|
|
5916
5923
|
f.value = null;
|
|
5917
|
-
}),
|
|
5924
|
+
}), qe(() => {
|
|
5918
5925
|
mt().then(() => fe()), s.noOverlayFocus || x(), R(!0);
|
|
5919
5926
|
}), Ba(() => R(!1));
|
|
5920
5927
|
const R = (B) => {
|
|
@@ -5922,7 +5929,7 @@ const Su = ({
|
|
|
5922
5929
|
s.arrowNavigation && ((i = s.headerRefs) != null && i.length ? r(B) : n(B));
|
|
5923
5930
|
}, x = () => {
|
|
5924
5931
|
var B;
|
|
5925
|
-
const i =
|
|
5932
|
+
const i = Ue(D);
|
|
5926
5933
|
i && (w.value.enabled || (f.value ? (B = f.value) == null || B.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), b.value = i.clientHeight < i.scrollHeight);
|
|
5927
5934
|
}, S = H(
|
|
5928
5935
|
() => ({
|
|
@@ -5957,7 +5964,7 @@ const Su = ({
|
|
|
5957
5964
|
);
|
|
5958
5965
|
const fe = (B = !0) => {
|
|
5959
5966
|
mt().then(() => {
|
|
5960
|
-
const i =
|
|
5967
|
+
const i = Ue(f), E = Ue(D), le = Ue(G), te = Ue(O), y = le ? le.getBoundingClientRect().height : 0;
|
|
5961
5968
|
E && (E.getBoundingClientRect().height ? P.value = E.getBoundingClientRect().height - y : P.value = g.value.modeHeight - y), i && te && B && (te.scrollTop = i.offsetTop - te.offsetTop - (P.value / 2 - i.getBoundingClientRect().height) - y);
|
|
5962
5969
|
});
|
|
5963
5970
|
}, L = (B) => {
|
|
@@ -6121,7 +6128,7 @@ const Su = ({
|
|
|
6121
6128
|
emits: ["activate", "set-ref"],
|
|
6122
6129
|
setup(e, { emit: a }) {
|
|
6123
6130
|
const t = a, n = U(null);
|
|
6124
|
-
return
|
|
6131
|
+
return qe(() => t("set-ref", n)), (l, r) => (p(), C("button", {
|
|
6125
6132
|
ref_key: "elRef",
|
|
6126
6133
|
ref: n,
|
|
6127
6134
|
type: "button",
|
|
@@ -6304,7 +6311,7 @@ const Su = ({
|
|
|
6304
6311
|
n.value[0] = { month: Me(S), year: we(S) };
|
|
6305
6312
|
}
|
|
6306
6313
|
};
|
|
6307
|
-
|
|
6314
|
+
qe(() => {
|
|
6308
6315
|
z(), e.value.count && f();
|
|
6309
6316
|
});
|
|
6310
6317
|
const G = (S, h) => {
|
|
@@ -6368,7 +6375,7 @@ const Su = ({
|
|
|
6368
6375
|
props: e,
|
|
6369
6376
|
emit: a
|
|
6370
6377
|
});
|
|
6371
|
-
|
|
6378
|
+
qe(() => {
|
|
6372
6379
|
e.startDate && (b.value && e.focusStartDate || !b.value) && O(we(q(e.startDate)), 0);
|
|
6373
6380
|
});
|
|
6374
6381
|
const se = (i) => i ? { month: Me(i), year: we(i) } : { month: null, year: null }, fe = () => b.value ? Array.isArray(b.value) ? b.value.map((i) => se(i)) : se(b.value) : se(), L = (i, E) => {
|
|
@@ -6468,7 +6475,7 @@ const Su = ({
|
|
|
6468
6475
|
],
|
|
6469
6476
|
setup(e, { expose: a, emit: t }) {
|
|
6470
6477
|
const n = t, l = It(), r = ut(l, "yearMode"), o = e;
|
|
6471
|
-
|
|
6478
|
+
qe(() => {
|
|
6472
6479
|
o.shadow || n("mount", null);
|
|
6473
6480
|
});
|
|
6474
6481
|
const {
|
|
@@ -6565,7 +6572,7 @@ const Su = ({
|
|
|
6565
6572
|
}
|
|
6566
6573
|
}), Ku = (e, a) => {
|
|
6567
6574
|
const { modelValue: t } = Da(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: o, defaultedRange: s, propDates: m } = Ie(e), w = U();
|
|
6568
|
-
|
|
6575
|
+
qe(() => {
|
|
6569
6576
|
e.startDate && (t.value && e.focusStartDate || !t.value) && (w.value = we(q(e.startDate)));
|
|
6570
6577
|
});
|
|
6571
6578
|
const g = (D) => Array.isArray(t.value) ? t.value.some((k) => we(k) === D) : t.value ? we(t.value) === D : !1, u = (D) => s.value.enabled && Array.isArray(t.value) ? Ia(t.value, n.value, f(D)) : !1, b = H(() => ra(Rn(e.yearRange, e.locale, e.reverseYears), (D) => {
|
|
@@ -6683,7 +6690,7 @@ const Su = ({
|
|
|
6683
6690
|
minutes: !1,
|
|
6684
6691
|
seconds: !1
|
|
6685
6692
|
}), k = U("AM"), z = U(null), G = U([]), P = U();
|
|
6686
|
-
|
|
6693
|
+
qe(() => {
|
|
6687
6694
|
n("mounted");
|
|
6688
6695
|
});
|
|
6689
6696
|
const O = (d) => Se(/* @__PURE__ */ new Date(), {
|
|
@@ -6963,8 +6970,8 @@ const Su = ({
|
|
|
6963
6970
|
],
|
|
6964
6971
|
setup(e, { expose: a, emit: t }) {
|
|
6965
6972
|
const n = t, l = e, { buildMatrix: r, setTimePicker: o } = Nt(), s = It(), { defaultedTransitions: m, defaultedAriaLabels: w, defaultedTextInput: g, defaultedConfig: u, defaultedRange: b } = Ie(l), { transitionName: f, showTransition: D } = Ma(m), { hideNavigationButtons: k } = Na(), z = U(null), G = U(null), P = U([]), O = U(null);
|
|
6966
|
-
|
|
6967
|
-
n("mount"), !l.timePicker && l.arrowNavigation ? r([
|
|
6973
|
+
qe(() => {
|
|
6974
|
+
n("mount"), !l.timePicker && l.arrowNavigation ? r([Ue(z.value)], "time") : o(!0, l.timePicker);
|
|
6968
6975
|
});
|
|
6969
6976
|
const R = H(() => b.value.enabled && l.modelAuto ? Sl(l.internalModelValue) : !0), x = U(!1), S = ($) => ({
|
|
6970
6977
|
hours: Array.isArray(l.hours) ? l.hours[$] : l.hours,
|
|
@@ -7214,7 +7221,7 @@ const Su = ({
|
|
|
7214
7221
|
[R.seconds, x.seconds]
|
|
7215
7222
|
) : G(R.hours, R.minutes, R.seconds);
|
|
7216
7223
|
};
|
|
7217
|
-
|
|
7224
|
+
qe(() => {
|
|
7218
7225
|
if (!e.shadow)
|
|
7219
7226
|
return w(l.value), t.value ? P() : k();
|
|
7220
7227
|
});
|
|
@@ -7249,7 +7256,7 @@ const Su = ({
|
|
|
7249
7256
|
],
|
|
7250
7257
|
setup(e, { expose: a, emit: t }) {
|
|
7251
7258
|
const n = t, l = e, r = It(), o = ut(r, "timePicker"), s = U(null), { time: m, modelValue: w, disabledTimesConfig: g, updateTime: u, validateTime: b } = hd(l, n);
|
|
7252
|
-
return
|
|
7259
|
+
return qe(() => {
|
|
7253
7260
|
l.shadow || n("mount", null);
|
|
7254
7261
|
}), a({ getSidebarProps: () => ({
|
|
7255
7262
|
modelValue: w,
|
|
@@ -7319,7 +7326,7 @@ const Su = ({
|
|
|
7319
7326
|
defaultedHighlight: g,
|
|
7320
7327
|
propDates: u
|
|
7321
7328
|
} = Ie(l), { transitionName: b, showTransition: f } = Ma(r), { buildMatrix: D } = Nt(), { handleMonthYearChange: k, isDisabled: z, updateMonthYear: G } = Ou(l, n), { showLeftIcon: P, showRightIcon: O } = Na(), R = U(!1), x = U(!1), S = U([null, null, null, null]);
|
|
7322
|
-
|
|
7329
|
+
qe(() => {
|
|
7323
7330
|
n("mount");
|
|
7324
7331
|
});
|
|
7325
7332
|
const h = (Y) => ({
|
|
@@ -7358,7 +7365,7 @@ const Su = ({
|
|
|
7358
7365
|
}, $ = (Y) => {
|
|
7359
7366
|
Y || n("reset-flow");
|
|
7360
7367
|
}, Q = (Y, B) => {
|
|
7361
|
-
l.arrowNavigation && (S.value[B] =
|
|
7368
|
+
l.arrowNavigation && (S.value[B] = Ue(Y), D(S.value, "monthYear"));
|
|
7362
7369
|
}, re = H(() => {
|
|
7363
7370
|
var Y, B;
|
|
7364
7371
|
return [
|
|
@@ -7578,7 +7585,7 @@ const Su = ({
|
|
|
7578
7585
|
left: "",
|
|
7579
7586
|
transform: ""
|
|
7580
7587
|
}), D = U([]), k = U(null), z = U(!0), G = U(""), P = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), O = U([]), R = U({ left: "50%" }), x = U(!1), S = H(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), h = H(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : eu(l.formatLocale, l.locale, +l.weekStart));
|
|
7581
|
-
|
|
7588
|
+
qe(() => {
|
|
7582
7589
|
n("mount", { cmp: "calendar", refs: D }), s.value.noSwipe || k.value && (k.value.addEventListener("touchstart", re, { passive: !1 }), k.value.addEventListener("touchend", me, { passive: !1 }), k.value.addEventListener("touchmove", Y, { passive: !1 })), l.monthChangeOnScroll && k.value && k.value.addEventListener("wheel", E, { passive: !1 });
|
|
7583
7590
|
});
|
|
7584
7591
|
const N = (K) => K ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", ee = (K, Z) => {
|
|
@@ -7602,7 +7609,7 @@ const Su = ({
|
|
|
7602
7609
|
dp__calendar: !0,
|
|
7603
7610
|
dp__calendar_next: w.value.count > 0 && l.instance !== 0
|
|
7604
7611
|
})), oe = H(() => (K) => l.hideOffsetDates ? K.current : !0), v = (K) => Tt(K, "yyyy-MM-dd"), _ = async (K, Z, d) => {
|
|
7605
|
-
const j =
|
|
7612
|
+
const j = Ue(D.value[Z][d]);
|
|
7606
7613
|
if (j) {
|
|
7607
7614
|
const { width: ce, height: F } = j.getBoundingClientRect();
|
|
7608
7615
|
b.value = K.value;
|
|
@@ -7822,7 +7829,7 @@ const Su = ({
|
|
|
7822
7829
|
JSON.stringify(A) !== JSON.stringify(T) && re();
|
|
7823
7830
|
},
|
|
7824
7831
|
{ deep: !0 }
|
|
7825
|
-
),
|
|
7832
|
+
), qe(() => {
|
|
7826
7833
|
e.shadow || (s.value || (K(), b.value && ee(b.value)), re(!0), e.focusStartDate && e.startDate && K());
|
|
7827
7834
|
});
|
|
7828
7835
|
const $ = H(() => {
|
|
@@ -8502,10 +8509,10 @@ const Su = ({
|
|
|
8502
8509
|
menuWrapRef: r.value
|
|
8503
8510
|
};
|
|
8504
8511
|
}), { setMenuFocused: s, setShiftKey: m, control: w } = Wl(), g = It(), { defaultedTextInput: u, defaultedInline: b, defaultedConfig: f } = Ie(l), D = U(null), k = U(0), z = U(null), G = U(!1), P = U(null);
|
|
8505
|
-
|
|
8512
|
+
qe(() => {
|
|
8506
8513
|
if (!l.shadow) {
|
|
8507
8514
|
G.value = !0, O(), window.addEventListener("resize", O);
|
|
8508
|
-
const M =
|
|
8515
|
+
const M = Ue(r);
|
|
8509
8516
|
if (M && !u.value.enabled && !b.value.enabled && (s(!0), oe()), M) {
|
|
8510
8517
|
const X = (he) => {
|
|
8511
8518
|
f.value.allowPreventDefault && he.preventDefault(), Yt(he, f.value, !0);
|
|
@@ -8517,7 +8524,7 @@ const Su = ({
|
|
|
8517
8524
|
window.removeEventListener("resize", O);
|
|
8518
8525
|
});
|
|
8519
8526
|
const O = () => {
|
|
8520
|
-
const M =
|
|
8527
|
+
const M = Ue(z);
|
|
8521
8528
|
M && (k.value = M.getBoundingClientRect().width);
|
|
8522
8529
|
}, { arrowRight: R, arrowLeft: x, arrowDown: S, arrowUp: h } = Nt(), { flowStep: N, updateFlowStep: ee, childMount: se, resetFlow: fe } = Lu(l, n, P), L = H(() => l.monthPicker ? Zu : l.yearPicker ? ed : l.timePicker ? yd : l.quarterPicker ? Fd : Bd), V = H(() => {
|
|
8523
8530
|
var M;
|
|
@@ -8526,7 +8533,7 @@ const Su = ({
|
|
|
8526
8533
|
const X = (M = r.value) == null ? void 0 : M.getBoundingClientRect(), he = l.getInputRect();
|
|
8527
8534
|
return he.width < k.value && he.left <= ((X == null ? void 0 : X.left) ?? 0) ? `${he.width / 2}px` : "50%";
|
|
8528
8535
|
}), oe = () => {
|
|
8529
|
-
const M =
|
|
8536
|
+
const M = Ue(r);
|
|
8530
8537
|
M && M.focus({ preventScroll: !0 });
|
|
8531
8538
|
}, v = H(() => {
|
|
8532
8539
|
var M;
|
|
@@ -8756,7 +8763,7 @@ const Su = ({
|
|
|
8756
8763
|
}, Zd = (e, a, t, n = {}) => {
|
|
8757
8764
|
const { window: l = Qd, event: r = "pointerdown" } = n;
|
|
8758
8765
|
return l ? Jd(l, r, (o) => {
|
|
8759
|
-
const s =
|
|
8766
|
+
const s = Ue(e), m = Ue(a);
|
|
8760
8767
|
!s || !m || s === o.target || o.composedPath().includes(s) || o.composedPath().includes(m) || t(o);
|
|
8761
8768
|
}, { passive: !0 }) : void 0;
|
|
8762
8769
|
}, Kd = /* @__PURE__ */ Te({
|
|
@@ -8802,7 +8809,7 @@ const Su = ({
|
|
|
8802
8809
|
defaultedRange: se,
|
|
8803
8810
|
defaultedMultiDates: fe
|
|
8804
8811
|
} = Ie(l), { menuTransition: L, showTransition: V } = Ma(S);
|
|
8805
|
-
|
|
8812
|
+
qe(() => {
|
|
8806
8813
|
E(l.modelValue), mt().then(() => {
|
|
8807
8814
|
if (!N.value.enabled) {
|
|
8808
8815
|
const T = me(f.value);
|
|
@@ -9066,7 +9073,7 @@ const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
|
|
|
9066
9073
|
function s(m) {
|
|
9067
9074
|
m && n("change", m);
|
|
9068
9075
|
}
|
|
9069
|
-
return
|
|
9076
|
+
return qe(() => {
|
|
9070
9077
|
var m;
|
|
9071
9078
|
t.currentDate && (l.value = t.currentDate), t.opened && ((m = r.value) == null || m.openMenu());
|
|
9072
9079
|
}), (m, w) => (p(), C("div", tc, [
|