comand-component-library 4.2.92 → 4.2.93

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.
@@ -168,19 +168,19 @@ function $l(e, t, n) {
168
168
  }
169
169
  return !1;
170
170
  }
171
- let Pe = !1;
171
+ let Me = !1;
172
172
  function ei(e) {
173
- return typeof e == "boolean" && (Pe = e), Pe;
173
+ return typeof e == "boolean" && (Me = e), Me;
174
174
  }
175
175
  function eo(e) {
176
- const t = typeof e == "string" ? Qe(e, !0, Pe) : e;
176
+ const t = typeof e == "string" ? Qe(e, !0, Me) : e;
177
177
  if (t) {
178
178
  const n = be(t.provider, t.prefix), s = t.name;
179
179
  return n.icons[s] || (n.missing.has(s) ? null : void 0);
180
180
  }
181
181
  }
182
182
  function to(e, t) {
183
- const n = Qe(e, !0, Pe);
183
+ const n = Qe(e, !0, Me);
184
184
  if (!n)
185
185
  return !1;
186
186
  const s = be(n.provider, n.prefix);
@@ -189,7 +189,7 @@ function to(e, t) {
189
189
  function ti(e, t) {
190
190
  if (typeof e != "object")
191
191
  return !1;
192
- if (typeof t != "string" && (t = e.provider || ""), Pe && !t && !e.prefix) {
192
+ if (typeof t != "string" && (t = e.provider || ""), Me && !t && !e.prefix) {
193
193
  let i = !1;
194
194
  return $n(e) && (e.prefix = "", Xn(e, (l, d) => {
195
195
  d && to(l, d) && (i = !0);
@@ -853,7 +853,7 @@ function Fo(e) {
853
853
  e.iconsLoaderFlag = !1, Co(e);
854
854
  }));
855
855
  }
856
- function Mo(e, t) {
856
+ function Po(e, t) {
857
857
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
858
858
  e.iconsQueueFlag = !1;
859
859
  const { provider: n, prefix: s } = e, i = e.iconsToLoad;
@@ -889,7 +889,7 @@ function Mo(e, t) {
889
889
  });
890
890
  }));
891
891
  }
892
- const Po = (e, t) => {
892
+ const Mo = (e, t) => {
893
893
  const n = wo(e, !0, ei()), s = xo(n);
894
894
  if (!s.pending.length) {
895
895
  let u = !0;
@@ -918,7 +918,7 @@ const Po = (e, t) => {
918
918
  I.has(b) || (I.add(b), i[h][p].push(b));
919
919
  }), l.forEach((u) => {
920
920
  const { provider: h, prefix: p } = u;
921
- i[h][p].length && Mo(u, i[h][p]);
921
+ i[h][p].length && Po(u, i[h][p]);
922
922
  }), t ? ko(t, s, l) : xn;
923
923
  };
924
924
  function Vo(e, t) {
@@ -1155,7 +1155,7 @@ const zo = {
1155
1155
  if (!s)
1156
1156
  return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", s !== null && (this._loadingIcon = {
1157
1157
  name: e,
1158
- abort: Po([n], () => {
1158
+ abort: Mo([n], () => {
1159
1159
  this.counter++;
1160
1160
  })
1161
1161
  })), null;
@@ -2212,7 +2212,7 @@ function Fa(e, t, n, s, i, l) {
2212
2212
  ], 64)) : m("", !0)
2213
2213
  ]);
2214
2214
  }
