bt-core-app 1.4.183 → 1.4.184
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/bt-core-app.js +54 -52
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Wy = Object.defineProperty;
|
|
2
2
|
var Uy = (e, t, n) => t in e ? Wy(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _e = (e, t, n) => (Uy(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { ref as U, shallowRef as Ve, computed as k, toValue as st, watch as De, onScopeDispose as fn, effectScope as jo, Fragment as xe, reactive as Fn, watchEffect as An, toRefs as Ko, capitalize as Hl, isVNode as qy, Comment as Gy, unref as M, warn as ts, provide as rn, inject as $e, defineComponent as tt, camelize as mf, h as er, getCurrentInstance as Zy, toRaw as Dn, createVNode as S, mergeProps as ge, onBeforeUnmount as In, readonly as Jo, onDeactivated as jy, onActivated as Ky, nextTick as mt, TransitionGroup as Xo, Transition as pn, isRef as ja, toRef as Pe, onBeforeMount as vf, withDirectives as tn, resolveDirective as tr, vShow as fa,
|
|
4
|
+
import { ref as U, shallowRef as Ve, computed as k, toValue as st, watch as De, onMounted as At, onScopeDispose as fn, effectScope as jo, Fragment as xe, reactive as Fn, watchEffect as An, toRefs as Ko, capitalize as Hl, isVNode as qy, Comment as Gy, unref as M, warn as ts, provide as rn, inject as $e, defineComponent as tt, camelize as mf, h as er, getCurrentInstance as Zy, toRaw as Dn, createVNode as S, mergeProps as ge, onBeforeUnmount as In, readonly as Jo, onDeactivated as jy, onActivated as Ky, nextTick as mt, TransitionGroup as Xo, Transition as pn, isRef as ja, toRef as Pe, onBeforeMount as vf, withDirectives as tn, resolveDirective as tr, vShow as fa, onUpdated as Jy, Text as Xy, resolveDynamicComponent as Ol, markRaw as Qy, Teleport as hf, cloneVNode as eg, createTextVNode as Je, onBeforeUpdate as yf, vModelText as tg, resolveComponent as Yr, openBlock as H, createBlock as se, withCtx as K, renderSlot as de, createCommentVNode as re, createElementBlock as ie, renderList as et, withKeys as Ze, toDisplayString as ze, normalizeStyle as mn, withModifiers as wt, createElementVNode as Ye, normalizeClass as lt, useSlots as Sr, onUnmounted as ns, createSlots as hn, normalizeProps as Vt, guardReactiveProps as en, render as dc, getCurrentScope as ng } from "vue";
|
|
5
5
|
import { watchArray as gf, useStorage as ag, useEventListener as yn, toValue as ra, useParentElement as rg, useResizeObserver as lg, useArrayUnique as ig, useArrayDifference as fc, watchDebounced as sg, useFocus as og, tryOnMounted as ug } from "@vueuse/core";
|
|
6
6
|
import { defineStore as bf } from "pinia";
|
|
7
7
|
import { useRouter as as, useRoute as Qo } from "vue-router";
|
|
@@ -8226,7 +8226,7 @@ function B0(e, t = {}) {
|
|
|
8226
8226
|
if (g.value)
|
|
8227
8227
|
return;
|
|
8228
8228
|
const Y = ra(e);
|
|
8229
|
-
Y && (A(Y, E ?? N0), P(q), o.push(yn(Y.$el, "mousedown", p)), o.push(yn(Y.$el, "touchstart", p)), g.value = !0, n = q);
|
|
8229
|
+
Y && (console.log("adding handles"), console.log(Y), A(Y, E ?? N0), P(q), o.push(yn(Y.$el, "mousedown", p)), o.push(yn(Y.$el, "touchstart", p)), g.value = !0, n = q);
|
|
8230
8230
|
}
|
|
8231
8231
|
function N(E) {
|
|
8232
8232
|
if (!g.value)
|
|
@@ -8251,7 +8251,9 @@ function R0(e) {
|
|
|
8251
8251
|
function f(h) {
|
|
8252
8252
|
d(), h == "page" ? s(h) : h == "blade" ? u(["l", "r"], h) : h == "freestyle" ? (s(), u(void 0, h), m()) : h == "inline" && s();
|
|
8253
8253
|
}
|
|
8254
|
-
return
|
|
8254
|
+
return De(i, (h) => f(h)), At(() => {
|
|
8255
|
+
f(i.value);
|
|
8256
|
+
}), {
|
|
8255
8257
|
isMobile: r,
|
|
8256
8258
|
variant: i,
|
|
8257
8259
|
bladeData: n
|
|
@@ -12190,7 +12192,7 @@ const lp = [null, "prominent", "default", "comfortable", "compact"], ip = Se({
|
|
|
12190
12192
|
});
|
|
12191
12193
|
function sv() {
|
|
12192
12194
|
const e = Ve(!1);
|
|
12193
|
-
return
|
|
12195
|
+
return At(() => {
|
|
12194
12196
|
window.requestAnimationFrame(() => {
|
|
12195
12197
|
e.value = !0;
|
|
12196
12198
|
});
|
|
@@ -12379,7 +12381,7 @@ function xu(e, t) {
|
|
|
12379
12381
|
const h = a.find((c) => !c.disabled);
|
|
12380
12382
|
h && e.mandatory === "force" && !r.value.length && (r.value = [h.id]);
|
|
12381
12383
|
}
|
|
12382
|
-
|
|
12384
|
+
At(() => {
|
|
12383
12385
|
u();
|
|
12384
12386
|
}), In(() => {
|
|
12385
12387
|
n = !0;
|
|
@@ -14145,7 +14147,7 @@ function Hp(e) {
|
|
|
14145
14147
|
});
|
|
14146
14148
|
}), In(() => {
|
|
14147
14149
|
l == null || l.unregister(w.value);
|
|
14148
|
-
}),
|
|
14150
|
+
}), At(async () => {
|
|
14149
14151
|
h.value.lazy || await T(!0), l == null || l.update(w.value, c.value, f.value);
|
|
14150
14152
|
}), Gn(() => h.value.input, () => {
|
|
14151
14153
|
De(r, () => {
|
|
@@ -16822,7 +16824,7 @@ function ES() {
|
|
|
16822
16824
|
} = Zl();
|
|
16823
16825
|
if (e) {
|
|
16824
16826
|
const t = Ve(!1);
|
|
16825
|
-
return
|
|
16827
|
+
return At(() => {
|
|
16826
16828
|
t.value = !0;
|
|
16827
16829
|
}), t;
|
|
16828
16830
|
} else
|
|
@@ -18080,7 +18082,7 @@ const XS = Se({
|
|
|
18080
18082
|
passive: !0
|
|
18081
18083
|
}), (x = l.value) == null || x[g]("scrollend", u));
|
|
18082
18084
|
}
|
|
18083
|
-
|
|
18085
|
+
At(() => {
|
|
18084
18086
|
l.value = zm(a.vnode.el, !0), o(!0);
|
|
18085
18087
|
}), fn(o);
|
|
18086
18088
|
}), qe(() => {
|
|
@@ -19846,7 +19848,7 @@ function Ek(e) {
|
|
|
19846
19848
|
top: a.value.top
|
|
19847
19849
|
}];
|
|
19848
19850
|
});
|
|
19849
|
-
|
|
19851
|
+
At(() => {
|
|
19850
19852
|
De(n, (d) => {
|
|
19851
19853
|
d ? window.addEventListener("scroll", u, {
|
|
19852
19854
|
passive: !0
|
|
@@ -19944,7 +19946,7 @@ function Nk(e) {
|
|
|
19944
19946
|
touchless: l,
|
|
19945
19947
|
position: i
|
|
19946
19948
|
} = e;
|
|
19947
|
-
|
|
19949
|
+
At(() => {
|
|
19948
19950
|
window.addEventListener("touchstart", x, {
|
|
19949
19951
|
passive: !0
|
|
19950
19952
|
}), window.addEventListener("touchmove", C, {
|
|
@@ -20481,7 +20483,7 @@ const Bk = ["start", "end", "left", "right", "top", "bottom"], Rk = Se({
|
|
|
20481
20483
|
v.value = Math.floor((Y - F) / N), o.value = Ge(Y);
|
|
20482
20484
|
});
|
|
20483
20485
|
}
|
|
20484
|
-
|
|
20486
|
+
At(I), De(l, I), De(() => e.rows, I), De(() => e.maxRows, I), De(() => e.density, I);
|
|
20485
20487
|
let D;
|
|
20486
20488
|
return De(b, (L) => {
|
|
20487
20489
|
L ? (D = new ResizeObserver(I), D.observe(b.value)) : D == null || D.disconnect();
|
|
@@ -20939,7 +20941,7 @@ function Ou(e, t, n) {
|
|
|
20939
20941
|
Gt({ deepRefresh: !0 });
|
|
20940
20942
|
}), gf([P, () => e.items], () => {
|
|
20941
20943
|
ln();
|
|
20942
|
-
}),
|
|
20944
|
+
}), At(async () => {
|
|
20943
20945
|
var ce;
|
|
20944
20946
|
e.eager == !0 && await Gt({ deepRefresh: ((ce = i == null ? void 0 : i.params) == null ? void 0 : ce.refresh) == "true" });
|
|
20945
20947
|
}), {
|
|
@@ -21273,7 +21275,7 @@ const Zk = {
|
|
|
21273
21275
|
});
|
|
21274
21276
|
return De(m.showSearch, () => {
|
|
21275
21277
|
f.value = !0;
|
|
21276
|
-
}),
|
|
21278
|
+
}), At(() => {
|
|
21277
21279
|
x.value && (f.value = !0);
|
|
21278
21280
|
}), (v, p) => {
|
|
21279
21281
|
const I = Yr("bt-header-option"), D = Yr("bt-blade");
|
|
@@ -24705,7 +24707,7 @@ function Nh(e, t) {
|
|
|
24705
24707
|
const i = aC(l);
|
|
24706
24708
|
return n.setMonth(t, Math.min(r, i)), n;
|
|
24707
24709
|
}
|
|
24708
|
-
function
|
|
24710
|
+
function Dt(e, t) {
|
|
24709
24711
|
let n = Oe(e);
|
|
24710
24712
|
return isNaN(+n) ? ht(e, NaN) : (t.year != null && n.setFullYear(t.year), t.month != null && (n = Nh(n, t.month)), t.date != null && n.setDate(t.date), t.hours != null && n.setHours(t.hours), t.minutes != null && n.setMinutes(t.minutes), t.seconds != null && n.setSeconds(t.seconds), t.milliseconds != null && n.setMilliseconds(t.milliseconds), n);
|
|
24711
24713
|
}
|
|
@@ -25010,7 +25012,7 @@ function ox(e, t) {
|
|
|
25010
25012
|
}
|
|
25011
25013
|
const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t}"]`), Wh = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), ac = (e) => ha(e, "dd-MM-yyyy"), Qs = (e) => Array.isArray(e), es = (e, t) => t.get(ac(e)), cx = (e, t) => e ? t ? t instanceof Map ? !!es(e, t) : t(ve(e)) : !1 : !0, tf = (e, t, n, a, r, l) => {
|
|
25012
25014
|
const i = Uo(e, t.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: l });
|
|
25013
|
-
return xl(i) && Th(i) ? a || r ? i :
|
|
25015
|
+
return xl(i) && Th(i) ? a || r ? i : Dt(i, {
|
|
25014
25016
|
hours: +n.hours,
|
|
25015
25017
|
minutes: +(n == null ? void 0 : n.minutes),
|
|
25016
25018
|
seconds: +(n == null ? void 0 : n.seconds),
|
|
@@ -25049,7 +25051,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
25049
25051
|
let r = e ? ve(e) : ve();
|
|
25050
25052
|
return (t || t === 0) && (r = Bh(r, +t)), (n || n === 0) && (r = Rh(r, +n)), (a || a === 0) && (r = ju(r, +a)), Zu(r, 0);
|
|
25051
25053
|
}, Rt = (e, t) => !e || !t ? !1 : Rl(_n(e), _n(t)), ut = (e, t) => !e || !t ? !1 : Fr(_n(e), _n(t)), Wt = (e, t) => !e || !t ? !1 : Bl(_n(e), _n(t)), bs = (e, t, n) => e != null && e[0] && e != null && e[1] ? Wt(n, e[0]) && Rt(n, e[1]) : e != null && e[0] && t ? Wt(n, e[0]) && Rt(n, t) || Rt(n, e[0]) && Wt(n, t) : !1, Un = (e) => {
|
|
25052
|
-
const t =
|
|
25054
|
+
const t = Dt(new Date(e), { date: 1 });
|
|
25053
25055
|
return _n(t);
|
|
25054
25056
|
}, eo = (e, t, n) => t && (n || n === 0) ? Object.fromEntries(
|
|
25055
25057
|
["hours", "minutes", "seconds"].map((a) => a === t ? [a, n] : [a, isNaN(+e[a]) ? void 0 : +e[a]])
|
|
@@ -25093,7 +25095,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
25093
25095
|
seconds: t ? jr(ve()) : 0
|
|
25094
25096
|
};
|
|
25095
25097
|
return Object.assign(n, e);
|
|
25096
|
-
}, qa = (e, t, n) => [
|
|
25098
|
+
}, qa = (e, t, n) => [Dt(ve(e), { date: 1 }), Dt(ve(), { month: t, year: n, date: 1 })], Aa = (e, t, n) => {
|
|
25097
25099
|
let a = e ? ve(e) : ve();
|
|
25098
25100
|
return (t || t === 0) && (a = Nh(a, t)), n && (a = da(a, n)), a;
|
|
25099
25101
|
}, jh = (e, t, n, a, r) => {
|
|
@@ -25114,7 +25116,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
25114
25116
|
if (t)
|
|
25115
25117
|
return e();
|
|
25116
25118
|
throw new Error(nc.prop("range"));
|
|
25117
|
-
}, qo = (e) => Array.isArray(e) ? xl(e[0]) && (e[1] ? xl(e[1]) : !0) : e ? xl(e) : !1, yx = (e, t) =>
|
|
25119
|
+
}, qo = (e) => Array.isArray(e) ? xl(e[0]) && (e[1] ? xl(e[1]) : !0) : e ? xl(e) : !1, yx = (e, t) => Dt(t ?? ve(), {
|
|
25118
25120
|
hours: +e.hours || 0,
|
|
25119
25121
|
minutes: +e.minutes || 0,
|
|
25120
25122
|
seconds: +e.seconds || 0
|
|
@@ -25123,7 +25125,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
25123
25125
|
return !0;
|
|
25124
25126
|
if (a) {
|
|
25125
25127
|
const r = n === "max" ? Rl(e, t) : Bl(e, t), l = { seconds: 0, milliseconds: 0 };
|
|
25126
|
-
return r || Fr(
|
|
25128
|
+
return r || Fr(Dt(e, l), Dt(t, l));
|
|
25127
25129
|
}
|
|
25128
25130
|
return n === "max" ? e.getTime() <= t.getTime() : e.getTime() >= t.getTime();
|
|
25129
25131
|
}, no = (e, t, n) => e ? yx(e, t) : ve(n ?? t), nf = (e, t, n, a, r) => {
|
|
@@ -25133,7 +25135,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
25133
25135
|
}
|
|
25134
25136
|
const l = no(e, a, t);
|
|
25135
25137
|
return to(a, l, n, !!t) && r;
|
|
25136
|
-
}, ao = (e) =>
|
|
25138
|
+
}, ao = (e) => Dt(ve(), br(e)), gx = (e, t) => e instanceof Map ? Array.from(e.values()).filter((n) => nt(ve(n)) === t).map((n) => ot(n)) : [], Jh = (e, t, n) => typeof e == "function" ? e({ month: t, year: n }) : !!e.months.find((a) => a.month === t && a.year === n), rc = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), pl = Fn({
|
|
25137
25139
|
menuFocused: !1,
|
|
25138
25140
|
shiftKeyInMenu: !1
|
|
25139
25141
|
}), Xh = () => {
|
|
@@ -25459,7 +25461,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
25459
25461
|
Za(null, +V[1].hours, +V[1].minutes, V[1].seconds)
|
|
25460
25462
|
)
|
|
25461
25463
|
] : w(V, Za(null, V.hours, V.minutes, V.seconds)), C = (V) => {
|
|
25462
|
-
const j =
|
|
25464
|
+
const j = Dt(ve(), { date: 1 });
|
|
25463
25465
|
return Array.isArray(V) ? s.value.enabled ? V.map((ae) => w(ae, Aa(j, +ae.month, +ae.year))) : ki(
|
|
25464
25466
|
() => [
|
|
25465
25467
|
w(V[0], Aa(j, +V[0].month, +V[0].year)),
|
|
@@ -25542,7 +25544,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
25542
25544
|
let h = m;
|
|
25543
25545
|
return n.value.years.includes(nt(h)) ? (h = f ? zu(m, 1) : Fh(m, 1), i(h, f)) : h;
|
|
25544
25546
|
}, s = (m, f = !1) => {
|
|
25545
|
-
const h =
|
|
25547
|
+
const h = Dt(ve(), { month: e.month, year: e.year });
|
|
25546
25548
|
let c = m ? Kn(h, 1) : Kr(h, 1);
|
|
25547
25549
|
e.disableYearSelect && (c = da(c, e.year));
|
|
25548
25550
|
let o = ot(c), y = nt(c);
|
|
@@ -25550,7 +25552,7 @@ const ux = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
25550
25552
|
}, u = (m, f, h) => {
|
|
25551
25553
|
t("update-month-year", { month: m, year: f, fromNav: h });
|
|
25552
25554
|
}, d = k(() => (m) => jh(
|
|
25553
|
-
|
|
25555
|
+
Dt(ve(), { month: e.month, year: e.year }),
|
|
25554
25556
|
a.value.maxDate,
|
|
25555
25557
|
a.value.minDate,
|
|
25556
25558
|
e.preventMinMaxNavigation,
|
|
@@ -26360,7 +26362,7 @@ const Rx = ({
|
|
|
26360
26362
|
defaultedMultiDates: m,
|
|
26361
26363
|
getDefaultPattern: f
|
|
26362
26364
|
} = $t(a), { isTimeValid: h, isMonthValid: c } = lr(a), { buildMatrix: o } = rr(), y = U(null), g = U(null), w = U(!1), x = U({}), C = U(null), T = U(null);
|
|
26363
|
-
|
|
26365
|
+
At(() => {
|
|
26364
26366
|
a.arrowNavigation && o([Qt(y), Qt(g)], "actionRow"), A(), window.addEventListener("resize", A);
|
|
26365
26367
|
}), ns(() => {
|
|
26366
26368
|
window.removeEventListener("resize", A);
|
|
@@ -26494,7 +26496,7 @@ const Rx = ({
|
|
|
26494
26496
|
), { hideNavigationButtons: f } = ws(), h = U(!1), c = U(null), o = U(null), y = U([]), g = U(), w = U(null), x = U(0), C = U(null);
|
|
26495
26497
|
yf(() => {
|
|
26496
26498
|
c.value = null;
|
|
26497
|
-
}),
|
|
26499
|
+
}), At(() => {
|
|
26498
26500
|
mt().then(() => L()), s.noOverlayFocus || A(), T(!0);
|
|
26499
26501
|
}), ns(() => T(!1));
|
|
26500
26502
|
const T = (z) => {
|
|
@@ -26692,7 +26694,7 @@ const Rx = ({
|
|
|
26692
26694
|
emits: ["activate", "set-ref"],
|
|
26693
26695
|
setup(e, { emit: t }) {
|
|
26694
26696
|
const n = t, a = U(null);
|
|
26695
|
-
return
|
|
26697
|
+
return At(() => n("set-ref", a)), (r, l) => (H(), ie("button", {
|
|
26696
26698
|
ref_key: "elRef",
|
|
26697
26699
|
ref: a,
|
|
26698
26700
|
type: "button",
|
|
@@ -26847,7 +26849,7 @@ const Rx = ({
|
|
|
26847
26849
|
emit: d
|
|
26848
26850
|
}) => {
|
|
26849
26851
|
const m = k(() => tc(l.yearRange, l.locale, l.reverseYears)), f = U([!1]), h = k(() => (b, v) => {
|
|
26850
|
-
const p =
|
|
26852
|
+
const p = Dt(Un(/* @__PURE__ */ new Date()), {
|
|
26851
26853
|
month: u.value(b),
|
|
26852
26854
|
year: s.value(b)
|
|
26853
26855
|
});
|
|
@@ -26863,13 +26865,13 @@ const Rx = ({
|
|
|
26863
26865
|
if (b === 0)
|
|
26864
26866
|
a.value[b] = a.value[0];
|
|
26865
26867
|
else {
|
|
26866
|
-
const v =
|
|
26868
|
+
const v = Dt(ve(), a.value[b - 1]);
|
|
26867
26869
|
a.value[b] = { month: ot(v), year: nt(zu(v, 1)) };
|
|
26868
26870
|
}
|
|
26869
26871
|
}, o = (b) => {
|
|
26870
26872
|
if (!b)
|
|
26871
26873
|
return c();
|
|
26872
|
-
const v =
|
|
26874
|
+
const v = Dt(ve(), a.value[b]);
|
|
26873
26875
|
return a.value[0].year = nt(Fh(v, e.value.count - 1)), c();
|
|
26874
26876
|
}, y = (b) => l.focusStartDate ? b[0] : b[1] ? b[1] : b[0], g = () => {
|
|
26875
26877
|
if (r.value) {
|
|
@@ -26877,7 +26879,7 @@ const Rx = ({
|
|
|
26877
26879
|
a.value[0] = { month: ot(b), year: nt(b) };
|
|
26878
26880
|
}
|
|
26879
26881
|
};
|
|
26880
|
-
|
|
26882
|
+
At(() => {
|
|
26881
26883
|
g(), e.value.count && c();
|
|
26882
26884
|
});
|
|
26883
26885
|
const w = (b, v) => {
|
|
@@ -26941,7 +26943,7 @@ const Rx = ({
|
|
|
26941
26943
|
props: e,
|
|
26942
26944
|
emit: t
|
|
26943
26945
|
});
|
|
26944
|
-
|
|
26946
|
+
At(() => {
|
|
26945
26947
|
e.startDate && (h.value && e.focusStartDate || !h.value) && C(nt(ve(e.startDate)), 0);
|
|
26946
26948
|
});
|
|
26947
26949
|
const D = (_) => _ ? { month: ot(_), year: nt(_) } : { month: null, year: null }, L = () => h.value ? Array.isArray(h.value) ? h.value.map((_) => D(_)) : D(h.value) : D(), P = (_, V) => {
|
|
@@ -27038,7 +27040,7 @@ const Rx = ({
|
|
|
27038
27040
|
],
|
|
27039
27041
|
setup(e, { expose: t, emit: n }) {
|
|
27040
27042
|
const a = n, r = Sr(), l = Tn(r, "yearMode"), i = e;
|
|
27041
|
-
|
|
27043
|
+
At(() => {
|
|
27042
27044
|
i.shadow || a("mount", null);
|
|
27043
27045
|
});
|
|
27044
27046
|
const {
|
|
@@ -27120,7 +27122,7 @@ const Rx = ({
|
|
|
27120
27122
|
}
|
|
27121
27123
|
}), lT = (e, t) => {
|
|
27122
27124
|
const { modelValue: n } = ri(e, t), a = U(null), { defaultedHighlight: r, defaultedMultiDates: l, defaultedFilters: i, defaultedRange: s, propDates: u } = $t(e), d = U();
|
|
27123
|
-
|
|
27125
|
+
At(() => {
|
|
27124
27126
|
e.startDate && (n.value && e.focusStartDate || !n.value) && (d.value = nt(ve(e.startDate)));
|
|
27125
27127
|
});
|
|
27126
27128
|
const m = (o) => Array.isArray(n.value) ? n.value.some((y) => nt(y) === o) : n.value ? nt(n.value) === o : !1, f = (o) => s.value.enabled && Array.isArray(n.value) ? bs(n.value, a.value, c(o)) : !1, h = k(() => Jr(tc(e.yearRange, e.locale, e.reverseYears), (o) => {
|
|
@@ -27233,10 +27235,10 @@ const Rx = ({
|
|
|
27233
27235
|
minutes: !1,
|
|
27234
27236
|
seconds: !1
|
|
27235
27237
|
}), y = U("AM"), g = U(null), w = U([]);
|
|
27236
|
-
|
|
27238
|
+
At(() => {
|
|
27237
27239
|
a("mounted");
|
|
27238
27240
|
});
|
|
27239
|
-
const x = (ne) =>
|
|
27241
|
+
const x = (ne) => Dt(/* @__PURE__ */ new Date(), {
|
|
27240
27242
|
hours: ne.hours,
|
|
27241
27243
|
minutes: ne.minutes,
|
|
27242
27244
|
seconds: r.enableSeconds ? ne.seconds : 0,
|
|
@@ -27249,7 +27251,7 @@ const Rx = ({
|
|
|
27249
27251
|
return !r.validateTime(ne, W);
|
|
27250
27252
|
}
|
|
27251
27253
|
return !1;
|
|
27252
|
-
}, v = k(() => (ne) => !J(+r[ne] + +r[`${ne}Increment`], ne) || b(ne, !0)), p = k(() => (ne) => !J(+r[ne] - +r[`${ne}Increment`], ne) || b(ne, !1)), I = (ne, oe) => ph(
|
|
27254
|
+
}, v = k(() => (ne) => !J(+r[ne] + +r[`${ne}Increment`], ne) || b(ne, !0)), p = k(() => (ne) => !J(+r[ne] - +r[`${ne}Increment`], ne) || b(ne, !1)), I = (ne, oe) => ph(Dt(ve(), ne), oe), D = (ne, oe) => tx(Dt(ve(), ne), oe), L = k(
|
|
27253
27255
|
() => ({
|
|
27254
27256
|
dp__time_col: !0,
|
|
27255
27257
|
dp__time_col_block: !r.timePickerInline,
|
|
@@ -27501,7 +27503,7 @@ const Rx = ({
|
|
|
27501
27503
|
],
|
|
27502
27504
|
setup(e, { expose: t, emit: n }) {
|
|
27503
27505
|
const a = n, r = e, { buildMatrix: l, setTimePicker: i } = rr(), s = Sr(), { defaultedTransitions: u, defaultedAriaLabels: d, defaultedTextInput: m, defaultedConfig: f, defaultedRange: h } = $t(r), { transitionName: c, showTransition: o } = ai(u), { hideNavigationButtons: y } = ws(), g = U(null), w = U(null), x = U([]), C = U(null);
|
|
27504
|
-
|
|
27506
|
+
At(() => {
|
|
27505
27507
|
a("mount"), !r.timePicker && r.arrowNavigation ? l([Qt(g.value)], "time") : i(!0, r.timePicker);
|
|
27506
27508
|
});
|
|
27507
27509
|
const T = k(() => h.value.enabled && r.modelAuto ? zh(r.internalModelValue) : !0), A = U(!1), b = (E) => ({
|
|
@@ -27725,10 +27727,10 @@ const Rx = ({
|
|
|
27725
27727
|
if (e.startTime) {
|
|
27726
27728
|
if (Array.isArray(e.startTime)) {
|
|
27727
27729
|
const T = h(e.startTime[0]), A = h(e.startTime[1]);
|
|
27728
|
-
return [
|
|
27730
|
+
return [Dt(ve(), T), Dt(ve(), A)];
|
|
27729
27731
|
}
|
|
27730
27732
|
const C = h(e.startTime);
|
|
27731
|
-
return
|
|
27733
|
+
return Dt(ve(), C);
|
|
27732
27734
|
}
|
|
27733
27735
|
return l.value.enabled ? [null, null] : null;
|
|
27734
27736
|
}, o = () => {
|
|
@@ -27747,7 +27749,7 @@ const Rx = ({
|
|
|
27747
27749
|
[C.seconds, T.seconds]
|
|
27748
27750
|
) : g(C.hours, C.minutes, C.seconds);
|
|
27749
27751
|
};
|
|
27750
|
-
|
|
27752
|
+
At(() => {
|
|
27751
27753
|
if (!e.shadow)
|
|
27752
27754
|
return d(r.value), n.value ? w() : o();
|
|
27753
27755
|
});
|
|
@@ -27830,7 +27832,7 @@ const Rx = ({
|
|
|
27830
27832
|
defaultedHighlight: m,
|
|
27831
27833
|
propDates: f
|
|
27832
27834
|
} = $t(r), { transitionName: h, showTransition: c } = ai(l), { buildMatrix: o } = rr(), { handleMonthYearChange: y, isDisabled: g, updateMonthYear: w } = Bx(r, a), { showLeftIcon: x, showRightIcon: C } = ws(), T = U(!1), A = U(!1), b = U([null, null, null, null]);
|
|
27833
|
-
|
|
27835
|
+
At(() => {
|
|
27834
27836
|
a("mount");
|
|
27835
27837
|
});
|
|
27836
27838
|
const v = (O) => ({
|
|
@@ -28084,7 +28086,7 @@ const Rx = ({
|
|
|
28084
28086
|
left: "",
|
|
28085
28087
|
transform: ""
|
|
28086
28088
|
}), o = U([]), y = U(null), g = U(!0), w = U(""), x = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), C = U([]), T = U({ left: "50%" }), A = U(!1), b = k(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), v = k(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : ax(r.formatLocale, r.locale, +r.weekStart));
|
|
28087
|
-
|
|
28089
|
+
At(() => {
|
|
28088
28090
|
a("mount", { cmp: "calendar", refs: o }), s.value.noSwipe || y.value && (y.value.addEventListener("touchstart", J, { passive: !1 }), y.value.addEventListener("touchend", z, { passive: !1 }), y.value.addEventListener("touchmove", O, { passive: !1 })), r.monthChangeOnScroll && y.value && y.value.addEventListener("wheel", V, { passive: !1 });
|
|
28089
28091
|
});
|
|
28090
28092
|
const p = (oe) => oe ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", I = (oe, Ne) => {
|
|
@@ -28321,7 +28323,7 @@ const Rx = ({
|
|
|
28321
28323
|
JSON.stringify(ee) !== JSON.stringify(me) && N();
|
|
28322
28324
|
},
|
|
28323
28325
|
{ deep: !0 }
|
|
28324
|
-
),
|
|
28326
|
+
), At(() => {
|
|
28325
28327
|
e.shadow || (i.value || (ae(), m.value && b(m.value)), N(!0), e.focusStartDate && e.startDate && ae());
|
|
28326
28328
|
});
|
|
28327
28329
|
const F = k(() => {
|
|
@@ -28337,7 +28339,7 @@ const Rx = ({
|
|
|
28337
28339
|
}, E = () => Array.isArray(i.value) && f.value.enabled ? ot(i.value[0]) === ot(i.value[1] ?? i.value[0]) : !1, q = (ee, me = !1) => {
|
|
28338
28340
|
if ((!d.value.count || !d.value.static || me) && L(0, ot(ee), nt(ee)), d.value.count && (!d.value.solo || !i.value || E()))
|
|
28339
28341
|
for (let Ie = 1; Ie < d.value.count; Ie++) {
|
|
28340
|
-
const Ue =
|
|
28342
|
+
const Ue = Dt(ve(), { month: I.value(Ie - 1), year: D.value(Ie - 1) }), fe = ph(Ue, { months: 1 });
|
|
28341
28343
|
s.value[Ie] = { month: ot(fe), year: nt(fe) };
|
|
28342
28344
|
}
|
|
28343
28345
|
}, Y = (ee, me) => {
|
|
@@ -28368,15 +28370,15 @@ const Rx = ({
|
|
|
28368
28370
|
const me = i.value;
|
|
28369
28371
|
O(me, ee), d.value.count && d.value.solo && j();
|
|
28370
28372
|
}, _ = (ee, me) => {
|
|
28371
|
-
const Ie =
|
|
28373
|
+
const Ie = Dt(ve(), { month: I.value(me), year: D.value(me) }), Ue = ee < 0 ? Kn(Ie, 1) : Kr(Ie, 1);
|
|
28372
28374
|
y(ot(Ue), nt(Ue), ee < 0, e.preventMinMaxNavigation) && (L(me, ot(Ue), nt(Ue)), t("update-month-year", { instance: me, month: ot(Ue), year: nt(Ue) }), d.value.count && !d.value.solo && V(me), n());
|
|
28373
28375
|
}, V = (ee) => {
|
|
28374
28376
|
for (let me = ee - 1; me >= 0; me--) {
|
|
28375
|
-
const Ie = Kr(
|
|
28377
|
+
const Ie = Kr(Dt(ve(), { month: I.value(me + 1), year: D.value(me + 1) }), 1);
|
|
28376
28378
|
L(me, ot(Ie), nt(Ie));
|
|
28377
28379
|
}
|
|
28378
28380
|
for (let me = ee + 1; me <= d.value.count - 1; me++) {
|
|
28379
|
-
const Ie = Kn(
|
|
28381
|
+
const Ie = Kn(Dt(ve(), { month: I.value(me - 1), year: D.value(me - 1) }), 1);
|
|
28380
28382
|
L(me, ot(Ie), nt(Ie));
|
|
28381
28383
|
}
|
|
28382
28384
|
}, j = () => {
|
|
@@ -28469,7 +28471,7 @@ const Rx = ({
|
|
|
28469
28471
|
if (L(0, me, Ie), d.value.count > 0)
|
|
28470
28472
|
for (let Ue = 1; Ue < d.value.count; Ue++) {
|
|
28471
28473
|
const fe = mx(
|
|
28472
|
-
|
|
28474
|
+
Dt(ve(ee), { year: I.value(Ue - 1), month: D.value(Ue - 1) })
|
|
28473
28475
|
);
|
|
28474
28476
|
L(Ue, fe.month, fe.year);
|
|
28475
28477
|
}
|
|
@@ -28767,7 +28769,7 @@ const Rx = ({
|
|
|
28767
28769
|
}
|
|
28768
28770
|
return !1;
|
|
28769
28771
|
}, I = (N, E) => N.quarter === Ud(E) && N.year === nt(E), D = (N) => typeof l.value == "function" ? l.value({ quarter: Ud(N), year: nt(N) }) : !!l.value.quarters.find((E) => I(E, N)), L = k(() => (N) => {
|
|
28770
|
-
const E =
|
|
28772
|
+
const E = Dt(/* @__PURE__ */ new Date(), { year: f.value(N) });
|
|
28771
28773
|
return o2({
|
|
28772
28774
|
start: Ah(E),
|
|
28773
28775
|
end: u2(E)
|
|
@@ -28966,7 +28968,7 @@ const Rx = ({
|
|
|
28966
28968
|
menuWrapRef: l.value
|
|
28967
28969
|
};
|
|
28968
28970
|
}), { setMenuFocused: s, setShiftKey: u, control: d } = Xh(), m = Sr(), { defaultedTextInput: f, defaultedInline: h, defaultedConfig: c } = $t(r), o = U(null), y = U(0), g = U(null), w = U(!1), x = U(null);
|
|
28969
|
-
|
|
28971
|
+
At(() => {
|
|
28970
28972
|
if (!r.shadow) {
|
|
28971
28973
|
w.value = !0, C(), window.addEventListener("resize", C);
|
|
28972
28974
|
const W = Qt(l);
|
|
@@ -29245,7 +29247,7 @@ const Rx = ({
|
|
|
29245
29247
|
defaultedRange: D,
|
|
29246
29248
|
defaultedMultiDates: L
|
|
29247
29249
|
} = $t(r), { menuTransition: P, showTransition: F } = ai(b);
|
|
29248
|
-
|
|
29250
|
+
At(() => {
|
|
29249
29251
|
V(r.modelValue), mt().then(() => {
|
|
29250
29252
|
if (!p.value.enabled) {
|
|
29251
29253
|
const fe = z(c.value);
|
|
@@ -29886,7 +29888,7 @@ function oy(e, t) {
|
|
|
29886
29888
|
I.value = B != null;
|
|
29887
29889
|
}), De(() => e.refreshToggle, () => {
|
|
29888
29890
|
J({ deepRefresh: !0 });
|
|
29889
|
-
}),
|
|
29891
|
+
}), At(async () => {
|
|
29890
29892
|
var B;
|
|
29891
29893
|
e.eager == !0 && await J({ deepRefresh: ((B = d == null ? void 0 : d.params) == null ? void 0 : B.refresh) == "true" });
|
|
29892
29894
|
}), {
|
package/dist/index.d.ts
CHANGED
|
@@ -1309,7 +1309,7 @@ export declare interface UseItemOptions {
|
|
|
1309
1309
|
* @param options
|
|
1310
1310
|
*/
|
|
1311
1311
|
export declare function useList<T extends BaseIDModel>(props: ListProps, emit?: ListEvents, options?: UseListOptions): {
|
|
1312
|
-
blades: Ref<BladeData[]>;
|
|
1312
|
+
blades: Ref<BladeData[]>;
|
|
1313
1313
|
bladeData: BladeData;
|
|
1314
1314
|
closeBlade: (options?: CloseBladeOptions_2 | undefined) => void;
|
|
1315
1315
|
updateBlade: (data: UpdateBladeData_2<GetOptions>) => void;
|
package/package.json
CHANGED