edvoyui-component-library-test-flight 0.0.8 → 0.0.9
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.
|
@@ -20767,13 +20767,13 @@ const Xo = /* @__PURE__ */ Zt(J_, [["render", tk]]), nk = { class: "inline-flex
|
|
|
20767
20767
|
},
|
|
20768
20768
|
emits: ["changePage"],
|
|
20769
20769
|
setup(e, { emit: n }) {
|
|
20770
|
-
const t = e, a = n, i = Q(() => t.activePage), s = Q(() => Math.ceil(t.totalCount / t.pageLimit)), u = () => {
|
|
20770
|
+
const t = e, a = n, i = Q(() => t.activePage + 1), s = Q(() => t.pageLimit > 0 ? Math.ceil(t.totalCount / t.pageLimit) : 1), u = () => {
|
|
20771
20771
|
if (t.activePage > 0) {
|
|
20772
20772
|
const m = t.activePage - 1;
|
|
20773
20773
|
f(m);
|
|
20774
20774
|
}
|
|
20775
20775
|
}, c = () => {
|
|
20776
|
-
if (t.activePage < s.value) {
|
|
20776
|
+
if (t.activePage < s.value - 1) {
|
|
20777
20777
|
const m = t.activePage + 1;
|
|
20778
20778
|
f(m);
|
|
20779
20779
|
}
|
|
@@ -21062,7 +21062,7 @@ const mk = /* @__PURE__ */ Zt(pk, [["render", vk]]), gk = { class: "whitespace-n
|
|
|
21062
21062
|
const ue = U.value === "desc" ? -1 : 1;
|
|
21063
21063
|
return le[M.value] < C[M.value] ? -1 * ue : le[M.value] > C[M.value] ? 1 * ue : 0;
|
|
21064
21064
|
});
|
|
21065
|
-
const ce = (W.value -
|
|
21065
|
+
const ce = (W.value - 0) * N.value, I = ce + N.value;
|
|
21066
21066
|
return z.slice(ce, I);
|
|
21067
21067
|
}), F = (z) => {
|
|
21068
21068
|
console.log(z);
|
|
@@ -21096,7 +21096,7 @@ const mk = /* @__PURE__ */ Zt(pk, [["render", vk]]), gk = { class: "whitespace-n
|
|
|
21096
21096
|
), X = n, Y = (z) => {
|
|
21097
21097
|
N.value = z, W.value = 1, X("update:currentPage", W.value), X("changeLimit", z);
|
|
21098
21098
|
}, ie = (z) => {
|
|
21099
|
-
W.value = z > 0 ? z :
|
|
21099
|
+
W.value = z > 0 ? z : 0, X("update:currentPage", W.value), X("changePage", z);
|
|
21100
21100
|
}, Oe = (z, ce) => {
|
|
21101
21101
|
!z || !z.sortable || (z.value === M.value && (U.value = U.value === "asc" ? "desc" : "asc"), M.value = z.value, X("sort", M.value, U.value, ce));
|
|
21102
21102
|
}, de = () => {
|
|
@@ -21267,7 +21267,7 @@ const mk = /* @__PURE__ */ Zt(pk, [["render", vk]]), gk = { class: "whitespace-n
|
|
|
21267
21267
|
])
|
|
21268
21268
|
]));
|
|
21269
21269
|
}
|
|
21270
|
-
}), FC = /* @__PURE__ */ Zt(Ik, [["__scopeId", "data-v-
|
|
21270
|
+
}), FC = /* @__PURE__ */ Zt(Ik, [["__scopeId", "data-v-41d15283"]]), Rk = { class: "inline-flex flex-row items-center overflow-hidden gap-x-1" }, Lk = ["disabled"], Nk = ["onClick"], Bk = ["disabled"], Fk = /* @__PURE__ */ je({
|
|
21271
21271
|
__name: "EUIStudentPagination",
|
|
21272
21272
|
props: {
|
|
21273
21273
|
totalCount: {
|
|
@@ -21298,13 +21298,13 @@ const mk = /* @__PURE__ */ Zt(pk, [["render", vk]]), gk = { class: "whitespace-n
|
|
|
21298
21298
|
},
|
|
21299
21299
|
emits: ["changePage"],
|
|
21300
21300
|
setup(e, { emit: n }) {
|
|
21301
|
-
const t = e, a = n, i = Q(() => t.activePage), s = Q(() => Math.ceil(t.totalCount / t.pageLimit)), u = () => {
|
|
21301
|
+
const t = e, a = n, i = Q(() => t.activePage + 1), s = Q(() => t.pageLimit > 0 ? Math.ceil(t.totalCount / t.pageLimit) : 1), u = () => {
|
|
21302
21302
|
if (t.activePage > 0) {
|
|
21303
21303
|
const m = t.activePage - 1;
|
|
21304
21304
|
f(m);
|
|
21305
21305
|
}
|
|
21306
21306
|
}, c = () => {
|
|
21307
|
-
if (t.activePage < s.value) {
|
|
21307
|
+
if (t.activePage < s.value - 1) {
|
|
21308
21308
|
const m = t.activePage + 1;
|
|
21309
21309
|
f(m);
|
|
21310
21310
|
}
|
|
@@ -21457,7 +21457,7 @@ const mk = /* @__PURE__ */ Zt(pk, [["render", vk]]), gk = { class: "whitespace-n
|
|
|
21457
21457
|
const C = U.value === "desc" ? -1 : 1;
|
|
21458
21458
|
return I[M.value] < le[M.value] ? -1 * C : I[M.value] > le[M.value] ? 1 * C : 0;
|
|
21459
21459
|
});
|
|
21460
|
-
const z = (W.value -
|
|
21460
|
+
const z = (W.value - 0) * N.value, ce = z + N.value;
|
|
21461
21461
|
return q.slice(z, ce);
|
|
21462
21462
|
}), F = (q) => {
|
|
21463
21463
|
console.log(q);
|
|
@@ -21491,7 +21491,7 @@ const mk = /* @__PURE__ */ Zt(pk, [["render", vk]]), gk = { class: "whitespace-n
|
|
|
21491
21491
|
), V = n, X = (q) => {
|
|
21492
21492
|
N.value = q, W.value = 1, V("update:currentPage", W.value), V("changeLimit", q);
|
|
21493
21493
|
}, Y = (q) => {
|
|
21494
|
-
W.value = q > 0 ? q :
|
|
21494
|
+
W.value = q > 0 ? q : 0, V("update:currentPage", W.value), V("changePage", q);
|
|
21495
21495
|
}, ie = (q, z) => {
|
|
21496
21496
|
!q || !q.sortable || (q.value === M.value && (U.value = U.value === "asc" ? "desc" : "asc"), M.value = q.value, V("sort", M.value, U.value, z));
|
|
21497
21497
|
}, Oe = () => {
|
|
@@ -21674,7 +21674,7 @@ const mk = /* @__PURE__ */ Zt(pk, [["render", vk]]), gk = { class: "whitespace-n
|
|
|
21674
21674
|
])
|
|
21675
21675
|
]));
|
|
21676
21676
|
}
|
|
21677
|
-
}), VC = /* @__PURE__ */ Zt(aC, [["__scopeId", "data-v-
|
|
21677
|
+
}), VC = /* @__PURE__ */ Zt(aC, [["__scopeId", "data-v-b4295859"]]);
|
|
21678
21678
|
var oC = {}, iC = { class: "flex flex-col items-center justify-center gap-4 size-72 mx-auto" };
|
|
21679
21679
|
function lC(e, n) {
|
|
21680
21680
|
return x(), A("div", iC, n[0] || (n[0] = [
|