comand-component-library 4.1.49 → 4.1.51
Sign up to get free protection for your applications and to get access to all the features.
@@ -5701,6 +5701,13 @@ const Dd = /* @__PURE__ */ V(pd, [["render", Fd]]), Md = {
|
|
5701
5701
|
};
|
5702
5702
|
},
|
5703
5703
|
props: {
|
5704
|
+
/**
|
5705
|
+
* website-key for Google-recaptcha v3
|
5706
|
+
*/
|
5707
|
+
reCaptchaWebsiteKey: {
|
5708
|
+
type: String,
|
5709
|
+
required: !1
|
5710
|
+
},
|
5704
5711
|
/**
|
5705
5712
|
* activate if native submit-event should be used
|
5706
5713
|
*/
|
@@ -5872,19 +5879,33 @@ const Dd = /* @__PURE__ */ V(pd, [["render", Fd]]), Md = {
|
|
5872
5879
|
},
|
5873
5880
|
methods: {
|
5874
5881
|
onSubmit(e) {
|
5875
|
-
var s;
|
5876
5882
|
if (this.onValidate(), this.formData = Object.assign({}, this.validator.validatePrivacy(this.formData)), this.formData.error || this.useNativeSubmit) {
|
5877
5883
|
this.formData.error && e.originalEvent.preventDefault();
|
5878
5884
|
return;
|
5879
5885
|
}
|
5880
|
-
|
5886
|
+
e.originalEvent.preventDefault(), this.reCaptchaWebsiteKey ? grecaptcha.ready(function() {
|
5887
|
+
grecaptcha.execute(this.reCaptchaWebsiteKey, { action: "submit" }).then(function(n) {
|
5888
|
+
this.submitForm(n);
|
5889
|
+
});
|
5890
|
+
}) : this.submitForm();
|
5891
|
+
},
|
5892
|
+
submitForm(e) {
|
5893
|
+
var s;
|
5894
|
+
const n = new FormData();
|
5895
|
+
e && n.set("recaptchaToken", e);
|
5896
|
+
const t = Object.keys(this.configuration);
|
5881
5897
|
for (let i = 0; i < t.length; i++)
|
5882
5898
|
n.set(this.configuration[t[i]].name, this.formData[t[i]].value);
|
5883
5899
|
fetch(this.formAction, { method: ((s = this.cmdForm) == null ? void 0 : s.formMethod) || "POST", body: n }).then((i) => {
|
5884
|
-
i.ok
|
5900
|
+
if (i.ok) {
|
5901
|
+
this.$refs.form.showMessage("success", this.getMessage("basic_form.system_message.success.message_sent_successfully"));
|
5902
|
+
for (let o in this.formData)
|
5903
|
+
o === "salutation" ? this.formData[o].value = this.configuration.salutation.default : o === "acceptPrivacy" ? this.formData[o].value = !1 : this.formData[o].value = "";
|
5904
|
+
} else
|
5905
|
+
this.$refs.form.showMessage("error", this.getMessage("basic_form.system_message.error.message_could_not_be_sent"));
|
5885
5906
|
}).catch((i) => {
|
5886
5907
|
this.$refs.form.showMessage("error", this.getMessage("basic_form.system_message.error.message_could_not_be_sent")), console.error(i);
|
5887
|
-
})
|
5908
|
+
});
|
5888
5909
|
},
|
5889
5910
|
onCountrySelect(e) {
|
5890
5911
|
this.cityBeforeZip = e === "us" || e === "uk";
|
@@ -18418,7 +18439,7 @@ function Xx(e, n, t, s, i, o) {
|
|
18418
18439
|
])
|
18419
18440
|
]));
|
18420
18441
|
}
|
18421
|
-
const $x = /* @__PURE__ */ V(Yx, [["render", Xx]]),
|
18442
|
+
const $x = /* @__PURE__ */ V(Yx, [["render", Xx]]), e1 = {
|
18422
18443
|
name: "PageOverview",
|
18423
18444
|
data() {
|
18424
18445
|
return {
|
@@ -18429,28 +18450,28 @@ const $x = /* @__PURE__ */ V(Yx, [["render", Xx]]), e_ = {
|
|
18429
18450
|
listOfSiteLinksData: Wg
|
18430
18451
|
};
|
18431
18452
|
}
|
18432
|
-
},
|
18453
|
+
}, t1 = /* @__PURE__ */ a("h2", {
|
18433
18454
|
class: "headline-demopage",
|
18434
18455
|
id: "section-contact-information"
|
18435
18456
|
}, [
|
18436
18457
|
/* @__PURE__ */ a("span", null, "Contact Information")
|
18437
|
-
], -1),
|
18458
|
+
], -1), n1 = /* @__PURE__ */ a("h2", {
|
18438
18459
|
class: "headline-demopage",
|
18439
18460
|
id: "section-multiple-lists-of-links-downloads"
|
18440
18461
|
}, [
|
18441
18462
|
/* @__PURE__ */ a("span", null, "Multiple Lists of links")
|
18442
|
-
], -1),
|
18463
|
+
], -1), i1 = /* @__PURE__ */ a("h3", { id: "section-multiple-lists-of-links-downloads" }, "Downloads", -1), o1 = /* @__PURE__ */ a("hr", null, null, -1), l1 = /* @__PURE__ */ a("h3", { id: "section-multiple-lists-of-links-sitemap" }, "SiteMap", -1), s1 = /* @__PURE__ */ a("h2", {
|
18443
18464
|
class: "headline-demopage",
|
18444
18465
|
id: "section-multiple-box-wrapper"
|
18445
18466
|
}, [
|
18446
18467
|
/* @__PURE__ */ a("span", null, "Multiple Box Wrapper")
|
18447
|
-
], -1),
|
18448
|
-
function
|
18468
|
+
], -1), a1 = /* @__PURE__ */ a("h3", { id: "section-multiple-box-wrapper-faqs" }, "FAQs", -1), r1 = /* @__PURE__ */ a("hr", null, null, -1), d1 = /* @__PURE__ */ a("h3", { id: "section-multiple-box-wrapper-team-overview" }, "Team Overview", -1);
|
18469
|
+
function c1(e, n, t, s, i, o) {
|
18449
18470
|
const d = $x, c = yo, u = Jx, g = zx;
|
18450
18471
|
return l(), r(S, null, [
|
18451
18472
|
h(c, null, {
|
18452
18473
|
default: k(() => [
|
18453
|
-
|
18474
|
+
t1,
|
18454
18475
|
h(d, {
|
18455
18476
|
cmdBasicForm: e.basicForm,
|
18456
18477
|
cmdAddressData: {},
|
@@ -18466,44 +18487,44 @@ function c_(e, n, t, s, i, o) {
|
|
18466
18487
|
}),
|
18467
18488
|
h(c, null, {
|
18468
18489
|
default: k(() => [
|
18469
|
-
|
18470
|
-
|
18490
|
+
n1,
|
18491
|
+
i1,
|
18471
18492
|
h(u, { segments: i.listOfDownloadsData }, null, 8, ["segments"]),
|
18472
|
-
|
18473
|
-
|
18493
|
+
o1,
|
18494
|
+
l1,
|
18474
18495
|
h(u, { segments: i.listOfSiteLinksData }, null, 8, ["segments"])
|
18475
18496
|
]),
|
18476
18497
|
_: 1
|
18477
18498
|
}),
|
18478
18499
|
h(c, null, {
|
18479
18500
|
default: k(() => [
|
18480
|
-
|
18481
|
-
|
18501
|
+
s1,
|
18502
|
+
a1,
|
18482
18503
|
h(g, { segments: i.faqsData }, null, 8, ["segments"]),
|
18483
|
-
|
18484
|
-
|
18504
|
+
r1,
|
18505
|
+
d1,
|
18485
18506
|
h(g, { segments: i.boxesTeamOverviewData }, null, 8, ["segments"])
|
18486
18507
|
]),
|
18487
18508
|
_: 1
|
18488
18509
|
})
|
18489
18510
|
], 64);
|
18490
18511
|
}
|
18491
|
-
const bo = /* @__PURE__ */ V(
|
18512
|
+
const bo = /* @__PURE__ */ V(e1, [["render", c1]]), u1 = "comand-component-library", m1 = "4.1.51", h1 = "GPL-3.0-only", p1 = "CoManD-UI", f1 = "module", g1 = {
|
18492
18513
|
prepublishOnly: "npm run build-lib",
|
18493
18514
|
dev: "vite",
|
18494
18515
|
build: "vite build",
|
18495
18516
|
"build-lib": "vite build && gulp",
|
18496
18517
|
preview: "vite preview"
|
18497
|
-
},
|
18518
|
+
}, y1 = [
|
18498
18519
|
"dist",
|
18499
18520
|
"src"
|
18500
|
-
],
|
18521
|
+
], b1 = {
|
18501
18522
|
".": "./dist/comand-component-library.js",
|
18502
18523
|
"./css.js": "./src/css.js",
|
18503
18524
|
"./style.css": "./dist/style.css",
|
18504
18525
|
"./variables.scss": "./src/assets/styles/variables.scss",
|
18505
18526
|
"./export-data.js": "./src/assets/data/export-data.js"
|
18506
|
-
},
|
18527
|
+
}, x1 = {
|
18507
18528
|
"clickout-event": "^1.1.2",
|
18508
18529
|
"comand-frontend-framework": "^4.1.11",
|
18509
18530
|
"comand-ui-iconfonts": "^1.0.14",
|
@@ -18512,7 +18533,7 @@ const bo = /* @__PURE__ */ V(e_, [["render", c_]]), u_ = "comand-component-libra
|
|
18512
18533
|
vue: "^3.2.31",
|
18513
18534
|
"vue-router": "^4.0.12",
|
18514
18535
|
vuex: "^4.0.2"
|
18515
|
-
},
|
18536
|
+
}, _1 = {
|
18516
18537
|
"@iconify/vue": "^4.0.0",
|
18517
18538
|
"@vitejs/plugin-vue": "^5.1.1",
|
18518
18539
|
"@vue/test-utils": "^2.0.0-0",
|
@@ -18522,19 +18543,19 @@ const bo = /* @__PURE__ */ V(e_, [["render", c_]]), u_ = "comand-component-libra
|
|
18522
18543
|
"unplugin-vue-components": "^0.24.0",
|
18523
18544
|
vite: "^5.4.11",
|
18524
18545
|
"vue-jest": "^5.0.0-0"
|
18525
|
-
},
|
18526
|
-
name:
|
18527
|
-
version:
|
18528
|
-
license:
|
18529
|
-
author:
|
18546
|
+
}, C1 = {
|
18547
|
+
name: u1,
|
18548
|
+
version: m1,
|
18549
|
+
license: h1,
|
18550
|
+
author: p1,
|
18530
18551
|
private: !1,
|
18531
|
-
type:
|
18532
|
-
scripts:
|
18533
|
-
files:
|
18534
|
-
exports:
|
18535
|
-
dependencies:
|
18536
|
-
devDependencies:
|
18537
|
-
},
|
18552
|
+
type: f1,
|
18553
|
+
scripts: g1,
|
18554
|
+
files: y1,
|
18555
|
+
exports: b1,
|
18556
|
+
dependencies: x1,
|
18557
|
+
devDependencies: _1
|
18558
|
+
}, w1 = {
|
18538
18559
|
data() {
|
18539
18560
|
return {
|
18540
18561
|
cmdAddressDataSettingsData: {
|
@@ -19399,9 +19420,9 @@ const bo = /* @__PURE__ */ V(e_, [["render", c_]]), u_ = "comand-component-libra
|
|
19399
19420
|
}
|
19400
19421
|
};
|
19401
19422
|
}
|
19402
|
-
}, xo = "/media/images/content-images/landscape-medium.jpg",
|
19423
|
+
}, xo = "/media/images/content-images/landscape-medium.jpg", k1 = "/media/images/demo-images/small/landscape-01.jpg", v1 = "/media/images/demo-images/small/landscape-02.jpg", T1 = "/media/images/demo-images/small/landscape-03.jpg", S1 = {
|
19403
19424
|
name: "App",
|
19404
|
-
mixins: [
|
19425
|
+
mixins: [w1],
|
19405
19426
|
components: {
|
19406
19427
|
PageOverview: bo
|
19407
19428
|
},
|
@@ -19565,7 +19586,7 @@ const bo = /* @__PURE__ */ V(e_, [["render", c_]]), u_ = "comand-component-libra
|
|
19565
19586
|
tabsData: Rg,
|
19566
19587
|
thumbnailScrollerImagesData: Ng,
|
19567
19588
|
thumbnailScrollerTextData: Ug,
|
19568
|
-
packageJson:
|
19589
|
+
packageJson: C1
|
19569
19590
|
};
|
19570
19591
|
},
|
19571
19592
|
computed: {
|
@@ -19763,39 +19784,39 @@ const bo = /* @__PURE__ */ V(e_, [["render", c_]]), u_ = "comand-component-libra
|
|
19763
19784
|
});
|
19764
19785
|
}
|
19765
19786
|
}
|
19766
|
-
},
|
19767
|
-
|
19768
|
-
|
19769
|
-
|
19770
|
-
|
19771
|
-
|
19772
|
-
],
|
19773
|
-
|
19774
|
-
],
|
19775
|
-
|
19776
|
-
],
|
19777
|
-
|
19778
|
-
],
|
19779
|
-
|
19780
|
-
],
|
19787
|
+
}, O1 = ["id"], L1 = /* @__PURE__ */ a("a", { id: "anchor-back-to-top" }, null, -1), I1 = { for: "select-template" }, B1 = /* @__PURE__ */ a("span", null, "Select template", -1), F1 = /* @__PURE__ */ a("option", { value: "blank" }, "Blank/Unstyled", -1), D1 = /* @__PURE__ */ a("option", { value: "business" }, "Business", -1), M1 = /* @__PURE__ */ a("option", { value: "casual" }, "Casual", -1), V1 = /* @__PURE__ */ a("option", { value: "dating" }, "Dating", -1), P1 = /* @__PURE__ */ a("option", { value: "influencer" }, "Influencer", -1), A1 = [
|
19788
|
+
F1,
|
19789
|
+
D1,
|
19790
|
+
M1,
|
19791
|
+
V1,
|
19792
|
+
P1
|
19793
|
+
], E1 = /* @__PURE__ */ a("span", null, "Color Scheme", -1), H1 = { class: "input-wrapper" }, q1 = { for: "default-color-scheme" }, R1 = /* @__PURE__ */ a("span", { class: "label-text" }, "Color-Scheme by Browser/OS", -1), N1 = { for: "light-mode" }, U1 = /* @__PURE__ */ a("span", { class: "label-text" }, "Light Mode", -1), j1 = { for: "dark-mode" }, z1 = /* @__PURE__ */ a("span", { class: "label-text" }, "Dark Mode", -1), G1 = ["href", "onClick"], W1 = { class: "box-footer comand-versions" }, K1 = /* @__PURE__ */ a("dt", null, "Frontend-Framework Version:", -1), J1 = /* @__PURE__ */ a("dt", null, "Component-Library Version:", -1), Y1 = { class: "closed-sidebar" }, Z1 = /* @__PURE__ */ a("span", { class: "icon-settings-template" }, null, -1), Q1 = [
|
19794
|
+
Z1
|
19795
|
+
], X1 = /* @__PURE__ */ a("span", { class: "icon-settings-component" }, null, -1), $1 = [
|
19796
|
+
X1
|
19797
|
+
], e_ = /* @__PURE__ */ a("span", { class: "icon-file-settings" }, null, -1), t_ = [
|
19798
|
+
e_
|
19799
|
+
], n_ = /* @__PURE__ */ a("span", null, "Hide sidebar", -1), i_ = [
|
19800
|
+
n_
|
19801
|
+
], o_ = {
|
19781
19802
|
key: 1,
|
19782
19803
|
id: "content"
|
19783
|
-
},
|
19804
|
+
}, l_ = /* @__PURE__ */ a("h1", { class: "headline-demopage" }, "Components Overview", -1), s_ = {
|
19784
19805
|
class: "headline-demopage",
|
19785
19806
|
id: "section-address-data"
|
19786
|
-
},
|
19807
|
+
}, a_ = /* @__PURE__ */ a("span", null, "Address Data", -1), r_ = { class: "flex-container" }, d_ = /* @__PURE__ */ a("h2", {
|
19787
19808
|
class: "headline-demopage",
|
19788
19809
|
id: "section-advanced-form-elements"
|
19789
|
-
}, "Advanced Form Elements", -1),
|
19810
|
+
}, "Advanced Form Elements", -1), c_ = /* @__PURE__ */ a("h3", null, [
|
19790
19811
|
/* @__PURE__ */ a("span", null, "Form elements status:")
|
19791
|
-
], -1),
|
19812
|
+
], -1), u_ = { class: "flex-container" }, m_ = { class: "list-status" }, h_ = { class: "error" }, p_ = { class: "flex-container" }, f_ = /* @__PURE__ */ a("legend", null, "Legend", -1), g_ = { class: "headline-demopage" }, y_ = /* @__PURE__ */ a("span", null, "Form Element-Component", -1), b_ = { class: "flex-container" }, x_ = { class: "flex-container" }, __ = /* @__PURE__ */ a("h2", null, "Inputfields in Columns", -1), C_ = { class: "flex-container" }, w_ = /* @__PURE__ */ a("span", { innerHTML: "Label with <a href='#'>Link</a> given by slot" }, null, -1), k_ = { class: "flex-container" }, v_ = /* @__PURE__ */ a("hr", null, null, -1), T_ = { class: "headline-demopage" }, S_ = /* @__PURE__ */ a("span", null, "Fake Selects", -1), O_ = { class: "flex-container" }, L_ = /* @__PURE__ */ a("hr", null, null, -1), I_ = /* @__PURE__ */ a("h2", null, "Progress Bar [native]", -1), B_ = /* @__PURE__ */ a("h2", null, "Slider [native]", -1), F_ = /* @__PURE__ */ a("span", { class: "label-text" }, "Single-Slider (with in- and output):", -1), D_ = { class: "flex-container no-flex" }, M_ = {
|
19792
19813
|
class: "inline",
|
19793
19814
|
for: "range-value"
|
19794
|
-
},
|
19815
|
+
}, V_ = /* @__PURE__ */ a("span", { class: "label-text" }, [
|
19795
19816
|
/* @__PURE__ */ a("span", null, "Range Value:")
|
19796
|
-
], -1),
|
19817
|
+
], -1), P_ = ["disabled"], A_ = { for: "range-slider" }, E_ = /* @__PURE__ */ a("span", { class: "label-text hidden" }, [
|
19797
19818
|
/* @__PURE__ */ a("span", null, "Range Value")
|
19798
|
-
], -1),
|
19819
|
+
], -1), H_ = ["disabled"], q_ = /* @__PURE__ */ a("hr", null, null, -1), R_ = /* @__PURE__ */ a("h2", null, "Toggle-Switches", -1), N_ = /* @__PURE__ */ a("h3", null, "Switches without switch-labels", -1), U_ = /* @__PURE__ */ a("h3", null, "Switches with switch-labels", -1), j_ = /* @__PURE__ */ a("br", null, null, -1), z_ = /* @__PURE__ */ a("br", null, null, -1), G_ = /* @__PURE__ */ a("h2", null, "Checkboxes and Radiobuttons", -1), W_ = /* @__PURE__ */ a("h3", null, "Checkboxes [native]", -1), K_ = { class: "label inline" }, J_ = /* @__PURE__ */ a("span", { class: "label-text" }, "Label for native checkboxes:", -1), Y_ = { class: "flex-container no-flex" }, Z_ = /* @__PURE__ */ a("a", { href: "#" }, "link", -1), Q_ = /* @__PURE__ */ a("h3", null, "Checkboxes (replaced)", -1), X_ = { class: "label inline" }, $_ = /* @__PURE__ */ a("span", { class: "label-text" }, "Label for Replaced Input-Type-Checkbox:", -1), eC = { class: "flex-container no-flex" }, tC = /* @__PURE__ */ a("h3", null, "Radiobuttons [native]", -1), nC = { class: "label inline" }, iC = /* @__PURE__ */ a("span", { class: "label-text" }, "Label for native radiobuttons:", -1), oC = { class: "flex-container no-flex" }, lC = /* @__PURE__ */ a("h3", null, "Radiobuttons (replaced)", -1), sC = { class: "label inline" }, aC = /* @__PURE__ */ a("span", { class: "label-text" }, "Label for Replaced Input-Type-Radio:", -1), rC = { class: "flex-container no-flex" }, dC = {
|
19799
19820
|
class: "headline-demopage",
|
19800
19821
|
id: "section-input-group"
|
19801
19822
|
}, cC = /* @__PURE__ */ a("dt", null, "Selected value:", -1), uC = /* @__PURE__ */ a("h3", null, "Input Groups with Checkboxes/Radiobuttons (toggle-switches)", -1), mC = /* @__PURE__ */ a("dt", null, "Selected value(s):", -1), hC = /* @__PURE__ */ a("dt", null, "Selected value(s):", -1), pC = /* @__PURE__ */ a("dt", null, "Selected value(s):", -1), fC = /* @__PURE__ */ a("dt", null, "Selected value(s):", -1), gC = { class: "flex-container" }, yC = /* @__PURE__ */ a("small", null, "(values will not be submitted with the form!)", -1), bC = { class: "button-wrapper no-flex" }, xC = ["disabled"], _C = /* @__PURE__ */ a("span", { class: "icon-check" }, null, -1), CC = /* @__PURE__ */ a("span", null, "Native submit-button", -1), wC = [
|
@@ -19843,17 +19864,17 @@ const bo = /* @__PURE__ */ V(e_, [["render", c_]]), u_ = "comand-component-libra
|
|
19843
19864
|
class: "headline-demopage",
|
19844
19865
|
id: "section-fancybox"
|
19845
19866
|
}, "Fancybox", -1), kw = /* @__PURE__ */ a("h3", null, "FancyBox with text", -1), vw = /* @__PURE__ */ a("h3", null, "FancyBox with large image given by url", -1), Tw = /* @__PURE__ */ a("img", {
|
19846
|
-
src:
|
19867
|
+
src: k1,
|
19847
19868
|
alt: "Alternative text"
|
19848
19869
|
}, null, -1), Sw = [
|
19849
19870
|
Tw
|
19850
19871
|
], Ow = /* @__PURE__ */ a("h3", null, "FancyBox with large image given by property", -1), Lw = /* @__PURE__ */ a("img", {
|
19851
|
-
src:
|
19872
|
+
src: v1,
|
19852
19873
|
alt: "Alternative text"
|
19853
19874
|
}, null, -1), Iw = [
|
19854
19875
|
Lw
|
19855
19876
|
], Bw = /* @__PURE__ */ a("h3", null, "FancyBox with image as object give by property", -1), Fw = /* @__PURE__ */ a("img", {
|
19856
|
-
src:
|
19877
|
+
src: T1,
|
19857
19878
|
alt: "Alternative text"
|
19858
19879
|
}, null, -1), Dw = [
|
19859
19880
|
Fw
|
@@ -19978,7 +19999,7 @@ function mv(e, n, t, s, i, o) {
|
|
19978
19999
|
class: "page-wrapper",
|
19979
20000
|
id: o.templateId
|
19980
20001
|
}, [
|
19981
|
-
|
20002
|
+
L1,
|
19982
20003
|
i.showLeftSidebar ? (l(), w(u, {
|
19983
20004
|
key: 0,
|
19984
20005
|
cmdHeadline: { headlineText: "Site Settings", headlineLevel: 3, textAlign: "center" },
|
@@ -20002,19 +20023,19 @@ function mv(e, n, t, s, i, o) {
|
|
20002
20023
|
onToggleCollapse: (z) => x.boxToggled(0, z)
|
20003
20024
|
}, {
|
20004
20025
|
body: k(() => [
|
20005
|
-
a("label",
|
20006
|
-
|
20026
|
+
a("label", I1, [
|
20027
|
+
B1,
|
20007
20028
|
X(a("select", {
|
20008
20029
|
id: "select-template",
|
20009
20030
|
"onUpdate:modelValue": n[0] || (n[0] = (z) => i.selectedTemplate = z)
|
20010
|
-
},
|
20031
|
+
}, A1, 512), [
|
20011
20032
|
[Po, i.selectedTemplate]
|
20012
20033
|
])
|
20013
20034
|
]),
|
20014
20035
|
a("div", null, [
|
20015
|
-
|
20016
|
-
a("div",
|
20017
|
-
a("label",
|
20036
|
+
E1,
|
20037
|
+
a("div", H1, [
|
20038
|
+
a("label", q1, [
|
20018
20039
|
X(a("input", {
|
20019
20040
|
type: "radio",
|
20020
20041
|
id: "default-color-scheme",
|
@@ -20024,9 +20045,9 @@ function mv(e, n, t, s, i, o) {
|
|
20024
20045
|
}, null, 512), [
|
20025
20046
|
[Dt, i.colorScheme]
|
20026
20047
|
]),
|
20027
|
-
|
20048
|
+
R1
|
20028
20049
|
]),
|
20029
|
-
a("label",
|
20050
|
+
a("label", N1, [
|
20030
20051
|
X(a("input", {
|
20031
20052
|
type: "radio",
|
20032
20053
|
id: "light-mode",
|
@@ -20036,9 +20057,9 @@ function mv(e, n, t, s, i, o) {
|
|
20036
20057
|
}, null, 512), [
|
20037
20058
|
[Dt, i.colorScheme]
|
20038
20059
|
]),
|
20039
|
-
|
20060
|
+
U1
|
20040
20061
|
]),
|
20041
|
-
a("label",
|
20062
|
+
a("label", j1, [
|
20042
20063
|
X(a("input", {
|
20043
20064
|
type: "radio",
|
20044
20065
|
id: "dark-mode",
|
@@ -20048,7 +20069,7 @@ function mv(e, n, t, s, i, o) {
|
|
20048
20069
|
}, null, 512), [
|
20049
20070
|
[Dt, i.colorScheme]
|
20050
20071
|
]),
|
20051
|
-
|
20072
|
+
z1
|
20052
20073
|
])
|
20053
20074
|
])
|
20054
20075
|
])
|
@@ -20073,7 +20094,7 @@ function mv(e, n, t, s, i, o) {
|
|
20073
20094
|
href: o.sectionName(z),
|
20074
20095
|
onClick: (yv) => o.updateSettingsSidebar(o.componentNameWithPrefix(z)),
|
20075
20096
|
title: "Go to component"
|
20076
|
-
}, y(o.readableComponentName(z)), 9,
|
20097
|
+
}, y(o.readableComponentName(z)), 9, G1)
|
20077
20098
|
], 2))), 128))
|
20078
20099
|
])
|
20079
20100
|
]),
|
@@ -20135,37 +20156,37 @@ function mv(e, n, t, s, i, o) {
|
|
20135
20156
|
]),
|
20136
20157
|
_: 1
|
20137
20158
|
}, 8, ["openBoxesByDefault"]),
|
20138
|
-
a("dl",
|
20139
|
-
|
20159
|
+
a("dl", W1, [
|
20160
|
+
K1,
|
20140
20161
|
a("dd", null, y(i.packageJson.dependencies["comand-frontend-framework"].replace("^", "")), 1),
|
20141
|
-
|
20162
|
+
J1,
|
20142
20163
|
a("dd", null, y(i.packageJson.version), 1)
|
20143
20164
|
])
|
20144
20165
|
]),
|
20145
20166
|
closed: k(() => [
|
20146
|
-
a("div",
|
20167
|
+
a("div", Y1, [
|
20147
20168
|
a("a", {
|
20148
20169
|
href: "#",
|
20149
20170
|
class: "button primary",
|
20150
20171
|
title: "Open Template Selection",
|
20151
20172
|
onClick: n[9] || (n[9] = T((x) => o.openBox(0), ["prevent"]))
|
20152
|
-
},
|
20173
|
+
}, Q1),
|
20153
20174
|
a("a", {
|
20154
20175
|
href: "#",
|
20155
20176
|
class: "button primary",
|
20156
20177
|
title: "Open Components Overview",
|
20157
20178
|
onClick: n[10] || (n[10] = T((x) => o.openBox(1), ["prevent"]))
|
20158
|
-
}, $
|
20179
|
+
}, $1),
|
20159
20180
|
a("a", {
|
20160
20181
|
href: "#",
|
20161
20182
|
class: "button primary",
|
20162
20183
|
title: "Open Page-Templates",
|
20163
20184
|
onClick: n[11] || (n[11] = T((x) => o.openBox(2), ["prevent"]))
|
20164
|
-
},
|
20185
|
+
}, t_),
|
20165
20186
|
a("a", {
|
20166
20187
|
href: "#",
|
20167
20188
|
onClick: n[12] || (n[12] = T((x) => i.showLeftSidebar = !1, ["prevent"]))
|
20168
|
-
},
|
20189
|
+
}, i_)
|
20169
20190
|
])
|
20170
20191
|
]),
|
20171
20192
|
_: 1
|
@@ -20183,17 +20204,17 @@ function mv(e, n, t, s, i, o) {
|
|
20183
20204
|
]),
|
20184
20205
|
_: 1
|
20185
20206
|
}),
|
20186
|
-
i.componentView ? (l(), r("main",
|
20207
|
+
i.componentView ? (l(), r("main", o_, [
|
20187
20208
|
h(C, null, {
|
20188
20209
|
default: k(() => [
|
20189
|
-
|
20210
|
+
l_
|
20190
20211
|
]),
|
20191
20212
|
_: 1
|
20192
20213
|
}),
|
20193
20214
|
h(C, null, {
|
20194
20215
|
default: k(() => [
|
20195
|
-
a("h2",
|
20196
|
-
|
20216
|
+
a("h2", s_, [
|
20217
|
+
a_,
|
20197
20218
|
a("a", {
|
20198
20219
|
href: "#",
|
20199
20220
|
class: "button small icon-cog",
|
@@ -20201,7 +20222,7 @@ function mv(e, n, t, s, i, o) {
|
|
20201
20222
|
onClick: n[13] || (n[13] = T((x) => o.openSettingsSidebar("CmdAddressData"), ["prevent"]))
|
20202
20223
|
})
|
20203
20224
|
]),
|
20204
|
-
a("div",
|
20225
|
+
a("div", r_, [
|
20205
20226
|
h(b, I({
|
20206
20227
|
ref: "CmdAddressData",
|
20207
20228
|
addressData: i.addressData
|
@@ -20212,10 +20233,10 @@ function mv(e, n, t, s, i, o) {
|
|
20212
20233
|
}),
|
20213
20234
|
h(C, null, {
|
20214
20235
|
default: k(() => [
|
20215
|
-
|
20216
|
-
|
20217
|
-
a("div",
|
20218
|
-
a("ul",
|
20236
|
+
d_,
|
20237
|
+
c_,
|
20238
|
+
a("div", u_, [
|
20239
|
+
a("ul", m_, [
|
20219
20240
|
a("li", null, [
|
20220
20241
|
a("a", {
|
20221
20242
|
href: "#",
|
@@ -20224,7 +20245,7 @@ function mv(e, n, t, s, i, o) {
|
|
20224
20245
|
id: "status-default"
|
20225
20246
|
}, " Default ", 2)
|
20226
20247
|
]),
|
20227
|
-
a("li",
|
20248
|
+
a("li", h_, [
|
20228
20249
|
a("a", {
|
20229
20250
|
href: "#",
|
20230
20251
|
onClick: n[15] || (n[15] = T((x) => o.setStatus("error", !1), ["prevent"])),
|
@@ -20277,10 +20298,10 @@ function mv(e, n, t, s, i, o) {
|
|
20277
20298
|
novalidate: "novalidate"
|
20278
20299
|
}, {
|
20279
20300
|
default: k(() => [
|
20280
|
-
a("fieldset",
|
20281
|
-
|
20282
|
-
a("h2",
|
20283
|
-
|
20301
|
+
a("fieldset", p_, [
|
20302
|
+
f_,
|
20303
|
+
a("h2", g_, [
|
20304
|
+
y_,
|
20284
20305
|
a("a", {
|
20285
20306
|
href: "#",
|
20286
20307
|
class: "button small icon-cog",
|
@@ -20292,7 +20313,7 @@ function mv(e, n, t, s, i, o) {
|
|
20292
20313
|
status: i.validationStatus,
|
20293
20314
|
disabled: i.disabledStatus
|
20294
20315
|
}), null, 16, ["status", "disabled"]),
|
20295
|
-
a("div",
|
20316
|
+
a("div", b_, [
|
20296
20317
|
h(v, {
|
20297
20318
|
labelText: "Input for datalist:",
|
20298
20319
|
element: "input",
|
@@ -20304,7 +20325,7 @@ function mv(e, n, t, s, i, o) {
|
|
20304
20325
|
tooltipText: "This is a tooltip"
|
20305
20326
|
}, null, 8, ["status", "disabled", "datalist"])
|
20306
20327
|
]),
|
20307
|
-
a("div",
|
20328
|
+
a("div", x_, [
|
20308
20329
|
h(v, I({
|
20309
20330
|
labelText: "Input (type search (without search-button)):",
|
20310
20331
|
element: "input",
|
@@ -20326,8 +20347,8 @@ function mv(e, n, t, s, i, o) {
|
|
20326
20347
|
tooltipText: "This is a tooltip"
|
20327
20348
|
}, { useCustomTooltip: !1 }), null, 16, ["status", "disabled"])
|
20328
20349
|
]),
|
20329
|
-
|
20330
|
-
a("div",
|
20350
|
+
__,
|
20351
|
+
a("div", C_, [
|
20331
20352
|
h(v, {
|
20332
20353
|
element: "input",
|
20333
20354
|
type: "text",
|
@@ -20341,7 +20362,7 @@ function mv(e, n, t, s, i, o) {
|
|
20341
20362
|
disabled: i.disabledStatus
|
20342
20363
|
}, {
|
20343
20364
|
labeltext: k(() => [
|
20344
|
-
|
20365
|
+
w_
|
20345
20366
|
]),
|
20346
20367
|
_: 1
|
20347
20368
|
}, 8, ["modelValue", "status", "disabled"]),
|
@@ -20373,7 +20394,7 @@ function mv(e, n, t, s, i, o) {
|
|
20373
20394
|
disabled: i.disabledStatus
|
20374
20395
|
}, null, 8, ["modelValue", "status", "disabled"])
|
20375
20396
|
]),
|
20376
|
-
a("div",
|
20397
|
+
a("div", k_, [
|
20377
20398
|
h(v, {
|
20378
20399
|
labelText: "Label for emailfield (with icon):",
|
20379
20400
|
element: "input",
|
@@ -20484,9 +20505,9 @@ function mv(e, n, t, s, i, o) {
|
|
20484
20505
|
status: i.validationStatus,
|
20485
20506
|
disabled: i.disabledStatus
|
20486
20507
|
}, null, 8, ["modelValue", "status", "disabled"]),
|
20487
|
-
|
20488
|
-
a("h3",
|
20489
|
-
|
20508
|
+
v_,
|
20509
|
+
a("h3", T_, [
|
20510
|
+
S_,
|
20490
20511
|
a("a", {
|
20491
20512
|
href: "#",
|
20492
20513
|
class: "button small icon-cog",
|
@@ -20494,7 +20515,7 @@ function mv(e, n, t, s, i, o) {
|
|
20494
20515
|
onClick: n[33] || (n[33] = T((x) => o.openSettingsSidebar("CmdFakeSelect"), ["prevent"]))
|
20495
20516
|
})
|
20496
20517
|
]),
|
20497
|
-
a("div",
|
20518
|
+
a("div", O_, [
|
20498
20519
|
h(B, I({ ref: "CmdFakeSelect" }, e.cmdFakeSelectSettingsData, {
|
20499
20520
|
selectData: i.fakeSelectOptionsData,
|
20500
20521
|
modelValue: i.fakeSelectDefault,
|
@@ -20546,21 +20567,21 @@ function mv(e, n, t, s, i, o) {
|
|
20546
20567
|
type: "color"
|
20547
20568
|
}, null, 8, ["status", "disabled", "selectData", "modelValue"])
|
20548
20569
|
]),
|
20549
|
-
|
20550
|
-
|
20570
|
+
L_,
|
20571
|
+
I_,
|
20551
20572
|
h(F, {
|
20552
20573
|
labelText: "Progress Bar (with optional output):",
|
20553
20574
|
id: "progress-bar2",
|
20554
20575
|
max: "100"
|
20555
20576
|
}),
|
20556
|
-
|
20577
|
+
B_,
|
20557
20578
|
a("div", {
|
20558
20579
|
class: _(["label", i.validationStatus])
|
20559
20580
|
}, [
|
20560
|
-
|
20561
|
-
a("span",
|
20562
|
-
a("label",
|
20563
|
-
|
20581
|
+
F_,
|
20582
|
+
a("span", D_, [
|
20583
|
+
a("label", M_, [
|
20584
|
+
V_,
|
20564
20585
|
X(a("input", {
|
20565
20586
|
type: "number",
|
20566
20587
|
class: _(i.validationStatus),
|
@@ -20569,12 +20590,12 @@ function mv(e, n, t, s, i, o) {
|
|
20569
20590
|
min: "0",
|
20570
20591
|
max: "100",
|
20571
20592
|
id: "range-value"
|
20572
|
-
}, null, 10,
|
20593
|
+
}, null, 10, P_), [
|
20573
20594
|
[Nt, i.rangeValue]
|
20574
20595
|
])
|
20575
20596
|
]),
|
20576
|
-
a("label",
|
20577
|
-
|
20597
|
+
a("label", A_, [
|
20598
|
+
E_,
|
20578
20599
|
X(a("input", {
|
20579
20600
|
type: "range",
|
20580
20601
|
class: "range-slider",
|
@@ -20583,15 +20604,15 @@ function mv(e, n, t, s, i, o) {
|
|
20583
20604
|
disabled: i.disabledStatus,
|
20584
20605
|
min: "0",
|
20585
20606
|
max: "100"
|
20586
|
-
}, null, 8,
|
20607
|
+
}, null, 8, H_), [
|
20587
20608
|
[Nt, i.rangeValue]
|
20588
20609
|
])
|
20589
20610
|
])
|
20590
20611
|
])
|
20591
20612
|
], 2),
|
20592
|
-
|
20593
|
-
|
20594
|
-
|
20613
|
+
q_,
|
20614
|
+
R_,
|
20615
|
+
N_,
|
20595
20616
|
h(v, {
|
20596
20617
|
element: "input",
|
20597
20618
|
type: "checkbox",
|
@@ -20616,7 +20637,7 @@ function mv(e, n, t, s, i, o) {
|
|
20616
20637
|
status: i.validationStatus,
|
20617
20638
|
disabled: i.disabledStatus
|
20618
20639
|
}, null, 8, ["modelValue", "status", "disabled"]),
|
20619
|
-
|
20640
|
+
U_,
|
20620
20641
|
h(v, {
|
20621
20642
|
element: "input",
|
20622
20643
|
type: "checkbox",
|
@@ -20691,16 +20712,16 @@ function mv(e, n, t, s, i, o) {
|
|
20691
20712
|
}, null, 8, ["modelValue", "status", "disabled"]),
|
20692
20713
|
a("p", null, [
|
20693
20714
|
E(" checkbox (required) with boolean: " + y(i.checkboxRequiredValue), 1),
|
20694
|
-
|
20715
|
+
j_,
|
20695
20716
|
E(" checkbox with boolean: " + y(i.checkboxValue), 1),
|
20696
|
-
|
20717
|
+
z_,
|
20697
20718
|
E(" checkboxes with values: " + y(i.checkboxValues), 1)
|
20698
20719
|
]),
|
20699
|
-
|
20700
|
-
|
20701
|
-
a("div",
|
20702
|
-
|
20703
|
-
a("div",
|
20720
|
+
G_,
|
20721
|
+
W_,
|
20722
|
+
a("div", K_, [
|
20723
|
+
J_,
|
20724
|
+
a("div", Y_, [
|
20704
20725
|
h(v, {
|
20705
20726
|
element: "input",
|
20706
20727
|
labelText: "Label for checkbox with boolean",
|
@@ -20745,16 +20766,16 @@ function mv(e, n, t, s, i, o) {
|
|
20745
20766
|
}, {
|
20746
20767
|
labeltext: k(() => [
|
20747
20768
|
E(" Labeltext with "),
|
20748
|
-
|
20769
|
+
Z_,
|
20749
20770
|
E(" given by slot ")
|
20750
20771
|
]),
|
20751
20772
|
_: 1
|
20752
20773
|
}, 8, ["modelValue", "status", "disabled"])
|
20753
20774
|
])
|
20754
20775
|
]),
|
20755
|
-
|
20756
|
-
a("div",
|
20757
|
-
$
|
20776
|
+
Q_,
|
20777
|
+
a("div", X_, [
|
20778
|
+
$_,
|
20758
20779
|
a("div", eC, [
|
20759
20780
|
h(v, {
|
20760
20781
|
element: "input",
|
@@ -22317,11 +22338,11 @@ function mv(e, n, t, s, i, o) {
|
|
22317
22338
|
]),
|
22318
22339
|
_: 1
|
22319
22340
|
}, 8, ["openSidebar", "onToggleSidebar"])) : m("", !0)
|
22320
|
-
], 8,
|
22341
|
+
], 8, O1)), [
|
22321
22342
|
[Lo]
|
22322
22343
|
]);
|
22323
22344
|
}
|
22324
|
-
const _v = /* @__PURE__ */ V(
|
22345
|
+
const _v = /* @__PURE__ */ V(S1, [["render", mv]]), Cv = {
|
22325
22346
|
// el = real dom-element
|
22326
22347
|
mounted(e) {
|
22327
22348
|
if (e.tagName === "INPUT" || e.tagName === "SELECT" || e.tagName === "TEXTAREA" || e.tagName === "A")
|
package/package.json
CHANGED
@@ -304,6 +304,13 @@ export default {
|
|
304
304
|
}
|
305
305
|
},
|
306
306
|
props: {
|
307
|
+
/**
|
308
|
+
* website-key for Google-recaptcha v3
|
309
|
+
*/
|
310
|
+
reCaptchaWebsiteKey: {
|
311
|
+
type: String,
|
312
|
+
required: false
|
313
|
+
},
|
307
314
|
/**
|
308
315
|
* activate if native submit-event should be used
|
309
316
|
*/
|
@@ -487,8 +494,27 @@ export default {
|
|
487
494
|
return
|
488
495
|
}
|
489
496
|
|
497
|
+
// prevent original levent form CmdForm (to avoid submit and reload)
|
498
|
+
event.originalEvent.preventDefault()
|
499
|
+
|
500
|
+
if(this.reCaptchaWebsiteKey) {
|
501
|
+
grecaptcha.ready(function() {
|
502
|
+
grecaptcha.execute(this.reCaptchaWebsiteKey, {action: 'submit'}).then(function(token) {
|
503
|
+
this.submitForm(token)
|
504
|
+
})
|
505
|
+
})
|
506
|
+
} else {
|
507
|
+
this.submitForm()
|
508
|
+
}
|
509
|
+
},
|
510
|
+
submitForm(token) {
|
490
511
|
// custom submit of form-data
|
491
512
|
const customSubmitFormData = new FormData()
|
513
|
+
|
514
|
+
if(token) {
|
515
|
+
customSubmitFormData.set("recaptchaToken", token)
|
516
|
+
}
|
517
|
+
|
492
518
|
// get keys for form-elements from configuration
|
493
519
|
const configurationEntries = Object.keys(this.configuration)
|
494
520
|
|
@@ -500,7 +526,15 @@ export default {
|
|
500
526
|
fetch(this.formAction, {method: this.cmdForm?.formMethod || "POST", body: customSubmitFormData}).then((response) => {
|
501
527
|
if(response.ok) {
|
502
528
|
this.$refs.form.showMessage("success", this.getMessage("basic_form.system_message.success.message_sent_successfully"))
|
503
|
-
|
529
|
+
for (let key in this.formData) {
|
530
|
+
if(key === "salutation") {
|
531
|
+
this.formData[key].value = this.configuration.salutation.default
|
532
|
+
} else if(key === "acceptPrivacy") {
|
533
|
+
this.formData[key].value = false
|
534
|
+
} else {
|
535
|
+
this.formData[key].value = ""
|
536
|
+
}
|
537
|
+
}
|
504
538
|
} else {
|
505
539
|
this.$refs.form.showMessage("error", this.getMessage("basic_form.system_message.error.message_could_not_be_sent"))
|
506
540
|
}
|
@@ -508,9 +542,6 @@ export default {
|
|
508
542
|
this.$refs.form.showMessage("error", this.getMessage("basic_form.system_message.error.message_could_not_be_sent"))
|
509
543
|
console.error(error)
|
510
544
|
})
|
511
|
-
|
512
|
-
// prevent original levent form CmdForm (to avoid submit and reload)
|
513
|
-
event.originalEvent.preventDefault()
|
514
545
|
},
|
515
546
|
onCountrySelect(event) {
|
516
547
|
this.cityBeforeZip = event === 'us' || event === 'uk';
|