V13-FE-011: finalize search list layout slice
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import type { KbxLookupDefinition } from './lookup'
|
||||
|
||||
export type KbxSearchFieldType = 'text' | 'date' | 'date-range' | 'select' | 'lookup' | 'checkbox'
|
||||
|
||||
export interface KbxSearchOption {
|
||||
value: string
|
||||
label: string
|
||||
}
|
||||
|
||||
export interface KbxSearchField {
|
||||
key: string
|
||||
label: string
|
||||
type: KbxSearchFieldType
|
||||
primary?: boolean
|
||||
width?: 'sm' | 'md' | 'lg'
|
||||
options?: KbxSearchOption[]
|
||||
lookup?: KbxLookupDefinition
|
||||
range?: { from: string; to: string }
|
||||
placeholder?: string
|
||||
defaultValue?: unknown
|
||||
disabled?: boolean
|
||||
helpText?: string
|
||||
}
|
||||
Reference in New Issue
Block a user