prlg-ui 1.7.12 → 1.7.14
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 +16 -9
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +163 -153
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -380,8 +380,8 @@ const bn = async (e, t, o) => {
|
|
|
380
380
|
} = r[g], {
|
|
381
381
|
x: k,
|
|
382
382
|
y: _,
|
|
383
|
-
data:
|
|
384
|
-
reset:
|
|
383
|
+
data: A,
|
|
384
|
+
reset: V
|
|
385
385
|
} = await $({
|
|
386
386
|
x: c,
|
|
387
387
|
y: d,
|
|
@@ -400,13 +400,13 @@ const bn = async (e, t, o) => {
|
|
|
400
400
|
...p,
|
|
401
401
|
[y]: {
|
|
402
402
|
...p[y],
|
|
403
|
-
...
|
|
403
|
+
...A
|
|
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,
|
|
407
407
|
floating: t,
|
|
408
408
|
strategy: l
|
|
409
|
-
}) :
|
|
409
|
+
}) : V.rects), {
|
|
410
410
|
x: c,
|
|
411
411
|
y: d
|
|
412
412
|
} = Tt(u, v, a)), g = -1);
|
|
@@ -445,23 +445,23 @@ async function rt(e, t) {
|
|
|
445
445
|
y: l,
|
|
446
446
|
width: s.floating.width,
|
|
447
447
|
height: s.floating.height
|
|
448
|
-
} : s.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)),
|
|
448
|
+
} : s.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)), A = await (i.isElement == null ? void 0 : i.isElement(_)) ? await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
449
449
|
x: 1,
|
|
450
450
|
y: 1
|
|
451
451
|
} : {
|
|
452
452
|
x: 1,
|
|
453
453
|
y: 1
|
|
454
|
-
},
|
|
454
|
+
}, V = De(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
455
455
|
elements: r,
|
|
456
456
|
rect: k,
|
|
457
457
|
offsetParent: _,
|
|
458
458
|
strategy: a
|
|
459
459
|
}) : k);
|
|
460
460
|
return {
|
|
461
|
-
top: ($.top -
|
|
462
|
-
bottom: (
|
|
463
|
-
left: ($.left -
|
|
464
|
-
right: (
|
|
461
|
+
top: ($.top - V.top + m.top) / A.y,
|
|
462
|
+
bottom: (V.bottom - $.bottom + m.bottom) / A.y,
|
|
463
|
+
left: ($.left - V.left + m.left) / A.x,
|
|
464
|
+
right: (V.right - $.right + m.right) / A.x
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
467
|
const xn = (e) => ({
|
|
@@ -485,10 +485,10 @@ const xn = (e) => ({
|
|
|
485
485
|
const d = ut(c), v = {
|
|
486
486
|
x: o,
|
|
487
487
|
y: n
|
|
488
|
-
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), y = p === "y", $ = y ? "top" : "left", k = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth",
|
|
488
|
+
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), y = p === "y", $ = y ? "top" : "left", k = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth", A = i.reference[m] + i.reference[p] - v[p] - i.floating[m], V = v[p] - i.reference[p], h = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
489
489
|
let C = h ? h[_] : 0;
|
|
490
490
|
(!C || !await (s.isElement == null ? void 0 : s.isElement(h))) && (C = r.floating[_] || i.floating[m]);
|
|
491
|
-
const B =
|
|
491
|
+
const B = A / 2 - V / 2, O = C / 2 - g[m] / 2 - 1, I = Re(d[$], O), x = Re(d[k], O), T = I, R = C - g[m] - x, P = C / 2 - g[m] / 2 + B, G = Xe(T, P, R), L = !a.arrow && Me(l) != null && P !== G && i.reference[m] / 2 - (P < T ? I : x) - g[m] / 2 < 0, te = L ? P < T ? P - T : P - R : 0;
|
|
492
492
|
return {
|
|
493
493
|
[p]: v[p] + te,
|
|
494
494
|
data: {
|
|
@@ -681,11 +681,11 @@ const Rn = function(e) {
|
|
|
681
681
|
} = i.floating;
|
|
682
682
|
let y, $;
|
|
683
683
|
d === "top" || d === "bottom" ? (y = d, $ = v === (await (s.isRTL == null ? void 0 : s.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : ($ = d, y = v === "end" ? "top" : "bottom");
|
|
684
|
-
const k = g - c.top - c.bottom, _ = m - c.left - c.right,
|
|
685
|
-
let C =
|
|
684
|
+
const k = g - c.top - c.bottom, _ = m - c.left - c.right, A = Re(g - c[y], k), V = Re(m - c[$], _), h = !t.middlewareData.shift;
|
|
685
|
+
let C = A, B = V;
|
|
686
686
|
if ((o = t.middlewareData.shift) != null && o.enabled.x && (B = _), (n = t.middlewareData.shift) != null && n.enabled.y && (C = k), h && !v) {
|
|
687
|
-
const I = ie(c.left, 0), x = ie(c.right, 0),
|
|
688
|
-
p ? B = m - 2 * (I !== 0 || x !== 0 ? I + x : ie(c.left, c.right)) : C = g - 2 * (
|
|
687
|
+
const I = ie(c.left, 0), x = ie(c.right, 0), T = ie(c.top, 0), R = ie(c.bottom, 0);
|
|
688
|
+
p ? B = m - 2 * (I !== 0 || x !== 0 ? I + x : ie(c.left, c.right)) : C = g - 2 * (T !== 0 || R !== 0 ? T + R : ie(c.top, c.bottom));
|
|
689
689
|
}
|
|
690
690
|
await a({
|
|
691
691
|
...t,
|
|
@@ -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 y = Ke(g), $ = g.getBoundingClientRect(), k = ee(g), _ = $.left + (g.clientLeft + parseFloat(k.paddingLeft)) * y.x,
|
|
865
|
-
a *= y.x, u *= y.y, c *= y.x, d *= y.y, a += _, u +=
|
|
864
|
+
const y = Ke(g), $ = g.getBoundingClientRect(), k = ee(g), _ = $.left + (g.clientLeft + parseFloat(k.paddingLeft)) * y.x, A = $.top + (g.clientTop + parseFloat(k.paddingTop)) * y.y;
|
|
865
|
+
a *= y.x, u *= y.y, c *= y.x, d *= y.y, a += _, u += A, m = Z(g), g = Je(m);
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
return De({
|
|
@@ -1190,11 +1190,11 @@ 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, y.value = C !== !1;
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function A() {
|
|
1194
1194
|
typeof k == "function" && (k(), k = void 0);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1197
|
-
if (
|
|
1196
|
+
function V() {
|
|
1197
|
+
if (A(), n === void 0) {
|
|
1198
1198
|
_();
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
@@ -1208,11 +1208,11 @@ function Ft(e, t, o) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
return oe([i, s, r, l], _, {
|
|
1210
1210
|
flush: "sync"
|
|
1211
|
-
}), oe([u, c],
|
|
1211
|
+
}), oe([u, c], V, {
|
|
1212
1212
|
flush: "sync"
|
|
1213
1213
|
}), oe(l, h, {
|
|
1214
1214
|
flush: "sync"
|
|
1215
|
-
}), Ro() && So(
|
|
1215
|
+
}), Ro() && So(A), {
|
|
1216
1216
|
x: qe(d),
|
|
1217
1217
|
y: qe(v),
|
|
1218
1218
|
strategy: qe(p),
|
|
@@ -1277,10 +1277,10 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1277
1277
|
Et({ padding: 8 }),
|
|
1278
1278
|
Lt(8)
|
|
1279
1279
|
]
|
|
1280
|
-
}),
|
|
1281
|
-
|
|
1280
|
+
}), A = Ne(), V = D(!1), h = D(!1), C = () => {
|
|
1281
|
+
V.value = !0;
|
|
1282
1282
|
}, B = () => {
|
|
1283
|
-
|
|
1283
|
+
V.value = !1, I();
|
|
1284
1284
|
}, O = async (R) => {
|
|
1285
1285
|
R && R.stopPropagation(), r.value && (h.value = !0);
|
|
1286
1286
|
}, I = () => {
|
|
@@ -1296,7 +1296,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
B();
|
|
1298
1298
|
}
|
|
1299
|
-
},
|
|
1299
|
+
}, T = M(() => {
|
|
1300
1300
|
if (!m.value.arrow) return {};
|
|
1301
1301
|
const { x: R, y: P } = m.value.arrow;
|
|
1302
1302
|
switch (y.value) {
|
|
@@ -1314,8 +1314,8 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
1316
|
return oe(m, (R) => {
|
|
1317
|
-
console.log(R),
|
|
1318
|
-
}), oe(
|
|
1317
|
+
console.log(R), V.value = R.hide?.referenceHidden === !1;
|
|
1318
|
+
}), oe(V, (R) => {
|
|
1319
1319
|
R || I();
|
|
1320
1320
|
}), oe(o, () => {
|
|
1321
1321
|
g();
|
|
@@ -1334,13 +1334,13 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1334
1334
|
close: B,
|
|
1335
1335
|
openSecondScreen: O,
|
|
1336
1336
|
closeSecondScreen: I,
|
|
1337
|
-
isOpen:
|
|
1337
|
+
isOpen: V,
|
|
1338
1338
|
isSecondScreenOpen: h
|
|
1339
1339
|
}), (R, P) => (f(), b("div", {
|
|
1340
1340
|
class: F(["popover", { "popover--with-arrow": w(i) }])
|
|
1341
1341
|
}, [
|
|
1342
1342
|
S("div", {
|
|
1343
|
-
class: F(["popover__trigger", `popover__trigger--${w(
|
|
1343
|
+
class: F(["popover__trigger", `popover__trigger--${w(A)}`]),
|
|
1344
1344
|
ref: "reference",
|
|
1345
1345
|
onClick: C
|
|
1346
1346
|
}, [
|
|
@@ -1348,9 +1348,9 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1348
1348
|
], 2),
|
|
1349
1349
|
N(ze, { name: "fade" }, {
|
|
1350
1350
|
default: Y(() => [
|
|
1351
|
-
|
|
1351
|
+
V.value ? (f(), b("div", {
|
|
1352
1352
|
key: 0,
|
|
1353
|
-
class: F(["popover__wrapper", `popover__wrapper--${w(
|
|
1353
|
+
class: F(["popover__wrapper", `popover__wrapper--${w(A)}`]),
|
|
1354
1354
|
style: ue(w(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(T.value)
|
|
1374
1374
|
}, null, 4)) : H("", !0)
|
|
1375
1375
|
], 6)) : H("", !0)
|
|
1376
1376
|
]),
|
|
@@ -1911,7 +1911,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1911
1911
|
set(y) {
|
|
1912
1912
|
if (Array.isArray(y)) {
|
|
1913
1913
|
const $ = y.map((k) => {
|
|
1914
|
-
const _ = e.options.find((
|
|
1914
|
+
const _ = e.options.find((A) => A[n.value] === k);
|
|
1915
1915
|
return _ || k;
|
|
1916
1916
|
});
|
|
1917
1917
|
i.value = e.returnObject ? $ : y;
|
|
@@ -2010,7 +2010,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2010
2010
|
(f(!0), b(ae, null, Ae(y.options, (k, _) => (f(), z(Hl, {
|
|
2011
2011
|
key: _,
|
|
2012
2012
|
modelValue: s.value,
|
|
2013
|
-
"onUpdate:modelValue": $[3] || ($[3] = (
|
|
2013
|
+
"onUpdate:modelValue": $[3] || ($[3] = (A) => s.value = A),
|
|
2014
2014
|
item: k,
|
|
2015
2015
|
multiple: y.multiple
|
|
2016
2016
|
}, null, 8, ["modelValue", "item", "multiple"]))), 128))
|
|
@@ -2019,7 +2019,10 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2019
2019
|
], 512)
|
|
2020
2020
|
], 2));
|
|
2021
2021
|
}
|
|
2022
|
-
}), Kl = { class: "paginator" }, Yl = ["disabled"], Xl = { class: "paginator__pages" }, Zl = ["onClick"], Jl = ["disabled"], Ql = {
|
|
2022
|
+
}), Kl = { class: "paginator" }, Yl = ["disabled"], Xl = { class: "paginator__pages" }, Zl = ["onClick"], Jl = ["disabled"], Ql = {
|
|
2023
|
+
key: 0,
|
|
2024
|
+
class: "paginator__change-per-page"
|
|
2025
|
+
}, es = /* @__PURE__ */ E({
|
|
2023
2026
|
__name: "Paginator",
|
|
2024
2027
|
props: /* @__PURE__ */ J({
|
|
2025
2028
|
totals: {},
|
|
@@ -2027,12 +2030,12 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2027
2030
|
}, {
|
|
2028
2031
|
currentPage: { required: !0 },
|
|
2029
2032
|
currentPageModifiers: {},
|
|
2030
|
-
perPage: {
|
|
2033
|
+
perPage: {},
|
|
2031
2034
|
perPageModifiers: {}
|
|
2032
2035
|
}),
|
|
2033
2036
|
emits: ["update:currentPage", "update:perPage"],
|
|
2034
2037
|
setup(e) {
|
|
2035
|
-
const t = ne(e, "currentPage"), o = ne(e, "perPage"), n = M(() => Math.ceil(e.totals / o.value)), l = M(() => e.perPageOptions.map((s) => ({
|
|
2038
|
+
const t = ne(e, "currentPage"), o = ne(e, "perPage"), n = M(() => Math.ceil(e.totals / (o.value ?? 25))), l = M(() => e.perPageOptions.map((s) => ({
|
|
2036
2039
|
label: s,
|
|
2037
2040
|
value: s
|
|
2038
2041
|
}))), i = M(() => {
|
|
@@ -2064,7 +2067,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2064
2067
|
}, [
|
|
2065
2068
|
N(w(Zt))
|
|
2066
2069
|
], 8, Jl),
|
|
2067
|
-
|
|
2070
|
+
o.value ? (f(), b("div", Ql, [
|
|
2068
2071
|
r[3] || (r[3] = S("span", null, "Показывать по", -1)),
|
|
2069
2072
|
N(w(Ul), {
|
|
2070
2073
|
modelValue: o.value,
|
|
@@ -2072,16 +2075,18 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2072
2075
|
options: l.value,
|
|
2073
2076
|
class: "paginator__change-per-page__dropdown"
|
|
2074
2077
|
}, null, 8, ["modelValue", "options"])
|
|
2075
|
-
])
|
|
2078
|
+
])) : H("", !0)
|
|
2076
2079
|
]));
|
|
2077
2080
|
}
|
|
2078
|
-
}), ts = /* @__PURE__ */ pe(es, [["__scopeId", "data-v-
|
|
2081
|
+
}), ts = /* @__PURE__ */ pe(es, [["__scopeId", "data-v-ca21820f"]]), os = { class: "table-footer" }, ns = {
|
|
2079
2082
|
colspan: "100%",
|
|
2080
2083
|
class: "table-footer__wrapper"
|
|
2081
2084
|
}, ls = /* @__PURE__ */ E({
|
|
2082
2085
|
__name: "TableFooter",
|
|
2083
2086
|
props: /* @__PURE__ */ J({
|
|
2087
|
+
paginator: { type: Boolean },
|
|
2084
2088
|
data: {},
|
|
2089
|
+
totalsRow: {},
|
|
2085
2090
|
perPageOptions: {}
|
|
2086
2091
|
}, {
|
|
2087
2092
|
currentPage: { required: !0 },
|
|
@@ -2095,20 +2100,20 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2095
2100
|
return (n, l) => (f(), b("tfoot", os, [
|
|
2096
2101
|
S("tr", null, [
|
|
2097
2102
|
S("td", ns, [
|
|
2098
|
-
t.value ? (f(), z(w(ts), {
|
|
2103
|
+
n.paginator && t.value ? (f(), z(w(ts), {
|
|
2099
2104
|
key: 0,
|
|
2100
2105
|
"current-page": t.value,
|
|
2101
2106
|
"onUpdate:currentPage": l[0] || (l[0] = (i) => t.value = i),
|
|
2102
2107
|
"per-page": o.value,
|
|
2103
2108
|
"onUpdate:perPage": l[1] || (l[1] = (i) => o.value = i),
|
|
2104
|
-
totals: n.data.length,
|
|
2109
|
+
totals: n.totalsRow || n.data.length,
|
|
2105
2110
|
"per-page-options": n.perPageOptions
|
|
2106
2111
|
}, null, 8, ["current-page", "per-page", "totals", "per-page-options"])) : H("", !0)
|
|
2107
2112
|
])
|
|
2108
2113
|
])
|
|
2109
2114
|
]));
|
|
2110
2115
|
}
|
|
2111
|
-
}), ss = /* @__PURE__ */ pe(ls, [["__scopeId", "data-v-
|
|
2116
|
+
}), ss = /* @__PURE__ */ pe(ls, [["__scopeId", "data-v-569f5447"]]), is = (e) => {
|
|
2112
2117
|
const t = D([]), o = D({
|
|
2113
2118
|
selectedMode: null
|
|
2114
2119
|
}), n = (i) => {
|
|
@@ -2178,73 +2183,78 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2178
2183
|
sortField: {},
|
|
2179
2184
|
sortMode: {},
|
|
2180
2185
|
rowColorHovered: { type: Boolean },
|
|
2181
|
-
|
|
2186
|
+
rows: {},
|
|
2187
|
+
paginator: { type: Boolean },
|
|
2188
|
+
perPageOptions: {},
|
|
2189
|
+
totals: {}
|
|
2182
2190
|
}, {
|
|
2183
2191
|
currentPage: {},
|
|
2184
2192
|
currentPageModifiers: {},
|
|
2185
|
-
perPage: {
|
|
2193
|
+
perPage: {},
|
|
2186
2194
|
perPageModifiers: {}
|
|
2187
2195
|
}),
|
|
2188
|
-
emits: /* @__PURE__ */ J(["update:selectedRows", "rowClickHandler"
|
|
2196
|
+
emits: /* @__PURE__ */ J(["update:selectedRows", "rowClickHandler"], ["update:currentPage", "update:perPage"]),
|
|
2189
2197
|
setup(e, { emit: t }) {
|
|
2190
2198
|
const o = t, n = M(() => e.rowGroupMode), l = M(() => e.groupRowsBy), { dataWithGroup: i } = rs(n, l), { columns: s, options: r } = is(n), a = M(() => 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"), y = M(() => {
|
|
2191
|
-
let
|
|
2199
|
+
let A = [...e.data];
|
|
2192
2200
|
if (p.value) {
|
|
2193
2201
|
const { field: h, order: C } = p.value;
|
|
2194
|
-
|
|
2202
|
+
A.sort((B, O) => {
|
|
2195
2203
|
const I = B[h], x = O[h];
|
|
2196
2204
|
return I === x ? 0 : C === 1 ? I > x ? 1 : -1 : I < x ? 1 : -1;
|
|
2197
2205
|
});
|
|
2198
2206
|
}
|
|
2199
|
-
const
|
|
2200
|
-
return e.rowGroupMode === "rowspan" && e.groupRowsBy ?
|
|
2207
|
+
const V = i(A);
|
|
2208
|
+
return e.rowGroupMode === "rowspan" && e.groupRowsBy ? V.filter((h) => k.value.has(h._groupValue) ? h._isFirstInGroup : !0) : V;
|
|
2201
2209
|
}), $ = M(() => [
|
|
2202
2210
|
"table",
|
|
2203
2211
|
{
|
|
2204
2212
|
[`table--theme-${e.theme}`]: e.theme
|
|
2205
2213
|
}
|
|
2206
|
-
]), k = D(/* @__PURE__ */ new Set()), _ = (
|
|
2207
|
-
k.value.has(
|
|
2214
|
+
]), k = D(/* @__PURE__ */ new Set()), _ = (A) => {
|
|
2215
|
+
k.value.has(A) ? k.value.delete(A) : k.value.add(A);
|
|
2208
2216
|
};
|
|
2209
|
-
return oe(u, (
|
|
2210
|
-
o("update:selectedRows",
|
|
2211
|
-
}), (
|
|
2217
|
+
return oe(u, (A) => {
|
|
2218
|
+
o("update:selectedRows", A);
|
|
2219
|
+
}), (A, V) => (f(), b("table", {
|
|
2212
2220
|
class: F($.value)
|
|
2213
2221
|
}, [
|
|
2214
|
-
q(
|
|
2222
|
+
q(A.$slots, "default", {}, void 0, !0),
|
|
2215
2223
|
N(ml, {
|
|
2216
|
-
size:
|
|
2224
|
+
size: A.size,
|
|
2217
2225
|
columns: w(s),
|
|
2218
2226
|
isSelectedAll: w(c),
|
|
2219
|
-
sortMode:
|
|
2220
|
-
sortField:
|
|
2227
|
+
sortMode: A.sortMode,
|
|
2228
|
+
sortField: A.sortField,
|
|
2221
2229
|
onSelectAllRow: w(v),
|
|
2222
|
-
"onUpdate:sort":
|
|
2230
|
+
"onUpdate:sort": V[0] || (V[0] = (h) => p.value = h)
|
|
2223
2231
|
}, null, 8, ["size", "columns", "isSelectedAll", "sortMode", "sortField", "onSelectAllRow"]),
|
|
2224
2232
|
N($l, {
|
|
2225
|
-
size:
|
|
2233
|
+
size: A.size,
|
|
2226
2234
|
selectedRows: w(u),
|
|
2227
2235
|
columns: w(s),
|
|
2228
2236
|
data: y.value,
|
|
2229
|
-
rowGroupMode:
|
|
2230
|
-
groupRowsBy:
|
|
2237
|
+
rowGroupMode: A.rowGroupMode,
|
|
2238
|
+
groupRowsBy: A.groupRowsBy,
|
|
2231
2239
|
collapsedGroups: k.value,
|
|
2232
|
-
colorHovered:
|
|
2233
|
-
onRowClickHandler:
|
|
2234
|
-
onToggleRow:
|
|
2235
|
-
onToggleGroup:
|
|
2240
|
+
colorHovered: A.rowColorHovered,
|
|
2241
|
+
onRowClickHandler: V[1] || (V[1] = (h) => o("rowClickHandler", h)),
|
|
2242
|
+
onToggleRow: V[2] || (V[2] = (h) => w(d)(h)),
|
|
2243
|
+
onToggleGroup: V[3] || (V[3] = (h) => _(h))
|
|
2236
2244
|
}, null, 8, ["size", "selectedRows", "columns", "data", "rowGroupMode", "groupRowsBy", "collapsedGroups", "colorHovered"]),
|
|
2237
2245
|
N(ss, {
|
|
2238
2246
|
currentPage: m.value,
|
|
2239
|
-
"onUpdate:currentPage":
|
|
2247
|
+
"onUpdate:currentPage": V[4] || (V[4] = (h) => m.value = h),
|
|
2240
2248
|
"per-page": g.value,
|
|
2241
|
-
"onUpdate:perPage":
|
|
2249
|
+
"onUpdate:perPage": V[5] || (V[5] = (h) => g.value = h),
|
|
2242
2250
|
data: y.value,
|
|
2243
|
-
"per-page-options":
|
|
2244
|
-
|
|
2251
|
+
"per-page-options": A.perPageOptions,
|
|
2252
|
+
"totals-row": A.totals,
|
|
2253
|
+
paginator: A.paginator
|
|
2254
|
+
}, null, 8, ["currentPage", "per-page", "data", "per-page-options", "totals-row", "paginator"])
|
|
2245
2255
|
], 2));
|
|
2246
2256
|
}
|
|
2247
|
-
}), zi = /* @__PURE__ */ pe(us, [["__scopeId", "data-v-
|
|
2257
|
+
}), zi = /* @__PURE__ */ pe(us, [["__scopeId", "data-v-67822ded"]]), Gi = /* @__PURE__ */ E({
|
|
2248
2258
|
__name: "Column",
|
|
2249
2259
|
props: {
|
|
2250
2260
|
field: {},
|
|
@@ -2286,16 +2296,16 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2286
2296
|
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 () => {
|
|
2287
2297
|
if (await ke(), !l.value?.length) return;
|
|
2288
2298
|
let x = !1;
|
|
2289
|
-
l.value.forEach((
|
|
2290
|
-
if (!
|
|
2291
|
-
const P = y.value + R, G =
|
|
2299
|
+
l.value.forEach((T, R) => {
|
|
2300
|
+
if (!T) return;
|
|
2301
|
+
const P = y.value + R, G = T.offsetHeight;
|
|
2292
2302
|
r.value.get(P) !== G && (r.value.set(P, G), x = !0);
|
|
2293
2303
|
}), x && c();
|
|
2294
2304
|
}, c = () => {
|
|
2295
2305
|
let x = 0;
|
|
2296
|
-
for (let
|
|
2297
|
-
a.value.set(
|
|
2298
|
-
const R = r.value.get(
|
|
2306
|
+
for (let T = 0; T < o.items.length; T++) {
|
|
2307
|
+
a.value.set(T, x);
|
|
2308
|
+
const R = r.value.get(T) || o.estimatedItemHeight;
|
|
2299
2309
|
x += R;
|
|
2300
2310
|
}
|
|
2301
2311
|
}, d = (x) => a.value.get(x) || x * o.estimatedItemHeight, v = (x) => r.value.get(x) || o.estimatedItemHeight, p = M(() => {
|
|
@@ -2304,29 +2314,29 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2304
2314
|
const x = o.items.length - 1;
|
|
2305
2315
|
return d(x) + v(x);
|
|
2306
2316
|
}), m = (x) => {
|
|
2307
|
-
let
|
|
2308
|
-
for (;
|
|
2309
|
-
const P = Math.floor((
|
|
2310
|
-
d(P) <= x ?
|
|
2317
|
+
let T = 0, R = o.items.length - 1;
|
|
2318
|
+
for (; T <= R; ) {
|
|
2319
|
+
const P = Math.floor((T + R) / 2);
|
|
2320
|
+
d(P) <= x ? T = P + 1 : R = P - 1;
|
|
2311
2321
|
}
|
|
2312
2322
|
return Math.max(0, R - o.buffer);
|
|
2313
|
-
}, g = (x,
|
|
2314
|
-
const R = x +
|
|
2323
|
+
}, g = (x, T) => {
|
|
2324
|
+
const R = x + T;
|
|
2315
2325
|
let P = m(x);
|
|
2316
2326
|
for (; P < o.items.length && !(d(P) > R); )
|
|
2317
2327
|
P++;
|
|
2318
2328
|
return Math.min(o.items.length - 1, P + o.buffer);
|
|
2319
2329
|
}, y = M(() => m(i.value)), $ = M(() => g(i.value, s.value)), k = M(() => {
|
|
2320
2330
|
const x = [];
|
|
2321
|
-
for (let
|
|
2322
|
-
o.items[
|
|
2323
|
-
data: o.items[
|
|
2324
|
-
index:
|
|
2331
|
+
for (let T = y.value; T <= $.value; T++)
|
|
2332
|
+
o.items[T] && x.push({
|
|
2333
|
+
data: o.items[T],
|
|
2334
|
+
index: T
|
|
2325
2335
|
});
|
|
2326
2336
|
return x;
|
|
2327
|
-
}), _ = M(() => d(y.value)),
|
|
2328
|
-
const
|
|
2329
|
-
i.value =
|
|
2337
|
+
}), _ = M(() => d(y.value)), A = (x) => x.data[o.keyField] ?? x.index, V = (x) => {
|
|
2338
|
+
const T = x.target;
|
|
2339
|
+
i.value = T.scrollTop;
|
|
2330
2340
|
}, h = () => {
|
|
2331
2341
|
n.value && (s.value = n.value.clientHeight);
|
|
2332
2342
|
};
|
|
@@ -2344,8 +2354,8 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2344
2354
|
}, { deep: !0 }), t({
|
|
2345
2355
|
scrollToIndex: async (x) => {
|
|
2346
2356
|
if (!n.value || x < 0 || x >= o.items.length) return;
|
|
2347
|
-
const
|
|
2348
|
-
n.value.scrollTop =
|
|
2357
|
+
const T = d(x);
|
|
2358
|
+
n.value.scrollTop = T;
|
|
2349
2359
|
},
|
|
2350
2360
|
scrollToTop: () => {
|
|
2351
2361
|
n.value && (n.value.scrollTop = 0);
|
|
@@ -2354,11 +2364,11 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2354
2364
|
n.value && (n.value.scrollTop = p.value);
|
|
2355
2365
|
},
|
|
2356
2366
|
updateItemHeights: u
|
|
2357
|
-
}), (x,
|
|
2367
|
+
}), (x, T) => (f(), b("div", {
|
|
2358
2368
|
ref_key: "containerRef",
|
|
2359
2369
|
ref: n,
|
|
2360
2370
|
class: "virtual-scroll",
|
|
2361
|
-
onScroll:
|
|
2371
|
+
onScroll: V
|
|
2362
2372
|
}, [
|
|
2363
2373
|
S("div", {
|
|
2364
2374
|
class: "virtual-scroll__spacer",
|
|
@@ -2369,7 +2379,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2369
2379
|
style: ue({ transform: `translateY(${_.value}px)`, gap: `${x.gap}px` })
|
|
2370
2380
|
}, [
|
|
2371
2381
|
(f(!0), b(ae, null, Ae(k.value, (R) => (f(), b("div", {
|
|
2372
|
-
key:
|
|
2382
|
+
key: A(R),
|
|
2373
2383
|
ref_for: !0,
|
|
2374
2384
|
ref_key: "itemRefs",
|
|
2375
2385
|
ref: l,
|
|
@@ -2450,9 +2460,9 @@ function ms(e, t) {
|
|
|
2450
2460
|
}
|
|
2451
2461
|
function v(h) {
|
|
2452
2462
|
const { required: C, optional: B } = u(o), O = C + B;
|
|
2453
|
-
let I = "", x = 0,
|
|
2454
|
-
for (;
|
|
2455
|
-
const R = O[
|
|
2463
|
+
let I = "", x = 0, T = 0;
|
|
2464
|
+
for (; T < O.length; ) {
|
|
2465
|
+
const R = O[T];
|
|
2456
2466
|
if (c(R))
|
|
2457
2467
|
if (x < h.length) {
|
|
2458
2468
|
const P = h[x];
|
|
@@ -2466,7 +2476,7 @@ function ms(e, t) {
|
|
|
2466
2476
|
I += n;
|
|
2467
2477
|
else
|
|
2468
2478
|
I += R;
|
|
2469
|
-
|
|
2479
|
+
T++;
|
|
2470
2480
|
}
|
|
2471
2481
|
return I;
|
|
2472
2482
|
}
|
|
@@ -2476,14 +2486,14 @@ function ms(e, t) {
|
|
|
2476
2486
|
}
|
|
2477
2487
|
function m(h) {
|
|
2478
2488
|
const { required: C, optional: B } = u(o), O = C + B;
|
|
2479
|
-
let I = "", x = 0,
|
|
2480
|
-
for (; x < h.length &&
|
|
2481
|
-
const R = h[x], P = O[
|
|
2489
|
+
let I = "", x = 0, T = 0;
|
|
2490
|
+
for (; x < h.length && T < O.length; ) {
|
|
2491
|
+
const R = h[x], P = O[T];
|
|
2482
2492
|
if (R === n) {
|
|
2483
2493
|
x++;
|
|
2484
2494
|
continue;
|
|
2485
2495
|
}
|
|
2486
|
-
c(P) ? d(R, P) ? (I += R, x++,
|
|
2496
|
+
c(P) ? d(R, P) ? (I += R, x++, T++) : x++ : (R === P && x++, T++);
|
|
2487
2497
|
}
|
|
2488
2498
|
for (; x < h.length; ) {
|
|
2489
2499
|
const R = h[x];
|
|
@@ -2525,7 +2535,7 @@ function ms(e, t) {
|
|
|
2525
2535
|
if (!h.isTrusted) return;
|
|
2526
2536
|
const C = h.target, B = C.value, O = m(B), I = v(O);
|
|
2527
2537
|
s.value = I, e.value = O, ke(() => {
|
|
2528
|
-
const { required: x, optional:
|
|
2538
|
+
const { required: x, optional: T } = u(o), R = x + T;
|
|
2529
2539
|
let P = 0, G = 0;
|
|
2530
2540
|
for (let L = 0; L < R.length; L++)
|
|
2531
2541
|
if (c(R[L]))
|
|
@@ -2551,7 +2561,7 @@ function ms(e, t) {
|
|
|
2551
2561
|
setTimeout(() => {
|
|
2552
2562
|
const B = C.value, O = m(B), I = v(O);
|
|
2553
2563
|
s.value = I, e.value = O;
|
|
2554
|
-
const { required: x, optional:
|
|
2564
|
+
const { required: x, optional: T } = u(o), R = x + T;
|
|
2555
2565
|
let P = 0, G = 0;
|
|
2556
2566
|
for (let L = 0; L < R.length; L++)
|
|
2557
2567
|
if (c(R[L]))
|
|
@@ -2665,15 +2675,15 @@ function ms(e, t) {
|
|
|
2665
2675
|
}
|
|
2666
2676
|
if (h.metaKey || h.ctrlKey || ["ArrowLeft", "ArrowRight", "Tab", "Home", "End", "Escape"].includes(h.key))
|
|
2667
2677
|
return;
|
|
2668
|
-
const { required: O, optional: I } = u(o), x = O + I,
|
|
2669
|
-
if (
|
|
2678
|
+
const { required: O, optional: I } = u(o), x = O + I, T = m(s.value), R = x.split("").filter((L) => c(L)).length;
|
|
2679
|
+
if (T.length >= R) {
|
|
2670
2680
|
h.preventDefault();
|
|
2671
2681
|
return;
|
|
2672
2682
|
}
|
|
2673
2683
|
let P = -1, G = 0;
|
|
2674
2684
|
for (let L = 0; L < x.length; L++)
|
|
2675
2685
|
if (c(x[L])) {
|
|
2676
|
-
if (G ===
|
|
2686
|
+
if (G === T.length) {
|
|
2677
2687
|
P = L;
|
|
2678
2688
|
break;
|
|
2679
2689
|
}
|
|
@@ -2681,31 +2691,31 @@ function ms(e, t) {
|
|
|
2681
2691
|
}
|
|
2682
2692
|
P >= 0 && !d(h.key, x[P]) && h.preventDefault();
|
|
2683
2693
|
}
|
|
2684
|
-
function
|
|
2694
|
+
function A(h) {
|
|
2685
2695
|
r.value = !0, ke(() => {
|
|
2686
2696
|
const C = h.target, { required: B, optional: O } = u(o), I = B + O;
|
|
2687
2697
|
let x = 0;
|
|
2688
|
-
for (let
|
|
2689
|
-
if (c(I[
|
|
2690
|
-
x =
|
|
2698
|
+
for (let T = 0; T < I.length; T++)
|
|
2699
|
+
if (c(I[T])) {
|
|
2700
|
+
x = T;
|
|
2691
2701
|
break;
|
|
2692
2702
|
}
|
|
2693
2703
|
if (je(e)) {
|
|
2694
|
-
let
|
|
2704
|
+
let T = 0;
|
|
2695
2705
|
for (let R = 0; R < I.length; R++)
|
|
2696
2706
|
if (c(I[R])) {
|
|
2697
|
-
if (
|
|
2707
|
+
if (T >= je(e).length) {
|
|
2698
2708
|
x = R;
|
|
2699
2709
|
break;
|
|
2700
2710
|
}
|
|
2701
|
-
|
|
2711
|
+
T++;
|
|
2702
2712
|
}
|
|
2703
|
-
|
|
2713
|
+
T === je(e).length && (x = s.value.length);
|
|
2704
2714
|
}
|
|
2705
2715
|
C.setSelectionRange(x, x);
|
|
2706
2716
|
});
|
|
2707
2717
|
}
|
|
2708
|
-
function
|
|
2718
|
+
function V() {
|
|
2709
2719
|
r.value = !1, l && !g(s.value) ? (s.value = "", e.value = "") : je(e) || y();
|
|
2710
2720
|
}
|
|
2711
2721
|
return y(), oe(() => je(e), (h, C) => {
|
|
@@ -2717,8 +2727,8 @@ function ms(e, t) {
|
|
|
2717
2727
|
handleInput: $,
|
|
2718
2728
|
handlePaste: k,
|
|
2719
2729
|
handleKeydown: _,
|
|
2720
|
-
handleFocus:
|
|
2721
|
-
handleBlur:
|
|
2730
|
+
handleFocus: A,
|
|
2731
|
+
handleBlur: V,
|
|
2722
2732
|
placeholder: p()
|
|
2723
2733
|
};
|
|
2724
2734
|
}
|
|
@@ -3392,7 +3402,7 @@ const Qi = {
|
|
|
3392
3402
|
a();
|
|
3393
3403
|
return;
|
|
3394
3404
|
}
|
|
3395
|
-
const $ = p.getBoundingClientRect(), k = 8, _ = 8,
|
|
3405
|
+
const $ = p.getBoundingClientRect(), k = 8, _ = 8, A = (I) => {
|
|
3396
3406
|
switch (I) {
|
|
3397
3407
|
case "top":
|
|
3398
3408
|
return {
|
|
@@ -3437,17 +3447,17 @@ const Qi = {
|
|
|
3437
3447
|
default:
|
|
3438
3448
|
return { top: 0, left: 0 };
|
|
3439
3449
|
}
|
|
3440
|
-
},
|
|
3441
|
-
const x =
|
|
3450
|
+
}, V = (I) => {
|
|
3451
|
+
const x = A(I);
|
|
3442
3452
|
return x.top >= k && x.left >= k && x.top + $.height <= window.innerHeight - k && x.left + $.width <= window.innerWidth - k;
|
|
3443
3453
|
}, h = [m];
|
|
3444
3454
|
["bottomright", "bottom", "top", "right", "left", "bottomleft", "topright", "topleft"].forEach((I) => {
|
|
3445
3455
|
h.includes(I) || h.push(I);
|
|
3446
3456
|
});
|
|
3447
|
-
let B = m, O =
|
|
3457
|
+
let B = m, O = A(m);
|
|
3448
3458
|
for (const I of h)
|
|
3449
|
-
if (
|
|
3450
|
-
B = I, O =
|
|
3459
|
+
if (V(I)) {
|
|
3460
|
+
B = I, O = A(I);
|
|
3451
3461
|
break;
|
|
3452
3462
|
}
|
|
3453
3463
|
O.top = Math.max(k, Math.min(O.top, window.innerHeight - $.height - k)), O.left = Math.max(k, Math.min(O.left, window.innerWidth - $.width - k)), n.value = B, o.value = {
|
|
@@ -3862,8 +3872,8 @@ const si = async (e, t, o) => {
|
|
|
3862
3872
|
} = r[g], {
|
|
3863
3873
|
x: k,
|
|
3864
3874
|
y: _,
|
|
3865
|
-
data:
|
|
3866
|
-
reset:
|
|
3875
|
+
data: A,
|
|
3876
|
+
reset: V
|
|
3867
3877
|
} = await $({
|
|
3868
3878
|
x: c,
|
|
3869
3879
|
y: d,
|
|
@@ -3882,13 +3892,13 @@ const si = async (e, t, o) => {
|
|
|
3882
3892
|
...p,
|
|
3883
3893
|
[y]: {
|
|
3884
3894
|
...p[y],
|
|
3885
|
-
...
|
|
3895
|
+
...A
|
|
3886
3896
|
}
|
|
3887
|
-
},
|
|
3897
|
+
}, V && m <= 50 && (m++, typeof V == "object" && (V.placement && (v = V.placement), V.rects && (u = V.rects === !0 ? await s.getElementRects({
|
|
3888
3898
|
reference: e,
|
|
3889
3899
|
floating: t,
|
|
3890
3900
|
strategy: l
|
|
3891
|
-
}) :
|
|
3901
|
+
}) : V.rects), {
|
|
3892
3902
|
x: c,
|
|
3893
3903
|
y: d
|
|
3894
3904
|
} = zt(u, v, a)), g = -1);
|
|
@@ -3927,23 +3937,23 @@ async function vo(e, t) {
|
|
|
3927
3937
|
y: l,
|
|
3928
3938
|
width: s.floating.width,
|
|
3929
3939
|
height: s.floating.height
|
|
3930
|
-
} : s.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)),
|
|
3940
|
+
} : s.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)), A = await (i.isElement == null ? void 0 : i.isElement(_)) ? await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
3931
3941
|
x: 1,
|
|
3932
3942
|
y: 1
|
|
3933
3943
|
} : {
|
|
3934
3944
|
x: 1,
|
|
3935
3945
|
y: 1
|
|
3936
|
-
},
|
|
3946
|
+
}, V = De(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3937
3947
|
elements: r,
|
|
3938
3948
|
rect: k,
|
|
3939
3949
|
offsetParent: _,
|
|
3940
3950
|
strategy: a
|
|
3941
3951
|
}) : k);
|
|
3942
3952
|
return {
|
|
3943
|
-
top: ($.top -
|
|
3944
|
-
bottom: (
|
|
3945
|
-
left: ($.left -
|
|
3946
|
-
right: (
|
|
3953
|
+
top: ($.top - V.top + m.top) / A.y,
|
|
3954
|
+
bottom: (V.bottom - $.bottom + m.bottom) / A.y,
|
|
3955
|
+
left: ($.left - V.left + m.left) / A.x,
|
|
3956
|
+
right: (V.right - $.right + m.right) / A.x
|
|
3947
3957
|
};
|
|
3948
3958
|
}
|
|
3949
3959
|
const ii = (e) => ({
|
|
@@ -3967,10 +3977,10 @@ const ii = (e) => ({
|
|
|
3967
3977
|
const d = ut(c), v = {
|
|
3968
3978
|
x: o,
|
|
3969
3979
|
y: n
|
|
3970
|
-
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), y = p === "y", $ = y ? "top" : "left", k = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth",
|
|
3980
|
+
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), y = p === "y", $ = y ? "top" : "left", k = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth", A = i.reference[m] + i.reference[p] - v[p] - i.floating[m], V = v[p] - i.reference[p], h = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
3971
3981
|
let C = h ? h[_] : 0;
|
|
3972
3982
|
(!C || !await (s.isElement == null ? void 0 : s.isElement(h))) && (C = r.floating[_] || i.floating[m]);
|
|
3973
|
-
const B =
|
|
3983
|
+
const B = A / 2 - V / 2, O = C / 2 - g[m] / 2 - 1, I = Re(d[$], O), x = Re(d[k], O), T = I, R = C - g[m] - x, P = C / 2 - g[m] / 2 + B, G = Xe(T, P, R), L = !a.arrow && Me(l) != null && P !== G && i.reference[m] / 2 - (P < T ? I : x) - g[m] / 2 < 0, te = L ? P < T ? P - T : P - R : 0;
|
|
3974
3984
|
return {
|
|
3975
3985
|
[p]: v[p] + te,
|
|
3976
3986
|
data: {
|
|
@@ -4007,19 +4017,19 @@ const ii = (e) => ({
|
|
|
4007
4017
|
} = Pe(e, t);
|
|
4008
4018
|
if ((o = i.arrow) != null && o.alignmentOffset)
|
|
4009
4019
|
return {};
|
|
4010
|
-
const $ = Se(l), k = xe(r), _ = Se(r) === r,
|
|
4011
|
-
!v && h &&
|
|
4012
|
-
const C = [r, ...
|
|
4020
|
+
const $ = Se(l), k = xe(r), _ = Se(r) === r, A = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), V = v || (_ || !g ? [at(r)] : mn(r)), h = m !== "none";
|
|
4021
|
+
!v && h && V.push(...wn(r, g, m, A));
|
|
4022
|
+
const C = [r, ...V], B = await vo(t, y), O = [];
|
|
4013
4023
|
let I = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
4014
4024
|
if (c && O.push(B[$]), d) {
|
|
4015
|
-
const P = pn(l, s,
|
|
4025
|
+
const P = pn(l, s, A);
|
|
4016
4026
|
O.push(B[P[0]], B[P[1]]);
|
|
4017
4027
|
}
|
|
4018
4028
|
if (I = [...I, {
|
|
4019
4029
|
placement: l,
|
|
4020
4030
|
overflows: O
|
|
4021
4031
|
}], !O.every((P) => P <= 0)) {
|
|
4022
|
-
var x,
|
|
4032
|
+
var x, T;
|
|
4023
4033
|
const P = (((x = i.flip) == null ? void 0 : x.index) || 0) + 1, G = C[P];
|
|
4024
4034
|
if (G && (!(d === "alignment" ? k !== xe(G) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4025
4035
|
// overflows the main axis.
|
|
@@ -4033,7 +4043,7 @@ const ii = (e) => ({
|
|
|
4033
4043
|
placement: G
|
|
4034
4044
|
}
|
|
4035
4045
|
};
|
|
4036
|
-
let L = (
|
|
4046
|
+
let L = (T = I.filter((te) => te.overflows[0] <= 0).sort((te, me) => te.overflows[1] - me.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
4037
4047
|
if (!L)
|
|
4038
4048
|
switch (p) {
|
|
4039
4049
|
case "bestFit": {
|
|
@@ -4221,8 +4231,8 @@ function et(e, t, o, n) {
|
|
|
4221
4231
|
const v = Z(i), p = n && Q(n) ? Z(n) : n;
|
|
4222
4232
|
let m = v, g = Je(m);
|
|
4223
4233
|
for (; g && n && p !== m; ) {
|
|
4224
|
-
const y = Ye(g), $ = g.getBoundingClientRect(), k = ee(g), _ = $.left + (g.clientLeft + parseFloat(k.paddingLeft)) * y.x,
|
|
4225
|
-
a *= y.x, u *= y.y, c *= y.x, d *= y.y, a += _, u +=
|
|
4234
|
+
const y = Ye(g), $ = g.getBoundingClientRect(), k = ee(g), _ = $.left + (g.clientLeft + parseFloat(k.paddingLeft)) * y.x, A = $.top + (g.clientTop + parseFloat(k.paddingTop)) * y.y;
|
|
4235
|
+
a *= y.x, u *= y.y, c *= y.x, d *= y.y, a += _, u += A, m = Z(g), g = Je(m);
|
|
4226
4236
|
}
|
|
4227
4237
|
}
|
|
4228
4238
|
return De({
|
|
@@ -4500,15 +4510,15 @@ const Si = {
|
|
|
4500
4510
|
left: `${g}px`,
|
|
4501
4511
|
top: `${y}px`
|
|
4502
4512
|
}, o.showArrow && k.arrow && m) {
|
|
4503
|
-
const { x: _, y:
|
|
4513
|
+
const { x: _, y: A } = k.arrow, V = $.split("-")[0], h = {
|
|
4504
4514
|
top: "bottom",
|
|
4505
4515
|
right: "left",
|
|
4506
4516
|
bottom: "top",
|
|
4507
4517
|
left: "right"
|
|
4508
|
-
}[
|
|
4518
|
+
}[V];
|
|
4509
4519
|
r.value = {
|
|
4510
4520
|
left: _ != null ? `${_}px` : "",
|
|
4511
|
-
top:
|
|
4521
|
+
top: A != null ? `${A}px` : "",
|
|
4512
4522
|
right: "",
|
|
4513
4523
|
bottom: "",
|
|
4514
4524
|
[h]: "-4px"
|