@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.
@@ -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
- if (!this.supportedExtensions.includes(extension)) {
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 [