UNPKG

react-filter-box

Version:

Conditional filter supports OR/AND, bracket, Highlighting, Autocomplete, and high extensibility

15 lines (14 loc) 707 B
import * as PEG from "pegjs"; import { ExtendedParser } from "./FilterQueryParser"; import { HintInfo } from "./models/ExtendedCodeMirror"; import ParseTrace from "./ParseTrace"; export default class BaseAutoCompleteHandler { quote(text: string): string; buildDefaultObjOrGetOriginal(value: string | Object, type: string): HintInfo; handleParseError(parser: ExtendedParser, parseTrace: ParseTrace, error: PEG.PegjsError): HintInfo[]; hasCategory(category: string): boolean; hasOperator(category: string, operator: string): boolean; needCategories(): string[]; needOperators(lastOperator: string): string[]; needValues(lastCategory: string, lastOperator: string): string[]; }