comand-component-library 4.2.94 → 4.2.95

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.
@@ -249,33 +249,33 @@ function lo(e, t) {
249
249
  height: n.height
250
250
  };
251
251
  let l = n.body;
252
- [n, s].forEach((I) => {
253
- const L = [], O = I.hFlip, V = I.vFlip;
254
- let q = I.rotate;
255
- O ? V ? q += 2 : (L.push(
252
+ [n, s].forEach((L) => {
253
+ const I = [], O = L.hFlip, V = L.vFlip;
254
+ let q = L.rotate;
255
+ O ? V ? q += 2 : (I.push(
256
256
  "translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
257
- ), L.push("scale(-1 1)"), i.top = i.left = 0) : V && (L.push(
257
+ ), I.push("scale(-1 1)"), i.top = i.left = 0) : V && (I.push(
258
258
  "translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
259
- ), L.push("scale(1 -1)"), i.top = i.left = 0);
259
+ ), I.push("scale(1 -1)"), i.top = i.left = 0);
260
260
  let N;
261
261
  switch (q < 0 && (q -= Math.floor(q / 4) * 4), q = q % 4, q) {
262
262
  case 1:
263
- N = i.height / 2 + i.top, L.unshift(
263
+ N = i.height / 2 + i.top, I.unshift(
264
264
  "rotate(90 " + N.toString() + " " + N.toString() + ")"
265
265
  );
266
266
  break;
267
267
  case 2:
268
- L.unshift(
268
+ I.unshift(
269
269
  "rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")"
270
270
  );
271
271
  break;
272
272
  case 3:
273
- N = i.width / 2 + i.left, L.unshift(
273
+ N = i.width / 2 + i.left, I.unshift(
274
274
  "rotate(-90 " + N.toString() + " " + N.toString() + ")"
275
275
  );
276
276
  break;
277
277
  }
278
- q % 2 === 1 && (i.left !== i.top && (N = i.left, i.left = i.top, i.top = N), i.width !== i.height && (N = i.width, i.width = i.height, i.height = N)), L.length && (l = '<g transform="' + L.join(" ") + '">' + l + "</g>");
278
+ q % 2 === 1 && (i.left !== i.top && (N = i.left, i.left = i.top, i.top = N), i.width !== i.height && (N = i.width, i.width = i.height, i.height = N)), I.length && (l = '<g transform="' + I.join(" ") + '">' + l + "</g>");
279
279
  });
280
280
  const d = s.width, c = s.height, u = i.width, h = i.height;
281
281
  let p, b;
@@ -561,18 +561,18 @@ function So(e, t, n, s) {
561
561
  } else
562
562
  d = e.resources.slice(l).concat(e.resources.slice(0, l));
563
563
  const c = Date.now();
564
- let u = "pending", h = 0, p, b = null, S = [], I = [];
565
- typeof s == "function" && I.push(s);
566
- function L() {
564
+ let u = "pending", h = 0, p, b = null, S = [], L = [];
565
+ typeof s == "function" && L.push(s);
566
+ function I() {
567
567
  b && (clearTimeout(b), b = null);
568
568
  }
569
569
  function O() {
570
- u === "pending" && (u = "aborted"), L(), S.forEach((H) => {
570
+ u === "pending" && (u = "aborted"), I(), S.forEach((H) => {
571
571
  H.status === "pending" && (H.status = "aborted");
572
572
  }), S = [];
573
573
  }
574
574
  function V(H, W) {
575
- W && (I = []), typeof H == "function" && I.push(H);
575
+ W && (L = []), typeof H == "function" && L.push(H);
576
576
  }
577
577
  function q() {
578
578
  return {
@@ -586,7 +586,7 @@ function So(e, t, n, s) {
586
586
  };
587
587
  }
588
588
  function N() {
589
- u = "failed", I.forEach((H) => {
589
+ u = "failed", L.forEach((H) => {
590
590
  H(void 0, p);
591
591
  });
592
592
  }
@@ -615,23 +615,23 @@ function So(e, t, n, s) {
615
615
  p = se, S.length || (d.length ? ge() : N());
616
616
  return;
617
617
  }
618
- if (L(), j(), !e.random) {
618
+ if (I(), j(), !e.random) {
619
619
  const ee = e.resources.indexOf(H.resource);
620
620
  ee !== -1 && ee !== e.index && (e.index = ee);
621
621
  }
622
- u = "completed", I.forEach((ee) => {
622
+ u = "completed", L.forEach((ee) => {
623
623
  ee(se);
624
624
  });
625
625
  }
626
626
  function ge() {
627
627
  if (u !== "pending")
628
628
  return;
629
- L();
629
+ I();
630
630
  const H = d.shift();
631
631
  if (H === void 0) {
632
632
  if (S.length) {
633
633
  b = setTimeout(() => {
634
- L(), u === "pending" && (j(), N());
634
+ I(), u === "pending" && (j(), N());
635
635
  }, e.timeout);
636
636
  return;
637
637
  }
@@ -914,8 +914,8 @@ const Mo = (e, t) => {
914
914
  const b = i[h] || (i[h] = /* @__PURE__ */ Object.create(null));
915
915
  b[p] || (b[p] = []);
916
916
  }), s.pending.forEach((u) => {
917
- const { provider: h, prefix: p, name: b } = u, S = be(h, p), I = S.pendingIcons || (S.pendingIcons = /* @__PURE__ */ new Set());
918
- I.has(b) || (I.add(b), i[h][p].push(b));
917
+ const { provider: h, prefix: p, name: b } = u, S = be(h, p), L = S.pendingIcons || (S.pendingIcons = /* @__PURE__ */ new Set());
918
+ L.has(b) || (L.add(b), i[h][p].push(b));
919
919
  }), l.forEach((u) => {
920
920
  const { provider: h, prefix: p } = u;
921
921
  i[h][p].length && Po(u, i[h][p]);
@@ -1068,18 +1068,18 @@ const Tn = (e, t) => {
1068
1068
  let O = 0, V = t.id;
1069
1069
  return typeof V == "string" && (V = V.replace(/-/g, "_")), s.innerHTML = ro(u.body, V ? () => V + "ID" + O++ : "iconifyVue"), un("svg", s);
1070
1070
  }
1071
- const { body: p, width: b, height: S } = e, I = i === "mask" || (i === "bg" ? !1 : p.indexOf("currentColor") !== -1), L = qo(p, {
1071
+ const { body: p, width: b, height: S } = e, L = i === "mask" || (i === "bg" ? !1 : p.indexOf("currentColor") !== -1), I = qo(p, {
1072
1072
  ...h,
1073
1073
  width: b + "",
1074
1074
  height: S + ""
1075
1075
  });
1076
1076
  return s.style = {
1077
1077
  ...l,
1078
- "--svg": jo(L),
1078
+ "--svg": jo(I),
1079
1079
  width: wn(h.width),
1080
1080
  height: wn(h.height),
1081
1081
  ...No,
1082
- ...I ? Lt : mi,
1082
+ ...L ? Lt : mi,
1083
1083
  ...c
1084
1084
  }, un("span", s);
1085
1085
  };
@@ -5402,38 +5402,44 @@ function ud(e, t, n, s, i, l) {
5402
5402
  class: b.htmlClass
5403
5403
  }, { ref_for: !0 }, b, {
5404
5404
  modelValue: i.formValues[b.name],
5405
- "onUpdate:modelValue": (I) => i.formValues[b.name] = I,
5406
- onValidationStatusChange: (I) => l.formElementHasError(I, b.name)
5405
+ "onUpdate:modelValue": (L) => i.formValues[b.name] = L,
5406
+ onValidationStatusChange: (L) => l.formElementHasError(L, b.name)
5407
5407
  }), null, 16, ["class", "modelValue", "onUpdate:modelValue", "onValidationStatusChange"])) : m("", !0),
5408
5408
  b.component === "CmdFakeSelect" ? (a(), C(h, T({
5409
5409
  key: 1,
5410
5410
  class: b.htmlClass
5411
5411
  }, { ref_for: !0 }, b, {
5412
5412
  modelValue: i.formValues[b.name],
5413
- "onUpdate:modelValue": (I) => i.formValues[b.name] = I
5413
+ "onUpdate:modelValue": (L) => i.formValues[b.name] = L
5414
5414
  }), null, 16, ["class", "modelValue", "onUpdate:modelValue"])) : b.component === "CmdInputGroup" ? (a(), C(p, T({
5415
5415
  key: 2,
5416
5416
  class: b.htmlClass
5417
5417
  }, { ref_for: !0 }, b, {
5418
5418
  modelValue: i.formValues[b.name],
5419
- "onUpdate:modelValue": (I) => i.formValues[b.name] = I
5419
+ "onUpdate:modelValue": (L) => i.formValues[b.name] = L
5420
5420
  }), null, 16, ["class", "modelValue", "onUpdate:modelValue"])) : b.component === "flexContainer" || b.component === "inputWrapper" ? (a(), r("div", {
5421
5421
  key: 3,
5422
5422
  class: x(b.component === "flexContainer" ? "flex-container" : "input-wrapper")
5423
5423
  }, [
5424
- (a(!0), r(w, null, P(b.formElements, (I, L) => (a(), r(w, { key: L }, [
5425
- !I.component || I.component === "CmdFormElement" ? (a(), C(u, T({
5426
- key: L,
5427
- class: I.htmlClass
5428
- }, { ref_for: !0 }, I, {
5429
- modelValue: i.formValues[I.name],
5430
- "onUpdate:modelValue": (O) => i.formValues[I.name] = O,
5431
- onValidationStatusChange: (O) => l.formElementHasError(O, I.name)
5432
- }), null, 16, ["class", "modelValue", "onUpdate:modelValue", "onValidationStatusChange"])) : I.component === "CmdInputGroup" ? (a(), C(p, T({
5424
+ (a(!0), r(w, null, P(b.formElements, (L, I) => (a(), r(w, { key: I }, [
5425
+ !L.component || L.component === "CmdFormElement" ? (a(), C(u, T({
5426
+ key: I,
5427
+ class: L.htmlClass
5428
+ }, { ref_for: !0 }, L, {
5429
+ modelValue: i.formValues[L.name],
5430
+ "onUpdate:modelValue": (O) => i.formValues[L.name] = O,
5431
+ onValidationStatusChange: (O) => l.formElementHasError(O, L.name)
5432
+ }), null, 16, ["class", "modelValue", "onUpdate:modelValue", "onValidationStatusChange"])) : L.component === "CmdFakeSelect" ? (a(), C(h, T({
5433
5433
  key: 1,
5434
- modelValue: i.formValues[I.name],
5435
- "onUpdate:modelValue": (O) => i.formValues[I.name] = O
5436
- }, { ref_for: !0 }, I), null, 16, ["modelValue", "onUpdate:modelValue"])) : m("", !0)
5434
+ class: L.htmlClass
5435
+ }, { ref_for: !0 }, L, {
5436
+ modelValue: i.formValues[L.name],
5437
+ "onUpdate:modelValue": (O) => i.formValues[L.name] = O
5438
+ }), null, 16, ["class", "modelValue", "onUpdate:modelValue"])) : L.component === "CmdInputGroup" ? (a(), C(p, T({
5439
+ key: 2,
5440
+ modelValue: i.formValues[L.name],
5441
+ "onUpdate:modelValue": (O) => i.formValues[L.name] = O
5442
+ }, { ref_for: !0 }, L), null, 16, ["modelValue", "onUpdate:modelValue"])) : m("", !0)
5437
5443
  ], 64))), 128))
5438
5444
  ], 2)) : m("", !0)
5439
5445
  ], 64))), 128)),
@@ -7911,21 +7917,21 @@ function Vu(e, t, n, s, i, l) {
7911
7917
  default: v(() => [
7912
7918
  n.listContentType === "links" ? D(e.$slots, "default", { key: 0 }, () => [
7913
7919
  e.editModeContext ? (a(), r("li", Lu, [
7914
- (a(!0), r(w, null, P(e.links, (I, L) => (a(), C(u, {
7915
- key: "x" + L,
7920
+ (a(!0), r(w, null, P(e.links, (L, I) => (a(), C(u, {
7921
+ key: "x" + I,
7916
7922
  class: "edit-items",
7917
7923
  showComponentName: !1,
7918
7924
  componentTag: "ul",
7919
7925
  componentName: "CmdLinkItem",
7920
- componentProps: I,
7926
+ componentProps: L,
7921
7927
  allowedComponentTypes: [],
7922
- componentPath: ["props", "links", L],
7928
+ componentPath: ["props", "links", I],
7923
7929
  itemProvider: l.itemProvider
7924
7930
  }, {
7925
7931
  default: v(() => [
7926
7932
  f(c, {
7927
- class: x({ active: n.sectionAnchors && n.activeSection === L }),
7928
- link: I
7933
+ class: x({ active: n.sectionAnchors && n.activeSection === I }),
7934
+ link: L
7929
7935
  }, null, 8, ["class", "link"])
7930
7936
  ]),
7931
7937
  _: 2
@@ -7934,66 +7940,66 @@ function Vu(e, t, n, s, i, l) {
7934
7940
  key: 0,
7935
7941
  type: "button",
7936
7942
  class: "button confirm small",
7937
- onClick: t[1] || (t[1] = (...I) => l.onAddItem && l.onAddItem(...I))
7943
+ onClick: t[1] || (t[1] = (...L) => l.onAddItem && l.onAddItem(...L))
7938
7944
  }, [...t[2] || (t[2] = [
7939
7945
  o("span", { class: "icon-plus" }, null, -1),
7940
7946
  o("span", null, "Add new entry", -1)
7941
7947
  ])])) : m("", !0)
7942
- ])) : (a(!0), r(w, { key: 0 }, P(n.items, (I, L) => (a(), C(c, {
7943
- key: L,
7944
- class: x({ active: n.sectionAnchors && n.activeSection === L }),
7945
- link: I,
7948
+ ])) : (a(!0), r(w, { key: 0 }, P(n.items, (L, I) => (a(), C(c, {
7949
+ key: I,
7950
+ class: x({ active: n.sectionAnchors && n.activeSection === I }),
7951
+ link: L,
7946
7952
  onClick: t[0] || (t[0] = (O) => l.emitClick(O, e.linkType))
7947
7953
  }, null, 8, ["class", "link"]))), 128))
7948
7954
  ]) : m("", !0),
7949
7955
  n.listContentType === "images" ? D(e.$slots, "default", { key: 1 }, () => [
7950
- (a(!0), r(w, null, P(n.items, (I, L) => (a(), r("li", { key: L }, [
7951
- I.image.url ? (a(), r("a", {
7956
+ (a(!0), r(w, null, P(n.items, (L, I) => (a(), r("li", { key: I }, [
7957
+ L.image.url ? (a(), r("a", {
7952
7958
  key: 0,
7953
- href: I.image.url
7959
+ href: L.image.url
7954
7960
  }, [
7955
- f(h, T({ ref_for: !0 }, I), null, 16)
7961
+ f(h, T({ ref_for: !0 }, L), null, 16)
7956
7962
  ], 8, Iu)) : (a(), C(h, T({
7957
7963
  key: 1,
7958
7964
  ref_for: !0
7959
- }, I), null, 16))
7965
+ }, L), null, 16))
7960
7966
  ]))), 128))
7961
7967
  ]) : m("", !0),
7962
7968
  n.listContentType === "tags" ? D(e.$slots, "default", { key: 2 }, () => [
7963
- (a(!0), r(w, null, P(i.listOfTagItems, (I, L) => (a(), r("li", { key: L }, [
7969
+ (a(!0), r(w, null, P(i.listOfTagItems, (L, I) => (a(), r("li", { key: I }, [
7964
7970
  f(p, {
7965
- tagText: I,
7971
+ tagText: L,
7966
7972
  highlightLevel: n.highlightLevel,
7967
7973
  removeTagByClick: n.removeTagByClick,
7968
- onClick: k((O) => l.removeTag(e.event, L), ["prevent"])
7974
+ onClick: k((O) => l.removeTag(e.event, I), ["prevent"])
7969
7975
  }, null, 8, ["tagText", "highlightLevel", "removeTagByClick", "onClick"])
7970
7976
  ]))), 128))
7971
7977
  ]) : m("", !0)
7972
7978
  ]),
7973
7979
  _: 3
7974
7980
  }, 8, ["class"])) : (a(), r("dl", Bu, [
7975
- (a(!0), r(w, null, P(n.items, (I, L) => (a(), r(w, { key: L }, [
7981
+ (a(!0), r(w, null, P(n.items, (L, I) => (a(), r(w, { key: I }, [
7976
7982
  n.alignDescriptionTermRight ? m("", !0) : (a(), r("dt", Du, [
7977
- I.descriptionTerm?.cmdIcon?.iconClass ? (a(), C(b, T({
7983
+ L.descriptionTerm?.cmdIcon?.iconClass ? (a(), C(b, T({
7978
7984
  key: 0,
7979
7985
  ref_for: !0
7980
- }, I.descriptionTerm.cmdIcon), null, 16)) : m("", !0),
7981
- I.descriptionTerm?.text ? (a(), r("span", Fu, g(I.descriptionTerm?.text), 1)) : m("", !0)
7986
+ }, L.descriptionTerm.cmdIcon), null, 16)) : m("", !0),
7987
+ L.descriptionTerm?.text ? (a(), r("span", Fu, g(L.descriptionTerm?.text), 1)) : m("", !0)
7982
7988
  ])),
7983
7989
  o("dd", null, [
7984
- I.descriptionData.cmdLink !== void 0 ? (a(), C(S, T({
7990
+ L.descriptionData.cmdLink !== void 0 ? (a(), C(S, T({
7985
7991
  key: 0,
7986
7992
  ref_for: !0
7987
- }, I.descriptionData.cmdLink), null, 16)) : (a(), r(w, { key: 1 }, [
7988
- F(g(I.descriptionData.text), 1)
7993
+ }, L.descriptionData.cmdLink), null, 16)) : (a(), r(w, { key: 1 }, [
7994
+ F(g(L.descriptionData.text), 1)
7989
7995
  ], 64))
7990
7996
  ]),
7991
7997
  n.alignDescriptionTermRight ? (a(), r("dt", Pu, [
7992
- I.descriptionTerm?.cmdIcon?.iconClass ? (a(), C(b, T({
7998
+ L.descriptionTerm?.cmdIcon?.iconClass ? (a(), C(b, T({
7993
7999
  key: 0,
7994
8000
  ref_for: !0
7995
- }, I.descriptionTerm.cmdIcon), null, 16)) : m("", !0),
7996
- I.descriptionTerm?.text ? (a(), r("span", Mu, g(I.descriptionTerm?.text), 1)) : m("", !0)
8001
+ }, L.descriptionTerm.cmdIcon), null, 16)) : m("", !0),
8002
+ L.descriptionTerm?.text ? (a(), r("span", Mu, g(L.descriptionTerm?.text), 1)) : m("", !0)
7997
8003
  ])) : m("", !0)
7998
8004
  ], 64))), 128))
7999
8005
  ]))
@@ -9951,8 +9957,8 @@ const Em = /* @__PURE__ */ B(Pm, [["render", Am]]), Hm = {
9951
9957
  }
9952
9958
  };
9953
9959
  function Bn(e, t) {
9954
- const n = e.$el.querySelector(".zoom-container"), s = n.querySelector("img"), i = e.$el.querySelector(".zoom-overlay"), l = t.target.getBoundingClientRect().width, d = t.target.getBoundingClientRect().height, c = s.getBoundingClientRect().width, u = s.getBoundingClientRect().height, h = t.pageX - t.target.getBoundingClientRect().x - window.scrollX, p = t.pageY - t.target.getBoundingClientRect().y - window.scrollY, b = Math.min(l, n.getBoundingClientRect().width / c * l), S = Math.min(d, n.getBoundingClientRect().height / u * d), I = Dn(h - b / 2, 0, l - b), L = Dn(p - S / 2, 0, d - S), O = -(I * (c / l)), V = -(L * (u / d));
9955
- i.style.left = `${I}px`, i.style.top = `${L}px`, i.style.width = `${b}px`, i.style.height = `${S}px`, i.style.display = "block", s.style.marginLeft = `${O}px`, s.style.marginTop = `${V}px`;
9960
+ const n = e.$el.querySelector(".zoom-container"), s = n.querySelector("img"), i = e.$el.querySelector(".zoom-overlay"), l = t.target.getBoundingClientRect().width, d = t.target.getBoundingClientRect().height, c = s.getBoundingClientRect().width, u = s.getBoundingClientRect().height, h = t.pageX - t.target.getBoundingClientRect().x - window.scrollX, p = t.pageY - t.target.getBoundingClientRect().y - window.scrollY, b = Math.min(l, n.getBoundingClientRect().width / c * l), S = Math.min(d, n.getBoundingClientRect().height / u * d), L = Dn(h - b / 2, 0, l - b), I = Dn(p - S / 2, 0, d - S), O = -(L * (c / l)), V = -(I * (u / d));
9961
+ i.style.left = `${L}px`, i.style.top = `${I}px`, i.style.width = `${b}px`, i.style.height = `${S}px`, i.style.display = "block", s.style.marginLeft = `${O}px`, s.style.marginTop = `${V}px`;
9956
9962
  }
9957
9963
  function Dn(e, t, n) {
9958
9964
  return e < t ? t : e > n ? n : e;
@@ -10773,13 +10779,13 @@ function vp(e, t, n, s, i, l) {
10773
10779
  key: 2,
10774
10780
  "aria-expanded": i.openSubentry ? "true" : "false"
10775
10781
  }, [
10776
- (a(!0), r(w, null, P(p.subentries, (S, I) => (a(), r("li", { key: I }, [
10782
+ (a(!0), r(w, null, P(p.subentries, (S, L) => (a(), r("li", { key: L }, [
10777
10783
  S.type === "href" ? (a(), r("a", {
10778
10784
  key: 0,
10779
10785
  href: S.path,
10780
10786
  title: S.tooltip,
10781
10787
  target: S.target,
10782
- onClick: (L) => l.executeLink(L, S)
10788
+ onClick: (I) => l.executeLink(I, S)
10783
10789
  }, [
10784
10790
  S.iconClass ? (a(), C(d, {
10785
10791
  key: 0,
@@ -11189,6 +11195,10 @@ const Bi = /* @__PURE__ */ B(Pp, [["render", Hp]]), qp = {
11189
11195
  };
11190
11196
  },
11191
11197
  props: {
11198
+ defaultInputValues: {
11199
+ type: Object,
11200
+ required: !1
11201
+ },
11192
11202
  requiredPages: {
11193
11203
  type: Array,
11194
11204
  default: []
@@ -11330,6 +11340,19 @@ const Bi = /* @__PURE__ */ B(Pp, [["render", Hp]]), qp = {
11330
11340
  }
11331
11341
  };
11332
11342
  }
11343
+ },
11344
+ watch: {
11345
+ defaultInputValues: {
11346
+ handler() {
11347
+ if (this.formData = {}, this.defaultInputValues)
11348
+ for (const e in this.defaultInputValues)
11349
+ this.formData[e] = {
11350
+ ...this.defaultInputValues[e]
11351
+ };
11352
+ },
11353
+ immediate: !0,
11354
+ deep: !0
11355
+ }
11333
11356
  }
11334
11357
  }, Rp = { class: "cmd-multistepform-wrapper" }, jp = { class: "multistep-page-last" };
11335
11358
  function Up(e, t, n, s, i, l) {
@@ -15106,20 +15129,20 @@ function at(e, t, n) {
15106
15129
  const s = n.metaTokens, i = n.visitor || p, l = n.dots, d = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && _.isSpecCompliantForm(t);
15107
15130
  if (!_.isFunction(i))
15108
15131
  throw new TypeError("visitor must be a function");
15109
- function h(L) {
15110
- if (L === null) return "";
15111
- if (_.isDate(L))
15112
- return L.toISOString();
15113
- if (!u && _.isBlob(L))
15132
+ function h(I) {
15133
+ if (I === null) return "";
15134
+ if (_.isDate(I))
15135
+ return I.toISOString();
15136
+ if (!u && _.isBlob(I))
15114
15137
  throw new E("Blob is not supported. Use a Buffer instead.");
15115
- return _.isArrayBuffer(L) || _.isTypedArray(L) ? u && typeof Blob == "function" ? new Blob([L]) : Buffer.from(L) : L;
15138
+ return _.isArrayBuffer(I) || _.isTypedArray(I) ? u && typeof Blob == "function" ? new Blob([I]) : Buffer.from(I) : I;
15116
15139
  }
15117
- function p(L, O, V) {
15118
- let q = L;
15119
- if (L && !V && typeof L == "object") {
15140
+ function p(I, O, V) {
15141
+ let q = I;
15142
+ if (I && !V && typeof I == "object") {
15120
15143
  if (_.endsWith(O, "{}"))
15121
- O = s ? O : O.slice(0, -2), L = JSON.stringify(L);
15122
- else if (_.isArray(L) && ly(L) || (_.isFileList(L) || _.endsWith(O, "[]")) && (q = _.toArray(L)))
15144
+ O = s ? O : O.slice(0, -2), I = JSON.stringify(I);
15145
+ else if (_.isArray(I) && ly(I) || (_.isFileList(I) || _.endsWith(O, "[]")) && (q = _.toArray(I)))
15123
15146
  return O = Ni(O), q.forEach(function(j, Y) {
15124
15147
  !(_.isUndefined(j) || j === null) && t.append(
15125
15148
  // eslint-disable-next-line no-nested-ternary
@@ -15128,31 +15151,31 @@ function at(e, t, n) {
15128
15151
  );
15129
15152
  }), !1;
15130
15153
  }
15131
- return Bt(L) ? !0 : (t.append(Vn(V, O, l), h(L)), !1);
15154
+ return Bt(I) ? !0 : (t.append(Vn(V, O, l), h(I)), !1);
15132
15155
  }
15133
15156
  const b = [], S = Object.assign(oy, {
15134
15157
  defaultVisitor: p,
15135
15158
  convertValue: h,
15136
15159
  isVisitable: Bt
15137
15160
  });
15138
- function I(L, O) {
15139
- if (!_.isUndefined(L)) {
15140
- if (b.indexOf(L) !== -1)
15161
+ function L(I, O) {
15162
+ if (!_.isUndefined(I)) {
15163
+ if (b.indexOf(I) !== -1)
15141
15164
  throw Error("Circular reference detected in " + O.join("."));
15142
- b.push(L), _.forEach(L, function(q, N) {
15165
+ b.push(I), _.forEach(I, function(q, N) {
15143
15166
  (!(_.isUndefined(q) || q === null) && i.call(
15144
15167
  t,
15145
15168
  q,
15146
15169
  _.isString(N) ? N.trim() : N,
15147
15170
  O,
15148
15171
  S
15149
- )) === !0 && I(q, O ? O.concat(N) : [N]);
15172
+ )) === !0 && L(q, O ? O.concat(N) : [N]);
15150
15173
  }), b.pop();
15151
15174
  }
15152
15175
  }
15153
15176
  if (!_.isObject(e))
15154
15177
  throw new TypeError("data must be an object");
15155
- return I(e), t;
15178
+ return L(e), t;
15156
15179
  }
15157
15180
  function An(e) {
15158
15181
  const t = {
@@ -15622,8 +15645,8 @@ function _y(e, t) {
15622
15645
  S += n[b++], b = b % e;
15623
15646
  if (i = (i + 1) % e, i === l && (l = (l + 1) % e), h - d < t)
15624
15647
  return;
15625
- const I = p && h - p;
15626
- return I ? Math.round(S * 1e3 / I) : void 0;
15648
+ const L = p && h - p;
15649
+ return L ? Math.round(S * 1e3 / L) : void 0;
15627
15650
  };
15628
15651
  }
15629
15652
  function Oy(e, t) {
@@ -15822,13 +15845,13 @@ const Qi = (e) => {
15822
15845
  function b() {
15823
15846
  if (!p)
15824
15847
  return;
15825
- const I = Q.from(
15848
+ const L = Q.from(
15826
15849
  "getAllResponseHeaders" in p && p.getAllResponseHeaders()
15827
15850
  ), O = {
15828
15851
  data: !c || c === "text" || c === "json" ? p.responseText : p.response,
15829
15852
  status: p.status,
15830
15853
  statusText: p.statusText,
15831
- headers: I,
15854
+ headers: L,
15832
15855
  config: e,
15833
15856
  request: p
15834
15857
  };
@@ -15845,18 +15868,18 @@ const Qi = (e) => {
15845
15868
  }, p.onerror = function() {
15846
15869
  s(new E("Network Error", E.ERR_NETWORK, i, p)), p = null;
15847
15870
  }, p.ontimeout = function() {
15848
- let L = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
15871
+ let I = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
15849
15872
  const O = i.transitional || Gi;
15850
- i.timeoutErrorMessage && (L = i.timeoutErrorMessage), s(new E(
15851
- L,
15873
+ i.timeoutErrorMessage && (I = i.timeoutErrorMessage), s(new E(
15874
+ I,
15852
15875
  O.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
15853
15876
  i,
15854
15877
  p
15855
15878
  )), p = null;
15856
- }, l === void 0 && d.setContentType(null), "setRequestHeader" in p && _.forEach(d.toJSON(), function(L, O) {
15857
- p.setRequestHeader(O, L);
15858
- }), _.isUndefined(i.withCredentials) || (p.withCredentials = !!i.withCredentials), c && c !== "json" && (p.responseType = i.responseType), typeof i.onDownloadProgress == "function" && p.addEventListener("progress", Je(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && p.upload && p.upload.addEventListener("progress", Je(i.onUploadProgress)), (i.cancelToken || i.signal) && (u = (I) => {
15859
- p && (s(!I || I.type ? new Oe(null, e, p) : I), p.abort(), p = null);
15879
+ }, l === void 0 && d.setContentType(null), "setRequestHeader" in p && _.forEach(d.toJSON(), function(I, O) {
15880
+ p.setRequestHeader(O, I);
15881
+ }), _.isUndefined(i.withCredentials) || (p.withCredentials = !!i.withCredentials), c && c !== "json" && (p.responseType = i.responseType), typeof i.onDownloadProgress == "function" && p.addEventListener("progress", Je(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && p.upload && p.upload.addEventListener("progress", Je(i.onUploadProgress)), (i.cancelToken || i.signal) && (u = (L) => {
15882
+ p && (s(!L || L.type ? new Oe(null, e, p) : L), p.abort(), p = null);
15860
15883
  }, i.cancelToken && i.cancelToken.subscribe(u), i.signal && (i.signal.aborted ? u() : i.signal.addEventListener("abort", u)));
15861
15884
  const S = Sy(i.url);
15862
15885
  if (S && le.protocols.indexOf(S) === -1) {
@@ -15981,10 +16004,10 @@ const Hy = async (e) => {
15981
16004
  fetchOptions: S
15982
16005
  } = Qi(e);
15983
16006
  h = h ? (h + "").toLowerCase() : "text";
15984
- let [I, L] = i || l || d ? My([i, l], d) : [], O, V;
16007
+ let [L, I] = i || l || d ? My([i, l], d) : [], O, V;
15985
16008
  const q = () => {
15986
16009
  !O && setTimeout(() => {
15987
- I && I.unsubscribe();
16010
+ L && L.unsubscribe();
15988
16011
  }), O = !0;
15989
16012
  };
15990
16013
  let N;
@@ -16002,7 +16025,7 @@ const Hy = async (e) => {
16002
16025
  }
16003
16026
  _.isString(b) || (b = b ? "cors" : "omit"), V = new Request(t, {
16004
16027
  ...S,
16005
- signal: I,
16028
+ signal: L,
16006
16029
  method: n.toUpperCase(),
16007
16030
  headers: p.normalize().toJSON(),
16008
16031
  body: s,
@@ -16027,7 +16050,7 @@ const Hy = async (e) => {
16027
16050
  }
16028
16051
  h = h || "text";
16029
16052
  let ge = await Ze[_.findKey(Ze, h) || "text"](j, e);
16030
- return !Y && q(), L && L(), await new Promise((H, W) => {
16053
+ return !Y && q(), I && I(), await new Promise((H, W) => {
16031
16054
  Ji(H, W, {
16032
16055
  data: ge,
16033
16056
  headers: Q.from(j.headers),
@@ -16209,8 +16232,8 @@ let ye = class {
16209
16232
  );
16210
16233
  l && _.forEach(
16211
16234
  ["delete", "get", "head", "post", "put", "patch", "common"],
16212
- (L) => {
16213
- delete l[L];
16235
+ (I) => {
16236
+ delete l[I];
16214
16237
  }
16215
16238
  ), n.headers = Q.concat(d, l);
16216
16239
  const c = [];
@@ -16224,26 +16247,26 @@ let ye = class {
16224
16247
  });
16225
16248
  let p, b = 0, S;
16226
16249
  if (!u) {
16227
- const L = [zn.bind(this), void 0];
16228
- for (L.unshift.apply(L, c), L.push.apply(L, h), S = L.length, p = Promise.resolve(n); b < S; )
16229
- p = p.then(L[b++], L[b++]);
16250
+ const I = [zn.bind(this), void 0];
16251
+ for (I.unshift.apply(I, c), I.push.apply(I, h), S = I.length, p = Promise.resolve(n); b < S; )
16252
+ p = p.then(I[b++], I[b++]);
16230
16253
  return p;
16231
16254
  }
16232
16255
  S = c.length;
16233
- let I = n;
16256
+ let L = n;
16234
16257
  for (b = 0; b < S; ) {
16235
- const L = c[b++], O = c[b++];
16258
+ const I = c[b++], O = c[b++];
16236
16259
  try {
16237
- I = L(I);
16260
+ L = I(L);
16238
16261
  } catch (V) {
16239
16262
  O.call(this, V);
16240
16263
  break;
16241
16264
  }
16242
16265
  }
16243
16266
  try {
16244
- p = zn.call(this, I);
16245
- } catch (L) {
16246
- return Promise.reject(L);
16267
+ p = zn.call(this, L);
16268
+ } catch (I) {
16269
+ return Promise.reject(I);
16247
16270
  }
16248
16271
  for (b = 0, S = h.length; b < S; )
16249
16272
  p = p.then(h[b++], h[b++]);
@@ -19736,7 +19759,6 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
19736
19759
  type: "text",
19737
19760
  name: "form-element-text-surname",
19738
19761
  htmlClass: "form-element-text-class",
19739
- value: "",
19740
19762
  labelText: "Surname",
19741
19763
  placeholder: "Surname",
19742
19764
  required: !0,
@@ -19747,7 +19769,7 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
19747
19769
  type: "text",
19748
19770
  name: "form-element-text-first-name",
19749
19771
  htmlClass: "form-element-text-class",
19750
- value: "",
19772
+ value: "Raphael",
19751
19773
  labelText: "First Name",
19752
19774
  placeholder: "First Name",
19753
19775
  required: !0,
@@ -20917,7 +20939,7 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
20917
20939
  text: "Zimbabwe",
20918
20940
  value: "zw"
20919
20941
  }
20920
- ], QC = "comand-component-library", XC = "4.2.94", $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 = {
20942
+ ], QC = "comand-component-library", XC = "4.2.95", $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 = {
20921
20943
  name: QC,
20922
20944
  version: XC,
20923
20945
  license: $C,
@@ -22183,6 +22205,14 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
22183
22205
  linkType: ""
22184
22206
  }
22185
22207
  },
22208
+ multistepFormDefaultInputValues: {
22209
+ 1: {
22210
+ "form-element-text-surname": "Biock"
22211
+ },
22212
+ 2: {
22213
+ "page-2-telephone": "12345/67890"
22214
+ }
22215
+ },
22186
22216
  // assign data from json files to data-properties
22187
22217
  addressData: ll,
22188
22218
  bankAccountData: Mx,
@@ -22578,7 +22608,7 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
22578
22608
  id: "content"
22579
22609
  };
22580
22610
  function rk(e, t, n, s, i, l) {
22581
- 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");
22611
+ const d = Xt, c = vi, u = lh, h = Zt, p = wi, b = mh, S = il, L = hi, I = 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");
22582
22612
  return z((a(), r("div", {
22583
22613
  class: "page-wrapper",
22584
22614
  id: l.templateId
@@ -22819,7 +22849,7 @@ function rk(e, t, n, s, i, l) {
22819
22849
  })
22820
22850
  ]),
22821
22851
  o("div", S1, [
22822
- f(I, T({
22852
+ f(L, T({
22823
22853
  ref: "CmdAddressData",
22824
22854
  addressData: i.addressData
22825
22855
  }, e.cmdAddressDataSettingsData), null, 16, ["addressData"])
@@ -22888,7 +22918,7 @@ function rk(e, t, n, s, i, l) {
22888
22918
  ])
22889
22919
  ])
22890
22920
  ]),
22891
- f(L, {
22921
+ f(I, {
22892
22922
  modelValue: i.fakeSelectFilters,
22893
22923
  "onUpdate:modelValue": t[20] || (t[20] = (y) => i.fakeSelectFilters = y),
22894
22924
  selectedOptionsName: l.getOptionName
@@ -24675,8 +24705,12 @@ function rk(e, t, n, s, i, l) {
24675
24705
  })
24676
24706
  ]),
24677
24707
  t[278] || (t[278] = o("h3", null, "Data provided by property", -1)),
24678
- f(sn, { requiredPages: [1, 2] }, {
24708
+ f(sn, {
24709
+ requiredPages: [1, 2],
24710
+ defaultInputValues: i.multistepFormDefaultInputValues
24711
+ }, {
24679
24712
  "page-1": v((y) => [
24713
+ F(" multistepFormDefaultInputValues: " + g(i.multistepFormDefaultInputValues) + " ", 1),
24680
24714
  t[265] || (t[265] = o("h3", null, "Page 1 - all fields required", -1)),
24681
24715
  f(Y, {
24682
24716
  formElements: i.multistepFormWrapperPage1Data,
@@ -24705,7 +24739,7 @@ function rk(e, t, n, s, i, l) {
24705
24739
  default: v(() => [
24706
24740
  f(O, {
24707
24741
  element: "input",
24708
- type: "text",
24742
+ type: "tel",
24709
24743
  labelText: "Telephone:",
24710
24744
  name: "page-2-telephone",
24711
24745
  id: "page-2-telephone",
@@ -24815,7 +24849,7 @@ function rk(e, t, n, s, i, l) {
24815
24849
  ], 64))
24816
24850
  ]),
24817
24851
  _: 1
24818
- }),
24852
+ }, 8, ["defaultInputValues"]),
24819
24853
  t[279] || (t[279] = o("h3", null, "Data provided by slot", -1)),
24820
24854
  f(sn, null, {
24821
24855
  "progress-bar": v((y) => [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.2.94",
3
+ "version": "4.2.95",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -1318,8 +1318,10 @@
1318
1318
  </a>
1319
1319
  </h2>
1320
1320
  <h3>Data provided by property</h3>
1321
- <CmdMultistepFormWrapper :requiredPages="[1, 2]">
1321
+ <CmdMultistepFormWrapper :requiredPages="[1, 2]" :defaultInputValues="multistepFormDefaultInputValues">
1322
+
1322
1323
  <template v-slot:page-1="props">
1324
+ multistepFormDefaultInputValues: {{ multistepFormDefaultInputValues }}
1323
1325
  <h3>Page 1 - all fields required</h3>
1324
1326
  <CmdForm
1325
1327
  :formElements="multistepFormWrapperPage1Data"
@@ -1340,7 +1342,7 @@
1340
1342
  >
1341
1343
  <CmdFormElement
1342
1344
  element="input"
1343
- type="text"
1345
+ type="tel"
1344
1346
  labelText="Telephone:"
1345
1347
  name="page-2-telephone"
1346
1348
  id="page-2-telephone"
@@ -2160,6 +2162,14 @@ export default {
2160
2162
  linkType: ""
2161
2163
  }
2162
2164
  },
2165
+ multistepFormDefaultInputValues: {
2166
+ 1: {
2167
+ "form-element-text-surname": "Biock"
2168
+ },
2169
+ 2: {
2170
+ "page-2-telephone": "12345/67890"
2171
+ }
2172
+ },
2163
2173
 
2164
2174
  // assign data from json files to data-properties
2165
2175
  addressData,
@@ -4,7 +4,6 @@
4
4
  "type": "text",
5
5
  "name": "form-element-text-surname",
6
6
  "htmlClass": "form-element-text-class",
7
- "value": "",
8
7
  "labelText": "Surname",
9
8
  "placeholder": "Surname",
10
9
  "required": true,
@@ -15,7 +14,7 @@
15
14
  "type": "text",
16
15
  "name": "form-element-text-first-name",
17
16
  "htmlClass": "form-element-text-class",
18
- "value": "",
17
+ "value": "Raphael",
19
18
  "labelText": "First Name",
20
19
  "placeholder": "First Name",
21
20
  "required": true,
@@ -68,6 +68,12 @@
68
68
  v-model="formValues[item.name]"
69
69
  @validation-status-change="formElementHasError($event, item.name)"
70
70
  />
71
+ <CmdFakeSelect
72
+ v-else-if="item.component === 'CmdFakeSelect'"
73
+ :class="item.htmlClass"
74
+ v-bind="item"
75
+ v-model="formValues[item.name]"
76
+ />
71
77
  <CmdInputGroup
72
78
  v-else-if="item.component === 'CmdInputGroup'"
73
79
  v-model="formValues[item.name]"
@@ -84,6 +84,10 @@ export default {
84
84
  }
85
85
  },
86
86
  props: {
87
+ defaultInputValues: {
88
+ type: Object,
89
+ required: false
90
+ },
87
91
  requiredPages: {
88
92
  type: Array,
89
93
  default: []
@@ -274,6 +278,22 @@ export default {
274
278
  }
275
279
  }
276
280
  }
281
+ },
282
+ watch: {
283
+ defaultInputValues: {
284
+ handler() {
285
+ this.formData = {}
286
+ if(this.defaultInputValues) {
287
+ for (const page in this.defaultInputValues) {
288
+ this.formData[page] = {
289
+ ...this.defaultInputValues[page]
290
+ }
291
+ }
292
+ }
293
+ },
294
+ immediate: true,
295
+ deep: true
296
+ }
277
297
  }
278
298
  }
279
299
  </script>