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

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 (182) 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 +10 -10
  4. package/dist/es/calendar/components/Calendar.js +26 -12
  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 +5 -4
  10. package/dist/es/calendar/components/Header.js +8 -6
  11. package/dist/es/calendar/components/HorizontalViewList.d.ts +4 -4
  12. package/dist/es/calendar/components/HorizontalViewList.js +8 -5
  13. package/dist/es/calendar/components/MultiViewCalendar.d.ts +13 -13
  14. package/dist/es/calendar/components/MultiViewCalendar.js +24 -15
  15. package/dist/es/calendar/components/Navigation.d.ts +2 -2
  16. package/dist/es/calendar/components/Navigation.js +13 -6
  17. package/dist/es/calendar/components/TodayCommand.d.ts +3 -3
  18. package/dist/es/calendar/components/TodayCommand.js +10 -6
  19. package/dist/es/calendar/components/View.d.ts +11 -11
  20. package/dist/es/calendar/components/View.js +17 -13
  21. package/dist/es/calendar/components/ViewList.d.ts +9 -9
  22. package/dist/es/calendar/components/ViewList.js +19 -9
  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/calendar/services/BusViewService.js +1 -1
  31. package/dist/es/calendar/services/CenturyViewService.js +2 -2
  32. package/dist/es/calendar/services/DOMService.js +24 -6
  33. package/dist/es/calendar/services/DecadeViewService.js +2 -2
  34. package/dist/es/calendar/services/MonthViewService.js +2 -2
  35. package/dist/es/calendar/services/NavigationService.js +1 -1
  36. package/dist/es/calendar/services/ScrollSyncService.js +5 -1
  37. package/dist/es/calendar/services/YearViewService.js +2 -2
  38. package/dist/es/calendar/utils/ScrollSync.d.ts +3 -3
  39. package/dist/es/calendar/utils/ScrollSync.js +2 -0
  40. package/dist/es/dateinput/DateInput.d.ts +24 -20
  41. package/dist/es/dateinput/DateInput.js +32 -19
  42. package/dist/es/dateinput/models/DateInputSettings.js +1 -0
  43. package/dist/es/dateinput/models/format-placeholder.js +1 -0
  44. package/dist/es/dateinput/models/incremental-steps.js +1 -0
  45. package/dist/es/dateinput/models/kendo-date.d.ts +2 -2
  46. package/dist/es/dateinput/models/kendo-date.js +3 -3
  47. package/dist/es/dateinput/models/mask.js +1 -0
  48. package/dist/es/dateinput/models/selection.js +1 -0
  49. package/dist/es/dateinput/utils.d.ts +2 -2
  50. package/dist/es/datepicker/DatePicker.d.ts +25 -25
  51. package/dist/es/datepicker/DatePicker.js +28 -23
  52. package/dist/es/datepicker/models/DatePickerSettings.js +1 -0
  53. package/dist/es/datepicker/models/index.js +1 -0
  54. package/dist/es/daterangepicker/DateRangePicker.d.ts +16 -14
  55. package/dist/es/daterangepicker/DateRangePicker.js +16 -14
  56. package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +1 -0
  57. package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +1 -0
  58. package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +1 -0
  59. package/dist/es/daterangepicker/models/DateRangePickerSettings.js +1 -0
  60. package/dist/es/daterangepicker/models/index.js +1 -0
  61. package/dist/es/datetimepicker/DateTimePicker.d.ts +19 -19
  62. package/dist/es/datetimepicker/DateTimePicker.js +33 -18
  63. package/dist/es/datetimepicker/DateTimeSelector.d.ts +7 -7
  64. package/dist/es/datetimepicker/DateTimeSelector.js +17 -7
  65. package/dist/es/datetimepicker/models/DateTimePickerSettings.js +1 -0
  66. package/dist/es/datetimepicker/models/index.js +1 -0
  67. package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
  68. package/dist/es/messages/index.d.ts +21 -21
  69. package/dist/es/package-metadata.js +1 -1
  70. package/dist/es/timepicker/TimeList.d.ts +8 -8
  71. package/dist/es/timepicker/TimeList.js +33 -13
  72. package/dist/es/timepicker/TimePart.d.ts +11 -11
  73. package/dist/es/timepicker/TimePart.js +14 -9
  74. package/dist/es/timepicker/TimePicker.d.ts +23 -23
  75. package/dist/es/timepicker/TimePicker.js +27 -22
  76. package/dist/es/timepicker/TimeSelector.d.ts +6 -6
  77. package/dist/es/timepicker/TimeSelector.js +11 -5
  78. package/dist/es/timepicker/models/IncrementalSteps.js +1 -0
  79. package/dist/es/timepicker/models/ListItem.js +1 -0
  80. package/dist/es/timepicker/models/ListService.js +1 -0
  81. package/dist/es/timepicker/models/ListServiceSettings.js +1 -0
  82. package/dist/es/timepicker/models/TimePickerSettings.js +1 -0
  83. package/dist/es/timepicker/services/DOMService.js +2 -0
  84. package/dist/es/timepicker/services/DayPeriodService.js +9 -3
  85. package/dist/es/timepicker/services/HoursService.js +14 -5
  86. package/dist/es/timepicker/services/MinutesService.js +12 -6
  87. package/dist/es/timepicker/services/SecondsService.js +12 -6
  88. package/dist/es/timepicker/utils.d.ts +4 -4
  89. package/dist/es/utils.d.ts +1 -1
  90. package/dist/es/utils.js +10 -1
  91. package/dist/es/virtualization/Virtualization.d.ts +9 -8
  92. package/dist/es/virtualization/Virtualization.js +23 -13
  93. package/dist/es/virtualization/services/RowHeightService.js +10 -1
  94. package/dist/es/virtualization/services/ScrollerService.js +9 -3
  95. package/dist/npm/calendar/components/Calendar.d.ts +10 -10
  96. package/dist/npm/calendar/components/Calendar.js +53 -38
  97. package/dist/npm/calendar/components/CalendarCell.js +9 -4
  98. package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
  99. package/dist/npm/calendar/components/CalendarNavigationItem.js +9 -4
  100. package/dist/npm/calendar/components/CalendarWeekCell.js +9 -4
  101. package/dist/npm/calendar/components/Header.d.ts +5 -4
  102. package/dist/npm/calendar/components/Header.js +11 -8
  103. package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
  104. package/dist/npm/calendar/components/HorizontalViewList.js +11 -7
  105. package/dist/npm/calendar/components/MultiViewCalendar.d.ts +13 -13
  106. package/dist/npm/calendar/components/MultiViewCalendar.js +62 -52
  107. package/dist/npm/calendar/components/Navigation.d.ts +2 -2
  108. package/dist/npm/calendar/components/Navigation.js +18 -10
  109. package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
  110. package/dist/npm/calendar/components/TodayCommand.js +16 -11
  111. package/dist/npm/calendar/components/View.d.ts +11 -11
  112. package/dist/npm/calendar/components/View.js +27 -22
  113. package/dist/npm/calendar/components/ViewList.d.ts +9 -9
  114. package/dist/npm/calendar/components/ViewList.js +29 -18
  115. package/dist/npm/calendar/models/CalendarViewEnum.js +1 -0
  116. package/dist/npm/calendar/models/NavigationAction.js +1 -0
  117. package/dist/npm/calendar/models/SelectionRange.js +1 -0
  118. package/dist/npm/calendar/models/index.js +4 -3
  119. package/dist/npm/calendar/services/BusViewService.js +3 -2
  120. package/dist/npm/calendar/services/CenturyViewService.js +40 -39
  121. package/dist/npm/calendar/services/DOMService.js +34 -15
  122. package/dist/npm/calendar/services/DecadeViewService.js +34 -33
  123. package/dist/npm/calendar/services/MonthViewService.js +38 -37
  124. package/dist/npm/calendar/services/NavigationService.js +2 -1
  125. package/dist/npm/calendar/services/ScrollSyncService.js +6 -1
  126. package/dist/npm/calendar/services/WeekNamesService.js +2 -1
  127. package/dist/npm/calendar/services/YearViewService.js +35 -34
  128. package/dist/npm/calendar/services/index.js +10 -9
  129. package/dist/npm/calendar/utils/ScrollSync.d.ts +3 -3
  130. package/dist/npm/calendar/utils/ScrollSync.js +2 -0
  131. package/dist/npm/common/PickerWrap.js +2 -1
  132. package/dist/npm/dateinput/DateInput.d.ts +24 -20
  133. package/dist/npm/dateinput/DateInput.js +51 -37
  134. package/dist/npm/dateinput/models/index.js +3 -2
  135. package/dist/npm/dateinput/models/kendo-date.d.ts +2 -2
  136. package/dist/npm/dateinput/models/kendo-date.js +15 -14
  137. package/dist/npm/dateinput/models/mask.js +2 -0
  138. package/dist/npm/dateinput/utils.d.ts +2 -2
  139. package/dist/npm/dateinput/utils.js +9 -4
  140. package/dist/npm/datepicker/DatePicker.d.ts +25 -25
  141. package/dist/npm/datepicker/DatePicker.js +42 -36
  142. package/dist/npm/datepicker/ToggleButton.js +1 -0
  143. package/dist/npm/daterangepicker/DateRangePicker.d.ts +16 -14
  144. package/dist/npm/daterangepicker/DateRangePicker.js +34 -31
  145. package/dist/npm/datetimepicker/DateTimePicker.d.ts +19 -19
  146. package/dist/npm/datetimepicker/DateTimePicker.js +46 -30
  147. package/dist/npm/datetimepicker/DateTimeSelector.d.ts +7 -7
  148. package/dist/npm/datetimepicker/DateTimeSelector.js +26 -15
  149. package/dist/npm/defaults.js +1 -0
  150. package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
  151. package/dist/npm/hooks/usePickerFloatingLabel.js +6 -3
  152. package/dist/npm/main.js +22 -21
  153. package/dist/npm/messages/index.d.ts +21 -21
  154. package/dist/npm/messages/index.js +2 -1
  155. package/dist/npm/package-metadata.js +2 -1
  156. package/dist/npm/timepicker/TimeList.d.ts +8 -8
  157. package/dist/npm/timepicker/TimeList.js +39 -18
  158. package/dist/npm/timepicker/TimePart.d.ts +11 -11
  159. package/dist/npm/timepicker/TimePart.js +25 -19
  160. package/dist/npm/timepicker/TimePicker.d.ts +23 -23
  161. package/dist/npm/timepicker/TimePicker.js +43 -37
  162. package/dist/npm/timepicker/TimeSelector.d.ts +6 -6
  163. package/dist/npm/timepicker/TimeSelector.js +22 -15
  164. package/dist/npm/timepicker/models/TimePart.js +1 -0
  165. package/dist/npm/timepicker/models/index.js +2 -1
  166. package/dist/npm/timepicker/services/DOMService.js +7 -4
  167. package/dist/npm/timepicker/services/DayPeriodService.js +11 -4
  168. package/dist/npm/timepicker/services/HoursService.js +21 -11
  169. package/dist/npm/timepicker/services/MinutesService.js +17 -10
  170. package/dist/npm/timepicker/services/SecondsService.js +17 -10
  171. package/dist/npm/timepicker/services/index.js +6 -5
  172. package/dist/npm/timepicker/utils.d.ts +4 -4
  173. package/dist/npm/timepicker/utils.js +30 -20
  174. package/dist/npm/utils.d.ts +1 -1
  175. package/dist/npm/utils.js +43 -20
  176. package/dist/npm/virtualization/Virtualization.d.ts +9 -8
  177. package/dist/npm/virtualization/Virtualization.js +27 -16
  178. package/dist/npm/virtualization/services/RowHeightService.js +11 -1
  179. package/dist/npm/virtualization/services/ScrollerService.js +10 -3
  180. package/dist/npm/virtualization/services/index.js +5 -4
  181. package/dist/systemjs/kendo-react-dateinputs.js +1 -1
  182. package/package.json +13 -13
