@progress/kendo-react-dateinputs 7.2.4-develop.3 → 7.3.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/calendar/components/Calendar.js +12 -0
  2. package/calendar/components/Calendar.mjs +328 -0
  3. package/calendar/components/CalendarCell.js +8 -0
  4. package/calendar/components/CalendarCell.mjs +101 -0
  5. package/calendar/components/CalendarHeaderTitle.js +8 -0
  6. package/calendar/components/CalendarHeaderTitle.mjs +23 -0
  7. package/calendar/components/CalendarNavigationItem.js +8 -0
  8. package/calendar/components/CalendarNavigationItem.mjs +29 -0
  9. package/calendar/components/CalendarWeekCell.js +8 -0
  10. package/calendar/components/CalendarWeekCell.mjs +23 -0
  11. package/calendar/components/Header.js +8 -0
  12. package/calendar/components/Header.mjs +78 -0
  13. package/calendar/components/HorizontalViewList.js +8 -0
  14. package/calendar/components/HorizontalViewList.mjs +120 -0
  15. package/calendar/components/MultiViewCalendar.js +8 -0
  16. package/calendar/components/MultiViewCalendar.mjs +428 -0
  17. package/calendar/components/Navigation.js +8 -0
  18. package/calendar/components/Navigation.mjs +117 -0
  19. package/calendar/components/TodayCommand.js +8 -0
  20. package/calendar/components/TodayCommand.mjs +74 -0
  21. package/calendar/components/View.js +8 -0
  22. package/calendar/components/View.mjs +153 -0
  23. package/calendar/components/ViewList.js +8 -0
  24. package/calendar/components/ViewList.mjs +228 -0
  25. package/calendar/models/CalendarViewEnum.js +8 -0
  26. package/calendar/models/CalendarViewEnum.mjs +12 -0
  27. package/calendar/models/NavigationAction.js +8 -0
  28. package/calendar/models/NavigationAction.mjs +12 -0
  29. package/calendar/models/SelectionRange.js +8 -0
  30. package/calendar/models/SelectionRange.mjs +12 -0
  31. package/calendar/services/BusViewService.js +8 -0
  32. package/calendar/services/BusViewService.mjs +58 -0
  33. package/calendar/services/CenturyViewService.js +8 -0
  34. package/calendar/services/CenturyViewService.mjs +126 -0
  35. package/calendar/services/DOMService.js +14 -0
  36. package/calendar/services/DOMService.mjs +124 -0
  37. package/calendar/services/DecadeViewService.js +8 -0
  38. package/calendar/services/DecadeViewService.mjs +126 -0
  39. package/calendar/services/MonthViewService.js +8 -0
  40. package/calendar/services/MonthViewService.mjs +139 -0
  41. package/calendar/services/NavigationService.js +8 -0
  42. package/calendar/services/NavigationService.mjs +36 -0
  43. package/calendar/services/ScrollSyncService.js +8 -0
  44. package/calendar/services/ScrollSyncService.mjs +50 -0
  45. package/calendar/services/WeekNamesService.js +8 -0
  46. package/calendar/services/WeekNamesService.mjs +24 -0
  47. package/calendar/services/YearViewService.js +8 -0
  48. package/calendar/services/YearViewService.mjs +135 -0
  49. package/common/AdaptiveMode.js +8 -0
  50. package/common/AdaptiveMode.mjs +73 -0
  51. package/common/PickerWrap.js +8 -0
  52. package/common/PickerWrap.mjs +32 -0
  53. package/common/constants.js +8 -0
  54. package/common/constants.mjs +12 -0
  55. package/dateinput/DateInput.js +8 -0
  56. package/dateinput/DateInput.mjs +503 -0
  57. package/dateinput/models/kendo-date.js +8 -0
  58. package/dateinput/models/kendo-date.mjs +233 -0
  59. package/dateinput/models/mask.js +8 -0
  60. package/dateinput/models/mask.mjs +16 -0
  61. package/dateinput/utils.js +8 -0
  62. package/dateinput/utils.mjs +38 -0
  63. package/datepicker/DatePicker.js +8 -0
  64. package/datepicker/DatePicker.mjs +462 -0
  65. package/datepicker/ToggleButton.js +8 -0
  66. package/datepicker/ToggleButton.mjs +13 -0
  67. package/daterangepicker/DateRangePicker.js +8 -0
  68. package/daterangepicker/DateRangePicker.mjs +426 -0
  69. package/datetimepicker/DateTimePicker.js +8 -0
  70. package/datetimepicker/DateTimePicker.mjs +475 -0
  71. package/datetimepicker/DateTimeSelector.js +8 -0
  72. package/datetimepicker/DateTimeSelector.mjs +275 -0
  73. package/dist/cdn/js/kendo-react-dateinputs.js +8 -21
  74. package/hooks/usePickerFloatingLabel.js +8 -0
  75. package/hooks/usePickerFloatingLabel.mjs +31 -0
  76. package/index.d.mts +4528 -5
  77. package/index.d.ts +4528 -39
  78. package/index.js +8 -21
  79. package/index.mjs +114 -6540
  80. package/messages/index.js +8 -0
  81. package/messages/index.mjs +59 -0
  82. package/package-metadata.js +8 -0
  83. package/package-metadata.mjs +19 -0
  84. package/package.json +7 -7
  85. package/timepicker/TimeList.js +14 -0
  86. package/timepicker/TimeList.mjs +230 -0
  87. package/timepicker/TimePart.js +8 -0
  88. package/timepicker/TimePart.mjs +267 -0
  89. package/timepicker/TimePicker.js +8 -0
  90. package/timepicker/TimePicker.mjs +479 -0
  91. package/timepicker/TimeSelector.js +8 -0
  92. package/timepicker/TimeSelector.mjs +250 -0
  93. package/timepicker/models/TimePart.js +8 -0
  94. package/timepicker/models/TimePart.mjs +18 -0
  95. package/timepicker/services/DOMService.js +8 -0
  96. package/timepicker/services/DOMService.mjs +34 -0
  97. package/timepicker/services/DayPeriodService.js +8 -0
  98. package/timepicker/services/DayPeriodService.mjs +89 -0
  99. package/timepicker/services/HoursService.js +8 -0
  100. package/timepicker/services/HoursService.mjs +92 -0
  101. package/timepicker/services/MinutesService.js +8 -0
  102. package/timepicker/services/MinutesService.mjs +91 -0
  103. package/timepicker/services/SecondsService.js +8 -0
  104. package/timepicker/services/SecondsService.mjs +91 -0
  105. package/timepicker/utils.js +8 -0
  106. package/timepicker/utils.mjs +91 -0
  107. package/utils.js +8 -0
  108. package/utils.mjs +111 -0
  109. package/virtualization/Virtualization.js +8 -0
  110. package/virtualization/Virtualization.mjs +204 -0
  111. package/virtualization/services/RowHeightService.js +8 -0
  112. package/virtualization/services/RowHeightService.mjs +50 -0
  113. package/virtualization/services/ScrollerService.js +8 -0
  114. package/virtualization/services/ScrollerService.mjs +52 -0
  115. package/PopupSettings.d.ts +0 -18
  116. package/calendar/components/Calendar.d.ts +0 -191
  117. package/calendar/components/CalendarCell.d.ts +0 -39
  118. package/calendar/components/CalendarHeaderTitle.d.ts +0 -32
  119. package/calendar/components/CalendarNavigationItem.d.ts +0 -31
  120. package/calendar/components/CalendarWeekCell.d.ts +0 -29
  121. package/calendar/components/Header.d.ts +0 -58
  122. package/calendar/components/HorizontalViewList.d.ts +0 -71
  123. package/calendar/components/MultiViewCalendar.d.ts +0 -212
  124. package/calendar/components/Navigation.d.ts +0 -80
  125. package/calendar/components/TodayCommand.d.ts +0 -35
  126. package/calendar/components/View.d.ts +0 -89
  127. package/calendar/components/ViewList.d.ts +0 -115
  128. package/calendar/models/ActiveView.d.ts +0 -8
  129. package/calendar/models/CalendarSettings.d.ts +0 -106
  130. package/calendar/models/CalendarViewEnum.d.ts +0 -13
  131. package/calendar/models/CellContext.d.ts +0 -23
  132. package/calendar/models/MultiViewCalendarMode.d.ts +0 -13
  133. package/calendar/models/MultiViewCalendarSettings.d.ts +0 -115
  134. package/calendar/models/NavigationAction.d.ts +0 -19
  135. package/calendar/models/SelectionRange.d.ts +0 -21
  136. package/calendar/models/SelectionRangeEnd.d.ts +0 -8
  137. package/calendar/models/ViewService.d.ts +0 -29
  138. package/calendar/models/index.d.ts +0 -15
  139. package/calendar/services/BusViewService.d.ts +0 -25
  140. package/calendar/services/CenturyViewService.d.ts +0 -29
  141. package/calendar/services/DOMService.d.ts +0 -33
  142. package/calendar/services/DecadeViewService.d.ts +0 -31
  143. package/calendar/services/MonthViewService.d.ts +0 -37
  144. package/calendar/services/NavigationService.d.ts +0 -18
  145. package/calendar/services/ScrollSyncService.d.ts +0 -25
  146. package/calendar/services/WeekNamesService.d.ts +0 -13
  147. package/calendar/services/YearViewService.d.ts +0 -35
  148. package/calendar/services/index.d.ts +0 -14
  149. package/common/AdaptiveMode.d.ts +0 -25
  150. package/common/PickerWrap.d.ts +0 -22
  151. package/common/constants.d.ts +0 -8
  152. package/dateinput/DateInput.d.ts +0 -355
  153. package/dateinput/models/DateInputSettings.d.ts +0 -103
  154. package/dateinput/models/format-placeholder.d.ts +0 -43
  155. package/dateinput/models/incremental-steps.d.ts +0 -15
  156. package/dateinput/models/index.d.ts +0 -11
  157. package/dateinput/models/kendo-date.d.ts +0 -57
  158. package/dateinput/models/mask.d.ts +0 -11
  159. package/dateinput/models/selection.d.ts +0 -11
  160. package/dateinput/utils.d.ts +0 -34
  161. package/datepicker/DatePicker.d.ts +0 -358
  162. package/datepicker/ToggleButton.d.ts +0 -14
  163. package/datepicker/models/DatePickerSettings.d.ts +0 -141
  164. package/datepicker/models/index.d.ts +0 -6
  165. package/daterangepicker/DateRangePicker.d.ts +0 -354
  166. package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -10
  167. package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -10
  168. package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -10
  169. package/daterangepicker/models/DateRangePickerSettings.d.ts +0 -126
  170. package/daterangepicker/models/index.d.ts +0 -9
  171. package/datetimepicker/DateTimePicker.d.ts +0 -342
  172. package/datetimepicker/DateTimeSelector.d.ts +0 -106
  173. package/datetimepicker/models/DateTimePickerSettings.d.ts +0 -144
  174. package/datetimepicker/models/index.d.ts +0 -6
  175. package/hooks/usePickerFloatingLabel.d.ts +0 -24
  176. package/messages/index.d.ts +0 -124
  177. package/package-metadata.d.ts +0 -9
  178. package/timepicker/TimeList.d.ts +0 -91
  179. package/timepicker/TimePart.d.ts +0 -141
  180. package/timepicker/TimePicker.d.ts +0 -355
  181. package/timepicker/TimeSelector.d.ts +0 -144
  182. package/timepicker/models/IncrementalSteps.d.ts +0 -12
  183. package/timepicker/models/ListItem.d.ts +0 -11
  184. package/timepicker/models/ListService.d.ts +0 -19
  185. package/timepicker/models/ListServiceSettings.d.ts +0 -16
  186. package/timepicker/models/TimePart.d.ts +0 -14
  187. package/timepicker/models/TimePickerSettings.d.ts +0 -133
  188. package/timepicker/models/index.d.ts +0 -11
  189. package/timepicker/services/DOMService.d.ts +0 -14
  190. package/timepicker/services/DayPeriodService.d.ts +0 -51
  191. package/timepicker/services/HoursService.d.ts +0 -37
  192. package/timepicker/services/MinutesService.d.ts +0 -36
  193. package/timepicker/services/SecondsService.d.ts +0 -36
  194. package/timepicker/services/index.d.ts +0 -10
  195. package/timepicker/utils.d.ts +0 -60
  196. package/utils.d.ts +0 -100
  197. package/virtualization/Virtualization.d.ts +0 -120
  198. package/virtualization/services/RowHeightService.d.ts +0 -22
  199. package/virtualization/services/ScrollerService.d.ts +0 -53
  200. package/virtualization/services/index.d.ts +0 -7
