1 | import * as React from 'react';
|
2 | import { IRefObject } from '../../Utilities';
|
3 | import { ICalendarStrings, ICalendarIconStrings, ICalendarFormatDateCallbacks } from './Calendar.types';
|
4 | export interface ICalendarMonth {
|
5 | focus(): void;
|
6 | }
|
7 | export interface ICalendarMonthProps extends React.ClassAttributes<CalendarMonth> {
|
8 | componentRef?: IRefObject<ICalendarMonth>;
|
9 | navigatedDate: Date;
|
10 | selectedDate: Date;
|
11 | strings: ICalendarStrings;
|
12 | onNavigateDate: (date: Date, focusOnNavigatedDay: boolean) => void;
|
13 | today?: Date;
|
14 | highlightCurrentMonth: boolean;
|
15 | highlightSelectedMonth: boolean;
|
16 | onHeaderSelect?: (focus: boolean) => void;
|
17 | navigationIcons: ICalendarIconStrings;
|
18 | dateTimeFormatter: ICalendarFormatDateCallbacks;
|
19 | minDate?: Date;
|
20 | maxDate?: Date;
|
21 | yearPickerHidden?: boolean;
|
22 | }
|
23 | export interface ICalendarMonthState {
|
24 |
|
25 | isYearPickerVisible?: boolean;
|
26 | }
|
27 | export declare class CalendarMonth extends React.Component<ICalendarMonthProps, ICalendarMonthState> {
|
28 | |
29 |
|
30 |
|
31 | refs: {
|
32 | [key: string]: React.ReactInstance;
|
33 | navigatedMonth: HTMLElement;
|
34 | };
|
35 | private _selectMonthCallbacks;
|
36 | private _calendarYearRef;
|
37 | private _navigatedMonthRef;
|
38 | private _focusOnUpdate;
|
39 | constructor(props: ICalendarMonthProps);
|
40 | componentDidUpdate(): void;
|
41 | render(): JSX.Element;
|
42 | focus(): void;
|
43 | private _onCalendarYearRef;
|
44 | private _isCurrentMonth;
|
45 | private _onKeyDown;
|
46 | private _onSelectYear;
|
47 | private _yearToString;
|
48 | private _yearRangeToString;
|
49 | private _yearRangeToNextDecadeLabel;
|
50 | private _yearRangeToPrevDecadeLabel;
|
51 | private _onRenderYear;
|
52 | private _onSelectNextYear;
|
53 | private _onSelectNextYearKeyDown;
|
54 | private _onSelectPrevYear;
|
55 | private _onSelectPrevYearKeyDown;
|
56 | private _onSelectMonthKeyDown;
|
57 | private _onSelectMonth;
|
58 | private _onHeaderSelect;
|
59 | private _onYearPickerHeaderSelect;
|
60 | private _onHeaderKeyDown;
|
61 | }
|