@seniorsistemas/angular-components 17.19.0 → 17.19.1
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 +14 -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/dynamic-form/configurations/fields/field.d.ts +5 -0
- package/components/dynamic-form/configurations/form-field.d.ts +4 -0
- package/esm2015/components/custom-fields/custom-fields.component.js +4 -1
- package/esm2015/components/dynamic-form/components/dynamic-field/dynamic-field.component.js +2 -2
- package/esm2015/components/dynamic-form/configurations/fields/field.js +7 -2
- package/esm2015/components/dynamic-form/configurations/form-field.js +5 -1
- package/esm5/components/custom-fields/custom-fields.component.js +4 -1
- package/esm5/components/dynamic-form/components/dynamic-field/dynamic-field.component.js +2 -2
- package/esm5/components/dynamic-form/configurations/fields/field.js +7 -2
- package/esm5/components/dynamic-form/configurations/form-field.js +5 -1
- package/fesm2015/seniorsistemas-angular-components.js +14 -2
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +14 -2
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -6424,7 +6424,11 @@
|
|
|
6424
6424
|
var Field = /** @class */ (function () {
|
|
6425
6425
|
function Field(config) {
|
|
6426
6426
|
var _this = this;
|
|
6427
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6427
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6428
|
+
/**
|
|
6429
|
+
* In some cases DynamicFormField use a custom field that alredy exists, this happen in CustomFields when convert 'Integer, Double & Money' types to 'Custom' this create two labels. activate this property hide the parent label.
|
|
6430
|
+
*/
|
|
6431
|
+
this.ignoreLabel = false;
|
|
6428
6432
|
if ((_a = config.footer) === null || _a === void 0 ? void 0 : _a.help) {
|
|
6429
6433
|
config.footer.help = __assign({ visible: function () { return true; } }, (_b = config.footer) === null || _b === void 0 ? void 0 : _b.help);
|
|
6430
6434
|
}
|
|
@@ -6452,6 +6456,7 @@
|
|
|
6452
6456
|
this.CustomFieldComponentClass = config.CustomFieldComponentClass;
|
|
6453
6457
|
this.displayTimeInfoSign = (_e = config.displayTimeInfoSign) !== null && _e !== void 0 ? _e : 5000;
|
|
6454
6458
|
this.useInfoSignFocusedInputRef = (_f = config.useInfoSignFocusedInputRef) !== null && _f !== void 0 ? _f : true;
|
|
6459
|
+
this.ignoreLabel = (_g = config.ignoreLabel) !== null && _g !== void 0 ? _g : false;
|
|
6455
6460
|
}
|
|
6456
6461
|
return Field;
|
|
6457
6462
|
}());
|
|
@@ -7072,6 +7077,10 @@
|
|
|
7072
7077
|
|
|
7073
7078
|
var FormField = /** @class */ (function () {
|
|
7074
7079
|
function FormField(config) {
|
|
7080
|
+
/**
|
|
7081
|
+
* In some cases DynamicFormField use a custom field that alredy exists, this happen in CustomFields when convert 'Integer, Double & Money' types to 'Custom' this create two labels. activate this property hide the parent label.
|
|
7082
|
+
*/
|
|
7083
|
+
this.ignoreLabel = false;
|
|
7075
7084
|
switch (config.type) {
|
|
7076
7085
|
case exports.FieldType.Enum:
|
|
7077
7086
|
return new SelectField(config);
|
|
@@ -11341,7 +11350,7 @@
|
|
|
11341
11350
|
DynamicFieldComponent = __decorate([
|
|
11342
11351
|
core.Component({
|
|
11343
11352
|
selector: "s-dynamic-field",
|
|
11344
|
-
template: "<div class=\"ui-fluid\" [formGroup]=\"form\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of fields\">\n <div\n *ngIf=\"!field.visible || field.visible()\"\n [ngClass]=\"field.gridClass\">\n
|
|
11353
|
+
template: "<div class=\"ui-fluid\" [formGroup]=\"form\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of fields\">\n <div\n *ngIf=\"!field.visible || field.visible()\"\n [ngClass]=\"field.gridClass\">\n <ng-container *ngIf=\"field.ignoreLabel ? false : field.label && field.type === FieldType.Custom\">\n <label\n *sInfoSign=\"field.infoSign; displayTime: field.displayTimeInfoSign; useFocusedInputRef: field.useInfoSignFocusedInputRef\"\n [for]=\"field.name\"\n [ngClass]=\"{ required: field.required() }\"\n >\n {{ field.label }}\n </label>\n </ng-container>\n\n <ng-container\n *sDynamicForm=\"{\n id: id,\n config: field,\n group: form\n }\"\n ></ng-container>\n\n <s-control-errors\n [form]=\"form\"\n [control]=\"form.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\"\n ></s-control-errors>\n\n <ng-container *ngIf=\"field.footer\">\n <ng-container *ngIf=\"field.footer.help\">\n <span\n *ngIf=\"\n field.footer.help.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n \"\n style=\"color: #888b99\"\n >\n {{ field.footer.help.text }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"field.footer.link\">\n <div\n *ngIf=\"\n field.footer.link.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n \"\n class=\"ui-g\"\n style=\"margin-left: -10px\"\n >\n <s-button\n [label]=\"field.footer.link.label\"\n priority=\"link\"\n (onClick)=\"\n field.footer.link.onClick({\n abstractControl:\n form.controls[field.name],\n formField: field\n })\n \"\n [auxiliary]=\"true\"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template\n *ngIf=\"field?.bottomTemplate\"\n [ngTemplateOutlet]=\"field.bottomTemplate\"\n ></ng-template>\n </div>\n </ng-container>\n </div>\n</div>\n"
|
|
11345
11354
|
})
|
|
11346
11355
|
], DynamicFieldComponent);
|
|
11347
11356
|
return DynamicFieldComponent;
|
|
@@ -13523,6 +13532,7 @@
|
|
|
13523
13532
|
leftAddon: {
|
|
13524
13533
|
label: (_b = (_a = localeOptions === null || localeOptions === void 0 ? void 0 : localeOptions.number) === null || _a === void 0 ? void 0 : _a.currencySymbol) !== null && _b !== void 0 ? _b : "R$",
|
|
13525
13534
|
},
|
|
13535
|
+
ignoreLabel: true,
|
|
13526
13536
|
};
|
|
13527
13537
|
break;
|
|
13528
13538
|
case CustomFieldType.Double:
|
|
@@ -13532,6 +13542,7 @@
|
|
|
13532
13542
|
CustomFieldClass: NumberField,
|
|
13533
13543
|
precision: 15,
|
|
13534
13544
|
scale: 2,
|
|
13545
|
+
ignoreLabel: true,
|
|
13535
13546
|
};
|
|
13536
13547
|
break;
|
|
13537
13548
|
case CustomFieldType.Integer:
|
|
@@ -13541,6 +13552,7 @@
|
|
|
13541
13552
|
CustomFieldClass: NumberField,
|
|
13542
13553
|
precision: 15,
|
|
13543
13554
|
scale: 0,
|
|
13555
|
+
ignoreLabel: true,
|
|
13544
13556
|
};
|
|
13545
13557
|
break;
|
|
13546
13558
|
case CustomFieldType.Any:
|