@@ -0,0 +1 @@
1
+ export {};
@@ -80,8 +80,8 @@ export declare class CalendarWithoutContext extends React.Component<CalendarProp
80
80
  tabIndex: PropTypes.Requireable<number>;
81
81
  value: PropTypes.Requireable<Date>;
82
82
  weekNumber: PropTypes.Requireable<boolean>;
83
- topView: (props: CalendarProps<any>, propName: string, componentName: string) => Error;
84
- bottomView: (props: CalendarProps<any>, propName: string, componentName: string) => Error;
83
+ topView: (props: CalendarProps, propName: keyof CalendarProps<any>, componentName: string) => Error | null;
84
+ bottomView: (props: CalendarProps, propName: keyof CalendarProps<any>, componentName: string) => Error | null;
85
85
  };
86
86
  /**
87
87
  * @hidden
@@ -92,13 +92,13 @@ export declare class CalendarWithoutContext extends React.Component<CalendarProp
92
92
  max: Date;
93
93
  navigation: boolean;
94
94
  defaultActiveView: ActiveView;
95
- defaultValue: any;
95
+ defaultValue: null;
96
96
  smoothScroll: boolean;
97
97
  topView: ActiveView;
98
98
  bottomView: ActiveView;
99
99
  };
100
100
  protected dom: DOMService;
101
- protected scrollSyncService: ScrollSyncService;
101
+ protected scrollSyncService: ScrollSyncService | null;
102
102
  private valueDuringOnChange?;
103
103
  private focusedDate;
104
104
  private cellUID;
@@ -116,15 +116,15 @@ export declare class CalendarWithoutContext extends React.Component<CalendarProp
116
116
  /**
117
117
  * Gets the wrapping element of the Calendar.
118
118
  */
