@eqproject/eqp-dynamic-module 2.10.52 → 2.10.54

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.
@@ -657,7 +657,7 @@ class EqpDynamicModuleDialogService {
657
657
  static Warning(message, title = null, isToast = null) {
658
658
  let currentTitle = title != null ? title : "Attenzione!";
659
659
  if (Array.isArray(message)) {
660
- let htmlWarnings = message.join("<br>");
660
+ const htmlWarnings = `<div style="max-height:40vh;overflow-y:auto;text-align:left;padding-right:6px;">${message.join('<br><br>')}</div>`;
661
661
  Swal.fire({
662
662
  title: currentTitle,
663
663
  html: htmlWarnings,
@@ -1184,7 +1184,7 @@ class UtilityHelperService {
1184
1184
  if (field.MinLenght) {
1185
1185
  validators.push(Validators.minLength(field.MinLenght));
1186
1186
  }
1187
- switch (field.TextMask) {
1187
+ switch (Number(field.TextMask)) {
1188
1188
  case TextMaskEnum.Url:
1189
1189
  validators.push(Validators.pattern(UrlRegex));
1190
1190
  break;
@@ -3278,7 +3278,7 @@ class TextFieldTemplateComponent {
3278
3278
  }
3279
3279
  }
3280
3280
  getInputType() {
3281
- switch (this.field.TextMask) {
3281
+ switch (Number(this.field.TextMask)) {
3282
3282
  case TextMaskEnum.Email:
3283
3283
  return 'email';
3284
3284
  case TextMaskEnum.Password:
@@ -9034,7 +9034,7 @@ class TextFilterTemplateComponent {
9034
9034
  this.LabelstyleObj = UtilityHelperService.initStyles(this.field.LabelstyleCSS);
9035
9035
  }
9036
9036
  getInputType() {
9037
- switch (this.field.TextMask) {
9037
+ switch (Number(this.field.TextMask)) {
9038
9038
  case TextMaskEnum.Email:
9039
9039
  return 'email';
9040
9040
  case TextMaskEnum.Password:
@@ -12510,6 +12510,9 @@ class AddFormFieldComponent {
12510
12510
  //#region CAMPO DI TESTO
12511
12511
  case FieldTypeEnum["Campo di testo"]:
12512
12512
  this.setAggregation(NotNumberAggregationFunctionEnum, restoreField);
12513
+ if (this.field.TextMask != null) {
12514
+ this.field.TextMask = Number(this.field.TextMask);
12515
+ }
12513
12516
  if (this.field.Microphone == null) {
12514
12517
  this.field.Microphone = false;
12515
12518
  }
@@ -13584,7 +13587,7 @@ class TextTriggerTemplateComponent {
13584
13587
  this.LabelstyleObj = UtilityHelperService.initStyles(this.field.LabelstyleCSS);
13585
13588
  }
13586
13589
  getInputType() {
13587
- switch (this.field.TextMask) {
13590
+ switch (Number(this.field.TextMask)) {
13588
13591
  case TextMaskEnum.Email:
13589
13592
  return 'email';
13590
13593
  case TextMaskEnum.Password:
@@ -15720,8 +15723,11 @@ class EqpDynamicModuleConfiguratorComponent {
15720
15723
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.SpeechToFormEditEndPoint, dynamicModuleParams, (res) => {
15721
15724
  this.aiEditLoading = false;
15722
15725
  this.closeAiEditDialog();
15723
- this.setFormAndConfigure(res);
15726
+ this.setFormAndConfigure(res.Form);
15724
15727
  EqpDynamicModuleDialogService.Success("Form modificata con AI!");
15728
+ if (res.Warnings && res.Warnings.length > 0) {
15729
+ EqpDynamicModuleDialogService.Warning(res.Warnings);
15730
+ }
15725
15731
  }, (error) => {
15726
15732
  this.aiEditLoading = false;
15727
15733
  EqpDynamicModuleDialogService.Error("Errore nella modifica della form con AI");