comand-component-library 4.1.12 → 4.1.13

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.
@@ -4270,11 +4270,11 @@ const tb = /* @__PURE__ */ N(Gy, [["render", eb]]), nb = {
4270
4270
  t.email.value,
4271
4271
  Ye.PATTERN_EMAIL,
4272
4272
  this.label("form_error_invalid_email")
4273
- )[t.additionalText.error, t.additionalText.errorMessage] = this.validateRequired(
4274
- t.additionalText.value,
4273
+ )[t.userMessage.error, t.userMessage.errorMessage] = this.validateRequired(
4274
+ t.userMessage.value,
4275
4275
  Ye.PATTERN_MESSAGE,
4276
4276
  this.label("form_error_invalid_message")
4277
- ), t.acceptPrivacy.error = !1, t.error = t.lastName.error || t.email.error || t.additionalText.error, t;
4277
+ ), t.acceptPrivacy.error = !1, t.error = t.lastName.error || t.email.error || t.userMessage.error, t;
4278
4278
  }
4279
4279
  validatePrivacy(t) {
4280
4280
  return t.acceptPrivacy.error = !t.acceptPrivacy.value, t.acceptPrivacy.errorMessage = t.acceptPrivacy.error ? this.label("form_error_missing_privacy_consent") : "", t.error = t.error || t.acceptPrivacy.error, t;
@@ -5664,7 +5664,7 @@ const qP = /* @__PURE__ */ N(Fb, [["render", Xb]]), Qb = {
5664
5664
  const t = new FormData(), n = Object.keys(this.configuration);
5665
5665
  for (let o = 0; o < n.length; o++)
5666
5666
  t.set(n[o], this.formData[n[o]].value);
5667
- fetch(this.formAction, { method: "POST", body: t }).then((o) => {
5667
+ fetch(this.formAction, { method: this.cmdForm.formMethod || "POST", body: t }).then((o) => {
5668
5668
  o.ok ? console.log("CmdBasicForm", "ok") : console.log("CmdBasicForm", "fail");
5669
5669
  }).catch((o) => {
5670
5670
  console.error(o);