import { __decorate, __metadata } from "tslib";
import { LayoutPropertyName, LayoutPropertyDescription, LayoutPropertyType } from '@anglr/dynamic/layout-editor';
import { FormComponentBaseModel } from '@anglr/dynamic/form';
import { mapValuesToThis } from '@jscrpt/common';
export class FormFieldComponentBaseModel extends FormComponentBaseModel {
    //######################### constructor #########################
    constructor(value) {
        super(value);
        /**
         * @inheritdoc
         */
        this.label = null;
        /**
         * @inheritdoc
         */
        this.placeholder = null;
        mapValuesToThis.bind(this)(value);
    }
}
__decorate([
    LayoutPropertyName('Label'),
    LayoutPropertyDescription('Form label'),
    LayoutPropertyType('inputString'),
    __metadata("design:type", Object)
], FormFieldComponentBaseModel.prototype, "label", void 0);
__decorate([
    LayoutPropertyName('Placeholder'),
    LayoutPropertyDescription('Input placeholder'),
    LayoutPropertyType('inputString'),
    __metadata("design:type", Object)
], FormFieldComponentBaseModel.prototype, "placeholder", void 0);
//# sourceMappingURL=formFieldComponentBase.model.js.map