@solfacil/girassol 0.9.0 → 0.10.0-beta-tabs-key.1
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/girassol.es.js +602 -595
- package/dist/girassol.umd.js +4 -4
- package/dist/types/components/list/List.vue.d.ts +3 -1
- package/dist/types/components/list/ListItem.vue.d.ts +1 -0
- package/dist/types/components/tabs/types.d.ts +1 -0
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/girassol.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as J, openBlock as g, createElementBlock as y, normalizeClass as
|
|
2
|
-
const wn = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as J, openBlock as g, createElementBlock as y, normalizeClass as B, createElementVNode as b, toDisplayString as O, useSlots as ht, computed as x, unref as u, renderSlot as C, createVNode as _, createCommentVNode as F, createBlock as ee, withCtx as q, ref as R, withDirectives as Ce, onMounted as st, provide as Pi, isRef as Ue, watch as me, getCurrentInstance as ke, onBeforeUnmount as ki, toRef as Le, resolveDynamicComponent as ni, h as gt, inject as Bi, reactive as ot, onUnmounted as li, nextTick as Ee, warn as Oi, watchEffect as Yi, markRaw as fn, mergeProps as Be, vShow as Pe, createTextVNode as re, vModelText as bn, Fragment as Ae, renderList as he, getCurrentScope as hn, onScopeDispose as Dn, withModifiers as Ne, normalizeStyle as Nt, withKeys as De, resolveComponent as Sn, Transition as ai, createSlots as An, Teleport as xn, render as Vi } from "vue";
|
|
2
|
+
const wn = /* @__PURE__ */ b("path", {
|
|
3
3
|
class: "path",
|
|
4
4
|
d: "M16.0008 1.5C17.905 1.5 19.7905 1.87506 21.5497 2.60375C23.3089 3.33244 24.9074 4.4005 26.2538 5.74695C27.6003 7.0934 28.6684 8.69187 29.397 10.4511C30.1257 12.2103 30.5008 14.0958 30.5008 16C30.5008 17.9042 30.1257 19.7897 29.397 21.5489C28.6684 23.3081 27.6003 24.9066 26.2538 26.2531C24.9074 27.5995 23.3089 28.6676 21.5497 29.3963C19.7905 30.1249 17.905 30.5 16.0008 30.5C14.0966 30.5 12.2111 30.1249 10.4519 29.3963C8.69266 28.6676 7.09419 27.5995 5.74774 26.253C4.4013 24.9066 3.33323 23.3081 2.60454 21.5489C1.87585 19.7897 1.50079 17.9042 1.50079 16C1.5008 14.0958 1.87585 12.2103 2.60454 10.4511C3.33324 8.69187 4.4013 7.0934 5.74775 5.74695C7.0942 4.4005 8.69267 3.33244 10.4519 2.60375C12.2111 1.87505 14.0966 1.5 16.0008 1.5L16.0008 1.5Z"
|
|
5
5
|
}, null, -1), Wi = /* @__PURE__ */ J({
|
|
@@ -11,12 +11,12 @@ const wn = /* @__PURE__ */ f("path", {
|
|
|
11
11
|
},
|
|
12
12
|
setup(e) {
|
|
13
13
|
return (t, i) => (g(), y("svg", {
|
|
14
|
-
class:
|
|
14
|
+
class: B(["sol-inner-loader", `-${e.size}`]),
|
|
15
15
|
viewBox: "0 0 32 32",
|
|
16
16
|
fill: "none",
|
|
17
17
|
xmlns: "http://www.w3.org/2000/svg"
|
|
18
18
|
}, [
|
|
19
|
-
|
|
19
|
+
b("title", null, O(e.title), 1),
|
|
20
20
|
wn
|
|
21
21
|
], 2));
|
|
22
22
|
}
|
|
@@ -45,7 +45,7 @@ const Zn = ["data-testid", "disabled"], Tn = { class: "icon -left" }, zn = { cla
|
|
|
45
45
|
);
|
|
46
46
|
return (a, s) => (g(), y("button", {
|
|
47
47
|
"data-testid": `button-${e.id}`,
|
|
48
|
-
class:
|
|
48
|
+
class: B(["sol-button-core", `-${e.variant} -${e.size}
|
|
49
49
|
${t(e.loading, "-loading")}
|
|
50
50
|
${t(e.onColor, "-on-color")}
|
|
51
51
|
${t(u(n), "-has-icon")}
|
|
@@ -54,12 +54,12 @@ const Zn = ["data-testid", "disabled"], Tn = { class: "icon -left" }, zn = { cla
|
|
|
54
54
|
type: "button",
|
|
55
55
|
disabled: e.disabled || e.loading
|
|
56
56
|
}, [
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
b("div", Tn, [
|
|
58
|
+
C(a.$slots, "icon-left")
|
|
59
59
|
]),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
C(a.$slots, "default"),
|
|
61
|
+
b("div", zn, [
|
|
62
|
+
C(a.$slots, "icon-right")
|
|
63
63
|
]),
|
|
64
64
|
e.loading ? (g(), y("div", Ln, [
|
|
65
65
|
_(Wi, {
|
|
@@ -75,7 +75,7 @@ const Cn = {
|
|
|
75
75
|
viewBox: "0 0 24 24",
|
|
76
76
|
width: "1em",
|
|
77
77
|
height: "1em"
|
|
78
|
-
}, Gn = /* @__PURE__ */
|
|
78
|
+
}, Gn = /* @__PURE__ */ b("path", {
|
|
79
79
|
fill: "currentColor",
|
|
80
80
|
d: "M7 21q-.825 0-1.412-.587Q5 19.825 5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413Q17.825 21 17 21ZM17 6H7v13h10ZM9 17h2V8H9Zm4 0h2V8h-2ZM7 6v13Z"
|
|
81
81
|
}, null, -1), pn = [
|
|
@@ -107,7 +107,7 @@ const Pn = { name: "material-symbols-delete-outline", render: En }, Ui = /* @__P
|
|
|
107
107
|
})) : F("", !0)
|
|
108
108
|
]),
|
|
109
109
|
default: q(() => [
|
|
110
|
-
|
|
110
|
+
C(t.$slots, "default")
|
|
111
111
|
]),
|
|
112
112
|
_: 3
|
|
113
113
|
}, 8, ["id", "size", "loading"]));
|
|
@@ -329,7 +329,7 @@ const Qn = ["id", "data-testid", "value"], Qi = /* @__PURE__ */ J({
|
|
|
329
329
|
ref: o,
|
|
330
330
|
"data-testid": `input-${e.id}`,
|
|
331
331
|
value: e.modelValue,
|
|
332
|
-
class:
|
|
332
|
+
class: B(["sol-input-core", [`-${e.size}`, { "-error": e.error, "-feedback-icon": e.hasFeedbackIcon }]]),
|
|
333
333
|
onInput: s
|
|
334
334
|
}, null, 42, Qn)), [
|
|
335
335
|
[u(a), u(l)]
|
|
@@ -790,8 +790,8 @@ async function fl(e, t) {
|
|
|
790
790
|
const N = o[M], I = await N(t, s);
|
|
791
791
|
if (typeof I != "string" && I)
|
|
792
792
|
continue;
|
|
793
|
-
const
|
|
794
|
-
if (c.push(
|
|
793
|
+
const v = typeof I == "string" ? I : tn(s);
|
|
794
|
+
if (c.push(v), e.bails)
|
|
795
795
|
return {
|
|
796
796
|
errors: c
|
|
797
797
|
};
|
|
@@ -1274,25 +1274,25 @@ function on(e, t, i) {
|
|
|
1274
1274
|
return $e(i == null ? void 0 : i.type) ? Bl(e, t, i) : un(e, t, i);
|
|
1275
1275
|
}
|
|
1276
1276
|
function un(e, t, i) {
|
|
1277
|
-
const { initialValue: n, validateOnMount: l, bails: a, type: s, checkedValue: o, label: r, validateOnValueUpdate: c, uncheckedValue: M, controlled: N, keepValueOnUnmount: I, modelPropName: d, syncVModel:
|
|
1277
|
+
const { initialValue: n, validateOnMount: l, bails: a, type: s, checkedValue: o, label: r, validateOnValueUpdate: c, uncheckedValue: M, controlled: N, keepValueOnUnmount: I, modelPropName: d, syncVModel: v, form: Z } = Pl(u(e), i), p = N ? ri(ut) : void 0, L = Z || p;
|
|
1278
1278
|
let z = !1;
|
|
1279
|
-
const { id:
|
|
1279
|
+
const { id: f, value: D, initialValue: G, meta: w, setState: Y, errors: W, errorMessage: te } = xl(e, {
|
|
1280
1280
|
modelValue: n,
|
|
1281
|
-
form:
|
|
1281
|
+
form: L
|
|
1282
1282
|
});
|
|
1283
|
-
|
|
1283
|
+
v && Ol({ value: D, prop: d, handleChange: ae });
|
|
1284
1284
|
const $ = () => {
|
|
1285
1285
|
w.touched = !0;
|
|
1286
1286
|
}, le = x(() => {
|
|
1287
1287
|
let A = u(t);
|
|
1288
|
-
const X = u(
|
|
1288
|
+
const X = u(L == null ? void 0 : L.schema);
|
|
1289
1289
|
return X && !et(X) && (A = kl(X, u(e)) || A), et(A) || He(A) || Array.isArray(A) ? A : Ki(A);
|
|
1290
1290
|
});
|
|
1291
1291
|
async function ue(A) {
|
|
1292
1292
|
var X, se;
|
|
1293
|
-
return
|
|
1293
|
+
return L != null && L.validateSchema ? (X = (await L.validateSchema(A)).results[u(e)]) !== null && X !== void 0 ? X : { valid: !0, errors: [] } : en(D.value, le.value, {
|
|
1294
1294
|
name: u(r) || u(e),
|
|
1295
|
-
values: (se =
|
|
1295
|
+
values: (se = L == null ? void 0 : L.values) !== null && se !== void 0 ? se : {},
|
|
1296
1296
|
bails: a
|
|
1297
1297
|
});
|
|
1298
1298
|
}
|
|
@@ -1302,27 +1302,27 @@ function un(e, t, i) {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
function ae(A, X = !0) {
|
|
1304
1304
|
const se = ci(A);
|
|
1305
|
-
|
|
1305
|
+
D.value = se, !c && X && ce();
|
|
1306
1306
|
}
|
|
1307
1307
|
st(() => {
|
|
1308
1308
|
if (l)
|
|
1309
1309
|
return ce();
|
|
1310
|
-
(!
|
|
1310
|
+
(!L || !L.validateSchema) && ge();
|
|
1311
1311
|
});
|
|
1312
1312
|
function de(A) {
|
|
1313
1313
|
w.touched = A;
|
|
1314
1314
|
}
|
|
1315
|
-
let T,
|
|
1316
|
-
function
|
|
1317
|
-
T = me(
|
|
1318
|
-
if (Me(A, X) && Me(A,
|
|
1315
|
+
let T, h = ie(D.value);
|
|
1316
|
+
function S() {
|
|
1317
|
+
T = me(D, (A, X) => {
|
|
1318
|
+
if (Me(A, X) && Me(A, h))
|
|
1319
1319
|
return;
|
|
1320
|
-
(c ? ce : ge)(),
|
|
1320
|
+
(c ? ce : ge)(), h = ie(A);
|
|
1321
1321
|
}, {
|
|
1322
1322
|
deep: !0
|
|
1323
1323
|
});
|
|
1324
1324
|
}
|
|
1325
|
-
|
|
1325
|
+
S();
|
|
1326
1326
|
function P(A) {
|
|
1327
1327
|
var X;
|
|
1328
1328
|
T == null || T();
|
|
@@ -1333,22 +1333,22 @@ function un(e, t, i) {
|
|
|
1333
1333
|
touched: (X = A == null ? void 0 : A.touched) !== null && X !== void 0 ? X : !1,
|
|
1334
1334
|
errors: (A == null ? void 0 : A.errors) || []
|
|
1335
1335
|
}), w.pending = !1, w.validated = !1, ge(), Ee(() => {
|
|
1336
|
-
|
|
1336
|
+
S();
|
|
1337
1337
|
});
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1340
|
-
|
|
1339
|
+
function U(A) {
|
|
1340
|
+
D.value = A;
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function k(A) {
|
|
1343
1343
|
Y({ errors: Array.isArray(A) ? A : [A] });
|
|
1344
1344
|
}
|
|
1345
|
-
const
|
|
1346
|
-
id:
|
|
1345
|
+
const V = {
|
|
1346
|
+
id: f,
|
|
1347
1347
|
name: e,
|
|
1348
1348
|
label: r,
|
|
1349
|
-
value:
|
|
1349
|
+
value: D,
|
|
1350
1350
|
meta: w,
|
|
1351
|
-
errors:
|
|
1351
|
+
errors: W,
|
|
1352
1352
|
errorMessage: te,
|
|
1353
1353
|
type: s,
|
|
1354
1354
|
checkedValue: o,
|
|
@@ -1362,25 +1362,25 @@ function un(e, t, i) {
|
|
|
1362
1362
|
handleBlur: $,
|
|
1363
1363
|
setState: Y,
|
|
1364
1364
|
setTouched: de,
|
|
1365
|
-
setErrors:
|
|
1366
|
-
setValue:
|
|
1365
|
+
setErrors: k,
|
|
1366
|
+
setValue: U
|
|
1367
1367
|
};
|
|
1368
|
-
if (Pi(ll,
|
|
1368
|
+
if (Pi(ll, V), Ue(t) && typeof u(t) != "function" && me(t, (A, X) => {
|
|
1369
1369
|
Me(A, X) || (w.validated ? ce() : ge());
|
|
1370
1370
|
}, {
|
|
1371
1371
|
deep: !0
|
|
1372
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1372
|
+
}), process.env.NODE_ENV !== "production" && (V._vm = ke(), me(() => Object.assign(Object.assign({ errors: W.value }, w), { value: D.value }), Qe, {
|
|
1373
1373
|
deep: !0
|
|
1374
|
-
}),
|
|
1375
|
-
return
|
|
1376
|
-
|
|
1377
|
-
z = !0,
|
|
1374
|
+
}), L || zl(V)), !L)
|
|
1375
|
+
return V;
|
|
1376
|
+
L.register(V), ki(() => {
|
|
1377
|
+
z = !0, L.unregister(V);
|
|
1378
1378
|
});
|
|
1379
1379
|
const ve = x(() => {
|
|
1380
1380
|
const A = le.value;
|
|
1381
1381
|
return !A || He(A) || et(A) || Array.isArray(A) ? {} : Object.keys(A).reduce((X, se) => {
|
|
1382
1382
|
const pe = jl(A[se]).map((xe) => xe.__locatorRef).reduce((xe, Fe) => {
|
|
1383
|
-
const dt = oe(
|
|
1383
|
+
const dt = oe(L.values, Fe) || L.values[Fe];
|
|
1384
1384
|
return dt !== void 0 && (xe[Fe] = dt), xe;
|
|
1385
1385
|
}, {});
|
|
1386
1386
|
return Object.assign(X, pe), X;
|
|
@@ -1390,7 +1390,7 @@ function un(e, t, i) {
|
|
|
1390
1390
|
if (!Object.keys(A).length)
|
|
1391
1391
|
return;
|
|
1392
1392
|
!Me(A, X) && (w.validated ? ce() : ge());
|
|
1393
|
-
}),
|
|
1393
|
+
}), V;
|
|
1394
1394
|
}
|
|
1395
1395
|
function Pl(e, t) {
|
|
1396
1396
|
const i = () => ({
|
|
@@ -1426,8 +1426,8 @@ function Bl(e, t, i) {
|
|
|
1426
1426
|
I && o.validate();
|
|
1427
1427
|
return;
|
|
1428
1428
|
}
|
|
1429
|
-
let
|
|
1430
|
-
n || (
|
|
1429
|
+
let v = ci(N);
|
|
1430
|
+
n || (v = Pt(u(o.value), u(l), u(a))), r(v, I);
|
|
1431
1431
|
}
|
|
1432
1432
|
return Object.assign(Object.assign({}, o), {
|
|
1433
1433
|
checked: c,
|
|
@@ -1527,7 +1527,7 @@ J({
|
|
|
1527
1527
|
}
|
|
1528
1528
|
},
|
|
1529
1529
|
setup(e, t) {
|
|
1530
|
-
const i = Le(e, "rules"), n = Le(e, "name"), l = Le(e, "label"), a = Le(e, "uncheckedValue"), s = Le(e, "keepValue"), { errors: o, value: r, errorMessage: c, validate: M, handleChange: N, handleBlur: I, setTouched: d, resetField:
|
|
1530
|
+
const i = Le(e, "rules"), n = Le(e, "name"), l = Le(e, "label"), a = Le(e, "uncheckedValue"), s = Le(e, "keepValue"), { errors: o, value: r, errorMessage: c, validate: M, handleChange: N, handleBlur: I, setTouched: d, resetField: v, handleReset: Z, meta: p, checked: L, setErrors: z } = on(n, i, {
|
|
1531
1531
|
validateOnMount: e.validateOnMount,
|
|
1532
1532
|
bails: e.bails,
|
|
1533
1533
|
standalone: e.standalone,
|
|
@@ -1538,20 +1538,20 @@ J({
|
|
|
1538
1538
|
label: l,
|
|
1539
1539
|
validateOnValueUpdate: !1,
|
|
1540
1540
|
keepValueOnUnmount: s
|
|
1541
|
-
}),
|
|
1541
|
+
}), f = function(te, $ = !0) {
|
|
1542
1542
|
N(te, $), t.emit("update:modelValue", r.value);
|
|
1543
|
-
},
|
|
1544
|
-
$e(t.attrs.type) || (r.value = ci(
|
|
1543
|
+
}, D = (W) => {
|
|
1544
|
+
$e(t.attrs.type) || (r.value = ci(W));
|
|
1545
1545
|
}, G = function(te) {
|
|
1546
|
-
|
|
1546
|
+
D(te), t.emit("update:modelValue", r.value);
|
|
1547
1547
|
}, w = x(() => {
|
|
1548
|
-
const { validateOnInput:
|
|
1548
|
+
const { validateOnInput: W, validateOnChange: te, validateOnBlur: $, validateOnModelUpdate: le } = Yl(e), ue = [I, t.attrs.onBlur, $ ? M : void 0].filter(Boolean), ce = [(de) => f(de, W), t.attrs.onInput].filter(Boolean), ge = [(de) => f(de, te), t.attrs.onChange].filter(Boolean), ye = {
|
|
1549
1549
|
name: e.name,
|
|
1550
1550
|
onBlur: ue,
|
|
1551
1551
|
onInput: ce,
|
|
1552
1552
|
onChange: ge
|
|
1553
1553
|
};
|
|
1554
|
-
ye["onUpdate:modelValue"] = (de) =>
|
|
1554
|
+
ye["onUpdate:modelValue"] = (de) => f(de, le), $e(t.attrs.type) && L && (ye.checked = L.value);
|
|
1555
1555
|
const ae = Zi(e, t);
|
|
1556
1556
|
return rl(ae, t.attrs) && (ye.value = r.value), ye;
|
|
1557
1557
|
});
|
|
@@ -1559,12 +1559,12 @@ J({
|
|
|
1559
1559
|
return {
|
|
1560
1560
|
field: w.value,
|
|
1561
1561
|
value: r.value,
|
|
1562
|
-
meta:
|
|
1562
|
+
meta: p,
|
|
1563
1563
|
errors: o.value,
|
|
1564
1564
|
errorMessage: c.value,
|
|
1565
1565
|
validate: M,
|
|
1566
|
-
resetField:
|
|
1567
|
-
handleChange:
|
|
1566
|
+
resetField: v,
|
|
1567
|
+
handleChange: f,
|
|
1568
1568
|
handleInput: G,
|
|
1569
1569
|
handleReset: Z,
|
|
1570
1570
|
handleBlur: I,
|
|
@@ -1575,12 +1575,12 @@ J({
|
|
|
1575
1575
|
return t.expose({
|
|
1576
1576
|
setErrors: z,
|
|
1577
1577
|
setTouched: d,
|
|
1578
|
-
reset:
|
|
1578
|
+
reset: v,
|
|
1579
1579
|
validate: M,
|
|
1580
1580
|
handleChange: N
|
|
1581
1581
|
}), () => {
|
|
1582
|
-
const
|
|
1583
|
-
return
|
|
1582
|
+
const W = ni(Zi(e, t)), te = St(W, t, Y);
|
|
1583
|
+
return W ? gt(W, Object.assign(Object.assign({}, t.attrs), w.value), te) : te;
|
|
1584
1584
|
};
|
|
1585
1585
|
}
|
|
1586
1586
|
});
|
|
@@ -1610,21 +1610,21 @@ function Ul(e) {
|
|
|
1610
1610
|
const E = M.value[j];
|
|
1611
1611
|
return E && E.length && (m[j] = E[0]), m;
|
|
1612
1612
|
}, {}));
|
|
1613
|
-
function
|
|
1613
|
+
function v(m) {
|
|
1614
1614
|
const j = a.value[m];
|
|
1615
1615
|
return Array.isArray(j) ? j[0] : j;
|
|
1616
1616
|
}
|
|
1617
1617
|
function Z(m) {
|
|
1618
1618
|
return !!a.value[m];
|
|
1619
1619
|
}
|
|
1620
|
-
const
|
|
1621
|
-
const E =
|
|
1620
|
+
const p = x(() => Ie(a.value).reduce((m, j) => {
|
|
1621
|
+
const E = v(j);
|
|
1622
1622
|
return E && (m[j] = u(E.label || E.name) || ""), m;
|
|
1623
|
-
}, {})),
|
|
1623
|
+
}, {})), L = x(() => Ie(a.value).reduce((m, j) => {
|
|
1624
1624
|
var E;
|
|
1625
|
-
const Q =
|
|
1625
|
+
const Q = v(j);
|
|
1626
1626
|
return Q && (m[j] = (E = Q.bails) !== null && E !== void 0 ? E : !0), m;
|
|
1627
|
-
}, {})), z = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}),
|
|
1627
|
+
}, {})), z = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), f = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: D, originalInitialValues: G, setInitialValues: w } = $l(a, c, e == null ? void 0 : e.initialValues), Y = Hl(a, c, G, d), W = x(() => [...n, ...Ie(a.value)].reduce((m, j) => {
|
|
1628
1628
|
const E = oe(c, j);
|
|
1629
1629
|
return Te(m, j, E), m;
|
|
1630
1630
|
}, {})), te = e == null ? void 0 : e.validationSchema, $ = Si(ji, 5), le = Si(ji, 5), ue = kt(async (m) => await m === "silent" ? $() : le(), (m, [j]) => {
|
|
@@ -1637,7 +1637,7 @@ function Ul(e) {
|
|
|
1637
1637
|
valid: !we.length
|
|
1638
1638
|
};
|
|
1639
1639
|
if (ne.results[K] = Se, Se.valid || (ne.errors[K] = Se.errors[0]), !fe)
|
|
1640
|
-
return
|
|
1640
|
+
return S(K, we), ne;
|
|
1641
1641
|
if (T(fe, (Re) => Re.meta.valid = Se.valid), j === "silent")
|
|
1642
1642
|
return ne;
|
|
1643
1643
|
const vn = Array.isArray(fe) ? fe.some((Re) => Re.meta.validated) : fe.meta.validated;
|
|
@@ -1650,16 +1650,16 @@ function Ul(e) {
|
|
|
1650
1650
|
return ne instanceof Event && (ne.preventDefault(), ne.stopPropagation()), X(Ie(a.value).reduce((K, fe) => (K[fe] = !0, K), {})), s.value = !0, o.value++, It().then((K) => {
|
|
1651
1651
|
const fe = ie(c);
|
|
1652
1652
|
if (K.valid && typeof E == "function") {
|
|
1653
|
-
const we = ie(
|
|
1653
|
+
const we = ie(W.value);
|
|
1654
1654
|
return E(m ? we : fe, {
|
|
1655
1655
|
evt: ne,
|
|
1656
1656
|
controlledValues: we,
|
|
1657
1657
|
setErrors: P,
|
|
1658
|
-
setFieldError:
|
|
1658
|
+
setFieldError: S,
|
|
1659
1659
|
setTouched: X,
|
|
1660
1660
|
setFieldTouched: A,
|
|
1661
|
-
setValues:
|
|
1662
|
-
setFieldValue:
|
|
1661
|
+
setValues: k,
|
|
1662
|
+
setFieldValue: U,
|
|
1663
1663
|
resetForm: se
|
|
1664
1664
|
});
|
|
1665
1665
|
}
|
|
@@ -1681,7 +1681,7 @@ function Ul(e) {
|
|
|
1681
1681
|
formId: i,
|
|
1682
1682
|
fieldsByPath: a,
|
|
1683
1683
|
values: c,
|
|
1684
|
-
controlledValues:
|
|
1684
|
+
controlledValues: W,
|
|
1685
1685
|
errorBag: M,
|
|
1686
1686
|
errors: d,
|
|
1687
1687
|
schema: te,
|
|
@@ -1689,17 +1689,17 @@ function Ul(e) {
|
|
|
1689
1689
|
meta: Y,
|
|
1690
1690
|
isSubmitting: s,
|
|
1691
1691
|
fieldArrays: r,
|
|
1692
|
-
keepValuesOnUnmount:
|
|
1692
|
+
keepValuesOnUnmount: f,
|
|
1693
1693
|
validateSchema: u(te) ? ue : void 0,
|
|
1694
1694
|
validate: It,
|
|
1695
1695
|
register: Fe,
|
|
1696
1696
|
unregister: dt,
|
|
1697
1697
|
setFieldErrorBag: I,
|
|
1698
1698
|
validateField: xt,
|
|
1699
|
-
setFieldValue:
|
|
1700
|
-
setValues:
|
|
1699
|
+
setFieldValue: U,
|
|
1700
|
+
setValues: k,
|
|
1701
1701
|
setErrors: P,
|
|
1702
|
-
setFieldError:
|
|
1702
|
+
setFieldError: S,
|
|
1703
1703
|
setFieldTouched: A,
|
|
1704
1704
|
setTouched: X,
|
|
1705
1705
|
resetForm: se,
|
|
@@ -1715,40 +1715,40 @@ function Ul(e) {
|
|
|
1715
1715
|
function T(m, j) {
|
|
1716
1716
|
return Array.isArray(m) ? m.forEach(j) : j(m);
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function h(m) {
|
|
1719
1719
|
Object.values(a.value).forEach((j) => {
|
|
1720
1720
|
!j || T(j, m);
|
|
1721
1721
|
});
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function S(m, j) {
|
|
1724
1724
|
I(m, j);
|
|
1725
1725
|
}
|
|
1726
1726
|
function P(m) {
|
|
1727
1727
|
N(m);
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function U(m, j, { force: E } = { force: !1 }) {
|
|
1730
1730
|
var Q;
|
|
1731
|
-
const
|
|
1732
|
-
if (!
|
|
1731
|
+
const H = a.value[m], ne = ie(j);
|
|
1732
|
+
if (!H) {
|
|
1733
1733
|
Te(c, m, ne);
|
|
1734
1734
|
return;
|
|
1735
1735
|
}
|
|
1736
|
-
if (de(
|
|
1736
|
+
if (de(H) && ((Q = H[0]) === null || Q === void 0 ? void 0 : Q.type) === "checkbox" && !Array.isArray(j)) {
|
|
1737
1737
|
const fe = ie(Pt(oe(c, m) || [], j, void 0));
|
|
1738
1738
|
Te(c, m, fe);
|
|
1739
1739
|
return;
|
|
1740
1740
|
}
|
|
1741
1741
|
let K = j;
|
|
1742
|
-
!de(
|
|
1742
|
+
!de(H) && H.type === "checkbox" && !E && !l && (K = ie(Pt(oe(c, m), j, u(H.uncheckedValue)))), Te(c, m, K);
|
|
1743
1743
|
}
|
|
1744
|
-
function
|
|
1744
|
+
function k(m) {
|
|
1745
1745
|
Ie(c).forEach((j) => {
|
|
1746
1746
|
delete c[j];
|
|
1747
1747
|
}), Ie(m).forEach((j) => {
|
|
1748
|
-
|
|
1748
|
+
U(j, m[j]);
|
|
1749
1749
|
}), r.forEach((j) => j && j.reset());
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function V(m) {
|
|
1752
1752
|
const { value: j } = nn(m, void 0, ae);
|
|
1753
1753
|
return me(j, () => {
|
|
1754
1754
|
Z(u(m)) || It({ mode: "validated-only" });
|
|
@@ -1757,7 +1757,7 @@ function Ul(e) {
|
|
|
1757
1757
|
}), n.add(u(m)), j;
|
|
1758
1758
|
}
|
|
1759
1759
|
function ve(m) {
|
|
1760
|
-
return Array.isArray(m) ? m.map(
|
|
1760
|
+
return Array.isArray(m) ? m.map(V) : V(m);
|
|
1761
1761
|
}
|
|
1762
1762
|
function A(m, j) {
|
|
1763
1763
|
const E = a.value[m];
|
|
@@ -1769,7 +1769,7 @@ function Ul(e) {
|
|
|
1769
1769
|
});
|
|
1770
1770
|
}
|
|
1771
1771
|
function se(m) {
|
|
1772
|
-
l = !0,
|
|
1772
|
+
l = !0, h((j) => j.resetField()), m != null && m.values ? (w(m.values), k(m == null ? void 0 : m.values)) : (w(G.value), k(G.value)), m != null && m.touched && X(m.touched), P((m == null ? void 0 : m.errors) || {}), o.value = (m == null ? void 0 : m.submitCount) || 0, Ee(() => {
|
|
1773
1773
|
l = !1;
|
|
1774
1774
|
});
|
|
1775
1775
|
}
|
|
@@ -1779,8 +1779,8 @@ function Ul(e) {
|
|
|
1779
1779
|
a.value[Q] = E;
|
|
1780
1780
|
return;
|
|
1781
1781
|
}
|
|
1782
|
-
const
|
|
1783
|
-
|
|
1782
|
+
const H = a.value[Q];
|
|
1783
|
+
H && !Array.isArray(H) && (a.value[Q] = [H]), a.value[Q] = [...a.value[Q], E];
|
|
1784
1784
|
}
|
|
1785
1785
|
function xe(m, j) {
|
|
1786
1786
|
const E = j, Q = a.value[E];
|
|
@@ -1790,17 +1790,17 @@ function Ul(e) {
|
|
|
1790
1790
|
return;
|
|
1791
1791
|
}
|
|
1792
1792
|
if (de(Q)) {
|
|
1793
|
-
const
|
|
1794
|
-
if (
|
|
1793
|
+
const H = Q.findIndex((ne) => ne.id === m.id);
|
|
1794
|
+
if (H === -1)
|
|
1795
1795
|
return;
|
|
1796
|
-
Q.splice(
|
|
1796
|
+
Q.splice(H, 1), Q.length || delete a.value[E];
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
1800
|
function Fe(m) {
|
|
1801
1801
|
const j = u(m.name);
|
|
1802
|
-
pe(m, j), Ue(m.name) && me(m.name, async (Q,
|
|
1803
|
-
await Ee(), xe(m,
|
|
1802
|
+
pe(m, j), Ue(m.name) && me(m.name, async (Q, H) => {
|
|
1803
|
+
await Ee(), xe(m, H), pe(m, Q), (d.value[H] || d.value[Q]) && (S(H, void 0), xt(Q)), await Ee(), Z(H) || Mt(c, H);
|
|
1804
1804
|
});
|
|
1805
1805
|
const E = u(m.errorMessage);
|
|
1806
1806
|
E && (z == null ? void 0 : z[j]) !== E && xt(j), delete z[j];
|
|
@@ -1808,42 +1808,42 @@ function Ul(e) {
|
|
|
1808
1808
|
function dt(m) {
|
|
1809
1809
|
const j = u(m.name), E = a.value[j], Q = !!E && de(E);
|
|
1810
1810
|
xe(m, j), Ee(() => {
|
|
1811
|
-
var
|
|
1812
|
-
const ne = (
|
|
1811
|
+
var H;
|
|
1812
|
+
const ne = (H = u(m.keepValueOnUnmount)) !== null && H !== void 0 ? H : u(f), K = oe(c, j);
|
|
1813
1813
|
if (Q && (E === a.value[j] || !a.value[j]) && !ne)
|
|
1814
1814
|
if (Array.isArray(K)) {
|
|
1815
1815
|
const we = K.findIndex((Se) => Me(Se, u(m.checkedValue)));
|
|
1816
1816
|
if (we > -1) {
|
|
1817
1817
|
const Se = [...K];
|
|
1818
|
-
Se.splice(we, 1),
|
|
1818
|
+
Se.splice(we, 1), U(j, Se, { force: !0 });
|
|
1819
1819
|
}
|
|
1820
1820
|
} else
|
|
1821
1821
|
K === u(m.checkedValue) && Mt(c, j);
|
|
1822
1822
|
if (!Z(j)) {
|
|
1823
|
-
if (
|
|
1823
|
+
if (S(j, void 0), ne || Q && Array.isArray(K) && !Ri(K))
|
|
1824
1824
|
return;
|
|
1825
1825
|
Mt(c, j);
|
|
1826
1826
|
}
|
|
1827
1827
|
});
|
|
1828
1828
|
}
|
|
1829
1829
|
async function It(m) {
|
|
1830
|
-
if (
|
|
1830
|
+
if (h((H) => H.meta.validated = !0), ae.validateSchema)
|
|
1831
1831
|
return ae.validateSchema((m == null ? void 0 : m.mode) || "force");
|
|
1832
|
-
const j = await Promise.all(Object.values(a.value).map((
|
|
1833
|
-
const ne = Array.isArray(
|
|
1832
|
+
const j = await Promise.all(Object.values(a.value).map((H) => {
|
|
1833
|
+
const ne = Array.isArray(H) ? H[0] : H;
|
|
1834
1834
|
return ne ? ne.validate(m).then((K) => ({
|
|
1835
1835
|
key: u(ne.name),
|
|
1836
1836
|
valid: K.valid,
|
|
1837
1837
|
errors: K.errors
|
|
1838
1838
|
})) : Promise.resolve({ key: "", valid: !0, errors: [] });
|
|
1839
1839
|
})), E = {}, Q = {};
|
|
1840
|
-
for (const
|
|
1841
|
-
E[
|
|
1842
|
-
valid:
|
|
1843
|
-
errors:
|
|
1844
|
-
},
|
|
1840
|
+
for (const H of j)
|
|
1841
|
+
E[H.key] = {
|
|
1842
|
+
valid: H.valid,
|
|
1843
|
+
errors: H.errors
|
|
1844
|
+
}, H.errors.length && (Q[H.key] = H.errors[0]);
|
|
1845
1845
|
return {
|
|
1846
|
-
valid: j.every((
|
|
1846
|
+
valid: j.every((H) => H.valid),
|
|
1847
1847
|
results: E,
|
|
1848
1848
|
errors: Q
|
|
1849
1849
|
};
|
|
@@ -1853,19 +1853,19 @@ function Ul(e) {
|
|
|
1853
1853
|
return j ? Array.isArray(j) ? j.map((E) => E.validate())[0] : j.validate() : (Oi(`field with name ${m} was not found`), Promise.resolve({ errors: [], valid: !0 }));
|
|
1854
1854
|
}
|
|
1855
1855
|
function Nn(m) {
|
|
1856
|
-
Mt(
|
|
1856
|
+
Mt(D.value, m);
|
|
1857
1857
|
}
|
|
1858
1858
|
function jn(m, j, E = !1) {
|
|
1859
1859
|
Te(c, m, j), Ni(m, j), E && !(e != null && e.initialValues) && Te(G.value, m, ie(j));
|
|
1860
1860
|
}
|
|
1861
1861
|
function Ni(m, j) {
|
|
1862
|
-
Te(
|
|
1862
|
+
Te(D.value, m, ie(j));
|
|
1863
1863
|
}
|
|
1864
1864
|
async function ji() {
|
|
1865
1865
|
const m = u(te);
|
|
1866
1866
|
return m ? et(m) ? await Sl(m, c) : await Al(m, c, {
|
|
1867
|
-
names:
|
|
1868
|
-
bailsMap:
|
|
1867
|
+
names: p.value,
|
|
1868
|
+
bailsMap: L.value
|
|
1869
1869
|
}) : { valid: !0, results: {}, errors: {} };
|
|
1870
1870
|
}
|
|
1871
1871
|
const yn = ye((m, { evt: j }) => {
|
|
@@ -1990,7 +1990,7 @@ J({
|
|
|
1990
1990
|
}
|
|
1991
1991
|
},
|
|
1992
1992
|
setup(e, t) {
|
|
1993
|
-
const i = Le(e, "initialValues"), n = Le(e, "validationSchema"), l = Le(e, "keepValues"), { errors: a, values: s, meta: o, isSubmitting: r, submitCount: c, controlledValues: M, validate: N, validateField: I, handleReset: d, resetForm:
|
|
1993
|
+
const i = Le(e, "initialValues"), n = Le(e, "validationSchema"), l = Le(e, "keepValues"), { errors: a, values: s, meta: o, isSubmitting: r, submitCount: c, controlledValues: M, validate: N, validateField: I, handleReset: d, resetForm: v, handleSubmit: Z, setErrors: p, setFieldError: L, setFieldValue: z, setValues: f, setFieldTouched: D, setTouched: G } = Ul({
|
|
1994
1994
|
validationSchema: n.value ? n : void 0,
|
|
1995
1995
|
initialValues: i,
|
|
1996
1996
|
initialErrors: e.initialErrors,
|
|
@@ -2000,7 +2000,7 @@ J({
|
|
|
2000
2000
|
}), w = Z((le, { evt: ue }) => {
|
|
2001
2001
|
qi(ue) && ue.target.submit();
|
|
2002
2002
|
}, e.onInvalidSubmit), Y = e.onSubmit ? Z(e.onSubmit, e.onInvalidSubmit) : w;
|
|
2003
|
-
function
|
|
2003
|
+
function W(le) {
|
|
2004
2004
|
oi(le) && le.preventDefault(), d(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
|
|
2005
2005
|
}
|
|
2006
2006
|
function te(le, ue) {
|
|
@@ -2019,23 +2019,23 @@ J({
|
|
|
2019
2019
|
handleSubmit: te,
|
|
2020
2020
|
handleReset: d,
|
|
2021
2021
|
submitForm: w,
|
|
2022
|
-
setErrors:
|
|
2023
|
-
setFieldError:
|
|
2022
|
+
setErrors: p,
|
|
2023
|
+
setFieldError: L,
|
|
2024
2024
|
setFieldValue: z,
|
|
2025
|
-
setValues:
|
|
2026
|
-
setFieldTouched:
|
|
2025
|
+
setValues: f,
|
|
2026
|
+
setFieldTouched: D,
|
|
2027
2027
|
setTouched: G,
|
|
2028
|
-
resetForm:
|
|
2028
|
+
resetForm: v
|
|
2029
2029
|
};
|
|
2030
2030
|
}
|
|
2031
2031
|
return t.expose({
|
|
2032
|
-
setFieldError:
|
|
2033
|
-
setErrors:
|
|
2032
|
+
setFieldError: L,
|
|
2033
|
+
setErrors: p,
|
|
2034
2034
|
setFieldValue: z,
|
|
2035
|
-
setValues:
|
|
2036
|
-
setFieldTouched:
|
|
2035
|
+
setValues: f,
|
|
2036
|
+
setFieldTouched: D,
|
|
2037
2037
|
setTouched: G,
|
|
2038
|
-
resetForm:
|
|
2038
|
+
resetForm: v,
|
|
2039
2039
|
validate: N,
|
|
2040
2040
|
validateField: I
|
|
2041
2041
|
}), function() {
|
|
@@ -2045,7 +2045,7 @@ J({
|
|
|
2045
2045
|
const ge = e.as === "form" ? {
|
|
2046
2046
|
novalidate: !0
|
|
2047
2047
|
} : {};
|
|
2048
|
-
return gt(ue, Object.assign(Object.assign(Object.assign({}, ge), t.attrs), { onSubmit: Y, onReset:
|
|
2048
|
+
return gt(ue, Object.assign(Object.assign(Object.assign({}, ge), t.attrs), { onSubmit: Y, onReset: W }), ce);
|
|
2049
2049
|
};
|
|
2050
2050
|
}
|
|
2051
2051
|
});
|
|
@@ -2066,33 +2066,33 @@ function Xl(e) {
|
|
|
2066
2066
|
return Tt("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"), l;
|
|
2067
2067
|
if (!u(e))
|
|
2068
2068
|
return Tt("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"), l;
|
|
2069
|
-
const a = t.fieldArrays.find((
|
|
2069
|
+
const a = t.fieldArrays.find((f) => u(f.path) === u(e));
|
|
2070
2070
|
if (a)
|
|
2071
2071
|
return a;
|
|
2072
2072
|
let s = 0;
|
|
2073
2073
|
function o() {
|
|
2074
|
-
const
|
|
2075
|
-
i.value =
|
|
2074
|
+
const f = oe(t == null ? void 0 : t.values, u(e), []) || [];
|
|
2075
|
+
i.value = f.map(c), r();
|
|
2076
2076
|
}
|
|
2077
2077
|
o();
|
|
2078
2078
|
function r() {
|
|
2079
|
-
const
|
|
2080
|
-
for (let
|
|
2081
|
-
const G = i.value[
|
|
2082
|
-
G.isFirst =
|
|
2079
|
+
const f = i.value.length;
|
|
2080
|
+
for (let D = 0; D < f; D++) {
|
|
2081
|
+
const G = i.value[D];
|
|
2082
|
+
G.isFirst = D === 0, G.isLast = D === f - 1;
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
|
-
function c(
|
|
2086
|
-
const
|
|
2085
|
+
function c(f) {
|
|
2086
|
+
const D = s++;
|
|
2087
2087
|
return {
|
|
2088
|
-
key:
|
|
2088
|
+
key: D,
|
|
2089
2089
|
value: Ml({
|
|
2090
2090
|
get() {
|
|
2091
|
-
const w = oe(t == null ? void 0 : t.values, u(e), []) || [], Y = i.value.findIndex((
|
|
2092
|
-
return Y === -1 ?
|
|
2091
|
+
const w = oe(t == null ? void 0 : t.values, u(e), []) || [], Y = i.value.findIndex((W) => W.key === D);
|
|
2092
|
+
return Y === -1 ? f : w[Y];
|
|
2093
2093
|
},
|
|
2094
2094
|
set(w) {
|
|
2095
|
-
const Y = i.value.findIndex((
|
|
2095
|
+
const Y = i.value.findIndex((W) => W.key === D);
|
|
2096
2096
|
if (Y === -1) {
|
|
2097
2097
|
Tt("Attempting to update a non-existent array item");
|
|
2098
2098
|
return;
|
|
@@ -2104,59 +2104,59 @@ function Xl(e) {
|
|
|
2104
2104
|
isLast: !1
|
|
2105
2105
|
};
|
|
2106
2106
|
}
|
|
2107
|
-
function M(
|
|
2108
|
-
const
|
|
2107
|
+
function M(f) {
|
|
2108
|
+
const D = u(e), G = oe(t == null ? void 0 : t.values, D);
|
|
2109
2109
|
if (!G || !Array.isArray(G))
|
|
2110
2110
|
return;
|
|
2111
2111
|
const w = [...G];
|
|
2112
|
-
w.splice(
|
|
2112
|
+
w.splice(f, 1), t == null || t.unsetInitialValue(D + `[${f}]`), t == null || t.setFieldValue(D, w), i.value.splice(f, 1), r();
|
|
2113
2113
|
}
|
|
2114
|
-
function N(
|
|
2115
|
-
const
|
|
2114
|
+
function N(f) {
|
|
2115
|
+
const D = u(e), G = oe(t == null ? void 0 : t.values, D), w = Ke(G) ? [] : G;
|
|
2116
2116
|
if (!Array.isArray(w))
|
|
2117
2117
|
return;
|
|
2118
2118
|
const Y = [...w];
|
|
2119
|
-
Y.push(
|
|
2119
|
+
Y.push(f), t == null || t.stageInitialValue(D + `[${Y.length - 1}]`, f), t == null || t.setFieldValue(D, Y), i.value.push(c(f)), r();
|
|
2120
2120
|
}
|
|
2121
|
-
function I(
|
|
2121
|
+
function I(f, D) {
|
|
2122
2122
|
const G = u(e), w = oe(t == null ? void 0 : t.values, G);
|
|
2123
|
-
if (!Array.isArray(w) || !(
|
|
2123
|
+
if (!Array.isArray(w) || !(f in w) || !(D in w))
|
|
2124
2124
|
return;
|
|
2125
|
-
const Y = [...w],
|
|
2126
|
-
Y[
|
|
2127
|
-
const $ =
|
|
2128
|
-
|
|
2125
|
+
const Y = [...w], W = [...i.value], te = Y[f];
|
|
2126
|
+
Y[f] = Y[D], Y[D] = te;
|
|
2127
|
+
const $ = W[f];
|
|
2128
|
+
W[f] = W[D], W[D] = $, t == null || t.setFieldValue(G, Y), i.value = W, r();
|
|
2129
2129
|
}
|
|
2130
|
-
function d(
|
|
2130
|
+
function d(f, D) {
|
|
2131
2131
|
const G = u(e), w = oe(t == null ? void 0 : t.values, G);
|
|
2132
|
-
if (!Array.isArray(w) || w.length <
|
|
2132
|
+
if (!Array.isArray(w) || w.length < f)
|
|
2133
2133
|
return;
|
|
2134
|
-
const Y = [...w],
|
|
2135
|
-
Y.splice(
|
|
2134
|
+
const Y = [...w], W = [...i.value];
|
|
2135
|
+
Y.splice(f, 0, D), W.splice(f, 0, c(D)), t == null || t.setFieldValue(G, Y), i.value = W, r();
|
|
2136
2136
|
}
|
|
2137
|
-
function
|
|
2138
|
-
const
|
|
2139
|
-
t == null || t.setFieldValue(
|
|
2137
|
+
function v(f) {
|
|
2138
|
+
const D = u(e);
|
|
2139
|
+
t == null || t.setFieldValue(D, f), o();
|
|
2140
2140
|
}
|
|
2141
|
-
function Z(
|
|
2141
|
+
function Z(f, D) {
|
|
2142
2142
|
const G = u(e), w = oe(t == null ? void 0 : t.values, G);
|
|
2143
|
-
!Array.isArray(w) || w.length - 1 <
|
|
2143
|
+
!Array.isArray(w) || w.length - 1 < f || (t == null || t.setFieldValue(`${G}[${f}]`, D), t == null || t.validate({ mode: "validated-only" }));
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2146
|
-
const
|
|
2145
|
+
function p(f) {
|
|
2146
|
+
const D = u(e), G = oe(t == null ? void 0 : t.values, D), w = Ke(G) ? [] : G;
|
|
2147
2147
|
if (!Array.isArray(w))
|
|
2148
2148
|
return;
|
|
2149
|
-
const Y = [
|
|
2150
|
-
t == null || t.stageInitialValue(
|
|
2149
|
+
const Y = [f, ...w];
|
|
2150
|
+
t == null || t.stageInitialValue(D + `[${Y.length - 1}]`, f), t == null || t.setFieldValue(D, Y), i.value.unshift(c(f)), r();
|
|
2151
2151
|
}
|
|
2152
|
-
function
|
|
2152
|
+
function L(f, D) {
|
|
2153
2153
|
const G = u(e), w = oe(t == null ? void 0 : t.values, G), Y = Ke(w) ? [] : [...w];
|
|
2154
|
-
if (!Array.isArray(w) || !(
|
|
2154
|
+
if (!Array.isArray(w) || !(f in w) || !(D in w))
|
|
2155
2155
|
return;
|
|
2156
|
-
const
|
|
2157
|
-
|
|
2158
|
-
const $ = Y[
|
|
2159
|
-
Y.splice(
|
|
2156
|
+
const W = [...i.value], te = W[f];
|
|
2157
|
+
W.splice(f, 1), W.splice(D, 0, te);
|
|
2158
|
+
const $ = Y[f];
|
|
2159
|
+
Y.splice(f, 1), Y.splice(D, 0, $), t == null || t.setFieldValue(G, Y), i.value = W, r();
|
|
2160
2160
|
}
|
|
2161
2161
|
const z = {
|
|
2162
2162
|
fields: i,
|
|
@@ -2165,13 +2165,13 @@ function Xl(e) {
|
|
|
2165
2165
|
swap: I,
|
|
2166
2166
|
insert: d,
|
|
2167
2167
|
update: Z,
|
|
2168
|
-
replace:
|
|
2169
|
-
prepend:
|
|
2170
|
-
move:
|
|
2168
|
+
replace: v,
|
|
2169
|
+
prepend: p,
|
|
2170
|
+
move: L
|
|
2171
2171
|
};
|
|
2172
2172
|
return t.fieldArrays.push(Object.assign({ path: e, reset: o }, z)), ki(() => {
|
|
2173
|
-
const
|
|
2174
|
-
|
|
2173
|
+
const f = t.fieldArrays.findIndex((D) => u(D.path) === u(e));
|
|
2174
|
+
f >= 0 && t.fieldArrays.splice(f, 1);
|
|
2175
2175
|
}), z;
|
|
2176
2176
|
}
|
|
2177
2177
|
J({
|
|
@@ -2258,7 +2258,7 @@ const Rl = {
|
|
|
2258
2258
|
viewBox: "0 0 24 24",
|
|
2259
2259
|
width: "1em",
|
|
2260
2260
|
height: "1em"
|
|
2261
|
-
}, Jl = /* @__PURE__ */
|
|
2261
|
+
}, Jl = /* @__PURE__ */ b("path", {
|
|
2262
2262
|
fill: "currentColor",
|
|
2263
2263
|
d: "m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"
|
|
2264
2264
|
}, null, -1), ql = [
|
|
@@ -2320,21 +2320,21 @@ const rn = { name: "material-symbols-done", render: _l }, Kl = ["id", "data-test
|
|
|
2320
2320
|
return (I, d) => (g(), y("div", {
|
|
2321
2321
|
id: `input-text-${e.id}`,
|
|
2322
2322
|
"data-testid": `input-text-${e.id}`,
|
|
2323
|
-
class:
|
|
2323
|
+
class: B([[`${I.$props.class}`, { "-disabled": e.disabled }], "sol-input-text-core"])
|
|
2324
2324
|
}, [
|
|
2325
2325
|
e.label ? (g(), y("label", {
|
|
2326
2326
|
key: 0,
|
|
2327
2327
|
for: `input-text-input-${e.id}`,
|
|
2328
2328
|
"data-testid": `input-text-label-${e.id}`,
|
|
2329
|
-
class:
|
|
2329
|
+
class: B(["label", `-${e.size}`]),
|
|
2330
2330
|
"data-required": e.required
|
|
2331
|
-
},
|
|
2332
|
-
|
|
2331
|
+
}, O(e.label), 11, ea)) : F("", !0),
|
|
2332
|
+
b("div", ta, [
|
|
2333
2333
|
_(Qi, Be(I.$attrs, {
|
|
2334
2334
|
id: `text-input-${e.id}`,
|
|
2335
2335
|
modelValue: u(s),
|
|
2336
2336
|
"onUpdate:modelValue": [
|
|
2337
|
-
d[0] || (d[0] = (
|
|
2337
|
+
d[0] || (d[0] = (v) => Ue(s) ? s.value = v : null),
|
|
2338
2338
|
N
|
|
2339
2339
|
],
|
|
2340
2340
|
size: e.size,
|
|
@@ -2350,27 +2350,27 @@ const rn = { name: "material-symbols-done", render: _l }, Kl = ["id", "data-test
|
|
|
2350
2350
|
}), null, 16, ["id", "modelValue", "size", "name", "mask", "placeholder", "data-required", "has-feedback-icon", "error", "disabled", "aria-invalid", "aria-describedby"]),
|
|
2351
2351
|
e.isLoading ? (g(), ee(Wi, {
|
|
2352
2352
|
key: 0,
|
|
2353
|
-
class:
|
|
2353
|
+
class: B(["icon-position", `-${e.size}`]),
|
|
2354
2354
|
title: "carregando",
|
|
2355
2355
|
"aria-busy": e.isSuccess,
|
|
2356
2356
|
size: e.size
|
|
2357
2357
|
}, null, 8, ["aria-busy", "class", "size"])) : (g(), y("div", {
|
|
2358
2358
|
key: 1,
|
|
2359
|
-
class:
|
|
2359
|
+
class: B(["icon-position", `-${e.size}`])
|
|
2360
2360
|
}, [
|
|
2361
2361
|
e.isSuccess ? (g(), ee(u(rn), {
|
|
2362
2362
|
key: 0,
|
|
2363
2363
|
"aria-hidden": "true",
|
|
2364
2364
|
class: "text-feedback-positive-pure"
|
|
2365
|
-
})) :
|
|
2365
|
+
})) : C(I.$slots, "icon", { key: 1 })
|
|
2366
2366
|
], 2))
|
|
2367
2367
|
]),
|
|
2368
2368
|
u(r) ? (g(), y("span", {
|
|
2369
2369
|
key: 1,
|
|
2370
2370
|
id: `input-text-describe-${e.id}`,
|
|
2371
2371
|
"data-testid": `input-text-describe-${e.id}`,
|
|
2372
|
-
class:
|
|
2373
|
-
},
|
|
2372
|
+
class: B(["message", `-${u(M).type}`])
|
|
2373
|
+
}, O(u(M).text), 11, ia)) : F("", !0)
|
|
2374
2374
|
], 10, Kl));
|
|
2375
2375
|
}
|
|
2376
2376
|
});
|
|
@@ -2378,15 +2378,15 @@ const la = {
|
|
|
2378
2378
|
viewBox: "0 0 24 24",
|
|
2379
2379
|
width: "1em",
|
|
2380
2380
|
height: "1em"
|
|
2381
|
-
}, aa = /* @__PURE__ */
|
|
2381
|
+
}, aa = /* @__PURE__ */ b("g", {
|
|
2382
2382
|
fill: "none",
|
|
2383
2383
|
stroke: "currentColor",
|
|
2384
2384
|
"stroke-linecap": "round",
|
|
2385
2385
|
"stroke-linejoin": "round",
|
|
2386
2386
|
"stroke-width": "1.5"
|
|
2387
2387
|
}, [
|
|
2388
|
-
/* @__PURE__ */
|
|
2389
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ b("path", { d: "M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z" }),
|
|
2389
|
+
/* @__PURE__ */ b("path", { d: "M21 12c-1.889 2.991-5.282 6-9 6s-7.111-3.009-9-6c2.299-2.842 4.992-6 9-6s6.701 3.158 9 6Z" })
|
|
2390
2390
|
], -1), sa = [
|
|
2391
2391
|
aa
|
|
2392
2392
|
];
|
|
@@ -2397,15 +2397,15 @@ const ua = { name: "iconoir-eye-empty", render: oa }, ra = {
|
|
|
2397
2397
|
viewBox: "0 0 24 24",
|
|
2398
2398
|
width: "1em",
|
|
2399
2399
|
height: "1em"
|
|
2400
|
-
}, ca = /* @__PURE__ */
|
|
2400
|
+
}, ca = /* @__PURE__ */ b("g", {
|
|
2401
2401
|
fill: "none",
|
|
2402
2402
|
stroke: "currentColor",
|
|
2403
2403
|
"stroke-linecap": "round",
|
|
2404
2404
|
"stroke-linejoin": "round",
|
|
2405
2405
|
"stroke-width": "1.5"
|
|
2406
2406
|
}, [
|
|
2407
|
-
/* @__PURE__ */
|
|
2408
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ b("path", { d: "m3 3l18 18M10.5 10.677a2 2 0 0 0 2.823 2.823" }),
|
|
2408
|
+
/* @__PURE__ */ b("path", { d: "M7.362 7.561C5.68 8.74 4.279 10.42 3 12c1.889 2.991 5.282 6 9 6c1.55 0 3.043-.523 4.395-1.35M12 6c4.008 0 6.701 3.158 9 6a15.66 15.66 0 0 1-1.078 1.5" })
|
|
2409
2409
|
], -1), da = [
|
|
2410
2410
|
ca
|
|
2411
2411
|
];
|
|
@@ -2451,7 +2451,7 @@ const Ma = { name: "iconoir-eye-off", render: Ia }, ma = ["aria-label"], Bt = /*
|
|
|
2451
2451
|
"onUpdate:modelValue": a[1] || (a[1] = (s) => t("update:modelValue", s))
|
|
2452
2452
|
}, {
|
|
2453
2453
|
icon: q(() => [
|
|
2454
|
-
|
|
2454
|
+
b("button", {
|
|
2455
2455
|
type: "button",
|
|
2456
2456
|
"data-testid": "toggle-type-password",
|
|
2457
2457
|
"aria-label": i.value ? "Hide password" : "Show password",
|
|
@@ -2522,7 +2522,7 @@ const ga = ["id", "data-testid"], Na = ["id", "data-testid", "for", "data-requir
|
|
|
2522
2522
|
return g(), y("div", {
|
|
2523
2523
|
id: `input-textarea-${e.id}`,
|
|
2524
2524
|
"data-testid": `input-textarea-${e.id}`,
|
|
2525
|
-
class:
|
|
2525
|
+
class: B([[`${(I = M.$props.class) != null ? I : ""}`, `-${e.size}`], "sol-textarea-core"])
|
|
2526
2526
|
}, [
|
|
2527
2527
|
e.label ? (g(), y("label", {
|
|
2528
2528
|
key: 0,
|
|
@@ -2532,10 +2532,10 @@ const ga = ["id", "data-testid"], Na = ["id", "data-testid", "for", "data-requir
|
|
|
2532
2532
|
class: "label",
|
|
2533
2533
|
"data-required": e.required
|
|
2534
2534
|
}, [
|
|
2535
|
-
|
|
2535
|
+
b("span", null, O(e.label), 1)
|
|
2536
2536
|
], 8, Na)) : F("", !0),
|
|
2537
|
-
re(" " +
|
|
2538
|
-
Ce(
|
|
2537
|
+
re(" " + O(u(l)) + " ", 1),
|
|
2538
|
+
Ce(b("textarea", Be(M.$attrs, {
|
|
2539
2539
|
id: `input-textarea-input-${e.id}`,
|
|
2540
2540
|
"onUpdate:modelValue": N[0] || (N[0] = (d) => Ue(l) ? l.value = d : null),
|
|
2541
2541
|
"data-testid": `input-textarea-input-${e.id}`,
|
|
@@ -2554,8 +2554,8 @@ const ga = ["id", "data-testid"], Na = ["id", "data-testid", "for", "data-requir
|
|
|
2554
2554
|
key: 1,
|
|
2555
2555
|
id: `input-textarea-describe-${e.id}`,
|
|
2556
2556
|
"data-testid": `input-textarea-describe-${e.id}`,
|
|
2557
|
-
class:
|
|
2558
|
-
},
|
|
2557
|
+
class: B(["message", `-${u(r).type}`])
|
|
2558
|
+
}, O(u(r).text), 11, ya)) : F("", !0)
|
|
2559
2559
|
], 10, ga);
|
|
2560
2560
|
};
|
|
2561
2561
|
}
|
|
@@ -2590,9 +2590,9 @@ const va = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "
|
|
|
2590
2590
|
t("change", (l = i.value) != null ? l : !!i.checked), t("update:checked", !i.checked);
|
|
2591
2591
|
}
|
|
2592
2592
|
return (l, a) => (g(), y("div", {
|
|
2593
|
-
class:
|
|
2593
|
+
class: B(["sol-switch-core", [l.$props.class, `-text-${e.textDirection}`, { "-stretch-label": e.stretchLabel }]])
|
|
2594
2594
|
}, [
|
|
2595
|
-
|
|
2595
|
+
b("input", Be(l.$attrs, {
|
|
2596
2596
|
id: `switch-${e.name}-${e.id}`,
|
|
2597
2597
|
type: "checkbox",
|
|
2598
2598
|
class: "switch",
|
|
@@ -2605,12 +2605,12 @@ const va = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "
|
|
|
2605
2605
|
name: e.name,
|
|
2606
2606
|
onChange: n
|
|
2607
2607
|
}), null, 16, va),
|
|
2608
|
-
|
|
2608
|
+
b("label", {
|
|
2609
2609
|
id: `switch-label-${e.name}-${e.id}`,
|
|
2610
|
-
class:
|
|
2610
|
+
class: B(["label", `-${e.textDirection} ${e.hideLabel ? "sr-only" : ""}`]),
|
|
2611
2611
|
for: `switch-${e.name}-${e.id}`,
|
|
2612
2612
|
"data-testid": `switch-label-${e.name}-${e.id}`
|
|
2613
|
-
},
|
|
2613
|
+
}, O(e.label), 11, fa)
|
|
2614
2614
|
], 2));
|
|
2615
2615
|
}
|
|
2616
2616
|
});
|
|
@@ -2634,9 +2634,9 @@ const ba = ["id", "data-testid", "checked", "value", "name"], ha = ["for"], Da =
|
|
|
2634
2634
|
emits: ["change"],
|
|
2635
2635
|
setup(e, { emit: t }) {
|
|
2636
2636
|
return (i, n) => (g(), y("div", {
|
|
2637
|
-
class:
|
|
2637
|
+
class: B(["sol-radio-core", [i.$props.class, { "-hide-label": e.hideLabel }]])
|
|
2638
2638
|
}, [
|
|
2639
|
-
|
|
2639
|
+
b("input", Be(i.$attrs, {
|
|
2640
2640
|
id: `radio-${e.name}-${e.id}`,
|
|
2641
2641
|
type: "radio",
|
|
2642
2642
|
class: "radio",
|
|
@@ -2646,10 +2646,10 @@ const ba = ["id", "data-testid", "checked", "value", "name"], ha = ["for"], Da =
|
|
|
2646
2646
|
name: e.name,
|
|
2647
2647
|
onChange: n[0] || (n[0] = (l) => t("change", e.value))
|
|
2648
2648
|
}), null, 16, ba),
|
|
2649
|
-
|
|
2649
|
+
b("label", {
|
|
2650
2650
|
class: "label",
|
|
2651
2651
|
for: `radio-${e.name}-${e.id}`
|
|
2652
|
-
},
|
|
2652
|
+
}, O(e.label), 9, ha)
|
|
2653
2653
|
], 2));
|
|
2654
2654
|
}
|
|
2655
2655
|
});
|
|
@@ -2702,25 +2702,25 @@ const Sa = ["id", "data-testid", "aria-labelledby"], Aa = ["id", "data-testid"],
|
|
|
2702
2702
|
"aria-labelledby": `radio-group-title-${e.id}`,
|
|
2703
2703
|
class: "sol-radio-group-core"
|
|
2704
2704
|
}, [
|
|
2705
|
-
|
|
2705
|
+
C(N.$slots, "title", {
|
|
2706
2706
|
id: `radio-group-title-${e.id}`
|
|
2707
2707
|
}, () => [
|
|
2708
|
-
|
|
2708
|
+
b("legend", {
|
|
2709
2709
|
id: `radio-group-title-${e.id}`,
|
|
2710
|
-
class:
|
|
2710
|
+
class: B(["title", { "sr-only": e.hideTitle }]),
|
|
2711
2711
|
"data-testid": `radio-group-title-${e.id}`
|
|
2712
|
-
},
|
|
2712
|
+
}, O(e.title), 11, Aa)
|
|
2713
2713
|
]),
|
|
2714
|
-
|
|
2715
|
-
class:
|
|
2714
|
+
b("ul", {
|
|
2715
|
+
class: B(["container-radios", { "flex-col": e.direction === "column" }])
|
|
2716
2716
|
}, [
|
|
2717
|
-
|
|
2717
|
+
C(N.$slots, "default", {
|
|
2718
2718
|
radios: e.radios,
|
|
2719
2719
|
direction: e.direction
|
|
2720
2720
|
}, () => [
|
|
2721
|
-
(g(!0), y(Ae, null, he(e.radios, (d,
|
|
2721
|
+
(g(!0), y(Ae, null, he(e.radios, (d, v) => {
|
|
2722
2722
|
var Z;
|
|
2723
|
-
return g(), y("li", { key:
|
|
2723
|
+
return g(), y("li", { key: v }, [
|
|
2724
2724
|
_(nt, Be(N.$attrs, {
|
|
2725
2725
|
id: (Z = d == null ? void 0 : d.id) != null ? Z : `${d.value}`,
|
|
2726
2726
|
class: ["radio", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
|
|
@@ -2731,7 +2731,7 @@ const Sa = ["id", "data-testid", "aria-labelledby"], Aa = ["id", "data-testid"],
|
|
|
2731
2731
|
error: !!u(a),
|
|
2732
2732
|
"aria-invalid": !!u(a),
|
|
2733
2733
|
"aria-describedby": u(o),
|
|
2734
|
-
onChange: (
|
|
2734
|
+
onChange: (p) => M(d)
|
|
2735
2735
|
}), null, 16, ["id", "class", "name", "value", "label", "checked", "error", "aria-invalid", "aria-describedby", "onChange"])
|
|
2736
2736
|
]);
|
|
2737
2737
|
}), 128))
|
|
@@ -2741,8 +2741,8 @@ const Sa = ["id", "data-testid", "aria-labelledby"], Aa = ["id", "data-testid"],
|
|
|
2741
2741
|
key: 0,
|
|
2742
2742
|
id: `radios-describe-${e.id}`,
|
|
2743
2743
|
"data-testid": `radios-describe-${e.id}`,
|
|
2744
|
-
class:
|
|
2745
|
-
},
|
|
2744
|
+
class: B(["message", `-${u(r).type}`])
|
|
2745
|
+
}, O(u(r).text), 11, xa)) : F("", !0)
|
|
2746
2746
|
], 8, Sa));
|
|
2747
2747
|
}
|
|
2748
2748
|
});
|
|
@@ -2770,9 +2770,9 @@ const wa = ["id", "indeterminate", "data-testid", "checked", "value", "name"], Z
|
|
|
2770
2770
|
emits: ["change"],
|
|
2771
2771
|
setup(e, { emit: t }) {
|
|
2772
2772
|
return (i, n) => (g(), y("div", {
|
|
2773
|
-
class:
|
|
2773
|
+
class: B(["sol-checkbox-core", [i.$props.class, { "-hide-label": e.hideLabel }]])
|
|
2774
2774
|
}, [
|
|
2775
|
-
|
|
2775
|
+
b("input", Be(i.$attrs, {
|
|
2776
2776
|
id: `checkbox-${e.name}-${e.id}`,
|
|
2777
2777
|
type: "checkbox",
|
|
2778
2778
|
indeterminate: e.indeterminate,
|
|
@@ -2783,10 +2783,10 @@ const wa = ["id", "indeterminate", "data-testid", "checked", "value", "name"], Z
|
|
|
2783
2783
|
name: e.name,
|
|
2784
2784
|
onChange: n[0] || (n[0] = (l) => t("change", e.value))
|
|
2785
2785
|
}), null, 16, wa),
|
|
2786
|
-
|
|
2786
|
+
b("label", {
|
|
2787
2787
|
class: "label",
|
|
2788
2788
|
for: `checkbox-${e.name}-${e.id}`
|
|
2789
|
-
},
|
|
2789
|
+
}, O(e.label), 9, Za)
|
|
2790
2790
|
], 2));
|
|
2791
2791
|
}
|
|
2792
2792
|
});
|
|
@@ -2834,9 +2834,9 @@ const za = ["id", "data-testid", "aria-labelledby"], La = ["id", "data-testid"],
|
|
|
2834
2834
|
return Array.isArray(l.value) ? [...l.value, I] : [I];
|
|
2835
2835
|
}
|
|
2836
2836
|
function N(I) {
|
|
2837
|
-
var
|
|
2837
|
+
var v;
|
|
2838
2838
|
t("change", I.value);
|
|
2839
|
-
const d = c(I.value) ? (
|
|
2839
|
+
const d = c(I.value) ? (v = l.value) == null ? void 0 : v.filter((Z) => Z !== I.value) : M(I.value);
|
|
2840
2840
|
l.value = d, t("update:modelValue", d);
|
|
2841
2841
|
}
|
|
2842
2842
|
return (I, d) => (g(), y("fieldset", {
|
|
@@ -2845,36 +2845,36 @@ const za = ["id", "data-testid", "aria-labelledby"], La = ["id", "data-testid"],
|
|
|
2845
2845
|
class: "sol-checkbox-group-core",
|
|
2846
2846
|
"aria-labelledby": `checkbox-group-title-${e.id}`
|
|
2847
2847
|
}, [
|
|
2848
|
-
|
|
2848
|
+
C(I.$slots, "title", {
|
|
2849
2849
|
id: `checkbox-group-title-${e.id}`
|
|
2850
2850
|
}, () => [
|
|
2851
|
-
|
|
2851
|
+
b("legend", {
|
|
2852
2852
|
id: `checkbox-group-title-${e.id}`,
|
|
2853
|
-
class:
|
|
2853
|
+
class: B(["title", { "sr-only": e.hideTitle }]),
|
|
2854
2854
|
"data-testid": `checkbox-group-title-${e.id}`
|
|
2855
|
-
},
|
|
2855
|
+
}, O(e.title), 11, La)
|
|
2856
2856
|
]),
|
|
2857
|
-
|
|
2858
|
-
class:
|
|
2857
|
+
b("ul", {
|
|
2858
|
+
class: B(["container-checkboxes", { "flex-col": e.direction === "column" }])
|
|
2859
2859
|
}, [
|
|
2860
|
-
|
|
2860
|
+
C(I.$slots, "default", {
|
|
2861
2861
|
checkboxes: e.checkboxes,
|
|
2862
2862
|
direction: e.direction
|
|
2863
2863
|
}, () => [
|
|
2864
|
-
(g(!0), y(Ae, null, he(e.checkboxes, (
|
|
2865
|
-
var
|
|
2864
|
+
(g(!0), y(Ae, null, he(e.checkboxes, (v, Z) => {
|
|
2865
|
+
var p;
|
|
2866
2866
|
return g(), y("li", { key: Z }, [
|
|
2867
2867
|
_(Xe, Be(I.$attrs, {
|
|
2868
|
-
id: (
|
|
2868
|
+
id: (p = v == null ? void 0 : v.id) != null ? p : `${v.value}`,
|
|
2869
2869
|
class: ["checkbox", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
|
|
2870
|
-
label:
|
|
2871
|
-
name:
|
|
2872
|
-
value:
|
|
2873
|
-
checked: c(
|
|
2870
|
+
label: v.label,
|
|
2871
|
+
name: v.name,
|
|
2872
|
+
value: v.value,
|
|
2873
|
+
checked: c(v.value),
|
|
2874
2874
|
error: !!u(a),
|
|
2875
2875
|
"aria-invalid": !!u(a),
|
|
2876
2876
|
"aria-describedby": u(o),
|
|
2877
|
-
onChange: (
|
|
2877
|
+
onChange: (L) => N(v)
|
|
2878
2878
|
}), null, 16, ["id", "class", "label", "name", "value", "checked", "error", "aria-invalid", "aria-describedby", "onChange"])
|
|
2879
2879
|
]);
|
|
2880
2880
|
}), 128))
|
|
@@ -2884,8 +2884,8 @@ const za = ["id", "data-testid", "aria-labelledby"], La = ["id", "data-testid"],
|
|
|
2884
2884
|
key: 0,
|
|
2885
2885
|
id: `checkboxes-describe-${e.id}`,
|
|
2886
2886
|
"data-testid": `checkboxes-describe-${e.id}`,
|
|
2887
|
-
class:
|
|
2888
|
-
},
|
|
2887
|
+
class: B(["message", `-${u(r).type}`])
|
|
2888
|
+
}, O(u(r).text), 11, Ca)) : F("", !0)
|
|
2889
2889
|
], 8, za));
|
|
2890
2890
|
}
|
|
2891
2891
|
});
|
|
@@ -2944,27 +2944,27 @@ function dn(e, t, i = {}) {
|
|
|
2944
2944
|
let r;
|
|
2945
2945
|
const c = (d) => {
|
|
2946
2946
|
n.clearTimeout(r);
|
|
2947
|
-
const
|
|
2948
|
-
!
|
|
2949
|
-
}, M = (d) => l && l.some((
|
|
2950
|
-
const Z = qe(
|
|
2947
|
+
const v = qe(e);
|
|
2948
|
+
!v || v === d.target || d.composedPath().includes(v) || !o.value || t(d);
|
|
2949
|
+
}, M = (d) => l && l.some((v) => {
|
|
2950
|
+
const Z = qe(v);
|
|
2951
2951
|
return Z && (d.target === Z || d.composedPath().includes(Z));
|
|
2952
2952
|
}), N = [
|
|
2953
2953
|
_e(n, "click", c, { passive: !0, capture: a }),
|
|
2954
2954
|
_e(n, "pointerdown", (d) => {
|
|
2955
|
-
const
|
|
2956
|
-
o.value = !!
|
|
2955
|
+
const v = qe(e);
|
|
2956
|
+
o.value = !!v && !d.composedPath().includes(v) && !M(d);
|
|
2957
2957
|
}, { passive: !0 }),
|
|
2958
2958
|
_e(n, "pointerup", (d) => {
|
|
2959
2959
|
if (d.button === 0) {
|
|
2960
|
-
const
|
|
2961
|
-
d.composedPath = () =>
|
|
2960
|
+
const v = d.composedPath();
|
|
2961
|
+
d.composedPath = () => v, r = n.setTimeout(() => c(d), 50);
|
|
2962
2962
|
}
|
|
2963
2963
|
}, { passive: !0 }),
|
|
2964
2964
|
s && _e(n, "blur", (d) => {
|
|
2965
|
-
var
|
|
2965
|
+
var v;
|
|
2966
2966
|
const Z = qe(e);
|
|
2967
|
-
((
|
|
2967
|
+
((v = document.activeElement) == null ? void 0 : v.tagName) === "IFRAME" && !(Z != null && Z.contains(document.activeElement)) && t(d);
|
|
2968
2968
|
})
|
|
2969
2969
|
].filter(Boolean);
|
|
2970
2970
|
return () => N.forEach((d) => d());
|
|
@@ -3081,11 +3081,11 @@ function At({ target: e, query: t }) {
|
|
|
3081
3081
|
genericIndex: -1
|
|
3082
3082
|
});
|
|
3083
3083
|
function n(d) {
|
|
3084
|
-
const
|
|
3084
|
+
const v = d != null ? d : i.index, Z = e == null ? void 0 : e.value;
|
|
3085
3085
|
I(), d !== void 0 && (i.index = d), setTimeout(() => {
|
|
3086
3086
|
var z;
|
|
3087
|
-
const
|
|
3088
|
-
i.id = (z =
|
|
3087
|
+
const p = Z.children[v], L = t && p.querySelector(t) ? p.querySelector(t) : p;
|
|
3088
|
+
i.id = (z = p == null ? void 0 : p.id) != null ? z : "", L == null || L.focus();
|
|
3089
3089
|
}, 0);
|
|
3090
3090
|
}
|
|
3091
3091
|
function l() {
|
|
@@ -3100,21 +3100,21 @@ function At({ target: e, query: t }) {
|
|
|
3100
3100
|
function o(d) {
|
|
3101
3101
|
n(d - 1);
|
|
3102
3102
|
}
|
|
3103
|
-
function r({ query: d, to:
|
|
3104
|
-
var
|
|
3105
|
-
const Z = i.index >= 0 ? i.index : 0,
|
|
3103
|
+
function r({ query: d, to: v }) {
|
|
3104
|
+
var D, G;
|
|
3105
|
+
const Z = i.index >= 0 ? i.index : 0, L = (e == null ? void 0 : e.value).children[Z], z = Array.isArray(d) ? d.flatMap((w) => Array.from(L.querySelectorAll(w))).filter((w) => w) : Array.from(L.querySelectorAll(d));
|
|
3106
3106
|
if (!z.length)
|
|
3107
3107
|
return;
|
|
3108
|
-
const
|
|
3109
|
-
|
|
3108
|
+
const f = i.rowIndex < z.length - 1;
|
|
3109
|
+
v === "RIGHT" && f && (i.rowIndex += 1, (D = z[i.rowIndex]) == null || D.focus()), v === "LEFT" && (i.rowIndex = i.rowIndex >= 0 ? i.rowIndex - 1 : -1, i.rowIndex < 0 ? L.focus() : (G = z[i.rowIndex]) == null || G.focus());
|
|
3110
3110
|
}
|
|
3111
|
-
function c({ query: d, to:
|
|
3112
|
-
var z,
|
|
3113
|
-
const Z = e == null ? void 0 : e.value,
|
|
3114
|
-
if (!
|
|
3111
|
+
function c({ query: d, to: v }) {
|
|
3112
|
+
var z, f;
|
|
3113
|
+
const Z = e == null ? void 0 : e.value, p = Array.isArray(d) ? d.flatMap((D) => Array.from(Z.querySelectorAll(D))).filter((D) => D) : Array.from(Z.querySelectorAll(d));
|
|
3114
|
+
if (!p.length)
|
|
3115
3115
|
return;
|
|
3116
|
-
const
|
|
3117
|
-
|
|
3116
|
+
const L = i.genericIndex < p.length - 1;
|
|
3117
|
+
v === "NEXT" && L && (i.genericIndex += 1, (z = p[i.genericIndex]) == null || z.focus()), v === "PREVIOUS" && (i.genericIndex = i.genericIndex >= 0 ? i.genericIndex - 1 : -1, i.genericIndex < 0 ? Z.focus() : (f = p[i.genericIndex]) == null || f.focus());
|
|
3118
3118
|
}
|
|
3119
3119
|
function M(d) {
|
|
3120
3120
|
return d.id ? d.id === i.id : d.index === i.index;
|
|
@@ -3142,7 +3142,7 @@ const $a = {
|
|
|
3142
3142
|
viewBox: "0 0 24 24",
|
|
3143
3143
|
width: "1em",
|
|
3144
3144
|
height: "1em"
|
|
3145
|
-
}, Qa = /* @__PURE__ */
|
|
3145
|
+
}, Qa = /* @__PURE__ */ b("path", {
|
|
3146
3146
|
fill: "currentColor",
|
|
3147
3147
|
d: "M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12L5.293 6.707a1 1 0 0 1 0-1.414z"
|
|
3148
3148
|
}, null, -1), Xa = [
|
|
@@ -3175,7 +3175,7 @@ const Ra = { name: "mi-close", render: Fa }, Ja = ["id", "data-testid", "tabinde
|
|
|
3175
3175
|
return (a, s) => (g(), y("div", {
|
|
3176
3176
|
id: `removable-chip-${e.id}`,
|
|
3177
3177
|
"data-testid": `removable-chip-${e.id}`,
|
|
3178
|
-
class:
|
|
3178
|
+
class: B(["sol-removable-chip", {
|
|
3179
3179
|
"-disabled": e.disabled,
|
|
3180
3180
|
[`-${e.size}`]: !0,
|
|
3181
3181
|
[`-${e.variant}`]: !0
|
|
@@ -3190,14 +3190,14 @@ const Ra = { name: "mi-close", render: Fa }, Ja = ["id", "data-testid", "tabinde
|
|
|
3190
3190
|
["self"]
|
|
3191
3191
|
))
|
|
3192
3192
|
}, [
|
|
3193
|
-
|
|
3193
|
+
b("span", {
|
|
3194
3194
|
id: `removable-chip-description-${e.id}`,
|
|
3195
3195
|
"z-index": "-1",
|
|
3196
3196
|
class: "description"
|
|
3197
3197
|
}, " Press Delete or Backspace to remove ", 8, qa),
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
re(
|
|
3198
|
+
b("span", _a, [
|
|
3199
|
+
C(a.$slots, "default", {}, () => [
|
|
3200
|
+
re(O(e.label), 1)
|
|
3201
3201
|
])
|
|
3202
3202
|
]),
|
|
3203
3203
|
_(u(Ra), {
|
|
@@ -3212,7 +3212,7 @@ const Ka = {
|
|
|
3212
3212
|
viewBox: "0 0 24 24",
|
|
3213
3213
|
width: "1em",
|
|
3214
3214
|
height: "1em"
|
|
3215
|
-
}, es = /* @__PURE__ */
|
|
3215
|
+
}, es = /* @__PURE__ */ b("path", {
|
|
3216
3216
|
fill: "currentColor",
|
|
3217
3217
|
d: "m19.6 21l-6.3-6.3q-.75.6-1.725.95Q10.6 16 9.5 16q-2.725 0-4.612-1.887Q3 12.225 3 9.5q0-2.725 1.888-4.613Q6.775 3 9.5 3t4.613 1.887Q16 6.775 16 9.5q0 1.1-.35 2.075q-.35.975-.95 1.725l6.3 6.3ZM9.5 14q1.875 0 3.188-1.312Q14 11.375 14 9.5q0-1.875-1.312-3.188Q11.375 5 9.5 5Q7.625 5 6.312 6.312Q5 7.625 5 9.5q0 1.875 1.312 3.188Q7.625 14 9.5 14Z"
|
|
3218
3218
|
}, null, -1), ts = [
|
|
@@ -3224,7 +3224,7 @@ function is(e, t) {
|
|
|
3224
3224
|
const ns = { name: "material-symbols-search", render: is }, ls = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], as = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], ss = { key: 1 }, os = {
|
|
3225
3225
|
key: 0,
|
|
3226
3226
|
class: "no-data"
|
|
3227
|
-
}, us = /* @__PURE__ */
|
|
3227
|
+
}, us = /* @__PURE__ */ b("p", null, "Sem resultado para essa busca", -1), rs = /* @__PURE__ */ J({
|
|
3228
3228
|
__name: "ListOption",
|
|
3229
3229
|
props: {
|
|
3230
3230
|
id: null,
|
|
@@ -3273,10 +3273,10 @@ const ns = { name: "material-symbols-search", render: is }, ls = ["id", "data-te
|
|
|
3273
3273
|
checked: e.isSelected(s),
|
|
3274
3274
|
label: `${s.name}`,
|
|
3275
3275
|
name: e.name
|
|
3276
|
-
}, null, 8, ["id", "value", "checked", "label", "name"])) : (g(), y("span", ss,
|
|
3276
|
+
}, null, 8, ["id", "value", "checked", "label", "name"])) : (g(), y("span", ss, O(s.name), 1))
|
|
3277
3277
|
], 44, as))), 128)),
|
|
3278
3278
|
e.options.length ? F("", !0) : (g(), y("li", os, [
|
|
3279
|
-
|
|
3279
|
+
C(l.$slots, "no-data", {}, () => [
|
|
3280
3280
|
_(u(ns), { class: "icon" }),
|
|
3281
3281
|
us
|
|
3282
3282
|
])
|
|
@@ -3288,7 +3288,7 @@ const cs = {
|
|
|
3288
3288
|
viewBox: "0 0 24 24",
|
|
3289
3289
|
width: "1em",
|
|
3290
3290
|
height: "1em"
|
|
3291
|
-
}, ds = /* @__PURE__ */
|
|
3291
|
+
}, ds = /* @__PURE__ */ b("path", {
|
|
3292
3292
|
fill: "currentColor",
|
|
3293
3293
|
d: "M10 4a6 6 0 1 0 0 12a6 6 0 0 0 0-12zm-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10z"
|
|
3294
3294
|
}, null, -1), Is = [
|
|
@@ -3301,7 +3301,7 @@ const ms = { name: "mi-search", render: Ms }, gs = {
|
|
|
3301
3301
|
viewBox: "0 0 24 24",
|
|
3302
3302
|
width: "1em",
|
|
3303
3303
|
height: "1em"
|
|
3304
|
-
}, Ns = /* @__PURE__ */
|
|
3304
|
+
}, Ns = /* @__PURE__ */ b("path", {
|
|
3305
3305
|
fill: "currentColor",
|
|
3306
3306
|
d: "m17 10l-5 6l-5-6h10z"
|
|
3307
3307
|
}, null, -1), js = [
|
|
@@ -3314,7 +3314,7 @@ const vs = { name: "mi-caret-down", render: ys }, fs = {
|
|
|
3314
3314
|
viewBox: "0 0 24 24",
|
|
3315
3315
|
width: "1em",
|
|
3316
3316
|
height: "1em"
|
|
3317
|
-
}, bs = /* @__PURE__ */
|
|
3317
|
+
}, bs = /* @__PURE__ */ b("path", {
|
|
3318
3318
|
fill: "currentColor",
|
|
3319
3319
|
d: "m12 13.4l-4.9 4.9q-.275.275-.7.275q-.425 0-.7-.275q-.275-.275-.275-.7q0-.425.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7q0-.425.275-.7q.275-.275.7-.275q.425 0 .7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275q.425 0 .7.275q.275.275.275.7q0 .425-.275.7L13.4 12l4.9 4.9q.275.275.275.7q0 .425-.275.7q-.275.275-.7.275q-.425 0-.7-.275Z"
|
|
3320
3320
|
}, null, -1), hs = [
|
|
@@ -3326,7 +3326,7 @@ function Ds(e, t) {
|
|
|
3326
3326
|
const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-testid"], xs = ["id", "data-testid", "data-required"], ws = {
|
|
3327
3327
|
key: 0,
|
|
3328
3328
|
class: "container-tags"
|
|
3329
|
-
}, Zs = ["data-testid"], Ts = ["id", "data-testid"], zs = { class: "select-options-container" }, Ls = /* @__PURE__ */
|
|
3329
|
+
}, Zs = ["data-testid"], Ts = ["id", "data-testid"], zs = { class: "select-options-container" }, Ls = /* @__PURE__ */ b("hr", { class: "text-neutral-high-medium" }, null, -1), ft = /* @__PURE__ */ J({
|
|
3330
3330
|
__name: "Select",
|
|
3331
3331
|
props: {
|
|
3332
3332
|
id: null,
|
|
@@ -3356,16 +3356,16 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3356
3356
|
setup(e, { emit: t }) {
|
|
3357
3357
|
const i = e, n = R(), l = R(!1), a = R(""), s = x(
|
|
3358
3358
|
() => {
|
|
3359
|
-
var
|
|
3360
|
-
return i.fetchOnSearch ? i.options : (
|
|
3359
|
+
var h;
|
|
3360
|
+
return i.fetchOnSearch ? i.options : (h = i.options) == null ? void 0 : h.filter((S) => new RegExp(a.value, "gi").test(`${S.name}`));
|
|
3361
3361
|
}
|
|
3362
3362
|
);
|
|
3363
3363
|
dn(n, () => {
|
|
3364
3364
|
l.value && d();
|
|
3365
3365
|
});
|
|
3366
3366
|
const o = x(() => {
|
|
3367
|
-
var
|
|
3368
|
-
return (
|
|
3367
|
+
var h;
|
|
3368
|
+
return (h = i.name) != null ? h : "";
|
|
3369
3369
|
}), { value: r, errorMessage: c } = rt(o.value, {
|
|
3370
3370
|
error: x(() => i.error),
|
|
3371
3371
|
rules: i.rules,
|
|
@@ -3373,7 +3373,7 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3373
3373
|
useFieldParent: i.useField
|
|
3374
3374
|
}, {
|
|
3375
3375
|
propKey: "selected",
|
|
3376
|
-
emit: (
|
|
3376
|
+
emit: (h) => t("update:selected", h)
|
|
3377
3377
|
});
|
|
3378
3378
|
function M() {
|
|
3379
3379
|
i.disabled || (l.value ? d() : I());
|
|
@@ -3385,86 +3385,86 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3385
3385
|
function d() {
|
|
3386
3386
|
le(), t("closeDropdown");
|
|
3387
3387
|
}
|
|
3388
|
-
function
|
|
3388
|
+
function v(h) {
|
|
3389
3389
|
if (Array.isArray(r.value)) {
|
|
3390
|
-
const
|
|
3391
|
-
({ value: P }) => P ===
|
|
3390
|
+
const S = r.value.findIndex(
|
|
3391
|
+
({ value: P }) => P === h.value
|
|
3392
3392
|
);
|
|
3393
|
-
return
|
|
3393
|
+
return S === -1 ? [...r.value, h] : r.value.filter((P, U) => U !== S);
|
|
3394
3394
|
}
|
|
3395
|
-
return [
|
|
3395
|
+
return [h];
|
|
3396
3396
|
}
|
|
3397
|
-
function Z(
|
|
3398
|
-
const
|
|
3399
|
-
r.value =
|
|
3397
|
+
function Z(h) {
|
|
3398
|
+
const S = i.multiple ? v(h) : h;
|
|
3399
|
+
r.value = S, i.closeOnSelect && !i.multiple && d();
|
|
3400
3400
|
}
|
|
3401
|
-
function
|
|
3402
|
-
var
|
|
3403
|
-
return Array.isArray(r.value) ? r.value.some(({ value: P }) => P ===
|
|
3401
|
+
function p(h) {
|
|
3402
|
+
var S;
|
|
3403
|
+
return Array.isArray(r.value) ? r.value.some(({ value: P }) => P === h.value) : h.value === ((S = r == null ? void 0 : r.value) == null ? void 0 : S.value);
|
|
3404
3404
|
}
|
|
3405
|
-
const
|
|
3406
|
-
function
|
|
3407
|
-
var
|
|
3408
|
-
i.searchable && (te(), (
|
|
3405
|
+
const L = R(), z = R();
|
|
3406
|
+
function f() {
|
|
3407
|
+
var h;
|
|
3408
|
+
i.searchable && (te(), (h = L.value) == null || h.focus());
|
|
3409
3409
|
}
|
|
3410
3410
|
const {
|
|
3411
|
-
elementFocus:
|
|
3411
|
+
elementFocus: D,
|
|
3412
3412
|
focusOnFirstItem: G,
|
|
3413
3413
|
focusOnLastItem: w,
|
|
3414
3414
|
focusOnNextItem: Y,
|
|
3415
|
-
focusOnPreviousItem:
|
|
3415
|
+
focusOnPreviousItem: W,
|
|
3416
3416
|
resetStateFocus: te
|
|
3417
3417
|
} = At({ target: z }), { navigate: $ } = Oe({
|
|
3418
3418
|
Home: G,
|
|
3419
3419
|
End: () => w(i.options.length),
|
|
3420
|
-
ArrowUp:
|
|
3420
|
+
ArrowUp: W,
|
|
3421
3421
|
ArrowDown: () => {
|
|
3422
3422
|
!l.value && I(), Y(i.options.length);
|
|
3423
3423
|
},
|
|
3424
3424
|
Escape: d
|
|
3425
3425
|
}, {
|
|
3426
|
-
fallback:
|
|
3426
|
+
fallback: f,
|
|
3427
3427
|
exclude: ["Enter", "NumpadEnter", "Space"]
|
|
3428
3428
|
});
|
|
3429
3429
|
function le() {
|
|
3430
3430
|
l.value = !1, a.value = "", te();
|
|
3431
3431
|
}
|
|
3432
|
-
function ue(
|
|
3433
|
-
return (
|
|
3432
|
+
function ue(h) {
|
|
3433
|
+
return (S) => h === "search" ? L.value = S == null ? void 0 : S.input : z.value = S == null ? void 0 : S.list;
|
|
3434
3434
|
}
|
|
3435
3435
|
function ce() {
|
|
3436
|
-
var
|
|
3437
|
-
const
|
|
3438
|
-
return (
|
|
3436
|
+
var S;
|
|
3437
|
+
const h = r.value;
|
|
3438
|
+
return (S = h == null ? void 0 : h.name) != null ? S : i.placeholder;
|
|
3439
3439
|
}
|
|
3440
3440
|
const ge = x(
|
|
3441
3441
|
() => !!(c != null && c.value) || !!i.helperText
|
|
3442
3442
|
), ye = x(
|
|
3443
3443
|
() => ge.value ? `input-text-describe-${i.id}` : void 0
|
|
3444
3444
|
), ae = x(() => {
|
|
3445
|
-
var
|
|
3446
|
-
return (
|
|
3445
|
+
var h;
|
|
3446
|
+
return (h = c == null ? void 0 : c.value) != null && h.length ? { text: c == null ? void 0 : c.value, type: "error" } : { text: i.helperText, type: "helper" };
|
|
3447
3447
|
});
|
|
3448
3448
|
function de() {
|
|
3449
3449
|
if (n.value) {
|
|
3450
|
-
const
|
|
3451
|
-
N.value =
|
|
3450
|
+
const h = n.value.getBoundingClientRect(), S = window.outerHeight - h.bottom > 300 ? "bottom" : "top";
|
|
3451
|
+
N.value = S;
|
|
3452
3452
|
}
|
|
3453
3453
|
}
|
|
3454
3454
|
function T() {
|
|
3455
3455
|
r.value = [], d();
|
|
3456
3456
|
}
|
|
3457
|
-
return (
|
|
3458
|
-
var
|
|
3457
|
+
return (h, S) => {
|
|
3458
|
+
var U;
|
|
3459
3459
|
const P = Sn("Button");
|
|
3460
3460
|
return g(), y("div", {
|
|
3461
3461
|
ref_key: "el",
|
|
3462
3462
|
ref: n,
|
|
3463
|
-
class:
|
|
3463
|
+
class: B(["sol-select-core", [`-${e.size} -${N.value}`, { "-selected-multiple": e.multiple && Array.isArray(u(r)) && ((U = u(r)) == null ? void 0 : U.length) }]]),
|
|
3464
3464
|
"data-testid": `select-${e.id}`,
|
|
3465
|
-
onKeydownPassive:
|
|
3465
|
+
onKeydownPassive: S[3] || (S[3] = (...k) => u($) && u($)(...k))
|
|
3466
3466
|
}, [
|
|
3467
|
-
|
|
3467
|
+
C(h.$slots, "label", {
|
|
3468
3468
|
id: `select-label-${e.id}`,
|
|
3469
3469
|
for: `select-toggle-${e.id}`
|
|
3470
3470
|
}, () => [
|
|
@@ -3473,8 +3473,8 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3473
3473
|
id: `select-label-${e.id}`,
|
|
3474
3474
|
"data-testid": `select-label-${e.id}`,
|
|
3475
3475
|
"data-required": e.required,
|
|
3476
|
-
class:
|
|
3477
|
-
},
|
|
3476
|
+
class: B(["label", { "-disabled": e.disabled }])
|
|
3477
|
+
}, O(e.label), 11, xs)) : F("", !0)
|
|
3478
3478
|
]),
|
|
3479
3479
|
_(P, {
|
|
3480
3480
|
id: `select-toggle-${e.id}`,
|
|
@@ -3493,15 +3493,15 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3493
3493
|
onClick: Ne(M, ["stop"])
|
|
3494
3494
|
}, {
|
|
3495
3495
|
default: q(() => [
|
|
3496
|
-
|
|
3496
|
+
C(h.$slots, "toggle-dropdown", {
|
|
3497
3497
|
toggle: { open: I, close: d, toggleDropdown: M },
|
|
3498
3498
|
isOpen: l.value,
|
|
3499
3499
|
select: Z,
|
|
3500
3500
|
selected: e.selected
|
|
3501
3501
|
}, () => {
|
|
3502
|
-
var
|
|
3502
|
+
var k, V, ve;
|
|
3503
3503
|
return [
|
|
3504
|
-
e.multiple && Array.isArray(u(r)) && ((
|
|
3504
|
+
e.multiple && Array.isArray(u(r)) && ((k = u(r)) == null ? void 0 : k.length) ? (g(), y("div", ws, [
|
|
3505
3505
|
(g(!0), y(Ae, null, he(u(r), (A, X) => (g(), ee(vt, {
|
|
3506
3506
|
id: `select-value-selected-${e.id}-${A.value}`,
|
|
3507
3507
|
key: X,
|
|
@@ -3516,8 +3516,8 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3516
3516
|
"data-testid": `select-value-selected-${e.id}`,
|
|
3517
3517
|
class: "min-w-3xs text-left",
|
|
3518
3518
|
tabindex: "-1"
|
|
3519
|
-
},
|
|
3520
|
-
e.multiple && Array.isArray(u(r)) && ((
|
|
3519
|
+
}, O(ce()), 9, Zs)),
|
|
3520
|
+
e.multiple && Array.isArray(u(r)) && ((V = u(r)) == null ? void 0 : V.length) > 1 ? (g(), ee(je, {
|
|
3521
3521
|
key: 2,
|
|
3522
3522
|
id: `select-${e.id}-clear-all`,
|
|
3523
3523
|
class: "clear-button",
|
|
@@ -3534,7 +3534,7 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3534
3534
|
_(u(vs), {
|
|
3535
3535
|
"aria-hidden": "true",
|
|
3536
3536
|
tabindex: "-1",
|
|
3537
|
-
class:
|
|
3537
|
+
class: B(["icon", { "-open": l.value }])
|
|
3538
3538
|
}, null, 8, ["class"])
|
|
3539
3539
|
];
|
|
3540
3540
|
})
|
|
@@ -3545,8 +3545,8 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3545
3545
|
key: 0,
|
|
3546
3546
|
id: `select-describe-${e.id}`,
|
|
3547
3547
|
"data-testid": `select-describe-${e.id}`,
|
|
3548
|
-
class:
|
|
3549
|
-
},
|
|
3548
|
+
class: B(["message", `-${u(ae).type}`])
|
|
3549
|
+
}, O(u(ae).text), 11, Ts)), [
|
|
3550
3550
|
[Pe, !l.value]
|
|
3551
3551
|
]) : F("", !0),
|
|
3552
3552
|
_(ai, {
|
|
@@ -3554,17 +3554,17 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3554
3554
|
name: "dropdown"
|
|
3555
3555
|
}, {
|
|
3556
3556
|
default: q(() => [
|
|
3557
|
-
Ce(
|
|
3558
|
-
|
|
3557
|
+
Ce(b("div", zs, [
|
|
3558
|
+
C(h.$slots, "search", {}, () => [
|
|
3559
3559
|
e.searchable ? (g(), y("div", {
|
|
3560
3560
|
key: 0,
|
|
3561
|
-
class:
|
|
3561
|
+
class: B(["search-container", { "-loading": e.loading }])
|
|
3562
3562
|
}, [
|
|
3563
3563
|
_(Qi, {
|
|
3564
3564
|
id: `select-search-${e.id}`,
|
|
3565
3565
|
ref: ue("search"),
|
|
3566
3566
|
modelValue: a.value,
|
|
3567
|
-
"onUpdate:modelValue":
|
|
3567
|
+
"onUpdate:modelValue": S[0] || (S[0] = (k) => a.value = k),
|
|
3568
3568
|
role: "combobox",
|
|
3569
3569
|
class: "search",
|
|
3570
3570
|
size: "small",
|
|
@@ -3574,13 +3574,13 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3574
3574
|
"aria-haspopup": "listbox",
|
|
3575
3575
|
"aria-owns": `select-list-${e.id}`,
|
|
3576
3576
|
"aria-controls": `select-list-${e.id}`,
|
|
3577
|
-
"aria-activedescendant": u(
|
|
3577
|
+
"aria-activedescendant": u(D).id,
|
|
3578
3578
|
"aria-labelledby": `select-label-${e.id}`,
|
|
3579
|
-
onClick:
|
|
3579
|
+
onClick: S[1] || (S[1] = Ne(() => {
|
|
3580
3580
|
}, ["stop"])),
|
|
3581
|
-
onInput:
|
|
3582
|
-
var
|
|
3583
|
-
return t("search", (
|
|
3581
|
+
onInput: S[2] || (S[2] = (k) => {
|
|
3582
|
+
var V;
|
|
3583
|
+
return t("search", (V = k.target) == null ? void 0 : V.value);
|
|
3584
3584
|
})
|
|
3585
3585
|
}, null, 8, ["id", "modelValue", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
|
|
3586
3586
|
_(u(ms), {
|
|
@@ -3595,11 +3595,11 @@ const Ss = { name: "material-symbols-close-rounded", render: Ds }, As = ["data-t
|
|
|
3595
3595
|
options: u(s),
|
|
3596
3596
|
name: u(o),
|
|
3597
3597
|
multiple: e.multiple,
|
|
3598
|
-
"is-selected":
|
|
3598
|
+
"is-selected": p,
|
|
3599
3599
|
onSelect: Z
|
|
3600
3600
|
}, {
|
|
3601
3601
|
"no-data": q(() => [
|
|
3602
|
-
|
|
3602
|
+
C(h.$slots, "no-data")
|
|
3603
3603
|
]),
|
|
3604
3604
|
_: 3
|
|
3605
3605
|
}, 8, ["id", "options", "name", "multiple"])
|
|
@@ -3643,7 +3643,7 @@ const Cs = ["id", "data-testid", "aria-disabled", "tabindex", "title", "aria-che
|
|
|
3643
3643
|
return (s, o) => (g(), y("div", {
|
|
3644
3644
|
id: n.chip,
|
|
3645
3645
|
"data-testid": n.chip,
|
|
3646
|
-
class:
|
|
3646
|
+
class: B(["sol-selectable-chip", [
|
|
3647
3647
|
`-${e.size}`,
|
|
3648
3648
|
{
|
|
3649
3649
|
"-disabled": e.disabled,
|
|
@@ -3668,14 +3668,14 @@ const Cs = ["id", "data-testid", "aria-disabled", "tabindex", "title", "aria-che
|
|
|
3668
3668
|
"aria-label": "selected",
|
|
3669
3669
|
role: "img"
|
|
3670
3670
|
})) : F("", !0),
|
|
3671
|
-
|
|
3671
|
+
b("span", {
|
|
3672
3672
|
id: n.describe,
|
|
3673
3673
|
"z-index": "-1",
|
|
3674
3674
|
class: "description"
|
|
3675
|
-
}, " Press Enter or Space to " +
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
re(
|
|
3675
|
+
}, " Press Enter or Space to " + O(e.selected ? "unselect" : "select"), 9, Gs),
|
|
3676
|
+
b("span", ps, [
|
|
3677
|
+
C(s.$slots, "default", {}, () => [
|
|
3678
|
+
re(O(e.label), 1)
|
|
3679
3679
|
])
|
|
3680
3680
|
])
|
|
3681
3681
|
], 42, Cs));
|
|
@@ -3700,11 +3700,11 @@ const Es = ["id", "data-testid", "title"], Xt = /* @__PURE__ */ J({
|
|
|
3700
3700
|
return (t, i) => (g(), y("div", {
|
|
3701
3701
|
id: `tag-${e.id}`,
|
|
3702
3702
|
"data-testid": `tag-${e.id}`,
|
|
3703
|
-
class:
|
|
3703
|
+
class: B(["sol-tag-core", `-${e.size} -${e.variant} -${e.type}`]),
|
|
3704
3704
|
title: e.text
|
|
3705
3705
|
}, [
|
|
3706
|
-
|
|
3707
|
-
re(
|
|
3706
|
+
C(t.$slots, "default", {}, () => [
|
|
3707
|
+
re(O(e.text), 1)
|
|
3708
3708
|
])
|
|
3709
3709
|
], 10, Es));
|
|
3710
3710
|
}
|
|
@@ -3716,7 +3716,7 @@ const Ps = {
|
|
|
3716
3716
|
viewBox: "0 0 24 24",
|
|
3717
3717
|
width: "1em",
|
|
3718
3718
|
height: "1em"
|
|
3719
|
-
}, ks = /* @__PURE__ */
|
|
3719
|
+
}, ks = /* @__PURE__ */ b("path", {
|
|
3720
3720
|
fill: "currentColor",
|
|
3721
3721
|
d: "m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"
|
|
3722
3722
|
}, null, -1), Bs = [
|
|
@@ -3729,7 +3729,7 @@ const Ys = { name: "material-symbols-check-circle-outline", render: Os }, Vs = {
|
|
|
3729
3729
|
viewBox: "0 0 24 24",
|
|
3730
3730
|
width: "1em",
|
|
3731
3731
|
height: "1em"
|
|
3732
|
-
}, Ws = /* @__PURE__ */
|
|
3732
|
+
}, Ws = /* @__PURE__ */ b("path", {
|
|
3733
3733
|
fill: "currentColor",
|
|
3734
3734
|
d: "M1 21L12 2l11 19Zm3.45-2h15.1L12 6ZM12 18q.425 0 .713-.288Q13 17.425 13 17t-.287-.712Q12.425 16 12 16t-.712.288Q11 16.575 11 17t.288.712Q11.575 18 12 18Zm-1-3h2v-5h-2Zm1-2.5Z"
|
|
3735
3735
|
}, null, -1), Us = [
|
|
@@ -3742,7 +3742,7 @@ const $s = { name: "material-symbols-warning-outline", render: Hs }, Qs = {
|
|
|
3742
3742
|
viewBox: "0 0 24 24",
|
|
3743
3743
|
width: "1em",
|
|
3744
3744
|
height: "1em"
|
|
3745
|
-
}, Xs = /* @__PURE__ */
|
|
3745
|
+
}, Xs = /* @__PURE__ */ b("path", {
|
|
3746
3746
|
fill: "currentColor",
|
|
3747
3747
|
d: "m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"
|
|
3748
3748
|
}, null, -1), Fs = [
|
|
@@ -3755,7 +3755,7 @@ const Js = { name: "material-symbols-cancel-outline", render: Rs }, qs = {
|
|
|
3755
3755
|
viewBox: "0 0 24 24",
|
|
3756
3756
|
width: "1em",
|
|
3757
3757
|
height: "1em"
|
|
3758
|
-
}, _s = /* @__PURE__ */
|
|
3758
|
+
}, _s = /* @__PURE__ */ b("path", {
|
|
3759
3759
|
fill: "currentColor",
|
|
3760
3760
|
d: "M11 17h2v-6h-2Zm1-8q.425 0 .713-.288Q13 8.425 13 8t-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8t.288.712Q11.575 9 12 9Zm0 13q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"
|
|
3761
3761
|
}, null, -1), Ks = [
|
|
@@ -3781,11 +3781,11 @@ const to = { name: "material-symbols-info-outline", render: eo }, io = ["id", "d
|
|
|
3781
3781
|
return (i, n) => (g(), y("div", {
|
|
3782
3782
|
id: `alert-${e.id}`,
|
|
3783
3783
|
"data-testid": `alert-${e.id}`,
|
|
3784
|
-
class:
|
|
3784
|
+
class: B(["sol-alert-core", `-${e.feedback}`]),
|
|
3785
3785
|
"aria-live": "assertive",
|
|
3786
3786
|
role: "alert"
|
|
3787
3787
|
}, [
|
|
3788
|
-
|
|
3788
|
+
b("div", no, [
|
|
3789
3789
|
e.feedback === "success" ? (g(), ee(u(Ys), {
|
|
3790
3790
|
key: 0,
|
|
3791
3791
|
class: "icon",
|
|
@@ -3806,10 +3806,10 @@ const to = { name: "material-symbols-info-outline", render: eo }, io = ["id", "d
|
|
|
3806
3806
|
class: "icon",
|
|
3807
3807
|
"aria-hidden": "true"
|
|
3808
3808
|
})) : F("", !0),
|
|
3809
|
-
|
|
3810
|
-
e.title ? (g(), y("strong", ao,
|
|
3811
|
-
|
|
3812
|
-
re(
|
|
3809
|
+
b("div", lo, [
|
|
3810
|
+
e.title ? (g(), y("strong", ao, O(e.title), 1)) : F("", !0),
|
|
3811
|
+
C(i.$slots, "default", {}, () => [
|
|
3812
|
+
re(O(e.text), 1)
|
|
3813
3813
|
])
|
|
3814
3814
|
])
|
|
3815
3815
|
]),
|
|
@@ -3821,7 +3821,7 @@ const to = { name: "material-symbols-info-outline", render: eo }, io = ["id", "d
|
|
|
3821
3821
|
onClick: n[0] || (n[0] = (l) => t("click"))
|
|
3822
3822
|
}, {
|
|
3823
3823
|
default: q(() => [
|
|
3824
|
-
re(
|
|
3824
|
+
re(O(e.action), 1)
|
|
3825
3825
|
]),
|
|
3826
3826
|
_: 1
|
|
3827
3827
|
}, 8, ["id"])) : F("", !0)
|
|
@@ -3835,7 +3835,7 @@ const so = {
|
|
|
3835
3835
|
viewBox: "0 0 24 24",
|
|
3836
3836
|
width: "1em",
|
|
3837
3837
|
height: "1em"
|
|
3838
|
-
}, oo = /* @__PURE__ */
|
|
3838
|
+
}, oo = /* @__PURE__ */ b("path", {
|
|
3839
3839
|
fill: "currentColor",
|
|
3840
3840
|
d: "M12 14.975q-.2 0-.387-.075q-.188-.075-.313-.2l-4.6-4.6q-.275-.275-.275-.7q0-.425.275-.7q.275-.275.7-.275q.425 0 .7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275q.425 0 .7.275q.275.275.275.7q0 .425-.275.7l-4.6 4.6q-.15.15-.325.212q-.175.063-.375.063Z"
|
|
3841
3841
|
}, null, -1), uo = [
|
|
@@ -3856,20 +3856,20 @@ const In = { name: "material-symbols-keyboard-arrow-down-rounded", render: ro },
|
|
|
3856
3856
|
return (t, i) => (g(), y("details", {
|
|
3857
3857
|
id: `accordion-${e.id}`,
|
|
3858
3858
|
"data-testid": `accordion-${e.id}`,
|
|
3859
|
-
class:
|
|
3859
|
+
class: B(["sol-accordion-core", { "-on-color": e.onColor, "-disabled": e.disabled }]),
|
|
3860
3860
|
"aria-disabled": e.disabled
|
|
3861
3861
|
}, [
|
|
3862
|
-
|
|
3862
|
+
b("summary", {
|
|
3863
3863
|
"data-testid": `accordion-title-${e.id}`,
|
|
3864
3864
|
class: "summary",
|
|
3865
3865
|
tabindex: e.disabled ? -1 : 0
|
|
3866
3866
|
}, [
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3867
|
+
b("div", Mo, [
|
|
3868
|
+
b("span", mo, [
|
|
3869
|
+
C(t.$slots, "icon")
|
|
3870
3870
|
]),
|
|
3871
|
-
|
|
3872
|
-
re(
|
|
3871
|
+
C(t.$slots, "title", {}, () => [
|
|
3872
|
+
re(O(e.title), 1)
|
|
3873
3873
|
])
|
|
3874
3874
|
]),
|
|
3875
3875
|
_(u(In), {
|
|
@@ -3877,11 +3877,11 @@ const In = { name: "material-symbols-keyboard-arrow-down-rounded", render: ro },
|
|
|
3877
3877
|
"aria-hidden": "true"
|
|
3878
3878
|
})
|
|
3879
3879
|
], 8, Io),
|
|
3880
|
-
|
|
3880
|
+
b("div", {
|
|
3881
3881
|
"data-testid": `accordion-content-${e.id}`,
|
|
3882
3882
|
class: "accordion-content"
|
|
3883
3883
|
}, [
|
|
3884
|
-
|
|
3884
|
+
C(t.$slots, "default")
|
|
3885
3885
|
], 8, go)
|
|
3886
3886
|
], 10, co));
|
|
3887
3887
|
}
|
|
@@ -3902,18 +3902,18 @@ const No = ["id", "data-testid", "disabled", "aria-selected"], jo = { class: "ic
|
|
|
3902
3902
|
id: `tab-item-${e.id}`,
|
|
3903
3903
|
"data-testid": `tab-item-${e.id}`,
|
|
3904
3904
|
role: "tab",
|
|
3905
|
-
class:
|
|
3905
|
+
class: B(["tab-item-core", { "-selected": e.active, "-disabled": e.disabled }]),
|
|
3906
3906
|
disabled: e.disabled,
|
|
3907
3907
|
type: "button",
|
|
3908
3908
|
tabindex: "-1",
|
|
3909
3909
|
"aria-selected": e.active
|
|
3910
3910
|
}, [
|
|
3911
|
-
|
|
3912
|
-
|
|
3911
|
+
b("div", jo, [
|
|
3912
|
+
C(t.$slots, "icon")
|
|
3913
3913
|
]),
|
|
3914
|
-
|
|
3914
|
+
b("span", {
|
|
3915
3915
|
class: "label",
|
|
3916
|
-
textContent:
|
|
3916
|
+
textContent: O(e.label)
|
|
3917
3917
|
}, null, 8, yo)
|
|
3918
3918
|
], 10, No));
|
|
3919
3919
|
}
|
|
@@ -3942,51 +3942,57 @@ const fo = ["id", "data-testid"], bo = ["data-testid"], Jt = /* @__PURE__ */ J({
|
|
|
3942
3942
|
ArrowLeft: () => s({ to: "PREVIOUS", query: o }),
|
|
3943
3943
|
ArrowRight: () => s({ to: "NEXT", query: o })
|
|
3944
3944
|
});
|
|
3945
|
-
function c(
|
|
3946
|
-
if (
|
|
3945
|
+
function c(N, I) {
|
|
3946
|
+
if (I)
|
|
3947
3947
|
return;
|
|
3948
|
-
const
|
|
3949
|
-
t("update:tabList",
|
|
3948
|
+
const d = i.tabList.map((v, Z) => ({ ...v, active: Z === N }));
|
|
3949
|
+
t("update:tabList", d);
|
|
3950
|
+
}
|
|
3951
|
+
function M() {
|
|
3952
|
+
if (i.tabList.some(({ disabled: d, active: v }) => !d && v))
|
|
3953
|
+
return i.tabList;
|
|
3954
|
+
const I = i.tabList.findIndex(({ disabled: d }) => !d);
|
|
3955
|
+
return i.tabList.map((d, v) => v === I ? { ...d, active: !0 } : d);
|
|
3950
3956
|
}
|
|
3951
|
-
return (
|
|
3957
|
+
return (N, I) => (g(), y("div", {
|
|
3952
3958
|
id: `tabs-${e.id}`,
|
|
3953
3959
|
"data-testid": `tabs-${e.id}`,
|
|
3954
3960
|
class: "sol-tabs-core",
|
|
3955
3961
|
tabindex: "0",
|
|
3956
|
-
onKeyupPassive:
|
|
3962
|
+
onKeyupPassive: I[0] || (I[0] = (...d) => u(r) && u(r)(...d))
|
|
3957
3963
|
}, [
|
|
3958
|
-
|
|
3964
|
+
b("div", {
|
|
3959
3965
|
ref_key: "tabs",
|
|
3960
3966
|
ref: n,
|
|
3961
3967
|
role: "tablist",
|
|
3962
|
-
class:
|
|
3968
|
+
class: B(["tabs-header", { "-only-line": e.onlyLine }])
|
|
3963
3969
|
}, [
|
|
3964
|
-
(g(!0), y(Ae, null, he(
|
|
3965
|
-
id: `${e.id}-${
|
|
3966
|
-
key: `tab-item-${
|
|
3967
|
-
label:
|
|
3968
|
-
active:
|
|
3969
|
-
disabled:
|
|
3970
|
-
"data-interactive": !
|
|
3971
|
-
onClick: (
|
|
3970
|
+
(g(!0), y(Ae, null, he(M(), ({ label: d, active: v, disabled: Z }, p) => (g(), ee(vo, {
|
|
3971
|
+
id: `${e.id}-${p}`,
|
|
3972
|
+
key: `tab-item-${p}`,
|
|
3973
|
+
label: d,
|
|
3974
|
+
active: v,
|
|
3975
|
+
disabled: Z,
|
|
3976
|
+
"data-interactive": !Z,
|
|
3977
|
+
onClick: (L) => c(p, v),
|
|
3972
3978
|
onKeyup: [
|
|
3973
|
-
De(Ne((
|
|
3974
|
-
De(Ne((
|
|
3979
|
+
De(Ne((L) => c(p, v), ["self"]), ["enter"]),
|
|
3980
|
+
De(Ne((L) => c(p, v), ["self"]), ["space"])
|
|
3975
3981
|
]
|
|
3976
3982
|
}, {
|
|
3977
3983
|
icon: q(() => [
|
|
3978
|
-
|
|
3984
|
+
C(N.$slots, `icon:${p + 1}`)
|
|
3979
3985
|
]),
|
|
3980
3986
|
_: 2
|
|
3981
3987
|
}, 1032, ["id", "label", "active", "disabled", "data-interactive", "onClick", "onKeyup"]))), 128))
|
|
3982
3988
|
], 2),
|
|
3983
|
-
(g(!0), y(Ae, null, he(e.tabList, ({ active:
|
|
3984
|
-
key: `tab-content-${
|
|
3985
|
-
"data-testid": `tab-content-${e.id}-${
|
|
3989
|
+
(g(!0), y(Ae, null, he(e.tabList, ({ active: d }, v) => Ce((g(), y("div", {
|
|
3990
|
+
key: `tab-content-${v}`,
|
|
3991
|
+
"data-testid": `tab-content-${e.id}-${v}`
|
|
3986
3992
|
}, [
|
|
3987
|
-
|
|
3993
|
+
C(N.$slots, `tab:${v + 1}`)
|
|
3988
3994
|
], 8, bo)), [
|
|
3989
|
-
[Pe,
|
|
3995
|
+
[Pe, d]
|
|
3990
3996
|
])), 128))
|
|
3991
3997
|
], 40, fo));
|
|
3992
3998
|
}
|
|
@@ -4032,15 +4038,15 @@ const ho = ["id", "data-testid"], Do = ["id", "aria-expanded"], So = ["id", "dat
|
|
|
4032
4038
|
function d() {
|
|
4033
4039
|
i.value ? N() : I();
|
|
4034
4040
|
}
|
|
4035
|
-
return (
|
|
4041
|
+
return (v, Z) => (g(), y("div", {
|
|
4036
4042
|
id: `menu-${e.id}`,
|
|
4037
4043
|
ref_key: "el",
|
|
4038
4044
|
ref: t,
|
|
4039
4045
|
"data-testid": `menu-${e.id}`,
|
|
4040
|
-
class:
|
|
4041
|
-
onKeyupPassive: Z[0] || (Z[0] = (...
|
|
4046
|
+
class: B([`-${e.position}`, "sol-menu-core"]),
|
|
4047
|
+
onKeyupPassive: Z[0] || (Z[0] = (...p) => u(M) && u(M)(...p))
|
|
4042
4048
|
}, [
|
|
4043
|
-
|
|
4049
|
+
C(v.$slots, "trigger", {
|
|
4044
4050
|
id: `menu-button-${e.id}`,
|
|
4045
4051
|
toggle: d,
|
|
4046
4052
|
isOpen: i.value,
|
|
@@ -4051,7 +4057,7 @@ const ho = ["id", "data-testid"], Do = ["id", "aria-expanded"], So = ["id", "dat
|
|
|
4051
4057
|
ariaExpanded: i.value
|
|
4052
4058
|
}
|
|
4053
4059
|
}, () => [
|
|
4054
|
-
|
|
4060
|
+
b("button", {
|
|
4055
4061
|
id: `menu-button-${e.id}`,
|
|
4056
4062
|
type: "button",
|
|
4057
4063
|
role: "menuitem",
|
|
@@ -4060,21 +4066,21 @@ const ho = ["id", "data-testid"], Do = ["id", "aria-expanded"], So = ["id", "dat
|
|
|
4060
4066
|
"aria-expanded": i.value,
|
|
4061
4067
|
onClick: d
|
|
4062
4068
|
}, [
|
|
4063
|
-
|
|
4064
|
-
re(
|
|
4069
|
+
C(v.$slots, "label", { isOpen: i.value }, () => [
|
|
4070
|
+
re(O(e.label), 1)
|
|
4065
4071
|
])
|
|
4066
4072
|
], 8, Do)
|
|
4067
4073
|
]),
|
|
4068
|
-
Ce(
|
|
4074
|
+
Ce(b("menu", {
|
|
4069
4075
|
id: `menu-container-${e.id}`,
|
|
4070
4076
|
ref_key: "menu",
|
|
4071
4077
|
ref: n,
|
|
4072
4078
|
"data-testid": `menu-container-${e.id}`,
|
|
4073
4079
|
role: "menu",
|
|
4074
4080
|
"aria-labelledby": `menu-button-${e.id}`,
|
|
4075
|
-
class:
|
|
4081
|
+
class: B(["menu", { "-open": i.value }])
|
|
4076
4082
|
}, [
|
|
4077
|
-
|
|
4083
|
+
C(v.$slots, "default", { close: N })
|
|
4078
4084
|
], 10, So), [
|
|
4079
4085
|
[Pe, i.value]
|
|
4080
4086
|
])
|
|
@@ -4093,21 +4099,21 @@ const Ao = ["itemprop"], xo = /* @__PURE__ */ J({
|
|
|
4093
4099
|
},
|
|
4094
4100
|
setup(e) {
|
|
4095
4101
|
return (t, i) => (g(), y("p", {
|
|
4096
|
-
class:
|
|
4102
|
+
class: B(["text-property-value", `-${e.align}`])
|
|
4097
4103
|
}, [
|
|
4098
|
-
|
|
4099
|
-
class:
|
|
4104
|
+
b("span", {
|
|
4105
|
+
class: B(["property", { "-hide": e.hide }])
|
|
4100
4106
|
}, [
|
|
4101
|
-
|
|
4102
|
-
re(
|
|
4107
|
+
C(t.$slots, "property", {}, () => [
|
|
4108
|
+
re(O(e.property), 1)
|
|
4103
4109
|
])
|
|
4104
4110
|
], 2),
|
|
4105
|
-
|
|
4111
|
+
b("span", {
|
|
4106
4112
|
itemprop: e.itemProp,
|
|
4107
|
-
class:
|
|
4113
|
+
class: B(["value", { "-highlight": e.isHighlightValue }])
|
|
4108
4114
|
}, [
|
|
4109
|
-
|
|
4110
|
-
re(
|
|
4115
|
+
C(t.$slots, "value", {}, () => [
|
|
4116
|
+
re(O(e.value), 1)
|
|
4111
4117
|
])
|
|
4112
4118
|
], 10, Ao)
|
|
4113
4119
|
], 2));
|
|
@@ -4158,7 +4164,7 @@ const wo = ["id", "data-testid"], Zo = {
|
|
|
4158
4164
|
return (c, M) => (g(), y("li", {
|
|
4159
4165
|
id: `listitem-${e.id}-${e.itemIndex}`,
|
|
4160
4166
|
"data-testid": `listitem-${e.id}-${e.itemIndex}`,
|
|
4161
|
-
class:
|
|
4167
|
+
class: B(["list-item", { "-selected": e.isSelected }]),
|
|
4162
4168
|
tabindex: "-1",
|
|
4163
4169
|
onClick: M[3] || (M[3] = Ne((N) => t("listitem:click"), ["self"])),
|
|
4164
4170
|
onKeyup: [
|
|
@@ -4176,59 +4182,59 @@ const wo = ["id", "data-testid"], Zo = {
|
|
|
4176
4182
|
]
|
|
4177
4183
|
}, [
|
|
4178
4184
|
s(I) ? (g(), y("div", Zo, [
|
|
4179
|
-
|
|
4185
|
+
C(c.$slots, "selectable", {
|
|
4180
4186
|
data: e.data,
|
|
4181
4187
|
index: e.itemIndex,
|
|
4182
4188
|
label: `${e.data[N[0]]}`
|
|
4183
4189
|
})
|
|
4184
4190
|
])) : F("", !0),
|
|
4185
4191
|
o(I) ? (g(), y("div", To, [
|
|
4186
|
-
|
|
4192
|
+
C(c.$slots, "image", { data: e.data })
|
|
4187
4193
|
])) : F("", !0),
|
|
4188
|
-
(g(!0), y(Ae, null, he(N, (d,
|
|
4189
|
-
key:
|
|
4194
|
+
(g(!0), y(Ae, null, he(N, (d, v) => (g(), y("div", {
|
|
4195
|
+
key: v,
|
|
4190
4196
|
style: Nt(`${e.setFixedColumnSize(d)}`),
|
|
4191
4197
|
class: "column-item",
|
|
4192
4198
|
"data-testid": `listitem-column-${e.id}-${e.itemIndex}-${d}`
|
|
4193
4199
|
}, [
|
|
4194
|
-
|
|
4200
|
+
C(c.$slots, `column:${d}`, {
|
|
4195
4201
|
data: { key: d, value: e.data[d] },
|
|
4196
4202
|
index: e.itemIndex,
|
|
4197
|
-
columnIndex:
|
|
4203
|
+
columnIndex: v,
|
|
4198
4204
|
renderHeader: e.renderHeader,
|
|
4199
4205
|
headers: e.headers
|
|
4200
4206
|
}, () => {
|
|
4201
|
-
var Z,
|
|
4207
|
+
var Z, p, L, z;
|
|
4202
4208
|
return [
|
|
4203
4209
|
_(xo, {
|
|
4204
4210
|
"data-testid": `listitem-${e.id}-${e.itemIndex}-${d}`,
|
|
4205
4211
|
"item-prop": d,
|
|
4206
|
-
hide: (
|
|
4207
|
-
align: (z = (
|
|
4212
|
+
hide: (p = (Z = e.headers) == null ? void 0 : Z[d]) == null ? void 0 : p.hide,
|
|
4213
|
+
align: (z = (L = e.headers) == null ? void 0 : L[d]) == null ? void 0 : z.align,
|
|
4208
4214
|
"is-highlight-value": e.isHighlight({ key: d })
|
|
4209
4215
|
}, {
|
|
4210
4216
|
property: q(() => [
|
|
4211
|
-
|
|
4217
|
+
C(c.$slots, `header:${d}`, {
|
|
4212
4218
|
data: {
|
|
4213
4219
|
key: d,
|
|
4214
4220
|
value: e.data[d]
|
|
4215
4221
|
},
|
|
4216
4222
|
index: I,
|
|
4217
|
-
columnIndex:
|
|
4223
|
+
columnIndex: v,
|
|
4218
4224
|
renderHeader: e.renderHeader,
|
|
4219
4225
|
headers: e.headers
|
|
4220
4226
|
}, () => [
|
|
4221
|
-
re(
|
|
4227
|
+
re(O(e.renderHeader(d)), 1)
|
|
4222
4228
|
])
|
|
4223
4229
|
]),
|
|
4224
4230
|
value: q(() => [
|
|
4225
|
-
|
|
4231
|
+
C(c.$slots, `value:${d}`, {
|
|
4226
4232
|
data: { key: d, value: e.data[d] },
|
|
4227
4233
|
index: I,
|
|
4228
|
-
columnIndex:
|
|
4234
|
+
columnIndex: v,
|
|
4229
4235
|
isHighlight: e.isHighlight
|
|
4230
4236
|
}, () => [
|
|
4231
|
-
re(
|
|
4237
|
+
re(O(a(e.data[d])), 1)
|
|
4232
4238
|
])
|
|
4233
4239
|
]),
|
|
4234
4240
|
_: 2
|
|
@@ -4237,7 +4243,8 @@ const wo = ["id", "data-testid"], Zo = {
|
|
|
4237
4243
|
})
|
|
4238
4244
|
], 12, zo))), 128)),
|
|
4239
4245
|
r(I, 0) ? (g(), y("div", Lo, [
|
|
4240
|
-
|
|
4246
|
+
C(c.$slots, "action-button", {
|
|
4247
|
+
data: e.data,
|
|
4241
4248
|
arias: {
|
|
4242
4249
|
testid: `list-row-action-${e.id}-${e.itemIndex}`,
|
|
4243
4250
|
data: e.data,
|
|
@@ -4254,7 +4261,7 @@ const Go = {
|
|
|
4254
4261
|
viewBox: "0 0 24 24",
|
|
4255
4262
|
width: "1em",
|
|
4256
4263
|
height: "1em"
|
|
4257
|
-
}, po = /* @__PURE__ */
|
|
4264
|
+
}, po = /* @__PURE__ */ b("path", {
|
|
4258
4265
|
fill: "currentColor",
|
|
4259
4266
|
d: "M12 20q-.825 0-1.412-.587Q10 18.825 10 18q0-.825.588-1.413Q11.175 16 12 16t1.413.587Q14 17.175 14 18q0 .825-.587 1.413Q12.825 20 12 20Zm0-6q-.825 0-1.412-.588Q10 12.825 10 12t.588-1.413Q11.175 10 12 10t1.413.587Q14 11.175 14 12q0 .825-.587 1.412Q12.825 14 12 14Zm0-6q-.825 0-1.412-.588Q10 6.825 10 6t.588-1.412Q11.175 4 12 4t1.413.588Q14 5.175 14 6t-.587 1.412Q12.825 8 12 8Z"
|
|
4260
4267
|
}, null, -1), Eo = [
|
|
@@ -4282,75 +4289,75 @@ const ko = { name: "material-symbols-more-vert", render: Po }, Bo = ["id", "data
|
|
|
4282
4289
|
setup(e, { expose: t, emit: i }) {
|
|
4283
4290
|
var de;
|
|
4284
4291
|
const n = e, l = ht(), a = x(() => !!(l != null && l.menu)), s = x(() => !!(l != null && l.image)), o = ka("(min-width: 1024px)"), r = x(() => {
|
|
4285
|
-
var T,
|
|
4286
|
-
return (
|
|
4292
|
+
var T, h, S;
|
|
4293
|
+
return (h = (T = n.sortPositions) == null ? void 0 : T.mobile) != null && h.length ? (S = n.sortPositions) == null ? void 0 : S.mobile : N();
|
|
4287
4294
|
}), c = x(() => {
|
|
4288
4295
|
var T;
|
|
4289
4296
|
return (T = n.sortPositions) != null && T.desktop.length ? n.sortPositions.desktop : Object.keys(n.data[0]);
|
|
4290
4297
|
}), M = x(() => o.value ? [c.value] : r.value);
|
|
4291
4298
|
function N() {
|
|
4292
|
-
return Object.keys(n.data[0]).reduce((
|
|
4299
|
+
return Object.keys(n.data[0]).reduce((h, S, P) => {
|
|
4293
4300
|
if (P === 0)
|
|
4294
|
-
return
|
|
4301
|
+
return h = [[S]];
|
|
4295
4302
|
if (P === 1)
|
|
4296
|
-
return
|
|
4297
|
-
const
|
|
4298
|
-
return Array.isArray(
|
|
4303
|
+
return h = [...h, [S]];
|
|
4304
|
+
const U = h == null ? void 0 : h.length, k = h == null ? void 0 : h[U - 1];
|
|
4305
|
+
return Array.isArray(k) && (k == null ? void 0 : k.length) < 2 ? (h[U - 1] = [...k, S], h) : h = [...h, [S]];
|
|
4299
4306
|
}, []);
|
|
4300
4307
|
}
|
|
4301
4308
|
function I(T) {
|
|
4302
|
-
var
|
|
4303
|
-
return (
|
|
4309
|
+
var h, S;
|
|
4310
|
+
return (S = n.headers && ((h = n.headers[T]) == null ? void 0 : h.text)) != null ? S : T;
|
|
4304
4311
|
}
|
|
4305
4312
|
function d(T) {
|
|
4306
|
-
var
|
|
4307
|
-
if ((
|
|
4308
|
-
if (((P = (
|
|
4309
|
-
return `--basis-width: ${(
|
|
4310
|
-
if (((ve = (
|
|
4313
|
+
var h, S, P, U, k, V, ve, A, X;
|
|
4314
|
+
if ((h = n.headers) != null && h[T]) {
|
|
4315
|
+
if (((P = (S = n.headers) == null ? void 0 : S[T]) == null ? void 0 : P.width) && o.value)
|
|
4316
|
+
return `--basis-width: ${(k = (U = n.headers) == null ? void 0 : U[T]) == null ? void 0 : k.width}; --shrink: 0;`;
|
|
4317
|
+
if (((ve = (V = n.headers) == null ? void 0 : V[T]) == null ? void 0 : ve.mobileWidth) && !o.value)
|
|
4311
4318
|
return `--basis-width: ${(X = (A = n.headers) == null ? void 0 : A[T]) == null ? void 0 : X.mobileWidth}; --shrink: 0;`;
|
|
4312
4319
|
}
|
|
4313
4320
|
}
|
|
4314
|
-
function
|
|
4315
|
-
var
|
|
4316
|
-
return
|
|
4321
|
+
function v({ key: T, value: h }) {
|
|
4322
|
+
var S, P;
|
|
4323
|
+
return h ? !0 : T ? !!((P = (S = n.headers) == null ? void 0 : S[T]) != null && P.highlight) : !1;
|
|
4317
4324
|
}
|
|
4318
|
-
const Z = R(),
|
|
4325
|
+
const Z = R(), p = [
|
|
4319
4326
|
"[data-interactive] input",
|
|
4320
4327
|
"[data-interactive-element]",
|
|
4321
4328
|
"[data-interactive] button"
|
|
4322
4329
|
], {
|
|
4323
|
-
elementFocus:
|
|
4330
|
+
elementFocus: L,
|
|
4324
4331
|
focusInsideRow: z,
|
|
4325
|
-
focusOnFirstItem:
|
|
4326
|
-
focusOnLastItem:
|
|
4332
|
+
focusOnFirstItem: f,
|
|
4333
|
+
focusOnLastItem: D,
|
|
4327
4334
|
focusOnNextItem: G,
|
|
4328
4335
|
focusOnPreviousItem: w,
|
|
4329
4336
|
resetStateFocus: Y
|
|
4330
|
-
} = At({ target: Z }), { navigate:
|
|
4331
|
-
Home:
|
|
4332
|
-
End: () =>
|
|
4337
|
+
} = At({ target: Z }), { navigate: W } = Oe({
|
|
4338
|
+
Home: f,
|
|
4339
|
+
End: () => D(n.data.length),
|
|
4333
4340
|
ArrowUp: () => !te() && w(),
|
|
4334
4341
|
ArrowDown: () => !te() && G(n.data.length),
|
|
4335
|
-
ArrowLeft: () =>
|
|
4336
|
-
ArrowRight: () =>
|
|
4342
|
+
ArrowLeft: () => L.id && z({ to: "LEFT", query: p }),
|
|
4343
|
+
ArrowRight: () => L.id && z({ to: "RIGHT", query: p })
|
|
4337
4344
|
}, {
|
|
4338
4345
|
fallback: Y,
|
|
4339
4346
|
exclude: ["Enter", "NumpadEnter", "Space"]
|
|
4340
4347
|
});
|
|
4341
4348
|
function te() {
|
|
4342
|
-
var T,
|
|
4349
|
+
var T, h;
|
|
4343
4350
|
if (document.activeElement && ((T = document.activeElement) == null ? void 0 : T.role)) {
|
|
4344
|
-
const
|
|
4345
|
-
return
|
|
4351
|
+
const S = document.activeElement.role, P = (h = document.activeElement) == null ? void 0 : h.parentElement;
|
|
4352
|
+
return S === "menuitem" ? !0 : !!(() => S === "none" && (P == null ? void 0 : P.role) && ["menuitem", "menu"].includes(P.role))();
|
|
4346
4353
|
}
|
|
4347
4354
|
return !1;
|
|
4348
4355
|
}
|
|
4349
4356
|
const $ = R((de = n == null ? void 0 : n.selected) != null ? de : {});
|
|
4350
4357
|
function le(T) {
|
|
4351
4358
|
if (Array.isArray($.value) ? $.value.length : Object.keys($.value).length) {
|
|
4352
|
-
const
|
|
4353
|
-
return n.selectMode && n.selectMode === "checkbox" && Array.isArray($.value) ? $.value.findIndex((
|
|
4359
|
+
const S = n.dataIdentifier.key, P = T[S];
|
|
4360
|
+
return n.selectMode && n.selectMode === "checkbox" && Array.isArray($.value) ? $.value.findIndex((k) => k[S] === P) >= 0 : $.value[S] === P;
|
|
4354
4361
|
}
|
|
4355
4362
|
return !1;
|
|
4356
4363
|
}
|
|
@@ -4358,16 +4365,16 @@ const ko = { name: "material-symbols-more-vert", render: Po }, Bo = ["id", "data
|
|
|
4358
4365
|
$.value = T, i("listitem:selected", T), i("update:selected", $.value);
|
|
4359
4366
|
}
|
|
4360
4367
|
function ce(T) {
|
|
4361
|
-
const
|
|
4362
|
-
$.value =
|
|
4368
|
+
const h = n.dataIdentifier.key, S = T[h], P = Array.isArray($.value) ? $.value : [], U = le(T) ? P == null ? void 0 : P.filter((k) => k[h] !== S) : ge(T);
|
|
4369
|
+
$.value = U, i("listitem:selected", T), i("update:selected", $.value);
|
|
4363
4370
|
}
|
|
4364
4371
|
function ge(T) {
|
|
4365
|
-
var
|
|
4372
|
+
var h;
|
|
4366
4373
|
if (Array.isArray($.value)) {
|
|
4367
|
-
const
|
|
4368
|
-
(
|
|
4374
|
+
const S = n.dataIdentifier.key, P = $.value.findIndex(
|
|
4375
|
+
(U) => U[S] === T[S]
|
|
4369
4376
|
);
|
|
4370
|
-
return P === -1 ? [...$.value, T] : (
|
|
4377
|
+
return P === -1 ? [...$.value, T] : (h = $.value) == null ? void 0 : h.filter((U, k) => k !== P);
|
|
4371
4378
|
}
|
|
4372
4379
|
return [T];
|
|
4373
4380
|
}
|
|
@@ -4385,7 +4392,7 @@ const ko = { name: "material-symbols-more-vert", render: Po }, Bo = ["id", "data
|
|
|
4385
4392
|
return t({
|
|
4386
4393
|
unselectAll: ae,
|
|
4387
4394
|
selectAll: ye
|
|
4388
|
-
}), (T,
|
|
4395
|
+
}), (T, h) => (g(), y("ul", {
|
|
4389
4396
|
id: `list-${e.id}`,
|
|
4390
4397
|
ref_key: "list",
|
|
4391
4398
|
ref: Z,
|
|
@@ -4394,66 +4401,66 @@ const ko = { name: "material-symbols-more-vert", render: Po }, Bo = ["id", "data
|
|
|
4394
4401
|
"aria-label": e.ariaLabel,
|
|
4395
4402
|
tabindex: "0",
|
|
4396
4403
|
itemscope: "",
|
|
4397
|
-
onKeyupPassive:
|
|
4404
|
+
onKeyupPassive: h[0] || (h[0] = (...S) => u(W) && u(W)(...S))
|
|
4398
4405
|
}, [
|
|
4399
|
-
(g(!0), y(Ae, null, he(e.data, (
|
|
4406
|
+
(g(!0), y(Ae, null, he(e.data, (S, P) => (g(), ee(Co, {
|
|
4400
4407
|
id: e.id,
|
|
4401
4408
|
key: P,
|
|
4402
4409
|
headers: e.headers,
|
|
4403
|
-
data:
|
|
4410
|
+
data: S,
|
|
4404
4411
|
"item-index": P,
|
|
4405
|
-
"is-selected": le(
|
|
4412
|
+
"is-selected": le(S),
|
|
4406
4413
|
"sort-positions": u(M),
|
|
4407
4414
|
"fallback-value": e.fallbackValue,
|
|
4408
4415
|
"has-image": u(s),
|
|
4409
4416
|
"has-menu": u(a),
|
|
4410
4417
|
"render-header": I,
|
|
4411
|
-
"is-highlight":
|
|
4418
|
+
"is-highlight": v,
|
|
4412
4419
|
"set-fixed-column-size": d,
|
|
4413
|
-
"onListitem:click": (
|
|
4420
|
+
"onListitem:click": (U) => i("listitem:click", { ...S, index: P })
|
|
4414
4421
|
}, An({
|
|
4415
|
-
selectable: q(({ data:
|
|
4416
|
-
var
|
|
4422
|
+
selectable: q(({ data: U, label: k }) => {
|
|
4423
|
+
var V, ve, A, X, se, pe;
|
|
4417
4424
|
return [
|
|
4418
4425
|
e.selectMode === "checkbox" ? (g(), ee(Xe, {
|
|
4419
4426
|
key: 0,
|
|
4420
|
-
id: `listitem-${
|
|
4427
|
+
id: `listitem-${U[(V = e.dataIdentifier) == null ? void 0 : V.key]}`,
|
|
4421
4428
|
"hide-label": !0,
|
|
4422
|
-
label:
|
|
4423
|
-
checked: le(
|
|
4424
|
-
value: `${
|
|
4429
|
+
label: k,
|
|
4430
|
+
checked: le(S),
|
|
4431
|
+
value: `${U[(ve = e.dataIdentifier) == null ? void 0 : ve.key]}`,
|
|
4425
4432
|
name: (A = e.dataIdentifier.inputName) != null ? A : e.id,
|
|
4426
|
-
onChange: (xe) => ce(
|
|
4433
|
+
onChange: (xe) => ce(U)
|
|
4427
4434
|
}, null, 8, ["id", "label", "checked", "value", "name", "onChange"])) : F("", !0),
|
|
4428
4435
|
e.selectMode === "radio" ? (g(), ee(nt, {
|
|
4429
4436
|
key: 1,
|
|
4430
|
-
id: `listitem-${
|
|
4437
|
+
id: `listitem-${U[(X = e.dataIdentifier) == null ? void 0 : X.key]}`,
|
|
4431
4438
|
"hide-label": !0,
|
|
4432
|
-
label:
|
|
4433
|
-
checked: le(
|
|
4434
|
-
value: `${
|
|
4439
|
+
label: k,
|
|
4440
|
+
checked: le(S),
|
|
4441
|
+
value: `${U[(se = e.dataIdentifier) == null ? void 0 : se.key]}`,
|
|
4435
4442
|
name: (pe = e.dataIdentifier.inputName) != null ? pe : e.id,
|
|
4436
|
-
onChange: (xe) => ue(
|
|
4443
|
+
onChange: (xe) => ue(U)
|
|
4437
4444
|
}, null, 8, ["id", "label", "checked", "value", "name", "onChange"])) : F("", !0)
|
|
4438
4445
|
];
|
|
4439
4446
|
}),
|
|
4440
|
-
"action-button": q(({ arias:
|
|
4441
|
-
|
|
4447
|
+
"action-button": q(({ arias: U, data: k }) => [
|
|
4448
|
+
C(T.$slots, "action-button", { arias: U }, () => [
|
|
4442
4449
|
_(lt, {
|
|
4443
4450
|
id: `listitem-${e.id}-${P}`,
|
|
4444
4451
|
position: "left"
|
|
4445
4452
|
}, {
|
|
4446
|
-
trigger: q(({ arias:
|
|
4453
|
+
trigger: q(({ arias: V, id: ve, toggle: A }) => [
|
|
4447
4454
|
_(je, {
|
|
4448
|
-
id:
|
|
4449
|
-
"aria-haspopup":
|
|
4450
|
-
"aria-expanded":
|
|
4451
|
-
role:
|
|
4455
|
+
id: ve,
|
|
4456
|
+
"aria-haspopup": V.ariaHaspopup,
|
|
4457
|
+
"aria-expanded": V.ariaExpanded,
|
|
4458
|
+
role: V.role,
|
|
4452
4459
|
size: "small",
|
|
4453
4460
|
variant: "tertiary",
|
|
4454
|
-
"aria-label":
|
|
4461
|
+
"aria-label": U.ariaLabel,
|
|
4455
4462
|
class: "menu-button-trigger",
|
|
4456
|
-
onClick:
|
|
4463
|
+
onClick: A
|
|
4457
4464
|
}, {
|
|
4458
4465
|
"icon-left": q(() => [
|
|
4459
4466
|
_(u(ko), {
|
|
@@ -4465,7 +4472,7 @@ const ko = { name: "material-symbols-more-vert", render: Po }, Bo = ["id", "data
|
|
|
4465
4472
|
}, 1032, ["id", "aria-haspopup", "aria-expanded", "role", "aria-label", "onClick"])
|
|
4466
4473
|
]),
|
|
4467
4474
|
default: q(() => [
|
|
4468
|
-
|
|
4475
|
+
C(T.$slots, "menu", { data: k })
|
|
4469
4476
|
]),
|
|
4470
4477
|
_: 2
|
|
4471
4478
|
}, 1032, ["id"])
|
|
@@ -4475,43 +4482,43 @@ const ko = { name: "material-symbols-more-vert", render: Po }, Bo = ["id", "data
|
|
|
4475
4482
|
}, [
|
|
4476
4483
|
u(s) ? {
|
|
4477
4484
|
name: "image",
|
|
4478
|
-
fn: q(({ data:
|
|
4479
|
-
|
|
4485
|
+
fn: q(({ data: U }) => [
|
|
4486
|
+
C(T.$slots, "image", { data: U })
|
|
4480
4487
|
]),
|
|
4481
4488
|
key: "0"
|
|
4482
4489
|
} : void 0,
|
|
4483
|
-
he(
|
|
4484
|
-
name: `column:${
|
|
4485
|
-
fn: q((
|
|
4486
|
-
|
|
4487
|
-
data:
|
|
4488
|
-
index:
|
|
4490
|
+
he(S, (U, k) => ({
|
|
4491
|
+
name: `column:${k}`,
|
|
4492
|
+
fn: q((V) => [
|
|
4493
|
+
C(T.$slots, `column:${k}`, {
|
|
4494
|
+
data: V.data,
|
|
4495
|
+
index: V.index,
|
|
4489
4496
|
columnIndex: P,
|
|
4490
4497
|
renderHeader: I,
|
|
4491
4498
|
headers: e.headers
|
|
4492
4499
|
})
|
|
4493
4500
|
])
|
|
4494
4501
|
})),
|
|
4495
|
-
he(
|
|
4496
|
-
name: `header:${
|
|
4497
|
-
fn: q((
|
|
4498
|
-
|
|
4499
|
-
data:
|
|
4500
|
-
index:
|
|
4501
|
-
columnIndex:
|
|
4502
|
-
renderHeader:
|
|
4503
|
-
headers:
|
|
4502
|
+
he(S, (U, k) => ({
|
|
4503
|
+
name: `header:${k}`,
|
|
4504
|
+
fn: q((V) => [
|
|
4505
|
+
C(T.$slots, `header:${k}`, {
|
|
4506
|
+
data: V.data,
|
|
4507
|
+
index: V.index,
|
|
4508
|
+
columnIndex: V.columnIndex,
|
|
4509
|
+
renderHeader: V.renderHeader,
|
|
4510
|
+
headers: V.headers
|
|
4504
4511
|
})
|
|
4505
4512
|
])
|
|
4506
4513
|
})),
|
|
4507
|
-
he(
|
|
4508
|
-
name: `value:${
|
|
4509
|
-
fn: q((
|
|
4510
|
-
|
|
4511
|
-
data:
|
|
4512
|
-
index:
|
|
4513
|
-
columnIndex:
|
|
4514
|
-
isHighlight:
|
|
4514
|
+
he(S, (U, k) => ({
|
|
4515
|
+
name: `value:${k}`,
|
|
4516
|
+
fn: q((V) => [
|
|
4517
|
+
C(T.$slots, `value:${k}`, {
|
|
4518
|
+
data: V.data,
|
|
4519
|
+
index: V.index,
|
|
4520
|
+
columnIndex: V.columnIndex,
|
|
4521
|
+
isHighlight: V.isHighlight
|
|
4515
4522
|
})
|
|
4516
4523
|
])
|
|
4517
4524
|
}))
|
|
@@ -4543,7 +4550,7 @@ const Oo = ["id"], _t = /* @__PURE__ */ J({
|
|
|
4543
4550
|
n[2] || (n[2] = De((l) => t("clicked"), ["space"]))
|
|
4544
4551
|
]
|
|
4545
4552
|
}, [
|
|
4546
|
-
|
|
4553
|
+
C(i.$slots, "default")
|
|
4547
4554
|
], 40, Oo));
|
|
4548
4555
|
}
|
|
4549
4556
|
});
|
|
@@ -4575,19 +4582,19 @@ const Yo = ["id"], Vo = ["href", "target"], bt = /* @__PURE__ */ J({
|
|
|
4575
4582
|
n[2] || (n[2] = De((a) => t("clicked"), ["space"]))
|
|
4576
4583
|
]
|
|
4577
4584
|
}, [
|
|
4578
|
-
|
|
4585
|
+
C(i.$slots, "default", {
|
|
4579
4586
|
id: (l = e.linkId) != null ? l : e.id,
|
|
4580
4587
|
active: e.active,
|
|
4581
4588
|
link: e.link,
|
|
4582
4589
|
text: e.text,
|
|
4583
4590
|
external: e.external
|
|
4584
4591
|
}, () => [
|
|
4585
|
-
|
|
4592
|
+
b("a", {
|
|
4586
4593
|
role: "menuitem",
|
|
4587
|
-
class:
|
|
4594
|
+
class: B({ "-active": e.active }),
|
|
4588
4595
|
href: e.link,
|
|
4589
4596
|
target: e.external ? "_blank" : "_parent"
|
|
4590
|
-
},
|
|
4597
|
+
}, O(e.text), 11, Vo)
|
|
4591
4598
|
])
|
|
4592
4599
|
], 40, Yo);
|
|
4593
4600
|
};
|
|
@@ -4609,11 +4616,11 @@ const Wo = { class: "label-container" }, Uo = { class: "label" }, Kt = /* @__PUR
|
|
|
4609
4616
|
class: "sol-menu-navigation-links-core"
|
|
4610
4617
|
}, {
|
|
4611
4618
|
label: q(({ isOpen: n }) => [
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4619
|
+
C(t.$slots, "label", { isOpen: n }, () => [
|
|
4620
|
+
b("div", Wo, [
|
|
4621
|
+
b("span", Uo, O(e.label), 1),
|
|
4615
4622
|
_(u(In), {
|
|
4616
|
-
class:
|
|
4623
|
+
class: B(["icon", { "-opened": n }]),
|
|
4617
4624
|
"aria-hidden": "true"
|
|
4618
4625
|
}, null, 8, ["class"])
|
|
4619
4626
|
])
|
|
@@ -4635,7 +4642,7 @@ const Wo = { class: "label-container" }, Uo = { class: "label" }, Kt = /* @__PUR
|
|
|
4635
4642
|
default: q(() => {
|
|
4636
4643
|
var o;
|
|
4637
4644
|
return [
|
|
4638
|
-
|
|
4645
|
+
C(t.$slots, "default", {
|
|
4639
4646
|
id: (o = l.id) != null ? o : e.id,
|
|
4640
4647
|
active: l.active,
|
|
4641
4648
|
link: l.link,
|
|
@@ -4663,14 +4670,14 @@ const Ho = (e, t) => {
|
|
|
4663
4670
|
}, $o = {}, Qo = { class: "sol-overlay-core" };
|
|
4664
4671
|
function Xo(e, t) {
|
|
4665
4672
|
return g(), y("div", Qo, [
|
|
4666
|
-
|
|
4673
|
+
C(e.$slots, "default")
|
|
4667
4674
|
]);
|
|
4668
4675
|
}
|
|
4669
4676
|
const Fo = /* @__PURE__ */ Ho($o, [["render", Xo]]), Ro = {
|
|
4670
4677
|
viewBox: "0 0 24 24",
|
|
4671
4678
|
width: "1em",
|
|
4672
4679
|
height: "1em"
|
|
4673
|
-
}, Jo = /* @__PURE__ */
|
|
4680
|
+
}, Jo = /* @__PURE__ */ b("path", {
|
|
4674
4681
|
fill: "currentColor",
|
|
4675
4682
|
d: "M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6Z"
|
|
4676
4683
|
}, null, -1), qo = [
|
|
@@ -4716,16 +4723,16 @@ const Ko = { name: "material-symbols-close", render: _o }, eu = ["id", "data-tes
|
|
|
4716
4723
|
var z;
|
|
4717
4724
|
return (z = n.isOpen) != null ? z : o.value;
|
|
4718
4725
|
}), M = Oa(document.body), N = x(() => {
|
|
4719
|
-
var
|
|
4720
|
-
const z = (
|
|
4721
|
-
return `-desktop-${z} -mobile-${
|
|
4726
|
+
var D, G;
|
|
4727
|
+
const z = (D = n.size.desktop) != null ? D : "medium", f = (G = n.size.mobile) != null ? G : "full";
|
|
4728
|
+
return `-desktop-${z} -mobile-${f}`;
|
|
4722
4729
|
}), { navigate: I } = Oe({
|
|
4723
4730
|
Escape: d
|
|
4724
4731
|
});
|
|
4725
4732
|
function d() {
|
|
4726
4733
|
o.value = !1, i("close"), i("update:isOpen", !1);
|
|
4727
4734
|
}
|
|
4728
|
-
function
|
|
4735
|
+
function v() {
|
|
4729
4736
|
o.value = !0, i("open"), i("update:isOpen", !0);
|
|
4730
4737
|
}
|
|
4731
4738
|
function Z() {
|
|
@@ -4734,21 +4741,21 @@ const Ko = { name: "material-symbols-close", render: _o }, eu = ["id", "data-tes
|
|
|
4734
4741
|
`${window.innerHeight}px`
|
|
4735
4742
|
);
|
|
4736
4743
|
}
|
|
4737
|
-
function
|
|
4744
|
+
function p(z) {
|
|
4738
4745
|
Z(), M.value = !!z, z ? setTimeout(() => r.value = !0, 90) : r.value = !1;
|
|
4739
4746
|
}
|
|
4740
|
-
function
|
|
4747
|
+
function L(z, f) {
|
|
4741
4748
|
z && setTimeout(() => {
|
|
4742
|
-
var
|
|
4743
|
-
return (
|
|
4749
|
+
var D;
|
|
4750
|
+
return (D = f == null ? void 0 : f.value) == null ? void 0 : D.focus();
|
|
4744
4751
|
}, 110);
|
|
4745
4752
|
}
|
|
4746
4753
|
return me(c, (z) => {
|
|
4747
|
-
|
|
4754
|
+
p(z), L(z, s);
|
|
4748
4755
|
}, { immediate: !0 }), t({
|
|
4749
4756
|
close: d,
|
|
4750
|
-
open:
|
|
4751
|
-
}), (z,
|
|
4757
|
+
open: v
|
|
4758
|
+
}), (z, f) => (g(), ee(xn, { to: e.target }, [
|
|
4752
4759
|
u(c) ? (g(), ee(Fo, { key: 0 }, {
|
|
4753
4760
|
default: q(() => [
|
|
4754
4761
|
_(ai, {
|
|
@@ -4756,7 +4763,7 @@ const Ko = { name: "material-symbols-close", render: _o }, eu = ["id", "data-tes
|
|
|
4756
4763
|
mode: "out-in"
|
|
4757
4764
|
}, {
|
|
4758
4765
|
default: q(() => [
|
|
4759
|
-
Ce(
|
|
4766
|
+
Ce(b("div", {
|
|
4760
4767
|
id: l.modal,
|
|
4761
4768
|
ref_key: "modal",
|
|
4762
4769
|
ref: s,
|
|
@@ -4764,20 +4771,20 @@ const Ko = { name: "material-symbols-close", render: _o }, eu = ["id", "data-tes
|
|
|
4764
4771
|
tabindex: "-1",
|
|
4765
4772
|
role: "alertdialog",
|
|
4766
4773
|
"aria-modal": "true",
|
|
4767
|
-
class:
|
|
4774
|
+
class: B(["sol-modal-core", u(N)]),
|
|
4768
4775
|
"aria-labelledby": l.headerTitle,
|
|
4769
|
-
onKeyupPassive:
|
|
4776
|
+
onKeyupPassive: f[3] || (f[3] = (...D) => u(I) && u(I)(...D))
|
|
4770
4777
|
}, [
|
|
4771
|
-
|
|
4778
|
+
b("header", {
|
|
4772
4779
|
id: l.header,
|
|
4773
4780
|
"data-testid": a.header,
|
|
4774
4781
|
class: "header"
|
|
4775
4782
|
}, [
|
|
4776
|
-
|
|
4783
|
+
b("h2", {
|
|
4777
4784
|
id: l.headerTitle,
|
|
4778
4785
|
"data-testid": a.headerTitle,
|
|
4779
4786
|
class: "title"
|
|
4780
|
-
},
|
|
4787
|
+
}, O(e.title), 9, iu),
|
|
4781
4788
|
_(je, {
|
|
4782
4789
|
id: l.headerClose,
|
|
4783
4790
|
size: "small",
|
|
@@ -4795,11 +4802,11 @@ const Ko = { name: "material-symbols-close", render: _o }, eu = ["id", "data-tes
|
|
|
4795
4802
|
_: 1
|
|
4796
4803
|
}, 8, ["id"])
|
|
4797
4804
|
], 8, tu),
|
|
4798
|
-
|
|
4799
|
-
|
|
4805
|
+
b("main", nu, [
|
|
4806
|
+
C(z.$slots, "default")
|
|
4800
4807
|
]),
|
|
4801
|
-
|
|
4802
|
-
|
|
4808
|
+
b("footer", lu, [
|
|
4809
|
+
C(z.$slots, "action-tertiary", {
|
|
4803
4810
|
id: l.actionTertiary
|
|
4804
4811
|
}, () => [
|
|
4805
4812
|
e.actionTertiaryText ? (g(), ee(je, {
|
|
@@ -4807,16 +4814,16 @@ const Ko = { name: "material-symbols-close", render: _o }, eu = ["id", "data-tes
|
|
|
4807
4814
|
id: l.actionTertiary,
|
|
4808
4815
|
variant: "tertiary",
|
|
4809
4816
|
size: "medium",
|
|
4810
|
-
onClick:
|
|
4817
|
+
onClick: f[0] || (f[0] = (D) => i("action:primary"))
|
|
4811
4818
|
}, {
|
|
4812
4819
|
default: q(() => [
|
|
4813
|
-
re(
|
|
4820
|
+
re(O(e.actionTertiaryText), 1)
|
|
4814
4821
|
]),
|
|
4815
4822
|
_: 1
|
|
4816
4823
|
}, 8, ["id"])) : F("", !0)
|
|
4817
4824
|
]),
|
|
4818
|
-
|
|
4819
|
-
|
|
4825
|
+
b("div", au, [
|
|
4826
|
+
C(z.$slots, "action-secondary", {
|
|
4820
4827
|
id: l.actionSecondary
|
|
4821
4828
|
}, () => [
|
|
4822
4829
|
e.actionSecondaryText ? (g(), ee(je, {
|
|
@@ -4824,15 +4831,15 @@ const Ko = { name: "material-symbols-close", render: _o }, eu = ["id", "data-tes
|
|
|
4824
4831
|
id: l.actionSecondary,
|
|
4825
4832
|
variant: "secondary",
|
|
4826
4833
|
size: "medium",
|
|
4827
|
-
onClick:
|
|
4834
|
+
onClick: f[1] || (f[1] = (D) => i("action:secondary"))
|
|
4828
4835
|
}, {
|
|
4829
4836
|
default: q(() => [
|
|
4830
|
-
re(
|
|
4837
|
+
re(O(e.actionSecondaryText), 1)
|
|
4831
4838
|
]),
|
|
4832
4839
|
_: 1
|
|
4833
4840
|
}, 8, ["id"])) : F("", !0)
|
|
4834
4841
|
]),
|
|
4835
|
-
|
|
4842
|
+
C(z.$slots, "action-primary", {
|
|
4836
4843
|
id: l.actionPrimary
|
|
4837
4844
|
}, () => [
|
|
4838
4845
|
e.actionPrimaryText ? (g(), ee(je, {
|
|
@@ -4840,10 +4847,10 @@ const Ko = { name: "material-symbols-close", render: _o }, eu = ["id", "data-tes
|
|
|
4840
4847
|
id: l.actionPrimary,
|
|
4841
4848
|
size: "medium",
|
|
4842
4849
|
variant: "primary",
|
|
4843
|
-
onClick:
|
|
4850
|
+
onClick: f[2] || (f[2] = (D) => i("action:tertiary"))
|
|
4844
4851
|
}, {
|
|
4845
4852
|
default: q(() => [
|
|
4846
|
-
re(
|
|
4853
|
+
re(O(e.actionPrimaryText), 1)
|
|
4847
4854
|
]),
|
|
4848
4855
|
_: 1
|
|
4849
4856
|
}, 8, ["id"])) : F("", !0)
|
|
@@ -4869,7 +4876,7 @@ const su = {
|
|
|
4869
4876
|
viewBox: "0 0 24 24",
|
|
4870
4877
|
width: "1em",
|
|
4871
4878
|
height: "1em"
|
|
4872
|
-
}, ou = /* @__PURE__ */
|
|
4879
|
+
}, ou = /* @__PURE__ */ b("path", {
|
|
4873
4880
|
fill: "currentColor",
|
|
4874
4881
|
d: "m13.3 17.3l-4.6-4.6q-.15-.15-.212-.325q-.063-.175-.063-.375t.063-.375q.062-.175.212-.325l4.6-4.6q.275-.275.7-.275q.425 0 .7.275q.275.275.275.7q0 .425-.275.7L10.8 12l3.9 3.9q.275.275.275.7q0 .425-.275.7q-.275.275-.7.275q-.425 0-.7-.275Z"
|
|
4875
4882
|
}, null, -1), uu = [
|
|
@@ -4882,7 +4889,7 @@ const cu = { name: "material-symbols-chevron-left-rounded", render: ru }, du = {
|
|
|
4882
4889
|
viewBox: "0 0 24 24",
|
|
4883
4890
|
width: "1em",
|
|
4884
4891
|
height: "1em"
|
|
4885
|
-
}, Iu = /* @__PURE__ */
|
|
4892
|
+
}, Iu = /* @__PURE__ */ b("path", {
|
|
4886
4893
|
fill: "currentColor",
|
|
4887
4894
|
d: "M8.7 17.3q-.275-.275-.275-.7q0-.425.275-.7l3.9-3.9l-3.9-3.9q-.275-.275-.275-.7q0-.425.275-.7q.275-.275.7-.275q.425 0 .7.275l4.6 4.6q.15.15.213.325q.062.175.062.375t-.062.375q-.063.175-.213.325l-4.6 4.6q-.275.275-.7.275q-.425 0-.7-.275Z"
|
|
4888
4895
|
}, null, -1), Mu = [
|
|
@@ -4971,7 +4978,7 @@ const gu = { name: "material-symbols-chevron-right-rounded", render: mu }, Nu =
|
|
|
4971
4978
|
"dropdown-position": e.openMenuPosition,
|
|
4972
4979
|
"onUpdate:selected": M
|
|
4973
4980
|
}, null, 8, ["id", "selected", "options", "size", "dropdown-position"]),
|
|
4974
|
-
|
|
4981
|
+
b("span", ju, "de " + O(s()), 1),
|
|
4975
4982
|
_(je, {
|
|
4976
4983
|
id: `next-page-${e.id}`,
|
|
4977
4984
|
variant: "tertiary",
|
|
@@ -5042,16 +5049,16 @@ const yu = "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTU0IDE1NCIgZmlsbD
|
|
|
5042
5049
|
"data-testid": `empty-state-${e.id}`,
|
|
5043
5050
|
class: "sol-empty-state-core"
|
|
5044
5051
|
}, [
|
|
5045
|
-
|
|
5046
|
-
|
|
5052
|
+
b("figure", xu, [
|
|
5053
|
+
b("img", {
|
|
5047
5054
|
src: u(i),
|
|
5048
5055
|
alt: `${n(e.variant)}`
|
|
5049
5056
|
}, null, 8, wu)
|
|
5050
5057
|
]),
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5058
|
+
b("h1", Zu, O(e.title), 1),
|
|
5059
|
+
b("p", Tu, O(e.subtitle), 1),
|
|
5060
|
+
b("div", zu, [
|
|
5061
|
+
C(l.$slots, "button")
|
|
5055
5062
|
])
|
|
5056
5063
|
], 8, Au));
|
|
5057
5064
|
}
|
|
@@ -5147,7 +5154,7 @@ const Gu = {
|
|
|
5147
5154
|
viewBox: "0 0 24 24",
|
|
5148
5155
|
width: "1em",
|
|
5149
5156
|
height: "1em"
|
|
5150
|
-
}, pu = /* @__PURE__ */
|
|
5157
|
+
}, pu = /* @__PURE__ */ b("path", {
|
|
5151
5158
|
fill: "currentColor",
|
|
5152
5159
|
d: "m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"
|
|
5153
5160
|
}, null, -1), Eu = [
|
|
@@ -5160,7 +5167,7 @@ const ku = { name: "material-symbols-check-circle", render: Pu }, Bu = {
|
|
|
5160
5167
|
viewBox: "0 0 24 24",
|
|
5161
5168
|
width: "1em",
|
|
5162
5169
|
height: "1em"
|
|
5163
|
-
}, Ou = /* @__PURE__ */
|
|
5170
|
+
}, Ou = /* @__PURE__ */ b("path", {
|
|
5164
5171
|
fill: "currentColor",
|
|
5165
5172
|
d: "m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"
|
|
5166
5173
|
}, null, -1), Yu = [
|
|
@@ -5173,7 +5180,7 @@ const Wu = { name: "material-symbols-cancel", render: Vu }, Uu = {
|
|
|
5173
5180
|
viewBox: "0 0 24 24",
|
|
5174
5181
|
width: "1em",
|
|
5175
5182
|
height: "1em"
|
|
5176
|
-
}, Hu = /* @__PURE__ */
|
|
5183
|
+
}, Hu = /* @__PURE__ */ b("path", {
|
|
5177
5184
|
fill: "currentColor",
|
|
5178
5185
|
d: "M12 17q.425 0 .713-.288Q13 16.425 13 16t-.287-.713Q12.425 15 12 15t-.712.287Q11 15.575 11 16t.288.712Q11.575 17 12 17Zm0 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-9q.425 0 .713-.288Q13 12.425 13 12V8q0-.425-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8v4q0 .425.288.712q.287.288.712.288Z"
|
|
5179
5186
|
}, null, -1), $u = [
|
|
@@ -5239,7 +5246,7 @@ const Xu = { name: "material-symbols-error-circle-rounded", render: Qu }, Fu = [
|
|
|
5239
5246
|
role: "alert",
|
|
5240
5247
|
"aria-live": "assertive",
|
|
5241
5248
|
style: Nt(u(a)),
|
|
5242
|
-
class:
|
|
5249
|
+
class: B(["sol-toast-core", [`-${e.type} -${e.position}`, { "-multiline": u(s) }]]),
|
|
5243
5250
|
onKeyup: N[0] || (N[0] = De(
|
|
5244
5251
|
(...I) => e.onCloseHandler && e.onCloseHandler(...I),
|
|
5245
5252
|
["esc"]
|
|
@@ -5249,9 +5256,9 @@ const Xu = { name: "material-symbols-error-circle-rounded", render: Qu }, Fu = [
|
|
|
5249
5256
|
onFocusin: o,
|
|
5250
5257
|
onFocusout: r
|
|
5251
5258
|
}, [
|
|
5252
|
-
|
|
5259
|
+
b("section", Ru, [
|
|
5253
5260
|
e.showIcon ? (g(), y("div", Ju, [
|
|
5254
|
-
|
|
5261
|
+
C(M.$slots, "icon-status", { type: e.type }, () => [
|
|
5255
5262
|
e.type === "success" ? (g(), ee(u(ku), {
|
|
5256
5263
|
key: 0,
|
|
5257
5264
|
class: "icon"
|
|
@@ -5266,24 +5273,24 @@ const Xu = { name: "material-symbols-error-circle-rounded", render: Qu }, Fu = [
|
|
|
5266
5273
|
})) : F("", !0)
|
|
5267
5274
|
])
|
|
5268
5275
|
])) : F("", !0),
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
class:
|
|
5276
|
+
b("div", qu, [
|
|
5277
|
+
b("p", {
|
|
5278
|
+
class: B(["title", { "-multiline": u(s) }])
|
|
5272
5279
|
}, [
|
|
5273
|
-
|
|
5274
|
-
re(
|
|
5280
|
+
C(M.$slots, "title", {}, () => [
|
|
5281
|
+
re(O(e.title), 1)
|
|
5275
5282
|
])
|
|
5276
5283
|
], 2),
|
|
5277
5284
|
e.description ? (g(), y("p", _u, [
|
|
5278
|
-
|
|
5279
|
-
re(
|
|
5285
|
+
C(M.$slots, "description", {}, () => [
|
|
5286
|
+
re(O(e.description), 1)
|
|
5280
5287
|
])
|
|
5281
5288
|
])) : F("", !0)
|
|
5282
5289
|
])
|
|
5283
5290
|
]),
|
|
5284
5291
|
_(je, {
|
|
5285
5292
|
id: `toast-action-${e.type}-${e.position}`,
|
|
5286
|
-
class:
|
|
5293
|
+
class: B(["action", { "-multiline": u(s) }]),
|
|
5287
5294
|
size: "small",
|
|
5288
5295
|
"on-color": e.type !== "warning",
|
|
5289
5296
|
variant: "tertiary",
|
|
@@ -5291,7 +5298,7 @@ const Xu = { name: "material-symbols-error-circle-rounded", render: Qu }, Fu = [
|
|
|
5291
5298
|
onClick: c
|
|
5292
5299
|
}, {
|
|
5293
5300
|
default: q(() => [
|
|
5294
|
-
re(
|
|
5301
|
+
re(O(e.actionText), 1)
|
|
5295
5302
|
]),
|
|
5296
5303
|
_: 1
|
|
5297
5304
|
}, 8, ["id", "on-color", "class"]),
|