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

55 lines (54 loc) 2.78 kB
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from "@angular/core"; import { EventBus, IEvent } from "@nova-ui/bits"; import { IHeaderLinkProvider } from "./types"; import { PizzagnaService } from "../../../pizzagna/services/pizzagna.service"; import { WidgetToDashboardEventProxyService } from "../../../services/widget-to-dashboard-event-proxy.service"; import * as i0 from "@angular/core"; export declare class WidgetHeaderComponent implements OnInit, OnDestroy, AfterViewInit { private eventBus; pizzagnaService: PizzagnaService; changeDetector: ChangeDetectorRef; private eventProxy; private linkProvider; static lateLoadKey: string; componentId: string; editMode: boolean; /** * Boolean which shows or hides the edit button */ editable: boolean; /** * Boolean which shows or hides the remove widget button */ removable: boolean; /** * Boolean which adds ability to collapse widget header */ collapsible: boolean; reloadable: boolean; title: string; subtitle: string; hideMenu: boolean; url: string; /** * Boolean which tells what state the widget header is in if collapsible */ collapsed: boolean; get hostClass(): boolean; widgetHeaderCustomElement: ElementRef; withCustomElement: boolean; private onDestroy$; get state(): "expanded" | "collapsed"; linkTooltip: string; constructor(eventBus: EventBus<IEvent>, pizzagnaService: PizzagnaService, changeDetector: ChangeDetectorRef, eventProxy: WidgetToDashboardEventProxyService, linkProvider: IHeaderLinkProvider); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; removeWidget(): void; toggleCollapsed(): void; onEditWidget(): void; onReloadData(): void; prepareLink($event: MouseEvent): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<WidgetHeaderComponent, [null, null, null, { optional: true; }, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<WidgetHeaderComponent, "nui-widget-header", never, { "componentId": { "alias": "componentId"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "collapsible": { "alias": "collapsible"; "required": false; }; "reloadable": { "alias": "reloadable"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "hideMenu": { "alias": "hideMenu"; "required": false; }; "url": { "alias": "url"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, ["*"], false, never>; }