@progress/kendo-react-dateinputs 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009

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 (178) 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 +1 -1
  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 +6 -6
  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/dateinput/DateInput.d.ts +24 -20
  39. package/dist/es/dateinput/DateInput.js +32 -19
  40. package/dist/es/dateinput/models/DateInputSettings.js +1 -0
  41. package/dist/es/dateinput/models/format-placeholder.js +1 -0
  42. package/dist/es/dateinput/models/incremental-steps.js +1 -0
  43. package/dist/es/dateinput/models/kendo-date.d.ts +2 -2
  44. package/dist/es/dateinput/models/kendo-date.js +2 -2
  45. package/dist/es/dateinput/models/mask.js +1 -0
  46. package/dist/es/dateinput/models/selection.js +1 -0
  47. package/dist/es/dateinput/utils.d.ts +1 -1
  48. package/dist/es/datepicker/DatePicker.d.ts +25 -25
  49. package/dist/es/datepicker/DatePicker.js +28 -23
  50. package/dist/es/datepicker/models/DatePickerSettings.js +1 -0
  51. package/dist/es/datepicker/models/index.js +1 -0
  52. package/dist/es/daterangepicker/DateRangePicker.d.ts +12 -12
  53. package/dist/es/daterangepicker/DateRangePicker.js +16 -14
  54. package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +1 -0
  55. package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +1 -0
  56. package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +1 -0
  57. package/dist/es/daterangepicker/models/DateRangePickerSettings.js +1 -0
  58. package/dist/es/daterangepicker/models/index.js +1 -0
  59. package/dist/es/datetimepicker/DateTimePicker.d.ts +19 -19
  60. package/dist/es/datetimepicker/DateTimePicker.js +33 -18
  61. package/dist/es/datetimepicker/DateTimeSelector.d.ts +7 -7
  62. package/dist/es/datetimepicker/DateTimeSelector.js +17 -7
  63. package/dist/es/datetimepicker/models/DateTimePickerSettings.js +1 -0
  64. package/dist/es/datetimepicker/models/index.js +1 -0
  65. package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
  66. package/dist/es/messages/index.d.ts +21 -21
  67. package/dist/es/package-metadata.js +1 -1
  68. package/dist/es/timepicker/TimeList.d.ts +8 -8
  69. package/dist/es/timepicker/TimeList.js +33 -13
  70. package/dist/es/timepicker/TimePart.d.ts +10 -10
  71. package/dist/es/timepicker/TimePart.js +14 -9
  72. package/dist/es/timepicker/TimePicker.d.ts +22 -22
  73. package/dist/es/timepicker/TimePicker.js +27 -22
  74. package/dist/es/timepicker/TimeSelector.d.ts +6 -6
  75. package/dist/es/timepicker/TimeSelector.js +11 -5
  76. package/dist/es/timepicker/models/IncrementalSteps.js +1 -0
  77. package/dist/es/timepicker/models/ListItem.js +1 -0
  78. package/dist/es/timepicker/models/ListService.js +1 -0
  79. package/dist/es/timepicker/models/ListServiceSettings.js +1 -0
  80. package/dist/es/timepicker/models/TimePickerSettings.js +1 -0
  81. package/dist/es/timepicker/services/DOMService.js +2 -0
  82. package/dist/es/timepicker/services/DayPeriodService.js +9 -3
  83. package/dist/es/timepicker/services/HoursService.js +14 -5
  84. package/dist/es/timepicker/services/MinutesService.js +12 -6
  85. package/dist/es/timepicker/services/SecondsService.js +12 -6
  86. package/dist/es/timepicker/utils.d.ts +4 -4
  87. package/dist/es/utils.d.ts +1 -1
  88. package/dist/es/utils.js +10 -1
  89. package/dist/es/virtualization/Virtualization.d.ts +8 -7
  90. package/dist/es/virtualization/Virtualization.js +22 -12
  91. package/dist/es/virtualization/services/RowHeightService.js +10 -1
  92. package/dist/es/virtualization/services/ScrollerService.js +9 -3
  93. package/dist/npm/calendar/components/Calendar.d.ts +10 -10
  94. package/dist/npm/calendar/components/Calendar.js +53 -38
  95. package/dist/npm/calendar/components/CalendarCell.js +9 -4
  96. package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
  97. package/dist/npm/calendar/components/CalendarNavigationItem.js +9 -4
  98. package/dist/npm/calendar/components/CalendarWeekCell.js +9 -4
  99. package/dist/npm/calendar/components/Header.d.ts +5 -4
  100. package/dist/npm/calendar/components/Header.js +11 -8
  101. package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
  102. package/dist/npm/calendar/components/HorizontalViewList.js +11 -7
  103. package/dist/npm/calendar/components/MultiViewCalendar.d.ts +13 -13
  104. package/dist/npm/calendar/components/MultiViewCalendar.js +62 -52
  105. package/dist/npm/calendar/components/Navigation.d.ts +1 -1
  106. package/dist/npm/calendar/components/Navigation.js +18 -10
  107. package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
  108. package/dist/npm/calendar/components/TodayCommand.js +16 -11
  109. package/dist/npm/calendar/components/View.d.ts +11 -11
  110. package/dist/npm/calendar/components/View.js +27 -22
  111. package/dist/npm/calendar/components/ViewList.d.ts +6 -6
  112. package/dist/npm/calendar/components/ViewList.js +29 -18
  113. package/dist/npm/calendar/models/CalendarViewEnum.js +1 -0
  114. package/dist/npm/calendar/models/NavigationAction.js +1 -0
  115. package/dist/npm/calendar/models/SelectionRange.js +1 -0
  116. package/dist/npm/calendar/models/index.js +4 -3
  117. package/dist/npm/calendar/services/BusViewService.js +3 -2
  118. package/dist/npm/calendar/services/CenturyViewService.js +40 -39
  119. package/dist/npm/calendar/services/DOMService.js +34 -15
  120. package/dist/npm/calendar/services/DecadeViewService.js +34 -33
  121. package/dist/npm/calendar/services/MonthViewService.js +38 -37
  122. package/dist/npm/calendar/services/NavigationService.js +2 -1
  123. package/dist/npm/calendar/services/ScrollSyncService.js +6 -1
  124. package/dist/npm/calendar/services/WeekNamesService.js +2 -1
  125. package/dist/npm/calendar/services/YearViewService.js +35 -34
  126. package/dist/npm/calendar/services/index.js +10 -9
  127. package/dist/npm/common/PickerWrap.js +2 -1
  128. package/dist/npm/dateinput/DateInput.d.ts +24 -20
  129. package/dist/npm/dateinput/DateInput.js +51 -37
  130. package/dist/npm/dateinput/models/index.js +3 -2
  131. package/dist/npm/dateinput/models/kendo-date.d.ts +2 -2
  132. package/dist/npm/dateinput/models/kendo-date.js +14 -13
  133. package/dist/npm/dateinput/models/mask.js +2 -0
  134. package/dist/npm/dateinput/utils.d.ts +1 -1
  135. package/dist/npm/dateinput/utils.js +9 -4
  136. package/dist/npm/datepicker/DatePicker.d.ts +25 -25
  137. package/dist/npm/datepicker/DatePicker.js +42 -36
  138. package/dist/npm/datepicker/ToggleButton.js +1 -0
  139. package/dist/npm/daterangepicker/DateRangePicker.d.ts +12 -12
  140. package/dist/npm/daterangepicker/DateRangePicker.js +34 -31
  141. package/dist/npm/datetimepicker/DateTimePicker.d.ts +19 -19
  142. package/dist/npm/datetimepicker/DateTimePicker.js +46 -30
  143. package/dist/npm/datetimepicker/DateTimeSelector.d.ts +7 -7
  144. package/dist/npm/datetimepicker/DateTimeSelector.js +26 -15
  145. package/dist/npm/defaults.js +1 -0
  146. package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
  147. package/dist/npm/hooks/usePickerFloatingLabel.js +6 -3
  148. package/dist/npm/main.js +22 -21
  149. package/dist/npm/messages/index.d.ts +21 -21
  150. package/dist/npm/messages/index.js +2 -1
  151. package/dist/npm/package-metadata.js +2 -1
  152. package/dist/npm/timepicker/TimeList.d.ts +8 -8
  153. package/dist/npm/timepicker/TimeList.js +39 -18
  154. package/dist/npm/timepicker/TimePart.d.ts +10 -10
  155. package/dist/npm/timepicker/TimePart.js +25 -19
  156. package/dist/npm/timepicker/TimePicker.d.ts +22 -22
  157. package/dist/npm/timepicker/TimePicker.js +43 -37
  158. package/dist/npm/timepicker/TimeSelector.d.ts +6 -6
  159. package/dist/npm/timepicker/TimeSelector.js +22 -15
  160. package/dist/npm/timepicker/models/TimePart.js +1 -0
  161. package/dist/npm/timepicker/models/index.js +2 -1
  162. package/dist/npm/timepicker/services/DOMService.js +7 -4
  163. package/dist/npm/timepicker/services/DayPeriodService.js +11 -4
  164. package/dist/npm/timepicker/services/HoursService.js +21 -11
  165. package/dist/npm/timepicker/services/MinutesService.js +17 -10
  166. package/dist/npm/timepicker/services/SecondsService.js +17 -10
  167. package/dist/npm/timepicker/services/index.js +6 -5
  168. package/dist/npm/timepicker/utils.d.ts +4 -4
  169. package/dist/npm/timepicker/utils.js +30 -20
  170. package/dist/npm/utils.d.ts +1 -1
  171. package/dist/npm/utils.js +43 -20
  172. package/dist/npm/virtualization/Virtualization.d.ts +8 -7
  173. package/dist/npm/virtualization/Virtualization.js +26 -15
  174. package/dist/npm/virtualization/services/RowHeightService.js +11 -1
  175. package/dist/npm/virtualization/services/ScrollerService.js +10 -3
  176. package/dist/npm/virtualization/services/index.js +5 -4
  177. package/dist/systemjs/kendo-react-dateinputs.js +1 -1
  178. package/package.json +13 -13
