@seniorsistemas/angular-components 16.9.1 → 16.9.2
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 +12 -2
- 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/custom-fields/custom-fields.component.d.ts +1 -0
- package/components/dynamic-form/configurations/fields/blob-field.d.ts +2 -0
- package/components/file-upload/file-upload.component.d.ts +1 -0
- package/esm2015/components/custom-fields/custom-fields.component.js +6 -1
- package/esm2015/components/dynamic-form/components/fields/file-upload/file-upload.component.js +2 -2
- package/esm2015/components/dynamic-form/configurations/fields/blob-field.js +2 -1
- package/esm2015/components/file-upload/file-upload.component.js +6 -2
- package/esm5/components/custom-fields/custom-fields.component.js +6 -1
- package/esm5/components/dynamic-form/components/fields/file-upload/file-upload.component.js +2 -2
- package/esm5/components/dynamic-form/configurations/fields/blob-field.js +2 -1
- package/esm5/components/file-upload/file-upload.component.js +6 -2
- package/fesm2015/seniorsistemas-angular-components.js +12 -2
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +12 -2
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -2295,6 +2295,7 @@
|
|
|
2295
2295
|
_this.onRemoveFile = config.onRemoveFile;
|
|
2296
2296
|
_this.onCancelUpload = config.onCancelUpload;
|
|
2297
2297
|
_this.onDownloadFile = config.onDownloadFile;
|
|
2298
|
+
_this.showFileUploadDate = config.showFileUploadDate;
|
|
2298
2299
|
return _this;
|
|
2299
2300
|
}
|
|
2300
2301
|
return BlobField;
|
|
@@ -4017,6 +4018,7 @@
|
|
|
4017
4018
|
this.supportedExtensions = [];
|
|
4018
4019
|
this.ariaLabelProgress = "Carregando arquivo";
|
|
4019
4020
|
this.disabled = false;
|
|
4021
|
+
this.showFileUploadDate = false;
|
|
4020
4022
|
this.uploadHandler = new core.EventEmitter();
|
|
4021
4023
|
this.removeFile = new core.EventEmitter();
|
|
4022
4024
|
this.cancelUpload = new core.EventEmitter();
|
|
@@ -4034,7 +4036,7 @@
|
|
|
4034
4036
|
set: function (files) {
|
|
4035
4037
|
var _this = this;
|
|
4036
4038
|
var _a;
|
|
4037
|
-
if ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId) {
|
|
4039
|
+
if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
|
|
4038
4040
|
this.getUploadDate(files);
|
|
4039
4041
|
}
|
|
4040
4042
|
this._files = files.map(function (file) {
|
|
@@ -4240,6 +4242,9 @@
|
|
|
4240
4242
|
__decorate([
|
|
4241
4243
|
core.Input()
|
|
4242
4244
|
], FileUploadComponent.prototype, "disabled", void 0);
|
|
4245
|
+
__decorate([
|
|
4246
|
+
core.Input()
|
|
4247
|
+
], FileUploadComponent.prototype, "showFileUploadDate", void 0);
|
|
4243
4248
|
__decorate([
|
|
4244
4249
|
core.Input()
|
|
4245
4250
|
], FileUploadComponent.prototype, "files", null);
|
|
@@ -6421,7 +6426,7 @@
|
|
|
6421
6426
|
], FileUploadComponent.prototype, "formControl", void 0);
|
|
6422
6427
|
FileUploadComponent = __decorate([
|
|
6423
6428
|
core.Component({
|
|
6424
|
-
template: "<s-file-upload [id]=\"(field.id || field.name)\" [accept]=\"field.accept\" [files]=\"field.files\" [multiple]=\"field.multiple\"\n [chooseLabel]=\"field.chooseLabel\" [removeLabel]=\"field.removeLabel\" [cancelLabel]=\"field.cancelLabel\"\n [successTooltip]=\"field.successTooltip\" (uploadHandler)=\"field.onUploadFile($event, field)\"\n (removeFile)=\"field.onRemoveFile($event, field)\" (cancelUpload)=\"field.onCancelUpload($event, field)\"\n (downloadFile)=\"field.onDownloadFile($event, field)\" [formGroup]=\"formControl\"> \n</s-file-upload>\n"
|
|
6429
|
+
template: "<s-file-upload [id]=\"(field.id || field.name)\" [accept]=\"field.accept\" [files]=\"field.files\" [multiple]=\"field.multiple\"\n [chooseLabel]=\"field.chooseLabel\" [removeLabel]=\"field.removeLabel\" [cancelLabel]=\"field.cancelLabel\"\n [successTooltip]=\"field.successTooltip\" (uploadHandler)=\"field.onUploadFile($event, field)\"\n (removeFile)=\"field.onRemoveFile($event, field)\" (cancelUpload)=\"field.onCancelUpload($event, field)\"\n (downloadFile)=\"field.onDownloadFile($event, field)\" [formGroup]=\"formControl\"\n [showFileUploadDate]=\"field.showFileUploadDate\"> \n</s-file-upload>\n"
|
|
6425
6430
|
})
|
|
6426
6431
|
], FileUploadComponent);
|
|
6427
6432
|
return FileUploadComponent;
|
|
@@ -7729,6 +7734,7 @@
|
|
|
7729
7734
|
this.customFieldsEndpoint = "platform/field_customization/queries/getEntity";
|
|
7730
7735
|
this.fileLocationEndpoint = "platform/field_customization/actions/requestUpload";
|
|
7731
7736
|
this.requestAccessEndpoint = "platform/field_customization/actions/requestAccess";
|
|
7737
|
+
this.showFileUploadDate = false;
|
|
7732
7738
|
this.fields = [];
|
|
7733
7739
|
this.ready = false;
|
|
7734
7740
|
this.ngUsubscribe = new rxjs.Subject();
|
|
@@ -8050,6 +8056,7 @@
|
|
|
8050
8056
|
onDownloadFile: function (event, formfield) {
|
|
8051
8057
|
_this.downloadFile(event, formfield);
|
|
8052
8058
|
},
|
|
8059
|
+
showFileUploadDate: this.showFileUploadDate
|
|
8053
8060
|
};
|
|
8054
8061
|
};
|
|
8055
8062
|
/**
|
|
@@ -8243,6 +8250,9 @@
|
|
|
8243
8250
|
__decorate([
|
|
8244
8251
|
core.Input()
|
|
8245
8252
|
], CustomFieldsComponent.prototype, "displayTimeInfoSign", void 0);
|
|
8253
|
+
__decorate([
|
|
8254
|
+
core.Input()
|
|
8255
|
+
], CustomFieldsComponent.prototype, "showFileUploadDate", void 0);
|
|
8246
8256
|
CustomFieldsComponent = CustomFieldsComponent_1 = __decorate([
|
|
8247
8257
|
core.Component({
|
|
8248
8258
|
selector: "s-custom-fields",
|