myrta-ui 13.0.13 → 13.0.14
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/fesm2020/myrta-ui.mjs
CHANGED
|
@@ -13476,9 +13476,9 @@ class InputFileComponent {
|
|
|
13476
13476
|
if (data.execution) {
|
|
13477
13477
|
data.execution.unsubscribe();
|
|
13478
13478
|
}
|
|
13479
|
+
// ВАЖНО: эмитим ВСЕ файлы, включая файлы с ошибками
|
|
13479
13480
|
if (this.files.every(s => !s.uploading)) {
|
|
13480
|
-
|
|
13481
|
-
this.filesChanged.emit(completedFiles);
|
|
13481
|
+
this.filesChanged.emit(this.files);
|
|
13482
13482
|
}
|
|
13483
13483
|
}
|
|
13484
13484
|
}
|
|
@@ -13513,7 +13513,9 @@ class InputFileComponent {
|
|
|
13513
13513
|
data.uploading = false;
|
|
13514
13514
|
return false;
|
|
13515
13515
|
}
|
|
13516
|
-
if (this.allowedExtensions.length > 0 &&
|
|
13516
|
+
if (this.allowedExtensions.length > 0 &&
|
|
13517
|
+
data.file &&
|
|
13518
|
+
!this.allowedExtensions.some(s => data.file.name.toLowerCase().endsWith(s.toLowerCase()))) {
|
|
13517
13519
|
data.error = this.messageInvalidFileFormat;
|
|
13518
13520
|
data.uploading = false;
|
|
13519
13521
|
return false;
|