sm-click-library-ui 0.0.50 → 0.0.51
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/sm-click-library-ui.es.js +71 -78
- package/dist/sm-click-library-ui.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/tailwind.css +6 -66
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Pl = Object.defineProperty;
|
|
2
2
|
var Ol = (e, a, t) => a in e ? Pl(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
|
|
3
3
|
var de = (e, a, t) => Ol(e, typeof a != "symbol" ? a + "" : a, t);
|
|
4
|
-
import { getCurrentScope as eo, onScopeDispose as to, unref as g, watch as lt, ref as K, computed as Z, openBlock as k, createElementBlock as S, createElementVNode as B, toDisplayString as Re, normalizeClass as ge, renderSlot as ue, createCommentVNode as Q, pushScopeId as ao, popScopeId as no, onMounted as Ze, resolveComponent as ro, createBlock as Oe, withCtx as be, createTextVNode as Ct, Fragment as xe, renderList as $e, createVNode as Xe, reactive as Ra, defineComponent as Je, useSlots as ea, toRef as Ma, nextTick as
|
|
4
|
+
import { getCurrentScope as eo, onScopeDispose as to, unref as g, watch as lt, ref as K, computed as Z, openBlock as k, createElementBlock as S, createElementVNode as B, toDisplayString as Re, normalizeClass as ge, renderSlot as ue, createCommentVNode as Q, pushScopeId as ao, popScopeId as no, onMounted as Ze, resolveComponent as ro, createBlock as Oe, withCtx as be, createTextVNode as Ct, Fragment as xe, renderList as $e, createVNode as Xe, reactive as Ra, defineComponent as Je, useSlots as ea, toRef as Ma, nextTick as pt, onUnmounted as Za, mergeProps as Ge, isRef as wr, createSlots as at, normalizeProps as Ke, guardReactiveProps as it, resolveDynamicComponent as Ja, Teleport as Al, Transition as fa, normalizeStyle as ht, withModifiers as Pa, h as Sl, render as br, useAttrs as Cl, onBeforeUpdate as Rl, withDirectives as za, vShow as Va, withKeys as $l } from "vue";
|
|
5
5
|
function El(e) {
|
|
6
6
|
return eo() ? (to(e), !0) : !1;
|
|
7
7
|
}
|
|
@@ -6297,7 +6297,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
6297
6297
|
key: 0,
|
|
6298
6298
|
class: "dp__selection_preview",
|
|
6299
6299
|
title: pe.value,
|
|
6300
|
-
style:
|
|
6300
|
+
style: ht(R.value)
|
|
6301
6301
|
}, [
|
|
6302
6302
|
T.$slots["action-preview"] && E.value ? ue(T.$slots, "action-preview", {
|
|
6303
6303
|
key: 0,
|
|
@@ -6379,7 +6379,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
6379
6379
|
Rl(() => {
|
|
6380
6380
|
w.value = null;
|
|
6381
6381
|
}), Ze(() => {
|
|
6382
|
-
|
|
6382
|
+
pt().then(() => ie()), s.noOverlayFocus || re(), H(!0);
|
|
6383
6383
|
}), Za(() => H(!1));
|
|
6384
6384
|
const H = (_) => {
|
|
6385
6385
|
var x;
|
|
@@ -6420,7 +6420,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
6420
6420
|
{ deep: !0 }
|
|
6421
6421
|
);
|
|
6422
6422
|
const ie = (_ = !0) => {
|
|
6423
|
-
|
|
6423
|
+
pt().then(() => {
|
|
6424
6424
|
const x = We(w), c = We(m), A = We(R), U = We(b), h = A ? A.getBoundingClientRect().height : 0;
|
|
6425
6425
|
c && (c.getBoundingClientRect().height ? $.value = c.getBoundingClientRect().height - h : $.value = i.value.modeHeight - h), x && U && _ && (U.scrollTop = x.offsetTop - U.offsetTop - ($.value / 2 - x.getBoundingClientRect().height) - h);
|
|
6426
6426
|
});
|
|
@@ -6473,7 +6473,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
6473
6473
|
ref_key: "gridWrapRef",
|
|
6474
6474
|
ref: m,
|
|
6475
6475
|
class: ge(I.value),
|
|
6476
|
-
style:
|
|
6476
|
+
style: ht(M.value),
|
|
6477
6477
|
role: _.useRelative ? void 0 : "dialog",
|
|
6478
6478
|
"aria-label": _.overlayLabel,
|
|
6479
6479
|
tabindex: _.useRelative ? void 0 : "0",
|
|
@@ -6485,7 +6485,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
6485
6485
|
ref_key: "containerRef",
|
|
6486
6486
|
ref: b,
|
|
6487
6487
|
class: ge(z.value),
|
|
6488
|
-
style:
|
|
6488
|
+
style: ht({ "--dp-overlay-height": `${$.value}px` }),
|
|
6489
6489
|
role: "grid"
|
|
6490
6490
|
}, [
|
|
6491
6491
|
B("div", Ff, [
|
|
@@ -6892,7 +6892,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
6892
6892
|
w.value = $t(U, c, m.value(A)), a("auto-apply"), a("update-flow-step");
|
|
6893
6893
|
}, V = (c, A) => {
|
|
6894
6894
|
const U = q(c, A);
|
|
6895
|
-
l.value.fixedEnd || l.value.fixedStart ? w.value = _l(U, w, a, l) : w.value ? b(U, w.value) && (w.value = yr(w, q(c, A), a)) : w.value = [q(c, A)],
|
|
6895
|
+
l.value.fixedEnd || l.value.fixedStart ? w.value = _l(U, w, a, l) : w.value ? b(U, w.value) && (w.value = yr(w, q(c, A), a)) : w.value = [q(c, A)], pt().then(() => {
|
|
6896
6896
|
un(w.value, a, e.autoApply, e.modelAuto);
|
|
6897
6897
|
});
|
|
6898
6898
|
}, oe = (c, A) => {
|
|
@@ -6958,7 +6958,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
6958
6958
|
"overlay-toggle"
|
|
6959
6959
|
],
|
|
6960
6960
|
setup(e, { expose: a, emit: t }) {
|
|
6961
|
-
const n = t, r = ea(), o =
|
|
6961
|
+
const n = t, r = ea(), o = ft(r, "yearMode"), l = e;
|
|
6962
6962
|
Ze(() => {
|
|
6963
6963
|
l.shadow || n("mount", null);
|
|
6964
6964
|
});
|
|
@@ -7080,7 +7080,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
7080
7080
|
var E;
|
|
7081
7081
|
if (a("update-month-year", { instance: 0, year: y }), l.value.enabled)
|
|
7082
7082
|
return n.value ? Array.isArray(n.value) && (((E = n.value) == null ? void 0 : E.map((R) => _e(R))).includes(y) ? n.value = n.value.filter((R) => _e(R) !== y) : n.value.push(At(st(X()), y))) : n.value = [At(st(Aa(X())), y)], a("auto-apply", !0);
|
|
7083
|
-
u.value.enabled ? (n.value = yr(n, m(y), a),
|
|
7083
|
+
u.value.enabled ? (n.value = yr(n, m(y), a), pt().then(() => {
|
|
7084
7084
|
un(n.value, a, e.autoApply, e.modelAuto);
|
|
7085
7085
|
})) : (n.value = m(y), a("auto-apply"));
|
|
7086
7086
|
}
|
|
@@ -7484,14 +7484,14 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
7484
7484
|
V.push(M(0));
|
|
7485
7485
|
return V;
|
|
7486
7486
|
}), j = (V, oe = !1, ye = "") => {
|
|
7487
|
-
oe || n("reset-flow"), I.value = V, n(V ? "overlay-opened" : "overlay-closed", tt.time), r.arrowNavigation && l(V),
|
|
7487
|
+
oe || n("reset-flow"), I.value = V, n(V ? "overlay-opened" : "overlay-closed", tt.time), r.arrowNavigation && l(V), pt(() => {
|
|
7488
7488
|
ye !== "" && $.value[0] && $.value[0].openChildCmp(ye);
|
|
7489
7489
|
});
|
|
7490
7490
|
}, z = Z(() => ({
|
|
7491
7491
|
dp__btn: !0,
|
|
7492
7492
|
dp__button: !0,
|
|
7493
7493
|
dp__button_bottom: r.autoApply && !d.value.keepActionRow
|
|
7494
|
-
})), ie =
|
|
7494
|
+
})), ie = ft(s, "timePicker"), pe = (V, oe, ye) => p.value.enabled ? oe === 0 ? [V, G.value[1][ye]] : [G.value[0][ye], V] : V, ve = (V) => {
|
|
7495
7495
|
n("update:hours", V);
|
|
7496
7496
|
}, T = (V) => {
|
|
7497
7497
|
n("update:minutes", V);
|
|
@@ -7544,7 +7544,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
7544
7544
|
"dp--overlay-absolute": !r.timePicker && !V.timePickerInline,
|
|
7545
7545
|
"dp--overlay-relative": r.timePicker
|
|
7546
7546
|
}),
|
|
7547
|
-
style:
|
|
7547
|
+
style: ht(V.timePicker ? { height: `${g(d).modeHeight}px` } : void 0),
|
|
7548
7548
|
"aria-label": (_ = g(v)) == null ? void 0 : _.timePicker,
|
|
7549
7549
|
tabindex: V.timePickerInline ? void 0 : 0
|
|
7550
7550
|
}, [
|
|
@@ -7762,7 +7762,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
7762
7762
|
"overlay-toggle"
|
|
7763
7763
|
],
|
|
7764
7764
|
setup(e, { expose: a, emit: t }) {
|
|
7765
|
-
const n = t, r = e, o = ea(), l =
|
|
7765
|
+
const n = t, r = e, o = ea(), l = ft(o, "timePicker"), s = K(null), { time: u, modelValue: v, disabledTimesConfig: i, updateTime: d, validateTime: p } = l0(r, n);
|
|
7766
7766
|
return Ze(() => {
|
|
7767
7767
|
r.shadow || n("mount", null);
|
|
7768
7768
|
}), a({ getSidebarProps: () => ({
|
|
@@ -8109,7 +8109,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8109
8109
|
const j = (N) => N ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", z = (N, ee) => {
|
|
8110
8110
|
if (r.transitions) {
|
|
8111
8111
|
const f = st($t(X(), r.month, r.year));
|
|
8112
|
-
$.value = ze(st($t(X(), N, ee)), f) ? l.value[j(!0)] : l.value[j(!1)], R.value = !1,
|
|
8112
|
+
$.value = ze(st($t(X(), N, ee)), f) ? l.value[j(!0)] : l.value[j(!1)], R.value = !1, pt(() => {
|
|
8113
8113
|
R.value = !0;
|
|
8114
8114
|
});
|
|
8115
8115
|
}
|
|
@@ -8130,7 +8130,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8130
8130
|
const { width: f, height: W } = N.getBoundingClientRect();
|
|
8131
8131
|
w.value = ee.value;
|
|
8132
8132
|
let te = { left: `${f / 2}px` }, L = -50;
|
|
8133
|
-
if (await
|
|
8133
|
+
if (await pt(), H.value[0]) {
|
|
8134
8134
|
const { left: ke, width: O } = H.value[0].getBoundingClientRect();
|
|
8135
8135
|
ke < 0 && (te = { left: "0" }, L = 0, re.value.left = `${f / 2}px`), window.innerWidth < ke + O && (te = { right: "0" }, L = 0, re.value.left = `${O - f / 2}px`);
|
|
8136
8136
|
}
|
|
@@ -8266,7 +8266,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8266
8266
|
}) : (k(), S("div", {
|
|
8267
8267
|
key: 1,
|
|
8268
8268
|
class: ge(pe.value(te.marker)),
|
|
8269
|
-
style:
|
|
8269
|
+
style: ht(te.marker.color ? { backgroundColor: te.marker.color } : {})
|
|
8270
8270
|
}, null, 6))
|
|
8271
8271
|
], 64)) : Q("", !0),
|
|
8272
8272
|
ve.value(te.value) ? (k(), S("div", {
|
|
@@ -8275,7 +8275,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8275
8275
|
ref_key: "activeTooltip",
|
|
8276
8276
|
ref: H,
|
|
8277
8277
|
class: "dp__marker_tooltip",
|
|
8278
|
-
style:
|
|
8278
|
+
style: ht(m.value)
|
|
8279
8279
|
}, [
|
|
8280
8280
|
(J = te.marker) != null && J.tooltip ? (k(), S("div", {
|
|
8281
8281
|
key: 0,
|
|
@@ -8294,14 +8294,14 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8294
8294
|
N.$slots["marker-tooltip"] ? Q("", !0) : (k(), S(xe, { key: 1 }, [
|
|
8295
8295
|
B("div", {
|
|
8296
8296
|
class: "dp__tooltip_mark",
|
|
8297
|
-
style:
|
|
8297
|
+
style: ht(fe.color ? { backgroundColor: fe.color } : {})
|
|
8298
8298
|
}, null, 4),
|
|
8299
8299
|
B("div", null, Re(fe.text), 1)
|
|
8300
8300
|
], 64))
|
|
8301
8301
|
]))), 128)),
|
|
8302
8302
|
B("div", {
|
|
8303
8303
|
class: "dp__arrow_bottom_tp",
|
|
8304
|
-
style:
|
|
8304
|
+
style: ht(re.value)
|
|
8305
8305
|
}, null, 4)
|
|
8306
8306
|
])) : Q("", !0)
|
|
8307
8307
|
], 4)) : Q("", !0)
|
|
@@ -8429,7 +8429,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8429
8429
|
}
|
|
8430
8430
|
}, ke = (P, ne, F, ae) => {
|
|
8431
8431
|
if (e.sixWeeks && P.length < 6) {
|
|
8432
|
-
const ce = 6 - P.length, nt = (ne.getDay() + 7 - ae) % 7,
|
|
8432
|
+
const ce = 6 - P.length, nt = (ne.getDay() + 7 - ae) % 7, vt = 6 - (F.getDay() + 7 - ae) % 7, [Ut, La] = L(nt, vt);
|
|
8433
8433
|
for (let ga = 1; ga <= ce; ga++)
|
|
8434
8434
|
if (La ? !!(ga % 2) == Ut : Ut) {
|
|
8435
8435
|
const Ft = P[0].days[0], gn = O(wt(Ft.value, -7), Me(ne));
|
|
@@ -8443,17 +8443,17 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8443
8443
|
}, O = (P, ne) => {
|
|
8444
8444
|
const F = X(P), ae = [];
|
|
8445
8445
|
for (let ce = 0; ce < 7; ce++) {
|
|
8446
|
-
const nt = wt(F, ce),
|
|
8446
|
+
const nt = wt(F, ce), vt = Me(nt) !== ne;
|
|
8447
8447
|
ae.push({
|
|
8448
|
-
text: e.hideOffsetDates &&
|
|
8448
|
+
text: e.hideOffsetDates && vt ? "" : nt.getDate(),
|
|
8449
8449
|
value: nt,
|
|
8450
|
-
current: !
|
|
8450
|
+
current: !vt,
|
|
8451
8451
|
classData: {}
|
|
8452
8452
|
});
|
|
8453
8453
|
}
|
|
8454
8454
|
return ae;
|
|
8455
8455
|
}, J = (P, ne) => {
|
|
8456
|
-
const F = [], ae = new Date(ne, P), ce = new Date(ne, P + 1, 0), nt = e.weekStart,
|
|
8456
|
+
const F = [], ae = new Date(ne, P), ce = new Date(ne, P + 1, 0), nt = e.weekStart, vt = xt(ae, { weekStartsOn: nt }), Ut = (La) => {
|
|
8457
8457
|
const ga = O(La, P);
|
|
8458
8458
|
if (F.push({ days: ga }), !F[F.length - 1].days.some(
|
|
8459
8459
|
(Ft) => Pe(st(Ft.value), st(ce))
|
|
@@ -8462,13 +8462,13 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8462
8462
|
Ut(Ft);
|
|
8463
8463
|
}
|
|
8464
8464
|
};
|
|
8465
|
-
return Ut(
|
|
8465
|
+
return Ut(vt), ke(F, ae, ce, nt);
|
|
8466
8466
|
}, fe = (P) => {
|
|
8467
8467
|
const ne = zt(X(P.value), i.hours, i.minutes, dt());
|
|
8468
|
-
a("date-update", ne), $.value.enabled ? hr(ne, u, $.value.limit) : u.value = ne, n(),
|
|
8468
|
+
a("date-update", ne), $.value.enabled ? hr(ne, u, $.value.limit) : u.value = ne, n(), pt().then(() => {
|
|
8469
8469
|
V();
|
|
8470
8470
|
});
|
|
8471
|
-
}, De = (P) => m.value.noDisabledRange ? fl(r.value[0], P).some((ne) => H(ne)) : !1,
|
|
8471
|
+
}, De = (P) => m.value.noDisabledRange ? fl(r.value[0], P).some((ne) => H(ne)) : !1, mt = () => {
|
|
8472
8472
|
r.value = u.value ? u.value.slice() : [], r.value.length === 2 && !(m.value.fixedStart || m.value.fixedEnd) && (r.value = []);
|
|
8473
8473
|
}, he = (P, ne) => {
|
|
8474
8474
|
const F = [
|
|
@@ -8490,7 +8490,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8490
8490
|
return a("invalid-date", P.value);
|
|
8491
8491
|
r.value = _l(X(P.value), u, a, m);
|
|
8492
8492
|
}, ha = (P, ne) => {
|
|
8493
|
-
if (
|
|
8493
|
+
if (mt(), m.value.autoRange) return he(P, ne);
|
|
8494
8494
|
if (m.value.fixedStart || m.value.fixedEnd) return Mt(P);
|
|
8495
8495
|
r.value[0] ? I(X(P.value), u.value) && !De(P.value) ? Le(X(P.value), X(r.value[0])) ? (r.value.unshift(X(P.value)), a("range-end", r.value[0])) : (r.value[1] = X(P.value), a("range-end", r.value[1])) : (e.autoApply && a("auto-apply-invalid", P.value), a("invalid-date", P.value)) : (r.value[0] = X(P.value), a("range-start", r.value[0]));
|
|
8496
8496
|
}, dt = (P = !0) => e.enableSeconds ? Array.isArray(i.seconds) ? P ? i.seconds[0] : i.seconds[1] : i.seconds : 0, ya = (P) => {
|
|
@@ -8520,7 +8520,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8520
8520
|
modelValue: u,
|
|
8521
8521
|
range: m.value.enabled,
|
|
8522
8522
|
timezone: ne ? void 0 : E.value.timezone
|
|
8523
|
-
}), q(), e.multiCalendars &&
|
|
8523
|
+
}), q(), e.multiCalendars && pt().then(() => oe(!0));
|
|
8524
8524
|
}, vn = () => {
|
|
8525
8525
|
const P = dr(X(), E.value);
|
|
8526
8526
|
m.value.enabled ? u.value && Array.isArray(u.value) && u.value[0] ? u.value = Le(P, u.value[0]) ? [P, u.value[0]] : [u.value[0], P] : u.value = [P] : u.value = P, q();
|
|
@@ -8608,7 +8608,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8608
8608
|
selectCurrentDate: re,
|
|
8609
8609
|
updateTime: I,
|
|
8610
8610
|
assignMonthAndYear: M
|
|
8611
|
-
} = k0(r, n, ye, _), G = ea(), { setHoverDate: j, getDayClassData: z, clearHoverDate: ie } = H0(u, r), { defaultedMultiCalendars: pe } = Ye(r), ve = K([]), T = K([]), C = K(null), D =
|
|
8611
|
+
} = k0(r, n, ye, _), G = ea(), { setHoverDate: j, getDayClassData: z, clearHoverDate: ie } = H0(u, r), { defaultedMultiCalendars: pe } = Ye(r), ve = K([]), T = K([]), C = K(null), D = ft(G, "calendar"), q = ft(G, "monthYear"), se = ft(G, "timePicker"), V = (ee) => {
|
|
8612
8612
|
r.shadow || n("mount", ee);
|
|
8613
8613
|
};
|
|
8614
8614
|
lt(
|
|
@@ -8874,7 +8874,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8874
8874
|
"update-month-year"
|
|
8875
8875
|
],
|
|
8876
8876
|
setup(e, { expose: a, emit: t }) {
|
|
8877
|
-
const n = t, r = e, o = ea(), l =
|
|
8877
|
+
const n = t, r = e, o = ea(), l = ft(o, "yearMode"), {
|
|
8878
8878
|
defaultedMultiCalendars: s,
|
|
8879
8879
|
defaultedConfig: u,
|
|
8880
8880
|
groupedYears: v,
|
|
@@ -8903,7 +8903,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
8903
8903
|
default: be(({ instance: I }) => [
|
|
8904
8904
|
B("div", {
|
|
8905
8905
|
class: "dp-quarter-picker-wrap",
|
|
8906
|
-
style:
|
|
8906
|
+
style: ht({ minHeight: `${g(u).modeHeight}px` })
|
|
8907
8907
|
}, [
|
|
8908
8908
|
H.$slots["top-extra"] ? ue(H.$slots, "top-extra", {
|
|
8909
8909
|
key: 0,
|
|
@@ -9054,7 +9054,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
9054
9054
|
return ((O = b.value) == null ? void 0 : O.getSidebarProps()) || {};
|
|
9055
9055
|
}), se = () => {
|
|
9056
9056
|
r.openOnTop && n("recalculate-position");
|
|
9057
|
-
}, V =
|
|
9057
|
+
}, V = ft(i, "action"), oe = Z(() => r.monthPicker || r.yearPicker ? ft(i, "monthYear") : r.timePicker ? ft(i, "timePicker") : ft(i, "shared")), ye = Z(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), _ = Z(() => ({
|
|
9058
9058
|
dp__menu_disabled: r.disabled,
|
|
9059
9059
|
dp__menu_readonly: r.readonly,
|
|
9060
9060
|
"dp-menu-loading": r.loading
|
|
@@ -9084,8 +9084,8 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
9084
9084
|
var J, fe, De;
|
|
9085
9085
|
(J = b.value) == null || J.toggleTimePicker(!1, !1), (fe = b.value) == null || fe.toggleMonthPicker(!1, !1, O), (De = b.value) == null || De.toggleYearPicker(!1, !1, O);
|
|
9086
9086
|
}, Ue = (O, J = 0) => {
|
|
9087
|
-
var fe, De,
|
|
9088
|
-
return O === "month" ? (fe = b.value) == null ? void 0 : fe.toggleMonthPicker(!1, !0, J) : O === "year" ? (De = b.value) == null ? void 0 : De.toggleYearPicker(!1, !0, J) : O === "time" ? (
|
|
9087
|
+
var fe, De, mt;
|
|
9088
|
+
return O === "month" ? (fe = b.value) == null ? void 0 : fe.toggleMonthPicker(!1, !0, J) : O === "year" ? (De = b.value) == null ? void 0 : De.toggleYearPicker(!1, !0, J) : O === "time" ? (mt = b.value) == null ? void 0 : mt.toggleTimePicker(!0, !1) : we(J);
|
|
9089
9089
|
}, N = (O, ...J) => {
|
|
9090
9090
|
var fe, De;
|
|
9091
9091
|
(fe = b.value) != null && fe[O] && ((De = b.value) == null || De[O](...J));
|
|
@@ -9127,7 +9127,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
9127
9127
|
switchView: Ue,
|
|
9128
9128
|
handleFlow: ve
|
|
9129
9129
|
}), (O, J) => {
|
|
9130
|
-
var fe, De,
|
|
9130
|
+
var fe, De, mt;
|
|
9131
9131
|
return k(), S("div", {
|
|
9132
9132
|
id: O.uid ? `dp-menu-${O.uid}` : void 0,
|
|
9133
9133
|
ref_key: "dpMenuRef",
|
|
@@ -9136,7 +9136,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
9136
9136
|
role: g(p).enabled ? void 0 : "dialog",
|
|
9137
9137
|
"aria-label": (fe = O.ariaLabels) == null ? void 0 : fe.menu,
|
|
9138
9138
|
class: ge(x.value),
|
|
9139
|
-
style:
|
|
9139
|
+
style: ht({ "--dp-arrow-left": C.value }),
|
|
9140
9140
|
onMouseleave: W,
|
|
9141
9141
|
onClick: c,
|
|
9142
9142
|
onKeydown: ke
|
|
@@ -9159,9 +9159,9 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
9159
9159
|
ref: R,
|
|
9160
9160
|
class: ge({
|
|
9161
9161
|
dp__menu_content_wrapper: ((De = O.presetDates) == null ? void 0 : De.length) || !!O.$slots["left-sidebar"] || !!O.$slots["right-sidebar"],
|
|
9162
|
-
"dp--menu-content-wrapper-collapsed": e.collapse && (((
|
|
9162
|
+
"dp--menu-content-wrapper-collapsed": e.collapse && (((mt = O.presetDates) == null ? void 0 : mt.length) || !!O.$slots["left-sidebar"] || !!O.$slots["right-sidebar"])
|
|
9163
9163
|
}),
|
|
9164
|
-
style:
|
|
9164
|
+
style: ht({ "--dp-menu-width": `${E.value}px` })
|
|
9165
9165
|
}, [
|
|
9166
9166
|
O.$slots["left-sidebar"] ? (k(), S("div", E0, [
|
|
9167
9167
|
ue(O.$slots, "left-sidebar", Ke(it(q.value)))
|
|
@@ -9179,7 +9179,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
|
|
|
9179
9179
|
}) : (k(), S("button", {
|
|
9180
9180
|
key: 1,
|
|
9181
9181
|
type: "button",
|
|
9182
|
-
style:
|
|
9182
|
+
style: ht(he.style || {}),
|
|
9183
9183
|
class: ge(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": e.collapse }]),
|
|
9184
9184
|
"data-test": he.testId ?? void 0,
|
|
9185
9185
|
onClick: Pa((Mt) => f(he.value, he.noTz), ["prevent"]),
|
|
@@ -9444,7 +9444,7 @@ const I0 = ({
|
|
|
9444
9444
|
menu: () => Lt.filter((e) => e.use.includes("menu")),
|
|
9445
9445
|
shared: () => Lt.filter((e) => e.use.includes("shared")),
|
|
9446
9446
|
yearMode: () => Lt.filter((e) => e.use.includes("year-mode"))
|
|
9447
|
-
},
|
|
9447
|
+
}, ft = (e, a, t) => {
|
|
9448
9448
|
const n = [];
|
|
9449
9449
|
return B0[a]().forEach((r) => {
|
|
9450
9450
|
e[r.name] && n.push(r.name);
|
|
@@ -9732,7 +9732,7 @@ const I0 = ({
|
|
|
9732
9732
|
}
|
|
9733
9733
|
}, s = () => {
|
|
9734
9734
|
var d, p;
|
|
9735
|
-
(d = e.flow) != null && d.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), i()), ((p = e.flow) == null ? void 0 : p.length) === n.value &&
|
|
9735
|
+
(d = e.flow) != null && d.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), i()), ((p = e.flow) == null ? void 0 : p.length) === n.value && pt().then(() => u());
|
|
9736
9736
|
}, u = () => {
|
|
9737
9737
|
n.value = -1;
|
|
9738
9738
|
}, v = (d, p, ...w) => {
|
|
@@ -9839,7 +9839,7 @@ const I0 = ({
|
|
|
9839
9839
|
var c;
|
|
9840
9840
|
H.value && x && !$.value && (_.preventDefault(), $.value = !0, (c = H.value) == null || c.focus()), o.value.enabled && o.value.tabSubmit && z(_.target.value), o.value.tabSubmit && Qn(y.value) && r.inputValue !== "" ? (n("set-input-date", y.value, !0, !0), y.value = null) : o.value.tabSubmit && r.inputValue === "" && (y.value = null, n("clear", !0));
|
|
9841
9841
|
}, T = () => {
|
|
9842
|
-
R.value = !0, n("focus"),
|
|
9842
|
+
R.value = !0, n("focus"), pt().then(() => {
|
|
9843
9843
|
var _;
|
|
9844
9844
|
o.value.enabled && o.value.selectOnFocus && ((_ = E.value) == null || _.select());
|
|
9845
9845
|
});
|
|
@@ -10020,7 +10020,7 @@ const I0 = ({
|
|
|
10020
10020
|
defaultedMultiDates: pe
|
|
10021
10021
|
} = Ye(r), { menuTransition: ve, showTransition: T } = Fa(M);
|
|
10022
10022
|
Ze(() => {
|
|
10023
|
-
A(r.modelValue),
|
|
10023
|
+
A(r.modelValue), pt().then(() => {
|
|
10024
10024
|
if (!j.value.enabled) {
|
|
10025
10025
|
const F = ye(w.value);
|
|
10026
10026
|
F == null || F.addEventListener("scroll", te), window == null || window.addEventListener("resize", L);
|
|
@@ -10033,7 +10033,7 @@ const I0 = ({
|
|
|
10033
10033
|
}
|
|
10034
10034
|
window == null || window.removeEventListener("keyup", ke), window == null || window.removeEventListener("keydown", O);
|
|
10035
10035
|
});
|
|
10036
|
-
const C =
|
|
10036
|
+
const C = ft(o, "all", r.presetDates), D = ft(o, "input");
|
|
10037
10037
|
lt(
|
|
10038
10038
|
[s, u],
|
|
10039
10039
|
() => {
|
|
@@ -10091,7 +10091,7 @@ const I0 = ({
|
|
|
10091
10091
|
}, De = () => {
|
|
10092
10092
|
const F = c.value;
|
|
10093
10093
|
return !F || !Array.isArray(F) && re(F) ? !0 : Array.isArray(F) ? pe.value.enabled || F.length === 2 && re(F[0]) && re(F[1]) ? !0 : ie.value.partialRange && !r.timePicker ? re(F[0]) : !1 : !1;
|
|
10094
|
-
},
|
|
10094
|
+
}, mt = () => {
|
|
10095
10095
|
le() && De() ? (U(), dt()) : n("invalid-select", c.value);
|
|
10096
10096
|
}, he = (F) => {
|
|
10097
10097
|
Nt(), U(), z.value.closeOnAutoApply && !F && dt();
|
|
@@ -10108,8 +10108,8 @@ const I0 = ({
|
|
|
10108
10108
|
c.value = null;
|
|
10109
10109
|
return;
|
|
10110
10110
|
}
|
|
10111
|
-
const nt = Array.isArray(F) ? !F.some((Ut) => !re(Ut)) : re(F),
|
|
10112
|
-
nt &&
|
|
10111
|
+
const nt = Array.isArray(F) ? !F.some((Ut) => !re(Ut)) : re(F), vt = I(F);
|
|
10112
|
+
nt && vt && (R.value = !0, c.value = F, ae && (m.value = ce, mt(), n("text-submit")), pt().then(() => {
|
|
10113
10113
|
R.value = !1;
|
|
10114
10114
|
}));
|
|
10115
10115
|
}, dn = () => {
|
|
@@ -10140,7 +10140,7 @@ const I0 = ({
|
|
|
10140
10140
|
};
|
|
10141
10141
|
return X0(v, d, () => P(De)), a({
|
|
10142
10142
|
closeMenu: dt,
|
|
10143
|
-
selectDate:
|
|
10143
|
+
selectDate: mt,
|
|
10144
10144
|
clearValue: fe,
|
|
10145
10145
|
openMenu: J,
|
|
10146
10146
|
onScroll: te,
|
|
@@ -10171,7 +10171,7 @@ const I0 = ({
|
|
|
10171
10171
|
onOpen: J,
|
|
10172
10172
|
onSetInputDate: ya,
|
|
10173
10173
|
onSetEmptyDate: g(U),
|
|
10174
|
-
onSelectDate:
|
|
10174
|
+
onSelectDate: mt,
|
|
10175
10175
|
onToggle: Ia,
|
|
10176
10176
|
onClose: dt,
|
|
10177
10177
|
onFocus: pn,
|
|
@@ -10181,8 +10181,8 @@ const I0 = ({
|
|
|
10181
10181
|
}), at({ _: 2 }, [
|
|
10182
10182
|
$e(g(D), (ce, nt) => ({
|
|
10183
10183
|
name: ce,
|
|
10184
|
-
fn: be((
|
|
10185
|
-
ue(F.$slots, ce, Ke(it(
|
|
10184
|
+
fn: be((vt) => [
|
|
10185
|
+
ue(F.$slots, ce, Ke(it(vt)))
|
|
10186
10186
|
])
|
|
10187
10187
|
}))
|
|
10188
10188
|
]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
|
|
@@ -10214,7 +10214,7 @@ const I0 = ({
|
|
|
10214
10214
|
"get-input-rect": W,
|
|
10215
10215
|
"is-text-input-date": R.value,
|
|
10216
10216
|
onClosePicker: dt,
|
|
10217
|
-
onSelectDate:
|
|
10217
|
+
onSelectDate: mt,
|
|
10218
10218
|
onAutoApply: Mt,
|
|
10219
10219
|
onTimeUpdate: dn,
|
|
10220
10220
|
onFlowStep: ae[4] || (ae[4] = (ce) => F.$emit("flow-step", ce)),
|
|
@@ -10236,8 +10236,8 @@ const I0 = ({
|
|
|
10236
10236
|
}), at({ _: 2 }, [
|
|
10237
10237
|
$e(g(C), (ce, nt) => ({
|
|
10238
10238
|
name: ce,
|
|
10239
|
-
fn: be((
|
|
10240
|
-
ue(F.$slots, ce, Ke(it({ ...
|
|
10239
|
+
fn: be((vt) => [
|
|
10240
|
+
ue(F.$slots, ce, Ke(it({ ...vt })))
|
|
10241
10241
|
])
|
|
10242
10242
|
}))
|
|
10243
10243
|
]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "is-text-input-date", "onRecalculatePosition"])
|
|
@@ -10262,12 +10262,10 @@ const I0 = ({
|
|
|
10262
10262
|
Object.entries(J0).forEach(([e, a]) => {
|
|
10263
10263
|
e !== "default" && (gr[e] = a);
|
|
10264
10264
|
});
|
|
10265
|
-
const ep = { class: "calendar-container
|
|
10266
|
-
class: "
|
|
10265
|
+
const ep = { class: "calendar-container" }, tp = { class: "calendar-header" }, ap = /* @__PURE__ */ B("svg", {
|
|
10266
|
+
class: "icon",
|
|
10267
10267
|
"aria-hidden": "true",
|
|
10268
10268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10269
|
-
width: "24",
|
|
10270
|
-
height: "24",
|
|
10271
10269
|
fill: "none",
|
|
10272
10270
|
viewBox: "0 0 24 24"
|
|
10273
10271
|
}, [
|
|
@@ -10281,11 +10279,9 @@ const ep = { class: "calendar-container text-white w-full h-full" }, tp = { clas
|
|
|
10281
10279
|
], -1), np = [
|
|
10282
10280
|
ap
|
|
10283
10281
|
], rp = /* @__PURE__ */ B("svg", {
|
|
10284
|
-
class: "
|
|
10282
|
+
class: "icon",
|
|
10285
10283
|
"aria-hidden": "true",
|
|
10286
10284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10287
|
-
width: "24",
|
|
10288
|
-
height: "24",
|
|
10289
10285
|
fill: "none",
|
|
10290
10286
|
viewBox: "0 0 24 24"
|
|
10291
10287
|
}, [
|
|
@@ -10298,12 +10294,10 @@ const ep = { class: "calendar-container text-white w-full h-full" }, tp = { clas
|
|
|
10298
10294
|
})
|
|
10299
10295
|
], -1), op = [
|
|
10300
10296
|
rp
|
|
10301
|
-
], lp = { class: "calendar
|
|
10302
|
-
class: "
|
|
10297
|
+
], lp = { class: "calendar" }, sp = { class: "date" }, ip = { class: "events-container" }, up = { class: "event-main" }, cp = /* @__PURE__ */ B("svg", {
|
|
10298
|
+
class: "event-icon",
|
|
10303
10299
|
"aria-hidden": "true",
|
|
10304
10300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10305
|
-
width: "24",
|
|
10306
|
-
height: "24",
|
|
10307
10301
|
fill: "currentColor",
|
|
10308
10302
|
viewBox: "0 0 24 24"
|
|
10309
10303
|
}, [
|
|
@@ -10312,7 +10306,7 @@ const ep = { class: "calendar-container text-white w-full h-full" }, tp = { clas
|
|
|
10312
10306
|
d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm11-4a1 1 0 1 0-2 0v4a1 1 0 0 0 .293.707l3 3a1 1 0 0 0 1.414-1.414L13 11.586V8Z",
|
|
10313
10307
|
"clip-rule": "evenodd"
|
|
10314
10308
|
})
|
|
10315
|
-
], -1), dp = { class: "
|
|
10309
|
+
], -1), dp = { class: "event-title" }, Dl = {
|
|
10316
10310
|
__name: "calendar",
|
|
10317
10311
|
props: {
|
|
10318
10312
|
theme: {
|
|
@@ -10382,35 +10376,34 @@ const ep = { class: "calendar-container text-white w-full h-full" }, tp = { clas
|
|
|
10382
10376
|
}, 8, ["dark", "modelValue"])
|
|
10383
10377
|
]),
|
|
10384
10378
|
B("button", {
|
|
10385
|
-
|
|
10386
|
-
|
|
10379
|
+
onClick: m,
|
|
10380
|
+
class: "calendar-button"
|
|
10387
10381
|
}, op)
|
|
10388
10382
|
]),
|
|
10389
10383
|
B("div", lp, [
|
|
10390
10384
|
(k(!0), S(xe, null, $e(g(l), ($, b) => (k(), S("div", {
|
|
10391
10385
|
key: b,
|
|
10392
10386
|
class: ge([{
|
|
10393
|
-
"rounded-tl
|
|
10394
|
-
"rounded-tr
|
|
10395
|
-
}, "day-name
|
|
10387
|
+
"rounded-tl": b === 0,
|
|
10388
|
+
"rounded-tr": b === g(l).length - 1
|
|
10389
|
+
}, "day-name"])
|
|
10396
10390
|
}, Re($), 3))), 128)),
|
|
10397
10391
|
(k(!0), S(xe, null, $e(d.value, ($, b) => (k(), S("div", {
|
|
10398
10392
|
key: $.date,
|
|
10399
10393
|
class: ge([{
|
|
10400
|
-
"rounded-br
|
|
10401
|
-
}, "
|
|
10394
|
+
"rounded-br": b === d.value.length - 1
|
|
10395
|
+
}, "day"])
|
|
10402
10396
|
}, [
|
|
10403
10397
|
B("div", sp, Re($.date.getDate()), 1),
|
|
10404
10398
|
B("footer", ip, [
|
|
10405
10399
|
(k(!0), S(xe, null, $e($.events, (H) => (k(), S("div", {
|
|
10406
|
-
style: ft(`background: ${H.color}`),
|
|
10407
10400
|
key: H.title,
|
|
10408
|
-
class: "
|
|
10401
|
+
class: ge(["event", H.tag])
|
|
10409
10402
|
}, [
|
|
10410
10403
|
B("main", up, [
|
|
10411
10404
|
Xe(R, {
|
|
10412
10405
|
placement: "top",
|
|
10413
|
-
class: "
|
|
10406
|
+
class: "popper",
|
|
10414
10407
|
hover: !0,
|
|
10415
10408
|
content: H.hours
|
|
10416
10409
|
}, {
|
|
@@ -10421,7 +10414,7 @@ const ep = { class: "calendar-container text-white w-full h-full" }, tp = { clas
|
|
|
10421
10414
|
}, 1032, ["content"]),
|
|
10422
10415
|
B("p", dp, Re(H.title), 1)
|
|
10423
10416
|
])
|
|
10424
|
-
],
|
|
10417
|
+
], 2))), 128))
|
|
10425
10418
|
])
|
|
10426
10419
|
], 2))), 128))
|
|
10427
10420
|
])
|