@grafana/ui
Version:
Grafana Components Library
27 lines (26 loc) • 1.01 kB
TypeScript
import { DataFrame } from '@grafana/data';
import { FieldMatcherUIRegistryItem } from './types';
export interface Props {
value?: string;
data: DataFrame[];
onChange: (value: string) => void;
placeholder?: string;
id?: string;
}
export declare function RefIDPicker({ value, data, onChange, placeholder, id }: Props): import("react/jsx-runtime").JSX.Element;
export interface MultiProps {
value?: string;
data: DataFrame[];
onChange: (value: string[]) => void;
placeholder?: string;
id?: string;
}
export declare function RefIDMultiPicker({ value, data, onChange, placeholder, id }: MultiProps): import("react/jsx-runtime").JSX.Element;
/**
* Registry item for UI to configure "fields by frame refId"-matcher.
*/
export declare const getFieldsByFrameRefIdItem: () => FieldMatcherUIRegistryItem<string>;
/** @internal */
export declare const regexpToStrings: (regexp: string) => string[];
/** @internal */
export declare const stringsToRegexp: (strings: string[]) => string;