@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
38 lines (37 loc) • 1.8 kB
TypeScript
import { KeyValue } from "@angular/common";
import { AfterViewInit, EventEmitter, OnChanges, QueryList, SimpleChanges } from "@angular/core";
import { GridsterComponent, GridsterConfig, GridsterItemComponent } from "angular-gridster2";
import { EventBus } from "@nova-ui/bits";
import { IDashboard, IDashboardBelowFoldLazyLoadingConfig } from "./types";
import { IWidgetEvent } from "../../services/widget-to-dashboard-event-proxy.service";
import { IWidget } from "../widget/types";
export declare class DashboardComponent implements OnChanges, AfterViewInit {
readonly eventBus: EventBus<IWidgetEvent>;
gridsterConfig: GridsterConfig;
get dashboard(): IDashboard;
set dashboard(value: IDashboard);
private _dashboard;
dashboardBuffer: IDashboard | null;
editMode: boolean;
belowFoldLazyLoadingConfig: IDashboardBelowFoldLazyLoadingConfig;
gridsterConfigChange: EventEmitter<GridsterConfig>;
dashboardChange: EventEmitter<IDashboard>;
get hostClass(): boolean;
gridster: GridsterComponent;
gridsterItems: QueryList<GridsterItemComponent>;
gridsterItemsVisibilityMap: Record<string, boolean>;
constructor(eventBus: EventBus<IWidgetEvent>);
ngAfterViewInit(): void;
onGridsterScroll(): void;
ngOnChanges(changes: SimpleChanges): void;
orderWidgets: (a: KeyValue<string, IWidget>, b: KeyValue<string, IWidget>) => number;
trackByFn: (index: number, item: KeyValue<string, IWidget>) => string;
onWidgetChange(widget: IWidget): void;
updateWidget(widget: IWidget): void;
removeWidget(widgetId: string, removePosition?: boolean): void;
shouldWidgetRender(key: string): boolean;
private updateWidgetPosition;
private emitWidgetResize;
private hookEvent;
private calculateWidgetsVisibility;
}