/** * @file table/HeadCellFilter * @author fex */ /// import React from 'react'; import { ThemeProps, ClassNamesFn, LocaleProps } from 'amis-core'; import { FilterPayload } from './HeadCellDropDown'; export interface Props extends ThemeProps, LocaleProps { column: any; onFilter?: Function; filteredValue?: Array; filterMultiple?: boolean; popOverContainer?: () => HTMLElement; classnames: ClassNamesFn; classPrefix: string; } export interface OptionProps { text: string; value: string; selected?: boolean; children?: Array; } export interface State { options: Array; filteredValue: Array; } export declare class HeadCellFilter extends React.PureComponent { static defaultProps: { filteredValue: never[]; filterMultiple: boolean; }; constructor(props: Props); alterOptions(options: Array): any[]; componentDidMount(): void; componentDidUpdate(prevProps: Props, prevState: State): void; render(): React.JSX.Element; handleClick(confirm: (payload?: FilterPayload) => void, setSelectedKeys?: (keys?: string | Array) => void, selectedKeys?: Array): Promise; handleCheck(confirm: (payload?: FilterPayload) => void, setSelectedKeys?: (keys: string | Array) => void | undefined, selectedKeys?: Array): void; handleConfirmClick(confirm: (payload?: FilterPayload) => void): void; handleCancelClick(confirm: (payload?: FilterPayload) => void, setSelectedKeys?: (keys: string | Array) => void | undefined): void; } declare const _default: { new (props: Omit, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): { ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): React.JSX.Element; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType<{ new (props: Pick, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): React.JSX.Element; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof HeadCellFilter; }>; } & import("hoist-non-react-statics").NonReactStatics<{ new (props: Pick, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): React.JSX.Element; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof HeadCellFilter; }, {}> & { ComposedComponent: { new (props: Pick, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): React.JSX.Element; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "popOverContainer" | "onFilter" | "column"> & { filterMultiple?: boolean | undefined; filteredValue?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof HeadCellFilter; }; }; export default _default;