@vs-form/vs-form
Version:
A schema-based form generator component for React using material-ui
114 lines (113 loc) • 3 kB
TypeScript
export declare enum Component {
card = "card",
panel = "panel",
tabs = "tabs",
tab = "tab",
expansionpanel = "expansionpanel",
form = "form",
subschema = "subschema",
textinput = "textinput",
maskinput = "maskinput",
select = "select",
selectext = "selectext",
integer = "integer",
number = "number",
numberformat = "numberformat",
date = "date",
dateext = "dateext",
time = "time",
datetime = "datetime",
radiogroup = "radiogroup",
slider = "slider",
checkbox = "checkbox",
checklistbox = "checklistbox",
switch = "switch",
text = "text",
button = "button",
speeddial = "speeddial",
iconbutton = "iconbutton",
icon = "icon",
divider = "divider",
mediastatic = "mediastatic",
dataTable = "dataTable",
custom = "custom"
}
export declare enum DataType {
string = "string",
number = "number",
integer = "integer",
boolean = "boolean",
date = "date",
array = "array",
arrayString = "arrayString",
arrayNumber = "arrayNumber",
arrayInteger = "arrayInteger",
arrayObject = "arrayObject",
object = "object",
function = "function",
regex = "regex",
any = "any"
}
export declare enum ComponentType {
field = "field",
container = "container",
subschema = "subschema",
static = "static"
}
export declare enum InputVariant {
standard = "standard",
outlined = "outlined",
filled = "filled"
}
export declare enum ValidationMethod {
validateOnChange = 1,
validateOnSubmit = 2
}
export declare enum InputType {
button = "button",
checkbox = "checkbox",
color = "color",
date = "date",
datetime = "datetime",
datetimelocal = "datetime-local",
email = "email",
file = "file",
hidden = "hidden",
image = "image",
month = "month",
number = "number",
password = "password",
radio = "radio",
range = "range",
reset = "reset",
search = "search",
submit = "submit",
tel = "tel",
text = "text",
time = "time",
url = "url",
week = "week"
}
export declare enum ButtonAction {
none = "none",
save = "save",
cancel = "cancel"
}
export declare enum SchemaEventType {
onDataChanges = "onDataChanges",
onSelectionChangeStarted = "onSelectionChangeStarted",
onSelectionChanged = "onSelectionChanged",
onBeforeChangeSelection = "onBeforeChangeSelection",
onComponentAdded = "onComponentAdded",
onComponentDelete = "onComponentDelete",
onPropertyUpdated = "onPropertyUpdated",
onSchemaPropertyUpdated = "onSchemaPropertyUpdated",
onCompileErrorClicked = "onCompileErrorClicked",
onRenderComponent = "onRenderComponent",
onFocusComponent = "onFocusComponent"
}
export declare enum SortDirection {
none = "none",
asc = "asc",
desc = "desc"
}