@@ -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';
@@ -56,6 +60,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
56
60
  _this._dateInput = React.createRef();
57
61
  _this._calendar = null;
58
62
  _this.shouldFocusDateInput = false;
63
+ _this.prevShow = false;
59
64
  /**
60
65
  * @hidden
61
66
  */
@@ -151,7 +156,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
151
156
  get: function () {
152
157
  return this._element;
153
158
  },
154
- enumerable: true,
159
+ enumerable: false,
155
160
  configurable: true
156
161
  });
157
162
  Object.defineProperty(DatePickerWithoutContext.prototype, "dateInput", {
@@ -161,7 +166,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
161
166
  get: function () {
162
167
  return this._dateInput.current;
163
168
  },
164
- enumerable: true,
169
+ enumerable: false,
165
170
  configurable: true
166
171
  });
167
172
  Object.defineProperty(DatePickerWithoutContext.prototype, "calendar", {
@@ -171,7 +176,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
171
176
  get: function () {
172
177
  return this._calendar;
173
178
  },
174
- enumerable: true,
179
+ enumerable: false,
175
180
  configurable: true
176
181
  });
177
182
  Object.defineProperty(DatePickerWithoutContext.prototype, "value", {
@@ -186,7 +191,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
186
191
  : this.state.value;
187
192
  return (value !== null) ? cloneDate(value) : null;
188
193
  },
189
- enumerable: true,
194
+ enumerable: false,
190
195
  configurable: true
191
196
  });
