@seniorsistemas/angular-components 16.9.1 → 16.9.3

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.
Files changed (23) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +15 -3
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/custom-fields/custom-fields.component.d.ts +1 -0
  6. package/components/dynamic-form/configurations/fields/blob-field.d.ts +2 -0
  7. package/components/file-upload/file-upload.component.d.ts +1 -0
  8. package/esm2015/components/country-phone-picker/country-phone-picker.component.js +4 -2
  9. package/esm2015/components/custom-fields/custom-fields.component.js +6 -1
  10. package/esm2015/components/dynamic-form/components/fields/file-upload/file-upload.component.js +2 -2
  11. package/esm2015/components/dynamic-form/configurations/fields/blob-field.js +2 -1
  12. package/esm2015/components/file-upload/file-upload.component.js +6 -2
  13. package/esm5/components/country-phone-picker/country-phone-picker.component.js +4 -2
  14. package/esm5/components/custom-fields/custom-fields.component.js +6 -1
  15. package/esm5/components/dynamic-form/components/fields/file-upload/file-upload.component.js +2 -2
  16. package/esm5/components/dynamic-form/configurations/fields/blob-field.js +2 -1
  17. package/esm5/components/file-upload/file-upload.component.js +6 -2
  18. package/fesm2015/seniorsistemas-angular-components.js +15 -3
  19. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  20. package/fesm5/seniorsistemas-angular-components.js +15 -3
  21. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  22. package/package.json +1 -1
  23. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -1401,7 +1401,9 @@ var CountryPhonePickerComponent = /** @class */ (function () {
1401
1401
  };
1402
1402
  CountryPhonePickerComponent.prototype.onClickout = function (event) {
1403
1403
  if (!this.eRef.nativeElement.contains(event.target)) {
1404
- this.open = false;
1404
+ if (this.open) {
1405
+ this.open = false;
1406
+ }
1405
1407
  }
1406
1408
  };
1407
1409
  CountryPhonePickerComponent.prototype.ngOnInit = function () {
@@ -2126,6 +2128,7 @@ var BlobField = /** @class */ (function (_super) {
2126
2128
  _this.onRemoveFile = config.onRemoveFile;
2127
2129
  _this.onCancelUpload = config.onCancelUpload;
2128
2130
  _this.onDownloadFile = config.onDownloadFile;
2131
+ _this.showFileUploadDate = config.showFileUploadDate;
2129
2132
  return _this;
2130
2133
  }
2131
2134
  return BlobField;
@@ -3848,6 +3851,7 @@ var FileUploadComponent = /** @class */ (function () {
3848
3851
  this.supportedExtensions = [];
3849
3852
  this.ariaLabelProgress = "Carregando arquivo";
3850
3853
  this.disabled = false;
3854
+ this.showFileUploadDate = false;
3851
3855
  this.uploadHandler = new EventEmitter();
3852
3856
  this.removeFile = new EventEmitter();
3853
3857
  this.cancelUpload = new EventEmitter();
@@ -3865,7 +3869,7 @@ var FileUploadComponent = /** @class */ (function () {
3865
3869
  set: function (files) {
3866
3870
  var _this = this;
3867
3871
  var _a;
3868
- if ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId) {
3872
+ if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
3869
3873
  this.getUploadDate(files);
3870
3874
  }
3871
3875
  this._files = files.map(function (file) {
@@ -4071,6 +4075,9 @@ var FileUploadComponent = /** @class */ (function () {
4071
4075
  __decorate([
4072
4076
  Input()
4073
4077
  ], FileUploadComponent.prototype, "disabled", void 0);
4078
+ __decorate([
4079
+ Input()
4080
+ ], FileUploadComponent.prototype, "showFileUploadDate", void 0);
4074
4081
  __decorate([
4075
4082
  Input()
4076
4083
  ], FileUploadComponent.prototype, "files", null);
@@ -6252,7 +6259,7 @@ var FileUploadComponent$1 = /** @class */ (function (_super) {
6252
6259
  ], FileUploadComponent.prototype, "formControl", void 0);
6253
6260
  FileUploadComponent = __decorate([
6254
6261
  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"
6262
+ 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
6263
  })
6257
6264
  ], FileUploadComponent);
6258
6265
  return FileUploadComponent;
@@ -7560,6 +7567,7 @@ var CustomFieldsComponent = /** @class */ (function () {
7560
7567
  this.customFieldsEndpoint = "platform/field_customization/queries/getEntity";
7561
7568
  this.fileLocationEndpoint = "platform/field_customization/actions/requestUpload";
7562
7569
  this.requestAccessEndpoint = "platform/field_customization/actions/requestAccess";
7570
+ this.showFileUploadDate = false;
7563
7571
  this.fields = [];
7564
7572
  this.ready = false;
7565
7573
  this.ngUsubscribe = new Subject();
@@ -7881,6 +7889,7 @@ var CustomFieldsComponent = /** @class */ (function () {
7881
7889
  onDownloadFile: function (event, formfield) {
7882
7890
  _this.downloadFile(event, formfield);
7883
7891
  },
7892
+ showFileUploadDate: this.showFileUploadDate
7884
7893
  };
7885
7894
  };
7886
7895
  /**
@@ -8074,6 +8083,9 @@ var CustomFieldsComponent = /** @class */ (function () {
8074
8083
  __decorate([
8075
8084
  Input()
8076
8085
  ], CustomFieldsComponent.prototype, "displayTimeInfoSign", void 0);
8086
+ __decorate([
8087
+ Input()
8088
+ ], CustomFieldsComponent.prototype, "showFileUploadDate", void 0);
8077
8089
  CustomFieldsComponent = CustomFieldsComponent_1 = __decorate([
8078
8090
  Component({
8079
8091
  selector: "s-custom-fields",