@caipira/tamandua 0.0.97 → 0.0.99
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/Dropdown.js +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-jLXkMqpc.js → Dropdown.vue_vue_type_script_setup_true_lang-BSnpkGOU.js} +1 -1
- package/dist/Form.js +2 -2
- package/dist/{Form.vue_vue_type_script_setup_true_lang-CeWEv9hg.js → Form.vue_vue_type_script_setup_true_lang-BYcaoapl.js} +62 -62
- package/dist/InputMultiplier.js +2 -2
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BUbpeN-i.js +74 -0
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-BKKnQy7v.js → InputPassword.vue_vue_type_script_setup_true_lang-BUBoQxdM.js} +32 -33
- package/dist/InputPhone.js +2 -2
- package/dist/{InputPhone.vue_vue_type_script_setup_true_lang-B4TULqLW.js → InputPhone.vue_vue_type_script_setup_true_lang-CtWnbbtm.js} +4 -5
- package/dist/InputText.js +2 -2
- package/dist/InputText.vue_vue_type_script_setup_true_lang-D2cGaq7X.js +47 -0
- package/dist/Popconfirm.js +2 -2
- package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-DCM2q4r_.js → Popconfirm.vue_vue_type_script_setup_true_lang-CR0OJ8Ao.js} +1 -1
- package/dist/Popover-P-D1olPy.js +96 -0
- package/dist/Popover.css +1 -1
- package/dist/Popover.js +2 -2
- package/dist/{ProgressLine-BqINh5jh.js → ProgressLine-WECUkWks.js} +8 -8
- package/dist/ProgressLine.css +1 -1
- package/dist/ProgressLine.js +2 -2
- package/dist/components.js +9 -9
- package/dist/{plugin-DDs2fkQY.js → plugin-Bhokj2iJ.js} +1 -1
- package/dist/{plugin-CLEf3cxJ.js → plugin-BkDzEYgS.js} +1 -1
- package/dist/{plugin-CQyHQgvJ.js → plugin-C3ZZPmkg.js} +1 -1
- package/dist/{plugin-DrmCCRQ9.js → plugin-C9FfiHWW.js} +1 -1
- package/dist/{plugin-CrHDShgh.js → plugin-CXTwBekr.js} +1 -1
- package/dist/{plugin-DyFj9P33.js → plugin-Cbz7TWzB.js} +1 -1
- package/dist/{plugin-axB5ton8.js → plugin-DJDKTDU5.js} +1 -1
- package/dist/{plugin-DMGSStZm.js → plugin-DJYF3-VD.js} +1 -1
- package/dist/{plugin-CRmM6_Ee.js → plugin-cOJ_nFaw.js} +1 -1
- package/dist/{plugins-DQqs_lDX.js → plugins-D57bfrRk.js} +16 -16
- package/dist/plugins.js +16 -16
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Form/types.d.ts +4 -1
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +3 -0
- package/dist/types/components/InputMultiplier/types.d.ts +1 -0
- package/dist/types/components/InputText/InputText.vue.d.ts +12 -3
- package/dist/types/components/InputText/types.d.ts +5 -1
- package/dist/types/components/Popover/Popover.vue.d.ts +3 -3
- package/dist/types/components/Popover/types.d.ts +4 -1
- package/dist/types/components/ProgressLine/ProgressLine.vue.d.ts +12 -0
- package/dist/types/components/ProgressLine/types.d.ts +6 -0
- package/package.json +1 -1
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-DxO6Vq3F.js +0 -71
- package/dist/InputText.vue_vue_type_script_setup_true_lang-yxUtfIl9.js +0 -43
- package/dist/Popover-Cy9pkLML.js +0 -94
package/dist/Dropdown.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Dropdown.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as a } from "./plugin-
|
|
1
|
+
import { _ as p } from "./Dropdown.vue_vue_type_script_setup_true_lang-BSnpkGOU.js";
|
|
2
|
+
import { p as a } from "./plugin-C9FfiHWW.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Dropdown,
|
|
5
5
|
a as DropdownPlugin
|
|
@@ -95,7 +95,7 @@ const W = /* @__PURE__ */ Q("span", null, "Loading...", -1), X = ["aria-selected
|
|
|
95
95
|
ref_key: "listRef",
|
|
96
96
|
ref: C,
|
|
97
97
|
role: "listbox",
|
|
98
|
-
class: c(["text-left max-h-60 min-w-
|
|
98
|
+
class: c(["text-left max-h-60 min-w-fit z-10 overflow-y-auto scrollbar select-none floatable w-full", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
|
|
99
99
|
onScrollend: T,
|
|
100
100
|
onMousemove: o[0] || (o[0] = () => p.value = "mouse"),
|
|
101
101
|
onKeydown: M
|
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-BYcaoapl.js";
|
|
2
|
+
import { p as a } from "./plugin-DJDKTDU5.js";
|
|
3
3
|
export {
|
|
4
4
|
m as Form,
|
|
5
5
|
a as FormPlugin
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
import { reactive as C, defineComponent as $, ref as _, computed as N, watch as O, provide as z, resolveComponent as A, openBlock as J, createElementBlock as P, renderSlot as j, unref as E, createElementVNode as B, normalizeClass as T, withDirectives as W, createVNode as R, mergeProps as q, vShow as x } from "vue";
|
|
2
2
|
import { F as G } from "./ui-5PiaVzMN.js";
|
|
3
|
-
import { F as
|
|
3
|
+
import { F as s, a as f } from "./form-Dctryp6H.js";
|
|
4
4
|
import { d as h, c as S, p as F, a as V } from "./transformers-CrxkoXtN.js";
|
|
5
5
|
const i = {
|
|
6
6
|
default: (e, t, r) => (t[r] = e, t),
|
|
7
|
-
price: (e, t, r,
|
|
7
|
+
price: (e, t, r, n = ["Currency", "Value"]) => {
|
|
8
8
|
const [c, a] = F(e);
|
|
9
|
-
return t[`${r}${
|
|
9
|
+
return t[`${r}${n[0]}`] = c, t[`${r}${n[1]}`] = a, t;
|
|
10
10
|
},
|
|
11
11
|
password: async (e, t, r) => (t[r] = V(e), t)
|
|
12
|
-
}, H = async (e, t, r,
|
|
12
|
+
}, H = async (e, t, r, n) => {
|
|
13
13
|
switch (e) {
|
|
14
|
-
case
|
|
14
|
+
case s.Address:
|
|
15
15
|
return i.default(
|
|
16
16
|
r,
|
|
17
17
|
t,
|
|
18
|
-
|
|
18
|
+
n
|
|
19
19
|
);
|
|
20
|
-
case
|
|
20
|
+
case s.Boolean:
|
|
21
21
|
return i.default(
|
|
22
22
|
r,
|
|
23
23
|
t,
|
|
24
|
-
|
|
24
|
+
n
|
|
25
25
|
);
|
|
26
|
-
case
|
|
26
|
+
case s.Country:
|
|
27
27
|
return i.default(
|
|
28
28
|
S(r),
|
|
29
29
|
t,
|
|
30
|
-
|
|
30
|
+
n
|
|
31
31
|
);
|
|
32
|
-
case
|
|
32
|
+
case s.Date:
|
|
33
33
|
return i.default(
|
|
34
34
|
h(r),
|
|
35
35
|
t,
|
|
36
|
-
|
|
36
|
+
n
|
|
37
37
|
);
|
|
38
|
-
case
|
|
39
|
-
case
|
|
38
|
+
case s.Document:
|
|
39
|
+
case s.Documents:
|
|
40
40
|
throw new Error("Cannot append files to JSON!");
|
|
41
|
-
case
|
|
41
|
+
case s.Price:
|
|
42
42
|
return i.price(
|
|
43
43
|
r,
|
|
44
44
|
t,
|
|
45
|
-
|
|
45
|
+
n
|
|
46
46
|
);
|
|
47
|
-
case
|
|
47
|
+
case s.Password:
|
|
48
48
|
return await i.password(
|
|
49
49
|
r,
|
|
50
50
|
t,
|
|
51
|
-
|
|
51
|
+
n
|
|
52
52
|
);
|
|
53
|
-
case
|
|
53
|
+
case s.StringArray:
|
|
54
54
|
return i.default(
|
|
55
55
|
r,
|
|
56
56
|
t,
|
|
57
|
-
|
|
57
|
+
n
|
|
58
58
|
);
|
|
59
59
|
default:
|
|
60
60
|
return i.default(
|
|
61
61
|
r,
|
|
62
62
|
t,
|
|
63
|
-
|
|
63
|
+
n
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
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
67
|
default: (e, t, r) => {
|
|
68
|
-
const
|
|
69
|
-
return e && t.append(r,
|
|
68
|
+
const n = p(e);
|
|
69
|
+
return e && t.append(r, n), t;
|
|
70
70
|
},
|
|
71
|
-
price: (e, t, r,
|
|
71
|
+
price: (e, t, r, n = ["Currency", "Value"]) => {
|
|
72
72
|
const [c, a] = F(e);
|
|
73
|
-
return t.append(`${r}${
|
|
73
|
+
return t.append(`${r}${n[0]}`, p(c)), t.append(`${r}${n[1]}`, p(a)), t;
|
|
74
74
|
},
|
|
75
75
|
address: (e, t, r) => (t.append(
|
|
76
76
|
r,
|
|
@@ -79,45 +79,45 @@ const i = {
|
|
|
79
79
|
country: S(e?.country)
|
|
80
80
|
})
|
|
81
81
|
), t),
|
|
82
|
-
documents: (e, t, r) => (r.endsWith("[]") || (r = `${r}[]`), Array.from(e).forEach((
|
|
82
|
+
documents: (e, t, r) => (r.endsWith("[]") || (r = `${r}[]`), Array.from(e).forEach((n) => t.append(r, n)), t),
|
|
83
83
|
document: (e, t, r) => (t.append(r, e), t),
|
|
84
|
-
stringArray: (e, t, r) => (r.endsWith("[]") || (r = `${r}[]`), e.forEach((
|
|
84
|
+
stringArray: (e, t, r) => (r.endsWith("[]") || (r = `${r}[]`), e.forEach((n) => t.append(r, p(n))), t),
|
|
85
85
|
object: (e, t, r) => (t.append(r, JSON.stringify(e)), t)
|
|
86
|
-
}, I = async (e, t, r,
|
|
86
|
+
}, I = async (e, t, r, n) => {
|
|
87
87
|
switch (e) {
|
|
88
|
-
case
|
|
89
|
-
return u.default(S(r), t,
|
|
90
|
-
case
|
|
91
|
-
return u.document(r, t,
|
|
92
|
-
case
|
|
93
|
-
return u.documents(r, t,
|
|
94
|
-
case
|
|
95
|
-
return u.default(h(r), t,
|
|
96
|
-
case
|
|
97
|
-
return u.address(r, t,
|
|
98
|
-
case
|
|
99
|
-
return u.price(r, t,
|
|
100
|
-
case
|
|
101
|
-
return u.default(V(r), t,
|
|
102
|
-
case
|
|
103
|
-
return u.stringArray(r, t,
|
|
104
|
-
case
|
|
105
|
-
return u.object(r, t,
|
|
88
|
+
case s.Country:
|
|
89
|
+
return u.default(S(r), t, n);
|
|
90
|
+
case s.Document:
|
|
91
|
+
return u.document(r, t, n);
|
|
92
|
+
case s.Documents:
|
|
93
|
+
return u.documents(r, t, n);
|
|
94
|
+
case s.Date:
|
|
95
|
+
return u.default(h(r), t, n);
|
|
96
|
+
case s.Address:
|
|
97
|
+
return u.address(r, t, n);
|
|
98
|
+
case s.Price:
|
|
99
|
+
return u.price(r, t, n);
|
|
100
|
+
case s.Password:
|
|
101
|
+
return u.default(V(r), t, n);
|
|
102
|
+
case s.StringArray:
|
|
103
|
+
return u.stringArray(r, t, n);
|
|
104
|
+
case s.Object:
|
|
105
|
+
return u.object(r, t, n);
|
|
106
106
|
default:
|
|
107
|
-
return u.default(r, t,
|
|
107
|
+
return u.default(r, t, n);
|
|
108
108
|
}
|
|
109
109
|
}, K = async (e, t, r) => {
|
|
110
110
|
switch (r) {
|
|
111
111
|
case f.JSON:
|
|
112
|
-
let
|
|
112
|
+
let n = {};
|
|
113
113
|
for (const a in e)
|
|
114
|
-
|
|
114
|
+
n = await H(
|
|
115
115
|
t[a],
|
|
116
|
-
|
|
116
|
+
n,
|
|
117
117
|
e[a],
|
|
118
118
|
a
|
|
119
119
|
);
|
|
120
|
-
return
|
|
120
|
+
return n;
|
|
121
121
|
case f.FormData:
|
|
122
122
|
default:
|
|
123
123
|
let c = new FormData();
|
|
@@ -169,14 +169,14 @@ const Z = /* @__PURE__ */ $({
|
|
|
169
169
|
showSubmit: { type: Boolean, default: !1 },
|
|
170
170
|
buttonProps: {},
|
|
171
171
|
submissionFormat: { default: f.FormData },
|
|
172
|
-
|
|
172
|
+
buttonWrapperClass: { default: "" }
|
|
173
173
|
},
|
|
174
174
|
emits: ["submit", "change"],
|
|
175
175
|
setup(e, { expose: t, emit: r }) {
|
|
176
|
-
const
|
|
177
|
-
id: N(() =>
|
|
178
|
-
schema:
|
|
179
|
-
format:
|
|
176
|
+
const n = e, c = r, a = _(), { form: m, getValue: o, setValue: d, setValues: b, reset: y, submit: g } = L({
|
|
177
|
+
id: N(() => n.identifier),
|
|
178
|
+
schema: n.schema,
|
|
179
|
+
format: n.submissionFormat
|
|
180
180
|
}), w = async () => {
|
|
181
181
|
const l = await g();
|
|
182
182
|
return c("submit", l), l;
|
|
@@ -184,9 +184,9 @@ const Z = /* @__PURE__ */ $({
|
|
|
184
184
|
return O(m, (l) => {
|
|
185
185
|
c("change", l);
|
|
186
186
|
}), z("formStyle", {
|
|
187
|
-
...
|
|
188
|
-
layout:
|
|
189
|
-
size:
|
|
187
|
+
...n.formStyle,
|
|
188
|
+
layout: n.layout,
|
|
189
|
+
size: n.size
|
|
190
190
|
}), t({
|
|
191
191
|
submit: w,
|
|
192
192
|
reset: y,
|
|
@@ -203,15 +203,15 @@ const Z = /* @__PURE__ */ $({
|
|
|
203
203
|
}, [
|
|
204
204
|
j(l.$slots, "default", { form: E(m) }),
|
|
205
205
|
B("div", {
|
|
206
|
-
class: T([
|
|
206
|
+
class: T([n.buttonWrapperClass])
|
|
207
207
|
}, [
|
|
208
208
|
W(R(D, q({
|
|
209
209
|
type: "submit",
|
|
210
210
|
class: "mt-4",
|
|
211
211
|
variant: "primary",
|
|
212
212
|
label: "Submit"
|
|
213
|
-
},
|
|
214
|
-
[x,
|
|
213
|
+
}, n.buttonProps, { onClick: w }), null, 16), [
|
|
214
|
+
[x, n.showSubmit]
|
|
215
215
|
])
|
|
216
216
|
], 2)
|
|
217
217
|
], 544);
|
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-BUbpeN-i.js";
|
|
2
|
+
import { p as l } from "./plugin-BkDzEYgS.js";
|
|
3
3
|
export {
|
|
4
4
|
t as InputMultiplier,
|
|
5
5
|
l as InputMultiplierPlugin
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as z, ref as b, watch as m, resolveComponent as k, openBlock as n, createElementBlock as s, createVNode as c, Fragment as V, renderList as C, createBlock as I, resolveDynamicComponent as y, mergeProps as R, toHandlers as w } from "vue";
|
|
2
|
+
import { F as x } from "./ui-5PiaVzMN.js";
|
|
3
|
+
const B = /* @__PURE__ */ z({
|
|
4
|
+
name: "TInputMultiplier",
|
|
5
|
+
__name: "InputMultiplier",
|
|
6
|
+
props: {
|
|
7
|
+
size: { default: x.Default },
|
|
8
|
+
component: { default: "t-input-text" },
|
|
9
|
+
inputProps: { default: () => ({}) },
|
|
10
|
+
listeners: { default: () => ({}) },
|
|
11
|
+
newItemModel: { default: "" },
|
|
12
|
+
modelValue: {},
|
|
13
|
+
canRemove: { type: Function, default: (u) => !0 }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:model-value"],
|
|
16
|
+
setup(u, { emit: p }) {
|
|
17
|
+
const e = u, d = p, o = b([]), v = () => {
|
|
18
|
+
o.value.push(e.newItemModel);
|
|
19
|
+
}, f = (t) => {
|
|
20
|
+
o.value = t;
|
|
21
|
+
}, _ = (t) => {
|
|
22
|
+
o.value.splice(t, 1);
|
|
23
|
+
};
|
|
24
|
+
return m(
|
|
25
|
+
o,
|
|
26
|
+
(t) => {
|
|
27
|
+
d("update:model-value", t);
|
|
28
|
+
},
|
|
29
|
+
{ deep: !0 }
|
|
30
|
+
), m(
|
|
31
|
+
() => e.modelValue,
|
|
32
|
+
(t) => {
|
|
33
|
+
f(t ?? []);
|
|
34
|
+
},
|
|
35
|
+
{ immediate: !0 }
|
|
36
|
+
), (t, F) => {
|
|
37
|
+
const i = k("t-button");
|
|
38
|
+
return n(), s("div", null, [
|
|
39
|
+
c(i, {
|
|
40
|
+
label: "Add",
|
|
41
|
+
variant: "primary",
|
|
42
|
+
"is-outline": !0,
|
|
43
|
+
icon: "plus",
|
|
44
|
+
size: "sm",
|
|
45
|
+
onClick: v
|
|
46
|
+
}),
|
|
47
|
+
(n(!0), s(V, null, C(o.value, (a, l) => (n(), s("div", {
|
|
48
|
+
key: l,
|
|
49
|
+
class: "flex items-center justify-start mt-2"
|
|
50
|
+
}, [
|
|
51
|
+
(n(), I(y(e.component), R({
|
|
52
|
+
size: e.size
|
|
53
|
+
}, e.inputProps, w(e.listeners), {
|
|
54
|
+
modelValue: o.value[l],
|
|
55
|
+
"onUpdate:modelValue": (r) => o.value[l] = r
|
|
56
|
+
}), null, 16, ["size", "modelValue", "onUpdate:modelValue"])),
|
|
57
|
+
c(i, {
|
|
58
|
+
variant: "transparent",
|
|
59
|
+
class: "ml-0.5",
|
|
60
|
+
icon: e.canRemove(a) ? "close" : "lock-outline",
|
|
61
|
+
disabled: !e.canRemove(a),
|
|
62
|
+
size: e.size,
|
|
63
|
+
"icon-props": { class: "text-(--border-color)" },
|
|
64
|
+
tabindex: e.canRemove(a) ? 0 : -1,
|
|
65
|
+
onClick: (r) => _(l)
|
|
66
|
+
}, null, 8, ["icon", "disabled", "size", "tabindex", "onClick"])
|
|
67
|
+
]))), 128))
|
|
68
|
+
]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
B as _
|
|
74
|
+
};
|
package/dist/InputPassword.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as a } from "./plugin-
|
|
1
|
+
import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-BUBoQxdM.js";
|
|
2
|
+
import { p as a } from "./plugin-Cbz7TWzB.js";
|
|
3
3
|
export {
|
|
4
4
|
s as InputPassword,
|
|
5
5
|
a as InputPasswordPlugin
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { defineComponent as ee, mergeModels as V, useModel as te, ref as R, watch as le, resolveComponent as j, openBlock as A, createElementBlock as S, Fragment as ne, createElementVNode as z, normalizeClass as B, createVNode as k, unref as U, createCommentVNode as _, withKeys as
|
|
1
|
+
import { defineComponent as ee, mergeModels as V, useModel as te, ref as R, watch as le, resolveComponent as j, openBlock as A, createElementBlock as S, Fragment as ne, createElementVNode as z, normalizeClass as B, createVNode as k, unref as U, createCommentVNode as _, withKeys as oe, createBlock as se, toDisplayString as re } from "vue";
|
|
2
2
|
import { u as ae } from "./useClipboard-BHFD0Jvv.js";
|
|
3
|
-
import "./InputText.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import "./InputText.vue_vue_type_script_setup_true_lang-D2cGaq7X.js";
|
|
4
4
|
import { f as ie } from "./format-CNTeOuM7.js";
|
|
5
|
-
const ue = (
|
|
5
|
+
const ue = (o = 18) => {
|
|
6
6
|
const e = "abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789", r = "!?@#-+<%$>[]{}";
|
|
7
7
|
let n = "";
|
|
8
8
|
const l = [
|
|
9
|
-
Math.floor(Math.random() *
|
|
10
|
-
Math.floor(Math.random() *
|
|
9
|
+
Math.floor(Math.random() * o),
|
|
10
|
+
Math.floor(Math.random() * o)
|
|
11
11
|
];
|
|
12
|
-
for (let a = 0; a <
|
|
12
|
+
for (let a = 0; a < o; a++)
|
|
13
13
|
l.includes(a) ? n += r.charAt(
|
|
14
14
|
Math.floor(Math.random() * r.length)
|
|
15
15
|
) : n += e.charAt(
|
|
16
16
|
Math.floor(Math.random() * e.length)
|
|
17
17
|
);
|
|
18
18
|
return n;
|
|
19
|
-
}, ce = (
|
|
20
|
-
let e = 0, r = 0, n = 0, l = 0, a = 0, u = 0, c = 0,
|
|
21
|
-
const Q = "abcdefghijklmnopqrstuvwxyz", W = "01234567890", X = ")!@#$%^&*()", Y = 8, h =
|
|
22
|
-
e =
|
|
23
|
-
for (let t = 0; t <
|
|
24
|
-
h[t].match(/[A-Z]/g) ? (L !== 0 && L + 1 === t && C++, L = t, n++) : h[t].match(/[a-z]/g) ? (q !== 0 && q + 1 === t && v++, q = t, l++) : h[t].match(/[0-9]/g) ? (t > 0 && t <
|
|
19
|
+
}, ce = (o) => {
|
|
20
|
+
let e = 0, r = 0, n = 0, l = 0, a = 0, u = 0, c = 0, w = 0, d = 0, b = 0, p = 0, C = 0, v = 0, s = 0, m = 0, M = 0, x = 0, g = 0, F = 2, O = 2, T = 2, E = 2, I = 3, D = 3, K = 3, Z = 4, G = 4, H = 6, L = 0, q = 0, N = 0;
|
|
21
|
+
const Q = "abcdefghijklmnopqrstuvwxyz", W = "01234567890", X = ")!@#$%^&*()", Y = 8, h = o.replace(/\s+/g, "").split(/\s*/), y = h.length;
|
|
22
|
+
e = o.length * Z, r = o.length;
|
|
23
|
+
for (let t = 0; t < y; t++) {
|
|
24
|
+
h[t].match(/[A-Z]/g) ? (L !== 0 && L + 1 === t && C++, L = t, n++) : h[t].match(/[a-z]/g) ? (q !== 0 && q + 1 === t && v++, q = t, l++) : h[t].match(/[0-9]/g) ? (t > 0 && t < y - 1 && c++, N !== 0 && N + 1 === t && s++, N = t, a++) : h[t].match(/[^a-zA-Z0-9_]/g) && (t > 0 && t < y - 1 && c++, u++);
|
|
25
25
|
let i = !1;
|
|
26
|
-
for (let f = 0; f <
|
|
27
|
-
h[t] == h[f] && t != f && (i = !0, p += Math.abs(
|
|
28
|
-
i && (
|
|
26
|
+
for (let f = 0; f < y; f++)
|
|
27
|
+
h[t] == h[f] && t != f && (i = !0, p += Math.abs(y / (f - t)));
|
|
28
|
+
i && (b++, d = y - b, p = Math.ceil(d ? p / d : p));
|
|
29
29
|
}
|
|
30
30
|
for (let t = 0; t < 23; t++) {
|
|
31
31
|
let i = Q.substring(t, t + 3), f = i.split("").reverse().join("");
|
|
32
|
-
(
|
|
32
|
+
(o.toLowerCase().indexOf(i) != -1 || o.toLowerCase().indexOf(f) != -1) && m++;
|
|
33
33
|
}
|
|
34
34
|
for (let t = 0; t < 8; t++) {
|
|
35
35
|
let i = W.substring(t, t + 3);
|
|
36
36
|
var J = i.split("").reverse().join("");
|
|
37
|
-
(
|
|
37
|
+
(o.toLowerCase().indexOf(i) != -1 || o.toLowerCase().indexOf(J) != -1) && M++;
|
|
38
38
|
}
|
|
39
39
|
for (let t = 0; t < 8; t++) {
|
|
40
40
|
let i = X.substring(t, t + 3), f = i.split("").reverse().join("");
|
|
41
|
-
(
|
|
41
|
+
(o.toLowerCase().indexOf(i) != -1 || o.toLowerCase().indexOf(f) != -1) && x++;
|
|
42
42
|
}
|
|
43
|
-
n > 0 && n < r && (e = e + (r - n) * 2), l > 0 && l < r && (e = e + (r - l) * 2), a > 0 && a < r && (e = e + a * G), u > 0 && (e = e + u * H), c > 0 && (e = e + c * F), (l > 0 || n > 0) && u === 0 && a === 0 && (e = e - r), l === 0 && n === 0 && u === 0 && a > 0 && (e = e - r),
|
|
43
|
+
n > 0 && n < r && (e = e + (r - n) * 2), l > 0 && l < r && (e = e + (r - l) * 2), a > 0 && a < r && (e = e + a * G), u > 0 && (e = e + u * H), c > 0 && (e = e + c * F), (l > 0 || n > 0) && u === 0 && a === 0 && (e = e - r), l === 0 && n === 0 && u === 0 && a > 0 && (e = e - r), b > 0 && (e = e - p), C > 0 && (e = e - C * O), v > 0 && (e = e - v * T), s > 0 && (e = e - s * E), m > 0 && (e = e - m * I), M > 0 && (e = e - M * D), x > 0 && (e = e - x * K), w = g;
|
|
44
44
|
let P = 0;
|
|
45
|
-
return
|
|
45
|
+
return o.length >= Y ? P = 3 : P = 4, w > P && (e = e + w * 2), e > 100 ? e = 100 : e < 0 && (e = 0), e;
|
|
46
46
|
}, $ = {
|
|
47
47
|
generatePassword: ue,
|
|
48
48
|
getPasswordStrength: ce
|
|
49
49
|
}, fe = { class: "flex border h-9 relative input-roundness input-border w-full" }, de = { class: "w-12 flex justify-center items-center border-l select-none ml-[0.5px] rounded-r-[var(--input-radius)] input-border input-bg-color" }, pe = {
|
|
50
50
|
key: 1,
|
|
51
51
|
class: "inline-block float-right select-none"
|
|
52
|
-
},
|
|
52
|
+
}, ye = /* @__PURE__ */ ee({
|
|
53
53
|
name: "TInputPassword",
|
|
54
54
|
__name: "InputPassword",
|
|
55
55
|
props: /* @__PURE__ */ V({
|
|
@@ -70,9 +70,9 @@ const ue = (s = 18) => {
|
|
|
70
70
|
modelModifiers: {}
|
|
71
71
|
}),
|
|
72
72
|
emits: /* @__PURE__ */ V(["generate", "enter"], ["update:modelValue"]),
|
|
73
|
-
setup(
|
|
74
|
-
const n =
|
|
75
|
-
if (
|
|
73
|
+
setup(o, { expose: e, emit: r }) {
|
|
74
|
+
const n = o, l = te(o, "modelValue"), a = r, u = R("password"), c = R(null), { copy: w } = ae(), d = R(!1), b = async (v, s) => {
|
|
75
|
+
if (s === void 0 && !v) {
|
|
76
76
|
l.value = { ...l.value };
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
@@ -82,7 +82,7 @@ const ue = (s = 18) => {
|
|
|
82
82
|
}, C = async () => {
|
|
83
83
|
l.value.raw = $.generatePassword(), a("generate", l.value);
|
|
84
84
|
};
|
|
85
|
-
return le(() => l.value.raw,
|
|
85
|
+
return le(() => l.value.raw, b, { immediate: !0 }), e({ focus: p }), (v, s) => {
|
|
86
86
|
const m = j("t-button"), M = j("t-input-text"), x = j("t-progress-line");
|
|
87
87
|
return A(), S(ne, null, [
|
|
88
88
|
z("div", fe, [
|
|
@@ -106,7 +106,7 @@ const ue = (s = 18) => {
|
|
|
106
106
|
reset: { opacity: 1, scale: 1 }
|
|
107
107
|
},
|
|
108
108
|
disabled: d.value,
|
|
109
|
-
onClick:
|
|
109
|
+
onClick: s[0] || (s[0] = (g) => U(w)(l.value.raw))
|
|
110
110
|
}, null, 8, ["disabled"])
|
|
111
111
|
], 2)) : _("", !0),
|
|
112
112
|
n.showRefresh ? (A(), S("div", {
|
|
@@ -130,15 +130,14 @@ const ue = (s = 18) => {
|
|
|
130
130
|
], 2)) : _("", !0),
|
|
131
131
|
k(M, {
|
|
132
132
|
modelValue: l.value.raw,
|
|
133
|
-
"onUpdate:modelValue":
|
|
133
|
+
"onUpdate:modelValue": s[1] || (s[1] = (g) => l.value.raw = g),
|
|
134
134
|
type: u.value,
|
|
135
135
|
autocomplete: n.autocomplete,
|
|
136
136
|
disabled: d.value,
|
|
137
|
-
"disable-style": !0,
|
|
138
137
|
ref_key: "input",
|
|
139
138
|
ref: c,
|
|
140
|
-
class: "w-full px-2 input-bg-color input-text-color input-outline input-roundness",
|
|
141
|
-
onKeyup:
|
|
139
|
+
"root-class": "w-full px-2 input-bg-color input-text-color input-outline input-roundness",
|
|
140
|
+
onKeyup: s[2] || (s[2] = oe((g) => a("enter"), ["enter"]))
|
|
142
141
|
}, null, 8, ["modelValue", "type", "autocomplete", "disabled"]),
|
|
143
142
|
z("div", de, [
|
|
144
143
|
k(m, {
|
|
@@ -147,11 +146,11 @@ const ue = (s = 18) => {
|
|
|
147
146
|
class: "h-full w-full justify-center",
|
|
148
147
|
icon: u.value === "password" ? "eye" : "eye-off",
|
|
149
148
|
disabled: d.value,
|
|
150
|
-
onClick:
|
|
149
|
+
onClick: s[3] || (s[3] = (g) => u.value = u.value === "password" ? "text" : "password")
|
|
151
150
|
}, null, 8, ["icon", "disabled"])
|
|
152
151
|
])
|
|
153
152
|
]),
|
|
154
|
-
n.showStrength ? (A(),
|
|
153
|
+
n.showStrength ? (A(), se(x, {
|
|
155
154
|
key: 0,
|
|
156
155
|
value: l.value.strength,
|
|
157
156
|
class: "mt-0.5",
|
|
@@ -164,5 +163,5 @@ const ue = (s = 18) => {
|
|
|
164
163
|
}
|
|
165
164
|
});
|
|
166
165
|
export {
|
|
167
|
-
|
|
166
|
+
ye as _
|
|
168
167
|
};
|
package/dist/InputPhone.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./InputPhone.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as r } from "./plugin-
|
|
1
|
+
import { _ as p } from "./InputPhone.vue_vue_type_script_setup_true_lang-CtWnbbtm.js";
|
|
2
|
+
import { p as r } from "./plugin-CXTwBekr.js";
|
|
3
3
|
export {
|
|
4
4
|
p as InputPhone,
|
|
5
5
|
r as InputPhonePlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const k = { class: "flex items-center h-9 w-full input-bg-color input-text-color border input-border input-roundness" }, N = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as g, ref as r, onBeforeMount as y, watch as h, resolveComponent as p, openBlock as I, createElementBlock as B, createVNode as m, withCtx as f, createElementVNode as b, toDisplayString as l } from "vue";
|
|
2
|
+
const k = { class: "flex items-center h-9 w-full input-bg-color input-text-color border input-border input-roundness" }, N = /* @__PURE__ */ g({
|
|
3
3
|
name: "TInputPhone",
|
|
4
4
|
__name: "InputPhone",
|
|
5
5
|
props: {
|
|
@@ -29,7 +29,7 @@ const k = { class: "flex items-center h-9 w-full input-bg-color input-text-color
|
|
|
29
29
|
}, c = async (e) => {
|
|
30
30
|
e && typeof e == "object" && (n.value = e.dialCode, "number" in e && (a.value = e.number));
|
|
31
31
|
};
|
|
32
|
-
return
|
|
32
|
+
return y(async () => {
|
|
33
33
|
await V(), c(u.modelValue);
|
|
34
34
|
}), h(
|
|
35
35
|
() => u.modelValue,
|
|
@@ -62,8 +62,7 @@ const k = { class: "flex items-center h-9 w-full input-bg-color input-text-color
|
|
|
62
62
|
m(x, {
|
|
63
63
|
modelValue: a.value,
|
|
64
64
|
"onUpdate:modelValue": o[1] || (o[1] = (t) => a.value = t),
|
|
65
|
-
"
|
|
66
|
-
class: "w-full input-bg-color input-text-color input-outline input-roundness input-padding",
|
|
65
|
+
"root-class": "w-full input-bg-color input-text-color input-outline input-roundness input-padding",
|
|
67
66
|
onInput: d
|
|
68
67
|
}, null, 8, ["modelValue"])
|
|
69
68
|
]);
|
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-D2cGaq7X.js";
|
|
2
|
+
import { p as r } from "./plugin-cOJ_nFaw.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputText,
|
|
5
5
|
r as InputTextPlugin
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as p, mergeModels as i, useModel as m, inject as s, withDirectives as c, openBlock as f, createElementBlock as y, normalizeClass as b, unref as l, vModelDynamic as v } from "vue";
|
|
2
|
+
import { F as t } from "./ui-5PiaVzMN.js";
|
|
3
|
+
const x = ["type", "readonly", "placeholder", "disabled", "autocomplete"], B = /* @__PURE__ */ p({
|
|
4
|
+
name: "TInputText",
|
|
5
|
+
__name: "InputText",
|
|
6
|
+
props: /* @__PURE__ */ i({
|
|
7
|
+
size: { default: t.Default },
|
|
8
|
+
type: { default: "text" },
|
|
9
|
+
placeholder: { default: void 0 },
|
|
10
|
+
autocomplete: { default: void 0 },
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
readonly: { type: Boolean, default: !1 },
|
|
13
|
+
rootClass: { default: "input-bg-color input-text-color input-outline border input-border input-roundness input-padding w-full" }
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: {
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: /* @__PURE__ */ i(["keyup.enter"], ["update:modelValue"]),
|
|
21
|
+
setup(o, { emit: h }) {
|
|
22
|
+
const a = m(o, "modelValue"), e = o, d = s("invalid", !1), n = s("validated", !1);
|
|
23
|
+
return (_, r) => c((f(), y("input", {
|
|
24
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => a.value = u),
|
|
25
|
+
type: e.type,
|
|
26
|
+
class: b({
|
|
27
|
+
[e.rootClass]: !0,
|
|
28
|
+
"opacity-30 cursor-not-allowed": e.disabled || e.readonly,
|
|
29
|
+
// Size
|
|
30
|
+
"h-7 text-sm": e.size === l(t).Small,
|
|
31
|
+
"h-9 text-base": e.size === l(t).Default,
|
|
32
|
+
// Validation
|
|
33
|
+
"border-red-500": !l(n) && l(d),
|
|
34
|
+
"border-emerald-500": l(n) && !l(d)
|
|
35
|
+
}),
|
|
36
|
+
readonly: e.readonly,
|
|
37
|
+
placeholder: e.placeholder,
|
|
38
|
+
disabled: e.disabled,
|
|
39
|
+
autocomplete: e.autocomplete
|
|
40
|
+
}, null, 10, x)), [
|
|
41
|
+
[v, a.value]
|
|
42
|
+
]);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
B as _
|
|
47
|
+
};
|
package/dist/Popconfirm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as m } from "./plugin-
|
|
1
|
+
import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-CR0OJ8Ao.js";
|
|
2
|
+
import { p as m } from "./plugin-Bhokj2iJ.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Popconfirm,
|
|
5
5
|
m as PopconfirmPlugin
|
|
@@ -18,7 +18,7 @@ const $ = { class: "text-sm mb-6 inline-flex items-center" }, B = { class: "colo
|
|
|
18
18
|
open: o.value,
|
|
19
19
|
"onUpdate:open": e[2] || (e[2] = (n) => o.value = n),
|
|
20
20
|
placement: i.placement,
|
|
21
|
-
"slot-wrapper-
|
|
21
|
+
"slot-wrapper-class": "rounded-sm"
|
|
22
22
|
}, {
|
|
23
23
|
default: m(({ onTogglePopover: n }) => [
|
|
24
24
|
k(s.$slots, "default", y(P({ onTogglePopover: n })))
|