prlg-ui 1.4.21 → 1.4.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/index.d.ts +1 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +100 -97
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, computed as x, resolveComponent as ct, createBlock as M, openBlock as c, resolveDynamicComponent as ae, normalizeClass as B, withCtx as U, createCommentVNode as V, createElementBlock as m, renderSlot as L, Fragment as H, createTextVNode as de, toDisplayString as D, ref as S, useTemplateRef as Oe, onMounted as ne, createElementVNode as w, createVNode as
|
|
1
|
+
import { defineComponent as C, computed as x, resolveComponent as ct, createBlock as M, openBlock as c, resolveDynamicComponent as ae, normalizeClass as B, withCtx as U, createCommentVNode as V, createElementBlock as m, renderSlot as L, Fragment as H, createTextVNode as de, toDisplayString as D, ref as S, useTemplateRef as Oe, onMounted as ne, createElementVNode as w, createVNode as E, renderList as fe, unref as b, mergeModels as F, useModel as le, useId as Re, withDirectives as me, vModelCheckbox as qe, onUnmounted as Ue, watch as re, nextTick as Te, Teleport as je, Transition as Ye, normalizeStyle as ee, provide as Q, useSlots as dt, inject as K, vModelRadio as Pt, withModifiers as Lt, vModelDynamic as zt, vModelText as ft, mergeProps as Et, reactive as mt, shallowRef as Ie, TransitionGroup as _t, vShow as vt } from "vue";
|
|
2
2
|
import { P as pt, g as Dt, h as Gt, _ as ve, I as Xe, A as Ht, c as Ke, e as Ft, f as Nt, S as Wt, M as qt, E as Ut, B as jt, C as Yt, b as gt, W as Xt, d as Kt, a as Zt } from "./WarningFillIcon-Drb2OS3I.js";
|
|
3
3
|
import { o as ht, E as Jt, _ as Qt, u as wt } from "./useBodyScroll.util-BgQeA8Dg.js";
|
|
4
4
|
const eo = {
|
|
@@ -88,7 +88,7 @@ const eo = {
|
|
|
88
88
|
w("span", no, D(a.label), 1)
|
|
89
89
|
], 8, oo))), 128))
|
|
90
90
|
], 2),
|
|
91
|
-
|
|
91
|
+
E(b(He), {
|
|
92
92
|
ref_key: "targetRef",
|
|
93
93
|
ref: n,
|
|
94
94
|
variant: s.variant,
|
|
@@ -193,10 +193,10 @@ const eo = {
|
|
|
193
193
|
class: "sort-button",
|
|
194
194
|
onClick: l
|
|
195
195
|
}, [
|
|
196
|
-
|
|
196
|
+
E(b(Dt), {
|
|
197
197
|
class: B(["sort-button__icon", [{ "sort-button__icon--active": t.value.order === -1 && t.value.field === i.field }]])
|
|
198
198
|
}, null, 8, ["class"]),
|
|
199
|
-
|
|
199
|
+
E(b(Gt), {
|
|
200
200
|
class: B(["sort-button__icon", { "sort-button__icon--active": t.value.order === 1 && t.value.field === i.field }])
|
|
201
201
|
}, null, 8, ["class"])
|
|
202
202
|
]));
|
|
@@ -289,7 +289,7 @@ function bt(e) {
|
|
|
289
289
|
left: e
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function ze(e) {
|
|
293
293
|
const {
|
|
294
294
|
x: o,
|
|
295
295
|
y: t,
|
|
@@ -432,7 +432,7 @@ async function $t(e, o) {
|
|
|
432
432
|
elementContext: f = "floating",
|
|
433
433
|
altBoundary: $ = !1,
|
|
434
434
|
padding: v = 0
|
|
435
|
-
} = Se(o, e), k = bt(v), p = r[$ ? f === "floating" ? "reference" : "floating" : f], y =
|
|
435
|
+
} = Se(o, e), k = bt(v), p = r[$ ? f === "floating" ? "reference" : "floating" : f], y = ze(await i.getClippingRect({
|
|
436
436
|
element: (t = await (i.isElement == null ? void 0 : i.isElement(p))) == null || t ? p : p.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(r.floating)),
|
|
437
437
|
boundary: u,
|
|
438
438
|
rootBoundary: d,
|
|
@@ -448,7 +448,7 @@ async function $t(e, o) {
|
|
|
448
448
|
} : {
|
|
449
449
|
x: 1,
|
|
450
450
|
y: 1
|
|
451
|
-
}, O =
|
|
451
|
+
}, O = ze(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
452
452
|
elements: r,
|
|
453
453
|
rect: g,
|
|
454
454
|
offsetParent: h,
|
|
@@ -483,9 +483,9 @@ const Co = (e) => ({
|
|
|
483
483
|
x: t,
|
|
484
484
|
y: n
|
|
485
485
|
}, v = Qe(l), k = Je(v), A = await s.getDimensions(u), p = v === "y", y = p ? "top" : "left", g = p ? "bottom" : "right", h = p ? "clientHeight" : "clientWidth", R = i.reference[k] + i.reference[v] - $[v] - i.floating[k], O = $[v] - i.reference[v], G = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
486
|
-
let
|
|
487
|
-
(!
|
|
488
|
-
const W = R / 2 - O / 2, N =
|
|
486
|
+
let z = G ? G[h] : 0;
|
|
487
|
+
(!z || !await (s.isElement == null ? void 0 : s.isElement(G))) && (z = r.floating[h] || i.floating[k]);
|
|
488
|
+
const W = R / 2 - O / 2, N = z / 2 - A[k] / 2 - 1, j = ke(f[y], N), T = ke(f[g], N), I = j, _ = z - A[k] - T, P = z / 2 - A[k] / 2 + W, Y = Fe(I, P, _), se = !a.arrow && Ve(l) != null && P !== Y && i.reference[k] / 2 - (P < I ? j : T) - A[k] / 2 < 0, Z = se ? P < I ? P - I : P - _ : 0;
|
|
489
489
|
return {
|
|
490
490
|
[v]: $[v] + Z,
|
|
491
491
|
data: {
|
|
@@ -524,7 +524,7 @@ const Co = (e) => ({
|
|
|
524
524
|
return {};
|
|
525
525
|
const y = ye(l), g = ge(r), h = ye(r) === r, R = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), O = $ || (h || !A ? [Le(r)] : wo(r)), G = k !== "none";
|
|
526
526
|
!$ && G && O.push(...ko(r, A, k, R));
|
|
527
|
-
const
|
|
527
|
+
const z = [r, ...O], W = await $t(o, p), N = [];
|
|
528
528
|
let j = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
529
529
|
if (d && N.push(W[y]), f) {
|
|
530
530
|
const P = ho(l, s, R);
|
|
@@ -535,7 +535,7 @@ const Co = (e) => ({
|
|
|
535
535
|
overflows: N
|
|
536
536
|
}], !N.every((P) => P <= 0)) {
|
|
537
537
|
var T, I;
|
|
538
|
-
const P = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, Y =
|
|
538
|
+
const P = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, Y = z[P];
|
|
539
539
|
if (Y && (!(f === "alignment" ? g !== ge(Y) : !1) || // We leave the current main axis only if every placement on that axis
|
|
540
540
|
// overflows the main axis.
|
|
541
541
|
j.every((J) => J.overflows[0] > 0 && ge(J.placement) === g)))
|
|
@@ -552,8 +552,8 @@ const Co = (e) => ({
|
|
|
552
552
|
if (!se)
|
|
553
553
|
switch (v) {
|
|
554
554
|
case "bestFit": {
|
|
555
|
-
var
|
|
556
|
-
const Z = (
|
|
555
|
+
var _;
|
|
556
|
+
const Z = (_ = j.filter((J) => {
|
|
557
557
|
if (G) {
|
|
558
558
|
const pe = ge(J.placement);
|
|
559
559
|
return pe === g || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -561,7 +561,7 @@ const Co = (e) => ({
|
|
|
561
561
|
pe === "y";
|
|
562
562
|
}
|
|
563
563
|
return !0;
|
|
564
|
-
}).map((J) => [J.placement, J.overflows.filter((pe) => pe > 0).reduce((pe, Ot) => pe + Ot, 0)]).sort((J, pe) => J[1] - pe[1])[0]) == null ? void 0 :
|
|
564
|
+
}).map((J) => [J.placement, J.overflows.filter((pe) => pe > 0).reduce((pe, Ot) => pe + Ot, 0)]).sort((J, pe) => J[1] - pe[1])[0]) == null ? void 0 : _[0];
|
|
565
565
|
Z && (se = Z);
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
@@ -686,7 +686,7 @@ const Vo = function(e) {
|
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
|
-
function
|
|
689
|
+
function Ee() {
|
|
690
690
|
return typeof window < "u";
|
|
691
691
|
}
|
|
692
692
|
function Ce(e) {
|
|
@@ -701,16 +701,16 @@ function ce(e) {
|
|
|
701
701
|
return (o = (kt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : o.documentElement;
|
|
702
702
|
}
|
|
703
703
|
function kt(e) {
|
|
704
|
-
return
|
|
704
|
+
return Ee() ? e instanceof Node || e instanceof q(e).Node : !1;
|
|
705
705
|
}
|
|
706
706
|
function te(e) {
|
|
707
|
-
return
|
|
707
|
+
return Ee() ? e instanceof Element || e instanceof q(e).Element : !1;
|
|
708
708
|
}
|
|
709
709
|
function ue(e) {
|
|
710
|
-
return
|
|
710
|
+
return Ee() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
|
|
711
711
|
}
|
|
712
712
|
function at(e) {
|
|
713
|
-
return !
|
|
713
|
+
return !Ee() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
714
714
|
}
|
|
715
715
|
const Io = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
716
716
|
function Be(e) {
|
|
@@ -727,7 +727,7 @@ function Oo(e) {
|
|
|
727
727
|
return Mo.has(Ce(e));
|
|
728
728
|
}
|
|
729
729
|
const Po = [":popover-open", ":modal"];
|
|
730
|
-
function
|
|
730
|
+
function _e(e) {
|
|
731
731
|
return Po.some((o) => {
|
|
732
732
|
try {
|
|
733
733
|
return e.matches(o);
|
|
@@ -736,17 +736,17 @@ function Ee(e) {
|
|
|
736
736
|
}
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
|
-
const Lo = ["transform", "translate", "scale", "rotate", "perspective"],
|
|
739
|
+
const Lo = ["transform", "translate", "scale", "rotate", "perspective"], zo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Eo = ["paint", "layout", "strict", "content"];
|
|
740
740
|
function et(e) {
|
|
741
741
|
const o = tt(), t = te(e) ? oe(e) : e;
|
|
742
|
-
return Lo.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !o && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !o && (t.filter ? t.filter !== "none" : !1) ||
|
|
742
|
+
return Lo.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !o && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !o && (t.filter ? t.filter !== "none" : !1) || zo.some((n) => (t.willChange || "").includes(n)) || Eo.some((n) => (t.contain || "").includes(n));
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function _o(e) {
|
|
745
745
|
let o = he(e);
|
|
746
746
|
for (; ue(o) && !xe(o); ) {
|
|
747
747
|
if (et(o))
|
|
748
748
|
return o;
|
|
749
|
-
if (
|
|
749
|
+
if (_e(o))
|
|
750
750
|
return null;
|
|
751
751
|
o = he(o);
|
|
752
752
|
}
|
|
@@ -854,7 +854,7 @@ function be(e, o, t, n) {
|
|
|
854
854
|
a *= p.x, u *= p.y, d *= p.x, f *= p.y, a += h, u += R, k = q(A), A = We(k);
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
return
|
|
857
|
+
return ze({
|
|
858
858
|
width: d,
|
|
859
859
|
height: f,
|
|
860
860
|
x: a,
|
|
@@ -883,7 +883,7 @@ function Fo(e) {
|
|
|
883
883
|
offsetParent: n,
|
|
884
884
|
strategy: l
|
|
885
885
|
} = e;
|
|
886
|
-
const i = l === "fixed", s = ce(n), r = o ?
|
|
886
|
+
const i = l === "fixed", s = ce(n), r = o ? _e(o.floating) : !1;
|
|
887
887
|
if (n === s || r && i)
|
|
888
888
|
return t;
|
|
889
889
|
let a = {
|
|
@@ -959,7 +959,7 @@ function rt(e, o, t) {
|
|
|
959
959
|
height: o.height
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
return
|
|
962
|
+
return ze(n);
|
|
963
963
|
}
|
|
964
964
|
function At(e, o) {
|
|
965
965
|
const t = he(e);
|
|
@@ -985,7 +985,7 @@ function Xo(e) {
|
|
|
985
985
|
rootBoundary: n,
|
|
986
986
|
strategy: l
|
|
987
987
|
} = e;
|
|
988
|
-
const s = [...t === "clippingAncestors" ?
|
|
988
|
+
const s = [...t === "clippingAncestors" ? _e(o) ? [] : Yo(o, this._c) : [].concat(t), n], r = s[0], a = s.reduce((u, d) => {
|
|
989
989
|
const f = rt(o, d, l);
|
|
990
990
|
return u.top = we(f.top, u.top), u.right = ke(f.right, u.right), u.bottom = ke(f.bottom, u.bottom), u.left = we(f.left, u.left), u;
|
|
991
991
|
}, rt(o, r, l));
|
|
@@ -1043,7 +1043,7 @@ function ut(e, o) {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
function St(e, o) {
|
|
1045
1045
|
const t = q(e);
|
|
1046
|
-
if (
|
|
1046
|
+
if (_e(e))
|
|
1047
1047
|
return t;
|
|
1048
1048
|
if (!ue(e)) {
|
|
1049
1049
|
let l = he(e);
|
|
@@ -1057,7 +1057,7 @@ function St(e, o) {
|
|
|
1057
1057
|
let n = ut(e, o);
|
|
1058
1058
|
for (; n && Oo(n) && Ge(n); )
|
|
1059
1059
|
n = ut(n, o);
|
|
1060
|
-
return n && xe(n) && Ge(n) && !et(n) ? t : n ||
|
|
1060
|
+
return n && xe(n) && Ge(n) && !et(n) ? t : n || _o(e) || t;
|
|
1061
1061
|
}
|
|
1062
1062
|
const Jo = async function(e) {
|
|
1063
1063
|
const o = this.getOffsetParent || St, t = this.getDimensions, n = await t(e.floating);
|
|
@@ -1112,15 +1112,15 @@ function tn(e, o) {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
let R = !0;
|
|
1114
1114
|
function O(G) {
|
|
1115
|
-
const
|
|
1116
|
-
if (
|
|
1115
|
+
const z = G[0].intersectionRatio;
|
|
1116
|
+
if (z !== a) {
|
|
1117
1117
|
if (!R)
|
|
1118
1118
|
return s();
|
|
1119
|
-
|
|
1119
|
+
z ? s(!1, z) : n = setTimeout(() => {
|
|
1120
1120
|
s(!1, 1e-7);
|
|
1121
1121
|
}, 1e3);
|
|
1122
1122
|
}
|
|
1123
|
-
|
|
1123
|
+
z === 1 && !Vt(u, e.getBoundingClientRect()) && s(), R = !1;
|
|
1124
1124
|
}
|
|
1125
1125
|
try {
|
|
1126
1126
|
t = new IntersectionObserver(O, {
|
|
@@ -1214,7 +1214,7 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1214
1214
|
t.trigger === "click" && (s.value ? k() : v());
|
|
1215
1215
|
}, p = async () => {
|
|
1216
1216
|
if (!l.value || !i.value) return;
|
|
1217
|
-
const h = i.value.querySelector(".popover__arrow"), { x: R, y: O, placement: G, middlewareData:
|
|
1217
|
+
const h = i.value.querySelector(".popover__arrow"), { x: R, y: O, placement: G, middlewareData: z } = await rn(
|
|
1218
1218
|
l.value,
|
|
1219
1219
|
i.value,
|
|
1220
1220
|
{
|
|
@@ -1232,8 +1232,8 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1232
1232
|
top: `${O}px`,
|
|
1233
1233
|
left: `${R}px`,
|
|
1234
1234
|
zIndex: 1e3
|
|
1235
|
-
}, t.showArrow &&
|
|
1236
|
-
const { x: W, y: N } =
|
|
1235
|
+
}, t.showArrow && z.arrow) {
|
|
1236
|
+
const { x: W, y: N } = z.arrow, j = G.split("-")[0], T = {
|
|
1237
1237
|
top: "bottom",
|
|
1238
1238
|
right: "left",
|
|
1239
1239
|
bottom: "top",
|
|
@@ -1272,7 +1272,7 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1272
1272
|
L(h.$slots, "trigger")
|
|
1273
1273
|
], 544),
|
|
1274
1274
|
(c(), M(je, { to: "body" }, [
|
|
1275
|
-
|
|
1275
|
+
E(Ye, { name: "popover-fade" }, {
|
|
1276
1276
|
default: U(() => [
|
|
1277
1277
|
s.value ? (c(), m("div", {
|
|
1278
1278
|
key: 0,
|
|
@@ -1313,7 +1313,7 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1313
1313
|
}, {
|
|
1314
1314
|
trigger: U(() => [
|
|
1315
1315
|
w("div", fn, [
|
|
1316
|
-
|
|
1316
|
+
E(b(Xe))
|
|
1317
1317
|
])
|
|
1318
1318
|
]),
|
|
1319
1319
|
default: U(() => [
|
|
@@ -1418,7 +1418,7 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1418
1418
|
class: "table-cell__expander",
|
|
1419
1419
|
onClick: a[0] || (a[0] = (u) => t("toggleGroup", r.item._groupValue))
|
|
1420
1420
|
}, [
|
|
1421
|
-
|
|
1421
|
+
E(b(Ht), {
|
|
1422
1422
|
class: B({ rotated: !l.value })
|
|
1423
1423
|
}, null, 8, ["class"])
|
|
1424
1424
|
])) : V("", !0),
|
|
@@ -1549,7 +1549,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1549
1549
|
e.value === "multiple" && Array.isArray(t.value) && (t.value.length === o.length ? t.value = [] : t.value = [...o]);
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
|
-
},
|
|
1552
|
+
}, zn = (e, o) => ({
|
|
1553
1553
|
dataWithGroup: (n) => {
|
|
1554
1554
|
if (!e.value || !o.value) return n;
|
|
1555
1555
|
const l = /* @__PURE__ */ new Map();
|
|
@@ -1570,7 +1570,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1570
1570
|
});
|
|
1571
1571
|
}), i;
|
|
1572
1572
|
}
|
|
1573
|
-
}),
|
|
1573
|
+
}), En = /* @__PURE__ */ C({
|
|
1574
1574
|
__name: "DataTable",
|
|
1575
1575
|
props: {
|
|
1576
1576
|
theme: { default: "default" },
|
|
@@ -1584,12 +1584,12 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1584
1584
|
},
|
|
1585
1585
|
emits: ["update:selectedRows", "rowClickHandler"],
|
|
1586
1586
|
setup(e, { emit: o }) {
|
|
1587
|
-
const t = o, n = x(() => e.rowGroupMode), l = x(() => e.groupRowsBy), { dataWithGroup: i } =
|
|
1587
|
+
const t = o, n = x(() => e.rowGroupMode), l = x(() => e.groupRowsBy), { dataWithGroup: i } = zn(n, l), { columns: s, options: r } = Pn(n), a = x(() => r.value.selectedMode), { selectedRows: u, isSelectedAll: d, toggleSelectRow: f, toggleSelectedAll: $ } = Ln(a, e.data), v = S(null), k = x(() => {
|
|
1588
1588
|
let g = [...e.data];
|
|
1589
1589
|
if (v.value) {
|
|
1590
1590
|
const { field: R, order: O } = v.value;
|
|
1591
|
-
g.sort((G,
|
|
1592
|
-
const W = G[R], N =
|
|
1591
|
+
g.sort((G, z) => {
|
|
1592
|
+
const W = G[R], N = z[R];
|
|
1593
1593
|
return W === N ? 0 : O === 1 ? W > N ? 1 : -1 : W < N ? 1 : -1;
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
@@ -1609,7 +1609,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1609
1609
|
class: B(A.value)
|
|
1610
1610
|
}, [
|
|
1611
1611
|
L(g.$slots, "default", {}, void 0, !0),
|
|
1612
|
-
|
|
1612
|
+
E($n, {
|
|
1613
1613
|
size: g.size,
|
|
1614
1614
|
columns: b(s),
|
|
1615
1615
|
isSelectedAll: b(d),
|
|
@@ -1618,7 +1618,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1618
1618
|
onSelectAllRow: b($),
|
|
1619
1619
|
"onUpdate:sort": h[0] || (h[0] = (R) => v.value = R)
|
|
1620
1620
|
}, null, 8, ["size", "columns", "isSelectedAll", "sortMode", "sortField", "onSelectAllRow"]),
|
|
1621
|
-
|
|
1621
|
+
E(Vn, {
|
|
1622
1622
|
size: g.size,
|
|
1623
1623
|
selectedRows: b(u),
|
|
1624
1624
|
columns: b(s),
|
|
@@ -1630,10 +1630,10 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1630
1630
|
onToggleRow: h[2] || (h[2] = (R) => b(f)(R)),
|
|
1631
1631
|
onToggleGroup: h[3] || (h[3] = (R) => y(R))
|
|
1632
1632
|
}, null, 8, ["size", "selectedRows", "columns", "data", "rowGroupMode", "groupRowsBy", "collapsedGroups"]),
|
|
1633
|
-
|
|
1633
|
+
E(On)
|
|
1634
1634
|
], 2));
|
|
1635
1635
|
}
|
|
1636
|
-
}), Xl = /* @__PURE__ */ ve(
|
|
1636
|
+
}), Xl = /* @__PURE__ */ ve(En, [["__scopeId", "data-v-e89998ae"]]), Kl = /* @__PURE__ */ C({
|
|
1637
1637
|
__name: "Column",
|
|
1638
1638
|
props: {
|
|
1639
1639
|
field: {},
|
|
@@ -1662,7 +1662,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1662
1662
|
n && n(l);
|
|
1663
1663
|
}), (i, s) => V("", !0);
|
|
1664
1664
|
}
|
|
1665
|
-
}),
|
|
1665
|
+
}), _n = /* @__PURE__ */ C({
|
|
1666
1666
|
__name: "VirtualScroller",
|
|
1667
1667
|
props: {
|
|
1668
1668
|
items: {},
|
|
@@ -1675,17 +1675,17 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1675
1675
|
const t = e, n = S(), l = S([]), i = S(0), s = S(0), r = S(/* @__PURE__ */ new Map()), a = S(/* @__PURE__ */ new Map()), u = async () => {
|
|
1676
1676
|
if (await Te(), !l.value?.length) return;
|
|
1677
1677
|
let T = !1;
|
|
1678
|
-
l.value.forEach((I,
|
|
1678
|
+
l.value.forEach((I, _) => {
|
|
1679
1679
|
if (!I) return;
|
|
1680
|
-
const P = p.value +
|
|
1680
|
+
const P = p.value + _, Y = I.offsetHeight;
|
|
1681
1681
|
r.value.get(P) !== Y && (r.value.set(P, Y), T = !0);
|
|
1682
1682
|
}), T && d();
|
|
1683
1683
|
}, d = () => {
|
|
1684
1684
|
let T = 0;
|
|
1685
1685
|
for (let I = 0; I < t.items.length; I++) {
|
|
1686
1686
|
a.value.set(I, T);
|
|
1687
|
-
const
|
|
1688
|
-
T +=
|
|
1687
|
+
const _ = r.value.get(I) || t.estimatedItemHeight;
|
|
1688
|
+
T += _;
|
|
1689
1689
|
}
|
|
1690
1690
|
}, f = (T) => a.value.get(T) || T * t.estimatedItemHeight, $ = (T) => r.value.get(T) || t.estimatedItemHeight, v = x(() => {
|
|
1691
1691
|
if (a.value.size === 0)
|
|
@@ -1693,16 +1693,16 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1693
1693
|
const T = t.items.length - 1;
|
|
1694
1694
|
return f(T) + $(T);
|
|
1695
1695
|
}), k = (T) => {
|
|
1696
|
-
let I = 0,
|
|
1697
|
-
for (; I <=
|
|
1698
|
-
const P = Math.floor((I +
|
|
1699
|
-
f(P) <= T ? I = P + 1 :
|
|
1696
|
+
let I = 0, _ = t.items.length - 1;
|
|
1697
|
+
for (; I <= _; ) {
|
|
1698
|
+
const P = Math.floor((I + _) / 2);
|
|
1699
|
+
f(P) <= T ? I = P + 1 : _ = P - 1;
|
|
1700
1700
|
}
|
|
1701
|
-
return Math.max(0,
|
|
1701
|
+
return Math.max(0, _ - t.buffer);
|
|
1702
1702
|
}, A = (T, I) => {
|
|
1703
|
-
const
|
|
1703
|
+
const _ = T + I;
|
|
1704
1704
|
let P = k(T);
|
|
1705
|
-
for (; P < t.items.length && !(f(P) >
|
|
1705
|
+
for (; P < t.items.length && !(f(P) > _); )
|
|
1706
1706
|
P++;
|
|
1707
1707
|
return Math.min(t.items.length - 1, P + t.buffer);
|
|
1708
1708
|
}, p = x(() => k(i.value)), y = x(() => A(i.value, s.value)), g = x(() => {
|
|
@@ -1719,13 +1719,13 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1719
1719
|
}, G = () => {
|
|
1720
1720
|
n.value && (s.value = n.value.clientHeight);
|
|
1721
1721
|
};
|
|
1722
|
-
let
|
|
1722
|
+
let z = null;
|
|
1723
1723
|
return ne(() => {
|
|
1724
|
-
G(), n.value && (
|
|
1724
|
+
G(), n.value && (z = new ResizeObserver(() => {
|
|
1725
1725
|
G();
|
|
1726
|
-
}),
|
|
1726
|
+
}), z.observe(n.value));
|
|
1727
1727
|
}), Ue(() => {
|
|
1728
|
-
|
|
1728
|
+
z && z.disconnect();
|
|
1729
1729
|
}), re(g, () => {
|
|
1730
1730
|
u();
|
|
1731
1731
|
}, { flush: "post" }), re(() => t.items, () => {
|
|
@@ -1757,23 +1757,23 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1757
1757
|
class: "virtual-scroll__content",
|
|
1758
1758
|
style: ee({ transform: `translateY(${h.value}px)`, gap: `${T.gap}px` })
|
|
1759
1759
|
}, [
|
|
1760
|
-
(c(!0), m(H, null, fe(g.value, (
|
|
1761
|
-
key: R(
|
|
1760
|
+
(c(!0), m(H, null, fe(g.value, (_) => (c(), m("div", {
|
|
1761
|
+
key: R(_),
|
|
1762
1762
|
ref_for: !0,
|
|
1763
1763
|
ref_key: "itemRefs",
|
|
1764
1764
|
ref: l,
|
|
1765
1765
|
class: "virtual-scroll__item"
|
|
1766
1766
|
}, [
|
|
1767
1767
|
L(T.$slots, "default", {
|
|
1768
|
-
item:
|
|
1769
|
-
index:
|
|
1768
|
+
item: _.data,
|
|
1769
|
+
index: _.index
|
|
1770
1770
|
}, void 0, !0)
|
|
1771
1771
|
]))), 128))
|
|
1772
1772
|
], 4)
|
|
1773
1773
|
], 4)
|
|
1774
1774
|
], 544));
|
|
1775
1775
|
}
|
|
1776
|
-
}), Zl = /* @__PURE__ */ ve(
|
|
1776
|
+
}), Zl = /* @__PURE__ */ ve(_n, [["__scopeId", "data-v-01038963"]]), Dn = { class: "chip-checkbox" }, Gn = ["name", "id", "value"], Hn = { class: "chip-checkbox__text" }, Jl = /* @__PURE__ */ C({
|
|
1777
1777
|
__name: "ChipCheckbox",
|
|
1778
1778
|
props: /* @__PURE__ */ F({
|
|
1779
1779
|
value: {},
|
|
@@ -1896,7 +1896,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1896
1896
|
class: "tag__remove",
|
|
1897
1897
|
onClick: i[0] || (i[0] = Lt((s) => t("remove"), ["stop"]))
|
|
1898
1898
|
}, [
|
|
1899
|
-
|
|
1899
|
+
E(b(Ke))
|
|
1900
1900
|
])) : V("", !0)
|
|
1901
1901
|
], 2));
|
|
1902
1902
|
}
|
|
@@ -1959,7 +1959,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1959
1959
|
onBlur: u[2] || (u[2] = (d) => t("blur")),
|
|
1960
1960
|
onInput: u[3] || (u[3] = (d) => t("input", d))
|
|
1961
1961
|
}, null, 40, Zn), [
|
|
1962
|
-
[
|
|
1962
|
+
[zt, n.value]
|
|
1963
1963
|
]),
|
|
1964
1964
|
w("div", Jn, [
|
|
1965
1965
|
a.type === "text" && a.allowClear && n.value && n.value.length > 0 ? (c(), m("button", {
|
|
@@ -1967,7 +1967,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1967
1967
|
class: "input__clear",
|
|
1968
1968
|
onClick: u[4] || (u[4] = (d) => n.value = "")
|
|
1969
1969
|
}, [
|
|
1970
|
-
|
|
1970
|
+
E(b(Ke))
|
|
1971
1971
|
])) : V("", !0),
|
|
1972
1972
|
a.type === "password" ? (c(), m("button", {
|
|
1973
1973
|
key: 1,
|
|
@@ -2196,12 +2196,12 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2196
2196
|
w("div", al, [
|
|
2197
2197
|
w("div", rl, [
|
|
2198
2198
|
p.searchable ? (c(), m("div", ul, [
|
|
2199
|
-
|
|
2199
|
+
E(b(tl), {
|
|
2200
2200
|
icon: b(Wt),
|
|
2201
2201
|
disabled: p.loading
|
|
2202
2202
|
}, {
|
|
2203
2203
|
default: U(() => [
|
|
2204
|
-
|
|
2204
|
+
E(b(It), {
|
|
2205
2205
|
modelValue: a.value,
|
|
2206
2206
|
"onUpdate:modelValue": y[1] || (y[1] = (g) => a.value = g),
|
|
2207
2207
|
onInput: y[2] || (y[2] = (g) => t("search", a.value)),
|
|
@@ -2212,7 +2212,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2212
2212
|
}, 8, ["icon", "disabled"])
|
|
2213
2213
|
])) : V("", !0),
|
|
2214
2214
|
p.loading ? (c(), m("div", cl, [
|
|
2215
|
-
|
|
2215
|
+
E(b(ol))
|
|
2216
2216
|
])) : (c(), m("div", dl, [
|
|
2217
2217
|
(c(!0), m(H, null, fe(p.options, (g, h) => (c(), M(ll, {
|
|
2218
2218
|
key: h,
|
|
@@ -2340,7 +2340,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2340
2340
|
!s[2] && s[1] !== "" ? n.value = s[1] === "7" ? `${s[1]}` : "7" + s[1] : n.value = s[3] ? s[1] + " (" + s[2] + ") " + s[3] + (s[4] ? "-" + s[4] : "") + (s[5] ? "-" + s[5] : "") : `${s[1]} ` + s[2], t.value = n.value.replace(/\D/g, "");
|
|
2341
2341
|
};
|
|
2342
2342
|
return (i, s) => (c(), m("div", vl, [
|
|
2343
|
-
|
|
2343
|
+
E(b(It), Et({
|
|
2344
2344
|
modelValue: n.value,
|
|
2345
2345
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => n.value = r),
|
|
2346
2346
|
onInput: s[1] || (s[1] = (r) => l(r))
|
|
@@ -2520,7 +2520,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2520
2520
|
class: "toast-message__close",
|
|
2521
2521
|
onClick: d
|
|
2522
2522
|
}, [
|
|
2523
|
-
|
|
2523
|
+
E(b(gt))
|
|
2524
2524
|
])
|
|
2525
2525
|
], 2));
|
|
2526
2526
|
}
|
|
@@ -2554,7 +2554,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2554
2554
|
}), (u, d) => (c(), M(b(Qt), null, {
|
|
2555
2555
|
default: U(() => [
|
|
2556
2556
|
w("div", Cl, [
|
|
2557
|
-
|
|
2557
|
+
E(_t, {
|
|
2558
2558
|
name: "toast-fade",
|
|
2559
2559
|
tag: "div"
|
|
2560
2560
|
}, {
|
|
@@ -2714,39 +2714,42 @@ const as = {
|
|
|
2714
2714
|
__name: "Drawer",
|
|
2715
2715
|
props: {
|
|
2716
2716
|
position: { default: "left" },
|
|
2717
|
-
width: { default: 300 }
|
|
2717
|
+
width: { default: 300 },
|
|
2718
|
+
beforeClose: { type: Function }
|
|
2718
2719
|
},
|
|
2719
2720
|
setup(e, { expose: o }) {
|
|
2720
2721
|
const { lockScroll: t, unlockScroll: n } = wt(), l = S(!1), i = x(() => typeof e.width == "number" ? `${e.width}px` : `${e.width.split("px")[0]}px`), s = () => {
|
|
2721
2722
|
l.value = !0, t();
|
|
2722
2723
|
}, r = () => {
|
|
2724
|
+
e.beforeClose ? e.beforeClose(a) : a();
|
|
2725
|
+
}, a = () => {
|
|
2723
2726
|
l.value = !1, n();
|
|
2724
2727
|
};
|
|
2725
2728
|
return o({
|
|
2726
2729
|
isOpen: l,
|
|
2727
2730
|
open: s,
|
|
2728
|
-
close:
|
|
2729
|
-
}), (
|
|
2730
|
-
|
|
2731
|
+
close: a
|
|
2732
|
+
}), (u, d) => (c(), M(je, { to: "body" }, [
|
|
2733
|
+
E(Ye, { name: "drawer-animate" }, {
|
|
2731
2734
|
default: U(() => [
|
|
2732
2735
|
l.value ? (c(), m("div", {
|
|
2733
2736
|
key: 0,
|
|
2734
|
-
class: B(["drawer", { [`drawer--${
|
|
2737
|
+
class: B(["drawer", { [`drawer--${u.position}`]: u.position }]),
|
|
2735
2738
|
style: ee({ "--widthDrawer": i.value })
|
|
2736
2739
|
}, [
|
|
2737
2740
|
w("div", {
|
|
2738
2741
|
class: "drawer-overlay",
|
|
2739
|
-
onClick:
|
|
2742
|
+
onClick: d[0] || (d[0] = (f) => r())
|
|
2740
2743
|
}),
|
|
2741
2744
|
w("div", Bl, [
|
|
2742
2745
|
w("div", Il, [
|
|
2743
2746
|
w("button", {
|
|
2744
|
-
onClick:
|
|
2747
|
+
onClick: d[1] || (d[1] = (f) => a())
|
|
2745
2748
|
}, [
|
|
2746
|
-
|
|
2749
|
+
E(b(Ke))
|
|
2747
2750
|
])
|
|
2748
2751
|
]),
|
|
2749
|
-
L(
|
|
2752
|
+
L(u.$slots, "default")
|
|
2750
2753
|
])
|
|
2751
2754
|
], 6)) : V("", !0)
|
|
2752
2755
|
]),
|
|
@@ -2777,7 +2780,7 @@ const as = {
|
|
|
2777
2780
|
return re(t, () => {
|
|
2778
2781
|
t.value ? l() : n();
|
|
2779
2782
|
}), (r, a) => (c(), M(je, { to: "body" }, [
|
|
2780
|
-
|
|
2783
|
+
E(Ye, { name: "modal-content-fade" }, {
|
|
2781
2784
|
default: U(() => [
|
|
2782
2785
|
t.value ? (c(), m("div", {
|
|
2783
2786
|
key: 0,
|
|
@@ -2798,7 +2801,7 @@ const as = {
|
|
|
2798
2801
|
class: "modal__header-close",
|
|
2799
2802
|
onClick: a[1] || (a[1] = (u) => t.value = !1)
|
|
2800
2803
|
}, [
|
|
2801
|
-
|
|
2804
|
+
E(b(gt))
|
|
2802
2805
|
])
|
|
2803
2806
|
]),
|
|
2804
2807
|
w("div", Pl, [
|
|
@@ -2855,7 +2858,7 @@ const as = {
|
|
|
2855
2858
|
])
|
|
2856
2859
|
], 4));
|
|
2857
2860
|
}
|
|
2858
|
-
}),
|
|
2861
|
+
}), zl = { class: "accordion-header__content" }, El = { class: "accordion-header__arrow" }, ps = /* @__PURE__ */ C({
|
|
2859
2862
|
__name: "AccordionHeader",
|
|
2860
2863
|
setup(e) {
|
|
2861
2864
|
const o = K("panelIsOpen"), t = K("panelToggle"), n = K("accordionStyle");
|
|
@@ -2864,11 +2867,11 @@ const as = {
|
|
|
2864
2867
|
onClick: i[0] || (i[0] = //@ts-ignore
|
|
2865
2868
|
(...s) => b(t) && b(t)(...s))
|
|
2866
2869
|
}, [
|
|
2867
|
-
w("span",
|
|
2870
|
+
w("span", zl, [
|
|
2868
2871
|
L(l.$slots, "default")
|
|
2869
2872
|
]),
|
|
2870
|
-
w("span",
|
|
2871
|
-
|
|
2873
|
+
w("span", El, [
|
|
2874
|
+
E(b(Zt))
|
|
2872
2875
|
])
|
|
2873
2876
|
], 2));
|
|
2874
2877
|
}
|
|
@@ -2885,7 +2888,7 @@ const as = {
|
|
|
2885
2888
|
L(s.$slots, "default")
|
|
2886
2889
|
], 2));
|
|
2887
2890
|
}
|
|
2888
|
-
}),
|
|
2891
|
+
}), _l = {
|
|
2889
2892
|
key: 0,
|
|
2890
2893
|
class: "divider__content"
|
|
2891
2894
|
}, hs = /* @__PURE__ */ C({
|
|
@@ -2900,7 +2903,7 @@ const as = {
|
|
|
2900
2903
|
return (t, n) => (c(), m("div", {
|
|
2901
2904
|
class: B(o.value)
|
|
2902
2905
|
}, [
|
|
2903
|
-
t.$slots.default ? (c(), m("div",
|
|
2906
|
+
t.$slots.default ? (c(), m("div", _l, [
|
|
2904
2907
|
L(t.$slots, "default")
|
|
2905
2908
|
])) : V("", !0)
|
|
2906
2909
|
], 2));
|