@seniorsistemas/angular-components 16.0.0 → 16.0.1
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/seniorsistemas-angular-components.umd.js +7 -4
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/file-upload/file-upload.component.d.ts +1 -0
- package/esm2015/components/file-upload/file-upload.component.js +8 -5
- package/esm5/components/file-upload/file-upload.component.js +8 -5
- package/fesm2015/seniorsistemas-angular-components.js +7 -4
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +7 -4
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -2877,6 +2877,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
2877
2877
|
files: files,
|
|
2878
2878
|
validation: ValidateErrors.MAX_FILE_LIMIT,
|
|
2879
2879
|
});
|
|
2880
|
+
this.clearFileInput();
|
|
2880
2881
|
return;
|
|
2881
2882
|
}
|
|
2882
2883
|
try {
|
|
@@ -2911,8 +2912,8 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
2911
2912
|
this.uploadHandler.emit({
|
|
2912
2913
|
files: newFiles,
|
|
2913
2914
|
});
|
|
2914
|
-
this.inputUpload.nativeElement.value = "";
|
|
2915
2915
|
}
|
|
2916
|
+
this.clearFileInput();
|
|
2916
2917
|
};
|
|
2917
2918
|
FileUploadComponent.prototype.onRemoveFile = function (file) {
|
|
2918
2919
|
var fileIndex = this.files.indexOf(file);
|
|
@@ -2926,6 +2927,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
2926
2927
|
if (removedFiles.length) {
|
|
2927
2928
|
this.cancelUpload.emit(index);
|
|
2928
2929
|
}
|
|
2930
|
+
this.clearFileInput();
|
|
2929
2931
|
};
|
|
2930
2932
|
FileUploadComponent.prototype.onDowloadFile = function (index) {
|
|
2931
2933
|
this.downloadFile.emit({
|
|
@@ -2956,12 +2958,13 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
2956
2958
|
var _a;
|
|
2957
2959
|
if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2958
2960
|
var extension = file.name.split(".").pop().toLowerCase();
|
|
2959
|
-
|
|
2960
|
-
return true;
|
|
2961
|
-
}
|
|
2961
|
+
return !this.supportedExtensions.includes(extension);
|
|
2962
2962
|
}
|
|
2963
2963
|
return false;
|
|
2964
2964
|
};
|
|
2965
|
+
FileUploadComponent.prototype.clearFileInput = function () {
|
|
2966
|
+
this.inputUpload.nativeElement.value = null;
|
|
2967
|
+
};
|
|
2965
2968
|
var FileUploadComponent_1;
|
|
2966
2969
|
FileUploadComponent.nextId = 0;
|
|
2967
2970
|
FileUploadComponent.ctorParameters = function () { return [
|