vdr-react-form-manager
Version:
28 lines (27 loc) • 1.03 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const FormInputPropertiesBuilder_1 = require("./FormInputPropertiesBuilder");
class FormInputProperties {
constructor(build) {
this.id = build.id;
this.name = build.name;
this.value = build.value;
this.label = build.label;
this.isValid = build.isValid;
this.errors = [];
this.disabled = build.disabled;
this.classNames = build.classNames;
this.validators = build.validators;
this.availableValues = build.availableValues;
this.customProps = build.customProps;
this.originalDisabledValue = build.disabled;
this.updateId = build.updateId;
this.originalValue = build.originalValue;
this.isTouched = build.isTouched;
this.isPristine = build.isPristine;
}
static Builder(name) {
return new FormInputPropertiesBuilder_1.FormInputPropertiesBuilder(name);
}
}
exports.FormInputProperties = FormInputProperties;