@progress/kendo-react-dateinputs 5.14.0-dev.202305171438 → 5.14.0-dev.202305191608

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.
@@ -38,12 +38,15 @@ var kendo_react_common_2 = require("@progress/kendo-react-common");
38
38
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
39
39
  var package_metadata_1 = require("../package-metadata");
40
40
  var utils_1 = require("../utils");
41
+ var constants_1 = require("../common/constants");
41
42
  var messages_1 = require("../messages");
42
43
  var kendo_react_intl_1 = require("@progress/kendo-react-intl");
43
44
  var DateTimeSelector_1 = require("./DateTimeSelector");
44
45
  var utils_2 = require("../timepicker/utils");
45
46
  var utils_3 = require("../utils");
46
47
  var usePickerFloatingLabel_1 = require("../hooks/usePickerFloatingLabel");
48
+ var AdaptiveMode_1 = require("../common/AdaptiveMode");
49
+ var kendo_react_layout_1 = require("@progress/kendo-react-layout");
47
50
  /** @hidden */
48
51
  var DateTimePickerWithoutContext = /** @class */ (function (_super) {
49
52
  __extends(DateTimePickerWithoutContext, _super);
@@ -64,6 +67,31 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
64
67
  dateInputElement.focus();
65
68
  }
66
69
  };
70
+ _this.renderPicker = function () {
71
+ var _a = _this.props, disabled = _a.disabled, minTime = _a.minTime, maxTime = _a.maxTime, format = _a.format, calendar = _a.calendar, cancelButton = _a.cancelButton, weekNumber = _a.weekNumber, focusedDate = _a.focusedDate;
72
+ return (React.createElement(DateTimeSelector_1.DateTimeSelector, { ref: function (dateTimeSelector) { _this._dateTimeSelector = dateTimeSelector; }, cancelButton: cancelButton, steps: _this.props.steps, value: _this.value, onChange: _this.handleValueChange, onReject: _this.handleReject, disabled: disabled, weekNumber: weekNumber, min: _this.min, max: _this.max, minTime: minTime, maxTime: maxTime, focusedDate: focusedDate, format: format, calendar: calendar, mobileMode: _this.mobileMode, footerActions: !_this.mobileMode }));
73
+ };
74
+ _this.renderAdaptivePopup = function () {
75
+ var _a = _this.state.windowWidth, windowWidth = _a === void 0 ? 0 : _a;
76
+ var cancelText = (0, kendo_react_intl_1.provideLocalizationService)(_this)
77
+ .toLanguageString(messages_1.dateTimePickerCancel, messages_1.messages[messages_1.dateTimePickerCancel]);
78
+ var applyText = (0, kendo_react_intl_1.provideLocalizationService)(_this)
79
+ .toLanguageString(messages_1.dateTimePickerSet, messages_1.messages[messages_1.dateTimePickerSet]);
80
+ var actionSheetProps = {
81
+ expand: _this.show,
82
+ onClose: _this.handleBlur,
83
+ adaptiveTitle: _this.props.adaptiveTitle,
84
+ windowWidth: windowWidth,
85
+ footer: {
86
+ cancelText: cancelText,
87
+ onCancel: function (event) { var _a; return (_a = _this._dateTimeSelector) === null || _a === void 0 ? void 0 : _a.handleReject(event); },
88
+ applyText: applyText,
89
+ onApply: function (event) { var _a; return (_a = _this._dateTimeSelector) === null || _a === void 0 ? void 0 : _a.handleAccept(event); }
90
+ }
91
+ };
92
+ return (React.createElement(AdaptiveMode_1.AdaptiveMode, __assign({}, actionSheetProps),
93
+ React.createElement(kendo_react_layout_1.ActionSheetContent, { className: '!k-overflow-hidden' }, _this.renderPicker())));
94
+ };
67
95
  _this.handleReject = function () {
68
96
  _this.shouldFocusDateInput = true;
69
97
  _this.setShow(false);
@@ -75,7 +103,9 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
75
103
  });
76
104
  _this.valueDuringOnChange = event.value;
77
105
  _this.showDuringOnChange = false;
78
- _this.shouldFocusDateInput = true;
106
+ if (!_this.mobileMode) {
107
+ _this.shouldFocusDateInput = true;
108
+ }
79
109
  var onChange = _this.props.onChange;
