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

32 lines (31 loc) 2 kB
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges } from "@angular/core"; import { Moment } from "moment/moment"; import { EventBus, HistoryStorage, IDataSource, IEvent, ITimeframe, TimeframeService } from "@nova-ui/bits"; import { TimeframeSerializationService } from "../../configurator/services/timeframe-serialization.service"; import { PizzagnaService } from "../../pizzagna/services/pizzagna.service"; import { IHasChangeDetector, ISerializableTimeframe } from "../../types"; import * as i0 from "@angular/core"; export declare class TimeframeSelectionComponent implements OnChanges, OnInit, IHasChangeDetector { private pizzagnaService; timeframeService: TimeframeService; private tfSerialization; history: HistoryStorage<ITimeframe>; private dataSource; private eventBus; changeDetector: ChangeDetectorRef; static lateLoadKey: string; currentTimeframe: ITimeframe; minDateAsMoment: Moment; maxDateAsMoment: Moment; componentId: string; minDate: string; maxDate: string; timeframe: ISerializableTimeframe; elementClass: string; constructor(pizzagnaService: PizzagnaService, timeframeService: TimeframeService, tfSerialization: TimeframeSerializationService, history: HistoryStorage<ITimeframe>, dataSource: IDataSource, eventBus: EventBus<IEvent>, changeDetector: ChangeDetectorRef); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; onTimeframeChange(timeframe: ITimeframe): void; static ɵfac: i0.ɵɵFactoryDeclaration<TimeframeSelectionComponent, [null, null, null, null, { optional: true; }, null, null]>; static ɵcmp: i0.ɵɵComponentDeclaration<TimeframeSelectionComponent, "nui-timeframe-selection", never, { "componentId": { "alias": "componentId"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "timeframe": { "alias": "timeframe"; "required": false; }; }, {}, never, never, false, never>; }