@seniorsistemas/angular-components 16.12.0 → 16.12.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.
@@ -2806,6 +2806,9 @@ var BooleanSwitchField = /** @class */ (function (_super) {
2806
2806
  function BooleanSwitchField(config) {
2807
2807
  var _this = _super.call(this, config) || this;
2808
2808
  _this.onChange = config.onChange;
2809
+ if (config.optionsLabel) {
2810
+ _this.optionsLabel = new BooleanOptionsLabel(config.optionsLabel);
2811
+ }
2809
2812
  _this.representedBy = "switch";
2810
2813
  return _this;
2811
2814
  }
@@ -6992,7 +6995,7 @@ var BooleanSwitchFieldComponent = /** @class */ (function () {
6992
6995
  ], BooleanSwitchFieldComponent.prototype, "formControl", void 0);
6993
6996
  BooleanSwitchFieldComponent = __decorate([
6994
6997
  Component({
6995
- template: "<div class=\"ui-g\">\n <p-inputSwitch\n [id]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [formControl]=\"formControl\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\">\n </p-inputSwitch>\n</div>"
6998
+ 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 <p-inputSwitch [id]=\"(field.id || field.name)\" [name]=\"field.name\" [formControl]=\"formControl\"\n [sTooltip]=\"field.tooltip\" tooltipPosition=\"top\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\">\n </p-inputSwitch>\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>"
6996
6999
  })
6997
7000
  ], BooleanSwitchFieldComponent);
6998
7001
  return BooleanSwitchFieldComponent;