@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.
- package/calendar/components/Calendar.js +12 -0
- package/calendar/components/Calendar.mjs +328 -0
- package/calendar/components/CalendarCell.js +8 -0
- package/calendar/components/CalendarCell.mjs +101 -0
- package/calendar/components/CalendarHeaderTitle.js +8 -0
- package/calendar/components/CalendarHeaderTitle.mjs +23 -0
- package/calendar/components/CalendarNavigationItem.js +8 -0
- package/calendar/components/CalendarNavigationItem.mjs +29 -0
- package/calendar/components/CalendarWeekCell.js +8 -0
- package/calendar/components/CalendarWeekCell.mjs +23 -0
- package/calendar/components/Header.js +8 -0
- package/calendar/components/Header.mjs +78 -0
- package/calendar/components/HorizontalViewList.js +8 -0
- package/calendar/components/HorizontalViewList.mjs +120 -0
- package/calendar/components/MultiViewCalendar.js +8 -0
- package/calendar/components/MultiViewCalendar.mjs +428 -0
- package/calendar/components/Navigation.js +8 -0
- package/calendar/components/Navigation.mjs +117 -0
- package/calendar/components/TodayCommand.js +8 -0
- package/calendar/components/TodayCommand.mjs +74 -0
- package/calendar/components/View.js +8 -0
- package/calendar/components/View.mjs +153 -0
- package/calendar/components/ViewList.js +8 -0
- package/calendar/components/ViewList.mjs +228 -0
- package/calendar/models/CalendarViewEnum.js +8 -0
- package/calendar/models/CalendarViewEnum.mjs +12 -0
- package/calendar/models/NavigationAction.js +8 -0
- package/calendar/models/NavigationAction.mjs +12 -0
- package/calendar/models/SelectionRange.js +8 -0
- package/calendar/models/SelectionRange.mjs +12 -0
- package/calendar/services/BusViewService.js +8 -0
- package/calendar/services/BusViewService.mjs +58 -0
- package/calendar/services/CenturyViewService.js +8 -0
- package/calendar/services/CenturyViewService.mjs +126 -0
- package/calendar/services/DOMService.js +14 -0
- package/calendar/services/DOMService.mjs +124 -0
- package/calendar/services/DecadeViewService.js +8 -0
- package/calendar/services/DecadeViewService.mjs +126 -0
- package/calendar/services/MonthViewService.js +8 -0
- package/calendar/services/MonthViewService.mjs +139 -0
- package/calendar/services/NavigationService.js +8 -0
- package/calendar/services/NavigationService.mjs +36 -0
- package/calendar/services/ScrollSyncService.js +8 -0
- package/calendar/services/ScrollSyncService.mjs +50 -0
- package/calendar/services/WeekNamesService.js +8 -0
- package/calendar/services/WeekNamesService.mjs +24 -0
- package/calendar/services/YearViewService.js +8 -0
- package/calendar/services/YearViewService.mjs +135 -0
- package/common/AdaptiveMode.js +8 -0
- package/common/AdaptiveMode.mjs +73 -0
- package/common/PickerWrap.js +8 -0
- package/common/PickerWrap.mjs +32 -0
- package/common/constants.js +8 -0
- package/common/constants.mjs +12 -0
- package/dateinput/DateInput.js +8 -0
- package/dateinput/DateInput.mjs +503 -0
- package/dateinput/models/kendo-date.js +8 -0
- package/dateinput/models/kendo-date.mjs +233 -0
- package/dateinput/models/mask.js +8 -0
- package/dateinput/models/mask.mjs +16 -0
- package/dateinput/utils.js +8 -0
- package/dateinput/utils.mjs +38 -0
- package/datepicker/DatePicker.js +8 -0
- package/datepicker/DatePicker.mjs +462 -0
- package/datepicker/ToggleButton.js +8 -0
- package/datepicker/ToggleButton.mjs +13 -0
- package/daterangepicker/DateRangePicker.js +8 -0
- package/daterangepicker/DateRangePicker.mjs +426 -0
- package/datetimepicker/DateTimePicker.js +8 -0
- package/datetimepicker/DateTimePicker.mjs +475 -0
- package/datetimepicker/DateTimeSelector.js +8 -0
- package/datetimepicker/DateTimeSelector.mjs +275 -0
- package/dist/cdn/js/kendo-react-dateinputs.js +8 -21
- package/hooks/usePickerFloatingLabel.js +8 -0
- package/hooks/usePickerFloatingLabel.mjs +31 -0
- package/index.d.mts +4528 -5
- package/index.d.ts +4528 -39
- package/index.js +8 -21
- package/index.mjs +114 -6540
- package/messages/index.js +8 -0
- package/messages/index.mjs +59 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +7 -7
- package/timepicker/TimeList.js +14 -0
- package/timepicker/TimeList.mjs +230 -0
- package/timepicker/TimePart.js +8 -0
- package/timepicker/TimePart.mjs +267 -0
- package/timepicker/TimePicker.js +8 -0
- package/timepicker/TimePicker.mjs +479 -0
- package/timepicker/TimeSelector.js +8 -0
- package/timepicker/TimeSelector.mjs +250 -0
- package/timepicker/models/TimePart.js +8 -0
- package/timepicker/models/TimePart.mjs +18 -0
- package/timepicker/services/DOMService.js +8 -0
- package/timepicker/services/DOMService.mjs +34 -0
- package/timepicker/services/DayPeriodService.js +8 -0
- package/timepicker/services/DayPeriodService.mjs +89 -0
- package/timepicker/services/HoursService.js +8 -0
- package/timepicker/services/HoursService.mjs +92 -0
- package/timepicker/services/MinutesService.js +8 -0
- package/timepicker/services/MinutesService.mjs +91 -0
- package/timepicker/services/SecondsService.js +8 -0
- package/timepicker/services/SecondsService.mjs +91 -0
- package/timepicker/utils.js +8 -0
- package/timepicker/utils.mjs +91 -0
- package/utils.js +8 -0
- package/utils.mjs +111 -0
- package/virtualization/Virtualization.js +8 -0
- package/virtualization/Virtualization.mjs +204 -0
- package/virtualization/services/RowHeightService.js +8 -0
- package/virtualization/services/RowHeightService.mjs +50 -0
- package/virtualization/services/ScrollerService.js +8 -0
- package/virtualization/services/ScrollerService.mjs +52 -0
- package/PopupSettings.d.ts +0 -18
- package/calendar/components/Calendar.d.ts +0 -191
- package/calendar/components/CalendarCell.d.ts +0 -39
- package/calendar/components/CalendarHeaderTitle.d.ts +0 -32
- package/calendar/components/CalendarNavigationItem.d.ts +0 -31
- package/calendar/components/CalendarWeekCell.d.ts +0 -29
- package/calendar/components/Header.d.ts +0 -58
- package/calendar/components/HorizontalViewList.d.ts +0 -71
- package/calendar/components/MultiViewCalendar.d.ts +0 -212
- package/calendar/components/Navigation.d.ts +0 -80
- package/calendar/components/TodayCommand.d.ts +0 -35
- package/calendar/components/View.d.ts +0 -89
- package/calendar/components/ViewList.d.ts +0 -115
- package/calendar/models/ActiveView.d.ts +0 -8
- package/calendar/models/CalendarSettings.d.ts +0 -106
- package/calendar/models/CalendarViewEnum.d.ts +0 -13
- package/calendar/models/CellContext.d.ts +0 -23
- package/calendar/models/MultiViewCalendarMode.d.ts +0 -13
- package/calendar/models/MultiViewCalendarSettings.d.ts +0 -115
- package/calendar/models/NavigationAction.d.ts +0 -19
- package/calendar/models/SelectionRange.d.ts +0 -21
- package/calendar/models/SelectionRangeEnd.d.ts +0 -8
- package/calendar/models/ViewService.d.ts +0 -29
- package/calendar/models/index.d.ts +0 -15
- package/calendar/services/BusViewService.d.ts +0 -25
- package/calendar/services/CenturyViewService.d.ts +0 -29
- package/calendar/services/DOMService.d.ts +0 -33
- package/calendar/services/DecadeViewService.d.ts +0 -31
- package/calendar/services/MonthViewService.d.ts +0 -37
- package/calendar/services/NavigationService.d.ts +0 -18
- package/calendar/services/ScrollSyncService.d.ts +0 -25
- package/calendar/services/WeekNamesService.d.ts +0 -13
- package/calendar/services/YearViewService.d.ts +0 -35
- package/calendar/services/index.d.ts +0 -14
- package/common/AdaptiveMode.d.ts +0 -25
- package/common/PickerWrap.d.ts +0 -22
- package/common/constants.d.ts +0 -8
- package/dateinput/DateInput.d.ts +0 -355
- package/dateinput/models/DateInputSettings.d.ts +0 -103
- package/dateinput/models/format-placeholder.d.ts +0 -43
- package/dateinput/models/incremental-steps.d.ts +0 -15
- package/dateinput/models/index.d.ts +0 -11
- package/dateinput/models/kendo-date.d.ts +0 -57
- package/dateinput/models/mask.d.ts +0 -11
- package/dateinput/models/selection.d.ts +0 -11
- package/dateinput/utils.d.ts +0 -34
- package/datepicker/DatePicker.d.ts +0 -358
- package/datepicker/ToggleButton.d.ts +0 -14
- package/datepicker/models/DatePickerSettings.d.ts +0 -141
- package/datepicker/models/index.d.ts +0 -6
- package/daterangepicker/DateRangePicker.d.ts +0 -354
- package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -10
- package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -10
- package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -10
- package/daterangepicker/models/DateRangePickerSettings.d.ts +0 -126
- package/daterangepicker/models/index.d.ts +0 -9
- package/datetimepicker/DateTimePicker.d.ts +0 -342
- package/datetimepicker/DateTimeSelector.d.ts +0 -106
- package/datetimepicker/models/DateTimePickerSettings.d.ts +0 -144
- package/datetimepicker/models/index.d.ts +0 -6
- package/hooks/usePickerFloatingLabel.d.ts +0 -24
- package/messages/index.d.ts +0 -124
- package/package-metadata.d.ts +0 -9
- package/timepicker/TimeList.d.ts +0 -91
- package/timepicker/TimePart.d.ts +0 -141
- package/timepicker/TimePicker.d.ts +0 -355
- package/timepicker/TimeSelector.d.ts +0 -144
- package/timepicker/models/IncrementalSteps.d.ts +0 -12
- package/timepicker/models/ListItem.d.ts +0 -11
- package/timepicker/models/ListService.d.ts +0 -19
- package/timepicker/models/ListServiceSettings.d.ts +0 -16
- package/timepicker/models/TimePart.d.ts +0 -14
- package/timepicker/models/TimePickerSettings.d.ts +0 -133
- package/timepicker/models/index.d.ts +0 -11
- package/timepicker/services/DOMService.d.ts +0 -14
- package/timepicker/services/DayPeriodService.d.ts +0 -51
- package/timepicker/services/HoursService.d.ts +0 -37
- package/timepicker/services/MinutesService.d.ts +0 -36
- package/timepicker/services/SecondsService.d.ts +0 -36
- package/timepicker/services/index.d.ts +0 -10
- package/timepicker/utils.d.ts +0 -60
- package/utils.d.ts +0 -100
- package/virtualization/Virtualization.d.ts +0 -120
- package/virtualization/services/RowHeightService.d.ts +0 -22
- package/virtualization/services/ScrollerService.d.ts +0 -53
- package/virtualization/services/index.d.ts +0 -7
|
@@ -1,342 +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 { FormComponent, FormComponentProps, FormComponentValidity } from '@progress/kendo-react-common';
|
|
8
|
-
import { DateInput, DateInputProps } from '../dateinput/DateInput';
|
|
9
|
-
import { DateTimePickerSettings } from './models';
|
|
10
|
-
/**
|
|
11
|
-
* The arguments for the `onChange` event of the DateTimePicker.
|
|
12
|
-
*/
|
|
13
|
-
export interface DateTimePickerChangeEvent {
|
|
14
|
-
nativeEvent: any;
|
|
15
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
16
|
-
value: Date | null;
|
|
17
|
-
show: boolean;
|
|
18
|
-
target: DateTimePicker;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The arguments for the `onOpen` event of the DateTimePicker.
|
|
22
|
-
*/
|
|
23
|
-
export interface DateTimePickerOpenEvent {
|
|
24
|
-
target: DateTimePicker;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The arguments for the `onClose` event of the DateTimePicker.
|
|
28
|
-
*/
|
|
29
|
-
export interface DateTimePickerCloseEvent {
|
|
30
|
-
target: DateTimePicker;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Represents the props of the [KendoReact DateTimePicker component]({% slug overview_datetimepicker %}).
|
|
34
|
-
*/
|
|
35
|
-
export interface DateTimePickerProps extends DateTimePickerSettings, FormComponentProps {
|
|
36
|
-
/**
|
|
37
|
-
* Sets the default value of the DateTimePicker
|
|
38
|
-
* ([see example]({% slug default_value_datetimepicker %})).
|
|
39
|
-
* For more information, refer to the article on
|
|
40
|
-
* [uncontrolled components in React](https://reactjs.org/docs/uncontrolled-components.html).
|
|
41
|
-
*/
|
|
42
|
-
defaultValue?: Date | null;
|
|
43
|
-
/**
|
|
44
|
-
* Fires each time the user selects a new value
|
|
45
|
-
* ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-date-value)).
|
|
46
|
-
*/
|
|
47
|
-
onChange?: (event: DateTimePickerChangeEvent) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Fires each time the popup is opened.
|
|
50
|
-
*/
|
|
51
|
-
onOpen?: (event: DateTimePickerOpenEvent) => void;
|
|
52
|
-
/**
|
|
53
|
-
* Fires each time the popup is closed.
|
|
54
|
-
*/
|
|
55
|
-
onClose?: (event: DateTimePickerCloseEvent) => void;
|
|
56
|
-
/**
|
|
57
|
-
* Specifies the value of the DateTimePicker
|
|
58
|
-
* ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-date-value)).
|
|
59
|
-
*
|
|
60
|
-
* > The `value` has to be a valid
|
|
61
|
-
* [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
|
|
62
|
-
*/
|
|
63
|
-
value?: Date | null;
|
|
64
|
-
/**
|
|
65
|
-
* Configures the `size` of the DateTimePicker.
|
|
66
|
-
*
|
|
67
|
-
* The available options are:
|
|
68
|
-
* - small
|
|
69
|
-
* - medium
|
|
70
|
-
* - large
|
|
71
|
-
* - null—Does not set a size `className`.
|
|
72
|
-
*
|
|
73
|
-
* @default `medium`
|
|
74
|
-
*/
|
|
75
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
76
|
-
/**
|
|
77
|
-
* Configures the `roundness` of the DateTimePicker.
|
|
78
|
-
*
|
|
79
|
-
* The available options are:
|
|
80
|
-
* - small
|
|
81
|
-
* - medium
|
|
82
|
-
* - large
|
|
83
|
-
* - full
|
|
84
|
-
* - null—Does not set a rounded `className`.
|
|
85
|
-
*
|
|
86
|
-
* @default `medium`
|
|
87
|
-
*/
|
|
88
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
89
|
-
/**
|
|
90
|
-
* Configures the `fillMode` of the DateTimePicker.
|
|
91
|
-
*
|
|
92
|
-
* The available options are:
|
|
93
|
-
* - solid
|
|
94
|
-
* - outline
|
|
95
|
-
* - flat
|
|
96
|
-
* - null—Does not set a fillMode `className`.
|
|
97
|
-
*
|
|
98
|
-
* @default `solid`
|
|
99
|
-
*/
|
|
100
|
-
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
101
|
-
/**
|
|
102
|
-
* Providing different rendering of the popup element based on the screen dimensions.
|
|
103
|
-
*/
|
|
104
|
-
adaptive?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
107
|
-
*/
|
|
108
|
-
adaptiveTitle?: string;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* @hidden
|
|
112
|
-
*/
|
|
113
|
-
export interface DateTimePickerState {
|
|
114
|
-
value: Date | null;
|
|
115
|
-
show: boolean;
|
|
116
|
-
focused: boolean;
|
|
117
|
-
windowWidth?: number;
|
|
118
|
-
}
|
|
119
|
-
/** @hidden */
|
|
120
|
-
export declare class DateTimePickerWithoutContext extends React.Component<DateTimePickerProps, DateTimePickerState> implements FormComponent {
|
|
121
|
-
/**
|
|
122
|
-
* @hidden
|
|
123
|
-
*/
|
|
124
|
-
static displayName: string;
|
|
125
|
-
/**
|
|
126
|
-
* @hidden
|
|
127
|
-
*/
|
|
128
|
-
static propTypes: {
|
|
129
|
-
className: PropTypes.Requireable<string>;
|
|
130
|
-
defaultShow: PropTypes.Requireable<boolean>;
|
|
131
|
-
defaultValue: PropTypes.Requireable<Date>;
|
|
132
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
133
|
-
focusedDate: PropTypes.Requireable<Date>;
|
|
134
|
-
format: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
|
|
135
|
-
skeleton: PropTypes.Requireable<string>;
|
|
136
|
-
pattern: PropTypes.Requireable<string>;
|
|
137
|
-
date: PropTypes.Requireable<string>;
|
|
138
|
-
time: PropTypes.Requireable<string>;
|
|
139
|
-
datetime: PropTypes.Requireable<string>;
|
|
140
|
-
era: PropTypes.Requireable<string>;
|
|
141
|
-
year: PropTypes.Requireable<string>;
|
|
142
|
-
month: PropTypes.Requireable<string>;
|
|
143
|
-
day: PropTypes.Requireable<string>;
|
|
144
|
-
weekday: PropTypes.Requireable<string>;
|
|
145
|
-
hour: PropTypes.Requireable<string>;
|
|
146
|
-
hour12: PropTypes.Requireable<boolean>;
|
|
147
|
-
minute: PropTypes.Requireable<string>;
|
|
148
|
-
second: PropTypes.Requireable<string>;
|
|
149
|
-
timeZoneName: PropTypes.Requireable<string>;
|
|
150
|
-
}> | null | undefined>>;
|
|
151
|
-
formatPlaceholder: PropTypes.Requireable<NonNullable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
152
|
-
year: PropTypes.Requireable<string>;
|
|
153
|
-
month: PropTypes.Requireable<string>;
|
|
154
|
-
day: PropTypes.Requireable<string>;
|
|
155
|
-
hour: PropTypes.Requireable<string>;
|
|
156
|
-
minute: PropTypes.Requireable<string>;
|
|
157
|
-
second: PropTypes.Requireable<string>;
|
|
158
|
-
}> | null | undefined>>;
|
|
159
|
-
id: PropTypes.Requireable<string>;
|
|
160
|
-
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
161
|
-
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
162
|
-
min: PropTypes.Requireable<Date>;
|
|
163
|
-
max: PropTypes.Requireable<Date>;
|
|
164
|
-
name: PropTypes.Requireable<string>;
|
|
165
|
-
popupSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
166
|
-
animate: PropTypes.Requireable<boolean>;
|
|
167
|
-
appendTo: PropTypes.Requireable<any>;
|
|
168
|
-
popupClass: PropTypes.Requireable<string>;
|
|
169
|
-
}>>;
|
|
170
|
-
show: PropTypes.Requireable<boolean>;
|
|
171
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
172
|
-
title: PropTypes.Requireable<string>;
|
|
173
|
-
value: PropTypes.Requireable<Date>;
|
|
174
|
-
weekNumber: PropTypes.Requireable<boolean>;
|
|
175
|
-
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
176
|
-
validationMessage: PropTypes.Requireable<string>;
|
|
177
|
-
required: PropTypes.Requireable<boolean>;
|
|
178
|
-
validate: PropTypes.Requireable<boolean>;
|
|
179
|
-
valid: PropTypes.Requireable<boolean>;
|
|
180
|
-
cancelButton: PropTypes.Requireable<boolean>;
|
|
181
|
-
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
182
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full" | null | undefined>;
|
|
183
|
-
fillMode: PropTypes.Requireable<"solid" | "flat" | "outline" | null | undefined>;
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* @hidden
|
|
187
|
-
*/
|
|
188
|
-
static defaultProps: {
|
|
189
|
-
defaultShow: boolean;
|
|
190
|
-
defaultValue: null;
|
|
191
|
-
disabled: boolean;
|
|
192
|
-
format: string;
|
|
193
|
-
max: Date;
|
|
194
|
-
min: Date;
|
|
195
|
-
popupSettings: {};
|
|
196
|
-
tabIndex: number;
|
|
197
|
-
weekNumber: boolean;
|
|
198
|
-
required: boolean;
|
|
199
|
-
validityStyles: boolean;
|
|
200
|
-
cancelButton: boolean;
|
|
201
|
-
dateInput: React.ComponentType<DateInputProps<any>>;
|
|
202
|
-
size: "small" | "medium" | "large" | null | undefined;
|
|
203
|
-
rounded: "small" | "medium" | "large" | "full" | null | undefined;
|
|
204
|
-
fillMode: "solid" | "flat" | "outline" | null | undefined;
|
|
205
|
-
};
|
|
206
|
-
/**
|
|
207
|
-
* @hidden
|
|
208
|
-
*/
|
|
209
|
-
readonly state: DateTimePickerState;
|
|
210
|
-
private get _popupId();
|
|
211
|
-
private _element;
|
|
212
|
-
private _dateInput;
|
|
213
|
-
private _dateTimeSelector;
|
|
214
|
-
private valueDuringOnChange?;
|
|
215
|
-
private showDuringOnChange?;
|
|
216
|
-
private nextTickId;
|
|
217
|
-
private shouldFocusDateInput;
|
|
218
|
-
private prevShow;
|
|
219
|
-
private observerResize?;
|
|
220
|
-
private get document();
|
|
221
|
-
constructor(props: DateTimePickerProps);
|
|
222
|
-
/**
|
|
223
|
-
* Gets the wrapping element of the DateTimePicker.
|
|
224
|
-
*/
|
|
225
|
-
get element(): HTMLSpanElement | null;
|
|
226
|
-
/**
|
|
227
|
-
* Gets the DateInput component inside the DateTimePicker component.
|
|
228
|
-
*/
|
|
229
|
-
get dateInput(): DateInput | null;
|
|
230
|
-
/**
|
|
231
|
-
* Gets the value of the DateTimePicker.
|
|
232
|
-
*/
|
|
233
|
-
get value(): Date | null;
|
|
234
|
-
/**
|
|
235
|
-
* Gets the popup state of the DateTimePicker.
|
|
236
|
-
*/
|
|
237
|
-
get show(): boolean;
|
|
238
|
-
/**
|
|
239
|
-
* Gets the `name` property of the DateTimePicker.
|
|
240
|
-
*/
|
|
241
|
-
get name(): string | undefined;
|
|
242
|
-
/**
|
|
243
|
-
* The mobile mode of the ComboBox.
|
|
244
|
-
*/
|
|
245
|
-
get mobileMode(): boolean;
|
|
246
|
-
protected get min(): Date;
|
|
247
|
-
protected get max(): Date;
|
|
248
|
-
/**
|
|
249
|
-
* Represents the validity state into which the DateTimePicker is set.
|
|
250
|
-
*/
|
|
251
|
-
get validity(): FormComponentValidity;
|
|
252
|
-
/**
|
|
253
|
-
* @hidden
|
|
254
|
-
*/
|
|
255
|
-
protected get validityStyles(): boolean;
|
|
256
|
-
/**
|
|
257
|
-
* @hidden
|
|
258
|
-
*/
|
|
259
|
-
protected get required(): boolean;
|
|
260
|
-
/**
|
|
261
|
-
* @hidden
|
|
262
|
-
*/
|
|
263
|
-
protected get dateInputComp(): React.ComponentType<DateInputProps<any>>;
|
|
264
|
-
/**
|
|
265
|
-
* @hidden
|
|
266
|
-
*/
|
|
267
|
-
componentDidMount(): void;
|
|
268
|
-
/**
|
|
269
|
-
* @hidden
|
|
270
|
-
*/
|
|
271
|
-
componentDidUpdate(): void;
|
|
272
|
-
/**
|
|
273
|
-
* @hidden
|
|
274
|
-
*/
|
|
275
|
-
componentWillUnmount(): void;
|
|
276
|
-
/**
|
|
277
|
-
* @hidden
|
|
278
|
-
*/
|
|
279
|
-
focus: () => void;
|
|
280
|
-
/**
|
|
281
|
-
* @hidden
|
|
282
|
-
*/
|
|
283
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
284
|
-
private renderPicker;
|
|
285
|
-
private renderAdaptivePopup;
|
|
286
|
-
protected setShow(show: boolean): void;
|
|
287
|
-
protected nextTick(f: () => any): void;
|
|
288
|
-
private handleReject;
|
|
289
|
-
private handleValueChange;
|
|
290
|
-
private handleFocus;
|
|
291
|
-
private handleBlur;
|
|
292
|
-
private handleDateIconClick;
|
|
293
|
-
private handleIconMouseDown;
|
|
294
|
-
private handleKeyDown;
|
|
295
|
-
private dateInputElement;
|
|
296
|
-
private calculateMedia;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* Represents the PropsContext of the `DateTimePicker` component.
|
|
300
|
-
* Used for global configuration of all `DateTimePicker` instances.
|
|
301
|
-
*
|
|
302
|
-
* For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
|
|
303
|
-
*/
|
|
304
|
-
export declare const DateTimePickerPropsContext: React.Context<(p: DateTimePickerProps) => DateTimePickerProps>;
|
|
305
|
-
/**
|
|
306
|
-
* Represent the `ref` of the DateTimePicker component.
|
|
307
|
-
*/
|
|
308
|
-
export interface DateTimePickerHandle extends Pick<DateTimePickerWithoutContext, keyof DateTimePickerWithoutContext> {
|
|
309
|
-
/**
|
|
310
|
-
* Gets the DateInput component inside the DateTimePicker component.
|
|
311
|
-
*/
|
|
312
|
-
dateInput: DateInput | null;
|
|
313
|
-
/**
|
|
314
|
-
* Returns the HTML element of the DateTimePicker component.
|
|
315
|
-
*/
|
|
316
|
-
element: HTMLSpanElement | null;
|
|
317
|
-
/**
|
|
318
|
-
* Gets the `name` property of the DateTimePicker.
|
|
319
|
-
*/
|
|
320
|
-
name: string | undefined;
|
|
321
|
-
/**
|
|
322
|
-
* Gets the popup state of the DateTimePicker.
|
|
323
|
-
*/
|
|
324
|
-
show: boolean;
|
|
325
|
-
/**
|
|
326
|
-
* Represents the validity state into which the DateTimePicker is set.
|
|
327
|
-
*/
|
|
328
|
-
validity: FormComponentValidity;
|
|
329
|
-
/**
|
|
330
|
-
* Gets the value of the DateTimePicker.
|
|
331
|
-
*/
|
|
332
|
-
value: Date | null;
|
|
333
|
-
}
|
|
334
|
-
/** @hidden */
|
|
335
|
-
export type DateTimePicker = DateTimePickerHandle;
|
|
336
|
-
/**
|
|
337
|
-
* Represents the KendoReact DateTimePicker Component.
|
|
338
|
-
*
|
|
339
|
-
* Accepts properties of type [DateTimePickerProps]({% slug api_dateinputs_datetimepickerprops %}).
|
|
340
|
-
* Obtaining the `ref` returns an object of type [DateTimePickerHandle]({% slug api_dateinputs_datetimepickerhandle %}).
|
|
341
|
-
*/
|
|
342
|
-
export declare const DateTimePicker: React.ForwardRefExoticComponent<DateTimePickerProps & React.RefAttributes<any>>;
|
|
@@ -1,106 +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 { LocalizationService, DateFormatOptions } from '@progress/kendo-react-intl';
|
|
7
|
-
import { Calendar, CalendarProps } from '../calendar/components/Calendar';
|
|
8
|
-
import { TimePart } from '../timepicker/TimePart';
|
|
9
|
-
import { DateInputIncrementalSteps } from '../dateinput/models';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export interface DateTimeSelectorChangeEvent<T = DateTimeSelector> {
|
|
14
|
-
nativeEvent?: any;
|
|
15
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
16
|
-
value: Date | null;
|
|
17
|
-
target: T;
|
|
18
|
-
cancelButton?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export interface DateTimeSelectorRejectEvent<T = DateTimeSelector> {
|
|
24
|
-
nativeEvent?: any;
|
|
25
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
26
|
-
value: Date | null;
|
|
27
|
-
target: T;
|
|
28
|
-
cancelButton?: boolean;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
export interface DateTimeSelectorProps<T = DateTimeSelector> {
|
|
34
|
-
value: Date | null;
|
|
35
|
-
onChange: (event: DateTimeSelectorChangeEvent<T>) => void;
|
|
36
|
-
onReject: (event: DateTimeSelectorRejectEvent<T>) => void;
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
cancelButton?: boolean;
|
|
39
|
-
min: Date;
|
|
40
|
-
max: Date;
|
|
41
|
-
minTime?: Date;
|
|
42
|
-
maxTime?: Date;
|
|
43
|
-
weekNumber?: boolean;
|
|
44
|
-
focusedDate?: Date;
|
|
45
|
-
format?: string | DateFormatOptions;
|
|
46
|
-
calendar?: React.ComponentType<CalendarProps<any>>;
|
|
47
|
-
steps?: DateInputIncrementalSteps;
|
|
48
|
-
mobileMode?: boolean;
|
|
49
|
-
footerActions?: boolean;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
export interface DateTimeSelectorState {
|
|
55
|
-
tab: 'date' | 'time';
|
|
56
|
-
dateValue: Date | null;
|
|
57
|
-
timeValue: Date;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
export declare class DateTimeSelector extends React.Component<DateTimeSelectorProps, DateTimeSelectorState> {
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
static defaultProps: {
|
|
67
|
-
footerActions: boolean;
|
|
68
|
-
};
|
|
69
|
-
private _calendar;
|
|
70
|
-
private _timePart;
|
|
71
|
-
private _cancelButton;
|
|
72
|
-
private _acceptButton;
|
|
73
|
-
private _dateButtonRef;
|
|
74
|
-
private _calendarWrap;
|
|
75
|
-
private shouldFocusPart;
|
|
76
|
-
get calendar(): Calendar | null;
|
|
77
|
-
get timePart(): TimePart | null;
|
|
78
|
-
protected get hasDateValue(): boolean;
|
|
79
|
-
protected get localizationService(): LocalizationService;
|
|
80
|
-
constructor(props: DateTimeSelectorProps);
|
|
81
|
-
componentDidUpdate(prevProps: DateTimeSelectorProps, prevState: DateTimeSelectorState): void;
|
|
82
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
83
|
-
focus: (args?: FocusOptions) => void;
|
|
84
|
-
private calendarElement;
|
|
85
|
-
protected get minTime(): Date | null;
|
|
86
|
-
protected get maxTime(): Date | null;
|
|
87
|
-
protected normalizeRange(candidate: Date, value: Date | null): Date | null;
|
|
88
|
-
protected hasActiveButton(): boolean | null;
|
|
89
|
-
protected mergeTime(current: Date | null, candidate: Date | null): Date | null;
|
|
90
|
-
protected mergeDate(candidate: Date | null, value: Date): Date | null;
|
|
91
|
-
protected move: (direction: 'left' | 'right') => void;
|
|
92
|
-
private dateTimeFooter;
|
|
93
|
-
handleReject: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
|
|
94
|
-
handleAccept: (event: React.SyntheticEvent<HTMLButtonElement>, timeOverride?: Date) => void;
|
|
95
|
-
private handleNowClick;
|
|
96
|
-
private handleCalendarValueChange;
|
|
97
|
-
private handleTimeListContainerChange;
|
|
98
|
-
private handleDateClick;
|
|
99
|
-
private handleTimeClick;
|
|
100
|
-
private handleKeyDown;
|
|
101
|
-
private handleCancelKeyDown;
|
|
102
|
-
private handleSetKeyDown;
|
|
103
|
-
private handleDateKeyDown;
|
|
104
|
-
private handleTimeKeyDown;
|
|
105
|
-
private handleTimePartMount;
|
|
106
|
-
}
|
|
@@ -1,144 +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 { DateInputFormatPlaceholder } from '../../dateinput/models/format-placeholder';
|
|
6
|
-
import { DateFormatOptions } from '@progress/kendo-react-intl';
|
|
7
|
-
import { CalendarProps } from '../../calendar/components/Calendar';
|
|
8
|
-
import { PopupProps } from '@progress/kendo-react-popup';
|
|
9
|
-
import { DateInputIncrementalSteps, DateInputProps } from '../..';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export interface DateTimePickerSettings {
|
|
14
|
-
/**
|
|
15
|
-
* Enables the customization or the override of the default Calendar which is rendered by the DateTimePicker
|
|
16
|
-
* ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-calendar)).
|
|
17
|
-
*/
|
|
18
|
-
calendar?: React.ComponentType<CalendarProps>;
|
|
19
|
-
/**
|
|
20
|
-
* Enables the customization or the override of the default Popup which is rendered by the DateTimePicker
|
|
21
|
-
* ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-popup)).
|
|
22
|
-
*/
|
|
23
|
-
popup?: React.ComponentType<PopupProps>;
|
|
24
|
-
/**
|
|
25
|
-
* Enables the customization or the override of the default DateInput which is rendered by the DateTimePicker
|
|
26
|
-
* ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-dateinput)).
|
|
27
|
-
*/
|
|
28
|
-
dateInput?: React.ComponentType<DateInputProps>;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the `className` of the DateTimePicker.
|
|
31
|
-
*/
|
|
32
|
-
className?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Sets if the calendar popup is opened upon initial render.
|
|
35
|
-
* For more information, refer to the article on
|
|
36
|
-
* [uncontrolled components in React](https://reactjs.org/docs/uncontrolled-components.html).
|
|
37
|
-
*/
|
|
38
|
-
defaultShow?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the incremental steps of the `DateInput` and the internal `TimePart` ([see examples]({% slug incrementalsteps_datetimepicker %})).
|
|
41
|
-
*
|
|
42
|
-
* The available options are:
|
|
43
|
-
* - `year: Number`—Controls the incremental step of the year value.
|
|
44
|
-
* - `month: Number`—Controls the incremental step of the month value.
|
|
45
|
-
* - `day: Number`—Controls the incremental step of the day value.
|
|
46
|
-
* - `hour: Number`—Controls the incremental step of the hour value.
|
|
47
|
-
* - `minute: Number`—Controls the incremental step of the minute value.
|
|
48
|
-
* - `second: Number`—Controls the incremental step of the second value.
|
|
49
|
-
*/
|
|
50
|
-
steps?: DateInputIncrementalSteps;
|
|
51
|
-
/**
|
|
52
|
-
* Determines whether the DateTimePicker is disabled
|
|
53
|
-
* ([see example]({% slug disabled_datetimepicker %})).
|
|
54
|
-
*/
|
|
55
|
-
disabled?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Specifies the initial focusedDate of the Calendar inside the DateTimePicker
|
|
58
|
-
* ([see example]({% slug dates_datetimepicker %})).
|
|
59
|
-
*/
|
|
60
|
-
focusedDate?: Date;
|
|
61
|
-
/**
|
|
62
|
-
* Specifies the date format that is used to display the input value
|
|
63
|
-
* ([see example]({% slug formats_datetimepicker %})).
|
|
64
|
-
*/
|
|
65
|
-
format?: string | DateFormatOptions;
|
|
66
|
-
/**
|
|
67
|
-
* Defines the descriptions of the format sections in the input field
|
|
68
|
-
* ([more information and examples]({% slug placeholders_datetimepicker %})).
|
|
69
|
-
*/
|
|
70
|
-
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
71
|
-
/**
|
|
72
|
-
* Specifies the `id` of the DateTimePicker.
|
|
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
|
|
86
|
-
* ([see example]({% slug dateranges_datetimepicker %})).
|
|
87
|
-
*/
|
|
88
|
-
max?: Date;
|
|
89
|
-
/**
|
|
90
|
-
* Specifies the smallest valid date
|
|
91
|
-
* ([see example]({% slug dateranges_datetimepicker %})).
|
|
92
|
-
*/
|
|
93
|
-
min?: Date;
|
|
94
|
-
minTime?: Date;
|
|
95
|
-
maxTime?: Date;
|
|
96
|
-
/**
|
|
97
|
-
* Specifies the `name` property of the `input` DOM element.
|
|
98
|
-
*/
|
|
99
|
-
name?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Fires each time any of the DateTimePicker elements gets blurred.
|
|
102
|
-
*/
|
|
103
|
-
onBlur?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
104
|
-
/**
|
|
105
|
-
* Fires each time the user focuses any of the DateTimePicker elements.
|
|
106
|
-
*/
|
|
107
|
-
onFocus?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
108
|
-
/**
|
|
109
|
-
* Specifies if the popup will be displayed
|
|
110
|
-
* ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-popup-state)).
|
|
111
|
-
*/
|
|
112
|
-
show?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Sets the `tabIndex` property of the DateTimePicker.
|
|
115
|
-
*/
|
|
116
|
-
tabIndex?: number;
|
|
117
|
-
/**
|
|
118
|
-
* Sets the title of the `input` element of the DateTimePicker.
|
|
119
|
-
*/
|
|
120
|
-
title?: string;
|
|
121
|
-
/**
|
|
122
|
-
* Determines whether to display a week number column of the Calendar inside the DateTimePicker
|
|
123
|
-
* ([see example]({% slug weeksnumbers_calendar %})).
|
|
124
|
-
*/
|
|
125
|
-
weekNumber?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Specifies the width of the DateTimePicker.
|
|
128
|
-
*/
|
|
129
|
-
width?: number | string;
|
|
130
|
-
/**
|
|
131
|
-
* Determines whether to display the **Cancel** button in the popup.
|
|
132
|
-
*/
|
|
133
|
-
cancelButton?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Renders a floating label for the DateTimePicker.
|
|
136
|
-
*/
|
|
137
|
-
label?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
140
|
-
* For more information, refer to the article on
|
|
141
|
-
* [placeholders]({% slug placeholders_datetimepicker %}).
|
|
142
|
-
*/
|
|
143
|
-
placeholder?: string | null;
|
|
144
|
-
}
|
|
@@ -1,6 +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 { DateTimePickerSettings } from './DateTimePickerSettings';
|
|
6
|
-
export { DateTimePickerSettings };
|
|
@@ -1,24 +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 { FloatingLabelProps } from '@progress/kendo-react-labels';
|
|
7
|
-
import { DateInput } from '../dateinput/DateInput';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export type PickerFloatingLabelProps = FloatingLabelProps & {
|
|
12
|
-
dateInput: React.RefObject<DateInput>;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export declare const usePickerFloatingLabel: (dateInput: React.RefObject<DateInput>) => {
|
|
19
|
-
editorValue: boolean;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export declare const PickerFloatingLabel: (props: PickerFloatingLabelProps) => import("react/jsx-runtime").JSX.Element;
|