UNPKG

@nova-ui/dashboards

Version:

Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and

39 lines (38 loc) 1.83 kB
import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core"; import moment from "moment/moment"; import { EventBus, IEvent, IEventDefinition } from "@nova-ui/bits"; import { TimeseriesZoomPlugin, TimeseriesZoomPluginsSyncService, ITimeseriesZoomPluginInspectionFrame } from "@nova-ui/charts"; export declare const TIMESERIES_INSPECTION_MENU_ZOOM_IN: IEventDefinition<IEvent<ITimeseriesZoomPluginInspectionFrame>>; export declare const TIMESERIES_INSPECTION_MENU_ZOOM_OUT: IEventDefinition<IEvent<ITimeseriesZoomPluginInspectionFrame>>; export declare const TIMESERIES_INSPECTION_MENU_EXPLORE: IEventDefinition<IEvent<ITimeseriesZoomPluginExploreData>>; export declare const TIMESERIES_INSPECTION_MENU_CLOSE: IEventDefinition<IEvent<void>>; export declare const TIMESERIES_INSPECTION_MENU_SYNCHRONIZE: IEventDefinition<IEvent<void>>; export declare const TIMESERIES_INSPECTION_MENU_CLEAR: IEventDefinition<IEvent<void>>; export interface ITimeseriesZoomPluginExploreData { ids: string; startDate: moment.Moment; endDate: moment.Moment; openSidePanel: boolean; exploringEnabled: boolean; } export declare class TimeseriesInspectionMenuComponent implements OnInit, OnChanges, OnDestroy { element: ElementRef; private eventBus; private syncService; plugin: TimeseriesZoomPlugin; exploringEnabled: boolean; metricIds?: string; collectionId?: string; allowed?: boolean; private offset; private destroy$; constructor(element: ElementRef, eventBus: EventBus<IEvent>, syncService: TimeseriesZoomPluginsSyncService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; clearZoom(): void; isZoomInAllowed(): boolean; zoomIn(): void; zoomOut(): void; explore(openSidePanel?: boolean): void; }