@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
@@ -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';
@@ -151,7 +155,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
151
155
  get: function () {
152
156
  return this._element;
153
157
  },
154
- enumerable: true,
158
+ enumerable: false,
155
159
  configurable: true
156
160
  });
157
161
  Object.defineProperty(DatePickerWithoutContext.prototype, "dateInput", {
@@ -161,7 +165,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
161
165
  get: function () {
162
166
  return this._dateInput.current;
163
167
  },
164
- enumerable: true,
168
+ enumerable: false,
165
169
  configurable: true
166
170
  });
167
171
  Object.defineProperty(DatePickerWithoutContext.prototype, "calendar", {
@@ -171,7 +175,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
171
175
  get: function () {
172
176
  return this._calendar;
173
177
  },
174
- enumerable: true,
178
+ enumerable: false,
175
179
  configurable: true
176
180
  });
177
181
  Object.defineProperty(DatePickerWithoutContext.prototype, "value", {
@@ -186,7 +190,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
186
190
  : this.state.value;
187
191
  return (value !== null) ? cloneDate(value) : null;
188
192
  },
189
- enumerable: true,
193
+ enumerable: false,
190
194
  configurable: true
191
195
  });
192
196
  Object.defineProperty(DatePickerWithoutContext.prototype, "show", {
@@ -200,7 +204,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
200
204
  ? this.props.show
201
205
  : this.state.show;
202
206
  },
203
- enumerable: true,
207
+ enumerable: false,
204
208
  configurable: true
205
209
  });
206
210
  Object.defineProperty(DatePickerWithoutContext.prototype, "name", {
@@ -210,7 +214,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
210
214
  get: function () {
211
215
  return this.props.name;
212
216
  },
213
- enumerable: true,
217
+ enumerable: false,
214
218
  configurable: true
215
219
  });
216
220
  Object.defineProperty(DatePickerWithoutContext.prototype, "min", {
@@ -219,7 +223,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
219
223
  ? this.props.min
220
224
  : DatePickerWithoutContext.defaultProps.min;
221
225
  },
222
- enumerable: true,
226
+ enumerable: false,
223
227
  configurable: true
224
228
  });
225
229
  Object.defineProperty(DatePickerWithoutContext.prototype, "max", {
@@ -228,42 +232,42 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
228
232
  ? this.props.max
229
233
  : DatePickerWithoutContext.defaultProps.max;
230
234
  },
231
- enumerable: true,
235
+ enumerable: false,
232
236
  configurable: true
233
237
  });
234
238
  Object.defineProperty(DatePickerWithoutContext.prototype, "dateInputComp", {
235
239
  get: function () {
236
240
  return this.props.dateInput || DatePickerWithoutContext.defaultProps.dateInput;
237
241
  },
238
- enumerable: true,
242
+ enumerable: false,
239
243
  configurable: true
240
244
  });
241
245
  Object.defineProperty(DatePickerWithoutContext.prototype, "toggleButtonComp", {
242
246
  get: function () {
243
247
  return this.props.toggleButton || DatePickerWithoutContext.defaultProps.toggleButton;
244
248
  },
245
- enumerable: true,
249
+ enumerable: false,
246
250
  configurable: true
247
251
  });
248
252
  Object.defineProperty(DatePickerWithoutContext.prototype, "calendarComp", {
249
253
  get: function () {
250
254
  return this.props.calendar || DatePickerWithoutContext.defaultProps.calendar;
251
255
  },
252
- enumerable: true,
256
+ enumerable: false,
253
257
  configurable: true
254
258
  });
255
259
  Object.defineProperty(DatePickerWithoutContext.prototype, "popupComp", {
256
260
  get: function () {
257
261
  return this.props.popup || DatePickerWithoutContext.defaultProps.popup;
258
262
  },
259
- enumerable: true,
263
+ enumerable: false,
260
264
  configurable: true
261
265
  });
262
266
  Object.defineProperty(DatePickerWithoutContext.prototype, "pickerWrapComp", {
263
267
  get: function () {
264
268
  return this.props.pickerWrap || DatePickerWithoutContext.defaultProps.pickerWrap;
265
269
  },
266
- enumerable: true,
270
+ enumerable: false,
267
271
  configurable: true
268
272
  });
269
273
  Object.defineProperty(DatePickerWithoutContext.prototype, "validity", {
@@ -283,7 +287,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
283
287
  valueMissing: this.value === null
284
288
  };
285
289
  },
286
- enumerable: true,
290
+ enumerable: false,
287
291
  configurable: true
288
292
  });
289
293
  Object.defineProperty(DatePickerWithoutContext.prototype, "validityStyles", {
@@ -295,7 +299,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
295
299
  ? this.props.validityStyles
296
300
  : DatePickerWithoutContext.defaultProps.validityStyles;
297
301
  },
298
- enumerable: true,
302
+ enumerable: false,
299
303
  configurable: true
300
304
  });
301
305
  Object.defineProperty(DatePickerWithoutContext.prototype, "required", {
@@ -307,7 +311,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
307
311
  ? this.props.required
308
312
  : DatePickerWithoutContext.defaultProps.required;
309
313
  },
310
- enumerable: true,
314
+ enumerable: false,
311
315
  configurable: true
312
316
  });
313
317
  /**
@@ -399,8 +403,8 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
399
403
  var toggleButtonTitle = provideLocalizationService(this)
400
404
  .toLanguageString(toggleCalendar, messages[toggleCalendar]);
401
405
  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
406
  var _b;
407
+ var onFocus = _a.onFocus, onBlur = _a.onBlur;
404
408
  return (React.createElement("span", { role: "group", "aria-expanded": _this.show, ref: function (span) { _this._element = span; }, className: classNames('k-input', 'k-datepicker', (_b = {},
405
409
  _b["k-input-" + (kendoThemeMaps.sizeMap[size] || size)] = size,
406
410
  _b["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
@@ -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>;
@@ -126,8 +126,8 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
126
126
  validate: PropTypes.Requireable<boolean>;
127
127
  valid: PropTypes.Requireable<boolean>;
128
128
  size: PropTypes.Requireable<"small" | "medium" | "large">;
129
- rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
130
- fillMode: PropTypes.Requireable<"solid" | "flat" | "outline">;
129
+ rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
130
+ fillMode: PropTypes.Requireable<"flat" | "solid" | "outline">;
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>;
@@ -146,8 +146,8 @@ export declare class DateTimePickerWithoutContext extends React.Component<DateTi
146
146
  valid: PropTypes.Requireable<boolean>;
147
147
  cancelButton: PropTypes.Requireable<boolean>;
148
148
  size: PropTypes.Requireable<"small" | "medium" | "large">;
149
- rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
150
- fillMode: PropTypes.Requireable<"solid" | "flat" | "outline">;
149
+ rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
150
+ fillMode: PropTypes.Requireable<"flat" | "solid" | "outline">;
151
151
  };
152
152
  /**
153
153
  * @hidden
@@ -167,8 +167,8 @@ export declare class DateTimePickerWithoutContext extends React.Component<DateTi
167
167
  cancelButton: boolean;
168
168
  dateInput: React.ComponentType<DateInputProps<any>>;
169
169
  size: "small" | "medium" | "large";
170
- rounded: "small" | "medium" | "large" | "full";
171
- fillMode: "solid" | "flat" | "outline";
170
+ rounded: "small" | "medium" | "full" | "large";
171
+ fillMode: "flat" | "solid" | "outline";
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,8 +328,8 @@ 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 = {},
@@ -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
74
  protected hasActiveButton(): boolean;
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;