@solfacil/girassol 0.1.7 → 0.1.10
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/.vscode/settings.json +1 -0
- package/README.md +46 -3
- package/cli/bin/{girassol → girassol-cli} +0 -0
- package/cli/build/cli.js +68 -0
- package/cli/build/commands/create:component.js +124 -0
- package/cli/build/commands/generate:plugin.js +89 -0
- package/cli/build/commands/generate:types.js +76 -0
- package/cli/build/commands/girassol-cli.js +52 -0
- package/cli/build/extensions/cli-extension.js +17 -0
- package/cli/build/templates/components.d.ts.ejs +1 -0
- package/cli/build/templates/nuxt-plugin.ejs +8 -0
- package/cli/build/templates/vue-plugin.ejs +5 -0
- package/cli/{src → build}/templates/windi.config.ts.ejs +0 -0
- package/cli/build/types/cli.d.ts +1 -0
- package/cli/build/types/commands/create:component.d.ts +1 -0
- package/cli/build/types/commands/generate:plugin.d.ts +1 -0
- package/cli/build/types/commands/generate:types.d.ts +7 -0
- package/cli/build/types/commands/girassol-cli.d.ts +1 -0
- package/cli/build/types/extensions/cli-extension.d.ts +1 -0
- package/cli/build/types/types.d.ts +0 -0
- package/cli/build/types.js +2 -0
- package/dist/cli/src/cli.d.ts +1 -0
- package/dist/cli/src/commands/create:component.d.ts +1 -0
- package/dist/cli/src/commands/generate:plugin.d.ts +1 -0
- package/dist/cli/src/commands/generate:types.d.ts +7 -0
- package/dist/cli/src/commands/girassol-cli.d.ts +1 -0
- package/dist/cli/src/extensions/cli-extension.d.ts +1 -0
- package/dist/cli/src/types.d.ts +0 -0
- package/dist/components.d.ts +21 -0
- package/dist/components.json +1 -0
- package/dist/girassol.es.js +283 -198
- package/dist/girassol.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/types/components/dropdown/Dropdown.vue.d.ts +4 -0
- package/dist/types/components/forms/select/Select.vue.d.ts +6 -5
- package/dist/types/components/informations/chip/Chip.vue.d.ts +41 -0
- package/dist/types/components/informations/chip/chip.spec.d.ts +1 -0
- package/dist/types/components/informations/chip/index.d.ts +2 -0
- package/dist/types/index.d.ts +841 -2
- package/dist/vite-modules/generate-component-types.d.ts +3 -0
- package/package.json +45 -22
- package/vite.config.ts +4 -0
- package/cli/.eslintrc.js +0 -18
- package/cli/LICENSE +0 -21
- package/cli/docs/commands.md +0 -3
- package/cli/docs/plugins.md +0 -47
- package/cli/package.json +0 -53
- package/cli/readme.md +0 -26
- package/cli/src/cli.ts +0 -25
- package/cli/src/commands/create:component.ts +0 -91
- package/cli/src/commands/generate:plugin.ts +0 -68
- package/cli/src/commands/generate:types.ts +0 -38
- package/cli/src/commands/girassol.ts +0 -12
- package/cli/src/extensions/cli-extension.ts +0 -17
- package/cli/src/templates/components/component.spec.ts.ejs +0 -20
- package/cli/src/templates/components/component.stories.mdx.ejs +0 -74
- package/cli/src/templates/components/component.vue.ejs +0 -23
- package/cli/src/templates/components/index.ts.ejs +0 -10
- package/cli/src/templates/components.d.ts.ejs +0 -10
- package/cli/src/templates/nuxt-plugin.ejs +0 -7
- package/cli/src/templates/vue-plugin.ejs +0 -5
- package/cli/src/types.ts +0 -1
- package/cli/tsconfig.json +0 -28
- package/cli/yarn.lock +0 -1804
package/dist/girassol.es.js
CHANGED
|
@@ -19,11 +19,11 @@ var __spreadValues = (a, b) => {
|
|
|
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$8 } from "vue";
|
|
21
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$
|
|
26
|
-
|
|
22
|
+
const _hoisted_1$l = ["data-testid"];
|
|
23
|
+
const _hoisted_2$j = { class: "icon -left" };
|
|
24
|
+
const _hoisted_3$h = { class: "icon -right" };
|
|
25
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
26
|
+
__name: "Button",
|
|
27
27
|
props: {
|
|
28
28
|
variant: { default: "primary" },
|
|
29
29
|
dense: { type: Boolean, default: false },
|
|
@@ -47,24 +47,24 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
`]),
|
|
48
48
|
type: "button"
|
|
49
49
|
}, [
|
|
50
|
-
createElementVNode("div", _hoisted_2$
|
|
50
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
51
51
|
renderSlot(_ctx.$slots, "icon-left")
|
|
52
52
|
]),
|
|
53
53
|
renderSlot(_ctx.$slots, "default"),
|
|
54
|
-
createElementVNode("div", _hoisted_3$
|
|
54
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
55
55
|
renderSlot(_ctx.$slots, "icon-right")
|
|
56
56
|
])
|
|
57
|
-
], 10, _hoisted_1$
|
|
57
|
+
], 10, _hoisted_1$l);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
_sfc_main$
|
|
62
|
-
app.component("SolButton", _sfc_main$
|
|
61
|
+
_sfc_main$d.install = (app) => {
|
|
62
|
+
app.component("SolButton", _sfc_main$d);
|
|
63
63
|
};
|
|
64
64
|
var Input_vue_vue_type_style_index_0_lang = "";
|
|
65
|
-
const _hoisted_1$
|
|
66
|
-
const _sfc_main$
|
|
67
|
-
|
|
65
|
+
const _hoisted_1$k = ["id", "data-testid", "value"];
|
|
66
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
67
|
+
__name: "Input",
|
|
68
68
|
props: {
|
|
69
69
|
id: null,
|
|
70
70
|
modelValue: null,
|
|
@@ -74,8 +74,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
emits: ["update:modelValue"],
|
|
75
75
|
setup(__props, { expose, emit }) {
|
|
76
76
|
function emitInput({ target }) {
|
|
77
|
-
|
|
78
|
-
emit("update:modelValue", (_a2 = target == null ? void 0 : target.value) != null ? _a2 : "");
|
|
77
|
+
emit("update:modelValue", target == null ? void 0 : target.value);
|
|
79
78
|
}
|
|
80
79
|
const input = ref("");
|
|
81
80
|
expose({
|
|
@@ -90,21 +89,21 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
90
89
|
value: __props.modelValue,
|
|
91
90
|
class: normalizeClass(["sol-input-core", { "-invert": __props.invert, "-error": __props.error }]),
|
|
92
91
|
onInput: emitInput
|
|
93
|
-
}, null, 42, _hoisted_1$
|
|
92
|
+
}, null, 42, _hoisted_1$k);
|
|
94
93
|
};
|
|
95
94
|
}
|
|
96
95
|
});
|
|
97
|
-
_sfc_main$
|
|
98
|
-
app.component("SolInput", _sfc_main$
|
|
96
|
+
_sfc_main$c.install = (app) => {
|
|
97
|
+
app.component("SolInput", _sfc_main$c);
|
|
99
98
|
};
|
|
100
99
|
var Textfield_vue_vue_type_style_index_0_lang = "";
|
|
101
|
-
const _hoisted_1$
|
|
102
|
-
const _hoisted_2$
|
|
103
|
-
const _hoisted_3$
|
|
100
|
+
const _hoisted_1$j = ["id", "data-testid"];
|
|
101
|
+
const _hoisted_2$i = ["for"];
|
|
102
|
+
const _hoisted_3$g = { class: "container-input" };
|
|
104
103
|
const _hoisted_4$6 = ["id"];
|
|
105
104
|
const _hoisted_5$3 = ["id"];
|
|
106
|
-
const _sfc_main$
|
|
107
|
-
|
|
105
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
106
|
+
__name: "Textfield",
|
|
108
107
|
props: {
|
|
109
108
|
id: null,
|
|
110
109
|
class: null,
|
|
@@ -147,11 +146,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
147
146
|
class: "label"
|
|
148
147
|
}, [
|
|
149
148
|
createElementVNode("span", null, toDisplayString(__props.label), 1)
|
|
150
|
-
], 8, _hoisted_2$
|
|
149
|
+
], 8, _hoisted_2$i)) : createCommentVNode("", true)
|
|
151
150
|
]),
|
|
152
|
-
createElementVNode("div", _hoisted_3$
|
|
151
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
153
152
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
154
|
-
createVNode(_sfc_main$
|
|
153
|
+
createVNode(_sfc_main$c, mergeProps(_ctx.$attrs, {
|
|
155
154
|
id: __props.id,
|
|
156
155
|
modelValue: unref(model),
|
|
157
156
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
@@ -173,47 +172,47 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
173
172
|
id: `error-${__props.id}`,
|
|
174
173
|
class: "error"
|
|
175
174
|
}, toDisplayString(__props.error), 9, _hoisted_5$3)) : createCommentVNode("", true)
|
|
176
|
-
], 10, _hoisted_1$
|
|
175
|
+
], 10, _hoisted_1$j);
|
|
177
176
|
};
|
|
178
177
|
}
|
|
179
178
|
});
|
|
180
|
-
const _hoisted_1$
|
|
179
|
+
const _hoisted_1$i = {
|
|
181
180
|
preserveAspectRatio: "xMidYMid meet",
|
|
182
181
|
viewBox: "0 0 24 24",
|
|
183
182
|
width: "1.2em",
|
|
184
183
|
height: "1.2em"
|
|
185
184
|
};
|
|
186
|
-
const _hoisted_2$
|
|
185
|
+
const _hoisted_2$h = /* @__PURE__ */ createElementVNode("g", { fill: "currentColor" }, [
|
|
187
186
|
/* @__PURE__ */ createElementVNode("path", { d: "M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0z" }),
|
|
188
187
|
/* @__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" })
|
|
189
188
|
], -1);
|
|
190
|
-
const _hoisted_3$
|
|
191
|
-
_hoisted_2$
|
|
189
|
+
const _hoisted_3$f = [
|
|
190
|
+
_hoisted_2$h
|
|
192
191
|
];
|
|
193
192
|
function render$7(_ctx, _cache) {
|
|
194
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
193
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$f);
|
|
195
194
|
}
|
|
196
195
|
var EyeOn = { name: "mi-eye", render: render$7 };
|
|
197
|
-
const _hoisted_1$
|
|
196
|
+
const _hoisted_1$h = {
|
|
198
197
|
preserveAspectRatio: "xMidYMid meet",
|
|
199
198
|
viewBox: "0 0 24 24",
|
|
200
199
|
width: "1.2em",
|
|
201
200
|
height: "1.2em"
|
|
202
201
|
};
|
|
203
|
-
const _hoisted_2$
|
|
202
|
+
const _hoisted_2$g = /* @__PURE__ */ createElementVNode("path", {
|
|
204
203
|
fill: "currentColor",
|
|
205
204
|
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"
|
|
206
205
|
}, null, -1);
|
|
207
|
-
const _hoisted_3$
|
|
208
|
-
_hoisted_2$
|
|
206
|
+
const _hoisted_3$e = [
|
|
207
|
+
_hoisted_2$g
|
|
209
208
|
];
|
|
210
209
|
function render$6(_ctx, _cache) {
|
|
211
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
210
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_3$e);
|
|
212
211
|
}
|
|
213
212
|
var EyeOff = { name: "mi-eye-off", render: render$6 };
|
|
214
|
-
const _hoisted_1$
|
|
215
|
-
const _sfc_main$
|
|
216
|
-
|
|
213
|
+
const _hoisted_1$g = ["aria-label"];
|
|
214
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
215
|
+
__name: "TextfieldPassword",
|
|
217
216
|
props: {
|
|
218
217
|
id: { default: "" },
|
|
219
218
|
label: { default: "Sua senha" }
|
|
@@ -222,7 +221,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
222
221
|
const passwordIsVisible = ref(false);
|
|
223
222
|
const inputType = computed(() => passwordIsVisible.value ? "text" : "password");
|
|
224
223
|
return (_ctx, _cache) => {
|
|
225
|
-
return openBlock(), createBlock(_sfc_main$
|
|
224
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
226
225
|
id: __props.id,
|
|
227
226
|
required: "",
|
|
228
227
|
type: unref(inputType),
|
|
@@ -242,28 +241,28 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
242
241
|
withDirectives(createVNode(unref(EyeOff), { "aria-hidden": "true" }, null, 512), [
|
|
243
242
|
[vShow, !passwordIsVisible.value]
|
|
244
243
|
])
|
|
245
|
-
], 8, _hoisted_1$
|
|
244
|
+
], 8, _hoisted_1$g)
|
|
246
245
|
]),
|
|
247
246
|
_: 1
|
|
248
247
|
}, 8, ["id", "type", "label"]);
|
|
249
248
|
};
|
|
250
249
|
}
|
|
251
250
|
});
|
|
252
|
-
_sfc_main$
|
|
253
|
-
app.component("SolTextfield", _sfc_main$
|
|
251
|
+
_sfc_main$b.install = (app) => {
|
|
252
|
+
app.component("SolTextfield", _sfc_main$b);
|
|
254
253
|
};
|
|
255
|
-
_sfc_main$
|
|
256
|
-
app.component("SolTextfieldPassword", _sfc_main$
|
|
254
|
+
_sfc_main$a.install = (app) => {
|
|
255
|
+
app.component("SolTextfieldPassword", _sfc_main$a);
|
|
257
256
|
};
|
|
258
257
|
var Textarea_vue_vue_type_style_index_0_lang = "";
|
|
259
|
-
const _hoisted_1$
|
|
260
|
-
const _hoisted_2$
|
|
261
|
-
const _hoisted_3$
|
|
258
|
+
const _hoisted_1$f = ["id", "data-testid"];
|
|
259
|
+
const _hoisted_2$f = ["for"];
|
|
260
|
+
const _hoisted_3$d = { class: "container-textarea" };
|
|
262
261
|
const _hoisted_4$5 = ["id", "data-testid", "invert", "aria-invalid", "aria-describedby"];
|
|
263
262
|
const _hoisted_5$2 = ["id"];
|
|
264
263
|
const _hoisted_6$2 = ["id"];
|
|
265
|
-
const _sfc_main$
|
|
266
|
-
|
|
264
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
265
|
+
__name: "Textarea",
|
|
267
266
|
props: {
|
|
268
267
|
id: null,
|
|
269
268
|
class: null,
|
|
@@ -307,9 +306,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
307
306
|
class: "label"
|
|
308
307
|
}, [
|
|
309
308
|
createElementVNode("span", null, toDisplayString(__props.label), 1)
|
|
310
|
-
], 8, _hoisted_2$
|
|
309
|
+
], 8, _hoisted_2$f)) : createCommentVNode("", true)
|
|
311
310
|
]),
|
|
312
|
-
createElementVNode("div", _hoisted_3$
|
|
311
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
313
312
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
314
313
|
withDirectives(createElementVNode("textarea", mergeProps(_ctx.$attrs, {
|
|
315
314
|
id: `input-${__props.id}`,
|
|
@@ -334,18 +333,18 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
334
333
|
id: `error-${__props.id}`,
|
|
335
334
|
class: "error"
|
|
336
335
|
}, toDisplayString(__props.error), 9, _hoisted_6$2)) : createCommentVNode("", true)
|
|
337
|
-
], 10, _hoisted_1$
|
|
336
|
+
], 10, _hoisted_1$f);
|
|
338
337
|
};
|
|
339
338
|
}
|
|
340
339
|
});
|
|
341
|
-
_sfc_main$
|
|
342
|
-
app.component("SolTextarea", _sfc_main$
|
|
340
|
+
_sfc_main$9.install = (app) => {
|
|
341
|
+
app.component("SolTextarea", _sfc_main$9);
|
|
343
342
|
};
|
|
344
343
|
var Radio_vue_vue_type_style_index_0_lang = "";
|
|
345
|
-
const _hoisted_1$
|
|
346
|
-
const _hoisted_2$
|
|
347
|
-
const _sfc_main$
|
|
348
|
-
|
|
344
|
+
const _hoisted_1$e = ["id", "data-testid", "checked", "value", "name"];
|
|
345
|
+
const _hoisted_2$e = ["for"];
|
|
346
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
347
|
+
__name: "Radio",
|
|
349
348
|
props: {
|
|
350
349
|
id: null,
|
|
351
350
|
name: null,
|
|
@@ -369,22 +368,22 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
369
368
|
value: __props.value,
|
|
370
369
|
name: __props.name,
|
|
371
370
|
onChange: _cache[0] || (_cache[0] = ($event) => emit("change", __props.value))
|
|
372
|
-
}), null, 16, _hoisted_1$
|
|
371
|
+
}), null, 16, _hoisted_1$e),
|
|
373
372
|
createElementVNode("label", {
|
|
374
373
|
class: "label",
|
|
375
374
|
for: `radio-${__props.name}-${__props.id}`
|
|
376
|
-
}, toDisplayString(__props.label), 9, _hoisted_2$
|
|
375
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$e)
|
|
377
376
|
], 2);
|
|
378
377
|
};
|
|
379
378
|
}
|
|
380
379
|
});
|
|
381
380
|
var RadioGroup_vue_vue_type_style_index_0_lang = "";
|
|
382
|
-
const _hoisted_1$
|
|
383
|
-
const _hoisted_2$
|
|
384
|
-
const _hoisted_3$
|
|
381
|
+
const _hoisted_1$d = ["aria-labelledby"];
|
|
382
|
+
const _hoisted_2$d = ["id", "data-testid"];
|
|
383
|
+
const _hoisted_3$c = ["id"];
|
|
385
384
|
const _hoisted_4$4 = ["id"];
|
|
386
|
-
const _sfc_main$
|
|
387
|
-
|
|
385
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
386
|
+
__name: "RadioGroup",
|
|
388
387
|
props: {
|
|
389
388
|
id: null,
|
|
390
389
|
title: null,
|
|
@@ -427,7 +426,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
427
426
|
id: `radio-group-title-${__props.id}`,
|
|
428
427
|
class: normalizeClass(["title", { "sr-only": __props.hideTitle }]),
|
|
429
428
|
"data-testid": `radio-group-title-${__props.id}`
|
|
430
|
-
}, toDisplayString(__props.title), 11, _hoisted_2$
|
|
429
|
+
}, toDisplayString(__props.title), 11, _hoisted_2$d)
|
|
431
430
|
]),
|
|
432
431
|
createElementVNode("ul", {
|
|
433
432
|
class: normalizeClass(["container-radios", { "flex-col": __props.direction === "column" }])
|
|
@@ -439,7 +438,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
439
438
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.radios, (radio, index) => {
|
|
440
439
|
var _a2;
|
|
441
440
|
return openBlock(), createElementBlock("li", { key: index }, [
|
|
442
|
-
createVNode(_sfc_main$
|
|
441
|
+
createVNode(_sfc_main$8, mergeProps(_ctx.$attrs, {
|
|
443
442
|
id: (_a2 = radio == null ? void 0 : radio.id) != null ? _a2 : `${radio.value}`,
|
|
444
443
|
class: ["radio", { "mb-micro": __props.direction === "column", "mr-micro": __props.direction === "row" }],
|
|
445
444
|
name: radio.name,
|
|
@@ -458,26 +457,26 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
458
457
|
key: 0,
|
|
459
458
|
id: `hint-${__props.id}`,
|
|
460
459
|
class: "hint"
|
|
461
|
-
}, toDisplayString(__props.hint), 9, _hoisted_3$
|
|
460
|
+
}, toDisplayString(__props.hint), 9, _hoisted_3$c)) : __props.error ? (openBlock(), createElementBlock("p", {
|
|
462
461
|
key: 1,
|
|
463
462
|
id: `error-${__props.id}`,
|
|
464
463
|
class: "error"
|
|
465
464
|
}, toDisplayString(__props.error), 9, _hoisted_4$4)) : createCommentVNode("", true)
|
|
466
|
-
], 8, _hoisted_1$
|
|
465
|
+
], 8, _hoisted_1$d);
|
|
467
466
|
};
|
|
468
467
|
}
|
|
469
468
|
});
|
|
470
|
-
_sfc_main$
|
|
471
|
-
app.component("SolRadio", _sfc_main$
|
|
469
|
+
_sfc_main$8.install = (app) => {
|
|
470
|
+
app.component("SolRadio", _sfc_main$8);
|
|
472
471
|
};
|
|
473
|
-
_sfc_main$
|
|
474
|
-
app.component("SolRadioGroup", _sfc_main$
|
|
472
|
+
_sfc_main$7.install = (app) => {
|
|
473
|
+
app.component("SolRadioGroup", _sfc_main$7);
|
|
475
474
|
};
|
|
476
475
|
var Checkbox_vue_vue_type_style_index_0_lang = "";
|
|
477
|
-
const _hoisted_1$
|
|
478
|
-
const _hoisted_2$
|
|
479
|
-
const _sfc_main$
|
|
480
|
-
|
|
476
|
+
const _hoisted_1$c = ["id", "data-testid", "checked", "value", "name"];
|
|
477
|
+
const _hoisted_2$c = ["for"];
|
|
478
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
479
|
+
__name: "Checkbox",
|
|
481
480
|
props: {
|
|
482
481
|
id: null,
|
|
483
482
|
name: null,
|
|
@@ -501,22 +500,22 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
501
500
|
value: __props.value,
|
|
502
501
|
name: __props.name,
|
|
503
502
|
onChange: _cache[0] || (_cache[0] = ($event) => emit("change", __props.value))
|
|
504
|
-
}), null, 16, _hoisted_1$
|
|
503
|
+
}), null, 16, _hoisted_1$c),
|
|
505
504
|
createElementVNode("label", {
|
|
506
505
|
class: "label",
|
|
507
506
|
for: `checkbox-${__props.name}-${__props.id}`
|
|
508
|
-
}, toDisplayString(__props.label), 9, _hoisted_2$
|
|
507
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$c)
|
|
509
508
|
], 2);
|
|
510
509
|
};
|
|
511
510
|
}
|
|
512
511
|
});
|
|
513
512
|
var CheckboxGroup_vue_vue_type_style_index_0_lang = "";
|
|
514
|
-
const _hoisted_1$
|
|
515
|
-
const _hoisted_2$
|
|
516
|
-
const _hoisted_3$
|
|
513
|
+
const _hoisted_1$b = ["aria-labelledby"];
|
|
514
|
+
const _hoisted_2$b = ["id", "data-testid"];
|
|
515
|
+
const _hoisted_3$b = ["id"];
|
|
517
516
|
const _hoisted_4$3 = ["id"];
|
|
518
|
-
const _sfc_main$
|
|
519
|
-
|
|
517
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
518
|
+
__name: "CheckboxGroup",
|
|
520
519
|
props: {
|
|
521
520
|
id: null,
|
|
522
521
|
title: null,
|
|
@@ -565,7 +564,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
565
564
|
id: `checkbox-group-title-${__props.id}`,
|
|
566
565
|
class: normalizeClass(["title", { "sr-only": __props.hideTitle }]),
|
|
567
566
|
"data-testid": `checkbox-group-title-${__props.id}`
|
|
568
|
-
}, toDisplayString(__props.title), 11, _hoisted_2$
|
|
567
|
+
}, toDisplayString(__props.title), 11, _hoisted_2$b)
|
|
569
568
|
]),
|
|
570
569
|
createElementVNode("ul", {
|
|
571
570
|
class: normalizeClass(["container-checkboxes", { "flex-col": __props.direction === "column" }])
|
|
@@ -577,7 +576,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
577
576
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.checkboxes, (checkbox, index) => {
|
|
578
577
|
var _a2;
|
|
579
578
|
return openBlock(), createElementBlock("li", { key: index }, [
|
|
580
|
-
createVNode(_sfc_main$
|
|
579
|
+
createVNode(_sfc_main$6, mergeProps(_ctx.$attrs, {
|
|
581
580
|
id: (_a2 = checkbox == null ? void 0 : checkbox.id) != null ? _a2 : `${checkbox.value}`,
|
|
582
581
|
class: ["checkbox", { "mb-micro": __props.direction === "column", "mr-micro": __props.direction === "row" }],
|
|
583
582
|
label: checkbox.label,
|
|
@@ -596,28 +595,28 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
596
595
|
key: 0,
|
|
597
596
|
id: `hint-${__props.id}`,
|
|
598
597
|
class: "hint"
|
|
599
|
-
}, toDisplayString(__props.hint), 9, _hoisted_3$
|
|
598
|
+
}, toDisplayString(__props.hint), 9, _hoisted_3$b)) : __props.error ? (openBlock(), createElementBlock("p", {
|
|
600
599
|
key: 1,
|
|
601
600
|
id: `error-${__props.id}`,
|
|
602
601
|
class: "error"
|
|
603
602
|
}, toDisplayString(__props.error), 9, _hoisted_4$3)) : createCommentVNode("", true)
|
|
604
|
-
], 8, _hoisted_1$
|
|
603
|
+
], 8, _hoisted_1$b);
|
|
605
604
|
};
|
|
606
605
|
}
|
|
607
606
|
});
|
|
608
|
-
_sfc_main$
|
|
609
|
-
app.component("SolCheckbox", _sfc_main$
|
|
607
|
+
_sfc_main$6.install = (app) => {
|
|
608
|
+
app.component("SolCheckbox", _sfc_main$6);
|
|
610
609
|
};
|
|
611
|
-
_sfc_main$
|
|
612
|
-
app.component("SolCheckboxGroup", _sfc_main$
|
|
610
|
+
_sfc_main$5.install = (app) => {
|
|
611
|
+
app.component("SolCheckboxGroup", _sfc_main$5);
|
|
613
612
|
};
|
|
614
613
|
var Switch_vue_vue_type_style_index_0_lang = "";
|
|
615
|
-
const _hoisted_1$
|
|
616
|
-
const _hoisted_2$
|
|
617
|
-
const _hoisted_3$
|
|
614
|
+
const _hoisted_1$a = ["id", "for", "data-testid"];
|
|
615
|
+
const _hoisted_2$a = { class: "switch-container" };
|
|
616
|
+
const _hoisted_3$a = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"];
|
|
618
617
|
const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("span", { class: "ellipse" }, null, -1);
|
|
619
|
-
const _sfc_main$
|
|
620
|
-
|
|
618
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
619
|
+
__name: "Switch",
|
|
621
620
|
props: {
|
|
622
621
|
id: null,
|
|
623
622
|
name: null,
|
|
@@ -639,8 +638,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
639
638
|
class: normalizeClass(["label", { "mb-1": !__props.horizontalLabel, "sr-only": __props.hideLabel }]),
|
|
640
639
|
for: `switch-${__props.name}-${__props.id}`,
|
|
641
640
|
"data-testid": `switch-label-${__props.name}-${__props.id}`
|
|
642
|
-
}, toDisplayString(__props.label), 11, _hoisted_1$
|
|
643
|
-
createElementVNode("div", _hoisted_2$
|
|
641
|
+
}, toDisplayString(__props.label), 11, _hoisted_1$a),
|
|
642
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
644
643
|
createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
645
644
|
id: `switch-${__props.name}-${__props.id}`,
|
|
646
645
|
type: "checkbox",
|
|
@@ -653,15 +652,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
653
652
|
value: __props.value,
|
|
654
653
|
name: __props.name,
|
|
655
654
|
onChange: _cache[0] || (_cache[0] = ($event) => emit("change", __props.value))
|
|
656
|
-
}), null, 16, _hoisted_3$
|
|
655
|
+
}), null, 16, _hoisted_3$a),
|
|
657
656
|
_hoisted_4$2
|
|
658
657
|
])
|
|
659
658
|
], 2);
|
|
660
659
|
};
|
|
661
660
|
}
|
|
662
661
|
});
|
|
663
|
-
_sfc_main$
|
|
664
|
-
app.component("SolSwitch", _sfc_main$
|
|
662
|
+
_sfc_main$4.install = (app) => {
|
|
663
|
+
app.component("SolSwitch", _sfc_main$4);
|
|
665
664
|
};
|
|
666
665
|
function tryOnScopeDispose(fn) {
|
|
667
666
|
if (getCurrentScope()) {
|
|
@@ -754,27 +753,35 @@ const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !
|
|
|
754
753
|
const globalKey = "__vueuse_ssr_handlers__";
|
|
755
754
|
_global[globalKey] = _global[globalKey] || {};
|
|
756
755
|
_global[globalKey];
|
|
757
|
-
|
|
756
|
+
var SwipeDirection;
|
|
757
|
+
(function(SwipeDirection2) {
|
|
758
|
+
SwipeDirection2["UP"] = "UP";
|
|
759
|
+
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
760
|
+
SwipeDirection2["DOWN"] = "DOWN";
|
|
761
|
+
SwipeDirection2["LEFT"] = "LEFT";
|
|
762
|
+
SwipeDirection2["NONE"] = "NONE";
|
|
763
|
+
})(SwipeDirection || (SwipeDirection = {}));
|
|
764
|
+
const _hoisted_1$9 = {
|
|
758
765
|
preserveAspectRatio: "xMidYMid meet",
|
|
759
766
|
viewBox: "0 0 24 24",
|
|
760
767
|
width: "1.2em",
|
|
761
768
|
height: "1.2em"
|
|
762
769
|
};
|
|
763
|
-
const _hoisted_2$
|
|
770
|
+
const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("path", {
|
|
764
771
|
fill: "currentColor",
|
|
765
772
|
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"
|
|
766
773
|
}, null, -1);
|
|
767
|
-
const _hoisted_3$
|
|
768
|
-
_hoisted_2$
|
|
774
|
+
const _hoisted_3$9 = [
|
|
775
|
+
_hoisted_2$9
|
|
769
776
|
];
|
|
770
777
|
function render$5(_ctx, _cache) {
|
|
771
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
778
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$9, _hoisted_3$9);
|
|
772
779
|
}
|
|
773
780
|
var IconSearch = { name: "mi-search", render: render$5 };
|
|
774
781
|
var Dropdown_vue_vue_type_style_index_0_lang = "";
|
|
775
|
-
const _hoisted_1$
|
|
776
|
-
const _hoisted_2$
|
|
777
|
-
const _hoisted_3$
|
|
782
|
+
const _hoisted_1$8 = ["data-testid"];
|
|
783
|
+
const _hoisted_2$8 = ["id", "for"];
|
|
784
|
+
const _hoisted_3$8 = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"];
|
|
778
785
|
const _hoisted_4$1 = { class: "dropdown-container" };
|
|
779
786
|
const _hoisted_5$1 = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"];
|
|
780
787
|
const _hoisted_6$1 = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"];
|
|
@@ -783,11 +790,13 @@ const _hoisted_7 = {
|
|
|
783
790
|
class: "no-data"
|
|
784
791
|
};
|
|
785
792
|
const _hoisted_8 = /* @__PURE__ */ createTextVNode(" Sem dados ");
|
|
786
|
-
const _sfc_main$
|
|
787
|
-
|
|
793
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
794
|
+
__name: "Dropdown",
|
|
788
795
|
props: {
|
|
789
796
|
id: null,
|
|
790
797
|
label: null,
|
|
798
|
+
ariaLabel: null,
|
|
799
|
+
smallerWidth: { type: Boolean },
|
|
791
800
|
disabled: { type: Boolean },
|
|
792
801
|
loading: { type: Boolean, default: false },
|
|
793
802
|
searchable: { type: Boolean, default: false },
|
|
@@ -898,21 +907,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
898
907
|
function getOption(option, key) {
|
|
899
908
|
return typeof option === "string" ? option : option[key != null ? key : "value"];
|
|
900
909
|
}
|
|
910
|
+
function addRefElementToElements(key, target) {
|
|
911
|
+
elements[key] = target != null ? target : void 0;
|
|
912
|
+
}
|
|
901
913
|
return (_ctx, _cache) => {
|
|
902
914
|
return openBlock(), createElementBlock("div", {
|
|
903
915
|
ref_key: "el",
|
|
904
916
|
ref: el,
|
|
905
|
-
class: "sol-dropdown-core",
|
|
917
|
+
class: normalizeClass(["sol-dropdown-core", { "-smaller": __props.smallerWidth }]),
|
|
906
918
|
"data-testid": `dropdown-${__props.id}`,
|
|
907
919
|
onKeydownPassive: navigation
|
|
908
920
|
}, [
|
|
909
921
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
910
|
-
|
|
911
|
-
key: 0,
|
|
922
|
+
createElementVNode("label", {
|
|
912
923
|
id: `label-dropdown-${__props.id}`,
|
|
913
|
-
class: normalizeClass(["label", { "-disabled": __props.disabled }]),
|
|
924
|
+
class: normalizeClass(["label", { "-disabled": __props.disabled, "sr-only": __props.ariaLabel }]),
|
|
914
925
|
for: `toggle-dropdown-${__props.id}`
|
|
915
|
-
}, toDisplayString(__props.label), 11, _hoisted_2$
|
|
926
|
+
}, toDisplayString(__props.label || __props.ariaLabel), 11, _hoisted_2$8)
|
|
916
927
|
]),
|
|
917
928
|
createElementVNode("button", {
|
|
918
929
|
id: `toggle-dropdown-${__props.id}`,
|
|
@@ -922,18 +933,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
922
933
|
"aria-haspopup": "listbox",
|
|
923
934
|
"aria-expanded": isDropdownOpen.value,
|
|
924
935
|
"aria-labelledby": `label-dropdown-${__props.id}`,
|
|
936
|
+
"aria-label": __props.ariaLabel,
|
|
925
937
|
"aria-controls": `dropdown-list-${__props.id}`,
|
|
926
938
|
onClick: withModifiers(toggleDropdown, ["stop"])
|
|
927
939
|
}, [
|
|
928
940
|
renderSlot(_ctx.$slots, "toggle-dropdown", {
|
|
929
941
|
toggle: { open, close: close2, toggleDropdown },
|
|
930
942
|
isOpen: isDropdownOpen.value,
|
|
943
|
+
select,
|
|
931
944
|
selectedSanitized: unref(selectedSanitize),
|
|
932
945
|
selected: __props.selected
|
|
933
946
|
}, () => [
|
|
934
947
|
createTextVNode(toDisplayString(unref(selectedSanitize) || "Selecione"), 1)
|
|
935
948
|
])
|
|
936
|
-
], 8, _hoisted_3$
|
|
949
|
+
], 8, _hoisted_3$8),
|
|
937
950
|
createVNode(Transition$1, {
|
|
938
951
|
mode: "out-in",
|
|
939
952
|
name: "dropdown"
|
|
@@ -945,9 +958,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
945
958
|
class: normalizeClass(["search-container", { "-loading": __props.loading }])
|
|
946
959
|
}, [
|
|
947
960
|
renderSlot(_ctx.$slots, "search", { filter: filter.value }, () => [
|
|
948
|
-
createVNode(_sfc_main$
|
|
961
|
+
createVNode(_sfc_main$c, {
|
|
949
962
|
id: `search-dropdown-${__props.id}`,
|
|
950
|
-
ref: (target) =>
|
|
963
|
+
ref: (target) => addRefElementToElements("search", target == null ? void 0 : target.input),
|
|
951
964
|
modelValue: filter.value,
|
|
952
965
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value = $event),
|
|
953
966
|
"data-testid": `search-dropdown-${__props.id}`,
|
|
@@ -976,7 +989,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
976
989
|
], 2)) : createCommentVNode("", true),
|
|
977
990
|
createElementVNode("ul", {
|
|
978
991
|
id: `dropdown-list-${__props.id}`,
|
|
979
|
-
ref: (target) =>
|
|
992
|
+
ref: (target) => addRefElementToElements("list", target),
|
|
980
993
|
"data-testid": `dropdown-list-${__props.id}`,
|
|
981
994
|
role: "listbox",
|
|
982
995
|
tabindex: "-1",
|
|
@@ -1022,43 +1035,128 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1022
1035
|
]),
|
|
1023
1036
|
_: 3
|
|
1024
1037
|
})
|
|
1025
|
-
],
|
|
1038
|
+
], 42, _hoisted_1$8);
|
|
1026
1039
|
};
|
|
1027
1040
|
}
|
|
1028
1041
|
});
|
|
1029
|
-
_sfc_main$
|
|
1030
|
-
app.component("SolDropdown", _sfc_main$
|
|
1042
|
+
_sfc_main$3.install = (app) => {
|
|
1043
|
+
app.component("SolDropdown", _sfc_main$3);
|
|
1031
1044
|
};
|
|
1032
|
-
const _hoisted_1$
|
|
1045
|
+
const _hoisted_1$7 = {
|
|
1033
1046
|
preserveAspectRatio: "xMidYMid meet",
|
|
1034
1047
|
viewBox: "0 0 24 24",
|
|
1035
1048
|
width: "1.2em",
|
|
1036
1049
|
height: "1.2em"
|
|
1037
1050
|
};
|
|
1038
|
-
const _hoisted_2$
|
|
1051
|
+
const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("path", {
|
|
1039
1052
|
fill: "currentColor",
|
|
1040
|
-
d: "
|
|
1053
|
+
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"
|
|
1041
1054
|
}, null, -1);
|
|
1042
|
-
const _hoisted_3$
|
|
1043
|
-
_hoisted_2$
|
|
1055
|
+
const _hoisted_3$7 = [
|
|
1056
|
+
_hoisted_2$7
|
|
1044
1057
|
];
|
|
1045
1058
|
function render$4(_ctx, _cache) {
|
|
1046
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1059
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$7, _hoisted_3$7);
|
|
1047
1060
|
}
|
|
1048
|
-
var
|
|
1061
|
+
var Close = { name: "mi-close", render: render$4 };
|
|
1062
|
+
var Chip_vue_vue_type_style_index_0_lang = "";
|
|
1063
|
+
const _hoisted_1$6 = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"];
|
|
1064
|
+
const _hoisted_2$6 = ["id"];
|
|
1065
|
+
const _hoisted_3$6 = { class: "label" };
|
|
1066
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1067
|
+
__name: "Chip",
|
|
1068
|
+
props: {
|
|
1069
|
+
id: null,
|
|
1070
|
+
label: null,
|
|
1071
|
+
selected: { type: Boolean },
|
|
1072
|
+
disabled: { type: Boolean },
|
|
1073
|
+
removable: { type: Boolean, default: true }
|
|
1074
|
+
},
|
|
1075
|
+
emits: ["close", "update:selected"],
|
|
1076
|
+
setup(__props, { emit }) {
|
|
1077
|
+
const props = __props;
|
|
1078
|
+
function keyboardTrigger({ code }) {
|
|
1079
|
+
if (props.disabled)
|
|
1080
|
+
return;
|
|
1081
|
+
switch (code) {
|
|
1082
|
+
case "Enter":
|
|
1083
|
+
case "NumpadEnter":
|
|
1084
|
+
case "Space":
|
|
1085
|
+
return emit("update:selected");
|
|
1086
|
+
case "Delete":
|
|
1087
|
+
case "Backspace":
|
|
1088
|
+
return props.removable && emit("close");
|
|
1089
|
+
default:
|
|
1090
|
+
return false;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
return (_ctx, _cache) => {
|
|
1094
|
+
return openBlock(), createElementBlock("div", {
|
|
1095
|
+
id: `chip-${__props.id}`,
|
|
1096
|
+
"data-testid": `chip-${__props.id}`,
|
|
1097
|
+
class: normalizeClass(["sol-chip-core", { "-selected": __props.selected, "-disabled": __props.disabled }]),
|
|
1098
|
+
tabindex: "0",
|
|
1099
|
+
title: __props.label,
|
|
1100
|
+
"aria-describedby": `chip-description-${__props.id}`,
|
|
1101
|
+
"aria-disabled": __props.disabled,
|
|
1102
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("update:selected")),
|
|
1103
|
+
onKeydown: withModifiers(keyboardTrigger, ["self"])
|
|
1104
|
+
}, [
|
|
1105
|
+
createElementVNode("span", {
|
|
1106
|
+
id: `chip-description-${__props.id}`,
|
|
1107
|
+
"z-index": "-1",
|
|
1108
|
+
class: "sr-only"
|
|
1109
|
+
}, "Press Delete or Backspace to remove this Chip", 8, _hoisted_2$6),
|
|
1110
|
+
createElementVNode("span", _hoisted_3$6, [
|
|
1111
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1112
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
1113
|
+
])
|
|
1114
|
+
]),
|
|
1115
|
+
__props.removable ? (openBlock(), createElementBlock("i", {
|
|
1116
|
+
key: 0,
|
|
1117
|
+
role: "presentation",
|
|
1118
|
+
"aira-hidden": "true",
|
|
1119
|
+
class: "close",
|
|
1120
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emit("close"), ["stop"]))
|
|
1121
|
+
}, [
|
|
1122
|
+
createVNode(unref(Close), { class: "icon" })
|
|
1123
|
+
])) : createCommentVNode("", true)
|
|
1124
|
+
], 42, _hoisted_1$6);
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
const _hoisted_1$5 = {
|
|
1129
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
1130
|
+
viewBox: "0 0 24 24",
|
|
1131
|
+
width: "1.2em",
|
|
1132
|
+
height: "1.2em"
|
|
1133
|
+
};
|
|
1134
|
+
const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("path", {
|
|
1135
|
+
fill: "currentColor",
|
|
1136
|
+
d: "m17 10l-5 6l-5-6h10z"
|
|
1137
|
+
}, null, -1);
|
|
1138
|
+
const _hoisted_3$5 = [
|
|
1139
|
+
_hoisted_2$5
|
|
1140
|
+
];
|
|
1141
|
+
function render$3(_ctx, _cache) {
|
|
1142
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$5, _hoisted_3$5);
|
|
1143
|
+
}
|
|
1144
|
+
var IconArrow = { name: "mi-caret-down", render: render$3 };
|
|
1049
1145
|
var Select_vue_vue_type_style_index_0_lang = "";
|
|
1050
|
-
const _hoisted_1$
|
|
1051
|
-
const _hoisted_2$
|
|
1146
|
+
const _hoisted_1$4 = { class: "select" };
|
|
1147
|
+
const _hoisted_2$4 = {
|
|
1052
1148
|
key: 2,
|
|
1053
1149
|
class: "placeholder-inline"
|
|
1054
1150
|
};
|
|
1055
|
-
const _hoisted_3$
|
|
1151
|
+
const _hoisted_3$4 = { class: "error" };
|
|
1056
1152
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1057
|
-
|
|
1153
|
+
__name: "Select",
|
|
1058
1154
|
props: {
|
|
1059
1155
|
id: null,
|
|
1060
1156
|
options: null,
|
|
1061
|
-
label:
|
|
1157
|
+
label: null,
|
|
1158
|
+
ariaLabel: null,
|
|
1159
|
+
smallerWidth: { type: Boolean },
|
|
1062
1160
|
disabled: { type: Boolean },
|
|
1063
1161
|
multiple: { type: Boolean },
|
|
1064
1162
|
modelValue: null,
|
|
@@ -1071,10 +1169,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1071
1169
|
emits: ["update:modelValue"],
|
|
1072
1170
|
setup(__props, { emit }) {
|
|
1073
1171
|
return (_ctx, _cache) => {
|
|
1074
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1172
|
+
return openBlock(), createBlock(_sfc_main$3, {
|
|
1075
1173
|
id: `select-${__props.id}`,
|
|
1076
1174
|
selected: __props.modelValue,
|
|
1077
1175
|
label: __props.label,
|
|
1176
|
+
"aria-label": __props.ariaLabel,
|
|
1177
|
+
"smaller-width": __props.smallerWidth,
|
|
1078
1178
|
disabled: __props.disabled,
|
|
1079
1179
|
"fetch-on-search": __props.fetchOnApi,
|
|
1080
1180
|
"is-multiple-select": __props.multiple,
|
|
@@ -1082,38 +1182,42 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1082
1182
|
"search-placeholder": __props.searchPlaceholder,
|
|
1083
1183
|
searchable: __props.searchable,
|
|
1084
1184
|
options: __props.options,
|
|
1085
|
-
"onUpdate:selected": _cache[
|
|
1185
|
+
"onUpdate:selected": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
1086
1186
|
}, {
|
|
1087
|
-
"toggle-dropdown": withCtx(({ selected, isOpen }) => [
|
|
1187
|
+
"toggle-dropdown": withCtx(({ selected, isOpen, select }) => [
|
|
1088
1188
|
createElementVNode("div", {
|
|
1089
1189
|
class: normalizeClass(["select-container", { "-disabled": __props.disabled, "-error": __props.error }])
|
|
1090
1190
|
}, [
|
|
1091
|
-
createElementVNode("div", _hoisted_1$
|
|
1092
|
-
__props.multiple && selected.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(selected, (item, index) => {
|
|
1093
|
-
return openBlock(),
|
|
1191
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
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$2, {
|
|
1194
|
+
id: item,
|
|
1094
1195
|
key: index,
|
|
1095
|
-
|
|
1096
|
-
onClick:
|
|
1097
|
-
|
|
1098
|
-
},
|
|
1099
|
-
}), 128)) : selected.length ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
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 }, [
|
|
1100
1201
|
createTextVNode(toDisplayString(selected), 1)
|
|
1101
|
-
], 64)) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1202
|
+
], 64)) : (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(__props.placeholder), 1))
|
|
1102
1203
|
]),
|
|
1103
1204
|
createVNode(unref(IconArrow), {
|
|
1104
1205
|
class: normalizeClass(["icon", { "-open": isOpen }])
|
|
1105
1206
|
}, null, 8, ["class"])
|
|
1106
1207
|
], 2),
|
|
1107
|
-
createElementVNode("span", _hoisted_3$
|
|
1208
|
+
createElementVNode("span", _hoisted_3$4, toDisplayString(__props.error), 1)
|
|
1108
1209
|
]),
|
|
1109
1210
|
_: 1
|
|
1110
|
-
}, 8, ["id", "selected", "label", "disabled", "fetch-on-search", "is-multiple-select", "search-placeholder", "searchable", "options"]);
|
|
1211
|
+
}, 8, ["id", "selected", "label", "aria-label", "smaller-width", "disabled", "fetch-on-search", "is-multiple-select", "search-placeholder", "searchable", "options"]);
|
|
1111
1212
|
};
|
|
1112
1213
|
}
|
|
1113
1214
|
});
|
|
1114
1215
|
_sfc_main$1.install = (app) => {
|
|
1115
1216
|
app.component("SolSelect", _sfc_main$1);
|
|
1116
1217
|
};
|
|
1218
|
+
_sfc_main$2.install = (app) => {
|
|
1219
|
+
app.component("SolChip", _sfc_main$2);
|
|
1220
|
+
};
|
|
1117
1221
|
var windiBase = "";
|
|
1118
1222
|
var windiComponents = "";
|
|
1119
1223
|
var windiUtilities = "";
|
|
@@ -1222,23 +1326,6 @@ var Transition = /* @__PURE__ */ ((Transition2) => {
|
|
|
1222
1326
|
Transition2["bottom-right"] = "bounce-right";
|
|
1223
1327
|
return Transition2;
|
|
1224
1328
|
})(Transition || {});
|
|
1225
|
-
const _hoisted_1$4 = {
|
|
1226
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
1227
|
-
viewBox: "0 0 24 24",
|
|
1228
|
-
width: "1.2em",
|
|
1229
|
-
height: "1.2em"
|
|
1230
|
-
};
|
|
1231
|
-
const _hoisted_2$4 = /* @__PURE__ */ createElementVNode("path", {
|
|
1232
|
-
fill: "currentColor",
|
|
1233
|
-
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"
|
|
1234
|
-
}, null, -1);
|
|
1235
|
-
const _hoisted_3$4 = [
|
|
1236
|
-
_hoisted_2$4
|
|
1237
|
-
];
|
|
1238
|
-
function render$3(_ctx, _cache) {
|
|
1239
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$4, _hoisted_3$4);
|
|
1240
|
-
}
|
|
1241
|
-
var Success = { name: "mi-circle-check", render: render$3 };
|
|
1242
1329
|
const _hoisted_1$3 = {
|
|
1243
1330
|
preserveAspectRatio: "xMidYMid meet",
|
|
1244
1331
|
viewBox: "0 0 24 24",
|
|
@@ -1247,7 +1334,7 @@ const _hoisted_1$3 = {
|
|
|
1247
1334
|
};
|
|
1248
1335
|
const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("path", {
|
|
1249
1336
|
fill: "currentColor",
|
|
1250
|
-
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
|
|
1337
|
+
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"
|
|
1251
1338
|
}, null, -1);
|
|
1252
1339
|
const _hoisted_3$3 = [
|
|
1253
1340
|
_hoisted_2$3
|
|
@@ -1255,41 +1342,41 @@ const _hoisted_3$3 = [
|
|
|
1255
1342
|
function render$2(_ctx, _cache) {
|
|
1256
1343
|
return openBlock(), createElementBlock("svg", _hoisted_1$3, _hoisted_3$3);
|
|
1257
1344
|
}
|
|
1258
|
-
var
|
|
1345
|
+
var Success = { name: "mi-circle-check", render: render$2 };
|
|
1259
1346
|
const _hoisted_1$2 = {
|
|
1260
1347
|
preserveAspectRatio: "xMidYMid meet",
|
|
1261
1348
|
viewBox: "0 0 24 24",
|
|
1262
1349
|
width: "1.2em",
|
|
1263
1350
|
height: "1.2em"
|
|
1264
1351
|
};
|
|
1265
|
-
const _hoisted_2$2 = /* @__PURE__ */ createElementVNode("
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1352
|
+
const _hoisted_2$2 = /* @__PURE__ */ createElementVNode("path", {
|
|
1353
|
+
fill: "currentColor",
|
|
1354
|
+
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"
|
|
1355
|
+
}, null, -1);
|
|
1269
1356
|
const _hoisted_3$2 = [
|
|
1270
1357
|
_hoisted_2$2
|
|
1271
1358
|
];
|
|
1272
1359
|
function render$1(_ctx, _cache) {
|
|
1273
1360
|
return openBlock(), createElementBlock("svg", _hoisted_1$2, _hoisted_3$2);
|
|
1274
1361
|
}
|
|
1275
|
-
var
|
|
1362
|
+
var Error$1 = { name: "mi-circle-error", render: render$1 };
|
|
1276
1363
|
const _hoisted_1$1 = {
|
|
1277
1364
|
preserveAspectRatio: "xMidYMid meet",
|
|
1278
1365
|
viewBox: "0 0 24 24",
|
|
1279
1366
|
width: "1.2em",
|
|
1280
1367
|
height: "1.2em"
|
|
1281
1368
|
};
|
|
1282
|
-
const _hoisted_2$1 = /* @__PURE__ */ createElementVNode("
|
|
1283
|
-
|
|
1284
|
-
d: "
|
|
1285
|
-
|
|
1369
|
+
const _hoisted_2$1 = /* @__PURE__ */ createElementVNode("g", { fill: "currentColor" }, [
|
|
1370
|
+
/* @__PURE__ */ createElementVNode("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" }),
|
|
1371
|
+
/* @__PURE__ */ createElementVNode("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" })
|
|
1372
|
+
], -1);
|
|
1286
1373
|
const _hoisted_3$1 = [
|
|
1287
1374
|
_hoisted_2$1
|
|
1288
1375
|
];
|
|
1289
1376
|
function render(_ctx, _cache) {
|
|
1290
1377
|
return openBlock(), createElementBlock("svg", _hoisted_1$1, _hoisted_3$1);
|
|
1291
1378
|
}
|
|
1292
|
-
var
|
|
1379
|
+
var Info = { name: "mi-circle-warning", render };
|
|
1293
1380
|
var Toast_vue_vue_type_style_index_0_lang = "";
|
|
1294
1381
|
const _hoisted_1 = ["id", "data-testid"];
|
|
1295
1382
|
const _hoisted_2 = { class: "content-wrapper" };
|
|
@@ -1305,7 +1392,7 @@ const _hoisted_5 = {
|
|
|
1305
1392
|
};
|
|
1306
1393
|
const _hoisted_6 = ["data-testid"];
|
|
1307
1394
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1308
|
-
|
|
1395
|
+
__name: "Toast",
|
|
1309
1396
|
props: {
|
|
1310
1397
|
id: null,
|
|
1311
1398
|
type: { default: DEFAULT_OPTIONS.type },
|
|
@@ -1530,25 +1617,23 @@ function close(id, position) {
|
|
|
1530
1617
|
}
|
|
1531
1618
|
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");
|
|
1532
1619
|
const components = {
|
|
1533
|
-
SolButton: _sfc_main$
|
|
1534
|
-
SolInput: _sfc_main$
|
|
1535
|
-
SolTextarea: _sfc_main$
|
|
1536
|
-
SolTextfield: _sfc_main$
|
|
1537
|
-
SolTextfieldPassword: _sfc_main$
|
|
1538
|
-
SolRadio: _sfc_main$
|
|
1539
|
-
SolRadioGroup: _sfc_main$
|
|
1540
|
-
SolCheckbox: _sfc_main$
|
|
1541
|
-
SolCheckboxGroup: _sfc_main$
|
|
1542
|
-
SolSwitch: _sfc_main$
|
|
1543
|
-
SolDropdown: _sfc_main$
|
|
1544
|
-
SolSelect: _sfc_main$1
|
|
1620
|
+
SolButton: _sfc_main$d,
|
|
1621
|
+
SolInput: _sfc_main$c,
|
|
1622
|
+
SolTextarea: _sfc_main$9,
|
|
1623
|
+
SolTextfield: _sfc_main$b,
|
|
1624
|
+
SolTextfieldPassword: _sfc_main$a,
|
|
1625
|
+
SolRadio: _sfc_main$8,
|
|
1626
|
+
SolRadioGroup: _sfc_main$7,
|
|
1627
|
+
SolCheckbox: _sfc_main$6,
|
|
1628
|
+
SolCheckboxGroup: _sfc_main$5,
|
|
1629
|
+
SolSwitch: _sfc_main$4,
|
|
1630
|
+
SolDropdown: _sfc_main$3,
|
|
1631
|
+
SolSelect: _sfc_main$1,
|
|
1632
|
+
SolChip: _sfc_main$2
|
|
1545
1633
|
};
|
|
1546
1634
|
function install(App) {
|
|
1547
1635
|
for (const component in components) {
|
|
1548
1636
|
App.component(component, components[component]);
|
|
1549
1637
|
}
|
|
1550
1638
|
}
|
|
1551
|
-
|
|
1552
|
-
for (const component in components)
|
|
1553
|
-
componentsNames.push(component);
|
|
1554
|
-
export { _sfc_main$c as SolButton, _sfc_main$5 as SolCheckbox, _sfc_main$4 as SolCheckboxGroup, _sfc_main$2 as SolDropdown, _sfc_main$b as SolInput, _sfc_main$7 as SolRadio, _sfc_main$6 as SolRadioGroup, _sfc_main$1 as SolSelect, _sfc_main$3 as SolSwitch, _sfc_main$8 as SolTextarea, _sfc_main$a as SolTextfield, _sfc_main$9 as SolTextfieldPassword, componentsNames, install, useToast };
|
|
1639
|
+
export { _sfc_main$d as SolButton, _sfc_main$6 as SolCheckbox, _sfc_main$5 as SolCheckboxGroup, _sfc_main$2 as SolChip, _sfc_main$3 as SolDropdown, _sfc_main$c as SolInput, _sfc_main$8 as SolRadio, _sfc_main$7 as SolRadioGroup, _sfc_main$1 as SolSelect, _sfc_main$4 as SolSwitch, _sfc_main$9 as SolTextarea, _sfc_main$b as SolTextfield, _sfc_main$a as SolTextfieldPassword, components, install, useToast };
|