@progress/kendo-react-dateinputs 13.3.0-develop.9 → 13.4.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.
Files changed (125) hide show
  1. package/PopupSettings.d.ts +22 -0
  2. package/calendar/components/Calendar.d.ts +202 -0
  3. package/calendar/components/Calendar.mjs +7 -7
  4. package/calendar/components/CalendarCell.d.ts +71 -0
  5. package/calendar/components/CalendarHeaderTitle.d.ts +38 -0
  6. package/calendar/components/CalendarNavigationItem.d.ts +39 -0
  7. package/calendar/components/CalendarWeekCell.d.ts +42 -0
  8. package/calendar/components/Header.d.ts +65 -0
  9. package/calendar/components/Header.mjs +3 -3
  10. package/calendar/components/HorizontalViewList.d.ts +80 -0
  11. package/calendar/components/HorizontalViewList.mjs +3 -3
  12. package/calendar/components/MultiViewCalendar.d.ts +226 -0
  13. package/calendar/components/MultiViewCalendar.js +1 -1
  14. package/calendar/components/MultiViewCalendar.mjs +17 -17
  15. package/calendar/components/Navigation.d.ts +85 -0
  16. package/calendar/components/TodayCommand.d.ts +46 -0
  17. package/calendar/components/TodayCommand.mjs +3 -3
  18. package/calendar/components/View.d.ts +101 -0
  19. package/calendar/components/ViewList.d.ts +128 -0
  20. package/calendar/models/ActiveView.d.ts +11 -0
  21. package/calendar/models/CalendarSettings.d.ts +256 -0
  22. package/calendar/models/CalendarViewEnum.d.ts +16 -0
  23. package/calendar/models/CellContext.d.ts +72 -0
  24. package/calendar/models/MultiViewCalendarMode.d.ts +16 -0
  25. package/calendar/models/MultiViewCalendarSettings.d.ts +129 -0
  26. package/calendar/models/NavigationAction.d.ts +22 -0
  27. package/calendar/models/SelectionRange.d.ts +24 -0
  28. package/calendar/models/SelectionRangeEnd.d.ts +11 -0
  29. package/calendar/models/ViewService.d.ts +32 -0
  30. package/calendar/models/WeekDaysFormat.d.ts +11 -0
  31. package/calendar/models/index.d.ts +18 -0
  32. package/calendar/services/BusViewService.d.ts +28 -0
  33. package/calendar/services/CenturyViewService.d.ts +32 -0
  34. package/calendar/services/CenturyViewService.mjs +4 -4
  35. package/calendar/services/DOMService.d.ts +36 -0
  36. package/calendar/services/DecadeViewService.d.ts +34 -0
  37. package/calendar/services/DecadeViewService.mjs +4 -4
  38. package/calendar/services/MonthViewService.d.ts +40 -0
  39. package/calendar/services/MonthViewService.mjs +2 -2
  40. package/calendar/services/NavigationService.d.ts +21 -0
  41. package/calendar/services/ScrollSyncService.d.ts +28 -0
  42. package/calendar/services/WeekNamesService.d.ts +17 -0
  43. package/calendar/services/YearViewService.d.ts +38 -0
  44. package/calendar/services/YearViewService.mjs +2 -2
  45. package/calendar/services/index.d.ts +17 -0
  46. package/calendar/utils/ScrollSync.d.ts +20 -0
  47. package/codemods/utils.js +1 -8
  48. package/codemods/v11/dateinput-handle.js +1 -8
  49. package/codemods/v11/datepicker-handle.js +1 -8
  50. package/common/AdaptiveMode.d.ts +22 -0
  51. package/common/ClearButton.d.ts +20 -0
  52. package/dateinput/DateInput.d.ts +248 -0
  53. package/dateinput/DateInput.js +1 -1
  54. package/dateinput/DateInput.mjs +63 -65
  55. package/dateinput/dateInputIntl.d.ts +30 -0
  56. package/dateinput/models/DateInputSettings.d.ts +107 -0
  57. package/dateinput/models/common-package-props.d.ts +34 -0
  58. package/dateinput/models/dateinput-options.d.ts +105 -0
  59. package/dateinput/models/format-placeholder.d.ts +46 -0
  60. package/dateinput/models/incremental-steps.d.ts +24 -0
  61. package/dateinput/models/index.d.ts +15 -0
  62. package/dateinput/models/kendo-date.d.ts +60 -0
  63. package/dateinput/models/mask.d.ts +14 -0
  64. package/dateinput/models/selection.d.ts +14 -0
  65. package/dateinput/utils.d.ts +31 -0
  66. package/datepicker/DatePicker.d.ts +279 -0
  67. package/datepicker/DatePicker.js +1 -1
  68. package/datepicker/DatePicker.mjs +68 -72
  69. package/datepicker/ToggleButton.d.ts +17 -0
  70. package/datepicker/models/DatePickerSettings.d.ts +248 -0
  71. package/datepicker/models/index.d.ts +9 -0
  72. package/daterangepicker/DateRangePicker.d.ts +357 -0
  73. package/daterangepicker/DateRangePicker.mjs +13 -13
  74. package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +13 -0
  75. package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +13 -0
  76. package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +13 -0
  77. package/daterangepicker/models/DateRangePickerSettings.d.ts +129 -0
  78. package/daterangepicker/models/index.d.ts +12 -0
  79. package/datetimepicker/DateTimePicker.d.ts +420 -0
  80. package/datetimepicker/DateTimePicker.js +1 -1
  81. package/datetimepicker/DateTimePicker.mjs +16 -20
  82. package/datetimepicker/DateTimeSelector.d.ts +111 -0
  83. package/datetimepicker/DateTimeSelector.mjs +3 -3
  84. package/datetimepicker/models/DateTimePickerSettings.d.ts +154 -0
  85. package/datetimepicker/models/index.d.ts +9 -0
  86. package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
  87. package/hooks/usePickerFloatingLabel.d.ts +27 -0
  88. package/index.d.mts +35 -4952
  89. package/index.d.ts +35 -4952
  90. package/messages/index.d.ts +132 -0
  91. package/package-metadata.d.ts +12 -0
  92. package/package-metadata.js +1 -1
  93. package/package-metadata.mjs +10 -16
  94. package/package.json +8 -8
  95. package/timepicker/TimeList.d.ts +97 -0
  96. package/timepicker/TimeList.js +5 -5
  97. package/timepicker/TimeList.mjs +122 -112
  98. package/timepicker/TimePart.d.ts +146 -0
  99. package/timepicker/TimePart.mjs +3 -3
  100. package/timepicker/TimePicker.d.ts +417 -0
  101. package/timepicker/TimePicker.js +1 -1
  102. package/timepicker/TimePicker.mjs +64 -68
  103. package/timepicker/TimeSelector.d.ts +149 -0
  104. package/timepicker/TimeSelector.mjs +3 -3
  105. package/timepicker/models/IncrementalSteps.d.ts +18 -0
  106. package/timepicker/models/ListItem.d.ts +14 -0
  107. package/timepicker/models/ListService.d.ts +22 -0
  108. package/timepicker/models/ListServiceSettings.d.ts +19 -0
  109. package/timepicker/models/TimePart.d.ts +17 -0
  110. package/timepicker/models/TimePickerSettings.d.ts +137 -0
  111. package/timepicker/models/index.d.ts +14 -0
  112. package/timepicker/services/DOMService.d.ts +18 -0
  113. package/timepicker/services/DayPeriodService.d.ts +54 -0
  114. package/timepicker/services/HoursService.d.ts +40 -0
  115. package/timepicker/services/MinutesService.d.ts +39 -0
  116. package/timepicker/services/SecondsService.d.ts +39 -0
  117. package/timepicker/services/index.d.ts +13 -0
  118. package/timepicker/utils.d.ts +63 -0
  119. package/timepicker/utils.mjs +1 -1
  120. package/utils.d.ts +103 -0
  121. package/utils.js +1 -1
  122. package/utils.mjs +46 -46
  123. package/virtualization/Virtualization.d.ts +125 -0
  124. package/virtualization/services/ScrollerService.d.ts +56 -0
  125. 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`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
87
+ * - `appendTo:`&mdash; 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`&mdash;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;
@@ -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 { cloneDate as g, addDays as f } from "@progress/kendo-date-math";
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"),y=require("./calendar/models/SelectionRange.js");function S(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 w=(t,e,n)=>e===void 0||n===void 0||e<=t&&t<=n?t:t<e?e:n,C=new Date(1980,0,1),F=new Date(1900,0,1),k=new Date(2099,11,31),W=new Date(1980,0,1),q=new Date(1980,0,1,23,59,59),H=(t,e)=>{const n=l.cloneDate(t);return n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n},L=()=>l.getDate(new Date),X=(t,e,n)=>!t||!(e&&e>t||n&&n<t),G=(t,e,n)=>t===null||!(e&&l.getDate(e)>l.getDate(t)||n&&l.getDate(n)<l.getDate(t)),O=(t,e)=>{const{start:n,end:r}=e||y.EMPTY_SELECTIONRANGE;return!n||!r?!1:n<t&&t<r},j=(t,e,n=1)=>{const r=[];for(let o=t;o<e;o=o+n)r.push(o);return r},P=(t,e,n)=>e.getTime()<=t.getTime()&&t.getTime()<=n.getTime(),Y=(t,e)=>t.slice(e).concat(t.slice(0,e)),z=(t,e,n)=>t&&(e&&t<e?l.cloneDate(e):n&&t>n?l.cloneDate(n):t),B=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 J(t,e,n={}){let r,o;n.maxWait;let s,c,a;const f=window,v=!1,R=!1,I=!e&&e!==0&&typeof f.requestAnimationFrame=="function";if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0;function E(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 h(i){if(I)return f.cancelAnimationFrame(i);clearTimeout(i)}function b(i){return c=D(m,e),v?E():s}function d(i){const u=i-a;return e-u}function M(i){const u=i-a;return a===void 0||u>=e||u<0||R}function m(){const i=Date.now();if(M(i))return A();c=D(m,d(i))}function A(i){return c=void 0,r?E():(r=o=void 0,s)}function p(){c!==void 0&&h(c),r=a=o=c=void 0}function N(){return c===void 0?s:A()}function _(){return c!==void 0}function g(...i){const u=Date.now(),T=M(u);return r=i,o=this,a=u,T&&c===void 0?b():(c===void 0&&(c=D(m,e)),s)}return g.cancel=p,g.flush=N,g.pending=_,g}exports.MAX_DATE=k;exports.MAX_TIME=q;exports.MIDNIGHT_DATE=C;exports.MIN_DATE=F;exports.MIN_TIME=W;exports.dateInRange=z;exports.debounce=J;exports.domContainerFactory=B;exports.getToday=L;exports.intersects=P;exports.isInDateRange=G;exports.isInRange=X;exports.isInSelectionRange=O;exports.nullable=S;exports.range=j;exports.setTime=H;exports.shiftWeekNames=Y;exports.viewInRange=w;
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;