@caipira/tamandua 0.0.65 → 0.0.66
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-BbcM5CB3.js → Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js} +1 -1
- package/dist/Button.js +2 -2
- package/dist/{Button-BThdMs5-.js → Button.vue_vue_type_script_setup_true_lang-CUPz7wT9.js} +81 -79
- package/dist/GraphyPrice.js +2 -2
- package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-DI2x-MAS.js → GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js} +1 -1
- package/dist/Icon.js +2 -2
- package/dist/{Icon.vue_vue_type_script_setup_true_lang-CDJweTzy.js → Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js} +1 -1
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-W2S_TcOu.js → InputSelect.vue_vue_type_script_setup_true_lang-BuO105oW.js} +1 -1
- package/dist/Link.js +2 -2
- package/dist/{Link.vue_vue_type_script_setup_true_lang-DIzaFPvW.js → Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js} +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-BB6dLKpi.js +106 -0
- package/dist/Popconfirm.js +2 -2
- package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-CgWeJEGu.js → Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js} +1 -1
- package/dist/Popover.js +2 -2
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-MaJDdAe0.js → Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js} +6 -6
- package/dist/Tag.js +2 -2
- package/dist/{Tag.vue_vue_type_script_setup_true_lang-CkDz2_qz.js → Tag.vue_vue_type_script_setup_true_lang-CKzb-As0.js} +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toast.vue_vue_type_script_setup_true_lang-Lw1lJoH3.js → Toast.vue_vue_type_script_setup_true_lang-DcVS4Iyg.js} +1 -1
- package/dist/components.js +16 -16
- package/dist/enums.js +1 -1
- package/dist/{plugin-BU44OLnf.js → plugin-2Cr_XUjp.js} +1 -1
- package/dist/{plugin-6ziw5jJj.js → plugin-BShPzL82.js} +1 -1
- package/dist/{plugin-BOewyU0C.js → plugin-BdTrCTL4.js} +1 -1
- package/dist/{plugin-Bw-AW29_.js → plugin-CEByTREY.js} +1 -1
- package/dist/{plugin-aR9suX-A.js → plugin-CGE6W117.js} +1 -1
- package/dist/{plugin-hcORPz_I.js → plugin-ColpxTKB.js} +1 -1
- package/dist/plugin-Cr3oXX-8.js +10 -0
- package/dist/{plugin-B5vbbM7n.js → plugin-DJlVAL-g.js} +1 -1
- package/dist/{plugin-DqD4mnko.js → plugin-DNwjBl_u.js} +1 -1
- package/dist/{plugin-CZiSoM73.js → plugin-DPAnsB4s.js} +1 -1
- package/dist/{plugin-DPcsc5tO.js → plugin-DxG6Hhao.js} +1 -1
- package/dist/{plugins-cn0dSxZb.js → plugins-BFVTdy-_.js} +20 -20
- package/dist/plugins.js +20 -20
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +23 -17
- package/dist/types/components/Button/types.d.ts +15 -13
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +6 -6
- package/dist/{ui-BSiRZzeZ.js → ui-J-lhC9qd.js} +2 -2
- package/package.json +1 -1
- package/dist/Button.css +0 -1
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-BNeFZWgA.js +0 -108
- package/dist/plugin-BoP2-VzO.js +0 -10
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-D7NdR9hu.js";
|
|
2
|
+
import { p } from "./plugin-DNwjBl_u.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Avatar,
|
|
5
5
|
p as AvatarPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { a as l, b as i } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const _ = ["role"], y = ["src"], S = { key: 2 }, w = /* @__PURE__ */ c({
|
|
4
4
|
name: "TAvatar",
|
|
5
5
|
__name: "Avatar",
|
package/dist/Button.js
CHANGED
|
@@ -1,99 +1,101 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const W = ["multiple"], V = /* @__PURE__ */ _({
|
|
1
|
+
import { defineComponent as A, useSlots as U, ref as b, computed as c, resolveComponent as _, openBlock as p, createBlock as d, resolveDynamicComponent as z, normalizeClass as D, unref as a, withCtx as P, mergeProps as y, createCommentVNode as u, renderSlot as k, createElementBlock as h, Fragment as L, createTextVNode as F, toDisplayString as M } from "vue";
|
|
2
|
+
import { b as f, a as i, c as t, B as r } from "./ui-J-lhC9qd.js";
|
|
3
|
+
import { g } from "./index-CVD_wAsU.js";
|
|
4
|
+
import "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
|
|
5
|
+
const G = ["multiple"], K = /* @__PURE__ */ A({
|
|
8
6
|
name: "TButton",
|
|
9
7
|
__name: "Button",
|
|
10
8
|
props: {
|
|
9
|
+
animate: {},
|
|
10
|
+
bold: { type: Boolean, default: !1 },
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
hover: { type: Boolean, default: !0 },
|
|
11
13
|
icon: {},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
iconPosition: { default: "left" },
|
|
15
|
+
iconProps: { default: () => ({}) },
|
|
14
16
|
label: { default: "" },
|
|
15
|
-
shape: { default: d.Rounded },
|
|
16
|
-
hover: { type: Boolean, default: !0 },
|
|
17
|
-
variant: { default: r.DEFAULT },
|
|
18
|
-
outline: { type: Boolean, default: !1 },
|
|
19
17
|
multiple: { type: Boolean, default: !1 },
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
outline: { type: Boolean, default: !1 },
|
|
19
|
+
shape: { default: f.Rounded },
|
|
20
|
+
size: { default: i.Default },
|
|
21
|
+
type: { default: t.BUTTON },
|
|
22
|
+
variant: { default: r.DEFAULT }
|
|
23
23
|
},
|
|
24
24
|
emits: ["upload"],
|
|
25
|
-
setup(
|
|
26
|
-
const e =
|
|
25
|
+
setup(S, { expose: T, emit: E }) {
|
|
26
|
+
const e = S, x = E, B = U(), m = b(), s = b(null), R = c(() => {
|
|
27
27
|
switch (e.type) {
|
|
28
|
-
case
|
|
28
|
+
case t.SUBMIT:
|
|
29
29
|
return "submit";
|
|
30
|
-
case
|
|
31
|
-
case
|
|
30
|
+
case t.BUTTON:
|
|
31
|
+
case t.FILE:
|
|
32
32
|
default:
|
|
33
33
|
return "button";
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
35
|
+
}), w = c(() => e.type === t.SUBMIT ? e.label : void 0), N = c(() => {
|
|
36
36
|
switch (e.type) {
|
|
37
|
-
case
|
|
37
|
+
case t.SUBMIT:
|
|
38
38
|
return "input";
|
|
39
|
-
case
|
|
40
|
-
case
|
|
39
|
+
case t.BUTTON:
|
|
40
|
+
case t.FILE:
|
|
41
41
|
default:
|
|
42
42
|
return "button";
|
|
43
43
|
}
|
|
44
|
-
}), C = (
|
|
45
|
-
if (e.type ===
|
|
46
|
-
let
|
|
47
|
-
e.animate.target === "icon" && (
|
|
44
|
+
}), C = (o) => {
|
|
45
|
+
if (e.type === t.SUBMIT && o.preventDefault(), e.type === t.FILE && m.value?.click(), e.animate) {
|
|
46
|
+
let n = null;
|
|
47
|
+
e.animate.target === "icon" && (n = s.value?.reference), n && g.to(n, {
|
|
48
48
|
duration: 0.2,
|
|
49
49
|
...e.animate.animation,
|
|
50
50
|
ease: "power3.easeInOut",
|
|
51
51
|
onComplete: () => {
|
|
52
|
-
|
|
52
|
+
g.set(n, e.animate?.reset);
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
}, I = (
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
!
|
|
60
|
-
},
|
|
56
|
+
}, I = (o) => {
|
|
57
|
+
o.stopPropagation();
|
|
58
|
+
const l = o.target.files;
|
|
59
|
+
!l || !l.length || x("upload", l);
|
|
60
|
+
}, v = c(() => {
|
|
61
61
|
switch (e.size) {
|
|
62
|
-
case
|
|
62
|
+
case i.ExtraSmall:
|
|
63
63
|
return 12;
|
|
64
|
-
case
|
|
64
|
+
case i.Small:
|
|
65
65
|
return 16;
|
|
66
|
-
case
|
|
66
|
+
case i.Default:
|
|
67
67
|
return 20;
|
|
68
|
-
case
|
|
68
|
+
case i.Large:
|
|
69
69
|
return 24;
|
|
70
|
-
case
|
|
70
|
+
case i.ExtraLarge:
|
|
71
71
|
return 28;
|
|
72
72
|
default:
|
|
73
73
|
return 20;
|
|
74
74
|
}
|
|
75
|
-
})
|
|
76
|
-
return
|
|
77
|
-
const
|
|
78
|
-
return
|
|
79
|
-
type:
|
|
80
|
-
value:
|
|
75
|
+
});
|
|
76
|
+
return c(() => !!e.label || !!B.default), T({ iconReference: s }), (o, n) => {
|
|
77
|
+
const l = _("t-icon");
|
|
78
|
+
return p(), d(z(N.value), {
|
|
79
|
+
type: R.value,
|
|
80
|
+
value: w.value,
|
|
81
81
|
disabled: e.disabled,
|
|
82
82
|
class: D([{
|
|
83
83
|
// Size
|
|
84
|
-
"text-xs px-1 h-4": e.size === a(
|
|
85
|
-
"text-sm px-2 h-7": e.size === a(
|
|
86
|
-
"text-base px-3 h-9": e.size === a(
|
|
87
|
-
"text-lg px-3.5 h-12": e.size === a(
|
|
88
|
-
"text-xl px-4 h-14": e.size === a(
|
|
84
|
+
"text-xs px-1 h-4": e.size === a(i).ExtraSmall,
|
|
85
|
+
"text-sm px-2 h-7": e.size === a(i).Small,
|
|
86
|
+
"text-base px-3 h-9": e.size === a(i).Default,
|
|
87
|
+
"text-lg px-3.5 h-12": e.size === a(i).Large,
|
|
88
|
+
"text-xl px-4 h-14": e.size === a(i).ExtraLarge,
|
|
89
89
|
// Border
|
|
90
|
-
border: e.outline,
|
|
90
|
+
"border border-color": e.outline,
|
|
91
91
|
// Shape
|
|
92
|
-
"rounded-full": e.shape === a(
|
|
93
|
-
"input-roundness": e.shape === a(
|
|
92
|
+
"rounded-full": e.shape === a(f).Circle,
|
|
93
|
+
"input-roundness": e.shape === a(f).Rounded,
|
|
94
94
|
// Enabled/Disabled
|
|
95
|
-
"cursor-not-allowed
|
|
95
|
+
"cursor-not-allowed": e.disabled,
|
|
96
96
|
"cursor-pointer": !e.disabled,
|
|
97
|
+
// Bold
|
|
98
|
+
"font-bold": e.bold,
|
|
97
99
|
// Default color
|
|
98
100
|
"border-caipira-primary-inverted fill-caipira-primary-inverted": e.variant === a(r).DEFAULT,
|
|
99
101
|
"bg-transparent color-caipira-primary-inverted hover:bg-caipira-primary-inverted hover:color-caipira-primary hover:fill-white": e.variant === a(r).DEFAULT && e.outline,
|
|
@@ -118,45 +120,45 @@ const W = ["multiple"], V = /* @__PURE__ */ _({
|
|
|
118
120
|
"color-caipira-primary-inverted underline font-bold": e.variant === a(r).LINK,
|
|
119
121
|
// Transparent
|
|
120
122
|
"transparent-button": e.variant === a(r).TRANSPARENT,
|
|
121
|
-
"
|
|
122
|
-
}, "input-outline flex items-center select-none whitespace-nowrap"]),
|
|
123
|
+
"hover:bg-[var(--hover-color)]": e.variant === a(r).TRANSPARENT && e.hover
|
|
124
|
+
}, "input-outline inline-flex gap-1 items-center select-none whitespace-nowrap"]),
|
|
123
125
|
role: "button",
|
|
124
126
|
onClick: C
|
|
125
127
|
}, {
|
|
126
|
-
default:
|
|
127
|
-
|
|
128
|
-
e.icon ? (s(), y(p, F({
|
|
128
|
+
default: P(() => [
|
|
129
|
+
e.icon && e.iconPosition === "left" ? (p(), d(l, y({
|
|
129
130
|
key: 0,
|
|
130
131
|
ref_key: "iconReference",
|
|
131
|
-
ref:
|
|
132
|
-
size:
|
|
133
|
-
icon: e.icon
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
}, e.iconProps), null, 16, ["size", "icon", "class"])) : m("", !0),
|
|
142
|
-
e.label && e.type !== a(i).SUBMIT ? (s(), h(P, { key: 1 }, [
|
|
143
|
-
M(G(e.label), 1)
|
|
144
|
-
], 64)) : m("", !0),
|
|
145
|
-
e.type === "file" ? (s(), h("input", {
|
|
132
|
+
ref: s,
|
|
133
|
+
size: v.value,
|
|
134
|
+
icon: e.icon
|
|
135
|
+
}, e.iconProps), null, 16, ["size", "icon"])) : u("", !0),
|
|
136
|
+
k(o.$slots, "default"),
|
|
137
|
+
e.label && e.type !== a(t).SUBMIT ? (p(), h(L, { key: 1 }, [
|
|
138
|
+
F(M(e.label), 1)
|
|
139
|
+
], 64)) : u("", !0),
|
|
140
|
+
e.icon && e.iconPosition === "right" ? (p(), d(l, y({
|
|
146
141
|
key: 2,
|
|
142
|
+
ref_key: "iconReference",
|
|
143
|
+
ref: s,
|
|
144
|
+
size: v.value,
|
|
145
|
+
icon: e.icon
|
|
146
|
+
}, e.iconProps), null, 16, ["size", "icon"])) : u("", !0),
|
|
147
|
+
e.type === "file" ? (p(), h("input", {
|
|
148
|
+
key: 3,
|
|
147
149
|
multiple: e.multiple,
|
|
148
150
|
type: "file",
|
|
149
151
|
ref_key: "fileInput",
|
|
150
|
-
ref:
|
|
152
|
+
ref: m,
|
|
151
153
|
class: "hidden",
|
|
152
154
|
onChange: I
|
|
153
|
-
}, null, 40,
|
|
155
|
+
}, null, 40, G)) : u("", !0)
|
|
154
156
|
]),
|
|
155
157
|
_: 3
|
|
156
158
|
}, 8, ["type", "value", "disabled", "class"]);
|
|
157
159
|
};
|
|
158
160
|
}
|
|
159
|
-
})
|
|
161
|
+
});
|
|
160
162
|
export {
|
|
161
|
-
|
|
163
|
+
K as _
|
|
162
164
|
};
|
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-BDYxfzF6.js";
|
|
2
|
+
import { p as o } from "./plugin-CGE6W117.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-J-lhC9qd.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-C2QvF2xM.js";
|
|
2
|
+
import { p as a } from "./plugin-BShPzL82.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 m, computed as p, watch as h, openBlock as f, createElementBlock as d, normalizeClass as b, unref as o, normalizeStyle as k } from "vue";
|
|
2
|
-
import { a as t } from "./ui-
|
|
2
|
+
import { a as t } from "./ui-J-lhC9qd.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((r, e) => {
|
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-BuO105oW.js";
|
|
2
|
+
import { p as r } from "./plugin-DPAnsB4s.js";
|
|
3
3
|
export {
|
|
4
4
|
p as InputSelect,
|
|
5
5
|
r as InputSelectPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ue, mergeModels as O, useModel as ne, ref as d, computed as I, onBeforeMount as oe, watch as D, resolveComponent as k, openBlock as o, createBlock as z, normalizeClass as x, withCtx as R, createElementVNode as se, createVNode as K, createElementBlock as p, renderSlot as g, normalizeProps as _, mergeProps as M, Fragment as V, renderList as N, guardReactiveProps as U, toDisplayString as q, createCommentVNode as T, withDirectives as ie, vModelText as re, createSlots as ce, createTextVNode as pe, nextTick as de } from "vue";
|
|
2
|
-
import { a as fe, E as ve } from "./ui-
|
|
2
|
+
import { a as fe, E as ve } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const me = { key: 1 }, ye = ["placeholder", "disabled", "readonly"], he = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "inline-flex w-full justify-between items-center"
|
package/dist/Link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
|
|
2
|
+
import { p } from "./plugin-CEByTREY.js";
|
|
3
3
|
export {
|
|
4
4
|
i as Link,
|
|
5
5
|
p as LinkPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, computed as o, resolveComponent as u, openBlock as t, createBlock as r, resolveDynamicComponent as m, mergeProps as d, withCtx as f, renderSlot as _, createElementBlock as k, Fragment as y, createTextVNode as b, toDisplayString as g, createCommentVNode as h } from "vue";
|
|
2
|
-
import { L as a } from "./ui-
|
|
2
|
+
import { L as a } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const w = /* @__PURE__ */ p({
|
|
4
4
|
name: "TLink",
|
|
5
5
|
__name: "Link",
|
package/dist/Pagination.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as i } from "./Pagination.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as r } from "./plugin-
|
|
1
|
+
import { _ as i } from "./Pagination.vue_vue_type_script_setup_true_lang-BB6dLKpi.js";
|
|
2
|
+
import { p as r } from "./plugin-DxG6Hhao.js";
|
|
3
3
|
export {
|
|
4
4
|
i as Pagination,
|
|
5
5
|
r as PaginationPlugin
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent as w, mergeModels as C, useModel as y, ref as B, computed as i, resolveComponent as g, openBlock as r, createElementBlock as p, toDisplayString as x, createCommentVNode as m, createBlock as f, createElementVNode as L, createVNode as h, Fragment as M, renderList as S } from "vue";
|
|
2
|
+
const N = { class: "flex gap-6 items-center flex-wrap select-none" }, z = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "md:block hidden"
|
|
5
|
+
}, D = { class: "h-9 flex" }, F = /* @__PURE__ */ w({
|
|
6
|
+
name: "TPagination",
|
|
7
|
+
__name: "Pagination",
|
|
8
|
+
props: /* @__PURE__ */ C({
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
hasPageSize: { type: Boolean, default: !0 },
|
|
11
|
+
pageLengths: { default: () => [12, 18, 24, 30, 36, 42] },
|
|
12
|
+
showDescription: { type: Boolean, default: !1 }
|
|
13
|
+
}, {
|
|
14
|
+
modelValue: {
|
|
15
|
+
default: {
|
|
16
|
+
page: 1,
|
|
17
|
+
pages: 1,
|
|
18
|
+
perPage: 12
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
modelModifiers: {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(d) {
|
|
25
|
+
const v = d, e = y(d, "modelValue"), c = B(e.value.perPage ?? 12), b = i(() => e.value.page === 1), P = i(
|
|
26
|
+
() => e.value.page === e.value.pages
|
|
27
|
+
), k = i(() => {
|
|
28
|
+
const a = e.value.pages || 1, t = e.value.page || 1, n = [], s = Math.max(2, t - 2), l = Math.min(a - 1, t + 2);
|
|
29
|
+
a > 1 && n.push(1);
|
|
30
|
+
for (let o = s; o <= l; o++)
|
|
31
|
+
o > 1 && o < a && n.push(o);
|
|
32
|
+
return a > 1 && n.push(a), n;
|
|
33
|
+
}), _ = i(() => v.pageLengths.map((a) => ({
|
|
34
|
+
label: `${a} / page`,
|
|
35
|
+
value: a
|
|
36
|
+
}))), $ = i(() => {
|
|
37
|
+
if ("items" in e.value && "skip" in e.value && "items" in e.value) {
|
|
38
|
+
const a = e.value.skip + 1, t = e.value.skip + e.value.items, n = e.value.totalItems;
|
|
39
|
+
return `Showing ${a} to ${t} of ${n} entries`;
|
|
40
|
+
}
|
|
41
|
+
return `Page ${e.value.page} of ${e.value.pages}`;
|
|
42
|
+
}), u = (a) => {
|
|
43
|
+
a === e.value.page || a < 1 || a > e.value.pages || (e.value = {
|
|
44
|
+
...e.value,
|
|
45
|
+
page: a
|
|
46
|
+
});
|
|
47
|
+
}, V = (a) => {
|
|
48
|
+
a !== e.value.perPage && (e.value = {
|
|
49
|
+
...e.value,
|
|
50
|
+
perPage: a,
|
|
51
|
+
page: 1
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
return (a, t) => {
|
|
55
|
+
const n = g("t-input-select"), s = g("t-button");
|
|
56
|
+
return r(), p("div", N, [
|
|
57
|
+
a.showDescription ? (r(), p("div", z, x($.value), 1)) : m("", !0),
|
|
58
|
+
v.hasPageSize ? (r(), f(n, {
|
|
59
|
+
key: 1,
|
|
60
|
+
modelValue: c.value,
|
|
61
|
+
"onUpdate:modelValue": [
|
|
62
|
+
t[0] || (t[0] = (l) => c.value = l),
|
|
63
|
+
V
|
|
64
|
+
],
|
|
65
|
+
"width-class": "",
|
|
66
|
+
class: "w-fit min-w-32",
|
|
67
|
+
"dropdown-placement": "top",
|
|
68
|
+
disabled: a.disabled,
|
|
69
|
+
options: _.value
|
|
70
|
+
}, null, 8, ["modelValue", "disabled", "options"])) : m("", !0),
|
|
71
|
+
L("div", D, [
|
|
72
|
+
h(s, {
|
|
73
|
+
variant: "transparent",
|
|
74
|
+
label: "Prevous",
|
|
75
|
+
icon: "chevron-left",
|
|
76
|
+
hover: !0,
|
|
77
|
+
"disable-style": !0,
|
|
78
|
+
disabled: b.value,
|
|
79
|
+
onClick: t[1] || (t[1] = (l) => u(e.value.page - 1))
|
|
80
|
+
}, null, 8, ["disabled"]),
|
|
81
|
+
(r(!0), p(M, null, S(k.value, (l) => (r(), f(s, {
|
|
82
|
+
variant: "transparent",
|
|
83
|
+
hover: !0,
|
|
84
|
+
label: `${l}`,
|
|
85
|
+
outline: l === e.value.page,
|
|
86
|
+
bold: l === e.value.page,
|
|
87
|
+
disabled: l === e.value.page,
|
|
88
|
+
onClick: (o) => u(l)
|
|
89
|
+
}, null, 8, ["label", "outline", "bold", "disabled", "onClick"]))), 256)),
|
|
90
|
+
h(s, {
|
|
91
|
+
variant: "transparent",
|
|
92
|
+
label: "Next",
|
|
93
|
+
icon: "chevron-right",
|
|
94
|
+
"icon-position": "right",
|
|
95
|
+
hover: !0,
|
|
96
|
+
disabled: P.value,
|
|
97
|
+
onClick: t[2] || (t[2] = (l) => u(e.value.page + 1))
|
|
98
|
+
}, null, 8, ["disabled"])
|
|
99
|
+
])
|
|
100
|
+
]);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
export {
|
|
105
|
+
F as _
|
|
106
|
+
};
|
package/dist/Popconfirm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as m } from "./plugin-
|
|
1
|
+
import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js";
|
|
2
|
+
import { p as m } from "./plugin-2Cr_XUjp.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Popconfirm,
|
|
5
5
|
m as PopconfirmPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, ref as x, resolveComponent as l, openBlock as b, createBlock as g, withCtx as m, renderSlot as k, normalizeProps as y, guardReactiveProps as P, createElementVNode as t, createVNode as a, toDisplayString as w } from "vue";
|
|
2
|
-
import { E as z } from "./ui-
|
|
2
|
+
import { E as z } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const $ = { class: "text-sm mb-6 inline-flex items-center" }, B = { class: "color-text" }, E = { class: "flex justify-end gap-2" }, O = /* @__PURE__ */ C({
|
|
4
4
|
name: "TPopconfirm",
|
|
5
5
|
__name: "Popconfirm",
|
package/dist/Popover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as P } from "./plugin-
|
|
1
|
+
import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js";
|
|
2
|
+
import { p as P } from "./plugin-ColpxTKB.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Popover,
|
|
5
5
|
P as PopoverPlugin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as E, mergeModels as b, useModel as M, ref as r, computed as
|
|
1
|
+
import { defineComponent as E, mergeModels as b, useModel as M, ref as r, computed as c, onBeforeMount as P, onBeforeUnmount as _, openBlock as f, createElementBlock as d, renderSlot as m, normalizeProps as g, guardReactiveProps as v, normalizeStyle as z, unref as O, normalizeClass as R, createCommentVNode as T } from "vue";
|
|
2
2
|
import { u as x } from "./useDomHelpers-CGVrQd35.js";
|
|
3
|
-
import {
|
|
3
|
+
import { d as S, E as $ } from "./ui-J-lhC9qd.js";
|
|
4
4
|
import { o as L, s as W, a as U, u as j, b as A } from "./floating-ui.vue-B5QcGNjh.js";
|
|
5
5
|
let D = 0;
|
|
6
6
|
const K = /* @__PURE__ */ E({
|
|
@@ -18,7 +18,7 @@ const K = /* @__PURE__ */ E({
|
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:open"],
|
|
20
20
|
setup(s, { expose: C }) {
|
|
21
|
-
const t = M(s, "open"), n = s, a = `popover_${++D}`, l = r(), y =
|
|
21
|
+
const t = M(s, "open"), n = s, a = `popover_${++D}`, l = r(), y = c(() => n.placement), o = r(), { wasClickOutsideOfContainer: k } = x(), h = c(
|
|
22
22
|
() => o.value?.firstChild?.nextElementSibling
|
|
23
23
|
), w = r([
|
|
24
24
|
L(1),
|
|
@@ -26,9 +26,9 @@ const K = /* @__PURE__ */ E({
|
|
|
26
26
|
apply({ elements: e }) {
|
|
27
27
|
if (n.width === "static")
|
|
28
28
|
return;
|
|
29
|
-
const
|
|
29
|
+
const u = e.reference.getBoundingClientRect();
|
|
30
30
|
Object.assign(e.floating.style, {
|
|
31
|
-
minWidth: `${
|
|
31
|
+
minWidth: `${u.width}px`
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
}),
|
|
@@ -45,7 +45,7 @@ const K = /* @__PURE__ */ E({
|
|
|
45
45
|
document.addEventListener("click", p);
|
|
46
46
|
}), _(() => {
|
|
47
47
|
document.removeEventListener("click", p);
|
|
48
|
-
}), C({ name: a }), (e,
|
|
48
|
+
}), C({ name: a }), (e, u) => (f(), d("div", {
|
|
49
49
|
ref_key: "wrapperRef",
|
|
50
50
|
ref: o
|
|
51
51
|
}, [
|
package/dist/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-CKzb-As0.js";
|
|
2
|
+
import { p } from "./plugin-DJlVAL-g.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Tag,
|
|
5
5
|
p as TagPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, resolveComponent as m, openBlock as l, createElementBlock as r, normalizeStyle as k, normalizeClass as p, createElementVNode as v, renderSlot as z, unref as s, toDisplayString as g, createBlock as u, withCtx as h, createVNode as B, createCommentVNode as S } from "vue";
|
|
2
|
-
import { a as o } from "./ui-
|
|
2
|
+
import { a as o } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const b = ["role"], E = { class: "px-2" }, $ = { key: 0 }, N = /* @__PURE__ */ _({
|
|
4
4
|
name: "TTag",
|
|
5
5
|
__name: "Tag",
|
package/dist/Toast.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Toast.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Toast.vue_vue_type_script_setup_true_lang-DcVS4Iyg.js";
|
|
2
|
+
import { p as t } from "./plugin-BdTrCTL4.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Toast,
|
|
5
5
|
t as ToastPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, resolveComponent as x, openBlock as g, createElementBlock as f, normalizeClass as a, unref as _, createVNode as r, createElementVNode as C, toDisplayString as w } from "vue";
|
|
2
|
-
import { E, T as t } from "./ui-
|
|
2
|
+
import { E, T as t } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const N = { class: "whitespace-nowrap overflow-x-hidden text-ellipsis max-w-2xl" }, v = /* @__PURE__ */ d({
|
|
4
4
|
name: "TToast",
|
|
5
5
|
__name: "Toast",
|
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as e } from "./Avatar.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as e } from "./Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js";
|
|
2
2
|
import { _ as a } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as s } from "./Button.vue_vue_type_script_setup_true_lang-CUPz7wT9.js";
|
|
4
4
|
import { _ as f } from "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
5
5
|
import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-CLi_IXfP.js";
|
|
6
6
|
import { D as u } from "./Drawer-Cl9_4uHA.js";
|
|
@@ -10,11 +10,11 @@ import { _ as T } from "./Form.vue_vue_type_script_setup_true_lang-CNGNCak7.js";
|
|
|
10
10
|
import { _ as C } from "./FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js";
|
|
11
11
|
import { _ as b } from "./GraphyEmpty.vue_vue_type_script_setup_true_lang-B-hAjDCw.js";
|
|
12
12
|
import { _ as G } from "./GraphyLabel.vue_vue_type_script_setup_true_lang-DIKuG0Po.js";
|
|
13
|
-
import { _ as g } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { _ as g } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
|
|
14
14
|
import { _ as v } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DsBHn2gS.js";
|
|
15
15
|
import { _ as F } from "./GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js";
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
16
|
+
import { _ as M } from "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
|
|
17
|
+
import { _ as B } from "./InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js";
|
|
18
18
|
import { _ as R } from "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js";
|
|
19
19
|
import { _ as q } from "./InputCryptoCurrency.vue_vue_type_script_setup_true_lang-BIUT5eCh.js";
|
|
20
20
|
import { _ as H } from "./InputColor.vue_vue_type_script_setup_true_lang-DT-MAgI2.js";
|
|
@@ -25,24 +25,24 @@ import { _ as W } from "./InputPhone.vue_vue_type_script_setup_true_lang-B4TULqL
|
|
|
25
25
|
import { _ as Y } from "./InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js";
|
|
26
26
|
import { _ as $ } from "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
|
|
27
27
|
import "vue";
|
|
28
|
-
import { _ as or } from "./InputSelect.vue_vue_type_script_setup_true_lang-
|
|
28
|
+
import { _ as or } from "./InputSelect.vue_vue_type_script_setup_true_lang-BuO105oW.js";
|
|
29
29
|
import { _ as er } from "./InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js";
|
|
30
30
|
import { _ as ar } from "./InputText.vue_vue_type_script_setup_true_lang-JLAlUE_2.js";
|
|
31
31
|
import { _ as sr } from "./InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js";
|
|
32
|
-
import { _ as fr } from "./Link.vue_vue_type_script_setup_true_lang-
|
|
32
|
+
import { _ as fr } from "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
|
|
33
33
|
import { _ as nr } from "./Modal.vue_vue_type_script_setup_true_lang-DiUI27HX.js";
|
|
34
34
|
import { _ as ur } from "./ModalForm.vue_vue_type_script_setup_true_lang-RfK0Mn81.js";
|
|
35
|
-
import { _ as lr } from "./Pagination.vue_vue_type_script_setup_true_lang-
|
|
36
|
-
import { _ as cr } from "./Popconfirm.vue_vue_type_script_setup_true_lang-
|
|
37
|
-
import { _ as Tr } from "./Popover.vue_vue_type_script_setup_true_lang-
|
|
35
|
+
import { _ as lr } from "./Pagination.vue_vue_type_script_setup_true_lang-BB6dLKpi.js";
|
|
36
|
+
import { _ as cr } from "./Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js";
|
|
37
|
+
import { _ as Tr } from "./Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js";
|
|
38
38
|
import { P as Cr } from "./ProgressCircle-Cpmi2CpO.js";
|
|
39
39
|
import { P as br } from "./ProgressLine-CTS0VOAI.js";
|
|
40
40
|
import { _ as Gr } from "./SensitiveInfo.vue_vue_type_script_setup_true_lang-D288W5VF.js";
|
|
41
41
|
import { _ as gr } from "./Skeleton.vue_vue_type_script_setup_true_lang-WahY1vGW.js";
|
|
42
42
|
import { _ as vr } from "./Tab.vue_vue_type_script_setup_true_lang-6bgS8FOw.js";
|
|
43
43
|
import { T as Fr } from "./Table-vjjmPzlZ.js";
|
|
44
|
-
import { _ as
|
|
45
|
-
import { _ as
|
|
44
|
+
import { _ as Mr } from "./Tag.vue_vue_type_script_setup_true_lang-CKzb-As0.js";
|
|
45
|
+
import { _ as Br } from "./Toast.vue_vue_type_script_setup_true_lang-DcVS4Iyg.js";
|
|
46
46
|
export {
|
|
47
47
|
e as Avatar,
|
|
48
48
|
a as Backdrop,
|
|
@@ -59,8 +59,8 @@ export {
|
|
|
59
59
|
g as GraphyPrice,
|
|
60
60
|
v as GraphySubtitle,
|
|
61
61
|
F as GraphyTitle,
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
M as Icon,
|
|
63
|
+
B as InputAvatar,
|
|
64
64
|
R as InputCheckbox,
|
|
65
65
|
H as InputColor,
|
|
66
66
|
q as InputCryptoCurrency,
|
|
@@ -86,6 +86,6 @@ export {
|
|
|
86
86
|
gr as Skeleton,
|
|
87
87
|
vr as Tab,
|
|
88
88
|
Fr as Table,
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
Mr as Tag,
|
|
90
|
+
Br as Toast
|
|
91
91
|
};
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as s } from "./Popconfirm.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "./Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as s } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as s } from "./InputSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "./InputSelect.vue_vue_type_script_setup_true_lang-BuO105oW.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as s } from "./Pagination.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "./Pagination.vue_vue_type_script_setup_true_lang-BB6dLKpi.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./Avatar.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import "./Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js";
|
|
2
|
+
import { p } from "./plugin-DNwjBl_u.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import { p as i } from "./plugin-C-iGigb_.js";
|
|
5
|
-
import "./Button-
|
|
6
|
-
import { p as r } from "./plugin-
|
|
5
|
+
import "./Button.vue_vue_type_script_setup_true_lang-CUPz7wT9.js";
|
|
6
|
+
import { p as r } from "./plugin-Cr3oXX-8.js";
|
|
7
7
|
import "./transform-DSaNEFMr.js";
|
|
8
8
|
import "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
9
9
|
import { p as o } from "./plugin-DDXOF4cU.js";
|
|
@@ -17,12 +17,12 @@ import { p as t } from "./plugin-BuU0zOfE.js";
|
|
|
17
17
|
import { p as g } from "./plugin-CvohbpUQ.js";
|
|
18
18
|
import { p as a } from "./plugin-Buc7eEox.js";
|
|
19
19
|
import { p as s } from "./plugin-CC97Vx-s.js";
|
|
20
|
-
import "./GraphyPrice.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { p as P } from "./plugin-
|
|
20
|
+
import "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
|
|
21
|
+
import { p as P } from "./plugin-CGE6W117.js";
|
|
22
22
|
import { p as f } from "./plugin-F3dxY_wr.js";
|
|
23
23
|
import { p as e } from "./plugin-DOeDaXWj.js";
|
|
24
|
-
import "./Icon.vue_vue_type_script_setup_true_lang-
|
|
25
|
-
import { p as $ } from "./plugin-
|
|
24
|
+
import "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
|
|
25
|
+
import { p as $ } from "./plugin-BShPzL82.js";
|
|
26
26
|
import { p as I } from "./plugin--F5QK2vy.js";
|
|
27
27
|
import "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js";
|
|
28
28
|
import { p as c } from "./plugin-BVJKxqmv.js";
|
|
@@ -35,20 +35,20 @@ import { p as C } from "./plugin-CrHDShgh.js";
|
|
|
35
35
|
import { p as S } from "./plugin-RM2wZuwL.js";
|
|
36
36
|
import "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
|
|
37
37
|
import { p as v } from "./plugin-Do2-cqMT.js";
|
|
38
|
-
import "./InputSelect.vue_vue_type_script_setup_true_lang-
|
|
39
|
-
import { p as G } from "./plugin-
|
|
38
|
+
import "./InputSelect.vue_vue_type_script_setup_true_lang-BuO105oW.js";
|
|
39
|
+
import { p as G } from "./plugin-DPAnsB4s.js";
|
|
40
40
|
import { p as k } from "./plugin-B63n9_uc.js";
|
|
41
41
|
import { p as w } from "./plugin-lYDlOt8p.js";
|
|
42
42
|
import { p as x } from "./plugin-C8Z-XgLn.js";
|
|
43
|
-
import "./Link.vue_vue_type_script_setup_true_lang-
|
|
44
|
-
import { p as D } from "./plugin-
|
|
43
|
+
import "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
|
|
44
|
+
import { p as D } from "./plugin-CEByTREY.js";
|
|
45
45
|
import { p as F } from "./plugin-dX-bbpm5.js";
|
|
46
46
|
import { p as L } from "./plugin-DNXazWwT.js";
|
|
47
|
-
import { p as M } from "./plugin-
|
|
48
|
-
import "./Popconfirm.vue_vue_type_script_setup_true_lang-
|
|
49
|
-
import { p as _ } from "./plugin-
|
|
50
|
-
import "./Popover.vue_vue_type_script_setup_true_lang-
|
|
51
|
-
import { p as j } from "./plugin-
|
|
47
|
+
import { p as M } from "./plugin-DxG6Hhao.js";
|
|
48
|
+
import "./Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js";
|
|
49
|
+
import { p as _ } from "./plugin-2Cr_XUjp.js";
|
|
50
|
+
import "./Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js";
|
|
51
|
+
import { p as j } from "./plugin-ColpxTKB.js";
|
|
52
52
|
import "./ProgressCircle-Cpmi2CpO.js";
|
|
53
53
|
import { p as A } from "./plugin-MAzqwXys.js";
|
|
54
54
|
import "./ProgressLine-CTS0VOAI.js";
|
|
@@ -58,9 +58,9 @@ import { p as E } from "./plugin-C1kAmMfE.js";
|
|
|
58
58
|
import { p as O } from "./plugin-wVt0wQNv.js";
|
|
59
59
|
import "./Table-vjjmPzlZ.js";
|
|
60
60
|
import { p as q } from "./plugin-6KewRQ9w.js";
|
|
61
|
-
import "./Tag.vue_vue_type_script_setup_true_lang-
|
|
62
|
-
import { p as H } from "./plugin-
|
|
63
|
-
import { p as R } from "./plugin-
|
|
61
|
+
import "./Tag.vue_vue_type_script_setup_true_lang-CKzb-As0.js";
|
|
62
|
+
import { p as H } from "./plugin-DJlVAL-g.js";
|
|
63
|
+
import { p as R } from "./plugin-BdTrCTL4.js";
|
|
64
64
|
const Zp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
65
|
__proto__: null,
|
|
66
66
|
AvatarPlugin: p,
|
package/dist/plugins.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./Avatar.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as C } from "./plugin-
|
|
1
|
+
import "./Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js";
|
|
2
|
+
import { p as C } from "./plugin-DNwjBl_u.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import { p as b } from "./plugin-C-iGigb_.js";
|
|
5
|
-
import "./Button-
|
|
6
|
-
import { p as S } from "./plugin-
|
|
5
|
+
import "./Button.vue_vue_type_script_setup_true_lang-CUPz7wT9.js";
|
|
6
|
+
import { p as S } from "./plugin-Cr3oXX-8.js";
|
|
7
7
|
import "./transform-DSaNEFMr.js";
|
|
8
8
|
import "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
9
9
|
import { p as v } from "./plugin-DDXOF4cU.js";
|
|
@@ -17,12 +17,12 @@ import { p as j } from "./plugin-BuU0zOfE.js";
|
|
|
17
17
|
import { p as z } from "./plugin-CvohbpUQ.js";
|
|
18
18
|
import { p as J } from "./plugin-Buc7eEox.js";
|
|
19
19
|
import { p as N } from "./plugin-CC97Vx-s.js";
|
|
20
|
-
import "./GraphyPrice.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { p as Q } from "./plugin-
|
|
20
|
+
import "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
|
|
21
|
+
import { p as Q } from "./plugin-CGE6W117.js";
|
|
22
22
|
import { p as V } from "./plugin-F3dxY_wr.js";
|
|
23
23
|
import { p as X } from "./plugin-DOeDaXWj.js";
|
|
24
|
-
import "./Icon.vue_vue_type_script_setup_true_lang-
|
|
25
|
-
import { p as Z } from "./plugin-
|
|
24
|
+
import "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
|
|
25
|
+
import { p as Z } from "./plugin-BShPzL82.js";
|
|
26
26
|
import { p as $ } from "./plugin--F5QK2vy.js";
|
|
27
27
|
import "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js";
|
|
28
28
|
import { p as or } from "./plugin-BVJKxqmv.js";
|
|
@@ -35,20 +35,20 @@ import { p as gr } from "./plugin-CrHDShgh.js";
|
|
|
35
35
|
import { p as fr } from "./plugin-RM2wZuwL.js";
|
|
36
36
|
import "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
|
|
37
37
|
import { p as cr } from "./plugin-Do2-cqMT.js";
|
|
38
|
-
import "./InputSelect.vue_vue_type_script_setup_true_lang-
|
|
39
|
-
import { p as yr } from "./plugin-
|
|
38
|
+
import "./InputSelect.vue_vue_type_script_setup_true_lang-BuO105oW.js";
|
|
39
|
+
import { p as yr } from "./plugin-DPAnsB4s.js";
|
|
40
40
|
import { p as Cr } from "./plugin-B63n9_uc.js";
|
|
41
41
|
import { p as br } from "./plugin-lYDlOt8p.js";
|
|
42
42
|
import { p as Sr } from "./plugin-C8Z-XgLn.js";
|
|
43
|
-
import "./Link.vue_vue_type_script_setup_true_lang-
|
|
44
|
-
import { p as vr } from "./plugin-
|
|
43
|
+
import "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
|
|
44
|
+
import { p as vr } from "./plugin-CEByTREY.js";
|
|
45
45
|
import { p as Dr } from "./plugin-dX-bbpm5.js";
|
|
46
46
|
import { p as Lr } from "./plugin-DNXazWwT.js";
|
|
47
|
-
import { p as Ar } from "./plugin-
|
|
48
|
-
import "./Popconfirm.vue_vue_type_script_setup_true_lang-
|
|
49
|
-
import { p as Er } from "./plugin-
|
|
50
|
-
import "./Popover.vue_vue_type_script_setup_true_lang-
|
|
51
|
-
import { p as jr } from "./plugin-
|
|
47
|
+
import { p as Ar } from "./plugin-DxG6Hhao.js";
|
|
48
|
+
import "./Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js";
|
|
49
|
+
import { p as Er } from "./plugin-2Cr_XUjp.js";
|
|
50
|
+
import "./Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js";
|
|
51
|
+
import { p as jr } from "./plugin-ColpxTKB.js";
|
|
52
52
|
import "./ProgressCircle-Cpmi2CpO.js";
|
|
53
53
|
import { p as zr } from "./plugin-MAzqwXys.js";
|
|
54
54
|
import "./ProgressLine-CTS0VOAI.js";
|
|
@@ -58,9 +58,9 @@ import { p as Qr } from "./plugin-C1kAmMfE.js";
|
|
|
58
58
|
import { p as Vr } from "./plugin-wVt0wQNv.js";
|
|
59
59
|
import "./Table-vjjmPzlZ.js";
|
|
60
60
|
import { p as Xr } from "./plugin-6KewRQ9w.js";
|
|
61
|
-
import "./Tag.vue_vue_type_script_setup_true_lang-
|
|
62
|
-
import { p as Zr } from "./plugin-
|
|
63
|
-
import { p as $r } from "./plugin-
|
|
61
|
+
import "./Tag.vue_vue_type_script_setup_true_lang-CKzb-As0.js";
|
|
62
|
+
import { p as Zr } from "./plugin-DJlVAL-g.js";
|
|
63
|
+
import { p as $r } from "./plugin-BdTrCTL4.js";
|
|
64
64
|
export {
|
|
65
65
|
C as AvatarPlugin,
|
|
66
66
|
b as BackdropPlugin,
|
package/dist/tamandua.js
CHANGED
|
@@ -5,17 +5,19 @@ declare function __VLS_template(): {
|
|
|
5
5
|
default?(_: {}): any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ButtonProps>, {
|
|
8
|
+
bold: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
hover: boolean;
|
|
8
11
|
href: string;
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
iconPosition: string;
|
|
13
|
+
iconProps: () => {};
|
|
11
14
|
label: string;
|
|
15
|
+
multiple: boolean;
|
|
16
|
+
outline: boolean;
|
|
12
17
|
shape: ElementShape;
|
|
13
|
-
|
|
18
|
+
size: ElementSize;
|
|
19
|
+
type: ButtonType;
|
|
14
20
|
variant: ButtonVariant;
|
|
15
|
-
outline: boolean;
|
|
16
|
-
multiple: boolean;
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
iconProps: () => {};
|
|
19
21
|
}>, {
|
|
20
22
|
iconReference: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
21
23
|
icon: {
|
|
@@ -77,17 +79,19 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
77
79
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
78
80
|
upload: (val: FileList) => void;
|
|
79
81
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ButtonProps>, {
|
|
82
|
+
bold: boolean;
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
hover: boolean;
|
|
80
85
|
href: string;
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
iconPosition: string;
|
|
87
|
+
iconProps: () => {};
|
|
83
88
|
label: string;
|
|
89
|
+
multiple: boolean;
|
|
90
|
+
outline: boolean;
|
|
84
91
|
shape: ElementShape;
|
|
85
|
-
|
|
92
|
+
size: ElementSize;
|
|
93
|
+
type: ButtonType;
|
|
86
94
|
variant: ButtonVariant;
|
|
87
|
-
outline: boolean;
|
|
88
|
-
multiple: boolean;
|
|
89
|
-
disabled: boolean;
|
|
90
|
-
iconProps: () => {};
|
|
91
95
|
}>>> & {
|
|
92
96
|
onUpload?: ((val: FileList) => any) | undefined;
|
|
93
97
|
}, {
|
|
@@ -95,14 +99,16 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
95
99
|
size: `${ElementSize}`;
|
|
96
100
|
shape: `${ElementShape}`;
|
|
97
101
|
type: `${ButtonType}`;
|
|
102
|
+
bold: boolean;
|
|
98
103
|
label: string;
|
|
99
|
-
variant: `${ButtonVariant}`;
|
|
100
|
-
outline: boolean;
|
|
101
|
-
multiple: boolean;
|
|
102
104
|
disabled: boolean;
|
|
105
|
+
iconPosition: "left" | "right";
|
|
103
106
|
iconProps: Partial<import("../types.js").IconProps> & {
|
|
104
107
|
class?: string;
|
|
105
108
|
};
|
|
109
|
+
multiple: boolean;
|
|
110
|
+
outline: boolean;
|
|
111
|
+
variant: `${ButtonVariant}`;
|
|
106
112
|
}, {}>;
|
|
107
113
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
108
114
|
export default _default;
|
|
@@ -2,25 +2,27 @@ import { Icon, ButtonType, ElementSize, ElementShape, ButtonVariant } from '../.
|
|
|
2
2
|
import { IconProps } from '../Icon/types.js';
|
|
3
3
|
|
|
4
4
|
export type ButtonProps = {
|
|
5
|
-
icon?: `${Icon}`;
|
|
6
|
-
type?: `${ButtonType}`;
|
|
7
|
-
size?: `${ElementSize}`;
|
|
8
|
-
label?: string;
|
|
9
|
-
shape?: `${ElementShape}`;
|
|
10
|
-
hover?: boolean;
|
|
11
|
-
variant?: `${ButtonVariant}`;
|
|
12
|
-
outline?: boolean;
|
|
13
|
-
multiple?: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
iconProps?: Partial<IconProps> & {
|
|
16
|
-
class?: string;
|
|
17
|
-
};
|
|
18
5
|
animate?: {
|
|
19
6
|
target: "icon";
|
|
20
7
|
trigger: "click";
|
|
21
8
|
animation: object;
|
|
22
9
|
reset: object;
|
|
23
10
|
};
|
|
11
|
+
bold?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
hover?: boolean;
|
|
14
|
+
icon?: `${Icon}`;
|
|
15
|
+
iconPosition?: "left" | "right";
|
|
16
|
+
iconProps?: Partial<IconProps> & {
|
|
17
|
+
class?: string;
|
|
18
|
+
};
|
|
19
|
+
label?: string;
|
|
20
|
+
multiple?: boolean;
|
|
21
|
+
outline?: boolean;
|
|
22
|
+
shape?: `${ElementShape}`;
|
|
23
|
+
size?: `${ElementSize}`;
|
|
24
|
+
type?: `${ButtonType}`;
|
|
25
|
+
variant?: `${ButtonVariant}`;
|
|
24
26
|
};
|
|
25
27
|
export type ButtonEvents = {
|
|
26
28
|
(e: "upload", val: FileList): void;
|
|
@@ -44,12 +44,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
44
44
|
type: import("vue").PropType<ElementSize>;
|
|
45
45
|
default: ElementSize;
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
disabled: {
|
|
48
48
|
type: import("vue").PropType<boolean>;
|
|
49
|
-
default: boolean;
|
|
50
49
|
};
|
|
51
|
-
|
|
50
|
+
multiple: {
|
|
52
51
|
type: import("vue").PropType<boolean>;
|
|
52
|
+
default: boolean;
|
|
53
53
|
};
|
|
54
54
|
options: {
|
|
55
55
|
type: import("vue").PropType<InputSelectOption[]>;
|
|
@@ -108,12 +108,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
108
108
|
type: import("vue").PropType<ElementSize>;
|
|
109
109
|
default: ElementSize;
|
|
110
110
|
};
|
|
111
|
-
|
|
111
|
+
disabled: {
|
|
112
112
|
type: import("vue").PropType<boolean>;
|
|
113
|
-
default: boolean;
|
|
114
113
|
};
|
|
115
|
-
|
|
114
|
+
multiple: {
|
|
116
115
|
type: import("vue").PropType<boolean>;
|
|
116
|
+
default: boolean;
|
|
117
117
|
};
|
|
118
118
|
options: {
|
|
119
119
|
type: import("vue").PropType<InputSelectOption[]>;
|
package/package.json
CHANGED
package/dist/Button.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.transparent-hover[data-v-ad1f5bfc]:hover{background-color:rgb(from var(--caipira-primary) r g b / 45%)}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, mergeModels as V, useModel as x, ref as z, computed as o, resolveComponent as h, openBlock as i, createElementBlock as d, toDisplayString as B, createCommentVNode as b, createElementVNode as L, createVNode as y, normalizeClass as p, Fragment as M, renderList as S, createBlock as P } from "vue";
|
|
2
|
-
const D = { class: "flex gap-2 items-center flex-wrap select-none" }, N = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "md:block hidden"
|
|
5
|
-
}, E = { class: "h-9 flex" }, T = /* @__PURE__ */ C({
|
|
6
|
-
name: "TPagination",
|
|
7
|
-
__name: "Pagination",
|
|
8
|
-
props: /* @__PURE__ */ V({
|
|
9
|
-
disabled: { type: Boolean, default: !1 },
|
|
10
|
-
hasPageSize: { type: Boolean, default: !0 },
|
|
11
|
-
pageLengths: { default: () => [12, 18, 24, 30, 36, 42] },
|
|
12
|
-
showDescription: { type: Boolean, default: !1 }
|
|
13
|
-
}, {
|
|
14
|
-
modelValue: {
|
|
15
|
-
default: {
|
|
16
|
-
page: 1,
|
|
17
|
-
pages: 1,
|
|
18
|
-
perPage: 12
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
modelModifiers: {}
|
|
22
|
-
}),
|
|
23
|
-
emits: ["update:modelValue"],
|
|
24
|
-
setup(c) {
|
|
25
|
-
const v = c, e = x(c, "modelValue"), m = z(e.value.perPage ?? 12), g = o(() => e.value.page === 1), f = o(
|
|
26
|
-
() => e.value.page === e.value.pages
|
|
27
|
-
), k = o(() => {
|
|
28
|
-
const a = e.value.pages || 1, t = e.value.page || 1, l = [], u = Math.max(2, t - 2), s = Math.min(a - 1, t + 2);
|
|
29
|
-
a > 1 && l.push(1);
|
|
30
|
-
for (let n = u; n <= s; n++)
|
|
31
|
-
n > 1 && n < a && l.push(n);
|
|
32
|
-
return a > 1 && l.push(a), l;
|
|
33
|
-
}), w = o(() => v.pageLengths.map((a) => ({
|
|
34
|
-
label: `${a} / page`,
|
|
35
|
-
value: a
|
|
36
|
-
}))), _ = o(() => {
|
|
37
|
-
if ("items" in e.value && "skip" in e.value && "items" in e.value) {
|
|
38
|
-
const a = e.value.skip + 1, t = e.value.skip + e.value.items, l = e.value.totalItems;
|
|
39
|
-
return `Showing ${a} to ${t} of ${l} entries`;
|
|
40
|
-
}
|
|
41
|
-
return `Page ${e.value.page} of ${e.value.pages}`;
|
|
42
|
-
}), r = (a) => {
|
|
43
|
-
a === e.value.page || a < 1 || a > e.value.pages || (e.value = {
|
|
44
|
-
...e.value,
|
|
45
|
-
page: a
|
|
46
|
-
});
|
|
47
|
-
}, $ = (a) => {
|
|
48
|
-
a !== e.value.perPage && (e.value = {
|
|
49
|
-
...e.value,
|
|
50
|
-
perPage: a,
|
|
51
|
-
page: 1
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
return (a, t) => {
|
|
55
|
-
const l = h("t-button"), u = h("t-input-select");
|
|
56
|
-
return i(), d("div", D, [
|
|
57
|
-
a.showDescription ? (i(), d("div", N, B(_.value), 1)) : b("", !0),
|
|
58
|
-
L("div", E, [
|
|
59
|
-
y(l, {
|
|
60
|
-
size: "sm",
|
|
61
|
-
variant: "primary",
|
|
62
|
-
"disable-style": !0,
|
|
63
|
-
class: p(["h-9 px-2 input-roundness rounded-r-none", { "opacity-50 cursor-not-allowed": g.value }]),
|
|
64
|
-
icon: "chevron-left",
|
|
65
|
-
disabled: g.value,
|
|
66
|
-
onClick: t[0] || (t[0] = (s) => r(e.value.page - 1))
|
|
67
|
-
}, null, 8, ["class", "disabled"]),
|
|
68
|
-
(i(!0), d(M, null, S(k.value, (s) => (i(), P(l, {
|
|
69
|
-
"disable-style": !0,
|
|
70
|
-
label: `${s}`,
|
|
71
|
-
disabled: s === e.value.page,
|
|
72
|
-
class: p([{
|
|
73
|
-
"opacity-50 cursor-not-allowed": s === e.value.page
|
|
74
|
-
}, "h-9 px-2 rounded-none"]),
|
|
75
|
-
size: "sm",
|
|
76
|
-
variant: "primary",
|
|
77
|
-
onClick: (n) => r(s)
|
|
78
|
-
}, null, 8, ["label", "disabled", "class", "onClick"]))), 256)),
|
|
79
|
-
y(l, {
|
|
80
|
-
size: "sm",
|
|
81
|
-
variant: "primary",
|
|
82
|
-
"disable-style": !0,
|
|
83
|
-
class: p(["h-9 px-2 input-roundness rounded-l-none", { "opacity-50 cursor-not-allowed": f.value }]),
|
|
84
|
-
icon: "chevron-right",
|
|
85
|
-
disabled: f.value,
|
|
86
|
-
onClick: t[1] || (t[1] = (s) => r(e.value.page + 1))
|
|
87
|
-
}, null, 8, ["class", "disabled"])
|
|
88
|
-
]),
|
|
89
|
-
v.hasPageSize ? (i(), P(u, {
|
|
90
|
-
key: 1,
|
|
91
|
-
modelValue: m.value,
|
|
92
|
-
"onUpdate:modelValue": [
|
|
93
|
-
t[2] || (t[2] = (s) => m.value = s),
|
|
94
|
-
$
|
|
95
|
-
],
|
|
96
|
-
"width-class": "",
|
|
97
|
-
class: "w-fit min-w-32",
|
|
98
|
-
"dropdown-placement": "top",
|
|
99
|
-
disabled: a.disabled,
|
|
100
|
-
options: w.value
|
|
101
|
-
}, null, 8, ["modelValue", "disabled", "options"])) : b("", !0)
|
|
102
|
-
]);
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
export {
|
|
107
|
-
T as _
|
|
108
|
-
};
|