@progress/kendo-react-dateinputs 5.3.0-dev.202205040828 → 5.3.0-dev.202205051350
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/calendar/components/Calendar.js +1 -1
- package/dist/es/calendar/components/CalendarCell.js +3 -3
- package/dist/es/calendar/components/HorizontalViewList.js +5 -5
- package/dist/es/calendar/components/MultiViewCalendar.js +1 -1
- package/dist/es/calendar/components/TodayCommand.js +1 -1
- package/dist/es/calendar/components/ViewList.js +5 -5
- package/dist/es/dateinput/DateInput.js +2 -3
- package/dist/es/dateinput/utils.js +1 -1
- package/dist/es/datepicker/DatePicker.js +1 -2
- package/dist/es/daterangepicker/DateRangePicker.d.ts +1 -4
- package/dist/es/daterangepicker/DateRangePicker.js +17 -22
- package/dist/es/datetimepicker/DateTimePicker.js +1 -2
- package/dist/es/datetimepicker/DateTimeSelector.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimePart.js +2 -2
- package/dist/es/timepicker/TimePicker.js +1 -2
- package/dist/es/timepicker/TimeSelector.js +1 -1
- package/dist/npm/calendar/components/Calendar.js +1 -1
- package/dist/npm/calendar/components/CalendarCell.js +3 -3
- package/dist/npm/calendar/components/HorizontalViewList.js +5 -5
- package/dist/npm/calendar/components/MultiViewCalendar.js +1 -1
- package/dist/npm/calendar/components/TodayCommand.js +1 -1
- package/dist/npm/calendar/components/ViewList.js +5 -5
- package/dist/npm/dateinput/DateInput.js +2 -3
- package/dist/npm/dateinput/utils.js +1 -1
- package/dist/npm/datepicker/DatePicker.js +1 -2
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +1 -4
- package/dist/npm/daterangepicker/DateRangePicker.js +17 -22
- package/dist/npm/datetimepicker/DateTimePicker.js +1 -2
- package/dist/npm/datetimepicker/DateTimeSelector.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimePart.js +2 -2
- package/dist/npm/timepicker/TimePicker.js +1 -2
- package/dist/npm/timepicker/TimeSelector.js +1 -1
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +12 -12
|
@@ -39,14 +39,12 @@ var defaults_1 = require("../defaults");
|
|
|
39
39
|
var messages_1 = require("../messages");
|
|
40
40
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
41
41
|
var utils_1 = require("../utils");
|
|
42
|
-
var WRAPPER_STYLES = { display: 'inline-block' };
|
|
43
42
|
/** @hidden */
|
|
44
43
|
var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
45
44
|
__extends(DateRangePickerWithoutContext, _super);
|
|
46
45
|
function DateRangePickerWithoutContext(props) {
|
|
47
46
|
var _this = _super.call(this, props) || this;
|
|
48
47
|
_this._element = null;
|
|
49
|
-
_this._wrapper = null;
|
|
50
48
|
_this._calendar = null;
|
|
51
49
|
_this._startDateInput = React.createRef();
|
|
52
50
|
_this._endDateInput = React.createRef();
|
|
@@ -102,10 +100,10 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
102
100
|
_this.setShow(true);
|
|
103
101
|
}
|
|
104
102
|
if (_this.startDateInput && _this.startDateInput.element) {
|
|
105
|
-
_this.startDateInput.element.classList.add('k-
|
|
103
|
+
_this.startDateInput.element.classList.add('k-focus');
|
|
106
104
|
}
|
|
107
105
|
if (_this.endDateInput && _this.endDateInput.element) {
|
|
108
|
-
_this.endDateInput.element.classList.add('k-
|
|
106
|
+
_this.endDateInput.element.classList.add('k-focus');
|
|
109
107
|
}
|
|
110
108
|
var onFocus = _this.props.onFocus;
|
|
111
109
|
if (onFocus) {
|
|
@@ -115,10 +113,10 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
115
113
|
_this.handleBlur = function (event) {
|
|
116
114
|
_this.nextTick(function () {
|
|
117
115
|
if (_this.startDateInput && _this.startDateInput.element) {
|
|
118
|
-
_this.startDateInput.element.classList.remove('k-
|
|
116
|
+
_this.startDateInput.element.classList.remove('k-focus');
|
|
119
117
|
}
|
|
120
118
|
if (_this.endDateInput && _this.endDateInput.element) {
|
|
121
|
-
_this.endDateInput.element.classList.remove('k-
|
|
119
|
+
_this.endDateInput.element.classList.remove('k-focus');
|
|
122
120
|
}
|
|
123
121
|
_this.setShow(false);
|
|
124
122
|
});
|
|
@@ -330,7 +328,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
330
328
|
var startDateInputId = (this.props.startDateInputSettings || {}).id || this._startInputId;
|
|
331
329
|
var endDateInputId = (this.props.endDateInputSettings || {}).id || this._endInputId;
|
|
332
330
|
var rootClassName = kendo_react_common_1.classNames('k-daterangepicker', {
|
|
333
|
-
'k-
|
|
331
|
+
'k-disabled': this.props.disabled
|
|
334
332
|
}, this.props.className);
|
|
335
333
|
var localizationService = kendo_react_intl_1.provideLocalizationService(this);
|
|
336
334
|
var startMessage = localizationService.toLanguageString(messages_1.start, messages_1.messages[messages_1.start]);
|
|
@@ -338,7 +336,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
338
336
|
var separatorMessage = localizationService.toLanguageString(messages_1.separator, messages_1.messages[messages_1.separator]);
|
|
339
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 });
|
|
340
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 });
|
|
341
|
-
var popupProps = __assign({ animate: this.
|
|
339
|
+
var popupProps = __assign({ animate: this._element !== null, anchor: this._element, id: this._popupId, anchorAlign: {
|
|
342
340
|
horizontal: 'left',
|
|
343
341
|
vertical: 'bottom'
|
|
344
342
|
}, popupAlign: {
|
|
@@ -359,20 +357,17 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
359
357
|
return (React.createElement("span", { ref: function (span) {
|
|
360
358
|
_this._element = span;
|
|
361
359
|
}, className: rootClassName, style: this.props.style, id: this.props.id, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, tabIndex: this.props.tabIndex, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown },
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
(
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
this.props.endDateInput
|
|
374
|
-
? React.createElement(this.props.endDateInput, __assign({}, endDateInputProps))
|
|
375
|
-
: React.createElement(DateInput_1.DateInput, __assign({}, endDateInputProps, { ref: this._endDateInput }))),
|
|
360
|
+
this.props.startDateInput
|
|
361
|
+
? React.createElement(this.props.startDateInput, __assign({}, startDateInputProps))
|
|
362
|
+
: React.createElement(DateInput_1.DateInput, __assign({}, startDateInputProps, { ref: this._startDateInput })),
|
|
363
|
+
(this.props.allowReverse
|
|
364
|
+
|| (this.props.calendarSettings && this.props.calendarSettings.allowReverse))
|
|
365
|
+
&& this.props.swapButton
|
|
366
|
+
? (reverseButton)
|
|
367
|
+
: (separatorMessage),
|
|
368
|
+
this.props.endDateInput
|
|
369
|
+
? React.createElement(this.props.endDateInput, __assign({}, endDateInputProps))
|
|
370
|
+
: React.createElement(DateInput_1.DateInput, __assign({}, endDateInputProps, { ref: this._endDateInput })),
|
|
376
371
|
this.props.popup
|
|
377
372
|
? React.createElement(this.props.popup, __assign({}, popupProps), calendar)
|
|
378
373
|
: React.createElement(kendo_react_popup_1.Popup, __assign({}, popupProps), calendar)));
|
|
@@ -323,14 +323,13 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
323
323
|
_b["k-input-" + (kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
324
324
|
_b["k-rounded-" + (kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
325
325
|
_b["k-input-" + fillMode] = fillMode,
|
|
326
|
-
_b['k-valid'] = isValid,
|
|
327
326
|
_b['k-invalid'] = !isValid,
|
|
328
327
|
_b['k-required'] = _this.required,
|
|
329
328
|
_b['k-disabled'] = _this.props.disabled,
|
|
330
329
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
331
330
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput }, dataInputProps)),
|
|
332
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)
|
|
333
|
-
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector]), className: "k-input-button" }, {
|
|
332
|
+
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector]), className: "k-input-button", rounded: null }, {
|
|
334
333
|
'aria-controls': _this._popupId,
|
|
335
334
|
'aria-label': kendo_react_intl_1.provideLocalizationService(_this)
|
|
336
335
|
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector])
|
|
@@ -182,7 +182,7 @@ var DateTimeSelector = /** @class */ (function (_super) {
|
|
|
182
182
|
var rootClassName = kendo_react_common_1.classNames({
|
|
183
183
|
'k-date-tab': this.state.tab === 'date',
|
|
184
184
|
'k-time-tab': this.state.tab === 'time',
|
|
185
|
-
'k-
|
|
185
|
+
'k-disabled': disabled
|
|
186
186
|
}, 'k-datetime-wrap');
|
|
187
187
|
var localizationService = kendo_react_intl_1.provideLocalizationService(this);
|
|
188
188
|
var dateMessage = localizationService.toLanguageString(messages_1.date, messages_1.messages[messages_1.date]);
|
|
@@ -7,7 +7,7 @@ exports.packageMetadata = {
|
|
|
7
7
|
name: '@progress/kendo-react-dateinputs',
|
|
8
8
|
productName: 'KendoReact',
|
|
9
9
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
10
|
+
publishDate: 1651757483,
|
|
11
11
|
version: '',
|
|
12
12
|
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'
|
|
13
13
|
};
|
|
@@ -210,7 +210,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
210
210
|
.splitDateFormat(format || TimePart.defaultProps.format)
|
|
211
211
|
.filter(this.timeFormatFilter);
|
|
212
212
|
var rootClassName = kendo_react_common_1.classNames({
|
|
213
|
-
'k-
|
|
213
|
+
'k-disabled': disabled
|
|
214
214
|
}, className, 'k-time-part');
|
|
215
215
|
this.timeLists = [];
|
|
216
216
|
var localizationService = kendo_react_intl_1.provideLocalizationService(this);
|
|
@@ -225,7 +225,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
225
225
|
this.dateFormatParts.map(function (part, idx) {
|
|
226
226
|
return (part.type !== 'literal'
|
|
227
227
|
? React.createElement("div", { key: idx, className: kendo_react_common_1.classNames('k-time-list-wrapper', {
|
|
228
|
-
'k-
|
|
228
|
+
'k-focus': idx === _this.state.activeListIndex
|
|
229
229
|
}), role: "presentation", tabIndex: -1 },
|
|
230
230
|
React.createElement("span", { className: "k-title", onMouseDown: function (e) { e.preventDefault(); } }, _this.intl.dateFieldName(part)),
|
|
231
231
|
React.createElement(TimeList_1.TimeList, { min: _this.min, max: _this.max, boundRange: _this.boundRange, part: part, step: part.type ? _this.steps[part.type] : 1, smoothScroll: smoothScroll, ref: function (el) { if (!el) {
|
|
@@ -373,13 +373,12 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
373
373
|
_b["k-input-" + (kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
374
374
|
_b["k-rounded-" + (kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
375
375
|
_b["k-input-" + fillMode] = fillMode,
|
|
376
|
-
_b['k-valid'] = isValid,
|
|
377
376
|
_b['k-invalid'] = !isValid,
|
|
378
377
|
_b['k-required'] = _this.required,
|
|
379
378
|
_b['k-disabled'] = _this.props.disabled,
|
|
380
379
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
381
380
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput }, dateInputProps)),
|
|
382
|
-
React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage, "aria-label": toggleTimeMessage, className: "k-input-button" }, {
|
|
381
|
+
React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage, "aria-label": toggleTimeMessage, className: "k-input-button", rounded: null }, {
|
|
383
382
|
'aria-controls': _this._popupId,
|
|
384
383
|
'aria-label': toggleClockMessage
|
|
385
384
|
})),
|
|
@@ -175,7 +175,7 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
175
175
|
var cancelMessage = localizationService.toLanguageString(messages_1.timePickerCancel, messages_1.messages[messages_1.timePickerCancel]);
|
|
176
176
|
var setMessage = localizationService.toLanguageString(messages_1.timePickerSet, messages_1.messages[messages_1.timePickerSet]);
|
|
177
177
|
return (React.createElement("div", { ref: function (el) { _this._element = el; }, tabIndex: !disabled ? tabIndex || 0 : undefined, className: kendo_react_common_1.classNames('k-timeselector k-reset', className, {
|
|
178
|
-
'k-
|
|
178
|
+
'k-disabled': disabled
|
|
179
179
|
}), onKeyDown: this.handleKeyDown },
|
|
180
180
|
React.createElement(TimePart_1.TimePart, { ref: function (el) { _this.timePart = el; }, value: this.current, onChange: this.handleChange, onNowClick: this.handleNowClick, format: format, smoothScroll: smoothScroll, min: min, max: max, boundRange: boundRange, disabled: disabled, nowButton: nowButton, steps: steps, show: this.props.show }),
|
|
181
181
|
React.createElement("div", { className: "k-time-footer k-actions k-hstack k-justify-content-stretch" },
|