@@ -1,133 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DateInputFormatPlaceholder } from '../../dateinput/models/format-placeholder';
6
- import { TimePickerIncrementalSteps } from './IncrementalSteps';
7
- import { DateInputsPopupSettings } from '../../PopupSettings';
8
- import { PopupProps } from '@progress/kendo-react-popup';
9
- import { DateInputProps } from '../..';
10
- import { DateFormatOptions } from '@progress/kendo-react-intl';
11
- /**
12
- * @hidden
13
- */
14
- export interface TimePickerSettings {
15
- /**
16
- * Sets the `className` of the TimePicker.
17
- */
18
- className?: string;
19
- /**
20
- * Determines whether to display the **Cancel** button in the popup.
21
- */
22
- cancelButton?: boolean;
23
- /**
24
- * Determines whether to display the **Now** button in the popup.
25
- *
26
- * > If the current time is out of range or the incremental step is greater than `1`, the **Now** button will be hidden.
27
- */
28
- nowButton?: boolean;
29
- /**
30
- * Sets the default state of the popup upon render ([see example]({% slug default_value_timepicker %}#toc-setting-the-default-popup-state)).
31
- */
32
- defaultShow?: boolean;
33
- /**
34
- * Determines whether the TimePicker is disabled ([see example]({% slug disabled_timepicker %})).
35
- */
36
- disabled?: boolean;
37
- /**
38
- * Specifies the date format that is used to display the input value ([see example]({% slug formats_timepicker %})).
39
- */
40
- format?: string | DateFormatOptions;
41
- /**
42
- * Defines the descriptions of the format sections in the input field ([see example]({% slug placeholders_timepicker %})).
43
- */
44
- formatPlaceholder?: DateInputFormatPlaceholder;
45
- /**
46
- * Specifies the `id` of the TimePicker.
47
- */
48
- id?: string;
49
- /**
50
- * 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).
51
- * For example these elements could contain error or hint message.
52
- */
53
- ariaDescribedBy?: string;
54
- /**
55
- * Identifies the element(s) which will label the component.
56
- */
57
- ariaLabelledBy?: string;
58
- /**
59
- * Specifies the greatest valid time ([see example]({% slug timeranges_timepicker %})).
60
- */
61
- max?: Date;
62
- /**
63
- * Specifies the smallest valid time ([see example]({% slug timeranges_timepicker %})).
64
- */
65
- min?: Date;
66
- /**
67
- * Specifies the `name` property of the `input` DOM element.
68
- */
69
- name?: string;
70
- /**
71
- * Fires each time any of the TimePicker elements gets blurred.
72
- */
73
- onBlur?: (event: React.FocusEvent<HTMLDivElement>) => void;
74
- /**
75
- * Fires each time the user focuses any of the TimePicker elements.
76
- */
77
- onFocus?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
78
- /**
79
- * Configures the popup options of the TimePicker.
80
- *
81
- * The available options are:
82
- * - `animate: Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
83
- * - `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).
84
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
85
- */
86
- popupSettings?: DateInputsPopupSettings;
87
- /**
88
- * Specifies if a time selector will be displayed ([see example]({% slug controlled_timepicker %}#toc-controlling-the-popup-state)).
89
- */
90
- show?: boolean;
91
- /**
92
- * Configures the incremental steps of the TimePicker ([see example]({% slug incrementalsteps_timepicker %})).
93
- *
94
- * > If the incremental step is greater than `1`, the **Now** button will be hidden.
95
- */
96
- steps?: TimePickerIncrementalSteps;
97
- /**
98
- * Toggles the smooth scroll animation on time click. By default, the animation is enabled.
99
- */
100
- smoothScroll?: boolean;
101
- /**
102
- * Sets the `tabIndex` property of the TimePicker.
103
- */
104
- tabIndex?: number;
105
- /**
106
- * Sets the title of the `input` element of the TimePicker.
107
- */
108
- title?: string;
109
- /**
110
- * Specifies the width of the TimePicker.
111
- */
112
- width?: number | string;
113
- /**
114
- * Enables the customization or the override of the default Popup which is rendered by the TimePicker
115
- * ([see example]({% slug custom_rendering_timepicker %}#toc-customizing-the-popup)).
116
- */
117
- popup?: React.ComponentType<PopupProps>;
118
- /**
119
- * Enables the customization or the override of the default DateInput which is rendered by the TimePicker
120
- * ([see example]({% slug custom_rendering_timepicker %}#toc-customizing-the-dateinput)).
121
- */
122
- dateInput?: React.ComponentType<DateInputProps>;
123
- /**
124
- * Renders a floating label for the TimePicker.
125
- */
126
- label?: string;
127
- /**
128
- * Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
129
- * For more information, refer to the article on
130
- * [placeholders]({% slug placeholders_timepicker %}).
131
- */
132
- placeholder?: string | null;
133
- }
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { type TimePickerIncrementalSteps } from './IncrementalSteps';
6
- import { type TimePickerSettings } from './TimePickerSettings';
7
- import { type ListItem } from './ListItem';
8
- import { type ListService } from './ListService';
9
- import { type ListServiceSettings } from './ListServiceSettings';
10
- import { TIME_PART } from './TimePart';
11
- export { TimePickerIncrementalSteps, TimePickerSettings, ListItem, ListService, ListServiceSettings, TIME_PART };
@@ -1,14 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare class DOMService {
9
- itemHeight: number;
10
- timeListHeight: number;
11
- didCalculate: boolean;
12
- ensureHeights(): void;
13
- calculateHeights(container?: HTMLElement): void;
14
- }
@@ -1,51 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { IntlService } from '@progress/kendo-react-intl';
6
- import { ListServiceSettings } from '../models/ListServiceSettings';
7
- import { ListService } from '../models/ListService';
8
- import { ListItem } from '../models/ListItem';
9
- /**
10
- * @hidden
11
- */
12
- export declare class DayPeriodService implements ListService {
13
- private intl;
14
- private min;
15
- private max;
16
- private part;
17
- constructor(intl: IntlService);
18
- /**
19
- * @hidden
20
- */
21
- apply(value: Date, candidate: Date): Date;
22
- /**
23
- * @hidden
24
- */
25
- configure(settings: ListServiceSettings): void;
26
- /**
27
- * @hidden
28
- */
29
- data(_?: Date): ListItem[];
30
- /**
31
- * @hidden
32
- */
33
- isRangeChanged(_: Date, __: Date): boolean;
34
- /**
35
- * @hidden
36
- */
37
- limitRange(min: Date, max: Date, _?: Date): Date[];
38
- /**
39
- * @hidden
40
- */
41
- total(): number;
42
- /**
43
- * @hidden
44
- */
45
- selectedIndex(value: Date): number;
46
- /**
47
- * @hidden
48
- */
49
- valueInList(value: Date): boolean;
50
- private normalizedRange;
51
- }
@@ -1,37 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { IntlService } from '@progress/kendo-react-intl';
6
- import { ListServiceSettings } from '../models/ListServiceSettings';
7
- import { ListService } from '../models/ListService';
8
- import { ListItem } from '../models/ListItem';
9
- /**
10
- * @hidden
11
- */
12
- export declare class HoursService implements ListService {
13
- private intl;
14
- private boundRange;
15
- private insertUndividedMax;
16
- private min;
17
- private max;
18
- private step;
19
- private toListItem;
20
- constructor(intl: IntlService);
21
- apply(value: Date, candidate: Date): Date;
22
- configure(settings: ListServiceSettings): void;
23
- data(selectedValue?: Date): ListItem[];
24
- isRangeChanged(min: Date, max: Date): boolean;
25
- limitRange(min: Date, max: Date, value?: Date): Date[];
26
- total(value?: Date): number;
27
- selectedIndex(value: Date): number;
28
- valueInList(value?: Date): boolean;
29
- private addLast;
30
- private addMissing;
31
- private countFromMin;
32
- private isMissing;
33
- private isLastMissing;
34
- private divideByStep;
35
- private lastHour;
36
- private range;
37
- }
@@ -1,36 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { IntlService } from '@progress/kendo-react-intl';
6
- import { ListServiceSettings } from '../models/ListServiceSettings';
7
- import { ListService } from '../models/ListService';
8
- import { ListItem } from '../models/ListItem';
9
- /**
10
- * @hidden
11
- */
12
- export declare class MinutesService implements ListService {
13
- private intl;
14
- private toListItem;
15
- private min;
16
- private max;
17
- private step;
18
- private insertUndividedMax;
19
- constructor(intl: IntlService);
20
- apply(value: Date, candidate: Date): Date;
21
- configure(settings: ListServiceSettings): void;
22
- data(selectedValue?: Date): ListItem[];
23
- isRangeChanged(min: Date, max: Date): boolean;
24
- limitRange(min: Date, max: Date, value?: Date): Date[];
25
- total(value?: Date): number;
26
- selectedIndex(value: Date): number;
27
- valueInList(value: Date): boolean;
28
- private addLast;
29
- private addMissing;
30
- private countFromMin;
31
- private isMissing;
32
- private isLastMissing;
33
- private divideByStep;
34
- private lastMinute;
35
- private range;
36
- }
@@ -1,36 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { IntlService } from '@progress/kendo-react-intl';
6
- import { ListServiceSettings } from '../models/ListServiceSettings';
7
- import { ListService } from '../models/ListService';
8
- import { ListItem } from '../models/ListItem';
9
- /**
10
- * @hidden
11
- */
12
- export declare class SecondsService implements ListService {
13
- private intl;
14
- private toListItem;
15
- private min;
16
- private max;
17
- private step;
18
- private insertUndividedMax;
19
- constructor(intl: IntlService);
20
- apply(value: Date, candidate: Date): Date;
21
- configure(settings: ListServiceSettings): void;
22
- data(selectedValue?: Date): ListItem[];
23
- isRangeChanged(min: Date, max: Date): boolean;
24
- limitRange(min: Date, max: Date, value?: Date): Date[];
25
- total(value?: Date): number;
26
- selectedIndex(value: Date): number;
27
- valueInList(value: Date): boolean;
28
- private divideByStep;
29
- private addLast;
30
- private addMissing;
31
- private countFromMin;
32
- private isMissing;
33
- private isLastMissing;
34
- private lastSecond;
35
- private range;
36
- }
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DayPeriodService } from './DayPeriodService';
6
- import { DOMService } from './DOMService';
7
- import { HoursService } from './HoursService';
8
- import { MinutesService } from './MinutesService';
9
- import { SecondsService } from './SecondsService';
10
- export { DayPeriodService, DOMService, HoursService, MinutesService, SecondsService };
@@ -1,60 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const generateGetters: (parts: any) => any;
9
- /**
10
- * @hidden
11
- */
12
- export declare const generateSnappers: (steps: any, min: any) => any;
13
- /**
14
- * @hidden
15
- */
16
- export declare const valueMerger: (getters: any) => (origin: any, candidate: any) => any;
17
- /**
18
- * @hidden
19
- */
20
- export declare const snapTime: (snappers: any) => (candidate: any) => any;
21
- /**
22
- * @hidden
23
- */
24
- export declare const setHours: (date: Date, value: number) => Date;
25
- /**
26
- * @hidden
27
- */
28
- export declare const setMinutes: (date: Date, value: number) => Date;
29
- /**
30
- * @hidden
31
- */
32
- export declare const setSeconds: (date: Date, value: number) => Date;
33
- /**
34
- * @hidden
35
- */
36
- export declare const getNow: () => Date;
37
- /**
38
- * @hidden
39
- */
40
- export declare const range: (start: number, end: number, step?: number) => number[];
41
- /**
42
- * @hidden
43
- */
44
- export declare const timeInRange: (candidate: Date, min: Date, max: Date) => Date;
45
- /**
46
- * @hidden
47
- */
48
- export declare const isInTimeRange: (candidate: Date | null, min?: Date, max?: Date) => boolean;
49
- /**
50
- * @hidden
51
- */
52
- export declare const isInRange: (candidate: Date | null, min: Date, max: Date) => boolean;
53
- /**
54
- * @hidden
55
- */
56
- export declare const isSmallerThanMin: (val: Date | null, min: Date | null) => boolean;
57
- /**
58
- * @hidden
59
- */
60
- export declare const isBiggerThanMax: (val: Date | null, max: Date | null) => boolean;
package/utils.d.ts DELETED
@@ -1,100 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { SelectionRange } from './calendar/models/SelectionRange';
6
- import { CalendarViewEnum } from './calendar/models/CalendarViewEnum';
7
- /**
8
- * @hidden
9
- */
10
- export declare const isEqualRange: (initial: SelectionRange, updated: SelectionRange) => boolean;
11
- /**
12
- * @hidden
13
- */
14
- export declare function nullable(subRequirement: any): any;
15
- /**
16
- * @hidden
17
- */
18
- export declare const viewInRange: (candidate: CalendarViewEnum, min?: CalendarViewEnum, max?: CalendarViewEnum) => CalendarViewEnum;
19
- /**
20
- * @hidden
21
- */
22
- export declare const MIDNIGHT_DATE: Date;
23
- /**
24
- * @hidden
25
- */
26
- export declare const MIN_DATE: Date;
27
- /**
28
- * @hidden
29
- */
30
- export declare const MAX_DATE: Date;
31
- /**
32
- * @hidden
33
- */
34
- export declare const MIN_TIME: Date;
35
- /**
36
- * @hidden
37
- */
38
- export declare const MAX_TIME: Date;
39
- /**
40
- * @hidden
41
- */
42
- export declare const isValidRange: (min: Date, max: Date) => boolean;
43
- /**
44
- * @hidden
45
- */
46
- export declare const setTime: (origin: Date, candidate: Date) => Date;
47
- /**
48
- * @hidden
49
- */
50
- export declare const getToday: () => Date;
51
- /**
52
- * @hidden
53
- */
54
- export declare const isInRange: (candidate: Date, min: Date, max: Date) => boolean;
55
- /**
56
- * @hidden
57
- */
58
- export declare const isInDateRange: (candidate: Date | null, min: Date, max: Date) => boolean;
59
- /**
60
- * @hidden
61
- */
62
- export declare const isInSelectionRange: (value: Date, selectionRange?: SelectionRange) => boolean;
63
- /**
64
- * @hidden
65
- */
66
- export declare const range: (start: number, end: number, step?: number) => number[];
67
- /**
68
- * @hidden
69
- */
70
- export declare const intersects: (date: Date, min: Date, max: Date) => boolean;
71
- /**
72
- * @hidden
73
- */
74
- export declare const shiftWeekNames: (names: string[], offset: number) => string[];
75
- /**
76
- * @hidden
77
- */
78
- export declare const dateInRange: (candidate: Date, min: Date, max: Date) => Date;
79
- /**
80
- * @hidden
81
- */
82
- export declare const domContainerFactory: (type: string) => (children: string | HTMLElement[], classes?: string, styles?: any) => HTMLElement;
83
- /**
84
- * @hidden
85
- */
86
- export declare function debounce(func: any, wait: number, options?: any): {
87
- (...args: any): any;
88
- cancel: () => void;
89
- flush: () => any;
90
- pending: () => boolean;
91
- };
92
- /**
93
- * @hidden
94
- */
95
- export declare function throttle(func: any, wait: number): {
96
- (...args: any): any;
97
- cancel: () => void;
98
- flush: () => any;
99
- pending: () => boolean;
100
- };
@@ -1,120 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import PropTypes from 'prop-types';
7
- import { ScrollAction, PageAction } from './services';
8
- /**
9
- * @hidden
10
- */
11
- export interface ScrollActionArguments {
12
- index: number;
13
- target: HTMLDivElement | null;
14
- scrollAction?: ScrollAction;
15
- pageAction?: PageAction;
16
- animationInProgress: boolean;
17
- }
18
- /**
19
- * @hidden
20
- */
21
- export declare enum ScrollDirection {
22
- Backward = 0,
23
- Forward = 1
24
- }
25
- /**
26
- * @hidden
27
- */
28
- export type Direction = 'horizontal' | 'vertical';
29
- /**
30
- * @hidden
31
- */
32
- export interface VirtualizationProps {
33
- bottomOffset: number;
34
- className?: string;
35
- direction?: Direction;
36
- itemHeight?: number;
37
- itemWidth?: number;
38
- maxScrollDifference?: number;
39
- onMount?: any;
40
- onScroll?: (event: React.SyntheticEvent) => void;
41
- onScrollAction?: (args: ScrollActionArguments) => void;
42
- scrollOffsetSize?: number;
43
- scrollDuration?: number;
44
- skip: number;
45
- tabIndex?: number;
46
- take: number;
47
- topOffset: number;
48
- total: number;
49
- role?: string;
50
- children?: React.ReactNode;
51
- }
52
- /**
53
- * @hidden
54
- */
55
- export declare class Virtualization extends React.Component<VirtualizationProps, {}> {
56
- static propTypes: {
57
- bottomOffset: PropTypes.Validator<number>;
58
- className: PropTypes.Requireable<string>;
59
- direction: PropTypes.Requireable<string>;
60
- forceScroll: PropTypes.Requireable<boolean>;
61
- itemHeight: PropTypes.Requireable<number>;
62
- itemWidth: PropTypes.Requireable<number>;
63
- maxScrollDifference: PropTypes.Requireable<number>;
64
- onScroll: PropTypes.Requireable<(...args: any[]) => any>;
65
- onScrollAction: PropTypes.Requireable<(...args: any[]) => any>;
66
- scrollDuration: PropTypes.Requireable<number>;
67
- scrollOffsetSize: PropTypes.Requireable<number>;
68
- skip: PropTypes.Validator<number>;
69
- tabIndex: PropTypes.Requireable<number>;
70
- take: PropTypes.Validator<number>;
71
- topOffset: PropTypes.Validator<number>;
72
- total: PropTypes.Validator<number>;
73
- role: PropTypes.Requireable<string>;
74
- };
75
- static defaultProps: {
76
- direction: Direction;
77
- forceScroll: boolean;
78
- scrollOffsetSize: number;
79
- maxScrollDifference: number;
80
- scrollDuration: number;
81
- };
82
- private cancelAnimation;
83
- private rowHeightService;
84
- private scrollerService;
85
- private scrollContainer;
86
- private scrollAction?;
87
- private pageAction?;
88
- private lastDirection;
89
- private lastTotal;
90
- private lastTake;
91
- private animationInProgress;
92
- private restrictScroll;
93
- get element(): HTMLDivElement | null;
94
- protected get containerOffsetSize(): number;
95
- get containerScrollSize(): number;
96
- get containerScrollPosition(): number;
97
- protected get direction(): Direction;
98
- protected get scrollOffsetSize(): number;
99
- constructor(props: VirtualizationProps);
100
- activeIndex(): number;
101
- itemIndex(offset: number): number;
102
- itemOffset(index: number): number;
103
- isIndexVisible(index: number): boolean;
104
- isListScrolled(index: number): boolean;
105
- scrollTo: (value: number) => void;
106
- scrollToIndex: (index: number) => void;
107
- animateToIndex: (index: number) => void;
108
- scrollToBottom: () => void;
109
- componentDidMount(): void;
110
- render(): import("react/jsx-runtime").JSX.Element;
111
- protected scrollStep: (start: number, end: number) => number;
112
- protected scrollRange: (indexOffset: number, direction: ScrollDirection) => any;
113
- protected containerMaxScroll: () => number;
114
- protected getContainerScrollDirection: (indexOffset: number) => ScrollDirection;
115
- protected initServices: (props?: VirtualizationProps) => void;
116
- protected getContainerProperty: (propertyName: 'offsetHeight' | 'offsetWidth' | 'scrollHeight' | 'scrollWidth' | 'scrollTop' | 'scrollLeft') => number;
117
- private handleScroll;
118
- private handleScrollAction;
119
- private handlePageAction;
120
- }
@@ -1,22 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare class RowHeightService {
9
- private total;
10
- private rowHeight;
11
- private detailRowHeight;
12
- private offsets;
13
- private heights;
14
- constructor(total: number, rowHeight: number, detailRowHeight: number);
15
- height(rowIndex: number): number;
16
- expandDetail(rowIndex: number): void;
17
- collapseDetail(rowIndex: number): void;
18
- index(position: number): number;
19
- offset(rowIndex: number): number;
20
- totalHeight(): number;
21
- private updateRowHeight;
22
- }