119
- readonly element: HTMLDivElement | null;
119
+ get element(): HTMLDivElement | null;
120
120
  /**
121
121
  * Gets the value of the Calendar.
122
122
  */
123
- readonly value: Date | null;
124
- protected readonly min: Date;
125
- protected readonly max: Date;
126
- protected readonly bottomView: CalendarViewEnum;
127
- protected readonly topView: CalendarViewEnum;
123
+ get value(): Date | null;
124
+ protected get min(): Date;
125
+ protected get max(): Date;
126
+ protected get bottomView(): CalendarViewEnum;
127
+ protected get topView(): CalendarViewEnum;
128
128
  constructor(props: CalendarProps);
129
129
  /**
130
130
  * @hidden
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -51,8 +53,15 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
51
53
  __extends(CalendarWithoutContext, _super);
52
54
  function CalendarWithoutContext(props) {
53
55
  var _this = _super.call(this, props) || this;
56
+ _this.scrollSyncService = null;
57
+ _this.focusedDate = null;
54
58
  _this.cellUID = guid();
55
59
  _this.id = guid();
60
+ _this.Navigation = null;
61
+ _this.calendarViewList = null;
62
+ _this._element = null;
63
+ _this.intl = null;
64
+ _this.service = null;
56
65
  _this.isActive = false;
57
66
  _this.didNavigationChange = false;
58
67
  /**
@@ -80,7 +89,9 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
80
89
  };
81
90
  _this.handleViewChange = function (_a) {
82
91
  var view = _a.view;
83
- _this.scrollSyncService.configure(view);
92
+ if (_this.scrollSyncService) {
93
+ _this.scrollSyncService.configure(view);
94
+ }
84
95
  _this.setState({ activeView: view });
85
96
  };
86
97
  _this.handleDateChange = function (event) {
@@ -138,6 +149,9 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
138
149
  };
139
150
  _this.handleKeyDown = function (event) {
140
151
  var keyCode = event.keyCode;
152
+ if (!_this.focusedDate || !_this.service) {
153
+ return;
154
+ }
141
155
  if (keyCode === Keys.enter) {
142
156
  if (_this.value !== null
143
157
  && isEqualDate(_this.focusedDate, _this.value)) {
@@ -150,7 +164,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
150
164
  value: _this.focusedDate,
151
165
  target: _this
152
166
  };
153
- _this.handleDateChange.call(undefined, args);
167
+ _this.handleDateChange(args);
154
168
  }
155
169
  else {
156
170
  var candidate = dateInRange(_this.navigation.move(_this.focusedDate, _this.navigation.action(event), _this.state.activeView, _this.service, event), _this.min, _this.max);
@@ -191,7 +205,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
191
205
  get: function () {
192
206
  return this._element;
193
207
  },
194
- enumerable: true,
208
+ enumerable: false,
195
209
  configurable: true
196
210
  });
197
211
  Object.defineProperty(CalendarWithoutContext.prototype, "value", {
@@ -205,7 +219,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
205
219
  ? this.props.value
206
220
  : this.state.value;
207
221
  },
208
- enumerable: true,
222
+ enumerable: false,
209
223
  configurable: true
210
224
  });
211
225
  Object.defineProperty(CalendarWithoutContext.prototype, "min", {
@@ -214,7 +228,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
214
228
  ? this.props.min
215
229
  : CalendarWithoutContext.defaultProps.min);
216
230
  },
217
- enumerable: true,
231
+ enumerable: false,
218
232
  configurable: true
219
233
  });
220
234
  Object.defineProperty(CalendarWithoutContext.prototype, "max", {
@@ -223,7 +237,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
223
237
  ? this.props.max
224
238
  : CalendarWithoutContext.defaultProps.max);
225
239
  },
226
- enumerable: true,
240
+ enumerable: false,
227
241
  configurable: true
228
242
  });
229
243
  Object.defineProperty(CalendarWithoutContext.prototype, "bottomView", {
@@ -232,7 +246,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
232
246
  ? this.props.bottomView
233
247
  : CalendarWithoutContext.defaultProps.bottomView];
234
248
  },
235
- enumerable: true,
249
+ enumerable: false,
236
250
  configurable: true
237
251
  });
238
252
  Object.defineProperty(CalendarWithoutContext.prototype, "topView", {
@@ -241,7 +255,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
241
255
  ? this.props.topView
242
256
  : CalendarWithoutContext.defaultProps.topView];
243
257
  },
244
- enumerable: true,
258
+ enumerable: false,
245
259
  configurable: true
246
260
  });
247
261
  /**
@@ -264,7 +278,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
264
278
  * @hidden
265
279
  */
