import * as React from "react"; import { EControlProps, LtmplConfig, PageInfo } from "../../tmpl/interface"; import "./index.css"; import { LocaleContext } from "../../locale/LocaleProvider"; interface InnerEntitySelectProps extends EControlProps { maxSelected?: number; onEntityClick?: (code: string) => void; baseCriteria: object; valueOnly?: boolean; } interface InnerEntitySelectState { titleId?: string; optionCacheKey?: string; pageNo?: number; loading?: boolean; initLoading?: boolean; optionsCache?: object; codeLabel?: object; ltmplConfig?: LtmplConfig; showView?: boolean; drawCode?: string; showEdit?: boolean; showTable?: boolean; preMainCode?: string; selectOpen?: boolean; useSelectOpenStat?: boolean; isDoingSomething?: boolean; } type LoadDataSource = { options?: any[]; touchEnd?: boolean; }; export default class EntitySelect extends React.PureComponent { static defaultProps: { maxSelected: number; valueOnly: boolean; }; state: { titleId: any; optionCacheKey: any; pageNo: number; loading: boolean; initLoading: boolean; optionsCache: {}; codeLabel: {}; ltmplConfig: any; showView: boolean; showEdit: boolean; showTable: boolean; drawCode: any; preMainCode: any; selectOpen: boolean; isDoingSomething: boolean; useSelectOpenStat: boolean; }; static contextType: React.Context<{ locale: import("../../locale/langMp").LocaleType; langPkg: any; availableLang: string[]; changeLocale: (locale: import("../../locale/langMp").LocaleType) => void; siderCollapsed: boolean; changeSiderCollapsed: () => void; t: (...strs: string[]) => string; translate: (...strs: string[]) => string; getServiceLangStr?: () => string; compactTheme?: boolean; changeCompactTheme?: () => void; screenfull?: boolean; changeScreenfull?: () => void; }>; context: React.ContextType; selectRef: React.RefObject<{ focus: () => any; blur: () => any; scrollTo: any; nativeElement: any; }>; dropdownRender: (menu: any) => React.JSX.Element; editItem: (code?: any) => Promise; showTable: () => Promise; loadLtmplConfig: () => Promise; showItem: (code: any) => Promise; componentDidMount(): void; componentDidUpdate(prevProps: any): void; initCache: () => void; toOption: (code: string, title: string, onEntityClick: any) => { value: string; label: React.JSX.Element; }; doClose: () => void; drawSubmited: (code?: string, isContinueSave?: boolean) => void; closeTable: () => void; toValueArray: (value: any) => any[]; toArray: (value: any) => string[]; toOptions: (value: any, onEntityClick: any) => object[]; fetchNextPage: () => Promise; fetchOptions: (searchText: string, isInit?: boolean) => Promise; onChange: (values: any[]) => void; tagRender: (props: any) => React.JSX.Element; loadData: (queryKey: string, pageInfo: PageInfo, titleId: string) => Promise; debounceFetcher: import("lodash").DebouncedFunc<(searchText: string, isInit?: boolean) => Promise>; debounceFetchNextPage: () => void; render(): React.JSX.Element; } export {}; //# sourceMappingURL=entity-select.d.ts.map