@progress/kendo-react-dateinputs 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059

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 (163) hide show
  1. package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
  2. package/dist/es/PopupSettings.js +1 -0
  3. package/dist/es/calendar/components/Calendar.d.ts +8 -8
  4. package/dist/es/calendar/components/Calendar.js +9 -7
  5. package/dist/es/calendar/components/CalendarCell.js +7 -3
  6. package/dist/es/calendar/components/CalendarHeaderTitle.js +7 -3
  7. package/dist/es/calendar/components/CalendarNavigationItem.js +7 -3
  8. package/dist/es/calendar/components/CalendarWeekCell.js +7 -3
  9. package/dist/es/calendar/components/Header.d.ts +4 -4
  10. package/dist/es/calendar/components/Header.js +7 -5
  11. package/dist/es/calendar/components/HorizontalViewList.d.ts +4 -4
  12. package/dist/es/calendar/components/HorizontalViewList.js +7 -5
  13. package/dist/es/calendar/components/MultiViewCalendar.d.ts +11 -11
  14. package/dist/es/calendar/components/MultiViewCalendar.js +12 -10
  15. package/dist/es/calendar/components/Navigation.d.ts +1 -1
  16. package/dist/es/calendar/components/Navigation.js +4 -2
  17. package/dist/es/calendar/components/TodayCommand.d.ts +3 -3
  18. package/dist/es/calendar/components/TodayCommand.js +6 -4
  19. package/dist/es/calendar/components/View.d.ts +7 -7
  20. package/dist/es/calendar/components/View.js +10 -8
  21. package/dist/es/calendar/components/ViewList.d.ts +6 -6
  22. package/dist/es/calendar/components/ViewList.js +9 -7
  23. package/dist/es/calendar/models/ActiveView.js +1 -0
  24. package/dist/es/calendar/models/CalendarSettings.js +1 -0
  25. package/dist/es/calendar/models/CellContext.js +1 -0
  26. package/dist/es/calendar/models/MultiViewCalendarMode.js +1 -0
  27. package/dist/es/calendar/models/MultiViewCalendarSettings.js +1 -0
  28. package/dist/es/calendar/models/SelectionRangeEnd.js +1 -0
  29. package/dist/es/calendar/models/ViewService.js +1 -0
  30. package/dist/es/dateinput/DateInput.d.ts +17 -17
  31. package/dist/es/dateinput/DateInput.js +23 -16
  32. package/dist/es/dateinput/models/DateInputSettings.js +1 -0
  33. package/dist/es/dateinput/models/format-placeholder.js +1 -0
  34. package/dist/es/dateinput/models/incremental-steps.js +1 -0
  35. package/dist/es/dateinput/models/kendo-date.d.ts +2 -2
  36. package/dist/es/dateinput/models/kendo-date.js +2 -2
  37. package/dist/es/dateinput/models/selection.js +1 -0
  38. package/dist/es/dateinput/utils.d.ts +1 -1
  39. package/dist/es/datepicker/DatePicker.d.ts +21 -21
  40. package/dist/es/datepicker/DatePicker.js +24 -20
  41. package/dist/es/datepicker/models/DatePickerSettings.js +1 -0
  42. package/dist/es/datepicker/models/index.js +1 -0
  43. package/dist/es/daterangepicker/DateRangePicker.d.ts +11 -11
  44. package/dist/es/daterangepicker/DateRangePicker.js +16 -14
  45. package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +1 -0
  46. package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +1 -0
  47. package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +1 -0
  48. package/dist/es/daterangepicker/models/DateRangePickerSettings.js +1 -0
  49. package/dist/es/daterangepicker/models/index.js +1 -0
  50. package/dist/es/datetimepicker/DateTimePicker.d.ts +16 -16
  51. package/dist/es/datetimepicker/DateTimePicker.js +30 -15
  52. package/dist/es/datetimepicker/DateTimeSelector.d.ts +6 -6
  53. package/dist/es/datetimepicker/DateTimeSelector.js +12 -7
  54. package/dist/es/datetimepicker/models/DateTimePickerSettings.js +1 -0
  55. package/dist/es/datetimepicker/models/index.js +1 -0
  56. package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
  57. package/dist/es/messages/index.d.ts +21 -21
  58. package/dist/es/package-metadata.js +1 -1
  59. package/dist/es/timepicker/TimeList.d.ts +5 -5
  60. package/dist/es/timepicker/TimeList.js +8 -6
  61. package/dist/es/timepicker/TimePart.d.ts +7 -7
  62. package/dist/es/timepicker/TimePart.js +10 -8
  63. package/dist/es/timepicker/TimePicker.d.ts +19 -19
  64. package/dist/es/timepicker/TimePicker.js +23 -19
  65. package/dist/es/timepicker/TimeSelector.d.ts +4 -4
  66. package/dist/es/timepicker/TimeSelector.js +7 -5
  67. package/dist/es/timepicker/models/IncrementalSteps.js +1 -0
  68. package/dist/es/timepicker/models/ListItem.js +1 -0
  69. package/dist/es/timepicker/models/ListService.js +1 -0
  70. package/dist/es/timepicker/models/ListServiceSettings.js +1 -0
  71. package/dist/es/timepicker/models/TimePickerSettings.js +1 -0
  72. package/dist/es/timepicker/utils.d.ts +4 -4
  73. package/dist/es/utils.d.ts +1 -1
  74. package/dist/es/utils.js +6 -1
  75. package/dist/es/virtualization/Virtualization.d.ts +7 -7
  76. package/dist/es/virtualization/Virtualization.js +9 -7
  77. package/dist/es/virtualization/services/RowHeightService.js +6 -1
  78. package/dist/npm/calendar/components/Calendar.d.ts +8 -8
  79. package/dist/npm/calendar/components/Calendar.js +10 -7
  80. package/dist/npm/calendar/components/CalendarCell.js +8 -3
  81. package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
  82. package/dist/npm/calendar/components/CalendarNavigationItem.js +8 -3
  83. package/dist/npm/calendar/components/CalendarWeekCell.js +8 -3
  84. package/dist/npm/calendar/components/Header.d.ts +4 -4
  85. package/dist/npm/calendar/components/Header.js +8 -5
  86. package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
  87. package/dist/npm/calendar/components/HorizontalViewList.js +8 -5
  88. package/dist/npm/calendar/components/MultiViewCalendar.d.ts +11 -11
  89. package/dist/npm/calendar/components/MultiViewCalendar.js +13 -10
  90. package/dist/npm/calendar/components/Navigation.d.ts +1 -1
  91. package/dist/npm/calendar/components/Navigation.js +5 -2
  92. package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
  93. package/dist/npm/calendar/components/TodayCommand.js +7 -4
  94. package/dist/npm/calendar/components/View.d.ts +7 -7
  95. package/dist/npm/calendar/components/View.js +11 -8
  96. package/dist/npm/calendar/components/ViewList.d.ts +6 -6
  97. package/dist/npm/calendar/components/ViewList.js +10 -7
  98. package/dist/npm/calendar/models/CalendarViewEnum.js +1 -0
  99. package/dist/npm/calendar/models/NavigationAction.js +1 -0
  100. package/dist/npm/calendar/models/SelectionRange.js +1 -0
  101. package/dist/npm/calendar/models/index.js +4 -3
  102. package/dist/npm/calendar/services/BusViewService.js +2 -1
  103. package/dist/npm/calendar/services/CenturyViewService.js +2 -1
  104. package/dist/npm/calendar/services/DOMService.js +1 -0
  105. package/dist/npm/calendar/services/DecadeViewService.js +2 -1
  106. package/dist/npm/calendar/services/MonthViewService.js +2 -1
  107. package/dist/npm/calendar/services/NavigationService.js +1 -0
  108. package/dist/npm/calendar/services/ScrollSyncService.js +1 -0
  109. package/dist/npm/calendar/services/WeekNamesService.js +1 -0
  110. package/dist/npm/calendar/services/YearViewService.js +2 -1
  111. package/dist/npm/calendar/services/index.js +10 -9
  112. package/dist/npm/common/PickerWrap.js +1 -0
  113. package/dist/npm/dateinput/DateInput.d.ts +17 -17
  114. package/dist/npm/dateinput/DateInput.js +24 -16
  115. package/dist/npm/dateinput/models/index.js +3 -2
  116. package/dist/npm/dateinput/models/kendo-date.d.ts +2 -2
  117. package/dist/npm/dateinput/models/kendo-date.js +3 -2
  118. package/dist/npm/dateinput/models/mask.js +1 -0
  119. package/dist/npm/dateinput/utils.d.ts +1 -1
  120. package/dist/npm/dateinput/utils.js +9 -4
  121. package/dist/npm/datepicker/DatePicker.d.ts +21 -21
  122. package/dist/npm/datepicker/DatePicker.js +25 -20
  123. package/dist/npm/datepicker/ToggleButton.js +1 -0
  124. package/dist/npm/daterangepicker/DateRangePicker.d.ts +11 -11
  125. package/dist/npm/daterangepicker/DateRangePicker.js +17 -14
  126. package/dist/npm/datetimepicker/DateTimePicker.d.ts +16 -16
  127. package/dist/npm/datetimepicker/DateTimePicker.js +31 -15
  128. package/dist/npm/datetimepicker/DateTimeSelector.d.ts +6 -6
  129. package/dist/npm/datetimepicker/DateTimeSelector.js +13 -7
  130. package/dist/npm/defaults.js +1 -0
  131. package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
  132. package/dist/npm/hooks/usePickerFloatingLabel.js +5 -2
  133. package/dist/npm/main.js +22 -21
  134. package/dist/npm/messages/index.d.ts +21 -21
  135. package/dist/npm/messages/index.js +2 -1
  136. package/dist/npm/package-metadata.js +2 -1
  137. package/dist/npm/timepicker/TimeList.d.ts +5 -5
  138. package/dist/npm/timepicker/TimeList.js +10 -7
  139. package/dist/npm/timepicker/TimePart.d.ts +7 -7
  140. package/dist/npm/timepicker/TimePart.js +11 -8
  141. package/dist/npm/timepicker/TimePicker.d.ts +19 -19
  142. package/dist/npm/timepicker/TimePicker.js +24 -19
  143. package/dist/npm/timepicker/TimeSelector.d.ts +4 -4
  144. package/dist/npm/timepicker/TimeSelector.js +8 -5
  145. package/dist/npm/timepicker/models/TimePart.js +1 -0
  146. package/dist/npm/timepicker/models/index.js +2 -1
  147. package/dist/npm/timepicker/services/DOMService.js +1 -0
  148. package/dist/npm/timepicker/services/DayPeriodService.js +1 -0
  149. package/dist/npm/timepicker/services/HoursService.js +1 -0
  150. package/dist/npm/timepicker/services/MinutesService.js +1 -0
  151. package/dist/npm/timepicker/services/SecondsService.js +1 -0
  152. package/dist/npm/timepicker/services/index.js +6 -5
  153. package/dist/npm/timepicker/utils.d.ts +4 -4
  154. package/dist/npm/timepicker/utils.js +19 -9
  155. package/dist/npm/utils.d.ts +1 -1
  156. package/dist/npm/utils.js +33 -14
  157. package/dist/npm/virtualization/Virtualization.d.ts +7 -7
  158. package/dist/npm/virtualization/Virtualization.js +11 -8
  159. package/dist/npm/virtualization/services/RowHeightService.js +7 -1
  160. package/dist/npm/virtualization/services/ScrollerService.js +1 -0
  161. package/dist/npm/virtualization/services/index.js +5 -4
  162. package/dist/systemjs/kendo-react-dateinputs.js +1 -1
  163. package/package.json +12 -12
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecondsService = exports.MinutesService = exports.HoursService = exports.DOMService = exports.DayPeriodService = void 0;
3
4
  var DayPeriodService_1 = require("./DayPeriodService");
