@caipira/tamandua 0.0.92 → 0.0.94
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/Form.js +2 -2
- package/dist/{Form.vue_vue_type_script_setup_true_lang-s3wmU1NZ.js → Form.vue_vue_type_script_setup_true_lang-Bd8NlDpG.js} +33 -27
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CtioNKpW.js +74 -0
- package/dist/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js → InputCheckbox.vue_vue_type_style_index_0_lang-XU9rYa47.js} +14 -14
- package/dist/InputMultiplier.js +2 -2
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-Cho_7MEo.js +70 -0
- package/dist/InputRadio.js +2 -2
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DG-7xEeZ.js +35 -0
- package/dist/components.js +5 -5
- package/dist/{plugin-DXPEO1fb.js → plugin-B578b4C_.js} +1 -1
- package/dist/{plugin-DIj5ypE6.js → plugin-BemLz7kA.js} +1 -1
- package/dist/{plugin-NrO_mAYp.js → plugin-CDu6of44.js} +1 -1
- package/dist/{plugin-CEsqY6D6.js → plugin-Ccz1v8Wx.js} +1 -1
- package/dist/{plugin-Br-QOjhk.js → plugin-CoKL2vk5.js} +1 -1
- package/dist/{plugins-DOTHSfJB.js → plugins-BCg_1Ej9.js} +15 -14
- package/dist/plugins.js +92 -91
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Form/types.d.ts +2 -0
- package/dist/types/components/FormItem/types.d.ts +0 -3
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +4 -0
- package/dist/types/components/InputMultiplier/input-multiplier.story.d.ts +7 -0
- package/dist/types/components/InputMultiplier/types.d.ts +2 -0
- package/package.json +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js +0 -71
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BguqKGGe.js +0 -65
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js +0 -35
package/dist/Form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as m } from "./Form.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as a } from "./plugin-
|
|
1
|
+
import { _ as m } from "./Form.vue_vue_type_script_setup_true_lang-Bd8NlDpG.js";
|
|
2
|
+
import { p as a } from "./plugin-CDu6of44.js";
|
|
3
3
|
export {
|
|
4
4
|
m as Form,
|
|
5
5
|
a as FormPlugin
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { reactive as
|
|
1
|
+
import { reactive as C, defineComponent as $, ref as _, computed as N, watch as z, provide as A, resolveComponent as O, openBlock as P, createElementBlock as J, renderSlot as E, unref as B, createElementVNode as T, normalizeClass as W, withDirectives as j, createVNode as R, mergeProps as q, vShow as x } from "vue";
|
|
2
|
+
import { F as G } from "./ui-D5oXHNg_.js";
|
|
2
3
|
import { F as n, a as f } from "./form-BkXpIJ0e.js";
|
|
3
|
-
import { d as
|
|
4
|
+
import { d as F, c as h, p as S, a as V } from "./transformers-CrxkoXtN.js";
|
|
4
5
|
const i = {
|
|
5
6
|
default: (e, t, r) => (t[r] = e, t),
|
|
6
7
|
price: (e, t, r, s = ["Currency", "Value"]) => {
|
|
7
8
|
const [c, a] = S(e);
|
|
8
9
|
return t[`${r}${s[0]}`] = c, t[`${r}${s[1]}`] = a, t;
|
|
9
10
|
},
|
|
10
|
-
password: async (e, t, r) => (t[r] =
|
|
11
|
-
},
|
|
11
|
+
password: async (e, t, r) => (t[r] = V(e), t)
|
|
12
|
+
}, H = async (e, t, r, s) => {
|
|
12
13
|
switch (e) {
|
|
13
14
|
case n.Address:
|
|
14
15
|
return i.default(
|
|
@@ -30,7 +31,7 @@ const i = {
|
|
|
30
31
|
);
|
|
31
32
|
case n.Date:
|
|
32
33
|
return i.default(
|
|
33
|
-
|
|
34
|
+
F(r),
|
|
34
35
|
t,
|
|
35
36
|
s
|
|
36
37
|
);
|
|
@@ -81,7 +82,7 @@ const i = {
|
|
|
81
82
|
documents: (e, t, r) => (r.endsWith("[]") || (r = `${r}[]`), Array.from(e).forEach((s) => t.append(r, s)), t),
|
|
82
83
|
document: (e, t, r) => (t.append(r, e), t),
|
|
83
84
|
stringArray: (e, t, r) => (r.endsWith("[]") || (r = `${r}[]`), e.forEach((s) => t.append(r, p(s))), t)
|
|
84
|
-
},
|
|
85
|
+
}, I = async (e, t, r, s) => {
|
|
85
86
|
switch (e) {
|
|
86
87
|
case n.Country:
|
|
87
88
|
return u.default(h(r), t, s);
|
|
@@ -90,24 +91,24 @@ const i = {
|
|
|
90
91
|
case n.Documents:
|
|
91
92
|
return u.documents(r, t, s);
|
|
92
93
|
case n.Date:
|
|
93
|
-
return u.default(
|
|
94
|
+
return u.default(F(r), t, s);
|
|
94
95
|
case n.Address:
|
|
95
96
|
return u.address(r, t, s);
|
|
96
97
|
case n.Price:
|
|
97
98
|
return u.price(r, t, s);
|
|
98
99
|
case n.Password:
|
|
99
|
-
return u.default(
|
|
100
|
+
return u.default(V(r), t, s);
|
|
100
101
|
case n.StringArray:
|
|
101
102
|
return u.stringArray(r, t, s);
|
|
102
103
|
default:
|
|
103
104
|
return u.default(r, t, s);
|
|
104
105
|
}
|
|
105
|
-
},
|
|
106
|
+
}, K = async (e, t, r) => {
|
|
106
107
|
switch (r) {
|
|
107
108
|
case f.JSON:
|
|
108
109
|
let s = {};
|
|
109
110
|
for (const a in e)
|
|
110
|
-
s = await
|
|
111
|
+
s = await H(
|
|
111
112
|
t[a],
|
|
112
113
|
s,
|
|
113
114
|
e[a],
|
|
@@ -118,7 +119,7 @@ const i = {
|
|
|
118
119
|
default:
|
|
119
120
|
let c = new FormData();
|
|
120
121
|
for (const a in e)
|
|
121
|
-
c = await
|
|
122
|
+
c = await I(
|
|
122
123
|
t[a],
|
|
123
124
|
c,
|
|
124
125
|
e[a],
|
|
@@ -127,8 +128,8 @@ const i = {
|
|
|
127
128
|
return c;
|
|
128
129
|
}
|
|
129
130
|
};
|
|
130
|
-
function
|
|
131
|
-
const t =
|
|
131
|
+
function L(e) {
|
|
132
|
+
const t = C(
|
|
132
133
|
{}
|
|
133
134
|
);
|
|
134
135
|
return { form: t, setValue: (o, d) => {
|
|
@@ -145,7 +146,7 @@ function K(e) {
|
|
|
145
146
|
};
|
|
146
147
|
return e.id && e.id.value && (o.id = e.id.value), {
|
|
147
148
|
isValid: !0,
|
|
148
|
-
form: await
|
|
149
|
+
form: await K(
|
|
149
150
|
o,
|
|
150
151
|
e.schema,
|
|
151
152
|
e.format ?? f.JSON
|
|
@@ -153,10 +154,11 @@ function K(e) {
|
|
|
153
154
|
};
|
|
154
155
|
} };
|
|
155
156
|
}
|
|
156
|
-
const
|
|
157
|
+
const Z = /* @__PURE__ */ $({
|
|
157
158
|
name: "TForm",
|
|
158
159
|
__name: "Form",
|
|
159
160
|
props: {
|
|
161
|
+
size: { default: G.Default },
|
|
160
162
|
schema: { default: () => ({}) },
|
|
161
163
|
layout: { default: "horizontal" },
|
|
162
164
|
formStyle: { default: () => ({}) },
|
|
@@ -168,35 +170,39 @@ const X = /* @__PURE__ */ C({
|
|
|
168
170
|
},
|
|
169
171
|
emits: ["submit", "change"],
|
|
170
172
|
setup(e, { expose: t, emit: r }) {
|
|
171
|
-
const s = e, c = r, a = _(), { form: m, getValue: o, setValue: d, setValues: b, reset: y, submit:
|
|
173
|
+
const s = e, c = r, a = _(), { form: m, getValue: o, setValue: d, setValues: b, reset: y, submit: D } = L({
|
|
172
174
|
id: N(() => s.identifier),
|
|
173
175
|
schema: s.schema,
|
|
174
176
|
format: s.submissionFormat
|
|
175
177
|
}), w = async () => {
|
|
176
|
-
const l = await
|
|
178
|
+
const l = await D();
|
|
177
179
|
return c("submit", l), l;
|
|
178
180
|
};
|
|
179
|
-
return
|
|
181
|
+
return z(m, (l) => {
|
|
180
182
|
c("change", l);
|
|
181
|
-
}),
|
|
183
|
+
}), A("formStyle", {
|
|
184
|
+
...s.formStyle,
|
|
185
|
+
layout: s.layout,
|
|
186
|
+
size: s.size
|
|
187
|
+
}), t({
|
|
182
188
|
submit: w,
|
|
183
189
|
reset: y,
|
|
184
190
|
setValues: b,
|
|
185
191
|
form: m,
|
|
186
192
|
setValue: d,
|
|
187
193
|
getValue: o
|
|
188
|
-
}), (l,
|
|
189
|
-
const
|
|
190
|
-
return
|
|
194
|
+
}), (l, M) => {
|
|
195
|
+
const g = O("t-button");
|
|
196
|
+
return P(), J("form", {
|
|
191
197
|
onSubmit: w,
|
|
192
198
|
ref_key: "formReference",
|
|
193
199
|
ref: a
|
|
194
200
|
}, [
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
class:
|
|
201
|
+
E(l.$slots, "default", { form: B(m) }),
|
|
202
|
+
T("div", {
|
|
203
|
+
class: W([s.buttonWrapperClasses])
|
|
198
204
|
}, [
|
|
199
|
-
|
|
205
|
+
j(R(g, q({
|
|
200
206
|
type: "submit",
|
|
201
207
|
class: "mt-4",
|
|
202
208
|
variant: "primary",
|
|
@@ -210,5 +216,5 @@ const X = /* @__PURE__ */ C({
|
|
|
210
216
|
}
|
|
211
217
|
});
|
|
212
218
|
export {
|
|
213
|
-
|
|
219
|
+
Z as _
|
|
214
220
|
};
|
package/dist/FormItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-CtioNKpW.js";
|
|
2
|
+
import { p as t } from "./plugin-Ccz1v8Wx.js";
|
|
3
3
|
export {
|
|
4
4
|
r as FormItem,
|
|
5
5
|
t as FormItemPlugin
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as x, useSlots as b, inject as g, computed as i, resolveComponent as S, openBlock as r, createElementBlock as a, createElementVNode as u, normalizeClass as s, createBlock as k, unref as t, withCtx as C, renderSlot as d, Fragment as F, renderList as B, toDisplayString as I, createCommentVNode as w } from "vue";
|
|
2
|
+
import { F as c } from "./ui-D5oXHNg_.js";
|
|
3
|
+
const D = { class: "w-full" }, E = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "float-right"
|
|
6
|
+
}, V = /* @__PURE__ */ x({
|
|
7
|
+
name: "TFormItem",
|
|
8
|
+
__name: "FormItem",
|
|
9
|
+
props: {
|
|
10
|
+
label: {},
|
|
11
|
+
rules: {}
|
|
12
|
+
},
|
|
13
|
+
setup(v) {
|
|
14
|
+
const m = v, n = b(), p = [], e = g("formStyle", {
|
|
15
|
+
label: "",
|
|
16
|
+
input: "",
|
|
17
|
+
layout: "horizontal",
|
|
18
|
+
size: c.Default
|
|
19
|
+
}), h = i(() => {
|
|
20
|
+
if (!n || !n.default)
|
|
21
|
+
return !1;
|
|
22
|
+
const o = n?.default();
|
|
23
|
+
return o ? o[0].type.name : !1;
|
|
24
|
+
}), f = i(() => h.value === "TInputMultiplier"), l = i(() => e.layout ? e.layout : "horizontal");
|
|
25
|
+
return (o, M) => {
|
|
26
|
+
const y = S("t-graphy-label");
|
|
27
|
+
return r(), a("div", D, [
|
|
28
|
+
u("div", {
|
|
29
|
+
class: s(["flex gap-2 my-5", {
|
|
30
|
+
"flex-col": l.value === "vertical",
|
|
31
|
+
"items-center": l.value === "horizontal" && !f.value,
|
|
32
|
+
"items-start": f.value
|
|
33
|
+
}])
|
|
34
|
+
}, [
|
|
35
|
+
m.label ? (r(), k(y, {
|
|
36
|
+
key: 0,
|
|
37
|
+
text: m.label,
|
|
38
|
+
class: s({
|
|
39
|
+
[t(e).label]: !0,
|
|
40
|
+
"text-sm": t(e).size === t(c).Small,
|
|
41
|
+
"relative top-1": l.value === "horizontal" && t(e).size === t(c).Small,
|
|
42
|
+
"text-right": l.value === "horizontal"
|
|
43
|
+
})
|
|
44
|
+
}, {
|
|
45
|
+
default: C(() => [
|
|
46
|
+
d(o.$slots, "label")
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 8, ["text", "class"])) : (r(), a("div", {
|
|
50
|
+
key: 1,
|
|
51
|
+
class: s({
|
|
52
|
+
[t(e).label]: !0,
|
|
53
|
+
"text-right": l.value === "horizontal"
|
|
54
|
+
})
|
|
55
|
+
}, null, 2)),
|
|
56
|
+
u("div", {
|
|
57
|
+
class: s({ [t(e).input]: !0 })
|
|
58
|
+
}, [
|
|
59
|
+
d(o.$slots, "default")
|
|
60
|
+
], 2)
|
|
61
|
+
], 2),
|
|
62
|
+
p ? (r(), a("div", E, [
|
|
63
|
+
(r(), a(F, null, B(p, (_, z) => u("span", {
|
|
64
|
+
class: "text-sm text-red-600",
|
|
65
|
+
key: z
|
|
66
|
+
}, I(_), 1)), 64))
|
|
67
|
+
])) : w("", !0)
|
|
68
|
+
]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
V as _
|
|
74
|
+
};
|
package/dist/InputCheckbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-XU9rYa47.js";
|
|
2
|
+
import { p as t } from "./plugin-BemLz7kA.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputCheckbox,
|
|
5
5
|
t as InputCheckboxPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './InputCheckbox.css';
|
|
2
|
-
import { defineComponent as u, ref as m, watch as
|
|
2
|
+
import { defineComponent as u, ref as m, watch as b, resolveComponent as f, openBlock as i, createElementBlock as h, withDirectives as v, createElementVNode as _, mergeProps as k, vModelCheckbox as y, createBlock as x, withCtx as B, createTextVNode as C, toDisplayString as V, createCommentVNode as g } from "vue";
|
|
3
3
|
const I = { class: "h-9 inline-flex items-center" }, w = ["indeterminate", "disabled"];
|
|
4
4
|
let N = 0;
|
|
5
5
|
const D = /* @__PURE__ */ u({
|
|
@@ -14,35 +14,35 @@ const D = /* @__PURE__ */ u({
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:model-value", "input"],
|
|
16
16
|
setup(r, { emit: d }) {
|
|
17
|
-
const t = r,
|
|
18
|
-
const e = !
|
|
19
|
-
|
|
17
|
+
const t = r, a = d, l = `checkbox_${++N}`, o = m(!1), s = () => {
|
|
18
|
+
const e = !o.value;
|
|
19
|
+
a("update:model-value", e), a("input", e);
|
|
20
20
|
};
|
|
21
|
-
return
|
|
21
|
+
return b(
|
|
22
22
|
() => t.modelValue,
|
|
23
23
|
(e) => {
|
|
24
|
-
t.initializeValue && typeof e > "u" &&
|
|
24
|
+
t.initializeValue && typeof e > "u" && a("update:model-value", !1), o.value = e;
|
|
25
25
|
},
|
|
26
26
|
{ immediate: !0 }
|
|
27
27
|
), (e, n) => {
|
|
28
|
-
const
|
|
28
|
+
const c = f("t-graphy-label");
|
|
29
29
|
return i(), h("div", I, [
|
|
30
|
-
v(
|
|
31
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
30
|
+
v(_("input", k({
|
|
31
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => o.value = p)
|
|
32
32
|
}, e.$attrs, {
|
|
33
33
|
type: "checkbox",
|
|
34
|
-
class: "form-checkbox w-5 h-5 border border-
|
|
34
|
+
class: "form-checkbox w-5 h-5 border border-(--border-color) input-roundness bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
|
|
35
35
|
indeterminate: t.isIndeterminate,
|
|
36
|
-
id:
|
|
36
|
+
id: l,
|
|
37
37
|
disabled: e.disabled,
|
|
38
38
|
onInput: s
|
|
39
39
|
}), null, 16, w), [
|
|
40
|
-
[
|
|
40
|
+
[y, o.value]
|
|
41
41
|
]),
|
|
42
|
-
t.label ? (i(), x(
|
|
42
|
+
t.label ? (i(), x(c, {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "cursor-pointer pl-2 mr-3",
|
|
45
|
-
for:
|
|
45
|
+
for: l
|
|
46
46
|
}, {
|
|
47
47
|
default: B(() => [
|
|
48
48
|
C(V(t.label), 1)
|
package/dist/InputMultiplier.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as t } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as l } from "./plugin-
|
|
1
|
+
import { _ as t } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-Cho_7MEo.js";
|
|
2
|
+
import { p as l } from "./plugin-CoKL2vk5.js";
|
|
3
3
|
export {
|
|
4
4
|
t as InputMultiplier,
|
|
5
5
|
l as InputMultiplierPlugin
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent as _, ref as z, watch as u, resolveComponent as V, openBlock as n, createElementBlock as a, createVNode as i, Fragment as k, renderList as C, createBlock as b, resolveDynamicComponent as y, mergeProps as I, toHandlers as h } from "vue";
|
|
2
|
+
import { F as B } from "./ui-D5oXHNg_.js";
|
|
3
|
+
const x = /* @__PURE__ */ _({
|
|
4
|
+
name: "TInputMultiplier",
|
|
5
|
+
__name: "InputMultiplier",
|
|
6
|
+
props: {
|
|
7
|
+
size: { default: B.Default },
|
|
8
|
+
component: { default: "t-input-text" },
|
|
9
|
+
inputProps: { default: () => ({}) },
|
|
10
|
+
listeners: { default: () => ({}) },
|
|
11
|
+
modelValue: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:model-value"],
|
|
14
|
+
setup(m, { emit: p }) {
|
|
15
|
+
const l = m, c = p, t = z([]), d = () => {
|
|
16
|
+
t.value.push("");
|
|
17
|
+
}, v = (e) => {
|
|
18
|
+
t.value = e;
|
|
19
|
+
}, f = (e) => {
|
|
20
|
+
t.value.splice(e, 1);
|
|
21
|
+
};
|
|
22
|
+
return u(
|
|
23
|
+
t,
|
|
24
|
+
(e) => {
|
|
25
|
+
c("update:model-value", e);
|
|
26
|
+
},
|
|
27
|
+
{ deep: !0 }
|
|
28
|
+
), u(
|
|
29
|
+
() => l.modelValue,
|
|
30
|
+
(e) => {
|
|
31
|
+
v(e ?? []);
|
|
32
|
+
},
|
|
33
|
+
{ immediate: !0 }
|
|
34
|
+
), (e, F) => {
|
|
35
|
+
const s = V("t-button");
|
|
36
|
+
return n(), a("div", null, [
|
|
37
|
+
i(s, {
|
|
38
|
+
label: "Add",
|
|
39
|
+
variant: "primary",
|
|
40
|
+
"is-outline": !0,
|
|
41
|
+
icon: "plus",
|
|
42
|
+
size: "sm",
|
|
43
|
+
onClick: d
|
|
44
|
+
}),
|
|
45
|
+
(n(!0), a(k, null, C(t.value, (P, o) => (n(), a("div", {
|
|
46
|
+
key: o,
|
|
47
|
+
class: "flex items-center justify-start mt-2"
|
|
48
|
+
}, [
|
|
49
|
+
(n(), b(y(l.component), I({
|
|
50
|
+
size: l.size
|
|
51
|
+
}, l.inputProps, h(l.listeners), {
|
|
52
|
+
modelValue: t.value[o],
|
|
53
|
+
"onUpdate:modelValue": (r) => t.value[o] = r
|
|
54
|
+
}), null, 16, ["size", "modelValue", "onUpdate:modelValue"])),
|
|
55
|
+
i(s, {
|
|
56
|
+
variant: "transparent",
|
|
57
|
+
icon: "close",
|
|
58
|
+
class: "ml-0.5",
|
|
59
|
+
size: l.size,
|
|
60
|
+
"icon-props": { class: "text-(--border-color)" },
|
|
61
|
+
onClick: (r) => f(o)
|
|
62
|
+
}, null, 8, ["size", "onClick"])
|
|
63
|
+
]))), 128))
|
|
64
|
+
]);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
export {
|
|
69
|
+
x as _
|
|
70
|
+
};
|
package/dist/InputRadio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-DG-7xEeZ.js";
|
|
2
|
+
import { p as t } from "./plugin-B578b4C_.js";
|
|
3
3
|
export {
|
|
4
4
|
a as InputRadio,
|
|
5
5
|
t as InputRadioPlugin
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import './InputRadio.css';
|
|
2
|
+
import { defineComponent as p, inject as r, openBlock as m, createElementBlock as u, createElementVNode as i, unref as a, toDisplayString as b } from "vue";
|
|
3
|
+
const h = { class: "h-9 inline-flex items-center" }, v = ["value", "name", "disabled", "checked"];
|
|
4
|
+
let f = 0;
|
|
5
|
+
const g = /* @__PURE__ */ p({
|
|
6
|
+
name: "TInputRadio",
|
|
7
|
+
__name: "InputRadio",
|
|
8
|
+
props: {
|
|
9
|
+
value: {},
|
|
10
|
+
label: {}
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
const o = `radio_${++f}`, c = r("name", ""), e = t, l = r("model", ""), d = r("change", () => {
|
|
14
|
+
}), s = r("disabled", !1);
|
|
15
|
+
return (_, n) => (m(), u("div", h, [
|
|
16
|
+
i("input", {
|
|
17
|
+
value: e.value,
|
|
18
|
+
name: a(c),
|
|
19
|
+
id: o,
|
|
20
|
+
disabled: a(s),
|
|
21
|
+
checked: e.value === a(l),
|
|
22
|
+
type: "radio",
|
|
23
|
+
class: "form-radio w-5 h-5 border border-(--border-color) checked:hover:border-caipira-primary-inverted checked:focus:border-caipira-primary-inverted checked:border-caipira-primary-inverted input-outline focus:input-outline bg-caipira-primary color-caipira-primary",
|
|
24
|
+
onChange: n[0] || (n[0] = (k) => a(d)(e.value))
|
|
25
|
+
}, null, 40, v),
|
|
26
|
+
i("label", {
|
|
27
|
+
class: "cursor-pointer pl-2 mr-3 input-label",
|
|
28
|
+
for: o
|
|
29
|
+
}, b(e.label), 1)
|
|
30
|
+
]));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
g as _
|
|
35
|
+
};
|
package/dist/components.js
CHANGED
|
@@ -6,8 +6,8 @@ import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-CLi_I
|
|
|
6
6
|
import { D as u } from "./Drawer-y5xBARd2.js";
|
|
7
7
|
import { _ as l } from "./Dropdown.vue_vue_type_script_setup_true_lang-DtTBnNsn.js";
|
|
8
8
|
import { _ as c } from "./FileDrop.vue_vue_type_script_setup_true_lang-Bq0lAgZ7.js";
|
|
9
|
-
import { _ as T } from "./Form.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as C } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as T } from "./Form.vue_vue_type_script_setup_true_lang-Bd8NlDpG.js";
|
|
10
|
+
import { _ as C } from "./FormItem.vue_vue_type_script_setup_true_lang-CtioNKpW.js";
|
|
11
11
|
import { _ as b } from "./GraphyEmpty.vue_vue_type_script_setup_true_lang-B-hAjDCw.js";
|
|
12
12
|
import { _ as G } from "./GraphyLabel.vue_vue_type_script_setup_true_lang-DIKuG0Po.js";
|
|
13
13
|
import { _ as g } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-Cr4zjIiS.js";
|
|
@@ -15,15 +15,15 @@ import { _ as v } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DsB
|
|
|
15
15
|
import { _ as F } from "./GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js";
|
|
16
16
|
import { _ as M } from "./Icon.vue_vue_type_script_setup_true_lang-BuMQjBAy.js";
|
|
17
17
|
import { _ as B } from "./InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js";
|
|
18
|
-
import { _ as R } from "./InputCheckbox.vue_vue_type_style_index_0_lang-
|
|
18
|
+
import { _ as R } from "./InputCheckbox.vue_vue_type_style_index_0_lang-XU9rYa47.js";
|
|
19
19
|
import { _ as q } from "./InputCryptoCurrency.vue_vue_type_script_setup_true_lang-BIUT5eCh.js";
|
|
20
20
|
import { _ as H } from "./InputColor.vue_vue_type_script_setup_true_lang-DT-MAgI2.js";
|
|
21
21
|
import { _ as K } from "./InputDate.vue_vue_type_script_setup_true_lang-CNmUyWG3.js";
|
|
22
|
-
import { _ as O } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-
|
|
22
|
+
import { _ as O } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-Cho_7MEo.js";
|
|
23
23
|
import { _ as U } from "./InputPassword.vue_vue_type_script_setup_true_lang-Qeq0BBp3.js";
|
|
24
24
|
import { _ as W } from "./InputPhone.vue_vue_type_script_setup_true_lang-B4TULqLW.js";
|
|
25
25
|
import { _ as Y } from "./InputPrice.vue_vue_type_script_setup_true_lang-9UZ7YqAf.js";
|
|
26
|
-
import { _ as $ } from "./InputRadio.vue_vue_type_style_index_0_lang-
|
|
26
|
+
import { _ as $ } from "./InputRadio.vue_vue_type_style_index_0_lang-DG-7xEeZ.js";
|
|
27
27
|
import "vue";
|
|
28
28
|
import { _ as or } from "./InputSelect.vue_vue_type_script_setup_true_lang-uUjFwWIE.js";
|
|
29
29
|
import { _ as er } from "./InputSwitch.vue_vue_type_script_setup_true_lang-BVGfQFZh.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as l } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as d } from "./InputRadio.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as d } from "./InputRadio.vue_vue_type_style_index_0_lang-DG-7xEeZ.js";
|
|
3
3
|
import { defineComponent as s, onBeforeMount as u, provide as a, computed as p, renderSlot as c } from "vue";
|
|
4
4
|
const f = /* @__PURE__ */ s({
|
|
5
5
|
name: "TInputRadioGroup",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as s } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-Cho_7MEo.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|
|
@@ -11,11 +11,11 @@ import { p as n } from "./plugin-CyDnzy2n.js";
|
|
|
11
11
|
import "./Drawer-y5xBARd2.js";
|
|
12
12
|
import { p as m } from "./plugin-JMSzJgz5.js";
|
|
13
13
|
import "./Dropdown.vue_vue_type_script_setup_true_lang-DtTBnNsn.js";
|
|
14
|
-
import { p as
|
|
15
|
-
import { p as
|
|
16
|
-
import "./Form.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { p as l } from "./plugin-
|
|
18
|
-
import { p as g } from "./plugin-
|
|
14
|
+
import { p as t } from "./plugin-DKMiwQmN.js";
|
|
15
|
+
import { p as u } from "./plugin-43q0Kzto.js";
|
|
16
|
+
import "./Form.vue_vue_type_script_setup_true_lang-Bd8NlDpG.js";
|
|
17
|
+
import { p as l } from "./plugin-CDu6of44.js";
|
|
18
|
+
import { p as g } from "./plugin-Ccz1v8Wx.js";
|
|
19
19
|
import { p as a } from "./plugin-Buc7eEox.js";
|
|
20
20
|
import { p as s } from "./plugin-CC97Vx-s.js";
|
|
21
21
|
import "./GraphyPrice.vue_vue_type_script_setup_true_lang-Cr4zjIiS.js";
|
|
@@ -25,18 +25,19 @@ import { p as e } from "./plugin-DOeDaXWj.js";
|
|
|
25
25
|
import "./Icon.vue_vue_type_script_setup_true_lang-BuMQjBAy.js";
|
|
26
26
|
import { p as $ } from "./plugin-Dja0bljQ.js";
|
|
27
27
|
import { p as I } from "./plugin--F5QK2vy.js";
|
|
28
|
-
import "./InputCheckbox.vue_vue_type_style_index_0_lang-
|
|
29
|
-
import { p as c } from "./plugin-
|
|
28
|
+
import "./InputCheckbox.vue_vue_type_style_index_0_lang-XU9rYa47.js";
|
|
29
|
+
import { p as c } from "./plugin-BemLz7kA.js";
|
|
30
30
|
import { p as h } from "./plugin-Bq4nQPd4.js";
|
|
31
31
|
import { p as y } from "./plugin-D9KHvOM3.js";
|
|
32
32
|
import { p as b } from "./plugin-CLPYJfBT.js";
|
|
33
|
-
import
|
|
33
|
+
import "./InputMultiplier.vue_vue_type_script_setup_true_lang-Cho_7MEo.js";
|
|
34
|
+
import { p as d } from "./plugin-CoKL2vk5.js";
|
|
34
35
|
import "./InputText.vue_vue_type_script_setup_true_lang-twigJ_WD.js";
|
|
35
36
|
import { p as T } from "./plugin-DX5ICUyA.js";
|
|
36
37
|
import { p as C } from "./plugin-CrHDShgh.js";
|
|
37
38
|
import { p as S } from "./plugin-Co9LymNO.js";
|
|
38
|
-
import "./InputRadio.vue_vue_type_style_index_0_lang-
|
|
39
|
-
import { p as v } from "./plugin-
|
|
39
|
+
import "./InputRadio.vue_vue_type_style_index_0_lang-DG-7xEeZ.js";
|
|
40
|
+
import { p as v } from "./plugin-B578b4C_.js";
|
|
40
41
|
import "./InputSelect.vue_vue_type_script_setup_true_lang-uUjFwWIE.js";
|
|
41
42
|
import { p as G } from "./plugin-DhHWk6sK.js";
|
|
42
43
|
import { p as k } from "./plugin-hQ-aWPlo.js";
|
|
@@ -63,7 +64,7 @@ import { p as q } from "./plugin-C9PvjtX8.js";
|
|
|
63
64
|
import "./Tag.vue_vue_type_script_setup_true_lang-G3i5m3sB.js";
|
|
64
65
|
import { p as H } from "./plugin-BviXQKyF.js";
|
|
65
66
|
import { p as R } from "./plugin-i0cgy8R3.js";
|
|
66
|
-
const
|
|
67
|
+
const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
67
68
|
__proto__: null,
|
|
68
69
|
AvatarPlugin: p,
|
|
69
70
|
BackdropPlugin: i,
|
|
@@ -71,8 +72,8 @@ const ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
71
72
|
ChartLinePlugin: o,
|
|
72
73
|
ChartTreemapPlugin: n,
|
|
73
74
|
DrawerPlugin: m,
|
|
74
|
-
DropdownPlugin:
|
|
75
|
-
FileDropPlugin:
|
|
75
|
+
DropdownPlugin: t,
|
|
76
|
+
FileDropPlugin: u,
|
|
76
77
|
FormItemPlugin: g,
|
|
77
78
|
FormPlugin: l,
|
|
78
79
|
GraphyEmptyPlugin: a,
|
|
@@ -111,5 +112,5 @@ const ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
111
112
|
ToastPlugin: R
|
|
112
113
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
113
114
|
export {
|
|
114
|
-
|
|
115
|
+
ri as p
|
|
115
116
|
};
|
package/dist/plugins.js
CHANGED
|
@@ -1,111 +1,112 @@
|
|
|
1
1
|
import "./Avatar.vue_vue_type_script_setup_true_lang-CnvI4bGL.js";
|
|
2
|
-
import { p as
|
|
2
|
+
import { p as G } from "./plugin-ZJybqwxT.js";
|
|
3
3
|
import "vue";
|
|
4
|
-
import { p as
|
|
4
|
+
import { p as k } from "./plugin-AU2qI2I9.js";
|
|
5
5
|
import "./Button.vue_vue_type_script_setup_true_lang-CmbPvjSg.js";
|
|
6
|
-
import { p as
|
|
6
|
+
import { p as w } from "./plugin-Bij2CJr7.js";
|
|
7
7
|
import "./transform-DSaNEFMr.js";
|
|
8
8
|
import "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
9
|
-
import { p as
|
|
10
|
-
import { p as
|
|
9
|
+
import { p as F } from "./plugin-DDXOF4cU.js";
|
|
10
|
+
import { p as M } from "./plugin-CyDnzy2n.js";
|
|
11
11
|
import "./Drawer-y5xBARd2.js";
|
|
12
|
-
import { p as
|
|
12
|
+
import { p as B } from "./plugin-JMSzJgz5.js";
|
|
13
13
|
import "./Dropdown.vue_vue_type_script_setup_true_lang-DtTBnNsn.js";
|
|
14
|
-
import { p as
|
|
15
|
-
import { p as
|
|
16
|
-
import "./Form.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { p as
|
|
18
|
-
import { p as
|
|
19
|
-
import { p as
|
|
20
|
-
import { p as
|
|
14
|
+
import { p as R } from "./plugin-DKMiwQmN.js";
|
|
15
|
+
import { p as q } from "./plugin-43q0Kzto.js";
|
|
16
|
+
import "./Form.vue_vue_type_script_setup_true_lang-Bd8NlDpG.js";
|
|
17
|
+
import { p as H } from "./plugin-CDu6of44.js";
|
|
18
|
+
import { p as K } from "./plugin-Ccz1v8Wx.js";
|
|
19
|
+
import { p as O } from "./plugin-Buc7eEox.js";
|
|
20
|
+
import { p as U } from "./plugin-CC97Vx-s.js";
|
|
21
21
|
import "./GraphyPrice.vue_vue_type_script_setup_true_lang-Cr4zjIiS.js";
|
|
22
|
-
import { p as
|
|
23
|
-
import { p as
|
|
24
|
-
import { p as
|
|
22
|
+
import { p as W } from "./plugin-CnSU08rb.js";
|
|
23
|
+
import { p as Y } from "./plugin-F3dxY_wr.js";
|
|
24
|
+
import { p as _ } from "./plugin-DOeDaXWj.js";
|
|
25
25
|
import "./Icon.vue_vue_type_script_setup_true_lang-BuMQjBAy.js";
|
|
26
|
-
import { p as
|
|
27
|
-
import { p as
|
|
28
|
-
import "./InputCheckbox.vue_vue_type_style_index_0_lang-
|
|
29
|
-
import { p as
|
|
30
|
-
import { p as
|
|
31
|
-
import { p as
|
|
32
|
-
import { p as
|
|
33
|
-
import
|
|
26
|
+
import { p as rr } from "./plugin-Dja0bljQ.js";
|
|
27
|
+
import { p as pr } from "./plugin--F5QK2vy.js";
|
|
28
|
+
import "./InputCheckbox.vue_vue_type_style_index_0_lang-XU9rYa47.js";
|
|
29
|
+
import { p as ir } from "./plugin-BemLz7kA.js";
|
|
30
|
+
import { p as mr } from "./plugin-Bq4nQPd4.js";
|
|
31
|
+
import { p as nr } from "./plugin-D9KHvOM3.js";
|
|
32
|
+
import { p as lr } from "./plugin-CLPYJfBT.js";
|
|
33
|
+
import "./InputMultiplier.vue_vue_type_script_setup_true_lang-Cho_7MEo.js";
|
|
34
|
+
import { p as sr } from "./plugin-CoKL2vk5.js";
|
|
34
35
|
import "./InputText.vue_vue_type_script_setup_true_lang-twigJ_WD.js";
|
|
35
|
-
import { p as
|
|
36
|
-
import { p as
|
|
37
|
-
import { p as
|
|
38
|
-
import "./InputRadio.vue_vue_type_style_index_0_lang-
|
|
39
|
-
import { p as
|
|
36
|
+
import { p as xr } from "./plugin-DX5ICUyA.js";
|
|
37
|
+
import { p as Ir } from "./plugin-CrHDShgh.js";
|
|
38
|
+
import { p as hr } from "./plugin-Co9LymNO.js";
|
|
39
|
+
import "./InputRadio.vue_vue_type_style_index_0_lang-DG-7xEeZ.js";
|
|
40
|
+
import { p as Tr } from "./plugin-B578b4C_.js";
|
|
40
41
|
import "./InputSelect.vue_vue_type_script_setup_true_lang-uUjFwWIE.js";
|
|
41
|
-
import { p as
|
|
42
|
-
import { p as
|
|
43
|
-
import { p as
|
|
44
|
-
import { p as
|
|
42
|
+
import { p as dr } from "./plugin-DhHWk6sK.js";
|
|
43
|
+
import { p as Gr } from "./plugin-hQ-aWPlo.js";
|
|
44
|
+
import { p as kr } from "./plugin-CQXEZDaa.js";
|
|
45
|
+
import { p as wr } from "./plugin-Clp0zNY0.js";
|
|
45
46
|
import "./Link.vue_vue_type_script_setup_true_lang-0z-EeE3p.js";
|
|
46
|
-
import { p as
|
|
47
|
-
import { p as
|
|
48
|
-
import { p as
|
|
49
|
-
import { p as
|
|
47
|
+
import { p as Fr } from "./plugin-B2DiDUlP.js";
|
|
48
|
+
import { p as Mr } from "./plugin-CPpRqUnI.js";
|
|
49
|
+
import { p as Br } from "./plugin-CrcKkoHW.js";
|
|
50
|
+
import { p as Rr } from "./plugin-jyvJNavM.js";
|
|
50
51
|
import "./Popconfirm.vue_vue_type_script_setup_true_lang-BDEqMoax.js";
|
|
51
|
-
import { p as
|
|
52
|
+
import { p as qr } from "./plugin-DArlmex8.js";
|
|
52
53
|
import "./Popover-C3ovolxY.js";
|
|
53
|
-
import { p as
|
|
54
|
+
import { p as Hr } from "./plugin-CdZkyAp1.js";
|
|
54
55
|
import "./ProgressCircle-C5CnEEoe.js";
|
|
55
|
-
import { p as
|
|
56
|
+
import { p as Kr } from "./plugin-CV6IjnsL.js";
|
|
56
57
|
import "./ProgressLine-BqINh5jh.js";
|
|
57
|
-
import { p as
|
|
58
|
-
import { p as
|
|
59
|
-
import { p as
|
|
60
|
-
import { p as
|
|
58
|
+
import { p as Or } from "./plugin-DMGSStZm.js";
|
|
59
|
+
import { p as Ur } from "./plugin-BWfDY9pB.js";
|
|
60
|
+
import { p as Wr } from "./plugin-DYHfPgzY.js";
|
|
61
|
+
import { p as Yr } from "./plugin-CbBSU30O.js";
|
|
61
62
|
import "./Table-maK98cK_.js";
|
|
62
|
-
import { p as
|
|
63
|
+
import { p as _r } from "./plugin-C9PvjtX8.js";
|
|
63
64
|
import "./Tag.vue_vue_type_script_setup_true_lang-G3i5m3sB.js";
|
|
64
|
-
import { p as
|
|
65
|
-
import { p as
|
|
65
|
+
import { p as ro } from "./plugin-BviXQKyF.js";
|
|
66
|
+
import { p as po } from "./plugin-i0cgy8R3.js";
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
68
|
+
G as AvatarPlugin,
|
|
69
|
+
k as BackdropPlugin,
|
|
70
|
+
w as ButtonPlugin,
|
|
71
|
+
F as ChartLinePlugin,
|
|
72
|
+
M as ChartTreemapPlugin,
|
|
73
|
+
B as DrawerPlugin,
|
|
74
|
+
R as DropdownPlugin,
|
|
75
|
+
q as FileDropPlugin,
|
|
76
|
+
K as FormItemPlugin,
|
|
77
|
+
H as FormPlugin,
|
|
78
|
+
O as GraphyEmptyPlugin,
|
|
79
|
+
U as GraphyLabelPlugin,
|
|
80
|
+
W as GraphyPricePlugin,
|
|
81
|
+
Y as GraphySubtitlePlugin,
|
|
82
|
+
_ as GraphyTitlePlugin,
|
|
83
|
+
rr as IconPlugin,
|
|
84
|
+
pr as InputAvatarPlugin,
|
|
85
|
+
ir as InputCheckboxPlugin,
|
|
86
|
+
nr as InputColorPlugin,
|
|
87
|
+
mr as InputCryptoCurrencyPlugin,
|
|
88
|
+
lr as InputDatePlugin,
|
|
89
|
+
sr as InputMultiplierPlugin,
|
|
90
|
+
xr as InputPasswordPlugin,
|
|
91
|
+
Ir as InputPhonePlugin,
|
|
92
|
+
hr as InputPricePlugin,
|
|
93
|
+
Tr as InputRadioPlugin,
|
|
94
|
+
dr as InputSelectPlugin,
|
|
95
|
+
Gr as InputSwitchPlugin,
|
|
96
|
+
kr as InputTextPlugin,
|
|
97
|
+
wr as InputTextareaPlugin,
|
|
98
|
+
Fr as LinkPlugin,
|
|
99
|
+
Br as ModalFormPlugin,
|
|
100
|
+
Mr as ModalPlugin,
|
|
101
|
+
Rr as PaginationPlugin,
|
|
102
|
+
qr as PopconfirmPlugin,
|
|
103
|
+
Hr as PopoverPlugin,
|
|
104
|
+
Kr as ProgressCirclePlugin,
|
|
105
|
+
Or as ProgressLinePlugin,
|
|
106
|
+
Ur as SensitiveInfoPlugin,
|
|
107
|
+
Wr as SkeletonPlugin,
|
|
108
|
+
Yr as TabPlugin,
|
|
109
|
+
_r as TablePlugin,
|
|
110
|
+
ro as TagPlugin,
|
|
111
|
+
po as ToastPlugin
|
|
111
112
|
};
|
package/dist/tamandua.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FormSubmissionFormat } from '../../enums/form.js';
|
|
2
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
2
3
|
import { ButtonProps } from '../Button/types.js';
|
|
3
4
|
import { FormSchema, FormInstance, ValidationResult } from '../../types/form.js';
|
|
4
5
|
|
|
@@ -7,6 +8,7 @@ export type FormStyle = {
|
|
|
7
8
|
};
|
|
8
9
|
export type FormLayout = "horizontal" | "vertical" | "inline";
|
|
9
10
|
export type FormProps<T extends FormSchema> = {
|
|
11
|
+
size: `${FormControlSize}`;
|
|
10
12
|
schema?: T;
|
|
11
13
|
layout?: FormLayout;
|
|
12
14
|
formStyle?: FormStyle;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
1
2
|
import { InputMultiplierProps } from './types.js';
|
|
2
3
|
|
|
3
4
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputMultiplierProps>, {
|
|
5
|
+
size: FormControlSize;
|
|
4
6
|
component: string;
|
|
5
7
|
listeners: () => {};
|
|
6
8
|
inputProps: () => {};
|
|
7
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
10
|
"update:model-value": (value: any[]) => void;
|
|
9
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputMultiplierProps>, {
|
|
12
|
+
size: FormControlSize;
|
|
10
13
|
component: string;
|
|
11
14
|
listeners: () => {};
|
|
12
15
|
inputProps: () => {};
|
|
13
16
|
}>>> & {
|
|
14
17
|
"onUpdate:model-value"?: ((value: any[]) => any) | undefined;
|
|
15
18
|
}, {
|
|
19
|
+
size: `${FormControlSize}`;
|
|
16
20
|
component: import("vue").Component | "t-input-text" | "t-input-phone";
|
|
17
21
|
inputProps: any;
|
|
18
22
|
listeners: {
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
2
|
+
|
|
1
3
|
declare const _default: {
|
|
2
4
|
title: string;
|
|
3
5
|
args: {
|
|
6
|
+
size: FormControlSize;
|
|
4
7
|
label: string;
|
|
5
8
|
component: string;
|
|
6
9
|
};
|
|
7
10
|
argTypes: {
|
|
11
|
+
size: {
|
|
12
|
+
options: FormControlSize[];
|
|
13
|
+
control: string;
|
|
14
|
+
};
|
|
8
15
|
component: {
|
|
9
16
|
options: string[];
|
|
10
17
|
control: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
1
2
|
import { Component } from 'vue';
|
|
2
3
|
|
|
3
4
|
type ComponentType = "t-input-text" | "t-input-phone" | Component;
|
|
4
5
|
export type InputMultiplierProps = {
|
|
6
|
+
size?: `${FormControlSize}`;
|
|
5
7
|
component?: ComponentType;
|
|
6
8
|
inputProps?: any;
|
|
7
9
|
listeners?: {
|
package/package.json
CHANGED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, useSlots as x, inject as g, computed as u, resolveComponent as k, openBlock as l, createElementBlock as a, createElementVNode as i, normalizeClass as s, createBlock as z, unref as c, withCtx as C, renderSlot as f, Fragment as S, renderList as B, toDisplayString as F, createCommentVNode as I } from "vue";
|
|
2
|
-
const w = { class: "w-full" }, E = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "float-right"
|
|
5
|
-
}, T = /* @__PURE__ */ b({
|
|
6
|
-
name: "TFormItem",
|
|
7
|
-
__name: "FormItem",
|
|
8
|
-
props: {
|
|
9
|
-
label: {},
|
|
10
|
-
rules: {},
|
|
11
|
-
layout: {}
|
|
12
|
-
},
|
|
13
|
-
setup(d) {
|
|
14
|
-
const o = d, n = x(), m = [], e = g("formStyle", {
|
|
15
|
-
label: "",
|
|
16
|
-
input: "",
|
|
17
|
-
layout: "horizontal"
|
|
18
|
-
}), y = u(() => {
|
|
19
|
-
if (!n || !n.default)
|
|
20
|
-
return !1;
|
|
21
|
-
const t = n?.default();
|
|
22
|
-
return t ? t[0].type.name : !1;
|
|
23
|
-
}), p = u(() => y.value === "TInputMultiplier"), r = u(() => o.layout ? o.layout : e.layout ? e.layout : "horizontal");
|
|
24
|
-
return (t, M) => {
|
|
25
|
-
const h = k("t-graphy-label");
|
|
26
|
-
return l(), a("div", w, [
|
|
27
|
-
i("div", {
|
|
28
|
-
class: s(["flex gap-2 my-5", {
|
|
29
|
-
"flex-col": r.value === "vertical",
|
|
30
|
-
"items-center": r.value === "horizontal" && !p.value,
|
|
31
|
-
"items-start": p.value
|
|
32
|
-
}])
|
|
33
|
-
}, [
|
|
34
|
-
o.label ? (l(), z(h, {
|
|
35
|
-
key: 0,
|
|
36
|
-
text: o.label,
|
|
37
|
-
class: s({
|
|
38
|
-
[c(e).label]: !0,
|
|
39
|
-
"text-right": r.value === "horizontal"
|
|
40
|
-
})
|
|
41
|
-
}, {
|
|
42
|
-
default: C(() => [
|
|
43
|
-
f(t.$slots, "label")
|
|
44
|
-
]),
|
|
45
|
-
_: 3
|
|
46
|
-
}, 8, ["text", "class"])) : (l(), a("div", {
|
|
47
|
-
key: 1,
|
|
48
|
-
class: s({
|
|
49
|
-
[c(e).label]: !0,
|
|
50
|
-
"text-right": r.value === "horizontal"
|
|
51
|
-
})
|
|
52
|
-
}, null, 2)),
|
|
53
|
-
i("div", {
|
|
54
|
-
class: s({ [c(e).input]: !0 })
|
|
55
|
-
}, [
|
|
56
|
-
f(t.$slots, "default")
|
|
57
|
-
], 2)
|
|
58
|
-
], 2),
|
|
59
|
-
m ? (l(), a("div", E, [
|
|
60
|
-
(l(), a(S, null, B(m, (v, _) => i("span", {
|
|
61
|
-
class: "text-sm text-red-600",
|
|
62
|
-
key: _
|
|
63
|
-
}, F(v), 1)), 64))
|
|
64
|
-
])) : I("", !0)
|
|
65
|
-
]);
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
T as _
|
|
71
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, ref as V, watch as r, resolveComponent as k, openBlock as o, createElementBlock as a, createVNode as m, Fragment as C, renderList as y, createBlock as I, resolveDynamicComponent as b, mergeProps as h, toHandlers as B } from "vue";
|
|
2
|
-
const M = /* @__PURE__ */ f({
|
|
3
|
-
name: "TInputMultiplier",
|
|
4
|
-
__name: "InputMultiplier",
|
|
5
|
-
props: {
|
|
6
|
-
component: { default: "t-input-text" },
|
|
7
|
-
inputProps: { default: () => ({}) },
|
|
8
|
-
listeners: { default: () => ({}) },
|
|
9
|
-
modelValue: {}
|
|
10
|
-
},
|
|
11
|
-
emits: ["update:model-value"],
|
|
12
|
-
setup(c, { emit: p }) {
|
|
13
|
-
const l = c, i = p, t = V([]), d = () => {
|
|
14
|
-
t.value.push("");
|
|
15
|
-
}, v = (e) => {
|
|
16
|
-
t.value = e;
|
|
17
|
-
}, _ = (e) => {
|
|
18
|
-
t.value.splice(e, 1);
|
|
19
|
-
};
|
|
20
|
-
return r(
|
|
21
|
-
t,
|
|
22
|
-
(e) => {
|
|
23
|
-
i("update:model-value", e);
|
|
24
|
-
},
|
|
25
|
-
{ deep: !0 }
|
|
26
|
-
), r(
|
|
27
|
-
() => l.modelValue,
|
|
28
|
-
(e) => {
|
|
29
|
-
v(e ?? []);
|
|
30
|
-
},
|
|
31
|
-
{ immediate: !0 }
|
|
32
|
-
), (e, P) => {
|
|
33
|
-
const u = k("t-button");
|
|
34
|
-
return o(), a("div", null, [
|
|
35
|
-
m(u, {
|
|
36
|
-
label: "Add",
|
|
37
|
-
variant: "primary",
|
|
38
|
-
"is-outline": !0,
|
|
39
|
-
icon: "plus",
|
|
40
|
-
size: "sm",
|
|
41
|
-
onClick: d
|
|
42
|
-
}),
|
|
43
|
-
(o(!0), a(C, null, y(t.value, (g, n) => (o(), a("div", {
|
|
44
|
-
key: n,
|
|
45
|
-
class: "flex items-center justify-start mt-2"
|
|
46
|
-
}, [
|
|
47
|
-
(o(), I(b(l.component), h(l.inputProps, B(l.listeners), {
|
|
48
|
-
modelValue: t.value[n],
|
|
49
|
-
"onUpdate:modelValue": (s) => t.value[n] = s,
|
|
50
|
-
class: "my-1"
|
|
51
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])),
|
|
52
|
-
m(u, {
|
|
53
|
-
variant: "transparent",
|
|
54
|
-
icon: "close",
|
|
55
|
-
class: "ml-0.5",
|
|
56
|
-
onClick: (s) => _(n)
|
|
57
|
-
}, null, 8, ["onClick"])
|
|
58
|
-
]))), 128))
|
|
59
|
-
]);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
export {
|
|
64
|
-
M as _
|
|
65
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import './InputRadio.css';
|
|
2
|
-
import { defineComponent as p, inject as r, openBlock as m, createElementBlock as u, createElementVNode as o, unref as a, toDisplayString as b } from "vue";
|
|
3
|
-
const v = { class: "h-9 inline-flex items-center" }, h = ["value", "name", "disabled", "checked"];
|
|
4
|
-
let f = 0;
|
|
5
|
-
const g = /* @__PURE__ */ p({
|
|
6
|
-
name: "TInputRadio",
|
|
7
|
-
__name: "InputRadio",
|
|
8
|
-
props: {
|
|
9
|
-
value: {},
|
|
10
|
-
label: {}
|
|
11
|
-
},
|
|
12
|
-
setup(t) {
|
|
13
|
-
const i = `radio_${++f}`, c = r("name", ""), e = t, l = r("model", ""), d = r("change", () => {
|
|
14
|
-
}), s = r("disabled", !1);
|
|
15
|
-
return (_, n) => (m(), u("div", v, [
|
|
16
|
-
o("input", {
|
|
17
|
-
value: e.value,
|
|
18
|
-
name: a(c),
|
|
19
|
-
id: i,
|
|
20
|
-
disabled: a(s),
|
|
21
|
-
checked: e.value === a(l),
|
|
22
|
-
type: "radio",
|
|
23
|
-
class: "form-radio w-5 h-5 border border-[var(--caipira-primary-inverted)] checked:hover:border-caipira-primary-inverted checked:focus:border-caipira-primary-inverted checked:border-caipira-primary-inverted input-outline focus:input-outline bg-caipira-primary color-caipira-primary",
|
|
24
|
-
onChange: n[0] || (n[0] = (y) => a(d)(e.value))
|
|
25
|
-
}, null, 40, h),
|
|
26
|
-
o("label", {
|
|
27
|
-
class: "cursor-pointer pl-2 mr-3 input-label",
|
|
28
|
-
for: i
|
|
29
|
-
}, b(e.label), 1)
|
|
30
|
-
]));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
g as _
|
|
35
|
-
};
|