@caipira/tamandua 0.0.43 → 0.0.44
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/{Button-CAiIEdkK.js → Button-DxCwFAWy.js} +21 -23
- package/dist/Button.css +1 -1
- package/dist/Button.js +2 -2
- package/dist/{Drawer-omdZnBPG.js → Drawer-KwhQs5WA.js} +8 -8
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CV7IVjE4.js +84 -0
- package/dist/InputCheckbox.css +1 -0
- package/dist/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_script_setup_true_lang-Bh8HA3Ay.js → InputCheckbox.vue_vue_type_style_index_0_lang-BONJ9l1D.js} +1 -0
- package/dist/InputMultiplier.js +2 -2
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BFDBZk2M.js +66 -0
- package/dist/InputRadio.css +1 -0
- package/dist/InputRadio.js +2 -2
- package/dist/{InputRadio.vue_vue_type_script_setup_true_lang-Cu7lzDAh.js → InputRadio.vue_vue_type_style_index_0_lang-IqPZ9Qzl.js} +1 -0
- package/dist/InputText.js +2 -2
- package/dist/InputText.vue_vue_type_script_setup_true_lang-D4nIMRiz.js +39 -0
- package/dist/{ProgressCircle-BY2eeyGY.js → ProgressCircle-Cpmi2CpO.js} +4 -4
- package/dist/ProgressCircle.css +1 -1
- package/dist/ProgressCircle.js +2 -2
- package/dist/components.js +8 -8
- package/dist/index.css +1 -29
- package/dist/{plugin-DLFPglIt.js → plugin-BjXXC0b-.js} +1 -1
- package/dist/{plugin-DRcJuXpS.js → plugin-CrUFQdOK.js} +1 -1
- package/dist/{plugin-Bog7k3Qf.js → plugin-D6dx276z.js} +1 -1
- package/dist/{plugin-Bbt6pP0l.js → plugin-DDUNw6fL.js} +1 -1
- package/dist/{plugin-DcWjzc_X.js → plugin-DQ6digu2.js} +1 -1
- package/dist/{plugin-DLkeyKDM.js → plugin-Dz7BPW4D.js} +1 -1
- package/dist/{plugin-DXSsGfRI.js → plugin-MAzqwXys.js} +1 -1
- package/dist/{plugin-U6NcpOUL.js → plugin-WcNmSb_y.js} +1 -1
- package/dist/{plugins-DXwzOgCo.js → plugins-Dwz7OLJO.js} +15 -13
- package/dist/plugins.js +91 -89
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +47 -6
- package/dist/types/components/ChartTreemap/ChartTreemap.vue.d.ts +12 -3
- package/dist/types/components/Drawer/Drawer.vue.d.ts +44 -2
- package/dist/types/components/GraphyLabel/GraphyLabel.vue.d.ts +12 -3
- package/dist/types/components/GraphySubtitle/GraphySubtitle.vue.d.ts +25 -2
- package/dist/types/components/GraphyTitle/GraphyTitle.vue.d.ts +12 -3
- package/dist/types/components/Icon/Icon.vue.d.ts +30 -3
- package/dist/types/components/InputCheckbox/InputCheckbox.vue.d.ts +37 -2
- package/dist/types/components/InputColor/InputColor.vue.d.ts +32 -2
- package/dist/types/components/InputDate/InputDate.vue.d.ts +16 -3
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +40 -2
- package/dist/types/components/InputRadio/InputRadio.vue.d.ts +12 -3
- package/dist/types/components/InputRadio/InputRadioGroup.vue.d.ts +29 -2
- package/dist/types/components/InputSwitch/InputSwitch.vue.d.ts +32 -2
- package/dist/types/components/InputText/InputText.vue.d.ts +46 -38
- package/dist/types/components/InputText/types.d.ts +0 -2
- package/dist/types/components/InputTextarea/InputTextarea.vue.d.ts +38 -2
- package/dist/types/components/Modal/Modal.vue.d.ts +49 -2
- package/dist/types/components/Pagination/Pagination.vue.d.ts +39 -2
- package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +33 -2
- package/dist/types/components/Popover/Popover.vue.d.ts +9 -9
- package/dist/types/components/ProgressCircle/ProgressCircle.vue.d.ts +37 -2
- package/package.json +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CjW-P8Xf.js +0 -80
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BJJQTQzF.js +0 -74
- package/dist/InputText.vue_vue_type_script_setup_true_lang-Dyvx9Ob-.js +0 -40
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +0 -14
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './Button.css';
|
|
2
|
-
import { defineComponent as _, useSlots as z,
|
|
2
|
+
import { defineComponent as _, useSlots as z, ref as v, computed as p, resolveComponent as A, openBlock as s, createBlock as y, resolveDynamicComponent as U, normalizeClass as D, unref as a, withCtx as L, renderSlot as k, mergeProps as F, createCommentVNode as m, createElementBlock as h, Fragment as P, createTextVNode as M, toDisplayString as G } from "vue";
|
|
3
3
|
import { c as i, a as t, b as d, B as r } from "./ui-BC6H9E93.js";
|
|
4
4
|
import { g as b } from "./index-CVD_wAsU.js";
|
|
5
5
|
import "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
6
|
+
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const W = ["multiple"], V = /* @__PURE__ */ _({
|
|
8
8
|
name: "TButton",
|
|
9
9
|
__name: "Button",
|
|
10
10
|
props: {
|
|
@@ -23,9 +23,7 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
|
|
|
23
23
|
},
|
|
24
24
|
emits: ["upload"],
|
|
25
25
|
setup(g, { expose: S, emit: x }) {
|
|
26
|
-
const e = g, E = x, T = z()
|
|
27
|
-
A();
|
|
28
|
-
const f = v(), u = v(null), B = p(() => {
|
|
26
|
+
const e = g, E = x, T = z(), f = v(), u = v(null), B = p(() => {
|
|
29
27
|
switch (e.type) {
|
|
30
28
|
case i.SUBMIT:
|
|
31
29
|
return "submit";
|
|
@@ -34,7 +32,7 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
|
|
|
34
32
|
default:
|
|
35
33
|
return "button";
|
|
36
34
|
}
|
|
37
|
-
}),
|
|
35
|
+
}), R = p(() => e.type === i.SUBMIT ? e.label : void 0), w = p(() => {
|
|
38
36
|
switch (e.type) {
|
|
39
37
|
case i.SUBMIT:
|
|
40
38
|
return "input";
|
|
@@ -43,7 +41,7 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
|
|
|
43
41
|
default:
|
|
44
42
|
return "button";
|
|
45
43
|
}
|
|
46
|
-
}),
|
|
44
|
+
}), C = (l) => {
|
|
47
45
|
if (e.type === i.SUBMIT && l.preventDefault(), e.type === i.FILE && f.value?.click(), e.animate) {
|
|
48
46
|
let o = null;
|
|
49
47
|
e.animate.target === "icon" && (o = u.value?.reference), o && b.to(o, {
|
|
@@ -55,7 +53,7 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
|
|
|
55
53
|
}
|
|
56
54
|
});
|
|
57
55
|
}
|
|
58
|
-
},
|
|
56
|
+
}, I = (l) => {
|
|
59
57
|
l.stopPropagation();
|
|
60
58
|
const c = l.target.files;
|
|
61
59
|
!c || !c.length || E("upload", c);
|
|
@@ -76,12 +74,12 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
|
|
|
76
74
|
}
|
|
77
75
|
}), n = p(() => !!e.label || !!T.default);
|
|
78
76
|
return S({ iconReference: u }), (l, o) => {
|
|
79
|
-
const c =
|
|
80
|
-
return s(), y(
|
|
77
|
+
const c = A("t-icon");
|
|
78
|
+
return s(), y(U(w.value), {
|
|
81
79
|
type: B.value,
|
|
82
|
-
value:
|
|
80
|
+
value: R.value,
|
|
83
81
|
disabled: e.disabled,
|
|
84
|
-
class:
|
|
82
|
+
class: D([{
|
|
85
83
|
// Size
|
|
86
84
|
"text-xs px-1 h-4": e.size === a(t).ExtraSmall,
|
|
87
85
|
"text-sm px-2 h-7": e.size === a(t).Small,
|
|
@@ -122,11 +120,11 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
|
|
|
122
120
|
"transparent-hover": e.variant === a(r).TRANSPARENT && e.hover
|
|
123
121
|
}, "input-outline flex items-center select-none whitespace-nowrap"]),
|
|
124
122
|
role: "button",
|
|
125
|
-
onClick:
|
|
123
|
+
onClick: C
|
|
126
124
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
|
|
129
|
-
e.icon ? (s(), y(c,
|
|
125
|
+
default: L(() => [
|
|
126
|
+
k(l.$slots, "default", {}, void 0, !0),
|
|
127
|
+
e.icon ? (s(), y(c, F({
|
|
130
128
|
key: 0,
|
|
131
129
|
ref_key: "iconReference",
|
|
132
130
|
ref: u,
|
|
@@ -140,8 +138,8 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
|
|
|
140
138
|
"mr-3": n.value && e.size === a(t).ExtraLarge
|
|
141
139
|
}
|
|
142
140
|
}, e.iconProps), null, 16, ["size", "icon", "class"])) : m("", !0),
|
|
143
|
-
e.label && e.type !== a(i).SUBMIT ? (s(), h(
|
|
144
|
-
G(
|
|
141
|
+
e.label && e.type !== a(i).SUBMIT ? (s(), h(P, { key: 1 }, [
|
|
142
|
+
M(G(e.label), 1)
|
|
145
143
|
], 64)) : m("", !0),
|
|
146
144
|
e.type === "file" ? (s(), h("input", {
|
|
147
145
|
key: 2,
|
|
@@ -150,14 +148,14 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
|
|
|
150
148
|
ref_key: "fileInput",
|
|
151
149
|
ref: f,
|
|
152
150
|
class: "hidden",
|
|
153
|
-
onChange:
|
|
154
|
-
}, null, 40,
|
|
151
|
+
onChange: I
|
|
152
|
+
}, null, 40, W)) : m("", !0)
|
|
155
153
|
]),
|
|
156
154
|
_: 3
|
|
157
155
|
}, 8, ["type", "value", "disabled", "class"]);
|
|
158
156
|
};
|
|
159
157
|
}
|
|
160
|
-
}),
|
|
158
|
+
}), H = /* @__PURE__ */ O(V, [["__scopeId", "data-v-0b2ecce0"]]);
|
|
161
159
|
export {
|
|
162
|
-
|
|
160
|
+
H as B
|
|
163
161
|
};
|
package/dist/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.transparent-hover[data-v-
|
|
1
|
+
.transparent-hover[data-v-0b2ecce0]:hover{background-color:rgb(from var(--caipira-primary) r g b / 45%)}
|
package/dist/Button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Drawer.css';
|
|
2
|
-
import { defineComponent as _, ref as y, onMounted as
|
|
2
|
+
import { defineComponent as _, ref as y, onMounted as b, resolveComponent as v, openBlock as o, createElementBlock as t, withKeys as h, createVNode as i, createElementVNode as a, normalizeClass as c, renderSlot as l, toDisplayString as w, createCommentVNode as d } from "vue";
|
|
3
3
|
import { _ as k } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
|
|
4
4
|
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const C = {
|
|
@@ -24,10 +24,10 @@ const C = {
|
|
|
24
24
|
const r = f, p = m, n = y(null), s = (e) => {
|
|
25
25
|
e.stopPropagation(), p("closed");
|
|
26
26
|
};
|
|
27
|
-
return
|
|
27
|
+
return b(() => {
|
|
28
28
|
n.value?.focus();
|
|
29
29
|
}), (e, B) => {
|
|
30
|
-
const u =
|
|
30
|
+
const u = v("t-icon");
|
|
31
31
|
return o(), t("div", {
|
|
32
32
|
class: "fixed inset-0 flex items-center z-10",
|
|
33
33
|
tabindex: "0",
|
|
@@ -35,8 +35,8 @@ const C = {
|
|
|
35
35
|
ref: n,
|
|
36
36
|
onKeyup: h(s, ["esc"])
|
|
37
37
|
}, [
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
i(k, { onClick: s }),
|
|
39
|
+
a("div", {
|
|
40
40
|
class: c(["w-[38rem] absolute inset-y-0 z-20 flex flex-col bg-caipira-primary drawer", {
|
|
41
41
|
"right-0 drop-shadow-lg": r.direction === "ltr",
|
|
42
42
|
"left-0": r.direction === "rtl"
|
|
@@ -46,14 +46,14 @@ const C = {
|
|
|
46
46
|
e.$slots.header ? (o(), t("div", $, [
|
|
47
47
|
l(e.$slots, "header", {}, void 0, !0)
|
|
48
48
|
])) : (o(), t("span", g, w(r.title), 1)),
|
|
49
|
-
|
|
49
|
+
i(u, {
|
|
50
50
|
icon: "close",
|
|
51
51
|
role: "button",
|
|
52
52
|
onClick: s,
|
|
53
53
|
size: "sm"
|
|
54
54
|
})
|
|
55
55
|
])) : d("", !0),
|
|
56
|
-
|
|
56
|
+
a("div", D, [
|
|
57
57
|
l(e.$slots, "default", {}, void 0, !0)
|
|
58
58
|
]),
|
|
59
59
|
e.$slots.footer ? (o(), t("div", {
|
|
@@ -68,7 +68,7 @@ const C = {
|
|
|
68
68
|
], 544);
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
}), H = /* @__PURE__ */ x(z, [["__scopeId", "data-v-
|
|
71
|
+
}), H = /* @__PURE__ */ x(z, [["__scopeId", "data-v-4b55ad69"]]);
|
|
72
72
|
export {
|
|
73
73
|
H as D
|
|
74
74
|
};
|
package/dist/Drawer.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.drawer[data-v-
|
|
1
|
+
.drawer[data-v-4b55ad69]{box-shadow:#0003 0 8px 10px -5px,#00000024 0 16px 24px 2px,#0000001f 0 6px 30px 5px}
|
package/dist/Drawer.js
CHANGED
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-CV7IVjE4.js";
|
|
2
|
+
import { p as t } from "./plugin-BjXXC0b-.js";
|
|
3
3
|
export {
|
|
4
4
|
r as FormItem,
|
|
5
5
|
t as FormItemPlugin
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { defineComponent as C, useSlots as I, inject as S, computed as p, provide as $, resolveComponent as B, openBlock as t, createElementBlock as l, createElementVNode as o, normalizeClass as s, Fragment as d, unref as a, renderSlot as n, createVNode as x, withCtx as y, renderList as F, toDisplayString as N, createCommentVNode as T } from "vue";
|
|
2
|
+
const V = { class: "w-full" }, w = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "float-right"
|
|
5
|
+
};
|
|
6
|
+
let E = 0;
|
|
7
|
+
const z = /* @__PURE__ */ C({
|
|
8
|
+
name: "TFormItem",
|
|
9
|
+
__name: "FormItem",
|
|
10
|
+
props: {
|
|
11
|
+
label: {},
|
|
12
|
+
rules: {},
|
|
13
|
+
inline: { type: Boolean, default: !0 }
|
|
14
|
+
},
|
|
15
|
+
setup(h) {
|
|
16
|
+
const u = h, i = `formitem_${++E}`, c = I(), f = [], r = S("formStyle", { label: "", input: "" }), v = p(() => {
|
|
17
|
+
if (!c || !c.default)
|
|
18
|
+
return !1;
|
|
19
|
+
const e = c?.default();
|
|
20
|
+
return e ? e[0].type.name : !1;
|
|
21
|
+
}), m = p(() => v.value === "TInputCheckbox"), _ = p(() => v.value === "TInputMultiplier");
|
|
22
|
+
return $("id", i), (e, M) => {
|
|
23
|
+
const b = B("t-graphy-label");
|
|
24
|
+
return t(), l("div", V, [
|
|
25
|
+
o("div", {
|
|
26
|
+
class: s(["flex gap-2 my-5", {
|
|
27
|
+
"flex-col": !u.inline,
|
|
28
|
+
"items-center": !_.value,
|
|
29
|
+
"items-start": _.value
|
|
30
|
+
}])
|
|
31
|
+
}, [
|
|
32
|
+
m.value ? (t(), l(d, { key: 0 }, [
|
|
33
|
+
o("div", {
|
|
34
|
+
class: s(["text-right", { [a(r).label]: !0 }])
|
|
35
|
+
}, [
|
|
36
|
+
n(e.$slots, "default")
|
|
37
|
+
], 2),
|
|
38
|
+
x(b, {
|
|
39
|
+
text: u.label,
|
|
40
|
+
for: i,
|
|
41
|
+
class: s([{
|
|
42
|
+
[a(r).input]: !0,
|
|
43
|
+
"cursor-pointer": m.value
|
|
44
|
+
}, "text-left"])
|
|
45
|
+
}, {
|
|
46
|
+
default: y(() => [
|
|
47
|
+
n(e.$slots, "label")
|
|
48
|
+
]),
|
|
49
|
+
_: 3
|
|
50
|
+
}, 8, ["text", "class"])
|
|
51
|
+
], 64)) : (t(), l(d, { key: 1 }, [
|
|
52
|
+
x(b, {
|
|
53
|
+
text: u.label,
|
|
54
|
+
for: i,
|
|
55
|
+
class: s([{
|
|
56
|
+
[a(r).label]: !0,
|
|
57
|
+
"cursor-pointer": m.value
|
|
58
|
+
}, "text-right"])
|
|
59
|
+
}, {
|
|
60
|
+
default: y(() => [
|
|
61
|
+
n(e.$slots, "label")
|
|
62
|
+
]),
|
|
63
|
+
_: 3
|
|
64
|
+
}, 8, ["text", "class"]),
|
|
65
|
+
o("div", {
|
|
66
|
+
class: s({ [a(r).input]: !0 })
|
|
67
|
+
}, [
|
|
68
|
+
n(e.$slots, "default")
|
|
69
|
+
], 2)
|
|
70
|
+
], 64))
|
|
71
|
+
], 2),
|
|
72
|
+
f ? (t(), l("div", w, [
|
|
73
|
+
(t(), l(d, null, F(f, (g, k) => o("span", {
|
|
74
|
+
class: "text-sm text-red-600",
|
|
75
|
+
key: k
|
|
76
|
+
}, N(g), 1)), 64))
|
|
77
|
+
])) : T("", !0)
|
|
78
|
+
]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
export {
|
|
83
|
+
z as _
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
&:not(.dark){.form-checkbox:checked{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20fill='%23fff'%3e%3cpath%20d='M12.207%204.793a1%201%200%20010%201.414l-5%205a1%201%200%2001-1.414%200l-2-2a1%201%200%20011.414-1.414L6.5%209.086l4.293-4.293a1%201%200%20011.414%200z'%20/%3e%3c/svg%3e")}.form-checkbox:indeterminate{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2016%2016'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M4%208h8'%20/%3e%3c/svg%3e")}}&.dark{.form-checkbox:checked{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20fill='%23000'%3e%3cpath%20d='M12.207%204.793a1%201%200%20010%201.414l-5%205a1%201%200%2001-1.414%200l-2-2a1%201%200%20011.414-1.414L6.5%209.086l4.293-4.293a1%201%200%20011.414%200z'%20/%3e%3c/svg%3e")}.form-checkbox:indeterminate{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2016%2016'%3e%3cpath%20stroke='%23000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M4%208h8'%20/%3e%3c/svg%3e")}}
|
package/dist/InputCheckbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./InputCheckbox.
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-BONJ9l1D.js";
|
|
2
|
+
import { p as t } from "./plugin-Dz7BPW4D.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputCheckbox,
|
|
5
5
|
t as InputCheckboxPlugin
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './InputCheckbox.css';
|
|
1
2
|
import { defineComponent as p, inject as s, ref as c, watch as m, withDirectives as f, openBlock as b, createElementBlock as v, mergeProps as h, unref as k, vModelCheckbox as y } from "vue";
|
|
2
3
|
const B = ["indeterminate", "id", "disabled"], I = /* @__PURE__ */ p({
|
|
3
4
|
name: "TInputCheckbox",
|
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-BFDBZk2M.js";
|
|
2
|
+
import { p as l } from "./plugin-WcNmSb_y.js";
|
|
3
3
|
export {
|
|
4
4
|
t as InputMultiplier,
|
|
5
5
|
l as InputMultiplierPlugin
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as _, 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 b, resolveDynamicComponent as I, mergeProps as h, toHandlers as B } from "vue";
|
|
2
|
+
const M = /* @__PURE__ */ _({
|
|
3
|
+
name: "TInputMultiplier",
|
|
4
|
+
__name: "InputMultiplier",
|
|
5
|
+
props: {
|
|
6
|
+
component: { default: "t-input-text" },
|
|
7
|
+
inputProps: { default: () => ({}) },
|
|
8
|
+
label: { default: "" },
|
|
9
|
+
listeners: { default: () => ({}) },
|
|
10
|
+
modelValue: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:model-value"],
|
|
13
|
+
setup(c, { emit: p }) {
|
|
14
|
+
const l = c, i = p, t = V([]), d = () => {
|
|
15
|
+
t.value.push("");
|
|
16
|
+
}, v = (e) => {
|
|
17
|
+
t.value = e;
|
|
18
|
+
}, f = (e) => {
|
|
19
|
+
t.value.splice(e, 1);
|
|
20
|
+
};
|
|
21
|
+
return r(
|
|
22
|
+
t,
|
|
23
|
+
(e) => {
|
|
24
|
+
i("update:model-value", e);
|
|
25
|
+
},
|
|
26
|
+
{ deep: !0 }
|
|
27
|
+
), r(
|
|
28
|
+
() => l.modelValue,
|
|
29
|
+
(e) => {
|
|
30
|
+
v(e ?? []);
|
|
31
|
+
},
|
|
32
|
+
{ immediate: !0 }
|
|
33
|
+
), (e, P) => {
|
|
34
|
+
const u = k("t-button");
|
|
35
|
+
return o(), a("div", null, [
|
|
36
|
+
m(u, {
|
|
37
|
+
label: "Add",
|
|
38
|
+
variant: "primary",
|
|
39
|
+
"is-outline": !0,
|
|
40
|
+
icon: "plus",
|
|
41
|
+
size: "sm",
|
|
42
|
+
onClick: d
|
|
43
|
+
}),
|
|
44
|
+
(o(!0), a(C, null, y(t.value, (g, n) => (o(), a("div", {
|
|
45
|
+
key: n,
|
|
46
|
+
class: "flex items-center justify-start mt-2"
|
|
47
|
+
}, [
|
|
48
|
+
(o(), b(I(l.component), h(l.inputProps, B(l.listeners), {
|
|
49
|
+
modelValue: t.value[n],
|
|
50
|
+
"onUpdate:modelValue": (s) => t.value[n] = s,
|
|
51
|
+
class: "my-1"
|
|
52
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])),
|
|
53
|
+
m(u, {
|
|
54
|
+
variant: "transparent",
|
|
55
|
+
icon: "close",
|
|
56
|
+
class: "ml-0.5",
|
|
57
|
+
onClick: (s) => f(n)
|
|
58
|
+
}, null, 8, ["onClick"])
|
|
59
|
+
]))), 128))
|
|
60
|
+
]);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
M as _
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
&:not(.dark){.form-radio:checked{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23000'%20viewBox='0%200%2016%2016'%3e%3ccircle%20cx='8'%20cy='8'%20r='3'/%3e%3c/svg%3e")}}&.dark{.form-radio:checked{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23fff'%20viewBox='0%200%2016%2016'%3e%3ccircle%20cx='8'%20cy='8'%20r='3'/%3e%3c/svg%3e")}}
|
package/dist/InputRadio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./InputRadio.
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-IqPZ9Qzl.js";
|
|
2
|
+
import { p as t } from "./plugin-D6dx276z.js";
|
|
3
3
|
export {
|
|
4
4
|
a as InputRadio,
|
|
5
5
|
t as InputRadioPlugin
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './InputRadio.css';
|
|
1
2
|
import { defineComponent as m, inject as e, openBlock as u, createElementBlock as b, createElementVNode as o, unref as r, toDisplayString as v } from "vue";
|
|
2
3
|
const h = { class: "h-9 inline-flex items-center" }, f = ["value", "name", "disabled", "checked"];
|
|
3
4
|
let _ = 0;
|
package/dist/InputText.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./InputText.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as r } from "./plugin-
|
|
1
|
+
import { _ as e } from "./InputText.vue_vue_type_script_setup_true_lang-D4nIMRiz.js";
|
|
2
|
+
import { p as r } from "./plugin-DDUNw6fL.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputText,
|
|
5
5
|
r as InputTextPlugin
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as r, mergeModels as u, useModel as c, inject as l, withDirectives as m, openBlock as f, createElementBlock as b, normalizeClass as v, unref as t, vModelDynamic as y } from "vue";
|
|
2
|
+
const _ = ["type", "id", "placeholder", "autocomplete", "disabled"], M = /* @__PURE__ */ r({
|
|
3
|
+
name: "TInputText",
|
|
4
|
+
__name: "InputText",
|
|
5
|
+
props: /* @__PURE__ */ u({
|
|
6
|
+
type: { default: "text" },
|
|
7
|
+
placeholder: { default: void 0 },
|
|
8
|
+
autocomplete: { default: void 0 },
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
disableStyle: { type: Boolean, default: !1 }
|
|
11
|
+
}, {
|
|
12
|
+
modelValue: {
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
}),
|
|
17
|
+
emits: /* @__PURE__ */ u(["keyup.enter"], ["update:modelValue"]),
|
|
18
|
+
setup(o, { emit: h }) {
|
|
19
|
+
const d = c(o, "modelValue"), e = o, p = l("id", ""), a = l("invalid", !1), i = l("validated", !1);
|
|
20
|
+
return (x, n) => m((f(), b("input", {
|
|
21
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => d.value = s),
|
|
22
|
+
type: e.type,
|
|
23
|
+
class: v({
|
|
24
|
+
"h-9 input-bg-color input-text-color input-outline border input-border input-roundness input-padding w-full": !e.disableStyle,
|
|
25
|
+
"border-red-500": !t(i) && t(a),
|
|
26
|
+
"border-emerald-500": t(i) && !t(a)
|
|
27
|
+
}),
|
|
28
|
+
id: t(p),
|
|
29
|
+
placeholder: e.placeholder,
|
|
30
|
+
autocomplete: e.autocomplete,
|
|
31
|
+
disabled: e.disabled
|
|
32
|
+
}, null, 10, _)), [
|
|
33
|
+
[y, d.value]
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
M as _
|
|
39
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './ProgressCircle.css';
|
|
2
|
-
import { defineComponent as c, computed as n, openBlock as o, createElementBlock as s, createElementVNode as l, renderSlot as h, createCommentVNode as
|
|
3
|
-
import { _ as
|
|
2
|
+
import { defineComponent as c, computed as n, openBlock as o, createElementBlock as s, createElementVNode as l, renderSlot as h, createCommentVNode as f } from "vue";
|
|
3
|
+
import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const k = { class: "relative w-min" }, _ = ["width", "heigh"], p = ["stroke-width", "stroke"], m = ["stroke-width", "stroke", "stroke-dashoffset"], v = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "absolute transform -translate-x-1/2 -translate-y-1/2 top-2/4 left-2/4"
|
|
@@ -49,10 +49,10 @@ const k = { class: "relative w-min" }, _ = ["width", "heigh"], p = ["stroke-widt
|
|
|
49
49
|
], 8, _)),
|
|
50
50
|
t.$slots.default ? (o(), s("div", v, [
|
|
51
51
|
h(t.$slots, "default", {}, void 0, !0)
|
|
52
|
-
])) :
|
|
52
|
+
])) : f("", !0)
|
|
53
53
|
]));
|
|
54
54
|
}
|
|
55
|
-
}), y = /* @__PURE__ */
|
|
55
|
+
}), y = /* @__PURE__ */ u(w, [["__scopeId", "data-v-b9d5ffed"]]);
|
|
56
56
|
export {
|
|
57
57
|
y as P
|
|
58
58
|
};
|
package/dist/ProgressCircle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
svg circle[data-v-
|
|
1
|
+
svg circle[data-v-b9d5ffed]{transition:stroke-dashoffset 1s linear}
|
package/dist/ProgressCircle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as o } from "./ProgressCircle-
|
|
2
|
-
import { p as P } from "./plugin-
|
|
1
|
+
import { P as o } from "./ProgressCircle-Cpmi2CpO.js";
|
|
2
|
+
import { p as P } from "./plugin-MAzqwXys.js";
|
|
3
3
|
export {
|
|
4
4
|
o as ProgressCircle,
|
|
5
5
|
P as ProgressCirclePlugin
|
package/dist/components.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { _ as e } from "./Avatar.vue_vue_type_script_setup_true_lang-C8p8_0Uc.js";
|
|
2
2
|
import { _ as p } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
|
|
3
|
-
import { B as s } from "./Button-
|
|
3
|
+
import { B as s } from "./Button-DxCwFAWy.js";
|
|
4
4
|
import { _ as f } from "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
5
5
|
import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js";
|
|
6
|
-
import { D as u } from "./Drawer-
|
|
6
|
+
import { D as u } from "./Drawer-KwhQs5WA.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
9
|
import { _ as T } from "./Form.vue_vue_type_script_setup_true_lang-CaCu47jH.js";
|
|
10
|
-
import { _ as y } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as y } from "./FormItem.vue_vue_type_script_setup_true_lang-CV7IVjE4.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";
|
|
13
13
|
import { _ as g } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-BdCwug4U.js";
|
|
@@ -15,18 +15,18 @@ import { _ as v } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DtA
|
|
|
15
15
|
import { _ as F } from "./GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js";
|
|
16
16
|
import { _ as B } from "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
|
|
17
17
|
import { _ as A } from "./InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js";
|
|
18
|
-
import { _ as R } from "./InputCheckbox.
|
|
18
|
+
import { _ as R } from "./InputCheckbox.vue_vue_type_style_index_0_lang-BONJ9l1D.js";
|
|
19
19
|
import { _ as q } from "./InputColor.vue_vue_type_script_setup_true_lang-DT-MAgI2.js";
|
|
20
20
|
import { _ as H } from "./InputDate.vue_vue_type_script_setup_true_lang-BAgG9zPV.js";
|
|
21
|
-
import { _ as K } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-
|
|
21
|
+
import { _ as K } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-BFDBZk2M.js";
|
|
22
22
|
import { _ as O } from "./InputPassword.vue_vue_type_script_setup_true_lang-DtP-Tv-2.js";
|
|
23
23
|
import { _ as U } from "./InputPhone.vue_vue_type_script_setup_true_lang-B4TULqLW.js";
|
|
24
24
|
import { _ as W } from "./InputPrice.vue_vue_type_script_setup_true_lang-BX4rsYIr.js";
|
|
25
|
-
import { _ as Y } from "./InputRadio.
|
|
25
|
+
import { _ as Y } from "./InputRadio.vue_vue_type_style_index_0_lang-IqPZ9Qzl.js";
|
|
26
26
|
import "vue";
|
|
27
27
|
import { _ as $ } from "./InputSelect.vue_vue_type_script_setup_true_lang-vCtwK795.js";
|
|
28
28
|
import { _ as or } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js";
|
|
29
|
-
import { _ as er } from "./InputText.vue_vue_type_script_setup_true_lang-
|
|
29
|
+
import { _ as er } from "./InputText.vue_vue_type_script_setup_true_lang-D4nIMRiz.js";
|
|
30
30
|
import { _ as pr } from "./InputTextarea.vue_vue_type_script_setup_true_lang-DRo5eIw4.js";
|
|
31
31
|
import { _ as sr } from "./Link.vue_vue_type_script_setup_true_lang-DBYJfl5l.js";
|
|
32
32
|
import { _ as fr } from "./Modal.vue_vue_type_script_setup_true_lang-aQ-G7tuI.js";
|
|
@@ -34,7 +34,7 @@ import { _ as nr } from "./ModalForm.vue_vue_type_script_setup_true_lang-B4dU1Az
|
|
|
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
|
-
import { P as Tr } from "./ProgressCircle-
|
|
37
|
+
import { P as Tr } from "./ProgressCircle-Cpmi2CpO.js";
|
|
38
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";
|
package/dist/index.css
CHANGED
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
@apply relative max-w-md w-full rounded border border-color color-text bg-caipira-primary p-4;
|
|
213
213
|
}
|
|
214
214
|
.card-grid {
|
|
215
|
-
@apply flex flex-wrap justify-
|
|
215
|
+
@apply flex flex-wrap justify-start md:justify-start items-stretch gap-3;
|
|
216
216
|
}
|
|
217
217
|
.card-action {
|
|
218
218
|
@apply cursor-pointer absolute top-4 right-2;
|
|
@@ -280,31 +280,3 @@
|
|
|
280
280
|
.form-radio {
|
|
281
281
|
border-radius: 100%;
|
|
282
282
|
}
|
|
283
|
-
|
|
284
|
-
&:not(.dark) {
|
|
285
|
-
.form-checkbox:checked {
|
|
286
|
-
background-image: url("/assets/icons/checkbox.svg");
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.form-checkbox:indeterminate {
|
|
290
|
-
background-image: url("/assets/icons/checkbox-indeterminate.svg");
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.form-radio:checked {
|
|
294
|
-
background-image: url("/assets/icons/radio-dark.svg");
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
&.dark {
|
|
299
|
-
.form-checkbox:checked {
|
|
300
|
-
background-image: url("/assets/icons/checkbox-dark.svg");
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.form-checkbox:indeterminate {
|
|
304
|
-
background-image: url("/assets/icons/checkbox-indeterminate-dark.svg");
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.form-radio:checked {
|
|
308
|
-
background-image: url("/assets/icons/radio.svg");
|
|
309
|
-
}
|
|
310
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as l } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as d } from "./InputRadio.
|
|
2
|
+
import { _ as d } from "./InputRadio.vue_vue_type_style_index_0_lang-IqPZ9Qzl.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 "./InputCheckbox.
|
|
2
|
+
import { _ as s } from "./InputCheckbox.vue_vue_type_style_index_0_lang-BONJ9l1D.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|