192
197
  Object.defineProperty(DatePickerWithoutContext.prototype, "show", {
@@ -200,7 +205,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
200
205
  ? this.props.show
201
206
  : this.state.show;
202
207
  },
203
- enumerable: true,
208
+ enumerable: false,
204
209
  configurable: true
205
210
  });
206
211
  Object.defineProperty(DatePickerWithoutContext.prototype, "name", {
@@ -210,7 +215,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
210
215
  get: function () {
211
216
  return this.props.name;
212
217
  },
213
- enumerable: true,
218
+ enumerable: false,
214
219
  configurable: true
215
220
  });
216
221
  Object.defineProperty(DatePickerWithoutContext.prototype, "min", {
@@ -219,7 +224,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
219
224
  ? this.props.min
220
225
  : DatePickerWithoutContext.defaultProps.min;
221
226
  },
222
- enumerable: true,
227
+ enumerable: false,
223
228
  configurable: true
224
229
  });
225
230
  Object.defineProperty(DatePickerWithoutContext.prototype, "max", {
@@ -228,42 +233,42 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
228
233
  ? this.props.max
229
234
  : DatePickerWithoutContext.defaultProps.max;
230
235
  },
231
- enumerable: true,
236
+ enumerable: false,
232
237
  configurable: true
233
238
  });
234
239
  Object.defineProperty(DatePickerWithoutContext.prototype, "dateInputComp", {
235
240
  get: function () {
236
241
  return this.props.dateInput || DatePickerWithoutContext.defaultProps.dateInput;
237
242
  },
238
- enumerable: true,
243
+ enumerable: false,
239
244
  configurable: true
240
245
  });
241
246
  Object.defineProperty(DatePickerWithoutContext.prototype, "toggleButtonComp", {
242
247
  get: function () {
243
248
  return this.props.toggleButton || DatePickerWithoutContext.defaultProps.toggleButton;
244
249
  },
245
- enumerable: true,
250
+ enumerable: false,
246
251
  configurable: true
247
252
  });
248
253
  Object.defineProperty(DatePickerWithoutContext.prototype, "calendarComp", {
249
254
  get: function () {
250
255
  return this.props.calendar || DatePickerWithoutContext.defaultProps.calendar;
251
256
  },
252
- enumerable: true,
257
+ enumerable: false,
253
258
  configurable: true
254
259
  });
