@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,358 +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 { PopupProps } from '@progress/kendo-react-popup';
|
|
8
|
-
import { FormComponent, FormComponentProps, FormComponentValidity } from '@progress/kendo-react-common';
|
|
9
|
-
import { DateInput, DateInputProps } from '../dateinput/DateInput';
|
|
10
|
-
import { Calendar, CalendarProps } from '../calendar/components/Calendar';
|
|
11
|
-
import { DatePickerSettings } from './models';
|
|
12
|
-
import { ToggleButtonProps } from './ToggleButton';
|
|
13
|
-
import { PickerWrapProps } from '../common/PickerWrap';
|
|
14
|
-
/**
|
|
15
|
-
* The arguments for the `onChange` event of the DatePicker.
|
|
16
|
-
*/
|
|
17
|
-
export interface DatePickerChangeEvent {
|
|
18
|
-
nativeEvent?: any;
|
|
19
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
20
|
-
value: Date | null;
|
|
21
|
-
show: boolean;
|
|
22
|
-
target: DatePicker;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* The arguments for the `onOpen` event of the DatePicker.
|
|
26
|
-
*/
|
|
27
|
-
export interface DatePickerOpenEvent {
|
|
28
|
-
target: DatePicker;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The arguments for the `onClose` event of the DatePicker.
|
|
32
|
-
*/
|
|
33
|
-
export interface DatePickerCloseEvent {
|
|
34
|
-
target: DatePicker;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Represents the props of the [KendoReact DatePicker component]({% slug overview_datepicker %}).
|
|
38
|
-
*/
|
|
39
|
-
export interface DatePickerProps extends DatePickerSettings, FormComponentProps {
|
|
40
|
-
/**
|
|
41
|
-
* Sets the default value of the DatePicker ([see example]({% slug default_value_datepicker %})).
|
|
42
|
-
*/
|
|
43
|
-
defaultValue?: Date | null;
|
|
44
|
-
/**
|
|
45
|
-
* Fires each time the user selects a new value ([see example]({% slug controlled_datepicker %}#toc-controlling-the-date-value)).
|
|
46
|
-
*/
|
|
47
|
-
onChange?: (event: DatePickerChangeEvent) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Fires each time the popup is opened.
|
|
50
|
-
*/
|
|
51
|
-
onOpen?: (event: DatePickerOpenEvent) => void;
|
|
52
|
-
/**
|
|
53
|
-
* Fires each time the popup is closed.
|
|
54
|
-
*/
|
|
55
|
-
onClose?: (event: DatePickerCloseEvent) => void;
|
|
56
|
-
/**
|
|
57
|
-
* Specifies the value of the DatePicker ([see example]({% slug controlled_datepicker %}#toc-controlling-the-date-value)).
|
|
58
|
-
*
|
|
59
|
-
* > The `value` has to be a valid [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
|
|
60
|
-
*/
|
|
61
|
-
value?: Date | null;
|
|
62
|
-
/**
|
|
63
|
-
* Configures the `size` of the DatePicker.
|
|
64
|
-
*
|
|
65
|
-
* The available options are:
|
|
66
|
-
* - small
|
|
67
|
-
* - medium
|
|
68
|
-
* - large
|
|
69
|
-
* - null—Does not set a size `className`.
|
|
70
|
-
*
|
|
71
|
-
* @default `medium`
|
|
72
|
-
*/
|
|
73
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
74
|
-
/**
|
|
75
|
-
* Configures the `roundness` of the DatePicker.
|
|
76
|
-
*
|
|
77
|
-
* The available options are:
|
|
78
|
-
* - small
|
|
79
|
-
* - medium
|
|
80
|
-
* - large
|
|
81
|
-
* - full
|
|
82
|
-
* - null—Does not set a rounded `className`.
|
|
83
|
-
*
|
|
84
|
-
* @default `medium`
|
|
85
|
-
*/
|
|
86
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
87
|
-
/**
|
|
88
|
-
* Configures the `fillMode` of the DatePicker.
|
|
89
|
-
*
|
|
90
|
-
* The available options are:
|
|
91
|
-
* - solid
|
|
92
|
-
* - outline
|
|
93
|
-
* - flat
|
|
94
|
-
* - null—Does not set a fillMode `className`.
|
|
95
|
-
*
|
|
96
|
-
* @default `solid`
|
|
97
|
-
*/
|
|
98
|
-
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
99
|
-
/**
|
|
100
|
-
* Providing different rendering of the popup element based on the screen dimensions.
|
|
101
|
-
*/
|
|
102
|
-
adaptive?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
105
|
-
*/
|
|
106
|
-
adaptiveTitle?: string;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* @hidden
|
|
110
|
-
*/
|
|
111
|
-
export interface DatePickerState {
|
|
112
|
-
value: Date | null;
|
|
113
|
-
show: boolean;
|
|
114
|
-
focused: boolean;
|
|
115
|
-
windowWidth?: number;
|
|
116
|
-
}
|
|
117
|
-
/** @hidden */
|
|
118
|
-
export declare class DatePickerWithoutContext extends React.Component<DatePickerProps, DatePickerState> implements FormComponent {
|
|
119
|
-
/**
|
|
120
|
-
* @hidden
|
|
121
|
-
*/
|
|
122
|
-
static displayName: string;
|
|
123
|
-
/**
|
|
124
|
-
* @hidden
|
|
125
|
-
*/
|
|
126
|
-
static propTypes: {
|
|
127
|
-
className: PropTypes.Requireable<string>;
|
|
128
|
-
defaultShow: PropTypes.Requireable<boolean>;
|
|
129
|
-
defaultValue: PropTypes.Requireable<Date>;
|
|
130
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
131
|
-
focusedDate: PropTypes.Requireable<Date>;
|
|
132
|
-
format: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
|
|
133
|
-
skeleton: PropTypes.Requireable<string>;
|
|
134
|
-
pattern: PropTypes.Requireable<string>;
|
|
135
|
-
date: PropTypes.Requireable<string>;
|
|
136
|
-
time: PropTypes.Requireable<string>;
|
|
137
|
-
datetime: PropTypes.Requireable<string>;
|
|
138
|
-
era: PropTypes.Requireable<string>;
|
|
139
|
-
year: PropTypes.Requireable<string>;
|
|
140
|
-
month: PropTypes.Requireable<string>;
|
|
141
|
-
day: PropTypes.Requireable<string>;
|
|
142
|
-
weekday: PropTypes.Requireable<string>;
|
|
143
|
-
hour: PropTypes.Requireable<string>;
|
|
144
|
-
hour12: PropTypes.Requireable<boolean>;
|
|
145
|
-
minute: PropTypes.Requireable<string>;
|
|
146
|
-
second: PropTypes.Requireable<string>;
|
|
147
|
-
timeZoneName: PropTypes.Requireable<string>;
|
|
148
|
-
}> | null | undefined>>;
|
|
149
|
-
formatPlaceholder: PropTypes.Requireable<NonNullable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
150
|
-
year: PropTypes.Requireable<string>;
|
|
151
|
-
month: PropTypes.Requireable<string>;
|
|
152
|
-
day: PropTypes.Requireable<string>;
|
|
153
|
-
hour: PropTypes.Requireable<string>;
|
|
154
|
-
minute: PropTypes.Requireable<string>;
|
|
155
|
-
second: PropTypes.Requireable<string>;
|
|
156
|
-
}> | null | undefined>>;
|
|
157
|
-
id: PropTypes.Requireable<string>;
|
|
158
|
-
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
159
|
-
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
160
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
161
|
-
min: PropTypes.Requireable<Date>;
|
|
162
|
-
max: PropTypes.Requireable<Date>;
|
|
163
|
-
name: PropTypes.Requireable<string>;
|
|
164
|
-
popupSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
165
|
-
animate: PropTypes.Requireable<boolean>;
|
|
166
|
-
appendTo: PropTypes.Requireable<any>;
|
|
167
|
-
popupClass: PropTypes.Requireable<string>;
|
|
168
|
-
}>>;
|
|
169
|
-
show: PropTypes.Requireable<boolean>;
|
|
170
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
171
|
-
title: PropTypes.Requireable<string>;
|
|
172
|
-
value: PropTypes.Requireable<Date>;
|
|
173
|
-
weekNumber: PropTypes.Requireable<boolean>;
|
|
174
|
-
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
175
|
-
validationMessage: PropTypes.Requireable<string>;
|
|
176
|
-
required: PropTypes.Requireable<boolean>;
|
|
177
|
-
validate: PropTypes.Requireable<boolean>;
|
|
178
|
-
valid: PropTypes.Requireable<boolean>;
|
|
179
|
-
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
180
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full" | null | undefined>;
|
|
181
|
-
fillMode: PropTypes.Requireable<"solid" | "flat" | "outline" | null | undefined>;
|
|
182
|
-
adaptive: PropTypes.Requireable<boolean>;
|
|
183
|
-
adaptiveTitle: PropTypes.Requireable<string>;
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* @hidden
|
|
187
|
-
*/
|
|
188
|
-
static defaultProps: {
|
|
189
|
-
defaultShow: boolean;
|
|
190
|
-
defaultValue: null;
|
|
191
|
-
dateInput: React.ComponentType<DateInputProps<any>>;
|
|
192
|
-
calendar: React.ComponentType<CalendarProps<any>>;
|
|
193
|
-
toggleButton: React.ComponentType<ToggleButtonProps>;
|
|
194
|
-
popup: React.ComponentType<PopupProps>;
|
|
195
|
-
pickerWrap: React.ComponentType<PickerWrapProps>;
|
|
196
|
-
disabled: boolean;
|
|
197
|
-
format: string;
|
|
198
|
-
max: Date;
|
|
199
|
-
min: Date;
|
|
200
|
-
popupSettings: {};
|
|
201
|
-
tabIndex: number;
|
|
202
|
-
weekNumber: boolean;
|
|
203
|
-
required: boolean;
|
|
204
|
-
validityStyles: boolean;
|
|
205
|
-
size: "small" | "medium" | "large" | null | undefined;
|
|
206
|
-
rounded: "small" | "medium" | "large" | "full" | null | undefined;
|
|
207
|
-
fillMode: "solid" | "flat" | "outline" | null | undefined;
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* @hidden
|
|
211
|
-
*/
|
|
212
|
-
readonly state: DatePickerState;
|
|
213
|
-
private get _popupId();
|
|
214
|
-
private _element;
|
|
215
|
-
private _dateInput;
|
|
216
|
-
private _calendar;
|
|
217
|
-
private valueDuringOnChange?;
|
|
218
|
-
private showDuringOnChange?;
|
|
219
|
-
private nextTickId;
|
|
220
|
-
private shouldFocusDateInput;
|
|
221
|
-
private prevShow;
|
|
222
|
-
private observerResize?;
|
|
223
|
-
private get document();
|
|
224
|
-
constructor(props: DatePickerProps);
|
|
225
|
-
/**
|
|
226
|
-
* Gets the wrapping element of the DatePickerWithoutContext.
|
|
227
|
-
*/
|
|
228
|
-
get element(): HTMLSpanElement | null;
|
|
229
|
-
/**
|
|
230
|
-
* The mobile mode of the DatePicker.
|
|
231
|
-
*/
|
|
232
|
-
get mobileMode(): boolean;
|
|
233
|
-
/**
|
|
234
|
-
* Gets the DateInput component inside the DatePicker component.
|
|
235
|
-
*/
|
|
236
|
-
get dateInput(): DateInput | null;
|
|
237
|
-
/**
|
|
238
|
-
* Gets the Calendar component inside the DatePicker component.
|
|
239
|
-
*/
|
|
240
|
-
get calendar(): Calendar | null;
|
|
241
|
-
/**
|
|
242
|
-
* Gets the value of the DatePickerWithoutContext.
|
|
243
|
-
*/
|
|
244
|
-
get value(): Date | null;
|
|
245
|
-
/**
|
|
246
|
-
* Gets the popup state of the DatePickerWithoutContext.
|
|
247
|
-
*/
|
|
248
|
-
get show(): boolean;
|
|
249
|
-
/**
|
|
250
|
-
* Gets the `name` property of the DatePickerWithoutContext.
|
|
251
|
-
*/
|
|
252
|
-
get name(): string | undefined;
|
|
253
|
-
protected get min(): Date;
|
|
254
|
-
protected get max(): Date;
|
|
255
|
-
protected get dateInputComp(): React.ComponentType<DateInputProps<any>>;
|
|
256
|
-
protected get toggleButtonComp(): React.ComponentType<ToggleButtonProps>;
|
|
257
|
-
protected get calendarComp(): React.ComponentType<CalendarProps<any>>;
|
|
258
|
-
protected get popupComp(): React.ComponentType<PopupProps>;
|
|
259
|
-
protected get pickerWrapComp(): React.ComponentType<PickerWrapProps>;
|
|
260
|
-
/**
|
|
261
|
-
* Represents the validity state into which the DatePicker is set.
|
|
262
|
-
*/
|
|
263
|
-
get validity(): FormComponentValidity;
|
|
264
|
-
/**
|
|
265
|
-
* @hidden
|
|
266
|
-
*/
|
|
267
|
-
protected get validityStyles(): boolean;
|
|
268
|
-
/**
|
|
269
|
-
* @hidden
|
|
270
|
-
*/
|
|
271
|
-
protected get required(): boolean;
|
|
272
|
-
/**
|
|
273
|
-
* @hidden
|
|
274
|
-
*/
|
|
275
|
-
componentDidMount(): void;
|
|
276
|
-
/**
|
|
277
|
-
* @hidden
|
|
278
|
-
*/
|
|
279
|
-
componentDidUpdate(): void;
|
|
280
|
-
/**
|
|
281
|
-
* @hidden
|
|
282
|
-
*/
|
|
283
|
-
componentWillUnmount(): void;
|
|
284
|
-
/**
|
|
285
|
-
* @hidden
|
|
286
|
-
*/
|
|
287
|
-
focus: () => void;
|
|
288
|
-
/**
|
|
289
|
-
* @hidden
|
|
290
|
-
*/
|
|
291
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
292
|
-
protected setCalendarRef: (calendar: any) => void;
|
|
293
|
-
protected nextValue: (nextProps: DatePickerProps, nextState: DatePickerState) => Date | null;
|
|
294
|
-
protected nextShow: (nextProps: DatePickerProps, nextState: DatePickerState) => boolean;
|
|
295
|
-
protected setShow(show: boolean): void;
|
|
296
|
-
protected mergeTime(value: Date | null): Date | null;
|
|
297
|
-
protected nextTick(f: () => any): void;
|
|
298
|
-
private renderPopup;
|
|
299
|
-
private renderAdaptivePopup;
|
|
300
|
-
private handleInputValueChange;
|
|
301
|
-
private handleCalendarValueChange;
|
|
302
|
-
private handleValueChange;
|
|
303
|
-
private handleFocus;
|
|
304
|
-
private handleBlur;
|
|
305
|
-
private handleIconClick;
|
|
306
|
-
private handleIconMouseDown;
|
|
307
|
-
private handleKeyDown;
|
|
308
|
-
private calculateMedia;
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Represents the PropsContext of the `DatePicker` component.
|
|
312
|
-
* Used for global configuration of all `DatePicker` instances.
|
|
313
|
-
*
|
|
314
|
-
* For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
|
|
315
|
-
*/
|
|
316
|
-
export declare const DatePickerPropsContext: React.Context<(p: DatePickerProps) => DatePickerProps>;
|
|
317
|
-
/**
|
|
318
|
-
* Represent the `ref` of the DatePicker component.
|
|
319
|
-
*/
|
|
320
|
-
export interface DatePickerHandle extends Pick<DatePickerWithoutContext, keyof DatePickerWithoutContext> {
|
|
321
|
-
/**
|
|
322
|
-
* Returns the HTML element of the DatePicker component.
|
|
323
|
-
*/
|
|
324
|
-
element: HTMLSpanElement | null;
|
|
325
|
-
/**
|
|
326
|
-
* Gets the Calendar component inside the DatePicker component.
|
|
327
|
-
*/
|
|
328
|
-
calendar: Calendar | null;
|
|
329
|
-
/**
|
|
330
|
-
* Gets the DateInput component inside the DatePicker component.
|
|
331
|
-
*/
|
|
332
|
-
dateInput: DateInput | null;
|
|
333
|
-
/**
|
|
334
|
-
* Gets the `name` property of the DatePicker.
|
|
335
|
-
*/
|
|
336
|
-
name: string | undefined;
|
|
337
|
-
/**
|
|
338
|
-
* Gets the popup state of the DatePicker.
|
|
339
|
-
*/
|
|
340
|
-
show: boolean;
|
|
341
|
-
/**
|
|
342
|
-
* Represents the validity state into which the DatePicker is set.
|
|
343
|
-
*/
|
|
344
|
-
validity: FormComponentValidity;
|
|
345
|
-
/**
|
|
346
|
-
* Gets the value of the DatePicker.
|
|
347
|
-
*/
|
|
348
|
-
value: Date | null;
|
|
349
|
-
}
|
|
350
|
-
/** @hidden */
|
|
351
|
-
export type DatePicker = DatePickerHandle;
|
|
352
|
-
/**
|
|
353
|
-
* Represents the KendoReact DatePicker Component.
|
|
354
|
-
*
|
|
355
|
-
* Accepts properties of type [DatePickerProps]({% slug api_dateinputs_datepickerprops %}).
|
|
356
|
-
* Obtaining the `ref` returns an object of type [DatePickerHandle]({% slug api_dateinputs_datepickerhandle %}).
|
|
357
|
-
*/
|
|
358
|
-
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<any>>;
|
|
@@ -1,14 +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 { Button, ButtonProps } from '@progress/kendo-react-buttons';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the props of the KendoReact [Toggle Button]({% slug api_dateinputs_togglebutton %}) component.
|
|
8
|
-
*/
|
|
9
|
-
export interface ToggleButtonProps extends ButtonProps {
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Represents the default `toggleButton` component rendered by the [KendoReact Scheduler DatePicker]({% slug overview_datepicker %}).
|
|
13
|
-
*/
|
|
14
|
-
export declare const ToggleButton: typeof Button;
|
|
@@ -1,141 +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 { DateInputsPopupSettings } from '../../PopupSettings';
|
|
7
|
-
import { CalendarProps } from '../../calendar/components/Calendar';
|
|
8
|
-
import { PopupProps } from '@progress/kendo-react-popup';
|
|
9
|
-
import { DateInputProps, MultiViewCalendarProps } from '../..';
|
|
10
|
-
import { DateFormatOptions } from '@progress/kendo-react-intl';
|
|
11
|
-
import { ToggleButtonProps } from '../ToggleButton';
|
|
12
|
-
import { PickerWrapProps } from '../../common/PickerWrap';
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export interface DatePickerSettings {
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated The `DatePicker` no longer renders a `wrapper` around the DatePicker.
|
|
19
|
-
*/
|
|
20
|
-
pickerWrap?: React.ComponentType<PickerWrapProps>;
|
|
21
|
-
/**
|
|
22
|
-
* Enables the customization or the override of the default Toggle button which is rendered by the DatePicker
|
|
23
|
-
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-toggle-button)).
|
|
24
|
-
*/
|
|
25
|
-
toggleButton?: React.ComponentType<ToggleButtonProps>;
|
|
26
|
-
/**
|
|
27
|
-
* Enables the customization or the override of the default Calendar which is rendered by the DatePicker
|
|
28
|
-
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-calendar)).
|
|
29
|
-
*/
|
|
30
|
-
calendar?: React.ComponentType<CalendarProps<any>> | React.ComponentType<MultiViewCalendarProps<any>>;
|
|
31
|
-
/**
|
|
32
|
-
* Enables the customization or the override of the default Popup which is rendered by the DatePicker
|
|
33
|
-
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-popup)).
|
|
34
|
-
*/
|
|
35
|
-
popup?: React.ComponentType<PopupProps>;
|
|
36
|
-
/**
|
|
37
|
-
* Enables the customization or the override of the default DateInput which is rendered by the DatePicker
|
|
38
|
-
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-dateinput)).
|
|
39
|
-
*/
|
|
40
|
-
dateInput?: React.ComponentType<DateInputProps<any>>;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the `className` of the DatePicker.
|
|
43
|
-
*/
|
|
44
|
-
className?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the default state of the DatePicker upon render ([see example]({% slug default_value_datepicker %})).
|
|
47
|
-
*/
|
|
48
|
-
defaultShow?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Determines whether the DatePicker is disabled ([see example]({% slug disabled_datepicker %})).
|
|
51
|
-
*/
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Specifies the focused date of the DatePicker ([see example]({% slug dates_datepicker %})).
|
|
55
|
-
*/
|
|
56
|
-
focusedDate?: Date;
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the date format that is used to display the input value ([see example]({% slug formats_datepicker %})).
|
|
59
|
-
*/
|
|
60
|
-
format?: string | DateFormatOptions;
|
|
61
|
-
/**
|
|
62
|
-
* Defines the descriptions of the format sections in the input field ([more information and examples]({% slug placeholders_datepicker %})).
|
|
63
|
-
*/
|
|
64
|
-
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
65
|
-
/**
|
|
66
|
-
* Specifies the `id` of the DatePicker.
|
|
67
|
-
*/
|
|
68
|
-
id?: string;
|
|
69
|
-
/**
|
|
70
|
-
* 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).
|
|
71
|
-
* For example these elements could contain error or hint message.
|
|
72
|
-
*/
|
|
73
|
-
ariaDescribedBy?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Identifies the element(s) which will label the component.
|
|
76
|
-
*/
|
|
77
|
-
ariaLabelledBy?: string;
|
|
78
|
-
/**
|
|
79
|
-
* The accessible label of the component.
|
|
80
|
-
*/
|
|
81
|
-
ariaLabel?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Specifies the greatest valid date ([see example]({% slug dateranges_datepicker %})).
|
|
84
|
-
*/
|
|
85
|
-
max?: Date;
|
|
86
|
-
/**
|
|
87
|
-
* Specifies the smallest valid date ([see example]({% slug dateranges_datepicker %})).
|
|
88
|
-
*/
|
|
89
|
-
min?: Date;
|
|
90
|
-
/**
|
|
91
|
-
* Specifies the `name` property of the `input` DOM element.
|
|
92
|
-
*/
|
|
93
|
-
name?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Fires each time any of the DatePicker elements gets blurred.
|
|
96
|
-
*/
|
|
97
|
-
onBlur?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
98
|
-
/**
|
|
99
|
-
* Fires each time the user focuses any of the DatePicker elements.
|
|
100
|
-
*/
|
|
101
|
-
onFocus?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Configures the popup options of the DatePicker.
|
|
104
|
-
*
|
|
105
|
-
* The available options are:
|
|
106
|
-
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
107
|
-
* - `appendTo`: — Defines the container to which the Popup will be appended. Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
|
|
108
|
-
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
109
|
-
*/
|
|
110
|
-
popupSettings?: DateInputsPopupSettings;
|
|
111
|
-
/**
|
|
112
|
-
* Specifies if the calendar will be displayed ([see example]({% slug controlled_datepicker %}#toc-controlling-the-popup-state)).
|
|
113
|
-
*/
|
|
114
|
-
show?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Sets the `tabIndex` property of the DatePicker.
|
|
117
|
-
*/
|
|
118
|
-
tabIndex?: number;
|
|
119
|
-
/**
|
|
120
|
-
* Sets the title of the `input` element of the DatePicker.
|
|
121
|
-
*/
|
|
122
|
-
title?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Determines whether to display a week number column in the `month` view of the Calendar ([see example]({% slug weeknumcolumn_datepicker %})).
|
|
125
|
-
*/
|
|
126
|
-
weekNumber?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Specifies the width of the DatePicker.
|
|
129
|
-
*/
|
|
130
|
-
width?: number | string;
|
|
131
|
-
/**
|
|
132
|
-
* Renders a floating label for the DatePicker.
|
|
133
|
-
*/
|
|
134
|
-
label?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
137
|
-
* For more information, refer to the article on
|
|
138
|
-
* [placeholders]({% slug placeholders_datepicker %}).
|
|
139
|
-
*/
|
|
140
|
-
placeholder?: string | null;
|
|
141
|
-
}
|
|
@@ -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 { DatePickerSettings } from './DatePickerSettings';
|
|
6
|
-
export { DatePickerSettings };
|