@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.
- package/bundles/esfaenza-forms-and-validations.umd.js +10 -7
- package/bundles/esfaenza-forms-and-validations.umd.js.map +1 -1
- package/esm2015/lib/forms/form-file/form-file.component.js +11 -8
- package/fesm2015/esfaenza-forms-and-validations.js +10 -7
- package/fesm2015/esfaenza-forms-and-validations.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
model
|
|
2618
|
-
|
|
2619
|
-
|
|
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));
|