@progress/kendo-react-dateinputs 7.2.4-develop.3 → 7.3.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.
Files changed (200) hide show
  1. package/calendar/components/Calendar.js +12 -0
  2. package/calendar/components/Calendar.mjs +328 -0
  3. package/calendar/components/CalendarCell.js +8 -0
  4. package/calendar/components/CalendarCell.mjs +101 -0
  5. package/calendar/components/CalendarHeaderTitle.js +8 -0
  6. package/calendar/components/CalendarHeaderTitle.mjs +23 -0
  7. package/calendar/components/CalendarNavigationItem.js +8 -0
  8. package/calendar/components/CalendarNavigationItem.mjs +29 -0
  9. package/calendar/components/CalendarWeekCell.js +8 -0
  10. package/calendar/components/CalendarWeekCell.mjs +23 -0
  11. package/calendar/components/Header.js +8 -0
  12. package/calendar/components/Header.mjs +78 -0
  13. package/calendar/components/HorizontalViewList.js +8 -0
  14. package/calendar/components/HorizontalViewList.mjs +120 -0
  15. package/calendar/components/MultiViewCalendar.js +8 -0
  16. package/calendar/components/MultiViewCalendar.mjs +428 -0
  17. package/calendar/components/Navigation.js +8 -0
  18. package/calendar/components/Navigation.mjs +117 -0
  19. package/calendar/components/TodayCommand.js +8 -0
  20. package/calendar/components/TodayCommand.mjs +74 -0
  21. package/calendar/components/View.js +8 -0
  22. package/calendar/components/View.mjs +153 -0
  23. package/calendar/components/ViewList.js +8 -0
  24. package/calendar/components/ViewList.mjs +228 -0
  25. package/calendar/models/CalendarViewEnum.js +8 -0
  26. package/calendar/models/CalendarViewEnum.mjs +12 -0
  27. package/calendar/models/NavigationAction.js +8 -0
  28. package/calendar/models/NavigationAction.mjs +12 -0
  29. package/calendar/models/SelectionRange.js +8 -0
  30. package/calendar/models/SelectionRange.mjs +12 -0
  31. package/calendar/services/BusViewService.js +8 -0
  32. package/calendar/services/BusViewService.mjs +58 -0
  33. package/calendar/services/CenturyViewService.js +8 -0
  34. package/calendar/services/CenturyViewService.mjs +126 -0
  35. package/calendar/services/DOMService.js +14 -0
  36. package/calendar/services/DOMService.mjs +124 -0
  37. package/calendar/services/DecadeViewService.js +8 -0
  38. package/calendar/services/DecadeViewService.mjs +126 -0
  39. package/calendar/services/MonthViewService.js +8 -0
  40. package/calendar/services/MonthViewService.mjs +139 -0
  41. package/calendar/services/NavigationService.js +8 -0
  42. package/calendar/services/NavigationService.mjs +36 -0
  43. package/calendar/services/ScrollSyncService.js +8 -0
  44. package/calendar/services/ScrollSyncService.mjs +50 -0
  45. package/calendar/services/WeekNamesService.js +8 -0
  46. package/calendar/services/WeekNamesService.mjs +24 -0
  47. package/calendar/services/YearViewService.js +8 -0
  48. package/calendar/services/YearViewService.mjs +135 -0
  49. package/common/AdaptiveMode.js +8 -0
  50. package/common/AdaptiveMode.mjs +73 -0
  51. package/common/PickerWrap.js +8 -0
  52. package/common/PickerWrap.mjs +32 -0
  53. package/common/constants.js +8 -0
  54. package/common/constants.mjs +12 -0
  55. package/dateinput/DateInput.js +8 -0
  56. package/dateinput/DateInput.mjs +503 -0
  57. package/dateinput/models/kendo-date.js +8 -0
  58. package/dateinput/models/kendo-date.mjs +233 -0
  59. package/dateinput/models/mask.js +8 -0
  60. package/dateinput/models/mask.mjs +16 -0
  61. package/dateinput/utils.js +8 -0
  62. package/dateinput/utils.mjs +38 -0
  63. package/datepicker/DatePicker.js +8 -0
  64. package/datepicker/DatePicker.mjs +462 -0
  65. package/datepicker/ToggleButton.js +8 -0
  66. package/datepicker/ToggleButton.mjs +13 -0
  67. package/daterangepicker/DateRangePicker.js +8 -0
  68. package/daterangepicker/DateRangePicker.mjs +426 -0
  69. package/datetimepicker/DateTimePicker.js +8 -0
  70. package/datetimepicker/DateTimePicker.mjs +475 -0
  71. package/datetimepicker/DateTimeSelector.js +8 -0
  72. package/datetimepicker/DateTimeSelector.mjs +275 -0
  73. package/dist/cdn/js/kendo-react-dateinputs.js +8 -21
  74. package/hooks/usePickerFloatingLabel.js +8 -0
  75. package/hooks/usePickerFloatingLabel.mjs +31 -0
  76. package/index.d.mts +4528 -5
  77. package/index.d.ts +4528 -39
  78. package/index.js +8 -21
  79. package/index.mjs +114 -6540
  80. package/messages/index.js +8 -0
  81. package/messages/index.mjs +59 -0
  82. package/package-metadata.js +8 -0
  83. package/package-metadata.mjs +19 -0
  84. package/package.json +7 -7
  85. package/timepicker/TimeList.js +14 -0
  86. package/timepicker/TimeList.mjs +230 -0
  87. package/timepicker/TimePart.js +8 -0
  88. package/timepicker/TimePart.mjs +267 -0
  89. package/timepicker/TimePicker.js +8 -0
  90. package/timepicker/TimePicker.mjs +479 -0
  91. package/timepicker/TimeSelector.js +8 -0
  92. package/timepicker/TimeSelector.mjs +250 -0
  93. package/timepicker/models/TimePart.js +8 -0
  94. package/timepicker/models/TimePart.mjs +18 -0
  95. package/timepicker/services/DOMService.js +8 -0
  96. package/timepicker/services/DOMService.mjs +34 -0
  97. package/timepicker/services/DayPeriodService.js +8 -0
  98. package/timepicker/services/DayPeriodService.mjs +89 -0
  99. package/timepicker/services/HoursService.js +8 -0
  100. package/timepicker/services/HoursService.mjs +92 -0
  101. package/timepicker/services/MinutesService.js +8 -0
  102. package/timepicker/services/MinutesService.mjs +91 -0
  103. package/timepicker/services/SecondsService.js +8 -0
  104. package/timepicker/services/SecondsService.mjs +91 -0
  105. package/timepicker/utils.js +8 -0
  106. package/timepicker/utils.mjs +91 -0
  107. package/utils.js +8 -0
  108. package/utils.mjs +111 -0
  109. package/virtualization/Virtualization.js +8 -0
  110. package/virtualization/Virtualization.mjs +204 -0
  111. package/virtualization/services/RowHeightService.js +8 -0
  112. package/virtualization/services/RowHeightService.mjs +50 -0
  113. package/virtualization/services/ScrollerService.js +8 -0
  114. package/virtualization/services/ScrollerService.mjs +52 -0
  115. package/PopupSettings.d.ts +0 -18
  116. package/calendar/components/Calendar.d.ts +0 -191
  117. package/calendar/components/CalendarCell.d.ts +0 -39
  118. package/calendar/components/CalendarHeaderTitle.d.ts +0 -32
  119. package/calendar/components/CalendarNavigationItem.d.ts +0 -31
  120. package/calendar/components/CalendarWeekCell.d.ts +0 -29
  121. package/calendar/components/Header.d.ts +0 -58
  122. package/calendar/components/HorizontalViewList.d.ts +0 -71
  123. package/calendar/components/MultiViewCalendar.d.ts +0 -212
  124. package/calendar/components/Navigation.d.ts +0 -80
  125. package/calendar/components/TodayCommand.d.ts +0 -35
  126. package/calendar/components/View.d.ts +0 -89
  127. package/calendar/components/ViewList.d.ts +0 -115
  128. package/calendar/models/ActiveView.d.ts +0 -8
  129. package/calendar/models/CalendarSettings.d.ts +0 -106
  130. package/calendar/models/CalendarViewEnum.d.ts +0 -13
  131. package/calendar/models/CellContext.d.ts +0 -23
  132. package/calendar/models/MultiViewCalendarMode.d.ts +0 -13
  133. package/calendar/models/MultiViewCalendarSettings.d.ts +0 -115
  134. package/calendar/models/NavigationAction.d.ts +0 -19
  135. package/calendar/models/SelectionRange.d.ts +0 -21
  136. package/calendar/models/SelectionRangeEnd.d.ts +0 -8
  137. package/calendar/models/ViewService.d.ts +0 -29
  138. package/calendar/models/index.d.ts +0 -15
  139. package/calendar/services/BusViewService.d.ts +0 -25
  140. package/calendar/services/CenturyViewService.d.ts +0 -29
  141. package/calendar/services/DOMService.d.ts +0 -33
  142. package/calendar/services/DecadeViewService.d.ts +0 -31
  143. package/calendar/services/MonthViewService.d.ts +0 -37
  144. package/calendar/services/NavigationService.d.ts +0 -18
  145. package/calendar/services/ScrollSyncService.d.ts +0 -25
  146. package/calendar/services/WeekNamesService.d.ts +0 -13
  147. package/calendar/services/YearViewService.d.ts +0 -35
  148. package/calendar/services/index.d.ts +0 -14
  149. package/common/AdaptiveMode.d.ts +0 -25
  150. package/common/PickerWrap.d.ts +0 -22
  151. package/common/constants.d.ts +0 -8
  152. package/dateinput/DateInput.d.ts +0 -355
  153. package/dateinput/models/DateInputSettings.d.ts +0 -103
  154. package/dateinput/models/format-placeholder.d.ts +0 -43
  155. package/dateinput/models/incremental-steps.d.ts +0 -15
  156. package/dateinput/models/index.d.ts +0 -11
  157. package/dateinput/models/kendo-date.d.ts +0 -57
  158. package/dateinput/models/mask.d.ts +0 -11
  159. package/dateinput/models/selection.d.ts +0 -11
  160. package/dateinput/utils.d.ts +0 -34
  161. package/datepicker/DatePicker.d.ts +0 -358
  162. package/datepicker/ToggleButton.d.ts +0 -14
  163. package/datepicker/models/DatePickerSettings.d.ts +0 -141
  164. package/datepicker/models/index.d.ts +0 -6
  165. package/daterangepicker/DateRangePicker.d.ts +0 -354
  166. package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -10
  167. package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -10
  168. package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -10
  169. package/daterangepicker/models/DateRangePickerSettings.d.ts +0 -126
  170. package/daterangepicker/models/index.d.ts +0 -9
  171. package/datetimepicker/DateTimePicker.d.ts +0 -342
  172. package/datetimepicker/DateTimeSelector.d.ts +0 -106
  173. package/datetimepicker/models/DateTimePickerSettings.d.ts +0 -144
  174. package/datetimepicker/models/index.d.ts +0 -6
  175. package/hooks/usePickerFloatingLabel.d.ts +0 -24
  176. package/messages/index.d.ts +0 -124
  177. package/package-metadata.d.ts +0 -9
  178. package/timepicker/TimeList.d.ts +0 -91
  179. package/timepicker/TimePart.d.ts +0 -141
  180. package/timepicker/TimePicker.d.ts +0 -355
  181. package/timepicker/TimeSelector.d.ts +0 -144
  182. package/timepicker/models/IncrementalSteps.d.ts +0 -12
  183. package/timepicker/models/ListItem.d.ts +0 -11
  184. package/timepicker/models/ListService.d.ts +0 -19
  185. package/timepicker/models/ListServiceSettings.d.ts +0 -16
  186. package/timepicker/models/TimePart.d.ts +0 -14
  187. package/timepicker/models/TimePickerSettings.d.ts +0 -133
  188. package/timepicker/models/index.d.ts +0 -11
  189. package/timepicker/services/DOMService.d.ts +0 -14
  190. package/timepicker/services/DayPeriodService.d.ts +0 -51
  191. package/timepicker/services/HoursService.d.ts +0 -37
  192. package/timepicker/services/MinutesService.d.ts +0 -36
  193. package/timepicker/services/SecondsService.d.ts +0 -36
  194. package/timepicker/services/index.d.ts +0 -10
  195. package/timepicker/utils.d.ts +0 -60
  196. package/utils.d.ts +0 -100
  197. package/virtualization/Virtualization.d.ts +0 -120
  198. package/virtualization/services/RowHeightService.d.ts +0 -22
  199. package/virtualization/services/ScrollerService.d.ts +0 -53
  200. package/virtualization/services/index.d.ts +0 -7
