comand-component-library 4.2.93 → 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((
|
|
253
|
-
const
|
|
254
|
-
let q =
|
|
255
|
-
O ? V ? q += 2 : (
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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)),
|
|
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 = [],
|
|
565
|
-
typeof s == "function" &&
|
|
566
|
-
function
|
|
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"),
|
|
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 && (
|
|
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",
|
|
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 (
|
|
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",
|
|
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
|
-
|
|
629
|
+
I();
|
|
630
630
|
const H = d.shift();
|
|
631
631
|
if (H === void 0) {
|
|
632
632
|
if (S.length) {
|
|
633
633
|
b = setTimeout(() => {
|
|
634
|
-
|
|
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),
|
|
918
|
-
|
|
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,
|
|
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(
|
|
1078
|
+
"--svg": jo(I),
|
|
1079
1079
|
width: wn(h.width),
|
|
1080
1080
|
height: wn(h.height),
|
|
1081
1081
|
...No,
|
|
1082
|
-
...
|
|
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": (
|
|
5406
|
-
onValidationStatusChange: (
|
|
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": (
|
|
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": (
|
|
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, (
|
|
5425
|
-
!
|
|
5426
|
-
key:
|
|
5427
|
-
class:
|
|
5428
|
-
}, { ref_for: !0 },
|
|
5429
|
-
modelValue: i.formValues[
|
|
5430
|
-
"onUpdate:modelValue": (O) => i.formValues[
|
|
5431
|
-
onValidationStatusChange: (O) => l.formElementHasError(O,
|
|
5432
|
-
}), null, 16, ["class", "modelValue", "onUpdate:modelValue", "onValidationStatusChange"])) :
|
|
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
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
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, (
|
|
7915
|
-
key: "x" +
|
|
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:
|
|
7926
|
+
componentProps: L,
|
|
7921
7927
|
allowedComponentTypes: [],
|
|
7922
|
-
componentPath: ["props", "links",
|
|
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 ===
|
|
7928
|
-
link:
|
|
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] = (...
|
|
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, (
|
|
7943
|
-
key:
|
|
7944
|
-
class: x({ active: n.sectionAnchors && n.activeSection ===
|
|
7945
|
-
link:
|
|
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, (
|
|
7951
|
-
|
|
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:
|
|
7959
|
+
href: L.image.url
|
|
7954
7960
|
}, [
|
|
7955
|
-
f(h, T({ ref_for: !0 },
|
|
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
|
-
},
|
|
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, (
|
|
7969
|
+
(a(!0), r(w, null, P(i.listOfTagItems, (L, I) => (a(), r("li", { key: I }, [
|
|
7964
7970
|
f(p, {
|
|
7965
|
-
tagText:
|
|
7971
|
+
tagText: L,
|
|
7966
7972
|
highlightLevel: n.highlightLevel,
|
|
7967
7973
|
removeTagByClick: n.removeTagByClick,
|
|
7968
|
-
onClick: k((O) => l.removeTag(e.event,
|
|
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, (
|
|
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
|
-
|
|
7983
|
+
L.descriptionTerm?.cmdIcon?.iconClass ? (a(), C(b, T({
|
|
7978
7984
|
key: 0,
|
|
7979
7985
|
ref_for: !0
|
|
7980
|
-
},
|
|
7981
|
-
|
|
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
|
-
|
|
7990
|
+
L.descriptionData.cmdLink !== void 0 ? (a(), C(S, T({
|
|
7985
7991
|
key: 0,
|
|
7986
7992
|
ref_for: !0
|
|
7987
|
-
},
|
|
7988
|
-
F(g(
|
|
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
|
-
|
|
7998
|
+
L.descriptionTerm?.cmdIcon?.iconClass ? (a(), C(b, T({
|
|
7993
7999
|
key: 0,
|
|
7994
8000
|
ref_for: !0
|
|
7995
|
-
},
|
|
7996
|
-
|
|
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),
|
|
9955
|
-
i.style.left = `${
|
|
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,
|
|
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: (
|
|
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) {
|
|
@@ -11379,7 +11402,8 @@ function Up(e, t, n, s, i, l) {
|
|
|
11379
11402
|
D(e.$slots, "page-last", {
|
|
11380
11403
|
setErrorOnPage: (h) => l.setErrorOnPage(e.step, h),
|
|
11381
11404
|
removeErrorOnPage: () => l.removeErrorOnPage(e.step),
|
|
11382
|
-
atleastOneStepWithError: l.atleastOneStepWithError
|
|
11405
|
+
atleastOneStepWithError: l.atleastOneStepWithError,
|
|
11406
|
+
formData: i.formData
|
|
11383
11407
|
})
|
|
11384
11408
|
], 512), [
|
|
11385
11409
|
[$, i.currentPage === l.numberOfPages]
|
|
@@ -15105,20 +15129,20 @@ function at(e, t, n) {
|
|
|
15105
15129
|
const s = n.metaTokens, i = n.visitor || p, l = n.dots, d = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && _.isSpecCompliantForm(t);
|
|
15106
15130
|
if (!_.isFunction(i))
|
|
15107
15131
|
throw new TypeError("visitor must be a function");
|
|
15108
|
-
function h(
|
|
15109
|
-
if (
|
|
15110
|
-
if (_.isDate(
|
|
15111
|
-
return
|
|
15112
|
-
if (!u && _.isBlob(
|
|
15132
|
+
function h(I) {
|
|
15133
|
+
if (I === null) return "";
|
|
15134
|
+
if (_.isDate(I))
|
|
15135
|
+
return I.toISOString();
|
|
15136
|
+
if (!u && _.isBlob(I))
|
|
15113
15137
|
throw new E("Blob is not supported. Use a Buffer instead.");
|
|
15114
|
-
return _.isArrayBuffer(
|
|
15138
|
+
return _.isArrayBuffer(I) || _.isTypedArray(I) ? u && typeof Blob == "function" ? new Blob([I]) : Buffer.from(I) : I;
|
|
15115
15139
|
}
|
|
15116
|
-
function p(
|
|
15117
|
-
let q =
|
|
15118
|
-
if (
|
|
15140
|
+
function p(I, O, V) {
|
|
15141
|
+
let q = I;
|
|
15142
|
+
if (I && !V && typeof I == "object") {
|
|
15119
15143
|
if (_.endsWith(O, "{}"))
|
|
15120
|
-
O = s ? O : O.slice(0, -2),
|
|
15121
|
-
else if (_.isArray(
|
|
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)))
|
|
15122
15146
|
return O = Ni(O), q.forEach(function(j, Y) {
|
|
15123
15147
|
!(_.isUndefined(j) || j === null) && t.append(
|
|
15124
15148
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -15127,31 +15151,31 @@ function at(e, t, n) {
|
|
|
15127
15151
|
);
|
|
15128
15152
|
}), !1;
|
|
15129
15153
|
}
|
|
15130
|
-
return Bt(
|
|
15154
|
+
return Bt(I) ? !0 : (t.append(Vn(V, O, l), h(I)), !1);
|
|
15131
15155
|
}
|
|
15132
15156
|
const b = [], S = Object.assign(oy, {
|
|
15133
15157
|
defaultVisitor: p,
|
|
15134
15158
|
convertValue: h,
|
|
15135
15159
|
isVisitable: Bt
|
|
15136
15160
|
});
|
|
15137
|
-
function I
|
|
15138
|
-
if (!_.isUndefined(
|
|
15139
|
-
if (b.indexOf(
|
|
15161
|
+
function L(I, O) {
|
|
15162
|
+
if (!_.isUndefined(I)) {
|
|
15163
|
+
if (b.indexOf(I) !== -1)
|
|
15140
15164
|
throw Error("Circular reference detected in " + O.join("."));
|
|
15141
|
-
b.push(
|
|
15165
|
+
b.push(I), _.forEach(I, function(q, N) {
|
|
15142
15166
|
(!(_.isUndefined(q) || q === null) && i.call(
|
|
15143
15167
|
t,
|
|
15144
15168
|
q,
|
|
15145
15169
|
_.isString(N) ? N.trim() : N,
|
|
15146
15170
|
O,
|
|
15147
15171
|
S
|
|
15148
|
-
)) === !0 &&
|
|
15172
|
+
)) === !0 && L(q, O ? O.concat(N) : [N]);
|
|
15149
15173
|
}), b.pop();
|
|
15150
15174
|
}
|
|
15151
15175
|
}
|
|
15152
15176
|
if (!_.isObject(e))
|
|
15153
15177
|
throw new TypeError("data must be an object");
|
|
15154
|
-
return
|
|
15178
|
+
return L(e), t;
|
|
15155
15179
|
}
|
|
15156
15180
|
function An(e) {
|
|
15157
15181
|
const t = {
|
|
@@ -15621,8 +15645,8 @@ function _y(e, t) {
|
|
|
15621
15645
|
S += n[b++], b = b % e;
|
|
15622
15646
|
if (i = (i + 1) % e, i === l && (l = (l + 1) % e), h - d < t)
|
|
15623
15647
|
return;
|
|
15624
|
-
const
|
|
15625
|
-
return
|
|
15648
|
+
const L = p && h - p;
|
|
15649
|
+
return L ? Math.round(S * 1e3 / L) : void 0;
|
|
15626
15650
|
};
|
|
15627
15651
|
}
|
|
15628
15652
|
function Oy(e, t) {
|
|
@@ -15821,13 +15845,13 @@ const Qi = (e) => {
|
|
|
15821
15845
|
function b() {
|
|
15822
15846
|
if (!p)
|
|
15823
15847
|
return;
|
|
15824
|
-
const
|
|
15848
|
+
const L = Q.from(
|
|
15825
15849
|
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
15826
15850
|
), O = {
|
|
15827
15851
|
data: !c || c === "text" || c === "json" ? p.responseText : p.response,
|
|
15828
15852
|
status: p.status,
|
|
15829
15853
|
statusText: p.statusText,
|
|
15830
|
-
headers:
|
|
15854
|
+
headers: L,
|
|
15831
15855
|
config: e,
|
|
15832
15856
|
request: p
|
|
15833
15857
|
};
|
|
@@ -15844,18 +15868,18 @@ const Qi = (e) => {
|
|
|
15844
15868
|
}, p.onerror = function() {
|
|
15845
15869
|
s(new E("Network Error", E.ERR_NETWORK, i, p)), p = null;
|
|
15846
15870
|
}, p.ontimeout = function() {
|
|
15847
|
-
let
|
|
15871
|
+
let I = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
15848
15872
|
const O = i.transitional || Gi;
|
|
15849
|
-
i.timeoutErrorMessage && (
|
|
15850
|
-
|
|
15873
|
+
i.timeoutErrorMessage && (I = i.timeoutErrorMessage), s(new E(
|
|
15874
|
+
I,
|
|
15851
15875
|
O.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
15852
15876
|
i,
|
|
15853
15877
|
p
|
|
15854
15878
|
)), p = null;
|
|
15855
|
-
}, l === void 0 && d.setContentType(null), "setRequestHeader" in p && _.forEach(d.toJSON(), function(
|
|
15856
|
-
p.setRequestHeader(O,
|
|
15857
|
-
}), _.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 = (
|
|
15858
|
-
p && (s(!
|
|
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);
|
|
15859
15883
|
}, i.cancelToken && i.cancelToken.subscribe(u), i.signal && (i.signal.aborted ? u() : i.signal.addEventListener("abort", u)));
|
|
15860
15884
|
const S = Sy(i.url);
|
|
15861
15885
|
if (S && le.protocols.indexOf(S) === -1) {
|
|
@@ -15980,10 +16004,10 @@ const Hy = async (e) => {
|
|
|
15980
16004
|
fetchOptions: S
|
|
15981
16005
|
} = Qi(e);
|
|
15982
16006
|
h = h ? (h + "").toLowerCase() : "text";
|
|
15983
|
-
let [
|
|
16007
|
+
let [L, I] = i || l || d ? My([i, l], d) : [], O, V;
|
|
15984
16008
|
const q = () => {
|
|
15985
16009
|
!O && setTimeout(() => {
|
|
15986
|
-
|
|
16010
|
+
L && L.unsubscribe();
|
|
15987
16011
|
}), O = !0;
|
|
15988
16012
|
};
|
|
15989
16013
|
let N;
|
|
@@ -16001,7 +16025,7 @@ const Hy = async (e) => {
|
|
|
16001
16025
|
}
|
|
16002
16026
|
_.isString(b) || (b = b ? "cors" : "omit"), V = new Request(t, {
|
|
16003
16027
|
...S,
|
|
16004
|
-
signal:
|
|
16028
|
+
signal: L,
|
|
16005
16029
|
method: n.toUpperCase(),
|
|
16006
16030
|
headers: p.normalize().toJSON(),
|
|
16007
16031
|
body: s,
|
|
@@ -16026,7 +16050,7 @@ const Hy = async (e) => {
|
|
|
16026
16050
|
}
|
|
16027
16051
|
h = h || "text";
|
|
16028
16052
|
let ge = await Ze[_.findKey(Ze, h) || "text"](j, e);
|
|
16029
|
-
return !Y && q(),
|
|
16053
|
+
return !Y && q(), I && I(), await new Promise((H, W) => {
|
|
16030
16054
|
Ji(H, W, {
|
|
16031
16055
|
data: ge,
|
|
16032
16056
|
headers: Q.from(j.headers),
|
|
@@ -16208,8 +16232,8 @@ let ye = class {
|
|
|
16208
16232
|
);
|
|
16209
16233
|
l && _.forEach(
|
|
16210
16234
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
16211
|
-
(
|
|
16212
|
-
delete l[
|
|
16235
|
+
(I) => {
|
|
16236
|
+
delete l[I];
|
|
16213
16237
|
}
|
|
16214
16238
|
), n.headers = Q.concat(d, l);
|
|
16215
16239
|
const c = [];
|
|
@@ -16223,26 +16247,26 @@ let ye = class {
|
|
|
16223
16247
|
});
|
|
16224
16248
|
let p, b = 0, S;
|
|
16225
16249
|
if (!u) {
|
|
16226
|
-
const
|
|
16227
|
-
for (
|
|
16228
|
-
p = p.then(
|
|
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++]);
|
|
16229
16253
|
return p;
|
|
16230
16254
|
}
|
|
16231
16255
|
S = c.length;
|
|
16232
|
-
let
|
|
16256
|
+
let L = n;
|
|
16233
16257
|
for (b = 0; b < S; ) {
|
|
16234
|
-
const
|
|
16258
|
+
const I = c[b++], O = c[b++];
|
|
16235
16259
|
try {
|
|
16236
|
-
|
|
16260
|
+
L = I(L);
|
|
16237
16261
|
} catch (V) {
|
|
16238
16262
|
O.call(this, V);
|
|
16239
16263
|
break;
|
|
16240
16264
|
}
|
|
16241
16265
|
}
|
|
16242
16266
|
try {
|
|
16243
|
-
p = zn.call(this,
|
|
16244
|
-
} catch (
|
|
16245
|
-
return Promise.reject(
|
|
16267
|
+
p = zn.call(this, L);
|
|
16268
|
+
} catch (I) {
|
|
16269
|
+
return Promise.reject(I);
|
|
16246
16270
|
}
|
|
16247
16271
|
for (b = 0, S = h.length; b < S; )
|
|
16248
16272
|
p = p.then(h[b++], h[b++]);
|
|
@@ -19735,7 +19759,6 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
|
|
|
19735
19759
|
type: "text",
|
|
19736
19760
|
name: "form-element-text-surname",
|
|
19737
19761
|
htmlClass: "form-element-text-class",
|
|
19738
|
-
value: "",
|
|
19739
19762
|
labelText: "Surname",
|
|
19740
19763
|
placeholder: "Surname",
|
|
19741
19764
|
required: !0,
|
|
@@ -19746,7 +19769,7 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
|
|
|
19746
19769
|
type: "text",
|
|
19747
19770
|
name: "form-element-text-first-name",
|
|
19748
19771
|
htmlClass: "form-element-text-class",
|
|
19749
|
-
value: "",
|
|
19772
|
+
value: "Raphael",
|
|
19750
19773
|
labelText: "First Name",
|
|
19751
19774
|
placeholder: "First Name",
|
|
19752
19775
|
required: !0,
|
|
@@ -20916,7 +20939,7 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
|
|
|
20916
20939
|
text: "Zimbabwe",
|
|
20917
20940
|
value: "zw"
|
|
20918
20941
|
}
|
|
20919
|
-
], QC = "comand-component-library", XC = "4.2.
|
|
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 = {
|
|
20920
20943
|
name: QC,
|
|
20921
20944
|
version: XC,
|
|
20922
20945
|
license: $C,
|
|
@@ -22182,6 +22205,14 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
|
|
|
22182
22205
|
linkType: ""
|
|
22183
22206
|
}
|
|
22184
22207
|
},
|
|
22208
|
+
multistepFormDefaultInputValues: {
|
|
22209
|
+
1: {
|
|
22210
|
+
"form-element-text-surname": "Biock"
|
|
22211
|
+
},
|
|
22212
|
+
2: {
|
|
22213
|
+
"page-2-telephone": "12345/67890"
|
|
22214
|
+
}
|
|
22215
|
+
},
|
|
22185
22216
|
// assign data from json files to data-properties
|
|
22186
22217
|
addressData: ll,
|
|
22187
22218
|
bankAccountData: Mx,
|
|
@@ -22577,7 +22608,7 @@ const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
|
|
|
22577
22608
|
id: "content"
|
|
22578
22609
|
};
|
|
22579
22610
|
function rk(e, t, n, s, i, l) {
|
|
22580
|
-
const d = Xt, c = vi, u = lh, h = Zt, p = wi, b = mh, S = il,
|
|
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");
|
|
22581
22612
|
return z((a(), r("div", {
|
|
22582
22613
|
class: "page-wrapper",
|
|
22583
22614
|
id: l.templateId
|
|
@@ -22818,7 +22849,7 @@ function rk(e, t, n, s, i, l) {
|
|
|
22818
22849
|
})
|
|
22819
22850
|
]),
|
|
22820
22851
|
o("div", S1, [
|
|
22821
|
-
f(
|
|
22852
|
+
f(L, T({
|
|
22822
22853
|
ref: "CmdAddressData",
|
|
22823
22854
|
addressData: i.addressData
|
|
22824
22855
|
}, e.cmdAddressDataSettingsData), null, 16, ["addressData"])
|
|
@@ -22887,7 +22918,7 @@ function rk(e, t, n, s, i, l) {
|
|
|
22887
22918
|
])
|
|
22888
22919
|
])
|
|
22889
22920
|
]),
|
|
22890
|
-
f(
|
|
22921
|
+
f(I, {
|
|
22891
22922
|
modelValue: i.fakeSelectFilters,
|
|
22892
22923
|
"onUpdate:modelValue": t[20] || (t[20] = (y) => i.fakeSelectFilters = y),
|
|
22893
22924
|
selectedOptionsName: l.getOptionName
|
|
@@ -24674,8 +24705,12 @@ function rk(e, t, n, s, i, l) {
|
|
|
24674
24705
|
})
|
|
24675
24706
|
]),
|
|
24676
24707
|
t[278] || (t[278] = o("h3", null, "Data provided by property", -1)),
|
|
24677
|
-
f(sn, {
|
|
24708
|
+
f(sn, {
|
|
24709
|
+
requiredPages: [1, 2],
|
|
24710
|
+
defaultInputValues: i.multistepFormDefaultInputValues
|
|
24711
|
+
}, {
|
|
24678
24712
|
"page-1": v((y) => [
|
|
24713
|
+
F(" multistepFormDefaultInputValues: " + g(i.multistepFormDefaultInputValues) + " ", 1),
|
|
24679
24714
|
t[265] || (t[265] = o("h3", null, "Page 1 - all fields required", -1)),
|
|
24680
24715
|
f(Y, {
|
|
24681
24716
|
formElements: i.multistepFormWrapperPage1Data,
|
|
@@ -24704,7 +24739,7 @@ function rk(e, t, n, s, i, l) {
|
|
|
24704
24739
|
default: v(() => [
|
|
24705
24740
|
f(O, {
|
|
24706
24741
|
element: "input",
|
|
24707
|
-
type: "
|
|
24742
|
+
type: "tel",
|
|
24708
24743
|
labelText: "Telephone:",
|
|
24709
24744
|
name: "page-2-telephone",
|
|
24710
24745
|
id: "page-2-telephone",
|
|
@@ -24790,7 +24825,6 @@ function rk(e, t, n, s, i, l) {
|
|
|
24790
24825
|
F(" props.formDataForPage: " + g(y.formDataForPage), 1)
|
|
24791
24826
|
], 64)) : (a(), r(w, { key: 0 }, [
|
|
24792
24827
|
t[270] || (t[270] = o("h3", null, "Page 4", -1)),
|
|
24793
|
-
F(" props.atleastOneStepWithError: " + g(y.atleastOneStepWithError) + " ", 1),
|
|
24794
24828
|
f(Y, {
|
|
24795
24829
|
cmdHeadline: { headlineText: "Confirmation", headlineLevel: 3 },
|
|
24796
24830
|
submitButton: { disabled: y.atleastOneStepWithError || !i.dataPrivacyChecked, type: "button" },
|
|
@@ -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
package/src/ComponentLibrary.vue
CHANGED
|
@@ -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="
|
|
1345
|
+
type="tel"
|
|
1344
1346
|
labelText="Telephone:"
|
|
1345
1347
|
name="page-2-telephone"
|
|
1346
1348
|
id="page-2-telephone"
|
|
@@ -1406,7 +1408,6 @@
|
|
|
1406
1408
|
<template v-slot:page-last="props">
|
|
1407
1409
|
<template v-if="!confirmDataPrivacy">
|
|
1408
1410
|
<h3>Page 4</h3>
|
|
1409
|
-
props.atleastOneStepWithError: {{ props.atleastOneStepWithError }}
|
|
1410
1411
|
<CmdForm
|
|
1411
1412
|
:cmdHeadline=" { headlineText: 'Confirmation', headlineLevel: 3 }"
|
|
1412
1413
|
:submitButton="{ disabled : props.atleastOneStepWithError || !dataPrivacyChecked, type: 'button' }"
|
|
@@ -2161,6 +2162,14 @@ export default {
|
|
|
2161
2162
|
linkType: ""
|
|
2162
2163
|
}
|
|
2163
2164
|
},
|
|
2165
|
+
multistepFormDefaultInputValues: {
|
|
2166
|
+
1: {
|
|
2167
|
+
"form-element-text-surname": "Biock"
|
|
2168
|
+
},
|
|
2169
|
+
2: {
|
|
2170
|
+
"page-2-telephone": "12345/67890"
|
|
2171
|
+
}
|
|
2172
|
+
},
|
|
2164
2173
|
|
|
2165
2174
|
// assign data from json files to data-properties
|
|
2166
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]"
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
:setErrorOnPage="(message) => setErrorOnPage(step, message)"
|
|
47
47
|
:removeErrorOnPage="() => removeErrorOnPage(step)"
|
|
48
48
|
:atleastOneStepWithError="atleastOneStepWithError"
|
|
49
|
+
:formData="formData"
|
|
49
50
|
/>
|
|
50
51
|
<!-- end slot for last step -->
|
|
51
52
|
</div>
|
|
@@ -83,6 +84,10 @@ export default {
|
|
|
83
84
|
}
|
|
84
85
|
},
|
|
85
86
|
props: {
|
|
87
|
+
defaultInputValues: {
|
|
88
|
+
type: Object,
|
|
89
|
+
required: false
|
|
90
|
+
},
|
|
86
91
|
requiredPages: {
|
|
87
92
|
type: Array,
|
|
88
93
|
default: []
|
|
@@ -273,6 +278,22 @@ export default {
|
|
|
273
278
|
}
|
|
274
279
|
}
|
|
275
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
|
+
}
|
|
276
297
|
}
|
|
277
298
|
}
|
|
278
299
|
</script>
|