@caipira/tamandua 0.0.39 → 0.0.41
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-CaCu47jH.js +217 -0
- package/dist/Link.js +2 -2
- package/dist/Link.vue_vue_type_script_setup_true_lang-CUOLot0A.js +51 -0
- package/dist/{ProgressLine-CY6aDj-H.js → ProgressLine-bKh0terH.js} +9 -9
- package/dist/ProgressLine.css +1 -1
- package/dist/ProgressLine.js +2 -2
- package/dist/Tab.js +2 -2
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-VzvYvoqa.js → Tab.vue_vue_type_script_setup_true_lang-Bk9igf63.js} +15 -15
- package/dist/Tag.js +2 -2
- package/dist/Tag.vue_vue_type_script_setup_true_lang-DatNytmx.js +73 -0
- package/dist/components.js +5 -5
- package/dist/form2.js +15 -13
- package/dist/{plugin-5vn4G57V.js → plugin-BV-k02s1.js} +1 -1
- package/dist/{plugin-DgCa2m12.js → plugin-DXjluPIV.js} +1 -1
- package/dist/{plugin-Bk8QZgpY.js → plugin-VQZG4jD0.js} +1 -1
- package/dist/{plugin-dL6oP11N.js → plugin-t2MeakcO.js} +1 -1
- package/dist/{plugin-BFAUI0U3.js → plugin-uMlQixCx.js} +1 -1
- package/dist/{plugins-DfXmQBVL.js → plugins-BBSrXMww.js} +9 -9
- package/dist/plugins.js +9 -9
- package/dist/tamandua.js +1 -1
- package/dist/transformers-DLw_G6c6.js +15 -0
- package/dist/types/components/ChartLine/ChartLine.vue.d.ts +32 -2
- package/dist/types/components/ChartTreemap/types.d.ts +4 -1
- package/dist/types/components/ProgressLine/ProgressLine.vue.d.ts +52 -2
- package/dist/types/components/SensitiveInfo/SensitiveInfo.vue.d.ts +12 -3
- package/dist/types/components/Skeleton/Skeleton.vue.d.ts +7 -3
- package/dist/types/components/Tab/Tab.vue.d.ts +26 -3
- package/dist/types/components/Toast/Toast.vue.d.ts +16 -3
- package/dist/types/form/index.d.ts +3 -4
- package/dist/types/form/json-transformers.d.ts +4 -3
- package/dist/types/form/transformers.d.ts +9 -0
- package/dist/types/types/form.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Form.vue_vue_type_script_setup_true_lang-Cf0LqvyX.js +0 -203
- package/dist/Link.vue_vue_type_script_setup_true_lang-DeBJ2UGi.js +0 -50
- package/dist/Tag.vue_vue_type_script_setup_true_lang-DMigzW22.js +0 -71
- package/dist/types/form/form-value-transformers.d.ts +0 -9
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-CaCu47jH.js";
|
|
2
|
+
import { p as a } from "./plugin-uMlQixCx.js";
|
|
3
3
|
export {
|
|
4
4
|
m as Form,
|
|
5
5
|
a as FormPlugin
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { reactive as $, defineComponent as C, ref as _, computed as A, watch as N, provide as P, resolveComponent as O, openBlock as B, createElementBlock as J, renderSlot as E, unref as R, createElementVNode as T, normalizeClass as W, withDirectives as j, createVNode as z, mergeProps as L, vShow as I } from "vue";
|
|
2
|
+
import { B as M } from "./ui-BC6H9E93.js";
|
|
3
|
+
import { F as s, a as f } from "./form-BkXpIJ0e.js";
|
|
4
|
+
import { d as h, c as w, p as S, a as F } from "./transformers-DLw_G6c6.js";
|
|
5
|
+
const i = {
|
|
6
|
+
default: (e, t, r) => (t[r] = e, t),
|
|
7
|
+
price: (e, t, r, n = ["Currency", "Value"]) => {
|
|
8
|
+
const [c, a] = S(e);
|
|
9
|
+
return t[`${r}${n[0]}`] = c, t[`${r}${n[1]}`] = a, t;
|
|
10
|
+
},
|
|
11
|
+
password: async (e, t, r) => (t[r] = F(e), t)
|
|
12
|
+
}, Y = async (e, t, r, n) => {
|
|
13
|
+
switch (e) {
|
|
14
|
+
case s.Address:
|
|
15
|
+
return i.default(
|
|
16
|
+
r,
|
|
17
|
+
t,
|
|
18
|
+
n
|
|
19
|
+
);
|
|
20
|
+
case s.Boolean:
|
|
21
|
+
return i.default(
|
|
22
|
+
r,
|
|
23
|
+
t,
|
|
24
|
+
n
|
|
25
|
+
);
|
|
26
|
+
case s.Country:
|
|
27
|
+
return i.default(
|
|
28
|
+
w(r),
|
|
29
|
+
t,
|
|
30
|
+
n
|
|
31
|
+
);
|
|
32
|
+
case s.Date:
|
|
33
|
+
return i.default(
|
|
34
|
+
h(r),
|
|
35
|
+
t,
|
|
36
|
+
n
|
|
37
|
+
);
|
|
38
|
+
case s.Document:
|
|
39
|
+
case s.Documents:
|
|
40
|
+
throw new Error("Cannot append files to JSON!");
|
|
41
|
+
case s.Price:
|
|
42
|
+
return i.price(
|
|
43
|
+
r,
|
|
44
|
+
t,
|
|
45
|
+
n
|
|
46
|
+
);
|
|
47
|
+
case s.Password:
|
|
48
|
+
return await i.password(
|
|
49
|
+
r,
|
|
50
|
+
t,
|
|
51
|
+
n
|
|
52
|
+
);
|
|
53
|
+
case s.StringArray:
|
|
54
|
+
return i.default(
|
|
55
|
+
r,
|
|
56
|
+
t,
|
|
57
|
+
n
|
|
58
|
+
);
|
|
59
|
+
default:
|
|
60
|
+
return i.default(
|
|
61
|
+
r,
|
|
62
|
+
t,
|
|
63
|
+
n
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
}, p = (e) => (e == null ? e = "" : typeof e == "object" ? e = JSON.stringify(e) : typeof e == "number" ? e = e.toString() : typeof e == "boolean" && (e = e ? "1" : "0"), e), u = {
|
|
67
|
+
default: (e, t, r) => {
|
|
68
|
+
const n = p(e);
|
|
69
|
+
return e && t.append(r, n), t;
|
|
70
|
+
},
|
|
71
|
+
price: (e, t, r, n = ["Currency", "Value"]) => {
|
|
72
|
+
const [c, a] = S(e);
|
|
73
|
+
return t.append(`${r}${n[0]}`, p(c)), t.append(`${r}${n[1]}`, p(a)), t;
|
|
74
|
+
},
|
|
75
|
+
address: (e, t, r) => (t.append(
|
|
76
|
+
r,
|
|
77
|
+
JSON.stringify({
|
|
78
|
+
...e,
|
|
79
|
+
country: w(e?.country)
|
|
80
|
+
})
|
|
81
|
+
), t),
|
|
82
|
+
documents: (e, t, r) => (r.endsWith("[]") || (r = `${r}[]`), Array.from(e).forEach((n) => t.append(r, n)), t),
|
|
83
|
+
document: (e, t, r) => (t.append(r, e), t),
|
|
84
|
+
stringArray: (e, t, r) => (r.endsWith("[]") || (r = `${r}[]`), e.forEach((n) => t.append(r, p(n))), t)
|
|
85
|
+
}, q = async (e, t, r, n) => {
|
|
86
|
+
switch (e) {
|
|
87
|
+
case s.Country:
|
|
88
|
+
return u.default(w(r), t, n);
|
|
89
|
+
case s.Document:
|
|
90
|
+
return u.document(r, t, n);
|
|
91
|
+
case s.Documents:
|
|
92
|
+
return u.documents(r, t, n);
|
|
93
|
+
case s.Date:
|
|
94
|
+
return u.default(h(r), t, n);
|
|
95
|
+
case s.Address:
|
|
96
|
+
return u.address(r, t, n);
|
|
97
|
+
case s.Price:
|
|
98
|
+
return u.price(r, t, n);
|
|
99
|
+
case s.Password:
|
|
100
|
+
return u.default(F(r), t, n);
|
|
101
|
+
case s.StringArray:
|
|
102
|
+
return u.stringArray(r, t, n);
|
|
103
|
+
default:
|
|
104
|
+
return u.default(r, t, n);
|
|
105
|
+
}
|
|
106
|
+
}, x = async (e, t, r) => {
|
|
107
|
+
switch (r) {
|
|
108
|
+
case f.JSON:
|
|
109
|
+
let n = {};
|
|
110
|
+
for (const a in e)
|
|
111
|
+
n = await Y(
|
|
112
|
+
t[a],
|
|
113
|
+
n,
|
|
114
|
+
e[a],
|
|
115
|
+
a
|
|
116
|
+
);
|
|
117
|
+
return n;
|
|
118
|
+
case f.FormData:
|
|
119
|
+
default:
|
|
120
|
+
let c = new FormData();
|
|
121
|
+
for (const a in e)
|
|
122
|
+
c = await q(
|
|
123
|
+
t[a],
|
|
124
|
+
c,
|
|
125
|
+
e[a],
|
|
126
|
+
a
|
|
127
|
+
);
|
|
128
|
+
return c;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
function G(e) {
|
|
132
|
+
const t = $(
|
|
133
|
+
{}
|
|
134
|
+
);
|
|
135
|
+
return { form: t, setValue: (o, d) => {
|
|
136
|
+
t[o] = d;
|
|
137
|
+
}, setValues: (o) => {
|
|
138
|
+
for (const [d, b] of Object.entries(o))
|
|
139
|
+
t[d] = b;
|
|
140
|
+
}, getValue: (o) => t[o], reset: () => {
|
|
141
|
+
for (const o in t)
|
|
142
|
+
delete t[o];
|
|
143
|
+
}, submit: async () => {
|
|
144
|
+
const o = {
|
|
145
|
+
...t
|
|
146
|
+
};
|
|
147
|
+
return e.id && e.id.value && (o.id = e.id.value), {
|
|
148
|
+
isValid: !0,
|
|
149
|
+
form: await x(
|
|
150
|
+
o,
|
|
151
|
+
e.schema,
|
|
152
|
+
e.format ?? f.JSON
|
|
153
|
+
)
|
|
154
|
+
};
|
|
155
|
+
} };
|
|
156
|
+
}
|
|
157
|
+
const Z = /* @__PURE__ */ C({
|
|
158
|
+
name: "TForm",
|
|
159
|
+
__name: "Form",
|
|
160
|
+
props: {
|
|
161
|
+
id: { default: "" },
|
|
162
|
+
schema: { default: () => ({}) },
|
|
163
|
+
formStyle: { default: () => ({}) },
|
|
164
|
+
showSubmit: { type: Boolean, default: !1 },
|
|
165
|
+
submitLabel: { default: "Submit" },
|
|
166
|
+
buttonProps: {},
|
|
167
|
+
buttonVariant: { default: M.PRIMARY },
|
|
168
|
+
submissionFormat: { default: f.FormData },
|
|
169
|
+
buttonWrapperClasses: { default: "" }
|
|
170
|
+
},
|
|
171
|
+
emits: ["submit", "change"],
|
|
172
|
+
setup(e, { expose: t, emit: r }) {
|
|
173
|
+
const n = e, c = r, a = _(), { form: m, getValue: o, setValue: d, setValues: b, reset: g, submit: D } = G({
|
|
174
|
+
id: A(() => n.id),
|
|
175
|
+
schema: n.schema,
|
|
176
|
+
format: n.submissionFormat
|
|
177
|
+
}), V = async () => {
|
|
178
|
+
const l = await D();
|
|
179
|
+
return c("submit", l), l;
|
|
180
|
+
};
|
|
181
|
+
return N(m, (l) => {
|
|
182
|
+
c("change", l);
|
|
183
|
+
}), P("formStyle", n.formStyle), t({
|
|
184
|
+
submit: V,
|
|
185
|
+
reset: g,
|
|
186
|
+
setValues: b,
|
|
187
|
+
form: m,
|
|
188
|
+
setValue: d,
|
|
189
|
+
getValue: o
|
|
190
|
+
}), (l, H) => {
|
|
191
|
+
const y = O("t-button");
|
|
192
|
+
return B(), J("form", {
|
|
193
|
+
onSubmit: V,
|
|
194
|
+
ref_key: "formReference",
|
|
195
|
+
ref: a
|
|
196
|
+
}, [
|
|
197
|
+
E(l.$slots, "default", { form: R(m) }),
|
|
198
|
+
T("div", {
|
|
199
|
+
class: W([n.buttonWrapperClasses])
|
|
200
|
+
}, [
|
|
201
|
+
j(z(y, L(n.buttonProps, {
|
|
202
|
+
type: "submit",
|
|
203
|
+
class: "mt-4",
|
|
204
|
+
variant: n.buttonVariant,
|
|
205
|
+
label: n.submitLabel,
|
|
206
|
+
onClick: V
|
|
207
|
+
}), null, 16, ["variant", "label"]), [
|
|
208
|
+
[I, n.showSubmit]
|
|
209
|
+
])
|
|
210
|
+
], 2)
|
|
211
|
+
], 544);
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
export {
|
|
216
|
+
Z as _
|
|
217
|
+
};
|
package/dist/Link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-CUOLot0A.js";
|
|
2
|
+
import { p } from "./plugin-t2MeakcO.js";
|
|
3
3
|
export {
|
|
4
4
|
i as Link,
|
|
5
5
|
p as LinkPlugin
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as d, computed as c, resolveComponent as m, openBlock as o, createBlock as r, resolveDynamicComponent as p, unref as a, withCtx as f, renderSlot as u, createElementBlock as _, Fragment as y, createTextVNode as k, toDisplayString as b, createCommentVNode as g } from "vue";
|
|
2
|
+
import { L as t } from "./ui-BC6H9E93.js";
|
|
3
|
+
import { RouterLink as h } from "vue-router";
|
|
4
|
+
const w = /* @__PURE__ */ d({
|
|
5
|
+
name: "TLink",
|
|
6
|
+
__name: "Link",
|
|
7
|
+
props: {
|
|
8
|
+
to: {},
|
|
9
|
+
href: {},
|
|
10
|
+
type: { default: t.Default },
|
|
11
|
+
label: { default: "" },
|
|
12
|
+
target: { default: "_self" },
|
|
13
|
+
disabled: { type: Boolean, default: !1 }
|
|
14
|
+
},
|
|
15
|
+
setup(l, { emit: v }) {
|
|
16
|
+
const e = l, i = c(() => {
|
|
17
|
+
switch (e.type) {
|
|
18
|
+
case t.Router:
|
|
19
|
+
return h;
|
|
20
|
+
default:
|
|
21
|
+
return "a";
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return (n, C) => {
|
|
25
|
+
const s = m("t-icon");
|
|
26
|
+
return o(), r(p(i.value), {
|
|
27
|
+
href: e.type === a(t).Default ? e.href : void 0,
|
|
28
|
+
to: e.type === a(t).Router ? e.to : void 0,
|
|
29
|
+
disabled: e.disabled,
|
|
30
|
+
target: e.target,
|
|
31
|
+
class: "color-caipira-primary-inverted underline font-bold inline-flex items-baseline"
|
|
32
|
+
}, {
|
|
33
|
+
default: f(() => [
|
|
34
|
+
n.$slots.default ? u(n.$slots, "default", { key: 0 }) : (o(), _(y, { key: 1 }, [
|
|
35
|
+
k(b(e.label), 1)
|
|
36
|
+
], 64)),
|
|
37
|
+
e.target === "_blank" ? (o(), r(s, {
|
|
38
|
+
key: 2,
|
|
39
|
+
size: 15,
|
|
40
|
+
class: "ml-1",
|
|
41
|
+
icon: "open-in-new"
|
|
42
|
+
})) : g("", !0)
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 8, ["href", "to", "disabled", "target"]);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
w as _
|
|
51
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './ProgressLine.css';
|
|
2
|
-
import { defineComponent as d, ref as u, watch as c, computed as
|
|
2
|
+
import { defineComponent as d, ref as u, watch as c, computed as f, openBlock as l, createElementBlock as o, normalizeClass as t, createElementVNode as s, renderSlot as h, toDisplayString as v, createCommentVNode as p } from "vue";
|
|
3
3
|
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const m = ["aria-valuenow"], _ = ["height"], C = ["rx", "fill"], b = ["width", "rx", "fill"], w = {
|
|
5
5
|
key: 1,
|
|
@@ -12,8 +12,8 @@ const m = ["aria-valuenow"], _ = ["height"], C = ["rx", "fill"], b = ["width", "
|
|
|
12
12
|
height: { default: 10 },
|
|
13
13
|
borderRadius: { default: 2 },
|
|
14
14
|
showPercentage: { type: Boolean, default: !0 },
|
|
15
|
-
svgClass: {},
|
|
16
|
-
labelClass: {},
|
|
15
|
+
svgClass: { default: "" },
|
|
16
|
+
labelClass: { default: "" },
|
|
17
17
|
overColor: { default: "var(--caipira-red)" },
|
|
18
18
|
progressColor: { default: "var(--caipira-blue)" },
|
|
19
19
|
finishedColor: { default: "var(--caipira-green)" },
|
|
@@ -28,15 +28,15 @@ const m = ["aria-valuenow"], _ = ["height"], C = ["rx", "fill"], b = ["width", "
|
|
|
28
28
|
},
|
|
29
29
|
{ immediate: !0 }
|
|
30
30
|
);
|
|
31
|
-
const n =
|
|
32
|
-
return (r, k) => (
|
|
31
|
+
const n = f(() => a.value === 100 ? e.finishedColor : a.value > 100 ? e.overColor : e.progressColor);
|
|
32
|
+
return (r, k) => (l(), o("div", {
|
|
33
33
|
class: "flex items-center",
|
|
34
34
|
role: "progressbar",
|
|
35
35
|
"aria-valuemax": "100",
|
|
36
36
|
"aria-valuemin": "0",
|
|
37
37
|
"aria-valuenow": a.value
|
|
38
38
|
}, [
|
|
39
|
-
(
|
|
39
|
+
(l(), o("svg", {
|
|
40
40
|
width: "100%",
|
|
41
41
|
height: e.height,
|
|
42
42
|
class: t(["inline-block flex-grow", e.svgClass])
|
|
@@ -54,15 +54,15 @@ const m = ["aria-valuenow"], _ = ["height"], C = ["rx", "fill"], b = ["width", "
|
|
|
54
54
|
fill: n.value
|
|
55
55
|
}, null, 8, b)
|
|
56
56
|
], 10, _)),
|
|
57
|
-
e.showPercentage ? (
|
|
57
|
+
e.showPercentage ? (l(), o("div", {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: t(["flex-none ml-2", r.labelClass])
|
|
60
60
|
}, [
|
|
61
|
-
r.$slots.label ?
|
|
61
|
+
r.$slots.label ? h(r.$slots, "label", { key: 0 }, void 0, !0) : (l(), o("span", w, v(a.value) + "% ", 1))
|
|
62
62
|
], 2)) : p("", !0)
|
|
63
63
|
], 8, m));
|
|
64
64
|
}
|
|
65
|
-
}), B = /* @__PURE__ */ g(x, [["__scopeId", "data-v-
|
|
65
|
+
}), B = /* @__PURE__ */ g(x, [["__scopeId", "data-v-e90993ab"]]);
|
|
66
66
|
export {
|
|
67
67
|
B as P
|
|
68
68
|
};
|
package/dist/ProgressLine.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
svg rect[data-v-
|
|
1
|
+
svg rect[data-v-e90993ab]{transition:width .3s linear}
|
package/dist/ProgressLine.js
CHANGED
package/dist/Tab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Tab.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as b } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Tab.vue_vue_type_script_setup_true_lang-Bk9igf63.js";
|
|
2
|
+
import { p as b } from "./plugin-BV-k02s1.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Tab,
|
|
5
5
|
b as TabPlugin
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as d, ref as m, openBlock as t, createElementBlock as a, Fragment as o, createElementVNode as n, renderList as c, normalizeClass as i, toDisplayString as b, renderSlot as _, createCommentVNode as f } from "vue";
|
|
2
|
+
const k = {
|
|
3
3
|
class: "flex flex-col md:flex-row flex-wrap rounded-sm list-none mb-6 pt-1 bg-caipira-tertiary",
|
|
4
4
|
role: "tablist"
|
|
5
|
-
},
|
|
5
|
+
}, v = ["onClick"], y = {
|
|
6
6
|
class: "tab-content",
|
|
7
7
|
id: "tabs-tabContent"
|
|
8
|
-
},
|
|
8
|
+
}, x = /* @__PURE__ */ d({
|
|
9
9
|
name: "TTab",
|
|
10
10
|
__name: "Tab",
|
|
11
11
|
props: {
|
|
12
12
|
tabs: { default: () => [] }
|
|
13
13
|
},
|
|
14
14
|
setup(p) {
|
|
15
|
-
const s = p, l =
|
|
16
|
-
return (u, h) => (t(), a(
|
|
17
|
-
|
|
18
|
-
(t(!0), a(
|
|
15
|
+
const s = p, l = m(0);
|
|
16
|
+
return (u, h) => (t(), a(o, null, [
|
|
17
|
+
n("ul", k, [
|
|
18
|
+
(t(!0), a(o, null, c(s.tabs, (r, e) => (t(), a("li", {
|
|
19
19
|
role: "presentation",
|
|
20
20
|
key: e
|
|
21
21
|
}, [
|
|
22
|
-
|
|
22
|
+
n("a", {
|
|
23
23
|
class: i(["block uppercase py-2 px-4", {
|
|
24
24
|
"bg-caipira-primary": e === l.value
|
|
25
25
|
}]),
|
|
26
26
|
href: "#",
|
|
27
27
|
role: "tab",
|
|
28
28
|
"aria-selected": "true",
|
|
29
|
-
onClick: (
|
|
30
|
-
},
|
|
29
|
+
onClick: (C) => l.value = e
|
|
30
|
+
}, b(r?.title), 11, v)
|
|
31
31
|
]))), 128))
|
|
32
32
|
]),
|
|
33
|
-
|
|
34
|
-
(t(!0), a(
|
|
33
|
+
n("div", y, [
|
|
34
|
+
(t(!0), a(o, null, c(s.tabs, (r, e) => (t(), a("div", {
|
|
35
35
|
key: e,
|
|
36
36
|
class: i(["", { hidden: e !== l.value }]),
|
|
37
37
|
role: "tabpanel"
|
|
38
38
|
}, [
|
|
39
|
-
_(u.$slots, r.slot)
|
|
39
|
+
r?.slot ? _(u.$slots, r.slot, { key: 0 }) : f("", !0)
|
|
40
40
|
], 2))), 128))
|
|
41
41
|
])
|
|
42
42
|
], 64));
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
x as _
|
|
47
47
|
};
|
package/dist/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-DatNytmx.js";
|
|
2
|
+
import { p } from "./plugin-DXjluPIV.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Tag,
|
|
5
5
|
p as TagPlugin
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent as _, resolveComponent as m, openBlock as l, createElementBlock as r, normalizeStyle as k, normalizeClass as p, createElementVNode as v, renderSlot as z, unref as s, toDisplayString as g, createBlock as u, withCtx as h, createVNode as B, createCommentVNode as S } from "vue";
|
|
2
|
+
import { a as o } from "./ui-BC6H9E93.js";
|
|
3
|
+
const b = ["role"], E = { class: "px-2" }, $ = { key: 0 }, N = /* @__PURE__ */ _({
|
|
4
|
+
name: "TTag",
|
|
5
|
+
__name: "Tag",
|
|
6
|
+
props: {
|
|
7
|
+
text: { default: "" },
|
|
8
|
+
size: { default: o.Default },
|
|
9
|
+
role: { default: "" },
|
|
10
|
+
color: { default: "" },
|
|
11
|
+
confirmClose: { type: Boolean, default: !1 },
|
|
12
|
+
hasCloseButton: { type: Boolean, default: !1 }
|
|
13
|
+
},
|
|
14
|
+
emits: ["close"],
|
|
15
|
+
setup(f, { emit: d }) {
|
|
16
|
+
const e = f, i = d, x = (n, t) => {
|
|
17
|
+
n.stopPropagation(), t();
|
|
18
|
+
};
|
|
19
|
+
return (n, t) => {
|
|
20
|
+
const c = m("t-button"), C = m("t-popconfirm");
|
|
21
|
+
return l(), r("div", {
|
|
22
|
+
style: k(`background-color:${e.color}`),
|
|
23
|
+
class: p([{
|
|
24
|
+
"bg-caipira-primary-inverted": !e.color
|
|
25
|
+
}, "w-max inline-flex items-stretch rounded-sm select-none color-caipira-primary"]),
|
|
26
|
+
role: e.role
|
|
27
|
+
}, [
|
|
28
|
+
v("div", E, [
|
|
29
|
+
n.$slots.default ? z(n.$slots, "default", { key: 0 }) : (l(), r("span", {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: p({
|
|
32
|
+
"text-xs": e.size === s(o).ExtraSmall,
|
|
33
|
+
"text-sm": e.size === s(o).Small,
|
|
34
|
+
"text-base": e.size === s(o).Default,
|
|
35
|
+
"text-lg": e.size === s(o).Large,
|
|
36
|
+
"text-xl": e.size === s(o).ExtraLarge
|
|
37
|
+
})
|
|
38
|
+
}, g(e.text), 3))
|
|
39
|
+
]),
|
|
40
|
+
e.hasCloseButton ? (l(), r("div", $, [
|
|
41
|
+
e.confirmClose ? (l(), u(C, {
|
|
42
|
+
key: 0,
|
|
43
|
+
message: "Are you sure you want to remove it?",
|
|
44
|
+
class: "h-full",
|
|
45
|
+
onConfirm: t[0] || (t[0] = (a) => i("close"))
|
|
46
|
+
}, {
|
|
47
|
+
default: h(({ onTogglePopover: a }) => [
|
|
48
|
+
B(c, {
|
|
49
|
+
variant: "transparent",
|
|
50
|
+
hover: !0,
|
|
51
|
+
icon: "close",
|
|
52
|
+
size: "",
|
|
53
|
+
class: "px-1.5 h-full",
|
|
54
|
+
onClick: (y) => x(y, a)
|
|
55
|
+
}, null, 8, ["onClick"])
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
})) : (l(), u(c, {
|
|
59
|
+
key: 1,
|
|
60
|
+
variant: "transparent",
|
|
61
|
+
icon: "close",
|
|
62
|
+
size: "sm",
|
|
63
|
+
class: "px-1.5 h-full",
|
|
64
|
+
onClick: t[1] || (t[1] = (a) => i("close"))
|
|
65
|
+
}))
|
|
66
|
+
])) : S("", !0)
|
|
67
|
+
], 14, b);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
N as _
|
|
73
|
+
};
|
package/dist/components.js
CHANGED
|
@@ -6,7 +6,7 @@ import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPu
|
|
|
6
6
|
import { D as u } from "./Drawer-omdZnBPG.js";
|
|
7
7
|
import { _ as l } from "./Dropdown.vue_vue_type_script_setup_true_lang-pjG__bX2.js";
|
|
8
8
|
import { _ as h } from "./FileDrop.vue_vue_type_script_setup_true_lang-DLEH_LLX.js";
|
|
9
|
-
import { _ as T } from "./Form.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as T } from "./Form.vue_vue_type_script_setup_true_lang-CaCu47jH.js";
|
|
10
10
|
import { _ as y } from "./FormItem.vue_vue_type_script_setup_true_lang-CjW-P8Xf.js";
|
|
11
11
|
import { _ as C } 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-n_0200p7.js";
|
|
@@ -28,19 +28,19 @@ import { _ as $ } from "./InputSelect.vue_vue_type_script_setup_true_lang-vCtwK7
|
|
|
28
28
|
import { _ as or } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js";
|
|
29
29
|
import { _ as er } from "./InputText.vue_vue_type_script_setup_true_lang-Dyvx9Ob-.js";
|
|
30
30
|
import { _ as pr } from "./InputTextarea.vue_vue_type_script_setup_true_lang-DRo5eIw4.js";
|
|
31
|
-
import { _ as sr } from "./Link.vue_vue_type_script_setup_true_lang-
|
|
31
|
+
import { _ as sr } from "./Link.vue_vue_type_script_setup_true_lang-CUOLot0A.js";
|
|
32
32
|
import { _ as fr } from "./Modal.vue_vue_type_script_setup_true_lang-aQ-G7tuI.js";
|
|
33
33
|
import { _ as nr } from "./ModalForm.vue_vue_type_script_setup_true_lang-B4dU1AzJ.js";
|
|
34
34
|
import { _ as ur } from "./Pagination.vue_vue_type_script_setup_true_lang-PLZQJUd0.js";
|
|
35
35
|
import { _ as lr } from "./Popconfirm.vue_vue_type_script_setup_true_lang-XyjBUx0p.js";
|
|
36
36
|
import { _ as hr } from "./Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js";
|
|
37
37
|
import { P as Tr } from "./ProgressCircle-BY2eeyGY.js";
|
|
38
|
-
import { P as yr } from "./ProgressLine-
|
|
38
|
+
import { P as yr } from "./ProgressLine-bKh0terH.js";
|
|
39
39
|
import { _ as Cr } from "./SensitiveInfo.vue_vue_type_script_setup_true_lang-lCdRDxvZ.js";
|
|
40
40
|
import { _ as Gr } from "./Skeleton.vue_vue_type_script_setup_true_lang-BZItfVoN.js";
|
|
41
|
-
import { _ as gr } from "./Tab.vue_vue_type_script_setup_true_lang-
|
|
41
|
+
import { _ as gr } from "./Tab.vue_vue_type_script_setup_true_lang-Bk9igf63.js";
|
|
42
42
|
import { T as vr } from "./Table-C0Sr_Lfm.js";
|
|
43
|
-
import { _ as Fr } from "./Tag.vue_vue_type_script_setup_true_lang-
|
|
43
|
+
import { _ as Fr } from "./Tag.vue_vue_type_script_setup_true_lang-DatNytmx.js";
|
|
44
44
|
import { _ as Br } from "./Toast.vue_vue_type_script_setup_true_lang-Dezwl4qF.js";
|
|
45
45
|
export {
|
|
46
46
|
e as Avatar,
|
package/dist/form2.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as s } from "./transformers-DLw_G6c6.js";
|
|
2
|
+
import { C as m } from "./crud-n73o4CzO.js";
|
|
2
3
|
const e = (r) => {
|
|
3
|
-
const
|
|
4
|
+
const a = new FormData();
|
|
4
5
|
if (r)
|
|
5
|
-
for (const
|
|
6
|
-
r[
|
|
7
|
-
|
|
8
|
-
}) :
|
|
9
|
-
return
|
|
6
|
+
for (const o in r)
|
|
7
|
+
r[o] !== null && r[o] !== void 0 && (Array.isArray(r[o]) ? r[o].forEach((t) => {
|
|
8
|
+
a.append(`${o}[]`, t);
|
|
9
|
+
}) : a.append(o, r[o]));
|
|
10
|
+
return a;
|
|
10
11
|
}, f = (r) => {
|
|
11
|
-
const
|
|
12
|
-
return r.forEach((
|
|
13
|
-
|
|
14
|
-
}),
|
|
12
|
+
const a = {};
|
|
13
|
+
return r.forEach((o, t) => {
|
|
14
|
+
a[t] = o;
|
|
15
|
+
}), a;
|
|
15
16
|
};
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
m as CrudService,
|
|
18
19
|
f as formDataToJson,
|
|
19
|
-
e as jsonToFormData
|
|
20
|
+
e as jsonToFormData,
|
|
21
|
+
s as transformers
|
|
20
22
|
};
|
|
@@ -12,8 +12,8 @@ import "./Drawer-omdZnBPG.js";
|
|
|
12
12
|
import { p as m } from "./plugin-DRcJuXpS.js";
|
|
13
13
|
import { p as u } from "./plugin-CNqL90UL.js";
|
|
14
14
|
import { p as l } from "./plugin-BscWXR9h.js";
|
|
15
|
-
import "./Form.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { p as t } from "./plugin-
|
|
15
|
+
import "./Form.vue_vue_type_script_setup_true_lang-CaCu47jH.js";
|
|
16
|
+
import { p as t } from "./plugin-uMlQixCx.js";
|
|
17
17
|
import { p as g } from "./plugin-DLFPglIt.js";
|
|
18
18
|
import { p as a } from "./plugin-Buc7eEox.js";
|
|
19
19
|
import { p as s } from "./plugin-D9k93Uu1.js";
|
|
@@ -37,8 +37,8 @@ import { p as C } from "./plugin-cVdTR_s6.js";
|
|
|
37
37
|
import { p as G } from "./plugin-DT7LVAli.js";
|
|
38
38
|
import { p as k } from "./plugin-Bbt6pP0l.js";
|
|
39
39
|
import { p as w } from "./plugin-BQFwx3d5.js";
|
|
40
|
-
import "./Link.vue_vue_type_script_setup_true_lang-
|
|
41
|
-
import { p as x } from "./plugin-
|
|
40
|
+
import "./Link.vue_vue_type_script_setup_true_lang-CUOLot0A.js";
|
|
41
|
+
import { p as x } from "./plugin-t2MeakcO.js";
|
|
42
42
|
import { p as D } from "./plugin-GUvrG7aO.js";
|
|
43
43
|
import { p as F } from "./plugin-DmPqmScT.js";
|
|
44
44
|
import { p as L } from "./plugin-YUomn9tF.js";
|
|
@@ -48,15 +48,15 @@ import "./Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js";
|
|
|
48
48
|
import { p as _ } from "./plugin-CdJ1wBq2.js";
|
|
49
49
|
import "./ProgressCircle-BY2eeyGY.js";
|
|
50
50
|
import { p as j } from "./plugin-DXSsGfRI.js";
|
|
51
|
-
import "./ProgressLine-
|
|
52
|
-
import { p as A } from "./plugin-
|
|
51
|
+
import "./ProgressLine-bKh0terH.js";
|
|
52
|
+
import { p as A } from "./plugin-VQZG4jD0.js";
|
|
53
53
|
import { p as B } from "./plugin-cvHKUGjm.js";
|
|
54
54
|
import { p as z } from "./plugin-B9wG8DUw.js";
|
|
55
|
-
import { p as E } from "./plugin-
|
|
55
|
+
import { p as E } from "./plugin-BV-k02s1.js";
|
|
56
56
|
import "./Table-C0Sr_Lfm.js";
|
|
57
57
|
import { p as O } from "./plugin-CTMcmMdr.js";
|
|
58
|
-
import "./Tag.vue_vue_type_script_setup_true_lang-
|
|
59
|
-
import { p as q } from "./plugin-
|
|
58
|
+
import "./Tag.vue_vue_type_script_setup_true_lang-DatNytmx.js";
|
|
59
|
+
import { p as q } from "./plugin-DXjluPIV.js";
|
|
60
60
|
import { p as R } from "./plugin-Dn96hI0e.js";
|
|
61
61
|
const Vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62
62
|
__proto__: null,
|