comand-component-library 4.2.91 → 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
|
|
171
|
+
let Me = !1;
|
|
172
172
|
function ei(e) {
|
|
173
|
-
return typeof e == "boolean" && (
|
|
173
|
+
return typeof e == "boolean" && (Me = e), Me;
|
|
174
174
|
}
|
|
175
175
|
function eo(e) {
|
|
176
|
-
const t = typeof e == "string" ? Qe(e, !0,
|
|
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,
|
|
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 || ""),
|
|
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
|
|
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
|
|
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 &&
|
|
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:
|
|
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
|
|
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 =
|
|
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(
|
|
2290
|
+
const zt = /* @__PURE__ */ B(Ma, [["render", Va]]), Wt = {
|
|
2291
2291
|
data() {
|
|
2292
2292
|
return {
|
|
2293
2293
|
defaultMessageProperties: {
|
|
@@ -3124,11 +3124,9 @@ const Kt = {
|
|
|
3124
3124
|
onBlur(e) {
|
|
3125
3125
|
this.validateInput(e), this.closeTooltipOnBlur(), this.$emit("blur", e);
|
|
3126
3126
|
},
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
this.$emit('update:modelValue', event.target.value)
|
|
3131
|
-
},*/
|
|
3127
|
+
onInput(e) {
|
|
3128
|
+
this.validateInput(e), this.$emit("update:modelValue", e.target.value);
|
|
3129
|
+
},
|
|
3132
3130
|
onChange(e) {
|
|
3133
3131
|
if (this.validateInput(e), typeof this.modelValue == "boolean")
|
|
3134
3132
|
this.$emit("update:modelValue", e.target.checked);
|
|
@@ -3248,7 +3246,7 @@ function ks(e, t, n, s, i, l) {
|
|
|
3248
3246
|
class: n.inputClass,
|
|
3249
3247
|
onFocus: t[1] || (t[1] = (u) => e.tooltip = !0),
|
|
3250
3248
|
onBlur: t[2] || (t[2] = (...u) => l.onBlur && l.onBlur(...u)),
|
|
3251
|
-
onInput: t[3] || (t[3] = (...u) =>
|
|
3249
|
+
onInput: t[3] || (t[3] = (...u) => l.onInput && l.onInput(...u)),
|
|
3252
3250
|
onMouseover: t[4] || (t[4] = (...u) => l.datalistFocus && l.datalistFocus(...u)),
|
|
3253
3251
|
onKeyup: t[5] || (t[5] = (...u) => e.checkForCapsLock && e.checkForCapsLock(...u)),
|
|
3254
3252
|
onChange: t[6] || (t[6] = (u) => e.$emit("change", u)),
|
|
@@ -3300,8 +3298,8 @@ function ks(e, t, n, s, i, l) {
|
|
|
3300
3298
|
n.onLabel && n.offLabel ? n.onLabel && n.offLabel ? (a(), r(w, { key: 1 }, [
|
|
3301
3299
|
o("span", ls, [
|
|
3302
3300
|
o("input", T(l.elementAttributes, {
|
|
3303
|
-
onChange: t[
|
|
3304
|
-
onBlur: t[
|
|
3301
|
+
onChange: t[14] || (t[14] = (...u) => l.onChange && l.onChange(...u)),
|
|
3302
|
+
onBlur: t[15] || (t[15] = (...u) => l.onBlur && l.onBlur(...u)),
|
|
3305
3303
|
checked: l.isChecked,
|
|
3306
3304
|
value: n.inputValue,
|
|
3307
3305
|
class: [n.inputClass, e.validationStatus],
|
|
@@ -3323,7 +3321,6 @@ function ks(e, t, n, s, i, l) {
|
|
|
3323
3321
|
o("input", T(l.elementAttributes, {
|
|
3324
3322
|
onChange: t[12] || (t[12] = (...u) => l.onChange && l.onChange(...u)),
|
|
3325
3323
|
onBlur: t[13] || (t[13] = (...u) => l.onBlur && l.onBlur(...u)),
|
|
3326
|
-
onInput: t[14] || (t[14] = (...u) => e.onInput && e.onInput(...u)),
|
|
3327
3324
|
checked: l.isChecked,
|
|
3328
3325
|
value: n.inputValue,
|
|
3329
3326
|
class: [n.inputClass, e.validationStatus, l.toggleSwitchIconClass, { "replace-input-type": n.replaceInputType }],
|
|
@@ -3348,8 +3345,8 @@ function ks(e, t, n, s, i, l) {
|
|
|
3348
3345
|
], 64)) : m("", !0),
|
|
3349
3346
|
n.element === "select" ? (a(), r("select", T({ key: 2 }, l.elementAttributes, {
|
|
3350
3347
|
id: e.htmlId,
|
|
3351
|
-
onBlur: t[
|
|
3352
|
-
onChange: t[
|
|
3348
|
+
onBlur: t[16] || (t[16] = (...u) => l.onBlur && l.onBlur(...u)),
|
|
3349
|
+
onChange: t[17] || (t[17] = (...u) => l.onChange && l.onChange(...u))
|
|
3353
3350
|
}), [
|
|
3354
3351
|
n.groupSelectOptionsByInitialLetters ? (a(!0), r(w, { key: 1 }, P(l.initialLetters, (u, h) => (a(), r("optgroup", {
|
|
3355
3352
|
label: h,
|
|
@@ -3370,9 +3367,9 @@ function ks(e, t, n, s, i, l) {
|
|
|
3370
3367
|
id: e.htmlId,
|
|
3371
3368
|
value: n.modelValue,
|
|
3372
3369
|
maxlength: l.getMaxLength(),
|
|
3373
|
-
onInput: t[
|
|
3374
|
-
onFocus: t[
|
|
3375
|
-
onBlur: t[
|
|
3370
|
+
onInput: t[18] || (t[18] = (...u) => l.onInput && l.onInput(...u)),
|
|
3371
|
+
onFocus: t[19] || (t[19] = (u) => e.tooltip = !0),
|
|
3372
|
+
onBlur: t[20] || (t[20] = (...u) => l.onBlur && l.onBlur(...u))
|
|
3376
3373
|
}), null, 16, fs)) : m("", !0),
|
|
3377
3374
|
n.element === "textarea" && n.showCharactersTextarea ? (a(), r("span", hs, [
|
|
3378
3375
|
n.textCharactersLeft ? (a(), r("span", gs, g(n.textCharactersLeft), 1)) : m("", !0),
|
|
@@ -3387,7 +3384,7 @@ function ks(e, t, n, s, i, l) {
|
|
|
3387
3384
|
}, null, 8, ["iconClass"])) : m("", !0),
|
|
3388
3385
|
o("input", T(l.elementAttributes, {
|
|
3389
3386
|
id: e.htmlId,
|
|
3390
|
-
onInput: t[
|
|
3387
|
+
onInput: t[21] || (t[21] = (...u) => l.onInput && l.onInput(...u)),
|
|
3391
3388
|
maxlength: l.getMaxLength(),
|
|
3392
3389
|
value: n.modelValue
|
|
3393
3390
|
}), null, 16, bs),
|
|
@@ -3396,7 +3393,7 @@ function ks(e, t, n, s, i, l) {
|
|
|
3396
3393
|
href: "#",
|
|
3397
3394
|
class: x(["button flex-none", { disabled: e.$attrs.disabled }]),
|
|
3398
3395
|
title: n.iconSearch.tooltip,
|
|
3399
|
-
onClick: t[
|
|
3396
|
+
onClick: t[22] || (t[22] = k((...u) => l.executeSearch && l.executeSearch(...u), ["prevent"]))
|
|
3400
3397
|
}, [
|
|
3401
3398
|
f(d, {
|
|
3402
3399
|
iconClass: n.iconSearch.iconClass
|
|
@@ -3406,7 +3403,7 @@ function ks(e, t, n, s, i, l) {
|
|
|
3406
3403
|
key: 2,
|
|
3407
3404
|
class: "deleteicon",
|
|
3408
3405
|
href: "#",
|
|
3409
|
-
onClick: t[
|
|
3406
|
+
onClick: t[23] || (t[23] = k((...u) => l.deleteInput && l.deleteInput(...u), ["prevent"])),
|
|
3410
3407
|
title: n.iconDelete?.tooltip
|
|
3411
3408
|
}, [
|
|
3412
3409
|
f(d, {
|
|
@@ -3419,7 +3416,7 @@ function ks(e, t, n, s, i, l) {
|
|
|
3419
3416
|
key: 1,
|
|
3420
3417
|
class: "button"
|
|
3421
3418
|
}, l.buttonAttrs, {
|
|
3422
|
-
onClick: t[
|
|
3419
|
+
onClick: t[24] || (t[24] = (...u) => l.submit && l.submit(...u))
|
|
3423
3420
|
}), [
|
|
3424
3421
|
n.nativeButton?.icon?.show && (n.nativeButton?.icon?.position === "before" || !n.nativeButton?.icon?.position) ? (a(), C(d, {
|
|
3425
3422
|
key: 0,
|
|
@@ -3552,7 +3549,7 @@ const K = /* @__PURE__ */ B(za, [["render", ks]]), ws = {
|
|
|
3552
3549
|
}, Fs = {
|
|
3553
3550
|
key: 1,
|
|
3554
3551
|
class: "locality"
|
|
3555
|
-
},
|
|
3552
|
+
}, Ps = { key: 0 }, Ms = {
|
|
3556
3553
|
key: 3,
|
|
3557
3554
|
class: "country-name"
|
|
3558
3555
|
}, Vs = { class: "street-address" }, As = {
|
|
@@ -3632,9 +3629,9 @@ function qs(e, t, n, s, i, l) {
|
|
|
3632
3629
|
t[7] || (t[7] = o("br", null, null, -1)),
|
|
3633
3630
|
n.addressEntry.miscInfo ? (a(), r(w, { key: 2 }, [
|
|
3634
3631
|
o("span", null, g(n.addressEntry.miscInfo), 1),
|
|
3635
|
-
n.addressEntry.country ? (a(), r("br",
|
|
3632
|
+
n.addressEntry.country ? (a(), r("br", Ps)) : m("", !0)
|
|
3636
3633
|
], 64)) : m("", !0),
|
|
3637
|
-
n.addressEntry.country ? (a(), r("span",
|
|
3634
|
+
n.addressEntry.country ? (a(), r("span", Ms, g(n.addressEntry.country), 1)) : m("", !0)
|
|
3638
3635
|
], 8, Is)) : (a(), r(w, { key: 1 }, [
|
|
3639
3636
|
e.editing ? (a(), r(w, { key: 1 }, [
|
|
3640
3637
|
f(c, {
|
|
@@ -4774,7 +4771,7 @@ const Yt = /* @__PURE__ */ B(pr, [["render", wr]]), Tr = {
|
|
|
4774
4771
|
}, Lr = ["id"], Ir = {
|
|
4775
4772
|
key: 0,
|
|
4776
4773
|
"aria-hidden": "true"
|
|
4777
|
-
}, Br = ["title", "aria-errormessage", "id"], Dr = ["aria-expanded"], Fr = ["title"],
|
|
4774
|
+
}, Br = ["title", "aria-errormessage", "id"], Dr = ["aria-expanded"], Fr = ["title"], Pr = ["src", "alt"], Mr = {
|
|
4778
4775
|
key: 3,
|
|
4779
4776
|
class: "option-name"
|
|
4780
4777
|
}, Vr = {
|
|
@@ -4846,7 +4843,7 @@ function Gr(e, t, n, s, i, l) {
|
|
|
4846
4843
|
src: l.pathFlag(l.optionCountry),
|
|
4847
4844
|
alt: l.optionCountry,
|
|
4848
4845
|
class: x(["flag", l.optionCountry])
|
|
4849
|
-
}, null, 10,
|
|
4846
|
+
}, null, 10, Pr)) : n.type === "color" ? (a(), r("span", {
|
|
4850
4847
|
key: 1,
|
|
4851
4848
|
style: Ke("background: " + l.optionColor)
|
|
4852
4849
|
}, null, 4)) : m("", !0),
|
|
@@ -4855,7 +4852,7 @@ function Gr(e, t, n, s, i, l) {
|
|
|
4855
4852
|
type: l.optionIcon?.iconType,
|
|
4856
4853
|
iconClass: l.optionIcon?.iconClass
|
|
4857
4854
|
}, null, 8, ["type", "iconClass"])) : m("", !0),
|
|
4858
|
-
l.optionName ? (a(), r("span",
|
|
4855
|
+
l.optionName ? (a(), r("span", Mr, g(l.optionName), 1)) : m("", !0),
|
|
4859
4856
|
n.iconDropdown ? (a(), C(d, {
|
|
4860
4857
|
key: 4,
|
|
4861
4858
|
iconClass: n.iconDropdown.iconClass,
|
|
@@ -5539,7 +5536,7 @@ const gi = /* @__PURE__ */ B(Qr, [["render", ud]]), cd = {
|
|
|
5539
5536
|
};
|
|
5540
5537
|
}
|
|
5541
5538
|
};
|
|
5542
|
-
class
|
|
5539
|
+
class Pe {
|
|
5543
5540
|
static PATTERN_SURNAME = /^[a-züöäßáéíóàèìòêîô '-]+$/i;
|
|
5544
5541
|
static PATTERN_EMAIL = /^[a-z\d._%+-]+@[a-z\d._%+-]+\.[a-z]{2,}$/i;
|
|
5545
5542
|
static PATTERN_MESSAGE = /^.{2,500}$/;
|
|
@@ -5548,7 +5545,7 @@ class Me {
|
|
|
5548
5545
|
this.label = t;
|
|
5549
5546
|
}
|
|
5550
5547
|
validate(t) {
|
|
5551
|
-
const n = this.validateRequired(t.lastName.value,
|
|
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"));
|
|
5552
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;
|
|
5553
5550
|
}
|
|
5554
5551
|
validatePrivacy(t) {
|
|
@@ -6577,7 +6574,7 @@ const yi = /* @__PURE__ */ B(Od, [["render", Fd]]), re = (e) => {
|
|
|
6577
6574
|
}));
|
|
6578
6575
|
},
|
|
6579
6576
|
async loadContent(e) {
|
|
6580
|
-
(await
|
|
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}`));
|
|
6581
6578
|
},
|
|
6582
6579
|
// switch to previous-item (in fancybox-gallery)
|
|
6583
6580
|
showPrevItem() {
|
|
@@ -6619,11 +6616,11 @@ const yi = /* @__PURE__ */ B(Od, [["render", Fd]]), re = (e) => {
|
|
|
6619
6616
|
}
|
|
6620
6617
|
}
|
|
6621
6618
|
});
|
|
6622
|
-
async function
|
|
6619
|
+
async function Pd(e) {
|
|
6623
6620
|
const t = await fetch(e, { method: "HEAD" });
|
|
6624
6621
|
return t.ok ? (t.headers.get("Content-Type") || "").split(";")[0] : "text/html";
|
|
6625
6622
|
}
|
|
6626
|
-
const
|
|
6623
|
+
const Md = bi, Vd = ["aria-label"], Ad = { class: "flex-container" }, Ed = {
|
|
6627
6624
|
key: 1,
|
|
6628
6625
|
class: "button-wrapper flex-none"
|
|
6629
6626
|
}, Hd = ["title"], qd = ["title"], Rd = ["title"], jd = {
|
|
@@ -6756,7 +6753,7 @@ function Qd(e, t, n, s, i, l) {
|
|
|
6756
6753
|
}, null, 8, ["thumbnailScrollerItems", "onClick", "activeItemIndex"])) : m("", !0)
|
|
6757
6754
|
], 42, Vd);
|
|
6758
6755
|
}
|
|
6759
|
-
const Xd = /* @__PURE__ */ B(
|
|
6756
|
+
const Xd = /* @__PURE__ */ B(Md, [["render", Qd]]), $d = {
|
|
6760
6757
|
emits: ["submit"],
|
|
6761
6758
|
mixins: [
|
|
6762
6759
|
X,
|
|
@@ -6770,7 +6767,7 @@ const Xd = /* @__PURE__ */ B(Pd, [["render", Qd]]), $d = {
|
|
|
6770
6767
|
data() {
|
|
6771
6768
|
return {
|
|
6772
6769
|
sendSuccessfully: !1,
|
|
6773
|
-
validator: new
|
|
6770
|
+
validator: new Pe((e) => e),
|
|
6774
6771
|
formData: {
|
|
6775
6772
|
salutation: { value: this.configuration.salutation.default },
|
|
6776
6773
|
lastName: { value: "" },
|
|
@@ -7889,7 +7886,7 @@ const _u = /* @__PURE__ */ B(vu, [["render", Su]]), Ou = {
|
|
|
7889
7886
|
watch: (() => {
|
|
7890
7887
|
(void 0).updateActiveClass();
|
|
7891
7888
|
})
|
|
7892
|
-
}, Lu = { key: 1 }, Iu = ["href"], Bu = { key: 2 }, Du = { key: 0 }, Fu = { key: 1 },
|
|
7889
|
+
}, Lu = { key: 1 }, Iu = ["href"], Bu = { key: 2 }, Du = { key: 0 }, Fu = { key: 1 }, Pu = { key: 1 }, Mu = { key: 1 };
|
|
7893
7890
|
function Vu(e, t, n, s, i, l) {
|
|
7894
7891
|
const d = U, c = _u, u = Ce, h = oe, p = Ci, b = R, S = he;
|
|
7895
7892
|
return a(), C(pe, { name: n.transition }, {
|
|
@@ -7991,12 +7988,12 @@ function Vu(e, t, n, s, i, l) {
|
|
|
7991
7988
|
F(g(I.descriptionData.text), 1)
|
|
7992
7989
|
], 64))
|
|
7993
7990
|
]),
|
|
7994
|
-
n.alignDescriptionTermRight ? (a(), r("dt",
|
|
7991
|
+
n.alignDescriptionTermRight ? (a(), r("dt", Pu, [
|
|
7995
7992
|
I.descriptionTerm?.cmdIcon?.iconClass ? (a(), C(b, T({
|
|
7996
7993
|
key: 0,
|
|
7997
7994
|
ref_for: !0
|
|
7998
7995
|
}, I.descriptionTerm.cmdIcon), null, 16)) : m("", !0),
|
|
7999
|
-
I.descriptionTerm?.text ? (a(), r("span",
|
|
7996
|
+
I.descriptionTerm?.text ? (a(), r("span", Mu, g(I.descriptionTerm?.text), 1)) : m("", !0)
|
|
8000
7997
|
])) : m("", !0)
|
|
8001
7998
|
], 64))), 128))
|
|
8002
7999
|
]))
|
|
@@ -8957,7 +8954,7 @@ const ki = /* @__PURE__ */ B(vc, [["render", Bc]]), Dc = {
|
|
|
8957
8954
|
navigator.clipboard.writeText(t), alert(t + " was copied to clipboard");
|
|
8958
8955
|
}
|
|
8959
8956
|
}
|
|
8960
|
-
}, Fc = ["title"],
|
|
8957
|
+
}, Fc = ["title"], Pc = { key: 1 }, Mc = { ref: "code" }, Vc = {
|
|
8961
8958
|
key: 2,
|
|
8962
8959
|
ref: "code"
|
|
8963
8960
|
};
|
|
@@ -8978,8 +8975,8 @@ function Ac(e, t, n, s, i, l) {
|
|
|
8978
8975
|
type: n.cmdIcon.iconType
|
|
8979
8976
|
}, null, 8, ["iconClass", "type"])
|
|
8980
8977
|
], 8, Fc)) : m("", !0),
|
|
8981
|
-
n.preformatted ? (a(), r("pre",
|
|
8982
|
-
o("code",
|
|
8978
|
+
n.preformatted ? (a(), r("pre", Pc, [
|
|
8979
|
+
o("code", Mc, [
|
|
8983
8980
|
t[1] || (t[1] = F(`
|
|
8984
8981
|
`, -1)),
|
|
8985
8982
|
D(e.$slots, "default"),
|
|
@@ -9779,7 +9776,7 @@ function Fm(e, t, n, s, i, l) {
|
|
|
9779
9776
|
}))
|
|
9780
9777
|
]);
|
|
9781
9778
|
}
|
|
9782
|
-
const Oi = /* @__PURE__ */ B(Im, [["render", Fm]]),
|
|
9779
|
+
const Oi = /* @__PURE__ */ B(Im, [["render", Fm]]), Pm = {
|
|
9783
9780
|
name: "CmdImageGallery",
|
|
9784
9781
|
mixins: [Z],
|
|
9785
9782
|
props: {
|
|
@@ -9871,10 +9868,10 @@ const Oi = /* @__PURE__ */ B(Im, [["render", Fm]]), Mm = {
|
|
|
9871
9868
|
});
|
|
9872
9869
|
}
|
|
9873
9870
|
}
|
|
9874
|
-
},
|
|
9871
|
+
}, Mm = { class: "cmd-image-gallery grid-container-create-columns" }, Vm = ["onClick", "title"];
|
|
9875
9872
|
function Am(e, t, n, s, i, l) {
|
|
9876
9873
|
const d = U, c = oe;
|
|
9877
|
-
return a(), r("div",
|
|
9874
|
+
return a(), r("div", Mm, [
|
|
9878
9875
|
n.cmdHeadline?.headlineText || e.editModeContext ? (a(), C(d, A(T({ key: 0 }, n.cmdHeadline)), null, 16)) : m("", !0),
|
|
9879
9876
|
e.editModeContext ? n.images.length ? (a(!0), r(w, { key: 2 }, P(n.images, (u, h) => (a(), C(c, {
|
|
9880
9877
|
key: h,
|
|
@@ -9915,7 +9912,7 @@ function Am(e, t, n, s, i, l) {
|
|
|
9915
9912
|
], 64))
|
|
9916
9913
|
]);
|
|
9917
9914
|
}
|
|
9918
|
-
const Em = /* @__PURE__ */ B(
|
|
9915
|
+
const Em = /* @__PURE__ */ B(Pm, [["render", Am]]), Hm = {
|
|
9919
9916
|
name: "CmdImageZoom",
|
|
9920
9917
|
props: {
|
|
9921
9918
|
/**
|
|
@@ -11001,7 +10998,7 @@ function Fp(e, t, n, s, i, l) {
|
|
|
11001
10998
|
])
|
|
11002
10999
|
]);
|
|
11003
11000
|
}
|
|
11004
|
-
const Ii = /* @__PURE__ */ B(wp, [["render", Fp]]),
|
|
11001
|
+
const Ii = /* @__PURE__ */ B(wp, [["render", Fp]]), Pp = {
|
|
11005
11002
|
emits: ["click"],
|
|
11006
11003
|
name: "CmdMultistepFormProgressBar",
|
|
11007
11004
|
data() {
|
|
@@ -11128,7 +11125,7 @@ const Ii = /* @__PURE__ */ B(wp, [["render", Fp]]), Mp = {
|
|
|
11128
11125
|
immediate: !0
|
|
11129
11126
|
}
|
|
11130
11127
|
}
|
|
11131
|
-
},
|
|
11128
|
+
}, Mp = {
|
|
11132
11129
|
key: 0,
|
|
11133
11130
|
class: "number"
|
|
11134
11131
|
}, Vp = { key: 2 }, Ap = {
|
|
@@ -11156,7 +11153,7 @@ function Hp(e, t, n, s, i, l) {
|
|
|
11156
11153
|
onClick: (p) => l.clickedStep(p, h)
|
|
11157
11154
|
}, {
|
|
11158
11155
|
default: v(() => [
|
|
11159
|
-
n.showStepNumber ? (a(), r("span",
|
|
11156
|
+
n.showStepNumber ? (a(), r("span", Mp, g(h + 1), 1)) : m("", !0),
|
|
11160
11157
|
u.iconClass ? (a(), C(d, {
|
|
11161
11158
|
key: 1,
|
|
11162
11159
|
iconClass: u.iconClass,
|
|
@@ -11181,7 +11178,7 @@ function Hp(e, t, n, s, i, l) {
|
|
|
11181
11178
|
], 2))), 128))
|
|
11182
11179
|
], 2);
|
|
11183
11180
|
}
|
|
11184
|
-
const Bi = /* @__PURE__ */ B(
|
|
11181
|
+
const Bi = /* @__PURE__ */ B(Pp, [["render", Hp]]), qp = {
|
|
11185
11182
|
name: "CmdMultistepFormWrapper",
|
|
11186
11183
|
data() {
|
|
11187
11184
|
return {
|
|
@@ -11192,6 +11189,10 @@ const Bi = /* @__PURE__ */ B(Mp, [["render", Hp]]), qp = {
|
|
|
11192
11189
|
};
|
|
11193
11190
|
},
|
|
11194
11191
|
props: {
|
|
11192
|
+
requiredPages: {
|
|
11193
|
+
type: Array,
|
|
11194
|
+
default: []
|
|
11195
|
+
},
|
|
11195
11196
|
/**
|
|
11196
11197
|
* properties for CmdMultistepFormProgressBar-component
|
|
11197
11198
|
*/
|
|
@@ -11258,9 +11259,20 @@ const Bi = /* @__PURE__ */ B(Mp, [["render", Hp]]), qp = {
|
|
|
11258
11259
|
}
|
|
11259
11260
|
},
|
|
11260
11261
|
computed: {
|
|
11261
|
-
|
|
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'
|
|
11262
11271
|
atleastOneStepWithError() {
|
|
11263
|
-
|
|
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);
|
|
11264
11276
|
},
|
|
11265
11277
|
// check if a page ha
|
|
11266
11278
|
pageHasError() {
|
|
@@ -11339,9 +11351,9 @@ function Up(e, t, n, s, i, l) {
|
|
|
11339
11351
|
class: x("multistep-page-" + h),
|
|
11340
11352
|
key: p
|
|
11341
11353
|
}, [
|
|
11342
|
-
i.validationStatusForSteps.some((b) => b.page ===
|
|
11354
|
+
i.validationStatusForSteps.some((b) => b.page === i.currentPage) ? (a(), C(c, {
|
|
11343
11355
|
key: 0,
|
|
11344
|
-
systemMessage: l.getSystemMessage(
|
|
11356
|
+
systemMessage: l.getSystemMessage(i.currentPage),
|
|
11345
11357
|
validationStatus: "error"
|
|
11346
11358
|
}, null, 8, ["systemMessage"])) : m("", !0),
|
|
11347
11359
|
D(e.$slots, "page-" + h, {
|
|
@@ -11355,6 +11367,15 @@ function Up(e, t, n, s, i, l) {
|
|
|
11355
11367
|
[$, h === i.currentPage]
|
|
11356
11368
|
])), 128)),
|
|
11357
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),
|
|
11358
11379
|
D(e.$slots, "page-last", {
|
|
11359
11380
|
setErrorOnPage: (h) => l.setErrorOnPage(e.step, h),
|
|
11360
11381
|
removeErrorOnPage: () => l.removeErrorOnPage(e.step),
|
|
@@ -12603,8 +12624,8 @@ const Di = /* @__PURE__ */ B(Lf, [["render", If]]), Bf = {
|
|
|
12603
12624
|
});
|
|
12604
12625
|
}
|
|
12605
12626
|
}
|
|
12606
|
-
}, Df = { class: "button-wrapper" }, Ff = ["title"],
|
|
12607
|
-
function
|
|
12627
|
+
}, Df = { class: "button-wrapper" }, Ff = ["title"], Pf = { key: 1 };
|
|
12628
|
+
function Mf(e, t, n, s, i, l) {
|
|
12608
12629
|
const d = Di;
|
|
12609
12630
|
return a(), r("footer", {
|
|
12610
12631
|
class: x(["cmd-page-footer flex-container", { "small-buttons": n.useSmallButtons }])
|
|
@@ -12628,12 +12649,12 @@ function Pf(e, t, n, s, i, l) {
|
|
|
12628
12649
|
key: 0,
|
|
12629
12650
|
class: x(l.buttonPrintViewOptions.icon?.iconClass)
|
|
12630
12651
|
}, null, 2)) : m("", !0),
|
|
12631
|
-
l.buttonPrintViewOptions.text ? (a(), r("span",
|
|
12652
|
+
l.buttonPrintViewOptions.text ? (a(), r("span", Pf, g(l.buttonPrintViewOptions.text), 1)) : m("", !0)
|
|
12632
12653
|
], 10, Ff)) : m("", !0)
|
|
12633
12654
|
])
|
|
12634
12655
|
], 2);
|
|
12635
12656
|
}
|
|
12636
|
-
const Vf = /* @__PURE__ */ B(Bf, [["render",
|
|
12657
|
+
const Vf = /* @__PURE__ */ B(Bf, [["render", Mf]]), Af = {
|
|
12637
12658
|
name: "CmdPageHeader",
|
|
12638
12659
|
props: {
|
|
12639
12660
|
/**
|
|
@@ -13860,7 +13881,7 @@ function Fh(e, t, n, s, i, l) {
|
|
|
13860
13881
|
])) : m("", !0)
|
|
13861
13882
|
], 2);
|
|
13862
13883
|
}
|
|
13863
|
-
const
|
|
13884
|
+
const Ph = /* @__PURE__ */ B(Bh, [["render", Fh]]), Mh = {
|
|
13864
13885
|
name: "CmdSwitchLanguage",
|
|
13865
13886
|
emits: ["click"],
|
|
13866
13887
|
data() {
|
|
@@ -13941,7 +13962,7 @@ function qh(e, t, n, s, i, l) {
|
|
|
13941
13962
|
])
|
|
13942
13963
|
]);
|
|
13943
13964
|
}
|
|
13944
|
-
const Rh = /* @__PURE__ */ B(
|
|
13965
|
+
const Rh = /* @__PURE__ */ B(Mh, [["render", qh]]), jh = {
|
|
13945
13966
|
name: "CmdTable",
|
|
13946
13967
|
data() {
|
|
13947
13968
|
return {
|
|
@@ -14778,7 +14799,7 @@ const yg = /* @__PURE__ */ B(fg, [["render", gg]]), bg = {
|
|
|
14778
14799
|
};
|
|
14779
14800
|
}
|
|
14780
14801
|
};
|
|
14781
|
-
function
|
|
14802
|
+
function Pi(e, t) {
|
|
14782
14803
|
return function() {
|
|
14783
14804
|
return e.apply(t, arguments);
|
|
14784
14805
|
};
|
|
@@ -14790,10 +14811,10 @@ const { toString: xg } = Object.prototype, { getPrototypeOf: en } = Object, it =
|
|
|
14790
14811
|
function Cg(e) {
|
|
14791
14812
|
return e !== null && !Ee(e) && e.constructor !== null && !Ee(e.constructor) && ne(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
14792
14813
|
}
|
|
14793
|
-
const
|
|
14814
|
+
const Mi = ae("ArrayBuffer");
|
|
14794
14815
|
function vg(e) {
|
|
14795
14816
|
let t;
|
|
14796
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
14817
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Mi(e.buffer), t;
|
|
14797
14818
|
}
|
|
14798
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) => {
|
|
14799
14820
|
if (it(e) !== "object")
|
|
@@ -14804,7 +14825,7 @@ const kg = lt("string"), ne = lt("function"), Vi = lt("number"), ot = (e) => e !
|
|
|
14804
14825
|
let t;
|
|
14805
14826
|
return e && (typeof FormData == "function" && e instanceof FormData || ne(e.append) && ((t = it(e)) === "formdata" || // detect form-data instance
|
|
14806
14827
|
t === "object" && ne(e.toString) && e.toString() === "[object FormData]"));
|
|
14807
|
-
}, Bg = ae("URLSearchParams"), [Dg, Fg,
|
|
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, "");
|
|
14808
14829
|
function He(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
14809
14830
|
if (e === null || typeof e > "u")
|
|
14810
14831
|
return;
|
|
@@ -14839,7 +14860,7 @@ function It() {
|
|
|
14839
14860
|
return t;
|
|
14840
14861
|
}
|
|
14841
14862
|
const Ag = (e, t, n, { allOwnKeys: s } = {}) => (He(t, (i, l) => {
|
|
14842
|
-
n && ne(i) ? e[l] =
|
|
14863
|
+
n && ne(i) ? e[l] = Pi(i, n) : e[l] = i;
|
|
14843
14864
|
}, { allOwnKeys: s }), e), Eg = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Hg = (e, t, n, s) => {
|
|
14844
14865
|
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
14845
14866
|
value: t.prototype
|
|
@@ -14885,7 +14906,7 @@ const Ag = (e, t, n, { allOwnKeys: s } = {}) => (He(t, (i, l) => {
|
|
|
14885
14906
|
function(n, s, i) {
|
|
14886
14907
|
return s.toUpperCase() + i;
|
|
14887
14908
|
}
|
|
14888
|
-
),
|
|
14909
|
+
), Pn = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kg = ae("RegExp"), qi = (e, t) => {
|
|
14889
14910
|
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
14890
14911
|
He(n, (i, l) => {
|
|
14891
14912
|
let d;
|
|
@@ -14914,10 +14935,10 @@ const Ag = (e, t, n, { allOwnKeys: s } = {}) => (He(t, (i, l) => {
|
|
|
14914
14935
|
};
|
|
14915
14936
|
return _e(e) ? s(e) : s(String(e).split(t)), n;
|
|
14916
14937
|
}, Zg = () => {
|
|
14917
|
-
}, Qg = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, gt = "abcdefghijklmnopqrstuvwxyz",
|
|
14918
|
-
DIGIT:
|
|
14938
|
+
}, Qg = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, gt = "abcdefghijklmnopqrstuvwxyz", Mn = "0123456789", Ri = {
|
|
14939
|
+
DIGIT: Mn,
|
|
14919
14940
|
ALPHA: gt,
|
|
14920
|
-
ALPHA_DIGIT: gt + gt.toUpperCase() +
|
|
14941
|
+
ALPHA_DIGIT: gt + gt.toUpperCase() + Mn
|
|
14921
14942
|
}, Xg = (e = 16, t = Ri.ALPHA_DIGIT) => {
|
|
14922
14943
|
let n = "";
|
|
14923
14944
|
const { length: s } = t;
|
|
@@ -14947,7 +14968,7 @@ const ey = (e) => {
|
|
|
14947
14968
|
return n(e, 0);
|
|
14948
14969
|
}, ty = ae("AsyncFunction"), ny = (e) => e && (ot(e) || ne(e)) && ne(e.then) && ne(e.catch), _ = {
|
|
14949
14970
|
isArray: _e,
|
|
14950
|
-
isArrayBuffer:
|
|
14971
|
+
isArrayBuffer: Mi,
|
|
14951
14972
|
isBuffer: Cg,
|
|
14952
14973
|
isFormData: Ig,
|
|
14953
14974
|
isArrayBufferView: vg,
|
|
@@ -14958,8 +14979,8 @@ const ey = (e) => {
|
|
|
14958
14979
|
isPlainObject: We,
|
|
14959
14980
|
isReadableStream: Dg,
|
|
14960
14981
|
isRequest: Fg,
|
|
14961
|
-
isResponse:
|
|
14962
|
-
isHeaders:
|
|
14982
|
+
isResponse: Pg,
|
|
14983
|
+
isHeaders: Mg,
|
|
14963
14984
|
isUndefined: Ee,
|
|
14964
14985
|
isDate: Tg,
|
|
14965
14986
|
isFile: Sg,
|
|
@@ -14984,8 +15005,8 @@ const ey = (e) => {
|
|
|
14984
15005
|
forEachEntry: Ng,
|
|
14985
15006
|
matchAll: zg,
|
|
14986
15007
|
isHTMLForm: Wg,
|
|
14987
|
-
hasOwnProperty:
|
|
14988
|
-
hasOwnProp:
|
|
15008
|
+
hasOwnProperty: Pn,
|
|
15009
|
+
hasOwnProp: Pn,
|
|
14989
15010
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
14990
15011
|
reduceDescriptors: qi,
|
|
14991
15012
|
freezeMethods: Yg,
|
|
@@ -15786,7 +15807,7 @@ const Qi = (e) => {
|
|
|
15786
15807
|
h && d.set(i, h);
|
|
15787
15808
|
}
|
|
15788
15809
|
return t;
|
|
15789
|
-
}, Fy = typeof XMLHttpRequest < "u",
|
|
15810
|
+
}, Fy = typeof XMLHttpRequest < "u", Py = Fy && function(e) {
|
|
15790
15811
|
return new Promise(function(n, s) {
|
|
15791
15812
|
const i = Qi(e);
|
|
15792
15813
|
let l = i.data;
|
|
@@ -15843,7 +15864,7 @@ const Qi = (e) => {
|
|
|
15843
15864
|
}
|
|
15844
15865
|
p.send(l || null);
|
|
15845
15866
|
});
|
|
15846
|
-
},
|
|
15867
|
+
}, My = (e, t) => {
|
|
15847
15868
|
let n = new AbortController(), s;
|
|
15848
15869
|
const i = function(u) {
|
|
15849
15870
|
if (!s) {
|
|
@@ -15959,7 +15980,7 @@ const Hy = async (e) => {
|
|
|
15959
15980
|
fetchOptions: S
|
|
15960
15981
|
} = Qi(e);
|
|
15961
15982
|
h = h ? (h + "").toLowerCase() : "text";
|
|
15962
|
-
let [I, L] = i || l || d ?
|
|
15983
|
+
let [I, L] = i || l || d ? My([i, l], d) : [], O, V;
|
|
15963
15984
|
const q = () => {
|
|
15964
15985
|
!O && setTimeout(() => {
|
|
15965
15986
|
I && I.unsubscribe();
|
|
@@ -16023,12 +16044,12 @@ const Hy = async (e) => {
|
|
|
16023
16044
|
}
|
|
16024
16045
|
) : E.from(j, j && j.code, e, V);
|
|
16025
16046
|
}
|
|
16026
|
-
}),
|
|
16047
|
+
}), Pt = {
|
|
16027
16048
|
http: iy,
|
|
16028
|
-
xhr:
|
|
16049
|
+
xhr: Py,
|
|
16029
16050
|
fetch: Ry
|
|
16030
16051
|
};
|
|
16031
|
-
_.forEach(
|
|
16052
|
+
_.forEach(Pt, (e, t) => {
|
|
16032
16053
|
if (e) {
|
|
16033
16054
|
try {
|
|
16034
16055
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -16046,7 +16067,7 @@ const Nn = (e) => `- ${e}`, jy = (e) => _.isFunction(e) || e === null || e === !
|
|
|
16046
16067
|
for (let l = 0; l < t; l++) {
|
|
16047
16068
|
n = e[l];
|
|
16048
16069
|
let d;
|
|
16049
|
-
if (s = n, !jy(n) && (s =
|
|
16070
|
+
if (s = n, !jy(n) && (s = Pt[(d = String(n)).toLowerCase()], s === void 0))
|
|
16050
16071
|
throw new E(`Unknown adapter '${d}'`);
|
|
16051
16072
|
if (s)
|
|
16052
16073
|
break;
|
|
@@ -16066,7 +16087,7 @@ const Nn = (e) => `- ${e}`, jy = (e) => _.isFunction(e) || e === null || e === !
|
|
|
16066
16087
|
}
|
|
16067
16088
|
return s;
|
|
16068
16089
|
},
|
|
16069
|
-
adapters:
|
|
16090
|
+
adapters: Pt
|
|
16070
16091
|
};
|
|
16071
16092
|
function xt(e) {
|
|
16072
16093
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -16132,10 +16153,10 @@ function Uy(e, t, n) {
|
|
|
16132
16153
|
throw new E("Unknown option " + l, E.ERR_BAD_OPTION);
|
|
16133
16154
|
}
|
|
16134
16155
|
}
|
|
16135
|
-
const
|
|
16156
|
+
const Mt = {
|
|
16136
16157
|
assertOptions: Uy,
|
|
16137
16158
|
validators: ln
|
|
16138
|
-
}, ue =
|
|
16159
|
+
}, ue = Mt.validators;
|
|
16139
16160
|
let ye = class {
|
|
16140
16161
|
constructor(t) {
|
|
16141
16162
|
this.defaults = t, this.interceptors = {
|
|
@@ -16171,13 +16192,13 @@ let ye = class {
|
|
|
16171
16192
|
_request(t, n) {
|
|
16172
16193
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = xe(this.defaults, n);
|
|
16173
16194
|
const { transitional: s, paramsSerializer: i, headers: l } = n;
|
|
16174
|
-
s !== void 0 &&
|
|
16195
|
+
s !== void 0 && Mt.assertOptions(s, {
|
|
16175
16196
|
silentJSONParsing: ue.transitional(ue.boolean),
|
|
16176
16197
|
forcedJSONParsing: ue.transitional(ue.boolean),
|
|
16177
16198
|
clarifyTimeoutError: ue.transitional(ue.boolean)
|
|
16178
16199
|
}, !1), i != null && (_.isFunction(i) ? n.paramsSerializer = {
|
|
16179
16200
|
serialize: i
|
|
16180
|
-
} :
|
|
16201
|
+
} : Mt.assertOptions(i, {
|
|
16181
16202
|
encode: ue.function,
|
|
16182
16203
|
serialize: ue.function
|
|
16183
16204
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -16401,7 +16422,7 @@ Object.entries(Vt).forEach(([e, t]) => {
|
|
|
16401
16422
|
Vt[t] = e;
|
|
16402
16423
|
});
|
|
16403
16424
|
function nl(e) {
|
|
16404
|
-
const t = new ye(e), n =
|
|
16425
|
+
const t = new ye(e), n = Pi(ye.prototype.request, t);
|
|
16405
16426
|
return _.extend(n, ye.prototype, t, { allOwnKeys: !0 }), _.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
16406
16427
|
return nl(xe(e, i));
|
|
16407
16428
|
}, n;
|
|
@@ -17587,7 +17608,7 @@ function Fb(e, t, n, s, i, l) {
|
|
|
17587
17608
|
], 64))), 128))
|
|
17588
17609
|
]);
|
|
17589
17610
|
}
|
|
17590
|
-
const
|
|
17611
|
+
const Pb = /* @__PURE__ */ B(Bb, [["render", Fb]]), Mb = {
|
|
17591
17612
|
name: "MultipleListsOfLinks",
|
|
17592
17613
|
props: {
|
|
17593
17614
|
segments: {
|
|
@@ -17610,7 +17631,7 @@ function Ab(e, t, n, s, i, l) {
|
|
|
17610
17631
|
], 64))), 128))
|
|
17611
17632
|
]);
|
|
17612
17633
|
}
|
|
17613
|
-
const Eb = /* @__PURE__ */ B(
|
|
17634
|
+
const Eb = /* @__PURE__ */ B(Mb, [["render", Ab]]), Hb = {
|
|
17614
17635
|
name: "ContactInformation",
|
|
17615
17636
|
props: {
|
|
17616
17637
|
/**
|
|
@@ -18218,7 +18239,7 @@ const Ub = /* @__PURE__ */ B(Hb, [["render", jb]]), ll = [
|
|
|
18218
18239
|
}
|
|
18219
18240
|
};
|
|
18220
18241
|
function Yb(e, t, n, s, i, l) {
|
|
18221
|
-
const d = Ub, c = il, u = Eb, h =
|
|
18242
|
+
const d = Ub, c = il, u = Eb, h = Pb;
|
|
18222
18243
|
return a(), r(w, null, [
|
|
18223
18244
|
f(c, null, {
|
|
18224
18245
|
default: v(() => [
|
|
@@ -18329,10 +18350,10 @@ const Xb = /* @__PURE__ */ B(Jb, [["render", Qb]]), $b = {
|
|
|
18329
18350
|
};
|
|
18330
18351
|
}
|
|
18331
18352
|
};
|
|
18332
|
-
function
|
|
18353
|
+
function Pk(e = !1) {
|
|
18333
18354
|
return e ? (/* @__PURE__ */ new Date()).toISOString() : (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
18334
18355
|
}
|
|
18335
|
-
function
|
|
18356
|
+
function Mk() {
|
|
18336
18357
|
const e = /* @__PURE__ */ new Date(), t = String(e.getHours()).padStart(2, "0"), n = String(e.getMinutes()).padStart(2, "0");
|
|
18337
18358
|
return t + ":" + n;
|
|
18338
18359
|
}
|
|
@@ -18863,7 +18884,7 @@ function Fx(e, t, n, s, i, l) {
|
|
|
18863
18884
|
_: 1
|
|
18864
18885
|
}, 16);
|
|
18865
18886
|
}
|
|
18866
|
-
const
|
|
18887
|
+
const Px = /* @__PURE__ */ B(Dx, [["render", Fx]]), Mx = [
|
|
18867
18888
|
{
|
|
18868
18889
|
text: "Account owner:",
|
|
18869
18890
|
value: "Company name",
|
|
@@ -19921,9 +19942,9 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
|
|
|
19921
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 = {
|
|
19922
19943
|
listOfRecommendations: IC,
|
|
19923
19944
|
cmdFormElement: BC
|
|
19924
|
-
}, 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 },
|
|
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&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 = {
|
|
19925
19946
|
cmdFormElement: FC,
|
|
19926
|
-
networks:
|
|
19947
|
+
networks: PC
|
|
19927
19948
|
}, VC = [
|
|
19928
19949
|
{
|
|
19929
19950
|
text: "Tab 1",
|
|
@@ -20895,7 +20916,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
|
|
|
20895
20916
|
text: "Zimbabwe",
|
|
20896
20917
|
value: "zw"
|
|
20897
20918
|
}
|
|
20898
|
-
], QC = "comand-component-library", XC = "4.2.
|
|
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 = {
|
|
20899
20920
|
name: QC,
|
|
20900
20921
|
version: XC,
|
|
20901
20922
|
license: $C,
|
|
@@ -22163,7 +22184,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
|
|
|
22163
22184
|
},
|
|
22164
22185
|
// assign data from json files to data-properties
|
|
22165
22186
|
addressData: ll,
|
|
22166
|
-
bankAccountData:
|
|
22187
|
+
bankAccountData: Mx,
|
|
22167
22188
|
boxProductData: Ax,
|
|
22168
22189
|
boxUserData: Vx,
|
|
22169
22190
|
breadcrumbsData: qx,
|
|
@@ -22191,7 +22212,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
|
|
|
22191
22212
|
selectOptionsData: OC,
|
|
22192
22213
|
slideshowData: LC,
|
|
22193
22214
|
smartSearchData: DC,
|
|
22194
|
-
socialNetworksData:
|
|
22215
|
+
socialNetworksData: MC,
|
|
22195
22216
|
tableDataSmall: RC,
|
|
22196
22217
|
tableDataLarge: KC,
|
|
22197
22218
|
tabsData: VC,
|
|
@@ -22434,7 +22455,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
|
|
|
22434
22455
|
}, T1 = {
|
|
22435
22456
|
class: "headline-demopage",
|
|
22436
22457
|
id: "section-address-data"
|
|
22437
|
-
}, 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" },
|
|
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 = {
|
|
22438
22459
|
class: "inline",
|
|
22439
22460
|
for: "range-value"
|
|
22440
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 = {
|
|
@@ -22485,7 +22506,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
|
|
|
22485
22506
|
}, kv = {
|
|
22486
22507
|
class: "headline-demopage",
|
|
22487
22508
|
id: "section-multistep-form-wrapper"
|
|
22488
|
-
}, 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"],
|
|
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 = {
|
|
22489
22510
|
class: "headline-demopage",
|
|
22490
22511
|
id: "section-newsletter-subscription"
|
|
22491
22512
|
}, Hv = {
|
|
@@ -22556,7 +22577,7 @@ const Mx = /* @__PURE__ */ B(Dx, [["render", Fx]]), Px = [
|
|
|
22556
22577
|
id: "content"
|
|
22557
22578
|
};
|
|
22558
22579
|
function rk(e, t, n, s, i, l) {
|
|
22559
|
-
const d = Xt, c = vi, u = lh, h = Zt, p = wi, b = mh, S = il, I = hi, L = Ti, O = K, V =
|
|
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");
|
|
22560
22581
|
return z((a(), r("div", {
|
|
22561
22582
|
class: "page-wrapper",
|
|
22562
22583
|
id: l.templateId
|
|
@@ -22927,7 +22948,7 @@ function rk(e, t, n, s, i, l) {
|
|
|
22927
22948
|
}, { useCustomTooltip: !1 }), null, 16, ["status", "disabled"])
|
|
22928
22949
|
]),
|
|
22929
22950
|
t[163] || (t[163] = o("h3", null, "Inputfields in Columns", -1)),
|
|
22930
|
-
o("div",
|
|
22951
|
+
o("div", P1, [
|
|
22931
22952
|
f(O, {
|
|
22932
22953
|
element: "input",
|
|
22933
22954
|
type: "text",
|
|
@@ -22973,7 +22994,7 @@ function rk(e, t, n, s, i, l) {
|
|
|
22973
22994
|
disabled: i.disabledStatus
|
|
22974
22995
|
}, null, 8, ["modelValue", "status", "disabled"])
|
|
22975
22996
|
]),
|
|
22976
|
-
o("div",
|
|
22997
|
+
o("div", M1, [
|
|
22977
22998
|
f(O, {
|
|
22978
22999
|
labelText: "Label for emailfield (with icon):",
|
|
22979
23000
|
element: "input",
|
|
@@ -24653,7 +24674,7 @@ function rk(e, t, n, s, i, l) {
|
|
|
24653
24674
|
})
|
|
24654
24675
|
]),
|
|
24655
24676
|
t[278] || (t[278] = o("h3", null, "Data provided by property", -1)),
|
|
24656
|
-
f(sn,
|
|
24677
|
+
f(sn, { requiredPages: [1, 2] }, {
|
|
24657
24678
|
"page-1": v((y) => [
|
|
24658
24679
|
t[265] || (t[265] = o("h3", null, "Page 1 - all fields required", -1)),
|
|
24659
24680
|
f(Y, {
|
|
@@ -24769,9 +24790,10 @@ function rk(e, t, n, s, i, l) {
|
|
|
24769
24790
|
F(" props.formDataForPage: " + g(y.formDataForPage), 1)
|
|
24770
24791
|
], 64)) : (a(), r(w, { key: 0 }, [
|
|
24771
24792
|
t[270] || (t[270] = o("h3", null, "Page 4", -1)),
|
|
24793
|
+
F(" props.atleastOneStepWithError: " + g(y.atleastOneStepWithError) + " ", 1),
|
|
24772
24794
|
f(Y, {
|
|
24773
24795
|
cmdHeadline: { headlineText: "Confirmation", headlineLevel: 3 },
|
|
24774
|
-
submitButton: { disabled: y.atleastOneStepWithError, type: "button" },
|
|
24796
|
+
submitButton: { disabled: y.atleastOneStepWithError || !i.dataPrivacyChecked, type: "button" },
|
|
24775
24797
|
cancelButton: { show: !1 },
|
|
24776
24798
|
onSubmit: l.validateForm
|
|
24777
24799
|
}, {
|
|
@@ -24785,15 +24807,11 @@ function rk(e, t, n, s, i, l) {
|
|
|
24785
24807
|
id: "confirm-data-privac",
|
|
24786
24808
|
required: !0,
|
|
24787
24809
|
modelValue: i.dataPrivacyChecked,
|
|
24788
|
-
"onUpdate:modelValue": [
|
|
24789
|
-
|
|
24790
|
-
(M) => l.setValue(M, "confirm-data-privacy", y)
|
|
24791
|
-
],
|
|
24792
|
-
onValidationStatusChange: (M) => l.setValidationStatusCheckbox(M, "confirm-data-privacy", y)
|
|
24793
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onValidationStatusChange"])
|
|
24810
|
+
"onUpdate:modelValue": t[99] || (t[99] = (M) => i.dataPrivacyChecked = M)
|
|
24811
|
+
}, null, 8, ["modelValue"])
|
|
24794
24812
|
]),
|
|
24795
|
-
_:
|
|
24796
|
-
},
|
|
24813
|
+
_: 1
|
|
24814
|
+
}, 8, ["submitButton", "onSubmit"])
|
|
24797
24815
|
], 64))
|
|
24798
24816
|
]),
|
|
24799
24817
|
_: 1
|
|
@@ -24828,11 +24846,11 @@ function rk(e, t, n, s, i, l) {
|
|
|
24828
24846
|
]),
|
|
24829
24847
|
"page-3": v((y) => [
|
|
24830
24848
|
t[275] || (t[275] = F(" Content Page 3 ", -1)),
|
|
24831
|
-
y.hasError ? (a(), r("span",
|
|
24849
|
+
y.hasError ? (a(), r("span", Pv, "Error")) : m("", !0)
|
|
24832
24850
|
]),
|
|
24833
24851
|
"page-4": v((y) => [
|
|
24834
24852
|
t[276] || (t[276] = F(" Content Page 4 ", -1)),
|
|
24835
|
-
y.hasError ? (a(), r("span",
|
|
24853
|
+
y.hasError ? (a(), r("span", Mv, "Error")) : m("", !0)
|
|
24836
24854
|
]),
|
|
24837
24855
|
"page-5": v((y) => [
|
|
24838
24856
|
t[277] || (t[277] = F(" Content Page 5 ", -1)),
|
|
@@ -25503,7 +25521,7 @@ function rk(e, t, n, s, i, l) {
|
|
|
25503
25521
|
])]),
|
|
25504
25522
|
_: 1
|
|
25505
25523
|
}),
|
|
25506
|
-
f(
|
|
25524
|
+
f(Pl),
|
|
25507
25525
|
f(Vl, {
|
|
25508
25526
|
show: i.fancyBoxCookieDisclaimer,
|
|
25509
25527
|
fancyBoxOptions: { closeIcon: { show: !1 } },
|
|
@@ -25512,7 +25530,7 @@ function rk(e, t, n, s, i, l) {
|
|
|
25512
25530
|
defaultAriaLabelText: "Cookie Disclaimer"
|
|
25513
25531
|
}, {
|
|
25514
25532
|
default: v(() => [
|
|
25515
|
-
f(
|
|
25533
|
+
f(Ml, {
|
|
25516
25534
|
cookieOptions: i.cookieDisclaimerData,
|
|
25517
25535
|
onCloseCookieDisclaimer: l.closeCookieDisclaimer,
|
|
25518
25536
|
modelValue: i.acceptedCookies,
|
|
@@ -25701,7 +25719,7 @@ export {
|
|
|
25701
25719
|
kh as CmdSiteSearch,
|
|
25702
25720
|
nt as CmdSlideButton,
|
|
25703
25721
|
Ih as CmdSlideshow,
|
|
25704
|
-
|
|
25722
|
+
Ph as CmdSmartSearch,
|
|
25705
25723
|
Di as CmdSocialNetworks,
|
|
25706
25724
|
Rh as CmdSwitchLanguage,
|
|
25707
25725
|
ve as CmdSystemMessage,
|
|
@@ -25721,13 +25739,13 @@ export {
|
|
|
25721
25739
|
qk as DirTelephone,
|
|
25722
25740
|
Ce as EditComponentWrapper,
|
|
25723
25741
|
X as I18n,
|
|
25724
|
-
|
|
25742
|
+
Pb as MultipleBoxWrapper,
|
|
25725
25743
|
Eb as MultipleListsOfLinks,
|
|
25726
25744
|
jk as capitalizeFirstLetter,
|
|
25727
25745
|
fi as createHtmlId,
|
|
25728
25746
|
Ae as createUuid,
|
|
25729
|
-
|
|
25730
|
-
|
|
25747
|
+
Pk as currentDate,
|
|
25748
|
+
Mk as currentTime,
|
|
25731
25749
|
al as formatDate,
|
|
25732
25750
|
ex as formatTime,
|
|
25733
25751
|
Nk as fullName,
|
package/package.json
CHANGED
package/src/ComponentLibrary.vue
CHANGED
|
@@ -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>
|
|
@@ -132,7 +132,6 @@
|
|
|
132
132
|
v-bind="elementAttributes"
|
|
133
133
|
@change="onChange"
|
|
134
134
|
@blur="onBlur"
|
|
135
|
-
@input="onInput"
|
|
136
135
|
:checked="isChecked"
|
|
137
136
|
:value="inputValue"
|
|
138
137
|
:class="[inputClass, validationStatus, toggleSwitchIconClass, { 'replace-input-type': replaceInputType}]"
|
|
@@ -880,12 +879,11 @@ export default {
|
|
|
880
879
|
this.validateInput(event)
|
|
881
880
|
this.closeTooltipOnBlur()
|
|
882
881
|
this.$emit('blur', event)
|
|
883
|
-
},
|
|
884
|
-
/*
|
|
882
|
+
},
|
|
885
883
|
onInput(event) {
|
|
886
884
|
this.validateInput(event)
|
|
887
885
|
this.$emit('update:modelValue', event.target.value)
|
|
888
|
-
}
|
|
886
|
+
},
|
|
889
887
|
onChange(event) {
|
|
890
888
|
this.validateInput(event)
|
|
891
889
|
|
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
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() {
|