UNPKG

@ux-aspects/ux-aspects

Version:

Open source user interface framework for building modern, responsive, mobile big data applications

50 lines (49 loc) 1.94 kB
import { AfterViewInit, OnDestroy } from '@angular/core'; import { FocusedMonthItem, MonthViewItem, MonthViewService } from './month-view.service'; import * as i0 from "@angular/core"; export declare class MonthViewComponent implements AfterViewInit, OnDestroy { readonly monthService: MonthViewService; private readonly _datePicker; private readonly _liveAnnouncer; private readonly _changeDetector; private readonly _rangeService; private readonly _rangeOptions; /** Determine if we are in range selection mode */ get _isRangeMode(): boolean; /** Determine if this picker is the start picker */ get _isRangeStart(): boolean; /** Determine if this picker is the end picker */ get _isRangeEnd(): boolean; get _rangeStart(): Date | null; get _rangeEnd(): Date | null; get _minMonth(): Date | null; get _maxMonth(): Date | null; private readonly _onDestroy; constructor(); ngAfterViewInit(): void; ngOnDestroy(): void; /** Get the disabled state of a month */ getDisabled(item: MonthViewItem | FocusedMonthItem): boolean; /** * Go to the previous year */ previous(): void; /** * Go to the next year */ next(): void; /** * Select a month in the calendar * @param month the index of the month to select */ select(month: number): void; focusMonth(item: MonthViewItem, monthOffset: number): void; trackRowByFn(index: number): number; trackMonthByFn(_index: number, item: MonthViewItem): string; getTabbable(item: MonthViewItem): boolean; /** Announce the date when we focus on a date */ announceRangeMode(): void; shouldFocus(item: MonthViewItem): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<MonthViewComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MonthViewComponent, "ux-date-time-picker-month-view", never, {}, {}, never, never, false, never>; }