@@ -1,354 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import PropTypes from 'prop-types';
7
- import { DateInput } from '../dateinput/DateInput';
8
- import { MultiViewCalendar, MultiViewCalendarHandle } from '../calendar/components/MultiViewCalendar';
9
- import { SelectionRange } from '../calendar/models';
10
- import { DateRangePickerSettings } from './models';
11
- /**
12
- * @hidden
13
- */
14
- export interface ReverseClickEvent {
15
- syntheticEvent: React.SyntheticEvent<any>;
16
- nativeEvent?: any;
17
- }
18
- /**
19
- * The arguments for the `onChange` event of the DateRangePicker.
20
- */
21
- export interface DateRangePickerChangeEvent {
22
- syntheticEvent: React.SyntheticEvent<any>;
23
- nativeEvent?: any;
24
- value: SelectionRange;
25
- show?: boolean;
26
- target: DateRangePicker;
27
- }
28
- /**
29
- * The arguments for the `onOpen` event of the DateRangePicker.
30
- */
31
- export interface DateRangePickerOpenEvent {
32
- target: DateRangePicker;
33
- }
34
- /**
35
- * The arguments for the `onClose` event of the DateRangePicker.
36
- */
37
- export interface DateRangePickerCloseEvent {
38
- target: DateRangePicker;
39
- }
40
- /**
41
- * Represents the props of the [KendoReact DateRangePicker component]({% slug overview_daterangepicker %}).
42
- */
43
- export interface DateRangePickerProps extends DateRangePickerSettings {
44
- /**
45
- * Overrides the validity state of the component.
46
- * If `valid` is set, the `required` property will be ignored.
47
- *
48
- * This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
49
- */
50
- valid?: boolean;
51
- /**
52
- * Sets the default value of the DateRangePicker ([see example]({% slug default_value_daterangepicker %})).
53
- */
54
- defaultValue?: SelectionRange;
55
- /**
56
- * Fires each time the user selects a part of a date range ([see example]({% slug controlled_daterangepicker %}#toc-controlling-the-value)).
57
- */
58
- onChange?: (event: DateRangePickerChangeEvent) => void;
59
- /**
60
- * Fires each time the popup is opened.
61
- */
62
- onOpen?: (event: DateRangePickerOpenEvent) => void;
63
- /**
64
- * Fires each time the popup is closed.
65
- */
66
- onClose?: (event: DateRangePickerCloseEvent) => void;
67
- /**
68
- * Fires each time the popup of the DateRangePicker is about to cancel in ([adaptive mode]({% slug adaptive_rendering_daterangepicker %})).
69
- */
70
- onCancel?: (event: React.MouseEvent<HTMLButtonElement>) => void;
71
- /**
72
- * Specifies the selected date range of the DateRangePicker ([see example]({% slug controlled_daterangepicker %}#toc-controlling-the-value)).
73
- *
74
- * > The `value` has to be an object with `start` and `end` valid JavaScript [`Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instances or `null`.
75
- */
76
- value?: SelectionRange;
77
- /**
78
- * Providing different rendering of the popup element based on the screen dimensions.
79
- */
80
- adaptive?: boolean;
81
- /**
82
- * Specifies the text that is rendered as title in the adaptive popup.
83
- */
84
- adaptiveTitle?: string;
85
- /**
86
- * @hidden
87
- */
88
- dir?: string;
89
- }
90
- /**
91
- * @hidden
92
- */
93
- export interface DateRangePickerState {
94
- show: boolean;
95
- value: SelectionRange;
96
- windowWidth?: number;
97
- currentValue: SelectionRange;
98
- }
99
- /** @hidden */
100
- export declare class DateRangePickerWithoutContext extends React.Component<DateRangePickerProps, DateRangePickerState> {
101
- /**
102
- * @hidden
103
- */
104
- static displayName: string;
105
- /**
106
- * @hidden
107
- */
108
- static propTypes: {
109
- allowReverse: PropTypes.Requireable<boolean>;
110
- calendarSettings: PropTypes.Requireable<any>;
111
- className: PropTypes.Requireable<string>;
112
- defaultShow: PropTypes.Requireable<boolean>;
113
- defaultValue: PropTypes.Validator<SelectionRange>;
114
- disabled: PropTypes.Requireable<boolean>;
115
- endDateInputSettings: PropTypes.Requireable<PropTypes.InferProps<{
116
- value: PropTypes.Requireable<Date>;
117
- format: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
118
- skeleton: PropTypes.Requireable<string>;
119
- pattern: PropTypes.Requireable<string>;
120
- date: PropTypes.Requireable<string>;
121
- time: PropTypes.Requireable<string>;
122
- datetime: PropTypes.Requireable<string>;
123
- era: PropTypes.Requireable<string>;
124
- year: PropTypes.Requireable<string>;
125
- month: PropTypes.Requireable<string>;
126
- day: PropTypes.Requireable<string>;
127
- weekday: PropTypes.Requireable<string>;
128
- hour: PropTypes.Requireable<string>;
129
- hour12: PropTypes.Requireable<boolean>;
130
- minute: PropTypes.Requireable<string>;
131
- second: PropTypes.Requireable<string>;
132
- timeZoneName: PropTypes.Requireable<string>;
133
- }> | null | undefined>>;
134
- formatPlaceholder: PropTypes.Requireable<NonNullable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
135
- year: PropTypes.Requireable<string>;
136
- month: PropTypes.Requireable<string>;
137
- day: PropTypes.Requireable<string>;
138
- hour: PropTypes.Requireable<string>;
139
- minute: PropTypes.Requireable<string>;
140
- second: PropTypes.Requireable<string>;
141
- }> | null | undefined>>;
142
- width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
143
- tabIndex: PropTypes.Requireable<number>;
144
- title: PropTypes.Requireable<string>;
145
- steps: PropTypes.Requireable<PropTypes.InferProps<{
146
- year: PropTypes.Requireable<number>;
147
- month: PropTypes.Requireable<number>;
148
- day: PropTypes.Requireable<number>;
149
- hour: PropTypes.Requireable<number>;
150
- minute: PropTypes.Requireable<number>;
151
- second: PropTypes.Requireable<number>;
152
- }>>;
153
- min: PropTypes.Requireable<Date>;
154
- max: PropTypes.Requireable<Date>;
155
- disabled: PropTypes.Requireable<boolean>;
156
- spinners: PropTypes.Requireable<boolean>;
157
- name: PropTypes.Requireable<string>;
158
- dir: PropTypes.Requireable<string>;
159
- label: PropTypes.Requireable<string>;
160
- id: PropTypes.Requireable<string>;
161
- ariaLabelledBy: PropTypes.Requireable<string>;
162
- ariaDescribedBy: PropTypes.Requireable<string>;
163
- ariaLabel: PropTypes.Requireable<string>;
164
- ariaRole: PropTypes.Requireable<string>;
165
- ariaHasPopup: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
166
- ariaExpanded: PropTypes.Requireable<NonNullable<boolean | null | undefined>>;
167
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
168
- validationMessage: PropTypes.Requireable<string>;
169
- required: PropTypes.Requireable<boolean>;
170
- validate: PropTypes.Requireable<boolean>;
171
- valid: PropTypes.Requireable<boolean>;
172
- size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
173
- rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full" | null | undefined>;
174
- fillMode: PropTypes.Requireable<"solid" | "flat" | "outline" | null | undefined>;
175
- }>>;
176
- focusedDate: PropTypes.Requireable<Date>;
177
- format: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
178
- skeleton: PropTypes.Requireable<string>;
179
- pattern: PropTypes.Requireable<string>;
180
- date: PropTypes.Requireable<string>;
181
- time: PropTypes.Requireable<string>;
182
- datetime: PropTypes.Requireable<string>;
183
- era: PropTypes.Requireable<string>;
184
- year: PropTypes.Requireable<string>;
185
- month: PropTypes.Requireable<string>;
186
- day: PropTypes.Requireable<string>;
187
- weekday: PropTypes.Requireable<string>;
188
- hour: PropTypes.Requireable<string>;
189
- hour12: PropTypes.Requireable<boolean>;
190
- minute: PropTypes.Requireable<string>;
191
- second: PropTypes.Requireable<string>;
192
- timeZoneName: PropTypes.Requireable<string>;
193
- }> | null | undefined>>;
194
- id: PropTypes.Requireable<string>;
195
- ariaLabelledBy: PropTypes.Requireable<string>;
196
- ariaDescribedBy: PropTypes.Requireable<string>;
197
- max: PropTypes.Requireable<Date>;
198
- min: PropTypes.Requireable<Date>;
199
- onBlur: PropTypes.Requireable<(...args: any[]) => any>;
200
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
201
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
202
- popupSettings: PropTypes.Requireable<any>;
203
- show: PropTypes.Requireable<boolean>;
204
- startDateInputSettings: PropTypes.Requireable<any>;
205
- style: PropTypes.Requireable<any>;
206
- swapButton: PropTypes.Requireable<any>;
207
- tabIndex: PropTypes.Requireable<number>;
208
- dir: PropTypes.Requireable<string>;
209
- value: PropTypes.Validator<SelectionRange>;
210
- };
211
- /**
212
- * @hidden
213
- */
214
- static defaultProps: {
215
- allowReverse: boolean;
216
- defaultShow: boolean;
217
- defaultValue: SelectionRange;
218
- disabled: boolean;
219
- format: string;
220
- max: Date;
221
- min: Date;
222
- swapButton: boolean;
223
- };
224
- private _element;
225
- private _calendar;
226
- private _startDateInput;
227
- private _endDateInput;
228
- private valueDuringOnChange?;
229
- private showDuringOnChange?;
230
- private nextTickId;
231
- private get _popupId();
232
- private get _startInputId();
233
- private get _endInputId();
234
- private shouldFocusDateInput;
235
- private shouldFocusCalendar;
236
- private observerResize?;
237
- constructor(props: DateRangePickerProps);
238
- /**
239
- * Gets the wrapping element of the DateRangePicker.
240
- */
241
- get element(): HTMLSpanElement | null;
242
- /**
243
- * Gets the start DateInput component inside the DatePicker component.
244
- */
245
- get startDateInput(): DateInput | null;
246
- /**
247
- * Gets the end DateInput component inside the DatePicker component.
248
- */
249
- get endDateInput(): DateInput | null;
250
- /**
251
- * Gets the MultiVieCalendar inside the DateRangePicker.
252
- */
253
- get calendar(): MultiViewCalendar | null;
254
- /**
255
- * Gets the value of the DateRangePicker.
256
- */
257
- get value(): SelectionRange;
258
- /**
259
- * Gets the popup state of the DateRangePicker.
260
- */
261
- get show(): boolean;
262
- protected get min(): Date;
263
- protected get max(): Date;
264
- private get document();
265
- private get localizationService();
266
- /**
267
- * The mobile mode of the DateRangePicker.
268
- */
269
- get mobileMode(): boolean;
270
- /**
271
- * @hidden
272
- */
273
- componentDidMount(): void;
274
- /**
275
- * @hidden
276
- */
277
- componentDidUpdate(): void;
278
- /**
279
- * @hidden
280
- */
281
- componentWillUnmount(): void;
282
- /**
283
- * @hidden
284
- */
285
- focus: () => void;
286
- /**
287
- * @hidden
288
- */
289
- render(): import("react/jsx-runtime").JSX.Element;
290
- protected setCalendarRef: (calendar: MultiViewCalendarHandle | null) => void;
291
- protected focusCalendarElement: () => void;
292
- protected focusDateInputElement(): void;
293
- protected calculateValue: (props: DateRangePickerProps, state: DateRangePickerState) => SelectionRange;
294
- protected calculateShow: (nextProps: DateRangePickerProps, nextState: DateRangePickerState) => boolean;
295
- protected nextTick(f: () => any): void;
296
- protected setShow(show: boolean): void;
297
- private renderCalendar;
298
- private renderPopup;
299
- private renderAdaptivePopup;
300
- private handleReverseClick;
301
- private handleReverseMouseDown;
302
- private handleFocus;
303
- private handleClick;
304
- private handleBlur;
305
- private handleCancel;
306
- private handleEndChange;
307
- private handleStartChange;
308
- private extractRangeFromValue;
309
- private handleCalendarChange;
310
- private handleKeyDown;
311
- private handleChange;
312
- private calculateMedia;
313
- }
314
- /**
315
- * Represents the PropsContext of the `DateRangePicker` component.
316
- * Used for global configuration of all `DateRangePicker` instances.
317
- *
318
- * For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
319
- */
320
- export declare const DateRangePickerPropsContext: React.Context<(p: DateRangePickerProps) => DateRangePickerProps>;
321
- /**
322
- * Represent the `ref` of the DateRangePicker component.
323
- */
324
- export interface DateRangePickerHandle extends Pick<DateRangePickerWithoutContext, keyof DateRangePickerWithoutContext> {
325
- /**
326
- * Gets the MultiVieCalendar inside the DateRangePicker.
327
- */
328
- calendar: MultiViewCalendar | null;
329
- /**
330
- * Returns the HTML element of the DateRangePicker component.
331
- */
332
- element: HTMLSpanElement | null;
333
- /**
334
- * Gets the end DateInput component inside the DateRangePicker component.
335
- */
336
- endDateInput: DateInput | null;
337
- /**
338
- * Gets the start DateInput component inside the DateRangePicker component.
339
- */
340
- startDateInput: DateInput | null;
341
- /**
342
- * Gets the value of the DateRangePicker.
343
- */
344
- value: SelectionRange;
345
- }
346
- /** @hidden */
347
- export type DateRangePicker = DateRangePickerHandle;
348
- /**
349
- * Represents the KendoReact DateRangePicker Component.
350
- *
351
- * Accepts properties of type [DateRangePickerProps]({% slug api_dateinputs_daterangepickerprops %}).
352
- * Obtaining the `ref` returns an object of type [DateRangePickerHandle]({% slug api_dateinputs_daterangepickerhandle %}).
353
- */
354
- export declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<any>>;
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { MultiViewCalendarSettings } from '../../calendar/models/MultiViewCalendarSettings';
6
- /**
7
- * Represents the settings that can be passed to the MultiViewCalendar inside the DateRangePicker.
8
- */
9
- export interface DateRangePickerCalendarSettings extends MultiViewCalendarSettings {
10
- }
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DateInputSettings } from '../../dateinput/models/DateInputSettings';
6
- /**
7
- * Represents the settings that can be passed to the DateInput inside the DateRangePicker.
8
- */
9
- export interface DateRangePickerDateInputSettings extends DateInputSettings {
10
- }
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PopupProps } from '@progress/kendo-react-popup';
6
- /**
7
- * Represents the settings that can be passed to the Popup inside the DateRangePicker.
8
- */
9
- export interface DateRangePickerPopupSettings extends PopupProps {
10
- }
@@ -1,126 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DateRangePickerCalendarSettings } from './DateRangePickerCalendarSettings';
6
- import { DateRangePickerDateInputSettings } from './DateRangePickerDateInputSettings';
7
- import { DateRangePickerPopupSettings } from './DateRangePickerPopupSettings';
8
- import { DateInputProps } from '../../dateinput/DateInput';
9
- import { MultiViewCalendarProps } from '../../calendar/components/MultiViewCalendar';
10
- import { PopupProps } from '@progress/kendo-react-popup';
11
- import { DateFormatOptions } from '@progress/kendo-react-intl';
12
- /**
13
- * @hidden
14
- */
15
- export interface DateRangePickerSettings {
16
- /**
17
- * Enables the customization or the override of the default start DateInput which is rendered by the DateRangePicker
18
- * ([see example]({% slug custom_rendering_daterangepicker %}#toc-customizing-the-dateinputs)).
19
- */
20
- startDateInput?: React.ComponentType<DateInputProps<any>>;
21
- /**
22
- * Enables the customization or the override of the default end DateInput which is rendered by the DateRangePicker
23
- * ([see example]({% slug custom_rendering_daterangepicker %}#toc-customizing-the-calendar)).
24
- */
25
- endDateInput?: React.ComponentType<DateInputProps<any>>;
26
- /**
27
- * Enables the customization or the override of the default Popup which is rendered by the DateRangePicker
28
- * ([see example]({% slug custom_rendering_daterangepicker %}#toc-customizing-the-popup)).
29
- */
30
- popup?: React.ComponentType<PopupProps>;
31
- /**
32
- * Enables the customization or the override of the default Calendar which is rendered by the DateRangePicker.
33
- */
34
- calendar?: React.ComponentType<MultiViewCalendarProps<any>>;
35
- /**
36
- * If `allowReverse` is set to `true`, the component skips the validation of whether the `from` value is after the `to` value ([see example]({% slug reverse_daterangepicker %})).
37
- *
38
- * > If the [`calendarSettings`](#toc-calendarsettings) property is set, its `allowReverse` will take precedence.
39
- */
40
- allowReverse?: boolean;
41
- /**
42
- * Represents the additional props that can be passed to the [MultiViewCalendar]({% slug overview_multiviewcalendar %}) inside the DateRangePicker ([see example]({% slug child_settings_daterangepicker %}#toc-configuring-the-multiviewcalendar)).
43
- */
44
- calendarSettings?: DateRangePickerCalendarSettings;
45
- /**
46
- * Sets the `className` of the DateRangePicker.
47
- */
48
- className?: string;
49
- /**
50
- * Sets the default state of the DateRangePicker upon render ([see example]({% slug default_value_daterangepicker %})).
51
- */
52
- defaultShow?: boolean;
53
- /**
54
- * Determines whether the DateRangePicker is disabled ([see example]({% slug disabled_daterangepicker %})).
55
- */
56
- disabled?: boolean;
57
- /**
58
- * Represents the additional props that can be passed to the end-date [DateInput]({% slug overview_dateinput %}) inside the DateRangePicker ([see example]({% slug child_settings_daterangepicker %}#toc-configuring-dateinputs)).
59
- */
60
- endDateInputSettings?: DateRangePickerDateInputSettings;
61
- /**
62
- * Specifies the focused date of the DateRangePicker ([see example]({% slug focused_daterangepicker %})).
63
- */
64
- focusedDate?: Date;
65
- /**
66
- * Specifies the `date` format which is used for formatting the value of the DateInput ([see example]({% slug formats_dateinput %})).
67
- *
68
- * > If [`startDateInputSettings`](#toc-startdateinputsettings) or [`endDateInputSettings`](#toc-enddateinputsettings) are set, their `format` will take precedence.
69
- */
70
- format?: string | DateFormatOptions;
71
- /**
72
- * Specifies the `id` of the DateRangePicker.
73
- */
74
- id?: string;
75
- /**
76
- * 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).
77
- * For example these elements could contain error or hint message.
78
- */
79
- ariaDescribedBy?: string;
80
- /**
81
- * Identifies the element(s) which will label the component.
82
- */
83
- ariaLabelledBy?: string;
84
- /**
85
- * Specifies the greatest valid date ([see example]({% slug dateranges_daterangepicker %})).
86
- */
87
- max?: Date;
88
- /**
89
- * Specifies the smallest valid date ([see example]({% slug dateranges_daterangepicker %})).
90
- */
91
- min?: Date;
92
- /**
93
- * Fires each time any of the DateRangePicker elements gets blurred.
94
- */
95
- onBlur?: (event: React.FocusEvent<any>) => void;
96
- /**
97
- * Fires each time the user focuses any of the DateRangePicker elements.
98
- */
99
- onFocus?: (event: React.FocusEvent<any>) => void;
100
- /**
101
- * Represents the additional props that will be passed to the [Popup]({% slug overview_popup %}) inside the DateRangePicker ([see example]({% slug child_settings_daterangepicker %}#toc-configuring-the-popup)).
102
- */
103
- popupSettings?: DateRangePickerPopupSettings;
104
- /**
105
- * Specifies if the calendar will be displayed ([see example]({% slug controlled_daterangepicker %}#toc-controlling-the-popup-state)).
106
- */
107
- show?: boolean;
108
- /**
109
- * Represents the additional props that will be passed to the start-date [DateInput]({% slug overview_dateinput %}) inside the DateRangePicker ([see example]({% slug child_settings_daterangepicker %}#toc-configuring-dateinputs)).
110
- */
111
- startDateInputSettings?: DateRangePickerDateInputSettings;
112
- /**
113
- * Specifies the additional styles that will be applied to the wrapping DateRangePicker element.
114
- */
115
- style?: React.CSSProperties;
116
- /**
117
- * Determines whether the DateRangePicker will display a **Swap Value** button ([see example]({% slug reverse_daterangepicker %}#toc-swapping-start-and-end-dates-in-ranges)).
118
- *
119
- * > The DateRangePicker will display the swap button only if the [`allowReverse`](#toc-allowreverse) property is also set to `true`.
120
- */
121
- swapButton?: boolean;
122
- /**
123
- * Sets the `tabIndex` property of the DatePicker.
124
- */
125
- tabIndex?: number;
126
- }
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DateRangePickerCalendarSettings } from './DateRangePickerCalendarSettings';
6
- import { DateRangePickerDateInputSettings } from './DateRangePickerDateInputSettings';
7
- import { DateRangePickerSettings } from './DateRangePickerSettings';
8
- import { DateRangePickerPopupSettings } from './DateRangePickerPopupSettings';
9
- export { DateRangePickerCalendarSettings, DateRangePickerDateInputSettings, DateRangePickerSettings, DateRangePickerPopupSettings };