4
- exports.DayPeriodService = DayPeriodService_1.DayPeriodService;
5
+ Object.defineProperty(exports, "DayPeriodService", { enumerable: true, get: function () { return DayPeriodService_1.DayPeriodService; } });
5
6
  var DOMService_1 = require("./DOMService");
6
- exports.DOMService = DOMService_1.DOMService;
7
+ Object.defineProperty(exports, "DOMService", { enumerable: true, get: function () { return DOMService_1.DOMService; } });
7
8
  var HoursService_1 = require("./HoursService");
8
- exports.HoursService = HoursService_1.HoursService;
9
+ Object.defineProperty(exports, "HoursService", { enumerable: true, get: function () { return HoursService_1.HoursService; } });
9
10
  var MinutesService_1 = require("./MinutesService");
10
- exports.MinutesService = MinutesService_1.MinutesService;
11
+ Object.defineProperty(exports, "MinutesService", { enumerable: true, get: function () { return MinutesService_1.MinutesService; } });
11
12
  var SecondsService_1 = require("./SecondsService");
12
- exports.SecondsService = SecondsService_1.SecondsService;
13
+ Object.defineProperty(exports, "SecondsService", { enumerable: true, get: function () { return SecondsService_1.SecondsService; } });
@@ -41,16 +41,16 @@ export declare const timeInRange: (candidate: Date, min: Date, max: Date) => Dat
41
41
  /**
42
42
  * @hidden
43
43
  */