255
260
  Object.defineProperty(DatePickerWithoutContext.prototype, "popupComp", {
256
261
  get: function () {
257
262
  return this.props.popup || DatePickerWithoutContext.defaultProps.popup;
258
263
  },
259
- enumerable: true,
264
+ enumerable: false,
260
265
  configurable: true
261
266
  });
262
267
  Object.defineProperty(DatePickerWithoutContext.prototype, "pickerWrapComp", {
263
268
  get: function () {
264
269
  return this.props.pickerWrap || DatePickerWithoutContext.defaultProps.pickerWrap;
265
270
  },
266
- enumerable: true,
271
+ enumerable: false,
267
272
  configurable: true
268
273
  });
269
274
  Object.defineProperty(DatePickerWithoutContext.prototype, "validity", {
@@ -283,7 +288,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
283
288
  valueMissing: this.value === null
284
289
  };
285
290
  },
286
- enumerable: true,
291
+ enumerable: false,
287
292
  configurable: true
288
293
  });
289
294
  Object.defineProperty(DatePickerWithoutContext.prototype, "validityStyles", {
@@ -295,7 +300,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
295
300
  ? this.props.validityStyles
296
301
  : DatePickerWithoutContext.defaultProps.validityStyles;
297
302
  },
298
- enumerable: true,
303
+ enumerable: false,
299
304
  configurable: true
300
305
  });
301
306
  Object.defineProperty(DatePickerWithoutContext.prototype, "required", {
@@ -307,7 +312,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
307
312
  ? this.props.required
308
313
  : DatePickerWithoutContext.defaultProps.required;
309
314
  },
310
- enumerable: true,
315
+ enumerable: false,
311
316
  configurable: true
312
317
  });
313
318
  /**
@@ -399,12 +404,12 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
399
404
  var toggleButtonTitle = provideLocalizationService(this)
400
405
  .toLanguageString(toggleCalendar, messages[toggleCalendar]);
401
406
  var datepicker = (React.createElement(AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.handleBlur, onSyncBlur: this.props.onBlur, onSyncFocus: this.props.onFocus }, function (_a) {
402
- var onFocus = _a.onFocus, onBlur = _a.onBlur;
403
407
  var _b;
408
+ var onFocus = _a.onFocus, onBlur = _a.onBlur;
404
409
  return (React.createElement("span", { role: "group", "aria-expanded": _this.show, ref: function (span) { _this._element = span; }, className: classNames('k-input', 'k-datepicker', (_b = {},
405
- _b["k-input-" + (kendoThemeMaps.sizeMap[size] || size)] = size,
406
- _b["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
407
- _b["k-input-" + fillMode] = fillMode,
410
+ _b["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size,
411
+ _b["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
412
+ _b["k-input-".concat(fillMode)] = fillMode,
408
413
  _b['k-invalid'] = !isValid,
409
414
  _b['k-required'] = _this.required,
410
415
  _b['k-disabled'] = _this.props.disabled,
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -0,0 +1 @@
1
+ export {};
@@ -89,7 +89,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
89
89
  second: PropTypes.Requireable<string>;
90
90
  timeZoneName: PropTypes.Requireable<string>;
91
91
  }>>;
92
- formatPlaceholder: PropTypes.Requireable<"narrow" | "short" | "wide" | "formatPattern" | PropTypes.InferProps<{
92
+ formatPlaceholder: PropTypes.Requireable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
93
93
  year: PropTypes.Requireable<string>;
94
94
  month: PropTypes.Requireable<string>;
95
95
  day: PropTypes.Requireable<string>;
@@ -125,9 +125,9 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
125
125
  required: PropTypes.Requireable<boolean>;
126
126
  validate: PropTypes.Requireable<boolean>;
127
127
  valid: PropTypes.Requireable<boolean>;
128
- size: PropTypes.Requireable<"small" | "medium" | "large">;
129
- rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
130
- fillMode: PropTypes.Requireable<"solid" | "flat" | "outline">;
128
+ size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
129
+ rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>;
130
+ fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>;
131
131
  }>>;
132
132
  focusedDate: PropTypes.Requireable<Date>;
133
133
  format: PropTypes.Requireable<string | PropTypes.InferProps<{
@@ -192,29 +192,29 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
192
192
  /**
193
193
  * Gets the wrapping element of the DateRangePicker.
194
194
  */
195
- readonly element: HTMLSpanElement | null;
195
+ get element(): HTMLSpanElement | null;
196
196
  /**
197
197
  * Gets the start DateInput component inside the DatePicker component.
198
198
  */
199
- readonly startDateInput: DateInput | null;
199
+ get startDateInput(): DateInput | null;
200
200
  /**
201
201
  * Gets the end DateInput component inside the DatePicker component.
202
202
  */