80
110
  if (onChange) {
81
111
  onChange.call(undefined, {
@@ -132,6 +162,17 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
132
162
  };
133
163
  return _this;
134
164
  }
165
+ Object.defineProperty(DateTimePickerWithoutContext.prototype, "document", {
166
+ get: function () {
167
+ if (!kendo_react_common_2.canUseDOM) {
168
+ return;
169
+ }
170
+ // useful only for user actions
171
+ return (this.element && this.element.ownerDocument) || document;
172
+ },
173
+ enumerable: false,
174
+ configurable: true
175
+ });
135
176
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "element", {
136
177
  /**
137
178
  * Gets the wrapping element of the DateTimePicker.
@@ -191,6 +232,17 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
191
232
  enumerable: false,
192
233
  configurable: true
193
234
  });
235
+ Object.defineProperty(DateTimePickerWithoutContext.prototype, "mobileMode", {
236
+ /**
237
+ * The mobile mode of the ComboBox.
238
+ */
239
+ get: function () {
240
+ var isAdaptive = this.state.windowWidth && this.state.windowWidth <= constants_1.MOBILE_MEDIUM_DEVISE && this.props.adaptive;
241
+ return !!isAdaptive;
242
+ },
243
+ enumerable: false,
244
+ configurable: true
245
+ });
194
246
  Object.defineProperty(DateTimePickerWithoutContext.prototype, "min", {
195
247
  get: function () {
196
248
  return this.props.min !== undefined
@@ -268,10 +320,15 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
268
320
  * @hidden
269
321
  */
270
322
  DateTimePickerWithoutContext.prototype.componentDidMount = function () {
323
+ var _a;
324
+ this.observerResize = kendo_react_common_2.canUseDOM && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this));
271
325
  if (this.show) {
272
326
  // If defaultShow is true during the initial render, the popup is not aligned.
273
327
  this.forceUpdate();
274
328
  }
329
+ if (((_a = this.document) === null || _a === void 0 ? void 0 : _a.body) && this.observerResize) {
330
+ this.observerResize.observe(this.document.body);
331
+ }
275
332
  };
276
333
  /**
277
334
  * @hidden
@@ -293,14 +350,18 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
293
350
  * @hidden
294
351
  */
295
352
  DateTimePickerWithoutContext.prototype.componentWillUnmount = function () {
353
+ var _a;
296
354
  clearTimeout(this.nextTickId);
355
+ if (((_a = this.document) === null || _a === void 0 ? void 0 : _a.body) && this.observerResize) {
356
+ this.observerResize.disconnect();
357
+ }
297
358
  };
298
359
  /**
299
360
  * @hidden
300
361
  */
301
362
  DateTimePickerWithoutContext.prototype.render = function () {
302
363
  var _this = this;
303
- 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 ? kendo_react_popup_1.Popup : _e, calendar = _a.calendar;
364
+ 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, className = _a.className, width = _a.width, name = _a.name, validationMessage = _a.validationMessage, required = _a.required, validityStyles = _a.validityStyles, minTime = _a.minTime, maxTime = _a.maxTime, ariaLabelledBy = _a.ariaLabelledBy, ariaDescribedBy = _a.ariaDescribedBy, _e = _a.popup, PopupComponent = _e === void 0 ? kendo_react_popup_1.Popup : _e;
304
365
  var isValid = !this.validityStyles || this.validity.valid;
305
366
  var dataInputProps = {
306
367
  id: id,
@@ -333,30 +394,31 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
333
394
  var dateTimePicker = (React.createElement(kendo_react_common_1.AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.handleBlur, onSyncFocus: this.props.onFocus, onSyncBlur: this.props.onBlur }, function (_a) {
334
395
  var _b;
335
396
  var onFocus = _a.onFocus, onBlur = _a.onBlur;
336
- return (React.createElement("div", { ref: function (div) {
337
- _this._element = div;
338
- }, className: (0, kendo_react_common_1.classNames)('k-input', 'k-datetimepicker', (_b = {},
339
- _b["k-input-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
340
- _b["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
341
- _b["k-input-".concat(fillMode)] = fillMode,
342
- _b['k-invalid'] = !isValid,
343
- _b['k-required'] = _this.required,
344
- _b['k-disabled'] = _this.props.disabled,
345
- _b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
346
- React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: "combobox", ariaControls: _this._popupId }, dataInputProps)),
347
- React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'calendar', svgIcon: kendo_svg_icons_1.calendarIcon, onMouseDown: _this.handleIconMouseDown, onClick: _this.handleDateIconClick, title: (0, kendo_react_intl_1.provideLocalizationService)(_this)
348
- .toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector]), className: "k-input-button", rounded: null }, {
349
- 'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(_this)
350
- .toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector])
351
- })),
352
- React.createElement(PopupComponent, { show: _this.show, animate: _this.element !== null, anchor: _this.element, popupClass: "k-datetime-container k-reset", id: _this._popupId, anchorAlign: {
353
- horizontal: 'left',
354
- vertical: 'bottom'
355
- }, popupAlign: {
356
- horizontal: 'left',
357
- vertical: 'top'
358
- } },
359
- React.createElement(DateTimeSelector_1.DateTimeSelector, { ref: function (dateTimeSelector) { _this._dateTimeSelector = dateTimeSelector; }, cancelButton: cancelButton, steps: _this.props.steps, value: _this.value, onChange: _this.handleValueChange, onReject: _this.handleReject, disabled: disabled, weekNumber: weekNumber, min: _this.min, max: _this.max, minTime: minTime, maxTime: maxTime, focusedDate: focusedDate, format: format, calendar: calendar }))));
397
+ return (React.createElement(React.Fragment, null,
398
+ React.createElement("div", { ref: function (div) {
399
+ _this._element = div;
400
+ }, className: (0, kendo_react_common_1.classNames)('k-input', 'k-datetimepicker', (_b = {},
401
+ _b["k-input-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
402
+ _b["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
403
+ _b["k-input-".concat(fillMode)] = fillMode,
404
+ _b['k-invalid'] = !isValid,
405
+ _b['k-required'] = _this.required,
406
+ _b['k-disabled'] = _this.props.disabled,
407
+ _b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: !_this.mobileMode ? onFocus : undefined, onBlur: onBlur, onClick: _this.mobileMode ? _this.handleDateIconClick : undefined },
408
+ React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: "combobox", ariaControls: _this._popupId, readonly: _this.mobileMode }, dataInputProps)),
409
+ React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'calendar', svgIcon: kendo_svg_icons_1.calendarIcon, onMouseDown: _this.handleIconMouseDown, onClick: _this.handleDateIconClick, title: (0, kendo_react_intl_1.provideLocalizationService)(_this)
410
+ .toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector]), className: "k-input-button", rounded: null }, {
411
+ 'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(_this)
412
+ .toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector])
413
+ })),
414
+ React.createElement(PopupComponent, { show: _this.show, animate: _this.element !== null, anchor: _this.element, popupClass: "k-datetime-container k-reset", id: _this._popupId, anchorAlign: {
415
+ horizontal: 'left',
416
+ vertical: 'bottom'
417
+ }, popupAlign: {
418
+ horizontal: 'left',
419
+ vertical: 'top'
420
+ } }, !_this.mobileMode && _this.renderPicker())),
421
+ _this.mobileMode && _this.renderAdaptivePopup()));
360
422
  }));
