@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
package/dateinput/DateInput.d.ts
DELETED
|
@@ -1,355 +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 { IntlService } from '@progress/kendo-react-intl';
|
|
8
|
-
import { DateInputSettings, DateInputFormatPlaceholder } from './models';
|
|
9
|
-
import { FormComponent, FormComponentProps, FormComponentValidity } from '@progress/kendo-react-common';
|
|
10
|
-
/**
|
|
11
|
-
* The arguments for the `change` event of the DateInput. The generic argument sets the target type of the event. Defaults to `DateInput`.
|
|
12
|
-
*/
|
|
13
|
-
export interface DateInputChangeEvent<T = DateInput> {
|
|
14
|
-
nativeEvent?: any;
|
|
15
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
16
|
-
value: Date | null;
|
|
17
|
-
target: T;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Represents the props of the [KendoReact DateInput component]({% slug overview_dateinput %}). The generic argument is passed to the `onChange` property and is used as a target in the [`DateInputChangeEvent`]({% slug api_dateinputs_dateinputchangeevent %}) interface.
|
|
21
|
-
*/
|
|
22
|
-
export interface DateInputProps<T extends DateInput = any> extends FormComponentProps, DateInputSettings {
|
|
23
|
-
/** @hidden */
|
|
24
|
-
_ref?: React.MutableRefObject<DateInput | null>;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
disableSelection?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Sets a class of the DateInput DOM element.
|
|
35
|
-
*/
|
|
36
|
-
className?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Specifies the value of the DateInput.
|
|
39
|
-
*/
|
|
40
|
-
value?: Date | null;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies the default value of the DateInput. If `value` is not set, this value will correspond to the initial value.
|
|
43
|
-
*/
|
|
44
|
-
defaultValue?: Date | null;
|
|
45
|
-
/**
|
|
46
|
-
* Indicates the availability of interactive popup element that can be triggered by an element. By default the property is set to `grid`.
|
|
47
|
-
*/
|
|
48
|
-
ariaHasPopup?: boolean | 'grid' | 'dialog';
|
|
49
|
-
/**
|
|
50
|
-
* Indicates whether the element is currently expanded or collapsed.
|
|
51
|
-
*/
|
|
52
|
-
ariaExpanded?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Specifies the role of the DateInput.
|
|
55
|
-
*/
|
|
56
|
-
ariaRole?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Identifies the element whose contents or presence are controlled by the current element.
|
|
59
|
-
*/
|
|
60
|
-
ariaControls?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Determines the event handler that will be fired when the user edits the value ([see example]({% slug dateranges_dateinput %})).
|
|
63
|
-
*/
|
|
64
|
-
onChange?: (event: DateInputChangeEvent<T>) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Configures the `size` of the DateInput.
|
|
67
|
-
*
|
|
68
|
-
* The available options are:
|
|
69
|
-
* - small
|
|
70
|
-
* - medium
|
|
71
|
-
* - large
|
|
72
|
-
* - null—Does not set a size `className`.
|
|
73
|
-
*
|
|
74
|
-
* @default `medium`
|
|
75
|
-
*/
|
|
76
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
77
|
-
/**
|
|
78
|
-
* Configures the `roundness` of the DateInput.
|
|
79
|
-
*
|
|
80
|
-
* The available options are:
|
|
81
|
-
* - small
|
|
82
|
-
* - medium
|
|
83
|
-
* - large
|
|
84
|
-
* - full
|
|
85
|
-
* - null—Does not set a rounded `className`.
|
|
86
|
-
*
|
|
87
|
-
* @default `medium`
|
|
88
|
-
*/
|
|
89
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
90
|
-
/**
|
|
91
|
-
* Configures the `fillMode` of the DateInput.
|
|
92
|
-
*
|
|
93
|
-
* The available options are:
|
|
94
|
-
* - solid
|
|
95
|
-
* - outline
|
|
96
|
-
* - flat
|
|
97
|
-
* - null—Does not set a fillMode `className`.
|
|
98
|
-
*
|
|
99
|
-
* @default `solid`
|
|
100
|
-
*/
|
|
101
|
-
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
102
|
-
/**
|
|
103
|
-
* Determines whether the DateInput is in its read-only state.
|
|
104
|
-
*/
|
|
105
|
-
readonly?: boolean;
|
|
106
|
-
}
|
|
107
|
-
/** @hidden */
|
|
108
|
-
export declare class DateInputWithoutContext extends React.Component<DateInputProps, {
|
|
109
|
-
focused: boolean;
|
|
110
|
-
}> implements FormComponent {
|
|
111
|
-
/**
|
|
112
|
-
* @hidden
|
|
113
|
-
*/
|
|
114
|
-
static displayName: string;
|
|
115
|
-
/**
|
|
116
|
-
* @hidden
|
|
117
|
-
*/
|
|
118
|
-
static propTypes: {
|
|
119
|
-
value: PropTypes.Requireable<Date>;
|
|
120
|
-
format: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
|
|
121
|
-
skeleton: PropTypes.Requireable<string>;
|
|
122
|
-
pattern: PropTypes.Requireable<string>;
|
|
123
|
-
date: PropTypes.Requireable<string>;
|
|
124
|
-
time: PropTypes.Requireable<string>;
|
|
125
|
-
datetime: PropTypes.Requireable<string>;
|
|
126
|
-
era: PropTypes.Requireable<string>;
|
|
127
|
-
year: PropTypes.Requireable<string>;
|
|
128
|
-
month: PropTypes.Requireable<string>;
|
|
129
|
-
day: PropTypes.Requireable<string>;
|
|
130
|
-
weekday: PropTypes.Requireable<string>;
|
|
131
|
-
hour: PropTypes.Requireable<string>;
|
|
132
|
-
hour12: PropTypes.Requireable<boolean>;
|
|
133
|
-
minute: PropTypes.Requireable<string>;
|
|
134
|
-
second: PropTypes.Requireable<string>;
|
|
135
|
-
timeZoneName: PropTypes.Requireable<string>;
|
|
136
|
-
}> | null | undefined>>;
|
|
137
|
-
formatPlaceholder: PropTypes.Requireable<NonNullable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
138
|
-
year: PropTypes.Requireable<string>;
|
|
139
|
-
month: PropTypes.Requireable<string>;
|
|
140
|
-
day: PropTypes.Requireable<string>;
|
|
141
|
-
hour: PropTypes.Requireable<string>;
|
|
142
|
-
minute: PropTypes.Requireable<string>;
|
|
143
|
-
second: PropTypes.Requireable<string>;
|
|
144
|
-
}> | null | undefined>>;
|
|
145
|
-
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
146
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
147
|
-
title: PropTypes.Requireable<string>;
|
|
148
|
-
steps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
149
|
-
year: PropTypes.Requireable<number>;
|
|
150
|
-
month: PropTypes.Requireable<number>;
|
|
151
|
-
day: PropTypes.Requireable<number>;
|
|
152
|
-
hour: PropTypes.Requireable<number>;
|
|
153
|
-
minute: PropTypes.Requireable<number>;
|
|
154
|
-
second: PropTypes.Requireable<number>;
|
|
155
|
-
}>>;
|
|
156
|
-
min: PropTypes.Requireable<Date>;
|
|
157
|
-
max: PropTypes.Requireable<Date>;
|
|
158
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
159
|
-
spinners: PropTypes.Requireable<boolean>;
|
|
160
|
-
name: PropTypes.Requireable<string>;
|
|
161
|
-
dir: PropTypes.Requireable<string>;
|
|
162
|
-
label: PropTypes.Requireable<string>;
|
|
163
|
-
id: PropTypes.Requireable<string>;
|
|
164
|
-
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
165
|
-
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
166
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
167
|
-
ariaRole: PropTypes.Requireable<string>;
|
|
168
|
-
ariaHasPopup: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
169
|
-
ariaExpanded: PropTypes.Requireable<NonNullable<boolean | null | undefined>>;
|
|
170
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
171
|
-
validationMessage: PropTypes.Requireable<string>;
|
|
172
|
-
required: PropTypes.Requireable<boolean>;
|
|
173
|
-
validate: PropTypes.Requireable<boolean>;
|
|
174
|
-
valid: PropTypes.Requireable<boolean>;
|
|
175
|
-
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
176
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full" | null | undefined>;
|
|
177
|
-
fillMode: PropTypes.Requireable<"solid" | "flat" | "outline" | null | undefined>;
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* @hidden
|
|
181
|
-
*/
|
|
182
|
-
static defaultProps: {
|
|
183
|
-
format: string;
|
|
184
|
-
size: "small" | "medium" | "large" | null | undefined;
|
|
185
|
-
rounded: "small" | "medium" | "large" | "full" | null | undefined;
|
|
186
|
-
fillMode: "solid" | "flat" | "outline" | null | undefined;
|
|
187
|
-
formatPlaceholder: DateInputFormatPlaceholder;
|
|
188
|
-
spinners: boolean;
|
|
189
|
-
disabled: boolean;
|
|
190
|
-
max: Date;
|
|
191
|
-
min: Date;
|
|
192
|
-
minTime: Date;
|
|
193
|
-
maxTime: Date;
|
|
194
|
-
required: boolean;
|
|
195
|
-
validityStyles: boolean;
|
|
196
|
-
validationMessage: string;
|
|
197
|
-
placeholder: null;
|
|
198
|
-
ariaHasPopup: string;
|
|
199
|
-
};
|
|
200
|
-
private kendoDate;
|
|
201
|
-
private currentFormat;
|
|
202
|
-
private valueDuringOnChange;
|
|
203
|
-
private paste;
|
|
204
|
-
private _element;
|
|
205
|
-
private _wrapper;
|
|
206
|
-
private get _inputId();
|
|
207
|
-
private _lastSelectedSymbol;
|
|
208
|
-
constructor(props: DateInputProps);
|
|
209
|
-
/**
|
|
210
|
-
* @hidden
|
|
211
|
-
*/
|
|
212
|
-
componentDidMount(): void;
|
|
213
|
-
/**
|
|
214
|
-
* @hidden
|
|
215
|
-
*/
|
|
216
|
-
componentDidUpdate(_: any, prevState: any): void;
|
|
217
|
-
/**
|
|
218
|
-
* @hidden
|
|
219
|
-
*/
|
|
220
|
-
componentWillUnmount(): void;
|
|
221
|
-
/**
|
|
222
|
-
* @hidden
|
|
223
|
-
*/
|
|
224
|
-
render(): any;
|
|
225
|
-
/**
|
|
226
|
-
* Gets the value of the DateInput.
|
|
227
|
-
*/
|
|
228
|
-
get value(): Date | null;
|
|
229
|
-
/**
|
|
230
|
-
* Gets the `name` property of the DateInput.
|
|
231
|
-
*/
|
|
232
|
-
get name(): string | undefined;
|
|
233
|
-
protected get min(): Date;
|
|
234
|
-
protected get max(): Date;
|
|
235
|
-
/**
|
|
236
|
-
* @hidden
|
|
237
|
-
*/
|
|
238
|
-
get text(): string;
|
|
239
|
-
/**
|
|
240
|
-
* Represents the validity state into which the DateInput is set.
|
|
241
|
-
*/
|
|
242
|
-
get validity(): FormComponentValidity;
|
|
243
|
-
/**
|
|
244
|
-
* Gets the element of the DateInput.
|
|
245
|
-
*
|
|
246
|
-
* @return - An `HTMLInputElement`.
|
|
247
|
-
*
|
|
248
|
-
* @example
|
|
249
|
-
* ```jsx
|
|
250
|
-
* class App extends React.Component {
|
|
251
|
-
* constructor(props) {
|
|
252
|
-
* super(props);
|
|
253
|
-
* }
|
|
254
|
-
* element = null;
|
|
255
|
-
* render() {
|
|
256
|
-
* return (
|
|
257
|
-
* <div>
|
|
258
|
-
* <DateInput
|
|
259
|
-
* ref={(dateInput) =>
|
|
260
|
-
* this.element = dateInput ? dateInput.element : null}
|
|
261
|
-
* />
|
|
262
|
-
* <button onClick={() => console.log(this.element)}>console.log the element</button>
|
|
263
|
-
* </div>
|
|
264
|
-
* );
|
|
265
|
-
* }
|
|
266
|
-
* }
|
|
267
|
-
*
|
|
268
|
-
* ReactDOM.render(
|
|
269
|
-
* <App />,
|
|
270
|
-
* document.getElementsByTagName('my-app')[0]
|
|
271
|
-
* );
|
|
272
|
-
* ```
|
|
273
|
-
*/
|
|
274
|
-
get element(): HTMLInputElement | null;
|
|
275
|
-
/**
|
|
276
|
-
* @hidden
|
|
277
|
-
*/
|
|
278
|
-
focus: () => void;
|
|
279
|
-
/**
|
|
280
|
-
* @hidden
|
|
281
|
-
*/
|
|
282
|
-
protected get validityStyles(): boolean;
|
|
283
|
-
/**
|
|
284
|
-
* @hidden
|
|
285
|
-
*/
|
|
286
|
-
protected get required(): boolean;
|
|
287
|
-
/**
|
|
288
|
-
* @hidden
|
|
289
|
-
*/
|
|
290
|
-
protected get wrapper(): HTMLSpanElement | null;
|
|
291
|
-
/**
|
|
292
|
-
* @hidden
|
|
293
|
-
*/
|
|
294
|
-
intl(): IntlService;
|
|
295
|
-
/**
|
|
296
|
-
* @hidden
|
|
297
|
-
*/
|
|
298
|
-
protected setValidity: () => void;
|
|
299
|
-
protected updateOnPaste: (event: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
300
|
-
private spinnersMouseDown;
|
|
301
|
-
private handlePaste;
|
|
302
|
-
private elementChange;
|
|
303
|
-
private elementClick;
|
|
304
|
-
private nativeWheel;
|
|
305
|
-
private wheel;
|
|
306
|
-
private increasePart;
|
|
307
|
-
private decreasePart;
|
|
308
|
-
private elementKeyDown;
|
|
309
|
-
private elementOnFocus;
|
|
310
|
-
private elementOnBlur;
|
|
311
|
-
private get selection();
|
|
312
|
-
private setSelection;
|
|
313
|
-
private triggerChange;
|
|
314
|
-
private selectionBySymbol;
|
|
315
|
-
private selectionByIndex;
|
|
316
|
-
private switchDateSegment;
|
|
317
|
-
private modifyDateSegmentValue;
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Represents the PropsContext of the `DateInput` component.
|
|
321
|
-
* Used for global configuration of all `DateInput` instances.
|
|
322
|
-
*
|
|
323
|
-
* For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
|
|
324
|
-
*/
|
|
325
|
-
export declare const DateInputPropsContext: React.Context<(p: DateInputProps<any>) => DateInputProps<any>>;
|
|
326
|
-
/**
|
|
327
|
-
* Represent the `ref` of the DateInput component.
|
|
328
|
-
*/
|
|
329
|
-
export interface DateInputHandle extends Pick<DateInputWithoutContext, keyof DateInputWithoutContext> {
|
|
330
|
-
/**
|
|
331
|
-
* Returns the HTML element of the DateInput component.
|
|
332
|
-
*/
|
|
333
|
-
element: HTMLInputElement | null;
|
|
334
|
-
/**
|
|
335
|
-
* Gets the `name` property of the DateInput.
|
|
336
|
-
*/
|
|
337
|
-
name: string | undefined;
|
|
338
|
-
/**
|
|
339
|
-
* Returns the `value` of the DateInput component.
|
|
340
|
-
*/
|
|
341
|
-
value: Date | null;
|
|
342
|
-
/**
|
|
343
|
-
* Represents the validity state into which the DateInput is set.
|
|
344
|
-
*/
|
|
345
|
-
validity: FormComponentValidity;
|
|
346
|
-
}
|
|
347
|
-
/** @hidden */
|
|
348
|
-
export type DateInput = DateInputHandle;
|
|
349
|
-
/**
|
|
350
|
-
* Represents the KendoReact DateInput Component.
|
|
351
|
-
*
|
|
352
|
-
* Accepts properties of type [DateInputProps]({% slug api_dateinputs_dateinputprops %}).
|
|
353
|
-
* Obtaining the `ref` returns an object of type [DateInputHandle]({% slug api_dateinputs_dateinputhandle %}).
|
|
354
|
-
*/
|
|
355
|
-
export declare const DateInput: React.ForwardRefExoticComponent<DateInputProps<any> & React.RefAttributes<any>>;
|
|
@@ -1,103 +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 './format-placeholder';
|
|
6
|
-
import { DateInputIncrementalSteps } from './incremental-steps';
|
|
7
|
-
import { DateFormatOptions } from '@progress/kendo-react-intl';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface DateInputSettings {
|
|
12
|
-
/**
|
|
13
|
-
* Specifies the `date` format which is used for formatting the value ([see example]({% slug formats_dateinput %})). If not set, the default format will be used.
|
|
14
|
-
*/
|
|
15
|
-
format?: string | DateFormatOptions;
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the descriptions of the format sections in the input field ([more information and example]({% slug placeholders_dateinput %})).
|
|
18
|
-
*/
|
|
19
|
-
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the width of the DateInput.
|
|
22
|
-
*/
|
|
23
|
-
width?: number | string;
|
|
24
|
-
/**
|
|
25
|
-
* Sets the `tabIndex` property of the DateInput.
|
|
26
|
-
*/
|
|
27
|
-
tabIndex?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Sets the title of the `input` element of the DateInput.
|
|
30
|
-
*/
|
|
31
|
-
title?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies the incremental steps of the DateInput ([see example]({% slug incrementalsteps_dateinput %})).
|
|
34
|
-
*
|
|
35
|
-
* The available options are:
|
|
36
|
-
* - `year: Number`—Controls the incremental step of the year value.
|
|
37
|
-
* - `month: Number`—Controls the incremental step of the month value.
|
|
38
|
-
* - `day: Number`—Controls the incremental step of the day value.
|
|
39
|
-
* - `hour: Number`—Controls the incremental step of the hour value.
|
|
40
|
-
* - `minute: Number`—Controls the incremental step of the minute value.
|
|
41
|
-
* - `second: Number`—Controls the incremental step of the second value.
|
|
42
|
-
*/
|
|
43
|
-
steps?: DateInputIncrementalSteps;
|
|
44
|
-
/**
|
|
45
|
-
* Specifies the smallest date that is valid ([see example]({% slug dateranges_dateinput %})).
|
|
46
|
-
*/
|
|
47
|
-
min?: Date;
|
|
48
|
-
/**
|
|
49
|
-
* Specifies the greatest date that is valid ([see example]({% slug dateranges_dateinput %})).
|
|
50
|
-
*/
|
|
51
|
-
max?: Date;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the smallest time that is valid ([see example]({% slug dateranges_dateinput %}#toc-limiting-the-time-range)).
|
|
54
|
-
*/
|
|
55
|
-
minTime?: Date;
|
|
56
|
-
/**
|
|
57
|
-
* Specifies the greatest time that is valid ([see example]({% slug dateranges_dateinput %}#toc-limiting-the-time-range)).
|
|
58
|
-
*/
|
|
59
|
-
maxTime?: Date;
|
|
60
|
-
/**
|
|
61
|
-
* Determines whether the DateInput is disabled ([see example]({% slug disabled_dateinput %})).
|
|
62
|
-
*/
|
|
63
|
-
disabled?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Specifies whether the **Up** and **Down** spin buttons will be rendered ([see example]({% slug spinbuttons_dateinput %})).
|
|
66
|
-
*/
|
|
67
|
-
spinners?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Specifies the name property of the input DOM element.
|
|
70
|
-
*/
|
|
71
|
-
name?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Represents the `dir` HTML attribute.
|
|
74
|
-
*/
|
|
75
|
-
dir?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Renders a floating label for the DateInput.
|
|
78
|
-
*/
|
|
79
|
-
label?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Sets the `id` of the `input` DOM element.
|
|
82
|
-
*/
|
|
83
|
-
id?: string;
|
|
84
|
-
/**
|
|
85
|
-
* 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).
|
|
86
|
-
* For example these elements could contain error or hint message.
|
|
87
|
-
*/
|
|
88
|
-
ariaDescribedBy?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Identifies the element(s) which will label the component.
|
|
91
|
-
*/
|
|
92
|
-
ariaLabelledBy?: string;
|
|
93
|
-
/**
|
|
94
|
-
* The accessible label of the component.
|
|
95
|
-
*/
|
|
96
|
-
ariaLabel?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
99
|
-
* For more information, refer to the article on
|
|
100
|
-
* [placeholders]({% slug placeholders_dateinput %}).
|
|
101
|
-
*/
|
|
102
|
-
placeholder?: string | null;
|
|
103
|
-
}
|
|
@@ -1,43 +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
|
-
/**
|
|
6
|
-
* The interface which defines a custom-format placeholder structure in the DateInput.
|
|
7
|
-
*/
|
|
8
|
-
export interface DateInputCustomFormatPlaceholder {
|
|
9
|
-
/**
|
|
10
|
-
* Defines the description for the `year` format section.
|
|
11
|
-
*/
|
|
12
|
-
year?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Defines the description for the `month` format section.
|
|
15
|
-
*/
|
|
16
|
-
month?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Defines the description for the `day` format section.
|
|
19
|
-
*/
|
|
20
|
-
day?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Defines the description for the `hour` format section.
|
|
23
|
-
*/
|
|
24
|
-
hour?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Defines the description for the `minute` format section.
|
|
27
|
-
*/
|
|
28
|
-
minute?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Defines the description for the `second` format section.
|
|
31
|
-
*/
|
|
32
|
-
second?: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* The union type which defines all possible format options of the DateInput placeholder.
|
|
36
|
-
*
|
|
37
|
-
* The available options are:
|
|
38
|
-
* * `'wide'`—Displays the full description of the format section. For example, turns `MM` into `month`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
|
|
39
|
-
* * `'narrow'`—Displays the narrow description of the format section. For example, turns `MM` into `mo.`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
|
|
40
|
-
* * `'short'`—Displays the short description of the format section. For example, turns `MM` into `mo.`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
|
|
41
|
-
* * `'formatPattern'`—Directly displays the format section. For example, turns `MM` into `MM`.
|
|
42
|
-
*/
|
|
43
|
-
export type DateInputFormatPlaceholder = 'wide' | 'narrow' | 'short' | 'formatPattern' | DateInputCustomFormatPlaceholder;
|
|
@@ -1,15 +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
|
-
/**
|
|
6
|
-
* The interface which defines all possible incremental steps in the DateInput.
|
|
7
|
-
*/
|
|
8
|
-
export interface DateInputIncrementalSteps {
|
|
9
|
-
year?: number;
|
|
10
|
-
month?: number;
|
|
11
|
-
day?: number;
|
|
12
|
-
hour?: number;
|
|
13
|
-
minute?: number;
|
|
14
|
-
second?: number;
|
|
15
|
-
}
|
|
@@ -1,11 +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 { type DateInputFormatPlaceholder, type DateInputCustomFormatPlaceholder } from './format-placeholder';
|
|
6
|
-
import { type DateInputIncrementalSteps } from './incremental-steps';
|
|
7
|
-
import { type DateInputSettings } from './DateInputSettings';
|
|
8
|
-
import { type DatePart, KendoDate } from './kendo-date';
|
|
9
|
-
import { Mask } from './mask';
|
|
10
|
-
import { type Selection } from './selection';
|
|
11
|
-
export { DateInputFormatPlaceholder, DateInputCustomFormatPlaceholder, DateInputIncrementalSteps, DateInputSettings, DatePart, KendoDate, Mask, Selection };
|
|
@@ -1,57 +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 './format-placeholder';
|
|
6
|
-
import { IntlService, DateFormatOptions } from '@progress/kendo-react-intl';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export interface DatePart {
|
|
11
|
-
value: Date | null;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare class KendoDate {
|
|
17
|
-
year: boolean;
|
|
18
|
-
month: boolean;
|
|
19
|
-
date: boolean;
|
|
20
|
-
hours: boolean;
|
|
21
|
-
minutes: boolean;
|
|
22
|
-
seconds: boolean;
|
|
23
|
-
milliseconds: boolean;
|
|
24
|
-
formatPlaceholder: DateInputFormatPlaceholder;
|
|
25
|
-
format: string | DateFormatOptions;
|
|
26
|
-
private leadingZero;
|
|
27
|
-
private monthNames;
|
|
28
|
-
private typedMonthPart;
|
|
29
|
-
private knownParts;
|
|
30
|
-
private symbols;
|
|
31
|
-
private intlProvider;
|
|
32
|
-
get intl(): IntlService;
|
|
33
|
-
private _value;
|
|
34
|
-
get value(): Date;
|
|
35
|
-
constructor(intlProvider: () => IntlService, formatPlaceholder: DateInputFormatPlaceholder, format: string | DateFormatOptions);
|
|
36
|
-
setValue(value: Date | null): void;
|
|
37
|
-
hasValue(): boolean;
|
|
38
|
-
getDateObject(): Date | null;
|
|
39
|
-
getTextAndFormat(): {
|
|
40
|
-
text: string;
|
|
41
|
-
format: string;
|
|
42
|
-
};
|
|
43
|
-
modifyExisting(value: boolean): void;
|
|
44
|
-
getExisting(symbol: string): boolean;
|
|
45
|
-
setExisting(symbol: string, value: boolean): void;
|
|
46
|
-
modifyPart(symbol: string, offset: number): void;
|
|
47
|
-
parsePart(symbol: string, currentChar: string): DatePart;
|
|
48
|
-
symbolMap(symbol: string): string;
|
|
49
|
-
resetLeadingZero(): boolean;
|
|
50
|
-
private isAbbrMonth;
|
|
51
|
-
private partPattern;
|
|
52
|
-
private matchMonth;
|
|
53
|
-
private allFormatedMonths;
|
|
54
|
-
private dateFormatString;
|
|
55
|
-
private merge;
|
|
56
|
-
private dateFieldName;
|
|
57
|
-
}
|
|
@@ -1,11 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare class Mask {
|
|
9
|
-
symbols: string;
|
|
10
|
-
partMap: any[];
|
|
11
|
-
}
|
|
@@ -1,11 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export type Selection = {
|
|
9
|
-
start: number;
|
|
10
|
-
end: number;
|
|
11
|
-
};
|
package/dateinput/utils.d.ts
DELETED
|
@@ -1,34 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const defaultFormat = "d";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const defaultFormatPlaceholder = "wide";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const padZero: (length: number) => string;
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare const approximateStringMatching: (oldTextOrigin: string, oldFormat: string, newTextOrigin: string, selectionStart: number) => any[];
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export declare const dateSymbolMap: (map: any, part: any) => Function;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export declare const isInRange: (candidate: Date | null, min: Date, max: Date) => boolean;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export declare const invalidClasses: string[];
|
|
33
|
-
/** @hidden */
|
|
34
|
-
export declare const wrapperClasses: string[];
|