import { __decorate, __metadata } from "tslib";
import { LayoutPropertyDescription, LayoutPropertyName, LayoutPropertyType } from '@anglr/dynamic/layout-editor';
import { mapValuesToThis } from '@jscrpt/common';
/**
 * Toggle button model for properties editor
 */
export class ToggleButtonModel {
    //######################### constructor #########################
    constructor(value) {
        //######################### public properties #########################
        /**
         * @inheritdoc
         */
        this.onText = null;
        /**
         * @inheritdoc
         */
        this.offText = null;
        /**
         * @inheritdoc
         */
        this.state = null;
        /**
         * @inheritdoc
         */
        this.disabled = false;
        /**
         * @inheritdoc
         */
        this.buttonCssClass = null;
        mapValuesToThis.bind(this)(value);
    }
}
__decorate([
    LayoutPropertyName('ON text'),
    LayoutPropertyDescription('Text to be displayed in toggle button when button is on'),
    LayoutPropertyType('inputString'),
    __metadata("design:type", Object)
], ToggleButtonModel.prototype, "onText", void 0);
__decorate([
    LayoutPropertyName('OFF text'),
    LayoutPropertyDescription('Text to be displayed in toggle button when button is off'),
    LayoutPropertyType('inputString'),
    __metadata("design:type", Object)
], ToggleButtonModel.prototype, "offText", void 0);
__decorate([
    LayoutPropertyName('State'),
    LayoutPropertyDescription('State of button on or off'),
    LayoutPropertyType('inputBoolean'),
    __metadata("design:type", Object)
], ToggleButtonModel.prototype, "state", void 0);
__decorate([
    LayoutPropertyName('Disabled'),
    LayoutPropertyDescription('Indication whether is toggle button disabled'),
    LayoutPropertyType('inputBoolean'),
    __metadata("design:type", Object)
], ToggleButtonModel.prototype, "disabled", void 0);
__decorate([
    LayoutPropertyName('Button css class'),
    LayoutPropertyDescription('Css class applied to button element itself'),
    LayoutPropertyType('inputString'),
    __metadata("design:type", Object)
], ToggleButtonModel.prototype, "buttonCssClass", void 0);
//# sourceMappingURL=toggleButton.model.js.map