prlg-ui 1.7.21 → 1.7.23
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/icons/index.cjs.js +1 -1
- package/dist/icons/index.es.js +47 -47
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +100 -100
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -381,7 +381,7 @@ const bn = async (e, t, o) => {
|
|
|
381
381
|
x: k,
|
|
382
382
|
y: _,
|
|
383
383
|
data: A,
|
|
384
|
-
reset:
|
|
384
|
+
reset: T
|
|
385
385
|
} = await $({
|
|
386
386
|
x: c,
|
|
387
387
|
y: d,
|
|
@@ -402,11 +402,11 @@ const bn = async (e, t, o) => {
|
|
|
402
402
|
...p[b],
|
|
403
403
|
...A
|
|
404
404
|
}
|
|
405
|
-
},
|
|
405
|
+
}, T && m <= 50 && (m++, typeof T == "object" && (T.placement && (v = T.placement), T.rects && (u = T.rects === !0 ? await s.getElementRects({
|
|
406
406
|
reference: e,
|
|
407
407
|
floating: t,
|
|
408
408
|
strategy: l
|
|
409
|
-
}) :
|
|
409
|
+
}) : T.rects), {
|
|
410
410
|
x: c,
|
|
411
411
|
y: d
|
|
412
412
|
} = Tt(u, v, a)), g = -1);
|
|
@@ -451,17 +451,17 @@ async function rt(e, t) {
|
|
|
451
451
|
} : {
|
|
452
452
|
x: 1,
|
|
453
453
|
y: 1
|
|
454
|
-
},
|
|
454
|
+
}, T = 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 - T.top + m.top) / A.y,
|
|
462
|
+
bottom: (T.bottom - $.bottom + m.bottom) / A.y,
|
|
463
|
+
left: ($.left - T.left + m.left) / A.x,
|
|
464
|
+
right: (T.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), b = p === "y", $ = b ? "top" : "left", k = b ? "bottom" : "right", _ = b ? "clientHeight" : "clientWidth", A = i.reference[m] + i.reference[p] - v[p] - i.floating[m],
|
|
488
|
+
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), b = p === "y", $ = b ? "top" : "left", k = b ? "bottom" : "right", _ = b ? "clientHeight" : "clientWidth", A = i.reference[m] + i.reference[p] - v[p] - i.floating[m], T = 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 = A / 2 -
|
|
491
|
+
const B = A / 2 - T / 2, O = C / 2 - g[m] / 2 - 1, I = Re(d[$], O), x = Re(d[k], O), V = I, R = C - g[m] - x, P = C / 2 - g[m] / 2 + B, G = Xe(V, P, R), L = !a.arrow && Me(l) != null && P !== G && i.reference[m] / 2 - (P < V ? I : x) - g[m] / 2 < 0, te = L ? P < V ? P - V : 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 b, $;
|
|
683
683
|
d === "top" || d === "bottom" ? (b = d, $ = v === (await (s.isRTL == null ? void 0 : s.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : ($ = d, b = v === "end" ? "top" : "bottom");
|
|
684
|
-
const k = g - c.top - c.bottom, _ = m - c.left - c.right, A = Re(g - c[b], k),
|
|
685
|
-
let C = A, B =
|
|
684
|
+
const k = g - c.top - c.bottom, _ = m - c.left - c.right, A = Re(g - c[b], k), T = Re(m - c[$], _), h = !t.middlewareData.shift;
|
|
685
|
+
let C = A, B = T;
|
|
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), V = 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 * (V !== 0 || R !== 0 ? V + R : ie(c.top, c.bottom));
|
|
689
689
|
}
|
|
690
690
|
await a({
|
|
691
691
|
...t,
|
|
@@ -1193,7 +1193,7 @@ function Ft(e, t, o) {
|
|
|
1193
1193
|
function A() {
|
|
1194
1194
|
typeof k == "function" && (k(), k = void 0);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function T() {
|
|
1197
1197
|
if (A(), n === void 0) {
|
|
1198
1198
|
_();
|
|
1199
1199
|
return;
|
|
@@ -1208,7 +1208,7 @@ 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], T, {
|
|
1212
1212
|
flush: "sync"
|
|
1213
1213
|
}), oe(l, h, {
|
|
1214
1214
|
flush: "sync"
|
|
@@ -1243,7 +1243,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1243
1243
|
},
|
|
1244
1244
|
setup(e, { expose: t }) {
|
|
1245
1245
|
Po((R) => ({
|
|
1246
|
-
|
|
1246
|
+
c63af724: c.value
|
|
1247
1247
|
}));
|
|
1248
1248
|
const o = e, { placement: n, offset: l, arrowVisible: i } = _o(o), s = Be("reference"), r = Be("floating"), a = Be("arrow-block"), u = Be("second-screen"), c = M(() => "23px"), d = M(() => 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,
|
|
@@ -1277,10 +1277,10 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1277
1277
|
Et({ padding: 8 }),
|
|
1278
1278
|
Lt(8)
|
|
1279
1279
|
]
|
|
1280
|
-
}), A = Ne(),
|
|
1281
|
-
|
|
1280
|
+
}), A = Ne(), T = D(!1), h = D(!1), C = () => {
|
|
1281
|
+
T.value = !0;
|
|
1282
1282
|
}, B = () => {
|
|
1283
|
-
|
|
1283
|
+
T.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
|
+
}, V = M(() => {
|
|
1300
1300
|
if (!m.value.arrow) return {};
|
|
1301
1301
|
const { x: R, y: P } = m.value.arrow;
|
|
1302
1302
|
switch (b.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), console.log(T.value), T.value = R.hide?.referenceHidden === !1;
|
|
1318
|
+
}), oe(T, (R) => {
|
|
1319
1319
|
R || I();
|
|
1320
1320
|
}), oe(o, () => {
|
|
1321
1321
|
g();
|
|
@@ -1334,7 +1334,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1334
1334
|
close: B,
|
|
1335
1335
|
openSecondScreen: O,
|
|
1336
1336
|
closeSecondScreen: I,
|
|
1337
|
-
isOpen:
|
|
1337
|
+
isOpen: T,
|
|
1338
1338
|
isSecondScreenOpen: h
|
|
1339
1339
|
}), (R, P) => (f(), y("div", {
|
|
1340
1340
|
class: F(["popover", { "popover--with-arrow": w(i) }])
|
|
@@ -1348,7 +1348,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1348
1348
|
], 2),
|
|
1349
1349
|
N(ze, { name: "fade" }, {
|
|
1350
1350
|
default: Y(() => [
|
|
1351
|
-
|
|
1351
|
+
T.value ? (f(), y("div", {
|
|
1352
1352
|
key: 0,
|
|
1353
1353
|
class: F(["popover__wrapper", `popover__wrapper--${w(A)}`]),
|
|
1354
1354
|
style: ue(w(p)),
|
|
@@ -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(V.value)
|
|
1374
1374
|
}, null, 4)) : H("", !0)
|
|
1375
1375
|
], 6)) : H("", !0)
|
|
1376
1376
|
]),
|
|
@@ -1391,7 +1391,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
1391
1391
|
})
|
|
1392
1392
|
], 2));
|
|
1393
1393
|
}
|
|
1394
|
-
}), ll = /* @__PURE__ */ pe(nl, [["__scopeId", "data-v-
|
|
1394
|
+
}), ll = /* @__PURE__ */ pe(nl, [["__scopeId", "data-v-50ff4d83"]]), sl = { class: "trigger" }, il = { class: "description-column" }, al = /* @__PURE__ */ E({
|
|
1395
1395
|
__name: "DescriptionColumn",
|
|
1396
1396
|
props: {
|
|
1397
1397
|
description: {}
|
|
@@ -2204,8 +2204,8 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2204
2204
|
return I === x ? 0 : C === 1 ? I > x ? 1 : -1 : I < x ? 1 : -1;
|
|
2205
2205
|
});
|
|
2206
2206
|
}
|
|
2207
|
-
const
|
|
2208
|
-
return e.rowGroupMode === "rowspan" && e.groupRowsBy ?
|
|
2207
|
+
const T = i(A);
|
|
2208
|
+
return e.rowGroupMode === "rowspan" && e.groupRowsBy ? T.filter((h) => k.value.has(h._groupValue) ? h._isFirstInGroup : !0) : T;
|
|
2209
2209
|
}), $ = M(() => [
|
|
2210
2210
|
"table",
|
|
2211
2211
|
{
|
|
@@ -2216,7 +2216,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2216
2216
|
};
|
|
2217
2217
|
return oe(u, (A) => {
|
|
2218
2218
|
o("update:selectedRows", A);
|
|
2219
|
-
}), (A,
|
|
2219
|
+
}), (A, T) => (f(), y("table", {
|
|
2220
2220
|
class: F($.value)
|
|
2221
2221
|
}, [
|
|
2222
2222
|
q(A.$slots, "default", {}, void 0, !0),
|
|
@@ -2227,7 +2227,7 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2227
2227
|
sortMode: A.sortMode,
|
|
2228
2228
|
sortField: A.sortField,
|
|
2229
2229
|
onSelectAllRow: w(v),
|
|
2230
|
-
"onUpdate:sort":
|
|
2230
|
+
"onUpdate:sort": T[0] || (T[0] = (h) => p.value = h)
|
|
2231
2231
|
}, null, 8, ["size", "columns", "isSelectedAll", "sortMode", "sortField", "onSelectAllRow"]),
|
|
2232
2232
|
N($l, {
|
|
2233
2233
|
size: A.size,
|
|
@@ -2238,15 +2238,15 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2238
2238
|
groupRowsBy: A.groupRowsBy,
|
|
2239
2239
|
collapsedGroups: k.value,
|
|
2240
2240
|
colorHovered: A.rowColorHovered,
|
|
2241
|
-
onRowClickHandler:
|
|
2242
|
-
onToggleRow:
|
|
2243
|
-
onToggleGroup:
|
|
2241
|
+
onRowClickHandler: T[1] || (T[1] = (h) => o("rowClickHandler", h)),
|
|
2242
|
+
onToggleRow: T[2] || (T[2] = (h) => w(d)(h)),
|
|
2243
|
+
onToggleGroup: T[3] || (T[3] = (h) => _(h))
|
|
2244
2244
|
}, null, 8, ["size", "selectedRows", "columns", "data", "rowGroupMode", "groupRowsBy", "collapsedGroups", "colorHovered"]),
|
|
2245
2245
|
N(ss, {
|
|
2246
2246
|
currentPage: m.value,
|
|
2247
|
-
"onUpdate:currentPage":
|
|
2247
|
+
"onUpdate:currentPage": T[4] || (T[4] = (h) => m.value = h),
|
|
2248
2248
|
"per-page": g.value,
|
|
2249
|
-
"onUpdate:perPage":
|
|
2249
|
+
"onUpdate:perPage": T[5] || (T[5] = (h) => g.value = h),
|
|
2250
2250
|
data: b.value,
|
|
2251
2251
|
"per-page-options": A.perPageOptions,
|
|
2252
2252
|
"totals-row": A.totals,
|
|
@@ -2296,16 +2296,16 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2296
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 () => {
|
|
2297
2297
|
if (await ke(), !l.value?.length) return;
|
|
2298
2298
|
let x = !1;
|
|
2299
|
-
l.value.forEach((
|
|
2300
|
-
if (!
|
|
2301
|
-
const P = b.value + R, G =
|
|
2299
|
+
l.value.forEach((V, R) => {
|
|
2300
|
+
if (!V) return;
|
|
2301
|
+
const P = b.value + R, G = V.offsetHeight;
|
|
2302
2302
|
r.value.get(P) !== G && (r.value.set(P, G), x = !0);
|
|
2303
2303
|
}), x && c();
|
|
2304
2304
|
}, c = () => {
|
|
2305
2305
|
let x = 0;
|
|
2306
|
-
for (let
|
|
2307
|
-
a.value.set(
|
|
2308
|
-
const R = r.value.get(
|
|
2306
|
+
for (let V = 0; V < o.items.length; V++) {
|
|
2307
|
+
a.value.set(V, x);
|
|
2308
|
+
const R = r.value.get(V) || o.estimatedItemHeight;
|
|
2309
2309
|
x += R;
|
|
2310
2310
|
}
|
|
2311
2311
|
}, d = (x) => a.value.get(x) || x * o.estimatedItemHeight, v = (x) => r.value.get(x) || o.estimatedItemHeight, p = M(() => {
|
|
@@ -2314,29 +2314,29 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2314
2314
|
const x = o.items.length - 1;
|
|
2315
2315
|
return d(x) + v(x);
|
|
2316
2316
|
}), m = (x) => {
|
|
2317
|
-
let
|
|
2318
|
-
for (;
|
|
2319
|
-
const P = Math.floor((
|
|
2320
|
-
d(P) <= x ?
|
|
2317
|
+
let V = 0, R = o.items.length - 1;
|
|
2318
|
+
for (; V <= R; ) {
|
|
2319
|
+
const P = Math.floor((V + R) / 2);
|
|
2320
|
+
d(P) <= x ? V = P + 1 : R = P - 1;
|
|
2321
2321
|
}
|
|
2322
2322
|
return Math.max(0, R - o.buffer);
|
|
2323
|
-
}, g = (x,
|
|
2324
|
-
const R = x +
|
|
2323
|
+
}, g = (x, V) => {
|
|
2324
|
+
const R = x + V;
|
|
2325
2325
|
let P = m(x);
|
|
2326
2326
|
for (; P < o.items.length && !(d(P) > R); )
|
|
2327
2327
|
P++;
|
|
2328
2328
|
return Math.min(o.items.length - 1, P + o.buffer);
|
|
2329
2329
|
}, b = M(() => m(i.value)), $ = M(() => g(i.value, s.value)), k = M(() => {
|
|
2330
2330
|
const x = [];
|
|
2331
|
-
for (let
|
|
2332
|
-
o.items[
|
|
2333
|
-
data: o.items[
|
|
2334
|
-
index:
|
|
2331
|
+
for (let V = b.value; V <= $.value; V++)
|
|
2332
|
+
o.items[V] && x.push({
|
|
2333
|
+
data: o.items[V],
|
|
2334
|
+
index: V
|
|
2335
2335
|
});
|
|
2336
2336
|
return x;
|
|
2337
|
-
}), _ = M(() => d(b.value)), A = (x) => x.data[o.keyField] ?? x.index,
|
|
2338
|
-
const
|
|
2339
|
-
i.value =
|
|
2337
|
+
}), _ = M(() => d(b.value)), A = (x) => x.data[o.keyField] ?? x.index, T = (x) => {
|
|
2338
|
+
const V = x.target;
|
|
2339
|
+
i.value = V.scrollTop;
|
|
2340
2340
|
}, h = () => {
|
|
2341
2341
|
n.value && (s.value = n.value.clientHeight);
|
|
2342
2342
|
};
|
|
@@ -2354,8 +2354,8 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2354
2354
|
}, { deep: !0 }), t({
|
|
2355
2355
|
scrollToIndex: async (x) => {
|
|
2356
2356
|
if (!n.value || x < 0 || x >= o.items.length) return;
|
|
2357
|
-
const
|
|
2358
|
-
n.value.scrollTop =
|
|
2357
|
+
const V = d(x);
|
|
2358
|
+
n.value.scrollTop = V;
|
|
2359
2359
|
},
|
|
2360
2360
|
scrollToTop: () => {
|
|
2361
2361
|
n.value && (n.value.scrollTop = 0);
|
|
@@ -2364,11 +2364,11 @@ const tl = { class: "popover__content" }, ol = {
|
|
|
2364
2364
|
n.value && (n.value.scrollTop = p.value);
|
|
2365
2365
|
},
|
|
2366
2366
|
updateItemHeights: u
|
|
2367
|
-
}), (x,
|
|
2367
|
+
}), (x, V) => (f(), y("div", {
|
|
2368
2368
|
ref_key: "containerRef",
|
|
2369
2369
|
ref: n,
|
|
2370
2370
|
class: "virtual-scroll",
|
|
2371
|
-
onScroll:
|
|
2371
|
+
onScroll: T
|
|
2372
2372
|
}, [
|
|
2373
2373
|
S("div", {
|
|
2374
2374
|
class: "virtual-scroll__spacer",
|
|
@@ -2460,9 +2460,9 @@ function ms(e, t) {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
function v(h) {
|
|
2462
2462
|
const { required: C, optional: B } = u(o), O = C + B;
|
|
2463
|
-
let I = "", x = 0,
|
|
2464
|
-
for (;
|
|
2465
|
-
const R = O[
|
|
2463
|
+
let I = "", x = 0, V = 0;
|
|
2464
|
+
for (; V < O.length; ) {
|
|
2465
|
+
const R = O[V];
|
|
2466
2466
|
if (c(R))
|
|
2467
2467
|
if (x < h.length) {
|
|
2468
2468
|
const P = h[x];
|
|
@@ -2476,7 +2476,7 @@ function ms(e, t) {
|
|
|
2476
2476
|
I += n;
|
|
2477
2477
|
else
|
|
2478
2478
|
I += R;
|
|
2479
|
-
|
|
2479
|
+
V++;
|
|
2480
2480
|
}
|
|
2481
2481
|
return I;
|
|
2482
2482
|
}
|
|
@@ -2486,14 +2486,14 @@ function ms(e, t) {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
function m(h) {
|
|
2488
2488
|
const { required: C, optional: B } = u(o), O = C + B;
|
|
2489
|
-
let I = "", x = 0,
|
|
2490
|
-
for (; x < h.length &&
|
|
2491
|
-
const R = h[x], P = O[
|
|
2489
|
+
let I = "", x = 0, V = 0;
|
|
2490
|
+
for (; x < h.length && V < O.length; ) {
|
|
2491
|
+
const R = h[x], P = O[V];
|
|
2492
2492
|
if (R === n) {
|
|
2493
2493
|
x++;
|
|
2494
2494
|
continue;
|
|
2495
2495
|
}
|
|
2496
|
-
c(P) ? d(R, P) ? (I += R, x++,
|
|
2496
|
+
c(P) ? d(R, P) ? (I += R, x++, V++) : x++ : (R === P && x++, V++);
|
|
2497
2497
|
}
|
|
2498
2498
|
for (; x < h.length; ) {
|
|
2499
2499
|
const R = h[x];
|
|
@@ -2535,7 +2535,7 @@ function ms(e, t) {
|
|
|
2535
2535
|
if (!h.isTrusted) return;
|
|
2536
2536
|
const C = h.target, B = C.value, O = m(B), I = v(O);
|
|
2537
2537
|
s.value = I, e.value = O, ke(() => {
|
|
2538
|
-
const { required: x, optional:
|
|
2538
|
+
const { required: x, optional: V } = u(o), R = x + V;
|
|
2539
2539
|
let P = 0, G = 0;
|
|
2540
2540
|
for (let L = 0; L < R.length; L++)
|
|
2541
2541
|
if (c(R[L]))
|
|
@@ -2561,7 +2561,7 @@ function ms(e, t) {
|
|
|
2561
2561
|
setTimeout(() => {
|
|
2562
2562
|
const B = C.value, O = m(B), I = v(O);
|
|
2563
2563
|
s.value = I, e.value = O;
|
|
2564
|
-
const { required: x, optional:
|
|
2564
|
+
const { required: x, optional: V } = u(o), R = x + V;
|
|
2565
2565
|
let P = 0, G = 0;
|
|
2566
2566
|
for (let L = 0; L < R.length; L++)
|
|
2567
2567
|
if (c(R[L]))
|
|
@@ -2675,15 +2675,15 @@ function ms(e, t) {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
if (h.metaKey || h.ctrlKey || ["ArrowLeft", "ArrowRight", "Tab", "Home", "End", "Escape"].includes(h.key))
|
|
2677
2677
|
return;
|
|
2678
|
-
const { required: O, optional: I } = u(o), x = O + I,
|
|
2679
|
-
if (
|
|
2678
|
+
const { required: O, optional: I } = u(o), x = O + I, V = m(s.value), R = x.split("").filter((L) => c(L)).length;
|
|
2679
|
+
if (V.length >= R) {
|
|
2680
2680
|
h.preventDefault();
|
|
2681
2681
|
return;
|
|
2682
2682
|
}
|
|
2683
2683
|
let P = -1, G = 0;
|
|
2684
2684
|
for (let L = 0; L < x.length; L++)
|
|
2685
2685
|
if (c(x[L])) {
|
|
2686
|
-
if (G ===
|
|
2686
|
+
if (G === V.length) {
|
|
2687
2687
|
P = L;
|
|
2688
2688
|
break;
|
|
2689
2689
|
}
|
|
@@ -2695,27 +2695,27 @@ function ms(e, t) {
|
|
|
2695
2695
|
r.value = !0, ke(() => {
|
|
2696
2696
|
const C = h.target, { required: B, optional: O } = u(o), I = B + O;
|
|
2697
2697
|
let x = 0;
|
|
2698
|
-
for (let
|
|
2699
|
-
if (c(I[
|
|
2700
|
-
x =
|
|
2698
|
+
for (let V = 0; V < I.length; V++)
|
|
2699
|
+
if (c(I[V])) {
|
|
2700
|
+
x = V;
|
|
2701
2701
|
break;
|
|
2702
2702
|
}
|
|
2703
2703
|
if (je(e)) {
|
|
2704
|
-
let
|
|
2704
|
+
let V = 0;
|
|
2705
2705
|
for (let R = 0; R < I.length; R++)
|
|
2706
2706
|
if (c(I[R])) {
|
|
2707
|
-
if (
|
|
2707
|
+
if (V >= je(e).length) {
|
|
2708
2708
|
x = R;
|
|
2709
2709
|
break;
|
|
2710
2710
|
}
|
|
2711
|
-
|
|
2711
|
+
V++;
|
|
2712
2712
|
}
|
|
2713
|
-
|
|
2713
|
+
V === je(e).length && (x = s.value.length);
|
|
2714
2714
|
}
|
|
2715
2715
|
C.setSelectionRange(x, x);
|
|
2716
2716
|
});
|
|
2717
2717
|
}
|
|
2718
|
-
function
|
|
2718
|
+
function T() {
|
|
2719
2719
|
r.value = !1, l && !g(s.value) ? (s.value = "", e.value = "") : je(e) || b();
|
|
2720
2720
|
}
|
|
2721
2721
|
return b(), oe(() => je(e), (h, C) => {
|
|
@@ -2728,7 +2728,7 @@ function ms(e, t) {
|
|
|
2728
2728
|
handlePaste: k,
|
|
2729
2729
|
handleKeydown: _,
|
|
2730
2730
|
handleFocus: A,
|
|
2731
|
-
handleBlur:
|
|
2731
|
+
handleBlur: T,
|
|
2732
2732
|
placeholder: p()
|
|
2733
2733
|
};
|
|
2734
2734
|
}
|
|
@@ -3452,7 +3452,7 @@ const ea = {
|
|
|
3452
3452
|
default:
|
|
3453
3453
|
return { top: 0, left: 0 };
|
|
3454
3454
|
}
|
|
3455
|
-
},
|
|
3455
|
+
}, T = (I) => {
|
|
3456
3456
|
const x = A(I);
|
|
3457
3457
|
return x.top >= k && x.left >= k && x.top + $.height <= window.innerHeight - k && x.left + $.width <= window.innerWidth - k;
|
|
3458
3458
|
}, h = [m];
|
|
@@ -3461,7 +3461,7 @@ const ea = {
|
|
|
3461
3461
|
});
|
|
3462
3462
|
let B = m, O = A(m);
|
|
3463
3463
|
for (const I of h)
|
|
3464
|
-
if (
|
|
3464
|
+
if (T(I)) {
|
|
3465
3465
|
B = I, O = A(I);
|
|
3466
3466
|
break;
|
|
3467
3467
|
}
|
|
@@ -3878,7 +3878,7 @@ const ii = async (e, t, o) => {
|
|
|
3878
3878
|
x: k,
|
|
3879
3879
|
y: _,
|
|
3880
3880
|
data: A,
|
|
3881
|
-
reset:
|
|
3881
|
+
reset: T
|
|
3882
3882
|
} = await $({
|
|
3883
3883
|
x: c,
|
|
3884
3884
|
y: d,
|
|
@@ -3899,11 +3899,11 @@ const ii = async (e, t, o) => {
|
|
|
3899
3899
|
...p[b],
|
|
3900
3900
|
...A
|
|
3901
3901
|
}
|
|
3902
|
-
},
|
|
3902
|
+
}, T && m <= 50 && (m++, typeof T == "object" && (T.placement && (v = T.placement), T.rects && (u = T.rects === !0 ? await s.getElementRects({
|
|
3903
3903
|
reference: e,
|
|
3904
3904
|
floating: t,
|
|
3905
3905
|
strategy: l
|
|
3906
|
-
}) :
|
|
3906
|
+
}) : T.rects), {
|
|
3907
3907
|
x: c,
|
|
3908
3908
|
y: d
|
|
3909
3909
|
} = zt(u, v, a)), g = -1);
|
|
@@ -3948,17 +3948,17 @@ async function vo(e, t) {
|
|
|
3948
3948
|
} : {
|
|
3949
3949
|
x: 1,
|
|
3950
3950
|
y: 1
|
|
3951
|
-
},
|
|
3951
|
+
}, T = De(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3952
3952
|
elements: r,
|
|
3953
3953
|
rect: k,
|
|
3954
3954
|
offsetParent: _,
|
|
3955
3955
|
strategy: a
|
|
3956
3956
|
}) : k);
|
|
3957
3957
|
return {
|
|
3958
|
-
top: ($.top -
|
|
3959
|
-
bottom: (
|
|
3960
|
-
left: ($.left -
|
|
3961
|
-
right: (
|
|
3958
|
+
top: ($.top - T.top + m.top) / A.y,
|
|
3959
|
+
bottom: (T.bottom - $.bottom + m.bottom) / A.y,
|
|
3960
|
+
left: ($.left - T.left + m.left) / A.x,
|
|
3961
|
+
right: (T.right - $.right + m.right) / A.x
|
|
3962
3962
|
};
|
|
3963
3963
|
}
|
|
3964
3964
|
const ai = (e) => ({
|
|
@@ -3982,10 +3982,10 @@ const ai = (e) => ({
|
|
|
3982
3982
|
const d = ut(c), v = {
|
|
3983
3983
|
x: o,
|
|
3984
3984
|
y: n
|
|
3985
|
-
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), b = p === "y", $ = b ? "top" : "left", k = b ? "bottom" : "right", _ = b ? "clientHeight" : "clientWidth", A = i.reference[m] + i.reference[p] - v[p] - i.floating[m],
|
|
3985
|
+
}, p = lt(l), m = nt(p), g = await s.getDimensions(u), b = p === "y", $ = b ? "top" : "left", k = b ? "bottom" : "right", _ = b ? "clientHeight" : "clientWidth", A = i.reference[m] + i.reference[p] - v[p] - i.floating[m], T = v[p] - i.reference[p], h = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
3986
3986
|
let C = h ? h[_] : 0;
|
|
3987
3987
|
(!C || !await (s.isElement == null ? void 0 : s.isElement(h))) && (C = r.floating[_] || i.floating[m]);
|
|
3988
|
-
const B = A / 2 -
|
|
3988
|
+
const B = A / 2 - T / 2, O = C / 2 - g[m] / 2 - 1, I = Re(d[$], O), x = Re(d[k], O), V = I, R = C - g[m] - x, P = C / 2 - g[m] / 2 + B, G = Xe(V, P, R), L = !a.arrow && Me(l) != null && P !== G && i.reference[m] / 2 - (P < V ? I : x) - g[m] / 2 < 0, te = L ? P < V ? P - V : P - R : 0;
|
|
3989
3989
|
return {
|
|
3990
3990
|
[p]: v[p] + te,
|
|
3991
3991
|
data: {
|
|
@@ -4022,9 +4022,9 @@ const ai = (e) => ({
|
|
|
4022
4022
|
} = Pe(e, t);
|
|
4023
4023
|
if ((o = i.arrow) != null && o.alignmentOffset)
|
|
4024
4024
|
return {};
|
|
4025
|
-
const $ = Se(l), k = xe(r), _ = Se(r) === r, A = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)),
|
|
4026
|
-
!v && h &&
|
|
4027
|
-
const C = [r, ...
|
|
4025
|
+
const $ = Se(l), k = xe(r), _ = Se(r) === r, A = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), T = v || (_ || !g ? [at(r)] : mn(r)), h = m !== "none";
|
|
4026
|
+
!v && h && T.push(...wn(r, g, m, A));
|
|
4027
|
+
const C = [r, ...T], B = await vo(t, b), O = [];
|
|
4028
4028
|
let I = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
4029
4029
|
if (c && O.push(B[$]), d) {
|
|
4030
4030
|
const P = pn(l, s, A);
|
|
@@ -4034,7 +4034,7 @@ const ai = (e) => ({
|
|
|
4034
4034
|
placement: l,
|
|
4035
4035
|
overflows: O
|
|
4036
4036
|
}], !O.every((P) => P <= 0)) {
|
|
4037
|
-
var x,
|
|
4037
|
+
var x, V;
|
|
4038
4038
|
const P = (((x = i.flip) == null ? void 0 : x.index) || 0) + 1, G = C[P];
|
|
4039
4039
|
if (G && (!(d === "alignment" ? k !== xe(G) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4040
4040
|
// overflows the main axis.
|
|
@@ -4048,7 +4048,7 @@ const ai = (e) => ({
|
|
|
4048
4048
|
placement: G
|
|
4049
4049
|
}
|
|
4050
4050
|
};
|
|
4051
|
-
let L = (
|
|
4051
|
+
let L = (V = I.filter((te) => te.overflows[0] <= 0).sort((te, me) => te.overflows[1] - me.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
4052
4052
|
if (!L)
|
|
4053
4053
|
switch (p) {
|
|
4054
4054
|
case "bestFit": {
|
|
@@ -4515,12 +4515,12 @@ const Pi = {
|
|
|
4515
4515
|
left: `${g}px`,
|
|
4516
4516
|
top: `${b}px`
|
|
4517
4517
|
}, o.showArrow && k.arrow && m) {
|
|
4518
|
-
const { x: _, y: A } = k.arrow,
|
|
4518
|
+
const { x: _, y: A } = k.arrow, T = $.split("-")[0], h = {
|
|
4519
4519
|
top: "bottom",
|
|
4520
4520
|
right: "left",
|
|
4521
4521
|
bottom: "top",
|
|
4522
4522
|
left: "right"
|
|
4523
|
-
}[
|
|
4523
|
+
}[T];
|
|
4524
4524
|
r.value = {
|
|
4525
4525
|
left: _ != null ? `${_}px` : "",
|
|
4526
4526
|
top: A != null ? `${A}px` : "",
|