@solfacil/girassol 0.2.9 → 0.2.12
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 +310 -294
- package/dist/girassol.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/miscs.d.ts +7 -0
- package/dist/theme/solfacil/spacing.d.ts +3 -0
- package/dist/types/components/forms/radio/index.d.ts +2 -2
- package/dist/types/components/forms/radio/{Radio.vue.d.ts → radio/Radio.vue.d.ts} +8 -8
- package/dist/types/components/forms/radio/{radio.spec.d.ts → radio/radio.spec.d.ts} +0 -0
- package/dist/types/components/forms/radio/{RadioGroup.vue.d.ts → radio-group/RadioGroup.vue.d.ts} +14 -14
- package/dist/types/components/forms/radio/{radio-group.spec.d.ts → radio-group/radio-group.spec.d.ts} +0 -0
- package/dist/types/components/forms/radio/{radio-type.d.ts → types.d.ts} +0 -0
- package/dist/types/components/menus/menu-item/menu-item-link/MenuItemLink.vue.d.ts +4 -0
- package/dist/types/components/menus/menu-item/menu-item-link/types.d.ts +1 -0
- package/dist/types/index.d.ts +45 -33
- package/package.json +1 -1
- package/theme/solfacil/spacing.ts +2 -1
package/dist/girassol.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, openBlock as s, createElementBlock as r, normalizeClass as
|
|
1
|
+
import { defineComponent as O, openBlock as s, createElementBlock as r, normalizeClass as k, createElementVNode as u, useSlots as Ye, computed as p, unref as $, renderSlot as m, createVNode as L, createCommentVNode as T, createBlock as R, withCtx as E, ref as z, toDisplayString as x, mergeProps as U, isRef as Ee, withDirectives as Y, vShow as X, vModelText as We, Fragment as j, renderList as Z, getCurrentScope as je, onScopeDispose as Ze, watch as Je, reactive as ie, withModifiers as q, createTextVNode as D, Transition as Me, normalizeStyle as ae, withKeys as K, onMounted as pe, onUnmounted as Xe, render as De } from "vue";
|
|
2
2
|
const _e = /* @__PURE__ */ u("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"
|
|
@@ -12,7 +12,7 @@ const _e = /* @__PURE__ */ u("path", {
|
|
|
12
12
|
},
|
|
13
13
|
setup(e) {
|
|
14
14
|
return (n, t) => (s(), r("svg", {
|
|
15
|
-
class:
|
|
15
|
+
class: k(["sol-inner-loader", `-${e.size}`]),
|
|
16
16
|
viewBox: "0 0 32 32",
|
|
17
17
|
fill: "none",
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -43,7 +43,7 @@ const nt = ["data-testid", "disabled"], lt = { class: "icon -left" }, it = { cla
|
|
|
43
43
|
);
|
|
44
44
|
return (a, o) => (s(), r("button", {
|
|
45
45
|
"data-testid": `button-${e.id}`,
|
|
46
|
-
class:
|
|
46
|
+
class: k(["sol-button-core", `-${e.variant} -${e.size}
|
|
47
47
|
${n(e.loading, "-loading-helper")}
|
|
48
48
|
${n(e.onColor, "-on-color")}
|
|
49
49
|
${n($(i), "-has-icon")}
|
|
@@ -136,7 +136,7 @@ const ut = ["id", "data-testid", "value"], W = /* @__PURE__ */ O({
|
|
|
136
136
|
ref: l,
|
|
137
137
|
"data-testid": `input-${e.id}`,
|
|
138
138
|
value: e.modelValue,
|
|
139
|
-
class:
|
|
139
|
+
class: k(["sol-input-core", { "-invert": e.invert, "-error": e.error }]),
|
|
140
140
|
onInput: i
|
|
141
141
|
}, null, 42, ut));
|
|
142
142
|
}
|
|
@@ -174,7 +174,7 @@ const ht = ["id", "data-testid"], ft = ["for"], mt = { class: "container-input"
|
|
|
174
174
|
return s(), r("div", {
|
|
175
175
|
id: `textfield-${e.id}`,
|
|
176
176
|
"data-testid": `textfield-${e.id}`,
|
|
177
|
-
class:
|
|
177
|
+
class: k([[`${(c = o.$props.class) != null ? c : ""}`, { "-invert": e.invert }], "sol-textfield-core"])
|
|
178
178
|
}, [
|
|
179
179
|
m(o.$slots, "label", {}, () => [
|
|
180
180
|
e.label ? (s(), r("label", {
|
|
@@ -182,7 +182,7 @@ const ht = ["id", "data-testid"], ft = ["for"], mt = { class: "container-input"
|
|
|
182
182
|
for: `input-${e.id}`,
|
|
183
183
|
class: "label"
|
|
184
184
|
}, [
|
|
185
|
-
u("span", null,
|
|
185
|
+
u("span", null, x(e.label), 1)
|
|
186
186
|
], 8, ft)) : T("", !0)
|
|
187
187
|
]),
|
|
188
188
|
u("div", mt, [
|
|
@@ -204,11 +204,11 @@ const ht = ["id", "data-testid"], ft = ["for"], mt = { class: "container-input"
|
|
|
204
204
|
key: 0,
|
|
205
205
|
id: `hint-${e.id}`,
|
|
206
206
|
class: "hint"
|
|
207
|
-
},
|
|
207
|
+
}, x(e.hint), 9, vt)) : e.error ? (s(), r("span", {
|
|
208
208
|
key: 1,
|
|
209
209
|
id: `error-${e.id}`,
|
|
210
210
|
class: "error"
|
|
211
|
-
},
|
|
211
|
+
}, x(e.error), 9, $t)) : T("", !0)
|
|
212
212
|
], 10, ht);
|
|
213
213
|
};
|
|
214
214
|
}
|
|
@@ -227,7 +227,7 @@ const bt = {
|
|
|
227
227
|
function wt(e, n) {
|
|
228
228
|
return s(), r("svg", bt, gt);
|
|
229
229
|
}
|
|
230
|
-
const
|
|
230
|
+
const kt = { name: "mi-eye", render: wt }, xt = {
|
|
231
231
|
preserveAspectRatio: "xMidYMid meet",
|
|
232
232
|
viewBox: "0 0 24 24",
|
|
233
233
|
width: "1em",
|
|
@@ -238,10 +238,10 @@ const xt = { name: "mi-eye", render: wt }, kt = {
|
|
|
238
238
|
}, null, -1), Ct = [
|
|
239
239
|
St
|
|
240
240
|
];
|
|
241
|
-
function
|
|
242
|
-
return s(), r("svg",
|
|
241
|
+
function It(e, n) {
|
|
242
|
+
return s(), r("svg", xt, Ct);
|
|
243
243
|
}
|
|
244
|
-
const
|
|
244
|
+
const Bt = { name: "mi-eye-off", render: It }, Ot = ["aria-label"], $e = /* @__PURE__ */ O({
|
|
245
245
|
__name: "TextfieldPassword",
|
|
246
246
|
props: {
|
|
247
247
|
id: { default: "" },
|
|
@@ -265,10 +265,10 @@ const It = { name: "mi-eye-off", render: Bt }, Ot = ["aria-label"], $e = /* @__P
|
|
|
265
265
|
"aria-label": n.value ? "Hide password" : "Show password",
|
|
266
266
|
onClick: l[0] || (l[0] = (a) => n.value = !n.value)
|
|
267
267
|
}, [
|
|
268
|
-
Y(L($(
|
|
268
|
+
Y(L($(kt), { "aria-hidden": "true" }, null, 512), [
|
|
269
269
|
[X, n.value]
|
|
270
270
|
]),
|
|
271
|
-
Y(L($(
|
|
271
|
+
Y(L($(Bt), { "aria-hidden": "true" }, null, 512), [
|
|
272
272
|
[X, !n.value]
|
|
273
273
|
])
|
|
274
274
|
], 8, Ot)
|
|
@@ -314,7 +314,7 @@ const Mt = ["id", "data-testid"], Tt = ["for"], Lt = { class: "container-textare
|
|
|
314
314
|
return s(), r("div", {
|
|
315
315
|
id: `textarea-${e.id}`,
|
|
316
316
|
"data-testid": `textarea-${e.id}`,
|
|
317
|
-
class:
|
|
317
|
+
class: k([[`${(c = o.$props.class) != null ? c : ""}`, { "-invert": e.invert }], "sol-textarea-core"])
|
|
318
318
|
}, [
|
|
319
319
|
m(o.$slots, "label", {}, () => [
|
|
320
320
|
e.label ? (s(), r("label", {
|
|
@@ -322,7 +322,7 @@ const Mt = ["id", "data-testid"], Tt = ["for"], Lt = { class: "container-textare
|
|
|
322
322
|
for: `input-${e.id}`,
|
|
323
323
|
class: "label"
|
|
324
324
|
}, [
|
|
325
|
-
u("span", null,
|
|
325
|
+
u("span", null, x(e.label), 1)
|
|
326
326
|
], 8, Tt)) : T("", !0)
|
|
327
327
|
]),
|
|
328
328
|
u("div", Lt, [
|
|
@@ -345,11 +345,11 @@ const Mt = ["id", "data-testid"], Tt = ["for"], Lt = { class: "container-textare
|
|
|
345
345
|
key: 0,
|
|
346
346
|
id: `hint-${e.id}`,
|
|
347
347
|
class: "hint"
|
|
348
|
-
},
|
|
348
|
+
}, x(e.hint), 9, zt)) : e.error ? (s(), r("span", {
|
|
349
349
|
key: 1,
|
|
350
350
|
id: `error-${e.id}`,
|
|
351
351
|
class: "error"
|
|
352
|
-
},
|
|
352
|
+
}, x(e.error), 9, Vt)) : T("", !0)
|
|
353
353
|
], 10, Mt);
|
|
354
354
|
};
|
|
355
355
|
}
|
|
@@ -357,7 +357,10 @@ const Mt = ["id", "data-testid"], Tt = ["for"], Lt = { class: "container-textare
|
|
|
357
357
|
be.install = (e) => {
|
|
358
358
|
e.component("SolTextarea", be);
|
|
359
359
|
};
|
|
360
|
-
const At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"],
|
|
360
|
+
const At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], pt = {
|
|
361
|
+
inheritAttrs: !1
|
|
362
|
+
}, se = /* @__PURE__ */ O({
|
|
363
|
+
...pt,
|
|
361
364
|
__name: "Radio",
|
|
362
365
|
props: {
|
|
363
366
|
id: null,
|
|
@@ -370,7 +373,7 @@ const At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], se =
|
|
|
370
373
|
emits: ["change"],
|
|
371
374
|
setup(e, { emit: n }) {
|
|
372
375
|
return (t, i) => (s(), r("div", {
|
|
373
|
-
class:
|
|
376
|
+
class: k(["sol-radio-core", t.$props.class])
|
|
374
377
|
}, [
|
|
375
378
|
u("input", U(t.$attrs, {
|
|
376
379
|
id: `radio-${e.name}-${e.id}`,
|
|
@@ -385,11 +388,11 @@ const At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], se =
|
|
|
385
388
|
u("label", {
|
|
386
389
|
class: "label",
|
|
387
390
|
for: `radio-${e.name}-${e.id}`
|
|
388
|
-
},
|
|
391
|
+
}, x(e.label), 9, Et)
|
|
389
392
|
], 2));
|
|
390
393
|
}
|
|
391
394
|
});
|
|
392
|
-
const
|
|
395
|
+
const Dt = ["aria-labelledby"], Nt = ["id", "data-testid"], Rt = ["id", "data-testid"], Ht = ["id", "data-testid"], ye = /* @__PURE__ */ O({
|
|
393
396
|
__name: "RadioGroup",
|
|
394
397
|
props: {
|
|
395
398
|
id: null,
|
|
@@ -425,22 +428,22 @@ const pt = ["aria-labelledby"], Dt = ["id", "data-testid"], Nt = ["id"], Rt = ["
|
|
|
425
428
|
}, () => [
|
|
426
429
|
u("legend", {
|
|
427
430
|
id: `radio-group-title-${e.id}`,
|
|
428
|
-
class:
|
|
431
|
+
class: k(["title", { "sr-only": e.hideTitle }]),
|
|
429
432
|
"data-testid": `radio-group-title-${e.id}`
|
|
430
|
-
},
|
|
433
|
+
}, x(e.title), 11, Nt)
|
|
431
434
|
]),
|
|
432
435
|
u("ul", {
|
|
433
|
-
class:
|
|
436
|
+
class: k(["container-radios", { "flex-col": e.direction === "column" }])
|
|
434
437
|
}, [
|
|
435
438
|
m(d.$slots, "default", {
|
|
436
439
|
radios: e.radios,
|
|
437
440
|
direction: e.direction
|
|
438
441
|
}, () => [
|
|
439
442
|
(s(!0), r(j, null, Z(e.radios, (h, f) => {
|
|
440
|
-
var
|
|
443
|
+
var I;
|
|
441
444
|
return s(), r("li", { key: f }, [
|
|
442
445
|
L(se, U(d.$attrs, {
|
|
443
|
-
id: (
|
|
446
|
+
id: (I = h == null ? void 0 : h.id) != null ? I : `${h.value}`,
|
|
444
447
|
class: ["radio", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
|
|
445
448
|
name: h.name,
|
|
446
449
|
value: h.value,
|
|
@@ -456,14 +459,16 @@ const pt = ["aria-labelledby"], Dt = ["id", "data-testid"], Nt = ["id"], Rt = ["
|
|
|
456
459
|
], 2),
|
|
457
460
|
i(e.hint, e.error) ? (s(), r("p", {
|
|
458
461
|
key: 0,
|
|
459
|
-
id: `hint-${e.id}`,
|
|
462
|
+
id: `radios-hint-${e.id}`,
|
|
463
|
+
"data-testid": `radios-hint-${e.id}`,
|
|
460
464
|
class: "hint"
|
|
461
|
-
},
|
|
465
|
+
}, x(e.hint), 9, Rt)) : e.error ? (s(), r("p", {
|
|
462
466
|
key: 1,
|
|
463
|
-
id: `error-${e.id}`,
|
|
467
|
+
id: `radios-error-${e.id}`,
|
|
468
|
+
"data-testid": `radios-error-${e.id}`,
|
|
464
469
|
class: "error"
|
|
465
|
-
},
|
|
466
|
-
], 8,
|
|
470
|
+
}, x(e.error), 9, Ht)) : T("", !0)
|
|
471
|
+
], 8, Dt));
|
|
467
472
|
}
|
|
468
473
|
});
|
|
469
474
|
se.install = (e) => {
|
|
@@ -472,7 +477,7 @@ se.install = (e) => {
|
|
|
472
477
|
ye.install = (e) => {
|
|
473
478
|
e.component("SolRadioGroup", ye);
|
|
474
479
|
};
|
|
475
|
-
const
|
|
480
|
+
const Ft = ["id", "data-testid", "checked", "value", "name"], qt = ["for"], de = /* @__PURE__ */ O({
|
|
476
481
|
__name: "Checkbox",
|
|
477
482
|
props: {
|
|
478
483
|
id: null,
|
|
@@ -485,7 +490,7 @@ const Ht = ["id", "data-testid", "checked", "value", "name"], Ft = ["for"], de =
|
|
|
485
490
|
emits: ["change"],
|
|
486
491
|
setup(e, { emit: n }) {
|
|
487
492
|
return (t, i) => (s(), r("div", {
|
|
488
|
-
class:
|
|
493
|
+
class: k(["sol-checkbox-core", t.$props.class])
|
|
489
494
|
}, [
|
|
490
495
|
u("input", U(t.$attrs, {
|
|
491
496
|
id: `checkbox-${e.name}-${e.id}`,
|
|
@@ -496,15 +501,15 @@ const Ht = ["id", "data-testid", "checked", "value", "name"], Ft = ["for"], de =
|
|
|
496
501
|
value: e.value,
|
|
497
502
|
name: e.name,
|
|
498
503
|
onChange: i[0] || (i[0] = (l) => n("change", e.value))
|
|
499
|
-
}), null, 16,
|
|
504
|
+
}), null, 16, Ft),
|
|
500
505
|
u("label", {
|
|
501
506
|
class: "label",
|
|
502
507
|
for: `checkbox-${e.name}-${e.id}`
|
|
503
|
-
},
|
|
508
|
+
}, x(e.label), 9, qt)
|
|
504
509
|
], 2));
|
|
505
510
|
}
|
|
506
511
|
});
|
|
507
|
-
const
|
|
512
|
+
const Kt = ["aria-labelledby"], Ut = ["id", "data-testid"], Gt = ["id"], Qt = ["id"], ge = /* @__PURE__ */ O({
|
|
508
513
|
__name: "CheckboxGroup",
|
|
509
514
|
props: {
|
|
510
515
|
id: null,
|
|
@@ -535,7 +540,7 @@ const qt = ["aria-labelledby"], Kt = ["id", "data-testid"], Ut = ["id"], Gt = ["
|
|
|
535
540
|
function d(c) {
|
|
536
541
|
var f;
|
|
537
542
|
n("change", c.value);
|
|
538
|
-
const h = a(c.value) ? (f = t.modelValue) == null ? void 0 : f.filter((
|
|
543
|
+
const h = a(c.value) ? (f = t.modelValue) == null ? void 0 : f.filter((I) => I !== c.value) : o(c.value);
|
|
539
544
|
n("update:modelValue", h);
|
|
540
545
|
}
|
|
541
546
|
return (c, h) => (s(), r("fieldset", {
|
|
@@ -547,20 +552,20 @@ const qt = ["aria-labelledby"], Kt = ["id", "data-testid"], Ut = ["id"], Gt = ["
|
|
|
547
552
|
}, () => [
|
|
548
553
|
u("legend", {
|
|
549
554
|
id: `checkbox-group-title-${e.id}`,
|
|
550
|
-
class:
|
|
555
|
+
class: k(["title", { "sr-only": e.hideTitle }]),
|
|
551
556
|
"data-testid": `checkbox-group-title-${e.id}`
|
|
552
|
-
},
|
|
557
|
+
}, x(e.title), 11, Ut)
|
|
553
558
|
]),
|
|
554
559
|
u("ul", {
|
|
555
|
-
class:
|
|
560
|
+
class: k(["container-checkboxes", { "flex-col": e.direction === "column" }])
|
|
556
561
|
}, [
|
|
557
562
|
m(c.$slots, "default", {
|
|
558
563
|
checkboxes: e.checkboxes,
|
|
559
564
|
direction: e.direction
|
|
560
565
|
}, () => [
|
|
561
|
-
(s(!0), r(j, null, Z(e.checkboxes, (f,
|
|
566
|
+
(s(!0), r(j, null, Z(e.checkboxes, (f, I) => {
|
|
562
567
|
var y;
|
|
563
|
-
return s(), r("li", { key:
|
|
568
|
+
return s(), r("li", { key: I }, [
|
|
564
569
|
L(de, U(c.$attrs, {
|
|
565
570
|
id: (y = f == null ? void 0 : f.id) != null ? y : `${f.value}`,
|
|
566
571
|
class: ["checkbox", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
|
|
@@ -580,12 +585,12 @@ const qt = ["aria-labelledby"], Kt = ["id", "data-testid"], Ut = ["id"], Gt = ["
|
|
|
580
585
|
key: 0,
|
|
581
586
|
id: `hint-${e.id}`,
|
|
582
587
|
class: "hint"
|
|
583
|
-
},
|
|
588
|
+
}, x(e.hint), 9, Gt)) : e.error ? (s(), r("p", {
|
|
584
589
|
key: 1,
|
|
585
590
|
id: `error-${e.id}`,
|
|
586
591
|
class: "error"
|
|
587
|
-
},
|
|
588
|
-
], 8,
|
|
592
|
+
}, x(e.error), 9, Qt)) : T("", !0)
|
|
593
|
+
], 8, Kt));
|
|
589
594
|
}
|
|
590
595
|
});
|
|
591
596
|
de.install = (e) => {
|
|
@@ -594,7 +599,7 @@ de.install = (e) => {
|
|
|
594
599
|
ge.install = (e) => {
|
|
595
600
|
e.component("SolCheckboxGroup", ge);
|
|
596
601
|
};
|
|
597
|
-
const
|
|
602
|
+
const Yt = ["id", "for", "data-testid"], Wt = { class: "switch-container" }, jt = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"], Zt = /* @__PURE__ */ u("span", { class: "ellipse" }, null, -1), we = /* @__PURE__ */ O({
|
|
598
603
|
__name: "Switch",
|
|
599
604
|
props: {
|
|
600
605
|
id: null,
|
|
@@ -609,15 +614,15 @@ const Qt = ["id", "for", "data-testid"], Yt = { class: "switch-container" }, Wt
|
|
|
609
614
|
emits: ["change"],
|
|
610
615
|
setup(e, { emit: n }) {
|
|
611
616
|
return (t, i) => (s(), r("div", {
|
|
612
|
-
class:
|
|
617
|
+
class: k(["sol-switch-core", [t.$props.class, { "-horizontal": e.horizontalLabel }]])
|
|
613
618
|
}, [
|
|
614
619
|
u("label", {
|
|
615
620
|
id: `switch-label-${e.name}-${e.id}`,
|
|
616
|
-
class:
|
|
621
|
+
class: k(["label", { "mb-1": !e.horizontalLabel, "sr-only": e.hideLabel }]),
|
|
617
622
|
for: `switch-${e.name}-${e.id}`,
|
|
618
623
|
"data-testid": `switch-label-${e.name}-${e.id}`
|
|
619
|
-
},
|
|
620
|
-
u("div",
|
|
624
|
+
}, x(e.label), 11, Yt),
|
|
625
|
+
u("div", Wt, [
|
|
621
626
|
u("input", U(t.$attrs, {
|
|
622
627
|
id: `switch-${e.name}-${e.id}`,
|
|
623
628
|
type: "checkbox",
|
|
@@ -630,8 +635,8 @@ const Qt = ["id", "for", "data-testid"], Yt = { class: "switch-container" }, Wt
|
|
|
630
635
|
value: e.value,
|
|
631
636
|
name: e.name,
|
|
632
637
|
onChange: i[0] || (i[0] = (l) => n("change", e.value))
|
|
633
|
-
}), null, 16,
|
|
634
|
-
|
|
638
|
+
}), null, 16, jt),
|
|
639
|
+
Zt
|
|
635
640
|
])
|
|
636
641
|
], 2));
|
|
637
642
|
}
|
|
@@ -640,21 +645,21 @@ we.install = (e) => {
|
|
|
640
645
|
e.component("SolSwitch", we);
|
|
641
646
|
};
|
|
642
647
|
var Le;
|
|
643
|
-
const te = typeof window < "u",
|
|
648
|
+
const te = typeof window < "u", Jt = (e) => typeof e == "string", ve = () => {
|
|
644
649
|
};
|
|
645
650
|
te && ((Le = window == null ? void 0 : window.navigator) == null ? void 0 : Le.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
646
|
-
function
|
|
651
|
+
function Xt(e) {
|
|
647
652
|
return typeof e == "function" ? e() : $(e);
|
|
648
653
|
}
|
|
649
|
-
function
|
|
654
|
+
function _t(e) {
|
|
650
655
|
return e;
|
|
651
656
|
}
|
|
652
|
-
function
|
|
657
|
+
function en(e) {
|
|
653
658
|
return je() ? (Ze(e), !0) : !1;
|
|
654
659
|
}
|
|
655
660
|
function J(e) {
|
|
656
661
|
var n;
|
|
657
|
-
const t =
|
|
662
|
+
const t = Xt(e);
|
|
658
663
|
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
659
664
|
}
|
|
660
665
|
const Re = te ? window : void 0;
|
|
@@ -663,7 +668,7 @@ te && window.navigator;
|
|
|
663
668
|
te && window.location;
|
|
664
669
|
function le(...e) {
|
|
665
670
|
let n, t, i, l;
|
|
666
|
-
if (
|
|
671
|
+
if (Jt(e[0]) ? ([t, i, l] = e, n = Re) : [n, t, i, l] = e, !n)
|
|
667
672
|
return ve;
|
|
668
673
|
let a = ve;
|
|
669
674
|
const o = Je(() => J(n), (c) => {
|
|
@@ -673,7 +678,7 @@ function le(...e) {
|
|
|
673
678
|
}, { immediate: !0, flush: "post" }), d = () => {
|
|
674
679
|
o(), a();
|
|
675
680
|
};
|
|
676
|
-
return
|
|
681
|
+
return en(d), d;
|
|
677
682
|
}
|
|
678
683
|
function Te(e, n, t = {}) {
|
|
679
684
|
const { window: i = Re, ignore: l, capture: a = !0, detectIframe: o = !1 } = t;
|
|
@@ -683,10 +688,10 @@ function Te(e, n, t = {}) {
|
|
|
683
688
|
let c;
|
|
684
689
|
const h = (y) => {
|
|
685
690
|
i.clearTimeout(c);
|
|
686
|
-
const S = J(e),
|
|
687
|
-
!S || S === y.target ||
|
|
691
|
+
const S = J(e), B = y.composedPath();
|
|
692
|
+
!S || S === y.target || B.includes(S) || !d.value || l && l.length > 0 && l.some((M) => {
|
|
688
693
|
const N = J(M);
|
|
689
|
-
return N && (y.target === N ||
|
|
694
|
+
return N && (y.target === N || B.includes(N));
|
|
690
695
|
}) || n(y);
|
|
691
696
|
}, f = [
|
|
692
697
|
le(i, "click", h, { passive: !0, capture: a }),
|
|
@@ -702,28 +707,28 @@ function Te(e, n, t = {}) {
|
|
|
702
707
|
}, { passive: !0 }),
|
|
703
708
|
o && le(i, "blur", (y) => {
|
|
704
709
|
var S;
|
|
705
|
-
const
|
|
706
|
-
((S = document.activeElement) == null ? void 0 : S.tagName) === "IFRAME" && !(
|
|
710
|
+
const B = J(e);
|
|
711
|
+
((S = document.activeElement) == null ? void 0 : S.tagName) === "IFRAME" && !(B != null && B.contains(document.activeElement)) && n(y);
|
|
707
712
|
})
|
|
708
713
|
].filter(Boolean);
|
|
709
714
|
return () => f.forEach((y) => y());
|
|
710
715
|
}
|
|
711
|
-
const
|
|
712
|
-
xe
|
|
713
|
-
xe
|
|
716
|
+
const ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, xe = "__vueuse_ssr_handlers__";
|
|
717
|
+
ke[xe] = ke[xe] || {};
|
|
718
|
+
ke[xe];
|
|
714
719
|
var Pe;
|
|
715
720
|
(function(e) {
|
|
716
721
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
717
722
|
})(Pe || (Pe = {}));
|
|
718
|
-
var
|
|
723
|
+
var tn = Object.defineProperty, ze = Object.getOwnPropertySymbols, nn = Object.prototype.hasOwnProperty, ln = Object.prototype.propertyIsEnumerable, Ve = (e, n, t) => n in e ? tn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, an = (e, n) => {
|
|
719
724
|
for (var t in n || (n = {}))
|
|
720
|
-
|
|
725
|
+
nn.call(n, t) && Ve(e, t, n[t]);
|
|
721
726
|
if (ze)
|
|
722
727
|
for (var t of ze(n))
|
|
723
|
-
|
|
728
|
+
ln.call(n, t) && Ve(e, t, n[t]);
|
|
724
729
|
return e;
|
|
725
730
|
};
|
|
726
|
-
const
|
|
731
|
+
const on = {
|
|
727
732
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
728
733
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
729
734
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -749,27 +754,27 @@ const an = {
|
|
|
749
754
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
750
755
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
751
756
|
};
|
|
752
|
-
|
|
753
|
-
linear:
|
|
754
|
-
},
|
|
755
|
-
const
|
|
757
|
+
an({
|
|
758
|
+
linear: _t
|
|
759
|
+
}, on);
|
|
760
|
+
const sn = {
|
|
756
761
|
preserveAspectRatio: "xMidYMid meet",
|
|
757
762
|
viewBox: "0 0 24 24",
|
|
758
763
|
width: "1em",
|
|
759
764
|
height: "1em"
|
|
760
|
-
},
|
|
765
|
+
}, dn = /* @__PURE__ */ u("path", {
|
|
761
766
|
fill: "currentColor",
|
|
762
767
|
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"
|
|
763
|
-
}, null, -1),
|
|
764
|
-
|
|
768
|
+
}, null, -1), cn = [
|
|
769
|
+
dn
|
|
765
770
|
];
|
|
766
|
-
function
|
|
767
|
-
return s(), r("svg",
|
|
771
|
+
function rn(e, n) {
|
|
772
|
+
return s(), r("svg", sn, cn);
|
|
768
773
|
}
|
|
769
|
-
const He = { name: "mi-search", render:
|
|
774
|
+
const He = { name: "mi-search", render: rn }, un = ["data-testid"], hn = ["id", "for"], fn = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], mn = { class: "dropdown-container" }, vn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], $n = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], bn = {
|
|
770
775
|
key: 0,
|
|
771
776
|
class: "no-data"
|
|
772
|
-
},
|
|
777
|
+
}, yn = /* @__PURE__ */ D(" Sem dados "), Se = /* @__PURE__ */ O({
|
|
773
778
|
__name: "Dropdown",
|
|
774
779
|
props: {
|
|
775
780
|
id: null,
|
|
@@ -810,18 +815,18 @@ const He = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id",
|
|
|
810
815
|
function f() {
|
|
811
816
|
he(), n("closeDropdown");
|
|
812
817
|
}
|
|
813
|
-
function
|
|
818
|
+
function I(b) {
|
|
814
819
|
const v = new Set(t.selected);
|
|
815
820
|
return v.has(b) ? v.delete(b) : v.add(b), [...v];
|
|
816
821
|
}
|
|
817
822
|
function y(b) {
|
|
818
|
-
const v = typeof b == "string" ? b : b.value, C = t.isMultipleSelect ?
|
|
823
|
+
const v = typeof b == "string" ? b : b.value, C = t.isMultipleSelect ? I(v) : v;
|
|
819
824
|
n("update:selected", C), t.closeOnSelect && !t.isMultipleSelect && f();
|
|
820
825
|
}
|
|
821
826
|
function S(b) {
|
|
822
827
|
return Array.isArray(t.selected) ? typeof b == "string" ? t.selected.includes(b) : t.selected.includes(b.value) : typeof b == "string" ? b === t.selected : b.value === t.selected;
|
|
823
828
|
}
|
|
824
|
-
const
|
|
829
|
+
const B = ie({
|
|
825
830
|
list: void 0,
|
|
826
831
|
search: void 0
|
|
827
832
|
}), M = ie({
|
|
@@ -833,12 +838,12 @@ const He = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id",
|
|
|
833
838
|
const F = P != null ? P : M.index;
|
|
834
839
|
P !== void 0 && (M.index = P), setTimeout(() => {
|
|
835
840
|
var g, w;
|
|
836
|
-
const H = (g =
|
|
841
|
+
const H = (g = B.list) == null ? void 0 : g.children[F];
|
|
837
842
|
M.id = (w = H == null ? void 0 : H.id) != null ? w : "", H == null || H.focus();
|
|
838
843
|
}, 0);
|
|
839
844
|
}, C = () => {
|
|
840
845
|
var P;
|
|
841
|
-
t.searchable && (M.index = 0, (P =
|
|
846
|
+
t.searchable && (M.index = 0, (P = B == null ? void 0 : B.search) == null || P.focus());
|
|
842
847
|
};
|
|
843
848
|
switch (b) {
|
|
844
849
|
case "ArrowUp":
|
|
@@ -862,21 +867,21 @@ const He = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id",
|
|
|
862
867
|
return typeof b == "string" ? b : b[v != null ? v : "value"];
|
|
863
868
|
}
|
|
864
869
|
function ne(b, v) {
|
|
865
|
-
|
|
870
|
+
B[b] = v != null ? v : void 0;
|
|
866
871
|
}
|
|
867
872
|
return (b, v) => (s(), r("div", {
|
|
868
873
|
ref_key: "el",
|
|
869
874
|
ref: i,
|
|
870
|
-
class:
|
|
875
|
+
class: k(["sol-dropdown-core", { "-smaller": e.smallerWidth }]),
|
|
871
876
|
"data-testid": `dropdown-${e.id}`,
|
|
872
877
|
onKeydownPassive: N
|
|
873
878
|
}, [
|
|
874
879
|
m(b.$slots, "label", {}, () => [
|
|
875
880
|
u("label", {
|
|
876
881
|
id: `label-dropdown-${e.id}`,
|
|
877
|
-
class:
|
|
882
|
+
class: k(["label", { "-disabled": e.disabled, "sr-only": e.ariaLabel }]),
|
|
878
883
|
for: `toggle-dropdown-${e.id}`
|
|
879
|
-
},
|
|
884
|
+
}, x(e.label || e.ariaLabel), 11, hn)
|
|
880
885
|
]),
|
|
881
886
|
u("button", {
|
|
882
887
|
id: `toggle-dropdown-${e.id}`,
|
|
@@ -897,18 +902,18 @@ const He = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id",
|
|
|
897
902
|
selectedSanitized: $(d),
|
|
898
903
|
selected: e.selected
|
|
899
904
|
}, () => [
|
|
900
|
-
D(
|
|
905
|
+
D(x($(d) || "Selecione"), 1)
|
|
901
906
|
])
|
|
902
|
-
], 8,
|
|
907
|
+
], 8, fn),
|
|
903
908
|
L(Me, {
|
|
904
909
|
mode: "out-in",
|
|
905
910
|
name: "dropdown"
|
|
906
911
|
}, {
|
|
907
912
|
default: E(() => [
|
|
908
|
-
Y(u("div",
|
|
913
|
+
Y(u("div", mn, [
|
|
909
914
|
e.searchable ? (s(), r("div", {
|
|
910
915
|
key: 0,
|
|
911
|
-
class:
|
|
916
|
+
class: k(["search-container", { "-loading": e.loading }])
|
|
912
917
|
}, [
|
|
913
918
|
m(b.$slots, "search", { filter: a.value }, () => [
|
|
914
919
|
L(W, {
|
|
@@ -971,42 +976,42 @@ const He = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id",
|
|
|
971
976
|
option: C,
|
|
972
977
|
isSelect: S
|
|
973
978
|
}, () => [
|
|
974
|
-
D(
|
|
979
|
+
D(x(G(C, "name")), 1)
|
|
975
980
|
])
|
|
976
|
-
], 44,
|
|
977
|
-
$(o).length ? T("", !0) : (s(), r("li",
|
|
981
|
+
], 44, $n))), 128)),
|
|
982
|
+
$(o).length ? T("", !0) : (s(), r("li", bn, [
|
|
978
983
|
m(b.$slots, "no-data", {}, () => [
|
|
979
|
-
|
|
984
|
+
yn
|
|
980
985
|
])
|
|
981
986
|
]))
|
|
982
|
-
], 8,
|
|
987
|
+
], 8, vn)
|
|
983
988
|
], 512), [
|
|
984
989
|
[X, l.value]
|
|
985
990
|
])
|
|
986
991
|
]),
|
|
987
992
|
_: 3
|
|
988
993
|
})
|
|
989
|
-
], 42,
|
|
994
|
+
], 42, un));
|
|
990
995
|
}
|
|
991
996
|
});
|
|
992
997
|
Se.install = (e) => {
|
|
993
998
|
e.component("SolDropdown", Se);
|
|
994
999
|
};
|
|
995
|
-
const
|
|
1000
|
+
const gn = {
|
|
996
1001
|
preserveAspectRatio: "xMidYMid meet",
|
|
997
1002
|
viewBox: "0 0 24 24",
|
|
998
1003
|
width: "1em",
|
|
999
1004
|
height: "1em"
|
|
1000
|
-
},
|
|
1005
|
+
}, wn = /* @__PURE__ */ u("path", {
|
|
1001
1006
|
fill: "currentColor",
|
|
1002
1007
|
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"
|
|
1003
|
-
}, null, -1),
|
|
1004
|
-
|
|
1008
|
+
}, null, -1), kn = [
|
|
1009
|
+
wn
|
|
1005
1010
|
];
|
|
1006
1011
|
function xn(e, n) {
|
|
1007
|
-
return s(), r("svg",
|
|
1012
|
+
return s(), r("svg", gn, kn);
|
|
1008
1013
|
}
|
|
1009
|
-
const Fe = { name: "mi-close", render: xn },
|
|
1014
|
+
const Fe = { name: "mi-close", render: xn }, Sn = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"], Cn = ["id"], In = { class: "label" }, ce = /* @__PURE__ */ O({
|
|
1010
1015
|
__name: "Chip",
|
|
1011
1016
|
props: {
|
|
1012
1017
|
id: null,
|
|
@@ -1035,7 +1040,7 @@ const Fe = { name: "mi-close", render: xn }, kn = ["id", "data-testid", "title",
|
|
|
1035
1040
|
return (l, a) => (s(), r("div", {
|
|
1036
1041
|
id: `chip-${e.id}`,
|
|
1037
1042
|
"data-testid": `chip-${e.id}`,
|
|
1038
|
-
class:
|
|
1043
|
+
class: k(["sol-chip-core", { "-selected": e.selected, "-disabled": e.disabled }]),
|
|
1039
1044
|
tabindex: "0",
|
|
1040
1045
|
title: e.label,
|
|
1041
1046
|
"aria-describedby": `chip-description-${e.id}`,
|
|
@@ -1047,10 +1052,10 @@ const Fe = { name: "mi-close", render: xn }, kn = ["id", "data-testid", "title",
|
|
|
1047
1052
|
id: `chip-description-${e.id}`,
|
|
1048
1053
|
"z-index": "-1",
|
|
1049
1054
|
class: "sr-only"
|
|
1050
|
-
}, "Press Delete or Backspace to remove this Chip", 8,
|
|
1051
|
-
u("span",
|
|
1055
|
+
}, "Press Delete or Backspace to remove this Chip", 8, Cn),
|
|
1056
|
+
u("span", In, [
|
|
1052
1057
|
m(l.$slots, "default", {}, () => [
|
|
1053
|
-
D(
|
|
1058
|
+
D(x(e.label), 1)
|
|
1054
1059
|
])
|
|
1055
1060
|
]),
|
|
1056
1061
|
e.removable ? (s(), r("i", {
|
|
@@ -1062,13 +1067,13 @@ const Fe = { name: "mi-close", render: xn }, kn = ["id", "data-testid", "title",
|
|
|
1062
1067
|
}, [
|
|
1063
1068
|
L($(Fe), { class: "icon" })
|
|
1064
1069
|
])) : T("", !0)
|
|
1065
|
-
], 42,
|
|
1070
|
+
], 42, Sn));
|
|
1066
1071
|
}
|
|
1067
1072
|
});
|
|
1068
|
-
const Bn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"],
|
|
1073
|
+
const Bn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], On = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], Mn = {
|
|
1069
1074
|
key: 0,
|
|
1070
1075
|
class: "no-data"
|
|
1071
|
-
},
|
|
1076
|
+
}, Tn = /* @__PURE__ */ D(" Sem dados "), Ln = /* @__PURE__ */ O({
|
|
1072
1077
|
__name: "ListOption",
|
|
1073
1078
|
props: {
|
|
1074
1079
|
id: null,
|
|
@@ -1114,32 +1119,32 @@ const Bn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], In
|
|
|
1114
1119
|
option: o,
|
|
1115
1120
|
isSelected: e.isSelected(o)
|
|
1116
1121
|
}, () => [
|
|
1117
|
-
D(
|
|
1122
|
+
D(x(o.name), 1)
|
|
1118
1123
|
])
|
|
1119
|
-
], 44,
|
|
1120
|
-
e.options.length ? T("", !0) : (s(), r("li",
|
|
1124
|
+
], 44, On))), 128)),
|
|
1125
|
+
e.options.length ? T("", !0) : (s(), r("li", Mn, [
|
|
1121
1126
|
m(l.$slots, "no-data", {}, () => [
|
|
1122
|
-
|
|
1127
|
+
Tn
|
|
1123
1128
|
])
|
|
1124
1129
|
]))
|
|
1125
1130
|
], 8, Bn));
|
|
1126
1131
|
}
|
|
1127
1132
|
});
|
|
1128
|
-
const
|
|
1133
|
+
const Pn = {
|
|
1129
1134
|
preserveAspectRatio: "xMidYMid meet",
|
|
1130
1135
|
viewBox: "0 0 24 24",
|
|
1131
1136
|
width: "1em",
|
|
1132
1137
|
height: "1em"
|
|
1133
|
-
},
|
|
1138
|
+
}, zn = /* @__PURE__ */ u("path", {
|
|
1134
1139
|
fill: "currentColor",
|
|
1135
1140
|
d: "m17 10l-5 6l-5-6h10z"
|
|
1136
|
-
}, null, -1),
|
|
1137
|
-
|
|
1141
|
+
}, null, -1), Vn = [
|
|
1142
|
+
zn
|
|
1138
1143
|
];
|
|
1139
|
-
function
|
|
1140
|
-
return s(), r("svg",
|
|
1144
|
+
function An(e, n) {
|
|
1145
|
+
return s(), r("svg", Pn, Vn);
|
|
1141
1146
|
}
|
|
1142
|
-
const
|
|
1147
|
+
const En = { name: "mi-caret-down", render: An };
|
|
1143
1148
|
function qe(e, n) {
|
|
1144
1149
|
function t({ code: i }) {
|
|
1145
1150
|
var o;
|
|
@@ -1161,11 +1166,11 @@ function Ke({ target: e, query: n }) {
|
|
|
1161
1166
|
index: -1
|
|
1162
1167
|
});
|
|
1163
1168
|
function i(f) {
|
|
1164
|
-
const
|
|
1169
|
+
const I = f != null ? f : t.index, y = e == null ? void 0 : e.value;
|
|
1165
1170
|
f !== void 0 && (t.index = f), setTimeout(() => {
|
|
1166
1171
|
var M;
|
|
1167
|
-
const S = y.children[
|
|
1168
|
-
t.id = (M = S == null ? void 0 : S.id) != null ? M : "",
|
|
1172
|
+
const S = y.children[I], B = n && S.querySelector(n) ? S.querySelector(n) : S;
|
|
1173
|
+
t.id = (M = S == null ? void 0 : S.id) != null ? M : "", B == null || B.focus();
|
|
1169
1174
|
}, 0);
|
|
1170
1175
|
}
|
|
1171
1176
|
function l() {
|
|
@@ -1197,14 +1202,14 @@ function Ke({ target: e, query: n }) {
|
|
|
1197
1202
|
focusOnLastItem: d
|
|
1198
1203
|
};
|
|
1199
1204
|
}
|
|
1200
|
-
const
|
|
1205
|
+
const pn = ["data-testid"], Dn = ["id"], Nn = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], Rn = {
|
|
1201
1206
|
key: 0,
|
|
1202
1207
|
class: "container-tags"
|
|
1203
|
-
},
|
|
1208
|
+
}, Hn = {
|
|
1204
1209
|
key: 1,
|
|
1205
1210
|
class: "mr-micro placeholder-inline",
|
|
1206
1211
|
tabindex: "-1"
|
|
1207
|
-
},
|
|
1212
|
+
}, Fn = { class: "error" }, qn = { class: "select-options-container" }, Ce = /* @__PURE__ */ O({
|
|
1208
1213
|
__name: "Select",
|
|
1209
1214
|
props: {
|
|
1210
1215
|
id: null,
|
|
@@ -1252,14 +1257,14 @@ const En = ["data-testid"], pn = ["id"], Dn = ["id", "disabled", "data-testid",
|
|
|
1252
1257
|
}
|
|
1253
1258
|
return [g];
|
|
1254
1259
|
}
|
|
1255
|
-
function
|
|
1260
|
+
function I(g) {
|
|
1256
1261
|
t.multiple ? n("update:selected", f(g)) : n("update:selected", g), t.closeOnSelect && !t.multiple && h();
|
|
1257
1262
|
}
|
|
1258
1263
|
function y(g) {
|
|
1259
1264
|
var w;
|
|
1260
1265
|
return Array.isArray(t.selected) ? t.selected.some(({ value: V }) => V === g.value) : g.value === ((w = t.selected) == null ? void 0 : w.value);
|
|
1261
1266
|
}
|
|
1262
|
-
const S = z(),
|
|
1267
|
+
const S = z(), B = z();
|
|
1263
1268
|
function M() {
|
|
1264
1269
|
var g;
|
|
1265
1270
|
t.searchable && (v(), (g = S.value) == null || g.focus());
|
|
@@ -1271,7 +1276,7 @@ const En = ["data-testid"], pn = ["id"], Dn = ["id", "disabled", "data-testid",
|
|
|
1271
1276
|
focusOnNextItem: ne,
|
|
1272
1277
|
focusOnPreviousItem: b,
|
|
1273
1278
|
resetStateFocus: v
|
|
1274
|
-
} = Ke({ target:
|
|
1279
|
+
} = Ke({ target: B }), { navigate: C } = qe({
|
|
1275
1280
|
Home: he,
|
|
1276
1281
|
End: () => G(t.options.length),
|
|
1277
1282
|
ArrowUp: b,
|
|
@@ -1288,7 +1293,7 @@ const En = ["data-testid"], pn = ["id"], Dn = ["id", "disabled", "data-testid",
|
|
|
1288
1293
|
}
|
|
1289
1294
|
function F(g) {
|
|
1290
1295
|
return (w) => {
|
|
1291
|
-
g === "search" ? S.value = w == null ? void 0 : w.input :
|
|
1296
|
+
g === "search" ? S.value = w == null ? void 0 : w.input : B.value = w == null ? void 0 : w.list;
|
|
1292
1297
|
};
|
|
1293
1298
|
}
|
|
1294
1299
|
function H() {
|
|
@@ -1299,7 +1304,7 @@ const En = ["data-testid"], pn = ["id"], Dn = ["id", "disabled", "data-testid",
|
|
|
1299
1304
|
return (g, w) => (s(), r("div", {
|
|
1300
1305
|
ref_key: "el",
|
|
1301
1306
|
ref: i,
|
|
1302
|
-
class:
|
|
1307
|
+
class: k(["sol-select-core", { "-smaller": e.smallerWidth }]),
|
|
1303
1308
|
"data-testid": `select-${e.id}`,
|
|
1304
1309
|
onKeydownPassive: w[3] || (w[3] = (...V) => $(C) && $(C)(...V))
|
|
1305
1310
|
}, [
|
|
@@ -1310,8 +1315,8 @@ const En = ["data-testid"], pn = ["id"], Dn = ["id", "disabled", "data-testid",
|
|
|
1310
1315
|
e.label ? (s(), r("label", {
|
|
1311
1316
|
key: 0,
|
|
1312
1317
|
id: `select-label-${e.id}`,
|
|
1313
|
-
class:
|
|
1314
|
-
},
|
|
1318
|
+
class: k(["label", { "-disabled": e.disabled }])
|
|
1319
|
+
}, x(e.label), 11, Dn)) : T("", !0)
|
|
1315
1320
|
]),
|
|
1316
1321
|
u("button", {
|
|
1317
1322
|
id: `select-toggle-${e.id}`,
|
|
@@ -1328,39 +1333,39 @@ const En = ["data-testid"], pn = ["id"], Dn = ["id", "disabled", "data-testid",
|
|
|
1328
1333
|
m(g.$slots, "toggle-dropdown", {
|
|
1329
1334
|
toggle: { open: c, close: h, toggleDropdown: d },
|
|
1330
1335
|
isOpen: l.value,
|
|
1331
|
-
select:
|
|
1336
|
+
select: I,
|
|
1332
1337
|
selected: e.selected
|
|
1333
1338
|
}, () => {
|
|
1334
1339
|
var V;
|
|
1335
1340
|
return [
|
|
1336
|
-
e.multiple && Array.isArray(e.selected) && ((V = e.selected) == null ? void 0 : V.length) ? (s(), r("div",
|
|
1341
|
+
e.multiple && Array.isArray(e.selected) && ((V = e.selected) == null ? void 0 : V.length) ? (s(), r("div", Rn, [
|
|
1337
1342
|
(s(!0), r(j, null, Z(e.selected, (A, fe) => (s(), R(ce, {
|
|
1338
1343
|
id: A.value,
|
|
1339
1344
|
key: fe,
|
|
1340
1345
|
label: A.name,
|
|
1341
|
-
onClick: q((me) =>
|
|
1342
|
-
onClose: (me) =>
|
|
1346
|
+
onClick: q((me) => I(A), ["stop"]),
|
|
1347
|
+
onClose: (me) => I(A)
|
|
1343
1348
|
}, null, 8, ["id", "label", "onClick", "onClose"]))), 128))
|
|
1344
|
-
])) : (s(), r("span",
|
|
1345
|
-
L($(
|
|
1349
|
+
])) : (s(), r("span", Hn, x(H()), 1)),
|
|
1350
|
+
L($(En), {
|
|
1346
1351
|
"aria-hidden": "true",
|
|
1347
1352
|
tabindex: "-1",
|
|
1348
|
-
class:
|
|
1353
|
+
class: k(["icon", { "-open": l.value }])
|
|
1349
1354
|
}, null, 8, ["class"])
|
|
1350
1355
|
];
|
|
1351
1356
|
})
|
|
1352
|
-
], 8,
|
|
1353
|
-
u("span",
|
|
1357
|
+
], 8, Nn),
|
|
1358
|
+
u("span", Fn, x(e.error), 1),
|
|
1354
1359
|
L(Me, {
|
|
1355
1360
|
mode: "out-in",
|
|
1356
1361
|
name: "dropdown"
|
|
1357
1362
|
}, {
|
|
1358
1363
|
default: E(() => [
|
|
1359
|
-
Y(u("div",
|
|
1364
|
+
Y(u("div", qn, [
|
|
1360
1365
|
m(g.$slots, "search", {}, () => [
|
|
1361
1366
|
e.searchable ? (s(), r("div", {
|
|
1362
1367
|
key: 0,
|
|
1363
|
-
class:
|
|
1368
|
+
class: k(["search-container", { "-loading": e.loading }])
|
|
1364
1369
|
}, [
|
|
1365
1370
|
m(g.$slots, "search", { filter: a.value }, () => [
|
|
1366
1371
|
L(W, {
|
|
@@ -1392,13 +1397,13 @@ const En = ["data-testid"], pn = ["id"], Dn = ["id", "disabled", "data-testid",
|
|
|
1392
1397
|
})
|
|
1393
1398
|
])
|
|
1394
1399
|
], 2)) : T("", !0),
|
|
1395
|
-
L(
|
|
1400
|
+
L(Ln, {
|
|
1396
1401
|
id: e.id,
|
|
1397
1402
|
ref: F("list"),
|
|
1398
1403
|
options: $(o),
|
|
1399
1404
|
multiple: e.multiple,
|
|
1400
1405
|
"is-selected": y,
|
|
1401
|
-
onSelect:
|
|
1406
|
+
onSelect: I
|
|
1402
1407
|
}, {
|
|
1403
1408
|
"item-list": E(({ text: V, value: A, option: fe, isSelected: me }) => [
|
|
1404
1409
|
m(g.$slots, "default", {
|
|
@@ -1420,7 +1425,7 @@ const En = ["data-testid"], pn = ["id"], Dn = ["id", "disabled", "data-testid",
|
|
|
1420
1425
|
]),
|
|
1421
1426
|
_: 3
|
|
1422
1427
|
})
|
|
1423
|
-
], 42,
|
|
1428
|
+
], 42, pn));
|
|
1424
1429
|
}
|
|
1425
1430
|
});
|
|
1426
1431
|
Ce.install = (e) => {
|
|
@@ -1429,21 +1434,21 @@ Ce.install = (e) => {
|
|
|
1429
1434
|
ce.install = (e) => {
|
|
1430
1435
|
e.component("SolChip", ce);
|
|
1431
1436
|
};
|
|
1432
|
-
const
|
|
1437
|
+
const Kn = {
|
|
1433
1438
|
preserveAspectRatio: "xMidYMid meet",
|
|
1434
1439
|
viewBox: "0 0 24 24",
|
|
1435
1440
|
width: "1em",
|
|
1436
1441
|
height: "1em"
|
|
1437
|
-
},
|
|
1442
|
+
}, Un = /* @__PURE__ */ u("path", {
|
|
1438
1443
|
fill: "currentColor",
|
|
1439
1444
|
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"
|
|
1440
|
-
}, null, -1),
|
|
1441
|
-
|
|
1445
|
+
}, null, -1), Gn = [
|
|
1446
|
+
Un
|
|
1442
1447
|
];
|
|
1443
|
-
function
|
|
1444
|
-
return s(), r("svg",
|
|
1448
|
+
function Qn(e, n) {
|
|
1449
|
+
return s(), r("svg", Kn, Gn);
|
|
1445
1450
|
}
|
|
1446
|
-
const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render:
|
|
1451
|
+
const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Qn }, Yn = ["id", "data-testid", "aria-disabled"], Wn = ["data-testid", "tabindex"], jn = { class: "container-title" }, Zn = { class: "icon" }, Jn = ["data-testid"], Ie = /* @__PURE__ */ O({
|
|
1447
1452
|
__name: "Accordion",
|
|
1448
1453
|
props: {
|
|
1449
1454
|
id: null,
|
|
@@ -1455,7 +1460,7 @@ const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Gn },
|
|
|
1455
1460
|
return (n, t) => (s(), r("details", {
|
|
1456
1461
|
id: `accordion-${e.id}`,
|
|
1457
1462
|
"data-testid": `accordion-${e.id}`,
|
|
1458
|
-
class:
|
|
1463
|
+
class: k(["sol-accordion-core", { "-on-color": e.onColor, "-disabled": e.disabled }]),
|
|
1459
1464
|
"aria-disabled": e.disabled
|
|
1460
1465
|
}, [
|
|
1461
1466
|
u("summary", {
|
|
@@ -1463,32 +1468,32 @@ const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Gn },
|
|
|
1463
1468
|
class: "summary",
|
|
1464
1469
|
tabindex: e.disabled ? -1 : 0
|
|
1465
1470
|
}, [
|
|
1466
|
-
u("div",
|
|
1467
|
-
u("span",
|
|
1471
|
+
u("div", jn, [
|
|
1472
|
+
u("span", Zn, [
|
|
1468
1473
|
m(n.$slots, "icon")
|
|
1469
1474
|
]),
|
|
1470
1475
|
m(n.$slots, "title", {}, () => [
|
|
1471
|
-
D(
|
|
1476
|
+
D(x(e.title), 1)
|
|
1472
1477
|
])
|
|
1473
1478
|
]),
|
|
1474
1479
|
L($(Ue), {
|
|
1475
1480
|
class: "icon",
|
|
1476
1481
|
"aria-hidden": "true"
|
|
1477
1482
|
})
|
|
1478
|
-
], 8,
|
|
1483
|
+
], 8, Wn),
|
|
1479
1484
|
u("div", {
|
|
1480
1485
|
"data-testid": `accordion-content-${e.id}`,
|
|
1481
1486
|
class: "accordion-content"
|
|
1482
1487
|
}, [
|
|
1483
1488
|
m(n.$slots, "default")
|
|
1484
|
-
], 8,
|
|
1485
|
-
], 10,
|
|
1489
|
+
], 8, Jn)
|
|
1490
|
+
], 10, Yn));
|
|
1486
1491
|
}
|
|
1487
1492
|
});
|
|
1488
|
-
|
|
1489
|
-
e.component("SolAccordion",
|
|
1493
|
+
Ie.install = (e) => {
|
|
1494
|
+
e.component("SolAccordion", Ie);
|
|
1490
1495
|
};
|
|
1491
|
-
const
|
|
1496
|
+
const Xn = ["id", "data-testid"], _n = ["id", "aria-expanded"], el = ["id", "data-testid", "aria-labelledby"], re = /* @__PURE__ */ O({
|
|
1492
1497
|
__name: "Menu",
|
|
1493
1498
|
props: {
|
|
1494
1499
|
id: null,
|
|
@@ -1498,7 +1503,7 @@ const Jn = ["id", "data-testid"], Xn = ["id", "aria-expanded"], _n = ["id", "dat
|
|
|
1498
1503
|
setup(e) {
|
|
1499
1504
|
const n = z();
|
|
1500
1505
|
Te(n, () => {
|
|
1501
|
-
|
|
1506
|
+
I();
|
|
1502
1507
|
});
|
|
1503
1508
|
const t = z(!1), i = z(), l = p(
|
|
1504
1509
|
() => i.value ? i.value.childElementCount : 0
|
|
@@ -1515,23 +1520,23 @@ const Jn = ["id", "data-testid"], Xn = ["id", "aria-expanded"], _n = ["id", "dat
|
|
|
1515
1520
|
ArrowDown: () => {
|
|
1516
1521
|
!t.value && y(), d(l.value);
|
|
1517
1522
|
},
|
|
1518
|
-
Escape:
|
|
1523
|
+
Escape: I
|
|
1519
1524
|
});
|
|
1520
|
-
function
|
|
1525
|
+
function I() {
|
|
1521
1526
|
t.value = !1, a();
|
|
1522
1527
|
}
|
|
1523
1528
|
function y() {
|
|
1524
1529
|
t.value = !0;
|
|
1525
1530
|
}
|
|
1526
1531
|
function S() {
|
|
1527
|
-
t.value ?
|
|
1532
|
+
t.value ? I() : y();
|
|
1528
1533
|
}
|
|
1529
|
-
return (
|
|
1534
|
+
return (B, M) => (s(), r("div", {
|
|
1530
1535
|
id: `menu-${e.id}`,
|
|
1531
1536
|
ref_key: "el",
|
|
1532
1537
|
ref: n,
|
|
1533
1538
|
"data-testid": `menu-${e.id}`,
|
|
1534
|
-
class:
|
|
1539
|
+
class: k([`-${e.position}`, "sol-menu-core"]),
|
|
1535
1540
|
onKeyupPassive: M[0] || (M[0] = (...N) => $(f) && $(f)(...N))
|
|
1536
1541
|
}, [
|
|
1537
1542
|
u("button", {
|
|
@@ -1543,10 +1548,10 @@ const Jn = ["id", "data-testid"], Xn = ["id", "aria-expanded"], _n = ["id", "dat
|
|
|
1543
1548
|
"aria-expanded": t.value,
|
|
1544
1549
|
onClick: S
|
|
1545
1550
|
}, [
|
|
1546
|
-
m(
|
|
1547
|
-
D(
|
|
1551
|
+
m(B.$slots, "label", { isOpen: t.value }, () => [
|
|
1552
|
+
D(x(e.label), 1)
|
|
1548
1553
|
])
|
|
1549
|
-
], 8,
|
|
1554
|
+
], 8, _n),
|
|
1550
1555
|
Y(u("menu", {
|
|
1551
1556
|
id: `menu-container-${e.id}`,
|
|
1552
1557
|
ref_key: "menu",
|
|
@@ -1554,22 +1559,23 @@ const Jn = ["id", "data-testid"], Xn = ["id", "aria-expanded"], _n = ["id", "dat
|
|
|
1554
1559
|
"data-testid": `menu-container-${e.id}`,
|
|
1555
1560
|
role: "menu",
|
|
1556
1561
|
"aria-labelledby": `menu-button-${e.id}`,
|
|
1557
|
-
class:
|
|
1562
|
+
class: k(["menu", { "-open": t.value }])
|
|
1558
1563
|
}, [
|
|
1559
|
-
m(
|
|
1560
|
-
], 10,
|
|
1564
|
+
m(B.$slots, "default", { close: I })
|
|
1565
|
+
], 10, el), [
|
|
1561
1566
|
[X, t.value]
|
|
1562
1567
|
])
|
|
1563
|
-
], 42,
|
|
1568
|
+
], 42, Xn));
|
|
1564
1569
|
}
|
|
1565
1570
|
});
|
|
1566
1571
|
re.install = (e) => {
|
|
1567
1572
|
e.component("SolMenu", re);
|
|
1568
1573
|
};
|
|
1569
|
-
const
|
|
1574
|
+
const tl = ["id"], nl = ["href", "target"], ue = /* @__PURE__ */ O({
|
|
1570
1575
|
__name: "MenuItemLink",
|
|
1571
1576
|
props: {
|
|
1572
1577
|
id: null,
|
|
1578
|
+
linkId: null,
|
|
1573
1579
|
text: null,
|
|
1574
1580
|
link: null,
|
|
1575
1581
|
active: null,
|
|
@@ -1577,38 +1583,41 @@ const el = ["id"], tl = ["href", "target"], ue = /* @__PURE__ */ O({
|
|
|
1577
1583
|
},
|
|
1578
1584
|
emits: ["clicked"],
|
|
1579
1585
|
setup(e, { emit: n }) {
|
|
1580
|
-
return (t, i) =>
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
i[
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1586
|
+
return (t, i) => {
|
|
1587
|
+
var l;
|
|
1588
|
+
return s(), r("li", {
|
|
1589
|
+
id: `menu-item-link-${e.id}`,
|
|
1590
|
+
class: "sol-menuitem-link-core",
|
|
1591
|
+
tabindex: "-1",
|
|
1592
|
+
role: "none",
|
|
1593
|
+
onClick: i[0] || (i[0] = (a) => n("clicked")),
|
|
1594
|
+
onKeyup: [
|
|
1595
|
+
i[1] || (i[1] = K((a) => n("clicked"), ["enter"])),
|
|
1596
|
+
i[2] || (i[2] = K((a) => n("clicked"), ["space"]))
|
|
1597
|
+
]
|
|
1598
|
+
}, [
|
|
1599
|
+
m(t.$slots, "default", {
|
|
1600
|
+
id: (l = e.linkId) != null ? l : e.id,
|
|
1601
|
+
active: e.active,
|
|
1602
|
+
link: e.link,
|
|
1603
|
+
text: e.text,
|
|
1604
|
+
external: e.external
|
|
1605
|
+
}, () => [
|
|
1606
|
+
u("a", {
|
|
1607
|
+
role: "menuitem",
|
|
1608
|
+
class: k({ "-active": e.active }),
|
|
1609
|
+
href: e.link,
|
|
1610
|
+
target: e.external ? "_blank" : "_parent"
|
|
1611
|
+
}, x(e.text), 11, nl)
|
|
1612
|
+
])
|
|
1613
|
+
], 40, tl);
|
|
1614
|
+
};
|
|
1606
1615
|
}
|
|
1607
1616
|
});
|
|
1608
1617
|
ue.install = (e) => {
|
|
1609
1618
|
e.component("SolMenuItemLink", ue);
|
|
1610
1619
|
};
|
|
1611
|
-
const
|
|
1620
|
+
const ll = { class: "label-container" }, il = { class: "label" }, Be = /* @__PURE__ */ O({
|
|
1612
1621
|
__name: "MenuNavigationLinks",
|
|
1613
1622
|
props: {
|
|
1614
1623
|
id: null,
|
|
@@ -1622,43 +1631,50 @@ const nl = { class: "label-container" }, ll = { class: "label" }, Ie = /* @__PUR
|
|
|
1622
1631
|
}, {
|
|
1623
1632
|
label: E(({ isOpen: i }) => [
|
|
1624
1633
|
m(n.$slots, "label", { isOpen: i }, () => [
|
|
1625
|
-
u("div",
|
|
1626
|
-
u("span",
|
|
1634
|
+
u("div", ll, [
|
|
1635
|
+
u("span", il, x(e.label), 1),
|
|
1627
1636
|
L($(Ue), {
|
|
1628
|
-
class:
|
|
1637
|
+
class: k(["icon", { "-opened": i }]),
|
|
1629
1638
|
"aria-hidden": "true"
|
|
1630
1639
|
}, null, 8, ["class"])
|
|
1631
1640
|
])
|
|
1632
1641
|
])
|
|
1633
1642
|
]),
|
|
1634
1643
|
default: E(({ close: i }) => [
|
|
1635
|
-
(s(!0), r(j, null, Z(e.linkItems, (l, a) =>
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1644
|
+
(s(!0), r(j, null, Z(e.linkItems, (l, a) => {
|
|
1645
|
+
var o;
|
|
1646
|
+
return s(), R(ue, {
|
|
1647
|
+
id: `${e.id}-${(o = l == null ? void 0 : l.id) != null ? o : l.text}`,
|
|
1648
|
+
key: a,
|
|
1649
|
+
"link-id": l.id,
|
|
1650
|
+
text: l.text,
|
|
1651
|
+
link: l.link,
|
|
1652
|
+
external: l.external,
|
|
1653
|
+
active: l.active,
|
|
1654
|
+
onClicked: i
|
|
1655
|
+
}, {
|
|
1656
|
+
default: E(() => {
|
|
1657
|
+
var d;
|
|
1658
|
+
return [
|
|
1659
|
+
m(n.$slots, "default", {
|
|
1660
|
+
id: (d = l.id) != null ? d : e.id,
|
|
1661
|
+
active: l.active,
|
|
1662
|
+
link: l.link,
|
|
1663
|
+
text: l.text,
|
|
1664
|
+
external: l.external
|
|
1665
|
+
})
|
|
1666
|
+
];
|
|
1667
|
+
}),
|
|
1668
|
+
_: 2
|
|
1669
|
+
}, 1032, ["id", "link-id", "text", "link", "external", "active", "onClicked"]);
|
|
1670
|
+
}), 128))
|
|
1655
1671
|
]),
|
|
1656
1672
|
_: 3
|
|
1657
1673
|
}, 8, ["id"]));
|
|
1658
1674
|
}
|
|
1659
1675
|
});
|
|
1660
|
-
|
|
1661
|
-
e.component("SolMenuNavigationLinks",
|
|
1676
|
+
Be.install = (e) => {
|
|
1677
|
+
e.component("SolMenuNavigationLinks", Be);
|
|
1662
1678
|
};
|
|
1663
1679
|
const Ge = 12, Q = {
|
|
1664
1680
|
type: "success",
|
|
@@ -1668,7 +1684,7 @@ const Ge = 12, Q = {
|
|
|
1668
1684
|
position: "top-right",
|
|
1669
1685
|
hideProgressBar: !1
|
|
1670
1686
|
};
|
|
1671
|
-
function
|
|
1687
|
+
function al(e, n) {
|
|
1672
1688
|
const t = ie({
|
|
1673
1689
|
id: null,
|
|
1674
1690
|
intervalId: null,
|
|
@@ -1698,7 +1714,7 @@ function il(e, n) {
|
|
|
1698
1714
|
progress: i
|
|
1699
1715
|
};
|
|
1700
1716
|
}
|
|
1701
|
-
function
|
|
1717
|
+
function ol(e) {
|
|
1702
1718
|
return {
|
|
1703
1719
|
stylePosition: p(() => {
|
|
1704
1720
|
const { position: t, offset: i } = e();
|
|
@@ -1744,56 +1760,56 @@ function al(e) {
|
|
|
1744
1760
|
};
|
|
1745
1761
|
}
|
|
1746
1762
|
var Qe = /* @__PURE__ */ ((e) => (e["top-left"] = "bounce-left", e["top-right"] = "bounce-right", e["top-center"] = "bounce-down", e["bottom-left"] = "bounce-left", e["bottom-center"] = "bounce-up", e["bottom-right"] = "bounce-right", e))(Qe || {});
|
|
1747
|
-
const
|
|
1763
|
+
const sl = {
|
|
1748
1764
|
preserveAspectRatio: "xMidYMid meet",
|
|
1749
1765
|
viewBox: "0 0 24 24",
|
|
1750
1766
|
width: "1em",
|
|
1751
1767
|
height: "1em"
|
|
1752
|
-
},
|
|
1768
|
+
}, dl = /* @__PURE__ */ u("path", {
|
|
1753
1769
|
fill: "currentColor",
|
|
1754
1770
|
d: "M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm14.664-3.247a1 1 0 0 1 .083 1.411l-5.333 6a1 1 0 0 1-1.495 0l-2.666-3a1 1 0 0 1 1.494-1.328l1.92 2.159l4.586-5.16a1 1 0 0 1 1.411-.082z"
|
|
1755
|
-
}, null, -1),
|
|
1756
|
-
|
|
1771
|
+
}, null, -1), cl = [
|
|
1772
|
+
dl
|
|
1757
1773
|
];
|
|
1758
|
-
function
|
|
1759
|
-
return s(), r("svg",
|
|
1774
|
+
function rl(e, n) {
|
|
1775
|
+
return s(), r("svg", sl, cl);
|
|
1760
1776
|
}
|
|
1761
|
-
const
|
|
1777
|
+
const ul = { name: "mi-circle-check", render: rl }, hl = {
|
|
1762
1778
|
preserveAspectRatio: "xMidYMid meet",
|
|
1763
1779
|
viewBox: "0 0 24 24",
|
|
1764
1780
|
width: "1em",
|
|
1765
1781
|
height: "1em"
|
|
1766
|
-
},
|
|
1782
|
+
}, fl = /* @__PURE__ */ u("path", {
|
|
1767
1783
|
fill: "currentColor",
|
|
1768
1784
|
d: "M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm5.793-4.207a1 1 0 0 1 1.414 0L12 10.586l2.793-2.793a1 1 0 1 1 1.414 1.414L13.414 12l2.793 2.793a1 1 0 0 1-1.414 1.414L12 13.414l-2.793 2.793a1 1 0 0 1-1.414-1.414L10.586 12L7.793 9.207a1 1 0 0 1 0-1.414z"
|
|
1769
|
-
}, null, -1),
|
|
1770
|
-
|
|
1785
|
+
}, null, -1), ml = [
|
|
1786
|
+
fl
|
|
1771
1787
|
];
|
|
1772
|
-
function
|
|
1773
|
-
return s(), r("svg",
|
|
1788
|
+
function vl(e, n) {
|
|
1789
|
+
return s(), r("svg", hl, ml);
|
|
1774
1790
|
}
|
|
1775
|
-
const
|
|
1791
|
+
const $l = { name: "mi-circle-error", render: vl }, bl = {
|
|
1776
1792
|
preserveAspectRatio: "xMidYMid meet",
|
|
1777
1793
|
viewBox: "0 0 24 24",
|
|
1778
1794
|
width: "1em",
|
|
1779
1795
|
height: "1em"
|
|
1780
|
-
},
|
|
1796
|
+
}, yl = /* @__PURE__ */ u("g", { fill: "currentColor" }, [
|
|
1781
1797
|
/* @__PURE__ */ u("path", { d: "M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12z" }),
|
|
1782
1798
|
/* @__PURE__ */ u("path", { d: "M12 14a1 1 0 0 1-1-1V7a1 1 0 1 1 2 0v6a1 1 0 0 1-1 1zm-1.5 2.5a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0z" })
|
|
1783
|
-
], -1),
|
|
1784
|
-
|
|
1799
|
+
], -1), gl = [
|
|
1800
|
+
yl
|
|
1785
1801
|
];
|
|
1786
|
-
function
|
|
1787
|
-
return s(), r("svg",
|
|
1802
|
+
function wl(e, n) {
|
|
1803
|
+
return s(), r("svg", bl, gl);
|
|
1788
1804
|
}
|
|
1789
|
-
const
|
|
1805
|
+
const kl = { name: "mi-circle-warning", render: wl }, xl = ["id", "data-testid"], Sl = { class: "content-wrapper" }, Cl = {
|
|
1790
1806
|
key: 0,
|
|
1791
1807
|
class: "icon-container",
|
|
1792
1808
|
"aria-hidden": "true"
|
|
1793
|
-
},
|
|
1809
|
+
}, Il = { class: "content" }, Bl = {
|
|
1794
1810
|
key: 0,
|
|
1795
1811
|
class: "description"
|
|
1796
|
-
},
|
|
1812
|
+
}, Ol = ["data-testid"], Ml = /* @__PURE__ */ O({
|
|
1797
1813
|
__name: "Toast",
|
|
1798
1814
|
props: {
|
|
1799
1815
|
id: null,
|
|
@@ -1810,10 +1826,10 @@ const wl = { name: "mi-circle-warning", render: gl }, xl = ["id", "data-testid"]
|
|
|
1810
1826
|
position: { default: Q.position }
|
|
1811
1827
|
},
|
|
1812
1828
|
setup(e) {
|
|
1813
|
-
const n = e, { start: t, stop: i, progress: l } =
|
|
1829
|
+
const n = e, { start: t, stop: i, progress: l } = al(() => {
|
|
1814
1830
|
var h;
|
|
1815
1831
|
(h = n.onCloseHandler) == null || h.call(n);
|
|
1816
|
-
}, n.timeout), { stylePosition: a } =
|
|
1832
|
+
}, n.timeout), { stylePosition: a } = ol(() => ({
|
|
1817
1833
|
offset: n.offset,
|
|
1818
1834
|
position: n.position
|
|
1819
1835
|
})), o = p(() => n.title && n.description);
|
|
@@ -1836,9 +1852,9 @@ const wl = { name: "mi-circle-warning", render: gl }, xl = ["id", "data-testid"]
|
|
|
1836
1852
|
role: "status",
|
|
1837
1853
|
"data-testid": `toast-${e.type}-${e.id}`,
|
|
1838
1854
|
style: ae($(a)),
|
|
1839
|
-
class:
|
|
1855
|
+
class: k(["sol-toast-core", [`-${e.type}`, { "-multiline": $(o) }]]),
|
|
1840
1856
|
onKeyup: f[1] || (f[1] = K(
|
|
1841
|
-
(...
|
|
1857
|
+
(...I) => e.onCloseHandler && e.onCloseHandler(...I),
|
|
1842
1858
|
["esc"]
|
|
1843
1859
|
)),
|
|
1844
1860
|
onMouseenter: d,
|
|
@@ -1846,47 +1862,47 @@ const wl = { name: "mi-circle-warning", render: gl }, xl = ["id", "data-testid"]
|
|
|
1846
1862
|
onFocusin: d,
|
|
1847
1863
|
onFocusout: c
|
|
1848
1864
|
}, [
|
|
1849
|
-
u("section",
|
|
1850
|
-
e.showIcon ? (s(), r("div",
|
|
1865
|
+
u("section", Sl, [
|
|
1866
|
+
e.showIcon ? (s(), r("div", Cl, [
|
|
1851
1867
|
m(h.$slots, "icon-status", { type: e.type }, () => [
|
|
1852
|
-
e.type === "success" ? (s(), R($(
|
|
1868
|
+
e.type === "success" ? (s(), R($(ul), {
|
|
1853
1869
|
key: 0,
|
|
1854
1870
|
class: "icon"
|
|
1855
1871
|
})) : T("", !0),
|
|
1856
|
-
e.type === "info" ? (s(), R($(
|
|
1872
|
+
e.type === "info" ? (s(), R($(kl), {
|
|
1857
1873
|
key: 1,
|
|
1858
1874
|
class: "icon"
|
|
1859
1875
|
})) : T("", !0),
|
|
1860
|
-
e.type === "danger" ? (s(), R($(
|
|
1876
|
+
e.type === "danger" ? (s(), R($($l), {
|
|
1861
1877
|
key: 2,
|
|
1862
1878
|
class: "icon"
|
|
1863
1879
|
})) : T("", !0)
|
|
1864
1880
|
])
|
|
1865
1881
|
])) : T("", !0),
|
|
1866
|
-
u("div",
|
|
1882
|
+
u("div", Il, [
|
|
1867
1883
|
u("p", {
|
|
1868
|
-
class:
|
|
1884
|
+
class: k(["title", { "-multiline": $(o) }])
|
|
1869
1885
|
}, [
|
|
1870
1886
|
m(h.$slots, "title", {}, () => [
|
|
1871
|
-
D(
|
|
1887
|
+
D(x(e.title), 1)
|
|
1872
1888
|
])
|
|
1873
1889
|
], 2),
|
|
1874
1890
|
e.description ? (s(), r("p", Bl, [
|
|
1875
1891
|
m(h.$slots, "description", {}, () => [
|
|
1876
|
-
D(
|
|
1892
|
+
D(x(e.description), 1)
|
|
1877
1893
|
])
|
|
1878
1894
|
])) : T("", !0)
|
|
1879
1895
|
])
|
|
1880
1896
|
]),
|
|
1881
1897
|
u("button", {
|
|
1882
1898
|
type: "button",
|
|
1883
|
-
class:
|
|
1899
|
+
class: k(["close", { "-multiline": $(o) }]),
|
|
1884
1900
|
"data-testid": `toast-close-button-${e.type}-${e.id}`,
|
|
1885
1901
|
"aria-label": "close notification",
|
|
1886
|
-
onClick: f[0] || (f[0] = (...
|
|
1902
|
+
onClick: f[0] || (f[0] = (...I) => e.onCloseHandler && e.onCloseHandler(...I))
|
|
1887
1903
|
}, [
|
|
1888
1904
|
L($(Fe), { class: "icon" })
|
|
1889
|
-
], 10,
|
|
1905
|
+
], 10, Ol),
|
|
1890
1906
|
e.hideProgressBar ? T("", !0) : (s(), r("div", {
|
|
1891
1907
|
key: 0,
|
|
1892
1908
|
class: "progressbar",
|
|
@@ -1907,7 +1923,7 @@ const ee = {
|
|
|
1907
1923
|
"bottom-right": [],
|
|
1908
1924
|
"bottom-center": []
|
|
1909
1925
|
};
|
|
1910
|
-
function
|
|
1926
|
+
function El() {
|
|
1911
1927
|
let e = 0;
|
|
1912
1928
|
function n() {
|
|
1913
1929
|
Object.entries(ee).forEach(([i, l]) => {
|
|
@@ -1920,15 +1936,15 @@ function Al() {
|
|
|
1920
1936
|
}
|
|
1921
1937
|
return {
|
|
1922
1938
|
createToast: (i, l) => {
|
|
1923
|
-
const a = e++, o = l ?
|
|
1924
|
-
return l != null && l.showOneToast && n(),
|
|
1939
|
+
const a = e++, o = l ? Tl(l) : Q;
|
|
1940
|
+
return l != null && l.showOneToast && n(), Ll(a, o, typeof i == "string" ? { title: i } : i), {
|
|
1925
1941
|
close: () => Oe(a, o.position)
|
|
1926
1942
|
};
|
|
1927
1943
|
},
|
|
1928
1944
|
clearAllToasts: n
|
|
1929
1945
|
};
|
|
1930
1946
|
}
|
|
1931
|
-
function
|
|
1947
|
+
function Tl(e) {
|
|
1932
1948
|
const n = {
|
|
1933
1949
|
...Q,
|
|
1934
1950
|
...e,
|
|
@@ -1936,18 +1952,18 @@ function Ml(e) {
|
|
|
1936
1952
|
};
|
|
1937
1953
|
return n.hideProgressBar = !!(n.timeout && (n == null ? void 0 : n.timeout) <= 0), e.hideProgressBar && (n.hideProgressBar = e.hideProgressBar), n;
|
|
1938
1954
|
}
|
|
1939
|
-
function
|
|
1955
|
+
function Ll(e, n, t) {
|
|
1940
1956
|
setTimeout(() => {
|
|
1941
|
-
const i =
|
|
1957
|
+
const i = zl(n, ee, Ge), l = document.createElement("div");
|
|
1942
1958
|
document.body.appendChild(l);
|
|
1943
1959
|
const a = L(
|
|
1944
|
-
|
|
1945
|
-
|
|
1960
|
+
Ml,
|
|
1961
|
+
Pl(n, e, i, Oe, t)
|
|
1946
1962
|
);
|
|
1947
1963
|
De(a, l), ee[n.position].push({ toastVNode: a, container: l }), a.component && (a.component.props.visible = !0);
|
|
1948
1964
|
}, 1);
|
|
1949
1965
|
}
|
|
1950
|
-
function
|
|
1966
|
+
function Pl(e, n, t, i, l) {
|
|
1951
1967
|
return {
|
|
1952
1968
|
...e,
|
|
1953
1969
|
...l,
|
|
@@ -1959,12 +1975,12 @@ function Ll(e, n, t, i, l) {
|
|
|
1959
1975
|
}
|
|
1960
1976
|
};
|
|
1961
1977
|
}
|
|
1962
|
-
function
|
|
1978
|
+
function zl(e, n, t) {
|
|
1963
1979
|
if (!e.position)
|
|
1964
1980
|
throw new Error("no position");
|
|
1965
1981
|
return n[e.position].reduce((i, { toastVNode: l }) => (i += l.el.offsetHeight + t || 0, i), t);
|
|
1966
1982
|
}
|
|
1967
|
-
function
|
|
1983
|
+
function Vl(e, n, t, i) {
|
|
1968
1984
|
for (let l = e; l < n.length; l++) {
|
|
1969
1985
|
const { toastVNode: a } = n[l];
|
|
1970
1986
|
if (!a.el)
|
|
@@ -1986,7 +2002,7 @@ function Oe(e, n) {
|
|
|
1986
2002
|
if (i === -1)
|
|
1987
2003
|
return;
|
|
1988
2004
|
const { container: l, toastVNode: a } = t[i], o = (c = a == null ? void 0 : a.el) == null ? void 0 : c.offsetHeight;
|
|
1989
|
-
if (ee[n].splice(i, 1),
|
|
2005
|
+
if (ee[n].splice(i, 1), Vl(i, t, n, o), !a.component)
|
|
1990
2006
|
return;
|
|
1991
2007
|
const d = a.component.props;
|
|
1992
2008
|
d.visible = !1, d.onClose && d.onClose(), setTimeout(() => {
|
|
@@ -2009,17 +2025,17 @@ const Ae = {
|
|
|
2009
2025
|
SolDropdown: Se,
|
|
2010
2026
|
SolSelect: Ce,
|
|
2011
2027
|
SolChip: ce,
|
|
2012
|
-
SolAccordion:
|
|
2028
|
+
SolAccordion: Ie,
|
|
2013
2029
|
SolMenu: re,
|
|
2014
2030
|
SolMenuItemLink: ue,
|
|
2015
|
-
SolMenuNavigationLinks:
|
|
2031
|
+
SolMenuNavigationLinks: Be
|
|
2016
2032
|
};
|
|
2017
|
-
function
|
|
2033
|
+
function pl(e) {
|
|
2018
2034
|
for (const n in Ae)
|
|
2019
2035
|
e.component(n, Ae[n]);
|
|
2020
2036
|
}
|
|
2021
2037
|
export {
|
|
2022
|
-
|
|
2038
|
+
Ie as SolAccordion,
|
|
2023
2039
|
_ as SolButton,
|
|
2024
2040
|
Ne as SolButtonDestructive,
|
|
2025
2041
|
de as SolCheckbox,
|
|
@@ -2029,7 +2045,7 @@ export {
|
|
|
2029
2045
|
W as SolInput,
|
|
2030
2046
|
re as SolMenu,
|
|
2031
2047
|
ue as SolMenuItemLink,
|
|
2032
|
-
|
|
2048
|
+
Be as SolMenuNavigationLinks,
|
|
2033
2049
|
se as SolRadio,
|
|
2034
2050
|
ye as SolRadioGroup,
|
|
2035
2051
|
Ce as SolSelect,
|
|
@@ -2038,6 +2054,6 @@ export {
|
|
|
2038
2054
|
oe as SolTextfield,
|
|
2039
2055
|
$e as SolTextfieldPassword,
|
|
2040
2056
|
Ae as components,
|
|
2041
|
-
|
|
2042
|
-
|
|
2057
|
+
pl as install,
|
|
2058
|
+
El as useToast
|
|
2043
2059
|
};
|