ze-react-component-library
Version:
ZeroETP React Component Library
28 lines (27 loc) • 937 B
TypeScript
import type { LogicformType, PropertyType } from "zeroetp-api-sdk";
import { HTMLAttributes } from "react";
export declare type LogicformVisualizerDisplayProp = {
schema?: boolean;
preds?: boolean;
query?: boolean;
groupby?: boolean;
sort?: boolean;
};
export interface ZELogicformVisualizerProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
logicform: LogicformType;
display?: LogicformVisualizerDisplayProp;
getProperty?: (queryKey: string) => (PropertyType | undefined);
mode?: "compact" | "normal" | "verbose";
filters?: {
[key: string]: {
support_all?: boolean;
distincts?: string[];
show?: boolean;
};
};
onQueryChange?: (query: any) => void;
onChange?: (logicform: Partial<LogicformType>) => void;
onChangeWord?: (word: any, subsitute: any) => void;
badgeColor?: string;
showQueryFilter?: boolean;
}