import { __decorate, __metadata } from "tslib";
import { LayoutPropertyName, LayoutPropertyType } from '@anglr/dynamic/layout-editor';
import { mapValuesToThis } from '@jscrpt/common';
import { FormFieldComponentBaseModel } from '../../../metadata';
/**
 * Number field model for properties editor
 */
export class NumberFieldModel extends FormFieldComponentBaseModel {
    //######################### constructor #########################
    constructor(value) {
        super(value);
        /**
         * @inheritdoc
         */
        this.min = null;
        /**
         * @inheritdoc
         */
        this.max = null;
        /**
         * @inheritdoc
         */
        this.decimalPlaces = null;
        mapValuesToThis.bind(this)(value);
    }
}
__decorate([
    LayoutPropertyName('Min value'),
    LayoutPropertyType('inputNumber'),
    __metadata("design:type", Object)
], NumberFieldModel.prototype, "min", void 0);
__decorate([
    LayoutPropertyName('Max value'),
    LayoutPropertyType('inputNumber'),
    __metadata("design:type", Object)
], NumberFieldModel.prototype, "max", void 0);
__decorate([
    LayoutPropertyName('Decimal places'),
    LayoutPropertyType('inputNumber'),
    __metadata("design:type", Object)
], NumberFieldModel.prototype, "decimalPlaces", void 0);
//# sourceMappingURL=numberField.model.js.map