266
280
  CalendarWithoutContext.prototype.componentDidUpdate = function (_, prevState) {
267
- if (prevState.activeView !== this.state.activeView) {
281
+ if (prevState.activeView !== this.state.activeView && this.scrollSyncService) {
268
282
  this.scrollSyncService.configure(this.state.activeView);
269
283
  }
270
284
  if (this.calendarViewList) {
@@ -338,7 +352,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
338
352
  var prop = props[propName];
339
353
  var bottomView = props.bottomView;
340
354
  if (prop && bottomView && CalendarViewEnum[prop] < CalendarViewEnum[bottomView]) {
341
- return new Error("Invalid prop + " + propName + " suplied to " + componentName + ".\n " + propName + " can not be smaller than bottomView.\n ");
355
+ return new Error("Invalid prop + ".concat(propName, " suplied to ").concat(componentName, ".\n ").concat(propName, " can not be smaller than bottomView.\n "));
342
356
  }
343
357
  return null;
344
358
  },
@@ -346,7 +360,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
346
360
  var prop = props[propName];
347
361
  var topView = props.topView;
348
362
  if (prop && topView && CalendarViewEnum[prop] > CalendarViewEnum[topView]) {
349
- return new Error("Invalid prop + " + propName + " suplied to " + componentName + ".\n " + propName + " can not be bigger than topView.\n ");
363
+ return new Error("Invalid prop + ".concat(propName, " suplied to ").concat(componentName, ".\n ").concat(propName, " can not be bigger than topView.\n "));
350
364
  }
351
365
  return null;
352
366
  }
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import { Button } from '@progress/kendo-react-buttons';
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -11,6 +11,7 @@ export interface HeaderEventArguments {
11
11
  nativeEvent?: any;
12
12
  value: Date;
13
13
  target: Header;
14
+ isTodayClick?: boolean;
14
15
  }
15
16
  /**
16
17
  * @hidden
@@ -42,10 +43,10 @@ export declare class Header extends React.Component<HeaderProps> {
42
43
  min: Date;
43
44
  max: Date;
44
45
  };
45
- protected readonly min: Date;
46
- protected readonly max: Date;
47
- protected readonly rangeLength: number;
48
- protected readonly canMoveUp: boolean;
46
+ protected get min(): Date;
47
+ protected get max(): Date;
48
+ protected get rangeLength(): number;
49
+ protected get canMoveUp(): boolean;
49
50
  render(): JSX.Element;
50
51
  protected getTitle: () => string;
51
52
  private handleTitleClick;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -45,7 +47,7 @@ var Header = /** @class */ (function (_super) {
45
47
  if (take < 1 || !_this.props.service.isInRange(nextDate, _this.min, _this.max)) {
46
48
  return title;
47
49
  }
48
- return title + " - " + _this.props.service.title(nextDate);
50
+ return "".concat(title, " - ").concat(_this.props.service.title(nextDate));
49
51
  };
50
52
  _this.handleTitleClick = function (event) {
51
53
  if (!_this.canMoveUp) {
@@ -61,7 +63,7 @@ var Header = /** @class */ (function (_super) {
61
63
  ? this.props.min
62
64
  : Header.defaultProps.min;
63
65
  },
64
- enumerable: true,
66
+ enumerable: false,
65
67
  configurable: true
66
68
  });
67
69
  Object.defineProperty(Header.prototype, "max", {
@@ -70,21 +72,21 @@ var Header = /** @class */ (function (_super) {
70
72
  ? this.props.max
71
73
  : Header.defaultProps.max;
72
74
  },
73
- enumerable: true,
75
+ enumerable: false,
74
76
  configurable: true
75
77
  });
76
78
  Object.defineProperty(Header.prototype, "rangeLength", {
77
79
  get: function () {
78
80
  return this.props.rangeLength !== undefined ? this.props.rangeLength : Header.defaultProps.rangeLength;
79
81
  },
80
- enumerable: true,
82
+ enumerable: false,
81
83
  configurable: true
82
84
  });
83
85
  Object.defineProperty(Header.prototype, "canMoveUp", {
84
86
  get: function () {
85
87
  return this.props.bus.canMoveUp(this.props.activeView);
86
88
  },
87
- enumerable: true,
89
+ enumerable: false,
88
90
  configurable: true
89
91
  });
90
92
  Header.prototype.render = function () {
@@ -52,10 +52,10 @@ export declare class HorizontalViewList extends React.Component<HorizontalViewLi
52
52
  };
53
53
  private _element;
54
54
  private isActive;
55
- readonly element: HTMLDivElement | null;
56
- protected readonly weekNumber: boolean;
57
- protected readonly min: Date;
58
- protected readonly max: Date;
55
+ get element(): HTMLDivElement | null;
56
+ protected get weekNumber(): boolean;
57
+ protected get min(): Date;
58
+ protected get max(): Date;
59
59
  constructor(props: HorizontalViewListProps);
60
60
  focusActiveDate: () => void;
61
61
  blurActiveDate: () => void;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -25,6 +27,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
25
27
  __extends(HorizontalViewList, _super);
26
28
  function HorizontalViewList(props) {
27
29
  var _this = _super.call(this, props) || this;
30
+ _this._element = null;
28
31
  _this.isActive = false;
29
32
  _this.focusActiveDate = function () {
30
33
  if (!_this._element) {
@@ -80,14 +83,14 @@ var HorizontalViewList = /** @class */ (function (_super) {
80
83
  get: function () {
81
84
  return this._element;
82
85
  },
83
- enumerable: true,
86
+ enumerable: false,
84
87
  configurable: true
85
88
  });
86
89
  Object.defineProperty(HorizontalViewList.prototype, "weekNumber", {
87
90
  get: function () {
88
91
  return Boolean(this.props.showWeekNumbers && this.props.activeView === CalendarViewEnum.month);
89
92
  },
90
- enumerable: true,
93
+ enumerable: false,
91
94
  configurable: true
92
95
  });
93
96
  Object.defineProperty(HorizontalViewList.prototype, "min", {
@@ -96,7 +99,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
96
99
  ? this.props.min
97
100
  : HorizontalViewList.defaultProps.min;
98
101
  },
99
- enumerable: true,
102
+ enumerable: false,
100
103
  configurable: true
101
104
  });
102
105
  Object.defineProperty(HorizontalViewList.prototype, "max", {
@@ -105,7 +108,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
105
108
  ? this.props.max
106
109
  : HorizontalViewList.defaultProps.max;
107
110
  },
108
- enumerable: true,
111
+ enumerable: false,
109
112
  configurable: true
110
113
  });
111
114
  HorizontalViewList.prototype.componentDidUpdate = function () {
@@ -49,7 +49,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
49
49
  * @hidden
50
50
  */
51
51
  static propTypes: {
52
- activeRangeEnd: PropTypes.Requireable<SelectionRangeEnd>;
52
+ activeRangeEnd: PropTypes.Requireable<"end" | "start">;
53
53
  allowReverse: PropTypes.Requireable<boolean>;
54
54
  bottomView: PropTypes.Requireable<ActiveView>;
55
55
  className: PropTypes.Requireable<string>;
@@ -62,14 +62,14 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
62
62
  ariaDescribedBy: PropTypes.Requireable<string>;
63
63
  max: PropTypes.Requireable<Date>;
64
64
  min: PropTypes.Requireable<Date>;
65
- mode: PropTypes.Requireable<import("../models").MultiViewCalendarMode>;
65
+ mode: PropTypes.Requireable<"multiple" | "range" | "single">;
66
66
  onBlur: PropTypes.Requireable<(...args: any[]) => any>;
67
67
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
68
68
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
69
69
  tabIndex: PropTypes.Requireable<number>;
70
70
  topView: PropTypes.Requireable<ActiveView>;
71
71
  value: PropTypes.Requireable<any>;
72
- views: (props: any, propName: any, componentName: any) => Error;
72
+ views: (props: MultiViewCalendarProps, propName: keyof MultiViewCalendarProps<any>, componentName: string) => Error | null;
73
73
  weekNumber: PropTypes.Requireable<boolean>;
74
74
  };
75
75
  /**
@@ -81,7 +81,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
81
81
  max: Date;
82
82
  navigation: boolean;
83
83
  defaultActiveView: ActiveView;
84
- defaultValue: any;
84
+ defaultValue: null;
85
85
  topView: ActiveView;
86
86
  tabIndex: number;
87
87
  bottomView: ActiveView;
@@ -111,21 +111,21 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
111
111
  /**
112
112
  * Gets the wrapping element of the MultiViewCalendar component.
113
113
  */
114
- readonly element: HTMLDivElement | null;
114
+ get element(): HTMLDivElement | null;
115
115
  /**
116
116
  * Gets the value of the MultiViewCalendar.
117
117
  */
118
- readonly value: Date | Date[] | SelectionRange | null;
118
+ get value(): Date | Date[] | SelectionRange | null;
119
119
  /**
120
120
  * Gets the current focused date of the MultiViewCalendar.
121
121
  */
122
- readonly focusedDate: Date;
123
- protected readonly min: Date;
124
- protected readonly max: Date;
125
- protected readonly bottomView: CalendarViewEnum;
126
- protected readonly topView: CalendarViewEnum;
127
- protected readonly activeRange: SelectionRangeEnd;
128
- protected readonly todayIsInRange: boolean;
122
+ get focusedDate(): Date;
123
+ protected get min(): Date;
124
+ protected get max(): Date;
125
+ protected get bottomView(): CalendarViewEnum;
126
+ protected get topView(): CalendarViewEnum;
127
+ protected get activeRange(): SelectionRangeEnd;
128
+ protected get todayIsInRange(): boolean;
129
129
  constructor(props: MultiViewCalendarProps);
130
130
  /**
131
131
  * @hidden