@progress/kendo-react-dateinputs 13.3.0 → 13.4.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PopupSettings.d.ts +22 -0
- package/calendar/components/Calendar.d.ts +202 -0
- package/calendar/components/Calendar.mjs +7 -7
- package/calendar/components/CalendarCell.d.ts +71 -0
- package/calendar/components/CalendarHeaderTitle.d.ts +38 -0
- package/calendar/components/CalendarNavigationItem.d.ts +39 -0
- package/calendar/components/CalendarWeekCell.d.ts +42 -0
- package/calendar/components/Header.d.ts +65 -0
- package/calendar/components/Header.mjs +3 -3
- package/calendar/components/HorizontalViewList.d.ts +80 -0
- package/calendar/components/HorizontalViewList.mjs +3 -3
- package/calendar/components/MultiViewCalendar.d.ts +226 -0
- package/calendar/components/MultiViewCalendar.js +1 -1
- package/calendar/components/MultiViewCalendar.mjs +17 -17
- package/calendar/components/Navigation.d.ts +85 -0
- package/calendar/components/TodayCommand.d.ts +46 -0
- package/calendar/components/TodayCommand.mjs +3 -3
- package/calendar/components/View.d.ts +101 -0
- package/calendar/components/ViewList.d.ts +128 -0
- package/calendar/models/ActiveView.d.ts +11 -0
- package/calendar/models/CalendarSettings.d.ts +256 -0
- package/calendar/models/CalendarViewEnum.d.ts +16 -0
- package/calendar/models/CellContext.d.ts +72 -0
- package/calendar/models/MultiViewCalendarMode.d.ts +16 -0
- package/calendar/models/MultiViewCalendarSettings.d.ts +129 -0
- package/calendar/models/NavigationAction.d.ts +22 -0
- package/calendar/models/SelectionRange.d.ts +24 -0
- package/calendar/models/SelectionRangeEnd.d.ts +11 -0
- package/calendar/models/ViewService.d.ts +32 -0
- package/calendar/models/WeekDaysFormat.d.ts +11 -0
- package/calendar/models/index.d.ts +18 -0
- package/calendar/services/BusViewService.d.ts +28 -0
- package/calendar/services/CenturyViewService.d.ts +32 -0
- package/calendar/services/CenturyViewService.mjs +4 -4
- package/calendar/services/DOMService.d.ts +36 -0
- package/calendar/services/DecadeViewService.d.ts +34 -0
- package/calendar/services/DecadeViewService.mjs +4 -4
- package/calendar/services/MonthViewService.d.ts +40 -0
- package/calendar/services/MonthViewService.mjs +2 -2
- package/calendar/services/NavigationService.d.ts +21 -0
- package/calendar/services/ScrollSyncService.d.ts +28 -0
- package/calendar/services/WeekNamesService.d.ts +17 -0
- package/calendar/services/YearViewService.d.ts +38 -0
- package/calendar/services/YearViewService.mjs +2 -2
- package/calendar/services/index.d.ts +17 -0
- package/calendar/utils/ScrollSync.d.ts +20 -0
- package/codemods/utils.js +1 -8
- package/codemods/v11/dateinput-handle.js +1 -8
- package/codemods/v11/datepicker-handle.js +1 -8
- package/common/AdaptiveMode.d.ts +22 -0
- package/common/ClearButton.d.ts +20 -0
- package/dateinput/DateInput.d.ts +248 -0
- package/dateinput/DateInput.js +1 -1
- package/dateinput/DateInput.mjs +63 -65
- package/dateinput/dateInputIntl.d.ts +30 -0
- package/dateinput/models/DateInputSettings.d.ts +107 -0
- package/dateinput/models/common-package-props.d.ts +34 -0
- package/dateinput/models/dateinput-options.d.ts +105 -0
- package/dateinput/models/format-placeholder.d.ts +46 -0
- package/dateinput/models/incremental-steps.d.ts +24 -0
- package/dateinput/models/index.d.ts +15 -0
- package/dateinput/models/kendo-date.d.ts +60 -0
- package/dateinput/models/mask.d.ts +14 -0
- package/dateinput/models/selection.d.ts +14 -0
- package/dateinput/utils.d.ts +31 -0
- package/datepicker/DatePicker.d.ts +279 -0
- package/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +68 -72
- package/datepicker/ToggleButton.d.ts +17 -0
- package/datepicker/models/DatePickerSettings.d.ts +248 -0
- package/datepicker/models/index.d.ts +9 -0
- package/daterangepicker/DateRangePicker.d.ts +357 -0
- package/daterangepicker/DateRangePicker.mjs +13 -13
- package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerSettings.d.ts +129 -0
- package/daterangepicker/models/index.d.ts +12 -0
- package/datetimepicker/DateTimePicker.d.ts +420 -0
- package/datetimepicker/DateTimePicker.js +1 -1
- package/datetimepicker/DateTimePicker.mjs +16 -20
- package/datetimepicker/DateTimeSelector.d.ts +111 -0
- package/datetimepicker/DateTimeSelector.mjs +3 -3
- package/datetimepicker/models/DateTimePickerSettings.d.ts +154 -0
- package/datetimepicker/models/index.d.ts +9 -0
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/hooks/usePickerFloatingLabel.d.ts +27 -0
- package/index.d.mts +35 -4952
- package/index.d.ts +35 -4952
- package/messages/index.d.ts +132 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +8 -8
- package/timepicker/TimeList.d.ts +97 -0
- package/timepicker/TimeList.js +5 -5
- package/timepicker/TimeList.mjs +122 -112
- package/timepicker/TimePart.d.ts +146 -0
- package/timepicker/TimePart.mjs +3 -3
- package/timepicker/TimePicker.d.ts +417 -0
- package/timepicker/TimePicker.js +1 -1
- package/timepicker/TimePicker.mjs +64 -68
- package/timepicker/TimeSelector.d.ts +149 -0
- package/timepicker/TimeSelector.mjs +3 -3
- package/timepicker/models/IncrementalSteps.d.ts +18 -0
- package/timepicker/models/ListItem.d.ts +14 -0
- package/timepicker/models/ListService.d.ts +22 -0
- package/timepicker/models/ListServiceSettings.d.ts +19 -0
- package/timepicker/models/TimePart.d.ts +17 -0
- package/timepicker/models/TimePickerSettings.d.ts +137 -0
- package/timepicker/models/index.d.ts +14 -0
- package/timepicker/services/DOMService.d.ts +18 -0
- package/timepicker/services/DayPeriodService.d.ts +54 -0
- package/timepicker/services/HoursService.d.ts +40 -0
- package/timepicker/services/MinutesService.d.ts +39 -0
- package/timepicker/services/SecondsService.d.ts +39 -0
- package/timepicker/services/index.d.ts +13 -0
- package/timepicker/utils.d.ts +63 -0
- package/timepicker/utils.mjs +1 -1
- package/utils.d.ts +103 -0
- package/utils.js +1 -1
- package/utils.mjs +46 -46
- package/virtualization/Virtualization.d.ts +125 -0
- package/virtualization/services/ScrollerService.d.ts +56 -0
- package/virtualization/services/index.d.ts +10 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { CalendarCellProps } from './CalendarCell.js';
|
|
10
|
+
import { CalendarWeekCellProps } from './CalendarWeekCell.js';
|
|
11
|
+
import { CalendarViewEnum, CellContext, SelectionRange, SelectionRangeEnd, ViewService } from '../models/index.js';
|
|
12
|
+
import { BusViewService } from '../services/index.js';
|
|
13
|
+
import { WeekDaysFormat } from '../models/WeekDaysFormat.js';
|
|
14
|
+
import { DateInputsClassStructure } from '@progress/kendo-react-common';
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export interface ViewEventArguments {
|
|
20
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
21
|
+
nativeEvent?: any;
|
|
22
|
+
value: Date;
|
|
23
|
+
target: View;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
export interface ViewDimensions {
|
|
29
|
+
headerHight: number;
|
|
30
|
+
offsetHeight: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export interface ViewProps {
|
|
36
|
+
activeRangeEnd?: SelectionRangeEnd;
|
|
37
|
+
activeView: CalendarViewEnum;
|
|
38
|
+
bus: BusViewService;
|
|
39
|
+
cellUID: string;
|
|
40
|
+
direction?: 'horizontal' | 'vertical';
|
|
41
|
+
focusedDate: Date;
|
|
42
|
+
weekCell?: React.ComponentType<CalendarWeekCellProps>;
|
|
43
|
+
max: Date;
|
|
44
|
+
weekDaysFormat?: WeekDaysFormat;
|
|
45
|
+
min: Date;
|
|
46
|
+
cell?: React.ComponentType<CalendarCellProps>;
|
|
47
|
+
onCellEnter?: (date: Date) => void;
|
|
48
|
+
onCellLeave?: (date: Date | null) => void;
|
|
49
|
+
onChange?: (event: ViewEventArguments) => void;
|
|
50
|
+
onWeekSelect?: (firstDate: Date, daysToEqualize: number, event: React.MouseEvent<HTMLTableCellElement>) => void;
|
|
51
|
+
selectedDate: Date | Date[] | null;
|
|
52
|
+
selectionRange?: SelectionRange;
|
|
53
|
+
service: ViewService;
|
|
54
|
+
showWeekNumbers?: boolean;
|
|
55
|
+
showOtherMonthDays?: boolean;
|
|
56
|
+
viewDate: Date;
|
|
57
|
+
allowReverse?: boolean;
|
|
58
|
+
unstyled?: DateInputsClassStructure;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare class View extends React.Component<ViewProps, {}> {
|
|
64
|
+
static propTypes: {
|
|
65
|
+
activeRangeEnd: PropTypes.Requireable<string | null>;
|
|
66
|
+
activeView: PropTypes.Validator<number>;
|
|
67
|
+
cellUID: PropTypes.Validator<string>;
|
|
68
|
+
direction: PropTypes.Requireable<string>;
|
|
69
|
+
focusedDate: PropTypes.Validator<Date>;
|
|
70
|
+
max: PropTypes.Validator<Date>;
|
|
71
|
+
min: PropTypes.Validator<Date>;
|
|
72
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
|
+
selectedDate: PropTypes.Requireable<NonNullable<Date | (Date | null | undefined)[] | null | undefined>>;
|
|
74
|
+
showWeekNumbers: PropTypes.Requireable<boolean>;
|
|
75
|
+
showOtherMonthDays: PropTypes.Requireable<boolean>;
|
|
76
|
+
viewDate: PropTypes.Validator<Date>;
|
|
77
|
+
};
|
|
78
|
+
static defaultProps: {
|
|
79
|
+
direction: string;
|
|
80
|
+
selectedDate: Date;
|
|
81
|
+
showWeekNumbers: boolean;
|
|
82
|
+
};
|
|
83
|
+
private intl;
|
|
84
|
+
private weekService;
|
|
85
|
+
protected get min(): Date;
|
|
86
|
+
protected get max(): Date;
|
|
87
|
+
protected get isHorizontal(): boolean;
|
|
88
|
+
protected get isMonthView(): boolean;
|
|
89
|
+
protected get weekNumber(): boolean;
|
|
90
|
+
protected get selectedDate(): Date | Date[] | null;
|
|
91
|
+
render(): React.JSX.Element;
|
|
92
|
+
protected buildWeekNumber: (row: any, idx: number) => React.JSX.Element;
|
|
93
|
+
protected buildRow: (row: any) => any;
|
|
94
|
+
protected getWeekNumber(date: Date): number | null;
|
|
95
|
+
protected firstDate: (row: any) => Date | null;
|
|
96
|
+
protected firstWeekDateContext: (rowCtx: CellContext[]) => CellContext | null;
|
|
97
|
+
private handleClick;
|
|
98
|
+
private handleWeekCellClick;
|
|
99
|
+
private handleMouseEnter;
|
|
100
|
+
private handleMouseLeave;
|
|
101
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { DateInputsClassStructure } from '@progress/kendo-react-common';
|
|
10
|
+
import { Virtualization } from '../../virtualization/Virtualization.js';
|
|
11
|
+
import { BusViewService, DOMService } from '../services/index.js';
|
|
12
|
+
import { CalendarCellProps } from './CalendarCell.js';
|
|
13
|
+
import { ViewService, CalendarViewEnum } from '../models/index.js';
|
|
14
|
+
import { CalendarWeekCellProps } from './CalendarWeekCell.js';
|
|
15
|
+
import { CalendarHeaderTitleProps } from './CalendarHeaderTitle.js';
|
|
16
|
+
import { WeekDaysFormat } from '../models/WeekDaysFormat.js';
|
|
17
|
+
import { CalendarHeaderProps } from '../models/CalendarSettings.js';
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export interface ViewListEventArguments {
|
|
23
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
24
|
+
nativeEvent?: any;
|
|
25
|
+
value: Date;
|
|
26
|
+
target: ViewList;
|
|
27
|
+
isTodayClick?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
export interface ViewListProps {
|
|
33
|
+
activeView: CalendarViewEnum;
|
|
34
|
+
bottomOffset?: number;
|
|
35
|
+
bus: BusViewService;
|
|
36
|
+
cellUID: string;
|
|
37
|
+
dom: DOMService;
|
|
38
|
+
focusedDate: Date;
|
|
39
|
+
max: Date;
|
|
40
|
+
min: Date;
|
|
41
|
+
cell?: React.ComponentType<CalendarCellProps>;
|
|
42
|
+
onScroll?: (event: React.SyntheticEvent) => void;
|
|
43
|
+
onChange?: (event: ViewListEventArguments) => void;
|
|
44
|
+
service: ViewService;
|
|
45
|
+
showWeekNumbers?: boolean;
|
|
46
|
+
smoothScroll?: boolean;
|
|
47
|
+
take?: number;
|
|
48
|
+
weekDaysFormat?: WeekDaysFormat;
|
|
49
|
+
value: Date | null;
|
|
50
|
+
viewHeight?: number;
|
|
51
|
+
viewOffset?: number;
|
|
52
|
+
weekCell?: React.ComponentType<CalendarWeekCellProps>;
|
|
53
|
+
showOtherMonthDays?: boolean;
|
|
54
|
+
headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
|
|
55
|
+
header?: React.ComponentType<CalendarHeaderProps>;
|
|
56
|
+
shouldScroll?: () => boolean;
|
|
57
|
+
tabIndex?: number;
|
|
58
|
+
unstyled?: DateInputsClassStructure;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export interface ViewListState {
|
|
64
|
+
skip: number;
|
|
65
|
+
index: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
export declare class ViewList extends React.Component<ViewListProps, ViewListState> {
|
|
71
|
+
static propTypes: {
|
|
72
|
+
activeView: PropTypes.Validator<number>;
|
|
73
|
+
bottomOffset: PropTypes.Requireable<number>;
|
|
74
|
+
cellUID: PropTypes.Validator<string>;
|
|
75
|
+
focusedDate: PropTypes.Validator<Date>;
|
|
76
|
+
max: PropTypes.Validator<Date>;
|
|
77
|
+
min: PropTypes.Validator<Date>;
|
|
78
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
79
|
+
showWeekNumbers: PropTypes.Requireable<boolean>;
|
|
80
|
+
smoothScroll: PropTypes.Requireable<boolean>;
|
|
81
|
+
take: PropTypes.Requireable<number>;
|
|
82
|
+
value: PropTypes.Requireable<Date>;
|
|
83
|
+
viewHeight: PropTypes.Requireable<number>;
|
|
84
|
+
viewOffset: PropTypes.Requireable<number>;
|
|
85
|
+
weekDaysFormat: PropTypes.Requireable<string>;
|
|
86
|
+
tabIndex: PropTypes.Requireable<number>;
|
|
87
|
+
};
|
|
88
|
+
static defaultProps: {
|
|
89
|
+
take: number;
|
|
90
|
+
showWeekNumbers: boolean;
|
|
91
|
+
weekDaysFormat: string;
|
|
92
|
+
smoothScroll: boolean;
|
|
93
|
+
};
|
|
94
|
+
virtualization: Virtualization | null;
|
|
95
|
+
private calendarView;
|
|
96
|
+
private table;
|
|
97
|
+
private intl;
|
|
98
|
+
private bottomOffset;
|
|
99
|
+
private viewOffset;
|
|
100
|
+
private viewHeight;
|
|
101
|
+
private _element;
|
|
102
|
+
private lastView;
|
|
103
|
+
private isActive;
|
|
104
|
+
private animateToIndex;
|
|
105
|
+
private shouldScroll;
|
|
106
|
+
private indexToScroll?;
|
|
107
|
+
private lastFocus;
|
|
108
|
+
private weekService;
|
|
109
|
+
get element(): HTMLDivElement | null;
|
|
110
|
+
protected get weekNames(): string[];
|
|
111
|
+
protected get weekNumber(): boolean;
|
|
112
|
+
protected get take(): number;
|
|
113
|
+
protected get animate(): boolean;
|
|
114
|
+
protected get todayIsInRange(): boolean;
|
|
115
|
+
constructor(props: ViewListProps);
|
|
116
|
+
componentDidUpdate(_prevProps: ViewListProps, _prevState: ViewListState): void;
|
|
117
|
+
focusActiveDate: () => void;
|
|
118
|
+
blurActiveDate: () => void;
|
|
119
|
+
render(): React.JSX.Element;
|
|
120
|
+
protected handleVirtualizationMount: (virtualization: Virtualization) => void;
|
|
121
|
+
protected buildMonthView: (cols: any[], weekNames: any[]) => React.JSX.Element;
|
|
122
|
+
protected buildDates: (cols: any[], dates: Date[]) => React.JSX.Element;
|
|
123
|
+
protected calculateHeights: () => void;
|
|
124
|
+
protected getTake: (skip: number, total: number) => number;
|
|
125
|
+
private handleScrollAction;
|
|
126
|
+
private handleTodayClick;
|
|
127
|
+
private handleDateChange;
|
|
128
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The literal type that defines all possible Calendar views.
|
|
10
|
+
*/
|
|
11
|
+
export type ActiveView = 'month' | 'year' | 'decade' | 'century';
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ActiveView } from './ActiveView.js';
|
|
9
|
+
import { CalendarCellProps } from '../components/CalendarCell.js';
|
|
10
|
+
import { CalendarWeekCellProps } from '../components/CalendarWeekCell.js';
|
|
11
|
+
import { CalendarHeaderTitleProps } from '../components/CalendarHeaderTitle.js';
|
|
12
|
+
import { CalendarNavigationItemProps } from '../components/CalendarNavigationItem.js';
|
|
13
|
+
import { WeekDaysFormat } from './WeekDaysFormat.js';
|
|
14
|
+
/**
|
|
15
|
+
* The props which will be received by the custom header of the Calendar and the MultiViewCalendar.
|
|
16
|
+
*/
|
|
17
|
+
export interface CalendarHeaderProps {
|
|
18
|
+
/** Properties passed to the header title component */
|
|
19
|
+
headerTitleProps: CalendarHeaderTitleProps;
|
|
20
|
+
/** Navigation commands and buttons for the calendar header */
|
|
21
|
+
commands: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export interface CalendarSettings {
|
|
27
|
+
/**
|
|
28
|
+
* Defines the bottommost view to which the user can navigate.
|
|
29
|
+
*
|
|
30
|
+
** @example
|
|
31
|
+
* ```jsx
|
|
32
|
+
* <Calendar bottomView="month" />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
bottomView?: ActiveView;
|
|
36
|
+
/**
|
|
37
|
+
* Sets the `className` of the Calendar.
|
|
38
|
+
*
|
|
39
|
+
** @example
|
|
40
|
+
* ```jsx
|
|
41
|
+
* <Calendar className="custom-class" />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
className?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the default active view of the Calendar.
|
|
47
|
+
* If not set, the Calendar will display the month view.
|
|
48
|
+
*
|
|
49
|
+
** @example
|
|
50
|
+
* ```jsx
|
|
51
|
+
* <Calendar defaultActiveView="year" />
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
defaultActiveView?: ActiveView;
|
|
55
|
+
/**
|
|
56
|
+
* Determines whether the Calendar is disabled.
|
|
57
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/disabled-state)).
|
|
58
|
+
*
|
|
59
|
+
** @example
|
|
60
|
+
* ```jsx
|
|
61
|
+
* <Calendar disabled={true} />
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the initial focused date of the Calendar.
|
|
67
|
+
*
|
|
68
|
+
** @example
|
|
69
|
+
* ```jsx
|
|
70
|
+
* <Calendar focusedDate={new Date()} />
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
focusedDate?: Date;
|
|
74
|
+
/**
|
|
75
|
+
* Sets the `id` of the Calendar.
|
|
76
|
+
*
|
|
77
|
+
** @example
|
|
78
|
+
* ```jsx
|
|
79
|
+
* <Calendar id="calendar-id" />
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
id?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
85
|
+
* For example, these elements could contain error or hint messages.
|
|
86
|
+
*
|
|
87
|
+
** @example
|
|
88
|
+
* ```jsx
|
|
89
|
+
* <Calendar ariaDescribedBy="description-id" />
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
ariaDescribedBy?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Identifies the element(s) which will label the component.
|
|
95
|
+
*
|
|
96
|
+
** @example
|
|
97
|
+
* ```jsx
|
|
98
|
+
* <Calendar ariaLabelledBy="label-id" />
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
ariaLabelledBy?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Sets the maximum allowed date of the Calendar. Defaults to `2099-12-31`.
|
|
104
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/date-ranges#toc-max-date)).
|
|
105
|
+
*
|
|
106
|
+
** @example
|
|
107
|
+
* ```jsx
|
|
108
|
+
* <Calendar max={new Date(2099, 11, 31)} />
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
max?: Date;
|
|
112
|
+
/**
|
|
113
|
+
* Sets the minimum allowed date of the Calendar. Defaults to `1900-1-1`.
|
|
114
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/date-ranges#toc-min-date)).
|
|
115
|
+
*
|
|
116
|
+
** @example
|
|
117
|
+
* ```jsx
|
|
118
|
+
* <Calendar min={new Date(1900, 0, 1)} />
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
min?: Date;
|
|
122
|
+
/**
|
|
123
|
+
* Determines if the navigation sidebar will be displayed.
|
|
124
|
+
*
|
|
125
|
+
** @example
|
|
126
|
+
* ```jsx
|
|
127
|
+
* <Calendar navigation={true} />
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
navigation?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* **Deprecated**
|
|
133
|
+
*
|
|
134
|
+
* Toggles the smooth scroll animation on navigation item click. By default, the animation is enabled in React 17.
|
|
135
|
+
*
|
|
136
|
+
** @example
|
|
137
|
+
* ```jsx
|
|
138
|
+
* <Calendar smoothScroll={false} />
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
smoothScroll?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Fires each time the Calendar is blurred.
|
|
144
|
+
*
|
|
145
|
+
** @example
|
|
146
|
+
* ```jsx
|
|
147
|
+
* <Calendar onBlur={(event) => console.log('Blur event:', event)} />
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
onBlur?: (event: React.FocusEvent<any>) => void;
|
|
151
|
+
/**
|
|
152
|
+
* Fires each time the Calendar is focused.
|
|
153
|
+
*
|
|
154
|
+
** @example
|
|
155
|
+
* ```jsx
|
|
156
|
+
* <Calendar onFocus={(event) => console.log('Focus event:', event)} />
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
onFocus?: (event: React.FocusEvent<any>) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Sets the `tabIndex` property of the Calendar.
|
|
162
|
+
*
|
|
163
|
+
** @example
|
|
164
|
+
* ```jsx
|
|
165
|
+
* <Calendar tabIndex={0} />
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
tabIndex?: number;
|
|
169
|
+
/**
|
|
170
|
+
* Defines the topmost view to which the user can navigate.
|
|
171
|
+
*
|
|
172
|
+
** @example
|
|
173
|
+
* ```jsx
|
|
174
|
+
* <Calendar topView="decade" />
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
topView?: ActiveView;
|
|
178
|
+
/**
|
|
179
|
+
* Specifies the possible format options for the displayed Calendar week days' names.
|
|
180
|
+
*
|
|
181
|
+
* @default short
|
|
182
|
+
** @example
|
|
183
|
+
* ```jsx
|
|
184
|
+
* <Calendar weekDaysFormat="short" />
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
weekDaysFormat?: WeekDaysFormat;
|
|
188
|
+
/**
|
|
189
|
+
* Determines if the week number column will be displayed.
|
|
190
|
+
*
|
|
191
|
+
** @example
|
|
192
|
+
* ```jsx
|
|
193
|
+
* <Calendar weekNumber={true} />
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
weekNumber?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Displays the days that fall out of the current month.
|
|
199
|
+
*
|
|
200
|
+
** @example
|
|
201
|
+
* ```jsx
|
|
202
|
+
* <Calendar showOtherMonthDays={true} />
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
showOtherMonthDays?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Enables the customization or the override of the default Calendar cell.
|
|
208
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/custom-rendering#toc-cells-inside-the-view)).
|
|
209
|
+
*
|
|
210
|
+
** @example
|
|
211
|
+
* ```jsx
|
|
212
|
+
* <Calendar cell={CustomCell} />
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
215
|
+
cell?: React.ComponentType<CalendarCellProps>;
|
|
216
|
+
/**
|
|
217
|
+
* Enables the customization or the override of the default week-column cell in the Calendar.
|
|
218
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/custom-rendering#toc-cells-inside-the-week-column)).
|
|
219
|
+
*
|
|
220
|
+
** @example
|
|
221
|
+
* ```jsx
|
|
222
|
+
* <Calendar weekCell={CustomWeekCell} />
|
|
223
|
+
* ```
|
|
224
|
+
*/
|
|
225
|
+
weekCell?: React.ComponentType<CalendarWeekCellProps>;
|
|
226
|
+
/**
|
|
227
|
+
* Enables the customization or the override of the default header title in the Calendar.
|
|
228
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/custom-rendering#toc-titles-of-current-views)).
|
|
229
|
+
*
|
|
230
|
+
** @example
|
|
231
|
+
* ```jsx
|
|
232
|
+
* <Calendar headerTitle={CustomHeaderTitle} />
|
|
233
|
+
* ```
|
|
234
|
+
*/
|
|
235
|
+
headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
|
|
236
|
+
/**
|
|
237
|
+
* Enables the customization or the override of the default header in the Calendar.
|
|
238
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/custom-rendering#toc-titles-of-current-views)).
|
|
239
|
+
*
|
|
240
|
+
** @example
|
|
241
|
+
* ```jsx
|
|
242
|
+
* <Calendar header={CustomHeader} />
|
|
243
|
+
* ```
|
|
244
|
+
*/
|
|
245
|
+
header?: React.ComponentType<CalendarHeaderProps>;
|
|
246
|
+
/**
|
|
247
|
+
* Enables the customization or the override of the default navigation item in the Calendar.
|
|
248
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/custom-rendering#toc-items-in-the-side-navigation)).
|
|
249
|
+
*
|
|
250
|
+
** @example
|
|
251
|
+
* ```jsx
|
|
252
|
+
* <Calendar navigationItem={CustomNavigationItem} />
|
|
253
|
+
* ```
|
|
254
|
+
*/
|
|
255
|
+
navigationItem?: React.ComponentType<CalendarNavigationItemProps>;
|
|
256
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The Enum which defines all possible Calendar view types.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum CalendarViewEnum {
|
|
12
|
+
month = 0,
|
|
13
|
+
year = 1,
|
|
14
|
+
decade = 2,
|
|
15
|
+
century = 3
|
|
16
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface CellContext {
|
|
12
|
+
/**
|
|
13
|
+
* The formatted string value displayed in the calendar cell.
|
|
14
|
+
*/
|
|
15
|
+
formattedValue: string;
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier for the calendar cell.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates if the cell represents a weekend day.
|
|
22
|
+
*/
|
|
23
|
+
isWeekend: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates if the cell is currently focused.
|
|
26
|
+
*/
|
|
27
|
+
isFocused: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Indicates if the cell is selected.
|
|
30
|
+
*/
|
|
31
|
+
isSelected: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Indicates if the cell is within a selected date range.
|
|
34
|
+
*/
|
|
35
|
+
isInRange: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates if the cell is the start of a selected range.
|
|
38
|
+
*/
|
|
39
|
+
isRangeStart: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if the cell is the end of a selected range.
|
|
42
|
+
*/
|
|
43
|
+
isRangeEnd: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Indicates if the cell is in the middle of a selected range.
|
|
46
|
+
*/
|
|
47
|
+
isRangeMid: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Indicates if the cell is the split end of a multi-range selection.
|
|
50
|
+
*/
|
|
51
|
+
isRangeSplitEnd?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Indicates if the cell is the split start of a multi-range selection.
|
|
54
|
+
*/
|
|
55
|
+
isRangeSplitStart?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Indicates if the cell represents today's date.
|
|
58
|
+
*/
|
|
59
|
+
isToday: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* The title attribute for the cell, used for accessibility or tooltips.
|
|
62
|
+
*/
|
|
63
|
+
title?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The date value represented by the cell.
|
|
66
|
+
*/
|
|
67
|
+
value: Date;
|
|
68
|
+
/**
|
|
69
|
+
* Indicates if the cell belongs to another month in the current view.
|
|
70
|
+
*/
|
|
71
|
+
isOtherMonth?: boolean;
|
|
72
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Represents the selection modes of the MultiViewCalendar.
|
|
10
|
+
*
|
|
11
|
+
* The supported modes are:
|
|
12
|
+
* * (Default) `single`—Renders a single-date selection.
|
|
13
|
+
* * `multiple`—Renders a multiple-date selection.
|
|
14
|
+
* * `range`—Renders a date-range selection.
|
|
15
|
+
*/
|
|
16
|
+
export type MultiViewCalendarMode = 'single' | 'multiple' | 'range';
|