@caipira/tamandua 0.0.67 → 0.0.69
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/Backdrop.js +2 -2
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js +22 -0
- package/dist/ChartLine.css +1 -1
- package/dist/{Drawer-Cl9_4uHA.js → Drawer-y5xBARd2.js} +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/Dropdown.js +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-CUPNdEz7.js → Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js} +23 -23
- package/dist/FileDrop.js +2 -2
- package/dist/{FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js → FileDrop.vue_vue_type_script_setup_true_lang-Bq0lAgZ7.js} +1 -1
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js +71 -0
- package/dist/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js → InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js} +4 -4
- package/dist/InputDate.js +2 -2
- package/dist/{InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.js → InputDate.vue_vue_type_script_setup_true_lang-D0VnFq6E.js} +3 -3
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-BMChy2_E.js → InputPassword.vue_vue_type_script_setup_true_lang-ChHDOnS8.js} +35 -35
- package/dist/InputPrice.js +2 -2
- package/dist/{InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js → InputPrice.vue_vue_type_script_setup_true_lang-9UZ7YqAf.js} +12 -12
- package/dist/InputRadio.js +2 -2
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js +35 -0
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-CGlaDHiJ.js → InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js} +19 -16
- package/dist/InputSwitch.js +2 -2
- package/dist/{InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js → InputSwitch.vue_vue_type_script_setup_true_lang-BVGfQFZh.js} +10 -9
- package/dist/InputTextarea.js +2 -2
- package/dist/{InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js → InputTextarea.vue_vue_type_script_setup_true_lang-C8f2hfeZ.js} +11 -11
- package/dist/Modal.js +2 -2
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DiUI27HX.js → Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js} +22 -22
- package/dist/Popover-Bq_SpOWb.js +73 -0
- package/dist/Popover.css +1 -0
- package/dist/Popover.js +2 -2
- package/dist/{ProgressCircle-Cpmi2CpO.js → ProgressCircle-C5CnEEoe.js} +14 -14
- package/dist/ProgressCircle.css +1 -1
- package/dist/ProgressCircle.js +2 -2
- package/dist/{ProgressLine-CTS0VOAI.js → ProgressLine-BqINh5jh.js} +13 -13
- package/dist/ProgressLine.css +1 -1
- package/dist/ProgressLine.js +2 -2
- package/dist/Skeleton.js +2 -2
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-Dsy_4Ftz.js +18 -0
- package/dist/Tab.js +2 -2
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-6bgS8FOw.js → Tab.vue_vue_type_script_setup_true_lang-OuqLqd04.js} +16 -16
- package/dist/components.js +19 -19
- package/dist/index.css +77 -45
- package/dist/{plugin-BJyDH94F.js → plugin-3Ql4s0Jh.js} +1 -1
- package/dist/{plugin-CJ6sqqaI.js → plugin-43q0Kzto.js} +1 -1
- package/dist/{plugin-C-iGigb_.js → plugin-AU2qI2I9.js} +1 -1
- package/dist/{plugin-Ch67LOIy.js → plugin-CDKPVcLp.js} +1 -1
- package/dist/{plugin-CvohbpUQ.js → plugin-CEsqY6D6.js} +1 -1
- package/dist/{plugin-dX-bbpm5.js → plugin-CPpRqUnI.js} +1 -1
- package/dist/{plugin-MAzqwXys.js → plugin-CV6IjnsL.js} +1 -1
- package/dist/{plugin-C8Z-XgLn.js → plugin-Clp0zNY0.js} +1 -1
- package/dist/{plugin-RM2wZuwL.js → plugin-Co9LymNO.js} +1 -1
- package/dist/{plugin-x-Y35fqX.js → plugin-CzRCyET3.js} +1 -1
- package/dist/{plugin-wVt0wQNv.js → plugin-DBDBJ5_6.js} +1 -1
- package/dist/{plugin-BVJKxqmv.js → plugin-DIj5ypE6.js} +1 -1
- package/dist/{plugin-CZ2rAHjJ.js → plugin-DMGSStZm.js} +1 -1
- package/dist/{plugin-DxUJiAk-.js → plugin-DNJyBcDk.js} +1 -1
- package/dist/{plugin-Do2-cqMT.js → plugin-DXPEO1fb.js} +1 -1
- package/dist/{plugin-C1kAmMfE.js → plugin-DYHfPgzY.js} +1 -1
- package/dist/{plugin-CNwzCYlr.js → plugin-JMSzJgz5.js} +1 -1
- package/dist/plugin-RTst32IC.js +10 -0
- package/dist/{plugin-B63n9_uc.js → plugin-hQ-aWPlo.js} +1 -1
- package/dist/{plugins-3Yf4y3PS.js → plugins-BCnw00-W.js} +26 -26
- package/dist/plugins.js +26 -26
- package/dist/tamandua.js +1 -1
- package/dist/types/components/FormItem/types.d.ts +1 -1
- package/dist/types/components/Skeleton/Skeleton.vue.d.ts +29 -7
- package/dist/types/components/Skeleton/types.d.ts +4 -1
- package/package.json +1 -1
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js +0 -22
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js +0 -64
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js +0 -35
- package/dist/Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js +0 -71
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-WahY1vGW.js +0 -11
- package/dist/plugin-ColpxTKB.js +0 -10
package/dist/Backdrop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Backdrop.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as c } from "./plugin-
|
|
1
|
+
import { _ as p } from "./Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js";
|
|
2
|
+
import { p as c } from "./plugin-AU2qI2I9.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Backdrop,
|
|
5
5
|
c as BackdropPlugin
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as a, openBlock as c, createElementBlock as i, normalizeClass as l } from "vue";
|
|
2
|
+
const u = /* @__PURE__ */ a({
|
|
3
|
+
name: "TBackdrop",
|
|
4
|
+
__name: "Backdrop",
|
|
5
|
+
props: {
|
|
6
|
+
isTransparent: { type: Boolean, default: !1 }
|
|
7
|
+
},
|
|
8
|
+
emits: ["click"],
|
|
9
|
+
setup(o, { emit: n }) {
|
|
10
|
+
const t = o, r = n;
|
|
11
|
+
return (p, e) => (c(), i("div", {
|
|
12
|
+
class: l(["fixed inset-0", {
|
|
13
|
+
"bg-[var(--unfocused-bg-color)] opacity-80": !t.isTransparent
|
|
14
|
+
}]),
|
|
15
|
+
role: "button",
|
|
16
|
+
onClick: e[0] || (e[0] = (s) => r("click", s))
|
|
17
|
+
}, null, 2));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
u as _
|
|
22
|
+
};
|
package/dist/ChartLine.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.axis-grid line{stroke:var(--
|
|
1
|
+
.axis-grid line{stroke:var(--unfocused-bg-color)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './Drawer.css';
|
|
2
2
|
import { defineComponent as _, ref as b, onMounted as v, resolveComponent as y, openBlock as t, createElementBlock as r, withKeys as h, createVNode as i, createElementVNode as d, normalizeClass as c, toDisplayString as k, createCommentVNode as s, renderSlot as a } from "vue";
|
|
3
|
-
import { _ as w } from "./Backdrop.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as w } from "./Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js";
|
|
4
4
|
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const C = {
|
|
6
6
|
key: 0,
|
package/dist/Drawer.js
CHANGED
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-MuajPvzR.js";
|
|
2
|
+
import { p as a } from "./plugin-CzRCyET3.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Dropdown,
|
|
5
5
|
a as DropdownPlugin
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, ref as w, resolveComponent as V, openBlock as
|
|
1
|
+
import { defineComponent as T, ref as w, resolveComponent as V, openBlock as l, createElementBlock as a, normalizeClass as u, createVNode as z, Fragment as R, renderList as K, toDisplayString as P, withKeys as A, renderSlot as E, normalizeProps as G, mergeProps as $, createBlock as I, createCommentVNode as O, createTextVNode as F, createElementVNode as U } from "vue";
|
|
2
2
|
const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected", "onKeydown", "onClick"], J = {
|
|
3
3
|
key: 1,
|
|
4
4
|
class: "inline-flex items-center select-none input-text-color"
|
|
@@ -13,16 +13,16 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
|
|
|
13
13
|
optionMarginClass: { default: "" },
|
|
14
14
|
optionPaddingClass: { default: "py-2 px-2" },
|
|
15
15
|
wrapperPaddingClass: { default: "" },
|
|
16
|
-
optionRoundnessClass: { default: "" },
|
|
17
|
-
wrapperRoundnessClass: { default: "
|
|
16
|
+
optionRoundnessClass: { default: "input-roundness" },
|
|
17
|
+
wrapperRoundnessClass: { default: "input-roundness" }
|
|
18
18
|
},
|
|
19
19
|
emits: ["change", "end-reached", "created"],
|
|
20
20
|
setup(H, { expose: S, emit: B }) {
|
|
21
|
-
const s = H, b = B, i = w(-1), v = w(null), d = w([]), f = w("keyboard"), y = (o = i.value, t = s.items[o],
|
|
22
|
-
|
|
21
|
+
const s = H, b = B, i = w(-1), v = w(null), d = w([]), f = w("keyboard"), y = (o = i.value, t = s.items[o], n = void 0) => {
|
|
22
|
+
n?.stopPropagation(), b("change", {
|
|
23
23
|
index: o,
|
|
24
24
|
option: t,
|
|
25
|
-
hold:
|
|
25
|
+
hold: n?.ctrlKey ?? !1
|
|
26
26
|
}), t.action && t.action();
|
|
27
27
|
}, D = (o) => {
|
|
28
28
|
if (!s.isVisible)
|
|
@@ -38,12 +38,12 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
|
|
|
38
38
|
const o = v.value;
|
|
39
39
|
o.scrollTop = 0;
|
|
40
40
|
}, x = (o) => {
|
|
41
|
-
const t = o.key === "ArrowDown",
|
|
41
|
+
const t = o.key === "ArrowDown", n = s.items.length;
|
|
42
42
|
let e = i.value;
|
|
43
43
|
const r = () => s.items[e] ? "isGroupLabel" in s.items[e] && s.items[e].isGroupLabel : !1, p = () => {
|
|
44
|
-
e ===
|
|
44
|
+
e === n - 1 ? e = 0 : e++;
|
|
45
45
|
}, N = () => {
|
|
46
|
-
e === 0 ? e =
|
|
46
|
+
e === 0 ? e = n - 1 : e--;
|
|
47
47
|
};
|
|
48
48
|
if (t)
|
|
49
49
|
do
|
|
@@ -53,7 +53,7 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
|
|
|
53
53
|
do
|
|
54
54
|
N();
|
|
55
55
|
while (r());
|
|
56
|
-
e > -1 && e <
|
|
56
|
+
e > -1 && e < n && (i.value = e);
|
|
57
57
|
const C = v.value, k = d.value[i.value], m = k.offsetTop, g = k.offsetHeight, _ = C.offsetHeight, c = C.scrollTop;
|
|
58
58
|
let h = 0;
|
|
59
59
|
if (k.focus(), m === 0 || c === 0)
|
|
@@ -66,21 +66,21 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
|
|
|
66
66
|
return !0;
|
|
67
67
|
return C.scroll({ top: h }), !0;
|
|
68
68
|
}, M = (o) => {
|
|
69
|
-
const t = o.target,
|
|
70
|
-
!t || !
|
|
69
|
+
const t = o.target, n = d.value[0];
|
|
70
|
+
!t || !n || t.scrollTop + t.clientHeight + n.offsetHeight >= t.scrollHeight && b("end-reached");
|
|
71
71
|
};
|
|
72
72
|
return S({ move: x, resetScroll: L }), (o, t) => {
|
|
73
|
-
const
|
|
74
|
-
return
|
|
73
|
+
const n = V("t-icon");
|
|
74
|
+
return l(), a("ul", {
|
|
75
75
|
ref_key: "listRef",
|
|
76
76
|
ref: v,
|
|
77
77
|
role: "listbox",
|
|
78
|
-
class: u(["text-left max-h-60 min-w-[
|
|
78
|
+
class: u(["text-left max-h-60 min-w-[8rem] z-10 overflow-y-auto scrollbar select-none floatable w-full", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
|
|
79
79
|
onScrollend: M,
|
|
80
80
|
onMousemove: t[0] || (t[0] = () => f.value = "mouse"),
|
|
81
81
|
onKeydown: D
|
|
82
82
|
}, [
|
|
83
|
-
s.loading ? (
|
|
83
|
+
s.loading ? (l(), a("li", {
|
|
84
84
|
key: 0,
|
|
85
85
|
role: "option",
|
|
86
86
|
"aria-disabled": "true",
|
|
@@ -90,13 +90,13 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
|
|
|
90
90
|
s.optionRoundnessClass
|
|
91
91
|
]])
|
|
92
92
|
}, [
|
|
93
|
-
z(
|
|
93
|
+
z(n, {
|
|
94
94
|
size: "sm",
|
|
95
95
|
class: "w-6 h-6 animate-spin mr-3",
|
|
96
96
|
icon: "loading"
|
|
97
97
|
}),
|
|
98
98
|
j
|
|
99
|
-
], 2)) : o.items.length === 0 ? (
|
|
99
|
+
], 2)) : o.items.length === 0 ? (l(), a("li", {
|
|
100
100
|
key: 1,
|
|
101
101
|
role: "option",
|
|
102
102
|
"aria-disabled": "true",
|
|
@@ -105,10 +105,10 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
|
|
|
105
105
|
s.optionMarginClass,
|
|
106
106
|
s.optionRoundnessClass
|
|
107
107
|
]])
|
|
108
|
-
}, " Nothing here ", 2)) : (
|
|
108
|
+
}, " Nothing here ", 2)) : (l(!0), a(R, { key: 2 }, K(o.items, (e, r) => (l(), a(R, {
|
|
109
109
|
key: e?.isGroupLabel ? r : e.value
|
|
110
110
|
}, [
|
|
111
|
-
e.isGroupLabel ? (
|
|
111
|
+
e.isGroupLabel ? (l(), a("li", {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: u(["text-xs font-bold tracking-wider text-neutral-600", [
|
|
114
114
|
s.optionPaddingClass,
|
|
@@ -118,7 +118,7 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
|
|
|
118
118
|
ref_for: !0,
|
|
119
119
|
ref_key: "itemRefs",
|
|
120
120
|
ref: d
|
|
121
|
-
}, P(e.label), 3)) : (
|
|
121
|
+
}, P(e.label), 3)) : (l(), a("li", {
|
|
122
122
|
key: 1,
|
|
123
123
|
class: u([{
|
|
124
124
|
"bg-[var(--hover-color)]": r === i.value && f.value === "keyboard",
|
|
@@ -136,8 +136,8 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
|
|
|
136
136
|
onKeydown: A((p) => y(r, e), ["enter"]),
|
|
137
137
|
onClick: (p) => y(r, e, p)
|
|
138
138
|
}, [
|
|
139
|
-
o.$slots.default ? E(o.$slots, "default", G($({ key: 0 }, e))) : (
|
|
140
|
-
e.icon ? (
|
|
139
|
+
o.$slots.default ? E(o.$slots, "default", G($({ key: 0 }, e))) : (l(), a("div", J, [
|
|
140
|
+
e.icon ? (l(), I(n, {
|
|
141
141
|
key: 0,
|
|
142
142
|
icon: e.icon,
|
|
143
143
|
class: "mr-2",
|
package/dist/FileDrop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./FileDrop.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as i } from "./plugin-
|
|
1
|
+
import { _ as p } from "./FileDrop.vue_vue_type_script_setup_true_lang-Bq0lAgZ7.js";
|
|
2
|
+
import { p as i } from "./plugin-43q0Kzto.js";
|
|
3
3
|
export {
|
|
4
4
|
p as FileDrop,
|
|
5
5
|
i as FileDropPlugin
|
|
@@ -72,7 +72,7 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
|
|
|
72
72
|
]))), 128))
|
|
73
73
|
])) : (s(), a("div", j, [
|
|
74
74
|
f(r, {
|
|
75
|
-
class: "text-[var(--unfocused-color)]",
|
|
75
|
+
class: "text-[var(--unfocused-bg-color)]",
|
|
76
76
|
icon: "upload",
|
|
77
77
|
role: "button",
|
|
78
78
|
size: "lg"
|
package/dist/FormItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js";
|
|
2
|
+
import { p as t } from "./plugin-CEsqY6D6.js";
|
|
3
3
|
export {
|
|
4
4
|
r as FormItem,
|
|
5
5
|
t as FormItemPlugin
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as b, useSlots as x, inject as g, computed as u, resolveComponent as k, openBlock as l, createElementBlock as a, createElementVNode as i, normalizeClass as s, createBlock as z, unref as c, withCtx as C, renderSlot as f, Fragment as S, renderList as B, toDisplayString as F, createCommentVNode as I } from "vue";
|
|
2
|
+
const w = { class: "w-full" }, E = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "float-right"
|
|
5
|
+
}, T = /* @__PURE__ */ b({
|
|
6
|
+
name: "TFormItem",
|
|
7
|
+
__name: "FormItem",
|
|
8
|
+
props: {
|
|
9
|
+
label: {},
|
|
10
|
+
rules: {},
|
|
11
|
+
layout: {}
|
|
12
|
+
},
|
|
13
|
+
setup(d) {
|
|
14
|
+
const o = d, n = x(), m = [], e = g("formStyle", {
|
|
15
|
+
label: "",
|
|
16
|
+
input: "",
|
|
17
|
+
layout: "horizontal"
|
|
18
|
+
}), y = u(() => {
|
|
19
|
+
if (!n || !n.default)
|
|
20
|
+
return !1;
|
|
21
|
+
const t = n?.default();
|
|
22
|
+
return t ? t[0].type.name : !1;
|
|
23
|
+
}), p = u(() => y.value === "TInputMultiplier"), r = u(() => o.layout ? o.layout : e.layout ? e.layout : "horizontal");
|
|
24
|
+
return (t, M) => {
|
|
25
|
+
const h = k("t-graphy-label");
|
|
26
|
+
return l(), a("div", w, [
|
|
27
|
+
i("div", {
|
|
28
|
+
class: s(["flex gap-2 my-5", {
|
|
29
|
+
"flex-col": r.value === "vertical",
|
|
30
|
+
"items-center": r.value === "horizontal" && !p.value,
|
|
31
|
+
"items-start": p.value
|
|
32
|
+
}])
|
|
33
|
+
}, [
|
|
34
|
+
o.label ? (l(), z(h, {
|
|
35
|
+
key: 0,
|
|
36
|
+
text: o.label,
|
|
37
|
+
class: s({
|
|
38
|
+
[c(e).label]: !0,
|
|
39
|
+
"text-right": r.value === "horizontal"
|
|
40
|
+
})
|
|
41
|
+
}, {
|
|
42
|
+
default: C(() => [
|
|
43
|
+
f(t.$slots, "label")
|
|
44
|
+
]),
|
|
45
|
+
_: 3
|
|
46
|
+
}, 8, ["text", "class"])) : (l(), a("div", {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: s({
|
|
49
|
+
[c(e).label]: !0,
|
|
50
|
+
"text-right": r.value === "horizontal"
|
|
51
|
+
})
|
|
52
|
+
}, null, 2)),
|
|
53
|
+
i("div", {
|
|
54
|
+
class: s({ [c(e).input]: !0 })
|
|
55
|
+
}, [
|
|
56
|
+
f(t.$slots, "default")
|
|
57
|
+
], 2)
|
|
58
|
+
], 2),
|
|
59
|
+
m ? (l(), a("div", E, [
|
|
60
|
+
(l(), a(S, null, B(m, (v, _) => i("span", {
|
|
61
|
+
class: "text-sm text-red-600",
|
|
62
|
+
key: _
|
|
63
|
+
}, F(v), 1)), 64))
|
|
64
|
+
])) : I("", !0)
|
|
65
|
+
]);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
T as _
|
|
71
|
+
};
|
package/dist/InputCheckbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js";
|
|
2
|
+
import { p as t } from "./plugin-DIj5ypE6.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputCheckbox,
|
|
5
5
|
t as InputCheckboxPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './InputCheckbox.css';
|
|
2
|
-
import { defineComponent as u, ref as m, watch as f, resolveComponent as b, openBlock as i, createElementBlock as h, withDirectives as v, createElementVNode as
|
|
2
|
+
import { defineComponent as u, ref as m, watch as f, resolveComponent as b, openBlock as i, createElementBlock as h, withDirectives as v, createElementVNode as y, mergeProps as _, vModelCheckbox as k, createBlock as x, withCtx as B, createTextVNode as C, toDisplayString as V, createCommentVNode as g } from "vue";
|
|
3
3
|
const I = { class: "h-9 inline-flex items-center" }, w = ["indeterminate", "disabled"];
|
|
4
4
|
let N = 0;
|
|
5
5
|
const D = /* @__PURE__ */ u({
|
|
@@ -27,17 +27,17 @@ const D = /* @__PURE__ */ u({
|
|
|
27
27
|
), (e, n) => {
|
|
28
28
|
const p = b("t-graphy-label");
|
|
29
29
|
return i(), h("div", I, [
|
|
30
|
-
v(
|
|
30
|
+
v(y("input", _({
|
|
31
31
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => a.value = c)
|
|
32
32
|
}, e.$attrs, {
|
|
33
33
|
type: "checkbox",
|
|
34
|
-
class: "form-checkbox w-5 h-5 border
|
|
34
|
+
class: "form-checkbox w-5 h-5 border border-[var(--caipira-primary-inverted)] input-roundness bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
|
|
35
35
|
indeterminate: t.isIndeterminate,
|
|
36
36
|
id: o,
|
|
37
37
|
disabled: e.disabled,
|
|
38
38
|
onInput: s
|
|
39
39
|
}), null, 16, w), [
|
|
40
|
-
[
|
|
40
|
+
[k, a.value]
|
|
41
41
|
]),
|
|
42
42
|
t.label ? (i(), x(p, {
|
|
43
43
|
key: 0,
|
package/dist/InputDate.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as o } from "./plugin-
|
|
1
|
+
import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-D0VnFq6E.js";
|
|
2
|
+
import { p as o } from "./plugin-CDKPVcLp.js";
|
|
3
3
|
export {
|
|
4
4
|
a as InputDate,
|
|
5
5
|
o as InputDatePlugin
|
|
@@ -4,7 +4,7 @@ import { f as E } from "./format-BZx-8XXc.js";
|
|
|
4
4
|
const oe = ["value"], le = {
|
|
5
5
|
class: "p-4 select-none floatable input-roundness",
|
|
6
6
|
style: { width: "17rem" }
|
|
7
|
-
}, ne = { class: "flex justify-between items-center mb-
|
|
7
|
+
}, ne = { class: "flex justify-between items-center mb-6" }, ae = { class: "text-lg font-bold" }, se = ["value", "selected"], re = ["disabled"], ue = ["disabled"], ie = { class: "flex flex-wrap mb-3 -mx-1" }, de = { class: "font-medium text-center text-xs" }, ce = { class: "flex flex-wrap -mx-1" }, ve = ["onClick"], k = !0, he = /* @__PURE__ */ J({
|
|
8
8
|
name: "TInputDate",
|
|
9
9
|
__name: "InputDate",
|
|
10
10
|
props: {
|
|
@@ -163,13 +163,13 @@ const oe = ["value"], le = {
|
|
|
163
163
|
(v(!0), m($, null, F(H.value, (t) => (v(), m("div", {
|
|
164
164
|
key: t.key,
|
|
165
165
|
style: { width: "14.28%" },
|
|
166
|
-
class: "
|
|
166
|
+
class: "p-0 m-0"
|
|
167
167
|
}, [
|
|
168
168
|
a("div", {
|
|
169
169
|
onClick: (_) => R(t),
|
|
170
170
|
class: T(["cursor-pointer text-center text-sm rounded-sm leading-loose transition ease-in-out duration-100", {
|
|
171
171
|
"hover:bg-[var(--hover-color)]": !t.selected,
|
|
172
|
-
"
|
|
172
|
+
"text-[var(--unfocused-text-color)]": t.overflow !== 0,
|
|
173
173
|
"border border-caipira-primary-inverted": t.isToday,
|
|
174
174
|
"color-caipira-primary bg-caipira-primary-inverted": t.selected
|
|
175
175
|
}])
|
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-ChHDOnS8.js";
|
|
2
|
+
import { p as a } from "./plugin-3Ql4s0Jh.js";
|
|
3
3
|
export {
|
|
4
4
|
s as InputPassword,
|
|
5
5
|
a as InputPasswordPlugin
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { defineComponent as ee, mergeModels 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 se, createBlock as oe, toDisplayString as ae } from "vue";
|
|
2
2
|
import { u as re } from "./useClipboard-BHFD0Jvv.js";
|
|
3
3
|
import { f as ie } from "./format-BZx-8XXc.js";
|
|
4
|
-
const ue = (
|
|
4
|
+
const ue = (s = 18) => {
|
|
5
5
|
const e = "abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789", a = "!?@#-+<%$>[]{}";
|
|
6
6
|
let n = "";
|
|
7
7
|
const l = [
|
|
8
|
-
Math.floor(Math.random() *
|
|
9
|
-
Math.floor(Math.random() *
|
|
8
|
+
Math.floor(Math.random() * s),
|
|
9
|
+
Math.floor(Math.random() * s)
|
|
10
10
|
];
|
|
11
|
-
for (let r = 0; r <
|
|
11
|
+
for (let r = 0; r < s; r++)
|
|
12
12
|
l.includes(r) ? n += a.charAt(
|
|
13
13
|
Math.floor(Math.random() * a.length)
|
|
14
14
|
) : n += e.charAt(
|
|
15
15
|
Math.floor(Math.random() * e.length)
|
|
16
16
|
);
|
|
17
17
|
return n;
|
|
18
|
-
}, ce = (
|
|
19
|
-
let e = 0, a = 0, n = 0, l = 0, r = 0, u = 0, c = 0, b = 0, d = 0, w = 0, p = 0, C = 0, v = 0,
|
|
20
|
-
const Q = "abcdefghijklmnopqrstuvwxyz", W = "01234567890", X = ")!@#$%^&*()", Y = 8, h =
|
|
21
|
-
e =
|
|
22
|
-
for (let t = 0; 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 <
|
|
18
|
+
}, ce = (s) => {
|
|
19
|
+
let e = 0, a = 0, n = 0, l = 0, r = 0, u = 0, c = 0, b = 0, d = 0, w = 0, p = 0, C = 0, v = 0, o = 0, m = 0, M = 0, x = 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 = s.replace(/\s+/g, "").split(/\s*/), g = h.length;
|
|
21
|
+
e = s.length * Z, a = s.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 && o++, N = t, r++) : h[t].match(/[^a-zA-Z0-9_]/g) && (t > 0 && t < g - 1 && c++, u++);
|
|
24
24
|
let i = !1;
|
|
25
|
-
for (let f = 0; f <
|
|
26
|
-
h[t] == h[f] && t != f && (i = !0, p += Math.abs(
|
|
27
|
-
i && (w++, d =
|
|
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 && (w++, d = g - w, p = Math.ceil(d ? p / d : p));
|
|
28
28
|
}
|
|
29
29
|
for (let t = 0; t < 23; t++) {
|
|
30
30
|
let i = Q.substring(t, t + 3), f = i.split("").reverse().join("");
|
|
31
|
-
(
|
|
31
|
+
(s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(f) != -1) && m++;
|
|
32
32
|
}
|
|
33
33
|
for (let t = 0; t < 8; t++) {
|
|
34
34
|
let i = W.substring(t, t + 3);
|
|
35
35
|
var J = i.split("").reverse().join("");
|
|
36
|
-
(
|
|
36
|
+
(s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(J) != -1) && M++;
|
|
37
37
|
}
|
|
38
38
|
for (let t = 0; t < 8; t++) {
|
|
39
39
|
let i = X.substring(t, t + 3), f = i.split("").reverse().join("");
|
|
40
|
-
(
|
|
40
|
+
(s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(f) != -1) && x++;
|
|
41
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), w > 0 && (e = e - p), C > 0 && (e = e - C * O), v > 0 && (e = e - v * T),
|
|
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), w > 0 && (e = e - p), C > 0 && (e = e - C * O), v > 0 && (e = e - v * T), o > 0 && (e = e - o * E), m > 0 && (e = e - m * I), M > 0 && (e = e - M * D), x > 0 && (e = e - x * K), b = y;
|
|
43
43
|
let P = 0;
|
|
44
|
-
return
|
|
44
|
+
return s.length >= Y ? P = 3 : P = 4, b > P && (e = e + b * 2), e > 100 ? e = 100 : e < 0 && (e = 0), e;
|
|
45
45
|
}, $ = {
|
|
46
46
|
generatePassword: ue,
|
|
47
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-bg-color" }, pe = {
|
|
48
|
+
}, 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 = {
|
|
49
49
|
key: 1,
|
|
50
50
|
class: "inline-block float-right select-none"
|
|
51
|
-
},
|
|
51
|
+
}, ye = /* @__PURE__ */ ee({
|
|
52
52
|
name: "TInputPassword",
|
|
53
53
|
__name: "InputPassword",
|
|
54
|
-
props: /* @__PURE__ */
|
|
54
|
+
props: /* @__PURE__ */ V({
|
|
55
55
|
autocomplete: { default: "current-password" },
|
|
56
56
|
encryptor: { type: Function, default: void 0 },
|
|
57
57
|
showCopy: { type: Boolean, default: !0 },
|
|
@@ -68,10 +68,10 @@ const ue = (o = 18) => {
|
|
|
68
68
|
},
|
|
69
69
|
modelModifiers: {}
|
|
70
70
|
}),
|
|
71
|
-
emits: /* @__PURE__ */
|
|
72
|
-
setup(
|
|
73
|
-
const n =
|
|
74
|
-
if (
|
|
71
|
+
emits: /* @__PURE__ */ V(["generate", "enter"], ["update:modelValue"]),
|
|
72
|
+
setup(s, { expose: e, emit: a }) {
|
|
73
|
+
const n = s, l = te(s, "modelValue"), r = a, u = R("password"), c = R(null), { copy: b } = re(), d = R(!1), w = async (v, o) => {
|
|
74
|
+
if (o === void 0 && !v) {
|
|
75
75
|
l.value = { ...l.value };
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
@@ -81,13 +81,13 @@ const ue = (o = 18) => {
|
|
|
81
81
|
}, C = async () => {
|
|
82
82
|
l.value.raw = $.generatePassword(), r("generate", l.value);
|
|
83
83
|
};
|
|
84
|
-
return le(() => l.value.raw, w, { immediate: !0 }), e({ focus: p }), (v,
|
|
85
|
-
const m =
|
|
84
|
+
return le(() => l.value.raw, w, { immediate: !0 }), e({ focus: p }), (v, o) => {
|
|
85
|
+
const m = j("t-button"), M = j("t-input-text"), x = j("t-progress-line");
|
|
86
86
|
return A(), S(ne, null, [
|
|
87
87
|
z("div", fe, [
|
|
88
88
|
n.showCopy ? (A(), S("div", {
|
|
89
89
|
key: 0,
|
|
90
|
-
class: B(["flex justify-center items-center border-r select-none input-border input-bg-color", { "w-12": n.showCopy }])
|
|
90
|
+
class: B(["flex justify-center items-center border-r select-none rounded-l-[var(--input-radius)] input-border input-bg-color", { "w-12": n.showCopy }])
|
|
91
91
|
}, [
|
|
92
92
|
k(m, {
|
|
93
93
|
variant: "transparent",
|
|
@@ -105,7 +105,7 @@ const ue = (o = 18) => {
|
|
|
105
105
|
reset: { opacity: 1, scale: 1 }
|
|
106
106
|
},
|
|
107
107
|
disabled: d.value,
|
|
108
|
-
onClick:
|
|
108
|
+
onClick: o[0] || (o[0] = (y) => U(b)(l.value.raw))
|
|
109
109
|
}, null, 8, ["disabled"])
|
|
110
110
|
], 2)) : _("", !0),
|
|
111
111
|
n.showRefresh ? (A(), S("div", {
|
|
@@ -129,7 +129,7 @@ const ue = (o = 18) => {
|
|
|
129
129
|
], 2)) : _("", !0),
|
|
130
130
|
k(M, {
|
|
131
131
|
modelValue: l.value.raw,
|
|
132
|
-
"onUpdate:modelValue":
|
|
132
|
+
"onUpdate:modelValue": o[1] || (o[1] = (y) => l.value.raw = y),
|
|
133
133
|
type: u.value,
|
|
134
134
|
autocomplete: n.autocomplete,
|
|
135
135
|
disabled: d.value,
|
|
@@ -137,7 +137,7 @@ const ue = (o = 18) => {
|
|
|
137
137
|
ref_key: "input",
|
|
138
138
|
ref: c,
|
|
139
139
|
class: "w-full px-2 input-bg-color input-text-color input-outline input-roundness",
|
|
140
|
-
onKeyup:
|
|
140
|
+
onKeyup: o[2] || (o[2] = se((y) => r("enter"), ["enter"]))
|
|
141
141
|
}, null, 8, ["modelValue", "type", "autocomplete", "disabled"]),
|
|
142
142
|
z("div", de, [
|
|
143
143
|
k(m, {
|
|
@@ -146,11 +146,11 @@ const ue = (o = 18) => {
|
|
|
146
146
|
class: "h-full w-full justify-center",
|
|
147
147
|
icon: u.value === "password" ? "eye" : "eye-off",
|
|
148
148
|
disabled: d.value,
|
|
149
|
-
onClick:
|
|
149
|
+
onClick: o[3] || (o[3] = (y) => u.value = u.value === "password" ? "text" : "password")
|
|
150
150
|
}, null, 8, ["icon", "disabled"])
|
|
151
151
|
])
|
|
152
152
|
]),
|
|
153
|
-
n.showStrength ? (A(),
|
|
153
|
+
n.showStrength ? (A(), oe(x, {
|
|
154
154
|
key: 0,
|
|
155
155
|
value: l.value.strength,
|
|
156
156
|
class: "mt-0.5",
|
|
@@ -163,5 +163,5 @@ const ue = (o = 18) => {
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
export {
|
|
166
|
-
|
|
166
|
+
ye as _
|
|
167
167
|
};
|
package/dist/InputPrice.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./InputPrice.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as e } from "./InputPrice.vue_vue_type_script_setup_true_lang-9UZ7YqAf.js";
|
|
2
|
+
import { p as t } from "./plugin-Co9LymNO.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputPrice,
|
|
5
5
|
t as InputPricePlugin
|
|
@@ -23,11 +23,11 @@ const _ = {
|
|
|
23
23
|
modelModifiers: {}
|
|
24
24
|
}),
|
|
25
25
|
emits: /* @__PURE__ */ a(["keyup", "blur"], ["update:modelValue"]),
|
|
26
|
-
setup(r, { emit:
|
|
27
|
-
const e = b(r, "modelValue"),
|
|
26
|
+
setup(r, { emit: l }) {
|
|
27
|
+
const e = b(r, "modelValue"), n = l, i = r, d = (o) => ({
|
|
28
28
|
label: o.symbol,
|
|
29
29
|
value: o.iso
|
|
30
|
-
}),
|
|
30
|
+
}), p = (o, t) => {
|
|
31
31
|
if (t === void 0) {
|
|
32
32
|
e.value = { ...e.value };
|
|
33
33
|
return;
|
|
@@ -39,26 +39,26 @@ const _ = {
|
|
|
39
39
|
iso: o
|
|
40
40
|
};
|
|
41
41
|
}, m = (o) => {
|
|
42
|
-
const
|
|
42
|
+
const u = o.target.value;
|
|
43
43
|
e.value = {
|
|
44
44
|
...e.value,
|
|
45
|
-
value: _.inputToPriceNumber(
|
|
45
|
+
value: _.inputToPriceNumber(u)
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
return f(e,
|
|
49
|
-
const
|
|
48
|
+
return f(e, p, { immediate: !0 }), (o, t) => {
|
|
49
|
+
const u = g("t-input-select");
|
|
50
50
|
return x(), y("div", h, [
|
|
51
|
-
I(
|
|
51
|
+
I(u, {
|
|
52
52
|
modelValue: e.value.iso,
|
|
53
53
|
"onUpdate:modelValue": [
|
|
54
54
|
t[0] || (t[0] = (s) => e.value.iso = s),
|
|
55
55
|
c
|
|
56
56
|
],
|
|
57
57
|
resource: i.resource,
|
|
58
|
-
mapper:
|
|
58
|
+
mapper: d,
|
|
59
59
|
"width-class": "w-20",
|
|
60
60
|
"border-class": "border-t border-r border-b input-border",
|
|
61
|
-
"roundness-class": ""
|
|
61
|
+
"roundness-class": "rounded-l-[var(--input-radius)]"
|
|
62
62
|
}, null, 8, ["modelValue", "resource"]),
|
|
63
63
|
N(M("input", {
|
|
64
64
|
"onUpdate:modelValue": t[1] || (t[1] = (s) => e.value.value = s),
|
|
@@ -66,8 +66,8 @@ const _ = {
|
|
|
66
66
|
class: "w-full h-full input-bg-color input-text-color input-outline input-roundness input-padding",
|
|
67
67
|
disabled: i.disabled,
|
|
68
68
|
onInput: m,
|
|
69
|
-
onKeyup: t[2] || (t[2] = (s) =>
|
|
70
|
-
onBlur: t[3] || (t[3] = (s) =>
|
|
69
|
+
onKeyup: t[2] || (t[2] = (s) => n("keyup", s)),
|
|
70
|
+
onBlur: t[3] || (t[3] = (s) => n("blur", s))
|
|
71
71
|
}, null, 40, k), [
|
|
72
72
|
[P, e.value.value]
|
|
73
73
|
])
|
package/dist/InputRadio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js";
|
|
2
|
+
import { p as t } from "./plugin-DXPEO1fb.js";
|
|
3
3
|
export {
|
|
4
4
|
a as InputRadio,
|
|
5
5
|
t as InputRadioPlugin
|