@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.
- package/bundles/seniorsistemas-angular-components.umd.js +4 -1
- 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/boolean-switch-field.d.ts +3 -0
- package/esm2015/components/dynamic-form/components/fields/boolean/boolean-switch-field.component.js +2 -2
- package/esm2015/components/dynamic-form/configurations/fields/boolean-switch-field.js +5 -1
- package/esm5/components/dynamic-form/components/fields/boolean/boolean-switch-field.component.js +2 -2
- package/esm5/components/dynamic-form/configurations/fields/boolean-switch-field.js +5 -1
- package/fesm2015/seniorsistemas-angular-components.js +4 -1
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +4 -1
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -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-
|
|
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;
|