@solfacil/girassol 0.1.11 → 0.2.0
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/README.md.d.ts +2 -0
- package/dist/cli/readme.md.d.ts +2 -0
- package/dist/girassol.es.js +521 -240
- package/dist/girassol.umd.js +5 -22
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/colors.d.ts +23 -5
- package/dist/theme/solfacil/effects.d.ts +5 -3
- package/dist/theme/solfacil/typography.d.ts +1 -2
- package/dist/types/components/accordion/Accordion.vue.d.ts +75 -10
- package/dist/types/components/dropdown/Dropdown.vue.d.ts +188 -31
- package/dist/types/components/forms/button/Button.vue.d.ts +86 -12
- package/dist/types/components/forms/checkbox/Checkbox.vue.d.ts +77 -11
- package/dist/types/components/forms/checkbox/CheckboxGroup.vue.d.ts +114 -19
- package/dist/types/components/forms/input/Input.vue.d.ts +76 -10
- package/dist/types/components/forms/radio/Radio.vue.d.ts +77 -11
- package/dist/types/components/forms/radio/RadioGroup.vue.d.ts +114 -19
- package/dist/types/components/forms/select/ListOption.vue.d.ts +149 -0
- package/dist/types/components/forms/select/Select.vue.d.ts +298 -27
- package/dist/types/components/forms/switch/Switch.vue.d.ts +83 -13
- package/dist/types/components/forms/textarea/Textarea.vue.d.ts +107 -18
- package/dist/types/components/forms/textfield/Textfield.vue.d.ts +100 -16
- package/dist/types/components/forms/textfield/TextfieldPassword.vue.d.ts +71 -9
- package/dist/types/components/informations/chip/Chip.vue.d.ts +94 -15
- package/dist/types/composables/use-toast/Toast.vue.d.ts +130 -24
- package/dist/types/composables/use-toast/index.d.ts +1 -1
- package/dist/types/index.d.ts +2303 -456
- package/dist/windi.config.d.ts +1 -1
- package/package.json +30 -30
- package/theme/solfacil/borders.ts +2 -1
- package/theme/solfacil/colors.ts +36 -23
- package/theme/solfacil/effects.ts +6 -4
- package/theme/solfacil/typography.ts +2 -4
- package/windi.config.ts +31 -1
package/dist/girassol.es.js
CHANGED
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, useSlots, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, ref, toDisplayString, createCommentVNode, createVNode, mergeProps, isRef, createBlock, withCtx, withDirectives, vShow, vModelText, Fragment, renderList, getCurrentScope, onScopeDispose, watch, reactive, withModifiers, createTextVNode, Transition as Transition$1, normalizeStyle, withKeys, onMounted, onUnmounted, render as render$9 } from "vue";
|
|
21
|
-
var Button_vue_vue_type_style_index_0_lang =
|
|
22
|
-
const _hoisted_1$
|
|
23
|
-
const _hoisted_2$
|
|
24
|
-
const _hoisted_3$
|
|
25
|
-
const _sfc_main$
|
|
21
|
+
var Button_vue_vue_type_style_index_0_lang = "";
|
|
22
|
+
const _hoisted_1$o = ["data-testid"];
|
|
23
|
+
const _hoisted_2$m = { class: "icon -left" };
|
|
24
|
+
const _hoisted_3$k = { class: "icon -right" };
|
|
25
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
26
26
|
__name: "Button",
|
|
27
27
|
props: {
|
|
28
28
|
variant: { default: "primary" },
|
|
@@ -31,39 +31,41 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
id: null
|
|
32
32
|
},
|
|
33
33
|
setup(__props) {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
const props = __props;
|
|
35
|
+
function hasVariant(variant2, variantClass) {
|
|
36
|
+
return variant2 ? variantClass : "";
|
|
36
37
|
}
|
|
37
38
|
const slots = useSlots();
|
|
38
39
|
const hasContentWithIcon = computed(() => !!(slots == null ? void 0 : slots.default) && (!!(slots == null ? void 0 : slots["icon-right"]) || !!(slots == null ? void 0 : slots["icon-left"])));
|
|
39
40
|
const onlyIcon = computed(() => !(slots == null ? void 0 : slots.default) && (!!(slots == null ? void 0 : slots["icon-right"]) || !!(slots == null ? void 0 : slots["icon-left"])));
|
|
41
|
+
const variant = computed(() => props.variant ? `-${props.variant}` : "-primary");
|
|
40
42
|
return (_ctx, _cache) => {
|
|
41
43
|
return openBlock(), createElementBlock("button", {
|
|
42
44
|
"data-testid": `button-${__props.id}`,
|
|
43
|
-
class: normalizeClass(["sol-button-core",
|
|
45
|
+
class: normalizeClass(["sol-button-core", `${unref(variant)}
|
|
44
46
|
${hasVariant(__props.dense, "-dense")} ${hasVariant(__props.invert, "-invert")}
|
|
45
47
|
${hasVariant(unref(hasContentWithIcon), "-has-icon")}
|
|
46
48
|
${hasVariant(unref(onlyIcon), "-only-icon")}
|
|
47
49
|
`]),
|
|
48
50
|
type: "button"
|
|
49
51
|
}, [
|
|
50
|
-
createElementVNode("div", _hoisted_2$
|
|
52
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
51
53
|
renderSlot(_ctx.$slots, "icon-left")
|
|
52
54
|
]),
|
|
53
55
|
renderSlot(_ctx.$slots, "default"),
|
|
54
|
-
createElementVNode("div", _hoisted_3$
|
|
56
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
55
57
|
renderSlot(_ctx.$slots, "icon-right")
|
|
56
58
|
])
|
|
57
|
-
], 10, _hoisted_1$
|
|
59
|
+
], 10, _hoisted_1$o);
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
});
|
|
61
|
-
_sfc_main$
|
|
62
|
-
app.component("SolButton", _sfc_main$
|
|
63
|
+
_sfc_main$f.install = (app) => {
|
|
64
|
+
app.component("SolButton", _sfc_main$f);
|
|
63
65
|
};
|
|
64
|
-
var Input_vue_vue_type_style_index_0_lang =
|
|
65
|
-
const _hoisted_1$
|
|
66
|
-
const _sfc_main$
|
|
66
|
+
var Input_vue_vue_type_style_index_0_lang = "";
|
|
67
|
+
const _hoisted_1$n = ["id", "data-testid", "value"];
|
|
68
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
67
69
|
__name: "Input",
|
|
68
70
|
props: {
|
|
69
71
|
id: null,
|
|
@@ -89,20 +91,20 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
89
91
|
value: __props.modelValue,
|
|
90
92
|
class: normalizeClass(["sol-input-core", { "-invert": __props.invert, "-error": __props.error }]),
|
|
91
93
|
onInput: emitInput
|
|
92
|
-
}, null, 42, _hoisted_1$
|
|
94
|
+
}, null, 42, _hoisted_1$n);
|
|
93
95
|
};
|
|
94
96
|
}
|
|
95
97
|
});
|
|
96
|
-
_sfc_main$
|
|
97
|
-
app.component("SolInput", _sfc_main$
|
|
98
|
+
_sfc_main$e.install = (app) => {
|
|
99
|
+
app.component("SolInput", _sfc_main$e);
|
|
98
100
|
};
|
|
99
|
-
var Textfield_vue_vue_type_style_index_0_lang =
|
|
100
|
-
const _hoisted_1$
|
|
101
|
-
const _hoisted_2$
|
|
102
|
-
const _hoisted_3$
|
|
103
|
-
const _hoisted_4$
|
|
104
|
-
const _hoisted_5$
|
|
105
|
-
const _sfc_main$
|
|
101
|
+
var Textfield_vue_vue_type_style_index_0_lang = "";
|
|
102
|
+
const _hoisted_1$m = ["id", "data-testid"];
|
|
103
|
+
const _hoisted_2$l = ["for"];
|
|
104
|
+
const _hoisted_3$j = { class: "container-input" };
|
|
105
|
+
const _hoisted_4$8 = ["id"];
|
|
106
|
+
const _hoisted_5$4 = ["id"];
|
|
107
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
106
108
|
__name: "Textfield",
|
|
107
109
|
props: {
|
|
108
110
|
id: null,
|
|
@@ -146,11 +148,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
146
148
|
class: "label"
|
|
147
149
|
}, [
|
|
148
150
|
createElementVNode("span", null, toDisplayString(__props.label), 1)
|
|
149
|
-
], 8, _hoisted_2$
|
|
151
|
+
], 8, _hoisted_2$l)) : createCommentVNode("", true)
|
|
150
152
|
]),
|
|
151
|
-
createElementVNode("div", _hoisted_3$
|
|
153
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
152
154
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
153
|
-
createVNode(_sfc_main$
|
|
155
|
+
createVNode(_sfc_main$e, mergeProps(_ctx.$attrs, {
|
|
154
156
|
id: __props.id,
|
|
155
157
|
modelValue: unref(model),
|
|
156
158
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
@@ -167,51 +169,51 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
167
169
|
key: 0,
|
|
168
170
|
id: `hint-${__props.id}`,
|
|
169
171
|
class: "hint"
|
|
170
|
-
}, toDisplayString(__props.hint), 9, _hoisted_4$
|
|
172
|
+
}, toDisplayString(__props.hint), 9, _hoisted_4$8)) : __props.error ? (openBlock(), createElementBlock("span", {
|
|
171
173
|
key: 1,
|
|
172
174
|
id: `error-${__props.id}`,
|
|
173
175
|
class: "error"
|
|
174
|
-
}, toDisplayString(__props.error), 9, _hoisted_5$
|
|
175
|
-
], 10, _hoisted_1$
|
|
176
|
+
}, toDisplayString(__props.error), 9, _hoisted_5$4)) : createCommentVNode("", true)
|
|
177
|
+
], 10, _hoisted_1$m);
|
|
176
178
|
};
|
|
177
179
|
}
|
|
178
180
|
});
|
|
179
|
-
const _hoisted_1$
|
|
181
|
+
const _hoisted_1$l = {
|
|
180
182
|
preserveAspectRatio: "xMidYMid meet",
|
|
181
183
|
viewBox: "0 0 24 24",
|
|
182
184
|
width: "1.2em",
|
|
183
185
|
height: "1.2em"
|
|
184
186
|
};
|
|
185
|
-
const _hoisted_2$
|
|
187
|
+
const _hoisted_2$k = /* @__PURE__ */ createElementVNode("g", { fill: "currentColor" }, [
|
|
186
188
|
/* @__PURE__ */ createElementVNode("path", { d: "M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0z" }),
|
|
187
189
|
/* @__PURE__ */ createElementVNode("path", { d: "M21.894 11.553C19.736 7.236 15.904 5 12 5c-3.903 0-7.736 2.236-9.894 6.553a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c3.903 0 7.736-2.236 9.894-6.553a1 1 0 0 0 0-.894zM12 17c-2.969 0-6.002-1.62-7.87-5C5.998 8.62 9.03 7 12 7c2.969 0 6.002 1.62 7.87 5c-1.868 3.38-4.901 5-7.87 5z" })
|
|
188
190
|
], -1);
|
|
189
|
-
const _hoisted_3$
|
|
190
|
-
_hoisted_2$
|
|
191
|
+
const _hoisted_3$i = [
|
|
192
|
+
_hoisted_2$k
|
|
191
193
|
];
|
|
192
194
|
function render$8(_ctx, _cache) {
|
|
193
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
195
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_3$i);
|
|
194
196
|
}
|
|
195
197
|
var EyeOn = { name: "mi-eye", render: render$8 };
|
|
196
|
-
const _hoisted_1$
|
|
198
|
+
const _hoisted_1$k = {
|
|
197
199
|
preserveAspectRatio: "xMidYMid meet",
|
|
198
200
|
viewBox: "0 0 24 24",
|
|
199
201
|
width: "1.2em",
|
|
200
202
|
height: "1.2em"
|
|
201
203
|
};
|
|
202
|
-
const _hoisted_2$
|
|
204
|
+
const _hoisted_2$j = /* @__PURE__ */ createElementVNode("path", {
|
|
203
205
|
fill: "currentColor",
|
|
204
206
|
d: "M4.707 3.293a1 1 0 0 0-1.414 1.414l2.424 2.424c-1.43 1.076-2.678 2.554-3.611 4.422a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c1.555 0 3.1-.355 4.53-1.055l2.763 2.762a1 1 0 0 0 1.414-1.414l-16-16zm10.307 13.135c-.98.383-2 .572-3.014.572c-2.969 0-6.002-1.62-7.87-5c.817-1.479 1.858-2.62 3.018-3.437l2.144 2.144a3 3 0 0 0 4.001 4.001l1.72 1.72zm3.538-2.532c.483-.556.926-1.187 1.318-1.896c-1.868-3.38-4.9-5-7.87-5c-.112 0-.224.002-.336.007L9.879 5.223A10.215 10.215 0 0 1 12 5c3.903 0 7.736 2.236 9.894 6.553a1 1 0 0 1 0 .894a13.106 13.106 0 0 1-1.925 2.865l-1.417-1.416z"
|
|
205
207
|
}, null, -1);
|
|
206
|
-
const _hoisted_3$
|
|
207
|
-
_hoisted_2$
|
|
208
|
+
const _hoisted_3$h = [
|
|
209
|
+
_hoisted_2$j
|
|
208
210
|
];
|
|
209
211
|
function render$7(_ctx, _cache) {
|
|
210
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
212
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$h);
|
|
211
213
|
}
|
|
212
214
|
var EyeOff = { name: "mi-eye-off", render: render$7 };
|
|
213
|
-
const _hoisted_1$
|
|
214
|
-
const _sfc_main$
|
|
215
|
+
const _hoisted_1$j = ["aria-label"];
|
|
216
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
215
217
|
__name: "TextfieldPassword",
|
|
216
218
|
props: {
|
|
217
219
|
id: { default: "" },
|
|
@@ -221,7 +223,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
221
223
|
const passwordIsVisible = ref(false);
|
|
222
224
|
const inputType = computed(() => passwordIsVisible.value ? "text" : "password");
|
|
223
225
|
return (_ctx, _cache) => {
|
|
224
|
-
return openBlock(), createBlock(_sfc_main$
|
|
226
|
+
return openBlock(), createBlock(_sfc_main$d, {
|
|
225
227
|
id: __props.id,
|
|
226
228
|
required: "",
|
|
227
229
|
type: unref(inputType),
|
|
@@ -241,27 +243,27 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
241
243
|
withDirectives(createVNode(unref(EyeOff), { "aria-hidden": "true" }, null, 512), [
|
|
242
244
|
[vShow, !passwordIsVisible.value]
|
|
243
245
|
])
|
|
244
|
-
], 8, _hoisted_1$
|
|
246
|
+
], 8, _hoisted_1$j)
|
|
245
247
|
]),
|
|
246
248
|
_: 1
|
|
247
249
|
}, 8, ["id", "type", "label"]);
|
|
248
250
|
};
|
|
249
251
|
}
|
|
250
252
|
});
|
|
251
|
-
_sfc_main$
|
|
252
|
-
app.component("SolTextfield", _sfc_main$
|
|
253
|
+
_sfc_main$d.install = (app) => {
|
|
254
|
+
app.component("SolTextfield", _sfc_main$d);
|
|
253
255
|
};
|
|
254
|
-
_sfc_main$
|
|
255
|
-
app.component("SolTextfieldPassword", _sfc_main$
|
|
256
|
+
_sfc_main$c.install = (app) => {
|
|
257
|
+
app.component("SolTextfieldPassword", _sfc_main$c);
|
|
256
258
|
};
|
|
257
|
-
var Textarea_vue_vue_type_style_index_0_lang =
|
|
258
|
-
const _hoisted_1$
|
|
259
|
-
const _hoisted_2$
|
|
260
|
-
const _hoisted_3$
|
|
261
|
-
const _hoisted_4$
|
|
262
|
-
const _hoisted_5$
|
|
263
|
-
const _hoisted_6$
|
|
264
|
-
const _sfc_main$
|
|
259
|
+
var Textarea_vue_vue_type_style_index_0_lang = "";
|
|
260
|
+
const _hoisted_1$i = ["id", "data-testid"];
|
|
261
|
+
const _hoisted_2$i = ["for"];
|
|
262
|
+
const _hoisted_3$g = { class: "container-textarea" };
|
|
263
|
+
const _hoisted_4$7 = ["id", "data-testid", "invert", "aria-invalid", "aria-describedby"];
|
|
264
|
+
const _hoisted_5$3 = ["id"];
|
|
265
|
+
const _hoisted_6$3 = ["id"];
|
|
266
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
265
267
|
__name: "Textarea",
|
|
266
268
|
props: {
|
|
267
269
|
id: null,
|
|
@@ -306,9 +308,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
306
308
|
class: "label"
|
|
307
309
|
}, [
|
|
308
310
|
createElementVNode("span", null, toDisplayString(__props.label), 1)
|
|
309
|
-
], 8, _hoisted_2$
|
|
311
|
+
], 8, _hoisted_2$i)) : createCommentVNode("", true)
|
|
310
312
|
]),
|
|
311
|
-
createElementVNode("div", _hoisted_3$
|
|
313
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
312
314
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
313
315
|
withDirectives(createElementVNode("textarea", mergeProps(_ctx.$attrs, {
|
|
314
316
|
id: `input-${__props.id}`,
|
|
@@ -319,7 +321,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
319
321
|
style: { resize: __props.resize },
|
|
320
322
|
"aria-invalid": !!__props.error,
|
|
321
323
|
"aria-describedby": ariaDescribedby(__props.hint, __props.error)
|
|
322
|
-
}), null, 16, _hoisted_4$
|
|
324
|
+
}), null, 16, _hoisted_4$7), [
|
|
323
325
|
[vModelText, unref(model)]
|
|
324
326
|
])
|
|
325
327
|
])
|
|
@@ -328,22 +330,22 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
328
330
|
key: 0,
|
|
329
331
|
id: `hint-${__props.id}`,
|
|
330
332
|
class: "hint"
|
|
331
|
-
}, toDisplayString(__props.hint), 9, _hoisted_5$
|
|
333
|
+
}, toDisplayString(__props.hint), 9, _hoisted_5$3)) : __props.error ? (openBlock(), createElementBlock("span", {
|
|
332
334
|
key: 1,
|
|
333
335
|
id: `error-${__props.id}`,
|
|
334
336
|
class: "error"
|
|
335
|
-
}, toDisplayString(__props.error), 9, _hoisted_6$
|
|
336
|
-
], 10, _hoisted_1$
|
|
337
|
+
}, toDisplayString(__props.error), 9, _hoisted_6$3)) : createCommentVNode("", true)
|
|
338
|
+
], 10, _hoisted_1$i);
|
|
337
339
|
};
|
|
338
340
|
}
|
|
339
341
|
});
|
|
340
|
-
_sfc_main$
|
|
341
|
-
app.component("SolTextarea", _sfc_main$
|
|
342
|
+
_sfc_main$b.install = (app) => {
|
|
343
|
+
app.component("SolTextarea", _sfc_main$b);
|
|
342
344
|
};
|
|
343
|
-
var Radio_vue_vue_type_style_index_0_lang =
|
|
344
|
-
const _hoisted_1$
|
|
345
|
-
const _hoisted_2$
|
|
346
|
-
const _sfc_main$
|
|
345
|
+
var Radio_vue_vue_type_style_index_0_lang = "";
|
|
346
|
+
const _hoisted_1$h = ["id", "data-testid", "checked", "value", "name"];
|
|
347
|
+
const _hoisted_2$h = ["for"];
|
|
348
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
347
349
|
__name: "Radio",
|
|
348
350
|
props: {
|
|
349
351
|
id: null,
|
|
@@ -368,21 +370,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
368
370
|
value: __props.value,
|
|
369
371
|
name: __props.name,
|
|
370
372
|
onChange: _cache[0] || (_cache[0] = ($event) => emit("change", __props.value))
|
|
371
|
-
}), null, 16, _hoisted_1$
|
|
373
|
+
}), null, 16, _hoisted_1$h),
|
|
372
374
|
createElementVNode("label", {
|
|
373
375
|
class: "label",
|
|
374
376
|
for: `radio-${__props.name}-${__props.id}`
|
|
375
|
-
}, toDisplayString(__props.label), 9, _hoisted_2$
|
|
377
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$h)
|
|
376
378
|
], 2);
|
|
377
379
|
};
|
|
378
380
|
}
|
|
379
381
|
});
|
|
380
|
-
var RadioGroup_vue_vue_type_style_index_0_lang =
|
|
381
|
-
const _hoisted_1$
|
|
382
|
-
const _hoisted_2$
|
|
383
|
-
const _hoisted_3$
|
|
384
|
-
const _hoisted_4$
|
|
385
|
-
const _sfc_main$
|
|
382
|
+
var RadioGroup_vue_vue_type_style_index_0_lang = "";
|
|
383
|
+
const _hoisted_1$g = ["aria-labelledby"];
|
|
384
|
+
const _hoisted_2$g = ["id", "data-testid"];
|
|
385
|
+
const _hoisted_3$f = ["id"];
|
|
386
|
+
const _hoisted_4$6 = ["id"];
|
|
387
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
386
388
|
__name: "RadioGroup",
|
|
387
389
|
props: {
|
|
388
390
|
id: null,
|
|
@@ -426,7 +428,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
426
428
|
id: `radio-group-title-${__props.id}`,
|
|
427
429
|
class: normalizeClass(["title", { "sr-only": __props.hideTitle }]),
|
|
428
430
|
"data-testid": `radio-group-title-${__props.id}`
|
|
429
|
-
}, toDisplayString(__props.title), 11, _hoisted_2$
|
|
431
|
+
}, toDisplayString(__props.title), 11, _hoisted_2$g)
|
|
430
432
|
]),
|
|
431
433
|
createElementVNode("ul", {
|
|
432
434
|
class: normalizeClass(["container-radios", { "flex-col": __props.direction === "column" }])
|
|
@@ -438,7 +440,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
438
440
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.radios, (radio, index) => {
|
|
439
441
|
var _a2;
|
|
440
442
|
return openBlock(), createElementBlock("li", { key: index }, [
|
|
441
|
-
createVNode(_sfc_main$
|
|
443
|
+
createVNode(_sfc_main$a, mergeProps(_ctx.$attrs, {
|
|
442
444
|
id: (_a2 = radio == null ? void 0 : radio.id) != null ? _a2 : `${radio.value}`,
|
|
443
445
|
class: ["radio", { "mb-micro": __props.direction === "column", "mr-micro": __props.direction === "row" }],
|
|
444
446
|
name: radio.name,
|
|
@@ -457,25 +459,25 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
457
459
|
key: 0,
|
|
458
460
|
id: `hint-${__props.id}`,
|
|
459
461
|
class: "hint"
|
|
460
|
-
}, toDisplayString(__props.hint), 9, _hoisted_3$
|
|
462
|
+
}, toDisplayString(__props.hint), 9, _hoisted_3$f)) : __props.error ? (openBlock(), createElementBlock("p", {
|
|
461
463
|
key: 1,
|
|
462
464
|
id: `error-${__props.id}`,
|
|
463
465
|
class: "error"
|
|
464
|
-
}, toDisplayString(__props.error), 9, _hoisted_4$
|
|
465
|
-
], 8, _hoisted_1$
|
|
466
|
+
}, toDisplayString(__props.error), 9, _hoisted_4$6)) : createCommentVNode("", true)
|
|
467
|
+
], 8, _hoisted_1$g);
|
|
466
468
|
};
|
|
467
469
|
}
|
|
468
470
|
});
|
|
469
|
-
_sfc_main$
|
|
470
|
-
app.component("SolRadio", _sfc_main$
|
|
471
|
+
_sfc_main$a.install = (app) => {
|
|
472
|
+
app.component("SolRadio", _sfc_main$a);
|
|
471
473
|
};
|
|
472
|
-
_sfc_main$
|
|
473
|
-
app.component("SolRadioGroup", _sfc_main$
|
|
474
|
+
_sfc_main$9.install = (app) => {
|
|
475
|
+
app.component("SolRadioGroup", _sfc_main$9);
|
|
474
476
|
};
|
|
475
|
-
var Checkbox_vue_vue_type_style_index_0_lang =
|
|
476
|
-
const _hoisted_1$
|
|
477
|
-
const _hoisted_2$
|
|
478
|
-
const _sfc_main$
|
|
477
|
+
var Checkbox_vue_vue_type_style_index_0_lang = "";
|
|
478
|
+
const _hoisted_1$f = ["id", "data-testid", "checked", "value", "name"];
|
|
479
|
+
const _hoisted_2$f = ["for"];
|
|
480
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
479
481
|
__name: "Checkbox",
|
|
480
482
|
props: {
|
|
481
483
|
id: null,
|
|
@@ -500,21 +502,21 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
500
502
|
value: __props.value,
|
|
501
503
|
name: __props.name,
|
|
502
504
|
onChange: _cache[0] || (_cache[0] = ($event) => emit("change", __props.value))
|
|
503
|
-
}), null, 16, _hoisted_1$
|
|
505
|
+
}), null, 16, _hoisted_1$f),
|
|
504
506
|
createElementVNode("label", {
|
|
505
507
|
class: "label",
|
|
506
508
|
for: `checkbox-${__props.name}-${__props.id}`
|
|
507
|
-
}, toDisplayString(__props.label), 9, _hoisted_2$
|
|
509
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$f)
|
|
508
510
|
], 2);
|
|
509
511
|
};
|
|
510
512
|
}
|
|
511
513
|
});
|
|
512
|
-
var CheckboxGroup_vue_vue_type_style_index_0_lang =
|
|
513
|
-
const _hoisted_1$
|
|
514
|
-
const _hoisted_2$
|
|
515
|
-
const _hoisted_3$
|
|
516
|
-
const _hoisted_4$
|
|
517
|
-
const _sfc_main$
|
|
514
|
+
var CheckboxGroup_vue_vue_type_style_index_0_lang = "";
|
|
515
|
+
const _hoisted_1$e = ["aria-labelledby"];
|
|
516
|
+
const _hoisted_2$e = ["id", "data-testid"];
|
|
517
|
+
const _hoisted_3$e = ["id"];
|
|
518
|
+
const _hoisted_4$5 = ["id"];
|
|
519
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
518
520
|
__name: "CheckboxGroup",
|
|
519
521
|
props: {
|
|
520
522
|
id: null,
|
|
@@ -564,7 +566,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
564
566
|
id: `checkbox-group-title-${__props.id}`,
|
|
565
567
|
class: normalizeClass(["title", { "sr-only": __props.hideTitle }]),
|
|
566
568
|
"data-testid": `checkbox-group-title-${__props.id}`
|
|
567
|
-
}, toDisplayString(__props.title), 11, _hoisted_2$
|
|
569
|
+
}, toDisplayString(__props.title), 11, _hoisted_2$e)
|
|
568
570
|
]),
|
|
569
571
|
createElementVNode("ul", {
|
|
570
572
|
class: normalizeClass(["container-checkboxes", { "flex-col": __props.direction === "column" }])
|
|
@@ -576,7 +578,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
576
578
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.checkboxes, (checkbox, index) => {
|
|
577
579
|
var _a2;
|
|
578
580
|
return openBlock(), createElementBlock("li", { key: index }, [
|
|
579
|
-
createVNode(_sfc_main$
|
|
581
|
+
createVNode(_sfc_main$8, mergeProps(_ctx.$attrs, {
|
|
580
582
|
id: (_a2 = checkbox == null ? void 0 : checkbox.id) != null ? _a2 : `${checkbox.value}`,
|
|
581
583
|
class: ["checkbox", { "mb-micro": __props.direction === "column", "mr-micro": __props.direction === "row" }],
|
|
582
584
|
label: checkbox.label,
|
|
@@ -595,27 +597,27 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
595
597
|
key: 0,
|
|
596
598
|
id: `hint-${__props.id}`,
|
|
597
599
|
class: "hint"
|
|
598
|
-
}, toDisplayString(__props.hint), 9, _hoisted_3$
|
|
600
|
+
}, toDisplayString(__props.hint), 9, _hoisted_3$e)) : __props.error ? (openBlock(), createElementBlock("p", {
|
|
599
601
|
key: 1,
|
|
600
602
|
id: `error-${__props.id}`,
|
|
601
603
|
class: "error"
|
|
602
|
-
}, toDisplayString(__props.error), 9, _hoisted_4$
|
|
603
|
-
], 8, _hoisted_1$
|
|
604
|
+
}, toDisplayString(__props.error), 9, _hoisted_4$5)) : createCommentVNode("", true)
|
|
605
|
+
], 8, _hoisted_1$e);
|
|
604
606
|
};
|
|
605
607
|
}
|
|
606
608
|
});
|
|
607
|
-
_sfc_main$
|
|
608
|
-
app.component("SolCheckbox", _sfc_main$
|
|
609
|
+
_sfc_main$8.install = (app) => {
|
|
610
|
+
app.component("SolCheckbox", _sfc_main$8);
|
|
609
611
|
};
|
|
610
|
-
_sfc_main$
|
|
611
|
-
app.component("SolCheckboxGroup", _sfc_main$
|
|
612
|
+
_sfc_main$7.install = (app) => {
|
|
613
|
+
app.component("SolCheckboxGroup", _sfc_main$7);
|
|
612
614
|
};
|
|
613
|
-
var Switch_vue_vue_type_style_index_0_lang =
|
|
614
|
-
const _hoisted_1$
|
|
615
|
-
const _hoisted_2$
|
|
616
|
-
const _hoisted_3$
|
|
617
|
-
const _hoisted_4$
|
|
618
|
-
const _sfc_main$
|
|
615
|
+
var Switch_vue_vue_type_style_index_0_lang = "";
|
|
616
|
+
const _hoisted_1$d = ["id", "for", "data-testid"];
|
|
617
|
+
const _hoisted_2$d = { class: "switch-container" };
|
|
618
|
+
const _hoisted_3$d = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"];
|
|
619
|
+
const _hoisted_4$4 = /* @__PURE__ */ createElementVNode("span", { class: "ellipse" }, null, -1);
|
|
620
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
619
621
|
__name: "Switch",
|
|
620
622
|
props: {
|
|
621
623
|
id: null,
|
|
@@ -638,8 +640,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
638
640
|
class: normalizeClass(["label", { "mb-1": !__props.horizontalLabel, "sr-only": __props.hideLabel }]),
|
|
639
641
|
for: `switch-${__props.name}-${__props.id}`,
|
|
640
642
|
"data-testid": `switch-label-${__props.name}-${__props.id}`
|
|
641
|
-
}, toDisplayString(__props.label), 11, _hoisted_1$
|
|
642
|
-
createElementVNode("div", _hoisted_2$
|
|
643
|
+
}, toDisplayString(__props.label), 11, _hoisted_1$d),
|
|
644
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
643
645
|
createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
644
646
|
id: `switch-${__props.name}-${__props.id}`,
|
|
645
647
|
type: "checkbox",
|
|
@@ -652,16 +654,22 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
652
654
|
value: __props.value,
|
|
653
655
|
name: __props.name,
|
|
654
656
|
onChange: _cache[0] || (_cache[0] = ($event) => emit("change", __props.value))
|
|
655
|
-
}), null, 16, _hoisted_3$
|
|
656
|
-
_hoisted_4$
|
|
657
|
+
}), null, 16, _hoisted_3$d),
|
|
658
|
+
_hoisted_4$4
|
|
657
659
|
])
|
|
658
660
|
], 2);
|
|
659
661
|
};
|
|
660
662
|
}
|
|
661
663
|
});
|
|
662
|
-
_sfc_main$
|
|
663
|
-
app.component("SolSwitch", _sfc_main$
|
|
664
|
+
_sfc_main$6.install = (app) => {
|
|
665
|
+
app.component("SolSwitch", _sfc_main$6);
|
|
664
666
|
};
|
|
667
|
+
var _a;
|
|
668
|
+
const isClient = typeof window !== "undefined";
|
|
669
|
+
const isString = (val) => typeof val === "string";
|
|
670
|
+
const noop = () => {
|
|
671
|
+
};
|
|
672
|
+
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
665
673
|
function tryOnScopeDispose(fn) {
|
|
666
674
|
if (getCurrentScope()) {
|
|
667
675
|
onScopeDispose(fn);
|
|
@@ -669,12 +677,6 @@ function tryOnScopeDispose(fn) {
|
|
|
669
677
|
}
|
|
670
678
|
return false;
|
|
671
679
|
}
|
|
672
|
-
var _a;
|
|
673
|
-
const isClient = typeof window !== "undefined";
|
|
674
|
-
const isString = (val) => typeof val === "string";
|
|
675
|
-
const noop = () => {
|
|
676
|
-
};
|
|
677
|
-
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
678
680
|
function unrefElement(elRef) {
|
|
679
681
|
var _a2;
|
|
680
682
|
const plain = unref(elRef);
|
|
@@ -716,7 +718,7 @@ function useEventListener(...args) {
|
|
|
716
718
|
return stop;
|
|
717
719
|
}
|
|
718
720
|
function onClickOutside(target, handler, options = {}) {
|
|
719
|
-
const { window: window2 = defaultWindow, ignore, capture = true } = options;
|
|
721
|
+
const { window: window2 = defaultWindow, ignore, capture = true, detectIframe = false } = options;
|
|
720
722
|
if (!window2)
|
|
721
723
|
return;
|
|
722
724
|
const shouldListen = ref(true);
|
|
@@ -743,9 +745,19 @@ function onClickOutside(target, handler, options = {}) {
|
|
|
743
745
|
shouldListen.value = !!el && !e.composedPath().includes(el);
|
|
744
746
|
}, { passive: true }),
|
|
745
747
|
useEventListener(window2, "pointerup", (e) => {
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
748
|
+
if (e.button === 0) {
|
|
749
|
+
const path = e.composedPath();
|
|
750
|
+
e.composedPath = () => path;
|
|
751
|
+
fallback = window2.setTimeout(() => listener(e), 50);
|
|
752
|
+
}
|
|
753
|
+
}, { passive: true }),
|
|
754
|
+
detectIframe && useEventListener(window2, "blur", (event) => {
|
|
755
|
+
var _a2;
|
|
756
|
+
const el = unrefElement(target);
|
|
757
|
+
if (((_a2 = document.activeElement) == null ? void 0 : _a2.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(document.activeElement)))
|
|
758
|
+
handler(event);
|
|
759
|
+
})
|
|
760
|
+
].filter(Boolean);
|
|
749
761
|
const stop = () => cleanup.forEach((fn) => fn());
|
|
750
762
|
return stop;
|
|
751
763
|
}
|
|
@@ -761,36 +773,36 @@ var SwipeDirection;
|
|
|
761
773
|
SwipeDirection2["LEFT"] = "LEFT";
|
|
762
774
|
SwipeDirection2["NONE"] = "NONE";
|
|
763
775
|
})(SwipeDirection || (SwipeDirection = {}));
|
|
764
|
-
const _hoisted_1$
|
|
776
|
+
const _hoisted_1$c = {
|
|
765
777
|
preserveAspectRatio: "xMidYMid meet",
|
|
766
778
|
viewBox: "0 0 24 24",
|
|
767
779
|
width: "1.2em",
|
|
768
780
|
height: "1.2em"
|
|
769
781
|
};
|
|
770
|
-
const _hoisted_2$
|
|
782
|
+
const _hoisted_2$c = /* @__PURE__ */ createElementVNode("path", {
|
|
771
783
|
fill: "currentColor",
|
|
772
784
|
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"
|
|
773
785
|
}, null, -1);
|
|
774
|
-
const _hoisted_3$
|
|
775
|
-
_hoisted_2$
|
|
786
|
+
const _hoisted_3$c = [
|
|
787
|
+
_hoisted_2$c
|
|
776
788
|
];
|
|
777
789
|
function render$6(_ctx, _cache) {
|
|
778
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
790
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$c, _hoisted_3$c);
|
|
779
791
|
}
|
|
780
792
|
var IconSearch = { name: "mi-search", render: render$6 };
|
|
781
|
-
var Dropdown_vue_vue_type_style_index_0_lang =
|
|
782
|
-
const _hoisted_1$
|
|
783
|
-
const _hoisted_2$
|
|
784
|
-
const _hoisted_3$
|
|
785
|
-
const _hoisted_4$
|
|
786
|
-
const _hoisted_5$
|
|
787
|
-
const _hoisted_6$
|
|
788
|
-
const _hoisted_7 = {
|
|
793
|
+
var Dropdown_vue_vue_type_style_index_0_lang = "";
|
|
794
|
+
const _hoisted_1$b = ["data-testid"];
|
|
795
|
+
const _hoisted_2$b = ["id", "for"];
|
|
796
|
+
const _hoisted_3$b = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"];
|
|
797
|
+
const _hoisted_4$3 = { class: "dropdown-container" };
|
|
798
|
+
const _hoisted_5$2 = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"];
|
|
799
|
+
const _hoisted_6$2 = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"];
|
|
800
|
+
const _hoisted_7$1 = {
|
|
789
801
|
key: 0,
|
|
790
802
|
class: "no-data"
|
|
791
803
|
};
|
|
792
804
|
const _hoisted_8 = /* @__PURE__ */ createTextVNode(" Sem dados ");
|
|
793
|
-
const _sfc_main$
|
|
805
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
794
806
|
__name: "Dropdown",
|
|
795
807
|
props: {
|
|
796
808
|
id: null,
|
|
@@ -923,7 +935,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
923
935
|
id: `label-dropdown-${__props.id}`,
|
|
924
936
|
class: normalizeClass(["label", { "-disabled": __props.disabled, "sr-only": __props.ariaLabel }]),
|
|
925
937
|
for: `toggle-dropdown-${__props.id}`
|
|
926
|
-
}, toDisplayString(__props.label || __props.ariaLabel), 11, _hoisted_2$
|
|
938
|
+
}, toDisplayString(__props.label || __props.ariaLabel), 11, _hoisted_2$b)
|
|
927
939
|
]),
|
|
928
940
|
createElementVNode("button", {
|
|
929
941
|
id: `toggle-dropdown-${__props.id}`,
|
|
@@ -946,19 +958,19 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
946
958
|
}, () => [
|
|
947
959
|
createTextVNode(toDisplayString(unref(selectedSanitize) || "Selecione"), 1)
|
|
948
960
|
])
|
|
949
|
-
], 8, _hoisted_3$
|
|
961
|
+
], 8, _hoisted_3$b),
|
|
950
962
|
createVNode(Transition$1, {
|
|
951
963
|
mode: "out-in",
|
|
952
964
|
name: "dropdown"
|
|
953
965
|
}, {
|
|
954
966
|
default: withCtx(() => [
|
|
955
|
-
withDirectives(createElementVNode("div", _hoisted_4$
|
|
967
|
+
withDirectives(createElementVNode("div", _hoisted_4$3, [
|
|
956
968
|
__props.searchable ? (openBlock(), createElementBlock("div", {
|
|
957
969
|
key: 0,
|
|
958
970
|
class: normalizeClass(["search-container", { "-loading": __props.loading }])
|
|
959
971
|
}, [
|
|
960
972
|
renderSlot(_ctx.$slots, "search", { filter: filter.value }, () => [
|
|
961
|
-
createVNode(_sfc_main$
|
|
973
|
+
createVNode(_sfc_main$e, {
|
|
962
974
|
id: `search-dropdown-${__props.id}`,
|
|
963
975
|
ref: (target) => addRefElementToElements("search", target == null ? void 0 : target.input),
|
|
964
976
|
modelValue: filter.value,
|
|
@@ -1021,49 +1033,49 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1021
1033
|
}, () => [
|
|
1022
1034
|
createTextVNode(toDisplayString(getOption(option, "name")), 1)
|
|
1023
1035
|
])
|
|
1024
|
-
], 44, _hoisted_6$
|
|
1036
|
+
], 44, _hoisted_6$2);
|
|
1025
1037
|
}), 128)),
|
|
1026
|
-
!unref(filtered).length ? (openBlock(), createElementBlock("li", _hoisted_7, [
|
|
1038
|
+
!unref(filtered).length ? (openBlock(), createElementBlock("li", _hoisted_7$1, [
|
|
1027
1039
|
renderSlot(_ctx.$slots, "no-data", {}, () => [
|
|
1028
1040
|
_hoisted_8
|
|
1029
1041
|
])
|
|
1030
1042
|
])) : createCommentVNode("", true)
|
|
1031
|
-
], 8, _hoisted_5$
|
|
1043
|
+
], 8, _hoisted_5$2)
|
|
1032
1044
|
], 512), [
|
|
1033
1045
|
[vShow, isDropdownOpen.value]
|
|
1034
1046
|
])
|
|
1035
1047
|
]),
|
|
1036
1048
|
_: 3
|
|
1037
1049
|
})
|
|
1038
|
-
], 42, _hoisted_1$
|
|
1050
|
+
], 42, _hoisted_1$b);
|
|
1039
1051
|
};
|
|
1040
1052
|
}
|
|
1041
1053
|
});
|
|
1042
|
-
_sfc_main$
|
|
1043
|
-
app.component("SolDropdown", _sfc_main$
|
|
1054
|
+
_sfc_main$5.install = (app) => {
|
|
1055
|
+
app.component("SolDropdown", _sfc_main$5);
|
|
1044
1056
|
};
|
|
1045
|
-
const _hoisted_1$
|
|
1057
|
+
const _hoisted_1$a = {
|
|
1046
1058
|
preserveAspectRatio: "xMidYMid meet",
|
|
1047
1059
|
viewBox: "0 0 24 24",
|
|
1048
1060
|
width: "1.2em",
|
|
1049
1061
|
height: "1.2em"
|
|
1050
1062
|
};
|
|
1051
|
-
const _hoisted_2$
|
|
1063
|
+
const _hoisted_2$a = /* @__PURE__ */ createElementVNode("path", {
|
|
1052
1064
|
fill: "currentColor",
|
|
1053
1065
|
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"
|
|
1054
1066
|
}, null, -1);
|
|
1055
|
-
const _hoisted_3$
|
|
1056
|
-
_hoisted_2$
|
|
1067
|
+
const _hoisted_3$a = [
|
|
1068
|
+
_hoisted_2$a
|
|
1057
1069
|
];
|
|
1058
1070
|
function render$5(_ctx, _cache) {
|
|
1059
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1071
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$a, _hoisted_3$a);
|
|
1060
1072
|
}
|
|
1061
1073
|
var Close = { name: "mi-close", render: render$5 };
|
|
1062
|
-
var Chip_vue_vue_type_style_index_0_lang =
|
|
1063
|
-
const _hoisted_1$
|
|
1064
|
-
const _hoisted_2$
|
|
1065
|
-
const _hoisted_3$
|
|
1066
|
-
const _sfc_main$
|
|
1074
|
+
var Chip_vue_vue_type_style_index_0_lang = "";
|
|
1075
|
+
const _hoisted_1$9 = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"];
|
|
1076
|
+
const _hoisted_2$9 = ["id"];
|
|
1077
|
+
const _hoisted_3$9 = { class: "label" };
|
|
1078
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1067
1079
|
__name: "Chip",
|
|
1068
1080
|
props: {
|
|
1069
1081
|
id: null,
|
|
@@ -1106,8 +1118,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1106
1118
|
id: `chip-description-${__props.id}`,
|
|
1107
1119
|
"z-index": "-1",
|
|
1108
1120
|
class: "sr-only"
|
|
1109
|
-
}, "Press Delete or Backspace to remove this Chip", 8, _hoisted_2$
|
|
1110
|
-
createElementVNode("span", _hoisted_3$
|
|
1121
|
+
}, "Press Delete or Backspace to remove this Chip", 8, _hoisted_2$9),
|
|
1122
|
+
createElementVNode("span", _hoisted_3$9, [
|
|
1111
1123
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1112
1124
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1113
1125
|
])
|
|
@@ -1121,7 +1133,77 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1121
1133
|
}, [
|
|
1122
1134
|
createVNode(unref(Close), { class: "icon" })
|
|
1123
1135
|
])) : createCommentVNode("", true)
|
|
1124
|
-
], 42, _hoisted_1$
|
|
1136
|
+
], 42, _hoisted_1$9);
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
});
|
|
1140
|
+
var ListOption_vue_vue_type_style_index_0_lang = "";
|
|
1141
|
+
const _hoisted_1$8 = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"];
|
|
1142
|
+
const _hoisted_2$8 = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"];
|
|
1143
|
+
const _hoisted_3$8 = {
|
|
1144
|
+
key: 0,
|
|
1145
|
+
class: "no-data"
|
|
1146
|
+
};
|
|
1147
|
+
const _hoisted_4$2 = /* @__PURE__ */ createTextVNode(" Sem dados ");
|
|
1148
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1149
|
+
__name: "ListOption",
|
|
1150
|
+
props: {
|
|
1151
|
+
id: null,
|
|
1152
|
+
options: null,
|
|
1153
|
+
multiple: { type: Boolean },
|
|
1154
|
+
isSelected: null
|
|
1155
|
+
},
|
|
1156
|
+
emits: ["select"],
|
|
1157
|
+
setup(__props, { expose, emit }) {
|
|
1158
|
+
const list = ref("");
|
|
1159
|
+
expose({
|
|
1160
|
+
list
|
|
1161
|
+
});
|
|
1162
|
+
return (_ctx, _cache) => {
|
|
1163
|
+
return openBlock(), createElementBlock("ul", {
|
|
1164
|
+
id: `select-list-${__props.id}`,
|
|
1165
|
+
ref_key: "list",
|
|
1166
|
+
ref: list,
|
|
1167
|
+
"data-testid": `select-list-${__props.id}`,
|
|
1168
|
+
role: "listbox",
|
|
1169
|
+
tabindex: "-1",
|
|
1170
|
+
"aria-multiselectable": __props.multiple,
|
|
1171
|
+
"aria-labelledby": `select-label-${__props.id}`,
|
|
1172
|
+
class: "select-list-core"
|
|
1173
|
+
}, [
|
|
1174
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
|
|
1175
|
+
return openBlock(), createElementBlock("li", {
|
|
1176
|
+
id: `option-${__props.id}-${option.value}`,
|
|
1177
|
+
key: index,
|
|
1178
|
+
"data-testid": `option-${__props.id}-${option.value}`,
|
|
1179
|
+
role: "option",
|
|
1180
|
+
tabindex: "-1",
|
|
1181
|
+
class: "select-option-item",
|
|
1182
|
+
style: normalizeStyle(`--item: ${index + 1}`),
|
|
1183
|
+
selected: __props.isSelected(option),
|
|
1184
|
+
"aria-selected": __props.isSelected(option),
|
|
1185
|
+
onClick: ($event) => emit("select", option),
|
|
1186
|
+
onKeyup: [
|
|
1187
|
+
withKeys(($event) => emit("select", option), ["enter"]),
|
|
1188
|
+
withKeys(($event) => emit("select", option), ["space"])
|
|
1189
|
+
]
|
|
1190
|
+
}, [
|
|
1191
|
+
renderSlot(_ctx.$slots, "item-list", {
|
|
1192
|
+
text: option.name,
|
|
1193
|
+
value: option.value,
|
|
1194
|
+
option,
|
|
1195
|
+
isSelected: __props.isSelected(option)
|
|
1196
|
+
}, () => [
|
|
1197
|
+
createTextVNode(toDisplayString(option.name), 1)
|
|
1198
|
+
])
|
|
1199
|
+
], 44, _hoisted_2$8);
|
|
1200
|
+
}), 128)),
|
|
1201
|
+
!__props.options.length ? (openBlock(), createElementBlock("li", _hoisted_3$8, [
|
|
1202
|
+
renderSlot(_ctx.$slots, "no-data", {}, () => [
|
|
1203
|
+
_hoisted_4$2
|
|
1204
|
+
])
|
|
1205
|
+
])) : createCommentVNode("", true)
|
|
1206
|
+
], 8, _hoisted_1$8);
|
|
1125
1207
|
};
|
|
1126
1208
|
}
|
|
1127
1209
|
});
|
|
@@ -1142,81 +1224,280 @@ function render$4(_ctx, _cache) {
|
|
|
1142
1224
|
return openBlock(), createElementBlock("svg", _hoisted_1$7, _hoisted_3$7);
|
|
1143
1225
|
}
|
|
1144
1226
|
var IconArrow = { name: "mi-caret-down", render: render$4 };
|
|
1145
|
-
var Select_vue_vue_type_style_index_0_lang =
|
|
1146
|
-
const _hoisted_1$6 =
|
|
1147
|
-
const _hoisted_2$6 =
|
|
1148
|
-
|
|
1149
|
-
|
|
1227
|
+
var Select_vue_vue_type_style_index_0_lang = "";
|
|
1228
|
+
const _hoisted_1$6 = ["data-testid"];
|
|
1229
|
+
const _hoisted_2$6 = ["id"];
|
|
1230
|
+
const _hoisted_3$6 = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"];
|
|
1231
|
+
const _hoisted_4$1 = {
|
|
1232
|
+
key: 0,
|
|
1233
|
+
class: "container-tags"
|
|
1234
|
+
};
|
|
1235
|
+
const _hoisted_5$1 = {
|
|
1236
|
+
key: 1,
|
|
1237
|
+
class: "mr-micro placeholder-inline",
|
|
1238
|
+
tabindex: "-1"
|
|
1150
1239
|
};
|
|
1151
|
-
const
|
|
1240
|
+
const _hoisted_6$1 = { class: "error" };
|
|
1241
|
+
const _hoisted_7 = { class: "select-options-container" };
|
|
1152
1242
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1153
1243
|
__name: "Select",
|
|
1154
1244
|
props: {
|
|
1155
1245
|
id: null,
|
|
1156
|
-
options: null,
|
|
1157
1246
|
label: null,
|
|
1158
1247
|
ariaLabel: null,
|
|
1159
1248
|
smallerWidth: { type: Boolean },
|
|
1160
1249
|
disabled: { type: Boolean },
|
|
1250
|
+
loading: { type: Boolean, default: false },
|
|
1251
|
+
searchable: { type: Boolean, default: false },
|
|
1252
|
+
closeOnSelect: { type: Boolean, default: true },
|
|
1253
|
+
fetchOnSearch: { type: Boolean, default: false },
|
|
1161
1254
|
multiple: { type: Boolean },
|
|
1162
|
-
modelValue: null,
|
|
1163
|
-
error: null,
|
|
1164
|
-
fetchOnApi: { type: Boolean },
|
|
1165
|
-
placeholder: { default: "Selecione" },
|
|
1166
1255
|
searchPlaceholder: null,
|
|
1167
|
-
|
|
1256
|
+
selected: null,
|
|
1257
|
+
options: { default: () => [] },
|
|
1258
|
+
error: null,
|
|
1259
|
+
placeholder: { default: "placeholder" }
|
|
1168
1260
|
},
|
|
1169
|
-
emits: ["update:
|
|
1261
|
+
emits: ["closeDropdown", "search", "update:selected"],
|
|
1170
1262
|
setup(__props, { emit }) {
|
|
1263
|
+
const props = __props;
|
|
1264
|
+
const el = ref();
|
|
1265
|
+
const isDropdownOpen = ref(false);
|
|
1266
|
+
const filter = ref("");
|
|
1267
|
+
const filtered = computed(() => {
|
|
1268
|
+
var _a2;
|
|
1269
|
+
return props.fetchOnSearch ? props.options : (_a2 = props.options) == null ? void 0 : _a2.filter((option) => option.name.includes(filter.value));
|
|
1270
|
+
});
|
|
1271
|
+
onClickOutside(el, () => {
|
|
1272
|
+
if (isDropdownOpen.value)
|
|
1273
|
+
close2();
|
|
1274
|
+
});
|
|
1275
|
+
function toggleDropdown() {
|
|
1276
|
+
if (!props.disabled)
|
|
1277
|
+
isDropdownOpen.value ? close2() : open();
|
|
1278
|
+
}
|
|
1279
|
+
function open() {
|
|
1280
|
+
isDropdownOpen.value = true;
|
|
1281
|
+
}
|
|
1282
|
+
function close2() {
|
|
1283
|
+
resetStates();
|
|
1284
|
+
emit("closeDropdown");
|
|
1285
|
+
}
|
|
1286
|
+
function sanitizeMultipleSelection(selected) {
|
|
1287
|
+
if (Array.isArray(props.selected)) {
|
|
1288
|
+
const indexOfSelect = props.selected.findIndex(({ value }) => value === selected.value);
|
|
1289
|
+
return indexOfSelect === -1 ? [...props.selected, selected] : props.selected.filter((_, index) => index !== indexOfSelect);
|
|
1290
|
+
}
|
|
1291
|
+
return [selected];
|
|
1292
|
+
}
|
|
1293
|
+
function select(selected) {
|
|
1294
|
+
props.multiple ? emit("update:selected", sanitizeMultipleSelection(selected)) : emit("update:selected", selected);
|
|
1295
|
+
if (props.closeOnSelect && !props.multiple)
|
|
1296
|
+
close2();
|
|
1297
|
+
}
|
|
1298
|
+
function isSelected(option) {
|
|
1299
|
+
var _a2;
|
|
1300
|
+
return Array.isArray(props.selected) ? props.selected.some(({ value }) => value === option.value) : option.value === ((_a2 = props.selected) == null ? void 0 : _a2.value);
|
|
1301
|
+
}
|
|
1302
|
+
const elements = reactive({
|
|
1303
|
+
list: void 0,
|
|
1304
|
+
search: void 0
|
|
1305
|
+
});
|
|
1306
|
+
const elementFocus = reactive({
|
|
1307
|
+
id: "",
|
|
1308
|
+
index: 0
|
|
1309
|
+
});
|
|
1310
|
+
function navigation({ code }) {
|
|
1311
|
+
const focusListItem = (index) => {
|
|
1312
|
+
const indexItem = index != null ? index : elementFocus.index;
|
|
1313
|
+
if (index !== void 0)
|
|
1314
|
+
elementFocus.index = index;
|
|
1315
|
+
setTimeout(() => {
|
|
1316
|
+
var _a2, _b;
|
|
1317
|
+
const item = (_a2 = elements.list) == null ? void 0 : _a2.children[indexItem];
|
|
1318
|
+
elementFocus.id = (_b = item == null ? void 0 : item.id) != null ? _b : "";
|
|
1319
|
+
item == null ? void 0 : item.focus();
|
|
1320
|
+
}, 0);
|
|
1321
|
+
};
|
|
1322
|
+
const focusSearch = () => {
|
|
1323
|
+
var _a2;
|
|
1324
|
+
if (props.searchable) {
|
|
1325
|
+
elementFocus.index = 0;
|
|
1326
|
+
(_a2 = elements == null ? void 0 : elements.search) == null ? void 0 : _a2.focus();
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
switch (code) {
|
|
1330
|
+
case "ArrowUp":
|
|
1331
|
+
elementFocus.index > 0 && (elementFocus.index -= 1);
|
|
1332
|
+
return focusListItem();
|
|
1333
|
+
case "ArrowDown":
|
|
1334
|
+
if (!isDropdownOpen.value) {
|
|
1335
|
+
open();
|
|
1336
|
+
return focusListItem(0);
|
|
1337
|
+
}
|
|
1338
|
+
elementFocus.index < props.options.length - 1 && (elementFocus.index += 1);
|
|
1339
|
+
return focusListItem();
|
|
1340
|
+
case "Home":
|
|
1341
|
+
return focusListItem(0);
|
|
1342
|
+
case "End":
|
|
1343
|
+
return focusListItem(props.options.length - 1);
|
|
1344
|
+
case "Escape":
|
|
1345
|
+
return close2();
|
|
1346
|
+
default:
|
|
1347
|
+
!["Enter", "NumpadEnter", "Space"].includes(code) && focusSearch();
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
function resetStates() {
|
|
1351
|
+
isDropdownOpen.value = false;
|
|
1352
|
+
elementFocus.index = 0;
|
|
1353
|
+
filter.value = "";
|
|
1354
|
+
}
|
|
1355
|
+
function addRefElementToElements(key) {
|
|
1356
|
+
return (target) => {
|
|
1357
|
+
elements[key] = key === "search" ? target == null ? void 0 : target.input : target == null ? void 0 : target.list;
|
|
1358
|
+
};
|
|
1359
|
+
}
|
|
1360
|
+
function renderSingleSelectionOrPlaceholder() {
|
|
1361
|
+
var _a2;
|
|
1362
|
+
const selected = props.selected;
|
|
1363
|
+
return (_a2 = selected == null ? void 0 : selected.name) != null ? _a2 : props.placeholder;
|
|
1364
|
+
}
|
|
1171
1365
|
return (_ctx, _cache) => {
|
|
1172
|
-
return openBlock(),
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
"
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
"
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
createElementVNode("div", {
|
|
1189
|
-
class: normalizeClass(["select-container", { "-disabled": __props.disabled, "-error": __props.error }])
|
|
1190
|
-
}, [
|
|
1191
|
-
createElementVNode("div", _hoisted_1$6, [
|
|
1192
|
-
__props.multiple && (selected == null ? void 0 : selected.length) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(selected, (item, index) => {
|
|
1193
|
-
return openBlock(), createBlock(_sfc_main$3, {
|
|
1194
|
-
id: item,
|
|
1195
|
-
key: index,
|
|
1196
|
-
label: item,
|
|
1197
|
-
onClick: withModifiers(($event) => select(item), ["stop"]),
|
|
1198
|
-
onClose: ($event) => select(item)
|
|
1199
|
-
}, null, 8, ["id", "label", "onClick", "onClose"]);
|
|
1200
|
-
}), 128)) : (selected == null ? void 0 : selected.length) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1201
|
-
createTextVNode(toDisplayString(selected), 1)
|
|
1202
|
-
], 64)) : (openBlock(), createElementBlock("span", _hoisted_2$6, toDisplayString(__props.placeholder), 1))
|
|
1203
|
-
]),
|
|
1204
|
-
createVNode(unref(IconArrow), {
|
|
1205
|
-
class: normalizeClass(["icon", { "-open": isOpen }])
|
|
1206
|
-
}, null, 8, ["class"])
|
|
1207
|
-
], 2),
|
|
1208
|
-
createElementVNode("span", _hoisted_3$6, toDisplayString(__props.error), 1)
|
|
1366
|
+
return openBlock(), createElementBlock("div", {
|
|
1367
|
+
ref_key: "el",
|
|
1368
|
+
ref: el,
|
|
1369
|
+
class: normalizeClass(["sol-select-core", { "-smaller": __props.smallerWidth }]),
|
|
1370
|
+
"data-testid": `select-${__props.id}`,
|
|
1371
|
+
onKeydownPassive: navigation
|
|
1372
|
+
}, [
|
|
1373
|
+
renderSlot(_ctx.$slots, "label", {
|
|
1374
|
+
id: `select-label-${__props.id}`,
|
|
1375
|
+
for: `select-toggle-${__props.id}`
|
|
1376
|
+
}, () => [
|
|
1377
|
+
__props.label ? (openBlock(), createElementBlock("label", {
|
|
1378
|
+
key: 0,
|
|
1379
|
+
id: `select-label-${__props.id}`,
|
|
1380
|
+
class: normalizeClass(["label", { "-disabled": __props.disabled }])
|
|
1381
|
+
}, toDisplayString(__props.label), 11, _hoisted_2$6)) : createCommentVNode("", true)
|
|
1209
1382
|
]),
|
|
1210
|
-
|
|
1211
|
-
|
|
1383
|
+
createElementVNode("button", {
|
|
1384
|
+
id: `select-toggle-${__props.id}`,
|
|
1385
|
+
disabled: __props.disabled,
|
|
1386
|
+
"data-testid": `select-toggle-${__props.id}`,
|
|
1387
|
+
class: "select-button-toggle",
|
|
1388
|
+
"aria-haspopup": "listbox",
|
|
1389
|
+
"aria-expanded": isDropdownOpen.value,
|
|
1390
|
+
"aria-labelledby": `select-label-${__props.id}`,
|
|
1391
|
+
"aria-label": __props.ariaLabel,
|
|
1392
|
+
"aria-controls": `select-list-${__props.id}`,
|
|
1393
|
+
onClick: withModifiers(toggleDropdown, ["stop"])
|
|
1394
|
+
}, [
|
|
1395
|
+
renderSlot(_ctx.$slots, "toggle-dropdown", {
|
|
1396
|
+
toggle: { open, close: close2, toggleDropdown },
|
|
1397
|
+
isOpen: isDropdownOpen.value,
|
|
1398
|
+
select,
|
|
1399
|
+
selected: __props.selected
|
|
1400
|
+
}, () => {
|
|
1401
|
+
var _a2;
|
|
1402
|
+
return [
|
|
1403
|
+
__props.multiple && Array.isArray(__props.selected) && ((_a2 = __props.selected) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
1404
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.selected, (item, index) => {
|
|
1405
|
+
return openBlock(), createBlock(_sfc_main$4, {
|
|
1406
|
+
id: item.value,
|
|
1407
|
+
key: index,
|
|
1408
|
+
label: item.name,
|
|
1409
|
+
onClick: withModifiers(($event) => select(item), ["stop"]),
|
|
1410
|
+
onClose: ($event) => select(item)
|
|
1411
|
+
}, null, 8, ["id", "label", "onClick", "onClose"]);
|
|
1412
|
+
}), 128))
|
|
1413
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(renderSingleSelectionOrPlaceholder()), 1)),
|
|
1414
|
+
createVNode(unref(IconArrow), {
|
|
1415
|
+
"aria-hidden": "true",
|
|
1416
|
+
tabindex: "-1",
|
|
1417
|
+
class: normalizeClass(["icon", { "-open": isDropdownOpen.value }])
|
|
1418
|
+
}, null, 8, ["class"])
|
|
1419
|
+
];
|
|
1420
|
+
})
|
|
1421
|
+
], 8, _hoisted_3$6),
|
|
1422
|
+
createElementVNode("span", _hoisted_6$1, toDisplayString(__props.error), 1),
|
|
1423
|
+
createVNode(Transition$1, {
|
|
1424
|
+
mode: "out-in",
|
|
1425
|
+
name: "dropdown"
|
|
1426
|
+
}, {
|
|
1427
|
+
default: withCtx(() => [
|
|
1428
|
+
withDirectives(createElementVNode("div", _hoisted_7, [
|
|
1429
|
+
renderSlot(_ctx.$slots, "search", {}, () => [
|
|
1430
|
+
__props.searchable ? (openBlock(), createElementBlock("div", {
|
|
1431
|
+
key: 0,
|
|
1432
|
+
class: normalizeClass(["search-container", { "-loading": __props.loading }])
|
|
1433
|
+
}, [
|
|
1434
|
+
renderSlot(_ctx.$slots, "search", { filter: filter.value }, () => [
|
|
1435
|
+
createVNode(_sfc_main$e, {
|
|
1436
|
+
id: `select-search-${__props.id}`,
|
|
1437
|
+
ref: addRefElementToElements("search"),
|
|
1438
|
+
modelValue: filter.value,
|
|
1439
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value = $event),
|
|
1440
|
+
"data-testid": `select-search-${__props.id}`,
|
|
1441
|
+
role: "combobox",
|
|
1442
|
+
class: "search",
|
|
1443
|
+
"aria-autocomplete": "list",
|
|
1444
|
+
placeholder: __props.searchPlaceholder,
|
|
1445
|
+
"aria-expanded": isDropdownOpen.value,
|
|
1446
|
+
"aria-haspopup": "listbox",
|
|
1447
|
+
"aria-owns": `select-list-${__props.id}`,
|
|
1448
|
+
"aria-controls": `select-list-${__props.id}`,
|
|
1449
|
+
"aria-activedescendant": elementFocus.id,
|
|
1450
|
+
"aria-labelledby": `select-label-${__props.id}`,
|
|
1451
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
1452
|
+
}, ["stop"])),
|
|
1453
|
+
onInput: _cache[2] || (_cache[2] = ($event) => {
|
|
1454
|
+
var _a2;
|
|
1455
|
+
return emit("search", (_a2 = $event.target) == null ? void 0 : _a2.value);
|
|
1456
|
+
})
|
|
1457
|
+
}, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
|
|
1458
|
+
createVNode(unref(IconSearch), {
|
|
1459
|
+
"aria-hidden": "true",
|
|
1460
|
+
class: "icon"
|
|
1461
|
+
})
|
|
1462
|
+
])
|
|
1463
|
+
], 2)) : createCommentVNode("", true),
|
|
1464
|
+
createVNode(_sfc_main$3, {
|
|
1465
|
+
id: __props.id,
|
|
1466
|
+
ref: addRefElementToElements("list"),
|
|
1467
|
+
options: unref(filtered),
|
|
1468
|
+
multiple: __props.multiple,
|
|
1469
|
+
"is-selected": isSelected,
|
|
1470
|
+
onSelect: select
|
|
1471
|
+
}, {
|
|
1472
|
+
"item-list": withCtx(({ text, value, option, isSelected: isSelected2 }) => [
|
|
1473
|
+
renderSlot(_ctx.$slots, "default", {
|
|
1474
|
+
text,
|
|
1475
|
+
value,
|
|
1476
|
+
option,
|
|
1477
|
+
isSelected: isSelected2
|
|
1478
|
+
})
|
|
1479
|
+
]),
|
|
1480
|
+
"no-data": withCtx(() => [
|
|
1481
|
+
renderSlot(_ctx.$slots, "no-data")
|
|
1482
|
+
]),
|
|
1483
|
+
_: 3
|
|
1484
|
+
}, 8, ["id", "options", "multiple"])
|
|
1485
|
+
])
|
|
1486
|
+
], 512), [
|
|
1487
|
+
[vShow, isDropdownOpen.value]
|
|
1488
|
+
])
|
|
1489
|
+
]),
|
|
1490
|
+
_: 3
|
|
1491
|
+
})
|
|
1492
|
+
], 42, _hoisted_1$6);
|
|
1212
1493
|
};
|
|
1213
1494
|
}
|
|
1214
1495
|
});
|
|
1215
1496
|
_sfc_main$2.install = (app) => {
|
|
1216
1497
|
app.component("SolSelect", _sfc_main$2);
|
|
1217
1498
|
};
|
|
1218
|
-
_sfc_main$
|
|
1219
|
-
app.component("SolChip", _sfc_main$
|
|
1499
|
+
_sfc_main$4.install = (app) => {
|
|
1500
|
+
app.component("SolChip", _sfc_main$4);
|
|
1220
1501
|
};
|
|
1221
1502
|
const _hoisted_1$5 = {
|
|
1222
1503
|
preserveAspectRatio: "xMidYMid meet",
|
|
@@ -1235,7 +1516,7 @@ function render$3(_ctx, _cache) {
|
|
|
1235
1516
|
return openBlock(), createElementBlock("svg", _hoisted_1$5, _hoisted_3$5);
|
|
1236
1517
|
}
|
|
1237
1518
|
var Chevron = { name: "mi-chevron-up", render: render$3 };
|
|
1238
|
-
var Accordion_vue_vue_type_style_index_0_lang =
|
|
1519
|
+
var Accordion_vue_vue_type_style_index_0_lang = "";
|
|
1239
1520
|
const _hoisted_1$4 = ["id", "data-testid", "aria-disabled"];
|
|
1240
1521
|
const _hoisted_2$4 = ["data-testid", "tabindex"];
|
|
1241
1522
|
const _hoisted_3$4 = ["data-testid"];
|
|
@@ -1281,10 +1562,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1281
1562
|
_sfc_main$1.install = (app) => {
|
|
1282
1563
|
app.component("SolAccordion", _sfc_main$1);
|
|
1283
1564
|
};
|
|
1284
|
-
var windiBase =
|
|
1285
|
-
var windiComponents =
|
|
1286
|
-
var windiUtilities = /* @__PURE__ */ (() => '.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.bg-brand-primary-light{--tw-bg-opacity: 1;background-color:rgba(255,248,235,var(--tw-bg-opacity))}.bg-brand-primary-pure{--tw-bg-opacity: 1;background-color:rgba(255,176,31,var(--tw-bg-opacity))}.bg-neutral-low-medium{--tw-bg-opacity: 1;background-color:rgba(82,82,82,var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-neutral-high-light{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-neutral-high-pure{--tw-bg-opacity: 1;background-color:rgba(224,224,224,var(--tw-bg-opacity))}.bg-neutral-high-medium{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.bg-neutral-low-light{--tw-bg-opacity: 1;background-color:rgba(143,143,143,var(--tw-bg-opacity))}.bg-neutral-low-pure{--tw-bg-opacity: 1;background-color:rgba(41,41,41,var(--tw-bg-opacity))}.bg-brand-primary-medium{--tw-bg-opacity: 1;background-color:rgba(255,205,112,var(--tw-bg-opacity))}.bg-feedback-positive-medium{--tw-bg-opacity: 1;background-color:rgba(138,229,191,var(--tw-bg-opacity))}.bg-feedback-positive-light{--tw-bg-opacity: 1;background-color:rgba(238,251,246,var(--tw-bg-opacity))}.bg-feedback-positive-pure{--tw-bg-opacity: 1;background-color:rgba(71,215,154,var(--tw-bg-opacity))}.bg-feedback-informative-light{--tw-bg-opacity: 1;background-color:rgba(235,248,255,var(--tw-bg-opacity))}.bg-feedback-informative-medium{--tw-bg-opacity: 1;background-color:rgba(112,203,255,var(--tw-bg-opacity))}.bg-feedback-negative-pure{--tw-bg-opacity: 1;background-color:rgba(255,37,31,var(--tw-bg-opacity))}.bg-feedback-informative-pure{--tw-bg-opacity: 1;background-color:rgba(31,174,255,var(--tw-bg-opacity))}.bg-feedback-negative-light{--tw-bg-opacity: 1;background-color:rgba(255,235,235,var(--tw-bg-opacity))}.bg-feedback-negative-medium{--tw-bg-opacity: 1;background-color:rgba(255,116,112,var(--tw-bg-opacity))}.border-neutral-high-light{--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity))}.border-neutral-low-pure{--tw-border-opacity: 1;border-color:rgba(41,41,41,var(--tw-border-opacity))}.border-neutral-low-light{--tw-border-opacity: 1;border-color:rgba(143,143,143,var(--tw-border-opacity))}.border-neutral-low-medium{--tw-border-opacity: 1;border-color:rgba(82,82,82,var(--tw-border-opacity))}.border-neutral-high-pure{--tw-border-opacity: 1;border-color:rgba(224,224,224,var(--tw-border-opacity))}.border-b-brand-primary-pure{--tw-border-opacity: 1;border-bottom-color:rgba(255,176,31,var(--tw-border-opacity))}.rounded-md{border-radius:.5rem}.rounded-sm{border-radius:.25rem}.rounded-fully{border-radius:100%}.rounded-lg{border-radius:1rem}.rounded-none{border-radius:0}.rounded-half{border-radius:50%}.rounded-full{border-radius:40rem}.border-solid{border-style:solid}.border-a-xs{border-width:1px}.border-sm,.border-2,.border-a-sm{border-width:2px}.border-a-md{border-width:4px}.border-a-lg{border-width:8px}.border-b-xs{border-bottom-width:1px}.border-t-md{border-top-width:4px}.border-r-md{border-right-width:4px}.border-b-md{border-bottom-width:4px}.border-l-md{border-left-width:4px}.border-y-md{border-top-width:4px;border-bottom-width:4px}.border-x-md{border-left-width:4px;border-right-width:4px}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.inline-block{display:inline-block}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.grid{display:-ms-grid;display:grid}.hidden{display:none}.flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.place-items-center{place-items:center}.place-content-center{place-content:center}.items-start{-webkit-box-align:start;-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-start{-webkit-box-pack:start;-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.font-highlight{font-family:Rubik}.font-base{font-family:Lato,sans-serif}.font-code{font-family:Roboto Slab,"serif"}.font-medium{font-weight:500}.font-regular{font-weight:400}.h-8{height:2rem}.h-4{height:1rem}.h-2{height:.5rem}.h-full{height:100%}.h-6{height:1.5rem}.h-1{height:.25rem}.h-40{height:10rem}.h-60{height:15rem}.h-24{height:6rem}.text-sm{font-size:1.5rem}.text-3xs{font-size:.875rem}.text-micro{font-size:.75rem}.text-2xs{font-size:1rem}.text-xs{font-size:1.25rem}.text-md{font-size:2rem}.text-lg{font-size:2.5rem}.text-xl{font-size:3rem}.text-2xl{font-size:3.5rem}.text-3xl{font-size:4rem}.text-mega{font-size:4.5rem}.text-giga{font-size:5.5rem}.leading-xs{line-height:1.15}.leading-md{line-height:1.33}.leading-default{line-height:1}.leading-sm{line-height:1.2}.leading-lg{line-height:1.5}.leading-xl{line-height:1.7}.list-none{list-style-type:none}.mx-4{margin-left:1rem;margin-right:1rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mt-micro{margin-top:.5rem}.mb-micro{margin-bottom:.5rem}.mb-xs{margin-bottom:1.5rem}.mr-micro{margin-right:.5rem}.mb-3xs{margin-bottom:.75rem}.mt-nano{margin-top:.25rem}.mb-1,.mb-nano{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-6{margin-bottom:1.5rem}.mb-4{margin-bottom:1rem}.mb-0{margin-bottom:0}.ml-4{margin-left:1rem}.max-h-10{max-height:2.5rem}.max-h-240px{max-height:240px}.max-h-200{max-height:50rem}.max-w-full{max-width:100%}.min-h-9{min-height:2.25rem}.min-h-8{min-height:2rem}.min-h-14{min-height:3.5rem}.min-w-50{min-width:12.5rem}.outline-solid-neutral-high-light{--tw-outline-opacity: 1;outline-color:rgba(255,255,255,var(--tw-outline-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-micro{padding-top:.5rem;padding-bottom:.5rem}.px-micro{padding-left:.5rem;padding-right:.5rem}.py-3xs{padding-top:.75rem;padding-bottom:.75rem}.px-xs{padding-left:1.5rem;padding-right:1.5rem}.px-3xs{padding-left:.75rem;padding-right:.75rem}.px-nano{padding-left:.25rem;padding-right:.25rem}.py-nano{padding-top:.25rem;padding-bottom:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.pl-2xs{padding-left:1rem}.pr-micro{padding-right:.5rem}.pl-nano{padding-left:.25rem}.pl-3xs{padding-left:.75rem}.caret-brand-primary-pure{--tw-caret-opacity: 1;caret-color:rgba(255,176,31,var(--tw-caret-opacity))}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2\\/18{top:11.111111%}.left-1{left:.25rem}.top-3\\/10{top:30%}.resize{resize:both}.shadow-soft{--tw-shadow: 0px 8px 16px rgba(41, 41, 41, .08);--tw-shadow-colored: 0px 8px 16px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-medium{--tw-shadow: 0px 12px 24px rgba(41, 41, 41, .16);--tw-shadow-colored: 0px 12px 24px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-large{--tw-shadow: 0px 16px 64px rgba(41, 41, 41, .24);--tw-shadow-colored: 0px 16px 64px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.text-left{text-align:left}.text-neutral-low-light{--tw-text-opacity: 1;color:rgba(143,143,143,var(--tw-text-opacity))}.text-neutral-low-medium{--tw-text-opacity: 1;color:rgba(82,82,82,var(--tw-text-opacity))}.text-neutral-low-pure{--tw-text-opacity: 1;color:rgba(41,41,41,var(--tw-text-opacity))}.text-feedback-negative-pure{--tw-text-opacity: 1;color:rgba(255,37,31,var(--tw-text-opacity))}.uppercase{text-transform:uppercase}.text-stroke-neutral-high-light{--tw-text-stroke-opacity: 1;-webkit-text-stroke-color:rgba(255,255,255,var(--tw-text-stroke-opacity))}.content-wrapper{content:"wrapper"}.tracking-md{letter-spacing:.04rem}.tracking-default{letter-spacing:normal}.tracking-sm{letter-spacing:.16rem}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-words{overflow-wrap:break-word}.w-full{width:100%}.w-fit-content{width:fit-content}.w-4{width:1rem}.w-2{width:.5rem}.w-12{width:3rem}.w-60{width:15rem}.w-82{width:20.5rem}.z-80{z-index:80}.gap-4{grid-gap:1rem;gap:1rem}.gap-3{grid-gap:.75rem;gap:.75rem}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.transform{--tw-translate-x: 0;--tw-translate-y: 0;--tw-translate-z: 0;--tw-rotate: 0;--tw-rotate-x: 0;--tw-rotate-y: 0;--tw-rotate-z: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1;-webkit-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));-ms-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));transform:translate(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z))}.transition-transform{-webkit-transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);-o-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.\\<transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,filter,backdrop-filter;-o-transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,-webkit-box-shadow,transform,-webkit-transform,filter,backdrop-filter;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);-o-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.ease-out{-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);-o-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert,.-invert,.invert\\]{--tw-invert: invert(100%)}.placeholder::placeholder{color:#8f8f8f!important;font-size:undefined!important;font-family:undefined!important;line-height:undefined!important}.placeholder-inline{color:#8f8f8f!important;font-size:undefined!important;font-family:undefined!important;line-height:undefined!important}@media (min-width: 768px){.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}\n')();
|
|
1287
|
-
var style =
|
|
1565
|
+
var windiBase = "";
|
|
1566
|
+
var windiComponents = "";
|
|
1567
|
+
var windiUtilities = "";
|
|
1568
|
+
var style = "";
|
|
1288
1569
|
const TOAST_GAP = 12;
|
|
1289
1570
|
const DEFAULT_OPTIONS = {
|
|
1290
1571
|
type: "success",
|
|
@@ -1440,7 +1721,7 @@ function render(_ctx, _cache) {
|
|
|
1440
1721
|
return openBlock(), createElementBlock("svg", _hoisted_1$1, _hoisted_3$1);
|
|
1441
1722
|
}
|
|
1442
1723
|
var Info = { name: "mi-circle-warning", render };
|
|
1443
|
-
var Toast_vue_vue_type_style_index_0_lang =
|
|
1724
|
+
var Toast_vue_vue_type_style_index_0_lang = "";
|
|
1444
1725
|
const _hoisted_1 = ["id", "data-testid"];
|
|
1445
1726
|
const _hoisted_2 = { class: "content-wrapper" };
|
|
1446
1727
|
const _hoisted_3 = {
|
|
@@ -1680,19 +1961,19 @@ function close(id, position) {
|
|
|
1680
1961
|
}
|
|
1681
1962
|
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");
|
|
1682
1963
|
const components = {
|
|
1683
|
-
SolButton: _sfc_main$
|
|
1684
|
-
SolInput: _sfc_main$
|
|
1685
|
-
SolTextarea: _sfc_main$
|
|
1686
|
-
SolTextfield: _sfc_main$
|
|
1687
|
-
SolTextfieldPassword: _sfc_main$
|
|
1688
|
-
SolRadio: _sfc_main$
|
|
1689
|
-
SolRadioGroup: _sfc_main$
|
|
1690
|
-
SolCheckbox: _sfc_main$
|
|
1691
|
-
SolCheckboxGroup: _sfc_main$
|
|
1692
|
-
SolSwitch: _sfc_main$
|
|
1693
|
-
SolDropdown: _sfc_main$
|
|
1964
|
+
SolButton: _sfc_main$f,
|
|
1965
|
+
SolInput: _sfc_main$e,
|
|
1966
|
+
SolTextarea: _sfc_main$b,
|
|
1967
|
+
SolTextfield: _sfc_main$d,
|
|
1968
|
+
SolTextfieldPassword: _sfc_main$c,
|
|
1969
|
+
SolRadio: _sfc_main$a,
|
|
1970
|
+
SolRadioGroup: _sfc_main$9,
|
|
1971
|
+
SolCheckbox: _sfc_main$8,
|
|
1972
|
+
SolCheckboxGroup: _sfc_main$7,
|
|
1973
|
+
SolSwitch: _sfc_main$6,
|
|
1974
|
+
SolDropdown: _sfc_main$5,
|
|
1694
1975
|
SolSelect: _sfc_main$2,
|
|
1695
|
-
SolChip: _sfc_main$
|
|
1976
|
+
SolChip: _sfc_main$4,
|
|
1696
1977
|
SolAccordion: _sfc_main$1
|
|
1697
1978
|
};
|
|
1698
1979
|
function install(App) {
|
|
@@ -1700,4 +1981,4 @@ function install(App) {
|
|
|
1700
1981
|
App.component(component, components[component]);
|
|
1701
1982
|
}
|
|
1702
1983
|
}
|
|
1703
|
-
export { _sfc_main$1 as SolAccordion, _sfc_main$
|
|
1984
|
+
export { _sfc_main$1 as SolAccordion, _sfc_main$f as SolButton, _sfc_main$8 as SolCheckbox, _sfc_main$7 as SolCheckboxGroup, _sfc_main$4 as SolChip, _sfc_main$5 as SolDropdown, _sfc_main$e as SolInput, _sfc_main$a as SolRadio, _sfc_main$9 as SolRadioGroup, _sfc_main$2 as SolSelect, _sfc_main$6 as SolSwitch, _sfc_main$b as SolTextarea, _sfc_main$d as SolTextfield, _sfc_main$c as SolTextfieldPassword, components, install, useToast };
|