2215
- const Ma = /* @__PURE__ */ B(La, [["render", Fa]]), Pa = {
2215
+ const Pa = /* @__PURE__ */ B(La, [["render", Fa]]), Ma = {
2216
2216
  name: "CmdTooltipForFormElements",
2217
2217
  props: {
2218
2218
  /**
@@ -2273,7 +2273,7 @@ const Ma = /* @__PURE__ */ B(La, [["render", Fa]]), Pa = {
2273
2273
  }
2274
2274
  };
2275
2275
  function Va(e, t, n, s, i, l) {
2276
- const d = Ma, c = pi;
2276
+ const d = Pa, c = pi;
2277
2277
  return a(), C(c, {
2278
2278
  ref: "tooltip",
2279
2279
  class: x(["cmd-tooltip-for-form-elements box", n.validationStatus]),
@@ -2287,7 +2287,7 @@ function Va(e, t, n, s, i, l) {
2287
2287
  _: 1
2288
2288
  }, 8, ["class", "relatedId", "scrollContainer"]);
2289
2289
  }
2290
- const zt = /* @__PURE__ */ B(Pa, [["render", Va]]), Wt = {
2290
+ const zt = /* @__PURE__ */ B(Ma, [["render", Va]]), Wt = {
2291
2291
  data() {
2292
2292
  return {
2293
2293
  defaultMessageProperties: {
@@ -3549,7 +3549,7 @@ const K = /* @__PURE__ */ B(za, [["render", ks]]), ws = {
3549
3549
  }, Fs = {
3550
3550
  key: 1,
3551
3551
  class: "locality"
3552
- }, Ms = { key: 0 }, Ps = {
3552
+ }, Ps = { key: 0 }, Ms = {
3553
3553
  key: 3,
3554
3554
  class: "country-name"
3555
3555
  }, Vs = { class: "street-address" }, As = {
@@ -3629,9 +3629,9 @@ function qs(e, t, n, s, i, l) {
3629
3629
  t[7] || (t[7] = o("br", null, null, -1)),
3630
3630
  n.addressEntry.miscInfo ? (a(), r(w, { key: 2 }, [
3631
3631
  o("span", null, g(n.addressEntry.miscInfo), 1),
3632
- n.addressEntry.country ? (a(), r("br", Ms)) : m("", !0)
3632
+ n.addressEntry.country ? (a(), r("br", Ps)) : m("", !0)
3633
3633
  ], 64)) : m("", !0),
3634
- n.addressEntry.country ? (a(), r("span", Ps, g(n.addressEntry.country), 1)) : m("", !0)
3634
+ n.addressEntry.country ? (a(), r("span", Ms, g(n.addressEntry.country), 1)) : m("", !0)
3635
3635
  ], 8, Is)) : (a(), r(w, { key: 1 }, [
3636
3636
  e.editing ? (a(), r(w, { key: 1 }, [
3637
3637
  f(c, {
@@ -4771,7 +4771,7 @@ const Yt = /* @__PURE__ */ B(pr, [["render", wr]]), Tr = {
4771
4771
  }, Lr = ["id"], Ir = {
4772
4772
  key: 0,
4773
4773
  "aria-hidden": "true"
4774
- }, Br = ["title", "aria-errormessage", "id"], Dr = ["aria-expanded"], Fr = ["title"], Mr = ["src", "alt"], Pr = {
4774
+ }, Br = ["title", "aria-errormessage", "id"], Dr = ["aria-expanded"], Fr = ["title"], Pr = ["src", "alt"], Mr = {
4775
4775
  key: 3,
4776
4776
  class: "option-name"
4777
4777
  }, Vr = {
@@ -4843,7 +4843,7 @@ function Gr(e, t, n, s, i, l) {
4843
4843
  src: l.pathFlag(l.optionCountry),
4844
4844
  alt: l.optionCountry,
4845
4845
  class: x(["flag", l.optionCountry])
4846
- }, null, 10, Mr)) : n.type === "color" ? (a(), r("span", {
4846
+ }, null, 10, Pr)) : n.type === "color" ? (a(), r("span", {
4847
4847
  key: 1,
4848
4848
  style: Ke("background: " + l.optionColor)
4849
4849
  }, null, 4)) : m("", !0),
@@ -4852,7 +4852,7 @@ function Gr(e, t, n, s, i, l) {
4852
4852
  type: l.optionIcon?.iconType,
4853
4853
  iconClass: l.optionIcon?.iconClass
4854
4854
  }, null, 8, ["type", "iconClass"])) : m("", !0),
4855
- l.optionName ? (a(), r("span", Pr, g(l.optionName), 1)) : m("", !0),
4855
+ l.optionName ? (a(), r("span", Mr, g(l.optionName), 1)) : m("", !0),
4856
4856
  n.iconDropdown ? (a(), C(d, {
4857
4857
  key: 4,
4858
4858
  iconClass: n.iconDropdown.iconClass,
@@ -5536,7 +5536,7 @@ const gi = /* @__PURE__ */ B(Qr, [["render", ud]]), cd = {
5536
5536
  };
5537
5537
  }
5538
5538
  };
5539
- class Me {
5539
+ class Pe {
5540
5540
  static PATTERN_SURNAME = /^[a-züöäßáéíóàèìòêîô '-]+$/i;
5541
5541
  static PATTERN_EMAIL = /^[a-z\d._%+-]+@[a-z\d._%+-]+\.[a-z]{2,}$/i;
5542
5542
  static PATTERN_MESSAGE = /^.{2,500}$/;
@@ -5545,7 +5545,7 @@ class Me {
5545
5545
  this.label = t;
5546
5546
  }
5547
5547
  validate(t) {
5548
- const n = this.validateRequired(t.lastName.value, Me.PATTERN_SURNAME, this.label("form_error_invalid_surname")), s = this.validateRequired(t.email.value, Me.PATTERN_EMAIL, this.label("form_error_invalid_email")), i = this.validateRequired(t.userMessage.value, Me.PATTERN_MESSAGE, this.label("form_error_invalid_message"));
5548
+ const n = this.validateRequired(t.lastName.value, Pe.PATTERN_SURNAME, this.label("form_error_invalid_surname")), s = this.validateRequired(t.email.value, Pe.PATTERN_EMAIL, this.label("form_error_invalid_email")), i = this.validateRequired(t.userMessage.value, Pe.PATTERN_MESSAGE, this.label("form_error_invalid_message"));
5549
5549
  return t.lastName.error = n[0], t.lastName.errorMessage = n[1], t.email.error = s[0], t.email.errorMessage = s[1], t.userMessage.error = i[0], t.userMessage.errorMessage = i[1], console.log("validate", t.email), t.acceptPrivacy.error = !1, t.error = t.lastName.error || t.email.error || t.userMessage.error, t;
5550
5550
  }
5551
5551
  validatePrivacy(t) {
@@ -6574,7 +6574,7 @@ const yi = /* @__PURE__ */ B(Od, [["render", Fd]]), re = (e) => {
6574
6574
  }));
6575
6575
  },
6576
6576
  async loadContent(e) {
6577
- (await Md(e)).startsWith("image/") ? this.fancyBoxImageUrl = e : fetch(e).then((n) => n.text()).then((n) => this.fancyBoxContent = n).catch((n) => console.error(`Error loading ${this.url}: ${n}`));
6577
+ (await Pd(e)).startsWith("image/") ? this.fancyBoxImageUrl = e : fetch(e).then((n) => n.text()).then((n) => this.fancyBoxContent = n).catch((n) => console.error(`Error loading ${this.url}: ${n}`));
6578
6578
  },
6579
6579
  // switch to previous-item (in fancybox-gallery)
6580
6580
  showPrevItem() {
@@ -6616,11 +6616,11 @@ const yi = /* @__PURE__ */ B(Od, [["render", Fd]]), re = (e) => {
6616
6616
  }
6617
6617
  }
6618
6618
  });
6619
- async function Md(e) {
6619
+ async function Pd(e) {
6620
6620
  const t = await fetch(e, { method: "HEAD" });
6621
6621
  return t.ok ? (t.headers.get("Content-Type") || "").split(";")[0] : "text/html";
6622
6622
  }
6623
- const Pd = bi, Vd = ["aria-label"], Ad = { class: "flex-container" }, Ed = {
6623
+ const Md = bi, Vd = ["aria-label"], Ad = { class: "flex-container" }, Ed = {
6624
6624
  key: 1,
6625
6625
  class: "button-wrapper flex-none"
6626
6626
  }, Hd = ["title"], qd = ["title"], Rd = ["title"], jd = {
@@ -6753,7 +6753,7 @@ function Qd(e, t, n, s, i, l) {
6753
6753
  }, null, 8, ["thumbnailScrollerItems", "onClick", "activeItemIndex"])) : m("", !0)
6754
6754
  ], 42, Vd);
6755
6755
  }
6756
- const Xd = /* @__PURE__ */ B(Pd, [["render", Qd]]), $d = {
6756
+ const Xd = /* @__PURE__ */ B(Md, [["render", Qd]]), $d = {
6757
6757
  emits: ["submit"],
6758
6758
  mixins: [
6759
6759
  X,
@@ -6767,7 +6767,7 @@ const Xd = /* @__PURE__ */ B(Pd, [["render", Qd]]), $d = {
6767
6767
  data() {
6768
6768
  return {
6769
6769
  sendSuccessfully: !1,
6770
- validator: new Me((e) => e),
6770
+ validator: new Pe((e) => e),
6771
6771
  formData: {
6772
6772
  salutation: { value: this.configuration.salutation.default },
6773
6773
  lastName: { value: "" },
@@ -7886,7 +7886,7 @@ const _u = /* @__PURE__ */ B(vu, [["render", Su]]), Ou = {
7886
7886
  watch: (() => {
7887
7887
  (void 0).updateActiveClass();
7888
7888
  })
7889
- }, Lu = { key: 1 }, Iu = ["href"], Bu = { key: 2 }, Du = { key: 0 }, Fu = { key: 1 }, Mu = { key: 1 }, Pu = { key: 1 };
7889
+ }, Lu = { key: 1 }, Iu = ["href"], Bu = { key: 2 }, Du = { key: 0 }, Fu = { key: 1 }, Pu = { key: 1 }, Mu = { key: 1 };
7890
7890
  function Vu(e, t, n, s, i, l) {
7891
7891
  const d = U, c = _u, u = Ce, h = oe, p = Ci, b = R, S = he;
7892
7892
  return a(), C(pe, { name: n.transition }, {
@@ -7988,12 +7988,12 @@ function Vu(e, t, n, s, i, l) {
7988
7988
  F(g(I.descriptionData.text), 1)
7989
7989
  ], 64))
7990
7990
  ]),
7991
- n.alignDescriptionTermRight ? (a(), r("dt", Mu, [
7991
+ n.alignDescriptionTermRight ? (a(), r("dt", Pu, [
7992
7992
  I.descriptionTerm?.cmdIcon?.iconClass ? (a(), C(b, T({
7993
7993
  key: 0,
7994
7994
  ref_for: !0
7995
7995
  }, I.descriptionTerm.cmdIcon), null, 16)) : m("", !0),
7996
- I.descriptionTerm?.text ? (a(), r("span", Pu, g(I.descriptionTerm?.text), 1)) : m("", !0)
7996
+ I.descriptionTerm?.text ? (a(), r("span", Mu, g(I.descriptionTerm?.text), 1)) : m("", !0)
7997
7997
  ])) : m("", !0)
7998
7998
  ], 64))), 128))
7999
7999
  ]))
@@ -8954,7 +8954,7 @@ const ki = /* @__PURE__ */ B(vc, [["render", Bc]]), Dc = {
8954
8954
  navigator.clipboard.writeText(t), alert(t + " was copied to clipboard");
8955
8955
  }
8956
8956
  }
8957
- }, Fc = ["title"], Mc = { key: 1 }, Pc = { ref: "code" }, Vc = {
8957
+ }, Fc = ["title"], Pc = { key: 1 }, Mc = { ref: "code" }, Vc = {
8958
8958
  key: 2,
8959
8959
  ref: "code"
8960
8960
  };
@@ -8975,8 +8975,8 @@ function Ac(e, t, n, s, i, l) {
8975
8975
  type: n.cmdIcon.iconType
8976
8976
  }, null, 8, ["iconClass", "type"])
8977
8977
  ], 8, Fc)) : m("", !0),
8978
- n.preformatted ? (a(), r("pre", Mc, [
8979
- o("code", Pc, [
8978
+ n.preformatted ? (a(), r("pre", Pc, [
8979
+ o("code", Mc, [
8980
8980
  t[1] || (t[1] = F(`
8981
8981
  `, -1)),
8982
8982
  D(e.$slots, "default"),
@@ -9776,7 +9776,7 @@ function Fm(e, t, n, s, i, l) {
9776
9776
  }))
9777
9777
  ]);
9778
9778
  }
9779
- const Oi = /* @__PURE__ */ B(Im, [["render", Fm]]), Mm = {
9779
+ const Oi = /* @__PURE__ */ B(Im, [["render", Fm]]), Pm = {
9780
9780
  name: "CmdImageGallery",
9781
9781
  mixins: [Z],
9782
9782
  props: {
@@ -9868,10 +9868,10 @@ const Oi = /* @__PURE__ */ B(Im, [["render", Fm]]), Mm = {
9868
9868
  });
9869
9869
  }
9870
9870
  }
9871
- }, Pm = { class: "cmd-image-gallery grid-container-create-columns" }, Vm = ["onClick", "title"];
9871
+ }, Mm = { class: "cmd-image-gallery grid-container-create-columns" }, Vm = ["onClick", "title"];
9872
9872
  function Am(e, t, n, s, i, l) {
9873
9873
  const d = U, c = oe;
9874
- return a(), r("div", Pm, [
9874
+ return a(), r("div", Mm, [
9875
9875
  n.cmdHeadline?.headlineText || e.editModeContext ? (a(), C(d, A(T({ key: 0 }, n.cmdHeadline)), null, 16)) : m("", !0),
9876
9876
  e.editModeContext ? n.images.length ? (a(!0), r(w, { key: 2 }, P(n.images, (u, h) => (a(), C(c, {
9877
9877
  key: h,
@@ -9912,7 +9912,7 @@ function Am(e, t, n, s, i, l) {
9912
9912
  ], 64))
9913
9913
  ]);
9914
9914
  }
9915
- const Em = /* @__PURE__ */ B(Mm, [["render", Am]]), Hm = {
9915
+ const Em = /* @__PURE__ */ B(Pm, [["render", Am]]), Hm = {
9916
9916
  name: "CmdImageZoom",
9917
9917
  props: {
9918
9918
  /**
@@ -10998,7 +10998,7 @@ function Fp(e, t, n, s, i, l) {
10998
10998
  ])
10999
10999
  ]);
11000
11000
  }
11001
- const Ii = /* @__PURE__ */ B(wp, [["render", Fp]]), Mp = {
11001
+ const Ii = /* @__PURE__ */ B(wp, [["render", Fp]]), Pp = {
11002
11002
  emits: ["click"],
11003
11003
  name: "CmdMultistepFormProgressBar",
11004
11004
  data() {
@@ -11125,7 +11125,7 @@ const Ii = /* @__PURE__ */ B(wp, [["render", Fp]]), Mp = {
11125
11125
  immediate: !0
11126
11126
  }
11127
11127
  }
11128
- }, Pp = {
11128
+ }, Mp = {
11129
11129
  key: 0,
11130
11130
  class: "number"
11131
11131
  }, Vp = { key: 2 }, Ap = {
@@ -11153,7 +11153,7 @@ function Hp(e, t, n, s, i, l) {
11153
11153
  onClick: (p) => l.clickedStep(p, h)
11154
11154
  }, {
11155
11155
  default: v(() => [
11156
- n.showStepNumber ? (a(), r("span", Pp, g(h + 1), 1)) : m("", !0),
11156
+ n.showStepNumber ? (a(), r("span", Mp, g(h + 1), 1)) : m("", !0),
11157
11157
  u.iconClass ? (a(), C(d, {
11158
11158
  key: 1,
11159
11159
  iconClass: u.iconClass,
@@ -11178,7 +11178,7 @@ function Hp(e, t, n, s, i, l) {
11178
11178
  ], 2))), 128))
11179
11179
  ], 2);
11180
11180
  }
11181
- const Bi = /* @__PURE__ */ B(Mp, [["render", Hp]]), qp = {
11181
+ const Bi = /* @__PURE__ */ B(Pp, [["render", Hp]]), qp = {
11182
11182
  name: "CmdMultistepFormWrapper",
11183
11183
  data() {
11184
11184
  return {
@@ -11189,6 +11189,10 @@ const Bi = /* @__PURE__ */ B(Mp, [["render", Hp]]), qp = {
11189
11189
  };
11190
11190
  },
11191
11191
  props: {
11192
+ requiredPages: {
11193
+ type: Array,
11194
+ default: []
11195
+ },
11192
11196
  /**
11193
11197
  * properties for CmdMultistepFormProgressBar-component
11194
11198
  */
@@ -11255,9 +11259,20 @@ const Bi = /* @__PURE__ */ B(Mp, [["render", Hp]]), qp = {
11255
11259
  }
11256
11260
  },
11257
11261
  computed: {
11258
- // check if at leat one step has status 'error'
11262
+ pagesWithError() {
11263
+ if (this.inputMade.length === 0)
11264
+ return this.requiredPages;
11265
+ let e = new Set(this.requiredPages).difference(new Set(this.inputMade));
11266
+ for (let t = 0; t < this.validationStatusForSteps.length; t++)
11267
+ e.add(this.validationStatusForSteps[t].page);
11268
+ return [...e].toSorted();
11269
+ },
11270
+ // check if at least one step has status 'error'
11259
11271
  atleastOneStepWithError() {
11260
- return this.validationStatusForSteps.length > 0 || this.inputMade.length === 0;
11272
+ if (this.validationStatusForSteps.length > 0 || this.inputMade.length === 0)
11273
+ return !0;
11274
+ const e = new Set(this.requiredPages), t = new Set(this.inputMade);
11275
+ return console.log("requiredPagesSet", e), console.log("inputMadeSet", t), !e.isSubsetOf(t);
11261
11276
  },
11262
11277
  // check if a page ha
11263
11278
  pageHasError() {
@@ -11336,9 +11351,9 @@ function Up(e, t, n, s, i, l) {
11336
11351
  class: x("multistep-page-" + h),
11337
11352
  key: p
11338
11353
  }, [
11339
- i.validationStatusForSteps.some((b) => b.page === h) ? (a(), C(c, {
11354
+ i.validationStatusForSteps.some((b) => b.page === i.currentPage) ? (a(), C(c, {
11340
11355
  key: 0,
11341
- systemMessage: l.getSystemMessage(h),
11356
+ systemMessage: l.getSystemMessage(i.currentPage),
11342
11357
  validationStatus: "error"
11343
11358
  }, null, 8, ["systemMessage"])) : m("", !0),
11344
11359
  D(e.$slots, "page-" + h, {
@@ -11352,6 +11367,15 @@ function Up(e, t, n, s, i, l) {
11352
11367
  [$, h === i.currentPage]
11353
11368
  ])), 128)),
11354
11369
  z(o("div", jp, [
11370
+ l.pagesWithError.length ? (a(), C(c, {
11371
+ key: 0,
11372
+ validationStatus: "error"
11373
+ }, {
11374
+ default: v(() => [
11375
+ o("p", null, "Please fill all required fields on the pages " + g(l.pagesWithError.join(", ")) + " correctly!", 1)
11376
+ ]),
11377
+ _: 1
11378
+ })) : m("", !0),
11355
11379
  D(e.$slots, "page-last", {
11356
11380
  setErrorOnPage: (h) => l.setErrorOnPage(e.step, h),
11357
11381
  removeErrorOnPage: () => l.removeErrorOnPage(e.step),
@@ -12600,8 +12624,8 @@ const Di = /* @__PURE__ */ B(Lf, [["render", If]]), Bf = {
12600
12624
  });
12601
12625
  }
12602
12626
  }
12603
- }, Df = { class: "button-wrapper" }, Ff = ["title"], Mf = { key: 1 };
12604
- function Pf(e, t, n, s, i, l) {
12627
+ }, Df = { class: "button-wrapper" }, Ff = ["title"], Pf = { key: 1 };
12628
+ function Mf(e, t, n, s, i, l) {
12605
12629
  const d = Di;
12606
12630
  return a(), r("footer", {
12607
12631
  class: x(["cmd-page-footer flex-container", { "small-buttons": n.useSmallButtons }])
@@ -12625,12 +12649,12 @@ function Pf(e, t, n, s, i, l) {
12625
12649
  key: 0,
12626
12650
  class: x(l.buttonPrintViewOptions.icon?.iconClass)
12627
12651
  }, null, 2)) : m("", !0),
12628
- l.buttonPrintViewOptions.text ? (a(), r("span", Mf, g(l.buttonPrintViewOptions.text), 1)) : m("", !0)
12652
+ l.buttonPrintViewOptions.text ? (a(), r("span", Pf, g(l.buttonPrintViewOptions.text), 1)) : m("", !0)
12629
12653
  ], 10, Ff)) : m("", !0)
12630
12654
  ])
12631
12655
  ], 2);
12632
12656
  }
12633
- const Vf = /* @__PURE__ */ B(Bf, [["render", Pf]]), Af = {
12657
+ const Vf = /* @__PURE__ */ B(Bf, [["render", Mf]]), Af = {
12634
12658
  name: "CmdPageHeader",
12635
12659
  props: {
12636
12660
  /**
@@ -13857,7 +13881,7 @@ function Fh(e, t, n, s, i, l) {
13857
13881
  ])) : m("", !0)
13858
13882
  ], 2);
13859
13883
  }
13860
- const Mh = /* @__PURE__ */ B(Bh, [["render", Fh]]), Ph = {
13884
+ const Ph = /* @__PURE__ */ B(Bh, [["render", Fh]]), Mh = {
13861
13885
  name: "CmdSwitchLanguage",
13862
13886
  emits: ["click"],
13863
13887
  data() {
@@ -13938,7 +13962,7 @@ function qh(e, t, n, s, i, l) {
13938
13962
  ])
13939
13963
  ]);
13940
13964
  }
13941
- const Rh = /* @__PURE__ */ B(Ph, [["render", qh]]), jh = {
13965
+ const Rh = /* @__PURE__ */ B(Mh, [["render", qh]]), jh = {
13942
13966
  name: "CmdTable",
13943
13967
  data() {
13944
13968
  return {
@@ -14775,7 +14799,7 @@ const yg = /* @__PURE__ */ B(fg, [["render", gg]]), bg = {
14775
14799
  };
14776
14800
  }
14777
14801
  };
14778
- function Mi(e, t) {
14802
+ function Pi(e, t) {
14779
14803
  return function() {
14780
14804
  return e.apply(t, arguments);
14781
14805
  };
@@ -14787,10 +14811,10 @@ const { toString: xg } = Object.prototype, { getPrototypeOf: en } = Object, it =
14787
14811
  function Cg(e) {
14788
14812
  return e !== null && !Ee(e) && e.constructor !== null && !Ee(e.constructor) && ne(e.constructor.isBuffer) && e.constructor.isBuffer(e);
14789
14813
  }
14790
- const Pi = ae("ArrayBuffer");
14814
+ const Mi = ae("ArrayBuffer");
14791
14815
  function vg(e) {
14792
14816
  let t;
14793
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pi(e.buffer), t;
14817
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Mi(e.buffer), t;
14794
14818
  }
14795
14819
  const kg = lt("string"), ne = lt("function"), Vi = lt("number"), ot = (e) => e !== null && typeof e == "object", wg = (e) => e === !0 || e === !1, We = (e) => {
14796
14820
  if (it(e) !== "object")
@@ -14801,7 +14825,7 @@ const kg = lt("string"), ne = lt("function"), Vi = lt("number"), ot = (e) => e !
14801
14825
  let t;
14802
14826
  return e && (typeof FormData == "function" && e instanceof FormData || ne(e.append) && ((t = it(e)) === "formdata" || // detect form-data instance
14803
14827
  t === "object" && ne(e.toString) && e.toString() === "[object FormData]"));
14804
- }, Bg = ae("URLSearchParams"), [Dg, Fg, Mg, Pg] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Vg = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
14828
+ }, Bg = ae("URLSearchParams"), [Dg, Fg, Pg, Mg] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Vg = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
14805
14829
  function He(e, t, { allOwnKeys: n = !1 } = {}) {
14806
14830
  if (e === null || typeof e > "u")
14807
14831
  return;
@@ -14836,7 +14860,7 @@ function It() {
14836
14860
  return t;
14837
14861
  }
14838
14862
  const Ag = (e, t, n, { allOwnKeys: s } = {}) => (He(t, (i, l) => {
14839
- n && ne(i) ? e[l] = Mi(i, n) : e[l] = i;
14863
+ n && ne(i) ? e[l] = Pi(i, n) : e[l] = i;
14840
14864
  }, { allOwnKeys: s }), e), Eg = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Hg = (e, t, n, s) => {
14841
14865
  e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
14842
14866
  value: t.prototype
@@ -14882,7 +14906,7 @@ const Ag = (e, t, n, { allOwnKeys: s } = {}) => (He(t, (i, l) => {
14882
14906
  function(n, s, i) {
14883
14907
  return s.toUpperCase() + i;
14884
14908
  }
14885
- ), Mn = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kg = ae("RegExp"), qi = (e, t) => {
14909
+ ), Pn = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kg = ae("RegExp"), qi = (e, t) => {
14886
14910
  const n = Object.getOwnPropertyDescriptors(e), s = {};
14887
14911
  He(n, (i, l) => {
14888
14912
  let d;
@@ -14911,10 +14935,10 @@ const Ag = (e, t, n, { allOwnKeys: s } = {}) => (He(t, (i, l) => {
14911
14935
  };
14912
14936
  return _e(e) ? s(e) : s(String(e).split(t)), n;
14913
14937
  }, Zg = () => {
14914
- }, Qg = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, gt = "abcdefghijklmnopqrstuvwxyz", Pn = "0123456789", Ri = {
14915
- DIGIT: Pn,
14938
+ }, Qg = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, gt = "abcdefghijklmnopqrstuvwxyz", Mn = "0123456789", Ri = {
14939
+ DIGIT: Mn,
14916
14940
  ALPHA: gt,
14917
- ALPHA_DIGIT: gt + gt.toUpperCase() + Pn
14941
+ ALPHA_DIGIT: gt + gt.toUpperCase() + Mn
14918
14942
  }, Xg = (e = 16, t = Ri.ALPHA_DIGIT) => {
14919
14943
  let n = "";
14920
14944
  const { length: s } = t;
@@ -14944,7 +14968,7 @@ const ey = (e) => {
14944
14968
  return n(e, 0);
14945
14969
  }, ty = ae("AsyncFunction"), ny = (e) => e && (ot(e) || ne(e)) && ne(e.then) && ne(e.catch), _ = {
14946
14970
  isArray: _e,
14947
- isArrayBuffer: Pi,
14971
+ isArrayBuffer: Mi,
14948
14972
  isBuffer: Cg,
14949
14973
  isFormData: Ig,
14950
14974
  isArrayBufferView: vg,
@@ -14955,8 +14979,8 @@ const ey = (e) => {
14955
14979
  isPlainObject: We,
14956
14980
  isReadableStream: Dg,
14957
14981
  isRequest: Fg,
14958
- isResponse: Mg,
14959
- isHeaders: Pg,
14982
+ isResponse: Pg,
14983
+ isHeaders: Mg,
14960
14984
  isUndefined: Ee,
14961
14985
  isDate: Tg,
14962
14986
  isFile: Sg,
@@ -14981,8 +15005,8 @@ const ey = (e) => {
14981
15005
  forEachEntry: Ng,
14982
15006
  matchAll: zg,
14983
15007
  isHTMLForm: Wg,
14984
- hasOwnProperty: Mn,
14985
- hasOwnProp: Mn,
15008
+ hasOwnProperty: Pn,
15009
+ hasOwnProp: Pn,
14986
15010
  // an alias to avoid ESLint no-prototype-builtins detection
14987
15011
  reduceDescriptors: qi,
14988
15012
  freezeMethods: Yg,
@@ -15783,7 +15807,7 @@ const Qi = (e) => {
15783
15807
  h && d.set(i, h);
15784
15808
  }
15785
15809
  return t;
15786
- }, Fy = typeof XMLHttpRequest < "u", My = Fy && function(e) {
15810
+ }, Fy = typeof XMLHttpRequest < "u", Py = Fy && function(e) {
15787
15811
  return new Promise(function(n, s) {
15788
15812
  const i = Qi(e);
15789
15813
  let l = i.data;
@@ -15840,7 +15864,7 @@ const Qi = (e) => {
15840
15864
  }
15841
15865
  p.send(l || null);
15842
15866
  });
15843
- }, Py = (e, t) => {
15867
+ }, My = (e, t) => {
15844
15868
  let n = new AbortController(), s;
15845
15869
  const i = function(u) {
15846
15870
  if (!s) {
@@ -15956,7 +15980,7 @@ const Hy = async (e) => {
15956
15980
  fetchOptions: S
15957
15981
  } = Qi(e);
15958
15982
  h = h ? (h + "").toLowerCase() : "text";
15959
- let [I, L] = i || l || d ? Py([i, l], d) : [], O, V;
15983
+ let [I, L] = i || l || d ? My([i, l], d) : [], O, V;
15960
15984
  const q = () => {
15961
15985
  !O && setTimeout(() => {
15962
15986
  I && I.unsubscribe();
@@ -16020,12 +16044,12 @@ const Hy = async (e) => {
16020
16044
  }
16021
16045
  ) : E.from(j, j && j.code, e, V);
16022
16046
  }
16023
- }), Mt = {
16047
+ }), Pt = {
16024
16048
  http: iy,
16025
- xhr: My,
16049
+ xhr: Py,
16026
16050
  fetch: Ry
16027
16051
  };
16028
- _.forEach(Mt, (e, t) => {
16052
+ _.forEach(Pt, (e, t) => {
16029
16053
  if (e) {
16030
16054
  try {
16031
16055
  Object.defineProperty(e, "name", { value: t });
@@ -16043,7 +16067,7 @@ const Nn = (e) => `- ${e}`, jy = (e) => _.isFunction(e) || e === null || e === !
16043
16067
  for (let l = 0; l < t; l++) {
16044
16068
  n = e[l];
16045
16069
  let d;
16046
- if (s = n, !jy(n) && (s = Mt[(d = String(n)).toLowerCase()], s === void 0))
16070
+ if (s = n, !jy(n) && (s = Pt[(d = String(n)).toLowerCase()], s === void 0))
16047
16071
  throw new E(`Unknown adapter '${d}'`);
16048
16072
  if (s)
16049
16073
  break;
@@ -16063,7 +16087,7 @@ const Nn = (e) => `- ${e}`, jy = (e) => _.isFunction(e) || e === null || e === !
16063
16087
  }
16064
16088
  return s;
16065
16089
  },
16066
- adapters: Mt
16090
+ adapters: Pt
16067
16091
  };
16068
16092
  function xt(e) {
16069
16093
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
@@ -16129,10 +16153,10 @@ function Uy(e, t, n) {
16129
16153
  throw new E("Unknown option " + l, E.ERR_BAD_OPTION);
16130
16154
  }
16131
16155
  }
16132
- const Pt = {
16156
+ const Mt = {
16133
16157
  assertOptions: Uy,
16134
16158
  validators: ln
16135
- }, ue = Pt.validators;
16159
+ }, ue = Mt.validators;
16136
16160
  let ye = class {
16137
16161
  constructor(t) {
16138
16162
  this.defaults = t, this.interceptors = {
@@ -16168,13 +16192,13 @@ let ye = class {
16168
16192
  _request(t, n) {
16169
16193
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = xe(this.defaults, n);
16170
16194
  const { transitional: s, paramsSerializer: i, headers: l } = n;
16171
- s !== void 0 && Pt.assertOptions(s, {
16195
+ s !== void 0 && Mt.assertOptions(s, {
16172
16196
  silentJSONParsing: ue.transitional(ue.boolean),
16173
16197
  forcedJSONParsing: ue.transitional(ue.boolean),
16174
16198
  clarifyTimeoutError: ue.transitional(ue.boolean)
16175
16199
  }, !1), i != null && (_.isFunction(i) ? n.paramsSerializer = {
16176
16200
  serialize: i
16177
- } : Pt.assertOptions(i, {
16201
+ } : Mt.assertOptions(i, {
16178
16202
  encode: ue.function,
16179
16203
  serialize: ue.function
16180
16204
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
@@ -16398,7 +16422,7 @@ Object.entries(Vt).forEach(([e, t]) => {
16398
16422
  Vt[t] = e;
16399
16423
  });
16400
16424
  function nl(e) {
16401
- const t = new ye(e), n = Mi(ye.prototype.request, t);
16425
+ const t = new ye(e), n = Pi(ye.prototype.request, t);
16402
16426
  return _.extend(n, ye.prototype, t, { allOwnKeys: !0 }), _.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
16403
16427
  return nl(xe(e, i));
16404
16428
  }, n;
@@ -17584,7 +17608,7 @@ function Fb(e, t, n, s, i, l) {
17584
17608
  ], 64))), 128))
17585
17609
  ]);
17586
17610
  }
17587
- const Mb = /* @__PURE__ */ B(Bb, [["render", Fb]]), Pb = {
17611
+ const Pb = /* @__PURE__ */ B(Bb, [["render", Fb]]), Mb = {
17588
17612
  name: "MultipleListsOfLinks",
17589
17613
  props: {
17590
17614
  segments: {
@@ -17607,7 +17631,7 @@ function Ab(e, t, n, s, i, l) {
17607
17631
  ], 64))), 128))
17608
17632
  ]);
17609
17633
  }
17610
- const Eb = /* @__PURE__ */ B(Pb, [["render", Ab]]), Hb = {
17634
+ const Eb = /* @__PURE__ */ B(Mb, [["render", Ab]]), Hb = {
17611
17635
  name: "ContactInformation",
17612
17636
  props: {
17613
17637
  /**
@@ -18215,7 +18239,7 @@ const Ub = /* @__PURE__ */ B(Hb, [["render", jb]]), ll = [
18215
18239
  }
18216
18240
  };
18217
18241
  function Yb(e, t, n, s, i, l) {
18218
- const d = Ub, c = il, u = Eb, h = Mb;
18242
+ const d = Ub, c = il, u = Eb, h = Pb;
18219
18243
  return a(), r(w, null, [
18220
18244
  f(c, null, {
18221
18245
  default: v(() => [
@@ -18326,10 +18350,10 @@ const Xb = /* @__PURE__ */ B(Jb, [["render", Qb]]), $b = {
18326
18350
  };
18327
18351
  }
18328
18352
  };
18329
- function Mk(e = !1) {
18353
+ function Pk(e = !1) {
18330
18354
  return e ? (/* @__PURE__ */ new Date()).toISOString() : (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
18331
18355
  }
18332
- function Pk() {
18356
+ function Mk() {
18333
18357
  const e = /* @__PURE__ */ new Date(), t = String(e.getHours()).padStart(2, "0"), n = String(e.getMinutes()).padStart(2, "0");
18334
18358
  return t + ":" + n;
18335
18359
  }
@@ -18860,7 +18884,7 @@ function Fx(e, t, n, s, i, l) {
18860
18884
  _: 1
18861
18885
  }, 16);
18862
18886
  }
18863
- const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
18887
+ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
18864
18888
  {
18865
18889
  text: "Account owner:",
18866
18890
  value: "Company name",
@@ -19918,9 +19942,9 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
19918
19942
  ], IC = [{ id: 1, displayValue: "Option #1", icon: { iconClass: "icon-home" } }, { id: 2, displayValue: "Option #2", icon: { iconClass: "icon-company" } }, { id: 3, displayValue: "Option #3", icon: { iconClass: "icon-globe" } }], BC = { labelText: "Label for inputfield (search) with smart-search:" }, DC = {
19919
19943
  listOfRecommendations: IC,
19920
19944
  cmdFormElement: BC
19921
- }, FC = { toggleSwitch: !0, labelText: "I accept that anonymous data will be send to the platform I share this page on and accept the <a href='/content/fancybox-content.html' class='fancybox'>Data Privacy</a>!", required: !0 }, MC = [{ buttonClass: "social-network-facebook", path: "https://www.facebook.com/sharer/sharer.php?u=", tooltip: "Share this page on facebook", iconClass: "icon-facebook", linkText: "Share" }, { buttonClass: "social-network-x", path: "https://twitter.com/home?status=", tooltip: "Share this page on X", iconClass: "icon-x", linkText: "Share" }, { buttonClass: "social-network-xing", path: "https://www.xing.com/spi/shares/new?sc_p=b7910_cb&amp;url=", tooltip: "Share this page on xing", iconClass: "icon-xing", linkText: "Share" }, { buttonClass: "social-network-linkedin", path: "https://www.linkedin.com/cws/share?url=", tooltip: "Share this page on linkedin", iconClass: "icon-linkedin", linkText: "Share" }, { buttonClass: "social-network-instagram", path: "https://www.instagram.com/", tooltip: "Share this page on instagram", iconClass: "icon-instagram", linkText: "Share" }], PC = {
19945
+ }, FC = { toggleSwitch: !0, labelText: "I accept that anonymous data will be send to the platform I share this page on and accept the <a href='/content/fancybox-content.html' class='fancybox'>Data Privacy</a>!", required: !0 }, PC = [{ buttonClass: "social-network-facebook", path: "https://www.facebook.com/sharer/sharer.php?u=", tooltip: "Share this page on facebook", iconClass: "icon-facebook", linkText: "Share" }, { buttonClass: "social-network-x", path: "https://twitter.com/home?status=", tooltip: "Share this page on X", iconClass: "icon-x", linkText: "Share" }, { buttonClass: "social-network-xing", path: "https://www.xing.com/spi/shares/new?sc_p=b7910_cb&amp;url=", tooltip: "Share this page on xing", iconClass: "icon-xing", linkText: "Share" }, { buttonClass: "social-network-linkedin", path: "https://www.linkedin.com/cws/share?url=", tooltip: "Share this page on linkedin", iconClass: "icon-linkedin", linkText: "Share" }, { buttonClass: "social-network-instagram", path: "https://www.instagram.com/", tooltip: "Share this page on instagram", iconClass: "icon-instagram", linkText: "Share" }], MC = {
19922
19946
  cmdFormElement: FC,
19923
- networks: MC
19947
+ networks: PC
19924
19948
  }, VC = [
19925
19949
  {
19926
19950
  text: "Tab 1",
@@ -20892,7 +20916,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
20892
20916
  text: "Zimbabwe",
20893
20917
  value: "zw"
20894
20918
  }
20895
- ], QC = "comand-component-library", XC = "4.2.92", $C = "GPL-3.0-only", e1 = "CoManD-UI", t1 = "module", n1 = { prepublishOnly: "npm run build-lib", dev: "vite", build: "vite build", "build-lib": "vite build && gulp", preview: "vite preview" }, i1 = ["dist", "src"], l1 = { ".": "./dist/comand-component-library.js", "./css.js": "./src/css.js", "./comand-component-library.css": "./dist/comand-component-library.css", "./variables.scss": "./src/assets/styles/variables.scss", "./export-example-data.js": "./src/assets/data/export-example-data.js", "./countries.json": "./src/assets/lists-of-data/countries.json", "./currencies.json": "./src/assets/lists-of-data/currencies.json", "./dial-codes.json": "./src/assets/lists-of-data/dial-codes.json", "./us-cities.json": "./src/assets/lists-of-data/us-cities.json" }, o1 = { "clickout-event": "^1.1.2", "comand-frontend-framework": "^4.3.25", "comand-ui-iconfonts": "^1.0.19", "core-js": "^3.20.1", prismjs: "^1.27.0", vue: "^3.5.25", "vue-router": "^4.0.12", vuex: "^4.0.2" }, a1 = { "@iconify/vue": "^4.0.0", "@vitejs/plugin-vue": "^6.0.2", "@vue/test-utils": "^2.0.0-0", axios: "^1.7.2", gulp: "^4.0.2", sass: "^1.54.9", "unplugin-vue-components": "^0.24.0", vite: "^7.2.4", "vue-jest": "^5.0.0-0" }, s1 = {
20919
+ ], QC = "comand-component-library", XC = "4.2.93", $C = "GPL-3.0-only", e1 = "CoManD-UI", t1 = "module", n1 = { prepublishOnly: "npm run build-lib", dev: "vite", build: "vite build", "build-lib": "vite build && gulp", preview: "vite preview" }, i1 = ["dist", "src"], l1 = { ".": "./dist/comand-component-library.js", "./css.js": "./src/css.js", "./comand-component-library.css": "./dist/comand-component-library.css", "./variables.scss": "./src/assets/styles/variables.scss", "./export-example-data.js": "./src/assets/data/export-example-data.js", "./countries.json": "./src/assets/lists-of-data/countries.json", "./currencies.json": "./src/assets/lists-of-data/currencies.json", "./dial-codes.json": "./src/assets/lists-of-data/dial-codes.json", "./us-cities.json": "./src/assets/lists-of-data/us-cities.json" }, o1 = { "clickout-event": "^1.1.2", "comand-frontend-framework": "^4.3.25", "comand-ui-iconfonts": "^1.0.19", "core-js": "^3.20.1", prismjs: "^1.27.0", vue: "^3.5.25", "vue-router": "^4.0.12", vuex: "^4.0.2" }, a1 = { "@iconify/vue": "^4.0.0", "@vitejs/plugin-vue": "^6.0.2", "@vue/test-utils": "^2.0.0-0", axios: "^1.7.2", gulp: "^4.0.2", sass: "^1.54.9", "unplugin-vue-components": "^0.24.0", vite: "^7.2.4", "vue-jest": "^5.0.0-0" }, s1 = {
20896
20920
  name: QC,
20897
20921
  version: XC,
20898
20922
  license: $C,
@@ -22160,7 +22184,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
22160
22184
  },
22161
22185
  // assign data from json files to data-properties
22162
22186
  addressData: ll,
22163
- bankAccountData: Px,
22187
+ bankAccountData: Mx,
22164
22188
  boxProductData: Ax,
22165
22189
  boxUserData: Vx,
22166
22190
  breadcrumbsData: qx,
@@ -22188,7 +22212,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
22188
22212
  selectOptionsData: OC,
22189
22213
  slideshowData: LC,
22190
22214
  smartSearchData: DC,
22191
- socialNetworksData: PC,
22215
+ socialNetworksData: MC,
22192
22216
  tableDataSmall: RC,
22193
22217
  tableDataLarge: KC,
22194
22218
  tabsData: VC,
@@ -22431,7 +22455,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
22431
22455
  }, T1 = {
22432
22456
  class: "headline-demopage",
22433
22457
  id: "section-address-data"
22434
- }, S1 = { class: "flex-container" }, _1 = { class: "flex-container" }, O1 = { class: "list-status" }, L1 = { class: "error" }, I1 = { class: "flex-container" }, B1 = { class: "headline-demopage" }, D1 = { class: "flex-container" }, F1 = { class: "flex-container" }, M1 = { class: "flex-container" }, P1 = { class: "flex-container" }, V1 = { class: "flex-container" }, A1 = { class: "headline-demopage" }, E1 = { class: "flex-container" }, H1 = { class: "flex-container flex-items-flex-none" }, q1 = {
22458
+ }, S1 = { class: "flex-container" }, _1 = { class: "flex-container" }, O1 = { class: "list-status" }, L1 = { class: "error" }, I1 = { class: "flex-container" }, B1 = { class: "headline-demopage" }, D1 = { class: "flex-container" }, F1 = { class: "flex-container" }, P1 = { class: "flex-container" }, M1 = { class: "flex-container" }, V1 = { class: "flex-container" }, A1 = { class: "headline-demopage" }, E1 = { class: "flex-container" }, H1 = { class: "flex-container flex-items-flex-none" }, q1 = {
22435
22459
  class: "inline",
22436
22460
  for: "range-value"
22437
22461
  }, R1 = ["disabled"], j1 = { for: "range-slider" }, U1 = ["disabled"], N1 = { class: "label inline" }, z1 = { class: "flex-container flex-items-flex-none" }, W1 = { class: "label inline" }, G1 = { class: "flex-container flex-items-flex-none" }, K1 = { class: "label inline" }, Y1 = { class: "flex-container flex-items-flex-none" }, J1 = { class: "label inline" }, Z1 = { class: "flex-container flex-items-flex-none" }, Q1 = {
@@ -22482,7 +22506,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
22482
22506
  }, kv = {
22483
22507
  class: "headline-demopage",
22484
22508
  id: "section-multistep-form-wrapper"
22485
- }, wv = ["onClick"], Tv = ["onClick"], Sv = ["onClick"], _v = { class: "input-wrapper" }, Ov = { class: "flex-container" }, Lv = ["onClick"], Iv = { key: 0 }, Bv = ["onClick"], Dv = { key: 0 }, Fv = ["onClick"], Mv = { key: 0 }, Pv = { key: 0 }, Vv = { key: 0 }, Av = { class: "button-wrapper reverse justify-content-space-between" }, Ev = {
22509
+ }, wv = ["onClick"], Tv = ["onClick"], Sv = ["onClick"], _v = { class: "input-wrapper" }, Ov = { class: "flex-container" }, Lv = ["onClick"], Iv = { key: 0 }, Bv = ["onClick"], Dv = { key: 0 }, Fv = ["onClick"], Pv = { key: 0 }, Mv = { key: 0 }, Vv = { key: 0 }, Av = { class: "button-wrapper reverse justify-content-space-between" }, Ev = {
22486
22510
  class: "headline-demopage",
22487
22511
  id: "section-newsletter-subscription"
22488
22512
  }, Hv = {
@@ -22553,7 +22577,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
22553
22577
  id: "content"
22554
22578
  };
22555
22579
  function rk(e, t, n, s, i, l) {
22556
- const d = Xt, c = vi, u = lh, h = Zt, p = wi, b = mh, S = il, I = hi, L = Ti, O = K, V = Mh, q = Jt, N = Kf, j = Yt, Y = gi, ge = or, H = mr, W = xi, se = ki, ke = Ec, ee = Wc, dl = Cm, ul = Oi, Re = U, Le = R, on = oe, cl = Em, ml = Nm, te = he, pl = sp, fl = Mx, hl = Li, gl = de("router-view"), an = Bi, rt = ve, sn = Np, yl = Yp, bl = vf, xl = Vf, Cl = Rf, vl = Ii, kl = Xb, dt = Qf, rn = rh, wl = kh, Tl = Ih, Sl = Di, _l = Rh, dn = Qh, Ol = Fi, Ll = Ci, ut = pg, Il = yi, Bl = yg, ct = pi, Dl = kb, Fl = ol, Ml = hm, Pl = cm, Vl = Xd, Al = Ib, El = Ul("fancybox");
22580
+ const d = Xt, c = vi, u = lh, h = Zt, p = wi, b = mh, S = il, I = hi, L = Ti, O = K, V = Ph, q = Jt, N = Kf, j = Yt, Y = gi, ge = or, H = mr, W = xi, se = ki, ke = Ec, ee = Wc, dl = Cm, ul = Oi, Re = U, Le = R, on = oe, cl = Em, ml = Nm, te = he, pl = sp, fl = Px, hl = Li, gl = de("router-view"), an = Bi, rt = ve, sn = Np, yl = Yp, bl = vf, xl = Vf, Cl = Rf, vl = Ii, kl = Xb, dt = Qf, rn = rh, wl = kh, Tl = Ih, Sl = Di, _l = Rh, dn = Qh, Ol = Fi, Ll = Ci, ut = pg, Il = yi, Bl = yg, ct = pi, Dl = kb, Fl = ol, Pl = hm, Ml = cm, Vl = Xd, Al = Ib, El = Ul("fancybox");
22557
22581
  return z((a(), r("div", {
22558
22582
  class: "page-wrapper",
22559
22583
  id: l.templateId
@@ -22924,7 +22948,7 @@ function rk(e, t, n, s, i, l) {
22924
22948
  }, { useCustomTooltip: !1 }), null, 16, ["status", "disabled"])
22925
22949
  ]),
22926
22950
  t[163] || (t[163] = o("h3", null, "Inputfields in Columns", -1)),
22927
- o("div", M1, [
22951
+ o("div", P1, [
22928
22952
  f(O, {
22929
22953
  element: "input",
22930
22954
  type: "text",
@@ -22970,7 +22994,7 @@ function rk(e, t, n, s, i, l) {
22970
22994
  disabled: i.disabledStatus
22971
22995
  }, null, 8, ["modelValue", "status", "disabled"])
22972
22996
  ]),
22973
- o("div", P1, [
22997
+ o("div", M1, [
22974
22998
  f(O, {
22975
22999
  labelText: "Label for emailfield (with icon):",
22976
23000
  element: "input",
@@ -24650,7 +24674,7 @@ function rk(e, t, n, s, i, l) {
24650
24674
  })
24651
24675
  ]),
24652
24676
  t[278] || (t[278] = o("h3", null, "Data provided by property", -1)),
24653
- f(sn, null, {
24677
+ f(sn, { requiredPages: [1, 2] }, {
24654
24678
  "page-1": v((y) => [
24655
24679
  t[265] || (t[265] = o("h3", null, "Page 1 - all fields required", -1)),
24656
24680
  f(Y, {
@@ -24766,9 +24790,10 @@ function rk(e, t, n, s, i, l) {
24766
24790
  F(" props.formDataForPage: " + g(y.formDataForPage), 1)
24767
24791
  ], 64)) : (a(), r(w, { key: 0 }, [
24768
24792
  t[270] || (t[270] = o("h3", null, "Page 4", -1)),
24793
+ F(" props.atleastOneStepWithError: " + g(y.atleastOneStepWithError) + " ", 1),
24769
24794
  f(Y, {
24770
24795
  cmdHeadline: { headlineText: "Confirmation", headlineLevel: 3 },
24771
- submitButton: { disabled: y.atleastOneStepWithError, type: "button" },
24796
+ submitButton: { disabled: y.atleastOneStepWithError || !i.dataPrivacyChecked, type: "button" },
24772
24797
  cancelButton: { show: !1 },
24773
24798
  onSubmit: l.validateForm
24774
24799
  }, {
@@ -24782,15 +24807,11 @@ function rk(e, t, n, s, i, l) {
24782
24807
  id: "confirm-data-privac",
24783
24808
  required: !0,
24784
24809
  modelValue: i.dataPrivacyChecked,
24785
- "onUpdate:modelValue": [
24786
- t[99] || (t[99] = (M) => i.dataPrivacyChecked = M),
24787
- (M) => l.setValue(M, "confirm-data-privacy", y)
24788
- ],
24789
- onValidationStatusChange: (M) => l.setValidationStatusCheckbox(M, "confirm-data-privacy", y)
24790
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onValidationStatusChange"])
24810
+ "onUpdate:modelValue": t[99] || (t[99] = (M) => i.dataPrivacyChecked = M)
24811
+ }, null, 8, ["modelValue"])
24791
24812
  ]),
24792
- _: 2
24793
- }, 1032, ["submitButton", "onSubmit"])
24813
+ _: 1
24814
+ }, 8, ["submitButton", "onSubmit"])
24794
24815
  ], 64))
24795
24816
  ]),
24796
24817
  _: 1
@@ -24825,11 +24846,11 @@ function rk(e, t, n, s, i, l) {
24825
24846
  ]),
24826
24847
  "page-3": v((y) => [
24827
24848
  t[275] || (t[275] = F(" Content Page 3 ", -1)),
24828
- y.hasError ? (a(), r("span", Mv, "Error")) : m("", !0)
24849
+ y.hasError ? (a(), r("span", Pv, "Error")) : m("", !0)
24829
24850
  ]),
24830
24851
  "page-4": v((y) => [
24831
24852
  t[276] || (t[276] = F(" Content Page 4 ", -1)),
24832
- y.hasError ? (a(), r("span", Pv, "Error")) : m("", !0)
24853
+ y.hasError ? (a(), r("span", Mv, "Error")) : m("", !0)
24833
24854
  ]),
24834
24855
  "page-5": v((y) => [
24835
24856
  t[277] || (t[277] = F(" Content Page 5 ", -1)),
@@ -25500,7 +25521,7 @@ function rk(e, t, n, s, i, l) {
25500
25521
  ])]),
25501
25522
  _: 1
25502
25523
  }),
25503
- f(Ml),
25524
+ f(Pl),
25504
25525
  f(Vl, {
25505
25526
  show: i.fancyBoxCookieDisclaimer,
25506
25527
  fancyBoxOptions: { closeIcon: { show: !1 } },
@@ -25509,7 +25530,7 @@ function rk(e, t, n, s, i, l) {
25509
25530
  defaultAriaLabelText: "Cookie Disclaimer"
25510
25531
  }, {
25511
25532
  default: v(() => [
25512
- f(Pl, {
25533
+ f(Ml, {
25513
25534
  cookieOptions: i.cookieDisclaimerData,
25514
25535
  onCloseCookieDisclaimer: l.closeCookieDisclaimer,
25515
25536
  modelValue: i.acceptedCookies,
@@ -25698,7 +25719,7 @@ export {
25698
25719
  kh as CmdSiteSearch,
25699
25720
  nt as CmdSlideButton,
25700
25721
  Ih as CmdSlideshow,
25701
- Mh as CmdSmartSearch,
25722
+ Ph as CmdSmartSearch,
25702
25723
  Di as CmdSocialNetworks,
25703
25724
  Rh as CmdSwitchLanguage,
25704
25725
  ve as CmdSystemMessage,
@@ -25718,13 +25739,13 @@ export {
25718
25739
  qk as DirTelephone,
25719
25740
  Ce as EditComponentWrapper,
25720
25741
  X as I18n,
25721
- Mb as MultipleBoxWrapper,
25742
+ Pb as MultipleBoxWrapper,
25722
25743
  Eb as MultipleListsOfLinks,
25723
25744
  jk as capitalizeFirstLetter,
25724
25745
  fi as createHtmlId,
25725
25746
  Ae as createUuid,
25726
- Mk as currentDate,
25727
- Pk as currentTime,
25747
+ Pk as currentDate,
25748
+ Mk as currentTime,
25728
25749
  al as formatDate,
25729
25750
  ex as formatTime,
25730
25751
  Nk as fullName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.2.92",
3
+ "version": "4.2.93",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -1318,7 +1318,7 @@
1318
1318
  </a>
1319
1319
  </h2>
1320
1320
  <h3>Data provided by property</h3>
1321
- <CmdMultistepFormWrapper>
1321
+ <CmdMultistepFormWrapper :requiredPages="[1, 2]">
1322
1322
  <template v-slot:page-1="props">
1323
1323
  <h3>Page 1 - all fields required</h3>
1324
1324
  <CmdForm
@@ -1406,9 +1406,10 @@
1406
1406
  <template v-slot:page-last="props">
1407
1407
  <template v-if="!confirmDataPrivacy">
1408
1408
  <h3>Page 4</h3>
1409
+ props.atleastOneStepWithError: {{ props.atleastOneStepWithError }}
1409
1410
  <CmdForm
1410
1411
  :cmdHeadline=" { headlineText: 'Confirmation', headlineLevel: 3 }"
1411
- :submitButton="{ disabled : props.atleastOneStepWithError, type: 'button' }"
1412
+ :submitButton="{ disabled : props.atleastOneStepWithError || !dataPrivacyChecked, type: 'button' }"
1412
1413
  :cancelButton="{ show: false }"
1413
1414
  @submit="validateForm"
1414
1415
  >
@@ -1421,8 +1422,6 @@
1421
1422
  id="confirm-data-privac"
1422
1423
  :required="true"
1423
1424
  v-model="dataPrivacyChecked"
1424
- @update:modelValue="setValue($event, 'confirm-data-privacy', props)"
1425
- @validation-status-change="setValidationStatusCheckbox($event, 'confirm-data-privacy', props)"
1426
1425
  />
1427
1426
  </CmdForm>
1428
1427
  </template>
@@ -17,8 +17,11 @@
17
17
 
18
18
  <!-- begin main content for step -->
19
19
  <div v-show="step === currentPage" :class="'multistep-page-' + step" v-for="(step, index) in numberOfPages" :key="index">
20
- <CmdSystemMessage v-if="validationStatusForSteps.some(item => item.page === step)" :systemMessage="getSystemMessage(step)" validationStatus="error" />
21
-
20
+ <CmdSystemMessage
21
+ v-if="validationStatusForSteps.some(item => item.page === currentPage)"
22
+ :systemMessage="getSystemMessage(currentPage)"
23
+ validationStatus="error"
24
+ />
22
25
  <!-- begin slot for page content -->
23
26
  <slot
24
27
  :name="'page-' + step"
@@ -33,6 +36,10 @@
33
36
  <!-- end main content for step -->
34
37
 
35
38
  <div v-show="currentPage === numberOfPages" class="multistep-page-last">
39
+ <CmdSystemMessage v-if="pagesWithError.length" validationStatus="error">
40
+ <p>Please fill all required fields on the pages {{ pagesWithError.join(", ") }} correctly!</p>
41
+ </CmdSystemMessage>
42
+
36
43
  <!-- begin slot for last step -->
37
44
  <slot
38
45
  name="page-last"
@@ -76,6 +83,10 @@ export default {
76
83
  }
77
84
  },
78
85
  props: {
86
+ requiredPages: {
87
+ type: Array,
88
+ default: []
89
+ },
79
90
  /**
80
91
  * properties for CmdMultistepFormProgressBar-component
81
92
  */
@@ -164,9 +175,29 @@ export default {
164
175
  }
165
176
  },
166
177
  computed: {
167
- // check if at leat one step has status 'error'
178
+ pagesWithError() {
179
+ if(this.inputMade.length === 0) {
180
+ return this.requiredPages
181
+ }
182
+ let errorPages = new Set(this.requiredPages).difference(new Set(this.inputMade))
183
+
184
+ for(let i = 0; i < this.validationStatusForSteps.length; i++) {
185
+ errorPages.add(this.validationStatusForSteps[i].page)
186
+ }
187
+
188
+ return [...errorPages].toSorted()
189
+ },
190
+ // check if at least one step has status 'error'
168
191
  atleastOneStepWithError() {
169
- return this.validationStatusForSteps.length > 0 || this.inputMade.length === 0
192
+ if(this.validationStatusForSteps.length > 0 || this.inputMade.length === 0) {
193
+ return true
194
+ }
195
+ const requiredPagesSet = new Set(this.requiredPages)
196
+ const inputMadeSet = new Set(this.inputMade)
197
+ console.log("requiredPagesSet", requiredPagesSet)
198
+ console.log("inputMadeSet", inputMadeSet)
199
+ return !requiredPagesSet.isSubsetOf(inputMadeSet) // check if all requiredPages are included in inputMade
200
+
170
201
  },
171
202
  // check if a page ha
172
203
  pageHasError() {