@progress/kendo-react-dateinputs 13.3.0 → 13.4.0-develop.2
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/PopupSettings.d.ts +22 -0
- package/calendar/components/Calendar.d.ts +202 -0
- package/calendar/components/Calendar.mjs +7 -7
- package/calendar/components/CalendarCell.d.ts +71 -0
- package/calendar/components/CalendarHeaderTitle.d.ts +38 -0
- package/calendar/components/CalendarNavigationItem.d.ts +39 -0
- package/calendar/components/CalendarWeekCell.d.ts +42 -0
- package/calendar/components/Header.d.ts +65 -0
- package/calendar/components/Header.mjs +3 -3
- package/calendar/components/HorizontalViewList.d.ts +80 -0
- package/calendar/components/HorizontalViewList.mjs +3 -3
- package/calendar/components/MultiViewCalendar.d.ts +226 -0
- package/calendar/components/MultiViewCalendar.js +1 -1
- package/calendar/components/MultiViewCalendar.mjs +17 -17
- package/calendar/components/Navigation.d.ts +85 -0
- package/calendar/components/TodayCommand.d.ts +46 -0
- package/calendar/components/TodayCommand.mjs +3 -3
- package/calendar/components/View.d.ts +101 -0
- package/calendar/components/ViewList.d.ts +128 -0
- package/calendar/models/ActiveView.d.ts +11 -0
- package/calendar/models/CalendarSettings.d.ts +256 -0
- package/calendar/models/CalendarViewEnum.d.ts +16 -0
- package/calendar/models/CellContext.d.ts +72 -0
- package/calendar/models/MultiViewCalendarMode.d.ts +16 -0
- package/calendar/models/MultiViewCalendarSettings.d.ts +129 -0
- package/calendar/models/NavigationAction.d.ts +22 -0
- package/calendar/models/SelectionRange.d.ts +24 -0
- package/calendar/models/SelectionRangeEnd.d.ts +11 -0
- package/calendar/models/ViewService.d.ts +32 -0
- package/calendar/models/WeekDaysFormat.d.ts +11 -0
- package/calendar/models/index.d.ts +18 -0
- package/calendar/services/BusViewService.d.ts +28 -0
- package/calendar/services/CenturyViewService.d.ts +32 -0
- package/calendar/services/CenturyViewService.mjs +4 -4
- package/calendar/services/DOMService.d.ts +36 -0
- package/calendar/services/DecadeViewService.d.ts +34 -0
- package/calendar/services/DecadeViewService.mjs +4 -4
- package/calendar/services/MonthViewService.d.ts +40 -0
- package/calendar/services/MonthViewService.mjs +2 -2
- package/calendar/services/NavigationService.d.ts +21 -0
- package/calendar/services/ScrollSyncService.d.ts +28 -0
- package/calendar/services/WeekNamesService.d.ts +17 -0
- package/calendar/services/YearViewService.d.ts +38 -0
- package/calendar/services/YearViewService.mjs +2 -2
- package/calendar/services/index.d.ts +17 -0
- package/calendar/utils/ScrollSync.d.ts +20 -0
- package/codemods/utils.js +1 -8
- package/codemods/v11/dateinput-handle.js +1 -8
- package/codemods/v11/datepicker-handle.js +1 -8
- package/common/AdaptiveMode.d.ts +22 -0
- package/common/ClearButton.d.ts +20 -0
- package/dateinput/DateInput.d.ts +248 -0
- package/dateinput/DateInput.js +1 -1
- package/dateinput/DateInput.mjs +63 -65
- package/dateinput/dateInputIntl.d.ts +30 -0
- package/dateinput/models/DateInputSettings.d.ts +107 -0
- package/dateinput/models/common-package-props.d.ts +34 -0
- package/dateinput/models/dateinput-options.d.ts +105 -0
- package/dateinput/models/format-placeholder.d.ts +46 -0
- package/dateinput/models/incremental-steps.d.ts +24 -0
- package/dateinput/models/index.d.ts +15 -0
- package/dateinput/models/kendo-date.d.ts +60 -0
- package/dateinput/models/mask.d.ts +14 -0
- package/dateinput/models/selection.d.ts +14 -0
- package/dateinput/utils.d.ts +31 -0
- package/datepicker/DatePicker.d.ts +279 -0
- package/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +68 -72
- package/datepicker/ToggleButton.d.ts +17 -0
- package/datepicker/models/DatePickerSettings.d.ts +248 -0
- package/datepicker/models/index.d.ts +9 -0
- package/daterangepicker/DateRangePicker.d.ts +357 -0
- package/daterangepicker/DateRangePicker.mjs +13 -13
- package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerSettings.d.ts +129 -0
- package/daterangepicker/models/index.d.ts +12 -0
- package/datetimepicker/DateTimePicker.d.ts +420 -0
- package/datetimepicker/DateTimePicker.js +1 -1
- package/datetimepicker/DateTimePicker.mjs +16 -20
- package/datetimepicker/DateTimeSelector.d.ts +111 -0
- package/datetimepicker/DateTimeSelector.mjs +3 -3
- package/datetimepicker/models/DateTimePickerSettings.d.ts +154 -0
- package/datetimepicker/models/index.d.ts +9 -0
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/hooks/usePickerFloatingLabel.d.ts +27 -0
- package/index.d.mts +35 -4952
- package/index.d.ts +35 -4952
- package/messages/index.d.ts +132 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +8 -8
- package/timepicker/TimeList.d.ts +97 -0
- package/timepicker/TimeList.js +5 -5
- package/timepicker/TimeList.mjs +122 -112
- package/timepicker/TimePart.d.ts +146 -0
- package/timepicker/TimePart.mjs +3 -3
- package/timepicker/TimePicker.d.ts +417 -0
- package/timepicker/TimePicker.js +1 -1
- package/timepicker/TimePicker.mjs +64 -68
- package/timepicker/TimeSelector.d.ts +149 -0
- package/timepicker/TimeSelector.mjs +3 -3
- package/timepicker/models/IncrementalSteps.d.ts +18 -0
- package/timepicker/models/ListItem.d.ts +14 -0
- package/timepicker/models/ListService.d.ts +22 -0
- package/timepicker/models/ListServiceSettings.d.ts +19 -0
- package/timepicker/models/TimePart.d.ts +17 -0
- package/timepicker/models/TimePickerSettings.d.ts +137 -0
- package/timepicker/models/index.d.ts +14 -0
- package/timepicker/services/DOMService.d.ts +18 -0
- package/timepicker/services/DayPeriodService.d.ts +54 -0
- package/timepicker/services/HoursService.d.ts +40 -0
- package/timepicker/services/MinutesService.d.ts +39 -0
- package/timepicker/services/SecondsService.d.ts +39 -0
- package/timepicker/services/index.d.ts +13 -0
- package/timepicker/utils.d.ts +63 -0
- package/timepicker/utils.mjs +1 -1
- package/utils.d.ts +103 -0
- package/utils.js +1 -1
- package/utils.mjs +46 -46
- package/virtualization/Virtualization.d.ts +125 -0
- package/virtualization/services/ScrollerService.d.ts +56 -0
- package/virtualization/services/index.d.ts +10 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as React } from 'react';
|
|
9
|
+
import { DateInputFormatPlaceholder } from '../../dateinput/models/format-placeholder.js';
|
|
10
|
+
import { TimePickerIncrementalSteps } from './IncrementalSteps.js';
|
|
11
|
+
import { DateInputsPopupSettings } from '../../PopupSettings.js';
|
|
12
|
+
import { PopupProps } from '@progress/kendo-react-popup';
|
|
13
|
+
import { DateInputProps } from '../../index.js';
|
|
14
|
+
import { DateFormatOptions } from '@progress/kendo-react-intl';
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export interface TimePickerSettings {
|
|
19
|
+
/**
|
|
20
|
+
* Sets the `className` of the TimePicker.
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Determines whether to display the **Cancel** button in the popup.
|
|
25
|
+
*/
|
|
26
|
+
cancelButton?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Determines whether to display the **Now** button in the popup.
|
|
29
|
+
*
|
|
30
|
+
* > If the current time is out of range or the incremental step is greater than `1`, the **Now** button will be hidden.
|
|
31
|
+
*/
|
|
32
|
+
nowButton?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the default state of the popup upon render ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/default-value#toc-setting-the-default-popup-state)).
|
|
35
|
+
*/
|
|
36
|
+
defaultShow?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Determines whether the TimePicker is disabled ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/disabled-state)).
|
|
39
|
+
*/
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the date format that is used to display the input value ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/formats)).
|
|
43
|
+
*/
|
|
44
|
+
format?: string | DateFormatOptions;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the descriptions of the format sections in the input field ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/placeholders)).
|
|
47
|
+
*/
|
|
48
|
+
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
49
|
+
/**
|
|
50
|
+
* Specifies the `id` of the TimePicker.
|
|
51
|
+
*/
|
|
52
|
+
id?: string;
|
|
53
|
+
/**
|
|
54
|
+
* 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).
|
|
55
|
+
* For example these elements could contain error or hint message.
|
|
56
|
+
*/
|
|
57
|
+
ariaDescribedBy?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Identifies the element(s) which will label the component.
|
|
60
|
+
*/
|
|
61
|
+
ariaLabelledBy?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies the greatest valid time ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/time-ranges)).
|
|
64
|
+
*/
|
|
65
|
+
max?: Date;
|
|
66
|
+
/**
|
|
67
|
+
* Specifies the smallest valid time ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/time-ranges)).
|
|
68
|
+
*/
|
|
69
|
+
min?: Date;
|
|
70
|
+
/**
|
|
71
|
+
* Specifies the `name` property of the `input` DOM element.
|
|
72
|
+
*/
|
|
73
|
+
name?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Fires each time any of the TimePicker elements gets blurred.
|
|
76
|
+
*/
|
|
77
|
+
onBlur?: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Fires each time the user focuses any of the TimePicker elements.
|
|
80
|
+
*/
|
|
81
|
+
onFocus?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
82
|
+
/**
|
|
83
|
+
* Configures the popup options of the TimePicker.
|
|
84
|
+
*
|
|
85
|
+
* The available options are:
|
|
86
|
+
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
87
|
+
* - `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).
|
|
88
|
+
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
89
|
+
*/
|
|
90
|
+
popupSettings?: DateInputsPopupSettings;
|
|
91
|
+
/**
|
|
92
|
+
* Specifies if a time selector will be displayed ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/controlled-state#toc-controlling-the-popup-state)).
|
|
93
|
+
*/
|
|
94
|
+
show?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Configures the incremental steps of the TimePicker ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/incremental-steps)).
|
|
97
|
+
*
|
|
98
|
+
* > If the incremental step is greater than `1`, the **Now** button will be hidden.
|
|
99
|
+
*/
|
|
100
|
+
steps?: TimePickerIncrementalSteps;
|
|
101
|
+
/**
|
|
102
|
+
* Toggles the smooth scroll animation on time click. By default, the animation is enabled.
|
|
103
|
+
*/
|
|
104
|
+
smoothScroll?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Sets the `tabIndex` property of the TimePicker.
|
|
107
|
+
*/
|
|
108
|
+
tabIndex?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Sets the title of the `input` element of the TimePicker.
|
|
111
|
+
*/
|
|
112
|
+
title?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Specifies the width of the TimePicker.
|
|
115
|
+
*/
|
|
116
|
+
width?: number | string;
|
|
117
|
+
/**
|
|
118
|
+
* Enables the customization or the override of the default Popup which is rendered by the TimePicker
|
|
119
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/custom-rendering#toc-customizing-the-popup)).
|
|
120
|
+
*/
|
|
121
|
+
popup?: React.ComponentType<PopupProps>;
|
|
122
|
+
/**
|
|
123
|
+
* Enables the customization or the override of the default DateInput which is rendered by the TimePicker
|
|
124
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/custom-rendering#toc-customizing-the-dateinput)).
|
|
125
|
+
*/
|
|
126
|
+
dateInput?: React.ComponentType<DateInputProps>;
|
|
127
|
+
/**
|
|
128
|
+
* Renders a floating label for the TimePicker.
|
|
129
|
+
*/
|
|
130
|
+
label?: React.ReactNode;
|
|
131
|
+
/**
|
|
132
|
+
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
133
|
+
* For more information, refer to the article on
|
|
134
|
+
* [placeholders](https://www.telerik.com/kendo-react-ui/components/dateinputs/timepicker/placeholders).
|
|
135
|
+
*/
|
|
136
|
+
placeholder?: string | null;
|
|
137
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { TimePickerIncrementalSteps } from './IncrementalSteps.js';
|
|
9
|
+
import { TimePickerSettings } from './TimePickerSettings.js';
|
|
10
|
+
import { ListItem } from './ListItem.js';
|
|
11
|
+
import { ListService } from './ListService.js';
|
|
12
|
+
import { ListServiceSettings } from './ListServiceSettings.js';
|
|
13
|
+
import { TIME_PART } from './TimePart.js';
|
|
14
|
+
export { TimePickerIncrementalSteps, TimePickerSettings, ListItem, ListService, ListServiceSettings, TIME_PART };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DateInputsClassStructure } from '@progress/kendo-react-common';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class DOMService {
|
|
13
|
+
itemHeight: number;
|
|
14
|
+
timeListHeight: number;
|
|
15
|
+
didCalculate: boolean;
|
|
16
|
+
ensureHeights(): void;
|
|
17
|
+
calculateHeights(container?: HTMLElement, unstyled?: DateInputsClassStructure): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { IntlService } from '@progress/kendo-react-intl';
|
|
9
|
+
import { ListServiceSettings } from '../models/ListServiceSettings.js';
|
|
10
|
+
import { ListService } from '../models/ListService.js';
|
|
11
|
+
import { ListItem } from '../models/ListItem.js';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare class DayPeriodService implements ListService {
|
|
16
|
+
private intl;
|
|
17
|
+
private min;
|
|
18
|
+
private max;
|
|
19
|
+
private part;
|
|
20
|
+
constructor(intl: IntlService);
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
apply(value: Date, candidate: Date): Date;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
configure(settings: ListServiceSettings): void;
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
data(_?: Date): ListItem[];
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
isRangeChanged(_: Date, __: Date): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
limitRange(min: Date, max: Date, _?: Date): Date[];
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
total(): number;
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
selectedIndex(value: Date): number;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
valueInList(value: Date): boolean;
|
|
53
|
+
private normalizedRange;
|
|
54
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { IntlService } from '@progress/kendo-react-intl';
|
|
9
|
+
import { ListServiceSettings } from '../models/ListServiceSettings.js';
|
|
10
|
+
import { ListService } from '../models/ListService.js';
|
|
11
|
+
import { ListItem } from '../models/ListItem.js';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare class HoursService implements ListService {
|
|
16
|
+
private intl;
|
|
17
|
+
private boundRange;
|
|
18
|
+
private insertUndividedMax;
|
|
19
|
+
private min;
|
|
20
|
+
private max;
|
|
21
|
+
private step;
|
|
22
|
+
private toListItem;
|
|
23
|
+
constructor(intl: IntlService);
|
|
24
|
+
apply(value: Date, candidate: Date): Date;
|
|
25
|
+
configure(settings: ListServiceSettings): void;
|
|
26
|
+
data(selectedValue?: Date): ListItem[];
|
|
27
|
+
isRangeChanged(min: Date, max: Date): boolean;
|
|
28
|
+
limitRange(min: Date, max: Date, value?: Date): Date[];
|
|
29
|
+
total(value?: Date): number;
|
|
30
|
+
selectedIndex(value: Date): number;
|
|
31
|
+
valueInList(value?: Date): boolean;
|
|
32
|
+
private addLast;
|
|
33
|
+
private addMissing;
|
|
34
|
+
private countFromMin;
|
|
35
|
+
private isMissing;
|
|
36
|
+
private isLastMissing;
|
|
37
|
+
private divideByStep;
|
|
38
|
+
private lastHour;
|
|
39
|
+
private range;
|
|
40
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { IntlService } from '@progress/kendo-react-intl';
|
|
9
|
+
import { ListServiceSettings } from '../models/ListServiceSettings.js';
|
|
10
|
+
import { ListService } from '../models/ListService.js';
|
|
11
|
+
import { ListItem } from '../models/ListItem.js';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare class MinutesService implements ListService {
|
|
16
|
+
private intl;
|
|
17
|
+
private toListItem;
|
|
18
|
+
private min;
|
|
19
|
+
private max;
|
|
20
|
+
private step;
|
|
21
|
+
private insertUndividedMax;
|
|
22
|
+
constructor(intl: IntlService);
|
|
23
|
+
apply(value: Date, candidate: Date): Date;
|
|
24
|
+
configure(settings: ListServiceSettings): void;
|
|
25
|
+
data(selectedValue?: Date): ListItem[];
|
|
26
|
+
isRangeChanged(min: Date, max: Date): boolean;
|
|
27
|
+
limitRange(min: Date, max: Date, value?: Date): Date[];
|
|
28
|
+
total(value?: Date): number;
|
|
29
|
+
selectedIndex(value: Date): number;
|
|
30
|
+
valueInList(value: Date): boolean;
|
|
31
|
+
private addLast;
|
|
32
|
+
private addMissing;
|
|
33
|
+
private countFromMin;
|
|
34
|
+
private isMissing;
|
|
35
|
+
private isLastMissing;
|
|
36
|
+
private divideByStep;
|
|
37
|
+
private lastMinute;
|
|
38
|
+
private range;
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { IntlService } from '@progress/kendo-react-intl';
|
|
9
|
+
import { ListServiceSettings } from '../models/ListServiceSettings.js';
|
|
10
|
+
import { ListService } from '../models/ListService.js';
|
|
11
|
+
import { ListItem } from '../models/ListItem.js';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare class SecondsService implements ListService {
|
|
16
|
+
private intl;
|
|
17
|
+
private toListItem;
|
|
18
|
+
private min;
|
|
19
|
+
private max;
|
|
20
|
+
private step;
|
|
21
|
+
private insertUndividedMax;
|
|
22
|
+
constructor(intl: IntlService);
|
|
23
|
+
apply(value: Date, candidate: Date): Date;
|
|
24
|
+
configure(settings: ListServiceSettings): void;
|
|
25
|
+
data(selectedValue?: Date): ListItem[];
|
|
26
|
+
isRangeChanged(min: Date, max: Date): boolean;
|
|
27
|
+
limitRange(min: Date, max: Date, value?: Date): Date[];
|
|
28
|
+
total(value?: Date): number;
|
|
29
|
+
selectedIndex(value: Date): number;
|
|
30
|
+
valueInList(value: Date): boolean;
|
|
31
|
+
private divideByStep;
|
|
32
|
+
private addLast;
|
|
33
|
+
private addMissing;
|
|
34
|
+
private countFromMin;
|
|
35
|
+
private isMissing;
|
|
36
|
+
private isLastMissing;
|
|
37
|
+
private lastSecond;
|
|
38
|
+
private range;
|
|
39
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DayPeriodService } from './DayPeriodService.js';
|
|
9
|
+
import { DOMService } from './DOMService.js';
|
|
10
|
+
import { HoursService } from './HoursService.js';
|
|
11
|
+
import { MinutesService } from './MinutesService.js';
|
|
12
|
+
import { SecondsService } from './SecondsService.js';
|
|
13
|
+
export { DayPeriodService, DOMService, HoursService, MinutesService, SecondsService };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const generateGetters: (parts: any) => any;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const generateSnappers: (steps: any, min: any) => any;
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const valueMerger: (getters: any) => (origin: any, candidate: any) => any;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare const snapTime: (snappers: any) => (candidate: any) => any;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare const setHours: (date: Date, value: number) => Date;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const setMinutes: (date: Date, value: number) => Date;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare const setSeconds: (date: Date, value: number) => Date;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export declare const getNow: () => Date;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
export declare const range: (start: number, end: number, step?: number) => number[];
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export declare const timeInRange: (candidate: Date, min: Date, max: Date) => Date;
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
export declare const isInTimeRange: (candidate: Date | null, min?: Date, max?: Date) => boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
export declare const isInRange: (candidate: Date | null, min: Date, max: Date) => boolean;
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
export declare const isSmallerThanMin: (val: Date | null, min: Date | null) => boolean;
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare const isBiggerThanMax: (val: Date | null, max: Date | null) => boolean;
|
package/timepicker/utils.mjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { addDays as f, cloneDate as g } from "@progress/kendo-date-math";
|
|
9
9
|
import { TIME_PART as l } from "./models/TimePart.mjs";
|
|
10
10
|
import { setTime as u, MIDNIGHT_DATE as c } from "../utils.mjs";
|
|
11
11
|
const a = (e) => (t, r) => {
|
package/utils.d.ts
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { SelectionRange } from './calendar/models/SelectionRange.js';
|
|
9
|
+
import { CalendarViewEnum } from './calendar/models/CalendarViewEnum.js';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const isEqualRange: (initial: SelectionRange, updated: SelectionRange) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare function nullable(subRequirement: any): any;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare const viewInRange: (candidate: CalendarViewEnum, min?: CalendarViewEnum, max?: CalendarViewEnum) => CalendarViewEnum;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export declare const MIDNIGHT_DATE: Date;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export declare const MIN_DATE: Date;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export declare const MAX_DATE: Date;
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
export declare const MIN_TIME: Date;
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
export declare const MAX_TIME: Date;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
export declare const isValidRange: (min: Date, max: Date) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export declare const setTime: (origin: Date, candidate: Date) => Date;
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
export declare const getToday: () => Date;
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
export declare const isInRange: (candidate: Date, min: Date, max: Date) => boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
export declare const isInDateRange: (candidate: Date | null, min: Date, max: Date) => boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
export declare const isInSelectionRange: (value: Date, selectionRange?: SelectionRange) => boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
export declare const range: (start: number, end: number, step?: number) => number[];
|
|
70
|
+
/**
|
|
71
|
+
* @hidden
|
|
72
|
+
*/
|
|
73
|
+
export declare const intersects: (date: Date, min: Date, max: Date) => boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @hidden
|
|
76
|
+
*/
|
|
77
|
+
export declare const shiftWeekNames: (names: string[], offset: number) => string[];
|
|
78
|
+
/**
|
|
79
|
+
* @hidden
|
|
80
|
+
*/
|
|
81
|
+
export declare const dateInRange: (candidate: Date, min: Date, max: Date) => Date;
|
|
82
|
+
/**
|
|
83
|
+
* @hidden
|
|
84
|
+
*/
|
|
85
|
+
export declare const domContainerFactory: (type: string) => (children: string | HTMLElement[], classes?: string, styles?: any) => HTMLElement;
|
|
86
|
+
/**
|
|
87
|
+
* @hidden
|
|
88
|
+
*/
|
|
89
|
+
export declare function debounce(func: any, wait: number, options?: any): {
|
|
90
|
+
(...args: any): any;
|
|
91
|
+
cancel: () => void;
|
|
92
|
+
flush: () => any;
|
|
93
|
+
pending: () => boolean;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* @hidden
|
|
97
|
+
*/
|
|
98
|
+
export declare function throttle(func: any, wait: number): {
|
|
99
|
+
(...args: any): any;
|
|
100
|
+
cancel: () => void;
|
|
101
|
+
flush: () => any;
|
|
102
|
+
pending: () => boolean;
|
|
103
|
+
};
|
package/utils.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@progress/kendo-date-math"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@progress/kendo-date-math"),d=require("./calendar/models/SelectionRange.js");function y(t){const e=(r,o,s,...c)=>o[s]===null?null:(r?t.isRequired:t)(o,s,...c),n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}const S=(t,e,n)=>e===void 0||n===void 0||e<=t&&t<=n?t:t<e?e:n,w=new Date(1980,0,1),C=new Date(1900,0,1),F=new Date(2099,11,31),k=new Date(1980,0,1),W=new Date(1980,0,1,23,59,59),q=(t,e)=>{const n=l.cloneDate(t);return n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n},H=()=>l.getDate(new Date),L=(t,e,n)=>!t||!(e&&e>t||n&&n<t),X=(t,e,n)=>t===null||!(e&&l.getDate(e)>l.getDate(t)||n&&l.getDate(n)<l.getDate(t)),G=(t,e)=>{const{start:n,end:r}=e||d.EMPTY_SELECTIONRANGE;return!n||!r?!1:n<t&&t<r},O=(t,e,n=1)=>{const r=[];for(let o=t;o<e;o=o+n)r.push(o);return r},j=(t,e,n)=>e.getTime()<=t.getTime()&&t.getTime()<=n.getTime(),P=(t,e)=>t.slice(e).concat(t.slice(0,e)),Y=(t,e,n)=>t&&(e&&t<e?l.cloneDate(e):n&&t>n?l.cloneDate(n):t),z=t=>(e,n="",r={})=>{const o=document.createElement(t);return o.className=n,Object.keys(r).forEach(s=>{o.style[s]=r[s]}),typeof e=="string"?o.innerHTML=e||"":(e||[]).forEach(s=>s&&o.appendChild(s)),o};function B(t,e,n={}){let r,o;n.maxWait;let s,c,a;const f=window,A=!1,I=!e&&e!==0&&typeof f.requestAnimationFrame=="function";if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0;function v(i){const u=r,T=o;return r=o=void 0,s=t.apply(T,u),s}function D(i,u){return I?(f.cancelAnimationFrame(c),f.requestAnimationFrame(i)):setTimeout(i,u)}function R(i){if(I)return f.cancelAnimationFrame(i);clearTimeout(i)}function h(i){return c=D(m,e),s}function b(i){const u=i-a;return e-u}function E(i){const u=i-a;return a===void 0||u>=e||u<0||A}function m(){const i=Date.now();if(E(i))return M();c=D(m,b(i))}function M(i){return c=void 0,r?v():(r=o=void 0,s)}function p(){c!==void 0&&R(c),r=a=o=c=void 0}function N(){return c===void 0?s:M()}function _(){return c!==void 0}function g(...i){const u=Date.now(),T=E(u);return r=i,o=this,a=u,T&&c===void 0?h():(c===void 0&&(c=D(m,e)),s)}return g.cancel=p,g.flush=N,g.pending=_,g}exports.MAX_DATE=F;exports.MAX_TIME=W;exports.MIDNIGHT_DATE=w;exports.MIN_DATE=C;exports.MIN_TIME=k;exports.dateInRange=Y;exports.debounce=B;exports.domContainerFactory=z;exports.getToday=H;exports.intersects=j;exports.isInDateRange=X;exports.isInRange=L;exports.isInSelectionRange=G;exports.nullable=y;exports.range=O;exports.setTime=q;exports.shiftWeekNames=P;exports.viewInRange=S;
|