44
- export declare const isInTimeRange: (candidate: Date, min?: Date, max?: Date) => boolean;
44
+ export declare const isInTimeRange: (candidate: Date | null, min?: Date, max?: Date) => boolean;
45
45
  /**
46
46
  * @hidden
47
47
  */
48
- export declare const isInRange: (candidate: Date, min: Date, max: Date) => boolean;
48
+ export declare const isInRange: (candidate: Date | null, min: Date, max: Date) => boolean;
49
49
  /**
50
50
  * @hidden
51
51
  */
52
- export declare const isSmallerThanMin: (val: Date, min: Date) => boolean;
52
+ export declare const isSmallerThanMin: (val: Date | null, min: Date | null) => boolean;
53
53
  /**
54
54
  * @hidden
55
55
  */
56
- export declare const isBiggerThanMax: (val: Date, max: Date) => boolean;
56
+ export declare const isBiggerThanMax: (val: Date | null, max: Date | null) => boolean;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isBiggerThanMax = exports.isSmallerThanMin = exports.isInRange = exports.isInTimeRange = exports.timeInRange = exports.range = exports.getNow = exports.setSeconds = exports.setMinutes = exports.setHours = exports.snapTime = exports.valueMerger = exports.generateSnappers = exports.generateGetters = void 0;
3
4
  var kendo_date_math_1 = require("@progress/kendo-date-math");
