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

30 lines (29 loc) 1.52 kB
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"; import * as i0 from "@angular/core"; 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; static ɵfac: i0.ɵɵFactoryDeclaration<KpiStatusContentFallbackAdapter, never>; static ɵprov: i0.ɵɵInjectableDeclaration<KpiStatusContentFallbackAdapter>; }