@caipira/tamandua 0.0.91 → 0.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar.js +2 -2
- package/dist/{Avatar.vue_vue_type_script_setup_true_lang-CAxLKAlD.js → Avatar.vue_vue_type_script_setup_true_lang-CnvI4bGL.js} +1 -1
- package/dist/Button.js +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-Cr2j9uAI.js → Button.vue_vue_type_script_setup_true_lang-CmbPvjSg.js} +36 -34
- package/dist/Dropdown.js +2 -2
- package/dist/Dropdown.vue_vue_type_script_setup_true_lang-DtTBnNsn.js +179 -0
- package/dist/GraphyPrice.js +2 -2
- package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-Dxw3dcsW.js → GraphyPrice.vue_vue_type_script_setup_true_lang-Cr4zjIiS.js} +1 -1
- package/dist/Icon.js +2 -2
- package/dist/{Icon.vue_vue_type_script_setup_true_lang-DeZj2CXU.js → Icon.vue_vue_type_script_setup_true_lang-BuMQjBAy.js} +1 -1
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-CYcJ-agy.js → InputPassword.vue_vue_type_script_setup_true_lang-Qeq0BBp3.js} +18 -17
- package/dist/InputSelect.js +2 -2
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-uUjFwWIE.js +243 -0
- package/dist/InputText.js +2 -2
- package/dist/InputText.vue_vue_type_script_setup_true_lang-twigJ_WD.js +43 -0
- package/dist/Link.js +2 -2
- package/dist/{Link.vue_vue_type_script_setup_true_lang-CwkZkVVz.js → Link.vue_vue_type_script_setup_true_lang-0z-EeE3p.js} +1 -1
- package/dist/Popconfirm.js +2 -2
- package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-BIZGp2xy.js → Popconfirm.vue_vue_type_script_setup_true_lang-BDEqMoax.js} +1 -1
- package/dist/{Popover-7oD7AiXt.js → Popover-C3ovolxY.js} +1 -1
- package/dist/Popover.js +2 -2
- package/dist/Tag.js +2 -2
- package/dist/{Tag.vue_vue_type_script_setup_true_lang-CmhP0b0y.js → Tag.vue_vue_type_script_setup_true_lang-G3i5m3sB.js} +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toast.vue_vue_type_script_setup_true_lang-By7Au8E3.js → Toast.vue_vue_type_script_setup_true_lang-BlfCFBHV.js} +1 -1
- package/dist/components.js +13 -13
- package/dist/enums.js +1 -1
- package/dist/{plugin-CLzytwhj.js → plugin-B2DiDUlP.js} +1 -1
- package/dist/{plugin-s4eLZhyy.js → plugin-Bij2CJr7.js} +1 -1
- package/dist/{plugin-AGrPuw2y.js → plugin-BviXQKyF.js} +1 -1
- package/dist/{plugin-lYDlOt8p.js → plugin-CQXEZDaa.js} +1 -1
- package/dist/{plugin-BUBXUbq8.js → plugin-CdZkyAp1.js} +1 -1
- package/dist/{plugin-D-WO1cMl.js → plugin-CnSU08rb.js} +1 -1
- package/dist/{plugin-b9_KKf-9.js → plugin-DArlmex8.js} +1 -1
- package/dist/{plugin-CzRCyET3.js → plugin-DKMiwQmN.js} +1 -1
- package/dist/{plugin-CBUyNiTn.js → plugin-DX5ICUyA.js} +1 -1
- package/dist/{plugin-B8k-Q9lw.js → plugin-DhHWk6sK.js} +1 -1
- package/dist/{plugin-BwA1VXdD.js → plugin-Dja0bljQ.js} +1 -1
- package/dist/{plugin-UbK5d4SN.js → plugin-ZJybqwxT.js} +1 -1
- package/dist/{plugin-B7BtMlal.js → plugin-i0cgy8R3.js} +1 -1
- package/dist/{plugins-ilcR1VlL.js → plugins-DOTHSfJB.js} +30 -28
- package/dist/plugins.js +99 -97
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +5 -5
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +4 -0
- package/dist/types/components/Dropdown/types.d.ts +2 -0
- package/dist/types/components/Icon/Icon.vue.d.ts +1 -1
- package/dist/types/components/Icon/types.d.ts +1 -1
- package/dist/types/components/InputSelect/InputSelect.story.d.ts +8 -0
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +6 -6
- package/dist/types/components/InputSelect/types.d.ts +2 -2
- package/dist/types/components/InputText/InputText.story.d.ts +22 -0
- package/dist/types/components/InputText/InputText.vue.d.ts +11 -0
- package/dist/types/components/InputText/types.d.ts +3 -0
- package/dist/types/enums/ui.d.ts +4 -0
- package/dist/ui-D5oXHNg_.js +14 -0
- package/package.json +1 -1
- package/dist/Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js +0 -156
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-BRqdwhz4.js +0 -232
- package/dist/InputText.vue_vue_type_script_setup_true_lang-JLAlUE_2.js +0 -38
- package/dist/ui-CzOLy35H.js +0 -13
package/dist/Avatar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o } from "./Avatar.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as o } from "./Avatar.vue_vue_type_script_setup_true_lang-CnvI4bGL.js";
|
|
2
|
+
import { p } from "./plugin-ZJybqwxT.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Avatar,
|
|
5
5
|
p as AvatarPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as f, computed as c, resolveComponent as x, openBlock as a, createElementBlock as o, normalizeClass as u, unref as t, createBlock as h, toDisplayString as z, createCommentVNode as _ } from "vue";
|
|
2
|
-
import { E as r, b as l } from "./ui-
|
|
2
|
+
import { E as r, b as l } from "./ui-D5oXHNg_.js";
|
|
3
3
|
const g = ["role"], v = ["src"], w = /* @__PURE__ */ f({
|
|
4
4
|
name: "TAvatar",
|
|
5
5
|
__name: "Avatar",
|
package/dist/Button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Button.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Button.vue_vue_type_script_setup_true_lang-CmbPvjSg.js";
|
|
2
|
+
import { p } from "./plugin-Bij2CJr7.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Button,
|
|
5
5
|
p as ButtonPlugin
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as I, ref as y, computed as s, resolveComponent as A, openBlock as c, createBlock as d, resolveDynamicComponent as
|
|
2
|
-
import { b as f, E as i, c as t, B as
|
|
1
|
+
import { defineComponent as I, ref as y, computed as s, resolveComponent as A, openBlock as c, createBlock as d, resolveDynamicComponent as z, normalizeClass as P, unref as r, withCtx as U, mergeProps as b, createCommentVNode as u, renderSlot as _, createElementBlock as h, Fragment as D, createTextVNode as k, toDisplayString as L } from "vue";
|
|
2
|
+
import { b as f, E as i, c as t, B as a } from "./ui-D5oXHNg_.js";
|
|
3
3
|
import { g } from "./index-CVD_wAsU.js";
|
|
4
|
-
import "./Icon.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import "./Icon.vue_vue_type_script_setup_true_lang-BuMQjBAy.js";
|
|
5
5
|
const F = ["multiple"], V = /* @__PURE__ */ I({
|
|
6
6
|
name: "TButton",
|
|
7
7
|
__name: "Button",
|
|
@@ -19,7 +19,7 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
|
|
|
19
19
|
shape: { default: f.Rounded },
|
|
20
20
|
size: { default: i.Default },
|
|
21
21
|
type: { default: t.BUTTON },
|
|
22
|
-
variant: { default:
|
|
22
|
+
variant: { default: a.DEFAULT }
|
|
23
23
|
},
|
|
24
24
|
emits: ["upload"],
|
|
25
25
|
setup(S, { expose: E, emit: T }) {
|
|
@@ -58,6 +58,8 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
|
|
|
58
58
|
const l = o.target.files;
|
|
59
59
|
!l || !l.length || x("upload", l);
|
|
60
60
|
}, v = s(() => {
|
|
61
|
+
if (e.iconProps && e.iconProps.size)
|
|
62
|
+
return e.iconProps.size;
|
|
61
63
|
switch (e.size) {
|
|
62
64
|
case i.ExtraSmall:
|
|
63
65
|
return 12;
|
|
@@ -75,57 +77,57 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
|
|
|
75
77
|
});
|
|
76
78
|
return E({ iconReference: p }), (o, n) => {
|
|
77
79
|
const l = A("t-icon");
|
|
78
|
-
return c(), d(
|
|
80
|
+
return c(), d(z(w.value), {
|
|
79
81
|
type: B.value,
|
|
80
82
|
value: R.value,
|
|
81
83
|
disabled: e.disabled,
|
|
82
|
-
class:
|
|
84
|
+
class: P([{
|
|
83
85
|
// Size
|
|
84
|
-
"text-xs px-1 h-4": e.size ===
|
|
85
|
-
"text-sm px-2 h-7": e.size ===
|
|
86
|
-
"text-base px-3 h-9": e.size ===
|
|
87
|
-
"text-lg px-3.5 h-12": e.size ===
|
|
88
|
-
"text-xl px-4 h-14": e.size ===
|
|
86
|
+
"text-xs px-1 h-4": e.size === r(i).ExtraSmall,
|
|
87
|
+
"text-sm px-2 h-7": e.size === r(i).Small,
|
|
88
|
+
"text-base px-3 h-9": e.size === r(i).Default,
|
|
89
|
+
"text-lg px-3.5 h-12": e.size === r(i).Large,
|
|
90
|
+
"text-xl px-4 h-14": e.size === r(i).ExtraLarge,
|
|
89
91
|
// Border
|
|
90
92
|
"border border-color": e.outline,
|
|
91
93
|
// Shape
|
|
92
|
-
"rounded-full": e.shape ===
|
|
93
|
-
"input-roundness": e.shape ===
|
|
94
|
+
"rounded-full": e.shape === r(f).Circle,
|
|
95
|
+
"input-roundness": e.shape === r(f).Rounded,
|
|
94
96
|
// Enabled/Disabled
|
|
95
97
|
"cursor-not-allowed": e.disabled,
|
|
96
98
|
"cursor-pointer": !e.disabled,
|
|
97
99
|
// Bold
|
|
98
100
|
"font-bold": e.bold,
|
|
99
101
|
// Default color
|
|
100
|
-
"border-caipira-primary-inverted fill-caipira-primary-inverted": e.variant === a
|
|
101
|
-
"bg-transparent color-caipira-primary-inverted hover:bg-caipira-primary-inverted hover:color-caipira-primary hover:fill-white": e.variant === a
|
|
102
|
-
"bg-caipira-primary-inverted color-caipira-primary": e.variant === a
|
|
102
|
+
"border-caipira-primary-inverted fill-caipira-primary-inverted": e.variant === r(a).DEFAULT,
|
|
103
|
+
"bg-transparent color-caipira-primary-inverted hover:bg-caipira-primary-inverted hover:color-caipira-primary hover:fill-white": e.variant === r(a).DEFAULT && e.outline,
|
|
104
|
+
"bg-caipira-primary-inverted color-caipira-primary": e.variant === r(a).DEFAULT && !e.outline,
|
|
103
105
|
// Primary color
|
|
104
|
-
"fill-caipira-primary": e.variant === a
|
|
105
|
-
"bg-transparent border-caipira-blue color-caipira-blue hover:bg-caipira-blue hover:color-caipira-primary hover:fill-white": e.variant === a
|
|
106
|
-
"bg-caipira-blue color-caipira-primary": e.variant === a
|
|
106
|
+
"fill-caipira-primary": e.variant === r(a).PRIMARY,
|
|
107
|
+
"bg-transparent border-caipira-blue color-caipira-blue hover:bg-caipira-blue hover:color-caipira-primary hover:fill-white": e.variant === r(a).PRIMARY && e.outline,
|
|
108
|
+
"bg-caipira-blue color-caipira-primary": e.variant === r(a).PRIMARY && !e.outline,
|
|
107
109
|
// Success color
|
|
108
|
-
"fill-caipira-green": e.variant === a
|
|
109
|
-
"bg-transparent border-caipira-green color-caipira-green hover:bg-caipira-green hover:color-caipira-primary hover:fill-white": e.variant === a
|
|
110
|
-
"bg-caipira-green color-caipira-primary": e.variant === a
|
|
110
|
+
"fill-caipira-green": e.variant === r(a).SUCCESS,
|
|
111
|
+
"bg-transparent border-caipira-green color-caipira-green hover:bg-caipira-green hover:color-caipira-primary hover:fill-white": e.variant === r(a).SUCCESS && e.outline,
|
|
112
|
+
"bg-caipira-green color-caipira-primary": e.variant === r(a).SUCCESS && !e.outline,
|
|
111
113
|
// Warning color
|
|
112
|
-
"fill-caipira-yellow": e.variant === a
|
|
113
|
-
"bg-transparent border-caipira-yellow color-caipira-yellow hover:bg-caipira-yellow hover:color-caipira-primary hover:fill-white": e.variant === a
|
|
114
|
-
"bg-caipira-yellow color-caipira-primary": e.variant === a
|
|
114
|
+
"fill-caipira-yellow": e.variant === r(a).WARNING,
|
|
115
|
+
"bg-transparent border-caipira-yellow color-caipira-yellow hover:bg-caipira-yellow hover:color-caipira-primary hover:fill-white": e.variant === r(a).WARNING && e.outline,
|
|
116
|
+
"bg-caipira-yellow color-caipira-primary": e.variant === r(a).WARNING && !e.outline,
|
|
115
117
|
// Danger color
|
|
116
|
-
"fill-caipira-red": e.variant === a
|
|
117
|
-
"bg-transparent border-caipira-red color-caipira-red hover:bg-caipira-red hover:color-caipira-primary hover:fill-white": e.variant === a
|
|
118
|
-
"bg-caipira-red color-caipira-primary": e.variant === a
|
|
118
|
+
"fill-caipira-red": e.variant === r(a).DANGER,
|
|
119
|
+
"bg-transparent border-caipira-red color-caipira-red hover:bg-caipira-red hover:color-caipira-primary hover:fill-white": e.variant === r(a).DANGER && e.outline,
|
|
120
|
+
"bg-caipira-red color-caipira-primary": e.variant === r(a).DANGER && !e.outline,
|
|
119
121
|
// Link
|
|
120
|
-
"color-caipira-primary-inverted underline": e.variant === a
|
|
122
|
+
"color-caipira-primary-inverted underline": e.variant === r(a).LINK,
|
|
121
123
|
// Transparent
|
|
122
|
-
"bg-transparent": e.variant === a
|
|
123
|
-
"hover:bg-[var(--hover-color)]": e.variant === a
|
|
124
|
+
"bg-transparent": e.variant === r(a).TRANSPARENT,
|
|
125
|
+
"hover:bg-[var(--hover-color)]": e.variant === r(a).TRANSPARENT && e.hover
|
|
124
126
|
}, "input-outline flex gap-1 items-center select-none whitespace-nowrap"]),
|
|
125
127
|
role: "button",
|
|
126
128
|
onClick: N
|
|
127
129
|
}, {
|
|
128
|
-
default:
|
|
130
|
+
default: U(() => [
|
|
129
131
|
e.icon && e.iconPosition === "left" ? (c(), d(l, b({
|
|
130
132
|
key: 0,
|
|
131
133
|
ref_key: "iconReference",
|
|
@@ -133,8 +135,8 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
|
|
|
133
135
|
size: v.value,
|
|
134
136
|
icon: e.icon
|
|
135
137
|
}, e.iconProps), null, 16, ["size", "icon"])) : u("", !0),
|
|
136
|
-
|
|
137
|
-
e.label && e.type !==
|
|
138
|
+
_(o.$slots, "default"),
|
|
139
|
+
e.label && e.type !== r(t).SUBMIT ? (c(), h(D, { key: 1 }, [
|
|
138
140
|
k(L(e.label), 1)
|
|
139
141
|
], 64)) : u("", !0),
|
|
140
142
|
e.icon && e.iconPosition === "right" ? (c(), d(l, b({
|
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-DtTBnNsn.js";
|
|
2
|
+
import { p as a } from "./plugin-DKMiwQmN.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Dropdown,
|
|
5
5
|
a as DropdownPlugin
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { defineComponent as A, ref as y, computed as P, resolveComponent as E, openBlock as n, createElementBlock as r, normalizeClass as c, createVNode as G, Fragment as D, renderList as F, toDisplayString as V, withKeys as $, renderSlot as I, normalizeProps as O, mergeProps as U, createBlock as j, createCommentVNode as q, createTextVNode as J, createElementVNode as Q } from "vue";
|
|
2
|
+
import { F as d } from "./ui-D5oXHNg_.js";
|
|
3
|
+
const W = /* @__PURE__ */ Q("span", null, "Loading...", -1), X = ["aria-selected", "onKeydown", "onClick"], Y = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "inline-flex items-center select-none input-text-color"
|
|
6
|
+
}, se = /* @__PURE__ */ A({
|
|
7
|
+
name: "TDropdown",
|
|
8
|
+
__name: "Dropdown",
|
|
9
|
+
props: {
|
|
10
|
+
size: { default: d.Default },
|
|
11
|
+
items: { default: () => [] },
|
|
12
|
+
loading: { type: Boolean, default: !1 },
|
|
13
|
+
multiple: { type: Boolean, default: !1 },
|
|
14
|
+
isVisible: { type: Boolean, default: !1 },
|
|
15
|
+
optionMarginClass: { default: "" },
|
|
16
|
+
optionPaddingClass: { default: "" },
|
|
17
|
+
wrapperPaddingClass: { default: "" },
|
|
18
|
+
optionRoundnessClass: { default: "input-roundness" },
|
|
19
|
+
wrapperRoundnessClass: { default: "input-roundness" }
|
|
20
|
+
},
|
|
21
|
+
emits: ["change", "end-reached", "created"],
|
|
22
|
+
setup(H, { expose: B, emit: L }) {
|
|
23
|
+
const s = H, R = L, i = y(-1), C = y(null), f = y([]), p = y("keyboard"), m = P(() => {
|
|
24
|
+
if (s.optionPaddingClass)
|
|
25
|
+
return s.optionPaddingClass;
|
|
26
|
+
switch (s.size) {
|
|
27
|
+
case d.Small:
|
|
28
|
+
return "py-1 px-2";
|
|
29
|
+
case d.Default:
|
|
30
|
+
default:
|
|
31
|
+
return "py-2 px-2";
|
|
32
|
+
}
|
|
33
|
+
}), k = P(() => {
|
|
34
|
+
switch (s.size) {
|
|
35
|
+
case d.Small:
|
|
36
|
+
return "text-sm";
|
|
37
|
+
case d.Default:
|
|
38
|
+
default:
|
|
39
|
+
return "text-base";
|
|
40
|
+
}
|
|
41
|
+
}), b = (t = i.value, o = s.items[t], l = void 0) => {
|
|
42
|
+
l?.stopPropagation(), R("change", {
|
|
43
|
+
index: t,
|
|
44
|
+
option: o,
|
|
45
|
+
hold: l?.ctrlKey ?? !1
|
|
46
|
+
}), o.action && o.action();
|
|
47
|
+
}, M = (t) => {
|
|
48
|
+
if (!s.isVisible)
|
|
49
|
+
return !1;
|
|
50
|
+
switch (t.preventDefault(), p.value = "keyboard", t.key) {
|
|
51
|
+
case "ArrowUp":
|
|
52
|
+
case "ArrowDown":
|
|
53
|
+
return S(t);
|
|
54
|
+
case "Enter":
|
|
55
|
+
return b();
|
|
56
|
+
}
|
|
57
|
+
}, N = () => {
|
|
58
|
+
const t = C.value;
|
|
59
|
+
t.scrollTop = 0;
|
|
60
|
+
}, S = (t) => {
|
|
61
|
+
const o = t.key === "ArrowDown", l = s.items.length;
|
|
62
|
+
let e = i.value;
|
|
63
|
+
const a = () => s.items[e] ? "isGroupLabel" in s.items[e] && s.items[e].isGroupLabel : !1, g = () => {
|
|
64
|
+
e === l - 1 ? e = 0 : e++;
|
|
65
|
+
}, K = () => {
|
|
66
|
+
e === 0 ? e = l - 1 : e--;
|
|
67
|
+
};
|
|
68
|
+
if (o)
|
|
69
|
+
do
|
|
70
|
+
g();
|
|
71
|
+
while (a());
|
|
72
|
+
else
|
|
73
|
+
do
|
|
74
|
+
K();
|
|
75
|
+
while (a());
|
|
76
|
+
e > -1 && e < l && (i.value = e);
|
|
77
|
+
const x = C.value, _ = f.value[i.value], v = _.offsetTop, h = _.offsetHeight, z = x.offsetHeight, u = x.scrollTop;
|
|
78
|
+
let w = 0;
|
|
79
|
+
if (_.focus(), v === 0 || u === 0)
|
|
80
|
+
w = v - z + h;
|
|
81
|
+
else if (o && v + h > z + u)
|
|
82
|
+
w = u + h;
|
|
83
|
+
else if (!o && v < u)
|
|
84
|
+
w = u - h;
|
|
85
|
+
else
|
|
86
|
+
return !0;
|
|
87
|
+
return x.scroll({ top: w }), !0;
|
|
88
|
+
}, T = (t) => {
|
|
89
|
+
const o = t.target, l = f.value[0];
|
|
90
|
+
!o || !l || o.scrollTop + o.clientHeight + l.offsetHeight >= o.scrollHeight && R("end-reached");
|
|
91
|
+
};
|
|
92
|
+
return B({ move: S, resetScroll: N }), (t, o) => {
|
|
93
|
+
const l = E("t-icon");
|
|
94
|
+
return n(), r("ul", {
|
|
95
|
+
ref_key: "listRef",
|
|
96
|
+
ref: C,
|
|
97
|
+
role: "listbox",
|
|
98
|
+
class: c(["text-left max-h-60 min-w-[8rem] z-10 overflow-y-auto scrollbar select-none floatable w-full", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
|
|
99
|
+
onScrollend: T,
|
|
100
|
+
onMousemove: o[0] || (o[0] = () => p.value = "mouse"),
|
|
101
|
+
onKeydown: M
|
|
102
|
+
}, [
|
|
103
|
+
s.loading ? (n(), r("li", {
|
|
104
|
+
key: 0,
|
|
105
|
+
role: "option",
|
|
106
|
+
"aria-disabled": "true",
|
|
107
|
+
class: c(["whitespace-nowrap inline-flex items-center", [
|
|
108
|
+
k.value,
|
|
109
|
+
m.value,
|
|
110
|
+
s.optionMarginClass,
|
|
111
|
+
s.optionRoundnessClass
|
|
112
|
+
]])
|
|
113
|
+
}, [
|
|
114
|
+
G(l, {
|
|
115
|
+
size: "sm",
|
|
116
|
+
class: "w-6 h-6 animate-spin mr-3",
|
|
117
|
+
icon: "loading"
|
|
118
|
+
}),
|
|
119
|
+
W
|
|
120
|
+
], 2)) : t.items.length === 0 ? (n(), r("li", {
|
|
121
|
+
key: 1,
|
|
122
|
+
role: "option",
|
|
123
|
+
"aria-disabled": "true",
|
|
124
|
+
class: c(["whitespace-nowrap text-gray-400", [
|
|
125
|
+
k.value,
|
|
126
|
+
m.value,
|
|
127
|
+
[s.optionMarginClass],
|
|
128
|
+
[s.optionRoundnessClass]
|
|
129
|
+
]])
|
|
130
|
+
}, " Nothing here ", 2)) : (n(!0), r(D, { key: 2 }, F(t.items, (e, a) => (n(), r(D, {
|
|
131
|
+
key: e?.isGroupLabel ? a : e.value
|
|
132
|
+
}, [
|
|
133
|
+
e.isGroupLabel ? (n(), r("li", {
|
|
134
|
+
key: 0,
|
|
135
|
+
class: c(["text-xs font-bold tracking-wider text-neutral-600", [
|
|
136
|
+
m.value,
|
|
137
|
+
s.optionMarginClass,
|
|
138
|
+
s.optionRoundnessClass
|
|
139
|
+
]]),
|
|
140
|
+
ref_for: !0,
|
|
141
|
+
ref_key: "itemRefs",
|
|
142
|
+
ref: f
|
|
143
|
+
}, V(e.label), 3)) : (n(), r("li", {
|
|
144
|
+
key: 1,
|
|
145
|
+
class: c([{
|
|
146
|
+
"bg-[var(--hover-color)]": a === i.value && p.value === "keyboard",
|
|
147
|
+
"hover:bg-[var(--hover-color)]": p.value === "mouse",
|
|
148
|
+
[k.value]: !0,
|
|
149
|
+
[m.value]: !0,
|
|
150
|
+
[s.optionMarginClass]: !0,
|
|
151
|
+
[s.optionRoundnessClass]: !0
|
|
152
|
+
}, "flex cursor-pointer whitespace-nowrap items-center focus-visible:outline-hidden"]),
|
|
153
|
+
role: "option",
|
|
154
|
+
ref_for: !0,
|
|
155
|
+
ref_key: "itemRefs",
|
|
156
|
+
ref: f,
|
|
157
|
+
tabindex: 0,
|
|
158
|
+
"aria-selected": a === i.value,
|
|
159
|
+
onKeydown: $((g) => b(a, e), ["enter"]),
|
|
160
|
+
onClick: (g) => b(a, e, g)
|
|
161
|
+
}, [
|
|
162
|
+
t.$slots.default ? I(t.$slots, "default", O(U({ key: 0 }, e))) : (n(), r("div", Y, [
|
|
163
|
+
e.icon ? (n(), j(l, {
|
|
164
|
+
key: 0,
|
|
165
|
+
icon: e.icon,
|
|
166
|
+
class: "mr-2",
|
|
167
|
+
size: "xs"
|
|
168
|
+
}, null, 8, ["icon"])) : q("", !0),
|
|
169
|
+
J(" " + V(e.label), 1)
|
|
170
|
+
]))
|
|
171
|
+
], 42, X))
|
|
172
|
+
], 64))), 128))
|
|
173
|
+
], 34);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
export {
|
|
178
|
+
se as _
|
|
179
|
+
};
|
package/dist/GraphyPrice.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as o } from "./plugin-
|
|
1
|
+
import { _ as a } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-Cr4zjIiS.js";
|
|
2
|
+
import { p as o } from "./plugin-CnSU08rb.js";
|
|
3
3
|
export {
|
|
4
4
|
a as GraphyPrice,
|
|
5
5
|
o as GraphyPricePlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, reactive as p, watch as l, openBlock as s, createElementBlock as u, normalizeClass as m, unref as r, toDisplayString as v } from "vue";
|
|
2
|
-
import { G as e } from "./ui-
|
|
2
|
+
import { G as e } from "./ui-D5oXHNg_.js";
|
|
3
3
|
import { g as f } from "./index-CVD_wAsU.js";
|
|
4
4
|
import { useI18n as y } from "vue-i18n";
|
|
5
5
|
const _ = /* @__PURE__ */ c({
|
package/dist/Icon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as n } from "./Icon.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as a } from "./plugin-
|
|
1
|
+
import { _ as n } from "./Icon.vue_vue_type_script_setup_true_lang-BuMQjBAy.js";
|
|
2
|
+
import { p as a } from "./plugin-Dja0bljQ.js";
|
|
3
3
|
export {
|
|
4
4
|
n as Icon,
|
|
5
5
|
a as IconPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, ref as p, computed as m, watch as h, openBlock as f, createElementBlock as d, normalizeClass as b, unref as t, normalizeStyle as k } from "vue";
|
|
2
|
-
import { E as o } from "./ui-
|
|
2
|
+
import { E as o } from "./ui-D5oXHNg_.js";
|
|
3
3
|
const x = (n, i) => {
|
|
4
4
|
const s = n[i];
|
|
5
5
|
return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((c, e) => {
|
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-Qeq0BBp3.js";
|
|
2
|
+
import { p as a } from "./plugin-DX5ICUyA.js";
|
|
3
3
|
export {
|
|
4
4
|
s as InputPassword,
|
|
5
5
|
a as InputPasswordPlugin
|
|
@@ -1,26 +1,27 @@
|
|
|
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
|
|
2
|
-
import { u 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 re } from "vue";
|
|
2
|
+
import { u as ae } from "./useClipboard-BHFD0Jvv.js";
|
|
3
|
+
import "./InputText.vue_vue_type_script_setup_true_lang-twigJ_WD.js";
|
|
3
4
|
import { f as ie } from "./format-CNTeOuM7.js";
|
|
4
5
|
const ue = (s = 18) => {
|
|
5
|
-
const e = "abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789",
|
|
6
|
+
const e = "abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789", r = "!?@#-+<%$>[]{}";
|
|
6
7
|
let n = "";
|
|
7
8
|
const l = [
|
|
8
9
|
Math.floor(Math.random() * s),
|
|
9
10
|
Math.floor(Math.random() * s)
|
|
10
11
|
];
|
|
11
|
-
for (let
|
|
12
|
-
l.includes(
|
|
13
|
-
Math.floor(Math.random() *
|
|
12
|
+
for (let a = 0; a < s; a++)
|
|
13
|
+
l.includes(a) ? n += r.charAt(
|
|
14
|
+
Math.floor(Math.random() * r.length)
|
|
14
15
|
) : n += e.charAt(
|
|
15
16
|
Math.floor(Math.random() * e.length)
|
|
16
17
|
);
|
|
17
18
|
return n;
|
|
18
19
|
}, ce = (s) => {
|
|
19
|
-
let e = 0,
|
|
20
|
+
let e = 0, r = 0, n = 0, l = 0, a = 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
21
|
const Q = "abcdefghijklmnopqrstuvwxyz", W = "01234567890", X = ")!@#$%^&*()", Y = 8, h = s.replace(/\s+/g, "").split(/\s*/), g = h.length;
|
|
21
|
-
e = s.length * Z,
|
|
22
|
+
e = s.length * Z, r = s.length;
|
|
22
23
|
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,
|
|
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 < g - 1 && c++, N !== 0 && N + 1 === t && o++, N = t, a++) : h[t].match(/[^a-zA-Z0-9_]/g) && (t > 0 && t < g - 1 && c++, u++);
|
|
24
25
|
let i = !1;
|
|
25
26
|
for (let f = 0; f < g; f++)
|
|
26
27
|
h[t] == h[f] && t != f && (i = !0, p += Math.abs(g / (f - t)));
|
|
@@ -39,7 +40,7 @@ const ue = (s = 18) => {
|
|
|
39
40
|
let i = X.substring(t, t + 3), f = i.split("").reverse().join("");
|
|
40
41
|
(s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(f) != -1) && x++;
|
|
41
42
|
}
|
|
42
|
-
n > 0 && n <
|
|
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), 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
44
|
let P = 0;
|
|
44
45
|
return s.length >= Y ? P = 3 : P = 4, b > P && (e = e + b * 2), e > 100 ? e = 100 : e < 0 && (e = 0), e;
|
|
45
46
|
}, $ = {
|
|
@@ -48,7 +49,7 @@ const ue = (s = 18) => {
|
|
|
48
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 = {
|
|
49
50
|
key: 1,
|
|
50
51
|
class: "inline-block float-right select-none"
|
|
51
|
-
},
|
|
52
|
+
}, ge = /* @__PURE__ */ ee({
|
|
52
53
|
name: "TInputPassword",
|
|
53
54
|
__name: "InputPassword",
|
|
54
55
|
props: /* @__PURE__ */ V({
|
|
@@ -69,8 +70,8 @@ const ue = (s = 18) => {
|
|
|
69
70
|
modelModifiers: {}
|
|
70
71
|
}),
|
|
71
72
|
emits: /* @__PURE__ */ V(["generate", "enter"], ["update:modelValue"]),
|
|
72
|
-
setup(s, { expose: e, emit:
|
|
73
|
-
const n = s, l = te(s, "modelValue"),
|
|
73
|
+
setup(s, { expose: e, emit: r }) {
|
|
74
|
+
const n = s, l = te(s, "modelValue"), a = r, u = R("password"), c = R(null), { copy: b } = ae(), d = R(!1), w = async (v, o) => {
|
|
74
75
|
if (o === void 0 && !v) {
|
|
75
76
|
l.value = { ...l.value };
|
|
76
77
|
return;
|
|
@@ -79,7 +80,7 @@ const ue = (s = 18) => {
|
|
|
79
80
|
}, p = () => {
|
|
80
81
|
c.value && c.value.$el && c.value.$el.focus();
|
|
81
82
|
}, C = async () => {
|
|
82
|
-
l.value.raw = $.generatePassword(),
|
|
83
|
+
l.value.raw = $.generatePassword(), a("generate", l.value);
|
|
83
84
|
};
|
|
84
85
|
return le(() => l.value.raw, w, { immediate: !0 }), e({ focus: p }), (v, o) => {
|
|
85
86
|
const m = j("t-button"), M = j("t-input-text"), x = j("t-progress-line");
|
|
@@ -137,7 +138,7 @@ const ue = (s = 18) => {
|
|
|
137
138
|
ref_key: "input",
|
|
138
139
|
ref: c,
|
|
139
140
|
class: "w-full px-2 input-bg-color input-text-color input-outline input-roundness",
|
|
140
|
-
onKeyup: o[2] || (o[2] = se((y) =>
|
|
141
|
+
onKeyup: o[2] || (o[2] = se((y) => a("enter"), ["enter"]))
|
|
141
142
|
}, null, 8, ["modelValue", "type", "autocomplete", "disabled"]),
|
|
142
143
|
z("div", de, [
|
|
143
144
|
k(m, {
|
|
@@ -157,11 +158,11 @@ const ue = (s = 18) => {
|
|
|
157
158
|
height: 2.5,
|
|
158
159
|
"show-percentage": !1
|
|
159
160
|
}, null, 8, ["value"])) : _("", !0),
|
|
160
|
-
l.value.updatedAt ? (A(), S("small", pe, " Last updated " +
|
|
161
|
+
l.value.updatedAt ? (A(), S("small", pe, " Last updated " + re(U(ie)(new Date(l.value.updatedAt), "MMMM do yyyy, hh:mm:ss")), 1)) : _("", !0)
|
|
161
162
|
], 64);
|
|
162
163
|
};
|
|
163
164
|
}
|
|
164
165
|
});
|
|
165
166
|
export {
|
|
166
|
-
|
|
167
|
+
ge as _
|
|
167
168
|
};
|
package/dist/InputSelect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as r } from "./plugin-
|
|
1
|
+
import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-uUjFwWIE.js";
|
|
2
|
+
import { p as r } from "./plugin-DhHWk6sK.js";
|
|
3
3
|
export {
|
|
4
4
|
p as InputSelect,
|
|
5
5
|
r as InputSelectPlugin
|