@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.
@@ -3050,6 +3050,7 @@
3050
3050
  files: files,
3051
3051
  validation: exports.ValidateErrors.MAX_FILE_LIMIT,
3052
3052
  });
3053
+ this.clearFileInput();
3053
3054
  return;
3054
3055
  }
3055
3056
  try {
@@ -3084,8 +3085,8 @@
3084
3085
  this.uploadHandler.emit({
3085
3086
  files: newFiles,
3086
3087
  });
3087
- this.inputUpload.nativeElement.value = "";
3088
3088
  }
3089
+ this.clearFileInput();
3089
3090
  };
3090
3091
  FileUploadComponent.prototype.onRemoveFile = function (file) {
3091
3092
  var fileIndex = this.files.indexOf(file);
@@ -3099,6 +3100,7 @@
3099
3100
  if (removedFiles.length) {
3100
3101
  this.cancelUpload.emit(index);
3101
3102
  }
3103
+ this.clearFileInput();
3102
3104
  };
3103
3105
  FileUploadComponent.prototype.onDowloadFile = function (index) {
3104
3106
  this.downloadFile.emit({
@@ -3129,12 +3131,13 @@
3129
3131
  var _a;
3130
3132
  if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
3131
3133
  var extension = file.name.split(".").pop().toLowerCase();
3132
- if (!this.supportedExtensions.includes(extension)) {
3133
- return true;
3134
- }
3134
+ return !this.supportedExtensions.includes(extension);
3135
3135
  }
3136
3136
  return false;
3137
3137
  };
3138
+ FileUploadComponent.prototype.clearFileInput = function () {
3139
+ this.inputUpload.nativeElement.value = null;
3140
+ };
3138
3141
  var FileUploadComponent_1;
3139
3142
  FileUploadComponent.nextId = 0;
3140
3143
  FileUploadComponent.ctorParameters = function () { return [