@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
@@ -1570,7 +1570,9 @@
1570
1570
  };
1571
1571
  CountryPhonePickerComponent.prototype.onClickout = function (event) {
1572
1572
  if (!this.eRef.nativeElement.contains(event.target)) {
1573
- this.open = false;
1573
+ if (this.open) {
1574
+ this.open = false;
1575
+ }
1574
1576
  }
1575
1577
  };
1576
1578
  CountryPhonePickerComponent.prototype.ngOnInit = function () {
@@ -2295,6 +2297,7 @@
2295
2297
  _this.onRemoveFile = config.onRemoveFile;
2296
2298
  _this.onCancelUpload = config.onCancelUpload;
2297
2299
  _this.onDownloadFile = config.onDownloadFile;
2300
+ _this.showFileUploadDate = config.showFileUploadDate;
2298
2301
  return _this;
2299
2302
  }
2300
2303
  return BlobField;
@@ -4017,6 +4020,7 @@
4017
4020
  this.supportedExtensions = [];
4018
4021
  this.ariaLabelProgress = "Carregando arquivo";
4019
4022
  this.disabled = false;
4023
+ this.showFileUploadDate = false;
4020
4024
  this.uploadHandler = new core.EventEmitter();
4021
4025
  this.removeFile = new core.EventEmitter();
4022
4026
  this.cancelUpload = new core.EventEmitter();
@@ -4034,7 +4038,7 @@
4034
4038
  set: function (files) {
4035
4039
  var _this = this;
4036
4040
  var _a;
4037
- if ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId) {
4041
+ if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
4038
4042
  this.getUploadDate(files);
4039
4043
  }
4040
4044
  this._files = files.map(function (file) {
@@ -4240,6 +4244,9 @@
4240
4244
  __decorate([
4241
4245
  core.Input()
4242
4246
  ], FileUploadComponent.prototype, "disabled", void 0);
4247
+ __decorate([
4248
+ core.Input()
4249
+ ], FileUploadComponent.prototype, "showFileUploadDate", void 0);
4243
4250
  __decorate([
4244
4251
  core.Input()
4245
4252
  ], FileUploadComponent.prototype, "files", null);
@@ -6421,7 +6428,7 @@
6421
6428
  ], FileUploadComponent.prototype, "formControl", void 0);
6422
6429
  FileUploadComponent = __decorate([
6423
6430
  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"
6431
+ 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
6432
  })
6426
6433
  ], FileUploadComponent);
6427
6434
  return FileUploadComponent;
@@ -7729,6 +7736,7 @@
7729
7736
  this.customFieldsEndpoint = "platform/field_customization/queries/getEntity";
7730
7737
  this.fileLocationEndpoint = "platform/field_customization/actions/requestUpload";
7731
7738
  this.requestAccessEndpoint = "platform/field_customization/actions/requestAccess";
7739
+ this.showFileUploadDate = false;
7732
7740
  this.fields = [];
7733
7741
  this.ready = false;
7734
7742
  this.ngUsubscribe = new rxjs.Subject();
@@ -8050,6 +8058,7 @@
8050
8058
  onDownloadFile: function (event, formfield) {
8051
8059
  _this.downloadFile(event, formfield);
8052
8060
  },
8061
+ showFileUploadDate: this.showFileUploadDate
8053
8062
  };
8054
8063
  };
8055
8064
  /**
@@ -8243,6 +8252,9 @@
8243
8252
  __decorate([
8244
8253
  core.Input()
8245
8254
  ], CustomFieldsComponent.prototype, "displayTimeInfoSign", void 0);
8255
+ __decorate([
8256
+ core.Input()
8257
+ ], CustomFieldsComponent.prototype, "showFileUploadDate", void 0);
8246
8258
  CustomFieldsComponent = CustomFieldsComponent_1 = __decorate([
8247
8259
  core.Component({
8248
8260
  selector: "s-custom-fields",