@progress/kendo-react-dateinputs 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/dist/es/PopupSettings.js +1 -0
- package/dist/es/calendar/components/Calendar.d.ts +10 -10
- package/dist/es/calendar/components/Calendar.js +26 -12
- package/dist/es/calendar/components/CalendarCell.js +7 -3
- package/dist/es/calendar/components/CalendarHeaderTitle.js +7 -3
- package/dist/es/calendar/components/CalendarNavigationItem.js +7 -3
- package/dist/es/calendar/components/CalendarWeekCell.js +7 -3
- package/dist/es/calendar/components/Header.d.ts +5 -4
- package/dist/es/calendar/components/Header.js +8 -6
- package/dist/es/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/es/calendar/components/HorizontalViewList.js +8 -5
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +13 -13
- package/dist/es/calendar/components/MultiViewCalendar.js +24 -15
- package/dist/es/calendar/components/Navigation.d.ts +1 -1
- package/dist/es/calendar/components/Navigation.js +13 -6
- package/dist/es/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/es/calendar/components/TodayCommand.js +10 -6
- package/dist/es/calendar/components/View.d.ts +11 -11
- package/dist/es/calendar/components/View.js +17 -13
- package/dist/es/calendar/components/ViewList.d.ts +6 -6
- package/dist/es/calendar/components/ViewList.js +19 -9
- package/dist/es/calendar/models/ActiveView.js +1 -0
- package/dist/es/calendar/models/CalendarSettings.js +1 -0
- package/dist/es/calendar/models/CellContext.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarMode.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarSettings.js +1 -0
- package/dist/es/calendar/models/SelectionRangeEnd.js +1 -0
- package/dist/es/calendar/models/ViewService.js +1 -0
- package/dist/es/calendar/services/BusViewService.js +1 -1
- package/dist/es/calendar/services/CenturyViewService.js +2 -2
- package/dist/es/calendar/services/DOMService.js +24 -6
- package/dist/es/calendar/services/DecadeViewService.js +2 -2
- package/dist/es/calendar/services/MonthViewService.js +2 -2
- package/dist/es/calendar/services/NavigationService.js +1 -1
- package/dist/es/calendar/services/ScrollSyncService.js +5 -1
- package/dist/es/calendar/services/YearViewService.js +2 -2
- package/dist/es/dateinput/DateInput.d.ts +24 -20
- package/dist/es/dateinput/DateInput.js +32 -19
- package/dist/es/dateinput/models/DateInputSettings.js +1 -0
- package/dist/es/dateinput/models/format-placeholder.js +1 -0
- package/dist/es/dateinput/models/incremental-steps.js +1 -0
- package/dist/es/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/es/dateinput/models/kendo-date.js +2 -2
- package/dist/es/dateinput/models/mask.js +1 -0
- package/dist/es/dateinput/models/selection.js +1 -0
- package/dist/es/dateinput/utils.d.ts +1 -1
- package/dist/es/datepicker/DatePicker.d.ts +25 -25
- package/dist/es/datepicker/DatePicker.js +28 -23
- package/dist/es/datepicker/models/DatePickerSettings.js +1 -0
- package/dist/es/datepicker/models/index.js +1 -0
- package/dist/es/daterangepicker/DateRangePicker.d.ts +12 -12
- package/dist/es/daterangepicker/DateRangePicker.js +16 -14
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerSettings.js +1 -0
- package/dist/es/daterangepicker/models/index.js +1 -0
- package/dist/es/datetimepicker/DateTimePicker.d.ts +19 -19
- package/dist/es/datetimepicker/DateTimePicker.js +33 -18
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +7 -7
- package/dist/es/datetimepicker/DateTimeSelector.js +17 -7
- package/dist/es/datetimepicker/models/DateTimePickerSettings.js +1 -0
- package/dist/es/datetimepicker/models/index.js +1 -0
- package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/es/messages/index.d.ts +21 -21
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeList.d.ts +8 -8
- package/dist/es/timepicker/TimeList.js +33 -13
- package/dist/es/timepicker/TimePart.d.ts +10 -10
- package/dist/es/timepicker/TimePart.js +14 -9
- package/dist/es/timepicker/TimePicker.d.ts +22 -22
- package/dist/es/timepicker/TimePicker.js +27 -22
- package/dist/es/timepicker/TimeSelector.d.ts +6 -6
- package/dist/es/timepicker/TimeSelector.js +11 -5
- package/dist/es/timepicker/models/IncrementalSteps.js +1 -0
- package/dist/es/timepicker/models/ListItem.js +1 -0
- package/dist/es/timepicker/models/ListService.js +1 -0
- package/dist/es/timepicker/models/ListServiceSettings.js +1 -0
- package/dist/es/timepicker/models/TimePickerSettings.js +1 -0
- package/dist/es/timepicker/services/DOMService.js +2 -0
- package/dist/es/timepicker/services/DayPeriodService.js +9 -3
- package/dist/es/timepicker/services/HoursService.js +14 -5
- package/dist/es/timepicker/services/MinutesService.js +12 -6
- package/dist/es/timepicker/services/SecondsService.js +12 -6
- package/dist/es/timepicker/utils.d.ts +4 -4
- package/dist/es/utils.d.ts +1 -1
- package/dist/es/utils.js +10 -1
- package/dist/es/virtualization/Virtualization.d.ts +8 -7
- package/dist/es/virtualization/Virtualization.js +22 -12
- package/dist/es/virtualization/services/RowHeightService.js +10 -1
- package/dist/es/virtualization/services/ScrollerService.js +9 -3
- package/dist/npm/calendar/components/Calendar.d.ts +10 -10
- package/dist/npm/calendar/components/Calendar.js +53 -38
- package/dist/npm/calendar/components/CalendarCell.js +9 -4
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
- package/dist/npm/calendar/components/CalendarNavigationItem.js +9 -4
- package/dist/npm/calendar/components/CalendarWeekCell.js +9 -4
- package/dist/npm/calendar/components/Header.d.ts +5 -4
- package/dist/npm/calendar/components/Header.js +11 -8
- package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/npm/calendar/components/HorizontalViewList.js +11 -7
- package/dist/npm/calendar/components/MultiViewCalendar.d.ts +13 -13
- package/dist/npm/calendar/components/MultiViewCalendar.js +62 -52
- package/dist/npm/calendar/components/Navigation.d.ts +1 -1
- package/dist/npm/calendar/components/Navigation.js +18 -10
- package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/npm/calendar/components/TodayCommand.js +16 -11
- package/dist/npm/calendar/components/View.d.ts +11 -11
- package/dist/npm/calendar/components/View.js +27 -22
- package/dist/npm/calendar/components/ViewList.d.ts +6 -6
- package/dist/npm/calendar/components/ViewList.js +29 -18
- package/dist/npm/calendar/models/CalendarViewEnum.js +1 -0
- package/dist/npm/calendar/models/NavigationAction.js +1 -0
- package/dist/npm/calendar/models/SelectionRange.js +1 -0
- package/dist/npm/calendar/models/index.js +4 -3
- package/dist/npm/calendar/services/BusViewService.js +3 -2
- package/dist/npm/calendar/services/CenturyViewService.js +40 -39
- package/dist/npm/calendar/services/DOMService.js +34 -15
- package/dist/npm/calendar/services/DecadeViewService.js +34 -33
- package/dist/npm/calendar/services/MonthViewService.js +38 -37
- package/dist/npm/calendar/services/NavigationService.js +2 -1
- package/dist/npm/calendar/services/ScrollSyncService.js +6 -1
- package/dist/npm/calendar/services/WeekNamesService.js +2 -1
- package/dist/npm/calendar/services/YearViewService.js +35 -34
- package/dist/npm/calendar/services/index.js +10 -9
- package/dist/npm/common/PickerWrap.js +2 -1
- package/dist/npm/dateinput/DateInput.d.ts +24 -20
- package/dist/npm/dateinput/DateInput.js +51 -37
- package/dist/npm/dateinput/models/index.js +3 -2
- package/dist/npm/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/npm/dateinput/models/kendo-date.js +14 -13
- package/dist/npm/dateinput/models/mask.js +2 -0
- package/dist/npm/dateinput/utils.d.ts +1 -1
- package/dist/npm/dateinput/utils.js +9 -4
- package/dist/npm/datepicker/DatePicker.d.ts +25 -25
- package/dist/npm/datepicker/DatePicker.js +42 -36
- package/dist/npm/datepicker/ToggleButton.js +1 -0
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +12 -12
- package/dist/npm/daterangepicker/DateRangePicker.js +34 -31
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +19 -19
- package/dist/npm/datetimepicker/DateTimePicker.js +46 -30
- package/dist/npm/datetimepicker/DateTimeSelector.d.ts +7 -7
- package/dist/npm/datetimepicker/DateTimeSelector.js +26 -15
- package/dist/npm/defaults.js +1 -0
- package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/npm/hooks/usePickerFloatingLabel.js +6 -3
- package/dist/npm/main.js +22 -21
- package/dist/npm/messages/index.d.ts +21 -21
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/timepicker/TimeList.d.ts +8 -8
- package/dist/npm/timepicker/TimeList.js +39 -18
- package/dist/npm/timepicker/TimePart.d.ts +10 -10
- package/dist/npm/timepicker/TimePart.js +25 -19
- package/dist/npm/timepicker/TimePicker.d.ts +22 -22
- package/dist/npm/timepicker/TimePicker.js +43 -37
- package/dist/npm/timepicker/TimeSelector.d.ts +6 -6
- package/dist/npm/timepicker/TimeSelector.js +22 -15
- package/dist/npm/timepicker/models/TimePart.js +1 -0
- package/dist/npm/timepicker/models/index.js +2 -1
- package/dist/npm/timepicker/services/DOMService.js +7 -4
- package/dist/npm/timepicker/services/DayPeriodService.js +11 -4
- package/dist/npm/timepicker/services/HoursService.js +21 -11
- package/dist/npm/timepicker/services/MinutesService.js +17 -10
- package/dist/npm/timepicker/services/SecondsService.js +17 -10
- package/dist/npm/timepicker/services/index.js +6 -5
- package/dist/npm/timepicker/utils.d.ts +4 -4
- package/dist/npm/timepicker/utils.js +30 -20
- package/dist/npm/utils.d.ts +1 -1
- package/dist/npm/utils.js +43 -20
- package/dist/npm/virtualization/Virtualization.d.ts +8 -7
- package/dist/npm/virtualization/Virtualization.js +26 -15
- package/dist/npm/virtualization/services/RowHeightService.js +11 -1
- package/dist/npm/virtualization/services/ScrollerService.js +10 -3
- package/dist/npm/virtualization/services/index.js +5 -4
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +13 -13
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.DateRangePicker = exports.DateRangePickerPropsContext = exports.DateRangePickerWithoutContext = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_react_popup_1 = require("@progress/kendo-react-popup");
|
|
@@ -48,9 +51,9 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
48
51
|
_this._calendar = null;
|
|
49
52
|
_this._startDateInput = React.createRef();
|
|
50
53
|
_this._endDateInput = React.createRef();
|
|
51
|
-
_this._popupId = kendo_react_common_1.guid();
|
|
52
|
-
_this._startInputId = kendo_react_common_1.guid();
|
|
53
|
-
_this._endInputId = kendo_react_common_1.guid();
|
|
54
|
+
_this._popupId = (0, kendo_react_common_1.guid)();
|
|
55
|
+
_this._startInputId = (0, kendo_react_common_1.guid)();
|
|
56
|
+
_this._endInputId = (0, kendo_react_common_1.guid)();
|
|
54
57
|
_this.shouldFocusDateInput = false;
|
|
55
58
|
_this.shouldFocusCalendar = false;
|
|
56
59
|
/**
|
|
@@ -128,13 +131,13 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
128
131
|
_this.handleEndChange = function (event) {
|
|
129
132
|
var value = {
|
|
130
133
|
start: _this.value.start,
|
|
131
|
-
end: kendo_date_math_1.cloneDate(event.value || undefined)
|
|
134
|
+
end: (0, kendo_date_math_1.cloneDate)(event.value || undefined)
|
|
132
135
|
};
|
|
133
136
|
_this.handleChange(value, event);
|
|
134
137
|
};
|
|
135
138
|
_this.handleStartChange = function (event) {
|
|
136
139
|
var value = {
|
|
137
|
-
start: kendo_date_math_1.cloneDate(event.value || undefined),
|
|
140
|
+
start: (0, kendo_date_math_1.cloneDate)(event.value || undefined),
|
|
138
141
|
end: _this.value.end
|
|
139
142
|
};
|
|
140
143
|
_this.handleChange(value, event);
|
|
@@ -193,7 +196,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
193
196
|
}
|
|
194
197
|
_this.valueDuringOnChange = undefined;
|
|
195
198
|
};
|
|
196
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
199
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
197
200
|
_this.state = {
|
|
198
201
|
show: _this.props.show || _this.props.defaultShow || DateRangePickerWithoutContext.defaultProps.defaultShow,
|
|
199
202
|
value: _this.props.value || _this.props.defaultValue || DateRangePickerWithoutContext.defaultProps.defaultValue
|
|
@@ -211,7 +214,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
211
214
|
get: function () {
|
|
212
215
|
return this._element;
|
|
213
216
|
},
|
|
214
|
-
enumerable:
|
|
217
|
+
enumerable: false,
|
|
215
218
|
configurable: true
|
|
216
219
|
});
|
|
217
220
|
Object.defineProperty(DateRangePickerWithoutContext.prototype, "startDateInput", {
|
|
@@ -221,7 +224,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
221
224
|
get: function () {
|
|
222
225
|
return this._startDateInput.current;
|
|
223
226
|
},
|
|
224
|
-
enumerable:
|
|
227
|
+
enumerable: false,
|
|
225
228
|
configurable: true
|
|
226
229
|
});
|
|
227
230
|
Object.defineProperty(DateRangePickerWithoutContext.prototype, "endDateInput", {
|
|
@@ -231,7 +234,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
231
234
|
get: function () {
|
|
232
235
|
return this._endDateInput.current;
|
|
233
236
|
},
|
|
234
|
-
enumerable:
|
|
237
|
+
enumerable: false,
|
|
235
238
|
configurable: true
|
|
236
239
|
});
|
|
237
240
|
Object.defineProperty(DateRangePickerWithoutContext.prototype, "calendar", {
|
|
@@ -241,7 +244,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
241
244
|
get: function () {
|
|
242
245
|
return this._calendar;
|
|
243
246
|
},
|
|
244
|
-
enumerable:
|
|
247
|
+
enumerable: false,
|
|
245
248
|
configurable: true
|
|
246
249
|
});
|
|
247
250
|
Object.defineProperty(DateRangePickerWithoutContext.prototype, "value", {
|
|
@@ -256,7 +259,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
256
259
|
: this.state.value;
|
|
257
260
|
return value || models_1.EMPTY_SELECTIONRANGE;
|
|
258
261
|
},
|
|
259
|
-
enumerable:
|
|
262
|
+
enumerable: false,
|
|
260
263
|
configurable: true
|
|
261
264
|
});
|
|
262
265
|
Object.defineProperty(DateRangePickerWithoutContext.prototype, "show", {
|
|
@@ -270,7 +273,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
270
273
|
? this.props.show
|
|
271
274
|
: this.state.show;
|
|
272
275
|
},
|
|
273
|
-
enumerable:
|
|
276
|
+
enumerable: false,
|
|
274
277
|
configurable: true
|
|
275
278
|
});
|
|
276
279
|
Object.defineProperty(DateRangePickerWithoutContext.prototype, "min", {
|
|
@@ -279,7 +282,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
279
282
|
? this.props.min
|
|
280
283
|
: DateRangePickerWithoutContext.defaultProps.min;
|
|
281
284
|
},
|
|
282
|
-
enumerable:
|
|
285
|
+
enumerable: false,
|
|
283
286
|
configurable: true
|
|
284
287
|
});
|
|
285
288
|
Object.defineProperty(DateRangePickerWithoutContext.prototype, "max", {
|
|
@@ -288,7 +291,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
288
291
|
? this.props.max
|
|
289
292
|
: DateRangePickerWithoutContext.defaultProps.max;
|
|
290
293
|
},
|
|
291
|
-
enumerable:
|
|
294
|
+
enumerable: false,
|
|
292
295
|
configurable: true
|
|
293
296
|
});
|
|
294
297
|
/**
|
|
@@ -327,30 +330,30 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
327
330
|
var value = this.value || models_1.EMPTY_SELECTIONRANGE;
|
|
328
331
|
var startDateInputId = (this.props.startDateInputSettings || {}).id || this._startInputId;
|
|
329
332
|
var endDateInputId = (this.props.endDateInputSettings || {}).id || this._endInputId;
|
|
330
|
-
var rootClassName = kendo_react_common_1.classNames('k-daterangepicker', {
|
|
333
|
+
var rootClassName = (0, kendo_react_common_1.classNames)('k-daterangepicker', {
|
|
331
334
|
'k-disabled': this.props.disabled
|
|
332
335
|
}, this.props.className);
|
|
333
|
-
var localizationService = kendo_react_intl_1.provideLocalizationService(this);
|
|
336
|
+
var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
|
|
334
337
|
var startMessage = localizationService.toLanguageString(messages_1.start, messages_1.messages[messages_1.start]);
|
|
335
338
|
var endMessage = localizationService.toLanguageString(messages_1.end, messages_1.messages[messages_1.end]);
|
|
336
339
|
var separatorMessage = localizationService.toLanguageString(messages_1.separator, messages_1.messages[messages_1.separator]);
|
|
337
|
-
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 });
|
|
338
|
-
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 });
|
|
339
|
-
var popupProps = __assign({ animate: this._element !== null, anchor: this._element, id: this._popupId, anchorAlign: {
|
|
340
|
+
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 });
|
|
341
|
+
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 });
|
|
342
|
+
var popupProps = __assign(__assign({ animate: this._element !== null, anchor: this._element, id: this._popupId, anchorAlign: {
|
|
340
343
|
horizontal: 'left',
|
|
341
344
|
vertical: 'bottom'
|
|
342
345
|
}, popupAlign: {
|
|
343
346
|
horizontal: 'left',
|
|
344
347
|
vertical: 'top'
|
|
345
|
-
} }, this.props.popupSettings, { show: this.show });
|
|
346
|
-
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 });
|
|
348
|
+
} }, this.props.popupSettings), { show: this.show });
|
|
349
|
+
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 });
|
|
347
350
|
var calendar = this.props.calendar
|
|
348
351
|
? React.createElement(this.props.calendar, __assign({}, calendarProps))
|
|
349
352
|
: React.createElement(MultiViewCalendar_1.MultiViewCalendar, __assign({}, calendarProps, { ref: this.setCalendarRef }));
|
|
350
|
-
var reverseButton = (React.createElement(kendo_react_buttons_1.Button, __assign({ className: "k-select", fillMode: "flat", title: kendo_react_intl_1.provideLocalizationService(this)
|
|
353
|
+
var reverseButton = (React.createElement(kendo_react_buttons_1.Button, __assign({ className: "k-select", fillMode: "flat", title: (0, kendo_react_intl_1.provideLocalizationService)(this)
|
|
351
354
|
.toLanguageString(messages_1.swapStartEnd, messages_1.messages[messages_1.swapStartEnd]), onMouseDown: this.handleReverseMouseDown, onClick: this.handleReverseClick }, {
|
|
352
355
|
'aria-controls': startDateInputId + ' ' + endDateInputId,
|
|
353
|
-
'aria-label': kendo_react_intl_1.provideLocalizationService(this)
|
|
356
|
+
'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(this)
|
|
354
357
|
.toLanguageString(messages_1.swapStartEnd, messages_1.messages[messages_1.swapStartEnd])
|
|
355
358
|
}),
|
|
356
359
|
React.createElement("span", { style: { transform: 'rotate(90deg)' }, className: "k-icon k-i-arrows-swap" })));
|
|
@@ -411,8 +414,8 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
411
414
|
className: PropTypes.string,
|
|
412
415
|
defaultShow: PropTypes.bool,
|
|
413
416
|
defaultValue: PropTypes.shape({
|
|
414
|
-
start: utils_1.nullable(PropTypes.instanceOf(Date).isRequired),
|
|
415
|
-
end: utils_1.nullable(PropTypes.instanceOf(Date).isRequired)
|
|
417
|
+
start: (0, utils_1.nullable)(PropTypes.instanceOf(Date).isRequired),
|
|
418
|
+
end: (0, utils_1.nullable)(PropTypes.instanceOf(Date).isRequired)
|
|
416
419
|
}),
|
|
417
420
|
disabled: PropTypes.bool,
|
|
418
421
|
endDateInputSettings: PropTypes.shape(DateInput_1.DateInputWithoutContext.propTypes),
|
|
@@ -452,8 +455,8 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
452
455
|
swapButton: PropTypes.any,
|
|
453
456
|
tabIndex: PropTypes.number,
|
|
454
457
|
value: PropTypes.shape({
|
|
455
|
-
start: utils_1.nullable(PropTypes.instanceOf(Date).isRequired),
|
|
456
|
-
end: utils_1.nullable(PropTypes.instanceOf(Date).isRequired)
|
|
458
|
+
start: (0, utils_1.nullable)(PropTypes.instanceOf(Date).isRequired),
|
|
459
|
+
end: (0, utils_1.nullable)(PropTypes.instanceOf(Date).isRequired)
|
|
457
460
|
})
|
|
458
461
|
};
|
|
459
462
|
/**
|
|
@@ -478,7 +481,7 @@ exports.DateRangePickerWithoutContext = DateRangePickerWithoutContext;
|
|
|
478
481
|
*
|
|
479
482
|
* For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
|
|
480
483
|
*/
|
|
481
|
-
exports.DateRangePickerPropsContext = kendo_react_common_1.createPropsContext();
|
|
484
|
+
exports.DateRangePickerPropsContext = (0, kendo_react_common_1.createPropsContext)();
|
|
482
485
|
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
483
486
|
/**
|
|
484
487
|
* Represents the KendoReact DateRangePicker Component.
|
|
@@ -486,6 +489,6 @@ exports.DateRangePickerPropsContext = kendo_react_common_1.createPropsContext();
|
|
|
486
489
|
* Accepts properties of type [DateRangePickerProps]({% slug api_dateinputs_daterangepickerprops %}).
|
|
487
490
|
* Obtaining the `ref` returns an object of type [DateRangePickerHandle]({% slug api_dateinputs_daterangepickerhandle %}).
|
|
488
491
|
*/
|
|
489
|
-
exports.DateRangePicker = kendo_react_common_1.withPropsContext(exports.DateRangePickerPropsContext, DateRangePickerWithoutContext);
|
|
492
|
+
exports.DateRangePicker = (0, kendo_react_common_1.withPropsContext)(exports.DateRangePickerPropsContext, DateRangePickerWithoutContext);
|
|
490
493
|
exports.DateRangePicker.displayName = 'KendoReactDateRangePicker';
|
|
491
|
-
kendo_react_intl_1.registerForLocalization(DateRangePickerWithoutContext);
|
|
494
|
+
(0, kendo_react_intl_1.registerForLocalization)(DateRangePickerWithoutContext);
|
|
@@ -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<"
|
|
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" | "
|
|
150
|
-
fillMode: PropTypes.Requireable<"
|
|
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:
|
|
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" | "
|
|
171
|
-
fillMode: "
|
|
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
|
-
|
|
190
|
+
get element(): HTMLSpanElement | null;
|
|
191
191
|
/**
|
|
192
192
|
* Gets the DateInput component inside the DateTimePicker component.
|
|
193
193
|
*/
|
|
194
|
-
|
|
194
|
+
get dateInput(): DateInput | null;
|
|
195
195
|
/**
|
|
196
196
|
* Gets the value of the DateTimePicker.
|
|
197
197
|
*/
|
|
198
|
-
|
|
198
|
+
get value(): Date | null;
|
|
199
199
|
/**
|
|
200
200
|
* Gets the popup state of the DateTimePicker.
|
|
201
201
|
*/
|
|
202
|
-
|
|
202
|
+
get show(): boolean;
|
|
203
203
|
/**
|
|
204
204
|
* Gets the `name` property of the DateTimePicker.
|
|
205
205
|
*/
|
|
206
|
-
|
|
207
|
-
protected
|
|
208
|
-
protected
|
|
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
|
-
|
|
212
|
+
get validity(): FormComponentValidity;
|
|
213
213
|
/**
|
|
214
214
|
* @hidden
|
|
215
215
|
*/
|
|
216
|
-
protected
|
|
216
|
+
protected get validityStyles(): boolean;
|
|
217
217
|
/**
|
|
218
218
|
* @hidden
|
|
219
219
|
*/
|
|
220
|
-
protected
|
|
220
|
+
protected get required(): boolean;
|
|
221
221
|
/**
|
|
222
222
|
* @hidden
|
|
223
223
|
*/
|
|
224
|
-
protected
|
|
224
|
+
protected get dateInputComp(): React.ComponentType<DateInputProps<any>>;
|
|
225
225
|
/**
|
|
226
226
|
* @hidden
|
|
227
227
|
*/
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.DateTimePicker = exports.DateTimePickerPropsContext = exports.DateTimePickerWithoutContext = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_react_popup_1 = require("@progress/kendo-react-popup");
|
|
@@ -45,7 +48,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
45
48
|
__extends(DateTimePickerWithoutContext, _super);
|
|
46
49
|
function DateTimePickerWithoutContext(props) {
|
|
47
50
|
var _this = _super.call(this, props) || this;
|
|
48
|
-
_this._popupId = kendo_react_common_1.guid();
|
|
51
|
+
_this._popupId = (0, kendo_react_common_1.guid)();
|
|
49
52
|
_this._element = null;
|
|
50
53
|
_this._dateInput = React.createRef();
|
|
51
54
|
_this._dateTimeSelector = null;
|
|
@@ -66,7 +69,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
66
69
|
};
|
|
67
70
|
_this.handleValueChange = function (event) {
|
|
68
71
|
_this.setState({
|
|
69
|
-
value: kendo_date_math_1.cloneDate(event.value || undefined),
|
|
72
|
+
value: (0, kendo_date_math_1.cloneDate)(event.value || undefined),
|
|
70
73
|
show: false
|
|
71
74
|
});
|
|
72
75
|
_this.valueDuringOnChange = event.value;
|
|
@@ -120,7 +123,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
120
123
|
return (_this.dateInput && _this.dateInput.element) ||
|
|
121
124
|
(_this.element && _this.element.querySelector('.k-dateinput > input.k-input-inner'));
|
|
122
125
|
};
|
|
123
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
126
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
124
127
|
_this.state = {
|
|
125
128
|
value: _this.props.defaultValue || DateTimePickerWithoutContext.defaultProps.defaultValue,
|
|
126
129
|
show: _this.props.defaultShow || DateTimePickerWithoutContext.defaultProps.defaultShow,
|
|
@@ -135,7 +138,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
135
138
|
get: function () {
|
|
136
139
|
return this._element;
|
|
137
140
|
},
|
|
138
|
-
enumerable:
|
|
141
|
+
enumerable: false,
|
|
139
142
|
configurable: true
|
|
140
143
|
});
|
|
141
144
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "dateInput", {
|
|
@@ -145,7 +148,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
145
148
|
get: function () {
|
|
146
149
|
return this._dateInput.current;
|
|
147
150
|
},
|
|
148
|
-
enumerable:
|
|
151
|
+
enumerable: false,
|
|
149
152
|
configurable: true
|
|
150
153
|
});
|
|
151
154
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "value", {
|
|
@@ -158,9 +161,9 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
158
161
|
: this.props.value !== undefined
|
|
159
162
|
? this.props.value
|
|
160
163
|
: this.state.value;
|
|
161
|
-
return (value !== null) ? kendo_date_math_1.cloneDate(value) : null;
|
|
164
|
+
return (value !== null) ? (0, kendo_date_math_1.cloneDate)(value) : null;
|
|
162
165
|
},
|
|
163
|
-
enumerable:
|
|
166
|
+
enumerable: false,
|
|
164
167
|
configurable: true
|
|
165
168
|
});
|
|
166
169
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "show", {
|
|
@@ -174,7 +177,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
174
177
|
? this.props.show
|
|
175
178
|
: this.state.show;
|
|
176
179
|
},
|
|
177
|
-
enumerable:
|
|
180
|
+
enumerable: false,
|
|
178
181
|
configurable: true
|
|
179
182
|
});
|
|
180
183
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "name", {
|
|
@@ -184,7 +187,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
184
187
|
get: function () {
|
|
185
188
|
return this.props.name;
|
|
186
189
|
},
|
|
187
|
-
enumerable:
|
|
190
|
+
enumerable: false,
|
|
188
191
|
configurable: true
|
|
189
192
|
});
|
|
190
193
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "min", {
|
|
@@ -193,7 +196,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
193
196
|
? this.props.min
|
|
194
197
|
: DateTimePickerWithoutContext.defaultProps.min;
|
|
195
198
|
},
|
|
196
|
-
enumerable:
|
|
199
|
+
enumerable: false,
|
|
197
200
|
configurable: true
|
|
198
201
|
});
|
|
199
202
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "max", {
|
|
@@ -202,7 +205,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
202
205
|
? this.props.max
|
|
203
206
|
: DateTimePickerWithoutContext.defaultProps.max;
|
|
204
207
|
},
|
|
205
|
-
enumerable:
|
|
208
|
+
enumerable: false,
|
|
206
209
|
configurable: true
|
|
207
210
|
});
|
|
208
211
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "validity", {
|
|
@@ -210,8 +213,8 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
210
213
|
* Represents the validity state into which the DateTimePicker is set.
|
|
211
214
|
*/
|
|
212
215
|
get: function () {
|
|
213
|
-
var inRange = utils_1.isInDateRange(this.value, this.min, this.max)
|
|
214
|
-
&& utils_2.isInTimeRange(this.value, this.props.minTime || defaults_1.MIN_TIME, this.props.maxTime || utils_1.MAX_TIME);
|
|
216
|
+
var inRange = (0, utils_1.isInDateRange)(this.value, this.min, this.max)
|
|
217
|
+
&& (0, utils_2.isInTimeRange)(this.value, this.props.minTime || defaults_1.MIN_TIME, this.props.maxTime || utils_1.MAX_TIME);
|
|
215
218
|
var customError = this.props.validationMessage !== undefined;
|
|
216
219
|
var isValid = (!this.required || this.value !== null) && inRange;
|
|
217
220
|
var valid = this.props.valid !== undefined ? this.props.valid : isValid;
|
|
@@ -223,7 +226,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
223
226
|
valueMissing: this.value === null
|
|
224
227
|
};
|
|
225
228
|
},
|
|
226
|
-
enumerable:
|
|
229
|
+
enumerable: false,
|
|
227
230
|
configurable: true
|
|
228
231
|
});
|
|
229
232
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "validityStyles", {
|
|
@@ -235,7 +238,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
235
238
|
? this.props.validityStyles
|
|
236
239
|
: DateTimePickerWithoutContext.defaultProps.validityStyles;
|
|
237
240
|
},
|
|
238
|
-
enumerable:
|
|
241
|
+
enumerable: false,
|
|
239
242
|
configurable: true
|
|
240
243
|
});
|
|
241
244
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "required", {
|
|
@@ -247,7 +250,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
247
250
|
? this.props.required
|
|
248
251
|
: DateTimePickerWithoutContext.defaultProps.required;
|
|
249
252
|
},
|
|
250
|
-
enumerable:
|
|
253
|
+
enumerable: false,
|
|
251
254
|
configurable: true
|
|
252
255
|
});
|
|
253
256
|
Object.defineProperty(DateTimePickerWithoutContext.prototype, "dateInputComp", {
|
|
@@ -257,7 +260,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
257
260
|
get: function () {
|
|
258
261
|
return this.props.dateInput || DateTimePickerWithoutContext.defaultProps.dateInput;
|
|
259
262
|
},
|
|
260
|
-
enumerable:
|
|
263
|
+
enumerable: false,
|
|
261
264
|
configurable: true
|
|
262
265
|
});
|
|
263
266
|
/**
|
|
@@ -299,8 +302,21 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
299
302
|
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;
|
|
300
303
|
var isValid = !this.validityStyles || this.validity.valid;
|
|
301
304
|
var dataInputProps = {
|
|
302
|
-
id: id,
|
|
303
|
-
|
|
305
|
+
id: id,
|
|
306
|
+
ariaLabelledBy: ariaLabelledBy,
|
|
307
|
+
ariaDescribedBy: ariaDescribedBy,
|
|
308
|
+
format: format,
|
|
309
|
+
formatPlaceholder: formatPlaceholder,
|
|
310
|
+
disabled: disabled,
|
|
311
|
+
title: title,
|
|
312
|
+
validityStyles: validityStyles,
|
|
313
|
+
validationMessage: validationMessage,
|
|
314
|
+
required: required,
|
|
315
|
+
min: min,
|
|
316
|
+
max: max,
|
|
317
|
+
minTime: minTime,
|
|
318
|
+
maxTime: maxTime,
|
|
319
|
+
name: name,
|
|
304
320
|
tabIndex: !this.show ? tabIndex : -1,
|
|
305
321
|
valid: this.validity.valid,
|
|
306
322
|
value: this.value,
|
|
@@ -315,23 +331,23 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
315
331
|
rounded: null
|
|
316
332
|
};
|
|
317
333
|
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) {
|
|
318
|
-
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
319
334
|
var _b;
|
|
335
|
+
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
320
336
|
return (React.createElement("div", { ref: function (div) {
|
|
321
337
|
_this._element = div;
|
|
322
|
-
}, className: kendo_react_common_1.classNames('k-input', 'k-datetimepicker', (_b = {},
|
|
323
|
-
_b["k-input-"
|
|
324
|
-
_b["k-rounded-"
|
|
325
|
-
_b["k-input-"
|
|
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,
|
|
326
342
|
_b['k-invalid'] = !isValid,
|
|
327
343
|
_b['k-required'] = _this.required,
|
|
328
344
|
_b['k-disabled'] = _this.props.disabled,
|
|
329
345
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
330
346
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput }, dataInputProps)),
|
|
331
|
-
React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'calendar', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleDateIconClick, title: kendo_react_intl_1.provideLocalizationService(_this)
|
|
347
|
+
React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'calendar', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleDateIconClick, title: (0, kendo_react_intl_1.provideLocalizationService)(_this)
|
|
332
348
|
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector]), className: "k-input-button", rounded: null }, {
|
|
333
349
|
'aria-controls': _this._popupId,
|
|
334
|
-
'aria-label': kendo_react_intl_1.provideLocalizationService(_this)
|
|
350
|
+
'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(_this)
|
|
335
351
|
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector])
|
|
336
352
|
})),
|
|
337
353
|
React.createElement(PopupComponent, { show: _this.show, animate: _this.element !== null, anchor: _this.element, className: "k-datetime-container k-group k-reset", id: _this._popupId, anchorAlign: {
|
|
@@ -460,7 +476,7 @@ exports.DateTimePickerWithoutContext = DateTimePickerWithoutContext;
|
|
|
460
476
|
*
|
|
461
477
|
* For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
|
|
462
478
|
*/
|
|
463
|
-
exports.DateTimePickerPropsContext = kendo_react_common_1.createPropsContext();
|
|
479
|
+
exports.DateTimePickerPropsContext = (0, kendo_react_common_1.createPropsContext)();
|
|
464
480
|
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
465
481
|
/**
|
|
466
482
|
* Represents the KendoReact DateTimePicker Component.
|
|
@@ -468,6 +484,6 @@ exports.DateTimePickerPropsContext = kendo_react_common_1.createPropsContext();
|
|
|
468
484
|
* Accepts properties of type [DateTimePickerProps]({% slug api_dateinputs_datetimepickerprops %}).
|
|
469
485
|
* Obtaining the `ref` returns an object of type [DateTimePickerHandle]({% slug api_dateinputs_datetimepickerhandle %}).
|
|
470
486
|
*/
|
|
471
|
-
exports.DateTimePicker = kendo_react_common_1.withPropsContext(exports.DateTimePickerPropsContext, DateTimePickerWithoutContext);
|
|
487
|
+
exports.DateTimePicker = (0, kendo_react_common_1.withPropsContext)(exports.DateTimePickerPropsContext, DateTimePickerWithoutContext);
|
|
472
488
|
exports.DateTimePicker.displayName = 'KendoReactDateTimePicker';
|
|
473
|
-
kendo_react_intl_1.registerForLocalization(DateTimePickerWithoutContext);
|
|
489
|
+
(0, kendo_react_intl_1.registerForLocalization)(DateTimePickerWithoutContext);
|
|
@@ -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
|
-
|
|
64
|
-
|
|
65
|
-
protected
|
|
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
|
|
72
|
-
protected
|
|
71
|
+
protected get minTime(): Date | null;
|
|
72
|
+
protected get maxTime(): Date | null;
|
|
73
73
|
protected normalizeRange(candidate: Date, value: Date | null): Date | null;
|
|
74
|
-
protected hasActiveButton(): boolean;
|
|
74
|
+
protected hasActiveButton(): boolean | null;
|
|
75
75
|
protected mergeTime(current: Date | null, candidate: Date | null): Date | null;
|
|
76
76
|
protected mergeDate(candidate: Date | null, value: Date): Date | null;
|
|
77
|
-
protected move: (direction:
|
|
77
|
+
protected move: (direction: 'left' | 'right') => void;
|
|
78
78
|
private handleReject;
|
|
79
79
|
private handleAccept;
|
|
80
80
|
private handleNowClick;
|