@progress/kendo-react-dateinputs 8.3.0-develop.1 → 8.3.0-develop.11
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 +2 -2
- package/calendar/components/Calendar.mjs +123 -115
- package/calendar/components/CalendarCell.js +1 -1
- package/calendar/components/CalendarCell.mjs +37 -39
- package/calendar/components/CalendarHeaderTitle.js +1 -1
- package/calendar/components/CalendarHeaderTitle.mjs +6 -12
- package/calendar/components/CalendarNavigationItem.js +1 -1
- package/calendar/components/CalendarNavigationItem.mjs +15 -19
- package/calendar/components/CalendarWeekCell.js +1 -1
- package/calendar/components/CalendarWeekCell.mjs +10 -15
- package/calendar/components/Header.js +1 -1
- package/calendar/components/Header.mjs +30 -40
- package/calendar/components/Navigation.js +1 -1
- package/calendar/components/Navigation.mjs +50 -47
- package/calendar/components/TodayCommand.js +1 -1
- package/calendar/components/TodayCommand.mjs +21 -25
- package/calendar/components/View.js +1 -1
- package/calendar/components/View.mjs +48 -42
- package/calendar/components/ViewList.js +1 -1
- package/calendar/components/ViewList.mjs +100 -95
- package/common/ClearButton.js +1 -1
- package/common/ClearButton.mjs +25 -31
- package/dateinput/DateInput.js +1 -1
- package/dateinput/DateInput.mjs +113 -110
- package/dateinput/utils.js +1 -1
- package/dateinput/utils.mjs +22 -23
- package/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +20 -14
- package/daterangepicker/DateRangePicker.js +1 -1
- package/daterangepicker/DateRangePicker.mjs +5 -5
- package/datetimepicker/DateTimePicker.js +1 -1
- package/datetimepicker/DateTimePicker.mjs +95 -90
- package/datetimepicker/DateTimeSelector.js +1 -1
- package/datetimepicker/DateTimeSelector.mjs +83 -81
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/index.d.mts +41 -29
- package/index.d.ts +41 -29
- package/package-metadata.mjs +1 -1
- package/package.json +7 -7
- package/timepicker/TimeList.js +3 -3
- package/timepicker/TimeList.mjs +83 -81
- package/timepicker/TimePart.js +1 -1
- package/timepicker/TimePart.mjs +74 -68
- package/timepicker/TimePicker.js +1 -1
- package/timepicker/TimePicker.mjs +112 -107
- package/timepicker/TimeSelector.js +1 -1
- package/timepicker/TimeSelector.mjs +66 -59
- package/virtualization/Virtualization.js +1 -1
- package/virtualization/Virtualization.mjs +49 -48
package/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ import { Button } from '@progress/kendo-react-buttons';
|
|
|
9
9
|
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
10
10
|
import { DateFormatOptions } from '@progress/kendo-react-intl';
|
|
11
11
|
import { DateFormatPart } from '@progress/kendo-react-intl';
|
|
12
|
+
import { DateInputsClassStructure } from '@progress/kendo-react-common';
|
|
12
13
|
import { FormComponent } from '@progress/kendo-react-common';
|
|
13
14
|
import { FormComponentProps } from '@progress/kendo-react-common';
|
|
14
15
|
import { FormComponentValidity } from '@progress/kendo-react-common';
|
|
@@ -81,10 +82,6 @@ export declare class CalendarCell extends React_2.Component<CalendarCellProps> {
|
|
|
81
82
|
* @hidden
|
|
82
83
|
*/
|
|
83
84
|
shouldComponentUpdate(nextProps: CalendarCellProps): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* @return
|
|
86
|
-
* Returns a `<td />` element with a `<span className="k-link" />` inside to apply the styles. The text inside is the [`formattedValue`]({% slug api_dateinputs_calendarcellprops %}#toc-formattedvalue) of the `cell`.
|
|
87
|
-
*/
|
|
88
85
|
render(): JSX_2.Element;
|
|
89
86
|
private handleClick;
|
|
90
87
|
private handleMouseEnter;
|
|
@@ -104,6 +101,10 @@ export declare interface CalendarCellProps extends CellContext {
|
|
|
104
101
|
onMouseEnter?: (value: Date, event?: React_2.MouseEvent<any>) => void;
|
|
105
102
|
onMouseLeave?: (value: Date, event?: React_2.MouseEvent<any>) => void;
|
|
106
103
|
[aria: string]: any;
|
|
104
|
+
/**
|
|
105
|
+
* @hidden
|
|
106
|
+
*/
|
|
107
|
+
unstyled?: DateInputsClassStructure;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
/**
|
|
@@ -156,13 +157,7 @@ declare interface CalendarHeaderProps {
|
|
|
156
157
|
* * [Customizing the title for the current Calendar view]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)
|
|
157
158
|
* * [Customizing the title for the current MultiViewCalendar view]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-view)
|
|
158
159
|
*/
|
|
159
|
-
export declare
|
|
160
|
-
/**
|
|
161
|
-
* @return
|
|
162
|
-
* Returns a `<span />` element with the [`value`]({% slug api_dateinputs_calendarheadertitleprops %}#toc-value) of the title as a child.
|
|
163
|
-
*/
|
|
164
|
-
render(): JSX_2.Element;
|
|
165
|
-
}
|
|
160
|
+
export declare const CalendarHeaderTitle: (props: CalendarHeaderTitleProps) => JSX_2.Element;
|
|
166
161
|
|
|
167
162
|
/**
|
|
168
163
|
* The props which will be received by the custom header title of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-headertitle) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-headertitle).
|
|
@@ -179,16 +174,11 @@ export declare interface CalendarHeaderTitleProps {
|
|
|
179
174
|
}
|
|
180
175
|
|
|
181
176
|
/**
|
|
182
|
-
* The `CalendarNavigationItem` component is internally used for rendering the items in the side navigation of the Calendar.
|
|
177
|
+
* The `CalendarNavigationItem` component is internally used for rendering the items in the side navigation of the Calendar.
|
|
178
|
+
* Also used as a custom navigation item for the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem)
|
|
179
|
+
* ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
|
|
183
180
|
*/
|
|
184
|
-
export declare
|
|
185
|
-
/**
|
|
186
|
-
* @return
|
|
187
|
-
* Returns a `<li />` element with a `<span />` inside. The text inside represents the [`value`]({% slug api_dateinputs_calendarnavigationitemprops %}#toc-value) of the `navigationItem`.
|
|
188
|
-
*/
|
|
189
|
-
render(): JSX_2.Element;
|
|
190
|
-
private handleClick;
|
|
191
|
-
}
|
|
181
|
+
export declare const CalendarNavigationItem: (props: CalendarNavigationItemProps) => JSX_2.Element;
|
|
192
182
|
|
|
193
183
|
/**
|
|
194
184
|
* The props which will be received by the custom navigation item of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem).
|
|
@@ -229,6 +219,10 @@ export declare interface CalendarProps<T = any> extends CalendarSettings {
|
|
|
229
219
|
* @hidden
|
|
230
220
|
*/
|
|
231
221
|
mobileMode?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* @hidden
|
|
224
|
+
*/
|
|
225
|
+
unstyled?: DateInputsClassStructure;
|
|
232
226
|
}
|
|
233
227
|
|
|
234
228
|
/**
|
|
@@ -377,14 +371,7 @@ export declare enum CalendarViewEnum {
|
|
|
377
371
|
* * [Customizing week-column cells in the Calendar]({% slug custom_rendering_calendar %}#toc-cells-inside-the-week-column)
|
|
378
372
|
* * [Customizing week-column cells in the MultiViewCalendar]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-week-column)
|
|
379
373
|
*/
|
|
380
|
-
export declare
|
|
381
|
-
/**
|
|
382
|
-
* @return
|
|
383
|
-
* Returns a `<td />` element with the [`value`]({% slug api_dateinputs_calendarweekcellprops %}#toc-value) as a child.
|
|
384
|
-
*/
|
|
385
|
-
private handleClick;
|
|
386
|
-
render(): JSX_2.Element;
|
|
387
|
-
}
|
|
374
|
+
export declare const CalendarWeekCell: (props: CalendarWeekCellProps) => JSX_2.Element;
|
|
388
375
|
|
|
389
376
|
/**
|
|
390
377
|
* The props which will be received by the custom week cell of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-weekcell) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-weekcell).
|
|
@@ -398,6 +385,10 @@ export declare interface CalendarWeekCellProps {
|
|
|
398
385
|
firstDate: Date;
|
|
399
386
|
weekDays?: Date[];
|
|
400
387
|
onClick?: (firstDate: Date, value: Date[], event: React_2.MouseEvent<HTMLTableCellElement>) => void;
|
|
388
|
+
/**
|
|
389
|
+
* @hidden
|
|
390
|
+
*/
|
|
391
|
+
unstyled?: DateInputsClassStructure;
|
|
401
392
|
}
|
|
402
393
|
|
|
403
394
|
/** @hidden */
|
|
@@ -741,6 +732,10 @@ export declare interface DateInputProps<T extends DateInput = any> extends FormC
|
|
|
741
732
|
* Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateInput. (Defaults to `false`)
|
|
742
733
|
*/
|
|
743
734
|
autoFocus?: boolean;
|
|
735
|
+
/**
|
|
736
|
+
* @hidden
|
|
737
|
+
*/
|
|
738
|
+
unstyled?: DateInputsClassStructure;
|
|
744
739
|
}
|
|
745
740
|
|
|
746
741
|
/**
|
|
@@ -878,7 +873,7 @@ export declare const dateInputsMessages: {
|
|
|
878
873
|
"datetimepicker.toggleDateTimeSelector": string;
|
|
879
874
|
};
|
|
880
875
|
|
|
881
|
-
declare interface DateInputsPopupSettings {
|
|
876
|
+
declare interface DateInputsPopupSettings extends PopupProps {
|
|
882
877
|
/**
|
|
883
878
|
* Controls the popup animation. By default, the open and close animations are enabled.
|
|
884
879
|
*/
|
|
@@ -1606,6 +1601,8 @@ export declare class DatePickerWithoutContext extends React_2.Component<DatePick
|
|
|
1606
1601
|
private handleValueChange;
|
|
1607
1602
|
private handleFocus;
|
|
1608
1603
|
private handleBlur;
|
|
1604
|
+
togglePopup: () => void;
|
|
1605
|
+
private handleMouseDownOutside;
|
|
1609
1606
|
private handleIconClick;
|
|
1610
1607
|
private handleIconMouseDown;
|
|
1611
1608
|
private handleKeyDown;
|
|
@@ -2251,6 +2248,10 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
|
|
|
2251
2248
|
* Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateTimePicker. (Defaults to `false`)
|
|
2252
2249
|
*/
|
|
2253
2250
|
autoFocus?: boolean;
|
|
2251
|
+
/**
|
|
2252
|
+
* @hidden
|
|
2253
|
+
*/
|
|
2254
|
+
unstyled?: DateInputsClassStructure;
|
|
2254
2255
|
}
|
|
2255
2256
|
|
|
2256
2257
|
/**
|
|
@@ -2789,6 +2790,7 @@ declare interface HeaderProps {
|
|
|
2789
2790
|
header?: React_2.ComponentType<CalendarHeaderProps>;
|
|
2790
2791
|
commands?: React_2.ReactNode;
|
|
2791
2792
|
verticalView?: boolean;
|
|
2793
|
+
unstyled?: DateInputsClassStructure;
|
|
2792
2794
|
}
|
|
2793
2795
|
|
|
2794
2796
|
/**
|
|
@@ -3580,6 +3582,7 @@ declare interface TimeListProps {
|
|
|
3580
3582
|
disabled?: boolean;
|
|
3581
3583
|
show?: boolean;
|
|
3582
3584
|
mobileMode?: boolean;
|
|
3585
|
+
unstyled?: DateInputsClassStructure;
|
|
3583
3586
|
}
|
|
3584
3587
|
|
|
3585
3588
|
/**
|
|
@@ -3693,6 +3696,7 @@ declare interface TimePartProps {
|
|
|
3693
3696
|
onNowKeyDown?: (event: React_2.KeyboardEvent) => void;
|
|
3694
3697
|
show?: boolean;
|
|
3695
3698
|
mobileMode?: boolean;
|
|
3699
|
+
unstyled?: DateInputsClassStructure;
|
|
3696
3700
|
}
|
|
3697
3701
|
|
|
3698
3702
|
/**
|
|
@@ -3852,6 +3856,10 @@ export declare interface TimePickerProps extends TimePickerSettings, FormCompone
|
|
|
3852
3856
|
* Specifies the text that is rendered as title in the adaptive popup.
|
|
3853
3857
|
*/
|
|
3854
3858
|
adaptiveTitle?: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* @hidden
|
|
3861
|
+
*/
|
|
3862
|
+
unstyled?: DateInputsClassStructure;
|
|
3855
3863
|
}
|
|
3856
3864
|
|
|
3857
3865
|
/**
|
|
@@ -4296,6 +4304,7 @@ declare interface TimeSelectorProps {
|
|
|
4296
4304
|
show?: boolean;
|
|
4297
4305
|
footer?: boolean;
|
|
4298
4306
|
mobileMode?: boolean;
|
|
4307
|
+
unstyled?: DateInputsClassStructure;
|
|
4299
4308
|
}
|
|
4300
4309
|
|
|
4301
4310
|
/**
|
|
@@ -4339,6 +4348,7 @@ declare interface TodayCommandProps {
|
|
|
4339
4348
|
onClick?: (event: HeaderEventArguments) => void;
|
|
4340
4349
|
disabled?: boolean;
|
|
4341
4350
|
tabIndex?: number;
|
|
4351
|
+
unstyled?: DateInputsClassStructure;
|
|
4342
4352
|
}
|
|
4343
4353
|
|
|
4344
4354
|
/**
|
|
@@ -4465,6 +4475,7 @@ declare interface ViewListProps {
|
|
|
4465
4475
|
header?: React_2.ComponentType<CalendarHeaderProps>;
|
|
4466
4476
|
shouldScroll?: () => boolean;
|
|
4467
4477
|
tabIndex?: number;
|
|
4478
|
+
unstyled?: DateInputsClassStructure;
|
|
4468
4479
|
}
|
|
4469
4480
|
|
|
4470
4481
|
/**
|
|
@@ -4591,6 +4602,7 @@ declare interface VirtualizationProps {
|
|
|
4591
4602
|
total: number;
|
|
4592
4603
|
role?: string;
|
|
4593
4604
|
children?: React_2.ReactNode;
|
|
4605
|
+
unstyled?: DateInputsClassStructure;
|
|
4594
4606
|
}
|
|
4595
4607
|
|
|
4596
4608
|
/**
|
package/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { Button } from '@progress/kendo-react-buttons';
|
|
|
9
9
|
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
10
10
|
import { DateFormatOptions } from '@progress/kendo-react-intl';
|
|
11
11
|
import { DateFormatPart } from '@progress/kendo-react-intl';
|
|
12
|
+
import { DateInputsClassStructure } from '@progress/kendo-react-common';
|
|
12
13
|
import { FormComponent } from '@progress/kendo-react-common';
|
|
13
14
|
import { FormComponentProps } from '@progress/kendo-react-common';
|
|
14
15
|
import { FormComponentValidity } from '@progress/kendo-react-common';
|
|
@@ -81,10 +82,6 @@ export declare class CalendarCell extends React_2.Component<CalendarCellProps> {
|
|
|
81
82
|
* @hidden
|
|
82
83
|
*/
|
|
83
84
|
shouldComponentUpdate(nextProps: CalendarCellProps): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* @return
|
|
86
|
-
* Returns a `<td />` element with a `<span className="k-link" />` inside to apply the styles. The text inside is the [`formattedValue`]({% slug api_dateinputs_calendarcellprops %}#toc-formattedvalue) of the `cell`.
|
|
87
|
-
*/
|
|
88
85
|
render(): JSX_2.Element;
|
|
89
86
|
private handleClick;
|
|
90
87
|
private handleMouseEnter;
|
|
@@ -104,6 +101,10 @@ export declare interface CalendarCellProps extends CellContext {
|
|
|
104
101
|
onMouseEnter?: (value: Date, event?: React_2.MouseEvent<any>) => void;
|
|
105
102
|
onMouseLeave?: (value: Date, event?: React_2.MouseEvent<any>) => void;
|
|
106
103
|
[aria: string]: any;
|
|
104
|
+
/**
|
|
105
|
+
* @hidden
|
|
106
|
+
*/
|
|
107
|
+
unstyled?: DateInputsClassStructure;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
/**
|
|
@@ -156,13 +157,7 @@ declare interface CalendarHeaderProps {
|
|
|
156
157
|
* * [Customizing the title for the current Calendar view]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)
|
|
157
158
|
* * [Customizing the title for the current MultiViewCalendar view]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-view)
|
|
158
159
|
*/
|
|
159
|
-
export declare
|
|
160
|
-
/**
|
|
161
|
-
* @return
|
|
162
|
-
* Returns a `<span />` element with the [`value`]({% slug api_dateinputs_calendarheadertitleprops %}#toc-value) of the title as a child.
|
|
163
|
-
*/
|
|
164
|
-
render(): JSX_2.Element;
|
|
165
|
-
}
|
|
160
|
+
export declare const CalendarHeaderTitle: (props: CalendarHeaderTitleProps) => JSX_2.Element;
|
|
166
161
|
|
|
167
162
|
/**
|
|
168
163
|
* The props which will be received by the custom header title of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-headertitle) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-headertitle).
|
|
@@ -179,16 +174,11 @@ export declare interface CalendarHeaderTitleProps {
|
|
|
179
174
|
}
|
|
180
175
|
|
|
181
176
|
/**
|
|
182
|
-
* The `CalendarNavigationItem` component is internally used for rendering the items in the side navigation of the Calendar.
|
|
177
|
+
* The `CalendarNavigationItem` component is internally used for rendering the items in the side navigation of the Calendar.
|
|
178
|
+
* Also used as a custom navigation item for the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem)
|
|
179
|
+
* ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
|
|
183
180
|
*/
|
|
184
|
-
export declare
|
|
185
|
-
/**
|
|
186
|
-
* @return
|
|
187
|
-
* Returns a `<li />` element with a `<span />` inside. The text inside represents the [`value`]({% slug api_dateinputs_calendarnavigationitemprops %}#toc-value) of the `navigationItem`.
|
|
188
|
-
*/
|
|
189
|
-
render(): JSX_2.Element;
|
|
190
|
-
private handleClick;
|
|
191
|
-
}
|
|
181
|
+
export declare const CalendarNavigationItem: (props: CalendarNavigationItemProps) => JSX_2.Element;
|
|
192
182
|
|
|
193
183
|
/**
|
|
194
184
|
* The props which will be received by the custom navigation item of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem).
|
|
@@ -229,6 +219,10 @@ export declare interface CalendarProps<T = any> extends CalendarSettings {
|
|
|
229
219
|
* @hidden
|
|
230
220
|
*/
|
|
231
221
|
mobileMode?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* @hidden
|
|
224
|
+
*/
|
|
225
|
+
unstyled?: DateInputsClassStructure;
|
|
232
226
|
}
|
|
233
227
|
|
|
234
228
|
/**
|
|
@@ -377,14 +371,7 @@ export declare enum CalendarViewEnum {
|
|
|
377
371
|
* * [Customizing week-column cells in the Calendar]({% slug custom_rendering_calendar %}#toc-cells-inside-the-week-column)
|
|
378
372
|
* * [Customizing week-column cells in the MultiViewCalendar]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-week-column)
|
|
379
373
|
*/
|
|
380
|
-
export declare
|
|
381
|
-
/**
|
|
382
|
-
* @return
|
|
383
|
-
* Returns a `<td />` element with the [`value`]({% slug api_dateinputs_calendarweekcellprops %}#toc-value) as a child.
|
|
384
|
-
*/
|
|
385
|
-
private handleClick;
|
|
386
|
-
render(): JSX_2.Element;
|
|
387
|
-
}
|
|
374
|
+
export declare const CalendarWeekCell: (props: CalendarWeekCellProps) => JSX_2.Element;
|
|
388
375
|
|
|
389
376
|
/**
|
|
390
377
|
* The props which will be received by the custom week cell of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-weekcell) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-weekcell).
|
|
@@ -398,6 +385,10 @@ export declare interface CalendarWeekCellProps {
|
|
|
398
385
|
firstDate: Date;
|
|
399
386
|
weekDays?: Date[];
|
|
400
387
|
onClick?: (firstDate: Date, value: Date[], event: React_2.MouseEvent<HTMLTableCellElement>) => void;
|
|
388
|
+
/**
|
|
389
|
+
* @hidden
|
|
390
|
+
*/
|
|
391
|
+
unstyled?: DateInputsClassStructure;
|
|
401
392
|
}
|
|
402
393
|
|
|
403
394
|
/** @hidden */
|
|
@@ -741,6 +732,10 @@ export declare interface DateInputProps<T extends DateInput = any> extends FormC
|
|
|
741
732
|
* Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateInput. (Defaults to `false`)
|
|
742
733
|
*/
|
|
743
734
|
autoFocus?: boolean;
|
|
735
|
+
/**
|
|
736
|
+
* @hidden
|
|
737
|
+
*/
|
|
738
|
+
unstyled?: DateInputsClassStructure;
|
|
744
739
|
}
|
|
745
740
|
|
|
746
741
|
/**
|
|
@@ -878,7 +873,7 @@ export declare const dateInputsMessages: {
|
|
|
878
873
|
"datetimepicker.toggleDateTimeSelector": string;
|
|
879
874
|
};
|
|
880
875
|
|
|
881
|
-
declare interface DateInputsPopupSettings {
|
|
876
|
+
declare interface DateInputsPopupSettings extends PopupProps {
|
|
882
877
|
/**
|
|
883
878
|
* Controls the popup animation. By default, the open and close animations are enabled.
|
|
884
879
|
*/
|
|
@@ -1606,6 +1601,8 @@ export declare class DatePickerWithoutContext extends React_2.Component<DatePick
|
|
|
1606
1601
|
private handleValueChange;
|
|
1607
1602
|
private handleFocus;
|
|
1608
1603
|
private handleBlur;
|
|
1604
|
+
togglePopup: () => void;
|
|
1605
|
+
private handleMouseDownOutside;
|
|
1609
1606
|
private handleIconClick;
|
|
1610
1607
|
private handleIconMouseDown;
|
|
1611
1608
|
private handleKeyDown;
|
|
@@ -2251,6 +2248,10 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
|
|
|
2251
2248
|
* Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateTimePicker. (Defaults to `false`)
|
|
2252
2249
|
*/
|
|
2253
2250
|
autoFocus?: boolean;
|
|
2251
|
+
/**
|
|
2252
|
+
* @hidden
|
|
2253
|
+
*/
|
|
2254
|
+
unstyled?: DateInputsClassStructure;
|
|
2254
2255
|
}
|
|
2255
2256
|
|
|
2256
2257
|
/**
|
|
@@ -2789,6 +2790,7 @@ declare interface HeaderProps {
|
|
|
2789
2790
|
header?: React_2.ComponentType<CalendarHeaderProps>;
|
|
2790
2791
|
commands?: React_2.ReactNode;
|
|
2791
2792
|
verticalView?: boolean;
|
|
2793
|
+
unstyled?: DateInputsClassStructure;
|
|
2792
2794
|
}
|
|
2793
2795
|
|
|
2794
2796
|
/**
|
|
@@ -3580,6 +3582,7 @@ declare interface TimeListProps {
|
|
|
3580
3582
|
disabled?: boolean;
|
|
3581
3583
|
show?: boolean;
|
|
3582
3584
|
mobileMode?: boolean;
|
|
3585
|
+
unstyled?: DateInputsClassStructure;
|
|
3583
3586
|
}
|
|
3584
3587
|
|
|
3585
3588
|
/**
|
|
@@ -3693,6 +3696,7 @@ declare interface TimePartProps {
|
|
|
3693
3696
|
onNowKeyDown?: (event: React_2.KeyboardEvent) => void;
|
|
3694
3697
|
show?: boolean;
|
|
3695
3698
|
mobileMode?: boolean;
|
|
3699
|
+
unstyled?: DateInputsClassStructure;
|
|
3696
3700
|
}
|
|
3697
3701
|
|
|
3698
3702
|
/**
|
|
@@ -3852,6 +3856,10 @@ export declare interface TimePickerProps extends TimePickerSettings, FormCompone
|
|
|
3852
3856
|
* Specifies the text that is rendered as title in the adaptive popup.
|
|
3853
3857
|
*/
|
|
3854
3858
|
adaptiveTitle?: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* @hidden
|
|
3861
|
+
*/
|
|
3862
|
+
unstyled?: DateInputsClassStructure;
|
|
3855
3863
|
}
|
|
3856
3864
|
|
|
3857
3865
|
/**
|
|
@@ -4296,6 +4304,7 @@ declare interface TimeSelectorProps {
|
|
|
4296
4304
|
show?: boolean;
|
|
4297
4305
|
footer?: boolean;
|
|
4298
4306
|
mobileMode?: boolean;
|
|
4307
|
+
unstyled?: DateInputsClassStructure;
|
|
4299
4308
|
}
|
|
4300
4309
|
|
|
4301
4310
|
/**
|
|
@@ -4339,6 +4348,7 @@ declare interface TodayCommandProps {
|
|
|
4339
4348
|
onClick?: (event: HeaderEventArguments) => void;
|
|
4340
4349
|
disabled?: boolean;
|
|
4341
4350
|
tabIndex?: number;
|
|
4351
|
+
unstyled?: DateInputsClassStructure;
|
|
4342
4352
|
}
|
|
4343
4353
|
|
|
4344
4354
|
/**
|
|
@@ -4465,6 +4475,7 @@ declare interface ViewListProps {
|
|
|
4465
4475
|
header?: React_2.ComponentType<CalendarHeaderProps>;
|
|
4466
4476
|
shouldScroll?: () => boolean;
|
|
4467
4477
|
tabIndex?: number;
|
|
4478
|
+
unstyled?: DateInputsClassStructure;
|
|
4468
4479
|
}
|
|
4469
4480
|
|
|
4470
4481
|
/**
|
|
@@ -4591,6 +4602,7 @@ declare interface VirtualizationProps {
|
|
|
4591
4602
|
total: number;
|
|
4592
4603
|
role?: string;
|
|
4593
4604
|
children?: React_2.ReactNode;
|
|
4605
|
+
unstyled?: DateInputsClassStructure;
|
|
4594
4606
|
}
|
|
4595
4607
|
|
|
4596
4608
|
/**
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-dateinputs",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1724738526,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-dateinputs",
|
|
3
|
-
"version": "8.3.0-develop.
|
|
3
|
+
"version": "8.3.0-develop.11",
|
|
4
4
|
"description": "React DateInput is a perfect input component for handling quick and efficient date values. KendoReact Date Inputs package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-date-math": "^1.4.0",
|
|
26
26
|
"@progress/kendo-licensing": "^1.3.4",
|
|
27
|
-
"@progress/kendo-react-buttons": "8.3.0-develop.
|
|
28
|
-
"@progress/kendo-react-common": "8.3.0-develop.
|
|
29
|
-
"@progress/kendo-react-intl": "8.3.0-develop.
|
|
30
|
-
"@progress/kendo-react-labels": "8.3.0-develop.
|
|
31
|
-
"@progress/kendo-react-layout": "8.3.0-develop.
|
|
32
|
-
"@progress/kendo-react-popup": "8.3.0-develop.
|
|
27
|
+
"@progress/kendo-react-buttons": "8.3.0-develop.11",
|
|
28
|
+
"@progress/kendo-react-common": "8.3.0-develop.11",
|
|
29
|
+
"@progress/kendo-react-intl": "8.3.0-develop.11",
|
|
30
|
+
"@progress/kendo-react-labels": "8.3.0-develop.11",
|
|
31
|
+
"@progress/kendo-react-layout": "8.3.0-develop.11",
|
|
32
|
+
"@progress/kendo-react-popup": "8.3.0-develop.11",
|
|
33
33
|
"@progress/kendo-svg-icons": "^3.0.0",
|
|
34
34
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
35
35
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
package/timepicker/TimeList.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),u=require("prop-types"),T=require("@progress/kendo-date-math"),i=require("@progress/kendo-react-common"),b=require("@progress/kendo-react-intl"),I=require("../virtualization/Virtualization.js"),p=require("./models/TimePart.js"),M=require("./services/DayPeriodService.js"),H=require("./services/DOMService.js"),D=require("./services/HoursService.js"),E=require("./services/MinutesService.js"),P=require("./services/SecondsService.js"),v=require("../utils.js");function R(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:()=>o[e]})}}return n.default=o,Object.freeze(n)}const a=R(y),_=2,O=.05,w=100,C=0,S=9,N={[i.Keys.end]:(o,n)=>o[o.length-1],[i.Keys.home]:(o,n)=>o[0],[i.Keys.up]:(o,n)=>o[n-1],[i.Keys.down]:(o,n)=>o[n+1]},g={[p.TIME_PART.dayperiod]:M.DayPeriodService,[p.TIME_PART.hour]:D.HoursService,[p.TIME_PART.minute]:E.MinutesService,[p.TIME_PART.second]:P.SecondsService},l=class l extends a.Component{constructor(n){super(n),this.intl=null,this._element=null,this.service=null,this.virtualization=null,this.topOffset=0,this.bottomOffset=0,this.itemHeight=0,this.listHeight=0,this.topThreshold=0,this.bottomThreshold=0,this.animateToIndex=!1,this.focus=e=>{Promise.resolve().then(()=>{this.element&&this.element.focus(e)})},this.itemOffset=e=>{if(!this.virtualization||!this.service)return-1;const t=this.service.selectedIndex(this.props.value),s=this.virtualization.activeIndex(),r=this.virtualization.itemOffset(s),h=Math.abs(Math.ceil(e)-r);if(t===s&&h<_)return r;const d=t>s;return d&&h>=this.bottomThreshold||!d&&h>this.topThreshold?this.virtualization.itemOffset(s+1):r},this.calculateHeights=()=>{this.dom.didCalculate&&(this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.props.mobileMode&&(this.topOffset+=S,this.bottomOffset+=S*2),this.topThreshold=this.itemHeight*O,this.bottomThreshold=this.itemHeight*(1-O))},this.configureServices=({min:e,max:t,value:s}=this.props)=>{if(this.service){const[r,h]=this.service.limitRange(e||this.min,t||this.max,s||this.props.value);this.service.configure(this.serviceSettings({min:r,max:h}))}},this.serviceSettings=e=>{const t={boundRange:this.props.boundRange||l.defaultProps.boundRange,insertUndividedMax:!1,min:T.cloneDate(this.min),max:T.cloneDate(this.max),part:this.props.part,step:this.step},s=Object.assign({},t,e);return s.boundRange=s.part.type!=="hour"||this.props.boundRange||l.defaultProps.boundRange,s},this.handleScrollAction=({target:e,animationInProgress:t})=>{if(!(!this.virtualization||!this.service)&&e&&!t){this.animateToIndex=!1;const s=this.virtualization.itemIndex(this.itemOffset(e.scrollTop)),r=this.service.data(this.props.value)[s];this.handleChange(r)}},this.handleFocus=e=>{const{onFocus:t}=this.props;t&&t.call(void 0,e)},this.handleBlur=e=>{const{onBlur:t}=this.props;t&&t.call(void 0,e)},this.handleMouseOver=()=>{if(!this._element)return;const e=i.getActiveElement(document);document&&e!==this._element&&this.props.show&&this._element.focus({preventScroll:!0})},this.handleKeyDown=e=>{if(!this.service)return;const{keyCode:t}=e;(t===i.Keys.down||t===i.Keys.up||t===i.Keys.end||t===i.Keys.home)&&e.preventDefault();const r=(N[e.keyCode]||i.noop)(this.service.data(this.props.value),this.service.selectedIndex(this.props.value));r&&this.handleChange(r)},this.handleChange=v.debounce(e=>{if(!this.service)return;const t=this.service.apply(this.props.value,e.value);if(this.props.value.getTime()===t.getTime())return;const{onChange:s}=this.props;s&&s.call(void 0,t)},w),this.dom=new H.DOMService}get element(){return this._element}get animate(){return!!(this.props.smoothScroll&&this.animateToIndex)}get min(){return this.props.min||l.defaultProps.min}get max(){return this.props.max||l.defaultProps.max}get step(){return this.props.step!==void 0&&this.props.step!==0?Math.floor(this.props.step):l.defaultProps.step}componentDidMount(){Promise.resolve().then(()=>{this._element&&(this.dom.calculateHeights(this._element),this.forceUpdate())})}componentDidUpdate(){if(!this.virtualization||!this.service)return;const n=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](n),this.animateToIndex=!0}render(){const{part:n,value:e,unstyled:t}=this.props;if(!n.type||!g[n.type])return;const s=t&&t.uTime;this.calculateHeights(),this.intl=b.provideIntlService(this),this.service=new g[n.type](this.intl),this.configureServices();const r=this.service.data(e),h="translateY("+this.topOffset+"px)",d=this.service.total(e),f=a.createElement(a.Fragment,null,a.createElement("ul",{style:{transform:h,msTransform:h},className:i.classNames(i.uTime.ul({c:s}))},r.map((c,x)=>a.createElement("li",{key:x,className:i.classNames(i.uTime.li({c:s})),onClick:()=>{this.handleChange(c)}},a.createElement("span",null,c.text)))),a.createElement("div",{className:i.classNames(i.uTime.scrollablePlaceholder({c:s}))}));return a.createElement("div",{className:i.classNames(i.uTime.list({c:s})),id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:c=>{this._element=c},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?a.createElement(I.Virtualization,{bottomOffset:this.bottomOffset,children:f,className:i.classNames(i.uTime.container({c:s})),itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:c=>{this.virtualization=c},role:"presentation",skip:C,tabIndex:-1,take:d,topOffset:this.topOffset,total:d}):a.createElement("div",{className:i.classNames(i.uTime.container({c:s,content:!0,scrollable:!0}))},f))}};l.propTypes={id:u.number,max:u.instanceOf(Date),min:u.instanceOf(Date),part:function(n,e,t){const s=n[e];if(!s||!g[s.type])throw new Error(`
|
|
9
9
|
Invalid prop '${e}' supplied to ${t}.
|
|
10
10
|
Supported part types are hour|minute|second|dayperiod.
|
|
11
|
-
`);return null},step:function(
|
|
11
|
+
`);return null},step:function(n,e,t){const s=n[e];if(s!==void 0&&s<=0)throw new Error(`
|
|
12
12
|
Invalid prop '${e}' supplied to ${t}.
|
|
13
13
|
${e} cannot be less than 1.
|
|
14
|
-
`);return null},value:
|
|
14
|
+
`);return null},value:u.instanceOf(Date),smoothScroll:u.bool,show:u.bool},l.defaultProps={boundRange:!1,max:v.MAX_TIME,min:v.MIDNIGHT_DATE,step:1,smoothScroll:!0};let m=l;b.registerForIntl(m);exports.TimeList=m;
|