mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: move PanelPluginMeta to grafana/ui (#16804)
This commit is contained in:
@@ -2,9 +2,28 @@ import { ComponentClass, ComponentType } from 'react';
|
||||
import { LoadingState, SeriesData } from './data';
|
||||
import { TimeRange } from './time';
|
||||
import { ScopedVars, DataQueryRequest, DataQueryError, LegacyResponseData } from './datasource';
|
||||
import { PluginMeta } from './plugin';
|
||||
|
||||
export type InterpolateFunction = (value: string, scopedVars?: ScopedVars, format?: string | Function) => string;
|
||||
|
||||
export interface PanelPluginMeta extends PluginMeta {
|
||||
hideFromList?: boolean;
|
||||
sort: number;
|
||||
angularPlugin: AngularPanelPlugin | null;
|
||||
vizPlugin: PanelPlugin | null;
|
||||
hasBeenImported?: boolean;
|
||||
|
||||
// if length>0 the query tab will show up
|
||||
// Before 6.2 this could be table and/or series, but 6.2+ supports both transparently
|
||||
// so it will be deprecated soon
|
||||
dataFormats?: PanelDataFormat[];
|
||||
}
|
||||
|
||||
export enum PanelDataFormat {
|
||||
Table = 'table',
|
||||
TimeSeries = 'time_series',
|
||||
}
|
||||
|
||||
export interface PanelData {
|
||||
state: LoadingState;
|
||||
series: SeriesData[];
|
||||
|
||||
Reference in New Issue
Block a user