import { EnumCellProps, EnumOption, WithClassname } from "@jsonforms/core"; import { AutocompleteRenderOptionState, FilterOptionsState, InputProps } from "@mui/material"; import { HTMLAttributes, ReactNode } from "react"; import { CustomControlProps } from "../util"; export interface BaseCheckBoxOptionsProps { name: string | undefined; label: ReactNode; } export interface CustomSelectProps { isSelectOpen?(_e: any, t: boolean): boolean; getSelected?(_e: any): void; getChange?(_e: any): void; getClick?(_e: any): void; handleReset?(_e: any): void; selected?: any; label?: string; selectedOption?: any; getChoices?(e: any): void; getOption?(opt: any, data: any): void; valueProperty?: string | undefined; property?: string | undefined; } export interface WithOptionLabel { getOptionLabel?(option: EnumOption): string; renderOption?(props: HTMLAttributes, option: EnumOption, state: AutocompleteRenderOptionState): ReactNode; filterOptions?(options: EnumOption[], state: FilterOptionsState): EnumOption[]; } export interface WithInput { input: any; } export interface MuiCheckboxInputProps { inputProps?: InputProps['inputProps']; } export interface EnumProps extends CustomControlProps, EnumCellProps, WithClassname, CustomSelectProps { }