@eqproject/eqp-dynamic-module 2.10.52 → 2.10.53

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,
@@ -15720,8 +15720,11 @@ class EqpDynamicModuleConfiguratorComponent {
15720
15720
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.SpeechToFormEditEndPoint, dynamicModuleParams, (res) => {
15721
15721
  this.aiEditLoading = false;
15722
15722
  this.closeAiEditDialog();
15723
- this.setFormAndConfigure(res);
15723
+ this.setFormAndConfigure(res.Form);
15724
15724
  EqpDynamicModuleDialogService.Success("Form modificata con AI!");
15725
+ if (res.Warnings && res.Warnings.length > 0) {
15726
+ EqpDynamicModuleDialogService.Warning(res.Warnings);
15727
+ }
15725
15728
  }, (error) => {
15726
15729
  this.aiEditLoading = false;
15727
15730
  EqpDynamicModuleDialogService.Error("Errore nella modifica della form con AI");