@caipira/tamandua 0.0.30 → 0.0.31
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 +1 -0
- package/dist/Avatar.js +2 -2
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-C8p8_0Uc.js +47 -0
- package/dist/{Button-COkapD0v.js → Button-CAiIEdkK.js} +47 -46
- package/dist/Button.css +1 -1
- package/dist/Button.js +2 -2
- package/dist/Dropdown.js +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-Bt-imwu7.js → Dropdown.vue_vue_type_script_setup_true_lang-pjG__bX2.js} +1 -1
- package/dist/Icon.js +2 -2
- package/dist/Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js +45 -0
- package/dist/InputDate.js +2 -2
- package/dist/{InputDate.vue_vue_type_script_setup_true_lang-Do47MTJJ.js → InputDate.vue_vue_type_script_setup_true_lang-D6nd7-IJ.js} +1 -1
- package/dist/InputPhone.js +2 -2
- package/dist/{InputPhone.vue_vue_type_script_setup_true_lang-DXtliNyv.js → InputPhone.vue_vue_type_script_setup_true_lang-B4TULqLW.js} +24 -23
- package/dist/InputPrice.js +2 -2
- package/dist/InputPrice.vue_vue_type_script_setup_true_lang-BX4rsYIr.js +67 -0
- package/dist/InputSelect.js +2 -2
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-BlA3DIYZ.js +232 -0
- package/dist/Popconfirm.js +2 -2
- package/dist/Popconfirm.vue_vue_type_script_setup_true_lang-XyjBUx0p.js +62 -0
- package/dist/Popover.js +2 -2
- package/dist/Popover.vue_vue_type_script_setup_true_lang-65AAXNvQ.js +984 -0
- package/dist/Tag.js +2 -2
- package/dist/Tag.vue_vue_type_script_setup_true_lang-CgX-nT8V.js +74 -0
- package/dist/components.js +11 -11
- package/dist/composables.js +27 -16
- package/dist/index.css +1 -1
- package/dist/{plugin-Dp-F27SY.js → plugin--NhgQEQ9.js} +1 -1
- package/dist/{plugin-Dy14_LJS.js → plugin-CN6om3My.js} +1 -1
- package/dist/{plugin-BwRXtPzh.js → plugin-CNqL90UL.js} +1 -1
- package/dist/{plugin-CGIfywdY.js → plugin-CrHDShgh.js} +1 -1
- package/dist/{plugin-CClGi0co.js → plugin-D8CsjFdw.js} +1 -1
- package/dist/{plugin-BOXtmhcZ.js → plugin-DDoM02Fq.js} +1 -1
- package/dist/{plugin-BR7RSh1H.js → plugin-Daf_swsz.js} +1 -1
- package/dist/{plugin-CBhgqomZ.js → plugin-DcWjzc_X.js} +1 -1
- package/dist/{plugin-BriPeDzu.js → plugin-Dk3KBChD.js} +1 -1
- package/dist/{plugin-Bt6de9ZA.js → plugin-Ee4Z5Rtp.js} +1 -1
- package/dist/{plugin-DgCWOSWh.js → plugin-z8Hr_T_O.js} +1 -1
- package/dist/{plugins-CxgvV4Py.js → plugins-ph4w98yE.js} +18 -18
- package/dist/plugins.js +18 -18
- package/dist/tamandua.js +1 -1
- package/dist/types/components/InputSelect/types.d.ts +3 -1
- package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +3 -1
- package/dist/types/components/Popover/Popover.vue.d.ts +42 -35
- package/dist/types/components/Popover/types.d.ts +0 -1
- package/dist/types/composables/useDomHelpers.d.ts +0 -4
- package/dist/useDomHelpers-CGVrQd35.js +19 -0
- package/package.json +3 -3
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-Cjz3Vlw9.js +0 -51
- package/dist/Icon.vue_vue_type_script_setup_true_lang-CNUyv7CY.js +0 -49
- package/dist/InputPrice.vue_vue_type_script_setup_true_lang-DBMW1AwZ.js +0 -66
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-ukwmeVxc.js +0 -226
- package/dist/Popconfirm.vue_vue_type_script_setup_true_lang-BNpLdXq7.js +0 -63
- package/dist/Popover.vue_vue_type_script_setup_true_lang-B4Polh2y.js +0 -985
- package/dist/Tag.vue_vue_type_script_setup_true_lang-0p-7UEvO.js +0 -72
- package/dist/types/components/EventListener/EventListener.vue.d.ts +0 -6
- package/dist/useDomHelpers-5CFMo6bx.js +0 -23
- package/dist/useRender-D8PeooXE.js +0 -16
package/README.md
CHANGED
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-C8p8_0Uc.js";
|
|
2
|
+
import { p } from "./plugin-DDoM02Fq.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Avatar,
|
|
5
5
|
p as AvatarPlugin
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as c, computed as d, resolveComponent as m, openBlock as a, createElementBlock as o, normalizeClass as u, unref as t, createBlock as p, toDisplayString as f, createCommentVNode as h } from "vue";
|
|
2
|
+
import { a as l, b as i } from "./ui-BC6H9E93.js";
|
|
3
|
+
const _ = ["role"], y = ["src"], S = { key: 2 }, w = /* @__PURE__ */ c({
|
|
4
|
+
name: "TAvatar",
|
|
5
|
+
__name: "Avatar",
|
|
6
|
+
props: {
|
|
7
|
+
icon: {},
|
|
8
|
+
text: { default: "" },
|
|
9
|
+
role: { default: "" },
|
|
10
|
+
size: { default: l.Default },
|
|
11
|
+
image: { default: "" },
|
|
12
|
+
shape: { default: i.Circle },
|
|
13
|
+
disableStyle: { type: Boolean, default: !1 }
|
|
14
|
+
},
|
|
15
|
+
setup(r) {
|
|
16
|
+
const e = r, s = d(() => e.role !== "" ? e.role : "");
|
|
17
|
+
return (z, b) => {
|
|
18
|
+
const n = m("t-icon");
|
|
19
|
+
return a(), o("div", {
|
|
20
|
+
role: s.value,
|
|
21
|
+
class: u([{
|
|
22
|
+
"h-5 w-5": !e.disableStyle && e.size === t(l).ExtraSmall,
|
|
23
|
+
"h-7 w-7": !e.disableStyle && e.size === t(l).Small,
|
|
24
|
+
"h-10 w-10": !e.disableStyle && e.size === t(l).Default,
|
|
25
|
+
"h-20 w-20": !e.disableStyle && e.size === t(l).Large,
|
|
26
|
+
"h-40 w-40": !e.disableStyle && e.size === t(l).ExtraLarge,
|
|
27
|
+
"rounded-full": e.shape === t(i).Circle,
|
|
28
|
+
rounded: e.shape === t(i).Square
|
|
29
|
+
}, "overflow-hidden inline-flex items-center justify-center bg-caipira-primary-inverted"])
|
|
30
|
+
}, [
|
|
31
|
+
e.image ? (a(), o("img", {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "w-full h-full object-cover",
|
|
34
|
+
src: e.image
|
|
35
|
+
}, null, 8, y)) : e.icon ? (a(), p(n, {
|
|
36
|
+
key: 1,
|
|
37
|
+
class: "color-caipira-primary",
|
|
38
|
+
icon: e.icon,
|
|
39
|
+
size: e.size
|
|
40
|
+
}, null, 8, ["icon", "size"])) : e.text ? (a(), o("span", S, f(e.text), 1)) : h("", !0)
|
|
41
|
+
], 10, _);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
w as _
|
|
47
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import './Button.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { c as i, a as t, b as
|
|
4
|
-
import { g } from "./index-CVD_wAsU.js";
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
|
|
8
|
-
const $ = ["multiple"], j = /* @__PURE__ */ D({
|
|
2
|
+
import { defineComponent as _, useSlots as z, getCurrentInstance as A, ref as v, computed as p, resolveComponent as U, openBlock as s, createBlock as y, resolveDynamicComponent as D, normalizeClass as L, unref as a, withCtx as k, renderSlot as F, mergeProps as P, createCommentVNode as m, createElementBlock as h, Fragment as M, createTextVNode as G, toDisplayString as O } from "vue";
|
|
3
|
+
import { c as i, a as t, b as d, B as r } from "./ui-BC6H9E93.js";
|
|
4
|
+
import { g as b } from "./index-CVD_wAsU.js";
|
|
5
|
+
import "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
|
|
6
|
+
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const V = ["multiple"], Y = /* @__PURE__ */ _({
|
|
9
8
|
name: "TButton",
|
|
10
9
|
__name: "Button",
|
|
11
10
|
props: {
|
|
@@ -13,7 +12,7 @@ const $ = ["multiple"], j = /* @__PURE__ */ D({
|
|
|
13
12
|
type: { default: i.BUTTON },
|
|
14
13
|
size: { default: t.Default },
|
|
15
14
|
label: { default: "" },
|
|
16
|
-
shape: { default:
|
|
15
|
+
shape: { default: d.Rounded },
|
|
17
16
|
hover: { type: Boolean, default: !0 },
|
|
18
17
|
variant: { default: r.DEFAULT },
|
|
19
18
|
outline: { type: Boolean, default: !1 },
|
|
@@ -23,8 +22,10 @@ const $ = ["multiple"], j = /* @__PURE__ */ D({
|
|
|
23
22
|
animate: {}
|
|
24
23
|
},
|
|
25
24
|
emits: ["upload"],
|
|
26
|
-
setup(
|
|
27
|
-
const e =
|
|
25
|
+
setup(g, { expose: S, emit: x }) {
|
|
26
|
+
const e = g, E = x, T = z();
|
|
27
|
+
A();
|
|
28
|
+
const f = v(), u = v(null), B = p(() => {
|
|
28
29
|
switch (e.type) {
|
|
29
30
|
case i.SUBMIT:
|
|
30
31
|
return "submit";
|
|
@@ -33,7 +34,7 @@ const $ = ["multiple"], j = /* @__PURE__ */ D({
|
|
|
33
34
|
default:
|
|
34
35
|
return "button";
|
|
35
36
|
}
|
|
36
|
-
}),
|
|
37
|
+
}), C = p(() => e.type === i.SUBMIT ? e.label : void 0), I = p(() => {
|
|
37
38
|
switch (e.type) {
|
|
38
39
|
case i.SUBMIT:
|
|
39
40
|
return "input";
|
|
@@ -42,23 +43,23 @@ const $ = ["multiple"], j = /* @__PURE__ */ D({
|
|
|
42
43
|
default:
|
|
43
44
|
return "button";
|
|
44
45
|
}
|
|
45
|
-
}),
|
|
46
|
-
if (
|
|
47
|
-
let
|
|
48
|
-
e.animate.target === "icon" && (
|
|
46
|
+
}), R = (l) => {
|
|
47
|
+
if (e.type === i.SUBMIT && l.preventDefault(), e.type === i.FILE && f.value?.click(), e.animate) {
|
|
48
|
+
let o = null;
|
|
49
|
+
e.animate.target === "icon" && (o = u.value?.reference), o && b.to(o, {
|
|
49
50
|
duration: 0.2,
|
|
50
51
|
...e.animate.animation,
|
|
51
52
|
ease: "power3.easeInOut",
|
|
52
53
|
onComplete: () => {
|
|
53
|
-
|
|
54
|
+
b.set(o, e.animate?.reset);
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
const c =
|
|
60
|
-
!c || !c.length ||
|
|
61
|
-
},
|
|
58
|
+
}, w = (l) => {
|
|
59
|
+
l.stopPropagation();
|
|
60
|
+
const c = l.target.files;
|
|
61
|
+
!c || !c.length || E("upload", c);
|
|
62
|
+
}, N = p(() => {
|
|
62
63
|
switch (e.size) {
|
|
63
64
|
case t.ExtraSmall:
|
|
64
65
|
return 12;
|
|
@@ -73,14 +74,14 @@ const $ = ["multiple"], j = /* @__PURE__ */ D({
|
|
|
73
74
|
default:
|
|
74
75
|
return 20;
|
|
75
76
|
}
|
|
76
|
-
}), n = p(() => !!e.label || !!
|
|
77
|
-
return
|
|
78
|
-
const c =
|
|
79
|
-
return s(),
|
|
80
|
-
type:
|
|
81
|
-
value:
|
|
77
|
+
}), n = p(() => !!e.label || !!T.default);
|
|
78
|
+
return S({ iconReference: u }), (l, o) => {
|
|
79
|
+
const c = U("t-icon");
|
|
80
|
+
return s(), y(D(I.value), {
|
|
81
|
+
type: B.value,
|
|
82
|
+
value: C.value,
|
|
82
83
|
disabled: e.disabled,
|
|
83
|
-
class:
|
|
84
|
+
class: L([{
|
|
84
85
|
// Size
|
|
85
86
|
"text-xs px-1 h-4": e.size === a(t).ExtraSmall,
|
|
86
87
|
"text-sm px-2 h-7": e.size === a(t).Small,
|
|
@@ -90,8 +91,8 @@ const $ = ["multiple"], j = /* @__PURE__ */ D({
|
|
|
90
91
|
// Border
|
|
91
92
|
border: e.outline,
|
|
92
93
|
// Shape
|
|
93
|
-
"rounded-full": e.shape === a(
|
|
94
|
-
"input-roundness": e.shape === a(
|
|
94
|
+
"rounded-full": e.shape === a(d).Circle,
|
|
95
|
+
"input-roundness": e.shape === a(d).Rounded,
|
|
95
96
|
// Disabled
|
|
96
97
|
"cursor-not-allowed opacity-50": e.disabled,
|
|
97
98
|
// Default color
|
|
@@ -121,15 +122,15 @@ const $ = ["multiple"], j = /* @__PURE__ */ D({
|
|
|
121
122
|
"transparent-hover": e.variant === a(r).TRANSPARENT && e.hover
|
|
122
123
|
}, "input-outline flex items-center select-none whitespace-nowrap"]),
|
|
123
124
|
role: "button",
|
|
124
|
-
onClick:
|
|
125
|
+
onClick: R
|
|
125
126
|
}, {
|
|
126
|
-
default:
|
|
127
|
-
|
|
128
|
-
e.icon ? (s(),
|
|
127
|
+
default: k(() => [
|
|
128
|
+
F(l.$slots, "default", {}, void 0, !0),
|
|
129
|
+
e.icon ? (s(), y(c, P({
|
|
129
130
|
key: 0,
|
|
130
131
|
ref_key: "iconReference",
|
|
131
|
-
ref:
|
|
132
|
-
size:
|
|
132
|
+
ref: u,
|
|
133
|
+
size: N.value,
|
|
133
134
|
icon: e.icon,
|
|
134
135
|
class: {
|
|
135
136
|
"mr-1": n.value && e.size === a(t).ExtraSmall,
|
|
@@ -138,25 +139,25 @@ const $ = ["multiple"], j = /* @__PURE__ */ D({
|
|
|
138
139
|
"mr-2.5": n.value && e.size === a(t).Large,
|
|
139
140
|
"mr-3": n.value && e.size === a(t).ExtraLarge
|
|
140
141
|
}
|
|
141
|
-
}, e.iconProps), null, 16, ["size", "icon", "class"])) :
|
|
142
|
-
e.label && e.type !== a(i).SUBMIT ? (s(),
|
|
143
|
-
|
|
144
|
-
], 64)) :
|
|
145
|
-
e.type === "file" ? (s(),
|
|
142
|
+
}, e.iconProps), null, 16, ["size", "icon", "class"])) : m("", !0),
|
|
143
|
+
e.label && e.type !== a(i).SUBMIT ? (s(), h(M, { key: 1 }, [
|
|
144
|
+
G(O(e.label), 1)
|
|
145
|
+
], 64)) : m("", !0),
|
|
146
|
+
e.type === "file" ? (s(), h("input", {
|
|
146
147
|
key: 2,
|
|
147
148
|
multiple: e.multiple,
|
|
148
149
|
type: "file",
|
|
149
150
|
ref_key: "fileInput",
|
|
150
|
-
ref:
|
|
151
|
+
ref: f,
|
|
151
152
|
class: "hidden",
|
|
152
|
-
onChange:
|
|
153
|
-
}, null, 40,
|
|
153
|
+
onChange: w
|
|
154
|
+
}, null, 40, V)) : m("", !0)
|
|
154
155
|
]),
|
|
155
156
|
_: 3
|
|
156
157
|
}, 8, ["type", "value", "disabled", "class"]);
|
|
157
158
|
};
|
|
158
159
|
}
|
|
159
|
-
}),
|
|
160
|
+
}), J = /* @__PURE__ */ W(Y, [["__scopeId", "data-v-7e65a1ef"]]);
|
|
160
161
|
export {
|
|
161
|
-
|
|
162
|
+
J as B
|
|
162
163
|
};
|
package/dist/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.transparent-hover[data-v-
|
|
1
|
+
.transparent-hover[data-v-7e65a1ef]:hover{background-color:rgb(from var(--caipira-primary) r g b / 45%)}
|
package/dist/Button.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-pjG__bX2.js";
|
|
2
|
+
import { p as a } from "./plugin-CNqL90UL.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Dropdown,
|
|
5
5
|
a as DropdownPlugin
|
|
@@ -75,7 +75,7 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
|
|
|
75
75
|
ref_key: "listRef",
|
|
76
76
|
ref: y,
|
|
77
77
|
role: "listbox",
|
|
78
|
-
class: u(["text-left max-h-60 min-w-[12rem] z-10 overflow-y-auto scrollbar select-none floatable", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
|
|
78
|
+
class: u(["text-left max-h-60 min-w-[12rem] 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
|
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-DXUyEtqW.js";
|
|
2
|
+
import { p as a } from "./plugin-Dk3KBChD.js";
|
|
3
3
|
export {
|
|
4
4
|
n as Icon,
|
|
5
5
|
a as IconPlugin
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as u, ref as m, computed as p, watch as f, openBlock as h, createElementBlock as d, normalizeClass as k, unref as t, normalizeStyle as w } from "vue";
|
|
2
|
+
import { a as o } from "./ui-BC6H9E93.js";
|
|
3
|
+
const b = (n, i) => {
|
|
4
|
+
const s = n[i];
|
|
5
|
+
return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((r, e) => {
|
|
6
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(e.bind(null, new Error("Unknown variable dynamic import: " + i)));
|
|
7
|
+
});
|
|
8
|
+
}, y = ["innerHTML", "role"], _ = /* @__PURE__ */ u({
|
|
9
|
+
name: "TIcon",
|
|
10
|
+
__name: "Icon",
|
|
11
|
+
props: {
|
|
12
|
+
icon: {},
|
|
13
|
+
role: { default: "" },
|
|
14
|
+
size: { default: o.Default }
|
|
15
|
+
},
|
|
16
|
+
setup(n, { expose: i }) {
|
|
17
|
+
const s = n, r = m(""), e = m(null), g = p(() => s.role === "button"), v = p(() => s.role !== "" ? s.role : ""), l = async () => (await b(/* @__PURE__ */ Object.assign({ "../../assets/icons/account.svg": () => import("./account-BJGxzbeL.js"), "../../assets/icons/alert-octagon-outline.svg": () => import("./alert-octagon-outline-fM2QVbyq.js"), "../../assets/icons/alert-octagon.svg": () => import("./alert-octagon-BIUtdQBd.js"), "../../assets/icons/archive-outline.svg": () => import("./archive-outline-BT6uCRX5.js"), "../../assets/icons/archive.svg": () => import("./archive-DDuuzVUo.js"), "../../assets/icons/arrow-left.svg": () => import("./arrow-left-CVipcGWo.js"), "../../assets/icons/arrow-right.svg": () => import("./arrow-right-DHFo5L72.js"), "../../assets/icons/bank-outline.svg": () => import("./bank-outline-wy0O9ni0.js"), "../../assets/icons/bank.svg": () => import("./bank-lwoR1P6d.js"), "../../assets/icons/camera.svg": () => import("./camera-BXoPauop.js"), "../../assets/icons/cards-outline.svg": () => import("./cards-outline-B0no8Z63.js"), "../../assets/icons/cards-variant.svg": () => import("./cards-variant-CU6V8mdM.js"), "../../assets/icons/cart-outline.svg": () => import("./cart-outline-C99s8OpS.js"), "../../assets/icons/chart-box-outline.svg": () => import("./chart-box-outline-C9ymwfIH.js"), "../../assets/icons/chart-box.svg": () => import("./chart-box-tyepg_QH.js"), "../../assets/icons/check-circle-outline.svg": () => import("./check-circle-outline-B4zmPfuc.js"), "../../assets/icons/check-circle.svg": () => import("./check-circle-C3Kf7DnE.js"), "../../assets/icons/check.svg": () => import("./check-iUT-FuWa.js"), "../../assets/icons/checkbox-dark.svg": () => import("./checkbox-dark-D_btgwCX.js"), "../../assets/icons/checkbox-indeterminate-dark.svg": () => import("./checkbox-indeterminate-dark-CSrkJBRG.js"), "../../assets/icons/checkbox-indeterminate.svg": () => import("./checkbox-indeterminate-CtbmyFkw.js"), "../../assets/icons/checkbox.svg": () => import("./checkbox-TojXdFTq.js"), "../../assets/icons/chevron-down.svg": () => import("./chevron-down-CJLshITY.js"), "../../assets/icons/chevron-left.svg": () => import("./chevron-left-n_sGCmlG.js"), "../../assets/icons/chevron-right.svg": () => import("./chevron-right-C8uLqjmq.js"), "../../assets/icons/chevron-up.svg": () => import("./chevron-up-b6VdQM8S.js"), "../../assets/icons/circle.svg": () => import("./circle-DhoEDuC5.js"), "../../assets/icons/clock.svg": () => import("./clock-BqMI2OIG.js"), "../../assets/icons/close-circle-outline.svg": () => import("./close-circle-outline-CUXfYV4M.js"), "../../assets/icons/close-circle.svg": () => import("./close-circle-Bvyw4JKW.js"), "../../assets/icons/close.svg": () => import("./close-DemH4JAO.js"), "../../assets/icons/cog.svg": () => import("./cog-Dd9I6z5D.js"), "../../assets/icons/color-fill.svg": () => import("./color-fill-DWx77G0p.js"), "../../assets/icons/copy.svg": () => import("./copy-D-Dqxp8h.js"), "../../assets/icons/credit-card-plus.svg": () => import("./credit-card-plus-TUZq5Zi0.js"), "../../assets/icons/credit-card.svg": () => import("./credit-card-B3VjoUad.js"), "../../assets/icons/currency.svg": () => import("./currency-BuSji4qA.js"), "../../assets/icons/database.svg": () => import("./database-CNG_l2Or.js"), "../../assets/icons/dots-grid.svg": () => import("./dots-grid-BhRGZg1t.js"), "../../assets/icons/dots-vertical.svg": () => import("./dots-vertical-nYIDxlT1.js"), "../../assets/icons/email-open-outline.svg": () => import("./email-open-outline-NlRAK8vu.js"), "../../assets/icons/email-outline.svg": () => import("./email-outline-v-beMKo_.js"), "../../assets/icons/eye-off.svg": () => import("./eye-off-Dq2WOPSG.js"), "../../assets/icons/eye.svg": () => import("./eye-C7_UM0rn.js"), "../../assets/icons/file-document-plus-outline.svg": () => import("./file-document-plus-outline-C_GeG8ak.js"), "../../assets/icons/filmstrip.svg": () => import("./filmstrip-Dg66xHap.js"), "../../assets/icons/filter.svg": () => import("./filter-07gM0IrM.js"), "../../assets/icons/fullscreen-exit.svg": () => import("./fullscreen-exit-DvHy2f8E.js"), "../../assets/icons/fullscreen.svg": () => import("./fullscreen-daZRwm-1.js"), "../../assets/icons/group.svg": () => import("./group-B1HQcmCl.js"), "../../assets/icons/image-album-outline.svg": () => import("./image-album-outline-oiPipPnp.js"), "../../assets/icons/image-album.svg": () => import("./image-album-DVl72ioK.js"), "../../assets/icons/image-outline.svg": () => import("./image-outline-CLpFyr7w.js"), "../../assets/icons/image.svg": () => import("./image-C-DY_SfK.js"), "../../assets/icons/info-outline.svg": () => import("./info-outline-Mn6Hjz_K.js"), "../../assets/icons/key-chain.svg": () => import("./key-chain-D-8-GrU2.js"), "../../assets/icons/key-variant.svg": () => import("./key-variant-DViBRFAJ.js"), "../../assets/icons/key.svg": () => import("./key-B8iEXxGx.js"), "../../assets/icons/listbox-outline.svg": () => import("./listbox-outline-BBriTS-r.js"), "../../assets/icons/loading.svg": () => import("./loading-E4eFmVsP.js"), "../../assets/icons/lock-outline.svg": () => import("./lock-outline-K2LxC2b6.js"), "../../assets/icons/lock.svg": () => import("./lock-Nv-e-b24.js"), "../../assets/icons/logout.svg": () => import("./logout-BHwFpuou.js"), "../../assets/icons/menu-down.svg": () => import("./menu-down-B4Fy5IG1.js"), "../../assets/icons/menu-left.svg": () => import("./menu-left-D8G3frKt.js"), "../../assets/icons/menu-right.svg": () => import("./menu-right-CMt4thJ2.js"), "../../assets/icons/menu.svg": () => import("./menu-pq7WWaJu.js"), "../../assets/icons/minus-circle-outline.svg": () => import("./minus-circle-outline-B-x6EXPD.js"), "../../assets/icons/minus-circle.svg": () => import("./minus-circle-D_N5NZW-.js"), "../../assets/icons/minus.svg": () => import("./minus-CSCkQnOm.js"), "../../assets/icons/moon.svg": () => import("./moon-Bhm_ZTV6.js"), "../../assets/icons/open-in-new.svg": () => import("./open-in-new-C2Btl_1k.js"), "../../assets/icons/pencil.svg": () => import("./pencil-BETebgXX.js"), "../../assets/icons/people.svg": () => import("./people-BUW1DRzH.js"), "../../assets/icons/piggy-bank-outline.svg": () => import("./piggy-bank-outline-5cDQNrSU.js"), "../../assets/icons/plus-circle-outline.svg": () => import("./plus-circle-outline-C-kkX0ke.js"), "../../assets/icons/plus-circle.svg": () => import("./plus-circle-Cl0YprEp.js"), "../../assets/icons/plus.svg": () => import("./plus-sbcOm60H.js"), "../../assets/icons/qrcode-scan.svg": () => import("./qrcode-scan-CpLrVFw_.js"), "../../assets/icons/radio-dark.svg": () => import("./radio-dark-Cr5v17AF.js"), "../../assets/icons/radio.svg": () => import("./radio-DkjVAhsO.js"), "../../assets/icons/refresh.svg": () => import("./refresh-DPlMWd1M.js"), "../../assets/icons/save.svg": () => import("./save-BmMH4S8b.js"), "../../assets/icons/search.svg": () => import("./search-Co2MwWOK.js"), "../../assets/icons/spotlight.svg": () => import("./spotlight-TNyCQzOY.js"), "../../assets/icons/store-outline.svg": () => import("./store-outline-B-fuVZzv.js"), "../../assets/icons/sun.svg": () => import("./sun-BWKjCEHH.js"), "../../assets/icons/swap-horizontal.svg": () => import("./swap-horizontal-DociZUG2.js"), "../../assets/icons/swap-left.svg": () => import("./swap-left-Bd2DOgf3.js"), "../../assets/icons/swap-right.svg": () => import("./swap-right-D0VYxBDb.js"), "../../assets/icons/swap.svg": () => import("./swap-CNbqKTl0.js"), "../../assets/icons/system-theme.svg": () => import("./system-theme-Cez6mSv_.js"), "../../assets/icons/tag-outline.svg": () => import("./tag-outline-Ce_qOxif.js"), "../../assets/icons/trash-can-outline.svg": () => import("./trash-can-outline-DjtqZHOC.js"), "../../assets/icons/trash-can.svg": () => import("./trash-can-CKPtMqSf.js"), "../../assets/icons/upload.svg": () => import("./upload-CKfrBexU.js"), "../../assets/icons/user-circle.svg": () => import("./user-circle-D102n1FB.js"), "../../assets/icons/zip-box.svg": () => import("./zip-box-C10560VY.js") }), `../../assets/icons/${s.icon}.svg`)).default;
|
|
18
|
+
return f(
|
|
19
|
+
() => s.icon,
|
|
20
|
+
async (c, a) => {
|
|
21
|
+
c !== a && (r.value = await l());
|
|
22
|
+
},
|
|
23
|
+
{ immediate: !0 }
|
|
24
|
+
), i({ reference: e }), (c, a) => (h(), d("i", {
|
|
25
|
+
innerHTML: r.value,
|
|
26
|
+
ref_key: "reference",
|
|
27
|
+
ref: e,
|
|
28
|
+
class: k(["inline-block fill-current", {
|
|
29
|
+
"w-3 h-3": s.size === t(o).ExtraSmall,
|
|
30
|
+
"w-5 h-5": s.size === t(o).Small,
|
|
31
|
+
"w-6 h-6": s.size === t(o).Default,
|
|
32
|
+
"w-12 h-12": s.size === t(o).Large,
|
|
33
|
+
"w-16 h-16": s.size === t(o).ExtraLarge,
|
|
34
|
+
"cursor-pointer": g.value
|
|
35
|
+
}]),
|
|
36
|
+
style: w(
|
|
37
|
+
typeof s.size == "number" ? `width: ${s.size}px; height: ${s.size}px;` : ""
|
|
38
|
+
),
|
|
39
|
+
role: v.value
|
|
40
|
+
}, null, 14, y));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
_
|
|
45
|
+
};
|
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-D6nd7-IJ.js";
|
|
2
|
+
import { p as o } from "./plugin-CN6om3My.js";
|
|
3
3
|
export {
|
|
4
4
|
a as InputDate,
|
|
5
5
|
o as InputDatePlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as X, ref as f, watch as O, computed as Y, onBeforeMount as Z, resolveComponent as ee, openBlock as c, createElementBlock as v, createElementVNode as n, withKeys as te, withDirectives as oe, toDisplayString as x, unref as le, Fragment as F, renderList as T, normalizeClass as $, createVNode as B, vShow as ne } from "vue";
|
|
2
|
-
import { u as ae } from "./useDomHelpers-
|
|
2
|
+
import { u as ae } from "./useDomHelpers-CGVrQd35.js";
|
|
3
3
|
import { f as E } from "./index-CjvqeRf7.js";
|
|
4
4
|
import { g as L, s as S, a as se, b as N, c as re } from "./index-CuyePt3m.js";
|
|
5
5
|
const ue = ["value"], ie = {
|
package/dist/InputPhone.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./InputPhone.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as r } from "./plugin-
|
|
1
|
+
import { _ as p } from "./InputPhone.vue_vue_type_script_setup_true_lang-B4TULqLW.js";
|
|
2
|
+
import { p as r } from "./plugin-CrHDShgh.js";
|
|
3
3
|
export {
|
|
4
4
|
p as InputPhone,
|
|
5
5
|
r as InputPhonePlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as y, ref as r, onBeforeMount as g, watch as h, resolveComponent as p, openBlock as I, createElementBlock as B, createVNode as m, withCtx as f, createElementVNode as b, toDisplayString as l } from "vue";
|
|
2
|
+
const k = { class: "flex items-center h-9 w-full input-bg-color input-text-color border input-border input-roundness" }, N = /* @__PURE__ */ y({
|
|
3
3
|
name: "TInputPhone",
|
|
4
4
|
__name: "InputPhone",
|
|
5
5
|
props: {
|
|
@@ -7,12 +7,12 @@ const j = { class: "h-9 flex input-bg-color input-text-color border input-border
|
|
|
7
7
|
modelValue: { default: () => ({}) }
|
|
8
8
|
},
|
|
9
9
|
emits: ["update:model-value"],
|
|
10
|
-
setup(
|
|
11
|
-
const u =
|
|
12
|
-
if (!
|
|
10
|
+
setup(v, { emit: _ }) {
|
|
11
|
+
const u = v, C = _, a = r(""), n = r(), i = r([]), s = r([]), d = () => {
|
|
12
|
+
if (!n.value)
|
|
13
13
|
return;
|
|
14
|
-
const e =
|
|
15
|
-
(
|
|
14
|
+
const e = s.value.find(
|
|
15
|
+
(o) => o.dialCode === n.value
|
|
16
16
|
);
|
|
17
17
|
e && C("update:model-value", {
|
|
18
18
|
iso2: e.iso2,
|
|
@@ -20,14 +20,14 @@ const j = { class: "h-9 flex input-bg-color input-text-color border input-border
|
|
|
20
20
|
number: a.value ?? ""
|
|
21
21
|
});
|
|
22
22
|
}, V = async () => {
|
|
23
|
-
u.resource && (
|
|
23
|
+
u.resource && (s.value = await u.resource(), i.value = s.value.map(
|
|
24
24
|
(e) => ({
|
|
25
25
|
label: e,
|
|
26
26
|
value: e.dialCode
|
|
27
27
|
})
|
|
28
28
|
) ?? []);
|
|
29
29
|
}, c = async (e) => {
|
|
30
|
-
e && typeof e == "object" && (
|
|
30
|
+
e && typeof e == "object" && (n.value = e.dialCode, "number" in e && (a.value = e.number));
|
|
31
31
|
};
|
|
32
32
|
return g(async () => {
|
|
33
33
|
await V(), c(u.modelValue);
|
|
@@ -37,30 +37,31 @@ const j = { class: "h-9 flex input-bg-color input-text-color border input-border
|
|
|
37
37
|
c(e);
|
|
38
38
|
},
|
|
39
39
|
{ immediate: !0 }
|
|
40
|
-
), (e,
|
|
41
|
-
const
|
|
42
|
-
return I(), B("div",
|
|
43
|
-
m(
|
|
44
|
-
modelValue:
|
|
40
|
+
), (e, o) => {
|
|
41
|
+
const w = p("t-input-select"), x = p("t-input-text");
|
|
42
|
+
return I(), B("div", k, [
|
|
43
|
+
m(w, {
|
|
44
|
+
modelValue: n.value,
|
|
45
45
|
"onUpdate:modelValue": [
|
|
46
|
-
|
|
46
|
+
o[0] || (o[0] = (t) => n.value = t),
|
|
47
47
|
d
|
|
48
48
|
],
|
|
49
|
-
options:
|
|
50
|
-
"
|
|
51
|
-
class: "border-
|
|
49
|
+
options: i.value,
|
|
50
|
+
"width-class": "min-w-20",
|
|
51
|
+
"border-class": "border-t border-r border-b input-border",
|
|
52
|
+
"roundness-class": ""
|
|
52
53
|
}, {
|
|
53
54
|
default: f((t) => [
|
|
54
|
-
|
|
55
|
+
b("span", null, l(t.flag) + " " + l(t.name) + " +" + l(t.dialCode), 1)
|
|
55
56
|
]),
|
|
56
57
|
selection: f((t) => [
|
|
57
|
-
|
|
58
|
+
b("span", null, l(t.flag) + " +" + l(t.dialCode), 1)
|
|
58
59
|
]),
|
|
59
60
|
_: 1
|
|
60
61
|
}, 8, ["modelValue", "options"]),
|
|
61
|
-
m(
|
|
62
|
+
m(x, {
|
|
62
63
|
modelValue: a.value,
|
|
63
|
-
"onUpdate:modelValue":
|
|
64
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => a.value = t),
|
|
64
65
|
"disable-style": !0,
|
|
65
66
|
class: "w-full input-bg-color input-text-color input-outline input-roundness input-padding",
|
|
66
67
|
onInput: d
|
|
@@ -70,5 +71,5 @@ const j = { class: "h-9 flex input-bg-color input-text-color border input-border
|
|
|
70
71
|
}
|
|
71
72
|
});
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
N as _
|
|
74
75
|
};
|
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-BX4rsYIr.js";
|
|
2
|
+
import { p as t } from "./plugin-z8Hr_T_O.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputPrice,
|
|
5
5
|
t as InputPricePlugin
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent as p, mergeModels as c, useModel as m, watch as v, resolveComponent as b, openBlock as f, createElementBlock as _, createVNode as g, withDirectives as h, createElementVNode as x, vModelText as N } from "vue";
|
|
2
|
+
const I = {
|
|
3
|
+
options: {
|
|
4
|
+
precision: 2
|
|
5
|
+
},
|
|
6
|
+
inputToPriceNumber(r) {
|
|
7
|
+
return r = r.replace(/[^0-9]/g, "").trim(), r ? parseFloat(r) / Math.pow(10, this.options.precision) : void 0;
|
|
8
|
+
}
|
|
9
|
+
}, M = { class: "flex items-center h-9 w-full input-bg-color input-text-color border input-border input-roundness" }, P = ["disabled"], y = /* @__PURE__ */ p({
|
|
10
|
+
name: "TInputPrice",
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
__name: "InputPrice",
|
|
13
|
+
props: /* @__PURE__ */ c({
|
|
14
|
+
resource: { type: Function },
|
|
15
|
+
disabled: { type: Boolean }
|
|
16
|
+
}, {
|
|
17
|
+
modelValue: {
|
|
18
|
+
default: {
|
|
19
|
+
iso: "",
|
|
20
|
+
value: void 0
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
modelModifiers: {}
|
|
24
|
+
}),
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(r, { emit: n }) {
|
|
27
|
+
const t = m(r, "modelValue"), i = r, u = (e) => ({
|
|
28
|
+
label: e.symbol,
|
|
29
|
+
value: e.iso
|
|
30
|
+
}), a = (e, o) => {
|
|
31
|
+
if (o === void 0) {
|
|
32
|
+
t.value = { ...t.value };
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
e?.value && e.value !== o?.value && (t.value.value = e.value), e?.iso && e.iso !== o?.iso && (t.value.iso = e.iso);
|
|
36
|
+
}, d = (e) => {
|
|
37
|
+
const s = e.target.value;
|
|
38
|
+
return t.value.value = I.inputToPriceNumber(s), !1;
|
|
39
|
+
};
|
|
40
|
+
return v(t, a, { immediate: !0 }), (e, o) => {
|
|
41
|
+
const s = b("t-input-select");
|
|
42
|
+
return f(), _("div", M, [
|
|
43
|
+
g(s, {
|
|
44
|
+
modelValue: t.value.iso,
|
|
45
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => t.value.iso = l),
|
|
46
|
+
resource: i.resource,
|
|
47
|
+
mapper: u,
|
|
48
|
+
"width-class": "w-20",
|
|
49
|
+
"border-class": "border-t border-r border-b input-border",
|
|
50
|
+
"roundness-class": ""
|
|
51
|
+
}, null, 8, ["modelValue", "resource"]),
|
|
52
|
+
h(x("input", {
|
|
53
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => t.value.value = l),
|
|
54
|
+
type: "text",
|
|
55
|
+
class: "w-full h-full input-bg-color input-text-color input-outline input-roundness input-padding",
|
|
56
|
+
disabled: i.disabled,
|
|
57
|
+
onInput: d
|
|
58
|
+
}, null, 40, P), [
|
|
59
|
+
[N, t.value.value]
|
|
60
|
+
])
|
|
61
|
+
]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
y as _
|
|
67
|
+
};
|
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-BlA3DIYZ.js";
|
|
2
|
+
import { p as r } from "./plugin-Daf_swsz.js";
|
|
3
3
|
export {
|
|
4
4
|
p as InputSelect,
|
|
5
5
|
r as InputSelectPlugin
|