@seniorsistemas/angular-components 17.10.11 → 17.10.13

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.
@@ -10130,7 +10130,7 @@ var BooleanSwitchFieldComponent = /** @class */ (function () {
10130
10130
  ], BooleanSwitchFieldComponent.prototype, "formControl", void 0);
10131
10131
  BooleanSwitchFieldComponent = __decorate([
10132
10132
  Component({
10133
- template: "<div class=\"ui-grid ui-grid-responsive ui-grid-pad ui-fluid\">\n <div class=\"ui-grid-row\">\n <div class=\"i-grid-col-1\">\n <s-switch\n [id]=\"(field.id || field.name)\"\n [inputName]=\"field.name\"\n [formControl]=\"formControl\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n (valueChanged)=\"field.onChange ? field.onChange($event) : null\">\n </s-switch>\n </div>\n <div class=\"i-grid-col-1\" *ngIf=\"field.optionsLabel\">\n <ng-container *ngIf=\"formControl.value; else caseFalse\">\n <span>{{ field.optionsLabel.true }}</span>\n </ng-container>\n <ng-template #caseFalse>\n <span>{{ field.optionsLabel.false }}</span>\n </ng-template>\n </div>\n </div>\n</div>"
10133
+ template: "<s-field-label [field]=\"field\"></s-field-label>\n\n<div class=\"ui-grid ui-grid-responsive ui-grid-pad ui-fluid\">\n <div class=\"ui-grid-row\">\n <div class=\"i-grid-col-1\">\n <s-switch\n [id]=\"(field.id || field.name)\"\n [inputName]=\"field.name\"\n [formControl]=\"formControl\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n (valueChanged)=\"field.onChange ? field.onChange($event) : null\">\n </s-switch>\n </div>\n <div class=\"i-grid-col-1\" *ngIf=\"field.optionsLabel\">\n <ng-container *ngIf=\"formControl.value; else caseFalse\">\n <span>{{ field.optionsLabel.true }}</span>\n </ng-container>\n <ng-template #caseFalse>\n <span>{{ field.optionsLabel.false }}</span>\n </ng-template>\n </div>\n </div>\n</div>"
10134
10134
  })
10135
10135
  ], BooleanSwitchFieldComponent);
10136
10136
  return BooleanSwitchFieldComponent;
@@ -12850,12 +12850,12 @@ var CustomFieldsComponent = /** @class */ (function () {
12850
12850
  break;
12851
12851
  }
12852
12852
  }
12853
- if (value !== null && !Number.isNaN(value)) {
12854
- parsedValues[name] = value;
12855
- }
12856
- else if (_this.isTypeNumberOrEnum(type)) {
12853
+ if (_this.isTypeNumberOrEnum(type)) {
12857
12854
  parsedValues[name] = field.multiple ? [] : null;
12858
12855
  }
12856
+ else {
12857
+ parsedValues[name] = value;
12858
+ }
12859
12859
  });
12860
12860
  if (this.hasBlob)
12861
12861
  parsedValues["fieldCustomization"] = this.formGroup.get("fieldCustomization").value;