4
5
  var TimePart_1 = require("./models/TimePart");
5
6
  var utils_1 = require("../utils");
@@ -47,18 +48,20 @@ exports.generateSnappers = snappersFactory(defaultGetters);
47
48
  /**
48
49
  * @hidden
49
50
  */
50
- exports.valueMerger = function (getters) { return function (origin, candidate) {
51
+ var valueMerger = function (getters) { return function (origin, candidate) {
51
52
  origin.setHours.apply(origin, getters.map(function (g) { return g(origin, candidate); }));
52
53
  return origin;
53
54
  }; };
55
+ exports.valueMerger = valueMerger;
54
56
  /**
55
57
  * @hidden
56
58
  */
57
- exports.snapTime = function (snappers) { return function (candidate) {
59
+ var snapTime = function (snappers) { return function (candidate) {
58
60
  var date = kendo_date_math_1.cloneDate(candidate);
59
61
  date.setHours.apply(date, snappers.map(function (s) { return s(date); }));
60
62
  return date;
61
63
  }; };
64
+ exports.snapTime = snapTime;
62
65
  /**
63
66
  * @hidden
64
67
  */
@@ -74,11 +77,12 @@ exports.setSeconds = setter('setSeconds');
74
77
  /**
75
78
  * @hidden
76
79
  */
77
- exports.getNow = function () { return new Date(); };
80
+ var getNow = function () { return new Date(); };
81
+ exports.getNow = getNow;
78
82
  /**
79
83
  * @hidden
80
84
  */
81
- exports.range = function (start, end, step) {
85
+ var range = function (start, end, step) {
82
86
  if (step === void 0) { step = 1; }
83
87
  var result = [];
84
88
  for (var i = start; i < end; i = i + step) {
@@ -86,6 +90,7 @@ exports.range = function (start, end, step) {
86
90
  }
87
91
  return result;
88
92
  };
93
+ exports.range = range;
89
94
  var normalizeTimes = function (candidate, min, max) { return ({
90
95
  candidateValue: utils_1.setTime(utils_1.MIDNIGHT_DATE, candidate),
91
96
  maxValue: kendo_date_math_1.addDays(utils_1.setTime(utils_1.MIDNIGHT_DATE, max), min.getHours() < max.getHours() ? 0 : 1),
@@ -94,7 +99,7 @@ var normalizeTimes = function (candidate, min, max) { return ({
94
99
  /**
95
100
  * @hidden
96
101
  */
97
- exports.timeInRange = function (candidate, min, max) {
102
+ var timeInRange = function (candidate, min, max) {
98
103
  if (!candidate || !min || !max) {
99
104
  return candidate;
100
105
  }
@@ -107,30 +112,33 @@ exports.timeInRange = function (candidate, min, max) {
107
112
  }
108
113
  return candidate;
109
114
  };
115
+ exports.timeInRange = timeInRange;
110
116
  /**
111
117
  * @hidden
112
118
  */
113
- exports.isInTimeRange = function (candidate, min, max) {
119
+ var isInTimeRange = function (candidate, min, max) {
114
120
  if (!candidate || !min || !max) {
115
121
  return true;
116
122
  }
117
123
  var _a = normalizeTimes(candidate, min, max), candidateValue = _a.candidateValue, minValue = _a.minValue, maxValue = _a.maxValue;
118
124
  return minValue <= candidateValue && candidateValue <= maxValue;
119
125
  };
126
+ exports.isInTimeRange = isInTimeRange;
120
127
  /**
121
128
  * @hidden
122
129
  */
123
- exports.isInRange = function (candidate, min, max) {
130
+ var isInRange = function (candidate, min, max) {
124
131
  if (candidate === null) {
125
132
  return true;
126
133
  }
127
134
  var _a = normalizeTimes(candidate, min, max), candidateValue = _a.candidateValue, minValue = _a.minValue, maxValue = _a.maxValue;
128
135
  return minValue <= candidateValue && candidateValue <= maxValue;
129
136
  };
137
+ exports.isInRange = isInRange;
130
138
  /**
131
139
  * @hidden
132
140
  */
133
- exports.isSmallerThanMin = function (val, min) {
141
+ var isSmallerThanMin = function (val, min) {
134
142
  if (val === null || min === null) {
135
143
  return false;
136
144
  }
@@ -138,10 +146,11 @@ exports.isSmallerThanMin = function (val, min) {
138
146
  var normalizedMin = utils_1.setTime(utils_1.MIDNIGHT_DATE, min);
139
147
  return normalizedValue.getTime() < normalizedMin.getHours();
140
148
  };
149
+ exports.isSmallerThanMin = isSmallerThanMin;
141
150
  /**
142
151
  * @hidden
143
152
  */
144
- exports.isBiggerThanMax = function (val, max) {
153
+ var isBiggerThanMax = function (val, max) {
145
154
  if (val === null || max === null) {
146
155
  return false;
147
156
  }
@@ -149,3 +158,4 @@ exports.isBiggerThanMax = function (val, max) {
149
158
  var normalizedMax = utils_1.setTime(utils_1.MIDNIGHT_DATE, max);
150
159
  return normalizedMax.getTime() < normalizedValue.getHours();
151
160
  };
161
+ exports.isBiggerThanMax = isBiggerThanMax;
@@ -51,7 +51,7 @@ export declare const isInRange: (candidate: Date, min: Date, max: Date) => boole
51
51
  /**
52
52
  * @hidden
53
53
  */
54
- export declare const isInDateRange: (candidate: Date, min: Date, max: Date) => boolean;
54
+ export declare const isInDateRange: (candidate: Date | null, min: Date, max: Date) => boolean;
55
55
  /**
56
56
  * @hidden
57
57
  */
package/dist/npm/utils.js CHANGED
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
3
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
4
+ to[j] = from[i];
5
+ return to;
6
+ };
2
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.domContainerFactory = exports.dateInRange = exports.shiftWeekNames = exports.intersects = exports.range = exports.isInSelectionRange = exports.isInDateRange = exports.isInRange = exports.getToday = exports.setTime = exports.isValidRange = exports.MAX_TIME = exports.MIN_TIME = exports.MAX_DATE = exports.MIN_DATE = exports.MIDNIGHT_DATE = exports.viewInRange = exports.nullable = exports.isEqualRange = void 0;
3
9
  var kendo_date_math_1 = require("@progress/kendo-date-math");
4
10
  var kendo_date_math_2 = require("@progress/kendo-date-math");
5
11
  var SelectionRange_1 = require("./calendar/models/SelectionRange");
6
12
  /**
7
13
  * @hidden
8
14
  */
9
- exports.isEqualRange = function (initial, updated) {
15
+ var isEqualRange = function (initial, updated) {
10
16
  var _a = initial || SelectionRange_1.EMPTY_SELECTIONRANGE, initialStart = _a.start, initialEnd = _a.end;
11
17
  var _b = updated || SelectionRange_1.EMPTY_SELECTIONRANGE, updatedStart = _b.start, updatedEnd = _b.end;
12
18
  if (initialStart === null || initialEnd === null || updatedStart === null || updatedEnd === null) {
@@ -14,6 +20,7 @@ exports.isEqualRange = function (initial, updated) {
14
20
  }
15
21
  return kendo_date_math_1.isEqual(initialStart, updatedStart) && kendo_date_math_1.isEqual(initialEnd, updatedEnd);
16
22
  };
23
+ exports.isEqualRange = isEqualRange;
17
24
  // Polyfill for PropTypes.null
18
25
  /**
19
26
  * @hidden
@@ -28,7 +35,7 @@ function nullable(subRequirement) {
28
35
  return null;
29
36
  }
30
37
  var sub = required ? subRequirement.isRequired : subRequirement;
31
- return sub.apply(void 0, [props, key].concat(rest));
38
+ return sub.apply(void 0, __spreadArray([props, key], rest));
32
39
  };
33
40
  var fn = check.bind(null, false);
34
41
  fn.isRequired = check.bind(null, true);
@@ -38,7 +45,7 @@ exports.nullable = nullable;
38
45
  /**
39
46
  * @hidden
40
47
  */
41
- exports.viewInRange = function (candidate, min, max) {
48
+ var viewInRange = function (candidate, min, max) {
42
49
  if (min === undefined || max === undefined) {
43
50
  return candidate;
44
51
  }
@@ -48,6 +55,7 @@ exports.viewInRange = function (candidate, min, max) {
48
55
  ? min
49
56
  : max;
50
57
  };
58
+ exports.viewInRange = viewInRange;
51
59
  /**
52
60
  * @hidden
53
61
  */
@@ -72,43 +80,49 @@ var isSet = function (value) { return value !== null && value !== undefined; };
72
80
  /**
73
81
  * @hidden
74
82
  */
75
- exports.isValidRange = function (min, max) { return (!isSet(min) || !isSet(max) || min <= max); };
83
+ var isValidRange = function (min, max) { return (!isSet(min) || !isSet(max) || min <= max); };
84
+ exports.isValidRange = isValidRange;
76
85
  /**
77
86
  * @hidden
78
87
  */
79
- exports.setTime = function (origin, candidate) {
88
+ var setTime = function (origin, candidate) {
80
89
  var date = kendo_date_math_1.cloneDate(origin);
81
90
  date.setHours(candidate.getHours(), candidate.getMinutes(), candidate.getSeconds(), candidate.getMilliseconds());
82
91
  return date;
83
92
  };
93
+ exports.setTime = setTime;
84
94
  /**
85
95
  * @hidden
86
96
  */
87
- exports.getToday = function () { return kendo_date_math_2.getDate(new Date()); };
97
+ var getToday = function () { return kendo_date_math_2.getDate(new Date()); };
98
+ exports.getToday = getToday;
88
99
  /**
89
100
  * @hidden
90
101
  */
91
- exports.isInRange = function (candidate, min, max) { return (!candidate || !((min && min > candidate) || (max && max < candidate))); };
102
+ var isInRange = function (candidate, min, max) { return (!candidate || !((min && min > candidate) || (max && max < candidate))); };
103
+ exports.isInRange = isInRange;
92
104
  /**
93
105
  * @hidden
94
106
  */
95
- exports.isInDateRange = function (candidate, min, max) { return (candidate === null
107
+ var isInDateRange = function (candidate, min, max) { return (candidate === null
96
108
  || !((min && kendo_date_math_2.getDate(min) > kendo_date_math_2.getDate(candidate))
97
109
  || (max && kendo_date_math_2.getDate(max) < kendo_date_math_2.getDate(candidate)))); };
110
+ exports.isInDateRange = isInDateRange;
98
111
  /**
99
112
  * @hidden
100
113
  */
101
- exports.isInSelectionRange = function (value, selectionRange) {
114
+ var isInSelectionRange = function (value, selectionRange) {
102
115
  var _a = selectionRange || SelectionRange_1.EMPTY_SELECTIONRANGE, start = _a.start, end = _a.end;
103
116
  if (!start || !end) {
104
117
  return false;
105
118
  }
106
119
  return start < value && value < end;
107
120
  };
121
+ exports.isInSelectionRange = isInSelectionRange;
108
122
  /**
109
123
  * @hidden
110
124
  */
111
- exports.range = function (start, end, step) {
125
+ var range = function (start, end, step) {
112
126
  if (step === void 0) { step = 1; }
113
127
  var result = [];
114
128
  for (var i = start; i < end; i = i + step) {
@@ -116,20 +130,23 @@ exports.range = function (start, end, step) {
116
130
  }
117
131
  return result;
118
132
  };
133
+ exports.range = range;
119
134
  /**
120
135
  * @hidden
121
136
  */
122
- exports.intersects = function (date, min, max) {
137
+ var intersects = function (date, min, max) {
123
138
  return min.getTime() <= date.getTime() && date.getTime() <= max.getTime();
124
139
  };
140
+ exports.intersects = intersects;
125
141
  /**
126
142
  * @hidden
127
143
  */
128
- exports.shiftWeekNames = function (names, offset) { return (names.slice(offset).concat(names.slice(0, offset))); };
144
+ var shiftWeekNames = function (names, offset) { return (names.slice(offset).concat(names.slice(0, offset))); };
145
+ exports.shiftWeekNames = shiftWeekNames;
129
146
  /**
130
147
  * @hidden
131
148
  */
132
- exports.dateInRange = function (candidate, min, max) {
149
+ var dateInRange = function (candidate, min, max) {
133
150
  if (!candidate) {
134
151
  return candidate;
135
152
  }
@@ -141,10 +158,11 @@ exports.dateInRange = function (candidate, min, max) {
141
158
  }
142
159
  return candidate;
143
160
  };
161
+ exports.dateInRange = dateInRange;
144
162
  /**
145
163
  * @hidden
146
164
  */
147
- exports.domContainerFactory = function (type) { return function (children, classes, styles) {
165
+ var domContainerFactory = function (type) { return function (children, classes, styles) {
148
166
  if (classes === void 0) { classes = ''; }
149
167
  if (styles === void 0) { styles = {}; }
150
168
  var container = document.createElement(type);
@@ -158,3 +176,4 @@ exports.domContainerFactory = function (type) { return function (children, class
158
176
  }
159
177
  return container;
160
178
  }; };
179
+ exports.domContainerFactory = domContainerFactory;
@@ -68,7 +68,7 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
68
68
  role: PropTypes.Requireable<string>;
69
69
  };
70
70
  static defaultProps: {
71
- direction: "horizontal" | "vertical";
71
+ direction: Direction;
72
72
  forceScroll: boolean;
73
73
  scrollOffsetSize: number;
74
74
  maxScrollDifference: number;
@@ -85,12 +85,12 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
85
85
  private lastTake;
86
86
  private animationInProgress;
87
87
  private scrollToIndexTimeout;
88
- readonly element: HTMLDivElement | null;
89
- protected readonly containerOffsetSize: number;
90
- readonly containerScrollSize: number;
91
- readonly containerScrollPosition: number;
92
- protected readonly direction: Direction;
93
- protected readonly scrollOffsetSize: number;
88
+ get element(): HTMLDivElement | null;
89
+ protected get containerOffsetSize(): number;
90
+ get containerScrollSize(): number;
91
+ get containerScrollPosition(): number;
92
+ protected get direction(): Direction;
93
+ protected get scrollOffsetSize(): number;
94
94
  constructor(props: VirtualizationProps);
95
95
  activeIndex(): number;
96
96
  itemIndex(offset: number): number;
@@ -3,17 +3,20 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
17
  var _a, _b, _c;
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.Virtualization = exports.ScrollDirection = void 0;
17
20
  var React = require("react");
18
21
  var PropTypes = require("prop-types");
19
22
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -179,35 +182,35 @@ var Virtualization = /** @class */ (function (_super) {
179
182
  get: function () {
180
183
  return this.scrollContainer;
181
184
  },
182
- enumerable: true,
185
+ enumerable: false,
183
186
  configurable: true
184
187
  });
185
188
  Object.defineProperty(Virtualization.prototype, "containerOffsetSize", {
186
189
  get: function () {
187
190
  return this.getContainerProperty(this.direction === 'vertical' ? 'offsetHeight' : 'offsetWidth');
188
191
  },
189
- enumerable: true,
192
+ enumerable: false,
190
193
  configurable: true
191
194
  });
192
195
  Object.defineProperty(Virtualization.prototype, "containerScrollSize", {
193
196
  get: function () {
194
197
  return this.getContainerProperty(this.direction === 'vertical' ? 'scrollHeight' : 'scrollWidth');
195
198
  },
196
- enumerable: true,
199
+ enumerable: false,
197
200
  configurable: true
198
201
  });
199
202
  Object.defineProperty(Virtualization.prototype, "containerScrollPosition", {
200
203
  get: function () {
201
204
  return this.getContainerProperty(this.direction === 'vertical' ? 'scrollTop' : 'scrollLeft');
202
205
  },
203
- enumerable: true,
206
+ enumerable: false,
204
207
  configurable: true
205
208
  });
206
209
  Object.defineProperty(Virtualization.prototype, "direction", {
207
210
  get: function () {
208
211
  return this.props.direction !== undefined ? this.props.direction : Virtualization.defaultProps.direction;
209
212
  },
210
- enumerable: true,
213
+ enumerable: false,
211
214
  configurable: true
212
215
  });
213
216
  Object.defineProperty(Virtualization.prototype, "scrollOffsetSize", {
@@ -215,7 +218,7 @@ var Virtualization = /** @class */ (function (_super) {
215
218
  return this.props.scrollOffsetSize !== undefined
216
219
  ? this.props.scrollOffsetSize : Virtualization.defaultProps.scrollOffsetSize;
217
220
  },
218
- enumerable: true,
221
+ enumerable: false,
219
222
  configurable: true
220
223
  });
221
224
  Virtualization.prototype.activeIndex = function () {
@@ -1,9 +1,15 @@
1
1
  "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
3
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
4
+ to[j] = from[i];
5
+ return to;
6
+ };
2
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.RowHeightService = void 0;
3
9
  /**
4
10
  * @hidden
5
11
  */
6
- var update = function (arr, idx, value) { return (arr.slice(0, idx + 1).concat((arr.slice(idx + 1).map(function (x) { return x + value; })))); };
12
+ var update = function (arr, idx, value) { return (__spreadArray(__spreadArray([], arr.slice(0, idx + 1)), (arr.slice(idx + 1).map(function (x) { return x + value; })))); };
7
13
  /**
8
14
  * @hidden
9
15
  */
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScrollerService = exports.PageAction = exports.ScrollAction = void 0;
3
4
  var normalize = function (x) { return Math.max(x, 0); };
4
5
  /**
5
6
  * @hidden
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScrollerService = exports.ScrollAction = exports.RowHeightService = exports.PageAction = void 0;
3
4
  var RowHeightService_1 = require("./RowHeightService");
4
- exports.RowHeightService = RowHeightService_1.RowHeightService;
5
+ Object.defineProperty(exports, "RowHeightService", { enumerable: true, get: function () { return RowHeightService_1.RowHeightService; } });
5
6
  var ScrollerService_1 = require("./ScrollerService");
6
- exports.PageAction = ScrollerService_1.PageAction;
7
- exports.ScrollAction = ScrollerService_1.ScrollAction;
8
- exports.ScrollerService = ScrollerService_1.ScrollerService;
7
+ Object.defineProperty(exports, "PageAction", { enumerable: true, get: function () { return ScrollerService_1.PageAction; } });
8
+ Object.defineProperty(exports, "ScrollAction", { enumerable: true, get: function () { return ScrollerService_1.ScrollAction; } });
9
+ Object.defineProperty(exports, "ScrollerService", { enumerable: true, get: function () { return ScrollerService_1.ScrollerService; } });