import { __decorate } from "tslib";
import { CompareValidator } from '../validators/compare/compare';
import { MinLengthValidator } from '../validators/min-length/min-length';
import { RequiredValidator } from '../validators/required/required';
import { ClassFormControlValidators, PropertyFormControlSkip, PropertyFormControlValidators } from './form-builder';
var TestFormBuilderUser = /** @class */ (function () {
    function TestFormBuilderUser() {
        this.id = 1;
        this.name = '';
        this.lastName = '';
        this.favoritesColors = ['blue'];
        this.address = new TestFormBuilderAddress();
    }
    __decorate([
        PropertyFormControlSkip
    ], TestFormBuilderUser.prototype, "id", void 0);
    __decorate([
        PropertyFormControlValidators([RequiredValidator()])
    ], TestFormBuilderUser.prototype, "name", void 0);
    __decorate([
        PropertyFormControlValidators([RequiredValidator()])
    ], TestFormBuilderUser.prototype, "lastName", void 0);
    __decorate([
        PropertyFormControlValidators([MinLengthValidator(2)])
    ], TestFormBuilderUser.prototype, "favoritesColors", void 0);
    TestFormBuilderUser = __decorate([
        ClassFormControlValidators([CompareValidator(['name', 'lastname'])])
    ], TestFormBuilderUser);
    return TestFormBuilderUser;
}());
export { TestFormBuilderUser };
var TestFormBuilderAddress = /** @class */ (function () {
    function TestFormBuilderAddress() {
        this.id = 1;
        this.street = '';
        this.civicNumber = 1;
    }
    __decorate([
        PropertyFormControlSkip
    ], TestFormBuilderAddress.prototype, "id", void 0);
    __decorate([
        PropertyFormControlValidators([RequiredValidator(), MinLengthValidator(3)])
    ], TestFormBuilderAddress.prototype, "street", void 0);
    __decorate([
        PropertyFormControlValidators([RequiredValidator()])
    ], TestFormBuilderAddress.prototype, "civicNumber", void 0);
    return TestFormBuilderAddress;
}());
export { TestFormBuilderAddress };
//# sourceMappingURL=form-builder-test-classes.js.map