@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
package/utils.mjs CHANGED
@@ -6,100 +6,100 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { getDate as f, cloneDate as v } from "@progress/kendo-date-math";
9
- import { EMPTY_SELECTIONRANGE as F } from "./calendar/models/SelectionRange.mjs";
10
- function W(t) {
9
+ import { EMPTY_SELECTIONRANGE as C } from "./calendar/models/SelectionRange.mjs";
10
+ function S(t) {
11
11
  const n = (r, o, s, ...u) => o[s] === null ? null : (r ? t.isRequired : t)(o, s, ...u), e = n.bind(null, !1);
12
12
  return e.isRequired = n.bind(null, !0), e;
13
13
  }
14
- const d = (t, n, e) => n === void 0 || e === void 0 || n <= t && t <= e ? t : t < n ? n : e, k = new Date(1980, 0, 1), H = new Date(1900, 0, 1), L = new Date(2099, 11, 31), q = new Date(1980, 0, 1), G = new Date(1980, 0, 1, 23, 59, 59), O = (t, n) => {
14
+ const W = (t, n, e) => n === void 0 || e === void 0 || n <= t && t <= e ? t : t < n ? n : e, k = new Date(1980, 0, 1), H = new Date(1900, 0, 1), L = new Date(2099, 11, 31), d = new Date(1980, 0, 1), q = new Date(1980, 0, 1, 23, 59, 59), G = (t, n) => {
15
15
  const e = v(t);
16
16
  return e.setHours(n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()), e;
17
- }, X = () => f(/* @__PURE__ */ new Date()), j = (t, n, e) => !t || !(n && n > t || e && e < t), P = (t, n, e) => t === null || !(n && f(n) > f(t) || e && f(e) < f(t)), Y = (t, n) => {
18
- const { start: e, end: r } = n || F;
17
+ }, O = () => f(/* @__PURE__ */ new Date()), X = (t, n, e) => !t || !(n && n > t || e && e < t), j = (t, n, e) => t === null || !(n && f(n) > f(t) || e && f(e) < f(t)), P = (t, n) => {
18
+ const { start: e, end: r } = n || C;
19
19
  return !e || !r ? !1 : e < t && t < r;
20
- }, z = (t, n, e = 1) => {
20
+ }, Y = (t, n, e = 1) => {
21
21
  const r = [];
22
22
  for (let o = t; o < n; o = o + e)
23
23
  r.push(o);
24
24
  return r;
25
- }, B = (t, n, e) => n.getTime() <= t.getTime() && t.getTime() <= e.getTime(), J = (t, n) => t.slice(n).concat(t.slice(0, n)), K = (t, n, e) => t && (n && t < n ? v(n) : e && t > e ? v(e) : t), Q = (t) => (n, e = "", r = {}) => {
25
+ }, z = (t, n, e) => n.getTime() <= t.getTime() && t.getTime() <= e.getTime(), B = (t, n) => t.slice(n).concat(t.slice(0, n)), J = (t, n, e) => t && (n && t < n ? v(n) : e && t > e ? v(e) : t), K = (t) => (n, e = "", r = {}) => {
26
26
  const o = document.createElement(t);
27
27
  return o.className = e, Object.keys(r).forEach((s) => {
28
28
  o.style[s] = r[s];
29
29
  }), typeof n == "string" ? o.innerHTML = n || "" : (n || []).forEach((s) => s && o.appendChild(s)), o;
30
30
  };
31
- function U(t, n, e = {}) {
31
+ function Q(t, n, e = {}) {
32
32
  let r, o;
33
33
  e.maxWait;
34
34
  let s, u, l;
35
- const g = window, M = !1, h = !1, D = !n && n !== 0 && typeof g.requestAnimationFrame == "function";
35
+ const g = window, A = !1, D = !n && n !== 0 && typeof g.requestAnimationFrame == "function";
36
36
  if (typeof t != "function")
37
37
  throw new TypeError("Expected a function");
38
38
  n = +n || 0;
39
- function I(i) {
40
- const c = r, m = o;
41
- return r = o = void 0, s = t.apply(m, c), s;
39
+ function M(i) {
40
+ const c = r, a = o;
41
+ return r = o = void 0, s = t.apply(a, c), s;
42
42
  }
43
43
  function T(i, c) {
44
44
  return D ? (g.cancelAnimationFrame(u), g.requestAnimationFrame(i)) : setTimeout(i, c);
45
45
  }
46
- function R(i) {
46
+ function h(i) {
47
47
  if (D)
48
48
  return g.cancelAnimationFrame(i);
49
49
  clearTimeout(i);
50
50
  }
51
- function b(i) {
52
- return u = T(E, n), M ? I() : s;
51
+ function R(i) {
52
+ return u = T(E, n), s;
53
53
  }
54
- function N(i) {
54
+ function b(i) {
55
55
  const c = i - l;
56
56
  return n - c;
57
57
  }
58
- function p(i) {
58
+ function I(i) {
59
59
  const c = i - l;
60
- return l === void 0 || c >= n || c < 0 || h;
60
+ return l === void 0 || c >= n || c < 0 || A;
61
61
  }
62
62
  function E() {
63
63
  const i = Date.now();
64
- if (p(i))
65
- return A();
66
- u = T(E, N(i));
64
+ if (I(i))
65
+ return p();
66
+ u = T(E, b(i));
67
67
  }
68
- function A(i) {
69
- return u = void 0, r ? I() : (r = o = void 0, s);
68
+ function p(i) {
69
+ return u = void 0, r ? M() : (r = o = void 0, s);
70
+ }
71
+ function N() {
72
+ u !== void 0 && h(u), r = l = o = u = void 0;
70
73
  }
71
74
  function w() {
72
- u !== void 0 && R(u), r = l = o = u = void 0;
75
+ return u === void 0 ? s : p();
73
76
  }
74
77
  function y() {
75
- return u === void 0 ? s : A();
76
- }
77
- function C() {
78
78
  return u !== void 0;
79
79
  }
80
- function a(...i) {
81
- const c = Date.now(), m = p(c);
82
- return r = i, o = this, l = c, m && u === void 0 ? b() : (u === void 0 && (u = T(E, n)), s);
80
+ function m(...i) {
81
+ const c = Date.now(), a = I(c);
82
+ return r = i, o = this, l = c, a && u === void 0 ? R() : (u === void 0 && (u = T(E, n)), s);
83
83
  }
84
- return a.cancel = w, a.flush = y, a.pending = C, a;
84
+ return m.cancel = N, m.flush = w, m.pending = y, m;
85
85
  }
86
86
  export {
87
87
  L as MAX_DATE,
88
- G as MAX_TIME,
88
+ q as MAX_TIME,
89
89
  k as MIDNIGHT_DATE,
90
90
  H as MIN_DATE,
91
- q as MIN_TIME,
92
- K as dateInRange,
93
- U as debounce,
94
- Q as domContainerFactory,
95
- X as getToday,
96
- B as intersects,
97
- P as isInDateRange,
98
- j as isInRange,
99
- Y as isInSelectionRange,
100
- W as nullable,
101
- z as range,
102
- O as setTime,
103
- J as shiftWeekNames,
104
- d as viewInRange
91
+ d as MIN_TIME,
92
+ J as dateInRange,
93
+ Q as debounce,
94
+ K as domContainerFactory,
95
+ O as getToday,
96
+ z as intersects,
97
+ j as isInDateRange,
98
+ X as isInRange,
99
+ P as isInSelectionRange,
100
+ S as nullable,
101
+ Y as range,
102
+ G as setTime,
103
+ B as shiftWeekNames,
104
+ W as viewInRange
105
105
  };
@@ -0,0 +1,125 @@
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 PropTypes } from 'prop-types';
9
+ import { DateInputsClassStructure } from '@progress/kendo-react-common';
10
+ import { ScrollAction, PageAction } from './services/index.js';
11
+ import * as React from 'react';
12
+ /**
13
+ * @hidden
14
+ */
15
+ export interface ScrollActionArguments {
16
+ index: number;
17
+ target: HTMLDivElement | null;
18
+ scrollAction?: ScrollAction;
19
+ pageAction?: PageAction;
20
+ animationInProgress: boolean;
21
+ }
22
+ /**
23
+ * @hidden
24
+ */
25
+ export declare enum ScrollDirection {
26
+ Backward = 0,
27
+ Forward = 1
28
+ }
29
+ /**
30
+ * @hidden
31
+ */
32
+ export type Direction = 'horizontal' | 'vertical';
33
+ /**
34
+ * @hidden
35
+ */
36
+ export interface VirtualizationProps {
37
+ bottomOffset: number;
38
+ className?: string;
39
+ direction?: Direction;
40
+ itemHeight?: number;
41
+ itemWidth?: number;
42
+ maxScrollDifference?: number;
43
+ onMount?: any;
44
+ onScroll?: (event: React.SyntheticEvent) => void;
45
+ onScrollAction?: (args: ScrollActionArguments) => void;
46
+ scrollOffsetSize?: number;
47
+ scrollDuration?: number;
48
+ skip: number;
49
+ tabIndex?: number;
50
+ take: number;
51
+ topOffset: number;
52
+ total: number;
53
+ role?: string;
54
+ children?: React.ReactNode;
55
+ unstyled?: DateInputsClassStructure;
56
+ }
57
+ /**
58
+ * @hidden
59
+ */
60
+ export declare class Virtualization extends React.Component<VirtualizationProps, {}> {
61
+ static propTypes: {
62
+ bottomOffset: PropTypes.Validator<number>;
63
+ className: PropTypes.Requireable<string>;
64
+ direction: PropTypes.Requireable<string>;
65
+ forceScroll: PropTypes.Requireable<boolean>;
66
+ itemHeight: PropTypes.Requireable<number>;
67
+ itemWidth: PropTypes.Requireable<number>;
68
+ maxScrollDifference: PropTypes.Requireable<number>;
69
+ onScroll: PropTypes.Requireable<(...args: any[]) => any>;
70
+ onScrollAction: PropTypes.Requireable<(...args: any[]) => any>;
71
+ scrollDuration: PropTypes.Requireable<number>;
72
+ scrollOffsetSize: PropTypes.Requireable<number>;
73
+ skip: PropTypes.Validator<number>;
74
+ tabIndex: PropTypes.Requireable<number>;
75
+ take: PropTypes.Validator<number>;
76
+ topOffset: PropTypes.Validator<number>;
77
+ total: PropTypes.Validator<number>;
78
+ role: PropTypes.Requireable<string>;
79
+ };
80
+ static defaultProps: {
81
+ direction: Direction;
82
+ forceScroll: boolean;
83
+ scrollOffsetSize: number;
84
+ maxScrollDifference: number;
85
+ scrollDuration: number;
86
+ };
87
+ private cancelAnimation;
88
+ private rowHeightService;
89
+ private scrollerService;
90
+ private scrollContainer;
91
+ private scrollAction?;
92
+ private pageAction?;
93
+ private lastDirection;
94
+ private lastTotal;
95
+ private lastTake;
96
+ private animationInProgress;
97
+ private restrictScroll;
98
+ get element(): HTMLDivElement | null;
99
+ protected get containerOffsetSize(): number;
100
+ get containerScrollSize(): number;
101
+ get containerScrollPosition(): number;
102
+ protected get direction(): Direction;
103
+ protected get scrollOffsetSize(): number;
104
+ constructor(props: VirtualizationProps);
105
+ activeIndex(): number;
106
+ itemIndex(offset: number): number;
107
+ itemOffset(index: number): number;
108
+ isIndexVisible(index: number): boolean;
109
+ isListScrolled(index: number): boolean;
110
+ scrollTo: (value: number) => void;
111
+ scrollToIndex: (index: number) => void;
112
+ animateToIndex: (index: number) => void;
113
+ scrollToBottom: () => void;
114
+ componentDidMount(): void;
115
+ render(): React.JSX.Element;
116
+ protected scrollStep: (start: number, end: number) => number;
117
+ protected scrollRange: (indexOffset: number, direction: ScrollDirection) => any;
118
+ protected containerMaxScroll: () => number;
119
+ protected getContainerScrollDirection: (indexOffset: number) => ScrollDirection;
120
+ protected initServices: (props?: VirtualizationProps) => void;
121
+ protected getContainerProperty: (propertyName: 'offsetHeight' | 'offsetWidth' | 'scrollHeight' | 'scrollWidth' | 'scrollTop' | 'scrollLeft') => number;
122
+ private handleScroll;
123
+ private handleScrollAction;
124
+ private handlePageAction;
125
+ }
@@ -0,0 +1,56 @@
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 { RowHeightService } from '@progress/kendo-react-common';
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare class ScrollAction {
13
+ offset: number;
14
+ constructor(offset: number);
15
+ }
16
+ /**
17
+ * @hidden
18
+ */
19
+ export declare class PageAction {
20
+ skip: number;
21
+ constructor(skip: number);
22
+ }
23
+ /**
24
+ * @hidden
25
+ */
26
+ export type ScrollElement = {
27
+ offsetHeight: number;
28
+ offsetWidth: number;
29
+ scrollLeft: number;
30
+ scrollTop: number;
31
+ };
32
+ /**
33
+ * @hidden
34
+ */
35
+ export type Action = ScrollAction | PageAction;
36
+ /**
37
+ * @hidden
38
+ */
39
+ export declare class ScrollerService {
40
+ private onScrollAction;
41
+ private onPageAction;
42
+ private direction;
43
+ private firstLoaded;
44
+ private lastLoaded;
45
+ private lastScrollTop;
46
+ private take;
47
+ private total;
48
+ private rowHeightService;
49
+ private bottomOffset;
50
+ private topOffset;
51
+ constructor(onScrollAction: (action: ScrollAction) => void, onPageAction: (action: PageAction) => void);
52
+ create(rowHeightService: RowHeightService, skip: number, take: number, total: number, topOffset?: number, bottomOffset?: number, direction?: 'horizontal' | 'vertical'): void;
53
+ onScroll({ scrollLeft, scrollTop, offsetHeight, offsetWidth }: ScrollElement): void;
54
+ rowOffset(index: number): number;
55
+ private rowsForHeight;
56
+ }
@@ -0,0 +1,10 @@
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 { RowHeightService } from '@progress/kendo-react-common';
9
+ import { PageAction, ScrollAction, ScrollElement, ScrollerService } from './ScrollerService.js';
10
+ export { PageAction, ScrollElement, ScrollAction, RowHeightService, ScrollerService };