@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.
Files changed (125) hide show
  1. package/PopupSettings.d.ts +22 -0
  2. package/calendar/components/Calendar.d.ts +202 -0
  3. package/calendar/components/Calendar.mjs +7 -7
  4. package/calendar/components/CalendarCell.d.ts +71 -0
  5. package/calendar/components/CalendarHeaderTitle.d.ts +38 -0
  6. package/calendar/components/CalendarNavigationItem.d.ts +39 -0
  7. package/calendar/components/CalendarWeekCell.d.ts +42 -0
  8. package/calendar/components/Header.d.ts +65 -0
  9. package/calendar/components/Header.mjs +3 -3
  10. package/calendar/components/HorizontalViewList.d.ts +80 -0
  11. package/calendar/components/HorizontalViewList.mjs +3 -3
  12. package/calendar/components/MultiViewCalendar.d.ts +226 -0
  13. package/calendar/components/MultiViewCalendar.js +1 -1
  14. package/calendar/components/MultiViewCalendar.mjs +17 -17
  15. package/calendar/components/Navigation.d.ts +85 -0
  16. package/calendar/components/TodayCommand.d.ts +46 -0
  17. package/calendar/components/TodayCommand.mjs +3 -3
  18. package/calendar/components/View.d.ts +101 -0
  19. package/calendar/components/ViewList.d.ts +128 -0
  20. package/calendar/models/ActiveView.d.ts +11 -0
  21. package/calendar/models/CalendarSettings.d.ts +256 -0
  22. package/calendar/models/CalendarViewEnum.d.ts +16 -0
  23. package/calendar/models/CellContext.d.ts +72 -0
  24. package/calendar/models/MultiViewCalendarMode.d.ts +16 -0
  25. package/calendar/models/MultiViewCalendarSettings.d.ts +129 -0
  26. package/calendar/models/NavigationAction.d.ts +22 -0
  27. package/calendar/models/SelectionRange.d.ts +24 -0
  28. package/calendar/models/SelectionRangeEnd.d.ts +11 -0
  29. package/calendar/models/ViewService.d.ts +32 -0
  30. package/calendar/models/WeekDaysFormat.d.ts +11 -0
  31. package/calendar/models/index.d.ts +18 -0
  32. package/calendar/services/BusViewService.d.ts +28 -0
  33. package/calendar/services/CenturyViewService.d.ts +32 -0
  34. package/calendar/services/CenturyViewService.mjs +4 -4
  35. package/calendar/services/DOMService.d.ts +36 -0
  36. package/calendar/services/DecadeViewService.d.ts +34 -0
  37. package/calendar/services/DecadeViewService.mjs +4 -4
  38. package/calendar/services/MonthViewService.d.ts +40 -0
  39. package/calendar/services/MonthViewService.mjs +2 -2
  40. package/calendar/services/NavigationService.d.ts +21 -0
  41. package/calendar/services/ScrollSyncService.d.ts +28 -0
  42. package/calendar/services/WeekNamesService.d.ts +17 -0
  43. package/calendar/services/YearViewService.d.ts +38 -0
  44. package/calendar/services/YearViewService.mjs +2 -2
  45. package/calendar/services/index.d.ts +17 -0
  46. package/calendar/utils/ScrollSync.d.ts +20 -0
  47. package/codemods/utils.js +1 -8
  48. package/codemods/v11/dateinput-handle.js +1 -8
  49. package/codemods/v11/datepicker-handle.js +1 -8
  50. package/common/AdaptiveMode.d.ts +22 -0
  51. package/common/ClearButton.d.ts +20 -0
  52. package/dateinput/DateInput.d.ts +248 -0
  53. package/dateinput/DateInput.js +1 -1
  54. package/dateinput/DateInput.mjs +63 -65
  55. package/dateinput/dateInputIntl.d.ts +30 -0
  56. package/dateinput/models/DateInputSettings.d.ts +107 -0
  57. package/dateinput/models/common-package-props.d.ts +34 -0
  58. package/dateinput/models/dateinput-options.d.ts +105 -0
  59. package/dateinput/models/format-placeholder.d.ts +46 -0
  60. package/dateinput/models/incremental-steps.d.ts +24 -0
  61. package/dateinput/models/index.d.ts +15 -0
  62. package/dateinput/models/kendo-date.d.ts +60 -0
  63. package/dateinput/models/mask.d.ts +14 -0
  64. package/dateinput/models/selection.d.ts +14 -0
  65. package/dateinput/utils.d.ts +31 -0
  66. package/datepicker/DatePicker.d.ts +279 -0
  67. package/datepicker/DatePicker.js +1 -1
  68. package/datepicker/DatePicker.mjs +68 -72
  69. package/datepicker/ToggleButton.d.ts +17 -0
  70. package/datepicker/models/DatePickerSettings.d.ts +248 -0
  71. package/datepicker/models/index.d.ts +9 -0
  72. package/daterangepicker/DateRangePicker.d.ts +357 -0
  73. package/daterangepicker/DateRangePicker.mjs +13 -13
  74. package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +13 -0
  75. package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +13 -0
  76. package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +13 -0
  77. package/daterangepicker/models/DateRangePickerSettings.d.ts +129 -0
  78. package/daterangepicker/models/index.d.ts +12 -0
  79. package/datetimepicker/DateTimePicker.d.ts +420 -0
  80. package/datetimepicker/DateTimePicker.js +1 -1
  81. package/datetimepicker/DateTimePicker.mjs +16 -20
  82. package/datetimepicker/DateTimeSelector.d.ts +111 -0
  83. package/datetimepicker/DateTimeSelector.mjs +3 -3
  84. package/datetimepicker/models/DateTimePickerSettings.d.ts +154 -0
  85. package/datetimepicker/models/index.d.ts +9 -0
  86. package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
  87. package/hooks/usePickerFloatingLabel.d.ts +27 -0
  88. package/index.d.mts +35 -4952
  89. package/index.d.ts +35 -4952
  90. package/messages/index.d.ts +132 -0
  91. package/package-metadata.d.ts +12 -0
  92. package/package-metadata.js +1 -1
  93. package/package-metadata.mjs +10 -16
  94. package/package.json +8 -8
  95. package/timepicker/TimeList.d.ts +97 -0
  96. package/timepicker/TimeList.js +5 -5
  97. package/timepicker/TimeList.mjs +122 -112
  98. package/timepicker/TimePart.d.ts +146 -0
  99. package/timepicker/TimePart.mjs +3 -3
  100. package/timepicker/TimePicker.d.ts +417 -0
  101. package/timepicker/TimePicker.js +1 -1
  102. package/timepicker/TimePicker.mjs +64 -68
  103. package/timepicker/TimeSelector.d.ts +149 -0
  104. package/timepicker/TimeSelector.mjs +3 -3
  105. package/timepicker/models/IncrementalSteps.d.ts +18 -0
  106. package/timepicker/models/ListItem.d.ts +14 -0
  107. package/timepicker/models/ListService.d.ts +22 -0
  108. package/timepicker/models/ListServiceSettings.d.ts +19 -0
  109. package/timepicker/models/TimePart.d.ts +17 -0
  110. package/timepicker/models/TimePickerSettings.d.ts +137 -0
  111. package/timepicker/models/index.d.ts +14 -0
  112. package/timepicker/services/DOMService.d.ts +18 -0
  113. package/timepicker/services/DayPeriodService.d.ts +54 -0
  114. package/timepicker/services/HoursService.d.ts +40 -0
  115. package/timepicker/services/MinutesService.d.ts +39 -0
  116. package/timepicker/services/SecondsService.d.ts +39 -0
  117. package/timepicker/services/index.d.ts +13 -0
  118. package/timepicker/utils.d.ts +63 -0
  119. package/timepicker/utils.mjs +1 -1
  120. package/utils.d.ts +103 -0
  121. package/utils.js +1 -1
  122. package/utils.mjs +46 -46
  123. package/virtualization/Virtualization.d.ts +125 -0
  124. package/virtualization/services/ScrollerService.d.ts +56 -0
  125. package/virtualization/services/index.d.ts +10 -0
