@vs-form/vs-form
Version:
A schema-based form generator component for React using material-ui
137 lines (134 loc) • 5.51 kB
JavaScript
var Component;
(function (Component) {
Component["card"] = "card";
Component["panel"] = "panel";
Component["tabs"] = "tabs";
Component["tab"] = "tab";
Component["expansionpanel"] = "expansionpanel";
Component["form"] = "form";
Component["subschema"] = "subschema";
Component["textinput"] = "textinput";
Component["maskinput"] = "maskinput";
Component["select"] = "select";
Component["selectext"] = "selectext";
Component["integer"] = "integer";
Component["number"] = "number";
Component["numberformat"] = "numberformat";
Component["date"] = "date";
Component["dateext"] = "dateext";
Component["time"] = "time";
Component["datetime"] = "datetime";
Component["radiogroup"] = "radiogroup";
Component["slider"] = "slider";
Component["checkbox"] = "checkbox";
Component["checklistbox"] = "checklistbox";
Component["switch"] = "switch";
Component["text"] = "text";
Component["button"] = "button";
Component["speeddial"] = "speeddial";
Component["iconbutton"] = "iconbutton";
Component["icon"] = "icon";
Component["divider"] = "divider";
Component["mediastatic"] = "mediastatic";
Component["dataTable"] = "dataTable";
Component["custom"] = "custom";
})(Component || (Component = {}));
var DataType;
(function (DataType) {
DataType["string"] = "string";
DataType["number"] = "number";
DataType["integer"] = "integer";
DataType["boolean"] = "boolean";
DataType["date"] = "date";
DataType["array"] = "array";
DataType["arrayString"] = "arrayString";
DataType["arrayNumber"] = "arrayNumber";
DataType["arrayInteger"] = "arrayInteger";
DataType["arrayObject"] = "arrayObject";
DataType["object"] = "object";
DataType["function"] = "function";
DataType["regex"] = "regex";
DataType["any"] = "any";
})(DataType || (DataType = {}));
var ComponentType;
(function (ComponentType) {
ComponentType["field"] = "field";
ComponentType["container"] = "container";
ComponentType["subschema"] = "subschema";
ComponentType["static"] = "static";
})(ComponentType || (ComponentType = {}));
var InputVariant;
(function (InputVariant) {
InputVariant["standard"] = "standard";
InputVariant["outlined"] = "outlined";
InputVariant["filled"] = "filled";
})(InputVariant || (InputVariant = {}));
var ValidationMethod;
(function (ValidationMethod) {
ValidationMethod[ValidationMethod["validateOnChange"] = 1] = "validateOnChange";
ValidationMethod[ValidationMethod["validateOnSubmit"] = 2] = "validateOnSubmit";
})(ValidationMethod || (ValidationMethod = {}));
var InputType;
(function (InputType) {
InputType["button"] = "button";
InputType["checkbox"] = "checkbox";
InputType["color"] = "color";
InputType["date"] = "date";
InputType["datetime"] = "datetime";
InputType["datetimelocal"] = "datetime-local";
InputType["email"] = "email";
InputType["file"] = "file";
InputType["hidden"] = "hidden";
InputType["image"] = "image";
InputType["month"] = "month";
InputType["number"] = "number";
InputType["password"] = "password";
InputType["radio"] = "radio";
InputType["range"] = "range";
InputType["reset"] = "reset";
InputType["search"] = "search";
InputType["submit"] = "submit";
InputType["tel"] = "tel";
InputType["text"] = "text";
InputType["time"] = "time";
InputType["url"] = "url";
InputType["week"] = "week";
})(InputType || (InputType = {}));
var ButtonAction;
(function (ButtonAction) {
ButtonAction["none"] = "none";
ButtonAction["save"] = "save";
ButtonAction["cancel"] = "cancel";
})(ButtonAction || (ButtonAction = {}));
var SchemaEventType;
(function (SchemaEventType) {
SchemaEventType["onDataChanges"] = "onDataChanges";
SchemaEventType["onSelectionChangeStarted"] = "onSelectionChangeStarted";
SchemaEventType["onSelectionChanged"] = "onSelectionChanged";
SchemaEventType["onBeforeChangeSelection"] = "onBeforeChangeSelection";
SchemaEventType["onComponentAdded"] = "onComponentAdded";
SchemaEventType["onComponentDelete"] = "onComponentDelete";
SchemaEventType["onPropertyUpdated"] = "onPropertyUpdated";
SchemaEventType["onSchemaPropertyUpdated"] = "onSchemaPropertyUpdated";
SchemaEventType["onCompileErrorClicked"] = "onCompileErrorClicked";
SchemaEventType["onRenderComponent"] = "onRenderComponent";
SchemaEventType["onFocusComponent"] = "onFocusComponent";
})(SchemaEventType || (SchemaEventType = {}));
var SortDirection;
(function (SortDirection) {
SortDirection["none"] = "none";
SortDirection["asc"] = "asc";
SortDirection["desc"] = "desc";
})(SortDirection || (SortDirection = {}));
var enums = /*#__PURE__*/Object.freeze({
get Component () { return Component; },
get DataType () { return DataType; },
get ComponentType () { return ComponentType; },
get InputVariant () { return InputVariant; },
get ValidationMethod () { return ValidationMethod; },
get InputType () { return InputType; },
get ButtonAction () { return ButtonAction; },
get SchemaEventType () { return SchemaEventType; },
get SortDirection () { return SortDirection; }
});
export { DataType as a, Component as b, ValidationMethod as c, SortDirection as d, ButtonAction as e, InputVariant as f, SchemaEventType as g, enums as h };