AppEvents: export appEvents in @grafana/runtime and support copy panel (#40715)

This commit is contained in:
Ryan McKinley
2021-10-20 13:01:21 -07:00
committed by GitHub
parent b60ae7ebed
commit ad69de4a10
18 changed files with 85 additions and 39 deletions

View File

@@ -1,11 +1,4 @@
import {
AnnotationQuery,
BusEventBase,
BusEventWithPayload,
eventFactory,
GrafanaTheme2,
TimeRange,
} from '@grafana/data';
import { AnnotationQuery, BusEventBase, BusEventWithPayload, eventFactory } from '@grafana/data';
import { IconName } from '@grafana/ui';
/**
@@ -132,10 +125,6 @@ export class DashboardPanelsChangedEvent extends BusEventBase {
static type = 'dashboard-panels-changed';
}
export class RefreshEvent extends BusEventBase {
static type = 'refresh';
}
export class PanelDirectiveReadyEvent extends BusEventBase {
static type = 'panel-directive-ready';
}
@@ -144,10 +133,6 @@ export class RenderEvent extends BusEventBase {
static type = 'render';
}
export class ThemeChangedEvent extends BusEventWithPayload<GrafanaTheme2> {
static type = 'theme-changed';
}
export class ZoomOutEvent extends BusEventWithPayload<number> {
static type = 'zoom-out';
}
@@ -198,10 +183,6 @@ export class AnnotationQueryFinished extends BusEventWithPayload<AnnotationQuery
static type = 'annotation-query-finished';
}
export class TimeRangeUpdatedEvent extends BusEventWithPayload<TimeRange> {
static type = 'time-range-updated';
}
export class PanelEditEnteredEvent extends BusEventWithPayload<number> {
static type = 'panel-edit-started';
}