@@ -0,0 +1,111 @@
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 { LocalizationService, DateFormatOptions } from '@progress/kendo-react-intl';
9
+ import { Calendar, CalendarProps } from '../calendar/components/Calendar.js';
10
+ import { TimePart } from '../timepicker/TimePart.js';
11
+ import { DateInputsClassStructure } from '@progress/kendo-react-common';
12
+ import { DateInputIncrementalSteps } from '../dateinput/models/index.js';
13
+ import * as React from 'react';
14
+ /**
15
+ * @hidden
16
+ */
17
+ export interface DateTimeSelectorChangeEvent<T = DateTimeSelector> {
18
+ nativeEvent?: any;
19
+ syntheticEvent: React.SyntheticEvent<any>;
20
+ value: Date | null;
21
+ target: T;
22
+ cancelButton?: boolean;
23
+ }
24
+ /**
25
+ * @hidden
26
+ */
27
+ export interface DateTimeSelectorRejectEvent<T = DateTimeSelector> {
28
+ nativeEvent?: any;
29
+ syntheticEvent: React.SyntheticEvent<any>;
30
+ value: Date | null;
31
+ target: T;
32
+ cancelButton?: boolean;
33
+ }
34
+ /**
35
+ * @hidden
36
+ */
37
+ export interface DateTimeSelectorProps<T = DateTimeSelector> {
38
+ value: Date | null;
39
+ onChange: (event: DateTimeSelectorChangeEvent<T>) => void;
40
+ onReject: (event: DateTimeSelectorRejectEvent<T>) => void;
41
+ disabled?: boolean;
42
+ cancelButton?: boolean;
43
+ min: Date;
44
+ max: Date;
45
+ minTime?: Date;
46
+ maxTime?: Date;
47
+ weekNumber?: boolean;
48
+ focusedDate?: Date;
49
+ format?: string | DateFormatOptions;
50
+ calendar?: React.ComponentType<CalendarProps<any>>;
51
+ steps?: DateInputIncrementalSteps;
52
+ mobileMode?: boolean;
53
+ footerActions?: boolean;
54
+ unstyled?: DateInputsClassStructure;
55
+ }
56
+ /**
57
+ * @hidden
58
+ */
59
+ export interface DateTimeSelectorState {
60
+ tab: 'date' | 'time';
61
+ dateValue: Date | null;
62
+ timeValue: Date;
63
+ }
64
+ /**
65
+ * @hidden
66
+ */
67
+ export declare class DateTimeSelector extends React.Component<DateTimeSelectorProps, DateTimeSelectorState> {
68
+ /**
69
+ * @hidden
70
+ */
71
+ static defaultProps: {
72
+ footerActions: boolean;
73
+ };
74
+ private _calendar;
75
+ private _timePart;
76
+ private _cancelButton;
77
+ private _acceptButton;
78
+ private _dateButtonRef;
79
+ private _calendarWrap;
80
+ private shouldFocusPart;
81
+ get calendar(): Calendar | null;
82
+ get timePart(): TimePart | null;
83
+ protected get hasDateValue(): boolean;
84
+ protected get localizationService(): LocalizationService;
85
+ constructor(props: DateTimeSelectorProps);
86
+ componentDidUpdate(prevProps: DateTimeSelectorProps, prevState: DateTimeSelectorState): void;
87
+ render(): React.JSX.Element;
88
+ focus: (args?: FocusOptions) => void;
89
+ private calendarElement;
90
+ protected get minTime(): Date | null;
91
+ protected get maxTime(): Date | null;
92
+ protected normalizeRange(candidate: Date, value: Date | null): Date | null;
93
+ protected hasActiveButton(): boolean | null;
94
+ protected mergeTime(current: Date | null, candidate: Date | null): Date | null;
95
+ protected mergeDate(candidate: Date | null, value: Date): Date | null;
96
+ protected move: (direction: 'left' | 'right') => void;
97
+ private dateTimeFooter;
98
+ handleReject: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
99
+ handleAccept: (event: React.SyntheticEvent<HTMLButtonElement>, timeOverride?: Date) => void;
100
+ private handleNowClick;
101
+ private handleCalendarValueChange;
102
+ private handleTimeListContainerChange;
103
+ private handleDateClick;
104
+ private handleTimeClick;
105
+ private handleKeyDown;
106
+ private handleCancelKeyDown;
107
+ private handleSetKeyDown;
108
+ private handleDateKeyDown;
109
+ private handleTimeKeyDown;
110
+ private handleTimePartMount;
111
+ }
@@ -11,7 +11,7 @@ import { dateTimePickerCancel as D, messages as f, dateTimePickerSet as _, date
11
11
  import { Button as g, ButtonGroup as x } from "@progress/kendo-react-buttons";
12
12
  import { Calendar as z } from "../calendar/components/Calendar.mjs";
13
13
  import { TimePart as A } from "../timepicker/TimePart.mjs";
14
- import { MIDNIGHT_DATE as v, MIN_TIME as F, MAX_TIME as L, getToday as V, setTime as P } from "../utils.mjs";
14
+ import { MIDNIGHT_DATE as v, MAX_TIME as F, MIN_TIME as L, getToday as V, setTime as P } from "../utils.mjs";
15
15
  import { isEqualDate as k } from "@progress/kendo-date-math";
16
16
  import { classNames as l, uDateTimePicker as u, uTime as B, Keys as h, getActiveElement as I } from "@progress/kendo-react-common";
17
17
  import { getNow as w } from "../timepicker/utils.mjs";
@@ -225,8 +225,8 @@ const y = class y extends i.Component {
225
225
  ref: (c) => {
226
226
  this._timePart = c;
227
227
  },
228
- min: this.minTime || F,
229
- max: this.maxTime || L,
228
+ min: this.minTime || L,
229
+ max: this.maxTime || F,
230
230
  steps: this.props.steps,
231
231
  value: this.state.timeValue,
232
232
  format: r,
@@ -0,0 +1,154 @@
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 React } from 'react';
9
+ import { DateInputFormatPlaceholder } from '../../dateinput/models/format-placeholder.js';
10
+ import { DateFormatOptions } from '@progress/kendo-react-intl';
11
+ import { CalendarProps } from '../../calendar/components/Calendar.js';
12
+ import { PopupProps } from '@progress/kendo-react-popup';
13
+ import { DateInputIncrementalSteps, DateInputProps } from '../../index.js';
14
+ /**
15
+ * @hidden
16
+ */
17
+ export interface DateTimePickerSettings {
18
+ /**
19
+ * Enables the customization or the override of the default Calendar which is rendered by the DateTimePicker
20
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/custom-rendering#toc-customizing-the-calendar)).
21
+ */
22
+ calendar?: React.ComponentType<CalendarProps>;
23
+ /**
24
+ * Enables the customization or the override of the default Popup which is rendered by the DateTimePicker
25
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/custom-rendering#toc-customizing-the-popup)).
26
+ */
27
+ popup?: React.ComponentType<PopupProps>;
28
+ /**
29
+ * Enables the customization or the override of the default DateInput which is rendered by the DateTimePicker
30
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/custom-rendering#toc-customizing-the-dateinput)).
31
+ */
32
+ dateInput?: React.ComponentType<DateInputProps>;
33
+ /**
34
+ * Sets the `className` of the DateTimePicker.
35
+ */
36
+ className?: string;
37
+ /**
38
+ * Sets if the calendar popup is opened upon initial render.
39
+ * For more information, refer to the article on
40
+ * [uncontrolled components in React](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
41
+ */
42
+ defaultShow?: boolean;
43
+ /**
44
+ * Specifies the incremental steps of the `DateInput` and the internal `TimePart` ([see examples](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/incremental-steps)).
45
+ *
46
+ * The available options are:
47
+ * - `year: Number`&mdash;Controls the incremental step of the year value.
48
+ * - `month: Number`&mdash;Controls the incremental step of the month value.
49
+ * - `day: Number`&mdash;Controls the incremental step of the day value.
50
+ * - `hour: Number`&mdash;Controls the incremental step of the hour value.
51
+ * - `minute: Number`&mdash;Controls the incremental step of the minute value.
52
+ * - `second: Number`&mdash;Controls the incremental step of the second value.
53
+ */
54
+ steps?: DateInputIncrementalSteps;
55
+ /**
56
+ * Determines whether the DateTimePicker is disabled
57
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/disabled-state)).
58
+ */
59
+ disabled?: boolean;
60
+ /**
61
+ * Specifies the initial focusedDate of the Calendar inside the DateTimePicker
62
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/date)).
63
+ */
64
+ focusedDate?: Date;
65
+ /**
66
+ * Specifies the date format that is used to display the input value
67
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/formats)).
68
+ */
69
+ format?: string | DateFormatOptions;
70
+ /**
71
+ * Defines the descriptions of the format sections in the input field
72
+ * ([more information and examples](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/placeholders)).
73
+ */
74
+ formatPlaceholder?: DateInputFormatPlaceholder;
75
+ /**
76
+ * Specifies the `id` of the DateTimePicker.
77
+ */
78
+ id?: string;
79
+ /**
80
+ * 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).
81
+ * For example these elements could contain error or hint message.
82
+ */
83
+ ariaDescribedBy?: string;
84
+ /**
85
+ * Identifies the element(s) which will label the component.
86
+ */
87
+ ariaLabelledBy?: string;
88
+ /**
89
+ * Specifies the greatest valid date
90
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/date-ranges)).
91
+ */
92
+ max?: Date;
93
+ /**
94
+ * Specifies the smallest valid date
95
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/date-ranges)).
96
+ */
97
+ min?: Date;
98
+ /**
99
+ * Specifies the smallest valid time within the day ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/date-ranges)).
100
+ */
101
+ minTime?: Date;
102
+ /**
103
+ * Specifies the greatest valid time within the day ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/date-ranges)).
104
+ */
105
+ maxTime?: Date;
106
+ /**
107
+ * Specifies the `name` property of the `input` DOM element.
108
+ */
109
+ name?: string;
110
+ /**
111
+ * Fires each time any of the DateTimePicker elements gets blurred.
112
+ */
113
+ onBlur?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
114
+ /**
115
+ * Fires each time the user focuses any of the DateTimePicker elements.
116
+ */
117
+ onFocus?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
118
+ /**
119
+ * Specifies if the popup will be displayed
120
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/controlled-state#toc-controlling-the-popup-state)).
121
+ */
122
+ show?: boolean;
123
+ /**
124
+ * Sets the `tabIndex` property of the DateTimePicker.
125
+ */
126
+ tabIndex?: number;
127
+ /**
128
+ * Sets the title of the `input` element of the DateTimePicker.
129
+ */
130
+ title?: string;
131
+ /**
132
+ * Determines whether to display a week number column of the Calendar inside the DateTimePicker
133
+ * ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/weeks-numbers)).
134
+ */
135
+ weekNumber?: boolean;
136
+ /**
137
+ * Specifies the width of the DateTimePicker.
138
+ */
139
+ width?: number | string;
140
+ /**
141
+ * Determines whether to display the **Cancel** button in the popup.
142
+ */
143
+ cancelButton?: boolean;
144
+ /**
145
+ * Renders a floating label for the DateTimePicker.
146
+ */
147
+ label?: React.ReactNode;
148
+ /**
149
+ * Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
150
+ * For more information, refer to the article on
151
+ * [placeholders](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/placeholders).
152
+ */
153
+ placeholder?: string | null;
154
+ }
@@ -0,0 +1,9 @@
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 { DateTimePickerSettings } from './DateTimePickerSettings.js';
9
+ export { DateTimePickerSettings };