Extra types
This commit is contained in:
parent
31cdf7eaaa
commit
0ff95bcf27
|
@ -14,11 +14,11 @@
|
||||||
|
|
||||||
// Not exposed as a builder setting. Used internally to disable validation
|
// Not exposed as a builder setting. Used internally to disable validation
|
||||||
// for fields rendered in things like search blocks.
|
// for fields rendered in things like search blocks.
|
||||||
export let disableSchemaValidation = false
|
export let disableSchemaValidation: boolean = false
|
||||||
|
|
||||||
// Not exposed as a builder setting. Used internally to allow searching on
|
// Not exposed as a builder setting. Used internally to allow searching on
|
||||||
// auto columns.
|
// auto columns.
|
||||||
export let editAutoColumns = false
|
export let editAutoColumns: boolean = false
|
||||||
|
|
||||||
const context = getContext("context")
|
const context = getContext("context")
|
||||||
const component = getContext("component")
|
const component = getContext("component")
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
// For internal use only, to disable context when being used with standalone
|
// For internal use only, to disable context when being used with standalone
|
||||||
// fields
|
// fields
|
||||||
export let provideContext = true
|
export let provideContext: boolean = true
|
||||||
|
|
||||||
// We export this store so that when we remount the inner form we can still
|
// We export this store so that when we remount the inner form we can still
|
||||||
// persist what step we're on
|
// persist what step we're on
|
||||||
|
@ -195,11 +195,11 @@
|
||||||
registerField: (
|
registerField: (
|
||||||
field: string,
|
field: string,
|
||||||
type: FieldType,
|
type: FieldType,
|
||||||
defaultValue = null,
|
defaultValue: string | null = null,
|
||||||
fieldDisabled = false,
|
fieldDisabled: boolean = false,
|
||||||
fieldReadOnly = false,
|
fieldReadOnly: boolean = false,
|
||||||
validationRules: UIFieldValidationRule[],
|
validationRules: UIFieldValidationRule[],
|
||||||
step = 1
|
step: number = 1
|
||||||
) => {
|
) => {
|
||||||
if (!field) {
|
if (!field) {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue