@seniorsistemas/angular-components 16.9.0 → 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 +17 -7
- 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 +2 -1
- 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 +10 -5
- 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/esm2015/components/shared/border-button/border-button.component.js +1 -1
- package/esm5/components/custom-fields/custom-fields.component.js +10 -5
- 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/esm5/components/shared/border-button/border-button.component.js +1 -1
- package/fesm2015/seniorsistemas-angular-components.js +17 -7
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +17 -7
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -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();
|
|
@@ -7599,11 +7605,11 @@ var CustomFieldsComponent = /** @class */ (function () {
|
|
|
7599
7605
|
this.value = value;
|
|
7600
7606
|
}
|
|
7601
7607
|
};
|
|
7602
|
-
CustomFieldsComponent.prototype.setDisabledState = function (
|
|
7603
|
-
if (
|
|
7604
|
-
this.formGroup.disable();
|
|
7608
|
+
CustomFieldsComponent.prototype.setDisabledState = function (isDisabled) {
|
|
7609
|
+
if (isDisabled)
|
|
7610
|
+
this.formGroup.disable({ emitEvent: false });
|
|
7605
7611
|
else
|
|
7606
|
-
this.formGroup.enable();
|
|
7612
|
+
this.formGroup.enable({ emitEvent: false });
|
|
7607
7613
|
};
|
|
7608
7614
|
CustomFieldsComponent.prototype.getCustomFields = function () {
|
|
7609
7615
|
if (this.entityObject && this.entityObject.entity_) {
|
|
@@ -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",
|
|
@@ -8957,7 +8967,7 @@ var BorderButtonComponent = /** @class */ (function () {
|
|
|
8957
8967
|
Component({
|
|
8958
8968
|
selector: "s-border-button",
|
|
8959
8969
|
template: "<button\n class=\"border-button\"\n [ngClass]=\"{\n 'border-button--severity-default': severity === EnumSeverity.Default,\n 'border-button--severity-info': severity === EnumSeverity.Info,\n 'border-button--severity-warn': severity === EnumSeverity.Warn,\n 'border-button--severity-error': severity === EnumSeverity.Error,\n 'border-button--severity-success': severity == EnumSeverity.Success,\n 'border-button--disabled': options?.disabled\n ? options?.disabled(severity)\n : false\n }\"\n (click)=\"options?.onClick ? options?.onClick(severity) : null\"\n [sTooltip]=\"options?.tooltip ? options?.tooltip(severity) : null\"\n [tooltipPosition]=\"TooltipPosition.Left\"\n [disabled]=\"options?.disabled ? options?.disabled(severity) : false\"\n>\n <span class=\"border-button__label\">\n {{ options?.label ? options?.label(severity) : null }}\n </span>\n <span\n *ngIf=\"options?.icon ? options?.icon(severity) : false\"\n class=\"border-button__icon {{ options?.icon(severity) }}\"\n ></span>\n</button>",
|
|
8960
|
-
styles: [".border-button{padding:0 8px;border:1px solid;border-radius:12px;height:23px;max-width:320px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.border-button__label{font-family
|
|
8970
|
+
styles: [".border-button{padding:0 8px;border:1px solid;border-radius:12px;height:23px;max-width:320px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.border-button__label{font-family:Open Sans,sans-serif;font-size:12px;line-height:150%;width:100%;display:block;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border-button__icon{font-size:12px;color:#333;margin-left:8px}.border-button--severity-default{border-color:#ccc;background-color:#fff}.border-button--severity-info{border-color:#428bca;background-color:#d5e8ec;transition:background-color .5s,border-color .5s}.border-button--severity-info:enabled:hover{background-color:#9ecad4;cursor:pointer}.border-button--severity-info:enabled:active{transition:none;background-color:#67acbc;border-color:#67acbc}.border-button--severity-warn{border-color:#f8931f;background-color:#fce3ba;transition:background-color .5s,border-color .5s}.border-button--severity-warn:enabled:hover{background-color:#f8bf5e;cursor:pointer}.border-button--severity-warn:enabled:active{transition:none;background-color:#f5a319;border-color:#f5a319}.border-button--severity-error{border-color:#c13018;background-color:#fcd2d2;transition:background-color .5s,border-color .5s}.border-button--severity-error:enabled:hover{background-color:#f89696;cursor:pointer}.border-button--severity-error:enabled:active{transition:none;background-color:#f45b5b;border-color:#f45b5b}.border-button--severity-success{border-color:#0c9348;background-color:#e6ffb3;transition:background-color .5s,border-color .5s}.border-button--severity-success:enabled:hover{background-color:#c8ff5c;cursor:pointer}.border-button--severity-success:enabled:active{transition:none;background-color:#ade500;border-color:#ade500}.border-button--disabled:disabled:hover{cursor:default}"]
|
|
8961
8971
|
})
|
|
8962
8972
|
], BorderButtonComponent);
|
|
8963
8973
|
return BorderButtonComponent;
|