@caipira/tamandua 0.0.66 → 0.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Backdrop.js +2 -2
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js +22 -0
- package/dist/Button.js +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-CUPz7wT9.js → Button.vue_vue_type_script_setup_true_lang-DW0Q2Ut2.js} +29 -29
- package/dist/ChartLine.css +1 -1
- package/dist/{Drawer-Cl9_4uHA.js → Drawer-y5xBARd2.js} +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/Dropdown.js +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-DeY4vid5.js → Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js} +24 -24
- package/dist/FileDrop.js +2 -2
- package/dist/{FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js → FileDrop.vue_vue_type_script_setup_true_lang-Bq0lAgZ7.js} +1 -1
- package/dist/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js → InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js} +4 -4
- package/dist/InputDate.js +2 -2
- package/dist/{InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.js → InputDate.vue_vue_type_script_setup_true_lang-BUEAELkk.js} +2 -2
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-BMChy2_E.js → InputPassword.vue_vue_type_script_setup_true_lang-ChHDOnS8.js} +35 -35
- package/dist/InputPrice.js +2 -2
- package/dist/{InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js → InputPrice.vue_vue_type_script_setup_true_lang-9UZ7YqAf.js} +12 -12
- package/dist/InputRadio.js +2 -2
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js +35 -0
- package/dist/InputSelect.js +2 -2
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js +232 -0
- package/dist/InputSwitch.js +2 -2
- package/dist/{InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js → InputSwitch.vue_vue_type_script_setup_true_lang-BVGfQFZh.js} +10 -9
- package/dist/Modal.js +2 -2
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DiUI27HX.js → Modal.vue_vue_type_script_setup_true_lang-BvUk8ebI.js} +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-BCQUrEVO.js +110 -0
- package/dist/Popover-Bq_SpOWb.js +73 -0
- package/dist/Popover.css +1 -0
- package/dist/Popover.js +2 -2
- package/dist/{ProgressCircle-Cpmi2CpO.js → ProgressCircle-C5CnEEoe.js} +14 -14
- package/dist/ProgressCircle.css +1 -1
- package/dist/ProgressCircle.js +2 -2
- package/dist/{ProgressLine-CTS0VOAI.js → ProgressLine-BqINh5jh.js} +13 -13
- package/dist/ProgressLine.css +1 -1
- package/dist/ProgressLine.js +2 -2
- package/dist/Skeleton.js +2 -2
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-Dsy_4Ftz.js +18 -0
- package/dist/Tab.js +2 -2
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-6bgS8FOw.js → Tab.vue_vue_type_script_setup_true_lang-OuqLqd04.js} +16 -16
- package/dist/components.js +19 -19
- package/dist/index.css +62 -41
- package/dist/{plugin-BJyDH94F.js → plugin-3Ql4s0Jh.js} +1 -1
- package/dist/{plugin-CJ6sqqaI.js → plugin-43q0Kzto.js} +1 -1
- package/dist/{plugin-C-iGigb_.js → plugin-AU2qI2I9.js} +1 -1
- package/dist/{plugin-MAzqwXys.js → plugin-CV6IjnsL.js} +1 -1
- package/dist/{plugin-Cr3oXX-8.js → plugin-CV_fI920.js} +1 -1
- package/dist/{plugin-RM2wZuwL.js → plugin-Co9LymNO.js} +1 -1
- package/dist/{plugin-DrKx8l8j.js → plugin-CzRCyET3.js} +1 -1
- package/dist/{plugin-wVt0wQNv.js → plugin-DBDBJ5_6.js} +1 -1
- package/dist/{plugin-BVJKxqmv.js → plugin-DIj5ypE6.js} +1 -1
- package/dist/{plugin-CZ2rAHjJ.js → plugin-DMGSStZm.js} +1 -1
- package/dist/{plugin-DPAnsB4s.js → plugin-DNJyBcDk.js} +1 -1
- package/dist/{plugin-Ch67LOIy.js → plugin-DSHWwE9A.js} +1 -1
- package/dist/{plugin-Do2-cqMT.js → plugin-DXPEO1fb.js} +1 -1
- package/dist/{plugin-C1kAmMfE.js → plugin-DYHfPgzY.js} +1 -1
- package/dist/{plugin-CNwzCYlr.js → plugin-JMSzJgz5.js} +1 -1
- package/dist/plugin-RTst32IC.js +10 -0
- package/dist/{plugin-B63n9_uc.js → plugin-hQ-aWPlo.js} +1 -1
- package/dist/{plugin-DxG6Hhao.js → plugin-jyvJNavM.js} +1 -1
- package/dist/{plugin-dX-bbpm5.js → plugin-n_PnyR3n.js} +1 -1
- package/dist/{plugins-BFVTdy-_.js → plugins-CEGTMSZE.js} +27 -27
- package/dist/plugins.js +27 -27
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Pagination/Pagination.vue.d.ts +9 -0
- package/dist/types/components/Pagination/types.d.ts +1 -0
- package/dist/types/components/Skeleton/Skeleton.vue.d.ts +29 -7
- package/dist/types/components/Skeleton/types.d.ts +4 -1
- package/package.json +1 -1
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js +0 -22
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js +0 -35
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-BuO105oW.js +0 -227
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-BB6dLKpi.js +0 -106
- package/dist/Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js +0 -71
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-WahY1vGW.js +0 -11
- package/dist/plugin-ColpxTKB.js +0 -10
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
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
|
-
import { u as x } from "./useDomHelpers-CGVrQd35.js";
|
|
3
|
-
import { d as S, E as $ } from "./ui-J-lhC9qd.js";
|
|
4
|
-
import { o as L, s as W, a as U, u as j, b as A } from "./floating-ui.vue-B5QcGNjh.js";
|
|
5
|
-
let D = 0;
|
|
6
|
-
const K = /* @__PURE__ */ E({
|
|
7
|
-
name: "TPopover",
|
|
8
|
-
__name: "Popover",
|
|
9
|
-
props: /* @__PURE__ */ b({
|
|
10
|
-
trigger: { default: S.CLICK },
|
|
11
|
-
disabled: { type: Boolean, default: !1 },
|
|
12
|
-
placement: { default: $.BOTTOM },
|
|
13
|
-
slotWrapperClasses: { default: "rounded-lg" },
|
|
14
|
-
width: { default: "auto" }
|
|
15
|
-
}, {
|
|
16
|
-
open: { type: Boolean, default: !1 },
|
|
17
|
-
openModifiers: {}
|
|
18
|
-
}),
|
|
19
|
-
emits: ["update:open"],
|
|
20
|
-
setup(s, { expose: C }) {
|
|
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
|
-
() => o.value?.firstChild?.nextElementSibling
|
|
23
|
-
), w = r([
|
|
24
|
-
L(1),
|
|
25
|
-
W({
|
|
26
|
-
apply({ elements: e }) {
|
|
27
|
-
if (n.width === "static")
|
|
28
|
-
return;
|
|
29
|
-
const u = e.reference.getBoundingClientRect();
|
|
30
|
-
Object.assign(e.floating.style, {
|
|
31
|
-
minWidth: `${u.width}px`
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}),
|
|
35
|
-
U({ crossAxis: !0 })
|
|
36
|
-
]), { floatingStyles: B } = j(h, l, {
|
|
37
|
-
open: t,
|
|
38
|
-
placement: y,
|
|
39
|
-
middleware: w,
|
|
40
|
-
whileElementsMounted: A
|
|
41
|
-
}), i = (e = !t.value) => {
|
|
42
|
-
t.value = e;
|
|
43
|
-
}, p = (e) => t.value && o.value && k(e, o.value) ? (t.value = !1, !1) : !0;
|
|
44
|
-
return P(() => {
|
|
45
|
-
document.addEventListener("click", p);
|
|
46
|
-
}), _(() => {
|
|
47
|
-
document.removeEventListener("click", p);
|
|
48
|
-
}), C({ name: a }), (e, u) => (f(), d("div", {
|
|
49
|
-
ref_key: "wrapperRef",
|
|
50
|
-
ref: o
|
|
51
|
-
}, [
|
|
52
|
-
m(e.$slots, "default", g(v({ onTogglePopover: i }))),
|
|
53
|
-
t.value ? (f(), d("div", {
|
|
54
|
-
key: 0,
|
|
55
|
-
ref_key: "floating",
|
|
56
|
-
ref: l,
|
|
57
|
-
role: "tooltip",
|
|
58
|
-
id: a,
|
|
59
|
-
style: z(O(B)),
|
|
60
|
-
class: R(["bg-caipira-primary z-10", {
|
|
61
|
-
[n.slotWrapperClasses]: !0
|
|
62
|
-
}])
|
|
63
|
-
}, [
|
|
64
|
-
m(e.$slots, "content", g(v({ onTogglePopover: i })))
|
|
65
|
-
], 6)) : T("", !0)
|
|
66
|
-
], 512));
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
K as _
|
|
71
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, openBlock as n, createElementBlock as t } from "vue";
|
|
2
|
-
const o = { class: "animate-pulse h-4 bg-gray-100 my-1 mx-2 dark:bg-neutral-800 rounded-sm" }, _ = /* @__PURE__ */ e({
|
|
3
|
-
name: "TSkeleton",
|
|
4
|
-
__name: "Skeleton",
|
|
5
|
-
setup(r) {
|
|
6
|
-
return (a, m) => (n(), t("div", o));
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
_
|
|
11
|
-
};
|