@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.
- package/bundles/seniorsistemas-angular-components.umd.js +14 -5
- 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 +2 -2
- package/components/file-upload/models/index.d.ts +1 -0
- package/components/file-upload/models/uploadError.d.ts +6 -0
- package/esm2015/components/file-upload/file-upload.component.js +15 -6
- package/esm2015/components/file-upload/models/index.js +1 -1
- package/esm2015/components/file-upload/models/uploadError.js +1 -0
- package/esm5/components/file-upload/file-upload.component.js +15 -6
- package/esm5/components/file-upload/models/index.js +1 -1
- package/esm5/components/file-upload/models/uploadError.js +1 -0
- package/fesm2015/seniorsistemas-angular-components.js +14 -5
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +14 -5
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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, "
|
|
3217
|
+
], FileUploadComponent.prototype, "validateErrors", void 0);
|
|
3209
3218
|
__decorate([
|
|
3210
3219
|
core.HostListener("window:resize")
|
|
3211
3220
|
], FileUploadComponent.prototype, "onResize", null);
|