Extra types

This commit is contained in:
Adria Navarro 2025-03-17 16:11:27 +01:00
parent 31cdf7eaaa
commit 0ff95bcf27
2 changed files with 7 additions and 7 deletions

View File

@ -14,11 +14,11 @@
// Not exposed as a builder setting. Used internally to disable validation
// 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
// auto columns.
export let editAutoColumns = false
export let editAutoColumns: boolean = false
const context = getContext("context")
const component = getContext("component")

View File

@ -47,7 +47,7 @@
// For internal use only, to disable context when being used with standalone
// 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
// persist what step we're on
@ -195,11 +195,11 @@
registerField: (
field: string,
type: FieldType,
defaultValue = null,
fieldDisabled = false,
fieldReadOnly = false,
defaultValue: string | null = null,
fieldDisabled: boolean = false,
fieldReadOnly: boolean = false,
validationRules: UIFieldValidationRule[],
step = 1
step: number = 1
) => {
if (!field) {
return