UNPKG

@vs-form/vs-form

Version:

A schema-based form generator component for React using material-ui

132 lines (128 loc) 5.43 kB
'use strict'; (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"; })(exports.Component || (exports.Component = {})); (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"; })(exports.DataType || (exports.DataType = {})); var ComponentType; (function (ComponentType) { ComponentType["field"] = "field"; ComponentType["container"] = "container"; ComponentType["subschema"] = "subschema"; ComponentType["static"] = "static"; })(ComponentType || (ComponentType = {})); (function (InputVariant) { InputVariant["standard"] = "standard"; InputVariant["outlined"] = "outlined"; InputVariant["filled"] = "filled"; })(exports.InputVariant || (exports.InputVariant = {})); (function (ValidationMethod) { ValidationMethod[ValidationMethod["validateOnChange"] = 1] = "validateOnChange"; ValidationMethod[ValidationMethod["validateOnSubmit"] = 2] = "validateOnSubmit"; })(exports.ValidationMethod || (exports.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 = {})); (function (ButtonAction) { ButtonAction["none"] = "none"; ButtonAction["save"] = "save"; ButtonAction["cancel"] = "cancel"; })(exports.ButtonAction || (exports.ButtonAction = {})); (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"; })(exports.SchemaEventType || (exports.SchemaEventType = {})); (function (SortDirection) { SortDirection["none"] = "none"; SortDirection["asc"] = "asc"; SortDirection["desc"] = "desc"; })(exports.SortDirection || (exports.SortDirection = {})); var enums = /*#__PURE__*/Object.freeze({ get Component () { return exports.Component; }, get DataType () { return exports.DataType; }, get ComponentType () { return ComponentType; }, get InputVariant () { return exports.InputVariant; }, get ValidationMethod () { return exports.ValidationMethod; }, get InputType () { return InputType; }, get ButtonAction () { return exports.ButtonAction; }, get SchemaEventType () { return exports.SchemaEventType; }, get SortDirection () { return exports.SortDirection; } }); exports.enums = enums;