203
- readonly endDateInput: DateInput | null;
203
+ get endDateInput(): DateInput | null;
204
204
  /**
205
205
  * Gets the MultiVieCalendar inside the DateRangePicker.
206
206
  */
207
- readonly calendar: MultiViewCalendar | null;
207
+ get calendar(): MultiViewCalendar | null;
208
208
  /**
209
209
  * Gets the value of the DateRangePicker.
210
210
  */
211
- readonly value: SelectionRange;
211
+ get value(): SelectionRange;
212
212
  /**
213
213
  * Gets the popup state of the DateRangePicker.
214
214
  */
215
- readonly show: boolean;
216
- protected readonly min: Date;
217
- protected readonly max: Date;
215
+ get show(): boolean;
216
+ protected get min(): Date;
217
+ protected get max(): Date;
218
218
  /**
219
219
  * @hidden
220
220
  */
@@ -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 __());
@@ -209,7 +211,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
209
211
  get: function () {
210
212
  return this._element;
211
213
  },
212
- enumerable: true,
214
+ enumerable: false,
213
215
  configurable: true
214
216
  });
215
217
  Object.defineProperty(DateRangePickerWithoutContext.prototype, "startDateInput", {
@@ -219,7 +221,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
219
221
  get: function () {
220
222
  return this._startDateInput.current;
221
223
  },
222
- enumerable: true,
224
+ enumerable: false,
223
225
  configurable: true
224
226
  });
225
227
  Object.defineProperty(DateRangePickerWithoutContext.prototype, "endDateInput", {
@@ -229,7 +231,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
229
231
  get: function () {
230
232
  return this._endDateInput.current;
231
233
  },
232
- enumerable: true,
234
+ enumerable: false,
233
235
  configurable: true
234
236
  });
235
237
  Object.defineProperty(DateRangePickerWithoutContext.prototype, "calendar", {
@@ -239,7 +241,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
239
241
  get: function () {
240
242
  return this._calendar;
241
243
  },
242
- enumerable: true,
244
+ enumerable: false,
243
245
  configurable: true
244
246
  });
245
247
  Object.defineProperty(DateRangePickerWithoutContext.prototype, "value", {
@@ -254,7 +256,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
254
256
  : this.state.value;
255
257
  return value || EMPTY_SELECTIONRANGE;
256
258
  },
257
- enumerable: true,
259
+ enumerable: false,
258
260
  configurable: true
259
261
  });
260
262
  Object.defineProperty(DateRangePickerWithoutContext.prototype, "show", {
@@ -268,7 +270,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
268
270
  ? this.props.show
269
271
  : this.state.show;
270
272
  },
271
- enumerable: true,
273
+ enumerable: false,
272
274
  configurable: true
273
275
  });
274
276
  Object.defineProperty(DateRangePickerWithoutContext.prototype, "min", {
@@ -277,7 +279,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
277
279
  ? this.props.min
278
280
  : DateRangePickerWithoutContext.defaultProps.min;
279
281
  },
280
- enumerable: true,
282
+ enumerable: false,
281
283
  configurable: true
282
284
  });
283
285
  Object.defineProperty(DateRangePickerWithoutContext.prototype, "max", {
@@ -286,7 +288,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
286
288
  ? this.props.max
287
289
  : DateRangePickerWithoutContext.defaultProps.max;
288
290
  },
289
- enumerable: true,
291
+ enumerable: false,
290
292
  configurable: true
291
293
  });
