@caipira/tamandua 0.0.32 → 0.0.33
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/README.md +12 -4
- package/dist/ChartTreemap.js +2 -2
- package/dist/{ChartTreemap.vue_vue_type_script_setup_true_lang-CG5aK3KH.js → ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js} +3 -1
- package/dist/InputPassword.js +2 -2
- package/dist/InputPassword.vue_vue_type_script_setup_true_lang-DtP-Tv-2.js +167 -0
- package/dist/Tag.js +2 -2
- package/dist/{Tag.vue_vue_type_script_setup_true_lang-CgX-nT8V.js → Tag.vue_vue_type_script_setup_true_lang-DMigzW22.js} +16 -19
- package/dist/components.js +3 -3
- package/dist/{plugin-DOiXH9p9.js → plugin-BN2jubTY.js} +1 -1
- package/dist/{plugin-BibUAa04.js → plugin-D4x3uASg.js} +1 -1
- package/dist/{plugin-D8CsjFdw.js → plugin-DgCa2m12.js} +1 -1
- package/dist/{plugins-ChB184ip.js → plugins-BA8tojIo.js} +4 -4
- package/dist/plugins.js +4 -4
- package/dist/tamandua.js +1 -1
- package/dist/types/enums/form.d.ts +3 -3
- package/dist/types/enums/ui.d.ts +10 -10
- package/dist/types/services/password.d.ts +1 -4
- package/dist/types/services/password.test.d.ts +1 -0
- package/package.json +3 -4
- package/dist/InputPassword.vue_vue_type_script_setup_true_lang-Do7d1Qfe.js +0 -172
- /package/dist/types/components/Form/{Form.spec.d.ts → Form.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -20,7 +20,15 @@ npx vite-bundle-visualizer
|
|
|
20
20
|
|
|
21
21
|
## Reference
|
|
22
22
|
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
23
|
+
[typescript](https://www.typescriptlang.org/docs)
|
|
24
|
+
[vuejs](https://v3.vuejs.org)
|
|
25
|
+
[vite](https://vitejs.dev)
|
|
26
|
+
[tailwind-css](https://tailwindcss.com)
|
|
27
|
+
[tamanduá](https://github.com/caipira-io/tamandua)
|
|
28
|
+
[storybook](https://storybook.js.org/docs/get-started/vue3-vite)
|
|
29
|
+
[floating-ui](https://floating-ui.com/docs/vue)
|
|
30
|
+
[gsap](https://gsap.com/docs/v3/GSAP)
|
|
31
|
+
[d3](https://d3js.org/getting-started)
|
|
32
|
+
[vue-i18n](https://kazupon.github.io/vue-i18n)
|
|
33
|
+
[date-fns](https://date-fns.org/v2.24.0/docs)
|
|
34
|
+
[fakerjs](https://next.fakerjs.dev/api)
|
package/dist/ChartTreemap.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as m } from "./plugin-
|
|
1
|
+
import { _ as e } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js";
|
|
2
|
+
import { p as m } from "./plugin-D4x3uASg.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ChartTreemap,
|
|
5
5
|
m as ChartTreemapPlugin
|
|
@@ -256,7 +256,9 @@ const vt = /* @__PURE__ */ T({
|
|
|
256
256
|
const a = parseInt(
|
|
257
257
|
C(`div#${n}`).style("width"),
|
|
258
258
|
10
|
|
259
|
-
), o = { top: 0, right: 0, bottom: 0, left: 0 }, f = a, d = 350, s = f - o.left - o.right, m = d - o.top - o.bottom, u = C(`div#${n} svg`).attr("width", f).attr("height", d).append("g").attr("transform", `translate(${o.left},${o.top})`), v = M(e.data).sum((c) => c?.value ?? 0).sort(
|
|
259
|
+
), o = { top: 0, right: 0, bottom: 0, left: 0 }, f = a, d = 350, s = f - o.left - o.right, m = d - o.top - o.bottom, u = C(`div#${n} svg`).attr("width", f).attr("height", d).append("g").attr("transform", `translate(${o.left},${o.top})`), v = M(e.data).sum((c) => c?.value ?? 0).sort(
|
|
260
|
+
(c, h) => (h.value ?? 0) - (c.value ?? 0)
|
|
261
|
+
), l = ft().size([s, m]).padding(1)(v), g = ht;
|
|
260
262
|
u.selectAll("rect").data(l.leaves()).enter().append("rect").attr("x", (c) => c.x0).attr("y", (c) => c.y0).attr("width", (c) => c.x1 - c.x0).attr("height", (c) => c.y1 - c.y0).attr("fill", (c, h) => {
|
|
261
263
|
const p = c.parent?.data?.color;
|
|
262
264
|
if (p)
|
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-DtP-Tv-2.js";
|
|
2
|
+
import { p as a } from "./plugin-BN2jubTY.js";
|
|
3
3
|
export {
|
|
4
4
|
s as InputPassword,
|
|
5
5
|
a as InputPasswordPlugin
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { defineComponent as ee, mergeModels as z, useModel as te, ref as R, watch as le, resolveComponent as V, openBlock as S, createElementBlock as x, Fragment as ne, createElementVNode as j, normalizeClass as B, createVNode as k, unref as U, createCommentVNode as _, withKeys as oe, createBlock as se, toDisplayString as ae } from "vue";
|
|
2
|
+
import { u as re } from "./useClipboard-BHFD0Jvv.js";
|
|
3
|
+
import { f as ie } from "./index-CjvqeRf7.js";
|
|
4
|
+
const ue = (o = 18) => {
|
|
5
|
+
const e = "abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789", a = "!?@#-+<%$>[]{}";
|
|
6
|
+
let n = "";
|
|
7
|
+
const l = [
|
|
8
|
+
Math.floor(Math.random() * o),
|
|
9
|
+
Math.floor(Math.random() * o)
|
|
10
|
+
];
|
|
11
|
+
for (let r = 0; r < o; r++)
|
|
12
|
+
l.includes(r) ? n += a.charAt(
|
|
13
|
+
Math.floor(Math.random() * a.length)
|
|
14
|
+
) : n += e.charAt(
|
|
15
|
+
Math.floor(Math.random() * e.length)
|
|
16
|
+
);
|
|
17
|
+
return n;
|
|
18
|
+
}, ce = (o) => {
|
|
19
|
+
let e = 0, a = 0, n = 0, l = 0, r = 0, u = 0, c = 0, w = 0, d = 0, b = 0, p = 0, C = 0, v = 0, s = 0, m = 0, M = 0, A = 0, y = 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;
|
|
20
|
+
const Q = "abcdefghijklmnopqrstuvwxyz", W = "01234567890", X = ")!@#$%^&*()", Y = 8, h = o.replace(/\s+/g, "").split(/\s*/), g = h.length;
|
|
21
|
+
e = o.length * Z, a = o.length;
|
|
22
|
+
for (let t = 0; t < g; t++) {
|
|
23
|
+
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 < g - 1 && c++, N !== 0 && N + 1 === t && s++, N = t, r++) : h[t].match(/[^a-zA-Z0-9_]/g) && (t > 0 && t < g - 1 && c++, u++);
|
|
24
|
+
let i = !1;
|
|
25
|
+
for (let f = 0; f < g; f++)
|
|
26
|
+
h[t] == h[f] && t != f && (i = !0, p += Math.abs(g / (f - t)));
|
|
27
|
+
i && (b++, d = g - b, p = Math.ceil(d ? p / d : p));
|
|
28
|
+
}
|
|
29
|
+
for (let t = 0; t < 23; t++) {
|
|
30
|
+
let i = Q.substring(t, t + 3), f = i.split("").reverse().join("");
|
|
31
|
+
(o.toLowerCase().indexOf(i) != -1 || o.toLowerCase().indexOf(f) != -1) && m++;
|
|
32
|
+
}
|
|
33
|
+
for (let t = 0; t < 8; t++) {
|
|
34
|
+
let i = W.substring(t, t + 3);
|
|
35
|
+
var J = i.split("").reverse().join("");
|
|
36
|
+
(o.toLowerCase().indexOf(i) != -1 || o.toLowerCase().indexOf(J) != -1) && M++;
|
|
37
|
+
}
|
|
38
|
+
for (let t = 0; t < 8; t++) {
|
|
39
|
+
let i = X.substring(t, t + 3), f = i.split("").reverse().join("");
|
|
40
|
+
(o.toLowerCase().indexOf(i) != -1 || o.toLowerCase().indexOf(f) != -1) && A++;
|
|
41
|
+
}
|
|
42
|
+
n > 0 && n < a && (e = e + (a - n) * 2), l > 0 && l < a && (e = e + (a - l) * 2), r > 0 && r < a && (e = e + r * G), u > 0 && (e = e + u * H), c > 0 && (e = e + c * F), (l > 0 || n > 0) && u === 0 && r === 0 && (e = e - a), l === 0 && n === 0 && u === 0 && r > 0 && (e = e - a), 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), A > 0 && (e = e - A * K), w = y;
|
|
43
|
+
let P = 0;
|
|
44
|
+
return o.length >= Y ? P = 3 : P = 4, w > P && (e = e + w * 2), e > 100 ? e = 100 : e < 0 && (e = 0), e;
|
|
45
|
+
}, $ = {
|
|
46
|
+
generatePassword: ue,
|
|
47
|
+
getPasswordStrength: ce
|
|
48
|
+
}, fe = { class: "flex border h-9 relative input-roundness input-border w-full" }, de = { class: "border-l select-none input-border input-control" }, pe = {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: "inline-block float-right select-none"
|
|
51
|
+
}, ye = /* @__PURE__ */ ee({
|
|
52
|
+
name: "TInputPassword",
|
|
53
|
+
__name: "InputPassword",
|
|
54
|
+
props: /* @__PURE__ */ z({
|
|
55
|
+
autocomplete: { default: "current-password" },
|
|
56
|
+
encryptor: { type: Function, default: void 0 },
|
|
57
|
+
showCopy: { type: Boolean, default: !0 },
|
|
58
|
+
showRefresh: { type: Boolean, default: !1 },
|
|
59
|
+
showStrength: { type: Boolean, default: !1 }
|
|
60
|
+
}, {
|
|
61
|
+
modelValue: {
|
|
62
|
+
default: {
|
|
63
|
+
raw: "",
|
|
64
|
+
strength: 0,
|
|
65
|
+
hash: "",
|
|
66
|
+
updatedAt: void 0
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
modelModifiers: {}
|
|
70
|
+
}),
|
|
71
|
+
emits: /* @__PURE__ */ z(["generate", "enter"], ["update:modelValue"]),
|
|
72
|
+
setup(o, { expose: e, emit: a }) {
|
|
73
|
+
const n = o, l = te(o, "modelValue"), r = a, u = R("password"), c = R(null), { copy: w } = re(), d = R(!1), b = async (v, s) => {
|
|
74
|
+
if (s === void 0 && !v) {
|
|
75
|
+
l.value = { ...l.value };
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
l.value.strength = $.getPasswordStrength(l.value.raw), n.encryptor && (l.value.hash = await n.encryptor(l.value.raw));
|
|
79
|
+
}, p = () => {
|
|
80
|
+
c.value && c.value.$el && c.value.$el.focus();
|
|
81
|
+
}, C = async () => {
|
|
82
|
+
l.value.raw = $.generatePassword();
|
|
83
|
+
};
|
|
84
|
+
return le(() => l.value.raw, b, { immediate: !0 }), e({ focus: p }), (v, s) => {
|
|
85
|
+
const m = V("t-button"), M = V("t-input-text"), A = V("t-progress-line");
|
|
86
|
+
return S(), x(ne, null, [
|
|
87
|
+
j("div", fe, [
|
|
88
|
+
n.showCopy ? (S(), x("div", {
|
|
89
|
+
key: 0,
|
|
90
|
+
class: B(["border-r select-none input-border input-control", { "w-12": n.showCopy }])
|
|
91
|
+
}, [
|
|
92
|
+
k(m, {
|
|
93
|
+
variant: "transparent",
|
|
94
|
+
icon: "copy",
|
|
95
|
+
size: "sm",
|
|
96
|
+
class: "h-full w-full justify-center",
|
|
97
|
+
animate: {
|
|
98
|
+
target: "icon",
|
|
99
|
+
trigger: "click",
|
|
100
|
+
animation: {
|
|
101
|
+
scale: 4,
|
|
102
|
+
yoyo: !0,
|
|
103
|
+
opacity: 0
|
|
104
|
+
},
|
|
105
|
+
reset: { opacity: 1, scale: 1 }
|
|
106
|
+
},
|
|
107
|
+
disabled: d.value,
|
|
108
|
+
onClick: s[0] || (s[0] = (y) => U(w)(l.value.raw))
|
|
109
|
+
}, null, 8, ["disabled"])
|
|
110
|
+
], 2)) : _("", !0),
|
|
111
|
+
n.showRefresh ? (S(), x("div", {
|
|
112
|
+
key: 1,
|
|
113
|
+
class: B(["border-r select-none input-border input-control", { "w-12": n.showRefresh }])
|
|
114
|
+
}, [
|
|
115
|
+
k(m, {
|
|
116
|
+
variant: "transparent",
|
|
117
|
+
icon: "refresh",
|
|
118
|
+
size: "sm",
|
|
119
|
+
class: "h-full w-full justify-center",
|
|
120
|
+
animate: {
|
|
121
|
+
target: "icon",
|
|
122
|
+
trigger: "click",
|
|
123
|
+
animation: { rotation: 360 },
|
|
124
|
+
reset: { rotation: 0 }
|
|
125
|
+
},
|
|
126
|
+
disabled: d.value,
|
|
127
|
+
onClick: C
|
|
128
|
+
}, null, 8, ["disabled"])
|
|
129
|
+
], 2)) : _("", !0),
|
|
130
|
+
k(M, {
|
|
131
|
+
modelValue: l.value.raw,
|
|
132
|
+
"onUpdate:modelValue": s[1] || (s[1] = (y) => l.value.raw = y),
|
|
133
|
+
type: u.value,
|
|
134
|
+
autocomplete: n.autocomplete,
|
|
135
|
+
disabled: d.value,
|
|
136
|
+
"disable-style": !0,
|
|
137
|
+
ref_key: "input",
|
|
138
|
+
ref: c,
|
|
139
|
+
class: "w-full px-2 input-bg-color input-text-color input-outline input-roundness",
|
|
140
|
+
onKeyup: s[2] || (s[2] = oe((y) => r("enter"), ["enter"]))
|
|
141
|
+
}, null, 8, ["modelValue", "type", "autocomplete", "disabled"]),
|
|
142
|
+
j("div", de, [
|
|
143
|
+
k(m, {
|
|
144
|
+
variant: "transparent",
|
|
145
|
+
size: "sm",
|
|
146
|
+
class: "h-full w-full justify-center",
|
|
147
|
+
icon: u.value === "password" ? "eye" : "eye-off",
|
|
148
|
+
disabled: d.value,
|
|
149
|
+
onClick: s[3] || (s[3] = (y) => u.value = u.value === "password" ? "text" : "password")
|
|
150
|
+
}, null, 8, ["icon", "disabled"])
|
|
151
|
+
])
|
|
152
|
+
]),
|
|
153
|
+
n.showStrength ? (S(), se(A, {
|
|
154
|
+
key: 0,
|
|
155
|
+
value: l.value.strength,
|
|
156
|
+
class: "mt-0.5",
|
|
157
|
+
height: 2.5,
|
|
158
|
+
"show-percentage": !1
|
|
159
|
+
}, null, 8, ["value"])) : _("", !0),
|
|
160
|
+
l.value.updatedAt ? (S(), x("small", pe, " Last updated " + ae(U(ie)(new Date(l.value.updatedAt), "MMMM do yyyy, hh:mm:ss")), 1)) : _("", !0)
|
|
161
|
+
], 64);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
export {
|
|
166
|
+
ye as _
|
|
167
|
+
};
|
package/dist/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-DMigzW22.js";
|
|
2
|
+
import { p } from "./plugin-DgCa2m12.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Tag,
|
|
5
5
|
p as TagPlugin
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, resolveComponent as m, openBlock as o, createElementBlock as a, normalizeStyle as _, normalizeClass as p, createElementVNode as C, renderSlot as k, unref as l, toDisplayString as v, createBlock as u, withCtx as z, createVNode as g, createCommentVNode as h } from "vue";
|
|
2
2
|
import { a as t } from "./ui-BC6H9E93.js";
|
|
3
|
-
const B = ["role"],
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "bg-[#00000046]"
|
|
6
|
-
}, w = /* @__PURE__ */ _({
|
|
3
|
+
const B = ["role"], S = { class: "px-2" }, b = { key: 0 }, w = /* @__PURE__ */ y({
|
|
7
4
|
name: "TTag",
|
|
8
5
|
__name: "Tag",
|
|
9
6
|
props: {
|
|
@@ -15,40 +12,40 @@ const B = ["role"], b = { class: "px-2" }, S = {
|
|
|
15
12
|
hasCloseButton: { type: Boolean, default: !1 }
|
|
16
13
|
},
|
|
17
14
|
emits: ["close"],
|
|
18
|
-
setup(
|
|
19
|
-
const e =
|
|
15
|
+
setup(f, { emit: d }) {
|
|
16
|
+
const e = f, r = d;
|
|
20
17
|
return (i, s) => {
|
|
21
18
|
const c = m("t-button"), x = m("t-popconfirm");
|
|
22
19
|
return o(), a("div", {
|
|
23
|
-
style:
|
|
24
|
-
class:
|
|
25
|
-
"bg-
|
|
20
|
+
style: _(`background-color:${e.color}`),
|
|
21
|
+
class: p([{
|
|
22
|
+
"bg-caipira-primary-inverted": !e.color
|
|
26
23
|
}, "w-max inline-flex items-stretch rounded-sm select-none color-caipira-primary"]),
|
|
27
24
|
role: e.role
|
|
28
25
|
}, [
|
|
29
|
-
C("div",
|
|
26
|
+
C("div", S, [
|
|
30
27
|
i.$slots.default ? k(i.$slots, "default", { key: 0 }) : (o(), a("span", {
|
|
31
28
|
key: 1,
|
|
32
|
-
class:
|
|
29
|
+
class: p({
|
|
33
30
|
"text-xs": e.size === l(t).ExtraSmall,
|
|
34
31
|
"text-sm": e.size === l(t).Small,
|
|
35
32
|
"text-base": e.size === l(t).Default,
|
|
36
33
|
"text-lg": e.size === l(t).Large,
|
|
37
34
|
"text-xl": e.size === l(t).ExtraLarge
|
|
38
35
|
})
|
|
39
|
-
},
|
|
36
|
+
}, v(e.text), 3))
|
|
40
37
|
]),
|
|
41
|
-
e.hasCloseButton ? (o(), a("div",
|
|
42
|
-
e.confirmClose ? (o(),
|
|
38
|
+
e.hasCloseButton ? (o(), a("div", b, [
|
|
39
|
+
e.confirmClose ? (o(), u(x, {
|
|
43
40
|
key: 0,
|
|
44
41
|
message: "Are you sure you want to remove it?",
|
|
45
42
|
class: "h-full",
|
|
46
43
|
onConfirm: s[0] || (s[0] = (n) => r("close"))
|
|
47
44
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
45
|
+
default: z(({ onTogglePopover: n }) => [
|
|
46
|
+
g(c, {
|
|
50
47
|
variant: "transparent",
|
|
51
|
-
hover: !
|
|
48
|
+
hover: !0,
|
|
52
49
|
icon: "close",
|
|
53
50
|
size: "",
|
|
54
51
|
class: "px-1.5 h-full",
|
|
@@ -56,7 +53,7 @@ const B = ["role"], b = { class: "px-2" }, S = {
|
|
|
56
53
|
}, null, 8, ["onClick"])
|
|
57
54
|
]),
|
|
58
55
|
_: 1
|
|
59
|
-
})) : (o(),
|
|
56
|
+
})) : (o(), u(c, {
|
|
60
57
|
key: 1,
|
|
61
58
|
variant: "transparent",
|
|
62
59
|
icon: "close",
|
package/dist/components.js
CHANGED
|
@@ -2,7 +2,7 @@ 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
3
|
import { B as s } from "./Button-CAiIEdkK.js";
|
|
4
4
|
import { _ as f } from "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
5
|
-
import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js";
|
|
6
6
|
import { D as u } from "./Drawer-omdZnBPG.js";
|
|
7
7
|
import { _ as l } from "./Dropdown.vue_vue_type_script_setup_true_lang-pjG__bX2.js";
|
|
8
8
|
import { _ as h } from "./FileDrop.vue_vue_type_script_setup_true_lang-DLEH_LLX.js";
|
|
@@ -19,7 +19,7 @@ import { _ as R } from "./InputCheckbox.vue_vue_type_script_setup_true_lang-Bh8H
|
|
|
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
21
|
import { _ as K } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-BJJQTQzF.js";
|
|
22
|
-
import { _ as O } from "./InputPassword.vue_vue_type_script_setup_true_lang-
|
|
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
25
|
import { _ as Y } from "./InputRadio.vue_vue_type_script_setup_true_lang-Cu7lzDAh.js";
|
|
@@ -40,7 +40,7 @@ import { _ as Cr } from "./SensitiveInfo.vue_vue_type_script_setup_true_lang-lCd
|
|
|
40
40
|
import { _ as Gr } from "./Skeleton.vue_vue_type_script_setup_true_lang-BZItfVoN.js";
|
|
41
41
|
import { _ as gr } from "./Tab.vue_vue_type_script_setup_true_lang-VzvYvoqa.js";
|
|
42
42
|
import { T as vr } from "./Table-C0Sr_Lfm.js";
|
|
43
|
-
import { _ as Fr } from "./Tag.vue_vue_type_script_setup_true_lang-
|
|
43
|
+
import { _ as Fr } from "./Tag.vue_vue_type_script_setup_true_lang-DMigzW22.js";
|
|
44
44
|
import { _ as Br } from "./Toast.vue_vue_type_script_setup_true_lang-Dezwl4qF.js";
|
|
45
45
|
export {
|
|
46
46
|
e as Avatar,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-DtP-Tv-2.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as s } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|
|
@@ -7,7 +7,7 @@ import { p as r } from "./plugin-DcWjzc_X.js";
|
|
|
7
7
|
import "./transform-DSaNEFMr.js";
|
|
8
8
|
import "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
9
9
|
import { p as o } from "./plugin-DDXOF4cU.js";
|
|
10
|
-
import { p as n } from "./plugin-
|
|
10
|
+
import { p as n } from "./plugin-D4x3uASg.js";
|
|
11
11
|
import "./Drawer-omdZnBPG.js";
|
|
12
12
|
import { p as m } from "./plugin-DRcJuXpS.js";
|
|
13
13
|
import { p as u } from "./plugin-CNqL90UL.js";
|
|
@@ -28,7 +28,7 @@ import { p as c } from "./plugin-DLkeyKDM.js";
|
|
|
28
28
|
import { p as h } from "./plugin-D9KHvOM3.js";
|
|
29
29
|
import { p as b } from "./plugin-BtF6kCcf.js";
|
|
30
30
|
import { p as d } from "./plugin-U6NcpOUL.js";
|
|
31
|
-
import { p as y } from "./plugin-
|
|
31
|
+
import { p as y } from "./plugin-BN2jubTY.js";
|
|
32
32
|
import { p as T } from "./plugin-CrHDShgh.js";
|
|
33
33
|
import { p as S } from "./plugin-z8Hr_T_O.js";
|
|
34
34
|
import { p as v } from "./plugin-Bog7k3Qf.js";
|
|
@@ -55,8 +55,8 @@ import { p as z } from "./plugin-B9wG8DUw.js";
|
|
|
55
55
|
import { p as E } from "./plugin-5vn4G57V.js";
|
|
56
56
|
import "./Table-C0Sr_Lfm.js";
|
|
57
57
|
import { p as O } from "./plugin-CTMcmMdr.js";
|
|
58
|
-
import "./Tag.vue_vue_type_script_setup_true_lang-
|
|
59
|
-
import { p as q } from "./plugin-
|
|
58
|
+
import "./Tag.vue_vue_type_script_setup_true_lang-DMigzW22.js";
|
|
59
|
+
import { p as q } from "./plugin-DgCa2m12.js";
|
|
60
60
|
import { p as R } from "./plugin-Dn96hI0e.js";
|
|
61
61
|
const Vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62
62
|
__proto__: null,
|
package/dist/plugins.js
CHANGED
|
@@ -7,7 +7,7 @@ import { p as C } from "./plugin-DcWjzc_X.js";
|
|
|
7
7
|
import "./transform-DSaNEFMr.js";
|
|
8
8
|
import "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
9
9
|
import { p as S } from "./plugin-DDXOF4cU.js";
|
|
10
|
-
import { p as v } from "./plugin-
|
|
10
|
+
import { p as v } from "./plugin-D4x3uASg.js";
|
|
11
11
|
import "./Drawer-omdZnBPG.js";
|
|
12
12
|
import { p as D } from "./plugin-DRcJuXpS.js";
|
|
13
13
|
import { p as L } from "./plugin-CNqL90UL.js";
|
|
@@ -28,7 +28,7 @@ import { p as $ } from "./plugin-DLkeyKDM.js";
|
|
|
28
28
|
import { p as or } from "./plugin-D9KHvOM3.js";
|
|
29
29
|
import { p as tr } from "./plugin-BtF6kCcf.js";
|
|
30
30
|
import { p as er } from "./plugin-U6NcpOUL.js";
|
|
31
|
-
import { p as nr } from "./plugin-
|
|
31
|
+
import { p as nr } from "./plugin-BN2jubTY.js";
|
|
32
32
|
import { p as ur } from "./plugin-CrHDShgh.js";
|
|
33
33
|
import { p as Pr } from "./plugin-z8Hr_T_O.js";
|
|
34
34
|
import { p as gr } from "./plugin-Bog7k3Qf.js";
|
|
@@ -55,8 +55,8 @@ import { p as Jr } from "./plugin-B9wG8DUw.js";
|
|
|
55
55
|
import { p as Nr } from "./plugin-5vn4G57V.js";
|
|
56
56
|
import "./Table-C0Sr_Lfm.js";
|
|
57
57
|
import { p as Qr } from "./plugin-CTMcmMdr.js";
|
|
58
|
-
import "./Tag.vue_vue_type_script_setup_true_lang-
|
|
59
|
-
import { p as Vr } from "./plugin-
|
|
58
|
+
import "./Tag.vue_vue_type_script_setup_true_lang-DMigzW22.js";
|
|
59
|
+
import { p as Vr } from "./plugin-DgCa2m12.js";
|
|
60
60
|
import { p as Xr } from "./plugin-Dn96hI0e.js";
|
|
61
61
|
export {
|
|
62
62
|
T as AvatarPlugin,
|
package/dist/tamandua.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare enum FormStates {
|
|
2
2
|
ADD = 0,
|
|
3
3
|
EDIT = 1
|
|
4
4
|
}
|
|
5
|
-
export declare
|
|
5
|
+
export declare enum FormDataTypes {
|
|
6
6
|
Address = 0,
|
|
7
7
|
Boolean = 1,
|
|
8
8
|
Country = 2,
|
|
@@ -17,7 +17,7 @@ export declare const enum FormDataTypes {
|
|
|
17
17
|
StringArray = 11,
|
|
18
18
|
Website = 12
|
|
19
19
|
}
|
|
20
|
-
export declare
|
|
20
|
+
export declare enum FormSubmissionFormat {
|
|
21
21
|
FormData = 0,
|
|
22
22
|
JSON = 1
|
|
23
23
|
}
|
package/dist/types/enums/ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare enum ElementSize {
|
|
2
2
|
Unset = "",
|
|
3
3
|
ExtraSmall = "xs",
|
|
4
4
|
Small = "sm",
|
|
@@ -6,13 +6,13 @@ export declare const enum ElementSize {
|
|
|
6
6
|
Large = "lg",
|
|
7
7
|
ExtraLarge = "xl"
|
|
8
8
|
}
|
|
9
|
-
export declare
|
|
9
|
+
export declare enum ElementShape {
|
|
10
10
|
Unset = "",
|
|
11
11
|
Square = "square",
|
|
12
12
|
Rounded = "rounded",
|
|
13
13
|
Circle = "circle"
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
15
|
+
export declare enum ButtonVariant {
|
|
16
16
|
DEFAULT = "default",
|
|
17
17
|
PRIMARY = "primary",
|
|
18
18
|
SUCCESS = "success",
|
|
@@ -21,18 +21,18 @@ export declare const enum ButtonVariant {
|
|
|
21
21
|
LINK = "link",
|
|
22
22
|
TRANSPARENT = "transparent"
|
|
23
23
|
}
|
|
24
|
-
export declare
|
|
24
|
+
export declare enum ToastVariant {
|
|
25
25
|
DEFAULT = "default",
|
|
26
26
|
PRIMARY = "primary",
|
|
27
27
|
SUCCESS = "success",
|
|
28
28
|
DANGER = "danger",
|
|
29
29
|
WARNING = "warning"
|
|
30
30
|
}
|
|
31
|
-
export declare
|
|
31
|
+
export declare enum ElementTrigger {
|
|
32
32
|
CLICK = "click",
|
|
33
33
|
HOVER = "hover"
|
|
34
34
|
}
|
|
35
|
-
export declare
|
|
35
|
+
export declare enum ElementPosition {
|
|
36
36
|
TOP_START = "top-start",
|
|
37
37
|
TOP = "top",
|
|
38
38
|
TOP_END = "top-end",
|
|
@@ -46,22 +46,22 @@ export declare const enum ElementPosition {
|
|
|
46
46
|
LEFT = "left",
|
|
47
47
|
LEFT_START = "left-start"
|
|
48
48
|
}
|
|
49
|
-
export declare
|
|
49
|
+
export declare enum ButtonType {
|
|
50
50
|
BUTTON = "button",
|
|
51
51
|
SUBMIT = "submit",
|
|
52
52
|
FILE = "file"
|
|
53
53
|
}
|
|
54
|
-
export declare
|
|
54
|
+
export declare enum LinkType {
|
|
55
55
|
Default = "default",
|
|
56
56
|
Router = "router"
|
|
57
57
|
}
|
|
58
|
-
export declare
|
|
58
|
+
export declare enum GraphyPriceVariant {
|
|
59
59
|
DEFAULT = "default",
|
|
60
60
|
INCREASE = "increase",
|
|
61
61
|
DECREASE = "decrease",
|
|
62
62
|
AUTO = "auto"
|
|
63
63
|
}
|
|
64
|
-
export declare
|
|
64
|
+
export declare enum Icon {
|
|
65
65
|
Account = "account",
|
|
66
66
|
AlertOctagon = "alert-octagon",
|
|
67
67
|
AlertOctagonOutline = "alert-octagon-outline",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caipira/tamandua",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UI library for the Caipira ecosystem",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
@@ -66,8 +66,7 @@
|
|
|
66
66
|
"test": "vitest --run",
|
|
67
67
|
"typecheck": "vue-tsc --noEmit -p tsconfig.json --composite false",
|
|
68
68
|
"start:sb": "storybook dev",
|
|
69
|
-
"build:sb": "storybook build"
|
|
70
|
-
"prepublishOnly": "npm run build:prod"
|
|
69
|
+
"build:sb": "storybook build"
|
|
71
70
|
},
|
|
72
71
|
"dependencies": {
|
|
73
72
|
"@floating-ui/vue": "^1.0.6",
|
|
@@ -112,4 +111,4 @@
|
|
|
112
111
|
"vue": "^3.4.21",
|
|
113
112
|
"vue-tsc": "^2.0.13"
|
|
114
113
|
}
|
|
115
|
-
}
|
|
114
|
+
}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { defineComponent as te, mergeModels as j, useModel as ne, ref as V, watch as le, resolveComponent as R, openBlock as x, createElementBlock as A, Fragment as se, createElementVNode as z, normalizeClass as B, createVNode as k, unref as O, createCommentVNode as _, withKeys as oe, createBlock as ae, toDisplayString as re } from "vue";
|
|
2
|
-
import { u as ie } from "./useClipboard-BHFD0Jvv.js";
|
|
3
|
-
import { f as ue } from "./index-CjvqeRf7.js";
|
|
4
|
-
const ce = (s = 18) => {
|
|
5
|
-
const e = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", a = "!?@#-+<%$>[]{}";
|
|
6
|
-
let l = "";
|
|
7
|
-
const n = [
|
|
8
|
-
Math.floor(Math.random() * s),
|
|
9
|
-
Math.floor(Math.random() * s)
|
|
10
|
-
];
|
|
11
|
-
for (let r = 0; r < s; r++)
|
|
12
|
-
n.includes(r) ? l += a.charAt(
|
|
13
|
-
Math.floor(Math.random() * a.length)
|
|
14
|
-
) : l += e.charAt(
|
|
15
|
-
Math.floor(Math.random() * e.length)
|
|
16
|
-
);
|
|
17
|
-
return l;
|
|
18
|
-
}, pe = (s) => {
|
|
19
|
-
let e = 0, a = 0, l = 0, n = 0, r = 0, u = 0, c = 0, b = 0, f = 0, C = 0, d = 0, M = 0, v = 0, o = 0, m = 0, I = 0, S = 0, y = 0, $ = 2, F = 2, T = 2, E = 2, D = 3, K = 3, W = 3, Z = 4, G = 4, H = 6, L = "", q = "", N = "", g = "Too Short";
|
|
20
|
-
const J = "abcdefghijklmnopqrstuvwxyz", Q = "01234567890", X = ")!@#$%^&*()", Y = 8, h = s.replace(/\s+/g, "").split(/\s*/), w = h.length;
|
|
21
|
-
e = s.length * Z, a = s.length;
|
|
22
|
-
for (let t = 0; t < w; t++) {
|
|
23
|
-
h[t].match(/[A-Z]/g) ? (L !== "" && L + 1 == t && M++, L = t, l++) : h[t].match(/[a-z]/g) ? (q !== "" && q + 1 == t && v++, q = t, n++) : h[t].match(/[0-9]/g) ? (t > 0 && t < w - 1 && c++, N !== "" && N + 1 == t && o++, N = t, r++) : h[t].match(/[^a-zA-Z0-9_]/g) && (t > 0 && t < w - 1 && c++, u++);
|
|
24
|
-
let i = !1;
|
|
25
|
-
for (let p = 0; p < w; p++)
|
|
26
|
-
h[t] == h[p] && t != p && (i = !0, d += Math.abs(w / (p - t)));
|
|
27
|
-
i && (C++, f = w - C, d = Math.ceil(f ? d / f : d));
|
|
28
|
-
}
|
|
29
|
-
for (let t = 0; t < 23; t++) {
|
|
30
|
-
let i = J.substring(t, parseInt(t + 3)), p = i.split("").reverse().join("");
|
|
31
|
-
(s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(p) != -1) && m++;
|
|
32
|
-
}
|
|
33
|
-
for (let t = 0; t < 8; t++) {
|
|
34
|
-
let i = Q.substring(t, parseInt(t + 3));
|
|
35
|
-
var ee = i.split("").reverse().join("");
|
|
36
|
-
(s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(ee) != -1) && I++;
|
|
37
|
-
}
|
|
38
|
-
for (let t = 0; t < 8; t++) {
|
|
39
|
-
let i = X.substring(t, parseInt(t + 3)), p = i.split("").reverse().join("");
|
|
40
|
-
(s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(p) != -1) && S++;
|
|
41
|
-
}
|
|
42
|
-
l > 0 && l < a && (e = parseInt(e + (a - l) * 2)), n > 0 && n < a && (e = parseInt(e + (a - n) * 2)), r > 0 && r < a && (e = parseInt(e + r * G)), u > 0 && (e = parseInt(e + u * H)), c > 0 && (e = parseInt(e + c * $)), (n > 0 || l > 0) && u === 0 && r === 0 && (e = parseInt(e - a)), n === 0 && l === 0 && u === 0 && r > 0 && (e = parseInt(e - a)), C > 0 && (e = parseInt(e - d)), M > 0 && (e = parseInt(e - M * F)), v > 0 && (e = parseInt(e - v * T)), o > 0 && (e = parseInt(e - o * E)), m > 0 && (e = parseInt(e - m * D)), I > 0 && (e = parseInt(e - I * K)), S > 0 && (e = parseInt(e - S * W)), b = y;
|
|
43
|
-
let P = 0;
|
|
44
|
-
return s.length >= Y ? P = 3 : P = 4, b > P && (e = parseInt(e + b * 2)), e > 100 ? e = 100 : e < 0 && (e = 0), e >= 0 && e < 20 ? g = "Very Weak" : e >= 20 && e < 40 ? g = "Weak" : e >= 40 && e < 60 ? g = "Good" : e >= 60 && e < 80 ? g = "Strong" : e >= 80 && e <= 100 && (g = "Very Strong"), {
|
|
45
|
-
score: e,
|
|
46
|
-
complexity: g
|
|
47
|
-
};
|
|
48
|
-
}, U = {
|
|
49
|
-
generatePassword: ce,
|
|
50
|
-
getPasswordStrength: pe
|
|
51
|
-
}, fe = { class: "flex border h-9 relative input-roundness input-border w-full" }, de = { class: "border-l select-none input-border input-control" }, me = {
|
|
52
|
-
key: 1,
|
|
53
|
-
class: "inline-block float-right select-none"
|
|
54
|
-
}, ge = /* @__PURE__ */ te({
|
|
55
|
-
name: "TInputPassword",
|
|
56
|
-
__name: "InputPassword",
|
|
57
|
-
props: /* @__PURE__ */ j({
|
|
58
|
-
autocomplete: { default: "current-password" },
|
|
59
|
-
encryptor: { type: Function, default: void 0 },
|
|
60
|
-
showCopy: { type: Boolean, default: !0 },
|
|
61
|
-
showRefresh: { type: Boolean, default: !1 },
|
|
62
|
-
showStrength: { type: Boolean, default: !1 }
|
|
63
|
-
}, {
|
|
64
|
-
modelValue: {
|
|
65
|
-
default: {
|
|
66
|
-
raw: "",
|
|
67
|
-
strength: 0,
|
|
68
|
-
hash: "",
|
|
69
|
-
updatedAt: void 0
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
modelModifiers: {}
|
|
73
|
-
}),
|
|
74
|
-
emits: /* @__PURE__ */ j(["generate", "enter"], ["update:modelValue"]),
|
|
75
|
-
setup(s, { expose: e, emit: a }) {
|
|
76
|
-
const l = s, n = ne(s, "modelValue"), r = a, u = V("password"), c = V(null), { copy: b } = ie(), f = V(!1), C = async (v, o) => {
|
|
77
|
-
if (o === void 0 && !v) {
|
|
78
|
-
n.value = { ...n.value };
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
n.value.strength = U.getPasswordStrength(
|
|
82
|
-
n.value.raw
|
|
83
|
-
).score, l.encryptor && (n.value.hash = await l.encryptor(n.value.raw));
|
|
84
|
-
}, d = () => {
|
|
85
|
-
c.value && c.value.$el && c.value.$el.focus();
|
|
86
|
-
}, M = async () => {
|
|
87
|
-
n.value.raw = U.generatePassword();
|
|
88
|
-
};
|
|
89
|
-
return le(() => n.value.raw, C, { immediate: !0 }), e({ focus: d }), (v, o) => {
|
|
90
|
-
const m = R("t-button"), I = R("t-input-text"), S = R("t-progress-line");
|
|
91
|
-
return x(), A(se, null, [
|
|
92
|
-
z("div", fe, [
|
|
93
|
-
l.showCopy ? (x(), A("div", {
|
|
94
|
-
key: 0,
|
|
95
|
-
class: B(["border-r select-none input-border input-control", { "w-12": l.showCopy }])
|
|
96
|
-
}, [
|
|
97
|
-
k(m, {
|
|
98
|
-
variant: "transparent",
|
|
99
|
-
icon: "copy",
|
|
100
|
-
size: "sm",
|
|
101
|
-
class: "h-full w-full justify-center",
|
|
102
|
-
animate: {
|
|
103
|
-
target: "icon",
|
|
104
|
-
trigger: "click",
|
|
105
|
-
animation: {
|
|
106
|
-
scale: 4,
|
|
107
|
-
yoyo: !0,
|
|
108
|
-
opacity: 0
|
|
109
|
-
},
|
|
110
|
-
reset: { opacity: 1, scale: 1 }
|
|
111
|
-
},
|
|
112
|
-
disabled: f.value,
|
|
113
|
-
onClick: o[0] || (o[0] = (y) => O(b)(n.value.raw))
|
|
114
|
-
}, null, 8, ["disabled"])
|
|
115
|
-
], 2)) : _("", !0),
|
|
116
|
-
l.showRefresh ? (x(), A("div", {
|
|
117
|
-
key: 1,
|
|
118
|
-
class: B(["border-r select-none input-border input-control", { "w-12": l.showRefresh }])
|
|
119
|
-
}, [
|
|
120
|
-
k(m, {
|
|
121
|
-
variant: "transparent",
|
|
122
|
-
icon: "refresh",
|
|
123
|
-
size: "sm",
|
|
124
|
-
class: "h-full w-full justify-center",
|
|
125
|
-
animate: {
|
|
126
|
-
target: "icon",
|
|
127
|
-
trigger: "click",
|
|
128
|
-
animation: { rotation: 360 },
|
|
129
|
-
reset: { rotation: 0 }
|
|
130
|
-
},
|
|
131
|
-
disabled: f.value,
|
|
132
|
-
onClick: M
|
|
133
|
-
}, null, 8, ["disabled"])
|
|
134
|
-
], 2)) : _("", !0),
|
|
135
|
-
k(I, {
|
|
136
|
-
modelValue: n.value.raw,
|
|
137
|
-
"onUpdate:modelValue": o[1] || (o[1] = (y) => n.value.raw = y),
|
|
138
|
-
type: u.value,
|
|
139
|
-
autocomplete: l.autocomplete,
|
|
140
|
-
disabled: f.value,
|
|
141
|
-
"disable-style": !0,
|
|
142
|
-
ref_key: "input",
|
|
143
|
-
ref: c,
|
|
144
|
-
class: "w-full px-2 input-bg-color input-text-color input-outline input-roundness",
|
|
145
|
-
onKeyup: o[2] || (o[2] = oe((y) => r("enter"), ["enter"]))
|
|
146
|
-
}, null, 8, ["modelValue", "type", "autocomplete", "disabled"]),
|
|
147
|
-
z("div", de, [
|
|
148
|
-
k(m, {
|
|
149
|
-
variant: "transparent",
|
|
150
|
-
size: "sm",
|
|
151
|
-
class: "h-full w-full justify-center",
|
|
152
|
-
icon: u.value === "password" ? "eye" : "eye-off",
|
|
153
|
-
disabled: f.value,
|
|
154
|
-
onClick: o[3] || (o[3] = (y) => u.value = u.value === "password" ? "text" : "password")
|
|
155
|
-
}, null, 8, ["icon", "disabled"])
|
|
156
|
-
])
|
|
157
|
-
]),
|
|
158
|
-
l.showStrength ? (x(), ae(S, {
|
|
159
|
-
key: 0,
|
|
160
|
-
value: n.value.strength,
|
|
161
|
-
class: "mt-0.5",
|
|
162
|
-
height: 2.5,
|
|
163
|
-
"show-percentage": !1
|
|
164
|
-
}, null, 8, ["value"])) : _("", !0),
|
|
165
|
-
n.value.updatedAt ? (x(), A("small", me, " Last updated " + re(O(ue)(new Date(n.value.updatedAt), "MMMM do yyyy, hh:mm:ss")), 1)) : _("", !0)
|
|
166
|
-
], 64);
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
export {
|
|
171
|
-
ge as _
|
|
172
|
-
};
|
|
File without changes
|