@progress/kendo-react-dateinputs 13.3.0-develop.9 → 13.4.0-develop.1
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,129 @@
|
|
|
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 { SelectionRangeEnd } from './SelectionRangeEnd.js';
|
|
10
|
+
import { MultiViewCalendarMode } from './MultiViewCalendarMode.js';
|
|
11
|
+
import { CalendarCellProps } from '../components/CalendarCell.js';
|
|
12
|
+
import { CalendarWeekCellProps } from '../components/CalendarWeekCell.js';
|
|
13
|
+
import { CalendarHeaderTitleProps } from '../components/CalendarHeaderTitle.js';
|
|
14
|
+
import { WeekDaysFormat } from './WeekDaysFormat.js';
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export interface MultiViewCalendarSettings {
|
|
19
|
+
/**
|
|
20
|
+
* Specifies which end of the defined selection range will be marked as active.
|
|
21
|
+
*
|
|
22
|
+
* > If the selection range is undefined, the value is ignored.
|
|
23
|
+
*/
|
|
24
|
+
activeRangeEnd?: SelectionRangeEnd;
|
|
25
|
+
/**
|
|
26
|
+
* If set to `true`, the component skips the validation of whether the `from` value is after the `to` value.
|
|
27
|
+
*/
|
|
28
|
+
allowReverse?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Defines the bottommost view to which the user can navigate.
|
|
31
|
+
*/
|
|
32
|
+
bottomView?: ActiveView;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the `className` of the MultiViewCalendar.
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the default active view of the MultiViewCalendar.
|
|
39
|
+
* If not set, the MultiViewCalendar displays the month view.
|
|
40
|
+
*/
|
|
41
|
+
defaultActiveView?: ActiveView;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the `views` property of the MultiViewCalendar and defines the number of rendered views.
|
|
44
|
+
*/
|
|
45
|
+
views?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Determines if the week number column will be displayed.
|
|
48
|
+
*/
|
|
49
|
+
weekNumber?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the possible format options for the displayed Calendar week days' names.
|
|
52
|
+
*
|
|
53
|
+
* @default short
|
|
54
|
+
*/
|
|
55
|
+
weekDaysFormat?: WeekDaysFormat;
|
|
56
|
+
/**
|
|
57
|
+
* Fires each time the MultiViewCalendar is focused.
|
|
58
|
+
*/
|
|
59
|
+
onFocus?: (event: React.FocusEvent<any>) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Sets the `tabIndex` property of the MultiViewCalendar.
|
|
62
|
+
*/
|
|
63
|
+
tabIndex?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Defines the topmost view to which the user can navigate.
|
|
66
|
+
*/
|
|
67
|
+
topView?: ActiveView;
|
|
68
|
+
/**
|
|
69
|
+
* Determines whether the MultiViewCalendar is disabled.
|
|
70
|
+
*/
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the initial focused date of the MultiViewCalendar.
|
|
74
|
+
*/
|
|
75
|
+
focusedDate?: Date;
|
|
76
|
+
/**
|
|
77
|
+
* Sets the `id` of the MultiViewCalendar.
|
|
78
|
+
*/
|
|
79
|
+
id?: string;
|
|
80
|
+
/**
|
|
81
|
+
* 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).
|
|
82
|
+
* For example these elements could contain error or hint message.
|
|
83
|
+
*/
|
|
84
|
+
ariaDescribedBy?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Identifies the element(s) which will label the component.
|
|
87
|
+
*/
|
|
88
|
+
ariaLabelledBy?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Sets the maximum allowed date of the MultiViewCalendar. Defaults to `2099-12-31`.
|
|
91
|
+
*/
|
|
92
|
+
max?: Date;
|
|
93
|
+
/**
|
|
94
|
+
* Sets the minimum allowed date of the MultiViewCalendar. Defaults to `1900-1-1`.
|
|
95
|
+
*/
|
|
96
|
+
min?: Date;
|
|
97
|
+
/**
|
|
98
|
+
* Sets the selection mode of the MultiViewCalendar.
|
|
99
|
+
*
|
|
100
|
+
* The available modes are:
|
|
101
|
+
* * (Default) `single`—Renders a single-date selection.
|
|
102
|
+
* * `multiple`—Renders a multiple-date selection.
|
|
103
|
+
* * `range`—Renders a date-range selection.
|
|
104
|
+
*/
|
|
105
|
+
mode?: MultiViewCalendarMode;
|
|
106
|
+
/**
|
|
107
|
+
* Displays the days that fall out of the current month.
|
|
108
|
+
*/
|
|
109
|
+
showOtherMonthDays?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Fires each time the MultiViewCalendar is blurred.
|
|
112
|
+
*/
|
|
113
|
+
onBlur?: (event: React.FocusEvent<any>) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Enables the customization or the override of the default MultiViewCalendar cell
|
|
116
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/multiviewcalendar/custom-rendering#toc-cells-inside-the-view)).
|
|
117
|
+
*/
|
|
118
|
+
cell?: React.ComponentType<CalendarCellProps>;
|
|
119
|
+
/**
|
|
120
|
+
* Enables the customization or the override of the default week cell in the MultiViewCalendar
|
|
121
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/multiviewcalendar/custom-rendering#toc-cells-inside-the-week-column)).
|
|
122
|
+
*/
|
|
123
|
+
weekCell?: React.ComponentType<CalendarWeekCellProps>;
|
|
124
|
+
/**
|
|
125
|
+
* Enables the customization or the override of the default header title in the MultiViewCalendar
|
|
126
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/multiviewcalendar/custom-rendering#toc-titles-of-current-views)).
|
|
127
|
+
*/
|
|
128
|
+
headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
|
|
129
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 declare enum Action {
|
|
12
|
+
Left = 0,
|
|
13
|
+
Right = 1,
|
|
14
|
+
Up = 2,
|
|
15
|
+
Down = 3,
|
|
16
|
+
PrevView = 4,
|
|
17
|
+
NextView = 5,
|
|
18
|
+
FirstInView = 6,
|
|
19
|
+
LastInView = 7,
|
|
20
|
+
LowerView = 8,
|
|
21
|
+
UpperView = 9
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 type that defines the selection range of the Calendar.
|
|
10
|
+
*/
|
|
11
|
+
export interface SelectionRange {
|
|
12
|
+
/**
|
|
13
|
+
* The beginning of the selection range.
|
|
14
|
+
*/
|
|
15
|
+
start: Date | null;
|
|
16
|
+
/**
|
|
17
|
+
* The end of the selection range.
|
|
18
|
+
*/
|
|
19
|
+
end: Date | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const EMPTY_SELECTIONRANGE: SelectionRange;
|
|
@@ -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 which end of the selection range is active.
|
|
10
|
+
*/
|
|
11
|
+
export type SelectionRangeEnd = 'start' | 'end' | null;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { Action } from './NavigationAction.js';
|
|
9
|
+
import { CellContext } from './CellContext.js';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface ViewService {
|
|
14
|
+
isSelectedFromArray(candidate: Date, dates: Date[], min: Date, max: Date): boolean;
|
|
15
|
+
addToDate(min: Date, skip: number): Date;
|
|
16
|
+
datesList(start: Date, count: number): Date[];
|
|
17
|
+
data(options: any): CellContext[][];
|
|
18
|
+
isEqual(candidate: Date, expected: Date): boolean;
|
|
19
|
+
isInArray(date: Date, dates: Date[]): boolean;
|
|
20
|
+
isInRange(candidate: Date, min: Date, max: Date): boolean;
|
|
21
|
+
isRangeStart(date: Date): boolean;
|
|
22
|
+
isInSameView(candidate: Date, value: Date): boolean;
|
|
23
|
+
move(date: Date, action: Action): Date;
|
|
24
|
+
cellTitle(current: Date): string;
|
|
25
|
+
navigationTitle(current: Date): string;
|
|
26
|
+
title(current: Date): string;
|
|
27
|
+
rowLength(prependCell?: boolean): number;
|
|
28
|
+
skip(value: Date, min: Date): number;
|
|
29
|
+
total(min: Date, max: Date): number;
|
|
30
|
+
value(current: Date): string;
|
|
31
|
+
viewDate(date: Date, max: Date, border: number): Date;
|
|
32
|
+
}
|
|
@@ -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
|
+
* Specifies the possible format options for the displayed Calendar week days' names.
|
|
10
|
+
*/
|
|
11
|
+
export type WeekDaysFormat = 'short' | 'narrow' | 'abbreviated';
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { Action } from './NavigationAction.js';
|
|
9
|
+
import { ActiveView } from './ActiveView.js';
|
|
10
|
+
import { CalendarSettings, CalendarHeaderProps } from './CalendarSettings.js';
|
|
11
|
+
import { CalendarViewEnum } from './CalendarViewEnum.js';
|
|
12
|
+
import { CellContext } from './CellContext.js';
|
|
13
|
+
import { MultiViewCalendarMode } from './MultiViewCalendarMode.js';
|
|
14
|
+
import { MultiViewCalendarSettings } from './MultiViewCalendarSettings.js';
|
|
15
|
+
import { SelectionRange, EMPTY_SELECTIONRANGE } from './SelectionRange.js';
|
|
16
|
+
import { SelectionRangeEnd } from './SelectionRangeEnd.js';
|
|
17
|
+
import { ViewService } from './ViewService.js';
|
|
18
|
+
export { Action, ActiveView, CalendarSettings, CalendarViewEnum, CalendarHeaderProps, CellContext, EMPTY_SELECTIONRANGE, MultiViewCalendarMode, MultiViewCalendarSettings, SelectionRange, SelectionRangeEnd, ViewService };
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { ViewService } from '../models/ViewService.js';
|
|
9
|
+
import { IntlService } from '@progress/kendo-react-intl';
|
|
10
|
+
import { CalendarViewEnum } from '../models/CalendarViewEnum.js';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class BusViewService {
|
|
15
|
+
private onViewChanged;
|
|
16
|
+
private bottom;
|
|
17
|
+
private top;
|
|
18
|
+
constructor(onViewChanged: any);
|
|
19
|
+
configure(bottom: CalendarViewEnum, top: CalendarViewEnum): void;
|
|
20
|
+
service(view: CalendarViewEnum, intl: IntlService): ViewService;
|
|
21
|
+
moveDown(view: CalendarViewEnum, event?: React.SyntheticEvent<any>): void;
|
|
22
|
+
moveUp(view: CalendarViewEnum, event?: React.SyntheticEvent<any>): void;
|
|
23
|
+
moveToBottom(activeView: CalendarViewEnum): void;
|
|
24
|
+
canMoveDown(view: CalendarViewEnum): boolean;
|
|
25
|
+
canMoveUp(view: CalendarViewEnum): boolean;
|
|
26
|
+
private clamp;
|
|
27
|
+
private move;
|
|
28
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { Action, CellContext, ViewService } from '../models/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class CenturyViewService implements ViewService {
|
|
13
|
+
addToDate(min: Date, skip: number): Date;
|
|
14
|
+
datesList(start: Date, count: number): Date[];
|
|
15
|
+
data(options: any): CellContext[][];
|
|
16
|
+
isSelectedFromArray(candidate: Date, dates: Date[], min: Date, max: Date): boolean;
|
|
17
|
+
isEqual(candidate: Date | null, expected: Date | null): boolean;
|
|
18
|
+
isInArray(date: Date, dates: Date[]): boolean;
|
|
19
|
+
isInRange(candidate: Date, min: Date, max: Date): boolean;
|
|
20
|
+
isInSameView(candidate: Date, value: Date): boolean;
|
|
21
|
+
isRangeStart(value: Date): boolean;
|
|
22
|
+
move(value: Date, action: Action): Date;
|
|
23
|
+
cellTitle(value: Date): string;
|
|
24
|
+
navigationTitle(value?: Date): string;
|
|
25
|
+
title(value?: Date): string;
|
|
26
|
+
rowLength(_?: boolean): number;
|
|
27
|
+
skip(value: Date, min: Date): number;
|
|
28
|
+
total(min: Date, max: Date): number;
|
|
29
|
+
value(current: Date): string;
|
|
30
|
+
viewDate(date: Date, max: Date, border?: number): Date;
|
|
31
|
+
private normalize;
|
|
32
|
+
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { addCenturies as g, firstDecadeOfCentury as E, lastDecadeOfCentury as I, addDecades as c, firstYearOfDecade as o, durationInCenturies as d, cloneDate as p } from "@progress/kendo-date-math";
|
|
9
9
|
import { Action as l } from "../models/NavigationAction.mjs";
|
|
10
10
|
import { EMPTY_SELECTIONRANGE as M } from "../models/SelectionRange.mjs";
|
|
11
|
-
import { range as m, getToday as N,
|
|
11
|
+
import { range as m, getToday as N, isInSelectionRange as O, isInRange as w, intersects as _ } from "../../utils.mjs";
|
|
12
12
|
const $ = [[]], T = 4, b = 3, G = {
|
|
13
13
|
[l.Left]: (i) => c(i, -1),
|
|
14
14
|
[l.Up]: (i) => c(i, -5),
|
|
@@ -43,8 +43,8 @@ class W {
|
|
|
43
43
|
return m(0, b).map((V) => {
|
|
44
44
|
const L = c(S, V * T);
|
|
45
45
|
return q.map((C) => {
|
|
46
|
-
const n = this.normalize(c(L, C), a, s), y = this.isEqual(n, h.start), D = this.isEqual(n, h.end), Y = !y && !D &&
|
|
47
|
-
return
|
|
46
|
+
const n = this.normalize(c(L, C), a, s), y = this.isEqual(n, h.start), D = this.isEqual(n, h.end), Y = !y && !D && O(n, h), v = u && (Array.isArray(f) ? this.isSelectedFromArray(n, f, a, s) : w(f, a, s) && this.isEqual(n, f));
|
|
47
|
+
return _(n, S, R) ? {
|
|
48
48
|
formattedValue: this.value(n),
|
|
49
49
|
id: `${t}${n.getTime()}`,
|
|
50
50
|
isFocused: this.isEqual(n, r),
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { CalendarViewEnum } from '../models/CalendarViewEnum.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class DOMService {
|
|
13
|
+
calendarHeight: number;
|
|
14
|
+
headerHeight: number;
|
|
15
|
+
monthViewHeight: number;
|
|
16
|
+
yearViewHeight: number;
|
|
17
|
+
decadeViewHeight: number;
|
|
18
|
+
centuryViewHeight: number;
|
|
19
|
+
navigationItemHeight: number;
|
|
20
|
+
scrollableContentHeight: number;
|
|
21
|
+
scrollableYearContentHeight: number;
|
|
22
|
+
calendarWidth: number;
|
|
23
|
+
monthViewWidth: number;
|
|
24
|
+
yearViewWidth: number;
|
|
25
|
+
decadeViewWidth: number;
|
|
26
|
+
centuryViewWidth: number;
|
|
27
|
+
scrollableContentWidth: number;
|
|
28
|
+
didCalculate: boolean;
|
|
29
|
+
private hostContainer;
|
|
30
|
+
ensureHeights(): void;
|
|
31
|
+
calculateHeights(container?: HTMLElement, unstyled?: any): void;
|
|
32
|
+
viewHeight(viewType: CalendarViewEnum): number;
|
|
33
|
+
viewWidth(viewType: CalendarViewEnum): number;
|
|
34
|
+
private viewDimension;
|
|
35
|
+
private batch;
|
|
36
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { Action } from '../models/NavigationAction.js';
|
|
9
|
+
import { CellContext } from '../models/CellContext.js';
|
|
10
|
+
import { ViewService } from '../models/ViewService.js';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class DecadeViewService implements ViewService {
|
|
15
|
+
addToDate(min: Date, skip: number): Date;
|
|
16
|
+
datesList(start: Date, count: number): Date[];
|
|
17
|
+
data(options: any): CellContext[][];
|
|
18
|
+
isSelectedFromArray(candidate: Date, dates: Date[], min: Date, max: Date): boolean;
|
|
19
|
+
isEqual(candidate: Date | null, expected: Date | null): boolean;
|
|
20
|
+
isInArray(date: Date, dates: Date[]): boolean;
|
|
21
|
+
isInRange(candidate: Date, min: Date, max: Date): boolean;
|
|
22
|
+
isRangeStart(value: Date): boolean;
|
|
23
|
+
isInSameView(candidate: Date, value: Date): boolean;
|
|
24
|
+
move(value: Date, action: Action): Date;
|
|
25
|
+
cellTitle(value: Date): string;
|
|
26
|
+
navigationTitle(value?: Date): string;
|
|
27
|
+
title(value?: Date): string;
|
|
28
|
+
rowLength(_?: boolean): number;
|
|
29
|
+
skip(value: Date, min: Date): number;
|
|
30
|
+
total(min: Date, max: Date): number;
|
|
31
|
+
value(current: Date): string;
|
|
32
|
+
viewDate(date: Date, max: Date, border?: number): Date;
|
|
33
|
+
private normalize;
|
|
34
|
+
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { addDecades as c, firstYearOfDecade as f, lastYearOfDecade as T, addYears as u, durationInDecades as d, cloneDate as p } from "@progress/kendo-date-math";
|
|
9
9
|
import { Action as l } from "../models/NavigationAction.mjs";
|
|
10
10
|
import { EMPTY_SELECTIONRANGE as M } from "../models/SelectionRange.mjs";
|
|
11
|
-
import { range as S, getToday as N,
|
|
11
|
+
import { range as S, getToday as N, isInSelectionRange as O, isInRange as m, intersects as _ } from "../../utils.mjs";
|
|
12
12
|
const $ = [[]], w = 4, b = 3, C = {
|
|
13
13
|
[l.Left]: (i) => u(i, -1),
|
|
14
14
|
[l.Up]: (i) => u(i, -5),
|
|
@@ -43,8 +43,8 @@ class U {
|
|
|
43
43
|
return S(0, b).map((y) => {
|
|
44
44
|
const V = u(Y, y * w);
|
|
45
45
|
return q.map((L) => {
|
|
46
|
-
const s = this.normalize(u(V, L), a, n), I = this.isEqual(s, E.start), R = this.isEqual(s, E.end), F = !I && !R &&
|
|
47
|
-
return
|
|
46
|
+
const s = this.normalize(u(V, L), a, n), I = this.isEqual(s, E.start), R = this.isEqual(s, E.end), F = !I && !R && O(s, E), v = o && (Array.isArray(g) ? this.isSelectedFromArray(s, g, a, n) : m(g, a, n) && this.isEqual(s, g));
|
|
47
|
+
return _(s, Y, D) ? {
|
|
48
48
|
formattedValue: this.value(s),
|
|
49
49
|
id: `${t}${s.getTime()}`,
|
|
50
50
|
isFocused: this.isEqual(s, r),
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { IntlService } from '@progress/kendo-react-intl';
|
|
9
|
+
import { Action } from '../models/NavigationAction.js';
|
|
10
|
+
import { CellContext } from '../models/CellContext.js';
|
|
11
|
+
import { ViewService } from '../models/ViewService.js';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare class MonthViewService implements ViewService {
|
|
16
|
+
private intl;
|
|
17
|
+
constructor(intl: IntlService);
|
|
18
|
+
addToDate(min: Date, skip: number): Date;
|
|
19
|
+
datesList(start: Date, count: number): Date[];
|
|
20
|
+
data(options: any): CellContext[][];
|
|
21
|
+
isEqual(candidate: Date | null, expected: Date | null): boolean;
|
|
22
|
+
isSelectedFromArray(candidate: Date, dates: Date[], min: Date, max: Date): boolean;
|
|
23
|
+
isInArray(date: Date, dates: Date[]): boolean;
|
|
24
|
+
isInRange(candidate: Date, min: Date, max: Date): boolean;
|
|
25
|
+
isInSameView(candidate: Date, value: Date): boolean;
|
|
26
|
+
isRangeStart(value: Date): boolean;
|
|
27
|
+
move(value: Date, action: Action): Date;
|
|
28
|
+
cellTitle(value: Date): string;
|
|
29
|
+
navigationTitle(value?: Date): string;
|
|
30
|
+
title(current: Date): string;
|
|
31
|
+
rowLength(prependCell?: boolean): number;
|
|
32
|
+
skip(value: Date, min: Date): number;
|
|
33
|
+
total(min: Date, max: Date): number;
|
|
34
|
+
value(current: Date): string;
|
|
35
|
+
viewDate(date: Date, max: Date, border?: number): Date;
|
|
36
|
+
isWeekend(date: Date): boolean;
|
|
37
|
+
private abbrMonthNames;
|
|
38
|
+
private normalize;
|
|
39
|
+
private wideMonthNames;
|
|
40
|
+
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { addMonths as h, firstDayOfMonth as y, lastDayOfMonth as D, dayOfWeek as W, addDays as g, getDate as u, durationInMonths as d, addWeeks as N } from "@progress/kendo-date-math";
|
|
9
9
|
import { Action as o } from "../models/NavigationAction.mjs";
|
|
10
10
|
import { EMPTY_SELECTIONRANGE as Y } from "../models/SelectionRange.mjs";
|
|
11
|
-
import { range as w, getToday as U,
|
|
11
|
+
import { range as w, getToday as U, isInSelectionRange as _, isInRange as T } from "../../utils.mjs";
|
|
12
12
|
const $ = [[]], S = 7, C = 6, G = 6, P = 0, z = {
|
|
13
13
|
[o.Left]: (i) => g(i, -1),
|
|
14
14
|
[o.Up]: (i) => N(i, -1),
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { Action } from '../models/NavigationAction.js';
|
|
9
|
+
import { CalendarViewEnum } from '../models/CalendarViewEnum.js';
|
|
10
|
+
import { BusViewService } from '../services/BusViewService.js';
|
|
11
|
+
import { ViewService } from '../models/ViewService.js';
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare class NavigationService {
|
|
17
|
+
private bus;
|
|
18
|
+
constructor(bus: BusViewService);
|
|
19
|
+
action(event: React.KeyboardEvent<any>): Action;
|
|
20
|
+
move(value: Date, action: Action, activeView: CalendarViewEnum, service: ViewService, event?: React.SyntheticEvent<any>): Date;
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { Virtualization } from '../../virtualization/Virtualization.js';
|
|
9
|
+
import { DOMService } from './DOMService.js';
|
|
10
|
+
import { CalendarViewEnum } from '../models/CalendarViewEnum.js';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class ScrollSyncService {
|
|
15
|
+
dom: DOMService;
|
|
16
|
+
private divideByMagnitude;
|
|
17
|
+
private powerByMagnitude;
|
|
18
|
+
private navigator;
|
|
19
|
+
private view;
|
|
20
|
+
private monthScrolled;
|
|
21
|
+
private navScrolled;
|
|
22
|
+
constructor(dom: DOMService);
|
|
23
|
+
configure(activeView: CalendarViewEnum): void;
|
|
24
|
+
sync(navigator: Virtualization, view: Virtualization, e: any): void;
|
|
25
|
+
scrollSiblingOf(scrolledElement: any): void;
|
|
26
|
+
siblingComponent(scrollableElement: HTMLElement): Virtualization;
|
|
27
|
+
calculateScroll(component: Virtualization, scrollTop: number): number;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { IntlService } from '@progress/kendo-react-intl';
|
|
9
|
+
import { WeekDaysFormat } from '../models/WeekDaysFormat.js';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class WeekNamesService {
|
|
14
|
+
private intl;
|
|
15
|
+
constructor(intl: IntlService);
|
|
16
|
+
getWeekNames(includeWeekNumber?: boolean, weekDaysFormat?: WeekDaysFormat): string[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { IntlService } from '@progress/kendo-react-intl';
|
|
9
|
+
import { Action } from '../models/NavigationAction.js';
|
|
10
|
+
import { CellContext } from '../models/CellContext.js';
|
|
11
|
+
import { ViewService } from '../models/ViewService.js';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare class YearViewService implements ViewService {
|
|
16
|
+
private _intl;
|
|
17
|
+
constructor(intl: IntlService);
|
|
18
|
+
addToDate(min: Date, skip: number): Date;
|
|
19
|
+
datesList(start: Date, count: number): Date[];
|
|
20
|
+
data(options: any): CellContext[][];
|
|
21
|
+
isSelectedFromArray(candidate: Date, dates: Date[], min: Date, max: Date): boolean;
|
|
22
|
+
isEqual(candidate: Date | null, expected: Date | null): boolean;
|
|
23
|
+
isInArray(date: Date, dates: Date[]): boolean;
|
|
24
|
+
isInRange(candidate: Date, min: Date, max: Date): boolean;
|
|
25
|
+
isInSameView(candidate: Date, value: Date): boolean;
|
|
26
|
+
isRangeStart(value: Date): boolean;
|
|
27
|
+
move(value: Date, action: Action): Date;
|
|
28
|
+
cellTitle(value: Date): string;
|
|
29
|
+
navigationTitle(value?: Date): string;
|
|
30
|
+
title(current?: Date): string;
|
|
31
|
+
rowLength(_?: boolean): number;
|
|
32
|
+
skip(value: Date, min: Date): number;
|
|
33
|
+
total(min: Date, max: Date): number;
|
|
34
|
+
value(current: Date): string;
|
|
35
|
+
viewDate(date: Date, max: Date, border?: number): Date;
|
|
36
|
+
private abbrMonthNames;
|
|
37
|
+
private normalize;
|
|
38
|
+
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { addYears as g, firstMonthOfYear as I, lastMonthOfYear as R, addMonths as u, createDate as M, durationInYears as h, cloneDate as p } from "@progress/kendo-date-math";
|
|
9
9
|
import { Action as o } from "../models/NavigationAction.mjs";
|
|
10
|
-
import { range as m, getToday as _,
|
|
10
|
+
import { range as m, getToday as _, isInSelectionRange as O, isInRange as F } from "../../utils.mjs";
|
|
11
11
|
import { EMPTY_SELECTIONRANGE as $ } from "../models/SelectionRange.mjs";
|
|
12
12
|
const C = [[]], S = 4, G = 3, P = (r) => r > 4 ? -5 : r < 2 ? -2 : -7, k = (r) => r < 7 ? 5 : r < 10 ? 7 : 2, z = {
|
|
13
13
|
[o.Left]: (r) => u(r, -1),
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { BusViewService } from './BusViewService.js';
|
|
9
|
+
import { CenturyViewService } from './CenturyViewService.js';
|
|
10
|
+
import { DecadeViewService } from './DecadeViewService.js';
|
|
11
|
+
import { DOMService } from './DOMService.js';
|
|
12
|
+
import { MonthViewService } from './MonthViewService.js';
|
|
13
|
+
import { NavigationService } from './NavigationService.js';
|
|
14
|
+
import { ScrollSyncService } from './ScrollSyncService.js';
|
|
15
|
+
import { WeekNamesService } from './WeekNamesService.js';
|
|
16
|
+
import { YearViewService } from './YearViewService.js';
|
|
17
|
+
export { BusViewService, CenturyViewService, DecadeViewService, DOMService, MonthViewService, NavigationService, ScrollSyncService, WeekNamesService, YearViewService };
|