@esfaenza/forms-and-validations 11.2.150 → 11.2.151

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.
@@ -2566,6 +2566,7 @@
2566
2566
  */
2567
2567
  FormFileComponent.prototype.fileChange = function (clear) {
2568
2568
  if (clear === void 0) { clear = false; }
2569
+ console.log("dong");
2569
2570
  var files = [];
2570
2571
  var model = this.Model;
2571
2572
  var ne = this.inputEl.nativeElement;
@@ -2610,13 +2611,15 @@
2610
2611
  var _a;
2611
2612
  event.preventDefault();
2612
2613
  event.stopPropagation();
2613
- var files = Array.from(((_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.files) || []);
2614
- var model = new AppFile();
2615
- model.filename = files[0].name;
2616
- model.fileb64 = null;
2617
- model.nativefiles = files;
2618
- console.log(model);
2619
- this.msgs.simpleWarning("<h5>Attenzione</h5></br>Al momento non è possibile caricare files trascinandoli.</br> Se si desidera caricare un file, cliccare nell'area tratteggiata e selezionarlo da 'Esplora file'.");
2614
+ var ne = this.inputEl.nativeElement;
2615
+ ne.files = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.files;
2616
+ this.fileChange();
2617
+ // let files = Array.from(event.dataTransfer?.files || []);
2618
+ // let model = new AppFile();
2619
+ // model.filename = files[0].name;
2620
+ // model.fileb64 = null;
2621
+ // model.nativefiles = files;
2622
+ // this.writeValue(model);
2620
2623
  };
2621
2624
  return FormFileComponent;
2622
2625
  }(BaseFormControl));