@caipira/tamandua 0.0.50 → 0.0.51
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/Pagination.js +2 -2
- package/dist/{Pagination.vue_vue_type_script_setup_true_lang-CrsaPQHf.js → Pagination.vue_vue_type_script_setup_true_lang-BJO_aOJk.js} +16 -15
- package/dist/components.js +1 -1
- package/dist/{plugin-43qPVkHg.js → plugin-Da5BWlyX.js} +1 -1
- package/dist/{plugins-D9rFe9qY.js → plugins-BjwvJoNS.js} +1 -1
- package/dist/plugins.js +1 -1
- package/dist/tamandua.js +1 -1
- package/package.json +1 -1
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-BJO_aOJk.js";
|
|
2
|
+
import { p as r } from "./plugin-Da5BWlyX.js";
|
|
3
3
|
export {
|
|
4
4
|
i as Pagination,
|
|
5
5
|
r as PaginationPlugin
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as B, computed as s, watch as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as B, computed as s, watch as S, resolveComponent as h, openBlock as p, createElementBlock as g, toDisplayString as V, createCommentVNode as v, createElementVNode as _, createVNode as b, normalizeClass as d, Fragment as L, renderList as N, createBlock as y } from "vue";
|
|
2
|
+
const O = { class: "flex gap-2 items-center flex-wrap" }, D = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "md:block hidden"
|
|
5
|
-
},
|
|
5
|
+
}, I = { class: "h-9 flex" }, E = /* @__PURE__ */ B({
|
|
6
6
|
name: "TPagination",
|
|
7
7
|
__name: "Pagination",
|
|
8
8
|
props: {
|
|
@@ -13,8 +13,8 @@ const I = { class: "flex gap-2 items-center flex-wrap" }, N = {
|
|
|
13
13
|
showDescription: { type: Boolean, default: !1 }
|
|
14
14
|
},
|
|
15
15
|
emits: ["updated"],
|
|
16
|
-
setup(
|
|
17
|
-
const e =
|
|
16
|
+
setup(P, { emit: k }) {
|
|
17
|
+
const e = P, u = k, c = s(() => e.pagination.page === 1), m = s(
|
|
18
18
|
() => e.pagination.page === e.pagination.pages
|
|
19
19
|
), w = s(() => {
|
|
20
20
|
const a = e.pagination.pages || 1, n = e.pagination.page || 1, t = [], r = Math.max(2, n - 2), i = Math.min(a - 1, n + 2);
|
|
@@ -36,7 +36,7 @@ const I = { class: "flex gap-2 items-center flex-wrap" }, N = {
|
|
|
36
36
|
...e.pagination,
|
|
37
37
|
page: a
|
|
38
38
|
};
|
|
39
|
-
"perPage" in e.pagination && "skip" in e.pagination && "totalItems" in e.pagination && (n.skip = a > 1 ? (a - 1) * e.pagination.perPage : 0, n.items = e.pagination.perPage ? e.pagination.perPage : e.pagination.totalItems - n.skip), Object.assign(e.pagination, n), u("updated", e.pagination);
|
|
39
|
+
"perPage" in e.pagination && "skip" in e.pagination && "totalItems" in e.pagination && (n.skip = a > 1 ? (a - 1) * e.pagination.perPage : 0, n.items = e.pagination.perPage ? e.pagination.perPage : e.pagination.totalItems - n.skip), JSON.stringify(e.pagination) !== JSON.stringify(n) && (Object.assign(e.pagination, n), u("updated", e.pagination));
|
|
40
40
|
}, l = (a) => {
|
|
41
41
|
a === e.pagination.page || a < 1 || a > e.pagination.pages || f(a);
|
|
42
42
|
}, z = (a) => {
|
|
@@ -46,15 +46,15 @@ const I = { class: "flex gap-2 items-center flex-wrap" }, N = {
|
|
|
46
46
|
page: 1
|
|
47
47
|
}), u("updated", e.pagination);
|
|
48
48
|
};
|
|
49
|
-
return
|
|
49
|
+
return S(
|
|
50
50
|
() => e.pagination,
|
|
51
51
|
() => f(),
|
|
52
52
|
{ deep: !0, immediate: !0 }
|
|
53
53
|
), (a, n) => {
|
|
54
54
|
const t = h("t-button"), r = h("t-input-select");
|
|
55
|
-
return p(), g("div",
|
|
56
|
-
a.showDescription ? (p(), g("div",
|
|
57
|
-
|
|
55
|
+
return p(), g("div", O, [
|
|
56
|
+
a.showDescription ? (p(), g("div", D, V(C.value), 1)) : v("", !0),
|
|
57
|
+
_("div", I, [
|
|
58
58
|
b(t, {
|
|
59
59
|
size: "sm",
|
|
60
60
|
variant: "primary",
|
|
@@ -64,7 +64,7 @@ const I = { class: "flex gap-2 items-center flex-wrap" }, N = {
|
|
|
64
64
|
disabled: c.value,
|
|
65
65
|
onClick: n[0] || (n[0] = (i) => l(a.pagination.page - 1))
|
|
66
66
|
}, null, 8, ["class", "disabled"]),
|
|
67
|
-
(p(!0), g(
|
|
67
|
+
(p(!0), g(L, null, N(w.value, (i) => (p(), y(t, {
|
|
68
68
|
"disable-style": !0,
|
|
69
69
|
label: `${i}`,
|
|
70
70
|
disabled: i === a.pagination.page,
|
|
@@ -85,17 +85,18 @@ const I = { class: "flex gap-2 items-center flex-wrap" }, N = {
|
|
|
85
85
|
onClick: n[1] || (n[1] = (i) => l(a.pagination.page + 1))
|
|
86
86
|
}, null, 8, ["class", "disabled"])
|
|
87
87
|
]),
|
|
88
|
-
e.hasPageSize ? (p(),
|
|
88
|
+
e.hasPageSize ? (p(), y(r, {
|
|
89
89
|
key: 1,
|
|
90
90
|
modelValue: a.pagination.perPage,
|
|
91
91
|
"onUpdate:modelValue": [
|
|
92
92
|
n[2] || (n[2] = (i) => a.pagination.perPage = i),
|
|
93
93
|
z
|
|
94
94
|
],
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
"width-class": "",
|
|
96
|
+
class: "w-fit min-w-32",
|
|
97
97
|
"dropdown-placement": "top",
|
|
98
|
-
|
|
98
|
+
disabled: a.disabled,
|
|
99
|
+
options: $.value
|
|
99
100
|
}, null, 8, ["modelValue", "disabled", "options"])) : v("", !0)
|
|
100
101
|
]);
|
|
101
102
|
};
|
package/dist/components.js
CHANGED
|
@@ -32,7 +32,7 @@ import { _ as sr } from "./InputTextarea.vue_vue_type_script_setup_true_lang-DRo
|
|
|
32
32
|
import { _ as fr } from "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
|
|
33
33
|
import { _ as nr } from "./Modal.vue_vue_type_script_setup_true_lang-CEaX1svl.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-
|
|
35
|
+
import { _ as lr } from "./Pagination.vue_vue_type_script_setup_true_lang-BJO_aOJk.js";
|
|
36
36
|
import { _ as cr } from "./Popconfirm.vue_vue_type_script_setup_true_lang-XyjBUx0p.js";
|
|
37
37
|
import { _ as Tr } from "./Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js";
|
|
38
38
|
import { P as Cr } from "./ProgressCircle-Cpmi2CpO.js";
|
|
@@ -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-BJO_aOJk.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|
|
@@ -44,7 +44,7 @@ import "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
|
|
|
44
44
|
import { p as D } from "./plugin-DHstqRmE.js";
|
|
45
45
|
import { p as F } from "./plugin-DKjcKBPg.js";
|
|
46
46
|
import { p as L } from "./plugin-DNXazWwT.js";
|
|
47
|
-
import { p as M } from "./plugin-
|
|
47
|
+
import { p as M } from "./plugin-Da5BWlyX.js";
|
|
48
48
|
import "./Popconfirm.vue_vue_type_script_setup_true_lang-XyjBUx0p.js";
|
|
49
49
|
import { p as _ } from "./plugin-Ee4Z5Rtp.js";
|
|
50
50
|
import "./Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js";
|
package/dist/plugins.js
CHANGED
|
@@ -44,7 +44,7 @@ import "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
|
|
|
44
44
|
import { p as vr } from "./plugin-DHstqRmE.js";
|
|
45
45
|
import { p as Dr } from "./plugin-DKjcKBPg.js";
|
|
46
46
|
import { p as Lr } from "./plugin-DNXazWwT.js";
|
|
47
|
-
import { p as Ar } from "./plugin-
|
|
47
|
+
import { p as Ar } from "./plugin-Da5BWlyX.js";
|
|
48
48
|
import "./Popconfirm.vue_vue_type_script_setup_true_lang-XyjBUx0p.js";
|
|
49
49
|
import { p as Er } from "./plugin-Ee4Z5Rtp.js";
|
|
50
50
|
import "./Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js";
|
package/dist/tamandua.js
CHANGED