@progress/kendo-react-dateinputs 5.6.0-dev.202208261541 → 5.6.0-dev.202209021051
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/LICENSE.md +2 -2
- package/README.md +4 -4
- package/about.md +1 -1
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/dist/es/calendar/components/HorizontalViewList.js +1 -1
- package/dist/es/calendar/components/MultiViewCalendar.js +2 -2
- package/dist/es/calendar/components/TodayCommand.js +1 -1
- package/dist/es/calendar/components/View.js +1 -1
- package/dist/es/calendar/services/DOMService.js +1 -1
- package/dist/es/dateinput/DateInput.js +2 -2
- package/dist/es/daterangepicker/DateRangePicker.js +0 -12
- package/dist/es/datetimepicker/DateTimePicker.js +1 -1
- package/dist/es/datetimepicker/DateTimeSelector.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeSelector.js +2 -2
- package/dist/npm/calendar/components/HorizontalViewList.js +1 -1
- package/dist/npm/calendar/components/MultiViewCalendar.js +2 -2
- package/dist/npm/calendar/components/TodayCommand.js +1 -1
- package/dist/npm/calendar/components/View.js +1 -1
- package/dist/npm/calendar/services/DOMService.js +1 -1
- package/dist/npm/dateinput/DateInput.js +2 -2
- package/dist/npm/daterangepicker/DateRangePicker.js +0 -12
- package/dist/npm/datetimepicker/DateTimePicker.js +1 -1
- package/dist/npm/datetimepicker/DateTimeSelector.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimeSelector.js +2 -2
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +13 -13
|
@@ -127,7 +127,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
127
127
|
'k-calendar-decadeview': this.props.activeView === CalendarViewEnum.decade,
|
|
128
128
|
'k-calendar-centuryview': this.props.activeView === CalendarViewEnum.century
|
|
129
129
|
});
|
|
130
|
-
return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: rootClassNames }, this.props.dates.map(function (date) { return (React.createElement("table", { className: "k-calendar-table k-
|
|
130
|
+
return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: rootClassNames }, this.props.dates.map(function (date) { return (React.createElement("table", { className: "k-calendar-table k-content", key: date.getTime(), role: "grid" },
|
|
131
131
|
React.createElement(View, { bus: _this.props.bus, service: _this.props.service, key: date.getTime(), direction: "horizontal", activeView: _this.props.activeView, cellUID: _this.props.cellUID, viewDate: date, min: _this.min, max: _this.max, focusedDate: _this.props.focusedDate, selectionRange: selectionRange, selectedDate: _this.props.value, showWeekNumbers: _this.weekNumber, onChange: _this.handleDateChange, onCellEnter: _this.props.onCellEnter, cell: _this.props.cell, weekCell: _this.props.weekCell }))); })));
|
|
132
132
|
};
|
|
133
133
|
HorizontalViewList.defaultProps = {
|
|
@@ -462,9 +462,9 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
462
462
|
var activeDate = cloneDate(this.dates && this.dates[0] ? this.dates[0] : getToday());
|
|
463
463
|
return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: wrapperClassName, id: this.props.id || this.wrapperID, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, tabIndex: !this.props.disabled ? this.props.tabIndex : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "aria-disabled": this.props.disabled },
|
|
464
464
|
React.createElement(Header, { key: ".kendo.calendar.header.".concat(activeDate.getTime()), activeView: activeView, currentDate: activeDate, min: this.min, max: this.max, rangeLength: this.props.views, bus: this.bus, service: this.service, headerTitle: this.props.headerTitle, commands: (React.createElement(React.Fragment, null,
|
|
465
|
-
React.createElement(Button, __assign({ type: "button", className: "k-nav-prev", icon: "
|
|
465
|
+
React.createElement(Button, __assign({ type: "button", className: "k-calendar-nav-prev", icon: "chevron-left", fillMode: "flat", title: prevViewTitle, disabled: isPrevDisabled, onClick: this.handlePrevButtonClick }, prevBtnAria)),
|
|
466
466
|
React.createElement(TodayCommand, { min: this.min, max: this.max, onClick: this.handleTodayClick, disabled: !this.todayIsInRange }),
|
|
467
|
-
React.createElement(Button, __assign({ type: "button", className: "k-nav-next", icon: "
|
|
467
|
+
React.createElement(Button, __assign({ type: "button", className: "k-calendar-nav-next", icon: "chevron-right", fillMode: "flat", title: nextViewTittle, disabled: isNextDisabled, onClick: this.handleNextButtonClick }, nextBtnAria)))) }),
|
|
468
468
|
React.createElement(HorizontalViewList, { ref: function (el) { _this.calendarViewList = el; }, dates: this.dates, activeView: activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, bus: this.bus, service: this.service, selectionRange: visualizedRange, value: this.selectedMultiple || this.selectedDate, cellUID: this.cellUID, views: this.props.views, onChange: this.handleDateChange, showWeekNumbers: this.props.weekNumber, onCellEnter: this.handleCellEnter, cell: this.props.cell, weekCell: this.props.weekCell, headerTitle: this.props.headerTitle })));
|
|
469
469
|
};
|
|
470
470
|
/**
|
|
@@ -71,7 +71,7 @@ var TodayCommand = /** @class */ (function (_super) {
|
|
|
71
71
|
TodayCommand.prototype.render = function () {
|
|
72
72
|
this.localization = provideLocalizationService(this);
|
|
73
73
|
var todayMessage = this.localization.toLanguageString(today, messages[today]);
|
|
74
|
-
var todayClassNames = classNames('k-nav-today', {
|
|
74
|
+
var todayClassNames = classNames('k-calendar-nav-today', {
|
|
75
75
|
'k-disabled': this.props.disabled
|
|
76
76
|
});
|
|
77
77
|
return (React.createElement("span", { className: todayClassNames, onClick: this.handleClick, tabIndex: this.props.tabIndex }, todayMessage));
|
|
@@ -183,7 +183,7 @@ var View = /** @class */ (function (_super) {
|
|
|
183
183
|
React.createElement("tr", { role: "row", className: "k-calendar-tr" }, weekNames.map(function (name, idx) { return (React.createElement("th", { key: idx, className: "k-calendar-th" }, name)); })))),
|
|
184
184
|
React.createElement("tbody", { role: "rowgroup", className: "k-calendar-tbody" },
|
|
185
185
|
!this.isHorizontal && (React.createElement("tr", { role: "presentation", className: "k-calendar-tr" },
|
|
186
|
-
React.createElement("th", { scope: "col", colSpan: colSpan, className: "k-calendar-
|
|
186
|
+
React.createElement("th", { scope: "col", colSpan: colSpan, className: "k-calendar-caption" }, title))),
|
|
187
187
|
data.map(function (row, idx) {
|
|
188
188
|
return (React.createElement("tr", { role: "row", className: "k-calendar-tr", key: idx },
|
|
189
189
|
_this.weekNumber && _this.buildWeekNumber(row, idx),
|
|
@@ -46,7 +46,7 @@ var DOMService = /** @class */ (function () {
|
|
|
46
46
|
var tbody = containerFactory('tbody');
|
|
47
47
|
var thead = containerFactory('thead');
|
|
48
48
|
var table = containerFactory('table');
|
|
49
|
-
var monthHeader = function () { return (div("\n <span class=\"k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title\">\n <span className=\"k-button-text\">March 2017</span>\n </span>\n <span class=\"k-spacer\"></span>\n <span class=\"k-calendar-nav k-hstack\"><span class=\"k-nav-today\">TODAY</span></span>\n ", 'k-calendar-header k-hstack')); };
|
|
49
|
+
var monthHeader = function () { return (div("\n <span class=\"k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title\">\n <span className=\"k-button-text\">March 2017</span>\n </span>\n <span class=\"k-spacer\"></span>\n <span class=\"k-calendar-nav k-hstack\"><span class=\"k-calendar-nav-today\">TODAY</span></span>\n ", 'k-calendar-header k-hstack')); };
|
|
50
50
|
var monthWeekHeader = function () { return (table([
|
|
51
51
|
thead([
|
|
52
52
|
tr([th('MO', 'k-calendar-th')], 'k-calendar-tr')
|
|
@@ -280,8 +280,8 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
280
280
|
React.createElement("input", { role: _this.props.ariaRole || 'textbox', tabIndex: _this.props.tabIndex, disabled: _this.props.disabled, title: _this.props.title !== undefined ? _this.props.title : currentText, type: "text", spellCheck: false, autoComplete: "off", autoCorrect: "off", className: "k-input-inner", id: inputId, "aria-label": _this.props.ariaLabel, "aria-labelledby": _this.props.ariaLabelledBy, "aria-describedby": _this.props.ariaDescribedBy, "aria-haspopup": _this.props.ariaHasPopup, "aria-disabled": _this.props.disabled, "aria-expanded": _this.props.ariaExpanded, "aria-controls": _this.props.ariaControls, onWheel: _this.wheel, onClick: _this.elementClick, onInput: _this.elementChange, onPaste: _this.handlePaste, onKeyDown: _this.elementKeyDown, onChange: noop, value: text, placeholder: placeholder, name: name, ref: function (input) { return _this._element = input; } }),
|
|
281
281
|
_this.props.children,
|
|
282
282
|
_this.props.spinners && (React.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: _this.spinnersMouseDown },
|
|
283
|
-
React.createElement(Button, { tabIndex: -1, type: "button", className: "k-spinner-increase", icon: '
|
|
284
|
-
React.createElement(Button, { tabIndex: -1, type: "button", className: "k-spinner-decrease", icon: '
|
|
283
|
+
React.createElement(Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-increase", icon: 'caret-alt-up', "aria-label": localizationService.toLanguageString(increaseValue, messages[increaseValue]), title: localizationService.toLanguageString(increaseValue, messages[increaseValue]), onClick: _this.increasePart }),
|
|
284
|
+
React.createElement(Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-decrease", icon: 'caret-alt-down', "aria-label": localizationService.toLanguageString(decreaseValue, messages[decreaseValue]), title: localizationService.toLanguageString(decreaseValue, messages[decreaseValue]), onClick: _this.decreasePart })))));
|
|
285
285
|
}));
|
|
286
286
|
return label
|
|
287
287
|
? (React.createElement(FloatingLabel, { label: label, editorId: inputId, editorValue: currentText, editorValid: isValid, editorDisabled: this.props.disabled, children: dateinput, style: { width: this.props.width } }))
|
|
@@ -99,12 +99,6 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
99
99
|
if (!_this.shouldFocusDateInput) {
|
|
100
100
|
_this.setShow(true);
|
|
101
101
|
}
|
|
102
|
-
if (_this.startDateInput && _this.startDateInput.element) {
|
|
103
|
-
_this.startDateInput.element.classList.add('k-focus');
|
|
104
|
-
}
|
|
105
|
-
if (_this.endDateInput && _this.endDateInput.element) {
|
|
106
|
-
_this.endDateInput.element.classList.add('k-focus');
|
|
107
|
-
}
|
|
108
102
|
var onFocus = _this.props.onFocus;
|
|
109
103
|
if (onFocus) {
|
|
110
104
|
onFocus.call(undefined, event);
|
|
@@ -112,12 +106,6 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
112
106
|
};
|
|
113
107
|
_this.handleBlur = function (event) {
|
|
114
108
|
_this.nextTick(function () {
|
|
115
|
-
if (_this.startDateInput && _this.startDateInput.element) {
|
|
116
|
-
_this.startDateInput.element.classList.remove('k-focus');
|
|
117
|
-
}
|
|
118
|
-
if (_this.endDateInput && _this.endDateInput.element) {
|
|
119
|
-
_this.endDateInput.element.classList.remove('k-focus');
|
|
120
|
-
}
|
|
121
109
|
_this.setShow(false);
|
|
122
110
|
});
|
|
123
111
|
var onBlur = _this.props.onBlur;
|
|
@@ -346,7 +346,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
346
346
|
'aria-label': provideLocalizationService(_this)
|
|
347
347
|
.toLanguageString(toggleDateTimeSelector, messages[toggleDateTimeSelector])
|
|
348
348
|
})),
|
|
349
|
-
React.createElement(PopupComponent, { show: _this.show, animate: _this.element !== null, anchor: _this.element,
|
|
349
|
+
React.createElement(PopupComponent, { show: _this.show, animate: _this.element !== null, anchor: _this.element, popupClass: "k-datetime-container k-reset", id: _this._popupId, anchorAlign: {
|
|
350
350
|
horizontal: 'left',
|
|
351
351
|
vertical: 'bottom'
|
|
352
352
|
}, popupAlign: {
|
|
@@ -214,7 +214,7 @@ var DateTimeSelector = /** @class */ (function (_super) {
|
|
|
214
214
|
React.createElement(this.props.calendar, __assign({}, calendarProps)) :
|
|
215
215
|
React.createElement(Calendar, __assign({ ref: function (calendar) { _this._calendar = calendar; } }, calendarProps))),
|
|
216
216
|
React.createElement("div", { className: "k-datetime-time-wrap" }, React.createElement(TimePart, { key: 1, onNowClick: this.handleNowClick, disabled: disabled || this.state.tab !== 'time', ref: function (timePart) { _this._timePart = timePart; }, min: this.minTime || MIN_TIME, max: this.maxTime || MAX_TIME, steps: this.props.steps, value: this.state.timeValue, format: format, onChange: this.handleTimeListContainerChange, onMount: this.handleTimePartMount }))),
|
|
217
|
-
React.createElement("div", { className: "k-datetime-footer k-actions k-
|
|
217
|
+
React.createElement("div", { className: "k-datetime-footer k-actions k-actions-stretched " },
|
|
218
218
|
cancelButton && React.createElement(Button, __assign({ type: "button", ref: function (btn) { _this._cancelButton = btn; }, className: "k-time-cancel", onClick: this.handleReject, title: cancelMessage }, { 'aria-label': cancelMessage }), cancelMessage),
|
|
219
219
|
React.createElement(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))));
|
|
220
220
|
};
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-dateinputs',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1662114661,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
|
@@ -178,11 +178,11 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
178
178
|
var localizationService = provideLocalizationService(this);
|
|
179
179
|
var cancelMessage = localizationService.toLanguageString(timePickerCancel, messages[timePickerCancel]);
|
|
180
180
|
var setMessage = localizationService.toLanguageString(timePickerSet, messages[timePickerSet]);
|
|
181
|
-
return (React.createElement("div", { ref: function (el) { _this._element = el; }, tabIndex: !disabled ? tabIndex || 0 : undefined, className: classNames('k-timeselector
|
|
181
|
+
return (React.createElement("div", { ref: function (el) { _this._element = el; }, tabIndex: !disabled ? tabIndex || 0 : undefined, className: classNames('k-timeselector', className, {
|
|
182
182
|
'k-disabled': disabled
|
|
183
183
|
}), onKeyDown: this.handleKeyDown },
|
|
184
184
|
React.createElement(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 }),
|
|
185
|
-
React.createElement("div", { className: "k-time-footer k-actions k-
|
|
185
|
+
React.createElement("div", { className: "k-time-footer k-actions k-actions-stretched" },
|
|
186
186
|
cancelButton &&
|
|
187
187
|
React.createElement(Button, __assign({ type: "button", ref: function (btn) { _this._cancelButton = btn; }, className: "k-time-cancel", onClick: this.handleReject, title: cancelMessage }, { 'aria-label': cancelMessage }), cancelMessage),
|
|
188
188
|
React.createElement(Button, __assign({ type: "button", ref: function (btn) { _this._acceptButton = btn; }, className: "k-time-accept", themeColor: 'primary', onClick: this.handleAccept, title: setMessage }, { 'aria-label': setMessage }), setMessage))));
|
|
@@ -130,7 +130,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
130
130
|
'k-calendar-decadeview': this.props.activeView === models_1.CalendarViewEnum.decade,
|
|
131
131
|
'k-calendar-centuryview': this.props.activeView === models_1.CalendarViewEnum.century
|
|
132
132
|
});
|
|
133
|
-
return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: rootClassNames }, this.props.dates.map(function (date) { return (React.createElement("table", { className: "k-calendar-table k-
|
|
133
|
+
return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: rootClassNames }, this.props.dates.map(function (date) { return (React.createElement("table", { className: "k-calendar-table k-content", key: date.getTime(), role: "grid" },
|
|
134
134
|
React.createElement(View_1.View, { bus: _this.props.bus, service: _this.props.service, key: date.getTime(), direction: "horizontal", activeView: _this.props.activeView, cellUID: _this.props.cellUID, viewDate: date, min: _this.min, max: _this.max, focusedDate: _this.props.focusedDate, selectionRange: selectionRange, selectedDate: _this.props.value, showWeekNumbers: _this.weekNumber, onChange: _this.handleDateChange, onCellEnter: _this.props.onCellEnter, cell: _this.props.cell, weekCell: _this.props.weekCell }))); })));
|
|
135
135
|
};
|
|
136
136
|
HorizontalViewList.defaultProps = {
|
|
@@ -465,9 +465,9 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
465
465
|
var activeDate = (0, kendo_date_math_1.cloneDate)(this.dates && this.dates[0] ? this.dates[0] : (0, utils_1.getToday)());
|
|
466
466
|
return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: wrapperClassName, id: this.props.id || this.wrapperID, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, tabIndex: !this.props.disabled ? this.props.tabIndex : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "aria-disabled": this.props.disabled },
|
|
467
467
|
React.createElement(Header_1.Header, { key: ".kendo.calendar.header.".concat(activeDate.getTime()), activeView: activeView, currentDate: activeDate, min: this.min, max: this.max, rangeLength: this.props.views, bus: this.bus, service: this.service, headerTitle: this.props.headerTitle, commands: (React.createElement(React.Fragment, null,
|
|
468
|
-
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", className: "k-nav-prev", icon: "
|
|
468
|
+
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", className: "k-calendar-nav-prev", icon: "chevron-left", fillMode: "flat", title: prevViewTitle, disabled: isPrevDisabled, onClick: this.handlePrevButtonClick }, prevBtnAria)),
|
|
469
469
|
React.createElement(TodayCommand_1.TodayCommand, { min: this.min, max: this.max, onClick: this.handleTodayClick, disabled: !this.todayIsInRange }),
|
|
470
|
-
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", className: "k-nav-next", icon: "
|
|
470
|
+
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", className: "k-calendar-nav-next", icon: "chevron-right", fillMode: "flat", title: nextViewTittle, disabled: isNextDisabled, onClick: this.handleNextButtonClick }, nextBtnAria)))) }),
|
|
471
471
|
React.createElement(HorizontalViewList_1.HorizontalViewList, { ref: function (el) { _this.calendarViewList = el; }, dates: this.dates, activeView: activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, bus: this.bus, service: this.service, selectionRange: visualizedRange, value: this.selectedMultiple || this.selectedDate, cellUID: this.cellUID, views: this.props.views, onChange: this.handleDateChange, showWeekNumbers: this.props.weekNumber, onCellEnter: this.handleCellEnter, cell: this.props.cell, weekCell: this.props.weekCell, headerTitle: this.props.headerTitle })));
|
|
472
472
|
};
|
|
473
473
|
/**
|
|
@@ -74,7 +74,7 @@ var TodayCommand = /** @class */ (function (_super) {
|
|
|
74
74
|
TodayCommand.prototype.render = function () {
|
|
75
75
|
this.localization = (0, kendo_react_intl_1.provideLocalizationService)(this);
|
|
76
76
|
var todayMessage = this.localization.toLanguageString(messages_1.today, messages_1.messages[messages_1.today]);
|
|
77
|
-
var todayClassNames = (0, kendo_react_common_1.classNames)('k-nav-today', {
|
|
77
|
+
var todayClassNames = (0, kendo_react_common_1.classNames)('k-calendar-nav-today', {
|
|
78
78
|
'k-disabled': this.props.disabled
|
|
79
79
|
});
|
|
80
80
|
return (React.createElement("span", { className: todayClassNames, onClick: this.handleClick, tabIndex: this.props.tabIndex }, todayMessage));
|
|
@@ -186,7 +186,7 @@ var View = /** @class */ (function (_super) {
|
|
|
186
186
|
React.createElement("tr", { role: "row", className: "k-calendar-tr" }, weekNames.map(function (name, idx) { return (React.createElement("th", { key: idx, className: "k-calendar-th" }, name)); })))),
|
|
187
187
|
React.createElement("tbody", { role: "rowgroup", className: "k-calendar-tbody" },
|
|
188
188
|
!this.isHorizontal && (React.createElement("tr", { role: "presentation", className: "k-calendar-tr" },
|
|
189
|
-
React.createElement("th", { scope: "col", colSpan: colSpan, className: "k-calendar-
|
|
189
|
+
React.createElement("th", { scope: "col", colSpan: colSpan, className: "k-calendar-caption" }, title))),
|
|
190
190
|
data.map(function (row, idx) {
|
|
191
191
|
return (React.createElement("tr", { role: "row", className: "k-calendar-tr", key: idx },
|
|
192
192
|
_this.weekNumber && _this.buildWeekNumber(row, idx),
|
|
@@ -49,7 +49,7 @@ var DOMService = /** @class */ (function () {
|
|
|
49
49
|
var tbody = (0, utils_1.domContainerFactory)('tbody');
|
|
50
50
|
var thead = (0, utils_1.domContainerFactory)('thead');
|
|
51
51
|
var table = (0, utils_1.domContainerFactory)('table');
|
|
52
|
-
var monthHeader = function () { return (div("\n <span class=\"k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title\">\n <span className=\"k-button-text\">March 2017</span>\n </span>\n <span class=\"k-spacer\"></span>\n <span class=\"k-calendar-nav k-hstack\"><span class=\"k-nav-today\">TODAY</span></span>\n ", 'k-calendar-header k-hstack')); };
|
|
52
|
+
var monthHeader = function () { return (div("\n <span class=\"k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title\">\n <span className=\"k-button-text\">March 2017</span>\n </span>\n <span class=\"k-spacer\"></span>\n <span class=\"k-calendar-nav k-hstack\"><span class=\"k-calendar-nav-today\">TODAY</span></span>\n ", 'k-calendar-header k-hstack')); };
|
|
53
53
|
var monthWeekHeader = function () { return (table([
|
|
54
54
|
thead([
|
|
55
55
|
tr([th('MO', 'k-calendar-th')], 'k-calendar-tr')
|
|
@@ -283,8 +283,8 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
283
283
|
React.createElement("input", { role: _this.props.ariaRole || 'textbox', tabIndex: _this.props.tabIndex, disabled: _this.props.disabled, title: _this.props.title !== undefined ? _this.props.title : currentText, type: "text", spellCheck: false, autoComplete: "off", autoCorrect: "off", className: "k-input-inner", id: inputId, "aria-label": _this.props.ariaLabel, "aria-labelledby": _this.props.ariaLabelledBy, "aria-describedby": _this.props.ariaDescribedBy, "aria-haspopup": _this.props.ariaHasPopup, "aria-disabled": _this.props.disabled, "aria-expanded": _this.props.ariaExpanded, "aria-controls": _this.props.ariaControls, onWheel: _this.wheel, onClick: _this.elementClick, onInput: _this.elementChange, onPaste: _this.handlePaste, onKeyDown: _this.elementKeyDown, onChange: kendo_react_common_1.noop, value: text, placeholder: placeholder, name: name, ref: function (input) { return _this._element = input; } }),
|
|
284
284
|
_this.props.children,
|
|
285
285
|
_this.props.spinners && (React.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: _this.spinnersMouseDown },
|
|
286
|
-
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", className: "k-spinner-increase", icon: '
|
|
287
|
-
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", className: "k-spinner-decrease", icon: '
|
|
286
|
+
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-increase", icon: 'caret-alt-up', "aria-label": localizationService.toLanguageString(messages_1.increaseValue, messages_1.messages[messages_1.increaseValue]), title: localizationService.toLanguageString(messages_1.increaseValue, messages_1.messages[messages_1.increaseValue]), onClick: _this.increasePart }),
|
|
287
|
+
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-decrease", icon: 'caret-alt-down', "aria-label": localizationService.toLanguageString(messages_1.decreaseValue, messages_1.messages[messages_1.decreaseValue]), title: localizationService.toLanguageString(messages_1.decreaseValue, messages_1.messages[messages_1.decreaseValue]), onClick: _this.decreasePart })))));
|
|
288
288
|
}));
|
|
289
289
|
return label
|
|
290
290
|
? (React.createElement(kendo_react_labels_1.FloatingLabel, { label: label, editorId: inputId, editorValue: currentText, editorValid: isValid, editorDisabled: this.props.disabled, children: dateinput, style: { width: this.props.width } }))
|
|
@@ -102,12 +102,6 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
102
102
|
if (!_this.shouldFocusDateInput) {
|
|
103
103
|
_this.setShow(true);
|
|
104
104
|
}
|
|
105
|
-
if (_this.startDateInput && _this.startDateInput.element) {
|
|
106
|
-
_this.startDateInput.element.classList.add('k-focus');
|
|
107
|
-
}
|
|
108
|
-
if (_this.endDateInput && _this.endDateInput.element) {
|
|
109
|
-
_this.endDateInput.element.classList.add('k-focus');
|
|
110
|
-
}
|
|
111
105
|
var onFocus = _this.props.onFocus;
|
|
112
106
|
if (onFocus) {
|
|
113
107
|
onFocus.call(undefined, event);
|
|
@@ -115,12 +109,6 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
115
109
|
};
|
|
116
110
|
_this.handleBlur = function (event) {
|
|
117
111
|
_this.nextTick(function () {
|
|
118
|
-
if (_this.startDateInput && _this.startDateInput.element) {
|
|
119
|
-
_this.startDateInput.element.classList.remove('k-focus');
|
|
120
|
-
}
|
|
121
|
-
if (_this.endDateInput && _this.endDateInput.element) {
|
|
122
|
-
_this.endDateInput.element.classList.remove('k-focus');
|
|
123
|
-
}
|
|
124
112
|
_this.setShow(false);
|
|
125
113
|
});
|
|
126
114
|
var onBlur = _this.props.onBlur;
|
|
@@ -349,7 +349,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
349
349
|
'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(_this)
|
|
350
350
|
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector])
|
|
351
351
|
})),
|
|
352
|
-
React.createElement(PopupComponent, { show: _this.show, animate: _this.element !== null, anchor: _this.element,
|
|
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
353
|
horizontal: 'left',
|
|
354
354
|
vertical: 'bottom'
|
|
355
355
|
}, popupAlign: {
|
|
@@ -217,7 +217,7 @@ var DateTimeSelector = /** @class */ (function (_super) {
|
|
|
217
217
|
React.createElement(this.props.calendar, __assign({}, calendarProps)) :
|
|
218
218
|
React.createElement(Calendar_1.Calendar, __assign({ ref: function (calendar) { _this._calendar = calendar; } }, calendarProps))),
|
|
219
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-
|
|
220
|
+
React.createElement("div", { className: "k-datetime-footer k-actions k-actions-stretched " },
|
|
221
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
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))));
|
|
223
223
|
};
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-dateinputs',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1662114661,
|
|
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
|
};
|
|
@@ -181,11 +181,11 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
181
181
|
var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
|
|
182
182
|
var cancelMessage = localizationService.toLanguageString(messages_1.timePickerCancel, messages_1.messages[messages_1.timePickerCancel]);
|
|
183
183
|
var setMessage = localizationService.toLanguageString(messages_1.timePickerSet, messages_1.messages[messages_1.timePickerSet]);
|
|
184
|
-
return (React.createElement("div", { ref: function (el) { _this._element = el; }, tabIndex: !disabled ? tabIndex || 0 : undefined, className: (0, kendo_react_common_1.classNames)('k-timeselector
|
|
184
|
+
return (React.createElement("div", { ref: function (el) { _this._element = el; }, tabIndex: !disabled ? tabIndex || 0 : undefined, className: (0, kendo_react_common_1.classNames)('k-timeselector', className, {
|
|
185
185
|
'k-disabled': disabled
|
|
186
186
|
}), onKeyDown: this.handleKeyDown },
|
|
187
187
|
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 }),
|
|
188
|
-
React.createElement("div", { className: "k-time-footer k-actions k-
|
|
188
|
+
React.createElement("div", { className: "k-time-footer k-actions k-actions-stretched" },
|
|
189
189
|
cancelButton &&
|
|
190
190
|
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),
|
|
191
191
|
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", ref: function (btn) { _this._acceptButton = btn; }, className: "k-time-accept", themeColor: 'primary', onClick: this.handleAccept, title: setMessage }, { 'aria-label': setMessage }), setMessage))));
|