Variables
Const JsonFormsStyleContext
Json
FormsStyleContext: Context<StyleContext> = React.createContext(defaultContext)
Const REGISTER_STYLE
REGISTER_STYLE: "REGISTER_STYLE" = "REGISTER_STYLE"
Const REGISTER_STYLES
REGISTER_STYLES: "REGISTER_STYLES" = "REGISTER_STYLES"
Const UNREGISTER_STYLE
UNREGISTER_STYLE: "UNREGISTER_STYLE" = "UNREGISTER_STYLE"
Const arrayControlTester
arrayControlTester: RankedTester = rankWith(2,isObjectArrayWithNesting)
Const booleanCellTester
booleanCellTester: RankedTester = rankWith(2, isBooleanControl)
Const categorizationTester
categorizationTester: RankedTester = rankWith(1,and(uiTypeIs('Categorization'), uischema => {const hasCategory = (element: Categorization): boolean => {if (isEmpty(element.elements)) {return false;}return element.elements.map(elem =>isCategorization(elem) ? hasCategory(elem) : elem.type === 'Category').reduce((prev, curr) => prev && curr, true);};return hasCategory(uischema as Categorization);}))
convertToValidClassName
convertToValidClassName: convertToValidClassName
createLabelDescriptionFrom
createLabelDescriptionFrom: createLabelDescriptionFrom
Const dateCellTester
dateCellTester: RankedTester = rankWith(2, isDateControl)
Const dateTimeCellTester
dateTimeCellTester: RankedTester = rankWith(2, isDateTimeControl)
Const enumCellTester
enumCellTester: RankedTester = rankWith(2, isEnumControl)
Const groupTester
groupTester: RankedTester = rankWith(1, uiTypeIs('Group'))
Const horizontalLayoutTester
horizontalLayoutTester: RankedTester = rankWith(1, uiTypeIs('HorizontalLayout'))
Const inputControlTester
inputControlTester: RankedTester = rankWith(1, isControl)
Const integerCellTester
integerCellTester: RankedTester = rankWith(2, isIntegerControl)
isObjectArrayControl
isObjectArrayControl: function
Type declaration
-
- (uischema: UISchemaElement, schema: JsonSchema): boolean
-
Parameters
-
uischema: UISchemaElement
-
schema: JsonSchema
Returns boolean
isPrimitiveArrayControl
isPrimitiveArrayControl: function
Type declaration
-
- (uischema: UISchemaElement, schema: JsonSchema): boolean
-
Parameters
-
uischema: UISchemaElement
-
schema: JsonSchema
Returns boolean
Const labelRendererTester
labelRendererTester: RankedTester = rankWith(1, uiTypeIs('Label'))
Const numberCellTester
numberCellTester: RankedTester = rankWith(2, isNumberControl)
Const numberFormatCellTester
numberFormatCellTester: RankedTester = rankWith(4, isNumberFormatControl)
or
or: function
Type declaration
-
- (...testers: Tester[]): Tester
-
Parameters
-
Rest ...testers: Tester[]
Returns Tester
rankWith
rankWith: function
Type declaration
-
- (rank: number, tester: Tester): function
-
Parameters
-
rank: number
-
tester: Tester
Returns function
-
- (uischema: UISchemaElement, schema: JsonSchema): number
-
Parameters
-
uischema: UISchemaElement
-
schema: JsonSchema
Returns number
Const sliderCellTester
sliderCellTester: RankedTester = rankWith(4, isRangeControl)
Const tableArrayControlTester
tableArrayControlTester: RankedTester = rankWith(3,or(isObjectArrayControl, isPrimitiveArrayControl))
Const textAreaCellTester
textAreaCellTester: RankedTester = rankWith(2, isMultiLineControl)
Const textCellTester
textCellTester: RankedTester = rankWith(1, isStringControl)
Const timeCellTester
timeCellTester: RankedTester = rankWith(2, isTimeControl)
Const vanillaCells
vanillaCells: object[] = [{ tester: booleanCellTester, cell: BooleanCell },{ tester: dateCellTester, cell: DateCell },{ tester: dateTimeCellTester, cell: DateTimeCell },{ tester: enumCellTester, cell: EnumCell },{ tester: integerCellTester, cell: IntegerCell },{ tester: numberCellTester, cell: NumberCell },{ tester: sliderCellTester, cell: SliderCell },{ tester: textAreaCellTester, cell: TextAreaCell },{ tester: textCellTester, cell: TextCell },{ tester: timeCellTester, cell: TimeCell }]
Const vanillaRenderers
vanillaRenderers: object[] = [{ tester: inputControlTester, renderer: InputControl },{ tester: arrayControlTester, renderer: ArrayControl },{ tester: labelRendererTester, renderer: LabelRenderer },{ tester: categorizationTester, renderer: Categorization },{ tester: tableArrayControlTester, renderer: TableArrayControl },{ tester: groupTester, renderer: GroupLayout },{ tester: verticalLayoutTester, renderer: VerticalLayout },{ tester: horizontalLayoutTester, renderer: HorizontalLayout }]
Const vanillaStyles
vanilla
Styles: StyleDef[] = [{name: 'control',classNames: ['control']},{name: 'control.trim',classNames: ['trim']},{name: 'control.input',classNames: ['input']},{name: 'control.select',classNames: ['select']},{name: 'control.validation.error',classNames: ['validation_error']},{name: 'control.validation',classNames: ['validation']},{name: 'categorization',classNames: ['categorization']},{name: 'categorization.master',classNames: ['categorization-master']},{name: 'categorization.detail',classNames: ['categorization-detail']},{name: 'category.group',classNames: ['category-group']},{name: 'array.layout',classNames: ['array-layout']},{name: 'array.children',classNames: ['children']},{name: 'group.layout',classNames: ['group-layout']},{name: 'horizontal.layout',classNames: ['horizontal-layout']},{name: 'horizontal.layout.item',classNames: ([size]: number[]) => [`horizontal-layout-${size}`]},{name: 'vertical.layout',classNames: ['vertical-layout']},{name: 'array.table.validation.error',classNames: ['validation_error']},{name: 'array.table.validation',classNames: ['validation']},{name: 'array.table',classNames: ['array-table-layout', 'control']},{name: 'input.description',classNames: ['input-description']}]
Const verticalLayoutTester
verticalLayoutTester: RankedTester = rankWith(1, uiTypeIs('VerticalLayout'))
Const withVanillaCellProps
withVanillaCellProps: (Anonymous function) = withVanillaCellPropsForType('control.input')
Const withVanillaEnumCellProps
withVanillaEnumCellProps: (Anonymous function) = withVanillaCellPropsForType('control.select')
Default tester for boolean controls.
{RankedTester}