361
423
  return this.props.label
362
424
  ? (React.createElement(usePickerFloatingLabel_1.PickerFloatingLabel, { dateInput: this._dateInput, label: this.props.label, editorId: id, editorValid: isValid, editorDisabled: this.props.disabled, children: dateTimePicker, style: { width: this.props.width } }))
@@ -375,6 +437,14 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
375
437
  clearTimeout(this.nextTickId);
376
438
  this.nextTickId = window.setTimeout(function () { return f(); });
377
439
  };
440
+ DateTimePickerWithoutContext.prototype.calculateMedia = function (entries) {
441
+ for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
442
+ var entry = entries_1[_i];
443
+ this.setState({ windowWidth: entry.target.clientWidth });
444
+ }
445
+ ;
446
+ };
447
+ ;
378
448
  /**
379
449
  * @hidden
380
450
  */
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { DateFormatOptions } from '@progress/kendo-react-intl';
2
+ import { LocalizationService, DateFormatOptions } from '@progress/kendo-react-intl';
3
3
  import { Calendar, CalendarProps } from '../calendar/components/Calendar';
4
4
  import { TimePart } from '../timepicker/TimePart';
5
5
  import { DateInputIncrementalSteps } from '../dateinput/models';
@@ -41,6 +41,8 @@ export interface DateTimeSelectorProps<T = DateTimeSelector> {
41
41
  format?: string | DateFormatOptions;
42
42
  calendar?: React.ComponentType<CalendarProps<any>>;
43
43
  steps?: DateInputIncrementalSteps;
44
+ mobileMode?: boolean;
45
+ footerActions?: boolean;
44
46
  }
45
47
  /**
46
48
  * @hidden
@@ -54,6 +56,12 @@ export interface DateTimeSelectorState {
54
56
  * @hidden
55
57
  */
