@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
@@ -113,7 +113,7 @@ export declare class DatePickerWithoutContext extends React.Component<DatePicker
113
113
  second: PropTypes.Requireable<string>;
114
114
  timeZoneName: PropTypes.Requireable<string>;
115
115
  }>>;
116
- formatPlaceholder: PropTypes.Requireable<"narrow" | "short" | "wide" | "formatPattern" | PropTypes.InferProps<{
116
+ formatPlaceholder: PropTypes.Requireable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
117
117
  year: PropTypes.Requireable<string>;
118
118
  month: PropTypes.Requireable<string>;
119
119
  day: PropTypes.Requireable<string>;
@@ -143,16 +143,16 @@ export declare class DatePickerWithoutContext extends React.Component<DatePicker
143
143
  required: PropTypes.Requireable<boolean>;
144
144
  validate: PropTypes.Requireable<boolean>;
145
145
  valid: PropTypes.Requireable<boolean>;
146
- size: PropTypes.Requireable<"small" | "medium" | "large">;
147
- rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
148
- fillMode: PropTypes.Requireable<"solid" | "flat" | "outline">;
146
+ size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
147
+ rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>;
148
+ fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>;
149
149
  };
150
150
  /**
151
151
  * @hidden
152
152
  */
153
153
  static defaultProps: {
154
154
  defaultShow: boolean;
155
- defaultValue: any;
155
+ defaultValue: null;
156
156
  dateInput: React.ComponentType<DateInputProps<any>>;
157
157
  calendar: React.ComponentType<CalendarProps<any>>;
158
158
  toggleButton: React.ComponentType<ToggleButtonProps>;
@@ -167,9 +167,9 @@ export declare class DatePickerWithoutContext extends React.Component<DatePicker
167
167
  weekNumber: boolean;
168
168
  required: boolean;
169
169
  validityStyles: boolean;
170
- size: "small" | "medium" | "large";
171
- rounded: "small" | "medium" | "large" | "full";
172
- fillMode: "solid" | "flat" | "outline";
170
+ size: "small" | "medium" | "large" | null | undefined;
171
+ rounded: "small" | "medium" | "full" | "large" | null | undefined;
172
+ fillMode: "flat" | "outline" | "solid" | null | undefined;
173
173
  };
174
174
  /**
175
175
  * @hidden
@@ -188,46 +188,46 @@ export declare class DatePickerWithoutContext extends React.Component<DatePicker
188
188
  /**
189
189
  * Gets the wrapping element of the DatePickerWithoutContext.
190
190
  */
191
- readonly element: HTMLSpanElement | null;
191
+ get element(): HTMLSpanElement | null;
192
192
  /**
193
193
  * Gets the DateInput component inside the DatePicker component.
194
194
  */
195
- readonly dateInput: DateInput | null;
195
+ get dateInput(): DateInput | null;
196
196
  /**
197
197
  * Gets the Calendar component inside the DatePicker component.
198
198
  */
199
- readonly calendar: Calendar | null;
199
+ get calendar(): Calendar | null;
200
200
  /**
201
201
  * Gets the value of the DatePickerWithoutContext.
202
202
  */
203
- readonly value: Date | null;
203
+ get value(): Date | null;
204
204
  /**
205
205
  * Gets the popup state of the DatePickerWithoutContext.
206
206
  */
207
- readonly show: boolean;
207
+ get show(): boolean;
208
208
  /**
209
209
  * Gets the `name` property of the DatePickerWithoutContext.
210
210
  */
211
- readonly name: string | undefined;
212
- protected readonly min: Date;
213
- protected readonly max: Date;
214
- protected readonly dateInputComp: React.ComponentType<DateInputProps<any>>;
215
- protected readonly toggleButtonComp: React.ComponentType<ToggleButtonProps>;
216
- protected readonly calendarComp: React.ComponentType<CalendarProps<any>>;
217
- protected readonly popupComp: React.ComponentType<PopupProps>;
218
- protected readonly pickerWrapComp: React.ComponentType<PickerWrapProps>;
211
+ get name(): string | undefined;
212
+ protected get min(): Date;
213
+ protected get max(): Date;
214
+ protected get dateInputComp(): React.ComponentType<DateInputProps<any>>;
215
+ protected get toggleButtonComp(): React.ComponentType<ToggleButtonProps>;
216
+ protected get calendarComp(): React.ComponentType<CalendarProps<any>>;
217
+ protected get popupComp(): React.ComponentType<PopupProps>;
218
+ protected get pickerWrapComp(): React.ComponentType<PickerWrapProps>;
219
219
  /**
220
220
  * Represents the validity state into which the DatePicker is set.
221
221
  */
