import * as i0 from '@angular/core'; import { EventEmitter, TemplateRef } from '@angular/core'; import { Observable } from 'rxjs'; import { HtmlColor } from '@obliczeniowo/elementary/classes'; import * as i4 from '@angular/common'; import * as i5 from '@obliczeniowo/elementary/loading'; import * as i6 from '@obliczeniowo/elementary/year-picker'; interface DayStatistic { date: Date; count: number; data?: T; x?: number; y?: number; } interface DaySettings { size: number; margin: number; colors: HtmlColor[]; colorsStats?: { [key: number]: HtmlColor; }; getExtData?: (statistic: DayStatistic) => Observable; } declare class DailyStatisticComponent { protected loading: boolean; selected: boolean; /** day statistic day */ statistics: i0.InputSignal>; /** */ settings: i0.InputSignal; get x(): number; get y(): number; clicked: EventEmitter>; onClick(): Promise; hovered: EventEmitter | undefined>; hover(): void; leave(): void; constructor(); protected setCurrentColor(): void; protected currentColor: HtmlColor; get width(): number; get height(): number; size: i0.Signal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface DailyStatisticsSettings extends DaySettings { start: Date; end: Date; colors: HtmlColor[]; yearSwitcher?: boolean; minYear?: number; maxYear?: number; get: (start: Date, end: Date) => Observable[]>; /** for legend translation text */ text?: { less: string; more: string; }; } declare class DailyStatisticsComponent { readonly locale: string; protected statistics: DayStatistic[]; protected _settings: DailyStatisticsSettings; protected max: number; protected daysHeaders: Date[]; protected monthHeaders: { date: Date; x: number; }[]; protected selected?: DayStatistic; protected hovered?: DayStatistic; protected total?: number; protected selectedIndex?: number; protected default: { min: number; max: number; }; protected totalRef: TemplateRef; protected selectedRef: TemplateRef; /** settings for all view components */ set settings(value: DailyStatisticsSettings); private _weakDayOffset; /** * Set weak day offset to for example start weak not from Sunday but from Monday you should set it to 6 * * Do not use values less then 0 */ set weakDayOffset(value: number); get weakDayOffset(): number; get settings(): DailyStatisticsSettings; get margin(): number; get height(): number; get width(): number; get size(): number; get fontSize(): number; clicked: EventEmitter>; selectionChanged: EventEmitter | undefined>; constructor(locale: string); protected changed(year: number): void; protected onClicked(statistic: DayStatistic, index: number): void; protected onHovered(statistics: DayStatistic | undefined): void; protected setColors(statistics: DayStatistic[]): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface LegendSettings extends DaySettings { text?: { less: string; more: string; }; } declare class DailyLegendComponent { settings: i0.InputSignal; sort: (p: any, c: any) => number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DailyStatisticsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { DailyLegendComponent, DailyStatisticComponent, DailyStatisticsComponent, DailyStatisticsModule }; export type { DailyStatisticsSettings, DaySettings, DayStatistic, LegendSettings };