@seniorsistemas/angular-components 15.4.1 → 16.0.0

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.
@@ -3003,7 +3003,7 @@
3003
3003
  this.removeFile = new core.EventEmitter();
3004
3004
  this.cancelUpload = new core.EventEmitter();
3005
3005
  this.downloadFile = new core.EventEmitter();
3006
- this.validateErros = new core.EventEmitter();
3006
+ this.validateErrors = new core.EventEmitter();
3007
3007
  this._files = [];
3008
3008
  this.ngUsubscribe = new rxjs.Subject();
3009
3009
  this.inputValue = "";
@@ -3046,18 +3046,27 @@
3046
3046
  this.files = [];
3047
3047
  }
3048
3048
  if (this.isFileLimitExceeded(files)) {
3049
- this.validateErros.emit(exports.ValidateErrors.MAX_FILE_LIMIT);
3049
+ this.validateErrors.emit({
3050
+ files: files,
3051
+ validation: exports.ValidateErrors.MAX_FILE_LIMIT,
3052
+ });
3050
3053
  return;
3051
3054
  }
3052
3055
  try {
3053
3056
  for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
3054
3057
  var file = files_1_1.value;
3055
3058
  if (this.isUnsupportedFileExtension(file)) {
3056
- this.validateErros.emit(exports.ValidateErrors.UNSUPPORTED_EXTENSION);
3059
+ this.validateErrors.emit({
3060
+ files: [file],
3061
+ validation: exports.ValidateErrors.UNSUPPORTED_EXTENSION,
3062
+ });
3057
3063
  continue;
3058
3064
  }
3059
3065
  if (this.isFileSizeExceeded(file)) {
3060
- this.validateErros.emit(exports.ValidateErrors.MAX_FILE_SIZE);
3066
+ this.validateErrors.emit({
3067
+ files: [file],
3068
+ validation: exports.ValidateErrors.MAX_FILE_SIZE,
3069
+ });
3061
3070
  continue;
3062
3071
  }
3063
3072
  newFiles.push(file);
@@ -3205,7 +3214,7 @@
3205
3214
  ], FileUploadComponent.prototype, "downloadFile", void 0);
3206
3215
  __decorate([
3207
3216
  core.Output()
3208
- ], FileUploadComponent.prototype, "validateErros", void 0);
3217
+ ], FileUploadComponent.prototype, "validateErrors", void 0);
3209
3218
  __decorate([
3210
3219
  core.HostListener("window:resize")
3211
3220
  ], FileUploadComponent.prototype, "onResize", null);