comand-component-library 4.2.59 → 4.2.60
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.
|
@@ -4856,7 +4856,7 @@ function Qr(e, t, n, s, i, l) {
|
|
|
4856
4856
|
inputElements: f.inputElements
|
|
4857
4857
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "labelText", "inputElements"])) : m("", !0)
|
|
4858
4858
|
], 64))), 128)),
|
|
4859
|
-
l.submitButtonOptions && (l.submitButtonOptions.position === "insideFieldset" || l.submitButtonOptions.position === null) ? (a(), r("div", jr, [
|
|
4859
|
+
l.submitButtonOptions.show && (l.submitButtonOptions.position === "insideFieldset" || l.submitButtonOptions.position === null) ? (a(), r("div", jr, [
|
|
4860
4860
|
n.mandatoryText ? (a(), r("small", Nr, [
|
|
4861
4861
|
t[3] || (t[3] = o("sup", null, "*", -1)),
|
|
4862
4862
|
F(y(n.mandatoryText), 1)
|
|
@@ -4885,7 +4885,7 @@ function Qr(e, t, n, s, i, l) {
|
|
|
4885
4885
|
], 10, zr)
|
|
4886
4886
|
])) : m("", !0)
|
|
4887
4887
|
]),
|
|
4888
|
-
l.submitButtonOptions && l.submitButtonOptions.position === "belowFieldset" ? (a(), r("div", Gr, [
|
|
4888
|
+
l.submitButtonOptions.show && l.submitButtonOptions.position === "belowFieldset" ? (a(), r("div", Gr, [
|
|
4889
4889
|
n.mandatoryText ? (a(), r("small", Kr, [
|
|
4890
4890
|
t[4] || (t[4] = o("sup", null, "*", -1)),
|
|
4891
4891
|
F(y(n.mandatoryText), 1)
|
|
@@ -11148,8 +11148,9 @@ const Xi = /* @__PURE__ */ P(Up, [["render", Gp]]), Kp = {
|
|
|
11148
11148
|
setErrorOnPage(e, t) {
|
|
11149
11149
|
this.pagesWithError.some((s) => s.page === e) || this.pagesWithError.push({ page: e, message: t });
|
|
11150
11150
|
},
|
|
11151
|
-
removeErrorOnPage() {
|
|
11152
|
-
this.pagesWithError
|
|
11151
|
+
removeErrorOnPage(e) {
|
|
11152
|
+
const t = this.pagesWithError.findIndex((n) => n.page === e);
|
|
11153
|
+
t !== -1 && this.pagesWithError.splice(t, 1);
|
|
11153
11154
|
},
|
|
11154
11155
|
setCurrentPage(e) {
|
|
11155
11156
|
this.currentPage = e;
|
|
@@ -11236,7 +11237,7 @@ function Jp(e, t, n, s, i, l) {
|
|
|
11236
11237
|
F(" errorSteps: " + y(l.errorSteps) + " ", 1),
|
|
11237
11238
|
V(e.$slots, "page-" + f, {
|
|
11238
11239
|
setErrorOnPage: (g) => l.setErrorOnPage(f, g),
|
|
11239
|
-
removeErrorOnPage: l.removeErrorOnPage
|
|
11240
|
+
removeErrorOnPage: () => l.removeErrorOnPage(f)
|
|
11240
11241
|
})
|
|
11241
11242
|
], 2)), [
|
|
11242
11243
|
[ye, f === i.currentPage]
|
|
@@ -21420,7 +21421,7 @@ const qx = /* @__PURE__ */ P(Ex, [["render", Hx]]), Rx = [
|
|
|
21420
21421
|
text: "Zimbabwe",
|
|
21421
21422
|
value: "zw"
|
|
21422
21423
|
}
|
|
21423
|
-
], n1 = "comand-component-library", i1 = "4.2.
|
|
21424
|
+
], n1 = "comand-component-library", i1 = "4.2.60", l1 = "GPL-3.0-only", o1 = "CoManD-UI", a1 = "module", s1 = {
|
|
21424
21425
|
prepublishOnly: "npm run build-lib",
|
|
21425
21426
|
dev: "vite",
|
|
21426
21427
|
build: "vite build",
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
<!-- end loop for formElements -->
|
|
47
47
|
|
|
48
|
-
<div v-if="submitButtonOptions && (submitButtonOptions.position === 'insideFieldset' || submitButtonOptions.position === null)" class="flex-container no-wrap-on-small-devices">
|
|
48
|
+
<div v-if="submitButtonOptions.show && (submitButtonOptions.position === 'insideFieldset' || submitButtonOptions.position === null)" class="flex-container no-wrap-on-small-devices">
|
|
49
49
|
<small v-if="mandatoryText" class="mandatory-text"><sup>*</sup>{{ mandatoryText }}</small>
|
|
50
50
|
<!-- begin cancel-button (below fieldset) -->
|
|
51
51
|
<button
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
</div>
|
|
72
72
|
</fieldset>
|
|
73
73
|
|
|
74
|
-
<div v-if="submitButtonOptions && submitButtonOptions.position === 'belowFieldset'" class="flex-container no-wrap-on-small-devices">
|
|
74
|
+
<div v-if="submitButtonOptions.show && submitButtonOptions.position === 'belowFieldset'" class="flex-container no-wrap-on-small-devices">
|
|
75
75
|
<small v-if="mandatoryText" class="mandatory-text"><sup>*</sup>{{ mandatoryText }}</small>
|
|
76
76
|
<!-- begin cancel-button (below fieldset) -->
|
|
77
77
|
<button
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
errorSteps: {{ errorSteps }}
|
|
23
23
|
|
|
24
24
|
<!-- begin slot for page content -->
|
|
25
|
-
<slot :name="'page-' + page" :setErrorOnPage="(message) => setErrorOnPage(page, message)" :removeErrorOnPage="removeErrorOnPage">
|
|
25
|
+
<slot :name="'page-' + page" :setErrorOnPage="(message) => setErrorOnPage(page, message)" :removeErrorOnPage="() => removeErrorOnPage(page)">
|
|
26
26
|
</slot>
|
|
27
27
|
<!-- end slot for page content -->
|
|
28
28
|
</div>
|
|
@@ -117,8 +117,11 @@ export default {
|
|
|
117
117
|
this.pagesWithError.push({ page: page, message: message });
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
removeErrorOnPage() {
|
|
121
|
-
this.pagesWithError
|
|
120
|
+
removeErrorOnPage(page) {
|
|
121
|
+
const index = this.pagesWithError.findIndex(item => item.page === page);
|
|
122
|
+
if (index !== -1) {
|
|
123
|
+
this.pagesWithError.splice(index, 1);
|
|
124
|
+
}
|
|
122
125
|
},
|
|
123
126
|
setCurrentPage(page) {
|
|
124
127
|
this.currentPage = page
|