@ux-aspects/ux-aspects
Version:
Open source user interface framework for building modern, responsive, mobile big data applications
28 lines (27 loc) • 857 B
TypeScript
import { OnDestroy } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
export declare class YearViewService implements OnDestroy {
private readonly _datepicker;
grid$: BehaviorSubject<YearViewItem[][]>;
focused$: BehaviorSubject<number>;
private _year;
private readonly _subscription;
constructor();
ngOnDestroy(): void;
setFocus(year: number): void;
goToPreviousDecade(): void;
goToNextDecade(): void;
private createYearGrid;
/**
* Get the years in the current decade to display
*/
private getDecade;
static ɵfac: i0.ɵɵFactoryDeclaration<YearViewService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<YearViewService>;
}
export interface YearViewItem {
year: number;
isCurrentYear: boolean;
isActiveYear: boolean;
}