frontend/.pnpm-store/v3/files/2b/68bb6ef66cdb18529eb37fbb66e761b7461837064f6e94f2a1d565b1762fddd2d0d0d530b9daea8f7ad417bc2c3c66071538e7dd0bfa6cdd44ab0928b76cb3

30 lines
886 B
Plaintext

import { h } from 'preact';
import { TCell } from '../../../types';
import { PluginBaseComponent, PluginBaseProps } from '../../../plugin';
export interface SearchConfig {
keyword?: string;
enabled?: boolean;
debounceTimeout?: number;
selector?: (cell: TCell, rowIndex: number, cellIndex: number) => string;
server?: {
url?: (prevUrl: string, keyword: string) => string;
body?: (prevBody: BodyInit, keyword: string) => BodyInit;
};
}
export declare class Search extends PluginBaseComponent<
SearchConfig & PluginBaseProps<Search>
> {
private readonly searchProcessor;
private readonly actions;
private readonly store;
private readonly storeUpdatedFn;
static defaultProps: {
debounceTimeout: number;
};
constructor(props: any, context: any);
componentWillUnmount(): void;
private storeUpdated;
private onChange;
render(): h.JSX.Element;
}