292
294
  /**
@@ -332,16 +334,16 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
332
334
  var startMessage = localizationService.toLanguageString(start, messages[start]);
333
335
  var endMessage = localizationService.toLanguageString(end, messages[end]);
334
336
  var separatorMessage = localizationService.toLanguageString(separator, messages[separator]);
335
- var startDateInputProps = __assign({ label: startMessage, format: this.props.format, min: this.min, max: this.max, id: this._startInputId, disabled: this.props.disabled, valid: this.props.valid, ariaHasPopup: true, ariaExpanded: this.show }, this.props.startDateInputSettings, { value: value.start, onChange: this.handleStartChange });
336
- var endDateInputProps = __assign({ label: endMessage, format: this.props.format, min: this.min, max: this.max, id: this._endInputId, disabled: this.props.disabled, valid: this.props.valid, ariaHasPopup: true, ariaExpanded: this.show }, this.props.endDateInputSettings, { value: value.end, onChange: this.handleEndChange });
337
- var popupProps = __assign({ animate: this._element !== null, anchor: this._element, id: this._popupId, anchorAlign: {
337
+ var startDateInputProps = __assign(__assign({ label: startMessage, format: this.props.format, min: this.min, max: this.max, id: this._startInputId, disabled: this.props.disabled, valid: this.props.valid, ariaHasPopup: true, ariaExpanded: this.show }, this.props.startDateInputSettings), { value: value.start, onChange: this.handleStartChange });
338
+ var endDateInputProps = __assign(__assign({ label: endMessage, format: this.props.format, min: this.min, max: this.max, id: this._endInputId, disabled: this.props.disabled, valid: this.props.valid, ariaHasPopup: true, ariaExpanded: this.show }, this.props.endDateInputSettings), { value: value.end, onChange: this.handleEndChange });
339
+ var popupProps = __assign(__assign({ animate: this._element !== null, anchor: this._element, id: this._popupId, anchorAlign: {
338
340
  horizontal: 'left',
339
341
  vertical: 'bottom'
340
342
  }, popupAlign: {
341
343
  horizontal: 'left',
342
344
  vertical: 'top'
343
- } }, this.props.popupSettings, { show: this.show });
344
- var calendarProps = __assign({ min: this.min, max: this.max, allowReverse: this.props.allowReverse, mode: 'range', focusedDate: this.props.focusedDate, disabled: this.props.disabled }, this.props.calendarSettings, { value: value, onChange: this.handleCalendarChange });
345
+ } }, this.props.popupSettings), { show: this.show });
346
+ var calendarProps = __assign(__assign({ min: this.min, max: this.max, allowReverse: this.props.allowReverse, mode: 'range', focusedDate: this.props.focusedDate, disabled: this.props.disabled }, this.props.calendarSettings), { value: value, onChange: this.handleCalendarChange });
345
347
  var calendar = this.props.calendar
346
348
  ? React.createElement(this.props.calendar, __assign({}, calendarProps))
347
349
  : React.createElement(MultiViewCalendar, __assign({}, calendarProps, { ref: this.setCalendarRef }));
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -0,0 +1 @@
1
+ export {};
@@ -115,7 +115,7 @@ export declare class DateTimePickerWithoutContext extends React.Component<DateTi
115
115
  second: PropTypes.Requireable<string>;
116
116
  timeZoneName: PropTypes.Requireable<string>;
117
117
  }>>;
118
- formatPlaceholder: PropTypes.Requireable<"narrow" | "short" | "wide" | "formatPattern" | PropTypes.InferProps<{
118
+ formatPlaceholder: PropTypes.Requireable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
119
119
  year: PropTypes.Requireable<string>;
120
120
  month: PropTypes.Requireable<string>;
121
121
  day: PropTypes.Requireable<string>;
@@ -145,16 +145,16 @@ export declare class DateTimePickerWithoutContext extends React.Component<DateTi
145
145
  validate: PropTypes.Requireable<boolean>;
146
146
  valid: PropTypes.Requireable<boolean>;
147
147
  cancelButton: PropTypes.Requireable<boolean>;
148
- size: PropTypes.Requireable<"small" | "medium" | "large">;
149
- rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
150
- fillMode: PropTypes.Requireable<"solid" | "flat" | "outline">;
148
+ size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
149
+ rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>;
150
+ fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>;
151
151
  };
152
152
  /**
153
153
  * @hidden
154
154
  */
155
155
  static defaultProps: {
156
156
  defaultShow: boolean;
157
- defaultValue: any;
157
+ defaultValue: null;
158
158
  disabled: boolean;
159
159
  format: string;
160
160
  max: Date;
@@ -166,9 +166,9 @@ export declare class DateTimePickerWithoutContext extends React.Component<DateTi
166
166
  validityStyles: boolean;
167
167
  cancelButton: boolean;
168
168
  dateInput: React.ComponentType<DateInputProps<any>>;
169
- size: "small" | "medium" | "large";
170
- rounded: "small" | "medium" | "large" | "full";
171
- fillMode: "solid" | "flat" | "outline";
169
+ size: "small" | "medium" | "large" | null | undefined;
170
+ rounded: "small" | "medium" | "full" | "large" | null | undefined;
171
+ fillMode: "flat" | "outline" | "solid" | null | undefined;
172
172
  };
173
173
  /**
174
174
  * @hidden
@@ -187,41 +187,41 @@ export declare class DateTimePickerWithoutContext extends React.Component<DateTi
187
187
  /**
188
188
  * Gets the wrapping element of the DateTimePicker.
189
189
  */
190
- readonly element: HTMLSpanElement | null;
190
+ get element(): HTMLSpanElement | null;
191
191
  /**
192
192
  * Gets the DateInput component inside the DateTimePicker component.
193
193
  */
194
- readonly dateInput: DateInput | null;
194
+ get dateInput(): DateInput | null;
195
195
  /**
196
196
  * Gets the value of the DateTimePicker.
197
197
  */
