UNPKG

@vs-form/vs-form

Version:

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

1,692 lines (1,691 loc) 45.1 kB
import { enums } from '../../index'; import * as types from '../types'; export declare const schemaNone: { hans: number; }; export declare const schemaNotObject: never[]; export declare const schemaNoComponents: {}; export declare const schemahasNoRootComponent: { components: { text1: { type: enums.Component; text: string; }; }; }; export declare const schemahasNoRootComponent2: { components: { input1: { type: enums.Component; data: { dataType: enums.DataType; field: string; }; prefix: string[]; }; icon1: { type: enums.Component; icon: string; }; text1: { type: enums.Component; text: string; }; panel1: { type: enums.Component; children: string[]; }; input2: { type: enums.Component; data: { dataType: enums.DataType; field: string; }; }; input3: { type: enums.Component; data: { dataType: enums.DataType; field: string; }; }; }; }; export declare const schemahasNoRootComponent3: { components: { input1: { type: enums.Component; data: { dataType: enums.DataType; field: string; }; prefix: string[]; }; icon1: { type: enums.Component; icon: string; }; text1: { type: enums.Component; text: string; }; panel1: { type: enums.Component; children: string[]; }; input2: { type: enums.Component; data: { dataType: enums.DataType; field: string; }; }; input3: { type: enums.Component; data: { dataType: enums.DataType; field: string; }; }; root: { type: enums.Component; children: string[]; }; }; }; export declare const schemahasRootCompoent: { components: { text1: { type: enums.Component; text: string; }; }; }; export declare const schemahasInvalidProp: { tubel: {}; }; export declare const schemaWrongPropertyType: { name: number; components: { root: {}; }; }; export declare const schemaRootKeyWrongType: { components: { root: number; }; }; export declare const schemaRootKeyTypeWrongType: { components: { root: { type: enums.Component; children: never[]; }; }; }; export declare const schemaRootKeyNoChildren: { components: { root: { type: enums.Component; }; }; }; export declare const schemaRootKeyEmptyChildren: { components: { root: { type: enums.Component; children: never[]; }; }; }; export declare const schemaRootKeyChildrenAreBad: { name: string; components: { root: { type: enums.Component; children: number[]; }; }; }; export declare const schemawithRecursivebSchema1: { name: string; components: { root: { type: enums.Component; children: string[]; }; name: { data: { field: string; dataType: string; }; type: enums.Component; label: string; }; card1: { type: enums.Component; label: string; children: string[]; }; card2: { type: enums.Component; label: string; children: string[]; }; card3: { type: enums.Component; label: string; children: string[]; }; card4: { type: enums.Component; label: string; children: string[]; }; sub: { data: { field: string; }; type: enums.Component; schemaName: string; }; }; }; export declare const schemaUnresolvableSubschema: { components: { root: { type: enums.Component; children: string[]; }; name: { data: { field: string; dataType: string; }; type: enums.Component; label: string; }; sub: { data: { field: string; dataType: string; }; type: enums.Component; schemaName: string; }; }; }; export declare const schemaSubSchemaError: { components: { root: { type: enums.Component; children: string[]; }; name: { data: { field: string; dataType: string; }; type: enums.Component; label: string; }; sub: { data: { field: string; dataType: string; }; columnSettings: ({ compId: string; sortDirection: string; width: number; sortable?: undefined; } | { compId: string; sortable: boolean; sortDirection?: undefined; width?: undefined; })[]; type: enums.Component; schemaName: string; keyField: string; }; sub1: { type: enums.Component; data: { field: string; dataType: string; }; columnSettings: ({ compId: string; sortDirection: string; width: number; sortable?: undefined; } | { compId: string; sortable: boolean; sortDirection?: undefined; width?: undefined; })[]; schemaName: string; keyField: string; }; sub2: { type: enums.Component; data: { field: string; dataType: string; }; schemaName: string; }; }; }; export declare const schemaComponentHasNoType: { name: string; components: { root: { type: enums.Component; children: string[]; }; name: { label: string; }; }; }; export declare const schemaErrorType: { name: string; values: { fieldHasNoComponent: number; }; components: { root: { type: enums.Component; children: string[]; }; noLabel: { data: {}; type: enums.Component; }; wrongfieldPropertyType: { data: { field: number; }; type: enums.Component; }; formTagnotAllowed: { type: enums.Component; children: string[]; }; wrongDataType: { data: { field: string; dataType: string; }; type: enums.Component; gridItem: { xl: number; }; }; tabHasNotTabAsChildren: { type: enums.Component; label: string; tabs: string[]; }; wrongDefaultValue: { data: { field: string; dataType: string; items: string[]; default: number; }; type: enums.Component; }; wrongDefaultValueDate: { data: { field: string; dataType: enums.DataType; default: string; }; type: enums.Component; }; wrongDefaultValueTime: { data: { field: string; dataType: enums.DataType; default: string; }; type: enums.Component; }; selectWrong: { type: enums.Component; data: { field: string; dataType: string; default(): number; }; label: string; hint: string; }; selectItemStringOrNumber: { type: enums.Component; data: { field: string; dataType: string; items: (number | boolean)[]; }; label: string; }; stringArrayDataTypeString: { type: enums.Component; data: { field: string; dataType: string; items: string[]; }; label: string; }; stringArrayDataTypeStringOk: { type: enums.Component; data: { field: string; dataType: string; items: string[]; }; label: string; }; selectItemStringOrNumber2: { type: enums.Component; data: { field: string; dataType: string; items: (string | number)[]; }; label: string; }; selectItem3: { type: enums.Component; data: { field: string; dataType: string; items: ({ value: number; text: string; tubel?: undefined; } | { value: number; tubel: string; text?: undefined; })[]; }; label: string; }; selectItem4: { type: enums.Component; data: { field: string; dataType: string; items: ({ value: number; text: string; } | { value: string; text: string; })[]; }; label: string; }; selectItem5: { type: enums.Component; data: { field: string; dataType: string; items: { value: string; text: string; }[]; }; label: string; }; selectItem6: { type: enums.Component; data: { field: string; dataType: string; items: ({ value: number; text: string; } | undefined)[]; }; label: string; }; selectItem7: { type: enums.Component; data: { field: string; dataType: string; items: { value: number; text: string; }[]; }; label: string; }; selectItem8: { type: enums.Component; data: { field: string; dataType: string; items: ({ value: number; text: string; } | { value: number; text: boolean; })[]; }; label: string; }; selectItem9: { type: enums.Component; data: { field: string; dataType: string; items: { value: number; text: string; }[]; }; label: string; }; selectItem10: { type: enums.Component; data: { field: string; dataType: string; items: { value: number; text: string; }[]; }; label: string; }; selectItemsEmptyArray: { type: enums.Component; data: { field: string; dataType: string; items: never[]; }; label: string; hint: string; }; iconNoIconOrSvg: { type: enums.Component; }; iconHasIcon: { icon: string; type: enums.Component; }; iconHasSVG: { svg: string; type: enums.Component; }; iconHasComponent: { component: string; type: enums.Component; }; radioWrong: { type: enums.Component; data: { field: string; dataType: string; items: { value: string; text: string; }[]; }; label: string; gridItem: { xl: number; }; }; checkboxWrong: { data: { field: string; dataType: string; }; type: enums.Component; }; tableWrong1: { type: enums.Component; columns: ({ component: string; align: string; sortable: boolean; width: string; tubek?: undefined; } | { component: string; align: string; sortable: boolean; width: string; tubek: number; })[]; }; tableWrong2: { type: enums.Component; columns: { component: string; align: string; sortable: boolean; width: string; }[]; }; tableWrongEmptyColumns: { type: enums.Component; columns: never[]; }; tableWrongWrongColumnsType: { type: enums.Component; columns: number[]; }; textCorrect: { type: enums.Component; label: string; data: { field: string; dataType: string; }; }; notInValues: { data: { field: string; }; label: string; type: enums.Component; }; notString: { data: { field: string; }; label: string; type: enums.Component; }; duplicateField: { data: { field: string; dataType: string; }; label: string; type: enums.Component; }; duplicateParents: { data: { field: string; }; label: string; type: enums.Component; }; fieldHasNoParent: { data: { field: string; }; label: string; type: enums.Component; }; cardEmpty: { type: enums.Component; children: never[]; }; cardWrongKeys: { type: enums.Component; children: string[]; }; cardHasTabAsChildren: { type: enums.Component; children: string[]; }; tabHere: { type: enums.Component; label: string; children: never[]; }; cardDuplicateParents1: { type: enums.Component; children: string[]; }; cardDuplicateParents2: { type: enums.Component; children: string[]; }; hasUselessProperty: { data: { field: string; }; label: string; type: enums.Component; uselessProperty: number; }; wrongArrayValueType: { data: { field: string; dataType: string; }; label: string; type: enums.Component; }; prefixStringOrArray: { type: enums.Component; label: string; prefix: number; data: { field: string; dataType: enums.DataType; }; }; suffixStringOrArray: { type: enums.Component; label: string; suffix: boolean; data: { field: string; dataType: enums.DataType; }; }; prefixCompNotFound: { type: enums.Component; label: string; prefix: string[]; data: { field: string; dataType: enums.DataType; }; }; suffixCompNotFound: { type: enums.Component; label: string; suffix: string[]; data: { field: string; dataType: enums.DataType; }; }; prefixCompNotFoundArray: { type: enums.Component; label: string; prefix: string[]; data: { field: string; dataType: enums.DataType; }; }; suffixCompNotFoundArray: { type: enums.Component; label: string; suffix: string[]; data: { field: string; dataType: enums.DataType; }; }; prefixCompNotFoundCorrect: { type: enums.Component; label: string; prefix: string[]; data: { field: string; dataType: enums.DataType; }; }; prefixInvalidType: { type: enums.Component; label: string; prefix: string[]; data: { field: string; dataType: enums.DataType; }; }; suffixInvalidType: { type: enums.Component; label: string; suffix: string[]; data: { field: string; dataType: enums.DataType; }; }; suffixPrefixInvalidType: { type: enums.Component; label: string; prefix: string[]; suffix: string[]; data: { field: string; dataType: enums.DataType; }; }; button1: { type: enums.Component; icon: string; }; button2: { type: enums.Component; icon: string; }; text4299: { type: enums.Component; data: { field: string; dataType: enums.DataType; }; label: string; }; maskOnlyInMaskInputComponent: { type: enums.Component; maskProps: { mask: (string | RegExp)[]; }; data: { field: string; dataType: enums.DataType; }; label: string; }; maskOnlyInInputTextComponent: { type: enums.Component; maskProps: { mask: (string | RegExp)[]; }; data: { field: string; dataType: enums.DataType; }; label: string; }; maskNotMultilineInput: { type: enums.Component; maskProps: { mask: (string | RegExp)[]; }; data: { field: string; dataType: enums.DataType; }; props: { multiline: boolean; }; label: string; }; maskArrayItemsStringOrRegExp: { type: enums.Component; maskProps: { mask: (string | number | RegExp)[]; }; data: { field: string; dataType: enums.DataType; }; label: string; }; maskArrayOrFunction1: { type: enums.Component; maskProps: { mask: { f: (string | RegExp)[]; }; }; data: { field: string; dataType: enums.DataType; }; label: string; }; maskArrayOrFunction2: { type: enums.Component; maskProps: { mask: number; }; data: { field: string; dataType: enums.DataType; }; label: string; }; maskArrayOrFunctionCorrect: { type: enums.Component; maskProps: { mask(_rawValue: string): (string | RegExp)[]; }; data: { field: string; dataType: enums.DataType; }; label: string; }; numberFormatwrongType: { type: enums.Component; numberFormatProps: {}; data: { field: string; dataType: enums.DataType; }; label: string; }; numberFormatNoProps: { type: enums.Component; data: { field: string; dataType: enums.DataType; }; label: string; }; numberFormatwrongDataType: { type: enums.Component; numberFormatProps: {}; data: { field: string; dataType: enums.DataType; }; label: string; }; numberFormatwrongFormat: { type: enums.Component; data: { field: string; dataType: enums.DataType; }; numberFormatProps: { format: boolean; }; label: string; }; numberFormatwrongMask: { type: enums.Component; data: { field: string; dataType: enums.DataType; }; numberFormatProps: { mask: boolean; }; label: string; }; gridSizeWrong: { type: enums.Component; text: string; gridItem: { xl: number; lg: string; md: boolean; sm: string; xs: number; }; }; gridSizeWrong2: { type: enums.Component; text: string; gridItem: { xl: boolean; lg: number; md: string; sm: number; xs: string; }; }; gridParentWrong1: { type: enums.Component; children: never[]; gridContainer: { alignContent: string; alignItems: string; direction: string; justify: string; spacing: number; wrap: string; }; }; gridParentWrong2: { type: enums.Component; children: never[]; gridContainer: { alignContent: string; alignItems: string; direction: string; justify: string; spacing: number; wrap: string; }; }; styleWrongType: { type: enums.Component; styles: number; }; stylesNotObject: { type: enums.Component; styles: { color: string; }; }; stylesAttrWrong: { type: enums.Component; styles: { label: { color: string; }; root: { button: { color: string; }; }; }; }; stylesCorrect: { type: enums.Component; styles: { label: { color: string; }; button: { color: string; }; }; }; textWrongTextType: { type: enums.Component; text: number; }; textWrongNoType: { type: enums.Component; }; textFuncAndText: { type: enums.Component; text(p: types.IComponentEventParams): string; }; textCorrectTextType: { type: enums.Component; text: string; }; textCorrectTextFunctionType: { type: enums.Component; text(p: types.IComponentEventParams): string; }; itemsSelectCorrectFunctionType: { type: enums.Component; data: { dataType: enums.DataType; items(): { value: string; text: string; }[]; }; }; labelWrongType: { type: enums.Component; label: number; }; labelStringOrFunc: { type: enums.Component; }; labelANdlabelFunc: { type: enums.Component; label: (p: types.IComponentEventParams) => string; }; labelANdlabelFuncBtn: { type: enums.Component; label: (p: types.IComponentEventParams) => string; }; hintAndHintFunc: { type: enums.Component; hint: (p: types.IComponentEventParams) => string; }; tooltipAndtooltipFunc: { type: enums.Component; tooltip: (p: types.IComponentEventParams) => string; }; labelCorrectFunctionType: { type: enums.Component; label(p: types.IComponentEventParams): string; tooltip: (p: types.IComponentEventParams) => string; hint: (p: types.IComponentEventParams) => string; placeholder: (p: types.IComponentEventParams) => string; }; speedDialNoActions: { type: enums.Component; }; speedDialActionsWrong: { type: enums.Component; actions: { icon: string; }; }; speedDialEmptyActions: { type: enums.Component; actions: never[]; }; speedDialActionsWrongInArray: { type: enums.Component; actions: (number | { icon: string; tooltip: string; onClick(): void; })[]; }; speedDialActionsWrongInArray2: { type: enums.Component; actions: (string | { icon: string; tooltip: string; onClick(): void; })[]; }; speedDialActionsWrongInArrayPropMissing: { type: enums.Component; actions: ({ icon: string; onClick(): void; tooltip?: undefined; } | { icon: string; tooltip: string; onClick(): void; })[]; }; speedDialActionsWrongInArrayPropMissing2: { type: enums.Component; actions: ({ icon: string; tooltip: string; onClick(): void; } | { icon: string; onClick(): void; tooltip?: undefined; })[]; }; speedDialActionsWrongInArrayPropMissing3: { type: enums.Component; actions: ({ icon: string; tooltip: string; onClick(): void; } | { tooltip: string; onClick(): void; icon?: undefined; })[]; }; speedDialActionsWrongInArrayPropMissing4: { type: enums.Component; actions: ({ icon: string; tooltip: string; onClick(): void; } | { icon: string; tooltip: string; })[]; }; speedDialActionsWrongInArrayPropWrong1: { type: enums.Component; actions: ({ icon: number; tooltip: string; onClick(): void; } | { icon: string; tooltip: string; onClick(): void; })[]; }; speedDialActionsWrongInArrayPropWrong2: { type: enums.Component; actions: ({ icon: string; tooltip: string; onClick(): void; } | { icon: string; tooltip: number; onClick(): void; })[]; }; speedDialActionsWrongInArrayPropWrong3: { type: enums.Component; actions: ({ icon: string; tooltip: string; onClick(): void; } | { icon: string; tooltip: string; onClick: number; })[]; }; speedDialActionsCorrect: { type: enums.Component; actions: { icon: string; tooltip: string; onClick(): void; }[]; }; }; }; export declare const schemaWithSubSchema: { name: string; values: { name: string; }; components: { root: { type: enums.Component; children: string[]; }; name: { data: { field: string; dataType: string; }; type: enums.Component; label: string; }; sub: { data: { field: string; }; type: enums.Component; schemaName: string; }; subError: { data: { field: string; }; type: enums.Component; schemaName: string; }; invalidsubSchema: { data: { field: string; }; type: enums.Component; schemaName: string; }; }; }; export declare const schemaWithSubSchema1: { name: string; values: { name: string; sub: { email: string; noField: number; thisnoFieldToo: string; }; }; components: { root: { type: enums.Component; children: string[]; }; name: { data: { field: string; dataType: string; }; type: enums.Component; label: string; }; subError: { data: { field: string; dataType: enums.DataType; }; columnSettings: ({ compId: string; autowidth?: undefined; width?: undefined; } | { compId: string; autowidth: boolean; width: string; })[]; type: enums.Component; schemaName: string; }; sub: { data: { field: string; dataType: string; }; type: enums.Component; schemaName: string; }; }; }; export declare const schemaToFix: { components: { name: {}; vorname: { data: { dataType: string; }; }; strasse: { type: string; gridItem: { xl: number; }; }; }; }; export declare const schemaCorrectType: { name: string; label: string; validationMethod: number; values: { sub: { email: string; }; }; components: { root: { type: enums.Component; children: string[]; }; card: { type: enums.Component; children: string[]; }; table: { type: enums.Component; columns: { component: string; align: string; sortable: boolean; width: string; }[]; }; name: { type: enums.Component; data: { field: string; dataType: string; default: string; validations: { required: boolean; }; }; label: string; hint: string; props: { placeholder: string; }; gridItem: { xl: number; }; }; vorname: { type: enums.Component; data: { field: string; dataType: string; validations: { required: boolean; }; }; label: string; props: { placeholder: string; }; tooltip: string; gridItem: { xl: number; }; }; zahl: { type: enums.Component; data: { field: string; dataType: string; }; label: string; hint: string; gridItem: { xl: number; }; }; select1: { type: enums.Component; data: { field: string; dataType: string; items: { value: string; text: string; }[]; default(): string; }; label: string; hint: string; gridItem: { xl: number; }; }; select2: { type: enums.Component; data: { field: string; dataType: string; default: number; items: { value: number; text: string; }[]; }; label: string; props: { placeholder: string; }; gridItem: { xl: number; }; }; integer: { type: enums.Component; data: { field: string; dataType: string; default: number; }; label: string; gridItem: { xl: number; }; }; radiogroup: { type: enums.Component; data: { field: string; dataType: string; items: { value: string; text: string; }[]; }; label: string; gridItem: { xl: number; }; }; pnexp1: { type: enums.Component; label: string; children: string[]; }; pnexp2: { type: enums.Component; label: string; children: string[]; }; exp1: { type: enums.Component; data: { field: string; dataType: string; }; label: string; props: { placeholder: string; }; gridItem: { xl: number; }; }; exp2: { type: enums.Component; data: { field: string; dataType: string; }; label: string; gridItem: { xl: number; }; }; tab1: { type: enums.Component; label: string; tabs: string[]; }; pntab1: { type: enums.Component; label: string; children: string[]; }; pntab2: { type: enums.Component; label: string; children: string[]; }; pntab3: { type: enums.Component; label: string; children: string[]; }; pntab4: { type: enums.Component; label: string; children: string[]; }; check: { type: enums.Component; data: { field: string; dataType: string; default: boolean; validations: { required: boolean; }; }; label: string; }; validateRequired1: { type: enums.Component; data: { field: string; dataType: string; validations: { required: boolean; }; }; label: string; gridItem: { xl: number; }; }; validateRequired2: { type: enums.Component; data: { field: string; dataType: string; validations: { required: boolean; }; }; label: string; gridItem: { xl: number; }; }; validateAllowedValues: { type: enums.Component; data: { field: string; dataType: string; validations: { allowedValues: string[]; }; }; label: string; gridItem: { xl: number; }; }; validateWithFunction: { type: enums.Component; data: { field: string; dataType: string; validations: { validate(p: any): "Du Tubel" | undefined; }; }; label: string; gridItem: { xl: number; }; }; validateWMinMaxNumber: { type: enums.Component; data: { field: string; dataType: string; validations: { min: number; max: number; }; }; label: string; gridItem: { xl: number; }; }; validateWMinMaxString: { type: enums.Component; data: { field: string; dataType: string; validations: { min: number; max: number; }; }; label: string; gridItem: { xl: number; }; }; validateRegexAlphaNoLeadingNumbers: { type: enums.Component; data: { field: string; dataType: string; validations: { regex: RegExp; }; }; label: string; }; modifier1: { type: enums.Component; data: { field: string; dataType: string; modifiers: { trim: boolean; toUpperCase: boolean; }; }; label: string; gridItem: { xl: number; }; }; modifier2: { type: enums.Component; data: { field: string; dataType: string; modifiers: { toLowerCase: boolean; capitalize: boolean; }; }; label: string; }; tab1feld: { type: enums.Component; data: { field: string; dataType: string; }; label: string; }; tab2feld: { type: enums.Component; data: { field: string; dataType: string; }; label: string; }; nameIsrOtherKeyThanField: { type: enums.Component; data: { field: string; dataType: string; }; label: string; }; age: { type: enums.Component; data: { field: string; dataType: string; }; label: string; }; selectItemsStringArray: { type: enums.Component; data: { field: string; dataType: string; items: string[]; }; label: string; }; rgItemsStringArray: { type: enums.Component; data: { field: string; dataType: string; items: string[]; }; label: string; }; sub: { data: { field: string; dataType: string; }; type: enums.Component; schemaName: string; }; duplicateSub: { data: { field: string; dataType: string; }; type: enums.Component; schemaName: string; }; sub_with_sub: { data: { field: string; dataType: string; }; type: enums.Component; schemaName: string; }; }; };