@agrotools1/at-components 2.0.28 → 2.0.30
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-new/ButtonNew.vue.d.ts +42 -0
- package/dist/button-new/ButtonNew.vue.d.ts.map +1 -0
- package/dist/button-new/ButtonNew.vue.js +131 -0
- package/dist/button-new/ButtonNew.vue2.js +4 -0
- package/dist/button-new/index.d.ts +3 -0
- package/dist/button-new/index.d.ts.map +1 -0
- package/dist/button-new/index.js +9 -0
- package/dist/button-new/variants.d.ts +66 -0
- package/dist/button-new/variants.d.ts.map +1 -0
- package/dist/button-new/variants.js +74 -0
- package/dist/changelog/versions/components/index.d.ts.map +1 -1
- package/dist/changelog/versions/components/v2.0.29.d.ts +4 -0
- package/dist/changelog/versions/components/v2.0.29.d.ts.map +1 -0
- package/dist/changelog/versions/components/v2.0.30.d.ts +4 -0
- package/dist/changelog/versions/components/v2.0.30.d.ts.map +1 -0
- package/dist/date-picker/DatePicker.vue.d.ts +5 -0
- package/dist/date-picker/DatePicker.vue.d.ts.map +1 -1
- package/dist/date-picker/DatePicker.vue.js +29 -27
- package/dist/document-input/DocumentAutoComplete.vue.d.ts +80 -0
- package/dist/document-input/DocumentAutoComplete.vue.d.ts.map +1 -0
- package/dist/document-input/DocumentAutoComplete.vue.js +372 -0
- package/dist/document-input/DocumentAutoComplete.vue2.js +4 -0
- package/dist/document-input/DocumentInput.vue.d.ts +2 -0
- package/dist/document-input/DocumentInput.vue.d.ts.map +1 -1
- package/dist/document-input/DocumentInput.vue.js +76 -70
- package/dist/document-input/index.d.ts +2 -0
- package/dist/document-input/index.d.ts.map +1 -1
- package/dist/document-input/index.js +9 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +428 -417
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/loader-circle.js +13 -0
- package/dist/packages/at-icons/dist/AtCheckSolidIcon/AtCheckSolidIcon.vue.js +46 -0
- package/dist/packages/at-icons/dist/AtCheckSolidIcon/index.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { defineComponent as se, useId as ie, ref as b, watch as ue, computed as U, createElementBlock as h, openBlock as n, normalizeClass as S, unref as o, createBlock as k, createCommentVNode as v, createVNode as f, withCtx as m, createTextVNode as z, toDisplayString as w, mergeProps as ce, createElementVNode as _, renderSlot as x, withModifiers as N, withDirectives as pe, Fragment as de, renderList as fe, vShow as me, nextTick as E } from "vue";
|
|
2
|
+
import { cn as F } from "../lib/utils.js";
|
|
3
|
+
import { AtCheckCircleRegularIcon as ge } from "../packages/at-icons/dist/AtCheckCircleRegularIcon/index.js";
|
|
4
|
+
import { AtCheckSolidIcon as he } from "../packages/at-icons/dist/AtCheckSolidIcon/index.js";
|
|
5
|
+
import { AtCircleXMarkRegularIcon as ve } from "../packages/at-icons/dist/AtCircleXMarkRegularIcon/index.js";
|
|
6
|
+
import { AtCircleXMarkSolidIcon as q } from "../packages/at-icons/dist/AtCircleXMarkSolidIcon/index.js";
|
|
7
|
+
import { reactiveOmit as ye } from "@vueuse/core";
|
|
8
|
+
import { useForwardPropsEmits as Ae } from "reka-ui";
|
|
9
|
+
import ke from "../combobox/Combobox.vue.js";
|
|
10
|
+
import we from "../combobox/ComboboxAnchor.vue.js";
|
|
11
|
+
import xe from "../combobox/ComboboxEmpty.vue.js";
|
|
12
|
+
import Te from "../combobox/ComboboxGroup.vue.js";
|
|
13
|
+
import Ce from "../combobox/ComboboxInput.vue.js";
|
|
14
|
+
import Ve from "../combobox/ComboboxItem.vue.js";
|
|
15
|
+
import be from "../combobox/ComboboxItemIndicator.vue.js";
|
|
16
|
+
import _e from "../combobox/ComboboxList.vue.js";
|
|
17
|
+
import Ie from "../combobox/ComboboxViewport.vue.js";
|
|
18
|
+
import $e from "../label/Label.vue.js";
|
|
19
|
+
import { isValidCpf as y, isValidCnpj as A, applyCpfMask as R, applyCnpjMask as O } from "./utils.js";
|
|
20
|
+
import Me from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/loader-circle.js";
|
|
21
|
+
const je = { key: 0 }, Be = { class: "relative flex items-center" }, Ue = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "py-6 flex items-center justify-center text-sm text-gray-500"
|
|
24
|
+
}, Se = { class: "flex items-center gap-2" }, lt = /* @__PURE__ */ se({
|
|
25
|
+
__name: "DocumentAutoComplete",
|
|
26
|
+
props: {
|
|
27
|
+
id: {},
|
|
28
|
+
modelValue: {},
|
|
29
|
+
documentType: { default: "cpf-cnpj" },
|
|
30
|
+
label: {},
|
|
31
|
+
description: {},
|
|
32
|
+
required: { type: Boolean },
|
|
33
|
+
disabled: { type: Boolean, default: !1 },
|
|
34
|
+
error: { type: [Boolean, String], default: !1 },
|
|
35
|
+
success: { type: Boolean, default: !1 },
|
|
36
|
+
allowAlpha: { type: Boolean, default: !1 },
|
|
37
|
+
placeholder: {},
|
|
38
|
+
maxLength: {},
|
|
39
|
+
toUpperCase: { type: Boolean, default: !1 },
|
|
40
|
+
unmask: { type: Boolean, default: !0 },
|
|
41
|
+
customMask: {},
|
|
42
|
+
class: {},
|
|
43
|
+
inputClass: {},
|
|
44
|
+
withIcon: { type: Boolean, default: !0 },
|
|
45
|
+
withInternalValidation: { type: Boolean, default: !1 },
|
|
46
|
+
options: {},
|
|
47
|
+
loading: { type: Boolean },
|
|
48
|
+
notFoundText: {},
|
|
49
|
+
loadingText: {},
|
|
50
|
+
optionId: { default: "identifier" }
|
|
51
|
+
},
|
|
52
|
+
emits: ["update:modelValue", "select", "validate", "blur", "focus", "clear"],
|
|
53
|
+
setup(X, { emit: H }) {
|
|
54
|
+
const e = X, s = H, T = e.id || ie(), J = `error-${T}`, G = `desc-${T}`, K = ye(
|
|
55
|
+
e,
|
|
56
|
+
"modelValue",
|
|
57
|
+
"documentType",
|
|
58
|
+
"unmask",
|
|
59
|
+
"allowAlpha",
|
|
60
|
+
"placeholder",
|
|
61
|
+
"label",
|
|
62
|
+
"description",
|
|
63
|
+
"error",
|
|
64
|
+
"success",
|
|
65
|
+
"required",
|
|
66
|
+
"class",
|
|
67
|
+
"inputClass",
|
|
68
|
+
"toUpperCase",
|
|
69
|
+
"maxLength",
|
|
70
|
+
"customMask",
|
|
71
|
+
"withInternalValidation",
|
|
72
|
+
"options",
|
|
73
|
+
"loading",
|
|
74
|
+
"notFoundText",
|
|
75
|
+
"loadingText",
|
|
76
|
+
"optionId",
|
|
77
|
+
"modelValue"
|
|
78
|
+
), Q = Ae(K, s), i = b(""), C = b(!1), I = b(!1), $ = b(null), M = b(e.modelValue);
|
|
79
|
+
function W(t, a) {
|
|
80
|
+
if (!a) return t;
|
|
81
|
+
const l = t.replace(/[^0-9A-Za-z]/g, "");
|
|
82
|
+
if (!l) return "";
|
|
83
|
+
let c = "", r = 0;
|
|
84
|
+
for (let p = 0; p < a.length && r < l.length; p++) {
|
|
85
|
+
const u = a[p], d = l[r];
|
|
86
|
+
u === "9" ? /[0-9]/.test(d) ? (c += d, r++) : (r++, p--) : u === "A" ? /[A-Za-z]/.test(d) ? (c += e.toUpperCase ? d.toUpperCase() : d, r++) : (r++, p--) : u === "X" ? /[0-9A-Za-z]/.test(d) ? (c += e.toUpperCase ? d.toUpperCase() : d, r++) : (r++, p--) : (c += u, d === u && r++);
|
|
87
|
+
}
|
|
88
|
+
return c;
|
|
89
|
+
}
|
|
90
|
+
function j(t) {
|
|
91
|
+
if (e.customMask && e.documentType === "generic")
|
|
92
|
+
return W(t, e.customMask);
|
|
93
|
+
const a = /[A-Z]/i.test(t);
|
|
94
|
+
return e.documentType === "cpf" ? R(t) : e.documentType === "cnpj" ? O(t, e.allowAlpha) : e.documentType === "cpf-cnpj" ? e.allowAlpha && a || t.length > 11 ? O(t, e.allowAlpha) : R(t) : t;
|
|
95
|
+
}
|
|
96
|
+
const L = (t) => {
|
|
97
|
+
if (!t) return i.value || "";
|
|
98
|
+
if (typeof t == "string") {
|
|
99
|
+
const c = t.replace(
|
|
100
|
+
e.documentType === "generic" && e.customMask || e.allowAlpha ? /[^A-Z0-9]/gi : /[^0-9]/g,
|
|
101
|
+
""
|
|
102
|
+
);
|
|
103
|
+
return j(c);
|
|
104
|
+
}
|
|
105
|
+
const l = (t.identifier || t.value || t.text || "").replace(
|
|
106
|
+
e.documentType === "generic" && e.customMask || e.allowAlpha ? /[^A-Z0-9]/gi : /[^0-9]/g,
|
|
107
|
+
""
|
|
108
|
+
);
|
|
109
|
+
return j(l);
|
|
110
|
+
};
|
|
111
|
+
ue(
|
|
112
|
+
() => e.modelValue,
|
|
113
|
+
(t) => {
|
|
114
|
+
if (M.value = t, t == null || t === "") {
|
|
115
|
+
i.value !== "" && (i.value = ""), M.value = void 0;
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const a = L(t);
|
|
119
|
+
i.value !== a && (i.value = a);
|
|
120
|
+
},
|
|
121
|
+
{ immediate: !0 }
|
|
122
|
+
);
|
|
123
|
+
const Y = U(() => e.maxLength ? e.maxLength : e.customMask && e.documentType === "generic" ? e.customMask.length : e.documentType === "cpf" ? 14 : 18), ee = U(() => {
|
|
124
|
+
switch (e.documentType) {
|
|
125
|
+
case "cnpj":
|
|
126
|
+
return e.allowAlpha ? "AA.AAA.AAA/AAAA-DV" : "00.000.000/0000-00";
|
|
127
|
+
case "cpf":
|
|
128
|
+
return "000.000.000-00";
|
|
129
|
+
case "cpf-cnpj":
|
|
130
|
+
return "CPF ou CNPJ";
|
|
131
|
+
default:
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
}), g = U(() => {
|
|
135
|
+
if (e.error) return !0;
|
|
136
|
+
if (e.withInternalValidation) {
|
|
137
|
+
const t = e.modelValue;
|
|
138
|
+
if (!t || I.value) return !1;
|
|
139
|
+
const l = (typeof t == "string" ? t : t.identifier || t.value || "").replace(/[^A-Z0-9]/gi, "");
|
|
140
|
+
if (!l) return !1;
|
|
141
|
+
if (e.documentType === "cpf") return !y(l);
|
|
142
|
+
if (e.documentType === "cnpj") return !A(l);
|
|
143
|
+
if (e.documentType === "cpf-cnpj")
|
|
144
|
+
return l.length === 11 ? !y(l) : l.length === 14 ? !A(l) : l.length > 0 && l.length !== 11 && l.length !== 14;
|
|
145
|
+
}
|
|
146
|
+
return !1;
|
|
147
|
+
}), B = U(() => {
|
|
148
|
+
if (g.value) return !1;
|
|
149
|
+
if (e.success) return !0;
|
|
150
|
+
if (e.withInternalValidation) {
|
|
151
|
+
const t = e.modelValue;
|
|
152
|
+
if (!t) return !1;
|
|
153
|
+
const l = (typeof t == "string" ? t : t.identifier || t.value || "").replace(/[^A-Z0-9]/gi, "");
|
|
154
|
+
if (e.documentType === "cpf") return y(l);
|
|
155
|
+
if (e.documentType === "cnpj") return A(l);
|
|
156
|
+
if (e.documentType === "cpf-cnpj")
|
|
157
|
+
return l.length === 11 ? y(l) : A(l);
|
|
158
|
+
}
|
|
159
|
+
return !1;
|
|
160
|
+
});
|
|
161
|
+
function P(t) {
|
|
162
|
+
let a = !1;
|
|
163
|
+
e.documentType === "cpf" ? a = y(t) : e.documentType === "cnpj" ? a = A(t) : e.documentType === "cpf-cnpj" && (a = t.length === 11 ? y(t) : A(t)), s("validate", a);
|
|
164
|
+
}
|
|
165
|
+
function te(t) {
|
|
166
|
+
const a = t.target;
|
|
167
|
+
let l = a.value;
|
|
168
|
+
const c = a.selectionStart || 0;
|
|
169
|
+
I.value = !1, e.toUpperCase && (l = l.toUpperCase());
|
|
170
|
+
let r = l.replace(
|
|
171
|
+
e.documentType === "generic" && e.customMask || e.allowAlpha ? /[^A-Z0-9]/gi : /[^0-9]/g,
|
|
172
|
+
""
|
|
173
|
+
), p = e.maxLength;
|
|
174
|
+
p || (e.customMask && e.documentType === "generic" ? p = e.customMask.length : p = e.documentType === "cpf" ? 11 : 14), r = r.slice(0, p);
|
|
175
|
+
const u = j(r), d = e.allowAlpha ? /[A-Z0-9]/gi : /[0-9]/g, re = (l.slice(0, c).match(d) || []).length, ne = (e.unmask ? r : u) || void 0;
|
|
176
|
+
s("update:modelValue", ne), P(r), i.value = u, E(() => {
|
|
177
|
+
a.value = u;
|
|
178
|
+
let Z = 0, D = 0;
|
|
179
|
+
for (let V = 0; V < u.length && ((e.documentType === "generic" && e.customMask || e.allowAlpha ? /[A-Z0-9]/i.test(u[V]) : /[0-9]/.test(u[V])) && D++, Z = V + 1, !(D >= re)); V++)
|
|
180
|
+
;
|
|
181
|
+
a.setSelectionRange(Z, Z);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
function le(t) {
|
|
185
|
+
i.value = "", M.value = null, s("update:modelValue", null), E(() => {
|
|
186
|
+
if (!$.value) return;
|
|
187
|
+
const a = $.value.querySelector(`[id="${T}"]`) || $.value.querySelector("input"), l = (a == null ? void 0 : a.tagName) === "INPUT" ? a : a == null ? void 0 : a.querySelector("input");
|
|
188
|
+
l && (l.value = "", l.dispatchEvent(new Event("input", { bubbles: !0 }))), E(() => {
|
|
189
|
+
C.value = !1;
|
|
190
|
+
});
|
|
191
|
+
}), I.value = !0, s("validate", !1), s("clear"), C.value = !1;
|
|
192
|
+
}
|
|
193
|
+
function ae(t) {
|
|
194
|
+
if (!t) {
|
|
195
|
+
i.value = "", I.value = !0, s("update:modelValue", null);
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
s("update:modelValue", t), s("select", t);
|
|
199
|
+
const l = (t.identifier || t.value || t.text || "").replace(/[^A-Z0-9]/gi, "");
|
|
200
|
+
i.value = j(l), P(l), C.value = !1;
|
|
201
|
+
}
|
|
202
|
+
function oe(t) {
|
|
203
|
+
s("blur", t);
|
|
204
|
+
const a = i.value.replace(e.allowAlpha ? /[^A-Z0-9]/gi : /[^0-9]/g, "");
|
|
205
|
+
let l = !1;
|
|
206
|
+
a.length === 11 ? l = y(a) : a.length === 14 && (l = A(a)), l && s("update:modelValue", e.toUpperCase ? a.toUpperCase() : a);
|
|
207
|
+
}
|
|
208
|
+
return (t, a) => (n(), h("div", {
|
|
209
|
+
class: S(o(F)("space-y-1.5 w-full", e.class)),
|
|
210
|
+
ref_key: "wrapperRef",
|
|
211
|
+
ref: $
|
|
212
|
+
}, [
|
|
213
|
+
e.label ? (n(), k(o($e), {
|
|
214
|
+
key: 0,
|
|
215
|
+
for: o(T),
|
|
216
|
+
class: S(
|
|
217
|
+
o(F)(
|
|
218
|
+
"text-[#101011] font-normal text-[10px] leading-[10px]",
|
|
219
|
+
g.value ? "text-[var(--alert-red-dark,#831511)]" : ""
|
|
220
|
+
)
|
|
221
|
+
)
|
|
222
|
+
}, {
|
|
223
|
+
default: m(() => [
|
|
224
|
+
z(w(e.label), 1),
|
|
225
|
+
e.required && !e.label.includes("(Obrigatório)") ? (n(), h("span", je, " (Obrigatório)")) : v("", !0)
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 8, ["for", "class"])) : v("", !0),
|
|
229
|
+
f(o(ke), ce(o(Q), {
|
|
230
|
+
"model-value": M.value,
|
|
231
|
+
searchTerm: i.value,
|
|
232
|
+
"onUpdate:searchTerm": a[3] || (a[3] = (l) => i.value = l),
|
|
233
|
+
open: C.value,
|
|
234
|
+
"onUpdate:open": a[4] || (a[4] = (l) => C.value = l),
|
|
235
|
+
"reset-search-term-on-select": !1,
|
|
236
|
+
"filter-function": () => !0,
|
|
237
|
+
"onUpdate:modelValue": ae
|
|
238
|
+
}), {
|
|
239
|
+
default: m(() => [
|
|
240
|
+
_("div", Be, [
|
|
241
|
+
f(o(we), { class: "w-full h-full" }, {
|
|
242
|
+
default: m(() => [
|
|
243
|
+
x(t.$slots, "input", {}, () => [
|
|
244
|
+
f(o(Ce), {
|
|
245
|
+
id: o(T),
|
|
246
|
+
"display-value": L,
|
|
247
|
+
placeholder: e.placeholder || ee.value,
|
|
248
|
+
"with-icon": e.withIcon,
|
|
249
|
+
"with-clear-button": !1,
|
|
250
|
+
disabled: e.disabled,
|
|
251
|
+
error: g.value,
|
|
252
|
+
success: B.value,
|
|
253
|
+
class: S(
|
|
254
|
+
o(F)(
|
|
255
|
+
"pr-20",
|
|
256
|
+
g.value || B.value ? "border-[#3E2E46]" : "",
|
|
257
|
+
e.inputClass
|
|
258
|
+
)
|
|
259
|
+
),
|
|
260
|
+
maxlength: Y.value,
|
|
261
|
+
onInput: te,
|
|
262
|
+
onBlur: oe,
|
|
263
|
+
onFocus: a[0] || (a[0] = (l) => s("focus", l))
|
|
264
|
+
}, null, 8, ["id", "placeholder", "with-icon", "disabled", "error", "success", "class", "maxlength"])
|
|
265
|
+
])
|
|
266
|
+
]),
|
|
267
|
+
_: 3
|
|
268
|
+
}),
|
|
269
|
+
_("div", {
|
|
270
|
+
class: S(["absolute right-9 flex items-center justify-center z-10 h-10 w-6", e.disabled ? "pointer-events-none opacity-40" : ""])
|
|
271
|
+
}, [
|
|
272
|
+
g.value || e.modelValue && !B.value ? (n(), h("div", {
|
|
273
|
+
key: 0,
|
|
274
|
+
class: "flex items-center justify-center w-full h-full cursor-pointer",
|
|
275
|
+
onMousedown: a[1] || (a[1] = N((l) => !e.disabled && le(), ["stop", "prevent"])),
|
|
276
|
+
onClick: a[2] || (a[2] = N(() => {
|
|
277
|
+
}, ["stop", "prevent"]))
|
|
278
|
+
}, [
|
|
279
|
+
g.value ? (n(), k(o(q), {
|
|
280
|
+
key: 0,
|
|
281
|
+
size: "20",
|
|
282
|
+
class: "text-[var(--alert-red-dark,#831511)] transition-opacity hover:opacity-80"
|
|
283
|
+
})) : (n(), k(o(ve), {
|
|
284
|
+
key: 1,
|
|
285
|
+
size: "20",
|
|
286
|
+
class: "text-gray-400 transition-colors hover:text-[#831511]"
|
|
287
|
+
}))
|
|
288
|
+
], 32)) : B.value ? (n(), k(o(ge), {
|
|
289
|
+
key: 1,
|
|
290
|
+
size: "20",
|
|
291
|
+
class: "text-[#4b715c] pointer-events-none"
|
|
292
|
+
})) : v("", !0)
|
|
293
|
+
], 2)
|
|
294
|
+
]),
|
|
295
|
+
x(t.$slots, "list", {}, () => [
|
|
296
|
+
f(o(_e), null, {
|
|
297
|
+
default: m(() => [
|
|
298
|
+
e.loading && (e.loadingText || t.$slots.loading) ? (n(), h("div", Ue, [
|
|
299
|
+
x(t.$slots, "loading", {}, () => [
|
|
300
|
+
_("div", Se, [
|
|
301
|
+
f(o(Me), { class: "size-4 animate-spin" }),
|
|
302
|
+
_("span", null, w(e.loadingText), 1)
|
|
303
|
+
])
|
|
304
|
+
])
|
|
305
|
+
])) : !e.loading && (e.notFoundText || t.$slots.empty) ? (n(), k(o(xe), { key: 1 }, {
|
|
306
|
+
default: m(() => [
|
|
307
|
+
x(t.$slots, "empty", {}, () => [
|
|
308
|
+
z(w(e.notFoundText), 1)
|
|
309
|
+
])
|
|
310
|
+
]),
|
|
311
|
+
_: 3
|
|
312
|
+
})) : v("", !0),
|
|
313
|
+
pe(f(o(Ie), null, {
|
|
314
|
+
default: m(() => [
|
|
315
|
+
f(o(Te), null, {
|
|
316
|
+
default: m(() => [
|
|
317
|
+
x(t.$slots, "default", {}, () => [
|
|
318
|
+
e.options && e.options.length ? (n(!0), h(de, { key: 0 }, fe(e.options, (l, c) => (n(), k(o(Ve), {
|
|
319
|
+
key: l[e.optionId] || c,
|
|
320
|
+
value: l
|
|
321
|
+
}, {
|
|
322
|
+
default: m(() => [
|
|
323
|
+
x(t.$slots, "option", { item: l }, () => [
|
|
324
|
+
z(w(l.text || l.label || l), 1)
|
|
325
|
+
]),
|
|
326
|
+
f(o(be), { class: "ml-auto" }, {
|
|
327
|
+
default: m(() => [
|
|
328
|
+
f(o(he), { size: "16" })
|
|
329
|
+
]),
|
|
330
|
+
_: 1
|
|
331
|
+
})
|
|
332
|
+
]),
|
|
333
|
+
_: 2
|
|
334
|
+
}, 1032, ["value"]))), 128)) : v("", !0)
|
|
335
|
+
])
|
|
336
|
+
]),
|
|
337
|
+
_: 3
|
|
338
|
+
})
|
|
339
|
+
]),
|
|
340
|
+
_: 3
|
|
341
|
+
}, 512), [
|
|
342
|
+
[me, !e.loading]
|
|
343
|
+
])
|
|
344
|
+
]),
|
|
345
|
+
_: 3
|
|
346
|
+
})
|
|
347
|
+
])
|
|
348
|
+
]),
|
|
349
|
+
_: 3
|
|
350
|
+
}, 16, ["model-value", "searchTerm", "open"]),
|
|
351
|
+
e.description && !g.value ? (n(), h("div", {
|
|
352
|
+
key: 1,
|
|
353
|
+
id: G,
|
|
354
|
+
class: "text-gray-500 text-[11px] leading-tight"
|
|
355
|
+
}, w(e.description), 1)) : v("", !0),
|
|
356
|
+
typeof e.error == "string" && g.value ? (n(), h("div", {
|
|
357
|
+
key: 2,
|
|
358
|
+
id: J,
|
|
359
|
+
class: "text-[var(--alert-red-dark,#831511)] flex items-center gap-1 text-[11px] font-medium leading-tight pt-0.5"
|
|
360
|
+
}, [
|
|
361
|
+
f(o(q), {
|
|
362
|
+
size: "14",
|
|
363
|
+
class: "text-[var(--alert-red-dark,#831511)] shrink-0"
|
|
364
|
+
}),
|
|
365
|
+
_("span", null, w(e.error), 1)
|
|
366
|
+
])) : v("", !0)
|
|
367
|
+
], 2));
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
export {
|
|
371
|
+
lt as default
|
|
372
|
+
};
|
|
@@ -22,12 +22,14 @@ declare const _default: import('vue').DefineComponent<DocumentInputProps, {
|
|
|
22
22
|
input: import('vue').Ref<any, any>;
|
|
23
23
|
localValue: import('vue').Ref<string, string>;
|
|
24
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
25
|
+
clear: () => any;
|
|
25
26
|
"update:modelValue": (payload: string) => any;
|
|
26
27
|
change: (payload: string) => any;
|
|
27
28
|
blur: (payload: FocusEvent) => any;
|
|
28
29
|
focus: (payload: FocusEvent) => any;
|
|
29
30
|
validate: (isValid: boolean) => any;
|
|
30
31
|
}, string, import('vue').PublicProps, Readonly<DocumentInputProps> & Readonly<{
|
|
32
|
+
onClear?: (() => any) | undefined;
|
|
31
33
|
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
32
34
|
onChange?: ((payload: string) => any) | undefined;
|
|
33
35
|
onBlur?: ((payload: FocusEvent) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentInput.vue.d.ts","sourceRoot":"","sources":["../../src/document-input/DocumentInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentInput.vue.d.ts","sourceRoot":"","sources":["../../src/document-input/DocumentInput.vue"],"names":[],"mappings":"AA8bA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAA;AAElE,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,UAAU,CAAC,EAAE,GAAG,CAAA;CACjB;;;;;;;;;;;;;;;;;;;cAXY,OAAO;iBAMJ,OAAO;aAJX,OAAO;WADT,OAAO,GAAG,MAAM;gBAEX,OAAO;kBAPL,YAAY;YAWlB,OAAO;;;;;;;;;;;;;;;;;;;;;AA0jBlB,wBAUG"}
|