198
- readonly value: Date | null;
198
+ get value(): Date | null;
199
199
  /**
200
200
  * Gets the popup state of the DateTimePicker.
201
201
  */
202
- readonly show: boolean;
202
+ get show(): boolean;
203
203
  /**
204
204
  * Gets the `name` property of the DateTimePicker.
205
205
  */
206
- readonly name: string | undefined;
207
- protected readonly min: Date;
208
- protected readonly max: Date;
206
+ get name(): string | undefined;
207
+ protected get min(): Date;
208
+ protected get max(): Date;
209
209
  /**
210
210
  * Represents the validity state into which the DateTimePicker is set.
211
211
  */
212
- readonly validity: FormComponentValidity;
212
+ get validity(): FormComponentValidity;
213
213
  /**
214
214
  * @hidden
215
215
  */
216
- protected readonly validityStyles: boolean;
216
+ protected get validityStyles(): boolean;
217
217
  /**
218
218
  * @hidden
219
219
  */
220
- protected readonly required: boolean;
220
+ protected get required(): boolean;
221
221
  /**
222
222
  * @hidden
223
223
  */
224
- protected readonly dateInputComp: React.ComponentType<DateInputProps<any>>;
224
+ protected get dateInputComp(): React.ComponentType<DateInputProps<any>>;
225
225
  /**
226
226
  * @hidden
227
227
  */
@@ -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 __());
@@ -133,7 +135,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
133
135
  get: function () {
134
136
  return this._element;
135
137
  },
136
- enumerable: true,
138
+ enumerable: false,
137
139
  configurable: true
138
140
  });
139
141
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "dateInput", {
@@ -143,7 +145,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
143
145
  get: function () {
144
146
  return this._dateInput.current;
145
147
  },
146
- enumerable: true,
148
+ enumerable: false,
147
149
  configurable: true
148
150
  });
149
151
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "value", {
@@ -158,7 +160,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
158
160
  : this.state.value;
159
161
  return (value !== null) ? cloneDate(value) : null;
160
162
  },
161
- enumerable: true,
163
+ enumerable: false,
162
164
  configurable: true
163
165
  });
164
166
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "show", {
@@ -172,7 +174,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
172
174
  ? this.props.show
173
175
  : this.state.show;
174
176
  },
175
- enumerable: true,
177
+ enumerable: false,
176
178
  configurable: true
177
179
  });
178
180
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "name", {
@@ -182,7 +184,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
182
184
  get: function () {
183
185
  return this.props.name;
184
186
  },
185
- enumerable: true,
187
+ enumerable: false,
186
188
  configurable: true
187
189
  });
188
190
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "min", {
@@ -191,7 +193,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
191
193
  ? this.props.min
192
194
  : DateTimePickerWithoutContext.defaultProps.min;
193
195
  },
194
- enumerable: true,
196
+ enumerable: false,
195
197
  configurable: true
196
198
  });
197
199
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "max", {
@@ -200,7 +202,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
200
202
  ? this.props.max
201
203
  : DateTimePickerWithoutContext.defaultProps.max;
202
204
  },
203
- enumerable: true,
205
+ enumerable: false,
204
206
  configurable: true
205
207
  });
206
208
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "validity", {
@@ -221,7 +223,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
221
223
  valueMissing: this.value === null
222
224
  };
223
225
  },
224
- enumerable: true,
226
+ enumerable: false,
225
227
  configurable: true
226
228
  });
227
229
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "validityStyles", {
@@ -233,7 +235,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
233
235
  ? this.props.validityStyles
234
236
  : DateTimePickerWithoutContext.defaultProps.validityStyles;
235
237
  },
236
- enumerable: true,
238
+ enumerable: false,
237
239
  configurable: true
238
240
  });
239
241
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "required", {
@@ -245,7 +247,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
245
247
  ? this.props.required
246
248
  : DateTimePickerWithoutContext.defaultProps.required;
247
249
  },
248
- enumerable: true,
250
+ enumerable: false,
249
251
  configurable: true
250
252
  });
251
253
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "dateInputComp", {
@@ -255,7 +257,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
255
257
  get: function () {
256
258
  return this.props.dateInput || DateTimePickerWithoutContext.defaultProps.dateInput;
257
259
  },
258
- enumerable: true,
260
+ enumerable: false,
259
261
  configurable: true
260
262
  });
