mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AppEvents: export appEvents in @grafana/runtime and support copy panel (#40715)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user