@ux-aspects/ux-aspects
Version:
Open source user interface framework for building modern, responsive, mobile big data applications
40 lines (39 loc) • 1.15 kB
TypeScript
import { OnDestroy } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
export declare class DayViewService implements OnDestroy {
private readonly _datepicker;
grid$: BehaviorSubject<DayViewItem[][]>;
focused$: BehaviorSubject<FocusedDayItem>;
private readonly _subscription;
constructor();
ngOnDestroy(): void;
setFocus(day: number, month: number, year: number): void;
private createDayGrid;
/**
* Determine whether or not a specific date is today
* @param date The date to check
*/
private isToday;
/**
* Determines whether or not a specific date is the selected one
* @param date the date to check
*/
private isActive;
static ɵfac: i0.ɵɵFactoryDeclaration<DayViewService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DayViewService>;
}
export interface DayViewItem {
day: number;
month: number;
year: number;
date: Date;
isToday: boolean;
isActive: boolean;
isCurrentMonth: boolean;
}
export interface FocusedDayItem {
day: number;
month: number;
year: number;
}