@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,80 +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 { CalendarNavigationItemProps } from './CalendarNavigationItem';
8
- import { DOMService } from '../services';
9
- import { Virtualization } from '../../virtualization/Virtualization';
10
- import { CalendarViewEnum, ViewService } from '../models';
11
- /**
12
- * @hidden
13
- */
14
- export interface NavigationEventArguments {
15
- syntheticEvent: React.SyntheticEvent<any>;
16
- nativeEvent?: any;
17
- value: Date;
18
- target: Navigation;
19
- }
20
- /**
21
- * @hidden
22
- */
23
- export interface NavigationProps {
24
- activeView: CalendarViewEnum;
25
- dom: DOMService;
26
- focusedDate: Date;
27
- max: Date;
28
- min: Date;
29
- onScroll?: (event: React.SyntheticEvent) => void;
30
- onChange?: (event: NavigationEventArguments) => void;
31
- service: ViewService;
32
- take?: number;
33
- navigationItem?: React.ComponentType<CalendarNavigationItemProps>;
34
- tabIndex?: number;
35
- }
36
- /**
37
- * @hidden
38
- */
39
- export interface NavigationState {
40
- skip: number;
41
- }
42
- /**
43
- * @hidden
44
- */
45
- export declare class Navigation extends React.Component<NavigationProps, NavigationState> {
46
- static propTypes: {
47
- activeView: PropTypes.Validator<number>;
48
- focusedDate: PropTypes.Validator<Date>;
49
- max: PropTypes.Validator<Date>;
50
- min: PropTypes.Validator<Date>;
51
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
52
- take: PropTypes.Requireable<number>;
53
- tabIndex: PropTypes.Requireable<number>;
54
- };
55
- static defaultProps: {
56
- take: number;
57
- };
58
- virtualization: Virtualization | null;
59
- private list;
60
- private itemHeight;
61
- private topOffset;
62
- private maxViewHeight;
63
- private bottomOffset;
64
- private lastView;
65
- private indexToScroll?;
66
- private lastFocus;
67
- protected get take(): number;
68
- constructor(props: NavigationProps);
69
- /**
70
- * @hidden
71
- */
72
- componentDidUpdate(_prevProps: NavigationProps, _prevState: NavigationState): void;
73
- render(): import("react/jsx-runtime").JSX.Element;
74
- protected handleVirtualizationMount: (virtualization: Virtualization) => void;
75
- protected buildNavigationItem: (date: Date) => React.ReactNode;
76
- protected calculateHeights: () => void;
77
- protected getTake(skip: number, total: number): number;
78
- private handleDateChange;
79
- private handleScrollAction;
80
- }
@@ -1,35 +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 { HeaderEventArguments } from './Header';
8
- /**
9
- * @hidden
10
- */
11
- export interface TodayCommandProps {
12
- min: Date;
13
- max: Date;
14
- onClick?: (event: HeaderEventArguments) => void;
15
- disabled?: boolean;
16
- tabIndex?: number;
17
- }
18
- export declare class TodayCommand extends React.Component<TodayCommandProps> {
19
- static propTypes: {
20
- max: PropTypes.Validator<Date>;
21
- min: PropTypes.Validator<Date>;
22
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
23
- disabled: PropTypes.Requireable<boolean>;
24
- };
25
- static defaultProps: {
26
- min: Date;
27
- max: Date;
28
- };
29
- protected get min(): Date;
30
- protected get max(): Date;
31
- private localization;
32
- protected get todayIsInRange(): boolean;
33
- private handleClick;
34
- render(): import("react/jsx-runtime").JSX.Element;
35
- }
@@ -1,89 +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 { CalendarCellProps } from './CalendarCell';
8
- import { CalendarWeekCellProps } from './CalendarWeekCell';
9
- import { CalendarViewEnum, CellContext, SelectionRange, SelectionRangeEnd, ViewService } from '../models';
10
- import { BusViewService } from '../services';
11
- /**
12
- * @hidden
13
- */
14
- export interface ViewEventArguments {
15
- syntheticEvent: React.SyntheticEvent<any>;
16
- nativeEvent?: any;
17
- value: Date;
18
- target: View;
19
- }
20
- /**
21
- * @hidden
22
- */
23
- export interface ViewDimensions {
24
- headerHight: number;
25
- offsetHeight: number;
26
- }
27
- /**
28
- * @hidden
29
- */
30
- export interface ViewProps {
31
- activeRangeEnd?: SelectionRangeEnd;
32
- activeView: CalendarViewEnum;
33
- bus: BusViewService;
34
- cellUID: string;
35
- direction?: 'horizontal' | 'vertical';
36
- focusedDate: Date;
37
- weekCell?: React.ComponentType<CalendarWeekCellProps>;
38
- max: Date;
39
- min: Date;
40
- cell?: React.ComponentType<CalendarCellProps>;
41
- onCellEnter?: (date: Date) => void;
42
- onCellLeave?: (date: Date | null) => void;
43
- onChange?: (event: ViewEventArguments) => void;
44
- selectedDate: Date | Date[] | null;
45
- selectionRange?: SelectionRange;
46
- service: ViewService;
47
- showWeekNumbers?: boolean;
48
- viewDate: Date;
49
- }
50
- /**
51
- * @hidden
52
- */
53
- export declare class View extends React.Component<ViewProps, {}> {
54
- static propTypes: {
55
- activeRangeEnd: PropTypes.Requireable<string | null>;
56
- activeView: PropTypes.Validator<number>;
57
- cellUID: PropTypes.Validator<string>;
58
- direction: PropTypes.Requireable<string>;
59
- focusedDate: PropTypes.Validator<Date>;
60
- max: PropTypes.Validator<Date>;
61
- min: PropTypes.Validator<Date>;
62
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
63
- selectedDate: PropTypes.Requireable<NonNullable<Date | (Date | null | undefined)[] | null | undefined>>;
64
- showWeekNumbers: PropTypes.Requireable<boolean>;
65
- viewDate: PropTypes.Validator<Date>;
66
- };
67
- static defaultProps: {
68
- direction: string;
69
- selectedDate: Date;
70
- showWeekNumbers: boolean;
71
- };
72
- private intl;
73
- private weekService;
74
- protected get min(): Date;
75
- protected get max(): Date;
76
- protected get isHorizontal(): boolean;
77
- protected get isMonthView(): boolean;
78
- protected get weekNumber(): boolean;
79
- protected get selectedDate(): Date | Date[] | null;
80
- render(): import("react/jsx-runtime").JSX.Element;
81
- protected buildWeekNumber: (row: any, idx: number) => import("react/jsx-runtime").JSX.Element;
82
- protected buildRow: (row: any) => any;
83
- protected getWeekNumber(date: Date): number | null;
84
- protected firstDate: (row: any) => Date | null;
85
- protected firstWeekDateContext: (rowCtx: CellContext[]) => CellContext | null;
86
- private handleClick;
87
- private handleMouseEnter;
88
- private handleMouseLeave;
89
- }
@@ -1,115 +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 { Virtualization } from '../../virtualization/Virtualization';
8
- import { BusViewService, DOMService } from '../services';
9
- import { CalendarCellProps } from './CalendarCell';
10
- import { ViewService, CalendarViewEnum } from '../models';
11
- import { CalendarWeekCellProps } from './CalendarWeekCell';
12
- import { CalendarHeaderTitleProps } from './CalendarHeaderTitle';
13
- /**
14
- * @hidden
15
- */
16
- export interface ViewListEventArguments {
17
- syntheticEvent: React.SyntheticEvent<any>;
18
- nativeEvent?: any;
19
- value: Date;
20
- target: ViewList;
21
- isTodayClick?: boolean;
22
- }
23
- /**
24
- * @hidden
25
- */
26
- export interface ViewListProps {
27
- activeView: CalendarViewEnum;
28
- bottomOffset?: number;
29
- bus: BusViewService;
30
- cellUID: string;
31
- dom: DOMService;
32
- focusedDate: Date;
33
- max: Date;
34
- min: Date;
35
- cell?: React.ComponentType<CalendarCellProps>;
36
- onScroll?: (event: React.SyntheticEvent) => void;
37
- onChange?: (event: ViewListEventArguments) => void;
38
- service: ViewService;
39
- showWeekNumbers?: boolean;
40
- smoothScroll?: boolean;
41
- take?: number;
42
- value: Date | null;
43
- viewHeight?: number;
44
- viewOffset?: number;
45
- weekCell?: React.ComponentType<CalendarWeekCellProps>;
46
- headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
47
- shouldScroll?: () => boolean;
48
- tabIndex?: number;
49
- }
50
- /**
51
- * @hidden
52
- */
53
- export interface ViewListState {
54
- skip: number;
55
- index: number;
56
- }
57
- /**
58
- * @hidden
59
- */
60
- export declare class ViewList extends React.Component<ViewListProps, ViewListState> {
61
- static propTypes: {
62
- activeView: PropTypes.Validator<number>;
63
- bottomOffset: PropTypes.Requireable<number>;
64
- cellUID: PropTypes.Validator<string>;
65
- focusedDate: PropTypes.Validator<Date>;
66
- max: PropTypes.Validator<Date>;
67
- min: PropTypes.Validator<Date>;
68
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
69
- showWeekNumbers: PropTypes.Requireable<boolean>;
70
- smoothScroll: PropTypes.Requireable<boolean>;
71
- take: PropTypes.Requireable<number>;
72
- value: PropTypes.Requireable<Date>;
73
- viewHeight: PropTypes.Requireable<number>;
74
- viewOffset: PropTypes.Requireable<number>;
75
- tabIndex: PropTypes.Requireable<number>;
76
- };
77
- static defaultProps: {
78
- take: number;
79
- showWeekNumbers: boolean;
80
- smoothScroll: boolean;
81
- };
82
- virtualization: Virtualization | null;
83
- private calendarView;
84
- private table;
85
- private intl;
86
- private bottomOffset;
87
- private viewOffset;
88
- private viewHeight;
89
- private _element;
90
- private lastView;
91
- private isActive;
92
- private animateToIndex;
93
- private shouldScroll;
94
- private indexToScroll?;
95
- private lastFocus;
96
- get element(): HTMLDivElement | null;
97
- protected get weekNames(): string[];
98
- protected get weekNumber(): boolean;
99
- protected get take(): number;
100
- protected get animate(): boolean;
101
- protected get todayIsInRange(): boolean;
102
- constructor(props: ViewListProps);
103
- componentDidUpdate(_prevProps: ViewListProps, _prevState: ViewListState): void;
104
- focusActiveDate: () => void;
105
- blurActiveDate: () => void;
106
- render(): import("react/jsx-runtime").JSX.Element;
107
- protected handleVirtualizationMount: (virtualization: Virtualization) => void;
108
- protected buildMonthView: (cols: any[], weekNames: any[]) => import("react/jsx-runtime").JSX.Element;
109
- protected buildDates: (cols: any[], dates: Date[]) => import("react/jsx-runtime").JSX.Element;
110
- protected calculateHeights: () => void;
111
- protected getTake: (skip: number, total: number) => number;
112
- private handleScrollAction;
113
- private handleTodayClick;
114
- private handleDateChange;
115
- }
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The literal type that defines all possible Calendar views.
7
- */
8
- export type ActiveView = 'month' | 'year' | 'decade' | 'century';
@@ -1,106 +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 { ActiveView } from './ActiveView';
6
- import { CalendarCellProps } from '../components/CalendarCell';
7
- import { CalendarWeekCellProps } from '../components/CalendarWeekCell';
8
- import { CalendarHeaderTitleProps } from '../components/CalendarHeaderTitle';
9
- import { CalendarNavigationItemProps } from '../components/CalendarNavigationItem';
10
- /**
11
- * @hidden
12
- */
13
- export interface CalendarSettings {
14
- /**
15
- * Defines the bottommost view to which the user can navigate.
16
- */
17
- bottomView?: ActiveView;
18
- /**
19
- * Sets the `className` of the Calendar.
20
- */
21
- className?: string;
22
- /**
23
- * Sets the default active view of the Calendar.
24
- * If not set, the Calendar will display the month view.
25
- */
26
- defaultActiveView?: ActiveView;
27
- /**
28
- * Determines whether the Calendar is disabled.
29
- */
30
- disabled?: boolean;
31
- /**
32
- * Sets the initial focused date of the Calendar.
33
- */
34
- focusedDate?: Date;
35
- /**
36
- * Sets the `id` of the Calendar.
37
- */
38
- id?: string;
39
- /**
40
- * 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).
41
- * For example these elements could contain error or hint message.
42
- */
43
- ariaDescribedBy?: string;
44
- /**
45
- * Identifies the element(s) which will label the component.
46
- */
47
- ariaLabelledBy?: string;
48
- /**
49
- * Sets the maximum allowed date of the Calendar. Defaults to `2099-12-31`.
50
- */
51
- max?: Date;
52
- /**
53
- * Sets the minimum allowed date of the Calendar. Defaults to `1900-1-1`.
54
- */
55
- min?: Date;
56
- /**
57
- * Determines if the navigation sidebar will be displayed.
58
- */
59
- navigation?: boolean;
60
- /**
61
- * **Deprecated**
62
- *
63
- * Toggles the smooth scroll animation on navigation item click. By default, the animation is enabled in React 17.
64
- */
65
- smoothScroll?: boolean;
66
- /**
67
- * Fires each time the Calendar is blurred.
68
- */
69
- onBlur?: (event: React.FocusEvent<any>) => void;
70
- /**
71
- * Fires each time the Calendar is focused.
72
- */
73
- onFocus?: (event: React.FocusEvent<any>) => void;
74
- /**
75
- * Sets the `tabIndex` property of the Calendar.
76
- */
77
- tabIndex?: number;
78
- /**
79
- * Defines the topmost view to which the user can navigate.
80
- */
81
- topView?: ActiveView;
82
- /**
83
- * Determines if the week number column will be displayed.
84
- */
85
- weekNumber?: boolean;
86
- /**
87
- * Enables the customization or the override of the default Calendar cell
88
- * ([see example]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)).
89
- */
90
- cell?: React.ComponentType<CalendarCellProps>;
91
- /**
92
- * Enables the customization or the override of the default week-column cell in the Calendar
93
- * ([see example]({% slug custom_rendering_calendar %}#toc-cells-inside-the-week-column)).
94
- */
95
- weekCell?: React.ComponentType<CalendarWeekCellProps>;
96
- /**
97
- * Enables the customization or the override of the default header title in the Calendar
98
- * ([see example]({% slug custom_rendering_calendar %}#toc-titles-of-current-views)).
99
- */
100
- headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
101
- /**
102
- * Enables the customization or the override of the default navigation item in the Calendar
103
- * ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
104
- */
105
- navigationItem?: React.ComponentType<CalendarNavigationItemProps>;
106
- }
@@ -1,13 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The Enum which defines all possible Calendar view types.
7
- */
8
- export declare enum CalendarViewEnum {
9
- month = 0,
10
- year = 1,
11
- decade = 2,
12
- century = 3
13
- }
@@ -1,23 +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 interface CellContext {
9
- formattedValue: string;
10
- id: string;
11
- isWeekend: boolean;
12
- isFocused: boolean;
13
- isSelected: boolean;
14
- isInRange: boolean;
15
- isRangeStart: boolean;
16
- isRangeEnd: boolean;
17
- isRangeMid: boolean;
18
- isRangeSplitEnd?: boolean;
19
- isRangeSplitStart?: boolean;
20
- isToday: boolean;
21
- title?: string;
22
- value: Date;
23
- }
@@ -1,13 +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
- * Represents the selection modes of the MultiViewCalendar.
7
- *
8
- * The supported modes are:
9
- * * (Default) `single`&mdash;Renders a single-date selection.
10
- * * `multiple`&mdash;Renders a multiple-date selection.
11
- * * `range`&mdash;Renders a date-range selection.
12
- */
13
- export type MultiViewCalendarMode = 'single' | 'multiple' | 'range';
@@ -1,115 +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 { ActiveView } from './ActiveView';
6
- import { SelectionRangeEnd } from './SelectionRangeEnd';
7
- import { MultiViewCalendarMode } from './MultiViewCalendarMode';
8
- import { CalendarCellProps } from '../components/CalendarCell';
9
- import { CalendarWeekCellProps } from '../components/CalendarWeekCell';
10
- import { CalendarHeaderTitleProps } from '../components/CalendarHeaderTitle';
11
- /**
12
- * @hidden
13
- */
14
- export interface MultiViewCalendarSettings {
15
- /**
16
- * Specifies which end of the defined selection range will be marked as active.
17
- *
18
- * > If the selection range is undefined, the value is ignored.
19
- */
20
- activeRangeEnd?: SelectionRangeEnd;
21
- /**
22
- * If set to `true`, the component skips the validation of whether the `from` value is after the `to` value.
23
- */
24
- allowReverse?: boolean;
25
- /**
26
- * Defines the bottommost view to which the user can navigate.
27
- */
28
- bottomView?: ActiveView;
29
- /**
30
- * Sets the `className` of the MultiViewCalendar.
31
- */
32
- className?: string;
33
- /**
34
- * Sets the default active view of the MultiViewCalendar.
35
- * If not set, the MultiViewCalendar displays the month view.
36
- */
37
- defaultActiveView?: ActiveView;
38
- /**
39
- * Sets the `views` property of the MultiViewCalendar and defines the number of rendered views.
40
- */
41
- views?: number;
42
- /**
43
- * Determines if the week number column will be displayed.
44
- */
45
- weekNumber?: boolean;
46
- /**
47
- * Fires each time the MultiViewCalendar is focused.
48
- */
49
- onFocus?: (event: React.FocusEvent<any>) => void;
50
- /**
51
- * Sets the `tabIndex` property of the MultiViewCalendar.
52
- */
53
- tabIndex?: number;
54
- /**
55
- * Defines the topmost view to which the user can navigate.
56
- */
57
- topView?: ActiveView;
58
- /**
59
- * Determines whether the MultiViewCalendar is disabled.
60
- */
61
- disabled?: boolean;
62
- /**
63
- * Sets the initial focused date of the MultiViewCalendar.
64
- */
65
- focusedDate?: Date;
66
- /**
67
- * Sets the `id` of the MultiViewCalendar.
68
- */
69
- id?: string;
70
- /**
71
- * 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).
72
- * For example these elements could contain error or hint message.
73
- */
74
- ariaDescribedBy?: string;
75
- /**
76
- * Identifies the element(s) which will label the component.
77
- */
78
- ariaLabelledBy?: string;
79
- /**
80
- * Sets the maximum allowed date of the MultiViewCalendar. Defaults to `2099-12-31`.
81
- */
82
- max?: Date;
83
- /**
84
- * Sets the minimum allowed date of the MultiViewCalendar. Defaults to `1900-1-1`.
85
- */
86
- min?: Date;
87
- /**
88
- * Sets the selection mode of the MultiViewCalendar.
89
- *
90
- * The available modes are:
91
- * * (Default) `single`&mdash;Renders a single-date selection.
92
- * * `multiple`&mdash;Renders a multiple-date selection.
93
- * * `range`&mdash;Renders a date-range selection.
94
- */
95
- mode?: MultiViewCalendarMode;
96
- /**
97
- * Fires each time the MultiViewCalendar is blurred.
98
- */
99
- onBlur?: (event: React.FocusEvent<any>) => void;
100
- /**
101
- * Enables the customization or the override of the default MultiViewCalendar cell
102
- * ([see example]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-view)).
103
- */
104
- cell?: React.ComponentType<CalendarCellProps>;
105
- /**
106
- * Enables the customization or the override of the default week cell in the MultiViewCalendar
107
- * ([see example]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-week-column)).
108
- */
109
- weekCell?: React.ComponentType<CalendarWeekCellProps>;
110
- /**
111
- * Enables the customization or the override of the default header title in the MultiViewCalendar
112
- * ([see example]({% slug custom_rendering_multiviewcalendar %}#toc-titles-of-current-views)).
113
- */
114
- headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
115
- }
@@ -1,19 +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 enum Action {
9
- Left = 0,
10
- Right = 1,
11
- Up = 2,
12
- Down = 3,
13
- PrevView = 4,
14
- NextView = 5,
15
- FirstInView = 6,
16
- LastInView = 7,
17
- LowerView = 8,
18
- UpperView = 9
19
- }
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The type that defines the selection range of the Calendar.
7
- */
8
- export interface SelectionRange {
9
- /**
10
- * The beginning of the selection range.
11
- */
12
- start: Date | null;
13
- /**
14
- * The end of the selection range.
15
- */
16
- end: Date | null;
17
- }
18
- /**
19
- * @hidden
20
- */
21
- export declare const EMPTY_SELECTIONRANGE: SelectionRange;
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The literal type that defines which end of the selection range is active.
7
- */
8
- export type SelectionRangeEnd = 'start' | 'end' | null;