|
|
|
@ -102,9 +102,6 @@ export interface PanelProps<T = any> { |
|
|
|
|
/** @internal */ |
|
|
|
|
renderCounter: number; |
|
|
|
|
|
|
|
|
|
/** Panel title */ |
|
|
|
|
title: string; |
|
|
|
|
|
|
|
|
|
/** Grafana EventBus */ |
|
|
|
|
eventBus: EventBus; |
|
|
|
|
|
|
|
|
@ -154,13 +151,13 @@ export type PanelTypeChangedHandler<TOptions = any> = ( |
|
|
|
|
|
|
|
|
|
export type PanelOptionEditorsRegistry = Registry<PanelOptionsEditorItem>; |
|
|
|
|
|
|
|
|
|
export interface PanelOptionsEditorProps<TValue> extends StandardEditorProps<TValue> {} |
|
|
|
|
export interface PanelOptionsEditorProps<TValue> extends StandardEditorProps<TValue> { } |
|
|
|
|
|
|
|
|
|
export interface PanelOptionsEditorItem<TOptions = any, TValue = any, TSettings = any> |
|
|
|
|
extends OptionsEditorItem<TOptions, TSettings, PanelOptionsEditorProps<TValue>, TValue> {} |
|
|
|
|
extends OptionsEditorItem<TOptions, TSettings, PanelOptionsEditorProps<TValue>, TValue> { } |
|
|
|
|
|
|
|
|
|
export interface PanelOptionsEditorConfig<TOptions, TSettings = any, TValue = any> |
|
|
|
|
extends OptionEditorConfig<TOptions, TSettings, TValue> {} |
|
|
|
|
extends OptionEditorConfig<TOptions, TSettings, TValue> { } |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @internal |
|
|
|
@ -358,7 +355,7 @@ export class VisualizationSuggestionsListAppender<TOptions, TFieldConfig> { |
|
|
|
|
constructor( |
|
|
|
|
private list: VisualizationSuggestion[], |
|
|
|
|
private defaults: VisualizationSuggestion<TOptions, TFieldConfig> |
|
|
|
|
) {} |
|
|
|
|
) { } |
|
|
|
|
|
|
|
|
|
append(overrides: Partial<VisualizationSuggestion<TOptions, TFieldConfig>>) { |
|
|
|
|
this.list.push(defaultsDeep(overrides, this.defaults)); |
|
|
|
|