@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
27 lines (26 loc) • 1.32 kB
TypeScript
import { OnDestroy } from "@angular/core";
import { EventBus, IEvent } from "@nova-ui/bits";
import { StatusContentFallbackAdapter } from "./status-content-fallback-adapter";
import { IComponentIdPayload, IDataSourceOutputPayload } from "./types";
import { PizzagnaService } from "../../pizzagna/services/pizzagna.service";
import { IConfigurable, IHasComponent, IProperties } from "../../types";
export interface IKpiFallbackAdapterProperties extends IProperties {
multipleErrorFallbackKey: string;
}
export declare class KpiStatusContentFallbackAdapter extends StatusContentFallbackAdapter implements OnDestroy, IHasComponent, IConfigurable {
/**
* Fallback node key to use if multiple tile data sources report different errors
*/
multipleErrorFallbackKey: string;
/**
* Map of kpi tile component id's to their corresponding error
*/
private errorMap;
constructor(eventBus: EventBus<IEvent>, pizzagnaService: PizzagnaService);
updateConfiguration(properties: IKpiFallbackAdapterProperties): void;
protected handleDataSourceOutput(event: IEvent<any | IDataSourceOutputPayload<any>>): void;
protected handleDataSourceDestroyed(event: IEvent<IComponentIdPayload>): void;
private setFallbackKeyProperty;
private getFallbackKey;
private updateErrorMap;
}