@caipira/tamandua 0.0.91 → 0.0.93
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/Avatar.js +2 -2
- package/dist/{Avatar.vue_vue_type_script_setup_true_lang-CAxLKAlD.js → Avatar.vue_vue_type_script_setup_true_lang-CnvI4bGL.js} +1 -1
- package/dist/Button.js +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-Cr2j9uAI.js → Button.vue_vue_type_script_setup_true_lang-CmbPvjSg.js} +36 -34
- package/dist/Dropdown.js +2 -2
- package/dist/Dropdown.vue_vue_type_script_setup_true_lang-DtTBnNsn.js +179 -0
- 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-3M-bOZ8R.js +74 -0
- package/dist/GraphyPrice.js +2 -2
- package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-Dxw3dcsW.js → GraphyPrice.vue_vue_type_script_setup_true_lang-Cr4zjIiS.js} +1 -1
- package/dist/Icon.js +2 -2
- package/dist/{Icon.vue_vue_type_script_setup_true_lang-DeZj2CXU.js → Icon.vue_vue_type_script_setup_true_lang-BuMQjBAy.js} +1 -1
- 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-C7tInheA.js +71 -0
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-CYcJ-agy.js → InputPassword.vue_vue_type_script_setup_true_lang-Qeq0BBp3.js} +18 -17
- package/dist/InputRadio.js +2 -2
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DG-7xEeZ.js +35 -0
- package/dist/InputSelect.js +2 -2
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-uUjFwWIE.js +243 -0
- package/dist/InputText.js +2 -2
- package/dist/InputText.vue_vue_type_script_setup_true_lang-twigJ_WD.js +43 -0
- package/dist/Link.js +2 -2
- package/dist/{Link.vue_vue_type_script_setup_true_lang-CwkZkVVz.js → Link.vue_vue_type_script_setup_true_lang-0z-EeE3p.js} +1 -1
- package/dist/Popconfirm.js +2 -2
- package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-BIZGp2xy.js → Popconfirm.vue_vue_type_script_setup_true_lang-BDEqMoax.js} +1 -1
- package/dist/{Popover-7oD7AiXt.js → Popover-C3ovolxY.js} +1 -1
- package/dist/Popover.js +2 -2
- package/dist/Tag.js +2 -2
- package/dist/{Tag.vue_vue_type_script_setup_true_lang-CmhP0b0y.js → Tag.vue_vue_type_script_setup_true_lang-G3i5m3sB.js} +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toast.vue_vue_type_script_setup_true_lang-By7Au8E3.js → Toast.vue_vue_type_script_setup_true_lang-BlfCFBHV.js} +1 -1
- package/dist/components.js +18 -18
- package/dist/enums.js +1 -1
- package/dist/{plugin-CLzytwhj.js → plugin-B2DiDUlP.js} +1 -1
- package/dist/{plugin-DXPEO1fb.js → plugin-B578b4C_.js} +1 -1
- package/dist/{plugin-DIj5ypE6.js → plugin-BemLz7kA.js} +1 -1
- package/dist/{plugin-s4eLZhyy.js → plugin-Bij2CJr7.js} +1 -1
- package/dist/{plugin-AGrPuw2y.js → plugin-BviXQKyF.js} +1 -1
- package/dist/{plugin-NrO_mAYp.js → plugin-CDu6of44.js} +1 -1
- package/dist/{plugin-lYDlOt8p.js → plugin-CQXEZDaa.js} +1 -1
- package/dist/{plugin-BUBXUbq8.js → plugin-CdZkyAp1.js} +1 -1
- package/dist/{plugin-D-WO1cMl.js → plugin-CnSU08rb.js} +1 -1
- package/dist/{plugin-b9_KKf-9.js → plugin-DArlmex8.js} +1 -1
- package/dist/{plugin-CzRCyET3.js → plugin-DKMiwQmN.js} +1 -1
- package/dist/{plugin-CBUyNiTn.js → plugin-DX5ICUyA.js} +1 -1
- package/dist/{plugin-B8k-Q9lw.js → plugin-DhHWk6sK.js} +1 -1
- package/dist/{plugin-BwA1VXdD.js → plugin-Dja0bljQ.js} +1 -1
- package/dist/{plugin-UbK5d4SN.js → plugin-ZJybqwxT.js} +1 -1
- package/dist/{plugin-Br-QOjhk.js → plugin-fh29h6vq.js} +1 -1
- package/dist/{plugin-CEsqY6D6.js → plugin-hAKUUhA-.js} +1 -1
- package/dist/{plugin-B7BtMlal.js → plugin-i0cgy8R3.js} +1 -1
- package/dist/{plugins-ilcR1VlL.js → plugins-Cf2JwB3G.js} +39 -36
- package/dist/plugins.js +103 -100
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +5 -5
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +4 -0
- package/dist/types/components/Dropdown/types.d.ts +2 -0
- package/dist/types/components/Form/types.d.ts +2 -0
- package/dist/types/components/FormItem/types.d.ts +0 -3
- package/dist/types/components/Icon/Icon.vue.d.ts +1 -1
- package/dist/types/components/Icon/types.d.ts +1 -1
- 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/dist/types/components/InputSelect/InputSelect.story.d.ts +8 -0
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +6 -6
- package/dist/types/components/InputSelect/types.d.ts +2 -2
- package/dist/types/components/InputText/InputText.story.d.ts +22 -0
- package/dist/types/components/InputText/InputText.vue.d.ts +11 -0
- package/dist/types/components/InputText/types.d.ts +3 -0
- package/dist/types/enums/ui.d.ts +4 -0
- package/dist/ui-D5oXHNg_.js +14 -0
- package/package.json +1 -1
- package/dist/Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js +0 -156
- 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/InputSelect.vue_vue_type_script_setup_true_lang-BRqdwhz4.js +0 -232
- package/dist/InputText.vue_vue_type_script_setup_true_lang-JLAlUE_2.js +0 -38
- package/dist/ui-CzOLy35H.js +0 -13
|
@@ -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
|
-
};
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ue, mergeModels as O, useModel as se, ref as c, computed as E, onBeforeMount as ie, watch as I, resolveComponent as g, openBlock as i, createBlock as D, normalizeClass as x, withCtx as R, createElementVNode as N, withDirectives as K, createElementBlock as d, vModelText as re, createCommentVNode as z, createVNode as U, renderSlot as k, normalizeProps as _, mergeProps as M, Fragment as V, renderList as q, guardReactiveProps as G, toDisplayString as H, vShow as pe, createSlots as ce, createTextVNode as de, nextTick as fe } from "vue";
|
|
2
|
-
import { E as ve, a as me } from "./ui-CzOLy35H.js";
|
|
3
|
-
const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "inline-flex w-full justify-between items-center"
|
|
6
|
-
}, be = {
|
|
7
|
-
key: 1,
|
|
8
|
-
class: "inline-flex items-center"
|
|
9
|
-
}, _e = /* @__PURE__ */ ue({
|
|
10
|
-
name: "TInputSelect",
|
|
11
|
-
__name: "InputSelect",
|
|
12
|
-
props: /* @__PURE__ */ O({
|
|
13
|
-
size: { default: ve.Default },
|
|
14
|
-
options: { default: () => [] },
|
|
15
|
-
mapper: { type: Function, default: (f) => ({
|
|
16
|
-
value: f.id ?? f.uuid,
|
|
17
|
-
label: f
|
|
18
|
-
}) },
|
|
19
|
-
filter: { type: Function, default: (f, T) => T.label.toLowerCase().indexOf(f.toLowerCase()) >= 0 },
|
|
20
|
-
tooltip: { default: "" },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
resource: {},
|
|
23
|
-
multiple: { type: Boolean, default: !1 },
|
|
24
|
-
placeholder: { default: "" },
|
|
25
|
-
initialValue: {},
|
|
26
|
-
isSearchable: { type: Boolean, default: !1 },
|
|
27
|
-
dropdownPlacement: { default: me.BOTTOM_START },
|
|
28
|
-
widthClass: { default: "w-full" },
|
|
29
|
-
borderClass: { default: "border input-border" },
|
|
30
|
-
roundnessClass: { default: "input-roundness" }
|
|
31
|
-
}, {
|
|
32
|
-
modelValue: {},
|
|
33
|
-
modelModifiers: {}
|
|
34
|
-
}),
|
|
35
|
-
emits: /* @__PURE__ */ O(["update:model-value"], ["update:modelValue"]),
|
|
36
|
-
setup(f, { emit: T }) {
|
|
37
|
-
const l = f;
|
|
38
|
-
let B = !1, S, P = "";
|
|
39
|
-
const J = T, u = se(f, "modelValue"), o = c([]), p = c(""), j = c(null), F = c(), s = c(!1), L = c(null), a = c([]), $ = c(!1), v = c(null), h = E(() => a.value.length > 0), m = E(() => l.isSearchable && s.value), w = E(() => typeof l.resource == "function"), Q = (e) => !l.multiple || !u.value || !Array.isArray(u.value) ? !1 : u.value.includes(e.value), W = (e = u.value) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), X = (e) => {
|
|
40
|
-
J("update:model-value", e);
|
|
41
|
-
}, y = (e = u.value) => {
|
|
42
|
-
if (W(e))
|
|
43
|
-
if (l.multiple)
|
|
44
|
-
Array.isArray(e) && (a.value = e.map(
|
|
45
|
-
(t) => A(t)
|
|
46
|
-
).filter((t) => t > -1));
|
|
47
|
-
else {
|
|
48
|
-
const t = A(e);
|
|
49
|
-
~t && (a.value = [t]);
|
|
50
|
-
}
|
|
51
|
-
}, Y = async (e) => {
|
|
52
|
-
e.target.nodeName === "svg" && e.stopPropagation(), s.value = !s.value, s.value && m.value && fe(() => {
|
|
53
|
-
j.value?.focus();
|
|
54
|
-
});
|
|
55
|
-
}, A = (e) => o.value.findIndex(
|
|
56
|
-
(t) => t.value === e
|
|
57
|
-
), C = async (e = !1) => {
|
|
58
|
-
if (!l.resource)
|
|
59
|
-
return;
|
|
60
|
-
$.value = !0;
|
|
61
|
-
const t = {
|
|
62
|
-
t: p.value,
|
|
63
|
-
r: "option"
|
|
64
|
-
};
|
|
65
|
-
e && v.value && v.value.pages > v.value.page ? t.page = v.value.page + 1 : e = !1, !p.value && u.value && (t.i = u.value);
|
|
66
|
-
const r = await l.resource(t);
|
|
67
|
-
e ? o.value.push(...r.items.map(l.mapper)) : o.value = r.items.map(l.mapper), v.value = r.pagination, !w.value && p.value && y(p.value), $.value = !1;
|
|
68
|
-
}, Z = () => {
|
|
69
|
-
!p.value || P === p.value || (S && (clearTimeout(S), S = null), S = setTimeout(() => {
|
|
70
|
-
P = p.value, w.value ? (s.value || (s.value = !0), C()) : l.isSearchable && (o.value = l.options.filter(
|
|
71
|
-
(e) => l.filter(p.value, e)
|
|
72
|
-
));
|
|
73
|
-
}, 500));
|
|
74
|
-
}, ee = ({
|
|
75
|
-
index: e,
|
|
76
|
-
hold: t
|
|
77
|
-
}) => {
|
|
78
|
-
if (B = !0, l.multiple) {
|
|
79
|
-
const r = a.value.findIndex(
|
|
80
|
-
(b) => b === e
|
|
81
|
-
);
|
|
82
|
-
~r ? a.value.splice(r, 1) : a.value.push(e);
|
|
83
|
-
} else
|
|
84
|
-
a.value = [e];
|
|
85
|
-
(!l.multiple || !t) && (s.value = !1);
|
|
86
|
-
}, le = () => {
|
|
87
|
-
w.value && v.value && v.value.pages > v.value.page && C(!0);
|
|
88
|
-
}, te = async (e) => {
|
|
89
|
-
switch (e.key) {
|
|
90
|
-
case "ArrowDown":
|
|
91
|
-
L.value?.move(e);
|
|
92
|
-
break;
|
|
93
|
-
case "Escape":
|
|
94
|
-
s.value = !1;
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
return ie(async () => {
|
|
99
|
-
w.value ? (await C(), y()) : l.options.length > 0 && (o.value = l.options), !u.value && l.initialValue ? y(l.initialValue) : y(u.value);
|
|
100
|
-
}), I(
|
|
101
|
-
() => u.value,
|
|
102
|
-
async (e) => {
|
|
103
|
-
e && (A(e) < 0 && w.value && await C(), y(e));
|
|
104
|
-
}
|
|
105
|
-
), I(
|
|
106
|
-
a,
|
|
107
|
-
(e) => {
|
|
108
|
-
const t = l.multiple ? o.value.filter(
|
|
109
|
-
(r, b) => a.value.includes(b)
|
|
110
|
-
).map((r) => r.value) : o.value[a.value[0]].value;
|
|
111
|
-
B && (B = !1, X(t));
|
|
112
|
-
},
|
|
113
|
-
{ deep: !0 }
|
|
114
|
-
), I(
|
|
115
|
-
() => l.options,
|
|
116
|
-
(e) => {
|
|
117
|
-
e.length > 0 && (o.value = e, u.value && a.value.length === 0 && y(u.value));
|
|
118
|
-
}
|
|
119
|
-
), (e, t) => {
|
|
120
|
-
const r = g("t-tag"), b = g("t-button"), ae = g("t-icon"), oe = g("t-dropdown"), ne = g("t-popover");
|
|
121
|
-
return i(), D(ne, {
|
|
122
|
-
open: s.value,
|
|
123
|
-
"onUpdate:open": t[1] || (t[1] = (n) => s.value = n),
|
|
124
|
-
placement: l.dropdownPlacement,
|
|
125
|
-
class: x([l.widthClass]),
|
|
126
|
-
ref_key: "popoverRef",
|
|
127
|
-
ref: F
|
|
128
|
-
}, {
|
|
129
|
-
default: R(() => [
|
|
130
|
-
N("div", {
|
|
131
|
-
class: x([{
|
|
132
|
-
"h-9": !l.multiple,
|
|
133
|
-
"h-full *:min-h-9": l.multiple,
|
|
134
|
-
[l.borderClass]: !0,
|
|
135
|
-
[l.roundnessClass]: !0
|
|
136
|
-
}, "flex justify-between items-center w-full max-w-96 input-text-color select-none input-bg-color"])
|
|
137
|
-
}, [
|
|
138
|
-
m.value ? K((i(), d("input", {
|
|
139
|
-
key: 0,
|
|
140
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) => p.value = n),
|
|
141
|
-
type: "text",
|
|
142
|
-
ref_key: "inputRef",
|
|
143
|
-
ref: j,
|
|
144
|
-
placeholder: l.placeholder,
|
|
145
|
-
disabled: l.disabled,
|
|
146
|
-
readonly: !l.isSearchable,
|
|
147
|
-
class: "h-9 bg-transparent input-padding input-roundness input-outline w-full",
|
|
148
|
-
onInput: Z,
|
|
149
|
-
onKeydown: te
|
|
150
|
-
}, null, 40, ye)), [
|
|
151
|
-
[re, p.value]
|
|
152
|
-
]) : z("", !0),
|
|
153
|
-
U(b, {
|
|
154
|
-
variant: "transparent",
|
|
155
|
-
size: "",
|
|
156
|
-
class: x(["h-full", {
|
|
157
|
-
"w-full justify-end pr-2": !m.value && !h.value,
|
|
158
|
-
"w-full justify-between pr-2": !m.value && h.value,
|
|
159
|
-
"w-10 justify-center": m.value
|
|
160
|
-
}]),
|
|
161
|
-
"aria-describedby": F.value?.name,
|
|
162
|
-
icon: s.value === !0 ? "chevron-up" : "chevron-down",
|
|
163
|
-
"icon-position": m.value ? "left" : "right",
|
|
164
|
-
hover: !1,
|
|
165
|
-
onClick: Y
|
|
166
|
-
}, {
|
|
167
|
-
default: R(() => [
|
|
168
|
-
K(N("div", {
|
|
169
|
-
class: x(["inline-flex items-center ml-2 max-w-[calc(100%-2.5rem)]", {
|
|
170
|
-
"overflow-hidden whitespace-nowrap": !l.multiple,
|
|
171
|
-
"flex-wrap gap-2 py-1": l.multiple
|
|
172
|
-
}])
|
|
173
|
-
}, [
|
|
174
|
-
e.$slots.selection && h.value ? k(e.$slots, "selection", _(M({ key: 0 }, o.value[a.value[0]]))) : e.$slots.default && h.value ? (i(), d(V, { key: 1 }, [
|
|
175
|
-
l.multiple ? (i(!0), d(V, { key: 0 }, q(a.value, (n) => k(e.$slots, "default", _(G(o.value[n])))), 256)) : k(e.$slots, "default", _(M({ key: 1 }, o.value[a.value[0]])))
|
|
176
|
-
], 64)) : h.value ? (i(), d(V, { key: 2 }, [
|
|
177
|
-
l.multiple ? (i(!0), d(V, { key: 0 }, q(a.value, (n) => (i(), D(r, {
|
|
178
|
-
key: n,
|
|
179
|
-
text: o.value[n]?.label,
|
|
180
|
-
color: "#6e6e6e"
|
|
181
|
-
}, null, 8, ["text"]))), 128)) : (i(), d("span", he, H(o.value[a.value[0]]?.label), 1))
|
|
182
|
-
], 64)) : z("", !0)
|
|
183
|
-
], 2), [
|
|
184
|
-
[pe, !m.value]
|
|
185
|
-
])
|
|
186
|
-
]),
|
|
187
|
-
_: 3
|
|
188
|
-
}, 8, ["aria-describedby", "class", "icon", "icon-position"])
|
|
189
|
-
], 2)
|
|
190
|
-
]),
|
|
191
|
-
content: R(() => [
|
|
192
|
-
U(oe, {
|
|
193
|
-
ref_key: "dropdownRef",
|
|
194
|
-
ref: L,
|
|
195
|
-
items: o.value,
|
|
196
|
-
"is-visible": s.value,
|
|
197
|
-
multiple: l.multiple,
|
|
198
|
-
loading: $.value,
|
|
199
|
-
"option-margin-class": "m-1",
|
|
200
|
-
"option-padding-class": "py-2 px-3",
|
|
201
|
-
onChange: ee,
|
|
202
|
-
onEndReached: le
|
|
203
|
-
}, ce({ _: 2 }, [
|
|
204
|
-
e.$slots.default || l.multiple ? {
|
|
205
|
-
name: "default",
|
|
206
|
-
fn: R((n) => [
|
|
207
|
-
l.multiple ? (i(), d("div", we, [
|
|
208
|
-
e.$slots.default ? k(e.$slots, "default", _(M({ key: 0 }, n))) : (i(), d(V, { key: 1 }, [
|
|
209
|
-
de(H(n.label), 1)
|
|
210
|
-
], 64)),
|
|
211
|
-
Q(n) ? (i(), D(ae, {
|
|
212
|
-
key: 2,
|
|
213
|
-
icon: "check",
|
|
214
|
-
size: "sm",
|
|
215
|
-
class: "float-right ml-2"
|
|
216
|
-
})) : z("", !0)
|
|
217
|
-
])) : (i(), d("div", be, [
|
|
218
|
-
k(e.$slots, "default", _(G(n)))
|
|
219
|
-
]))
|
|
220
|
-
]),
|
|
221
|
-
key: "0"
|
|
222
|
-
} : void 0
|
|
223
|
-
]), 1032, ["items", "is-visible", "multiple", "loading"])
|
|
224
|
-
]),
|
|
225
|
-
_: 3
|
|
226
|
-
}, 8, ["open", "placement", "class"]);
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
export {
|
|
231
|
-
_e as _
|
|
232
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, mergeModels as i, useModel as s, inject as u, withDirectives as m, openBlock as c, createElementBlock as f, normalizeClass as b, unref as l, vModelDynamic as v } from "vue";
|
|
2
|
-
const y = ["type", "placeholder", "autocomplete", "disabled"], B = /* @__PURE__ */ r({
|
|
3
|
-
name: "TInputText",
|
|
4
|
-
__name: "InputText",
|
|
5
|
-
props: /* @__PURE__ */ i({
|
|
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__ */ i(["keyup.enter"], ["update:modelValue"]),
|
|
18
|
-
setup(t, { emit: _ }) {
|
|
19
|
-
const o = s(t, "modelValue"), e = t, d = u("invalid", !1), a = u("validated", !1);
|
|
20
|
-
return (h, n) => m((c(), f("input", {
|
|
21
|
-
"onUpdate:modelValue": n[0] || (n[0] = (p) => o.value = p),
|
|
22
|
-
type: e.type,
|
|
23
|
-
class: b({
|
|
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": !l(a) && l(d),
|
|
26
|
-
"border-emerald-500": l(a) && !l(d)
|
|
27
|
-
}),
|
|
28
|
-
placeholder: e.placeholder,
|
|
29
|
-
autocomplete: e.autocomplete,
|
|
30
|
-
disabled: e.disabled
|
|
31
|
-
}, null, 10, y)), [
|
|
32
|
-
[v, o.value]
|
|
33
|
-
]);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
B as _
|
|
38
|
-
};
|
package/dist/ui-CzOLy35H.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var l = /* @__PURE__ */ ((e) => (e.Unset = "", e.ExtraSmall = "xs", e.Small = "sm", e.Default = "default", e.Large = "lg", e.ExtraLarge = "xl", e))(l || {}), t = /* @__PURE__ */ ((e) => (e.Unset = "", e.Square = "square", e.Rounded = "rounded", e.Circle = "circle", e))(t || {}), u = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.HOVER = "hover", e))(u || {}), i = /* @__PURE__ */ ((e) => (e.TOP_START = "top-start", e.TOP = "top", e.TOP_END = "top-end", e.RIGHT_START = "right-start", e.RIGHT = "right", e.RIGHT_END = "right-end", e.BOTTOM_END = "bottom-end", e.BOTTOM = "bottom", e.BOTTOM_START = "bottom-start", e.LEFT_END = "left-end", e.LEFT = "left", e.LEFT_START = "left-start", e))(i || {}), r = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PRIMARY = "primary", e.SUCCESS = "success", e.DANGER = "danger", e.WARNING = "warning", e))(r || {}), a = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PRIMARY = "primary", e.SUCCESS = "success", e.DANGER = "danger", e.WARNING = "warning", e.LINK = "link", e.TRANSPARENT = "transparent", e))(a || {}), s = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.SUBMIT = "submit", e.FILE = "file", e))(s || {}), p = /* @__PURE__ */ ((e) => (e.Default = "default", e.Router = "router", e))(p || {}), o = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.INCREASE = "increase", e.DECREASE = "decrease", e.AUTO = "auto", e))(o || {}), d = /* @__PURE__ */ ((e) => (e.Account = "account", e.AccountBox = "account-box", e.AccountBoxOutline = "account-box-outline", e.AccountCircle = "account-circle", e.AccountCircleOutline = "account-circle-outline", e.AccountGroup = "account-group", e.AccountGroupOutline = "account-group-outline", e.AccountMultiple = "account-multiple", e.AccountMultipleOutline = "account-multiple-outline", e.AccountOutline = "account-outline", e.AlertOctagon = "alert-octagon", e.AlertOctagonOutline = "alert-octagon-outline", e.Archive = "archive", e.ArchiveOutline = "archive-outline", e.ArrowLeft = "arrow-left", e.ArrowRight = "arrow-right", e.Bank = "bank", e.BankOutline = "bank-outline", e.BookAlphabet = "book-alphabet", e.BookMultiple = "book-multiple", e.BookMultipleOutline = "book-multiple-outline", e.Bookshelf = "bookshelf", e.Camera = "camera", e.CardsOutline = "cards-outline", e.CardsVariant = "cards-variant", e.CartOutline = "cart-outline", e.ChartBox = "chart-box", e.ChartBoxOutline = "chart-box-outline", e.Check = "check", e.CheckCircle = "check-circle", e.CheckCircleOutline = "check-circle-outline", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Circle = "circle", e.Clock = "clock", e.ClockFast = "clock-fast", e.ClockOutline = "clock-outline", e.Close = "close", e.CloseCircle = "close-circle", e.CloseCircleOutline = "close-circle-outline", e.Cog = "cog", e.Contacts = "contacts", e.ContactsOutline = "contacts-outline", e.Copy = "copy", e.CreditCard = "credit-card", e.CreditCardPlus = "credit-card-plus", e.Currency = "currency", e.Database = "database", e.DotsGrid = "dots-grid", e.DotsHorizontal = "dots-horizontal", e.DotsVertical = "dots-vertical", e.EmailOpenOutline = "email-open-outline", e.EmailOutline = "email-outline", e.Eye = "eye", e.EyeOff = "eye-off", e.FIleDocumentPlusOutline = "file-document-plus-outline", e.Filmstrip = "filmstrip", e.Filter = "filter", e.Fullscreen = "fullscreen", e.FullscreenExit = "fullscreen-exit", e.Group = "group", e.Home = "home", e.HomeOutline = "home-outline", e.Image = "image", e.ImageAlbum = "image-album", e.ImageAlbumOutline = "image-album-outline", e.ImageOutline = "image-outline", e.InfoOutline = "info-outline", e.Key = "key", e.KeyChain = "key-chain", e.KeyVariant = "key-variant", e.ListboxOutline = "listbox-outline", e.Loading = "loading", e.Lock = "lock", e.LockOutline = "lock-outline", e.Logout = "logout", e.Menu = "menu", e.MenuDown = "menu-down", e.MenuLeft = "menu-left", e.MenuRight = "menu-right", e.Minus = "minus", e.MinusCircle = "minus-circle", e.MinusCircleOutline = "minus-circle-outline", e.Moon = "moon", e.MovieOpen = "movie-open", e.MovieOpenOutline = "movie-open-outline", e.OpenInNew = "open-in-new", e.Pause = "pause", e.PauseCircle = "pause-circle", e.Pencil = "pencil", e.PiggyBankOutline = "piggy-bank-outline", e.Play = "play", e.PlayBox = "play-box", e.PlayBoxEditOutline = "play-box-edit-outline", e.PlayBoxOutline = "play-box-outline", e.PlayCircle = "play-circle", e.PlaylistPlay = "playlist-play", e.Plus = "plus", e.PlusCircle = "plus-circle", e.PlusCircleOutline = "plus-circle-outline", e.ProgressClock = "progress-clock", e.QrcodeScan = "qrcode-scan", e.Refresh = "refresh", e.Save = "save", e.Search = "search", e.Shuffle = "shuffle", e.ShuffleDisabled = "shuffle-disabled", e.ShuffleVariant = "shuffle-variant", e.SkipBackward = "skip-backward", e.SkipForward = "skip-forward", e.SkipNext = "skip-next", e.SkipPrevious = "skip-previous", e.Spotlight = "spotlight", e.Stop = "stop", e.Store = "store", e.StoreOutline = "store-outline", e.Sun = "sun", e.Swap = "swap", e.SwapHorizontal = "swap-horizontal", e.SwapLeft = "swap-left", e.SwapRight = "swap-right", e.SystemTheme = "system-theme", e.TagOutline = "tag-outline", e.Text = "text", e.TextBox = "text-box", e.TextBoxMultiple = "text-box-multiple", e.TextBoxMultipleOutline = "text-box-multiple-outline", e.TextBoxOutline = "text-box-outline", e.TextLong = "text-long", e.TimerOutline = "timer-outline", e.TimerRefreshOutline = "timer-refresh-outline", e.TrashCan = "trash-can", e.TrashCanOutline = "trash-can-outline", e.Ungroup = "ungroup", e.Upload = "upload", e.UploadBoxOutline = "upload-box-outline", e.UploadMultipleOutline = "upload-multiple-outline", e.UploadOutline = "upload-outline", e.Video = "video", e.VideoOutline = "video-outline", e.Web = "web", e.ZipBox = "zip-box", e))(d || {});
|
|
2
|
-
export {
|
|
3
|
-
a as B,
|
|
4
|
-
l as E,
|
|
5
|
-
o as G,
|
|
6
|
-
d as I,
|
|
7
|
-
p as L,
|
|
8
|
-
r as T,
|
|
9
|
-
i as a,
|
|
10
|
-
t as b,
|
|
11
|
-
s as c,
|
|
12
|
-
u as d
|
|
13
|
-
};
|