comand-component-library 4.2.59 → 4.2.61

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;
@@ -11227,16 +11228,9 @@ function Jp(e, t, n, s, i, l) {
11227
11228
  systemMessage: l.getSystemMessage(f),
11228
11229
  validationStatus: "error"
11229
11230
  }, null, 8, ["systemMessage"])) : m("", !0),
11230
- F(" page: " + y(f), 1),
11231
- t[2] || (t[2] = o("br", null, null, -1)),
11232
- F(" index: " + y(h), 1),
11233
- t[3] || (t[3] = o("br", null, null, -1)),
11234
- F(" currentPage: " + y(i.currentPage), 1),
11235
- t[4] || (t[4] = o("br", null, null, -1)),
11236
- F(" errorSteps: " + y(l.errorSteps) + " ", 1),
11237
11231
  V(e.$slots, "page-" + f, {
11238
11232
  setErrorOnPage: (g) => l.setErrorOnPage(f, g),
11239
- removeErrorOnPage: l.removeErrorOnPage
11233
+ removeErrorOnPage: () => l.removeErrorOnPage(f)
11240
11234
  })
11241
11235
  ], 2)), [
11242
11236
  [ye, f === i.currentPage]
@@ -21420,7 +21414,7 @@ const qx = /* @__PURE__ */ P(Ex, [["render", Hx]]), Rx = [
21420
21414
  text: "Zimbabwe",
21421
21415
  value: "zw"
21422
21416
  }
21423
- ], n1 = "comand-component-library", i1 = "4.2.59", l1 = "GPL-3.0-only", o1 = "CoManD-UI", a1 = "module", s1 = {
21417
+ ], n1 = "comand-component-library", i1 = "4.2.61", l1 = "GPL-3.0-only", o1 = "CoManD-UI", a1 = "module", s1 = {
21424
21418
  prepublishOnly: "npm run build-lib",
21425
21419
  dev: "vite",
21426
21420
  build: "vite build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.2.59",
3
+ "version": "4.2.61",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -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
@@ -16,13 +16,8 @@
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
- <slot :name="'page-' + page" :setErrorOnPage="(message) => setErrorOnPage(page, message)" :removeErrorOnPage="removeErrorOnPage">
20
+ <slot :name="'page-' + page" :setErrorOnPage="(message) => setErrorOnPage(page, message)" :removeErrorOnPage="() => removeErrorOnPage(page)">
26
21
  </slot>
27
22
  <!-- end slot for page content -->
28
23
  </div>
@@ -117,8 +112,11 @@ export default {
117
112
  this.pagesWithError.push({ page: page, message: message });
118
113
  }
119
114
  },
120
- removeErrorOnPage() {
121
- this.pagesWithError = []
115
+ removeErrorOnPage(page) {
116
+ const index = this.pagesWithError.findIndex(item => item.page === page);
117
+ if (index !== -1) {
118
+ this.pagesWithError.splice(index, 1);
119
+ }
122
120
  },
123
121
  setCurrentPage(page) {
124
122
  this.currentPage = page