@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.
@@ -2126,6 +2126,7 @@ var BlobField = /** @class */ (function (_super) {
2126
2126
  _this.onRemoveFile = config.onRemoveFile;
2127
2127
  _this.onCancelUpload = config.onCancelUpload;
2128
2128
  _this.onDownloadFile = config.onDownloadFile;
2129
+ _this.showFileUploadDate = config.showFileUploadDate;
2129
2130
  return _this;
2130
2131
  }
2131
2132
  return BlobField;
@@ -3848,6 +3849,7 @@ var FileUploadComponent = /** @class */ (function () {
3848
3849
  this.supportedExtensions = [];
3849
3850
  this.ariaLabelProgress = "Carregando arquivo";
3850
3851
  this.disabled = false;
3852
+ this.showFileUploadDate = false;
3851
3853
  this.uploadHandler = new EventEmitter();
3852
3854
  this.removeFile = new EventEmitter();
3853
3855
  this.cancelUpload = new EventEmitter();
@@ -3865,7 +3867,7 @@ var FileUploadComponent = /** @class */ (function () {
3865
3867
  set: function (files) {
3866
3868
  var _this = this;
3867
3869
  var _a;
3868
- if ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId) {
3870
+ if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
3869
3871
  this.getUploadDate(files);
3870
3872
  }
3871
3873
  this._files = files.map(function (file) {
@@ -4071,6 +4073,9 @@ var FileUploadComponent = /** @class */ (function () {
4071
4073
  __decorate([
4072
4074
  Input()
4073
4075
  ], FileUploadComponent.prototype, "disabled", void 0);
4076
+ __decorate([
4077
+ Input()
4078
+ ], FileUploadComponent.prototype, "showFileUploadDate", void 0);
4074
4079
  __decorate([
4075
4080
  Input()
4076
4081
  ], FileUploadComponent.prototype, "files", null);
@@ -6252,7 +6257,7 @@ var FileUploadComponent$1 = /** @class */ (function (_super) {
6252
6257
  ], FileUploadComponent.prototype, "formControl", void 0);
6253
6258
  FileUploadComponent = __decorate([
6254
6259
  Component({
6255
- 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"
6260
+ 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"
6256
6261
  })
6257
6262
  ], FileUploadComponent);
6258
6263
  return FileUploadComponent;
@@ -7560,6 +7565,7 @@ var CustomFieldsComponent = /** @class */ (function () {
7560
7565
  this.customFieldsEndpoint = "platform/field_customization/queries/getEntity";
7561
7566
  this.fileLocationEndpoint = "platform/field_customization/actions/requestUpload";
7562
7567
  this.requestAccessEndpoint = "platform/field_customization/actions/requestAccess";
7568
+ this.showFileUploadDate = false;
7563
7569
  this.fields = [];
7564
7570
  this.ready = false;
7565
7571
  this.ngUsubscribe = new Subject();
@@ -7881,6 +7887,7 @@ var CustomFieldsComponent = /** @class */ (function () {
7881
7887
  onDownloadFile: function (event, formfield) {
7882
7888
  _this.downloadFile(event, formfield);
7883
7889
  },
7890
+ showFileUploadDate: this.showFileUploadDate
7884
7891
  };
7885
7892
  };
7886
7893
  /**
@@ -8074,6 +8081,9 @@ var CustomFieldsComponent = /** @class */ (function () {
8074
8081
  __decorate([
8075
8082
  Input()
8076
8083
  ], CustomFieldsComponent.prototype, "displayTimeInfoSign", void 0);
8084
+ __decorate([
8085
+ Input()
8086
+ ], CustomFieldsComponent.prototype, "showFileUploadDate", void 0);
8077
8087
  CustomFieldsComponent = CustomFieldsComponent_1 = __decorate([
8078
8088
  Component({
8079
8089
  selector: "s-custom-fields",