prlg-ui 1.7.35 → 1.7.36
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/index.d.ts +1 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.es.js +220 -215
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, computed as O, resolveComponent as qt, createBlock as z, openBlock as f, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as E, computed as O, resolveComponent as qt, createBlock as z, openBlock as f, resolveDynamicComponent as Ae, normalizeClass as F, withCtx as Y, createCommentVNode as H, createElementBlock as b, renderSlot as q, Fragment as ae, createTextVNode as he, toDisplayString as W, ref as D, useTemplateRef as Be, onMounted as ye, createElementVNode as S, createVNode as N, renderList as Te, unref as y, mergeModels as J, useModel as ne, useId as Ne, withDirectives as Ie, vModelCheckbox as gt, shallowRef as Le, watch as oe, getCurrentScope as Ro, onScopeDispose as So, shallowReadonly as qe, useCssVars as Po, toRefs as Ao, onUnmounted as tt, Transition as ze, normalizeStyle as ue, withModifiers as ut, vModelDynamic as To, vModelRadio as _o, provide as Ce, useSlots as jt, inject as fe, nextTick as ke, toValue as je, isRef as Vo, vModelText as Ut, reactive as Kt, TransitionGroup as Io, Teleport as ot, vShow as Yt, createApp as Oo } from "vue";
|
|
2
2
|
import { P as Xt, f as Mo, g as Bo, I as ht, A as Lo, c as wt, e as Eo, S as Do, a as Ho, b as Zt, M as Fo, E as zo, B as Go, C as No, W as Wo, d as qo } from "./WarningFillIcon-CW6DKekz.js";
|
|
3
3
|
import { o as Jt } from "./onClickOutside.util-BWGmebYq.js";
|
|
4
4
|
import { _ as pe, a as jo, C as Qt } from "./FileIcon-DkEbi-bi.js";
|
|
@@ -35,13 +35,13 @@ const Yo = {
|
|
|
35
35
|
"button--full": e.full
|
|
36
36
|
}
|
|
37
37
|
]);
|
|
38
|
-
return (n, l) => (f(), z(
|
|
38
|
+
return (n, l) => (f(), z(Ae(t.value), {
|
|
39
39
|
to: n.url,
|
|
40
40
|
class: F(o.value),
|
|
41
41
|
disabled: n.disabled
|
|
42
42
|
}, {
|
|
43
43
|
default: Y(() => [
|
|
44
|
-
n.icon ? (f(), z(
|
|
44
|
+
n.icon ? (f(), z(Ae(n.icon), {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "button__icon"
|
|
47
47
|
})) : H("", !0),
|
|
@@ -79,12 +79,12 @@ const Yo = {
|
|
|
79
79
|
ref: o,
|
|
80
80
|
class: F(["sleed-deal-menu sleed-deal__items", { "sleed-deal-menu--open": t.value }])
|
|
81
81
|
}, [
|
|
82
|
-
(f(!0), b(ae, null,
|
|
82
|
+
(f(!0), b(ae, null, Te(s.items, (a) => (f(), b("div", {
|
|
83
83
|
class: "sleed-deal-menu__item",
|
|
84
84
|
key: a.label,
|
|
85
85
|
onClick: (u) => i(a)
|
|
86
86
|
}, [
|
|
87
|
-
a.icon ? (f(), z(
|
|
87
|
+
a.icon ? (f(), z(Ae(a.icon), {
|
|
88
88
|
key: 0,
|
|
89
89
|
class: "sleed-deal-menu__item-icon"
|
|
90
90
|
})) : H("", !0),
|
|
@@ -254,12 +254,12 @@ function mn(e) {
|
|
|
254
254
|
function mt(e) {
|
|
255
255
|
return e.replace(/start|end/g, (t) => dn[t]);
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const At = ["left", "right"], Tt = ["right", "left"], vn = ["top", "bottom"], gn = ["bottom", "top"];
|
|
258
258
|
function hn(e, t, o) {
|
|
259
259
|
switch (e) {
|
|
260
260
|
case "top":
|
|
261
261
|
case "bottom":
|
|
262
|
-
return o ? t ?
|
|
262
|
+
return o ? t ? Tt : At : t ? At : Tt;
|
|
263
263
|
case "left":
|
|
264
264
|
case "right":
|
|
265
265
|
return t ? vn : gn;
|
|
@@ -310,7 +310,7 @@ function De(e) {
|
|
|
310
310
|
y: o
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function _t(e, t, o) {
|
|
314
314
|
let {
|
|
315
315
|
reference: n,
|
|
316
316
|
floating: l
|
|
@@ -372,15 +372,15 @@ const bn = async (e, t, o) => {
|
|
|
372
372
|
}), {
|
|
373
373
|
x: c,
|
|
374
374
|
y: d
|
|
375
|
-
} =
|
|
375
|
+
} = _t(u, n, a), v = n, p = {}, m = 0;
|
|
376
376
|
for (let g = 0; g < r.length; g++) {
|
|
377
377
|
const {
|
|
378
378
|
name: h,
|
|
379
379
|
fn: x
|
|
380
380
|
} = r[g], {
|
|
381
381
|
x: k,
|
|
382
|
-
y:
|
|
383
|
-
data:
|
|
382
|
+
y: A,
|
|
383
|
+
data: T,
|
|
384
384
|
reset: V
|
|
385
385
|
} = await x({
|
|
386
386
|
x: c,
|
|
@@ -396,11 +396,11 @@ const bn = async (e, t, o) => {
|
|
|
396
396
|
floating: t
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
|
-
c = k ?? c, d =
|
|
399
|
+
c = k ?? c, d = A ?? d, p = {
|
|
400
400
|
...p,
|
|
401
401
|
[h]: {
|
|
402
402
|
...p[h],
|
|
403
|
-
...
|
|
403
|
+
...T
|
|
404
404
|
}
|
|
405
405
|
}, V && m <= 50 && (m++, typeof V == "object" && (V.placement && (v = V.placement), V.rects && (u = V.rects === !0 ? await s.getElementRects({
|
|
406
406
|
reference: e,
|
|
@@ -409,7 +409,7 @@ const bn = async (e, t, o) => {
|
|
|
409
409
|
}) : V.rects), {
|
|
410
410
|
x: c,
|
|
411
411
|
y: d
|
|
412
|
-
} =
|
|
412
|
+
} = _t(u, v, a)), g = -1);
|
|
413
413
|
}
|
|
414
414
|
return {
|
|
415
415
|
x: c,
|
|
@@ -445,7 +445,7 @@ async function rt(e, t) {
|
|
|
445
445
|
y: l,
|
|
446
446
|
width: s.floating.width,
|
|
447
447
|
height: s.floating.height
|
|
448
|
-
} : s.reference,
|
|
448
|
+
} : s.reference, A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)), T = await (i.isElement == null ? void 0 : i.isElement(A)) ? await (i.getScale == null ? void 0 : i.getScale(A)) || {
|
|
449
449
|
x: 1,
|
|
450
450
|
y: 1
|
|
451
451
|
} : {
|
|
@@ -454,14 +454,14 @@ async function rt(e, t) {
|
|
|
454
454
|
}, V = De(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
455
455
|
elements: r,
|
|
456
456
|
rect: k,
|
|
457
|
-
offsetParent:
|
|
457
|
+
offsetParent: A,
|
|
458
458
|
strategy: a
|
|
459
459
|
}) : k);
|
|
460
460
|
return {
|
|
461
|
-
top: (x.top - V.top + m.top) /
|
|
462
|
-
bottom: (V.bottom - x.bottom + m.bottom) /
|
|
463
|
-
left: (x.left - V.left + m.left) /
|
|
464
|
-
right: (V.right - x.right + m.right) /
|
|
461
|
+
top: (x.top - V.top + m.top) / T.y,
|
|
462
|
+
bottom: (V.bottom - x.bottom + m.bottom) / T.y,
|
|
463
|
+
left: (x.left - V.left + m.left) / T.x,
|
|
464
|
+
right: (V.right - x.right + m.right) / T.x
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
467
|
const xn = (e) => ({
|
|
@@ -485,10 +485,10 @@ const xn = (e) => ({
|
|
|
485
485
|
const d = ct(c), v = {
|
|
486
486
|
x: o,
|
|
487
487
|
y: n
|
|
488
|
-
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), h = p === "y", x = h ? "top" : "left", k = h ? "bottom" : "right",
|
|
489
|
-
let C = w ? w[
|
|
490
|
-
(!C || !await (s.isElement == null ? void 0 : s.isElement(w))) && (C = r.floating[
|
|
491
|
-
const B =
|
|
488
|
+
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), h = p === "y", x = h ? "top" : "left", k = h ? "bottom" : "right", A = h ? "clientHeight" : "clientWidth", T = i.reference[m] + i.reference[p] - v[p] - i.floating[m], V = v[p] - i.reference[p], w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
489
|
+
let C = w ? w[A] : 0;
|
|
490
|
+
(!C || !await (s.isElement == null ? void 0 : s.isElement(w))) && (C = r.floating[A] || i.floating[m]);
|
|
491
|
+
const B = T / 2 - V / 2, M = C / 2 - g[m] / 2 - 1, I = Re(d[x], M), $ = Re(d[k], M), _ = I, R = C - g[m] - $, P = C / 2 - g[m] / 2 + B, G = Xe(_, P, R), L = !a.arrow && Oe(l) != null && P !== G && i.reference[m] / 2 - (P < _ ? I : $) - g[m] / 2 < 0, te = L ? P < _ ? P - _ : P - R : 0;
|
|
492
492
|
return {
|
|
493
493
|
[p]: v[p] + te,
|
|
494
494
|
data: {
|
|
@@ -635,12 +635,12 @@ const Rn = function(e) {
|
|
|
635
635
|
}, c = await rt(t, a), d = xe(Se(l)), v = xt(d);
|
|
636
636
|
let p = u[v], m = u[d];
|
|
637
637
|
if (i) {
|
|
638
|
-
const h = v === "y" ? "top" : "left", x = v === "y" ? "bottom" : "right", k = p + c[h],
|
|
639
|
-
p = Xe(k, p,
|
|
638
|
+
const h = v === "y" ? "top" : "left", x = v === "y" ? "bottom" : "right", k = p + c[h], A = p - c[x];
|
|
639
|
+
p = Xe(k, p, A);
|
|
640
640
|
}
|
|
641
641
|
if (s) {
|
|
642
|
-
const h = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", k = m + c[h],
|
|
643
|
-
m = Xe(k, m,
|
|
642
|
+
const h = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", k = m + c[h], A = m - c[x];
|
|
643
|
+
m = Xe(k, m, A);
|
|
644
644
|
}
|
|
645
645
|
const g = r.fn({
|
|
646
646
|
...t,
|
|
@@ -681,11 +681,11 @@ const Rn = function(e) {
|
|
|
681
681
|
} = i.floating;
|
|
682
682
|
let h, x;
|
|
683
683
|
d === "top" || d === "bottom" ? (h = d, x = v === (await (s.isRTL == null ? void 0 : s.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (x = d, h = v === "end" ? "top" : "bottom");
|
|
684
|
-
const k = g - c.top - c.bottom,
|
|
685
|
-
let C =
|
|
686
|
-
if ((o = t.middlewareData.shift) != null && o.enabled.x && (B =
|
|
687
|
-
const I = ie(c.left, 0), $ = ie(c.right, 0),
|
|
688
|
-
p ? B = m - 2 * (I !== 0 || $ !== 0 ? I + $ : ie(c.left, c.right)) : C = g - 2 * (
|
|
684
|
+
const k = g - c.top - c.bottom, A = m - c.left - c.right, T = Re(g - c[h], k), V = Re(m - c[x], A), w = !t.middlewareData.shift;
|
|
685
|
+
let C = T, B = V;
|
|
686
|
+
if ((o = t.middlewareData.shift) != null && o.enabled.x && (B = A), (n = t.middlewareData.shift) != null && n.enabled.y && (C = k), w && !v) {
|
|
687
|
+
const I = ie(c.left, 0), $ = ie(c.right, 0), _ = ie(c.top, 0), R = ie(c.bottom, 0);
|
|
688
|
+
p ? B = m - 2 * (I !== 0 || $ !== 0 ? I + $ : ie(c.left, c.right)) : C = g - 2 * (_ !== 0 || R !== 0 ? _ + R : ie(c.top, c.bottom));
|
|
689
689
|
}
|
|
690
690
|
await a({
|
|
691
691
|
...t,
|
|
@@ -727,7 +727,7 @@ function le(e) {
|
|
|
727
727
|
function Ot(e) {
|
|
728
728
|
return !dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Z(e).ShadowRoot;
|
|
729
729
|
}
|
|
730
|
-
const
|
|
730
|
+
const An = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
731
731
|
function He(e) {
|
|
732
732
|
const {
|
|
733
733
|
overflow: t,
|
|
@@ -735,15 +735,15 @@ function He(e) {
|
|
|
735
735
|
overflowY: n,
|
|
736
736
|
display: l
|
|
737
737
|
} = ee(e);
|
|
738
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !
|
|
738
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !An.has(l);
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const Tn = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
741
741
|
function eo(e) {
|
|
742
|
-
return
|
|
742
|
+
return Tn.has(Ve(e));
|
|
743
743
|
}
|
|
744
|
-
const
|
|
744
|
+
const _n = [":popover-open", ":modal"];
|
|
745
745
|
function We(e) {
|
|
746
|
-
return
|
|
746
|
+
return _n.some((t) => {
|
|
747
747
|
try {
|
|
748
748
|
return e.matches(t);
|
|
749
749
|
} catch {
|
|
@@ -758,7 +758,7 @@ function st(e) {
|
|
|
758
758
|
}
|
|
759
759
|
function to(e) {
|
|
760
760
|
let t = we(e);
|
|
761
|
-
for (; le(t) && !
|
|
761
|
+
for (; le(t) && !_e(t); ) {
|
|
762
762
|
if (st(t))
|
|
763
763
|
return t;
|
|
764
764
|
if (We(t))
|
|
@@ -771,7 +771,7 @@ function it() {
|
|
|
771
771
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
772
772
|
}
|
|
773
773
|
const Mn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
774
|
-
function
|
|
774
|
+
function _e(e) {
|
|
775
775
|
return Mn.has(Ve(e));
|
|
776
776
|
}
|
|
777
777
|
function ee(e) {
|
|
@@ -800,7 +800,7 @@ function we(e) {
|
|
|
800
800
|
}
|
|
801
801
|
function oo(e) {
|
|
802
802
|
const t = we(e);
|
|
803
|
-
return
|
|
803
|
+
return _e(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && He(t) ? t : oo(t);
|
|
804
804
|
}
|
|
805
805
|
function kt(e, t, o) {
|
|
806
806
|
var n;
|
|
@@ -861,8 +861,8 @@ function Qe(e, t, o, n) {
|
|
|
861
861
|
const v = Z(i), p = n && Q(n) ? Z(n) : n;
|
|
862
862
|
let m = v, g = Je(m);
|
|
863
863
|
for (; g && n && p !== m; ) {
|
|
864
|
-
const h = Ke(g), x = g.getBoundingClientRect(), k = ee(g),
|
|
865
|
-
a *= h.x, u *= h.y, c *= h.x, d *= h.y, a +=
|
|
864
|
+
const h = Ke(g), x = g.getBoundingClientRect(), k = ee(g), A = x.left + (g.clientLeft + parseFloat(k.paddingLeft)) * h.x, T = x.top + (g.clientTop + parseFloat(k.paddingTop)) * h.y;
|
|
865
|
+
a *= h.x, u *= h.y, c *= h.x, d *= h.y, a += A, u += T, m = Z(g), g = Je(m);
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
return De({
|
|
@@ -974,7 +974,7 @@ function Mt(e, t, o) {
|
|
|
974
974
|
}
|
|
975
975
|
function ao(e, t) {
|
|
976
976
|
const o = we(e);
|
|
977
|
-
return o === t || !Q(o) ||
|
|
977
|
+
return o === t || !Q(o) || _e(o) ? !1 : ee(o).position === "fixed" || ao(o, t);
|
|
978
978
|
}
|
|
979
979
|
function Nn(e, t) {
|
|
980
980
|
const o = t.get(e);
|
|
@@ -983,7 +983,7 @@ function Nn(e, t) {
|
|
|
983
983
|
let n = kt(e, []).filter((r) => Q(r) && Ve(r) !== "body"), l = null;
|
|
984
984
|
const i = ee(e).position === "fixed";
|
|
985
985
|
let s = i ? we(e) : e;
|
|
986
|
-
for (; Q(s) && !
|
|
986
|
+
for (; Q(s) && !_e(s); ) {
|
|
987
987
|
const r = ee(s), a = st(s);
|
|
988
988
|
!a && r.position === "fixed" && (l = null), (i ? !a && !l : !a && r.position === "static" && !!l && zn.has(l.position) || He(s) && !a && ao(e, s)) ? n = n.filter((c) => c !== s) : l = r, s = we(s);
|
|
989
989
|
}
|
|
@@ -1058,7 +1058,7 @@ function ro(e, t) {
|
|
|
1058
1058
|
return o;
|
|
1059
1059
|
if (!le(e)) {
|
|
1060
1060
|
let l = we(e);
|
|
1061
|
-
for (; l && !
|
|
1061
|
+
for (; l && !_e(l); ) {
|
|
1062
1062
|
if (Q(l) && !ft(l))
|
|
1063
1063
|
return l;
|
|
1064
1064
|
l = we(l);
|
|
@@ -1068,7 +1068,7 @@ function ro(e, t) {
|
|
|
1068
1068
|
let n = Bt(e, t);
|
|
1069
1069
|
for (; n && eo(n) && ft(n); )
|
|
1070
1070
|
n = Bt(n, t);
|
|
1071
|
-
return n &&
|
|
1071
|
+
return n && _e(n) && ft(n) && !st(n) ? o : n || to(e) || o;
|
|
1072
1072
|
}
|
|
1073
1073
|
const Un = async function(e) {
|
|
1074
1074
|
const t = this.getOffsetParent || ro, o = this.getDimensions, n = await o(e.floating);
|
|
@@ -1178,7 +1178,7 @@ function Ft(e, t, o) {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
});
|
|
1180
1180
|
let k;
|
|
1181
|
-
function
|
|
1181
|
+
function A() {
|
|
1182
1182
|
if (u.value == null || c.value == null)
|
|
1183
1183
|
return;
|
|
1184
1184
|
const C = l.value;
|
|
@@ -1190,29 +1190,29 @@ function Ft(e, t, o) {
|
|
|
1190
1190
|
d.value = B.x, v.value = B.y, p.value = B.strategy, m.value = B.placement, g.value = B.middlewareData, h.value = C !== !1;
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function T() {
|
|
1194
1194
|
typeof k == "function" && (k(), k = void 0);
|
|
1195
1195
|
}
|
|
1196
1196
|
function V() {
|
|
1197
|
-
if (
|
|
1198
|
-
|
|
1197
|
+
if (T(), n === void 0) {
|
|
1198
|
+
A();
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
1201
1201
|
if (u.value != null && c.value != null) {
|
|
1202
|
-
k = n(u.value, c.value,
|
|
1202
|
+
k = n(u.value, c.value, A);
|
|
1203
1203
|
return;
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
1206
|
function w() {
|
|
1207
1207
|
l.value || (h.value = !1);
|
|
1208
1208
|
}
|
|
1209
|
-
return oe([i, s, r, l],
|
|
1209
|
+
return oe([i, s, r, l], A, {
|
|
1210
1210
|
flush: "sync"
|
|
1211
1211
|
}), oe([u, c], V, {
|
|
1212
1212
|
flush: "sync"
|
|
1213
1213
|
}), oe(l, w, {
|
|
1214
1214
|
flush: "sync"
|
|
1215
|
-
}), Ro() && So(
|
|
1215
|
+
}), Ro() && So(T), {
|
|
1216
1216
|
x: qe(d),
|
|
1217
1217
|
y: qe(v),
|
|
1218
1218
|
strategy: qe(p),
|
|
@@ -1220,7 +1220,7 @@ function Ft(e, t, o) {
|
|
|
1220
1220
|
middlewareData: qe(g),
|
|
1221
1221
|
isPositioned: qe(h),
|
|
1222
1222
|
floatingStyles: x,
|
|
1223
|
-
update:
|
|
1223
|
+
update: A
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
1226
|
const tl = { class: "popover__content" }, ol = {
|
|
@@ -1245,7 +1245,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1245
1245
|
Po((R) => ({
|
|
1246
1246
|
"1d216f30": c.value
|
|
1247
1247
|
}));
|
|
1248
|
-
const o = e, { placement: n, offset: l, arrowVisible: i } =
|
|
1248
|
+
const o = e, { placement: n, offset: l, arrowVisible: i } = Ao(o), s = Be("reference"), r = Be("floating"), a = Be("arrow-block"), u = Be("second-screen"), c = O(() => "23px"), d = O(() => l ? typeof l.value == "number" ? l.value + Number(c.value.split("px")[0]) : {
|
|
1249
1249
|
mainAxis: l.value?.mainAxis ? l.value?.mainAxis + Number(c.value.split("px")[0]) / 2 : Number(c.value.split("px")[0]) / 2,
|
|
1250
1250
|
crossAxis: l.value?.crossAxis ? n.value?.includes("start") ? l.value?.crossAxis - Number(c.value.split("px")[0]) : n.value?.includes("end") ? l.value?.crossAxis + Number(c.value.split("px")[0]) : l.value?.crossAxis : n.value?.includes("start") ? -Number(c.value.split("px")[0]) : n.value?.includes("end") ? Number(c.value.split("px")[0]) : void 0,
|
|
1251
1251
|
alignmentAxis: l.value?.alignmentAxis
|
|
@@ -1269,7 +1269,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1269
1269
|
middleware: v
|
|
1270
1270
|
}), x = D("left-start"), {
|
|
1271
1271
|
floatingStyles: k,
|
|
1272
|
-
update:
|
|
1272
|
+
update: A
|
|
1273
1273
|
} = Ft(r, u, {
|
|
1274
1274
|
placement: x,
|
|
1275
1275
|
middleware: [
|
|
@@ -1277,7 +1277,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1277
1277
|
Et({ padding: 8 }),
|
|
1278
1278
|
Lt(8)
|
|
1279
1279
|
]
|
|
1280
|
-
}),
|
|
1280
|
+
}), T = Ne(), V = D(!1), w = D(!1), C = () => {
|
|
1281
1281
|
V.value = !0;
|
|
1282
1282
|
}, B = () => {
|
|
1283
1283
|
V.value = !1, I();
|
|
@@ -1296,7 +1296,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
B();
|
|
1298
1298
|
}
|
|
1299
|
-
},
|
|
1299
|
+
}, _ = O(() => {
|
|
1300
1300
|
if (!m.value.arrow) return {};
|
|
1301
1301
|
const { x: R, y: P } = m.value.arrow;
|
|
1302
1302
|
switch (h.value) {
|
|
@@ -1321,11 +1321,11 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1321
1321
|
g();
|
|
1322
1322
|
}, { deep: !0 }), ye(() => {
|
|
1323
1323
|
s.value && s.value.addEventListener("click", C), r.value && r.value.addEventListener("resize", () => {
|
|
1324
|
-
g(), w.value &&
|
|
1324
|
+
g(), w.value && A();
|
|
1325
1325
|
}), document.addEventListener("click", $), window.addEventListener("resize", () => {
|
|
1326
|
-
g(), w.value &&
|
|
1326
|
+
g(), w.value && A();
|
|
1327
1327
|
}), window.addEventListener("scroll", () => {
|
|
1328
|
-
g(), w.value &&
|
|
1328
|
+
g(), w.value && A();
|
|
1329
1329
|
});
|
|
1330
1330
|
}), tt(() => {
|
|
1331
1331
|
s.value && s.value.removeEventListener("click", C), r.value && r.value.removeEventListener("resize", g), document.removeEventListener("click", $), window.removeEventListener("resize", g), window.removeEventListener("scroll", g);
|
|
@@ -1340,7 +1340,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1340
1340
|
class: F(["popover", { "popover--with-arrow": y(i) }])
|
|
1341
1341
|
}, [
|
|
1342
1342
|
S("div", {
|
|
1343
|
-
class: F(["popover__trigger", `popover__trigger--${y(
|
|
1343
|
+
class: F(["popover__trigger", `popover__trigger--${y(T)}`]),
|
|
1344
1344
|
ref: "reference",
|
|
1345
1345
|
onClick: C
|
|
1346
1346
|
}, [
|
|
@@ -1350,7 +1350,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1350
1350
|
default: Y(() => [
|
|
1351
1351
|
V.value ? (f(), b("div", {
|
|
1352
1352
|
key: 0,
|
|
1353
|
-
class: F(["popover__wrapper", `popover__wrapper--${y(
|
|
1353
|
+
class: F(["popover__wrapper", `popover__wrapper--${y(T)}`]),
|
|
1354
1354
|
style: ue(y(p)),
|
|
1355
1355
|
ref: "floating"
|
|
1356
1356
|
}, [
|
|
@@ -1370,7 +1370,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1370
1370
|
key: 0,
|
|
1371
1371
|
class: "popover__arrow",
|
|
1372
1372
|
ref: "arrow-block",
|
|
1373
|
-
style: ue(
|
|
1373
|
+
style: ue(_.value)
|
|
1374
1374
|
}, null, 4)) : H("", !0)
|
|
1375
1375
|
], 6)) : H("", !0)
|
|
1376
1376
|
]),
|
|
@@ -1445,7 +1445,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1445
1445
|
class: F(n.value)
|
|
1446
1446
|
}, [
|
|
1447
1447
|
S("tr", ul, [
|
|
1448
|
-
(f(!0), b(ae, null,
|
|
1448
|
+
(f(!0), b(ae, null, Te(s.columns, (a, u) => (f(), b("th", {
|
|
1449
1449
|
class: F(l(a)),
|
|
1450
1450
|
key: u,
|
|
1451
1451
|
style: ue(i(a))
|
|
@@ -1524,7 +1524,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1524
1524
|
size: "small",
|
|
1525
1525
|
onChange: a[2] || (a[2] = (u) => o("toggleRow"))
|
|
1526
1526
|
})) : (f(), b(ae, { key: 3 }, [
|
|
1527
|
-
r.column.bodySlot ? (f(), z(
|
|
1527
|
+
r.column.bodySlot ? (f(), z(Ae(r.column.bodySlot), {
|
|
1528
1528
|
key: 0,
|
|
1529
1529
|
data: r.item,
|
|
1530
1530
|
field: r.column.field,
|
|
@@ -1554,7 +1554,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1554
1554
|
class: F(["table-row", { "table-row--hovered-color": l.colorHovered }]),
|
|
1555
1555
|
onClick: i[2] || (i[2] = (s) => o("rowClickHandler", { data: l.item, index: l.rowIndex }))
|
|
1556
1556
|
}, [
|
|
1557
|
-
(f(!0), b(ae, null,
|
|
1557
|
+
(f(!0), b(ae, null, Te(l.columns, (s) => (f(), z(wl, {
|
|
1558
1558
|
key: s.field || s.header,
|
|
1559
1559
|
column: s,
|
|
1560
1560
|
item: l.item,
|
|
@@ -1586,7 +1586,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1586
1586
|
setup(e, { emit: t }) {
|
|
1587
1587
|
const o = t, n = (l, i) => l.id ? `row-${l.id}` : `row-${i}`;
|
|
1588
1588
|
return (l, i) => (f(), b("tbody", xl, [
|
|
1589
|
-
(f(!0), b(ae, null,
|
|
1589
|
+
(f(!0), b(ae, null, Te(l.data, (s, r) => (f(), z(bl, {
|
|
1590
1590
|
key: n(s, r),
|
|
1591
1591
|
rowIndex: r,
|
|
1592
1592
|
item: s,
|
|
@@ -1634,7 +1634,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1634
1634
|
}, [
|
|
1635
1635
|
S("div", kl, [
|
|
1636
1636
|
l.icon ? (f(), b("div", Cl, [
|
|
1637
|
-
(f(), z(
|
|
1637
|
+
(f(), z(Ae(l.icon)))
|
|
1638
1638
|
])) : H("", !0),
|
|
1639
1639
|
S("div", Rl, [
|
|
1640
1640
|
q(l.$slots, "default")
|
|
@@ -1649,7 +1649,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1649
1649
|
])) : H("", !0)
|
|
1650
1650
|
], 2));
|
|
1651
1651
|
}
|
|
1652
|
-
}), Pl = ["for"],
|
|
1652
|
+
}), Pl = ["for"], Al = { key: 0 }, Tl = { class: "input__wrapper" }, _l = ["id", "placeholder", "name", "disabled", "type", "required"], Vl = { class: "input__actions" }, Il = {
|
|
1653
1653
|
key: 1,
|
|
1654
1654
|
class: "input__error"
|
|
1655
1655
|
}, Rt = /* @__PURE__ */ E({
|
|
@@ -1691,10 +1691,10 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1691
1691
|
for: a.inputId ?? y(l),
|
|
1692
1692
|
class: "input__label"
|
|
1693
1693
|
}, [
|
|
1694
|
-
a.required ? (f(), b("sup",
|
|
1694
|
+
a.required ? (f(), b("sup", Al, "*")) : H("", !0),
|
|
1695
1695
|
he(" " + W(a.label), 1)
|
|
1696
1696
|
], 8, Pl)) : H("", !0),
|
|
1697
|
-
S("div",
|
|
1697
|
+
S("div", Tl, [
|
|
1698
1698
|
Ie(S("input", {
|
|
1699
1699
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c),
|
|
1700
1700
|
id: a.inputId ?? y(l),
|
|
@@ -1709,8 +1709,8 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1709
1709
|
onInput: u[3] || (u[3] = (c) => o("input", c)),
|
|
1710
1710
|
onPaste: u[4] || (u[4] = (c) => o("paste", c)),
|
|
1711
1711
|
onFocus: u[5] || (u[5] = (c) => o("focus", c))
|
|
1712
|
-
}, null, 40,
|
|
1713
|
-
[
|
|
1712
|
+
}, null, 40, _l), [
|
|
1713
|
+
[To, n.value]
|
|
1714
1714
|
]),
|
|
1715
1715
|
S("div", Vl, [
|
|
1716
1716
|
a.type === "text" && a.allowClear && n.value && n.value.length > 0 ? (f(), b("button", {
|
|
@@ -1750,7 +1750,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1750
1750
|
return (o, n) => (f(), b("div", {
|
|
1751
1751
|
class: F(t.value)
|
|
1752
1752
|
}, [
|
|
1753
|
-
(f(), z(
|
|
1753
|
+
(f(), z(Ae(o.icon), { class: "icon-field__icon" })),
|
|
1754
1754
|
S("div", Ol, [
|
|
1755
1755
|
q(o.$slots, "default")
|
|
1756
1756
|
])
|
|
@@ -1806,7 +1806,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1806
1806
|
disabled: s.disabled,
|
|
1807
1807
|
onChange: r[1] || (r[1] = (a) => l("change", s.value))
|
|
1808
1808
|
}, null, 40, Ll), [
|
|
1809
|
-
[
|
|
1809
|
+
[_o, o.value]
|
|
1810
1810
|
]),
|
|
1811
1811
|
r[2] || (r[2] = S("div", { class: "radio__track" }, [
|
|
1812
1812
|
S("div", { class: "radio__thumb" })
|
|
@@ -1913,8 +1913,8 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1913
1913
|
set(h) {
|
|
1914
1914
|
if (Array.isArray(h)) {
|
|
1915
1915
|
const x = h.map((k) => {
|
|
1916
|
-
const
|
|
1917
|
-
return
|
|
1916
|
+
const A = e.options.find((T) => T[n.value] === k);
|
|
1917
|
+
return A || k;
|
|
1918
1918
|
});
|
|
1919
1919
|
i.value = e.returnObject ? x : h, o("select", e.returnObject ? x : h);
|
|
1920
1920
|
} else {
|
|
@@ -1961,11 +1961,11 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1961
1961
|
class: F(["dropdown__field-inner", [{ "dropdown__field-inner--multiple": h.multiple }, { "dropdown__field-inner--placeholder": !i.value }]])
|
|
1962
1962
|
}, [
|
|
1963
1963
|
h.multiple ? (f(), b("div", Fl, [
|
|
1964
|
-
(f(!0), b(ae, null,
|
|
1964
|
+
(f(!0), b(ae, null, Te(s.value, (k) => (f(), z(y(Sl), {
|
|
1965
1965
|
variant: "secondary",
|
|
1966
1966
|
key: k,
|
|
1967
1967
|
removable: "",
|
|
1968
|
-
onRemove: (
|
|
1968
|
+
onRemove: (A) => p(k)
|
|
1969
1969
|
}, {
|
|
1970
1970
|
default: Y(() => [
|
|
1971
1971
|
he(W(v(k)), 1)
|
|
@@ -2009,10 +2009,10 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2009
2009
|
h.loading ? (f(), b("div", ql, [
|
|
2010
2010
|
N(y(Bl))
|
|
2011
2011
|
])) : (f(), b("div", jl, [
|
|
2012
|
-
(f(!0), b(ae, null,
|
|
2013
|
-
key:
|
|
2012
|
+
(f(!0), b(ae, null, Te(h.options, (k, A) => (f(), z(Hl, {
|
|
2013
|
+
key: A,
|
|
2014
2014
|
modelValue: s.value,
|
|
2015
|
-
"onUpdate:modelValue": x[3] || (x[3] = (
|
|
2015
|
+
"onUpdate:modelValue": x[3] || (x[3] = (T) => s.value = T),
|
|
2016
2016
|
item: k,
|
|
2017
2017
|
multiple: h.multiple,
|
|
2018
2018
|
optionLabel: l.value,
|
|
@@ -2058,7 +2058,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2058
2058
|
N(y(Ho))
|
|
2059
2059
|
], 8, Yl),
|
|
2060
2060
|
S("div", Xl, [
|
|
2061
|
-
(f(!0), b(ae, null,
|
|
2061
|
+
(f(!0), b(ae, null, Te(i.value, (a) => (f(), b("button", {
|
|
2062
2062
|
class: F(["paginator-button paginator__page", { "paginator-button--active": t.value === a }]),
|
|
2063
2063
|
key: a,
|
|
2064
2064
|
onClick: (u) => t.value = Number(a)
|
|
@@ -2200,51 +2200,51 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2200
2200
|
emits: /* @__PURE__ */ J(["update:selectedRows", "rowClickHandler"], ["update:currentPage", "update:perPage"]),
|
|
2201
2201
|
setup(e, { emit: t }) {
|
|
2202
2202
|
const o = t, n = O(() => e.rowGroupMode), l = O(() => e.groupRowsBy), { dataWithGroup: i } = rs(n, l), { columns: s, options: r } = is(n), a = O(() => r.value.selectedMode), { selectedRows: u, isSelectedAll: c, toggleSelectRow: d, toggleSelectedAll: v } = as(a, e.data), p = D(null), m = ne(e, "currentPage"), g = ne(e, "perPage"), h = O(() => {
|
|
2203
|
-
let
|
|
2203
|
+
let T = [...e.data];
|
|
2204
2204
|
if (p.value) {
|
|
2205
2205
|
const { field: w, order: C } = p.value;
|
|
2206
|
-
|
|
2206
|
+
T.sort((B, M) => {
|
|
2207
2207
|
const I = B[w], $ = M[w];
|
|
2208
2208
|
return I === $ ? 0 : C === 1 ? I > $ ? 1 : -1 : I < $ ? 1 : -1;
|
|
2209
2209
|
});
|
|
2210
2210
|
}
|
|
2211
|
-
const V = i(
|
|
2211
|
+
const V = i(T);
|
|
2212
2212
|
return e.rowGroupMode === "rowspan" && e.groupRowsBy ? V.filter((w) => k.value.has(w._groupValue) ? w._isFirstInGroup : !0) : V;
|
|
2213
2213
|
}), x = O(() => [
|
|
2214
2214
|
"table",
|
|
2215
2215
|
{
|
|
2216
2216
|
[`table--theme-${e.theme}`]: e.theme
|
|
2217
2217
|
}
|
|
2218
|
-
]), k = D(/* @__PURE__ */ new Set()),
|
|
2219
|
-
k.value.has(
|
|
2218
|
+
]), k = D(/* @__PURE__ */ new Set()), A = (T) => {
|
|
2219
|
+
k.value.has(T) ? k.value.delete(T) : k.value.add(T);
|
|
2220
2220
|
};
|
|
2221
|
-
return oe(u, (
|
|
2222
|
-
o("update:selectedRows",
|
|
2223
|
-
}), (
|
|
2221
|
+
return oe(u, (T) => {
|
|
2222
|
+
o("update:selectedRows", T);
|
|
2223
|
+
}), (T, V) => (f(), b("table", {
|
|
2224
2224
|
class: F(x.value)
|
|
2225
2225
|
}, [
|
|
2226
|
-
q(
|
|
2226
|
+
q(T.$slots, "default", {}, void 0, !0),
|
|
2227
2227
|
N(ml, {
|
|
2228
|
-
size:
|
|
2228
|
+
size: T.size,
|
|
2229
2229
|
columns: y(s),
|
|
2230
2230
|
isSelectedAll: y(c),
|
|
2231
|
-
sortMode:
|
|
2232
|
-
sortField:
|
|
2231
|
+
sortMode: T.sortMode,
|
|
2232
|
+
sortField: T.sortField,
|
|
2233
2233
|
onSelectAllRow: y(v),
|
|
2234
2234
|
"onUpdate:sort": V[0] || (V[0] = (w) => p.value = w)
|
|
2235
2235
|
}, null, 8, ["size", "columns", "isSelectedAll", "sortMode", "sortField", "onSelectAllRow"]),
|
|
2236
2236
|
N($l, {
|
|
2237
|
-
size:
|
|
2237
|
+
size: T.size,
|
|
2238
2238
|
selectedRows: y(u),
|
|
2239
2239
|
columns: y(s),
|
|
2240
2240
|
data: h.value,
|
|
2241
|
-
rowGroupMode:
|
|
2242
|
-
groupRowsBy:
|
|
2241
|
+
rowGroupMode: T.rowGroupMode,
|
|
2242
|
+
groupRowsBy: T.groupRowsBy,
|
|
2243
2243
|
collapsedGroups: k.value,
|
|
2244
|
-
colorHovered:
|
|
2244
|
+
colorHovered: T.rowColorHovered,
|
|
2245
2245
|
onRowClickHandler: V[1] || (V[1] = (w) => o("rowClickHandler", w)),
|
|
2246
2246
|
onToggleRow: V[2] || (V[2] = (w) => y(d)(w)),
|
|
2247
|
-
onToggleGroup: V[3] || (V[3] = (w) =>
|
|
2247
|
+
onToggleGroup: V[3] || (V[3] = (w) => A(w))
|
|
2248
2248
|
}, null, 8, ["size", "selectedRows", "columns", "data", "rowGroupMode", "groupRowsBy", "collapsedGroups", "colorHovered"]),
|
|
2249
2249
|
N(ss, {
|
|
2250
2250
|
currentPage: m.value,
|
|
@@ -2252,9 +2252,9 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2252
2252
|
"per-page": g.value,
|
|
2253
2253
|
"onUpdate:perPage": V[5] || (V[5] = (w) => g.value = w),
|
|
2254
2254
|
data: h.value,
|
|
2255
|
-
"per-page-options":
|
|
2256
|
-
"totals-row":
|
|
2257
|
-
paginator:
|
|
2255
|
+
"per-page-options": T.perPageOptions,
|
|
2256
|
+
"totals-row": T.totals,
|
|
2257
|
+
paginator: T.paginator
|
|
2258
2258
|
}, null, 8, ["currentPage", "per-page", "data", "per-page-options", "totals-row", "paginator"])
|
|
2259
2259
|
], 2));
|
|
2260
2260
|
}
|
|
@@ -2300,16 +2300,16 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2300
2300
|
const o = e, n = D(), l = D([]), i = D(0), s = D(0), r = D(/* @__PURE__ */ new Map()), a = D(/* @__PURE__ */ new Map()), u = async () => {
|
|
2301
2301
|
if (await ke(), !l.value?.length) return;
|
|
2302
2302
|
let $ = !1;
|
|
2303
|
-
l.value.forEach((
|
|
2304
|
-
if (!
|
|
2305
|
-
const P = h.value + R, G =
|
|
2303
|
+
l.value.forEach((_, R) => {
|
|
2304
|
+
if (!_) return;
|
|
2305
|
+
const P = h.value + R, G = _.offsetHeight;
|
|
2306
2306
|
r.value.get(P) !== G && (r.value.set(P, G), $ = !0);
|
|
2307
2307
|
}), $ && c();
|
|
2308
2308
|
}, c = () => {
|
|
2309
2309
|
let $ = 0;
|
|
2310
|
-
for (let
|
|
2311
|
-
a.value.set(
|
|
2312
|
-
const R = r.value.get(
|
|
2310
|
+
for (let _ = 0; _ < o.items.length; _++) {
|
|
2311
|
+
a.value.set(_, $);
|
|
2312
|
+
const R = r.value.get(_) || o.estimatedItemHeight;
|
|
2313
2313
|
$ += R;
|
|
2314
2314
|
}
|
|
2315
2315
|
}, d = ($) => a.value.get($) || $ * o.estimatedItemHeight, v = ($) => r.value.get($) || o.estimatedItemHeight, p = O(() => {
|
|
@@ -2318,29 +2318,29 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2318
2318
|
const $ = o.items.length - 1;
|
|
2319
2319
|
return d($) + v($);
|
|
2320
2320
|
}), m = ($) => {
|
|
2321
|
-
let
|
|
2322
|
-
for (;
|
|
2323
|
-
const P = Math.floor((
|
|
2324
|
-
d(P) <= $ ?
|
|
2321
|
+
let _ = 0, R = o.items.length - 1;
|
|
2322
|
+
for (; _ <= R; ) {
|
|
2323
|
+
const P = Math.floor((_ + R) / 2);
|
|
2324
|
+
d(P) <= $ ? _ = P + 1 : R = P - 1;
|
|
2325
2325
|
}
|
|
2326
2326
|
return Math.max(0, R - o.buffer);
|
|
2327
|
-
}, g = ($,
|
|
2328
|
-
const R = $ +
|
|
2327
|
+
}, g = ($, _) => {
|
|
2328
|
+
const R = $ + _;
|
|
2329
2329
|
let P = m($);
|
|
2330
2330
|
for (; P < o.items.length && !(d(P) > R); )
|
|
2331
2331
|
P++;
|
|
2332
2332
|
return Math.min(o.items.length - 1, P + o.buffer);
|
|
2333
2333
|
}, h = O(() => m(i.value)), x = O(() => g(i.value, s.value)), k = O(() => {
|
|
2334
2334
|
const $ = [];
|
|
2335
|
-
for (let
|
|
2336
|
-
o.items[
|
|
2337
|
-
data: o.items[
|
|
2338
|
-
index:
|
|
2335
|
+
for (let _ = h.value; _ <= x.value; _++)
|
|
2336
|
+
o.items[_] && $.push({
|
|
2337
|
+
data: o.items[_],
|
|
2338
|
+
index: _
|
|
2339
2339
|
});
|
|
2340
2340
|
return $;
|
|
2341
|
-
}),
|
|
2342
|
-
const
|
|
2343
|
-
i.value =
|
|
2341
|
+
}), A = O(() => d(h.value)), T = ($) => $.data[o.keyField] ?? $.index, V = ($) => {
|
|
2342
|
+
const _ = $.target;
|
|
2343
|
+
i.value = _.scrollTop;
|
|
2344
2344
|
}, w = () => {
|
|
2345
2345
|
n.value && (s.value = n.value.clientHeight);
|
|
2346
2346
|
};
|
|
@@ -2358,8 +2358,8 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2358
2358
|
}, { deep: !0 }), t({
|
|
2359
2359
|
scrollToIndex: async ($) => {
|
|
2360
2360
|
if (!n.value || $ < 0 || $ >= o.items.length) return;
|
|
2361
|
-
const
|
|
2362
|
-
n.value.scrollTop =
|
|
2361
|
+
const _ = d($);
|
|
2362
|
+
n.value.scrollTop = _;
|
|
2363
2363
|
},
|
|
2364
2364
|
scrollToTop: () => {
|
|
2365
2365
|
n.value && (n.value.scrollTop = 0);
|
|
@@ -2368,7 +2368,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2368
2368
|
n.value && (n.value.scrollTop = p.value);
|
|
2369
2369
|
},
|
|
2370
2370
|
updateItemHeights: u
|
|
2371
|
-
}), ($,
|
|
2371
|
+
}), ($, _) => (f(), b("div", {
|
|
2372
2372
|
ref_key: "containerRef",
|
|
2373
2373
|
ref: n,
|
|
2374
2374
|
class: "virtual-scroll",
|
|
@@ -2380,10 +2380,10 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2380
2380
|
}, [
|
|
2381
2381
|
S("div", {
|
|
2382
2382
|
class: "virtual-scroll__content",
|
|
2383
|
-
style: ue({ transform: `translateY(${
|
|
2383
|
+
style: ue({ transform: `translateY(${A.value}px)`, gap: `${$.gap}px` })
|
|
2384
2384
|
}, [
|
|
2385
|
-
(f(!0), b(ae, null,
|
|
2386
|
-
key:
|
|
2385
|
+
(f(!0), b(ae, null, Te(k.value, (R) => (f(), b("div", {
|
|
2386
|
+
key: T(R),
|
|
2387
2387
|
ref_for: !0,
|
|
2388
2388
|
ref_key: "itemRefs",
|
|
2389
2389
|
ref: l,
|
|
@@ -2464,9 +2464,9 @@ function ms(e, t) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
function v(w) {
|
|
2466
2466
|
const { required: C, optional: B } = u(o), M = C + B;
|
|
2467
|
-
let I = "", $ = 0,
|
|
2468
|
-
for (;
|
|
2469
|
-
const R = M[
|
|
2467
|
+
let I = "", $ = 0, _ = 0;
|
|
2468
|
+
for (; _ < M.length; ) {
|
|
2469
|
+
const R = M[_];
|
|
2470
2470
|
if (c(R))
|
|
2471
2471
|
if ($ < w.length) {
|
|
2472
2472
|
const P = w[$];
|
|
@@ -2480,7 +2480,7 @@ function ms(e, t) {
|
|
|
2480
2480
|
I += n;
|
|
2481
2481
|
else
|
|
2482
2482
|
I += R;
|
|
2483
|
-
|
|
2483
|
+
_++;
|
|
2484
2484
|
}
|
|
2485
2485
|
return I;
|
|
2486
2486
|
}
|
|
@@ -2490,14 +2490,14 @@ function ms(e, t) {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
function m(w) {
|
|
2492
2492
|
const { required: C, optional: B } = u(o), M = C + B;
|
|
2493
|
-
let I = "", $ = 0,
|
|
2494
|
-
for (; $ < w.length &&
|
|
2495
|
-
const R = w[$], P = M[
|
|
2493
|
+
let I = "", $ = 0, _ = 0;
|
|
2494
|
+
for (; $ < w.length && _ < M.length; ) {
|
|
2495
|
+
const R = w[$], P = M[_];
|
|
2496
2496
|
if (R === n) {
|
|
2497
2497
|
$++;
|
|
2498
2498
|
continue;
|
|
2499
2499
|
}
|
|
2500
|
-
c(P) ? d(R, P) ? (I += R, $++,
|
|
2500
|
+
c(P) ? d(R, P) ? (I += R, $++, _++) : $++ : (R === P && $++, _++);
|
|
2501
2501
|
}
|
|
2502
2502
|
for (; $ < w.length; ) {
|
|
2503
2503
|
const R = w[$];
|
|
@@ -2539,7 +2539,7 @@ function ms(e, t) {
|
|
|
2539
2539
|
if (!w.isTrusted) return;
|
|
2540
2540
|
const C = w.target, B = C.value, M = m(B), I = v(M);
|
|
2541
2541
|
s.value = I, e.value = M, ke(() => {
|
|
2542
|
-
const { required: $, optional:
|
|
2542
|
+
const { required: $, optional: _ } = u(o), R = $ + _;
|
|
2543
2543
|
let P = 0, G = 0;
|
|
2544
2544
|
for (let L = 0; L < R.length; L++)
|
|
2545
2545
|
if (c(R[L]))
|
|
@@ -2565,7 +2565,7 @@ function ms(e, t) {
|
|
|
2565
2565
|
setTimeout(() => {
|
|
2566
2566
|
const B = C.value, M = m(B), I = v(M);
|
|
2567
2567
|
s.value = I, e.value = M;
|
|
2568
|
-
const { required: $, optional:
|
|
2568
|
+
const { required: $, optional: _ } = u(o), R = $ + _;
|
|
2569
2569
|
let P = 0, G = 0;
|
|
2570
2570
|
for (let L = 0; L < R.length; L++)
|
|
2571
2571
|
if (c(R[L]))
|
|
@@ -2586,7 +2586,7 @@ function ms(e, t) {
|
|
|
2586
2586
|
P = Math.min(P, I.length), C.setSelectionRange(P, P);
|
|
2587
2587
|
}, 0);
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2589
|
+
function A(w) {
|
|
2590
2590
|
const C = w.target, B = C.selectionStart || 0;
|
|
2591
2591
|
if (w.key === "Backspace") {
|
|
2592
2592
|
if (w.metaKey || w.ctrlKey)
|
|
@@ -2679,15 +2679,15 @@ function ms(e, t) {
|
|
|
2679
2679
|
}
|
|
2680
2680
|
if (w.metaKey || w.ctrlKey || ["ArrowLeft", "ArrowRight", "Tab", "Home", "End", "Escape"].includes(w.key))
|
|
2681
2681
|
return;
|
|
2682
|
-
const { required: M, optional: I } = u(o), $ = M + I,
|
|
2683
|
-
if (
|
|
2682
|
+
const { required: M, optional: I } = u(o), $ = M + I, _ = m(s.value), R = $.split("").filter((L) => c(L)).length;
|
|
2683
|
+
if (_.length >= R) {
|
|
2684
2684
|
w.preventDefault();
|
|
2685
2685
|
return;
|
|
2686
2686
|
}
|
|
2687
2687
|
let P = -1, G = 0;
|
|
2688
2688
|
for (let L = 0; L < $.length; L++)
|
|
2689
2689
|
if (c($[L])) {
|
|
2690
|
-
if (G ===
|
|
2690
|
+
if (G === _.length) {
|
|
2691
2691
|
P = L;
|
|
2692
2692
|
break;
|
|
2693
2693
|
}
|
|
@@ -2695,26 +2695,26 @@ function ms(e, t) {
|
|
|
2695
2695
|
}
|
|
2696
2696
|
P >= 0 && !d(w.key, $[P]) && w.preventDefault();
|
|
2697
2697
|
}
|
|
2698
|
-
function
|
|
2698
|
+
function T(w) {
|
|
2699
2699
|
r.value = !0, ke(() => {
|
|
2700
2700
|
const C = w.target, { required: B, optional: M } = u(o), I = B + M;
|
|
2701
2701
|
let $ = 0;
|
|
2702
|
-
for (let
|
|
2703
|
-
if (c(I[
|
|
2704
|
-
$ =
|
|
2702
|
+
for (let _ = 0; _ < I.length; _++)
|
|
2703
|
+
if (c(I[_])) {
|
|
2704
|
+
$ = _;
|
|
2705
2705
|
break;
|
|
2706
2706
|
}
|
|
2707
2707
|
if (je(e)) {
|
|
2708
|
-
let
|
|
2708
|
+
let _ = 0;
|
|
2709
2709
|
for (let R = 0; R < I.length; R++)
|
|
2710
2710
|
if (c(I[R])) {
|
|
2711
|
-
if (
|
|
2711
|
+
if (_ >= je(e).length) {
|
|
2712
2712
|
$ = R;
|
|
2713
2713
|
break;
|
|
2714
2714
|
}
|
|
2715
|
-
|
|
2715
|
+
_++;
|
|
2716
2716
|
}
|
|
2717
|
-
|
|
2717
|
+
_ === je(e).length && ($ = s.value.length);
|
|
2718
2718
|
}
|
|
2719
2719
|
C.setSelectionRange($, $);
|
|
2720
2720
|
});
|
|
@@ -2730,8 +2730,8 @@ function ms(e, t) {
|
|
|
2730
2730
|
displayValue: s,
|
|
2731
2731
|
handleInput: x,
|
|
2732
2732
|
handlePaste: k,
|
|
2733
|
-
handleKeydown:
|
|
2734
|
-
handleFocus:
|
|
2733
|
+
handleKeydown: A,
|
|
2734
|
+
handleFocus: T,
|
|
2735
2735
|
handleBlur: V,
|
|
2736
2736
|
placeholder: p()
|
|
2737
2737
|
};
|
|
@@ -2785,6 +2785,7 @@ const qi = /* @__PURE__ */ E({
|
|
|
2785
2785
|
props: /* @__PURE__ */ J({
|
|
2786
2786
|
viewButtons: { type: Boolean, default: !1 },
|
|
2787
2787
|
max: {},
|
|
2788
|
+
min: { default: 0 },
|
|
2788
2789
|
countInPackage: { default: 1 },
|
|
2789
2790
|
icon: {},
|
|
2790
2791
|
iconPosition: { default: "left" },
|
|
@@ -2803,6 +2804,10 @@ const qi = /* @__PURE__ */ E({
|
|
|
2803
2804
|
});
|
|
2804
2805
|
const n = (a) => {
|
|
2805
2806
|
let c = a.target.value;
|
|
2807
|
+
if (console.log(c), c.length === 0) {
|
|
2808
|
+
t.value = e.min;
|
|
2809
|
+
return;
|
|
2810
|
+
}
|
|
2806
2811
|
c = c.replace(/[^\d]/g, "");
|
|
2807
2812
|
let d = parseInt(c);
|
|
2808
2813
|
d < 1 && (d = 1), e.max && d > e.max && (d = e.max), d % e.countInPackage !== 0 && (d = Math.floor(d / e.countInPackage) * e.countInPackage + e.countInPackage), o.value = typeof e.formatter == "function" ? e.formatter(d) : String(d), t.value = d;
|
|
@@ -2839,10 +2844,10 @@ const qi = /* @__PURE__ */ E({
|
|
|
2839
2844
|
onClick: s
|
|
2840
2845
|
}, null, 8, ["icon", "disabled"])) : H("", !0),
|
|
2841
2846
|
S("div", vs, [
|
|
2842
|
-
(f(), z(
|
|
2847
|
+
(f(), z(Ae(a.icon))),
|
|
2843
2848
|
Ie(S("input", {
|
|
2844
2849
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => o.value = c),
|
|
2845
|
-
type: "
|
|
2850
|
+
type: "number",
|
|
2846
2851
|
name: "input-number",
|
|
2847
2852
|
id: "input-number",
|
|
2848
2853
|
class: "input-number__input",
|
|
@@ -3020,12 +3025,12 @@ const qi = /* @__PURE__ */ E({
|
|
|
3020
3025
|
setup(e) {
|
|
3021
3026
|
const t = (o) => o.url ? qt("RouterLink") : "div";
|
|
3022
3027
|
return (o, n) => (f(), b("div", bs, [
|
|
3023
|
-
(f(!0), b(ae, null,
|
|
3028
|
+
(f(!0), b(ae, null, Te(o.items, (l, i) => (f(), b(ae, null, [
|
|
3024
3029
|
l.command ? (f(), b("button", {
|
|
3025
3030
|
key: 0,
|
|
3026
3031
|
class: F(["breadcrumb__item", { "breadcrumb__item--disabled": !l.command || l.disabled }]),
|
|
3027
3032
|
onClick: (s) => l.command()
|
|
3028
|
-
}, W(l.label), 11, xs)) : (f(), z(
|
|
3033
|
+
}, W(l.label), 11, xs)) : (f(), z(Ae(t(l)), {
|
|
3029
3034
|
key: 1,
|
|
3030
3035
|
to: l.url,
|
|
3031
3036
|
class: F(["breadcrumb__item", { "breadcrumb__item--disabled": l.disabled || !l.url }])
|
|
@@ -3071,7 +3076,7 @@ const qi = /* @__PURE__ */ E({
|
|
|
3071
3076
|
class: F(i.value)
|
|
3072
3077
|
}, [
|
|
3073
3078
|
S("div", ks, [
|
|
3074
|
-
(f(), z(
|
|
3079
|
+
(f(), z(Ae(l.value)))
|
|
3075
3080
|
]),
|
|
3076
3081
|
S("div", Cs, [
|
|
3077
3082
|
S("div", Rs, W(v.msg.summary), 1),
|
|
@@ -3089,7 +3094,7 @@ const qi = /* @__PURE__ */ E({
|
|
|
3089
3094
|
])
|
|
3090
3095
|
], 2));
|
|
3091
3096
|
}
|
|
3092
|
-
}), be = Uo(),
|
|
3097
|
+
}), be = Uo(), As = { class: "toast-container" }, Zi = /* @__PURE__ */ E({
|
|
3093
3098
|
__name: "Toast",
|
|
3094
3099
|
props: {
|
|
3095
3100
|
group: {},
|
|
@@ -3118,14 +3123,14 @@ const qi = /* @__PURE__ */ E({
|
|
|
3118
3123
|
be.off("add", i), be.off("remove", s), be.off("remove-group", r), be.off("remove-all-groups", a);
|
|
3119
3124
|
}), (u, c) => (f(), z(y(Ko), null, {
|
|
3120
3125
|
default: Y(() => [
|
|
3121
|
-
S("div",
|
|
3126
|
+
S("div", As, [
|
|
3122
3127
|
N(Io, {
|
|
3123
3128
|
name: "toast-fade",
|
|
3124
3129
|
tag: "div",
|
|
3125
3130
|
class: "toast-messages"
|
|
3126
3131
|
}, {
|
|
3127
3132
|
default: Y(() => [
|
|
3128
|
-
(f(!0), b(ae, null,
|
|
3133
|
+
(f(!0), b(ae, null, Te(o.value, (d) => (f(), z(Ps, {
|
|
3129
3134
|
key: d.id,
|
|
3130
3135
|
msg: d,
|
|
3131
3136
|
onClose: c[0] || (c[0] = (v) => l(v))
|
|
@@ -3163,7 +3168,7 @@ const Qi = {
|
|
|
3163
3168
|
};
|
|
3164
3169
|
e.config.globalProperties.$toast = t, e.provide(fo, t);
|
|
3165
3170
|
}
|
|
3166
|
-
},
|
|
3171
|
+
}, Ts = { class: "message__content" }, _s = /* @__PURE__ */ E({
|
|
3167
3172
|
__name: "Message",
|
|
3168
3173
|
props: {
|
|
3169
3174
|
type: {
|
|
@@ -3186,15 +3191,15 @@ const Qi = {
|
|
|
3186
3191
|
return (l, i) => (f(), b("div", {
|
|
3187
3192
|
class: F(o.value)
|
|
3188
3193
|
}, [
|
|
3189
|
-
(f(), z(
|
|
3190
|
-
S("div",
|
|
3194
|
+
(f(), z(Ae(n[t.type]), { class: "message__icon" })),
|
|
3195
|
+
S("div", Ts, [
|
|
3191
3196
|
l.$slots.default ? q(l.$slots, "default", { key: 0 }, void 0, !0) : (f(), b(ae, { key: 1 }, [
|
|
3192
3197
|
he(W(t.message), 1)
|
|
3193
3198
|
], 64))
|
|
3194
3199
|
])
|
|
3195
3200
|
], 2));
|
|
3196
3201
|
}
|
|
3197
|
-
}), ea = /* @__PURE__ */ pe(
|
|
3202
|
+
}), ea = /* @__PURE__ */ pe(_s, [["__scopeId", "data-v-5db16833"]]), Vs = {
|
|
3198
3203
|
key: 0,
|
|
3199
3204
|
class: "badge__value"
|
|
3200
3205
|
}, Is = /* @__PURE__ */ E({
|
|
@@ -3411,62 +3416,62 @@ const Qi = {
|
|
|
3411
3416
|
a();
|
|
3412
3417
|
return;
|
|
3413
3418
|
}
|
|
3414
|
-
const x = p.getBoundingClientRect(), k = 8,
|
|
3419
|
+
const x = p.getBoundingClientRect(), k = 8, A = 8, T = (I) => {
|
|
3415
3420
|
switch (I) {
|
|
3416
3421
|
case "top":
|
|
3417
3422
|
return {
|
|
3418
|
-
top: g.top - x.height -
|
|
3423
|
+
top: g.top - x.height - A,
|
|
3419
3424
|
left: g.left + g.width / 2 - x.width / 2
|
|
3420
3425
|
};
|
|
3421
3426
|
case "bottom":
|
|
3422
3427
|
return {
|
|
3423
|
-
top: g.bottom +
|
|
3428
|
+
top: g.bottom + A,
|
|
3424
3429
|
left: g.left + g.width / 2 - x.width / 2
|
|
3425
3430
|
};
|
|
3426
3431
|
case "left":
|
|
3427
3432
|
return {
|
|
3428
3433
|
top: g.top + g.height / 2 - x.height / 2,
|
|
3429
|
-
left: g.left - x.width -
|
|
3434
|
+
left: g.left - x.width - A
|
|
3430
3435
|
};
|
|
3431
3436
|
case "right":
|
|
3432
3437
|
return {
|
|
3433
3438
|
top: g.top + g.height / 2 - x.height / 2,
|
|
3434
|
-
left: g.right +
|
|
3439
|
+
left: g.right + A
|
|
3435
3440
|
};
|
|
3436
3441
|
case "topleft":
|
|
3437
3442
|
return {
|
|
3438
|
-
top: g.top - x.height -
|
|
3443
|
+
top: g.top - x.height - A,
|
|
3439
3444
|
left: g.left
|
|
3440
3445
|
};
|
|
3441
3446
|
case "topright":
|
|
3442
3447
|
return {
|
|
3443
|
-
top: g.top - x.height -
|
|
3448
|
+
top: g.top - x.height - A,
|
|
3444
3449
|
left: g.right - x.width
|
|
3445
3450
|
};
|
|
3446
3451
|
case "bottomleft":
|
|
3447
3452
|
return {
|
|
3448
|
-
top: g.bottom +
|
|
3453
|
+
top: g.bottom + A,
|
|
3449
3454
|
left: g.left
|
|
3450
3455
|
};
|
|
3451
3456
|
case "bottomright":
|
|
3452
3457
|
return {
|
|
3453
|
-
top: g.bottom +
|
|
3458
|
+
top: g.bottom + A,
|
|
3454
3459
|
left: g.right - x.width
|
|
3455
3460
|
};
|
|
3456
3461
|
default:
|
|
3457
3462
|
return { top: 0, left: 0 };
|
|
3458
3463
|
}
|
|
3459
3464
|
}, V = (I) => {
|
|
3460
|
-
const $ =
|
|
3465
|
+
const $ = T(I);
|
|
3461
3466
|
return $.top >= k && $.left >= k && $.top + x.height <= window.innerHeight - k && $.left + x.width <= window.innerWidth - k;
|
|
3462
3467
|
}, w = [m];
|
|
3463
3468
|
["bottomright", "bottom", "top", "right", "left", "bottomleft", "topright", "topleft"].forEach((I) => {
|
|
3464
3469
|
w.includes(I) || w.push(I);
|
|
3465
3470
|
});
|
|
3466
|
-
let B = m, M =
|
|
3471
|
+
let B = m, M = T(m);
|
|
3467
3472
|
for (const I of w)
|
|
3468
3473
|
if (V(I)) {
|
|
3469
|
-
B = I, M =
|
|
3474
|
+
B = I, M = T(I);
|
|
3470
3475
|
break;
|
|
3471
3476
|
}
|
|
3472
3477
|
M.top = Math.max(k, Math.min(M.top, window.innerHeight - x.height - k)), M.left = Math.max(k, Math.min(M.left, window.innerWidth - x.width - k)), n.value = B, o.value = {
|
|
@@ -3883,8 +3888,8 @@ const si = async (e, t, o) => {
|
|
|
3883
3888
|
fn: x
|
|
3884
3889
|
} = r[g], {
|
|
3885
3890
|
x: k,
|
|
3886
|
-
y:
|
|
3887
|
-
data:
|
|
3891
|
+
y: A,
|
|
3892
|
+
data: T,
|
|
3888
3893
|
reset: V
|
|
3889
3894
|
} = await x({
|
|
3890
3895
|
x: c,
|
|
@@ -3900,11 +3905,11 @@ const si = async (e, t, o) => {
|
|
|
3900
3905
|
floating: t
|
|
3901
3906
|
}
|
|
3902
3907
|
});
|
|
3903
|
-
c = k ?? c, d =
|
|
3908
|
+
c = k ?? c, d = A ?? d, p = {
|
|
3904
3909
|
...p,
|
|
3905
3910
|
[h]: {
|
|
3906
3911
|
...p[h],
|
|
3907
|
-
...
|
|
3912
|
+
...T
|
|
3908
3913
|
}
|
|
3909
3914
|
}, V && m <= 50 && (m++, typeof V == "object" && (V.placement && (v = V.placement), V.rects && (u = V.rects === !0 ? await s.getElementRects({
|
|
3910
3915
|
reference: e,
|
|
@@ -3949,7 +3954,7 @@ async function vo(e, t) {
|
|
|
3949
3954
|
y: l,
|
|
3950
3955
|
width: s.floating.width,
|
|
3951
3956
|
height: s.floating.height
|
|
3952
|
-
} : s.reference,
|
|
3957
|
+
} : s.reference, A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)), T = await (i.isElement == null ? void 0 : i.isElement(A)) ? await (i.getScale == null ? void 0 : i.getScale(A)) || {
|
|
3953
3958
|
x: 1,
|
|
3954
3959
|
y: 1
|
|
3955
3960
|
} : {
|
|
@@ -3958,14 +3963,14 @@ async function vo(e, t) {
|
|
|
3958
3963
|
}, V = De(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3959
3964
|
elements: r,
|
|
3960
3965
|
rect: k,
|
|
3961
|
-
offsetParent:
|
|
3966
|
+
offsetParent: A,
|
|
3962
3967
|
strategy: a
|
|
3963
3968
|
}) : k);
|
|
3964
3969
|
return {
|
|
3965
|
-
top: (x.top - V.top + m.top) /
|
|
3966
|
-
bottom: (V.bottom - x.bottom + m.bottom) /
|
|
3967
|
-
left: (x.left - V.left + m.left) /
|
|
3968
|
-
right: (V.right - x.right + m.right) /
|
|
3970
|
+
top: (x.top - V.top + m.top) / T.y,
|
|
3971
|
+
bottom: (V.bottom - x.bottom + m.bottom) / T.y,
|
|
3972
|
+
left: (x.left - V.left + m.left) / T.x,
|
|
3973
|
+
right: (V.right - x.right + m.right) / T.x
|
|
3969
3974
|
};
|
|
3970
3975
|
}
|
|
3971
3976
|
const ii = (e) => ({
|
|
@@ -3989,10 +3994,10 @@ const ii = (e) => ({
|
|
|
3989
3994
|
const d = ct(c), v = {
|
|
3990
3995
|
x: o,
|
|
3991
3996
|
y: n
|
|
3992
|
-
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), h = p === "y", x = h ? "top" : "left", k = h ? "bottom" : "right",
|
|
3993
|
-
let C = w ? w[
|
|
3994
|
-
(!C || !await (s.isElement == null ? void 0 : s.isElement(w))) && (C = r.floating[
|
|
3995
|
-
const B =
|
|
3997
|
+
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), h = p === "y", x = h ? "top" : "left", k = h ? "bottom" : "right", A = h ? "clientHeight" : "clientWidth", T = i.reference[m] + i.reference[p] - v[p] - i.floating[m], V = v[p] - i.reference[p], w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
3998
|
+
let C = w ? w[A] : 0;
|
|
3999
|
+
(!C || !await (s.isElement == null ? void 0 : s.isElement(w))) && (C = r.floating[A] || i.floating[m]);
|
|
4000
|
+
const B = T / 2 - V / 2, M = C / 2 - g[m] / 2 - 1, I = Re(d[x], M), $ = Re(d[k], M), _ = I, R = C - g[m] - $, P = C / 2 - g[m] / 2 + B, G = Xe(_, P, R), L = !a.arrow && Oe(l) != null && P !== G && i.reference[m] / 2 - (P < _ ? I : $) - g[m] / 2 < 0, te = L ? P < _ ? P - _ : P - R : 0;
|
|
3996
4001
|
return {
|
|
3997
4002
|
[p]: v[p] + te,
|
|
3998
4003
|
data: {
|
|
@@ -4029,19 +4034,19 @@ const ii = (e) => ({
|
|
|
4029
4034
|
} = Pe(e, t);
|
|
4030
4035
|
if ((o = i.arrow) != null && o.alignmentOffset)
|
|
4031
4036
|
return {};
|
|
4032
|
-
const x = Se(l), k = xe(r),
|
|
4033
|
-
!v && w && V.push(...wn(r, g, m,
|
|
4037
|
+
const x = Se(l), k = xe(r), A = Se(r) === r, T = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), V = v || (A || !g ? [at(r)] : mn(r)), w = m !== "none";
|
|
4038
|
+
!v && w && V.push(...wn(r, g, m, T));
|
|
4034
4039
|
const C = [r, ...V], B = await vo(t, h), M = [];
|
|
4035
4040
|
let I = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
4036
4041
|
if (c && M.push(B[x]), d) {
|
|
4037
|
-
const P = pn(l, s,
|
|
4042
|
+
const P = pn(l, s, T);
|
|
4038
4043
|
M.push(B[P[0]], B[P[1]]);
|
|
4039
4044
|
}
|
|
4040
4045
|
if (I = [...I, {
|
|
4041
4046
|
placement: l,
|
|
4042
4047
|
overflows: M
|
|
4043
4048
|
}], !M.every((P) => P <= 0)) {
|
|
4044
|
-
var $,
|
|
4049
|
+
var $, _;
|
|
4045
4050
|
const P = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, G = C[P];
|
|
4046
4051
|
if (G && (!(d === "alignment" ? k !== xe(G) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4047
4052
|
// overflows the main axis.
|
|
@@ -4055,7 +4060,7 @@ const ii = (e) => ({
|
|
|
4055
4060
|
placement: G
|
|
4056
4061
|
}
|
|
4057
4062
|
};
|
|
4058
|
-
let L = (
|
|
4063
|
+
let L = (_ = I.filter((te) => te.overflows[0] <= 0).sort((te, me) => te.overflows[1] - me.overflows[1])[0]) == null ? void 0 : _.placement;
|
|
4059
4064
|
if (!L)
|
|
4060
4065
|
switch (p) {
|
|
4061
4066
|
case "bestFit": {
|
|
@@ -4167,12 +4172,12 @@ const ci = function(e) {
|
|
|
4167
4172
|
}, c = await vo(t, a), d = xe(Se(l)), v = xt(d);
|
|
4168
4173
|
let p = u[v], m = u[d];
|
|
4169
4174
|
if (i) {
|
|
4170
|
-
const h = v === "y" ? "top" : "left", x = v === "y" ? "bottom" : "right", k = p + c[h],
|
|
4171
|
-
p = Xe(k, p,
|
|
4175
|
+
const h = v === "y" ? "top" : "left", x = v === "y" ? "bottom" : "right", k = p + c[h], A = p - c[x];
|
|
4176
|
+
p = Xe(k, p, A);
|
|
4172
4177
|
}
|
|
4173
4178
|
if (s) {
|
|
4174
|
-
const h = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", k = m + c[h],
|
|
4175
|
-
m = Xe(k, m,
|
|
4179
|
+
const h = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", k = m + c[h], A = m - c[x];
|
|
4180
|
+
m = Xe(k, m, A);
|
|
4176
4181
|
}
|
|
4177
4182
|
const g = r.fn({
|
|
4178
4183
|
...t,
|
|
@@ -4243,8 +4248,8 @@ function et(e, t, o, n) {
|
|
|
4243
4248
|
const v = Z(i), p = n && Q(n) ? Z(n) : n;
|
|
4244
4249
|
let m = v, g = Je(m);
|
|
4245
4250
|
for (; g && n && p !== m; ) {
|
|
4246
|
-
const h = Ye(g), x = g.getBoundingClientRect(), k = ee(g),
|
|
4247
|
-
a *= h.x, u *= h.y, c *= h.x, d *= h.y, a +=
|
|
4251
|
+
const h = Ye(g), x = g.getBoundingClientRect(), k = ee(g), A = x.left + (g.clientLeft + parseFloat(k.paddingLeft)) * h.x, T = x.top + (g.clientTop + parseFloat(k.paddingTop)) * h.y;
|
|
4252
|
+
a *= h.x, u *= h.y, c *= h.x, d *= h.y, a += A, u += T, m = Z(g), g = Je(m);
|
|
4248
4253
|
}
|
|
4249
4254
|
}
|
|
4250
4255
|
return De({
|
|
@@ -4356,7 +4361,7 @@ function Gt(e, t, o) {
|
|
|
4356
4361
|
}
|
|
4357
4362
|
function bo(e, t) {
|
|
4358
4363
|
const o = we(e);
|
|
4359
|
-
return o === t || !Q(o) ||
|
|
4364
|
+
return o === t || !Q(o) || _e(o) ? !1 : ee(o).position === "fixed" || bo(o, t);
|
|
4360
4365
|
}
|
|
4361
4366
|
function bi(e, t) {
|
|
4362
4367
|
const o = t.get(e);
|
|
@@ -4365,7 +4370,7 @@ function bi(e, t) {
|
|
|
4365
4370
|
let n = kt(e, []).filter((r) => Q(r) && Ve(r) !== "body"), l = null;
|
|
4366
4371
|
const i = ee(e).position === "fixed";
|
|
4367
4372
|
let s = i ? we(e) : e;
|
|
4368
|
-
for (; Q(s) && !
|
|
4373
|
+
for (; Q(s) && !_e(s); ) {
|
|
4369
4374
|
const r = ee(s), a = st(s);
|
|
4370
4375
|
!a && r.position === "fixed" && (l = null), (i ? !a && !l : !a && r.position === "static" && !!l && wi.has(l.position) || He(s) && !a && bo(e, s)) ? n = n.filter((c) => c !== s) : l = r, s = we(s);
|
|
4371
4376
|
}
|
|
@@ -4440,7 +4445,7 @@ function xo(e, t) {
|
|
|
4440
4445
|
return o;
|
|
4441
4446
|
if (!le(e)) {
|
|
4442
4447
|
let l = we(e);
|
|
4443
|
-
for (; l && !
|
|
4448
|
+
for (; l && !_e(l); ) {
|
|
4444
4449
|
if (Q(l) && !pt(l))
|
|
4445
4450
|
return l;
|
|
4446
4451
|
l = we(l);
|
|
@@ -4450,7 +4455,7 @@ function xo(e, t) {
|
|
|
4450
4455
|
let n = Nt(e, t);
|
|
4451
4456
|
for (; n && eo(n) && pt(n); )
|
|
4452
4457
|
n = Nt(n, t);
|
|
4453
|
-
return n &&
|
|
4458
|
+
return n && _e(n) && pt(n) && !st(n) ? o : n || to(e) || o;
|
|
4454
4459
|
}
|
|
4455
4460
|
const Ci = async function(e) {
|
|
4456
4461
|
const t = this.getOffsetParent || xo, o = this.getDimensions, n = await o(e.floating);
|
|
@@ -4478,7 +4483,7 @@ const Si = {
|
|
|
4478
4483
|
getScale: Ye,
|
|
4479
4484
|
isElement: Q,
|
|
4480
4485
|
isRTL: Ri
|
|
4481
|
-
}, Pi = ci,
|
|
4486
|
+
}, Pi = ci, Ai = di, Ti = ai, _i = ii, Vi = (e, t, o) => {
|
|
4482
4487
|
const n = /* @__PURE__ */ new Map(), l = {
|
|
4483
4488
|
platform: Si,
|
|
4484
4489
|
...o
|
|
@@ -4512,9 +4517,9 @@ const Si = {
|
|
|
4512
4517
|
placement: o.placement,
|
|
4513
4518
|
middleware: [
|
|
4514
4519
|
Pi(o.offset),
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
...o.showArrow && m ? [
|
|
4520
|
+
Ti(),
|
|
4521
|
+
Ai({ padding: 8 }),
|
|
4522
|
+
...o.showArrow && m ? [_i({ element: m })] : []
|
|
4518
4523
|
]
|
|
4519
4524
|
}
|
|
4520
4525
|
);
|
|
@@ -4522,15 +4527,15 @@ const Si = {
|
|
|
4522
4527
|
left: `${g}px`,
|
|
4523
4528
|
top: `${h}px`
|
|
4524
4529
|
}, o.showArrow && k.arrow && m) {
|
|
4525
|
-
const { x:
|
|
4530
|
+
const { x: A, y: T } = k.arrow, V = x.split("-")[0], w = {
|
|
4526
4531
|
top: "bottom",
|
|
4527
4532
|
right: "left",
|
|
4528
4533
|
bottom: "top",
|
|
4529
4534
|
left: "right"
|
|
4530
4535
|
}[V];
|
|
4531
4536
|
r.value = {
|
|
4532
|
-
left:
|
|
4533
|
-
top:
|
|
4537
|
+
left: A != null ? `${A}px` : "",
|
|
4538
|
+
top: T != null ? `${T}px` : "",
|
|
4534
4539
|
right: "",
|
|
4535
4540
|
bottom: "",
|
|
4536
4541
|
[w]: "-4px"
|