comand-component-library 4.2.61 → 4.2.62
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.
|
@@ -11163,6 +11163,9 @@ const Xi = /* @__PURE__ */ P(Up, [["render", Gp]]), Kp = {
|
|
|
11163
11163
|
}
|
|
11164
11164
|
},
|
|
11165
11165
|
computed: {
|
|
11166
|
+
pageHasError() {
|
|
11167
|
+
return this.pagesWithError.some((e) => e.page === this.currentPage);
|
|
11168
|
+
},
|
|
11166
11169
|
errorSteps() {
|
|
11167
11170
|
const e = [];
|
|
11168
11171
|
return this.pagesWithError.find((t) => {
|
|
@@ -11240,7 +11243,7 @@ function Jp(e, t, n, s, i, l) {
|
|
|
11240
11243
|
setPrevPage: l.setPrevPage,
|
|
11241
11244
|
setNextPage: l.setNextPage,
|
|
11242
11245
|
disabledPrevLink: i.currentPage === 1,
|
|
11243
|
-
disabledNextLink: i.currentPage === l.numberOfPages
|
|
11246
|
+
disabledNextLink: i.currentPage === l.numberOfPages || l.pageHasError
|
|
11244
11247
|
}, () => [
|
|
11245
11248
|
n.cmdPagination.show ? (a(), v(c, L({
|
|
11246
11249
|
key: 0,
|
|
@@ -21414,7 +21417,7 @@ const qx = /* @__PURE__ */ P(Ex, [["render", Hx]]), Rx = [
|
|
|
21414
21417
|
text: "Zimbabwe",
|
|
21415
21418
|
value: "zw"
|
|
21416
21419
|
}
|
|
21417
|
-
], n1 = "comand-component-library", i1 = "4.2.
|
|
21420
|
+
], n1 = "comand-component-library", i1 = "4.2.62", l1 = "GPL-3.0-only", o1 = "CoManD-UI", a1 = "module", s1 = {
|
|
21418
21421
|
prepublishOnly: "npm run build-lib",
|
|
21419
21422
|
dev: "vite",
|
|
21420
21423
|
build: "vite build",
|
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
:setPrevPage="setPrevPage"
|
|
29
29
|
:setNextPage="setNextPage"
|
|
30
30
|
:disabledPrevLink="currentPage === 1"
|
|
31
|
-
:disabledNextLink="currentPage === numberOfPages"
|
|
31
|
+
:disabledNextLink="currentPage === numberOfPages || pageHasError"
|
|
32
32
|
>
|
|
33
33
|
<CmdPagination
|
|
34
34
|
v-if="cmdPagination.show"
|
|
@@ -133,6 +133,11 @@ export default {
|
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
computed: {
|
|
136
|
+
pageHasError() {
|
|
137
|
+
return this.pagesWithError.some((item) => {
|
|
138
|
+
return item.page === this.currentPage
|
|
139
|
+
})
|
|
140
|
+
},
|
|
136
141
|
errorSteps() {
|
|
137
142
|
const steps = []
|
|
138
143
|
this.pagesWithError.find((item) => {
|