prlg-ui 1.7.66 → 1.7.67
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/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.es.js +121 -121
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, computed as V, resolveComponent as qt, createBlock as W, openBlock as d, resolveDynamicComponent as Te, normalizeClass as H, withCtx as ee, createCommentVNode as E, createElementBlock as g, renderSlot as j, Fragment as oe, createTextVNode as he, toDisplayString as N, ref as z, useTemplateRef as Be, onMounted as ye, createElementVNode as R, createVNode as q, renderList as ke, unref as y, mergeModels as Z, useModel as ae, withDirectives as
|
|
1
|
+
import { defineComponent as B, computed as V, resolveComponent as qt, createBlock as W, openBlock as d, resolveDynamicComponent as Te, normalizeClass as H, withCtx as ee, createCommentVNode as E, createElementBlock as g, renderSlot as j, Fragment as oe, createTextVNode as he, toDisplayString as N, ref as z, useTemplateRef as Be, onMounted as ye, createElementVNode as R, createVNode as q, renderList as ke, unref as y, mergeModels as Z, useModel as ae, withDirectives as Me, vModelCheckbox as gt, shallowRef as Le, watch as ne, getCurrentScope as Ro, onScopeDispose as So, shallowReadonly as We, useCssVars as Po, toRefs as Vo, useId as Xe, onUnmounted as tt, normalizeStyle as te, Transition as Fe, withModifiers as ut, vModelDynamic as To, vModelRadio as Ao, provide as xe, useSlots as jt, inject as ve, nextTick as Re, toValue as qe, isRef as Io, vModelText as Ut, reactive as Kt, TransitionGroup as Mo, Teleport as ot, vShow as Yt, createApp as _o } from "vue";
|
|
2
2
|
import { P as Xt, f as Oo, g as Bo, I as ht, A as Lo, c as wt, e as Do, S as Eo, a as Ho, b as Zt, M as zo, E as Fo, B as Go, C as No, W as Wo, d as qo } from "./WarningFillIcon-CW6DKekz.js";
|
|
3
3
|
import { o as Jt } from "./parseFileSize.util-BoDbFdVW.js";
|
|
4
4
|
import { _ as ce, a as jo, C as Qt } from "./FileIcon-DkEbi-bi.js";
|
|
@@ -153,7 +153,7 @@ const Yo = {
|
|
|
153
153
|
return l.value;
|
|
154
154
|
},
|
|
155
155
|
set(i) {
|
|
156
|
-
e.trueValue && e.falseValue ? l.value = i ? e.trueValue : e.falseValue : e.indeterminate ? l.value = l.value === null ? !1 : l.value && !i ? null : i : l.value = i;
|
|
156
|
+
e.trueValue && e.falseValue ? l.value = i ? e.trueValue : e.falseValue : e.indeterminate ? l.value = l.value === null ? !1 : l.value && !i ? null : i : e.value ? l.value = i ? e.value : null : l.value = i;
|
|
157
157
|
}
|
|
158
158
|
}), l = ae(e, "modelValue"), a = V(() => Math.random().toString(36).substr(2, 9)), s = V(() => [
|
|
159
159
|
"checkbox",
|
|
@@ -167,7 +167,7 @@ const Yo = {
|
|
|
167
167
|
for: a.value,
|
|
168
168
|
class: H(s.value)
|
|
169
169
|
}, [
|
|
170
|
-
|
|
170
|
+
Me(R("input", {
|
|
171
171
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => n.value = u),
|
|
172
172
|
id: a.value,
|
|
173
173
|
type: "checkbox",
|
|
@@ -250,7 +250,7 @@ function Ve(e, t) {
|
|
|
250
250
|
function Pe(e) {
|
|
251
251
|
return e.split("-")[0];
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function _e(e) {
|
|
254
254
|
return e.split("-")[1];
|
|
255
255
|
}
|
|
256
256
|
function xt(e) {
|
|
@@ -268,7 +268,7 @@ function lt(e) {
|
|
|
268
268
|
}
|
|
269
269
|
function mn(e, t, o) {
|
|
270
270
|
o === void 0 && (o = !1);
|
|
271
|
-
const n =
|
|
271
|
+
const n = _e(e), l = lt(e), a = nt(l);
|
|
272
272
|
let s = l === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
273
273
|
return t.reference[a] > t.floating[a] && (s = it(s)), [s, it(s)];
|
|
274
274
|
}
|
|
@@ -293,7 +293,7 @@ function wn(e, t, o) {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
function yn(e, t, o, n) {
|
|
296
|
-
const l =
|
|
296
|
+
const l = _e(e);
|
|
297
297
|
let a = wn(Pe(e), o === "start", n);
|
|
298
298
|
return l && (a = a.map((s) => s + "-" + l), t && (a = a.concat(a.map(mt)))), a;
|
|
299
299
|
}
|
|
@@ -373,7 +373,7 @@ function At(e, t, o) {
|
|
|
373
373
|
y: n.y
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
switch (
|
|
376
|
+
switch (_e(t)) {
|
|
377
377
|
case "start":
|
|
378
378
|
m[s] -= p * (o && u ? -1 : 1);
|
|
379
379
|
break;
|
|
@@ -513,12 +513,12 @@ const $n = (e) => ({
|
|
|
513
513
|
}, m = lt(l), h = nt(m), w = await s.getDimensions(u), v = m === "y", x = v ? "top" : "left", k = v ? "bottom" : "right", T = v ? "clientHeight" : "clientWidth", S = a.reference[h] + a.reference[m] - p[m] - a.floating[h], I = p[m] - a.reference[m], $ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
514
514
|
let C = $ ? $[T] : 0;
|
|
515
515
|
(!C || !await (s.isElement == null ? void 0 : s.isElement($))) && (C = i.floating[T] || a.floating[h]);
|
|
516
|
-
const L = S / 2 - I / 2,
|
|
516
|
+
const L = S / 2 - I / 2, _ = C / 2 - w[h] / 2 - 1, O = Se(f[x], _), b = Se(f[k], _), P = O, A = C - w[h] - b, M = C / 2 - w[h] / 2 + L, F = Ye(P, M, A), D = !r.arrow && _e(l) != null && M !== F && a.reference[h] / 2 - (M < P ? O : b) - w[h] / 2 < 0, Q = D ? M < P ? M - P : M - A : 0;
|
|
517
517
|
return {
|
|
518
518
|
[m]: p[m] + Q,
|
|
519
519
|
data: {
|
|
520
520
|
[m]: F,
|
|
521
|
-
centerOffset:
|
|
521
|
+
centerOffset: M - F - Q,
|
|
522
522
|
...D && {
|
|
523
523
|
alignmentOffset: Q
|
|
524
524
|
}
|
|
@@ -535,7 +535,7 @@ function It(e, t) {
|
|
|
535
535
|
left: e.left - t.width
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Mt(e) {
|
|
539
539
|
return cn.some((t) => e[t] >= 0);
|
|
540
540
|
}
|
|
541
541
|
const kn = function(e) {
|
|
@@ -558,7 +558,7 @@ const kn = function(e) {
|
|
|
558
558
|
return {
|
|
559
559
|
data: {
|
|
560
560
|
referenceHiddenOffsets: s,
|
|
561
|
-
referenceHidden:
|
|
561
|
+
referenceHidden: Mt(s)
|
|
562
562
|
}
|
|
563
563
|
};
|
|
564
564
|
}
|
|
@@ -570,7 +570,7 @@ const kn = function(e) {
|
|
|
570
570
|
return {
|
|
571
571
|
data: {
|
|
572
572
|
escapedOffsets: s,
|
|
573
|
-
escaped:
|
|
573
|
+
escaped: Mt(s)
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
576
|
}
|
|
@@ -585,7 +585,7 @@ async function Rn(e, t) {
|
|
|
585
585
|
placement: o,
|
|
586
586
|
platform: n,
|
|
587
587
|
elements: l
|
|
588
|
-
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), s = Pe(o), i =
|
|
588
|
+
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), s = Pe(o), i = _e(o), r = $e(o) === "y", u = Cn.has(s) ? -1 : 1, c = a && r ? -1 : 1, f = Ve(t, e);
|
|
589
589
|
let {
|
|
590
590
|
mainAxis: p,
|
|
591
591
|
crossAxis: m,
|
|
@@ -700,7 +700,7 @@ const Sn = function(e) {
|
|
|
700
700
|
apply: r = () => {
|
|
701
701
|
},
|
|
702
702
|
...u
|
|
703
|
-
} = Ve(e, t), c = await rt(t, u), f = Pe(l), p =
|
|
703
|
+
} = Ve(e, t), c = await rt(t, u), f = Pe(l), p = _e(l), m = $e(l) === "y", {
|
|
704
704
|
width: h,
|
|
705
705
|
height: w
|
|
706
706
|
} = a.floating;
|
|
@@ -717,8 +717,8 @@ const Sn = function(e) {
|
|
|
717
717
|
availableWidth: L,
|
|
718
718
|
availableHeight: C
|
|
719
719
|
});
|
|
720
|
-
const
|
|
721
|
-
return h !==
|
|
720
|
+
const _ = await s.getDimensions(i.floating);
|
|
721
|
+
return h !== _.width || w !== _.height ? {
|
|
722
722
|
reset: {
|
|
723
723
|
rects: !0
|
|
724
724
|
}
|
|
@@ -749,7 +749,7 @@ function ie(e) {
|
|
|
749
749
|
function ue(e) {
|
|
750
750
|
return dt() ? e instanceof HTMLElement || e instanceof se(e).HTMLElement : !1;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function _t(e) {
|
|
753
753
|
return !dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof se(e).ShadowRoot;
|
|
754
754
|
}
|
|
755
755
|
const Tn = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
@@ -776,10 +776,10 @@ function Ne(e) {
|
|
|
776
776
|
}
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
|
-
const
|
|
779
|
+
const Mn = ["transform", "translate", "scale", "rotate", "perspective"], _n = ["transform", "translate", "scale", "rotate", "perspective", "filter"], On = ["paint", "layout", "strict", "content"];
|
|
780
780
|
function st(e) {
|
|
781
781
|
const t = at(), o = ie(e) ? re(e) : e;
|
|
782
|
-
return
|
|
782
|
+
return Mn.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || _n.some((n) => (o.willChange || "").includes(n)) || On.some((n) => (o.contain || "").includes(n));
|
|
783
783
|
}
|
|
784
784
|
function to(e) {
|
|
785
785
|
let t = we(e);
|
|
@@ -818,10 +818,10 @@ function we(e) {
|
|
|
818
818
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
819
819
|
e.assignedSlot || // DOM Element detected.
|
|
820
820
|
e.parentNode || // ShadowRoot detected.
|
|
821
|
-
|
|
821
|
+
_t(e) && e.host || // Fallback.
|
|
822
822
|
pe(e)
|
|
823
823
|
);
|
|
824
|
-
return
|
|
824
|
+
return _t(t) ? t.host : t;
|
|
825
825
|
}
|
|
826
826
|
function oo(e) {
|
|
827
827
|
const t = we(e);
|
|
@@ -1189,17 +1189,17 @@ function zt(e, t, o) {
|
|
|
1189
1189
|
};
|
|
1190
1190
|
if (!c.value)
|
|
1191
1191
|
return C;
|
|
1192
|
-
const L = Ht(c.value, f.value),
|
|
1192
|
+
const L = Ht(c.value, f.value), _ = Ht(c.value, p.value);
|
|
1193
1193
|
return r.value ? {
|
|
1194
1194
|
...C,
|
|
1195
|
-
transform: "translate(" + L + "px, " +
|
|
1195
|
+
transform: "translate(" + L + "px, " + _ + "px)",
|
|
1196
1196
|
...uo(c.value) >= 1.5 && {
|
|
1197
1197
|
willChange: "transform"
|
|
1198
1198
|
}
|
|
1199
1199
|
} : {
|
|
1200
1200
|
position: m.value,
|
|
1201
1201
|
left: L + "px",
|
|
1202
|
-
top:
|
|
1202
|
+
top: _ + "px"
|
|
1203
1203
|
};
|
|
1204
1204
|
});
|
|
1205
1205
|
let k;
|
|
@@ -1315,12 +1315,12 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
1315
1315
|
Dt({ padding: 8 }),
|
|
1316
1316
|
Lt(8)
|
|
1317
1317
|
]
|
|
1318
|
-
}),
|
|
1318
|
+
}), _ = Xe(), O = z(!1), b = z(!1), P = V(() => r && r.value !== void 0), A = V({
|
|
1319
1319
|
get: () => P.value ? r?.value : O.value,
|
|
1320
1320
|
set: (G) => {
|
|
1321
1321
|
P.value ? c("update:modelValue", G) : O.value = G;
|
|
1322
1322
|
}
|
|
1323
|
-
}),
|
|
1323
|
+
}), M = () => {
|
|
1324
1324
|
A.value = !0;
|
|
1325
1325
|
}, F = () => {
|
|
1326
1326
|
A.value = !1, Y();
|
|
@@ -1378,7 +1378,7 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
1378
1378
|
}), tt(() => {
|
|
1379
1379
|
p.value && p.value.removeEventListener("resize", S), document.removeEventListener("click", me), window.removeEventListener("resize", S), window.removeEventListener("scroll", S);
|
|
1380
1380
|
}), t({
|
|
1381
|
-
open:
|
|
1381
|
+
open: M,
|
|
1382
1382
|
close: F,
|
|
1383
1383
|
openSecondScreen: de,
|
|
1384
1384
|
closeSecondScreen: Y,
|
|
@@ -1388,7 +1388,7 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
1388
1388
|
class: H(["popover", { "popover--with-arrow": y(s) }])
|
|
1389
1389
|
}, [
|
|
1390
1390
|
R("div", {
|
|
1391
|
-
class: H(["popover__trigger", `popover__trigger--${y(
|
|
1391
|
+
class: H(["popover__trigger", `popover__trigger--${y(_)}`]),
|
|
1392
1392
|
ref: "reference",
|
|
1393
1393
|
onClick: Q,
|
|
1394
1394
|
style: te({ zIndex: y(u) + 1 })
|
|
@@ -1404,7 +1404,7 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
1404
1404
|
default: ee(() => [
|
|
1405
1405
|
A.value ? (d(), g("div", {
|
|
1406
1406
|
key: 0,
|
|
1407
|
-
class: H(["popover__wrapper", `popover__wrapper--${y(
|
|
1407
|
+
class: H(["popover__wrapper", `popover__wrapper--${y(_)}`]),
|
|
1408
1408
|
style: te({ ...y(k), zIndex: y(u) + 1 }),
|
|
1409
1409
|
ref: "floating"
|
|
1410
1410
|
}, [
|
|
@@ -1709,7 +1709,7 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
1709
1709
|
])) : E("", !0)
|
|
1710
1710
|
], 2));
|
|
1711
1711
|
}
|
|
1712
|
-
}), Vl = ["for"], Tl = { key: 0 }, Al = { class: "input__wrapper" }, Il = ["id", "placeholder", "name", "disabled", "type", "required"],
|
|
1712
|
+
}), Vl = ["for"], Tl = { key: 0 }, Al = { class: "input__wrapper" }, Il = ["id", "placeholder", "name", "disabled", "type", "required"], Ml = { class: "input__actions" }, _l = {
|
|
1713
1713
|
key: 1,
|
|
1714
1714
|
class: "input__error"
|
|
1715
1715
|
}, Rt = /* @__PURE__ */ B({
|
|
@@ -1755,7 +1755,7 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
1755
1755
|
he(" " + N(r.label), 1)
|
|
1756
1756
|
], 8, Vl)) : E("", !0),
|
|
1757
1757
|
R("div", Al, [
|
|
1758
|
-
|
|
1758
|
+
Me(R("input", {
|
|
1759
1759
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c),
|
|
1760
1760
|
id: r.inputId ?? y(l),
|
|
1761
1761
|
placeholder: r.placeholder,
|
|
@@ -1772,7 +1772,7 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
1772
1772
|
}, null, 40, Il), [
|
|
1773
1773
|
[To, n.value]
|
|
1774
1774
|
]),
|
|
1775
|
-
R("div",
|
|
1775
|
+
R("div", Ml, [
|
|
1776
1776
|
r.type === "text" && r.allowClear && n.value && n.value.length > 0 ? (d(), g("button", {
|
|
1777
1777
|
key: 0,
|
|
1778
1778
|
class: "input__clear",
|
|
@@ -1789,7 +1789,7 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
1789
1789
|
])) : E("", !0)
|
|
1790
1790
|
])
|
|
1791
1791
|
]),
|
|
1792
|
-
r.error && r.errorText ? (d(), g("small",
|
|
1792
|
+
r.error && r.errorText ? (d(), g("small", _l, N(r.errorText), 1)) : E("", !0)
|
|
1793
1793
|
], 2));
|
|
1794
1794
|
}
|
|
1795
1795
|
}), Ol = { class: "icon-field__content" }, Bl = /* @__PURE__ */ B({
|
|
@@ -1857,7 +1857,7 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
1857
1857
|
return (s, i) => (d(), g("div", {
|
|
1858
1858
|
class: H(a.value)
|
|
1859
1859
|
}, [
|
|
1860
|
-
|
|
1860
|
+
Me(R("input", {
|
|
1861
1861
|
"onUpdate:modelValue": i[0] || (i[0] = (r) => o.value = r),
|
|
1862
1862
|
type: "radio",
|
|
1863
1863
|
name: s.name,
|
|
@@ -2259,8 +2259,8 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
2259
2259
|
let S = [...e.data];
|
|
2260
2260
|
if (u.value) {
|
|
2261
2261
|
const { field: $, order: C } = u.value;
|
|
2262
|
-
S.sort((L,
|
|
2263
|
-
const O = L[$], b =
|
|
2262
|
+
S.sort((L, _) => {
|
|
2263
|
+
const O = L[$], b = _[$];
|
|
2264
2264
|
return O === b ? 0 : C === 1 ? O > b ? 1 : -1 : O < b ? 1 : -1;
|
|
2265
2265
|
});
|
|
2266
2266
|
}
|
|
@@ -2369,8 +2369,8 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
2369
2369
|
let b = !1;
|
|
2370
2370
|
l.value.forEach((P, A) => {
|
|
2371
2371
|
if (!P) return;
|
|
2372
|
-
const
|
|
2373
|
-
i.value.get(
|
|
2372
|
+
const M = v.value + A, F = P.offsetHeight;
|
|
2373
|
+
i.value.get(M) !== F && (i.value.set(M, F), b = !0);
|
|
2374
2374
|
}), b && c();
|
|
2375
2375
|
}, c = () => {
|
|
2376
2376
|
let b = 0;
|
|
@@ -2387,16 +2387,16 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
2387
2387
|
}), h = (b) => {
|
|
2388
2388
|
let P = 0, A = o.items.length - 1;
|
|
2389
2389
|
for (; P <= A; ) {
|
|
2390
|
-
const
|
|
2391
|
-
f(
|
|
2390
|
+
const M = Math.floor((P + A) / 2);
|
|
2391
|
+
f(M) <= b ? P = M + 1 : A = M - 1;
|
|
2392
2392
|
}
|
|
2393
2393
|
return Math.max(0, A - o.buffer);
|
|
2394
2394
|
}, w = (b, P) => {
|
|
2395
2395
|
const A = b + P;
|
|
2396
|
-
let
|
|
2397
|
-
for (;
|
|
2398
|
-
|
|
2399
|
-
return Math.min(o.items.length - 1,
|
|
2396
|
+
let M = h(b);
|
|
2397
|
+
for (; M < o.items.length && !(f(M) > A); )
|
|
2398
|
+
M++;
|
|
2399
|
+
return Math.min(o.items.length - 1, M + o.buffer);
|
|
2400
2400
|
}, v = V(() => h(a.value)), x = V(() => w(a.value, s.value)), k = V(() => {
|
|
2401
2401
|
const b = [];
|
|
2402
2402
|
for (let P = v.value; P <= x.value; P++)
|
|
@@ -2479,7 +2479,7 @@ const ol = { class: "popover__content" }, nl = {
|
|
|
2479
2479
|
setup(e) {
|
|
2480
2480
|
const t = ae(e, "modelValue"), o = Xe();
|
|
2481
2481
|
return (n, l) => (d(), g("div", fs, [
|
|
2482
|
-
|
|
2482
|
+
Me(R("input", {
|
|
2483
2483
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => t.value = a),
|
|
2484
2484
|
type: "checkbox",
|
|
2485
2485
|
name: y(o),
|
|
@@ -2530,15 +2530,15 @@ function vs(e, t) {
|
|
|
2530
2530
|
return c(C) ? r[C].test($) : !1;
|
|
2531
2531
|
}
|
|
2532
2532
|
function p($) {
|
|
2533
|
-
const { required: C, optional: L } = u(o),
|
|
2533
|
+
const { required: C, optional: L } = u(o), _ = C + L;
|
|
2534
2534
|
let O = "", b = 0, P = 0;
|
|
2535
|
-
for (; P <
|
|
2536
|
-
const A =
|
|
2535
|
+
for (; P < _.length; ) {
|
|
2536
|
+
const A = _[P];
|
|
2537
2537
|
if (c(A))
|
|
2538
2538
|
if (b < $.length) {
|
|
2539
|
-
const
|
|
2540
|
-
if (f(
|
|
2541
|
-
O +=
|
|
2539
|
+
const M = $[b];
|
|
2540
|
+
if (f(M, A))
|
|
2541
|
+
O += M, b++;
|
|
2542
2542
|
else {
|
|
2543
2543
|
b++;
|
|
2544
2544
|
continue;
|
|
@@ -2556,15 +2556,15 @@ function vs(e, t) {
|
|
|
2556
2556
|
return ($ + C).replace(/[9a*]/g, n);
|
|
2557
2557
|
}
|
|
2558
2558
|
function h($) {
|
|
2559
|
-
const { required: C, optional: L } = u(o),
|
|
2559
|
+
const { required: C, optional: L } = u(o), _ = C + L;
|
|
2560
2560
|
let O = "", b = 0, P = 0;
|
|
2561
|
-
for (; b < $.length && P <
|
|
2562
|
-
const A = $[b],
|
|
2561
|
+
for (; b < $.length && P < _.length; ) {
|
|
2562
|
+
const A = $[b], M = _[P];
|
|
2563
2563
|
if (A === n) {
|
|
2564
2564
|
b++;
|
|
2565
2565
|
continue;
|
|
2566
2566
|
}
|
|
2567
|
-
c(
|
|
2567
|
+
c(M) ? f(A, M) ? (O += A, b++, P++) : b++ : (A === M && b++, P++);
|
|
2568
2568
|
}
|
|
2569
2569
|
for (; b < $.length; ) {
|
|
2570
2570
|
const A = $[b];
|
|
@@ -2572,16 +2572,16 @@ function vs(e, t) {
|
|
|
2572
2572
|
b++;
|
|
2573
2573
|
continue;
|
|
2574
2574
|
}
|
|
2575
|
-
let
|
|
2576
|
-
for (let D = 0; D <
|
|
2577
|
-
if (c(
|
|
2575
|
+
let M = !1, F = 0;
|
|
2576
|
+
for (let D = 0; D < _.length; D++)
|
|
2577
|
+
if (c(_[D])) {
|
|
2578
2578
|
if (F === O.length) {
|
|
2579
|
-
f(A,
|
|
2579
|
+
f(A, _[D]) && (O += A, M = !0);
|
|
2580
2580
|
break;
|
|
2581
2581
|
}
|
|
2582
2582
|
F++;
|
|
2583
2583
|
}
|
|
2584
|
-
if (b++, !
|
|
2584
|
+
if (b++, !M)
|
|
2585
2585
|
break;
|
|
2586
2586
|
}
|
|
2587
2587
|
return O;
|
|
@@ -2595,62 +2595,62 @@ function vs(e, t) {
|
|
|
2595
2595
|
if (i.value || $)
|
|
2596
2596
|
s.value = p($);
|
|
2597
2597
|
else {
|
|
2598
|
-
const { required: C, optional: L } = u(o),
|
|
2598
|
+
const { required: C, optional: L } = u(o), _ = C + L;
|
|
2599
2599
|
let O = "";
|
|
2600
|
-
for (let b = 0; b <
|
|
2601
|
-
O +=
|
|
2600
|
+
for (let b = 0; b < _.length && !c(_[b]); b++)
|
|
2601
|
+
O += _[b];
|
|
2602
2602
|
s.value = O;
|
|
2603
2603
|
}
|
|
2604
2604
|
}
|
|
2605
2605
|
function x($) {
|
|
2606
2606
|
if (!$.isTrusted) return;
|
|
2607
|
-
const C = $.target, L = C.value,
|
|
2608
|
-
s.value = O, e.value =
|
|
2607
|
+
const C = $.target, L = C.value, _ = h(L), O = p(_);
|
|
2608
|
+
s.value = O, e.value = _, Re(() => {
|
|
2609
2609
|
const { required: b, optional: P } = u(o), A = b + P;
|
|
2610
|
-
let
|
|
2610
|
+
let M = 0, F = 0;
|
|
2611
2611
|
for (let D = 0; D < A.length; D++)
|
|
2612
2612
|
if (c(A[D]))
|
|
2613
|
-
if (F <
|
|
2613
|
+
if (F < _.length)
|
|
2614
2614
|
F++;
|
|
2615
2615
|
else {
|
|
2616
|
-
|
|
2616
|
+
M = D;
|
|
2617
2617
|
break;
|
|
2618
2618
|
}
|
|
2619
|
-
if (F ===
|
|
2619
|
+
if (F === _.length && _.length > 0) {
|
|
2620
2620
|
F = 0;
|
|
2621
2621
|
for (let D = 0; D < A.length; D++)
|
|
2622
|
-
if (c(A[D]) && (F++, F ===
|
|
2623
|
-
|
|
2622
|
+
if (c(A[D]) && (F++, F === _.length)) {
|
|
2623
|
+
M = D + 1;
|
|
2624
2624
|
break;
|
|
2625
2625
|
}
|
|
2626
2626
|
}
|
|
2627
|
-
|
|
2627
|
+
M = Math.min(M, O.length), C.setSelectionRange(M, M);
|
|
2628
2628
|
});
|
|
2629
2629
|
}
|
|
2630
2630
|
function k($) {
|
|
2631
2631
|
const C = $.target;
|
|
2632
2632
|
setTimeout(() => {
|
|
2633
|
-
const L = C.value,
|
|
2634
|
-
s.value = O, e.value =
|
|
2633
|
+
const L = C.value, _ = h(L), O = p(_);
|
|
2634
|
+
s.value = O, e.value = _;
|
|
2635
2635
|
const { required: b, optional: P } = u(o), A = b + P;
|
|
2636
|
-
let
|
|
2636
|
+
let M = 0, F = 0;
|
|
2637
2637
|
for (let D = 0; D < A.length; D++)
|
|
2638
2638
|
if (c(A[D]))
|
|
2639
|
-
if (F <
|
|
2639
|
+
if (F < _.length)
|
|
2640
2640
|
F++;
|
|
2641
2641
|
else {
|
|
2642
|
-
|
|
2642
|
+
M = D;
|
|
2643
2643
|
break;
|
|
2644
2644
|
}
|
|
2645
|
-
if (F ===
|
|
2645
|
+
if (F === _.length && _.length > 0) {
|
|
2646
2646
|
F = 0;
|
|
2647
2647
|
for (let D = 0; D < A.length; D++)
|
|
2648
|
-
if (c(A[D]) && (F++, F ===
|
|
2649
|
-
|
|
2648
|
+
if (c(A[D]) && (F++, F === _.length)) {
|
|
2649
|
+
M = D + 1;
|
|
2650
2650
|
break;
|
|
2651
2651
|
}
|
|
2652
2652
|
}
|
|
2653
|
-
|
|
2653
|
+
M = Math.min(M, O.length), C.setSelectionRange(M, M);
|
|
2654
2654
|
}, 0);
|
|
2655
2655
|
}
|
|
2656
2656
|
function T($) {
|
|
@@ -2746,25 +2746,25 @@ function vs(e, t) {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
if ($.metaKey || $.ctrlKey || ["ArrowLeft", "ArrowRight", "Tab", "Home", "End", "Escape"].includes($.key))
|
|
2748
2748
|
return;
|
|
2749
|
-
const { required:
|
|
2749
|
+
const { required: _, optional: O } = u(o), b = _ + O, P = h(s.value), A = b.split("").filter((D) => c(D)).length;
|
|
2750
2750
|
if (P.length >= A) {
|
|
2751
2751
|
$.preventDefault();
|
|
2752
2752
|
return;
|
|
2753
2753
|
}
|
|
2754
|
-
let
|
|
2754
|
+
let M = -1, F = 0;
|
|
2755
2755
|
for (let D = 0; D < b.length; D++)
|
|
2756
2756
|
if (c(b[D])) {
|
|
2757
2757
|
if (F === P.length) {
|
|
2758
|
-
|
|
2758
|
+
M = D;
|
|
2759
2759
|
break;
|
|
2760
2760
|
}
|
|
2761
2761
|
F++;
|
|
2762
2762
|
}
|
|
2763
|
-
|
|
2763
|
+
M >= 0 && !f($.key, b[M]) && $.preventDefault();
|
|
2764
2764
|
}
|
|
2765
2765
|
function S($) {
|
|
2766
2766
|
i.value = !0, Re(() => {
|
|
2767
|
-
const C = $.target, { required: L, optional:
|
|
2767
|
+
const C = $.target, { required: L, optional: _ } = u(o), O = L + _;
|
|
2768
2768
|
let b = 0;
|
|
2769
2769
|
for (let P = 0; P < O.length; P++)
|
|
2770
2770
|
if (c(O[P])) {
|
|
@@ -2908,7 +2908,7 @@ const si = /* @__PURE__ */ B({
|
|
|
2908
2908
|
}, null, 8, ["icon", "disabled"])) : E("", !0),
|
|
2909
2909
|
R("div", gs, [
|
|
2910
2910
|
(d(), W(Te(i.icon))),
|
|
2911
|
-
|
|
2911
|
+
Me(R("input", {
|
|
2912
2912
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => o.value = u),
|
|
2913
2913
|
type: "number",
|
|
2914
2914
|
name: "input-number",
|
|
@@ -3013,7 +3013,7 @@ const si = /* @__PURE__ */ B({
|
|
|
3013
3013
|
"switch--disabled": n.disabled
|
|
3014
3014
|
}])
|
|
3015
3015
|
}, [
|
|
3016
|
-
|
|
3016
|
+
Me(R("input", {
|
|
3017
3017
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => t.value = a),
|
|
3018
3018
|
type: "checkbox",
|
|
3019
3019
|
name: "switch",
|
|
@@ -3085,7 +3085,7 @@ const si = /* @__PURE__ */ B({
|
|
|
3085
3085
|
for: r.inputId ?? y(a),
|
|
3086
3086
|
class: "textarea__label"
|
|
3087
3087
|
}, N(r.label), 9, $s),
|
|
3088
|
-
|
|
3088
|
+
Me(R("textarea", {
|
|
3089
3089
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c),
|
|
3090
3090
|
ref_key: "textareaRef",
|
|
3091
3091
|
ref: l,
|
|
@@ -3144,7 +3144,7 @@ const si = /* @__PURE__ */ B({
|
|
|
3144
3144
|
], 64))), 256))
|
|
3145
3145
|
]));
|
|
3146
3146
|
}
|
|
3147
|
-
}), Ts = { class: "toast-message__icon" }, As = { class: "toast-message__content" }, Is = { class: "toast-message__title" },
|
|
3147
|
+
}), Ts = { class: "toast-message__icon" }, As = { class: "toast-message__content" }, Is = { class: "toast-message__title" }, Ms = ["innerHTML"], _s = /* @__PURE__ */ B({
|
|
3148
3148
|
__name: "ToastMessage",
|
|
3149
3149
|
props: {
|
|
3150
3150
|
msg: {}
|
|
@@ -3184,7 +3184,7 @@ const si = /* @__PURE__ */ B({
|
|
|
3184
3184
|
key: 0,
|
|
3185
3185
|
class: "toast-message__text",
|
|
3186
3186
|
innerHTML: p.msg.detail
|
|
3187
|
-
}, null, 8,
|
|
3187
|
+
}, null, 8, Ms)) : E("", !0)
|
|
3188
3188
|
]),
|
|
3189
3189
|
R("button", {
|
|
3190
3190
|
class: "toast-message__close",
|
|
@@ -3224,13 +3224,13 @@ const si = /* @__PURE__ */ B({
|
|
|
3224
3224
|
}), (u, c) => (d(), W(y(Ko), null, {
|
|
3225
3225
|
default: ee(() => [
|
|
3226
3226
|
R("div", Os, [
|
|
3227
|
-
q(
|
|
3227
|
+
q(Mo, {
|
|
3228
3228
|
name: "toast-fade",
|
|
3229
3229
|
tag: "div",
|
|
3230
3230
|
class: "toast-messages"
|
|
3231
3231
|
}, {
|
|
3232
3232
|
default: ee(() => [
|
|
3233
|
-
(d(!0), g(oe, null, ke(o.value, (f) => (d(), W(
|
|
3233
|
+
(d(!0), g(oe, null, ke(o.value, (f) => (d(), W(_s, {
|
|
3234
3234
|
key: f.id,
|
|
3235
3235
|
msg: f,
|
|
3236
3236
|
onClose: c[0] || (c[0] = (p) => l(p))
|
|
@@ -3568,16 +3568,16 @@ const mi = {
|
|
|
3568
3568
|
["bottomright", "bottom", "top", "right", "left", "bottomleft", "topright", "topleft"].forEach((O) => {
|
|
3569
3569
|
$.includes(O) || $.push(O);
|
|
3570
3570
|
});
|
|
3571
|
-
let L = h,
|
|
3571
|
+
let L = h, _ = S(h);
|
|
3572
3572
|
for (const O of $)
|
|
3573
3573
|
if (I(O)) {
|
|
3574
|
-
L = O,
|
|
3574
|
+
L = O, _ = S(O);
|
|
3575
3575
|
break;
|
|
3576
3576
|
}
|
|
3577
|
-
|
|
3577
|
+
_.top = Math.max(k, Math.min(_.top, window.innerHeight - x.height - k)), _.left = Math.max(k, Math.min(_.left, window.innerWidth - x.width - k)), n.value = L, o.value = {
|
|
3578
3578
|
position: "fixed",
|
|
3579
|
-
top: `${
|
|
3580
|
-
left: `${
|
|
3579
|
+
top: `${_.top}px`,
|
|
3580
|
+
left: `${_.left}px`,
|
|
3581
3581
|
zIndex: 1e3
|
|
3582
3582
|
};
|
|
3583
3583
|
}, i = () => {
|
|
@@ -3797,7 +3797,7 @@ const mi = {
|
|
|
3797
3797
|
class: "accordion-content-wrapper",
|
|
3798
3798
|
style: te({ height: y(t) ? n.value : "0px" })
|
|
3799
3799
|
}, [
|
|
3800
|
-
|
|
3800
|
+
Me(R("div", {
|
|
3801
3801
|
ref_key: "contentRef",
|
|
3802
3802
|
ref: o,
|
|
3803
3803
|
class: "accordion-content"
|
|
@@ -3938,7 +3938,7 @@ const mi = {
|
|
|
3938
3938
|
j(a.$slots, "default")
|
|
3939
3939
|
], 10, pa));
|
|
3940
3940
|
}
|
|
3941
|
-
}), ma = { class: "tabs" },
|
|
3941
|
+
}), ma = { class: "tabs" }, Mi = /* @__PURE__ */ B({
|
|
3942
3942
|
__name: "Tabs",
|
|
3943
3943
|
props: {
|
|
3944
3944
|
value: {}
|
|
@@ -3959,14 +3959,14 @@ const mi = {
|
|
|
3959
3959
|
}), va = {
|
|
3960
3960
|
class: "tab-panel",
|
|
3961
3961
|
role: "tabpanel"
|
|
3962
|
-
},
|
|
3962
|
+
}, _i = /* @__PURE__ */ B({
|
|
3963
3963
|
__name: "TabPanel",
|
|
3964
3964
|
props: {
|
|
3965
3965
|
value: {}
|
|
3966
3966
|
},
|
|
3967
3967
|
setup(e) {
|
|
3968
3968
|
const t = e, o = ve("tabsValue"), n = V(() => o?.value === t.value);
|
|
3969
|
-
return (l, a) =>
|
|
3969
|
+
return (l, a) => Me((d(), g("div", va, [
|
|
3970
3970
|
j(l.$slots, "default")
|
|
3971
3971
|
], 512)), [
|
|
3972
3972
|
[Yt, n.value]
|
|
@@ -4030,7 +4030,7 @@ function Ft(e, t, o) {
|
|
|
4030
4030
|
y: n.y
|
|
4031
4031
|
};
|
|
4032
4032
|
}
|
|
4033
|
-
switch (
|
|
4033
|
+
switch (_e(t)) {
|
|
4034
4034
|
case "start":
|
|
4035
4035
|
m[s] -= p * (o && u ? -1 : 1);
|
|
4036
4036
|
break;
|
|
@@ -4170,12 +4170,12 @@ const ba = (e) => ({
|
|
|
4170
4170
|
}, m = lt(l), h = nt(m), w = await s.getDimensions(u), v = m === "y", x = v ? "top" : "left", k = v ? "bottom" : "right", T = v ? "clientHeight" : "clientWidth", S = a.reference[h] + a.reference[m] - p[m] - a.floating[h], I = p[m] - a.reference[m], $ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
4171
4171
|
let C = $ ? $[T] : 0;
|
|
4172
4172
|
(!C || !await (s.isElement == null ? void 0 : s.isElement($))) && (C = i.floating[T] || a.floating[h]);
|
|
4173
|
-
const L = S / 2 - I / 2,
|
|
4173
|
+
const L = S / 2 - I / 2, _ = C / 2 - w[h] / 2 - 1, O = Se(f[x], _), b = Se(f[k], _), P = O, A = C - w[h] - b, M = C / 2 - w[h] / 2 + L, F = Ye(P, M, A), D = !r.arrow && _e(l) != null && M !== F && a.reference[h] / 2 - (M < P ? O : b) - w[h] / 2 < 0, Q = D ? M < P ? M - P : M - A : 0;
|
|
4174
4174
|
return {
|
|
4175
4175
|
[m]: p[m] + Q,
|
|
4176
4176
|
data: {
|
|
4177
4177
|
[m]: F,
|
|
4178
|
-
centerOffset:
|
|
4178
|
+
centerOffset: M - F - Q,
|
|
4179
4179
|
...D && {
|
|
4180
4180
|
alignmentOffset: Q
|
|
4181
4181
|
}
|
|
@@ -4209,24 +4209,24 @@ const ba = (e) => ({
|
|
|
4209
4209
|
return {};
|
|
4210
4210
|
const x = Pe(l), k = $e(i), T = Pe(i) === i, S = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), I = p || (T || !w ? [it(i)] : vn(i)), $ = h !== "none";
|
|
4211
4211
|
!p && $ && I.push(...yn(i, w, h, S));
|
|
4212
|
-
const C = [i, ...I], L = await vo(t, v),
|
|
4212
|
+
const C = [i, ...I], L = await vo(t, v), _ = [];
|
|
4213
4213
|
let O = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
4214
|
-
if (c &&
|
|
4215
|
-
const
|
|
4216
|
-
|
|
4214
|
+
if (c && _.push(L[x]), f) {
|
|
4215
|
+
const M = mn(l, s, S);
|
|
4216
|
+
_.push(L[M[0]], L[M[1]]);
|
|
4217
4217
|
}
|
|
4218
4218
|
if (O = [...O, {
|
|
4219
4219
|
placement: l,
|
|
4220
|
-
overflows:
|
|
4221
|
-
}], !
|
|
4220
|
+
overflows: _
|
|
4221
|
+
}], !_.every((M) => M <= 0)) {
|
|
4222
4222
|
var b, P;
|
|
4223
|
-
const
|
|
4223
|
+
const M = (((b = a.flip) == null ? void 0 : b.index) || 0) + 1, F = C[M];
|
|
4224
4224
|
if (F && (!(f === "alignment" ? k !== $e(F) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4225
4225
|
// overflows the main axis.
|
|
4226
4226
|
O.every((de) => de.overflows[0] > 0 && $e(de.placement) === k)))
|
|
4227
4227
|
return {
|
|
4228
4228
|
data: {
|
|
4229
|
-
index:
|
|
4229
|
+
index: M,
|
|
4230
4230
|
overflows: O
|
|
4231
4231
|
},
|
|
4232
4232
|
reset: {
|
|
@@ -4270,7 +4270,7 @@ async function ka(e, t) {
|
|
|
4270
4270
|
placement: o,
|
|
4271
4271
|
platform: n,
|
|
4272
4272
|
elements: l
|
|
4273
|
-
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), s = Pe(o), i =
|
|
4273
|
+
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), s = Pe(o), i = _e(o), r = $e(o) === "y", u = $a.has(s) ? -1 : 1, c = a && r ? -1 : 1, f = Ve(t, e);
|
|
4274
4274
|
let {
|
|
4275
4275
|
mainAxis: p,
|
|
4276
4276
|
crossAxis: m,
|
|
@@ -4503,8 +4503,8 @@ function Ia(e, t) {
|
|
|
4503
4503
|
y: r
|
|
4504
4504
|
};
|
|
4505
4505
|
}
|
|
4506
|
-
const
|
|
4507
|
-
function
|
|
4506
|
+
const Ma = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
4507
|
+
function _a(e, t) {
|
|
4508
4508
|
const o = et(e, !0, t === "fixed"), n = o.top + e.clientTop, l = o.left + e.clientLeft, a = ue(e) ? Ke(e) : le(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, r = l * a.x, u = n * a.y;
|
|
4509
4509
|
return {
|
|
4510
4510
|
width: s,
|
|
@@ -4520,7 +4520,7 @@ function Gt(e, t, o) {
|
|
|
4520
4520
|
else if (t === "document")
|
|
4521
4521
|
n = Aa(pe(e));
|
|
4522
4522
|
else if (ie(t))
|
|
4523
|
-
n =
|
|
4523
|
+
n = _a(t, o);
|
|
4524
4524
|
else {
|
|
4525
4525
|
const l = wo(e);
|
|
4526
4526
|
n = {
|
|
@@ -4545,7 +4545,7 @@ function Oa(e, t) {
|
|
|
4545
4545
|
let s = a ? we(e) : e;
|
|
4546
4546
|
for (; ie(s) && !Ae(s); ) {
|
|
4547
4547
|
const i = re(s), r = st(s);
|
|
4548
|
-
!r && i.position === "fixed" && (l = null), (a ? !r && !l : !r && i.position === "static" && !!l &&
|
|
4548
|
+
!r && i.position === "fixed" && (l = null), (a ? !r && !l : !r && i.position === "static" && !!l && Ma.has(l.position) || He(s) && !r && bo(e, s)) ? n = n.filter((c) => c !== s) : l = i, s = we(s);
|
|
4549
4549
|
}
|
|
4550
4550
|
return t.set(e, n), n;
|
|
4551
4551
|
}
|
|
@@ -4754,7 +4754,7 @@ const za = {
|
|
|
4754
4754
|
let o, n = {};
|
|
4755
4755
|
if (typeof t.value == "string" ? o = t.value : t.value && typeof t.value == "object" ? (o = t.value.content || "", n = { ...t.value }, delete n.content) : o = "", !o && !t.arg) return;
|
|
4756
4756
|
!o && t.arg && (o = t.arg);
|
|
4757
|
-
const l =
|
|
4757
|
+
const l = _o(Ka, {
|
|
4758
4758
|
content: o,
|
|
4759
4759
|
...n
|
|
4760
4760
|
}), a = document.createElement("div"), s = l.mount(a);
|
|
@@ -4818,9 +4818,9 @@ export {
|
|
|
4818
4818
|
ui as Switch,
|
|
4819
4819
|
Ii as Tab,
|
|
4820
4820
|
Oi as TabList,
|
|
4821
|
-
|
|
4821
|
+
_i as TabPanel,
|
|
4822
4822
|
Bi as TabPanels,
|
|
4823
|
-
|
|
4823
|
+
Mi as Tabs,
|
|
4824
4824
|
Pl as Tag,
|
|
4825
4825
|
ci as Textarea,
|
|
4826
4826
|
fi as Toast,
|