222
- readonly validity: FormComponentValidity;
222
+ get validity(): FormComponentValidity;
223
223
  /**
224
224
  * @hidden
225
225
  */
226
- protected readonly validityStyles: boolean;
226
+ protected get validityStyles(): boolean;
227
227
  /**
228
228
  * @hidden
229
229
  */
230
- protected readonly required: boolean;
230
+ protected get required(): boolean;
231
231
  /**
232
232
  * @hidden
233
233
  */
@@ -249,7 +249,7 @@ export declare class DatePickerWithoutContext extends React.Component<DatePicker
249
249
  */
250
250
  render(): JSX.Element;
251
251
  protected setCalendarRef: (calendar: any) => void;
252
- protected nextValue: (nextProps: DatePickerProps, nextState: DatePickerState) => Date;
252
+ protected nextValue: (nextProps: DatePickerProps, nextState: DatePickerState) => Date | null;
253
253
  protected nextShow: (nextProps: DatePickerProps, nextState: DatePickerState) => boolean;
254
254
  protected setShow(show: boolean): void;
255
255
  protected mergeTime(value: Date | null): Date | null;
@@ -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 {};
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
3
  import { DateInput } from '../dateinput/DateInput';
4
- import { MultiViewCalendar } from '../calendar/components/MultiViewCalendar';
4
+ import { MultiViewCalendar, MultiViewCalendarHandle } from '../calendar/components/MultiViewCalendar';
5
5
  import { SelectionRange } from '../calendar/models';
6
6
  import { DateRangePickerSettings } from './models';
7
7
  /**
@@ -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,11 @@ 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
+ * Gets the wrapping element of the DateRangePicker.
132
+ */
131
133
  }>>;
132
134
  focusedDate: PropTypes.Requireable<Date>;
133
135
  format: PropTypes.Requireable<string | PropTypes.InferProps<{
@@ -192,29 +194,29 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
192
194
  /**
193
195
  * Gets the wrapping element of the DateRangePicker.
194
196
  */
195
- readonly element: HTMLSpanElement | null;
197
+ get element(): HTMLSpanElement | null;
196
198
  /**
197
199
  * Gets the start DateInput component inside the DatePicker component.
198
200
  */
199
- readonly startDateInput: DateInput | null;
201
+ get startDateInput(): DateInput | null;
200
202
  /**
201
203
  * Gets the end DateInput component inside the DatePicker component.
202
204
  */
203
- readonly endDateInput: DateInput | null;
205
+ get endDateInput(): DateInput | null;
204
206
  /**
205
207
  * Gets the MultiVieCalendar inside the DateRangePicker.
206
208
  */
207
- readonly calendar: MultiViewCalendar | null;
209
+ get calendar(): MultiViewCalendar | null;
208
210
  /**
209
211
  * Gets the value of the DateRangePicker.
210
212
  */
211
- readonly value: SelectionRange;
213
+ get value(): SelectionRange;
212
214
  /**
213
215
  * Gets the popup state of the DateRangePicker.
214
216
  */
215
- readonly show: boolean;
216
- protected readonly min: Date;
217
- protected readonly max: Date;
217
+ get show(): boolean;
218
+ protected get min(): Date;
219
+ protected get max(): Date;
218
220
  /**
219
221
  * @hidden
220
222
  */
@@ -235,7 +237,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
235
237
  * @hidden
236
238
  */
237
239
  render(): JSX.Element;
238
- protected setCalendarRef: (calendar: any) => void;
240
+ protected setCalendarRef: (calendar: MultiViewCalendarHandle | null) => void;
239
241
  protected focusCalendarElement: () => void;
240
242
  protected focusDateInputElement(): void;
241
243
  protected calculateValue: (props: DateRangePickerProps, state: DateRangePickerState) => SelectionRange;
@@ -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
  */