@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.
@@ -2952,6 +2952,9 @@
2952
2952
  function BooleanSwitchField(config) {
2953
2953
  var _this = _super.call(this, config) || this;
2954
2954
  _this.onChange = config.onChange;
2955
+ if (config.optionsLabel) {
2956
+ _this.optionsLabel = new BooleanOptionsLabel(config.optionsLabel);
2957
+ }
2955
2958
  _this.representedBy = "switch";
2956
2959
  return _this;
2957
2960
  }
@@ -7138,7 +7141,7 @@
7138
7141
  ], BooleanSwitchFieldComponent.prototype, "formControl", void 0);
7139
7142
  BooleanSwitchFieldComponent = __decorate([
7140
7143
  core.Component({
7141
- 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>"
7144
+ 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>"
7142
7145
  })
7143
7146
  ], BooleanSwitchFieldComponent);
7144
7147
  return BooleanSwitchFieldComponent;