comand-component-library 4.1.49 → 4.1.51

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.
@@ -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
- const n = new FormData(), t = Object.keys(this.configuration);
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 ? this.$refs.form.showMessage("success", this.getMessage("basic_form.system_message.success.message_sent_successfully")) : this.$refs.form.showMessage("error", this.getMessage("basic_form.system_message.error.message_could_not_be_sent"));
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
- }), e.originalEvent.preventDefault();
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]]), e_ = {
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
- }, t_ = /* @__PURE__ */ a("h2", {
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), n_ = /* @__PURE__ */ a("h2", {
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), i_ = /* @__PURE__ */ a("h3", { id: "section-multiple-lists-of-links-downloads" }, "Downloads", -1), o_ = /* @__PURE__ */ a("hr", null, null, -1), l_ = /* @__PURE__ */ a("h3", { id: "section-multiple-lists-of-links-sitemap" }, "SiteMap", -1), s_ = /* @__PURE__ */ a("h2", {
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), a_ = /* @__PURE__ */ a("h3", { id: "section-multiple-box-wrapper-faqs" }, "FAQs", -1), r_ = /* @__PURE__ */ a("hr", null, null, -1), d_ = /* @__PURE__ */ a("h3", { id: "section-multiple-box-wrapper-team-overview" }, "Team Overview", -1);
18448
- function c_(e, n, t, s, i, o) {
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
- t_,
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
- n_,
18470
- i_,
18490
+ n1,
18491
+ i1,
18471
18492
  h(u, { segments: i.listOfDownloadsData }, null, 8, ["segments"]),
18472
- o_,
18473
- l_,
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
- s_,
18481
- a_,
18501
+ s1,
18502
+ a1,
18482
18503
  h(g, { segments: i.faqsData }, null, 8, ["segments"]),
18483
- r_,
18484
- d_,
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(e_, [["render", c_]]), u_ = "comand-component-library", m_ = "4.1.49", h_ = "GPL-3.0-only", p_ = "CoManD-UI", f_ = "module", g_ = {
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
- }, y_ = [
18518
+ }, y1 = [
18498
18519
  "dist",
18499
18520
  "src"
18500
- ], b_ = {
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
- }, x_ = {
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
- }, C_ = {
18526
- name: u_,
18527
- version: m_,
18528
- license: h_,
18529
- author: p_,
18546
+ }, C1 = {
18547
+ name: u1,
18548
+ version: m1,
18549
+ license: h1,
18550
+ author: p1,
18530
18551
  private: !1,
18531
- type: f_,
18532
- scripts: g_,
18533
- files: y_,
18534
- exports: b_,
18535
- dependencies: x_,
18536
- devDependencies: __
18537
- }, w_ = {
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", k_ = "/media/images/demo-images/small/landscape-01.jpg", v_ = "/media/images/demo-images/small/landscape-02.jpg", T_ = "/media/images/demo-images/small/landscape-03.jpg", S_ = {
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: [w_],
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: C_
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
- }, O_ = ["id"], L_ = /* @__PURE__ */ a("a", { id: "anchor-back-to-top" }, null, -1), I_ = { for: "select-template" }, B_ = /* @__PURE__ */ a("span", null, "Select template", -1), F_ = /* @__PURE__ */ a("option", { value: "blank" }, "Blank/Unstyled", -1), D_ = /* @__PURE__ */ a("option", { value: "business" }, "Business", -1), M_ = /* @__PURE__ */ a("option", { value: "casual" }, "Casual", -1), V_ = /* @__PURE__ */ a("option", { value: "dating" }, "Dating", -1), P_ = /* @__PURE__ */ a("option", { value: "influencer" }, "Influencer", -1), A_ = [
19767
- F_,
19768
- D_,
19769
- M_,
19770
- V_,
19771
- P_
19772
- ], E_ = /* @__PURE__ */ a("span", null, "Color Scheme", -1), H_ = { class: "input-wrapper" }, q_ = { for: "default-color-scheme" }, R_ = /* @__PURE__ */ a("span", { class: "label-text" }, "Color-Scheme by Browser/OS", -1), N_ = { for: "light-mode" }, U_ = /* @__PURE__ */ a("span", { class: "label-text" }, "Light Mode", -1), j_ = { for: "dark-mode" }, z_ = /* @__PURE__ */ a("span", { class: "label-text" }, "Dark Mode", -1), G_ = ["href", "onClick"], W_ = { class: "box-footer comand-versions" }, K_ = /* @__PURE__ */ a("dt", null, "Frontend-Framework Version:", -1), J_ = /* @__PURE__ */ a("dt", null, "Component-Library Version:", -1), Y_ = { class: "closed-sidebar" }, Z_ = /* @__PURE__ */ a("span", { class: "icon-settings-template" }, null, -1), Q_ = [
19773
- Z_
19774
- ], X_ = /* @__PURE__ */ a("span", { class: "icon-settings-component" }, null, -1), $_ = [
19775
- X_
19776
- ], e1 = /* @__PURE__ */ a("span", { class: "icon-file-settings" }, null, -1), t1 = [
19777
- e1
19778
- ], n1 = /* @__PURE__ */ a("span", null, "Hide sidebar", -1), i1 = [
19779
- n1
19780
- ], o1 = {
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
- }, l1 = /* @__PURE__ */ a("h1", { class: "headline-demopage" }, "Components Overview", -1), s1 = {
19804
+ }, l_ = /* @__PURE__ */ a("h1", { class: "headline-demopage" }, "Components Overview", -1), s_ = {
19784
19805
  class: "headline-demopage",
19785
19806
  id: "section-address-data"
19786
- }, a1 = /* @__PURE__ */ a("span", null, "Address Data", -1), r1 = { class: "flex-container" }, d1 = /* @__PURE__ */ a("h2", {
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), c1 = /* @__PURE__ */ a("h3", null, [
19810
+ }, "Advanced Form Elements", -1), c_ = /* @__PURE__ */ a("h3", null, [
19790
19811
  /* @__PURE__ */ a("span", null, "Form elements status:")
19791
- ], -1), u1 = { class: "flex-container" }, m1 = { class: "list-status" }, h1 = { class: "error" }, p1 = { class: "flex-container" }, f1 = /* @__PURE__ */ a("legend", null, "Legend", -1), g1 = { class: "headline-demopage" }, y1 = /* @__PURE__ */ a("span", null, "Form Element-Component", -1), b1 = { class: "flex-container" }, x1 = { class: "flex-container" }, _1 = /* @__PURE__ */ a("h2", null, "Inputfields in Columns", -1), C1 = { class: "flex-container" }, w1 = /* @__PURE__ */ a("span", { innerHTML: "Label with <a href='#'>Link</a> given by slot" }, null, -1), k1 = { class: "flex-container" }, v1 = /* @__PURE__ */ a("hr", null, null, -1), T1 = { class: "headline-demopage" }, S1 = /* @__PURE__ */ a("span", null, "Fake Selects", -1), O1 = { class: "flex-container" }, L1 = /* @__PURE__ */ a("hr", null, null, -1), I1 = /* @__PURE__ */ a("h2", null, "Progress Bar [native]", -1), B1 = /* @__PURE__ */ a("h2", null, "Slider [native]", -1), F1 = /* @__PURE__ */ a("span", { class: "label-text" }, "Single-Slider (with in- and output):", -1), D1 = { class: "flex-container no-flex" }, M1 = {
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
- }, V1 = /* @__PURE__ */ a("span", { class: "label-text" }, [
19815
+ }, V_ = /* @__PURE__ */ a("span", { class: "label-text" }, [
19795
19816
  /* @__PURE__ */ a("span", null, "Range Value:")
19796
- ], -1), P1 = ["disabled"], A1 = { for: "range-slider" }, E1 = /* @__PURE__ */ a("span", { class: "label-text hidden" }, [
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), H1 = ["disabled"], q1 = /* @__PURE__ */ a("hr", null, null, -1), R1 = /* @__PURE__ */ a("h2", null, "Toggle-Switches", -1), N1 = /* @__PURE__ */ a("h3", null, "Switches without switch-labels", -1), U1 = /* @__PURE__ */ a("h3", null, "Switches with switch-labels", -1), j1 = /* @__PURE__ */ a("br", null, null, -1), z1 = /* @__PURE__ */ a("br", null, null, -1), G1 = /* @__PURE__ */ a("h2", null, "Checkboxes and Radiobuttons", -1), W1 = /* @__PURE__ */ a("h3", null, "Checkboxes [native]", -1), K1 = { class: "label inline" }, J1 = /* @__PURE__ */ a("span", { class: "label-text" }, "Label for native checkboxes:", -1), Y1 = { class: "flex-container no-flex" }, Z1 = /* @__PURE__ */ a("a", { href: "#" }, "link", -1), Q1 = /* @__PURE__ */ a("h3", null, "Checkboxes (replaced)", -1), X1 = { class: "label inline" }, $1 = /* @__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 = {
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: k_,
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: v_,
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: T_,
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
- L_,
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", I_, [
20006
- B_,
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
- }, A_, 512), [
20031
+ }, A1, 512), [
20011
20032
  [Po, i.selectedTemplate]
20012
20033
  ])
20013
20034
  ]),
20014
20035
  a("div", null, [
20015
- E_,
20016
- a("div", H_, [
20017
- a("label", q_, [
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
- R_
20048
+ R1
20028
20049
  ]),
20029
- a("label", N_, [
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
- U_
20060
+ U1
20040
20061
  ]),
20041
- a("label", j_, [
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
- z_
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, G_)
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", W_, [
20139
- K_,
20159
+ a("dl", W1, [
20160
+ K1,
20140
20161
  a("dd", null, y(i.packageJson.dependencies["comand-frontend-framework"].replace("^", "")), 1),
20141
- J_,
20162
+ J1,
20142
20163
  a("dd", null, y(i.packageJson.version), 1)
20143
20164
  ])
20144
20165
  ]),
20145
20166
  closed: k(() => [
20146
- a("div", Y_, [
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
- }, Q_),
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
- }, t1),
20185
+ }, t_),
20165
20186
  a("a", {
20166
20187
  href: "#",
20167
20188
  onClick: n[12] || (n[12] = T((x) => i.showLeftSidebar = !1, ["prevent"]))
20168
- }, i1)
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", o1, [
20207
+ i.componentView ? (l(), r("main", o_, [
20187
20208
  h(C, null, {
20188
20209
  default: k(() => [
20189
- l1
20210
+ l_
20190
20211
  ]),
20191
20212
  _: 1
20192
20213
  }),
20193
20214
  h(C, null, {
20194
20215
  default: k(() => [
20195
- a("h2", s1, [
20196
- a1,
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", r1, [
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
- d1,
20216
- c1,
20217
- a("div", u1, [
20218
- a("ul", m1, [
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", h1, [
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", p1, [
20281
- f1,
20282
- a("h2", g1, [
20283
- y1,
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", b1, [
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", x1, [
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
- _1,
20330
- a("div", C1, [
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
- w1
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", k1, [
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
- v1,
20488
- a("h3", T1, [
20489
- S1,
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", O1, [
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
- L1,
20550
- I1,
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
- B1,
20577
+ B_,
20557
20578
  a("div", {
20558
20579
  class: _(["label", i.validationStatus])
20559
20580
  }, [
20560
- F1,
20561
- a("span", D1, [
20562
- a("label", M1, [
20563
- V1,
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, P1), [
20593
+ }, null, 10, P_), [
20573
20594
  [Nt, i.rangeValue]
20574
20595
  ])
20575
20596
  ]),
20576
- a("label", A1, [
20577
- E1,
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, H1), [
20607
+ }, null, 8, H_), [
20587
20608
  [Nt, i.rangeValue]
20588
20609
  ])
20589
20610
  ])
20590
20611
  ])
20591
20612
  ], 2),
20592
- q1,
20593
- R1,
20594
- N1,
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
- U1,
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
- j1,
20715
+ j_,
20695
20716
  E(" checkbox with boolean: " + y(i.checkboxValue), 1),
20696
- z1,
20717
+ z_,
20697
20718
  E(" checkboxes with values: " + y(i.checkboxValues), 1)
20698
20719
  ]),
20699
- G1,
20700
- W1,
20701
- a("div", K1, [
20702
- J1,
20703
- a("div", Y1, [
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
- Z1,
20769
+ Z_,
20749
20770
  E(" given by slot ")
20750
20771
  ]),
20751
20772
  _: 1
20752
20773
  }, 8, ["modelValue", "status", "disabled"])
20753
20774
  ])
20754
20775
  ]),
20755
- Q1,
20756
- a("div", X1, [
20757
- $1,
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, O_)), [
22341
+ ], 8, O1)), [
22321
22342
  [Lo]
22322
22343
  ]);
22323
22344
  }
22324
- const _v = /* @__PURE__ */ V(S_, [["render", mv]]), Cv = {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.1.49",
3
+ "version": "4.1.51",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -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';
@@ -210,10 +210,10 @@ export default {
210
210
  event.preventDefault()
211
211
  this.errorOccurred = true
212
212
  }
213
- } else {
214
- this.submitFormData(event)
213
+ } else {
214
+ this.submitFormData(event)
215
+ }
215
216
  }
216
- }
217
217
  },
218
218
  watch: {
219
219
  formElements: {