56
58
  export declare class DateTimeSelector extends React.Component<DateTimeSelectorProps, DateTimeSelectorState> {
59
+ /**
60
+ * @hidden
61
+ */
62
+ static defaultProps: {
63
+ footerActions: boolean;
64
+ };
57
65
  private _calendar;
58
66
  private _timePart;
59
67
  private _cancelButton;
@@ -63,6 +71,7 @@ export declare class DateTimeSelector extends React.Component<DateTimeSelectorPr
63
71
  get calendar(): Calendar | null;
64
72
  get timePart(): TimePart | null;
65
73
  protected get hasDateValue(): boolean;
74
+ protected get localizationService(): LocalizationService;
66
75
  constructor(props: DateTimeSelectorProps);
67
76
  componentDidUpdate(): void;
68
77
  render(): JSX.Element;
@@ -75,8 +84,9 @@ export declare class DateTimeSelector extends React.Component<DateTimeSelectorPr
75
84
  protected mergeTime(current: Date | null, candidate: Date | null): Date | null;
76
85
  protected mergeDate(candidate: Date | null, value: Date): Date | null;
77
86
  protected move: (direction: 'left' | 'right') => void;
78
- private handleReject;
79
- private handleAccept;
87
+ private dateTimeFooter;
88
+ handleReject: (event: React.SyntheticEvent<any>) => void;
89
+ handleAccept: (event: React.SyntheticEvent<any>, timeOverride?: Date) => void;
80
90
  private handleNowClick;
81
91
  private handleCalendarValueChange;
82
92
  private handleTimeListContainerChange;
@@ -78,6 +78,14 @@ var DateTimeSelector = /** @class */ (function (_super) {
78
78
  _this.shouldFocusPart = true;
79
79
  _this.setState({ tab: nextPart });
80
80
  };
81
+ _this.dateTimeFooter = function () {
82
+ var cancelButton = _this.props.cancelButton;
83
+ var cancelMessage = _this.localizationService.toLanguageString(messages_1.dateTimePickerCancel, messages_1.messages[messages_1.dateTimePickerCancel]);
84
+ var setMessage = _this.localizationService.toLanguageString(messages_1.dateTimePickerSet, messages_1.messages[messages_1.dateTimePickerSet]);
85
+ return (React.createElement("div", { className: "k-datetime-footer k-actions k-actions-stretched " },
86
+ cancelButton && React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", ref: function (btn) { _this._cancelButton = btn; }, className: "k-time-cancel", onClick: _this.handleReject, title: cancelMessage }, { 'aria-label': cancelMessage }), cancelMessage),
87
+ React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", themeColor: "primary", ref: function (btn) { _this._acceptButton = btn; }, className: "k-time-accept", disabled: !_this.hasDateValue, onClick: _this.handleAccept, title: setMessage }, { 'aria-label': setMessage }), setMessage)));
88
+ };
81
89
  _this.handleReject = function (event) {
82
90
  _this.setState({ dateValue: _this.props.value, timeValue: _this.props.value || utils_2.MIDNIGHT_DATE });
83
91
  var value = _this.mergeDate(_this.props.value, _this.props.value || utils_2.MIDNIGHT_DATE);
@@ -178,6 +186,13 @@ var DateTimeSelector = /** @class */ (function (_super) {
178
186
  enumerable: false,
179
187
  configurable: true
180
188
  });
189
+ Object.defineProperty(DateTimeSelector.prototype, "localizationService", {
190
+ get: function () {
191
+ return (0, kendo_react_intl_1.provideLocalizationService)(this);
192
+ },
193
+ enumerable: false,
194
+ configurable: true
195
+ });
181
196
  DateTimeSelector.prototype.componentDidUpdate = function () {
182
197
  if (this.shouldFocusPart) {
183
198
  this.focus({ preventScroll: true });
@@ -186,17 +201,14 @@ var DateTimeSelector = /** @class */ (function (_super) {
186
201
  };
187
202
  DateTimeSelector.prototype.render = function () {
188
203
  var _this = this;
189
- var _a = this.props, disabled = _a.disabled, cancelButton = _a.cancelButton, min = _a.min, max = _a.max, weekNumber = _a.weekNumber, focusedDate = _a.focusedDate, format = _a.format;
204
+ var _a = this.props, disabled = _a.disabled, min = _a.min, max = _a.max, weekNumber = _a.weekNumber, focusedDate = _a.focusedDate, format = _a.format, mobileMode = _a.mobileMode, footerActions = _a.footerActions;
190
205
  var rootClassName = (0, kendo_react_common_1.classNames)({
191
206
  'k-date-tab': this.state.tab === 'date',
192
207
  'k-time-tab': this.state.tab === 'time',
193
208
  'k-disabled': disabled
194
209
  }, 'k-datetime-wrap');
195
- var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
196
- var dateMessage = localizationService.toLanguageString(messages_1.date, messages_1.messages[messages_1.date]);
197
- var timeMessage = localizationService.toLanguageString(messages_1.time, messages_1.messages[messages_1.time]);
198
- var cancelMessage = localizationService.toLanguageString(messages_1.dateTimePickerCancel, messages_1.messages[messages_1.dateTimePickerCancel]);
199
- var setMessage = localizationService.toLanguageString(messages_1.dateTimePickerSet, messages_1.messages[messages_1.dateTimePickerSet]);
210
+ var dateMessage = this.localizationService.toLanguageString(messages_1.date, messages_1.messages[messages_1.date]);
211
+ var timeMessage = this.localizationService.toLanguageString(messages_1.time, messages_1.messages[messages_1.time]);
200
212
  var calendarProps = {
201
213
  min: min,
202
214
  max: max,
@@ -216,10 +228,9 @@ var DateTimeSelector = /** @class */ (function (_super) {
216
228
  React.createElement("div", { className: "k-datetime-calendar-wrap", ref: function (e) { return _this._calendarWrap = e; } }, this.props.calendar ?
217
229
  React.createElement(this.props.calendar, __assign({}, calendarProps)) :
218
230
  React.createElement(Calendar_1.Calendar, __assign({ ref: function (calendar) { _this._calendar = calendar; } }, calendarProps))),
219
- React.createElement("div", { className: "k-datetime-time-wrap" }, React.createElement(TimePart_1.TimePart, { key: 1, onNowClick: this.handleNowClick, disabled: disabled || this.state.tab !== 'time', ref: function (timePart) { _this._timePart = timePart; }, min: this.minTime || utils_1.MIN_TIME, max: this.maxTime || utils_1.MAX_TIME, steps: this.props.steps, value: this.state.timeValue, format: format, onChange: this.handleTimeListContainerChange, onMount: this.handleTimePartMount }))),
220
- React.createElement("div", { className: "k-datetime-footer k-actions k-actions-stretched " },
221
- cancelButton && React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", ref: function (btn) { _this._cancelButton = btn; }, className: "k-time-cancel", onClick: this.handleReject, title: cancelMessage }, { 'aria-label': cancelMessage }), cancelMessage),
222
- React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", themeColor: "primary", ref: function (btn) { _this._acceptButton = btn; }, className: "k-time-accept", disabled: !this.hasDateValue, onClick: this.handleAccept, title: setMessage }, { 'aria-label': setMessage }), setMessage))));
231
+ React.createElement("div", { className: "k-datetime-time-wrap" },
232
+ React.createElement("div", { className: mobileMode ? 'k-reset k-timeselector-lg k-timeselector' : '' }, React.createElement(TimePart_1.TimePart, { key: 1, onNowClick: this.handleNowClick, disabled: disabled || this.state.tab !== 'time', ref: function (timePart) { _this._timePart = timePart; }, min: this.minTime || utils_1.MIN_TIME, max: this.maxTime || utils_1.MAX_TIME, steps: this.props.steps, value: this.state.timeValue, format: format, onChange: this.handleTimeListContainerChange, onMount: this.handleTimePartMount, mobileMode: mobileMode })))),
233
+ footerActions && this.dateTimeFooter()));
223
234
  };
224
235
  Object.defineProperty(DateTimeSelector.prototype, "minTime", {
225
236
  get: function () {
@@ -257,6 +268,12 @@ var DateTimeSelector = /** @class */ (function (_super) {
257
268
  DateTimeSelector.prototype.mergeDate = function (candidate, value) {
258
269
  return candidate ? (0, utils_1.setTime)(candidate || (0, utils_1.getToday)(), value) : value;
259
270
  };
271
+ /**
272
+ * @hidden
273
+ */
274
+ DateTimeSelector.defaultProps = {
275
+ footerActions: true
276
+ };
260
277
  return DateTimeSelector;
261
278
  }(React.Component));
262
279
  exports.DateTimeSelector = DateTimeSelector;
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-dateinputs',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1684331711,
11
+ publishDate: 1684510606,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
14
  };