comand-component-library 4.2.60 → 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) => {
|
|
@@ -11228,13 +11231,6 @@ function Jp(e, t, n, s, i, l) {
|
|
|
11228
11231
|
systemMessage: l.getSystemMessage(f),
|
|
11229
11232
|
validationStatus: "error"
|
|
11230
11233
|
}, null, 8, ["systemMessage"])) : m("", !0),
|
|
11231
|
-
F(" page: " + y(f), 1),
|
|
11232
|
-
t[2] || (t[2] = o("br", null, null, -1)),
|
|
11233
|
-
F(" index: " + y(h), 1),
|
|
11234
|
-
t[3] || (t[3] = o("br", null, null, -1)),
|
|
11235
|
-
F(" currentPage: " + y(i.currentPage), 1),
|
|
11236
|
-
t[4] || (t[4] = o("br", null, null, -1)),
|
|
11237
|
-
F(" errorSteps: " + y(l.errorSteps) + " ", 1),
|
|
11238
11234
|
V(e.$slots, "page-" + f, {
|
|
11239
11235
|
setErrorOnPage: (g) => l.setErrorOnPage(f, g),
|
|
11240
11236
|
removeErrorOnPage: () => l.removeErrorOnPage(f)
|
|
@@ -11247,7 +11243,7 @@ function Jp(e, t, n, s, i, l) {
|
|
|
11247
11243
|
setPrevPage: l.setPrevPage,
|
|
11248
11244
|
setNextPage: l.setNextPage,
|
|
11249
11245
|
disabledPrevLink: i.currentPage === 1,
|
|
11250
|
-
disabledNextLink: i.currentPage === l.numberOfPages
|
|
11246
|
+
disabledNextLink: i.currentPage === l.numberOfPages || l.pageHasError
|
|
11251
11247
|
}, () => [
|
|
11252
11248
|
n.cmdPagination.show ? (a(), v(c, L({
|
|
11253
11249
|
key: 0,
|
|
@@ -21421,7 +21417,7 @@ const qx = /* @__PURE__ */ P(Ex, [["render", Hx]]), Rx = [
|
|
|
21421
21417
|
text: "Zimbabwe",
|
|
21422
21418
|
value: "zw"
|
|
21423
21419
|
}
|
|
21424
|
-
], 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 = {
|
|
21425
21421
|
prepublishOnly: "npm run build-lib",
|
|
21426
21422
|
dev: "vite",
|
|
21427
21423
|
build: "vite build",
|
package/package.json
CHANGED
|
@@ -16,11 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
<div v-show="page === currentPage" :class="'multistep-page-' + page" v-for="(page, index) in numberOfPages" :key="index">
|
|
18
18
|
<CmdSystemMessage v-if="pagesWithError.some(item => item.page === page)" :systemMessage="getSystemMessage(page)" validationStatus="error" />
|
|
19
|
-
page: {{ page }}<br />
|
|
20
|
-
index: {{ index }}<br />
|
|
21
|
-
currentPage: {{ currentPage }}<br />
|
|
22
|
-
errorSteps: {{ errorSteps }}
|
|
23
|
-
|
|
24
19
|
<!-- begin slot for page content -->
|
|
25
20
|
<slot :name="'page-' + page" :setErrorOnPage="(message) => setErrorOnPage(page, message)" :removeErrorOnPage="() => removeErrorOnPage(page)">
|
|
26
21
|
</slot>
|
|
@@ -33,7 +28,7 @@
|
|
|
33
28
|
:setPrevPage="setPrevPage"
|
|
34
29
|
:setNextPage="setNextPage"
|
|
35
30
|
:disabledPrevLink="currentPage === 1"
|
|
36
|
-
:disabledNextLink="currentPage === numberOfPages"
|
|
31
|
+
:disabledNextLink="currentPage === numberOfPages || pageHasError"
|
|
37
32
|
>
|
|
38
33
|
<CmdPagination
|
|
39
34
|
v-if="cmdPagination.show"
|
|
@@ -138,6 +133,11 @@ export default {
|
|
|
138
133
|
}
|
|
139
134
|
},
|
|
140
135
|
computed: {
|
|
136
|
+
pageHasError() {
|
|
137
|
+
return this.pagesWithError.some((item) => {
|
|
138
|
+
return item.page === this.currentPage
|
|
139
|
+
})
|
|
140
|
+
},
|
|
141
141
|
errorSteps() {
|
|
142
142
|
const steps = []
|
|
143
143
|
this.pagesWithError.find((item) => {
|