@solfacil/girassol 0.2.11 → 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 +352 -347
- package/dist/girassol.umd.js +2 -2
- package/dist/style.css +1 -1
- 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/index.d.ts +33 -33
- package/package.json +1 -1
package/dist/girassol.es.js
CHANGED
|
@@ -11,7 +11,7 @@ const _e = /* @__PURE__ */ u("path", {
|
|
|
11
11
|
dark: { type: Boolean }
|
|
12
12
|
},
|
|
13
13
|
setup(e) {
|
|
14
|
-
return (
|
|
14
|
+
return (n, t) => (s(), r("svg", {
|
|
15
15
|
class: k(["sol-inner-loader", `-${e.size}`]),
|
|
16
16
|
viewBox: "0 0 32 32",
|
|
17
17
|
fill: "none",
|
|
@@ -19,7 +19,7 @@ const _e = /* @__PURE__ */ u("path", {
|
|
|
19
19
|
}, et, 2));
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const nt = ["data-testid", "disabled"], lt = { class: "icon -left" }, it = { class: "icon -right" }, at = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "loading"
|
|
25
25
|
}, _ = /* @__PURE__ */ O({
|
|
@@ -33,26 +33,26 @@ const lt = ["data-testid", "disabled"], nt = { class: "icon -left" }, it = { cla
|
|
|
33
33
|
variant: { default: "primary" }
|
|
34
34
|
},
|
|
35
35
|
setup(e) {
|
|
36
|
-
function
|
|
36
|
+
function n(a, o) {
|
|
37
37
|
return a ? o : "";
|
|
38
38
|
}
|
|
39
39
|
const t = Ye(), i = p(
|
|
40
40
|
() => !!(t != null && t.default) && (!!(t != null && t["icon-right"]) || !!(t != null && t["icon-left"]))
|
|
41
|
-
),
|
|
41
|
+
), l = p(
|
|
42
42
|
() => !(t != null && t.default) && (!!(t != null && t["icon-right"]) || !!(t != null && t["icon-left"]))
|
|
43
43
|
);
|
|
44
44
|
return (a, o) => (s(), r("button", {
|
|
45
45
|
"data-testid": `button-${e.id}`,
|
|
46
46
|
class: k(["sol-button-core", `-${e.variant} -${e.size}
|
|
47
|
-
${
|
|
48
|
-
${
|
|
49
|
-
${
|
|
50
|
-
${
|
|
47
|
+
${n(e.loading, "-loading-helper")}
|
|
48
|
+
${n(e.onColor, "-on-color")}
|
|
49
|
+
${n($(i), "-has-icon")}
|
|
50
|
+
${n($(l), "-only-icon")}
|
|
51
51
|
`]),
|
|
52
52
|
type: "button",
|
|
53
53
|
disabled: e.disabled || e.loading
|
|
54
54
|
}, [
|
|
55
|
-
u("div",
|
|
55
|
+
u("div", lt, [
|
|
56
56
|
m(a.$slots, "icon-left")
|
|
57
57
|
]),
|
|
58
58
|
m(a.$slots, "default"),
|
|
@@ -66,7 +66,7 @@ const lt = ["data-testid", "disabled"], nt = { class: "icon -left" }, it = { cla
|
|
|
66
66
|
dark: e.onColor
|
|
67
67
|
}, null, 8, ["data-testid", "size", "dark"])
|
|
68
68
|
])) : T("", !0)
|
|
69
|
-
], 10,
|
|
69
|
+
], 10, nt));
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
const ot = {
|
|
@@ -80,7 +80,7 @@ const ot = {
|
|
|
80
80
|
}, null, -1), dt = [
|
|
81
81
|
st
|
|
82
82
|
];
|
|
83
|
-
function ct(e,
|
|
83
|
+
function ct(e, n) {
|
|
84
84
|
return s(), r("svg", ot, dt);
|
|
85
85
|
}
|
|
86
86
|
const rt = { name: "material-symbols-delete-outline", render: ct }, Ne = /* @__PURE__ */ O({
|
|
@@ -91,7 +91,7 @@ const rt = { name: "material-symbols-delete-outline", render: ct }, Ne = /* @__P
|
|
|
91
91
|
loading: { type: Boolean }
|
|
92
92
|
},
|
|
93
93
|
setup(e) {
|
|
94
|
-
return (
|
|
94
|
+
return (n, t) => (s(), R(_, {
|
|
95
95
|
id: `destructive-${e.id}`,
|
|
96
96
|
size: e.size,
|
|
97
97
|
loading: e.loading,
|
|
@@ -102,7 +102,7 @@ const rt = { name: "material-symbols-delete-outline", render: ct }, Ne = /* @__P
|
|
|
102
102
|
L($(rt))
|
|
103
103
|
]),
|
|
104
104
|
default: E(() => [
|
|
105
|
-
m(
|
|
105
|
+
m(n.$slots, "default")
|
|
106
106
|
]),
|
|
107
107
|
_: 3
|
|
108
108
|
}, 8, ["id", "size", "loading"]));
|
|
@@ -123,17 +123,17 @@ const ut = ["id", "data-testid", "value"], W = /* @__PURE__ */ O({
|
|
|
123
123
|
error: { type: Boolean }
|
|
124
124
|
},
|
|
125
125
|
emits: ["update:modelValue"],
|
|
126
|
-
setup(e, { expose:
|
|
126
|
+
setup(e, { expose: n, emit: t }) {
|
|
127
127
|
function i({ target: a }) {
|
|
128
128
|
t("update:modelValue", a == null ? void 0 : a.value);
|
|
129
129
|
}
|
|
130
|
-
const
|
|
131
|
-
return
|
|
132
|
-
input:
|
|
130
|
+
const l = z("");
|
|
131
|
+
return n({
|
|
132
|
+
input: l
|
|
133
133
|
}), (a, o) => (s(), r("input", {
|
|
134
134
|
id: `input-${e.id}`,
|
|
135
135
|
ref_key: "input",
|
|
136
|
-
ref:
|
|
136
|
+
ref: l,
|
|
137
137
|
"data-testid": `input-${e.id}`,
|
|
138
138
|
value: e.modelValue,
|
|
139
139
|
class: k(["sol-input-core", { "-invert": e.invert, "-error": e.error }]),
|
|
@@ -156,18 +156,18 @@ const ht = ["id", "data-testid"], ft = ["for"], mt = { class: "container-input"
|
|
|
156
156
|
error: null
|
|
157
157
|
},
|
|
158
158
|
emits: ["update:modelValue"],
|
|
159
|
-
setup(e, { emit:
|
|
159
|
+
setup(e, { emit: n }) {
|
|
160
160
|
const t = e, i = p({
|
|
161
161
|
get: () => t.modelValue,
|
|
162
162
|
set: (o) => {
|
|
163
|
-
|
|
163
|
+
n("update:modelValue", o);
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
|
-
function
|
|
166
|
+
function l(o, d) {
|
|
167
167
|
return !!o && !d;
|
|
168
168
|
}
|
|
169
169
|
function a(o, d) {
|
|
170
|
-
return d ? `error-${t.id}` :
|
|
170
|
+
return d ? `error-${t.id}` : l(o, d) ? `hint-${t.id}` : null;
|
|
171
171
|
}
|
|
172
172
|
return (o, d) => {
|
|
173
173
|
var c;
|
|
@@ -200,7 +200,7 @@ const ht = ["id", "data-testid"], ft = ["for"], mt = { class: "container-input"
|
|
|
200
200
|
]),
|
|
201
201
|
m(o.$slots, "icon")
|
|
202
202
|
]),
|
|
203
|
-
|
|
203
|
+
l(e.hint, e.error) ? (s(), r("span", {
|
|
204
204
|
key: 0,
|
|
205
205
|
id: `hint-${e.id}`,
|
|
206
206
|
class: "hint"
|
|
@@ -224,7 +224,7 @@ const bt = {
|
|
|
224
224
|
], -1), gt = [
|
|
225
225
|
yt
|
|
226
226
|
];
|
|
227
|
-
function wt(e,
|
|
227
|
+
function wt(e, n) {
|
|
228
228
|
return s(), r("svg", bt, gt);
|
|
229
229
|
}
|
|
230
230
|
const kt = { name: "mi-eye", render: wt }, xt = {
|
|
@@ -238,7 +238,7 @@ const kt = { name: "mi-eye", render: wt }, xt = {
|
|
|
238
238
|
}, null, -1), Ct = [
|
|
239
239
|
St
|
|
240
240
|
];
|
|
241
|
-
function It(e,
|
|
241
|
+
function It(e, n) {
|
|
242
242
|
return s(), r("svg", xt, Ct);
|
|
243
243
|
}
|
|
244
244
|
const Bt = { name: "mi-eye-off", render: It }, Ot = ["aria-label"], $e = /* @__PURE__ */ O({
|
|
@@ -248,10 +248,10 @@ const Bt = { name: "mi-eye-off", render: It }, Ot = ["aria-label"], $e = /* @__P
|
|
|
248
248
|
label: { default: "Sua senha" }
|
|
249
249
|
},
|
|
250
250
|
setup(e) {
|
|
251
|
-
const
|
|
252
|
-
() =>
|
|
251
|
+
const n = z(!1), t = p(
|
|
252
|
+
() => n.value ? "text" : "password"
|
|
253
253
|
);
|
|
254
|
-
return (i,
|
|
254
|
+
return (i, l) => (s(), R(oe, {
|
|
255
255
|
id: e.id,
|
|
256
256
|
required: "",
|
|
257
257
|
type: $(t),
|
|
@@ -262,14 +262,14 @@ const Bt = { name: "mi-eye-off", render: It }, Ot = ["aria-label"], $e = /* @__P
|
|
|
262
262
|
u("button", {
|
|
263
263
|
type: "button",
|
|
264
264
|
"data-testid": "toggle-type-password",
|
|
265
|
-
"aria-label":
|
|
266
|
-
onClick:
|
|
265
|
+
"aria-label": n.value ? "Hide password" : "Show password",
|
|
266
|
+
onClick: l[0] || (l[0] = (a) => n.value = !n.value)
|
|
267
267
|
}, [
|
|
268
268
|
Y(L($(kt), { "aria-hidden": "true" }, null, 512), [
|
|
269
|
-
[X,
|
|
269
|
+
[X, n.value]
|
|
270
270
|
]),
|
|
271
271
|
Y(L($(Bt), { "aria-hidden": "true" }, null, 512), [
|
|
272
|
-
[X, !
|
|
272
|
+
[X, !n.value]
|
|
273
273
|
])
|
|
274
274
|
], 8, Ot)
|
|
275
275
|
]),
|
|
@@ -296,18 +296,18 @@ const Mt = ["id", "data-testid"], Tt = ["for"], Lt = { class: "container-textare
|
|
|
296
296
|
error: null
|
|
297
297
|
},
|
|
298
298
|
emits: ["update:modelValue"],
|
|
299
|
-
setup(e, { emit:
|
|
299
|
+
setup(e, { emit: n }) {
|
|
300
300
|
const t = e, i = p({
|
|
301
301
|
get: () => t.modelValue,
|
|
302
302
|
set: (o) => {
|
|
303
|
-
|
|
303
|
+
n("update:modelValue", o);
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
|
-
function
|
|
306
|
+
function l(o, d) {
|
|
307
307
|
return !!o && !d;
|
|
308
308
|
}
|
|
309
309
|
function a(o, d) {
|
|
310
|
-
return d ? `error-${t.id}` :
|
|
310
|
+
return d ? `error-${t.id}` : l(o, d) ? `hint-${t.id}` : null;
|
|
311
311
|
}
|
|
312
312
|
return (o, d) => {
|
|
313
313
|
var c;
|
|
@@ -341,7 +341,7 @@ const Mt = ["id", "data-testid"], Tt = ["for"], Lt = { class: "container-textare
|
|
|
341
341
|
])
|
|
342
342
|
])
|
|
343
343
|
]),
|
|
344
|
-
|
|
344
|
+
l(e.hint, e.error) ? (s(), r("span", {
|
|
345
345
|
key: 0,
|
|
346
346
|
id: `hint-${e.id}`,
|
|
347
347
|
class: "hint"
|
|
@@ -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,
|
|
@@ -368,7 +371,7 @@ const At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], se =
|
|
|
368
371
|
class: null
|
|
369
372
|
},
|
|
370
373
|
emits: ["change"],
|
|
371
|
-
setup(e, { emit:
|
|
374
|
+
setup(e, { emit: n }) {
|
|
372
375
|
return (t, i) => (s(), r("div", {
|
|
373
376
|
class: k(["sol-radio-core", t.$props.class])
|
|
374
377
|
}, [
|
|
@@ -380,7 +383,7 @@ const At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], se =
|
|
|
380
383
|
checked: e.checked,
|
|
381
384
|
value: e.value,
|
|
382
385
|
name: e.name,
|
|
383
|
-
onChange: i[0] || (i[0] = (
|
|
386
|
+
onChange: i[0] || (i[0] = (l) => n("change", e.value))
|
|
384
387
|
}), null, 16, At),
|
|
385
388
|
u("label", {
|
|
386
389
|
class: "label",
|
|
@@ -389,7 +392,7 @@ const At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], se =
|
|
|
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,
|
|
@@ -402,19 +405,19 @@ const pt = ["aria-labelledby"], Dt = ["id", "data-testid"], Nt = ["id"], Rt = ["
|
|
|
402
405
|
direction: { default: "row" }
|
|
403
406
|
},
|
|
404
407
|
emits: ["change", "update:modelValue"],
|
|
405
|
-
setup(e, { emit:
|
|
408
|
+
setup(e, { emit: n }) {
|
|
406
409
|
const t = e;
|
|
407
410
|
function i(d, c) {
|
|
408
411
|
return !!d && !c;
|
|
409
412
|
}
|
|
410
|
-
function
|
|
413
|
+
function l(d, c) {
|
|
411
414
|
return c ? `error-${t.id}` : i(d, c) ? `hint-${t.id}` : null;
|
|
412
415
|
}
|
|
413
416
|
function a(d) {
|
|
414
417
|
return (t == null ? void 0 : t.modelValue) === d;
|
|
415
418
|
}
|
|
416
419
|
function o(d) {
|
|
417
|
-
|
|
420
|
+
n("change", d.value), n("update:modelValue", d.value);
|
|
418
421
|
}
|
|
419
422
|
return (d, c) => (s(), r("fieldset", {
|
|
420
423
|
class: "sol-radio-group-core",
|
|
@@ -427,7 +430,7 @@ const pt = ["aria-labelledby"], Dt = ["id", "data-testid"], Nt = ["id"], Rt = ["
|
|
|
427
430
|
id: `radio-group-title-${e.id}`,
|
|
428
431
|
class: k(["title", { "sr-only": e.hideTitle }]),
|
|
429
432
|
"data-testid": `radio-group-title-${e.id}`
|
|
430
|
-
}, x(e.title), 11,
|
|
433
|
+
}, x(e.title), 11, Nt)
|
|
431
434
|
]),
|
|
432
435
|
u("ul", {
|
|
433
436
|
class: k(["container-radios", { "flex-col": e.direction === "column" }])
|
|
@@ -447,7 +450,7 @@ const pt = ["aria-labelledby"], Dt = ["id", "data-testid"], Nt = ["id"], Rt = ["
|
|
|
447
450
|
label: h.label,
|
|
448
451
|
checked: a(h.value),
|
|
449
452
|
"aria-invalid": !!e.error,
|
|
450
|
-
"aria-describedby":
|
|
453
|
+
"aria-describedby": l(e.hint, e.error),
|
|
451
454
|
onChange: (y) => o(h)
|
|
452
455
|
}), null, 16, ["id", "class", "name", "value", "label", "checked", "aria-invalid", "aria-describedby", "onChange"])
|
|
453
456
|
]);
|
|
@@ -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
|
-
}, x(e.hint), 9,
|
|
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
|
-
}, x(e.error), 9,
|
|
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,
|
|
@@ -483,7 +488,7 @@ const Ht = ["id", "data-testid", "checked", "value", "name"], Ft = ["for"], de =
|
|
|
483
488
|
class: null
|
|
484
489
|
},
|
|
485
490
|
emits: ["change"],
|
|
486
|
-
setup(e, { emit:
|
|
491
|
+
setup(e, { emit: n }) {
|
|
487
492
|
return (t, i) => (s(), r("div", {
|
|
488
493
|
class: k(["sol-checkbox-core", t.$props.class])
|
|
489
494
|
}, [
|
|
@@ -495,16 +500,16 @@ const Ht = ["id", "data-testid", "checked", "value", "name"], Ft = ["for"], de =
|
|
|
495
500
|
checked: e.checked,
|
|
496
501
|
value: e.value,
|
|
497
502
|
name: e.name,
|
|
498
|
-
onChange: i[0] || (i[0] = (
|
|
499
|
-
}), null, 16,
|
|
503
|
+
onChange: i[0] || (i[0] = (l) => n("change", e.value))
|
|
504
|
+
}), null, 16, Ft),
|
|
500
505
|
u("label", {
|
|
501
506
|
class: "label",
|
|
502
507
|
for: `checkbox-${e.name}-${e.id}`
|
|
503
|
-
}, x(e.label), 9,
|
|
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,
|
|
@@ -517,12 +522,12 @@ const qt = ["aria-labelledby"], Kt = ["id", "data-testid"], Ut = ["id"], Gt = ["
|
|
|
517
522
|
direction: { default: "row" }
|
|
518
523
|
},
|
|
519
524
|
emits: ["change", "update:modelValue"],
|
|
520
|
-
setup(e, { emit:
|
|
525
|
+
setup(e, { emit: n }) {
|
|
521
526
|
const t = e;
|
|
522
527
|
function i(c, h) {
|
|
523
528
|
return !!c && !h;
|
|
524
529
|
}
|
|
525
|
-
function
|
|
530
|
+
function l(c, h) {
|
|
526
531
|
return h ? `error-${t.id}` : i(c, h) ? `hint-${t.id}` : null;
|
|
527
532
|
}
|
|
528
533
|
function a(c) {
|
|
@@ -534,9 +539,9 @@ const qt = ["aria-labelledby"], Kt = ["id", "data-testid"], Ut = ["id"], Gt = ["
|
|
|
534
539
|
}
|
|
535
540
|
function d(c) {
|
|
536
541
|
var f;
|
|
537
|
-
|
|
542
|
+
n("change", c.value);
|
|
538
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", {
|
|
542
547
|
class: "sol-checkbox-group-core",
|
|
@@ -549,7 +554,7 @@ const qt = ["aria-labelledby"], Kt = ["id", "data-testid"], Ut = ["id"], Gt = ["
|
|
|
549
554
|
id: `checkbox-group-title-${e.id}`,
|
|
550
555
|
class: k(["title", { "sr-only": e.hideTitle }]),
|
|
551
556
|
"data-testid": `checkbox-group-title-${e.id}`
|
|
552
|
-
}, x(e.title), 11,
|
|
557
|
+
}, x(e.title), 11, Ut)
|
|
553
558
|
]),
|
|
554
559
|
u("ul", {
|
|
555
560
|
class: k(["container-checkboxes", { "flex-col": e.direction === "column" }])
|
|
@@ -569,7 +574,7 @@ const qt = ["aria-labelledby"], Kt = ["id", "data-testid"], Ut = ["id"], Gt = ["
|
|
|
569
574
|
value: f.value,
|
|
570
575
|
checked: a(f.value),
|
|
571
576
|
"aria-invalid": !!e.error,
|
|
572
|
-
"aria-describedby":
|
|
577
|
+
"aria-describedby": l(e.hint, e.error),
|
|
573
578
|
onChange: (S) => d(f)
|
|
574
579
|
}), null, 16, ["id", "class", "label", "name", "value", "checked", "aria-invalid", "aria-describedby", "onChange"])
|
|
575
580
|
]);
|
|
@@ -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
|
-
}, x(e.hint), 9,
|
|
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
|
-
}, x(e.error), 9,
|
|
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,
|
|
@@ -607,7 +612,7 @@ const Qt = ["id", "for", "data-testid"], Yt = { class: "switch-container" }, Wt
|
|
|
607
612
|
horizontalLabel: { type: Boolean }
|
|
608
613
|
},
|
|
609
614
|
emits: ["change"],
|
|
610
|
-
setup(e, { emit:
|
|
615
|
+
setup(e, { emit: n }) {
|
|
611
616
|
return (t, i) => (s(), r("div", {
|
|
612
617
|
class: k(["sol-switch-core", [t.$props.class, { "-horizontal": e.horizontalLabel }]])
|
|
613
618
|
}, [
|
|
@@ -616,8 +621,8 @@ const Qt = ["id", "for", "data-testid"], Yt = { class: "switch-container" }, Wt
|
|
|
616
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
|
-
}, x(e.label), 11,
|
|
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",
|
|
@@ -629,9 +634,9 @@ const Qt = ["id", "for", "data-testid"], Yt = { class: "switch-container" }, Wt
|
|
|
629
634
|
checked: e.checked,
|
|
630
635
|
value: e.value,
|
|
631
636
|
name: e.name,
|
|
632
|
-
onChange: i[0] || (i[0] = (
|
|
633
|
-
}), null, 16,
|
|
634
|
-
|
|
637
|
+
onChange: i[0] || (i[0] = (l) => n("change", e.value))
|
|
638
|
+
}), null, 16, jt),
|
|
639
|
+
Zt
|
|
635
640
|
])
|
|
636
641
|
], 2));
|
|
637
642
|
}
|
|
@@ -640,43 +645,43 @@ 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
|
-
var
|
|
657
|
-
const t =
|
|
658
|
-
return (
|
|
661
|
+
var n;
|
|
662
|
+
const t = Xt(e);
|
|
663
|
+
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
659
664
|
}
|
|
660
665
|
const Re = te ? window : void 0;
|
|
661
666
|
te && window.document;
|
|
662
667
|
te && window.navigator;
|
|
663
668
|
te && window.location;
|
|
664
|
-
function
|
|
665
|
-
let
|
|
666
|
-
if (
|
|
669
|
+
function le(...e) {
|
|
670
|
+
let n, t, i, l;
|
|
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
|
-
const o = Je(() => J(
|
|
670
|
-
a(), c && (c.addEventListener(t, i,
|
|
671
|
-
c.removeEventListener(t, i,
|
|
674
|
+
const o = Je(() => J(n), (c) => {
|
|
675
|
+
a(), c && (c.addEventListener(t, i, l), a = () => {
|
|
676
|
+
c.removeEventListener(t, i, l), a = ve;
|
|
672
677
|
});
|
|
673
678
|
}, { immediate: !0, flush: "post" }), d = () => {
|
|
674
679
|
o(), a();
|
|
675
680
|
};
|
|
676
|
-
return
|
|
681
|
+
return en(d), d;
|
|
677
682
|
}
|
|
678
|
-
function Te(e,
|
|
679
|
-
const { window: i = Re, ignore:
|
|
683
|
+
function Te(e, n, t = {}) {
|
|
684
|
+
const { window: i = Re, ignore: l, capture: a = !0, detectIframe: o = !1 } = t;
|
|
680
685
|
if (!i)
|
|
681
686
|
return;
|
|
682
687
|
const d = z(!0);
|
|
@@ -684,26 +689,26 @@ function Te(e, l, t = {}) {
|
|
|
684
689
|
const h = (y) => {
|
|
685
690
|
i.clearTimeout(c);
|
|
686
691
|
const S = J(e), B = y.composedPath();
|
|
687
|
-
!S || S === y.target || B.includes(S) || !d.value ||
|
|
692
|
+
!S || S === y.target || B.includes(S) || !d.value || l && l.length > 0 && l.some((M) => {
|
|
688
693
|
const N = J(M);
|
|
689
694
|
return N && (y.target === N || B.includes(N));
|
|
690
|
-
}) ||
|
|
695
|
+
}) || n(y);
|
|
691
696
|
}, f = [
|
|
692
|
-
|
|
693
|
-
|
|
697
|
+
le(i, "click", h, { passive: !0, capture: a }),
|
|
698
|
+
le(i, "pointerdown", (y) => {
|
|
694
699
|
const S = J(e);
|
|
695
700
|
d.value = !!S && !y.composedPath().includes(S);
|
|
696
701
|
}, { passive: !0 }),
|
|
697
|
-
|
|
702
|
+
le(i, "pointerup", (y) => {
|
|
698
703
|
if (y.button === 0) {
|
|
699
704
|
const S = y.composedPath();
|
|
700
705
|
y.composedPath = () => S, c = i.setTimeout(() => h(y), 50);
|
|
701
706
|
}
|
|
702
707
|
}, { passive: !0 }),
|
|
703
|
-
o &&
|
|
708
|
+
o && le(i, "blur", (y) => {
|
|
704
709
|
var S;
|
|
705
710
|
const B = J(e);
|
|
706
|
-
((S = document.activeElement) == null ? void 0 : S.tagName) === "IFRAME" && !(B != null && B.contains(document.activeElement)) &&
|
|
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());
|
|
@@ -715,15 +720,15 @@ 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
|
|
719
|
-
for (var t in
|
|
720
|
-
|
|
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) => {
|
|
724
|
+
for (var t in n || (n = {}))
|
|
725
|
+
nn.call(n, t) && Ve(e, t, n[t]);
|
|
721
726
|
if (ze)
|
|
722
|
-
for (var t of ze(
|
|
723
|
-
|
|
727
|
+
for (var t of ze(n))
|
|
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 il = {
|
|
|
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,
|
|
@@ -787,8 +792,8 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
787
792
|
options: { default: () => [] }
|
|
788
793
|
},
|
|
789
794
|
emits: ["closeDropdown", "search", "update:selected"],
|
|
790
|
-
setup(e, { emit:
|
|
791
|
-
const t = e, i = z(),
|
|
795
|
+
setup(e, { emit: n }) {
|
|
796
|
+
const t = e, i = z(), l = z(!1), a = z(""), o = p(
|
|
792
797
|
() => {
|
|
793
798
|
var b;
|
|
794
799
|
return t.fetchOnSearch ? t.options : (b = t.options) == null ? void 0 : b.filter(
|
|
@@ -799,16 +804,16 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
799
804
|
() => Array.isArray(t.selected) ? t.selected.join(", ").trim() : t.selected
|
|
800
805
|
);
|
|
801
806
|
Te(i, () => {
|
|
802
|
-
|
|
807
|
+
l.value && f();
|
|
803
808
|
});
|
|
804
809
|
function c() {
|
|
805
|
-
t.disabled || (
|
|
810
|
+
t.disabled || (l.value ? f() : h());
|
|
806
811
|
}
|
|
807
812
|
function h() {
|
|
808
|
-
|
|
813
|
+
l.value = !0;
|
|
809
814
|
}
|
|
810
815
|
function f() {
|
|
811
|
-
he(),
|
|
816
|
+
he(), n("closeDropdown");
|
|
812
817
|
}
|
|
813
818
|
function I(b) {
|
|
814
819
|
const v = new Set(t.selected);
|
|
@@ -816,7 +821,7 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
816
821
|
}
|
|
817
822
|
function y(b) {
|
|
818
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;
|
|
@@ -844,7 +849,7 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
844
849
|
case "ArrowUp":
|
|
845
850
|
return M.index > 0 && (M.index -= 1), v();
|
|
846
851
|
case "ArrowDown":
|
|
847
|
-
return
|
|
852
|
+
return l.value ? (M.index < o.value.length - 1 && (M.index += 1), v()) : (h(), v(0));
|
|
848
853
|
case "Home":
|
|
849
854
|
return v(0);
|
|
850
855
|
case "End":
|
|
@@ -856,12 +861,12 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
856
861
|
}
|
|
857
862
|
}
|
|
858
863
|
function he() {
|
|
859
|
-
|
|
864
|
+
l.value = !1, M.index = 0, a.value = "";
|
|
860
865
|
}
|
|
861
866
|
function G(b, v) {
|
|
862
867
|
return typeof b == "string" ? b : b[v != null ? v : "value"];
|
|
863
868
|
}
|
|
864
|
-
function
|
|
869
|
+
function ne(b, v) {
|
|
865
870
|
B[b] = v != null ? v : void 0;
|
|
866
871
|
}
|
|
867
872
|
return (b, v) => (s(), r("div", {
|
|
@@ -876,7 +881,7 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
876
881
|
id: `label-dropdown-${e.id}`,
|
|
877
882
|
class: k(["label", { "-disabled": e.disabled, "sr-only": e.ariaLabel }]),
|
|
878
883
|
for: `toggle-dropdown-${e.id}`
|
|
879
|
-
}, x(e.label || e.ariaLabel), 11,
|
|
884
|
+
}, x(e.label || e.ariaLabel), 11, hn)
|
|
880
885
|
]),
|
|
881
886
|
u("button", {
|
|
882
887
|
id: `toggle-dropdown-${e.id}`,
|
|
@@ -884,7 +889,7 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
884
889
|
"data-testid": `toggle-dropdown-${e.id}`,
|
|
885
890
|
class: "button-toggle-dropdown toggle-dropdown",
|
|
886
891
|
"aria-haspopup": "listbox",
|
|
887
|
-
"aria-expanded":
|
|
892
|
+
"aria-expanded": l.value,
|
|
888
893
|
"aria-labelledby": `label-dropdown-${e.id}`,
|
|
889
894
|
"aria-label": e.ariaLabel,
|
|
890
895
|
"aria-controls": `dropdown-list-${e.id}`,
|
|
@@ -892,20 +897,20 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
892
897
|
}, [
|
|
893
898
|
m(b.$slots, "toggle-dropdown", {
|
|
894
899
|
toggle: { open: h, close: f, toggleDropdown: c },
|
|
895
|
-
isOpen:
|
|
900
|
+
isOpen: l.value,
|
|
896
901
|
select: y,
|
|
897
902
|
selectedSanitized: $(d),
|
|
898
903
|
selected: e.selected
|
|
899
904
|
}, () => [
|
|
900
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
916
|
class: k(["search-container", { "-loading": e.loading }])
|
|
@@ -913,7 +918,7 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
913
918
|
m(b.$slots, "search", { filter: a.value }, () => [
|
|
914
919
|
L(W, {
|
|
915
920
|
id: `search-dropdown-${e.id}`,
|
|
916
|
-
ref: (C) =>
|
|
921
|
+
ref: (C) => ne("search", C == null ? void 0 : C.input),
|
|
917
922
|
modelValue: a.value,
|
|
918
923
|
"onUpdate:modelValue": v[0] || (v[0] = (C) => a.value = C),
|
|
919
924
|
"data-testid": `search-dropdown-${e.id}`,
|
|
@@ -921,7 +926,7 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
921
926
|
class: "search",
|
|
922
927
|
"aria-autocomplete": "list",
|
|
923
928
|
placeholder: e.searchPlaceholder,
|
|
924
|
-
"aria-expanded":
|
|
929
|
+
"aria-expanded": l.value,
|
|
925
930
|
"aria-haspopup": "listbox",
|
|
926
931
|
"aria-owns": `dropdown-list-${e.id}`,
|
|
927
932
|
"aria-controls": `dropdown-list-${e.id}`,
|
|
@@ -931,7 +936,7 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
931
936
|
}, ["stop"])),
|
|
932
937
|
onInput: v[2] || (v[2] = (C) => {
|
|
933
938
|
var P;
|
|
934
|
-
return
|
|
939
|
+
return n("search", (P = C.target) == null ? void 0 : P.value);
|
|
935
940
|
})
|
|
936
941
|
}, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
|
|
937
942
|
L($(He), {
|
|
@@ -942,7 +947,7 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
942
947
|
], 2)) : T("", !0),
|
|
943
948
|
u("ul", {
|
|
944
949
|
id: `dropdown-list-${e.id}`,
|
|
945
|
-
ref: (C) =>
|
|
950
|
+
ref: (C) => ne("list", C),
|
|
946
951
|
"data-testid": `dropdown-list-${e.id}`,
|
|
947
952
|
role: "listbox",
|
|
948
953
|
tabindex: "-1",
|
|
@@ -973,40 +978,40 @@ const He = { name: "mi-search", render: dl }, cl = ["data-testid"], rl = ["id",
|
|
|
973
978
|
}, () => [
|
|
974
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
|
-
[X,
|
|
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
|
-
function
|
|
1007
|
-
return s(), r("svg",
|
|
1011
|
+
function xn(e, n) {
|
|
1012
|
+
return s(), r("svg", gn, kn);
|
|
1008
1013
|
}
|
|
1009
|
-
const Fe = { name: "mi-close", render:
|
|
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,
|
|
@@ -1016,23 +1021,23 @@ const Fe = { name: "mi-close", render: wl }, kl = ["id", "data-testid", "title",
|
|
|
1016
1021
|
removable: { type: Boolean, default: !0 }
|
|
1017
1022
|
},
|
|
1018
1023
|
emits: ["close", "update:selected"],
|
|
1019
|
-
setup(e, { emit:
|
|
1024
|
+
setup(e, { emit: n }) {
|
|
1020
1025
|
const t = e;
|
|
1021
|
-
function i({ code:
|
|
1026
|
+
function i({ code: l }) {
|
|
1022
1027
|
if (!t.disabled)
|
|
1023
|
-
switch (
|
|
1028
|
+
switch (l) {
|
|
1024
1029
|
case "Enter":
|
|
1025
1030
|
case "NumpadEnter":
|
|
1026
1031
|
case "Space":
|
|
1027
|
-
return
|
|
1032
|
+
return n("update:selected");
|
|
1028
1033
|
case "Delete":
|
|
1029
1034
|
case "Backspace":
|
|
1030
|
-
return t.removable &&
|
|
1035
|
+
return t.removable && n("close");
|
|
1031
1036
|
default:
|
|
1032
1037
|
return !1;
|
|
1033
1038
|
}
|
|
1034
1039
|
}
|
|
1035
|
-
return (
|
|
1040
|
+
return (l, a) => (s(), r("div", {
|
|
1036
1041
|
id: `chip-${e.id}`,
|
|
1037
1042
|
"data-testid": `chip-${e.id}`,
|
|
1038
1043
|
class: k(["sol-chip-core", { "-selected": e.selected, "-disabled": e.disabled }]),
|
|
@@ -1040,16 +1045,16 @@ const Fe = { name: "mi-close", render: wl }, kl = ["id", "data-testid", "title",
|
|
|
1040
1045
|
title: e.label,
|
|
1041
1046
|
"aria-describedby": `chip-description-${e.id}`,
|
|
1042
1047
|
"aria-disabled": e.disabled,
|
|
1043
|
-
onClick: a[1] || (a[1] = (o) =>
|
|
1048
|
+
onClick: a[1] || (a[1] = (o) => n("update:selected")),
|
|
1044
1049
|
onKeydown: q(i, ["self"])
|
|
1045
1050
|
}, [
|
|
1046
1051
|
u("span", {
|
|
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",
|
|
1052
|
-
m(
|
|
1055
|
+
}, "Press Delete or Backspace to remove this Chip", 8, Cn),
|
|
1056
|
+
u("span", In, [
|
|
1057
|
+
m(l.$slots, "default", {}, () => [
|
|
1053
1058
|
D(x(e.label), 1)
|
|
1054
1059
|
])
|
|
1055
1060
|
]),
|
|
@@ -1058,17 +1063,17 @@ const Fe = { name: "mi-close", render: wl }, kl = ["id", "data-testid", "title",
|
|
|
1058
1063
|
role: "presentation",
|
|
1059
1064
|
"aira-hidden": "true",
|
|
1060
1065
|
class: "close",
|
|
1061
|
-
onClick: a[0] || (a[0] = q((o) =>
|
|
1066
|
+
onClick: a[0] || (a[0] = q((o) => n("close"), ["stop"]))
|
|
1062
1067
|
}, [
|
|
1063
1068
|
L($(Fe), { class: "icon" })
|
|
1064
1069
|
])) : T("", !0)
|
|
1065
|
-
], 42,
|
|
1070
|
+
], 42, Sn));
|
|
1066
1071
|
}
|
|
1067
1072
|
});
|
|
1068
|
-
const
|
|
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,
|
|
@@ -1077,11 +1082,11 @@ const Cl = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], Il
|
|
|
1077
1082
|
isSelected: null
|
|
1078
1083
|
},
|
|
1079
1084
|
emits: ["select"],
|
|
1080
|
-
setup(e, { expose:
|
|
1085
|
+
setup(e, { expose: n, emit: t }) {
|
|
1081
1086
|
const i = z("");
|
|
1082
|
-
return
|
|
1087
|
+
return n({
|
|
1083
1088
|
list: i
|
|
1084
|
-
}), (
|
|
1089
|
+
}), (l, a) => (s(), r("ul", {
|
|
1085
1090
|
id: `select-list-${e.id}`,
|
|
1086
1091
|
ref_key: "list",
|
|
1087
1092
|
ref: i,
|
|
@@ -1108,7 +1113,7 @@ const Cl = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], Il
|
|
|
1108
1113
|
K((c) => t("select", o), ["space"])
|
|
1109
1114
|
]
|
|
1110
1115
|
}, [
|
|
1111
|
-
m(
|
|
1116
|
+
m(l.$slots, "item-list", {
|
|
1112
1117
|
text: o.name,
|
|
1113
1118
|
value: o.value,
|
|
1114
1119
|
option: o,
|
|
@@ -1116,46 +1121,46 @@ const Cl = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], Il
|
|
|
1116
1121
|
}, () => [
|
|
1117
1122
|
D(x(o.name), 1)
|
|
1118
1123
|
])
|
|
1119
|
-
], 44,
|
|
1120
|
-
e.options.length ? T("", !0) : (s(), r("li",
|
|
1121
|
-
m(
|
|
1122
|
-
|
|
1124
|
+
], 44, On))), 128)),
|
|
1125
|
+
e.options.length ? T("", !0) : (s(), r("li", Mn, [
|
|
1126
|
+
m(l.$slots, "no-data", {}, () => [
|
|
1127
|
+
Tn
|
|
1123
1128
|
])
|
|
1124
1129
|
]))
|
|
1125
|
-
], 8,
|
|
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
|
|
1143
|
-
function qe(e,
|
|
1147
|
+
const En = { name: "mi-caret-down", render: An };
|
|
1148
|
+
function qe(e, n) {
|
|
1144
1149
|
function t({ code: i }) {
|
|
1145
1150
|
var o;
|
|
1146
|
-
const
|
|
1151
|
+
const l = i;
|
|
1147
1152
|
(() => {
|
|
1148
|
-
if (!(
|
|
1153
|
+
if (!(n != null && n.fallback))
|
|
1149
1154
|
return !1;
|
|
1150
|
-
const d = (c) => Array.isArray(c) ? !c.includes(
|
|
1151
|
-
return
|
|
1152
|
-
})() && (
|
|
1155
|
+
const d = (c) => Array.isArray(c) ? !c.includes(l) : l !== c;
|
|
1156
|
+
return n != null && n.exclude ? !e.hasOwnProperty(l) && d(n.exclude) : !e.hasOwnProperty(l);
|
|
1157
|
+
})() && (n == null || n.fallback()), e.hasOwnProperty(l) && ((o = e[l]) == null || o.call(e));
|
|
1153
1158
|
}
|
|
1154
1159
|
return {
|
|
1155
1160
|
navigate: t
|
|
1156
1161
|
};
|
|
1157
1162
|
}
|
|
1158
|
-
function Ke({ target: e, query:
|
|
1163
|
+
function Ke({ target: e, query: n }) {
|
|
1159
1164
|
const t = ie({
|
|
1160
1165
|
id: "",
|
|
1161
1166
|
index: -1
|
|
@@ -1164,11 +1169,11 @@ function Ke({ target: e, query: l }) {
|
|
|
1164
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[I], B =
|
|
1172
|
+
const S = y.children[I], B = n && S.querySelector(n) ? S.querySelector(n) : S;
|
|
1168
1173
|
t.id = (M = S == null ? void 0 : S.id) != null ? M : "", B == null || B.focus();
|
|
1169
1174
|
}, 0);
|
|
1170
1175
|
}
|
|
1171
|
-
function
|
|
1176
|
+
function l() {
|
|
1172
1177
|
t.index > 0 && (t.index -= 1, i());
|
|
1173
1178
|
}
|
|
1174
1179
|
function a(f) {
|
|
@@ -1191,20 +1196,20 @@ function Ke({ target: e, query: l }) {
|
|
|
1191
1196
|
isItemFocused: c,
|
|
1192
1197
|
resetStateFocus: h,
|
|
1193
1198
|
focusListItem: i,
|
|
1194
|
-
focusOnPreviousItem:
|
|
1199
|
+
focusOnPreviousItem: l,
|
|
1195
1200
|
focusOnNextItem: a,
|
|
1196
1201
|
focusOnFirstItem: o,
|
|
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,
|
|
@@ -1224,24 +1229,24 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1224
1229
|
placeholder: { default: "placeholder" }
|
|
1225
1230
|
},
|
|
1226
1231
|
emits: ["closeDropdown", "search", "update:selected"],
|
|
1227
|
-
setup(e, { emit:
|
|
1228
|
-
const t = e, i = z(),
|
|
1232
|
+
setup(e, { emit: n }) {
|
|
1233
|
+
const t = e, i = z(), l = z(!1), a = z(""), o = p(
|
|
1229
1234
|
() => {
|
|
1230
1235
|
var g;
|
|
1231
1236
|
return t.fetchOnSearch ? t.options : (g = t.options) == null ? void 0 : g.filter((w) => w.name.includes(a.value));
|
|
1232
1237
|
}
|
|
1233
1238
|
);
|
|
1234
1239
|
Te(i, () => {
|
|
1235
|
-
|
|
1240
|
+
l.value && h();
|
|
1236
1241
|
});
|
|
1237
1242
|
function d() {
|
|
1238
|
-
t.disabled || (
|
|
1243
|
+
t.disabled || (l.value ? h() : c());
|
|
1239
1244
|
}
|
|
1240
1245
|
function c() {
|
|
1241
|
-
|
|
1246
|
+
l.value = !0;
|
|
1242
1247
|
}
|
|
1243
1248
|
function h() {
|
|
1244
|
-
P(),
|
|
1249
|
+
P(), n("closeDropdown");
|
|
1245
1250
|
}
|
|
1246
1251
|
function f(g) {
|
|
1247
1252
|
if (Array.isArray(t.selected)) {
|
|
@@ -1253,7 +1258,7 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1253
1258
|
return [g];
|
|
1254
1259
|
}
|
|
1255
1260
|
function I(g) {
|
|
1256
|
-
t.multiple ?
|
|
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;
|
|
@@ -1268,7 +1273,7 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1268
1273
|
elementFocus: N,
|
|
1269
1274
|
focusOnFirstItem: he,
|
|
1270
1275
|
focusOnLastItem: G,
|
|
1271
|
-
focusOnNextItem:
|
|
1276
|
+
focusOnNextItem: ne,
|
|
1272
1277
|
focusOnPreviousItem: b,
|
|
1273
1278
|
resetStateFocus: v
|
|
1274
1279
|
} = Ke({ target: B }), { navigate: C } = qe({
|
|
@@ -1276,7 +1281,7 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1276
1281
|
End: () => G(t.options.length),
|
|
1277
1282
|
ArrowUp: b,
|
|
1278
1283
|
ArrowDown: () => {
|
|
1279
|
-
!
|
|
1284
|
+
!l.value && c(), ne(t.options.length);
|
|
1280
1285
|
},
|
|
1281
1286
|
Escape: h
|
|
1282
1287
|
}, {
|
|
@@ -1284,7 +1289,7 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1284
1289
|
exclude: ["Enter", "NumpadEnter", "Space"]
|
|
1285
1290
|
});
|
|
1286
1291
|
function P() {
|
|
1287
|
-
|
|
1292
|
+
l.value = !1, a.value = "", v();
|
|
1288
1293
|
}
|
|
1289
1294
|
function F(g) {
|
|
1290
1295
|
return (w) => {
|
|
@@ -1311,7 +1316,7 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1311
1316
|
key: 0,
|
|
1312
1317
|
id: `select-label-${e.id}`,
|
|
1313
1318
|
class: k(["label", { "-disabled": e.disabled }])
|
|
1314
|
-
}, x(e.label), 11,
|
|
1319
|
+
}, x(e.label), 11, Dn)) : T("", !0)
|
|
1315
1320
|
]),
|
|
1316
1321
|
u("button", {
|
|
1317
1322
|
id: `select-toggle-${e.id}`,
|
|
@@ -1319,7 +1324,7 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1319
1324
|
"data-testid": `select-toggle-${e.id}`,
|
|
1320
1325
|
class: "select-button-toggle",
|
|
1321
1326
|
"aria-haspopup": "listbox",
|
|
1322
|
-
"aria-expanded":
|
|
1327
|
+
"aria-expanded": l.value,
|
|
1323
1328
|
"aria-labelledby": `select-label-${e.id}`,
|
|
1324
1329
|
"aria-label": e.ariaLabel,
|
|
1325
1330
|
"aria-controls": `select-list-${e.id}`,
|
|
@@ -1327,13 +1332,13 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1327
1332
|
}, [
|
|
1328
1333
|
m(g.$slots, "toggle-dropdown", {
|
|
1329
1334
|
toggle: { open: c, close: h, toggleDropdown: d },
|
|
1330
|
-
isOpen:
|
|
1335
|
+
isOpen: l.value,
|
|
1331
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,
|
|
@@ -1341,22 +1346,22 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1341
1346
|
onClick: q((me) => I(A), ["stop"]),
|
|
1342
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: k(["icon", { "-open":
|
|
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,
|
|
@@ -1373,7 +1378,7 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1373
1378
|
class: "search",
|
|
1374
1379
|
"aria-autocomplete": "list",
|
|
1375
1380
|
placeholder: e.searchPlaceholder,
|
|
1376
|
-
"aria-expanded":
|
|
1381
|
+
"aria-expanded": l.value,
|
|
1377
1382
|
"aria-haspopup": "listbox",
|
|
1378
1383
|
"aria-owns": `select-list-${e.id}`,
|
|
1379
1384
|
"aria-controls": `select-list-${e.id}`,
|
|
@@ -1383,7 +1388,7 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1383
1388
|
}, ["stop"])),
|
|
1384
1389
|
onInput: w[2] || (w[2] = (V) => {
|
|
1385
1390
|
var A;
|
|
1386
|
-
return
|
|
1391
|
+
return n("search", (A = V.target) == null ? void 0 : A.value);
|
|
1387
1392
|
})
|
|
1388
1393
|
}, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
|
|
1389
1394
|
L($(He), {
|
|
@@ -1392,7 +1397,7 @@ const Al = ["data-testid"], El = ["id"], pl = ["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),
|
|
@@ -1415,12 +1420,12 @@ const Al = ["data-testid"], El = ["id"], pl = ["id", "disabled", "data-testid",
|
|
|
1415
1420
|
}, 8, ["id", "options", "multiple"])
|
|
1416
1421
|
])
|
|
1417
1422
|
], 512), [
|
|
1418
|
-
[X,
|
|
1423
|
+
[X, l.value]
|
|
1419
1424
|
])
|
|
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,
|
|
@@ -1452,7 +1457,7 @@ const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Ul },
|
|
|
1452
1457
|
disabled: { type: Boolean }
|
|
1453
1458
|
},
|
|
1454
1459
|
setup(e) {
|
|
1455
|
-
return (
|
|
1460
|
+
return (n, t) => (s(), r("details", {
|
|
1456
1461
|
id: `accordion-${e.id}`,
|
|
1457
1462
|
"data-testid": `accordion-${e.id}`,
|
|
1458
1463
|
class: k(["sol-accordion-core", { "-on-color": e.onColor, "-disabled": e.disabled }]),
|
|
@@ -1463,11 +1468,11 @@ const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Ul },
|
|
|
1463
1468
|
class: "summary",
|
|
1464
1469
|
tabindex: e.disabled ? -1 : 0
|
|
1465
1470
|
}, [
|
|
1466
|
-
u("div",
|
|
1467
|
-
u("span",
|
|
1468
|
-
m(
|
|
1471
|
+
u("div", jn, [
|
|
1472
|
+
u("span", Zn, [
|
|
1473
|
+
m(n.$slots, "icon")
|
|
1469
1474
|
]),
|
|
1470
|
-
m(
|
|
1475
|
+
m(n.$slots, "title", {}, () => [
|
|
1471
1476
|
D(x(e.title), 1)
|
|
1472
1477
|
])
|
|
1473
1478
|
]),
|
|
@@ -1475,20 +1480,20 @@ const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Ul },
|
|
|
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
|
-
m(
|
|
1484
|
-
], 8,
|
|
1485
|
-
], 10,
|
|
1488
|
+
m(n.$slots, "default")
|
|
1489
|
+
], 8, Jn)
|
|
1490
|
+
], 10, Yn));
|
|
1486
1491
|
}
|
|
1487
1492
|
});
|
|
1488
1493
|
Ie.install = (e) => {
|
|
1489
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,
|
|
@@ -1496,11 +1501,11 @@ const Zl = ["id", "data-testid"], Jl = ["id", "aria-expanded"], Xl = ["id", "dat
|
|
|
1496
1501
|
position: { default: "bottom" }
|
|
1497
1502
|
},
|
|
1498
1503
|
setup(e) {
|
|
1499
|
-
const
|
|
1500
|
-
Te(
|
|
1504
|
+
const n = z();
|
|
1505
|
+
Te(n, () => {
|
|
1501
1506
|
I();
|
|
1502
1507
|
});
|
|
1503
|
-
const t = z(!1), i = z(),
|
|
1508
|
+
const t = z(!1), i = z(), l = p(
|
|
1504
1509
|
() => i.value ? i.value.childElementCount : 0
|
|
1505
1510
|
), {
|
|
1506
1511
|
resetStateFocus: a,
|
|
@@ -1510,10 +1515,10 @@ const Zl = ["id", "data-testid"], Jl = ["id", "aria-expanded"], Xl = ["id", "dat
|
|
|
1510
1515
|
focusOnLastItem: h
|
|
1511
1516
|
} = Ke({ target: i, query: '[role="menuitem"]' }), { navigate: f } = qe({
|
|
1512
1517
|
Home: c,
|
|
1513
|
-
End: () => h(
|
|
1518
|
+
End: () => h(l.value),
|
|
1514
1519
|
ArrowUp: o,
|
|
1515
1520
|
ArrowDown: () => {
|
|
1516
|
-
!t.value && y(), d(
|
|
1521
|
+
!t.value && y(), d(l.value);
|
|
1517
1522
|
},
|
|
1518
1523
|
Escape: I
|
|
1519
1524
|
});
|
|
@@ -1529,7 +1534,7 @@ const Zl = ["id", "data-testid"], Jl = ["id", "aria-expanded"], Xl = ["id", "dat
|
|
|
1529
1534
|
return (B, M) => (s(), r("div", {
|
|
1530
1535
|
id: `menu-${e.id}`,
|
|
1531
1536
|
ref_key: "el",
|
|
1532
|
-
ref:
|
|
1537
|
+
ref: n,
|
|
1533
1538
|
"data-testid": `menu-${e.id}`,
|
|
1534
1539
|
class: k([`-${e.position}`, "sol-menu-core"]),
|
|
1535
1540
|
onKeyupPassive: M[0] || (M[0] = (...N) => $(f) && $(f)(...N))
|
|
@@ -1546,7 +1551,7 @@ const Zl = ["id", "data-testid"], Jl = ["id", "aria-expanded"], Xl = ["id", "dat
|
|
|
1546
1551
|
m(B.$slots, "label", { isOpen: t.value }, () => [
|
|
1547
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",
|
|
@@ -1557,16 +1562,16 @@ const Zl = ["id", "data-testid"], Jl = ["id", "aria-expanded"], Xl = ["id", "dat
|
|
|
1557
1562
|
class: k(["menu", { "-open": t.value }])
|
|
1558
1563
|
}, [
|
|
1559
1564
|
m(B.$slots, "default", { close: I })
|
|
1560
|
-
], 10,
|
|
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,
|
|
@@ -1577,22 +1582,22 @@ const _l = ["id"], en = ["href", "target"], ue = /* @__PURE__ */ O({
|
|
|
1577
1582
|
external: null
|
|
1578
1583
|
},
|
|
1579
1584
|
emits: ["clicked"],
|
|
1580
|
-
setup(e, { emit:
|
|
1585
|
+
setup(e, { emit: n }) {
|
|
1581
1586
|
return (t, i) => {
|
|
1582
|
-
var
|
|
1587
|
+
var l;
|
|
1583
1588
|
return s(), r("li", {
|
|
1584
1589
|
id: `menu-item-link-${e.id}`,
|
|
1585
1590
|
class: "sol-menuitem-link-core",
|
|
1586
1591
|
tabindex: "-1",
|
|
1587
1592
|
role: "none",
|
|
1588
|
-
onClick: i[0] || (i[0] = (a) =>
|
|
1593
|
+
onClick: i[0] || (i[0] = (a) => n("clicked")),
|
|
1589
1594
|
onKeyup: [
|
|
1590
|
-
i[1] || (i[1] = K((a) =>
|
|
1591
|
-
i[2] || (i[2] = K((a) =>
|
|
1595
|
+
i[1] || (i[1] = K((a) => n("clicked"), ["enter"])),
|
|
1596
|
+
i[2] || (i[2] = K((a) => n("clicked"), ["space"]))
|
|
1592
1597
|
]
|
|
1593
1598
|
}, [
|
|
1594
1599
|
m(t.$slots, "default", {
|
|
1595
|
-
id: (
|
|
1600
|
+
id: (l = e.linkId) != null ? l : e.id,
|
|
1596
1601
|
active: e.active,
|
|
1597
1602
|
link: e.link,
|
|
1598
1603
|
text: e.text,
|
|
@@ -1603,16 +1608,16 @@ const _l = ["id"], en = ["href", "target"], ue = /* @__PURE__ */ O({
|
|
|
1603
1608
|
class: k({ "-active": e.active }),
|
|
1604
1609
|
href: e.link,
|
|
1605
1610
|
target: e.external ? "_blank" : "_parent"
|
|
1606
|
-
}, x(e.text), 11,
|
|
1611
|
+
}, x(e.text), 11, nl)
|
|
1607
1612
|
])
|
|
1608
|
-
], 40,
|
|
1613
|
+
], 40, tl);
|
|
1609
1614
|
};
|
|
1610
1615
|
}
|
|
1611
1616
|
});
|
|
1612
1617
|
ue.install = (e) => {
|
|
1613
1618
|
e.component("SolMenuItemLink", ue);
|
|
1614
1619
|
};
|
|
1615
|
-
const
|
|
1620
|
+
const ll = { class: "label-container" }, il = { class: "label" }, Be = /* @__PURE__ */ O({
|
|
1616
1621
|
__name: "MenuNavigationLinks",
|
|
1617
1622
|
props: {
|
|
1618
1623
|
id: null,
|
|
@@ -1620,14 +1625,14 @@ const tn = { class: "label-container" }, ln = { class: "label" }, Be = /* @__PUR
|
|
|
1620
1625
|
linkItems: null
|
|
1621
1626
|
},
|
|
1622
1627
|
setup(e) {
|
|
1623
|
-
return (
|
|
1628
|
+
return (n, t) => (s(), R(re, {
|
|
1624
1629
|
id: `navigation-${e.id}`,
|
|
1625
1630
|
class: "sol-menu-navigation-links-core"
|
|
1626
1631
|
}, {
|
|
1627
1632
|
label: E(({ isOpen: i }) => [
|
|
1628
|
-
m(
|
|
1629
|
-
u("div",
|
|
1630
|
-
u("span",
|
|
1633
|
+
m(n.$slots, "label", { isOpen: i }, () => [
|
|
1634
|
+
u("div", ll, [
|
|
1635
|
+
u("span", il, x(e.label), 1),
|
|
1631
1636
|
L($(Ue), {
|
|
1632
1637
|
class: k(["icon", { "-opened": i }]),
|
|
1633
1638
|
"aria-hidden": "true"
|
|
@@ -1636,27 +1641,27 @@ const tn = { class: "label-container" }, ln = { class: "label" }, Be = /* @__PUR
|
|
|
1636
1641
|
])
|
|
1637
1642
|
]),
|
|
1638
1643
|
default: E(({ close: i }) => [
|
|
1639
|
-
(s(!0), r(j, null, Z(e.linkItems, (
|
|
1644
|
+
(s(!0), r(j, null, Z(e.linkItems, (l, a) => {
|
|
1640
1645
|
var o;
|
|
1641
1646
|
return s(), R(ue, {
|
|
1642
|
-
id: `${e.id}-${(o =
|
|
1647
|
+
id: `${e.id}-${(o = l == null ? void 0 : l.id) != null ? o : l.text}`,
|
|
1643
1648
|
key: a,
|
|
1644
|
-
"link-id":
|
|
1645
|
-
text:
|
|
1646
|
-
link:
|
|
1647
|
-
external:
|
|
1648
|
-
active:
|
|
1649
|
+
"link-id": l.id,
|
|
1650
|
+
text: l.text,
|
|
1651
|
+
link: l.link,
|
|
1652
|
+
external: l.external,
|
|
1653
|
+
active: l.active,
|
|
1649
1654
|
onClicked: i
|
|
1650
1655
|
}, {
|
|
1651
1656
|
default: E(() => {
|
|
1652
1657
|
var d;
|
|
1653
1658
|
return [
|
|
1654
|
-
m(
|
|
1655
|
-
id: (d =
|
|
1656
|
-
active:
|
|
1657
|
-
link:
|
|
1658
|
-
text:
|
|
1659
|
-
external:
|
|
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
|
|
1660
1665
|
})
|
|
1661
1666
|
];
|
|
1662
1667
|
}),
|
|
@@ -1679,37 +1684,37 @@ const Ge = 12, Q = {
|
|
|
1679
1684
|
position: "top-right",
|
|
1680
1685
|
hideProgressBar: !1
|
|
1681
1686
|
};
|
|
1682
|
-
function
|
|
1687
|
+
function al(e, n) {
|
|
1683
1688
|
const t = ie({
|
|
1684
1689
|
id: null,
|
|
1685
1690
|
intervalId: null,
|
|
1686
1691
|
startTime: 0,
|
|
1687
|
-
remaining:
|
|
1692
|
+
remaining: n
|
|
1688
1693
|
}), i = z(100);
|
|
1689
|
-
function
|
|
1694
|
+
function l() {
|
|
1690
1695
|
clearInterval(t.intervalId), clearTimeout(t.id), t.remaining -= Date.now() - t.startTime;
|
|
1691
1696
|
}
|
|
1692
1697
|
function a() {
|
|
1693
1698
|
t.startTime = Date.now(), clearTimeout(t.id), t.intervalId = setInterval(() => {
|
|
1694
1699
|
i.value--;
|
|
1695
|
-
},
|
|
1700
|
+
}, n / 100 - 5), t.id = setTimeout(e, t.remaining);
|
|
1696
1701
|
}
|
|
1697
1702
|
function o() {
|
|
1698
1703
|
clearInterval(t.intervalId), clearTimeout(t.id), i.value = 100;
|
|
1699
1704
|
}
|
|
1700
1705
|
return pe(() => {
|
|
1701
|
-
if (
|
|
1706
|
+
if (n <= 0)
|
|
1702
1707
|
return !1;
|
|
1703
1708
|
}), Xe(() => {
|
|
1704
1709
|
o();
|
|
1705
1710
|
}), {
|
|
1706
1711
|
start: a,
|
|
1707
|
-
stop:
|
|
1712
|
+
stop: l,
|
|
1708
1713
|
clear: o,
|
|
1709
1714
|
progress: i
|
|
1710
1715
|
};
|
|
1711
1716
|
}
|
|
1712
|
-
function
|
|
1717
|
+
function ol(e) {
|
|
1713
1718
|
return {
|
|
1714
1719
|
stylePosition: p(() => {
|
|
1715
1720
|
const { position: t, offset: i } = e();
|
|
@@ -1755,56 +1760,56 @@ function an(e) {
|
|
|
1755
1760
|
};
|
|
1756
1761
|
}
|
|
1757
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 || {});
|
|
1758
|
-
const
|
|
1763
|
+
const sl = {
|
|
1759
1764
|
preserveAspectRatio: "xMidYMid meet",
|
|
1760
1765
|
viewBox: "0 0 24 24",
|
|
1761
1766
|
width: "1em",
|
|
1762
1767
|
height: "1em"
|
|
1763
|
-
},
|
|
1768
|
+
}, dl = /* @__PURE__ */ u("path", {
|
|
1764
1769
|
fill: "currentColor",
|
|
1765
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"
|
|
1766
|
-
}, null, -1),
|
|
1767
|
-
|
|
1771
|
+
}, null, -1), cl = [
|
|
1772
|
+
dl
|
|
1768
1773
|
];
|
|
1769
|
-
function
|
|
1770
|
-
return s(), r("svg",
|
|
1774
|
+
function rl(e, n) {
|
|
1775
|
+
return s(), r("svg", sl, cl);
|
|
1771
1776
|
}
|
|
1772
|
-
const
|
|
1777
|
+
const ul = { name: "mi-circle-check", render: rl }, hl = {
|
|
1773
1778
|
preserveAspectRatio: "xMidYMid meet",
|
|
1774
1779
|
viewBox: "0 0 24 24",
|
|
1775
1780
|
width: "1em",
|
|
1776
1781
|
height: "1em"
|
|
1777
|
-
},
|
|
1782
|
+
}, fl = /* @__PURE__ */ u("path", {
|
|
1778
1783
|
fill: "currentColor",
|
|
1779
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"
|
|
1780
|
-
}, null, -1),
|
|
1781
|
-
|
|
1785
|
+
}, null, -1), ml = [
|
|
1786
|
+
fl
|
|
1782
1787
|
];
|
|
1783
|
-
function
|
|
1784
|
-
return s(), r("svg",
|
|
1788
|
+
function vl(e, n) {
|
|
1789
|
+
return s(), r("svg", hl, ml);
|
|
1785
1790
|
}
|
|
1786
|
-
const
|
|
1791
|
+
const $l = { name: "mi-circle-error", render: vl }, bl = {
|
|
1787
1792
|
preserveAspectRatio: "xMidYMid meet",
|
|
1788
1793
|
viewBox: "0 0 24 24",
|
|
1789
1794
|
width: "1em",
|
|
1790
1795
|
height: "1em"
|
|
1791
|
-
},
|
|
1796
|
+
}, yl = /* @__PURE__ */ u("g", { fill: "currentColor" }, [
|
|
1792
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" }),
|
|
1793
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" })
|
|
1794
|
-
], -1),
|
|
1795
|
-
|
|
1799
|
+
], -1), gl = [
|
|
1800
|
+
yl
|
|
1796
1801
|
];
|
|
1797
|
-
function
|
|
1798
|
-
return s(), r("svg",
|
|
1802
|
+
function wl(e, n) {
|
|
1803
|
+
return s(), r("svg", bl, gl);
|
|
1799
1804
|
}
|
|
1800
|
-
const
|
|
1805
|
+
const kl = { name: "mi-circle-warning", render: wl }, xl = ["id", "data-testid"], Sl = { class: "content-wrapper" }, Cl = {
|
|
1801
1806
|
key: 0,
|
|
1802
1807
|
class: "icon-container",
|
|
1803
1808
|
"aria-hidden": "true"
|
|
1804
|
-
},
|
|
1809
|
+
}, Il = { class: "content" }, Bl = {
|
|
1805
1810
|
key: 0,
|
|
1806
1811
|
class: "description"
|
|
1807
|
-
},
|
|
1812
|
+
}, Ol = ["data-testid"], Ml = /* @__PURE__ */ O({
|
|
1808
1813
|
__name: "Toast",
|
|
1809
1814
|
props: {
|
|
1810
1815
|
id: null,
|
|
@@ -1821,15 +1826,15 @@ const wn = { name: "mi-circle-warning", render: gn }, kn = ["id", "data-testid"]
|
|
|
1821
1826
|
position: { default: Q.position }
|
|
1822
1827
|
},
|
|
1823
1828
|
setup(e) {
|
|
1824
|
-
const
|
|
1829
|
+
const n = e, { start: t, stop: i, progress: l } = al(() => {
|
|
1825
1830
|
var h;
|
|
1826
|
-
(h =
|
|
1827
|
-
},
|
|
1828
|
-
offset:
|
|
1829
|
-
position:
|
|
1830
|
-
})), o = p(() =>
|
|
1831
|
+
(h = n.onCloseHandler) == null || h.call(n);
|
|
1832
|
+
}, n.timeout), { stylePosition: a } = ol(() => ({
|
|
1833
|
+
offset: n.offset,
|
|
1834
|
+
position: n.position
|
|
1835
|
+
})), o = p(() => n.title && n.description);
|
|
1831
1836
|
function d() {
|
|
1832
|
-
|
|
1837
|
+
n.timeout > 0 && i();
|
|
1833
1838
|
}
|
|
1834
1839
|
function c() {
|
|
1835
1840
|
t();
|
|
@@ -1857,24 +1862,24 @@ const wn = { name: "mi-circle-warning", render: gn }, kn = ["id", "data-testid"]
|
|
|
1857
1862
|
onFocusin: d,
|
|
1858
1863
|
onFocusout: c
|
|
1859
1864
|
}, [
|
|
1860
|
-
u("section",
|
|
1861
|
-
e.showIcon ? (s(), r("div",
|
|
1865
|
+
u("section", Sl, [
|
|
1866
|
+
e.showIcon ? (s(), r("div", Cl, [
|
|
1862
1867
|
m(h.$slots, "icon-status", { type: e.type }, () => [
|
|
1863
|
-
e.type === "success" ? (s(), R($(
|
|
1868
|
+
e.type === "success" ? (s(), R($(ul), {
|
|
1864
1869
|
key: 0,
|
|
1865
1870
|
class: "icon"
|
|
1866
1871
|
})) : T("", !0),
|
|
1867
|
-
e.type === "info" ? (s(), R($(
|
|
1872
|
+
e.type === "info" ? (s(), R($(kl), {
|
|
1868
1873
|
key: 1,
|
|
1869
1874
|
class: "icon"
|
|
1870
1875
|
})) : T("", !0),
|
|
1871
|
-
e.type === "danger" ? (s(), R($(
|
|
1876
|
+
e.type === "danger" ? (s(), R($($l), {
|
|
1872
1877
|
key: 2,
|
|
1873
1878
|
class: "icon"
|
|
1874
1879
|
})) : T("", !0)
|
|
1875
1880
|
])
|
|
1876
1881
|
])) : T("", !0),
|
|
1877
|
-
u("div",
|
|
1882
|
+
u("div", Il, [
|
|
1878
1883
|
u("p", {
|
|
1879
1884
|
class: k(["title", { "-multiline": $(o) }])
|
|
1880
1885
|
}, [
|
|
@@ -1882,7 +1887,7 @@ const wn = { name: "mi-circle-warning", render: gn }, kn = ["id", "data-testid"]
|
|
|
1882
1887
|
D(x(e.title), 1)
|
|
1883
1888
|
])
|
|
1884
1889
|
], 2),
|
|
1885
|
-
e.description ? (s(), r("p",
|
|
1890
|
+
e.description ? (s(), r("p", Bl, [
|
|
1886
1891
|
m(h.$slots, "description", {}, () => [
|
|
1887
1892
|
D(x(e.description), 1)
|
|
1888
1893
|
])
|
|
@@ -1897,14 +1902,14 @@ const wn = { name: "mi-circle-warning", render: gn }, kn = ["id", "data-testid"]
|
|
|
1897
1902
|
onClick: f[0] || (f[0] = (...I) => e.onCloseHandler && e.onCloseHandler(...I))
|
|
1898
1903
|
}, [
|
|
1899
1904
|
L($(Fe), { class: "icon" })
|
|
1900
|
-
], 10,
|
|
1905
|
+
], 10, Ol),
|
|
1901
1906
|
e.hideProgressBar ? T("", !0) : (s(), r("div", {
|
|
1902
1907
|
key: 0,
|
|
1903
1908
|
class: "progressbar",
|
|
1904
1909
|
"aria-hidden": "true",
|
|
1905
|
-
style: ae({ width: `${$(
|
|
1910
|
+
style: ae({ width: `${$(l)}%` })
|
|
1906
1911
|
}, null, 4))
|
|
1907
|
-
], 46,
|
|
1912
|
+
], 46, xl)) : T("", !0)
|
|
1908
1913
|
]),
|
|
1909
1914
|
_: 3
|
|
1910
1915
|
}, 8, ["name"]));
|
|
@@ -1918,11 +1923,11 @@ const ee = {
|
|
|
1918
1923
|
"bottom-right": [],
|
|
1919
1924
|
"bottom-center": []
|
|
1920
1925
|
};
|
|
1921
|
-
function
|
|
1926
|
+
function El() {
|
|
1922
1927
|
let e = 0;
|
|
1923
|
-
function
|
|
1924
|
-
Object.entries(ee).forEach(([i,
|
|
1925
|
-
|
|
1928
|
+
function n() {
|
|
1929
|
+
Object.entries(ee).forEach(([i, l]) => {
|
|
1930
|
+
l.length && l.forEach((a) => {
|
|
1926
1931
|
var d;
|
|
1927
1932
|
const o = (d = a.toastVNode.props) == null ? void 0 : d.id;
|
|
1928
1933
|
Oe(o, i);
|
|
@@ -1930,54 +1935,54 @@ function An() {
|
|
|
1930
1935
|
});
|
|
1931
1936
|
}
|
|
1932
1937
|
return {
|
|
1933
|
-
createToast: (i,
|
|
1934
|
-
const a = e++, o =
|
|
1935
|
-
return
|
|
1938
|
+
createToast: (i, l) => {
|
|
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), {
|
|
1936
1941
|
close: () => Oe(a, o.position)
|
|
1937
1942
|
};
|
|
1938
1943
|
},
|
|
1939
|
-
clearAllToasts:
|
|
1944
|
+
clearAllToasts: n
|
|
1940
1945
|
};
|
|
1941
1946
|
}
|
|
1942
|
-
function
|
|
1943
|
-
const
|
|
1947
|
+
function Tl(e) {
|
|
1948
|
+
const n = {
|
|
1944
1949
|
...Q,
|
|
1945
1950
|
...e,
|
|
1946
1951
|
showIcon: e.showIcon
|
|
1947
1952
|
};
|
|
1948
|
-
return
|
|
1953
|
+
return n.hideProgressBar = !!(n.timeout && (n == null ? void 0 : n.timeout) <= 0), e.hideProgressBar && (n.hideProgressBar = e.hideProgressBar), n;
|
|
1949
1954
|
}
|
|
1950
|
-
function
|
|
1955
|
+
function Ll(e, n, t) {
|
|
1951
1956
|
setTimeout(() => {
|
|
1952
|
-
const i =
|
|
1953
|
-
document.body.appendChild(
|
|
1957
|
+
const i = zl(n, ee, Ge), l = document.createElement("div");
|
|
1958
|
+
document.body.appendChild(l);
|
|
1954
1959
|
const a = L(
|
|
1955
|
-
|
|
1956
|
-
|
|
1960
|
+
Ml,
|
|
1961
|
+
Pl(n, e, i, Oe, t)
|
|
1957
1962
|
);
|
|
1958
|
-
De(a,
|
|
1963
|
+
De(a, l), ee[n.position].push({ toastVNode: a, container: l }), a.component && (a.component.props.visible = !0);
|
|
1959
1964
|
}, 1);
|
|
1960
1965
|
}
|
|
1961
|
-
function
|
|
1966
|
+
function Pl(e, n, t, i, l) {
|
|
1962
1967
|
return {
|
|
1963
1968
|
...e,
|
|
1964
|
-
...
|
|
1965
|
-
id:
|
|
1969
|
+
...l,
|
|
1970
|
+
id: n,
|
|
1966
1971
|
offset: t,
|
|
1967
1972
|
visible: !1,
|
|
1968
1973
|
onCloseHandler() {
|
|
1969
|
-
i(
|
|
1974
|
+
i(n, e.position ? e.position : "top-right");
|
|
1970
1975
|
}
|
|
1971
1976
|
};
|
|
1972
1977
|
}
|
|
1973
|
-
function
|
|
1978
|
+
function zl(e, n, t) {
|
|
1974
1979
|
if (!e.position)
|
|
1975
1980
|
throw new Error("no position");
|
|
1976
|
-
return
|
|
1981
|
+
return n[e.position].reduce((i, { toastVNode: l }) => (i += l.el.offsetHeight + t || 0, i), t);
|
|
1977
1982
|
}
|
|
1978
|
-
function
|
|
1979
|
-
for (let
|
|
1980
|
-
const { toastVNode: a } = l
|
|
1983
|
+
function Vl(e, n, t, i) {
|
|
1984
|
+
for (let l = e; l < n.length; l++) {
|
|
1985
|
+
const { toastVNode: a } = n[l];
|
|
1981
1986
|
if (!a.el)
|
|
1982
1987
|
return;
|
|
1983
1988
|
const o = t.split("-")[0] || "top", d = parseInt(a.el.style[o], 10) - i - Ge;
|
|
@@ -1986,9 +1991,9 @@ function zn(e, l, t, i) {
|
|
|
1986
1991
|
a.component.props.offset = d;
|
|
1987
1992
|
}
|
|
1988
1993
|
}
|
|
1989
|
-
function Oe(e,
|
|
1994
|
+
function Oe(e, n) {
|
|
1990
1995
|
var c;
|
|
1991
|
-
const t = ee[
|
|
1996
|
+
const t = ee[n], i = t.findIndex(
|
|
1992
1997
|
({ toastVNode: h }) => {
|
|
1993
1998
|
var f;
|
|
1994
1999
|
return e === ((f = h == null ? void 0 : h.props) == null ? void 0 : f.id);
|
|
@@ -1996,12 +2001,12 @@ function Oe(e, l) {
|
|
|
1996
2001
|
);
|
|
1997
2002
|
if (i === -1)
|
|
1998
2003
|
return;
|
|
1999
|
-
const { container:
|
|
2000
|
-
if (ee[
|
|
2004
|
+
const { container: l, toastVNode: a } = t[i], o = (c = a == null ? void 0 : a.el) == null ? void 0 : c.offsetHeight;
|
|
2005
|
+
if (ee[n].splice(i, 1), Vl(i, t, n, o), !a.component)
|
|
2001
2006
|
return;
|
|
2002
2007
|
const d = a.component.props;
|
|
2003
2008
|
d.visible = !1, d.onClose && d.onClose(), setTimeout(() => {
|
|
2004
|
-
De(null,
|
|
2009
|
+
De(null, l), document.body.removeChild(l);
|
|
2005
2010
|
}, 1e3);
|
|
2006
2011
|
}
|
|
2007
2012
|
console.log("%c\u{1F33B}[Girassol]\u{1F33B}", "padding: 8px;background: #212121;color: gold; font-family: 'Fira code'; font-weight: bold; font-size: 1.2rem");
|
|
@@ -2025,9 +2030,9 @@ const Ae = {
|
|
|
2025
2030
|
SolMenuItemLink: ue,
|
|
2026
2031
|
SolMenuNavigationLinks: Be
|
|
2027
2032
|
};
|
|
2028
|
-
function
|
|
2029
|
-
for (const
|
|
2030
|
-
e.component(
|
|
2033
|
+
function pl(e) {
|
|
2034
|
+
for (const n in Ae)
|
|
2035
|
+
e.component(n, Ae[n]);
|
|
2031
2036
|
}
|
|
2032
2037
|
export {
|
|
2033
2038
|
Ie as SolAccordion,
|
|
@@ -2049,6 +2054,6 @@ export {
|
|
|
2049
2054
|
oe as SolTextfield,
|
|
2050
2055
|
$e as SolTextfieldPassword,
|
|
2051
2056
|
Ae as components,
|
|
2052
|
-
|
|
2053
|
-
|
|
2057
|
+
pl as install,
|
|
2058
|
+
El as useToast
|
|
2054
2059
|
};
|