@point-hub/papp 0.0.21 → 0.0.22
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/index.js +10 -7
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2792,23 +2792,27 @@ const au = { class: "dropdown-trigger-button" }, ou = /* @__PURE__ */ q({
|
|
|
2792
2792
|
a("update:modelValue", g);
|
|
2793
2793
|
},
|
|
2794
2794
|
get: () => n.modelValue
|
|
2795
|
-
}), o =
|
|
2795
|
+
}), o = C({
|
|
2796
|
+
set: () => {
|
|
2797
|
+
},
|
|
2798
|
+
get: () => Math.ceil(n.totalDocument / n.pageSize)
|
|
2799
|
+
}), i = (g) => {
|
|
2796
2800
|
r.value = g;
|
|
2797
2801
|
}, l = () => {
|
|
2798
2802
|
r.value = 1;
|
|
2799
2803
|
}, s = () => {
|
|
2800
2804
|
r.value > 1 && (r.value -= 1);
|
|
2801
2805
|
}, d = () => {
|
|
2802
|
-
r.value < o && (r.value += 1);
|
|
2806
|
+
r.value < o.value && (r.value += 1);
|
|
2803
2807
|
}, u = () => {
|
|
2804
|
-
r.value = o;
|
|
2808
|
+
r.value = o.value;
|
|
2805
2809
|
}, m = (g) => {
|
|
2806
|
-
if (!(n.maxButton % 2) && r.value + Math.floor(n.maxButton / 2) >= g && r.value - Math.floor(n.maxButton / 2) < g || n.maxButton % 2 && r.value + Math.floor(n.maxButton / 2) >= g && r.value - Math.floor(n.maxButton / 2) <= g || g <= n.maxButton && r.value < Math.ceil(n.maxButton / 2) || g > o - n.maxButton && r.value > o - Math.floor(n.maxButton / 2))
|
|
2810
|
+
if (!(n.maxButton % 2) && r.value + Math.floor(n.maxButton / 2) >= g && r.value - Math.floor(n.maxButton / 2) < g || n.maxButton % 2 && r.value + Math.floor(n.maxButton / 2) >= g && r.value - Math.floor(n.maxButton / 2) <= g || g <= n.maxButton && r.value < Math.ceil(n.maxButton / 2) || g > o.value - n.maxButton && r.value > o.value - Math.floor(n.maxButton / 2))
|
|
2807
2811
|
return !0;
|
|
2808
2812
|
};
|
|
2809
2813
|
return (g, b) => {
|
|
2810
2814
|
const f = Ne("base-icon");
|
|
2811
|
-
return
|
|
2815
|
+
return o.value > 1 ? (S(), V("div", vu, [
|
|
2812
2816
|
k("div", null, [
|
|
2813
2817
|
k("p", mu, " Showing " + se(1 + (r.value - 1) * g.pageSize) + " to " + se(r.value * g.pageSize > g.totalDocument ? g.totalDocument : r.value * g.pageSize) + " of " + se(g.totalDocument) + " entries ", 1)
|
|
2814
2818
|
]),
|
|
@@ -2833,7 +2837,7 @@ const au = { class: "dropdown-trigger-button" }, ou = /* @__PURE__ */ q({
|
|
|
2833
2837
|
]),
|
|
2834
2838
|
_: 1
|
|
2835
2839
|
})),
|
|
2836
|
-
(S(!0), V(ke, null, Ge(
|
|
2840
|
+
(S(!0), V(ke, null, Ge(o.value, (c) => (S(), V(ke, { key: c }, [
|
|
2837
2841
|
m(c) ? (S(), Q(de(_e), {
|
|
2838
2842
|
key: 0,
|
|
2839
2843
|
type: "button",
|
|
@@ -9003,7 +9007,6 @@ const mv = (e) => typeof e == "string" ? JSON.parse(e) : e, hv = (e) => typeof e
|
|
|
9003
9007
|
}, e.value.onclose = (c) => {
|
|
9004
9008
|
o.value = 0, t.value === !1 && setTimeout(d, r.value);
|
|
9005
9009
|
}, e.value.onerror = (c) => {
|
|
9006
|
-
console.log(c);
|
|
9007
9010
|
};
|
|
9008
9011
|
};
|
|
9009
9012
|
function m() {
|