prlg-ui 1.4.20 → 1.4.22
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.css +1 -1
- package/dist/prlg-ui.es.js +98 -97
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
2
|
-
import { P as pt, g as Dt, h as Gt, _ as ve, I as Xe, A 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 z, 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 _t, vModelText as ft, mergeProps as zt, reactive as mt, shallowRef as Ie, TransitionGroup as Et, vShow as vt } from "vue";
|
|
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 = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "button__content"
|
|
7
|
-
},
|
|
7
|
+
}, He = /* @__PURE__ */ C({
|
|
8
8
|
__name: "Button",
|
|
9
9
|
props: {
|
|
10
10
|
label: {},
|
|
@@ -44,8 +44,8 @@ const eo = {
|
|
|
44
44
|
})) : V("", !0),
|
|
45
45
|
n.iconOnly ? V("", !0) : (c(), m("div", eo, [
|
|
46
46
|
L(n.$slots, "default"),
|
|
47
|
-
n.label && !n.$slots.default ? (c(), m(
|
|
48
|
-
de(
|
|
47
|
+
n.label && !n.$slots.default ? (c(), m(H, { key: 0 }, [
|
|
48
|
+
de(D(n.label), 1)
|
|
49
49
|
], 64)) : V("", !0)
|
|
50
50
|
]))
|
|
51
51
|
]),
|
|
@@ -76,7 +76,7 @@ const eo = {
|
|
|
76
76
|
ref: t,
|
|
77
77
|
class: B(["sleed-deal-menu sleed-deal__items", { "sleed-deal-menu--open": o.value }])
|
|
78
78
|
}, [
|
|
79
|
-
(c(!0), m(
|
|
79
|
+
(c(!0), m(H, null, fe(s.items, (a) => (c(), m("div", {
|
|
80
80
|
class: "sleed-deal-menu__item",
|
|
81
81
|
key: a.label,
|
|
82
82
|
onClick: (u) => i(a)
|
|
@@ -85,10 +85,10 @@ const eo = {
|
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "sleed-deal-menu__item-icon"
|
|
87
87
|
})) : V("", !0),
|
|
88
|
-
w("span", no,
|
|
88
|
+
w("span", no, D(a.label), 1)
|
|
89
89
|
], 8, oo))), 128))
|
|
90
90
|
], 2),
|
|
91
|
-
z(b(
|
|
91
|
+
z(b(He), {
|
|
92
92
|
ref_key: "targetRef",
|
|
93
93
|
ref: n,
|
|
94
94
|
variant: s.variant,
|
|
@@ -118,7 +118,7 @@ const eo = {
|
|
|
118
118
|
class: "checkbox__label"
|
|
119
119
|
}, Ze = /* @__PURE__ */ C({
|
|
120
120
|
__name: "Checkbox",
|
|
121
|
-
props: /* @__PURE__ */
|
|
121
|
+
props: /* @__PURE__ */ F({
|
|
122
122
|
label: {},
|
|
123
123
|
value: {},
|
|
124
124
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -128,7 +128,7 @@ const eo = {
|
|
|
128
128
|
modelValue: { type: [Array, String, Boolean, null] },
|
|
129
129
|
modelModifiers: {}
|
|
130
130
|
}),
|
|
131
|
-
emits: /* @__PURE__ */
|
|
131
|
+
emits: /* @__PURE__ */ F(["change"], ["update:modelValue"]),
|
|
132
132
|
setup(e, { emit: o }) {
|
|
133
133
|
const t = o, n = le(e, "modelValue"), l = Re(), i = x(() => [
|
|
134
134
|
"checkbox",
|
|
@@ -171,7 +171,7 @@ const eo = {
|
|
|
171
171
|
])
|
|
172
172
|
]),
|
|
173
173
|
s.label || s.$slots.label ? (c(), m("span", co, [
|
|
174
|
-
de(
|
|
174
|
+
de(D(s.label) + " ", 1),
|
|
175
175
|
L(s.$slots, "label")
|
|
176
176
|
])) : V("", !0)
|
|
177
177
|
], 10, lo));
|
|
@@ -213,7 +213,7 @@ const eo = {
|
|
|
213
213
|
start: "end",
|
|
214
214
|
end: "start"
|
|
215
215
|
};
|
|
216
|
-
function
|
|
216
|
+
function Fe(e, o, t) {
|
|
217
217
|
return we(e, ke(o, t));
|
|
218
218
|
}
|
|
219
219
|
function Se(e, o) {
|
|
@@ -485,7 +485,7 @@ const Co = (e) => ({
|
|
|
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
486
|
let _ = G ? G[h] : 0;
|
|
487
487
|
(!_ || !await (s.isElement == null ? void 0 : s.isElement(G))) && (_ = r.floating[h] || i.floating[k]);
|
|
488
|
-
const W = R / 2 - O / 2, N = _ / 2 - A[k] / 2 - 1, j = ke(f[y], N), T = ke(f[g], N), I = j,
|
|
488
|
+
const W = R / 2 - O / 2, N = _ / 2 - A[k] / 2 - 1, j = ke(f[y], N), T = ke(f[g], N), I = j, E = _ - A[k] - T, P = _ / 2 - A[k] / 2 + W, Y = Fe(I, P, E), 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 - E : 0;
|
|
489
489
|
return {
|
|
490
490
|
[v]: $[v] + Z,
|
|
491
491
|
data: {
|
|
@@ -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 E;
|
|
556
|
+
const Z = (E = 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 : E[0];
|
|
565
565
|
Z && (se = Z);
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
@@ -661,11 +661,11 @@ const Vo = function(e) {
|
|
|
661
661
|
let v = u[$], k = u[f];
|
|
662
662
|
if (i) {
|
|
663
663
|
const p = $ === "y" ? "top" : "left", y = $ === "y" ? "bottom" : "right", g = v + d[p], h = v - d[y];
|
|
664
|
-
v =
|
|
664
|
+
v = Fe(g, v, h);
|
|
665
665
|
}
|
|
666
666
|
if (s) {
|
|
667
667
|
const p = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", g = k + d[p], h = k - d[y];
|
|
668
|
-
k =
|
|
668
|
+
k = Fe(g, k, h);
|
|
669
669
|
}
|
|
670
670
|
const A = r.fn({
|
|
671
671
|
...o,
|
|
@@ -836,7 +836,7 @@ function Ct(e) {
|
|
|
836
836
|
y: o.visualViewport.offsetTop
|
|
837
837
|
};
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function Ho(e, o, t) {
|
|
840
840
|
return o === void 0 && (o = !1), !t || o && t !== q(e) ? !1 : o;
|
|
841
841
|
}
|
|
842
842
|
function be(e, o, t, n) {
|
|
@@ -844,7 +844,7 @@ function be(e, o, t, n) {
|
|
|
844
844
|
const l = e.getBoundingClientRect(), i = ot(e);
|
|
845
845
|
let s = ie(1);
|
|
846
846
|
o && (n ? te(n) && (s = $e(n)) : s = $e(e));
|
|
847
|
-
const r =
|
|
847
|
+
const r = Ho(i, t, n) ? Ct(i) : ie(0);
|
|
848
848
|
let a = (l.left + r.x) / s.x, u = (l.top + r.y) / s.y, d = l.width / s.x, f = l.height / s.y;
|
|
849
849
|
if (i) {
|
|
850
850
|
const $ = q(i), v = n && te(n) ? q(n) : n;
|
|
@@ -876,7 +876,7 @@ function Tt(e, o, t) {
|
|
|
876
876
|
y: i
|
|
877
877
|
};
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function Fo(e) {
|
|
880
880
|
let {
|
|
881
881
|
elements: o,
|
|
882
882
|
rect: t,
|
|
@@ -1075,7 +1075,7 @@ function Qo(e) {
|
|
|
1075
1075
|
return oe(e).direction === "rtl";
|
|
1076
1076
|
}
|
|
1077
1077
|
const en = {
|
|
1078
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1078
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Fo,
|
|
1079
1079
|
getDocumentElement: ce,
|
|
1080
1080
|
getClippingRect: Xo,
|
|
1081
1081
|
getOffsetParent: St,
|
|
@@ -1317,7 +1317,7 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1317
1317
|
])
|
|
1318
1318
|
]),
|
|
1319
1319
|
default: U(() => [
|
|
1320
|
-
w("span", mn,
|
|
1320
|
+
w("span", mn, D(o.description), 1)
|
|
1321
1321
|
]),
|
|
1322
1322
|
_: 1
|
|
1323
1323
|
}));
|
|
@@ -1353,7 +1353,7 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1353
1353
|
class: B(n.value)
|
|
1354
1354
|
}, [
|
|
1355
1355
|
w("tr", gn, [
|
|
1356
|
-
(c(!0), m(
|
|
1356
|
+
(c(!0), m(H, null, fe(s.columns, (a, u) => (c(), m("th", {
|
|
1357
1357
|
class: B(l(a)),
|
|
1358
1358
|
key: u,
|
|
1359
1359
|
style: ee(i(a))
|
|
@@ -1365,7 +1365,7 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1365
1365
|
checked: s.isSelectedAll,
|
|
1366
1366
|
onChange: r[0] || (r[0] = (d) => t("selectAllRow"))
|
|
1367
1367
|
}, null, 8, ["checked"])) : V("", !0),
|
|
1368
|
-
a.header ? (c(), m("span", wn,
|
|
1368
|
+
a.header ? (c(), m("span", wn, D(a.header), 1)) : V("", !0),
|
|
1369
1369
|
a.description ? (c(), M(pn, {
|
|
1370
1370
|
key: 2,
|
|
1371
1371
|
description: a.description,
|
|
@@ -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
|
-
z(b(
|
|
1421
|
+
z(b(Ht), {
|
|
1422
1422
|
class: B({ rotated: !l.value })
|
|
1423
1423
|
}, null, 8, ["class"])
|
|
1424
1424
|
])) : V("", !0),
|
|
@@ -1431,14 +1431,14 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1431
1431
|
key: 2,
|
|
1432
1432
|
size: "small",
|
|
1433
1433
|
onChange: a[2] || (a[2] = (u) => t("toggleRow"))
|
|
1434
|
-
})) : (c(), m(
|
|
1434
|
+
})) : (c(), m(H, { key: 3 }, [
|
|
1435
1435
|
r.column.bodySlot ? (c(), M(ae(r.column.bodySlot), {
|
|
1436
1436
|
key: 0,
|
|
1437
1437
|
data: r.item,
|
|
1438
1438
|
field: r.column.field,
|
|
1439
1439
|
index: r.index,
|
|
1440
1440
|
column: r.column
|
|
1441
|
-
}, null, 8, ["data", "field", "index", "column"])) : (c(), m("span", xn,
|
|
1441
|
+
}, null, 8, ["data", "field", "index", "column"])) : (c(), m("span", xn, D(s()), 1))
|
|
1442
1442
|
], 64))
|
|
1443
1443
|
], 10, kn)) : V("", !0);
|
|
1444
1444
|
}
|
|
@@ -1461,7 +1461,7 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1461
1461
|
class: "table-row",
|
|
1462
1462
|
onClick: i[2] || (i[2] = (s) => t("rowClickHandler", { data: l.item, index: l.rowIndex }))
|
|
1463
1463
|
}, [
|
|
1464
|
-
(c(!0), m(
|
|
1464
|
+
(c(!0), m(H, null, fe(l.columns, (s) => (c(), M(Cn, {
|
|
1465
1465
|
key: s.field || s.header,
|
|
1466
1466
|
column: s,
|
|
1467
1467
|
item: l.item,
|
|
@@ -1492,7 +1492,7 @@ const nn = Vo, ln = Bo, sn = To, an = Co, rn = (e, o, t) => {
|
|
|
1492
1492
|
setup(e, { emit: o }) {
|
|
1493
1493
|
const t = o, n = (l, i) => l.id ? `row-${l.id}` : `row-${i}`;
|
|
1494
1494
|
return (l, i) => (c(), m("tbody", Sn, [
|
|
1495
|
-
(c(!0), m(
|
|
1495
|
+
(c(!0), m(H, null, fe(l.data, (s, r) => (c(), M(An, {
|
|
1496
1496
|
key: n(s, r),
|
|
1497
1497
|
rowIndex: r,
|
|
1498
1498
|
item: s,
|
|
@@ -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, E) => {
|
|
1679
1679
|
if (!I) return;
|
|
1680
|
-
const P = p.value +
|
|
1680
|
+
const P = p.value + E, 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 E = r.value.get(I) || t.estimatedItemHeight;
|
|
1688
|
+
T += E;
|
|
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, E = t.items.length - 1;
|
|
1697
|
+
for (; I <= E; ) {
|
|
1698
|
+
const P = Math.floor((I + E) / 2);
|
|
1699
|
+
f(P) <= T ? I = P + 1 : E = P - 1;
|
|
1700
1700
|
}
|
|
1701
|
-
return Math.max(0,
|
|
1701
|
+
return Math.max(0, E - t.buffer);
|
|
1702
1702
|
}, A = (T, I) => {
|
|
1703
|
-
const
|
|
1703
|
+
const E = T + I;
|
|
1704
1704
|
let P = k(T);
|
|
1705
|
-
for (; P < t.items.length && !(f(P) >
|
|
1705
|
+
for (; P < t.items.length && !(f(P) > E); )
|
|
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(() => {
|
|
@@ -1757,25 +1757,25 @@ 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(
|
|
1761
|
-
key: R(
|
|
1760
|
+
(c(!0), m(H, null, fe(g.value, (E) => (c(), m("div", {
|
|
1761
|
+
key: R(E),
|
|
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: E.data,
|
|
1769
|
+
index: E.index
|
|
1770
1770
|
}, void 0, !0)
|
|
1771
1771
|
]))), 128))
|
|
1772
1772
|
], 4)
|
|
1773
1773
|
], 4)
|
|
1774
1774
|
], 544));
|
|
1775
1775
|
}
|
|
1776
|
-
}), Zl = /* @__PURE__ */ ve(En, [["__scopeId", "data-v-01038963"]]), Dn = { class: "chip-checkbox" }, Gn = ["name", "id", "value"],
|
|
1776
|
+
}), Zl = /* @__PURE__ */ ve(En, [["__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
|
-
props: /* @__PURE__ */
|
|
1778
|
+
props: /* @__PURE__ */ F({
|
|
1779
1779
|
value: {},
|
|
1780
1780
|
label: {},
|
|
1781
1781
|
id: {}
|
|
@@ -1809,12 +1809,12 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1809
1809
|
})
|
|
1810
1810
|
])
|
|
1811
1811
|
], -1)),
|
|
1812
|
-
w("span",
|
|
1812
|
+
w("span", Hn, D(n.label), 1)
|
|
1813
1813
|
]));
|
|
1814
1814
|
}
|
|
1815
|
-
}),
|
|
1815
|
+
}), Fn = ["id", "value", "disabled"], Nn = ["for"], Bt = /* @__PURE__ */ C({
|
|
1816
1816
|
__name: "Radio",
|
|
1817
|
-
props: /* @__PURE__ */
|
|
1817
|
+
props: /* @__PURE__ */ F({
|
|
1818
1818
|
label: {},
|
|
1819
1819
|
disabled: { type: Boolean, default: !1 },
|
|
1820
1820
|
value: {},
|
|
@@ -1823,7 +1823,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1823
1823
|
modelValue: {},
|
|
1824
1824
|
modelModifiers: {}
|
|
1825
1825
|
}),
|
|
1826
|
-
emits: /* @__PURE__ */
|
|
1826
|
+
emits: /* @__PURE__ */ F(["change"], ["update:modelValue"]),
|
|
1827
1827
|
setup(e, { emit: o }) {
|
|
1828
1828
|
const t = le(e, "modelValue"), n = Re(), l = o, i = x(() => ["radio", `radio--${e.size}`]);
|
|
1829
1829
|
return (s, r) => (c(), m("div", {
|
|
@@ -1838,7 +1838,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1838
1838
|
value: s.value,
|
|
1839
1839
|
disabled: s.disabled,
|
|
1840
1840
|
onChange: r[1] || (r[1] = (a) => l("change", s.value))
|
|
1841
|
-
}, null, 40,
|
|
1841
|
+
}, null, 40, Fn), [
|
|
1842
1842
|
[Pt, t.value]
|
|
1843
1843
|
]),
|
|
1844
1844
|
r[2] || (r[2] = w("div", { class: "radio__track" }, [
|
|
@@ -1848,8 +1848,8 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1848
1848
|
for: b(n),
|
|
1849
1849
|
class: "radio__label"
|
|
1850
1850
|
}, [
|
|
1851
|
-
s.label ? (c(), m(
|
|
1852
|
-
de(
|
|
1851
|
+
s.label ? (c(), m(H, { key: 0 }, [
|
|
1852
|
+
de(D(s.label), 1)
|
|
1853
1853
|
], 64)) : L(s.$slots, "default", { key: 1 })
|
|
1854
1854
|
], 8, Nn)
|
|
1855
1855
|
], 2));
|
|
@@ -1905,7 +1905,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1905
1905
|
class: "input__error"
|
|
1906
1906
|
}, It = /* @__PURE__ */ C({
|
|
1907
1907
|
__name: "InputText",
|
|
1908
|
-
props: /* @__PURE__ */
|
|
1908
|
+
props: /* @__PURE__ */ F({
|
|
1909
1909
|
label: {},
|
|
1910
1910
|
placeholder: {},
|
|
1911
1911
|
allowClear: { type: Boolean },
|
|
@@ -1923,7 +1923,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1923
1923
|
modelValue: { required: !0 },
|
|
1924
1924
|
modelModifiers: {}
|
|
1925
1925
|
}),
|
|
1926
|
-
emits: /* @__PURE__ */
|
|
1926
|
+
emits: /* @__PURE__ */ F(["blur", "input"], ["update:modelValue"]),
|
|
1927
1927
|
setup(e, { emit: o }) {
|
|
1928
1928
|
const t = o, n = le(e, "modelValue"), l = Re(), i = S(!1), s = x(() => [
|
|
1929
1929
|
"input",
|
|
@@ -1943,7 +1943,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1943
1943
|
class: "input__label"
|
|
1944
1944
|
}, [
|
|
1945
1945
|
a.required ? (c(), m("sup", Xn, "*")) : V("", !0),
|
|
1946
|
-
de(" " +
|
|
1946
|
+
de(" " + D(a.label), 1)
|
|
1947
1947
|
], 8, Yn)) : V("", !0),
|
|
1948
1948
|
w("div", Kn, [
|
|
1949
1949
|
me(w("input", {
|
|
@@ -1974,11 +1974,11 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
1974
1974
|
class: "input__eye",
|
|
1975
1975
|
onClick: u[5] || (u[5] = (d) => i.value = !i.value)
|
|
1976
1976
|
}, [
|
|
1977
|
-
i.value ? (c(), M(b(
|
|
1977
|
+
i.value ? (c(), M(b(Ft), { key: 0 })) : (c(), M(b(Nt), { key: 1 }))
|
|
1978
1978
|
])) : V("", !0)
|
|
1979
1979
|
])
|
|
1980
1980
|
]),
|
|
1981
|
-
a.error && a.errorText ? (c(), m("small", Qn,
|
|
1981
|
+
a.error && a.errorText ? (c(), m("small", Qn, D(a.errorText), 1)) : V("", !0)
|
|
1982
1982
|
], 2));
|
|
1983
1983
|
}
|
|
1984
1984
|
}), el = { class: "icon-field__content" }, tl = /* @__PURE__ */ C({
|
|
@@ -2032,7 +2032,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2032
2032
|
class: /* @__PURE__ */ B(["dropdown-option"])
|
|
2033
2033
|
}, ll = /* @__PURE__ */ C({
|
|
2034
2034
|
__name: "DropdownOption",
|
|
2035
|
-
props: /* @__PURE__ */
|
|
2035
|
+
props: /* @__PURE__ */ F({
|
|
2036
2036
|
item: {},
|
|
2037
2037
|
multiple: { type: Boolean, default: !1 }
|
|
2038
2038
|
}, {
|
|
@@ -2053,8 +2053,8 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2053
2053
|
t.$slots.option ? L(t.$slots, "option", {
|
|
2054
2054
|
key: 0,
|
|
2055
2055
|
option: t.item
|
|
2056
|
-
}) : (c(), m(
|
|
2057
|
-
de(
|
|
2056
|
+
}) : (c(), m(H, { key: 1 }, [
|
|
2057
|
+
de(D(t.item.label), 1)
|
|
2058
2058
|
], 64))
|
|
2059
2059
|
]),
|
|
2060
2060
|
_: 3
|
|
@@ -2068,8 +2068,8 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2068
2068
|
t.$slots.option ? L(t.$slots, "option", {
|
|
2069
2069
|
key: 0,
|
|
2070
2070
|
option: t.item
|
|
2071
|
-
}) : (c(), m(
|
|
2072
|
-
de(
|
|
2071
|
+
}) : (c(), m(H, { key: 1 }, [
|
|
2072
|
+
de(D(t.item.label), 1)
|
|
2073
2073
|
], 64))
|
|
2074
2074
|
]),
|
|
2075
2075
|
_: 3
|
|
@@ -2096,7 +2096,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2096
2096
|
class: "dropdown__popover-list"
|
|
2097
2097
|
}, Ql = /* @__PURE__ */ C({
|
|
2098
2098
|
__name: "Dropdown",
|
|
2099
|
-
props: /* @__PURE__ */
|
|
2099
|
+
props: /* @__PURE__ */ F({
|
|
2100
2100
|
options: {},
|
|
2101
2101
|
optionLabel: {},
|
|
2102
2102
|
optionValue: {},
|
|
@@ -2109,7 +2109,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2109
2109
|
modelValue: { required: !0 },
|
|
2110
2110
|
modelModifiers: {}
|
|
2111
2111
|
}),
|
|
2112
|
-
emits: /* @__PURE__ */
|
|
2112
|
+
emits: /* @__PURE__ */ F(["search"], ["update:modelValue"]),
|
|
2113
2113
|
setup(e, { emit: o }) {
|
|
2114
2114
|
const t = o, n = x(() => e.optionValue ? e.optionValue : "value"), l = x(() => e.optionLabel ? e.optionLabel : "label"), i = le(e, "modelValue"), s = x({
|
|
2115
2115
|
get() {
|
|
@@ -2166,18 +2166,18 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2166
2166
|
class: B(["dropdown__field-inner", [{ "dropdown__field-inner--multiple": p.multiple }, { "dropdown__field-inner--placeholder": !i.value }]])
|
|
2167
2167
|
}, [
|
|
2168
2168
|
p.multiple ? (c(), m("div", sl, [
|
|
2169
|
-
(c(!0), m(
|
|
2169
|
+
(c(!0), m(H, null, fe(s.value, (g) => (c(), M(b(jn), {
|
|
2170
2170
|
variant: "secondary",
|
|
2171
2171
|
key: g,
|
|
2172
2172
|
removable: "",
|
|
2173
2173
|
onRemove: (h) => v(g)
|
|
2174
2174
|
}, {
|
|
2175
2175
|
default: U(() => [
|
|
2176
|
-
de(
|
|
2176
|
+
de(D($(g)), 1)
|
|
2177
2177
|
]),
|
|
2178
2178
|
_: 2
|
|
2179
2179
|
}, 1032, ["onRemove"]))), 128))
|
|
2180
|
-
])) : (c(), m("span", il,
|
|
2180
|
+
])) : (c(), m("span", il, D(r.value ? p.placeholder : f.value), 1))
|
|
2181
2181
|
], 2),
|
|
2182
2182
|
y[4] || (y[4] = w("div", { class: "dropdown__field-arrow" }, [
|
|
2183
2183
|
w("svg", {
|
|
@@ -2214,7 +2214,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2214
2214
|
p.loading ? (c(), m("div", cl, [
|
|
2215
2215
|
z(b(ol))
|
|
2216
2216
|
])) : (c(), m("div", dl, [
|
|
2217
|
-
(c(!0), m(
|
|
2217
|
+
(c(!0), m(H, null, fe(p.options, (g, h) => (c(), M(ll, {
|
|
2218
2218
|
key: h,
|
|
2219
2219
|
modelValue: s.value,
|
|
2220
2220
|
"onUpdate:modelValue": y[3] || (y[3] = (R) => s.value = R),
|
|
@@ -2228,7 +2228,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2228
2228
|
}
|
|
2229
2229
|
}), fl = { class: "input-number__wrapper" }, ml = ["max"], es = /* @__PURE__ */ C({
|
|
2230
2230
|
__name: "InputNumber",
|
|
2231
|
-
props: /* @__PURE__ */
|
|
2231
|
+
props: /* @__PURE__ */ F({
|
|
2232
2232
|
viewButtons: { type: Boolean, default: !1 },
|
|
2233
2233
|
max: {},
|
|
2234
2234
|
countInPackage: { default: 1 },
|
|
@@ -2274,7 +2274,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2274
2274
|
}), (a, u) => (c(), m("div", {
|
|
2275
2275
|
class: B(r.value)
|
|
2276
2276
|
}, [
|
|
2277
|
-
a.viewButtons ? (c(), M(b(
|
|
2277
|
+
a.viewButtons ? (c(), M(b(He), {
|
|
2278
2278
|
key: 0,
|
|
2279
2279
|
contrast: "",
|
|
2280
2280
|
icon: b(qt),
|
|
@@ -2299,7 +2299,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2299
2299
|
[ft, t.value]
|
|
2300
2300
|
])
|
|
2301
2301
|
]),
|
|
2302
|
-
a.viewButtons ? (c(), M(b(
|
|
2302
|
+
a.viewButtons ? (c(), M(b(He), {
|
|
2303
2303
|
key: 1,
|
|
2304
2304
|
contrast: "",
|
|
2305
2305
|
icon: b(pt),
|
|
@@ -2313,7 +2313,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
}), vl = { class: "input-phone" }, ts = /* @__PURE__ */ C({
|
|
2315
2315
|
__name: "InputPhone",
|
|
2316
|
-
props: /* @__PURE__ */
|
|
2316
|
+
props: /* @__PURE__ */ F({
|
|
2317
2317
|
label: {},
|
|
2318
2318
|
placeholder: {},
|
|
2319
2319
|
allowClear: { type: Boolean },
|
|
@@ -2349,7 +2349,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2349
2349
|
}
|
|
2350
2350
|
}), pl = ["id", "disabled"], os = /* @__PURE__ */ C({
|
|
2351
2351
|
__name: "Switch",
|
|
2352
|
-
props: /* @__PURE__ */
|
|
2352
|
+
props: /* @__PURE__ */ F({
|
|
2353
2353
|
disabled: { type: Boolean }
|
|
2354
2354
|
}, {
|
|
2355
2355
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -2380,7 +2380,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
}), gl = ["for"], hl = ["maxlength", "id", "placeholder", "name", "disabled", "rows", "cols"], ns = /* @__PURE__ */ C({
|
|
2382
2382
|
__name: "Textarea",
|
|
2383
|
-
props: /* @__PURE__ */
|
|
2383
|
+
props: /* @__PURE__ */ F({
|
|
2384
2384
|
label: {},
|
|
2385
2385
|
placeholder: {},
|
|
2386
2386
|
name: {},
|
|
@@ -2396,7 +2396,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2396
2396
|
modelValue: {},
|
|
2397
2397
|
modelModifiers: {}
|
|
2398
2398
|
}),
|
|
2399
|
-
emits: /* @__PURE__ */
|
|
2399
|
+
emits: /* @__PURE__ */ F(["focusIn", "focusOut", "blur"], ["update:modelValue"]),
|
|
2400
2400
|
setup(e, { emit: o }) {
|
|
2401
2401
|
const t = o, n = le(e, "modelValue"), l = S(null), i = Re(), s = () => {
|
|
2402
2402
|
const a = l.value;
|
|
@@ -2427,7 +2427,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2427
2427
|
w("label", {
|
|
2428
2428
|
for: a.inputId ?? b(i),
|
|
2429
2429
|
class: "textarea__label"
|
|
2430
|
-
},
|
|
2430
|
+
}, D(a.label), 9, gl),
|
|
2431
2431
|
me(w("textarea", {
|
|
2432
2432
|
"onUpdate:modelValue": u[0] || (u[0] = (d) => n.value = d),
|
|
2433
2433
|
ref_key: "textareaRef",
|
|
@@ -2460,13 +2460,13 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2460
2460
|
setup(e) {
|
|
2461
2461
|
const o = (t) => t.url ? ct("RouterLink") : "div";
|
|
2462
2462
|
return (t, n) => (c(), m("div", wl, [
|
|
2463
|
-
(c(!0), m(
|
|
2463
|
+
(c(!0), m(H, null, fe(t.items, (l, i) => (c(), m(H, null, [
|
|
2464
2464
|
(c(), M(ae(o(l)), {
|
|
2465
2465
|
to: l.url,
|
|
2466
2466
|
class: B(["breadcrumb__item", { "breadcrumb__item--disabled": !l.url }])
|
|
2467
2467
|
}, {
|
|
2468
2468
|
default: U(() => [
|
|
2469
|
-
de(
|
|
2469
|
+
de(D(l.label), 1)
|
|
2470
2470
|
]),
|
|
2471
2471
|
_: 2
|
|
2472
2472
|
}, 1032, ["to", "class"])),
|
|
@@ -2474,10 +2474,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2474
2474
|
], 64))), 256))
|
|
2475
2475
|
]));
|
|
2476
2476
|
}
|
|
2477
|
-
}), bl = { class: "toast-message__icon" }, $l = { class: "toast-message__content" }, kl = { class: "toast-message__title" }, xl = {
|
|
2478
|
-
key: 0,
|
|
2479
|
-
class: "toast-message__text"
|
|
2480
|
-
}, Rl = /* @__PURE__ */ C({
|
|
2477
|
+
}), bl = { class: "toast-message__icon" }, $l = { class: "toast-message__content" }, kl = { class: "toast-message__title" }, xl = ["innerHTML"], Rl = /* @__PURE__ */ C({
|
|
2481
2478
|
__name: "ToastMessage",
|
|
2482
2479
|
props: {
|
|
2483
2480
|
msg: {}
|
|
@@ -2512,8 +2509,12 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2512
2509
|
(c(), M(ae(l.value)))
|
|
2513
2510
|
]),
|
|
2514
2511
|
w("div", $l, [
|
|
2515
|
-
w("div", kl,
|
|
2516
|
-
$.msg.detail ? (c(), m("div",
|
|
2512
|
+
w("div", kl, D($.msg.summary), 1),
|
|
2513
|
+
$.msg.detail ? (c(), m("div", {
|
|
2514
|
+
key: 0,
|
|
2515
|
+
class: "toast-message__text",
|
|
2516
|
+
innerHTML: $.msg.detail
|
|
2517
|
+
}, null, 8, xl)) : V("", !0)
|
|
2517
2518
|
]),
|
|
2518
2519
|
w("button", {
|
|
2519
2520
|
class: "toast-message__close",
|
|
@@ -2558,7 +2559,7 @@ const On = /* @__PURE__ */ ve(Bn, [["render", Mn]]), Pn = (e) => {
|
|
|
2558
2559
|
tag: "div"
|
|
2559
2560
|
}, {
|
|
2560
2561
|
default: U(() => [
|
|
2561
|
-
(c(!0), m(
|
|
2562
|
+
(c(!0), m(H, null, fe(t.value, (f) => (c(), M(Rl, {
|
|
2562
2563
|
key: f.id,
|
|
2563
2564
|
msg: f,
|
|
2564
2565
|
onClose: d[0] || (d[0] = ($) => l($))
|
|
@@ -2621,8 +2622,8 @@ const as = {
|
|
|
2621
2622
|
}, [
|
|
2622
2623
|
(c(), M(ae(n[o.type]), { class: "message__icon" })),
|
|
2623
2624
|
w("div", Tl, [
|
|
2624
|
-
l.$slots.default ? L(l.$slots, "default", { key: 0 }, void 0, !0) : (c(), m(
|
|
2625
|
-
de(
|
|
2625
|
+
l.$slots.default ? L(l.$slots, "default", { key: 0 }, void 0, !0) : (c(), m(H, { key: 1 }, [
|
|
2626
|
+
de(D(o.message), 1)
|
|
2626
2627
|
], 64))
|
|
2627
2628
|
])
|
|
2628
2629
|
], 2));
|
|
@@ -2649,7 +2650,7 @@ const as = {
|
|
|
2649
2650
|
return (t, n) => (c(), m("div", {
|
|
2650
2651
|
class: B(o.value)
|
|
2651
2652
|
}, [
|
|
2652
|
-
t.value ? (c(), m("div", Sl,
|
|
2653
|
+
t.value ? (c(), m("div", Sl, D(t.value), 1)) : V("", !0)
|
|
2653
2654
|
], 2));
|
|
2654
2655
|
}
|
|
2655
2656
|
}), us = /* @__PURE__ */ C({
|
|
@@ -2758,7 +2759,7 @@ const as = {
|
|
|
2758
2759
|
class: "modal__header-title"
|
|
2759
2760
|
}, Pl = { class: "modal__body" }, fs = /* @__PURE__ */ C({
|
|
2760
2761
|
__name: "Modal",
|
|
2761
|
-
props: /* @__PURE__ */
|
|
2762
|
+
props: /* @__PURE__ */ F({
|
|
2762
2763
|
title: {},
|
|
2763
2764
|
style: {},
|
|
2764
2765
|
position: { default: "center" }
|
|
@@ -2791,7 +2792,7 @@ const as = {
|
|
|
2791
2792
|
style: ee(r.style)
|
|
2792
2793
|
}, [
|
|
2793
2794
|
w("div", Ml, [
|
|
2794
|
-
o.value ? (c(), m("h2", Ol,
|
|
2795
|
+
o.value ? (c(), m("h2", Ol, D(o.value), 1)) : V("", !0),
|
|
2795
2796
|
w("button", {
|
|
2796
2797
|
text: "",
|
|
2797
2798
|
class: "modal__header-close",
|
|
@@ -2938,7 +2939,7 @@ const as = {
|
|
|
2938
2939
|
L(s.$slots, "default")
|
|
2939
2940
|
]));
|
|
2940
2941
|
}
|
|
2941
|
-
}),
|
|
2942
|
+
}), Hl = {
|
|
2942
2943
|
class: "tab-panel",
|
|
2943
2944
|
role: "tabpanel"
|
|
2944
2945
|
}, bs = /* @__PURE__ */ C({
|
|
@@ -2948,19 +2949,19 @@ const as = {
|
|
|
2948
2949
|
},
|
|
2949
2950
|
setup(e) {
|
|
2950
2951
|
const o = e, t = K("tabsValue"), n = x(() => t?.value === o.value);
|
|
2951
|
-
return (l, i) => me((c(), m("div",
|
|
2952
|
+
return (l, i) => me((c(), m("div", Hl, [
|
|
2952
2953
|
L(l.$slots, "default")
|
|
2953
2954
|
], 512)), [
|
|
2954
2955
|
[vt, n.value]
|
|
2955
2956
|
]);
|
|
2956
2957
|
}
|
|
2957
|
-
}),
|
|
2958
|
+
}), Fl = {
|
|
2958
2959
|
class: "tab-list",
|
|
2959
2960
|
role: "tablist"
|
|
2960
2961
|
}, Nl = { class: "tab-list__content" }, $s = /* @__PURE__ */ C({
|
|
2961
2962
|
__name: "TabList",
|
|
2962
2963
|
setup(e) {
|
|
2963
|
-
return (o, t) => (c(), m("div",
|
|
2964
|
+
return (o, t) => (c(), m("div", Fl, [
|
|
2964
2965
|
w("div", Nl, [
|
|
2965
2966
|
L(o.$slots, "default")
|
|
2966
2967
|
])
|
|
@@ -2981,7 +2982,7 @@ export {
|
|
|
2981
2982
|
gs as AccordionPanel,
|
|
2982
2983
|
Vl as Badge,
|
|
2983
2984
|
ls as Breadcrumb,
|
|
2984
|
-
|
|
2985
|
+
He as Button,
|
|
2985
2986
|
Ze as Checkbox,
|
|
2986
2987
|
Jl as ChipCheckbox,
|
|
2987
2988
|
Kl as Column,
|