261
263
  /**
@@ -297,8 +299,21 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
297
299
  var _a = this.props, _b = _a.size, size = _b === void 0 ? DateTimePickerWithoutContext.defaultProps.size : _b, _c = _a.rounded, rounded = _c === void 0 ? DateTimePickerWithoutContext.defaultProps.rounded : _c, _d = _a.fillMode, fillMode = _d === void 0 ? DateTimePickerWithoutContext.defaultProps.fillMode : _d, disabled = _a.disabled, tabIndex = _a.tabIndex, title = _a.title, id = _a.id, format = _a.format, formatPlaceholder = _a.formatPlaceholder, min = _a.min, max = _a.max, weekNumber = _a.weekNumber, focusedDate = _a.focusedDate, className = _a.className, width = _a.width, name = _a.name, validationMessage = _a.validationMessage, required = _a.required, validityStyles = _a.validityStyles, cancelButton = _a.cancelButton, minTime = _a.minTime, maxTime = _a.maxTime, ariaLabelledBy = _a.ariaLabelledBy, ariaDescribedBy = _a.ariaDescribedBy, _e = _a.popup, PopupComponent = _e === void 0 ? Popup : _e, calendar = _a.calendar;
298
300
  var isValid = !this.validityStyles || this.validity.valid;
299
301
  var dataInputProps = {
300
- id: id, ariaLabelledBy: ariaLabelledBy, ariaDescribedBy: ariaDescribedBy, format: format, formatPlaceholder: formatPlaceholder, disabled: disabled,
301
- title: title, validityStyles: validityStyles, validationMessage: validationMessage, required: required, min: min, max: max, minTime: minTime, maxTime: maxTime, name: name,
302
+ id: id,
303
+ ariaLabelledBy: ariaLabelledBy,
304
+ ariaDescribedBy: ariaDescribedBy,
305
+ format: format,
306
+ formatPlaceholder: formatPlaceholder,
307
+ disabled: disabled,
308
+ title: title,
309
+ validityStyles: validityStyles,
310
+ validationMessage: validationMessage,
311
+ required: required,
312
+ min: min,
313
+ max: max,
314
+ minTime: minTime,
315
+ maxTime: maxTime,
316
+ name: name,
302
317
  tabIndex: !this.show ? tabIndex : -1,
303
318
  valid: this.validity.valid,
304
319
  value: this.value,
@@ -313,14 +328,14 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
313
328
  rounded: null
314
329
  };
315
330
  var dateTimePicker = (React.createElement(AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.handleBlur, onSyncFocus: this.props.onFocus, onSyncBlur: this.props.onBlur }, function (_a) {
316
- var onFocus = _a.onFocus, onBlur = _a.onBlur;
317
331
  var _b;
332
+ var onFocus = _a.onFocus, onBlur = _a.onBlur;
318
333
  return (React.createElement("div", { ref: function (div) {
319
334
  _this._element = div;
320
335
  }, className: classNames('k-input', 'k-datetimepicker', (_b = {},
321
- _b["k-input-" + (kendoThemeMaps.sizeMap[size] || size)] = size,
322
- _b["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
323
- _b["k-input-" + fillMode] = fillMode,
336
+ _b["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size,
337
+ _b["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
338
+ _b["k-input-".concat(fillMode)] = fillMode,
324
339
  _b['k-invalid'] = !isValid,
325
340
  _b['k-required'] = _this.required,
326
341
  _b['k-disabled'] = _this.props.disabled,
@@ -60,21 +60,21 @@ export declare class DateTimeSelector extends React.Component<DateTimeSelectorPr
60
60
  private _acceptButton;
61
61
  private _calendarWrap;
62
62
  private shouldFocusPart;
63
- readonly calendar: Calendar | null;
64
- readonly timePart: TimePart | null;
65
- protected readonly hasDateValue: boolean;
63
+ get calendar(): Calendar | null;
64
+ get timePart(): TimePart | null;
65
+ protected get hasDateValue(): boolean;
66
66
  constructor(props: DateTimeSelectorProps);
67
67
  componentDidUpdate(): void;
68
68
  render(): JSX.Element;
69
69
  focus: (args?: any) => void;
70
70
  private calendarElement;
71
- protected readonly minTime: Date | null;
72
- protected readonly maxTime: Date | null;
71
+ protected get minTime(): Date | null;
72
+ protected get maxTime(): Date | null;
73
73
  protected normalizeRange(candidate: Date, value: Date | null): Date | null;
74
- protected hasActiveButton(): boolean;
74
+ protected hasActiveButton(): boolean | null;
75
75
  protected mergeTime(current: Date | null, candidate: Date | null): Date | null;
76
76
  protected mergeDate(candidate: Date | null, value: Date): Date | null;
77
- protected move: (direction: "left" | "right") => void;
77
+ protected move: (direction: 'left' | 'right') => void;
78
78
  private handleReject;
79
79
  private handleAccept;
80
80
  private handleNowClick;