import { ReactNode } from 'react'; import { TyTopSubmenuProps } from '../TyTopSubmenu/type'; import { ButtonProps, InputProps, SelectProps } from 'antd'; import { TyTableProps } from '../TyTable/type'; export interface ISearchValue { [propName: string]: string | number | [string, string] | object | string[]; } export declare enum SearchTypeEnum { 'Input' = "input", 'Select' = "select", 'Button' = "button", 'BtnSubmit' = "btnSubmit" } export type ISearchFields = { widgetType: SearchTypeEnum; fieldName: string; fieldLabel?: string; width?: number | string; [key: string]: any; } & InputProps & SelectProps & ButtonProps; export type TyPageContainerProps = { title?: string | ReactNode | JSX.Element; toolbar?: ReactNode | JSX.Element; children?: ReactNode | JSX.Element; topHeaderRender?: TyTopSubmenuProps | ReactNode; leftSideRender?: ReactNode; leftSideWidth?: number; leftSideStyle?: React.CSSProperties; leftSideMark?: boolean; tableProps?: TyTableProps; pageStyle?: React.CSSProperties; contentStyle?: React.CSSProperties; contentHeaderStyle?: React.CSSProperties; contentBodyStyle?: React.CSSProperties; searchValues?: ISearchValue; searchFields?: ISearchFields[] | ReactNode; onSearchChange?: (arg: ISearchValue) => void; onSearchSubmit?: (arg: ISearchValue) => void; [key: string]: any; }; export type TyWidgetProps = ISearchFields & { searchValues: ISearchValue; onSearchChange?: (arg: ISearchValue) => void; onSearchSubmit?: (arg: ISearchValue) => void; };