@progress/kendo-react-dateinputs 5.10.0-dev.202301092204 → 5.10.0-dev.202301111405
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/MultiViewCalendar.js +3 -2
- package/dist/es/dateinput/DateInput.js +3 -2
- package/dist/es/datepicker/DatePicker.js +2 -1
- package/dist/es/daterangepicker/DateRangePicker.d.ts +1 -3
- package/dist/es/daterangepicker/DateRangePicker.js +3 -2
- package/dist/es/datetimepicker/DateTimePicker.js +2 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimePicker.js +2 -1
- package/dist/npm/calendar/components/MultiViewCalendar.js +3 -2
- package/dist/npm/dateinput/DateInput.js +3 -2
- package/dist/npm/datepicker/DatePicker.js +2 -1
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +1 -3
- package/dist/npm/daterangepicker/DateRangePicker.js +2 -1
- package/dist/npm/datetimepicker/DateTimePicker.js +2 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimePicker.js +2 -1
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +14 -12
|
@@ -30,6 +30,7 @@ import { registerForIntl, provideIntlService, registerForLocalization, provideLo
|
|
|
30
30
|
import { classNames, guid, Keys, createPropsContext, withPropsContext } from '@progress/kendo-react-common';
|
|
31
31
|
import { cloneDate, isEqualDate, getDate } from '@progress/kendo-date-math';
|
|
32
32
|
import { Button } from '@progress/kendo-react-buttons';
|
|
33
|
+
import { chevronLeftIcon, chevronRightIcon } from '@progress/kendo-svg-icons';
|
|
33
34
|
import { Action, CalendarViewEnum, EMPTY_SELECTIONRANGE } from '../models';
|
|
34
35
|
import { Header } from './Header';
|
|
35
36
|
import { MIN_DATE, MAX_DATE } from '../../defaults';
|
|
@@ -462,9 +463,9 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
462
463
|
var activeDate = cloneDate(this.dates && this.dates[0] ? this.dates[0] : getToday());
|
|
463
464
|
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
465
|
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-calendar-nav-prev", icon: "chevron-left", fillMode: "flat", title: prevViewTitle, disabled: isPrevDisabled, onClick: this.handlePrevButtonClick }, prevBtnAria)),
|
|
466
|
+
React.createElement(Button, __assign({ type: "button", className: "k-calendar-nav-prev", icon: "chevron-left", svgIcon: chevronLeftIcon, fillMode: "flat", title: prevViewTitle, disabled: isPrevDisabled, onClick: this.handlePrevButtonClick }, prevBtnAria)),
|
|
466
467
|
React.createElement(TodayCommand, { min: this.min, max: this.max, onClick: this.handleTodayClick, disabled: !this.todayIsInRange }),
|
|
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
|
+
React.createElement(Button, __assign({ type: "button", className: "k-calendar-nav-next", icon: "chevron-right", svgIcon: chevronRightIcon, fillMode: "flat", title: nextViewTittle, disabled: isNextDisabled, onClick: this.handleNextButtonClick }, nextBtnAria)))) }),
|
|
468
469
|
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
470
|
};
|
|
470
471
|
/**
|
|
@@ -37,6 +37,7 @@ import * as React from 'react';
|
|
|
37
37
|
import * as PropTypes from 'prop-types';
|
|
38
38
|
import { isEqual, cloneDate } from '@progress/kendo-date-math';
|
|
39
39
|
import { Button } from '@progress/kendo-react-buttons';
|
|
40
|
+
import { caretAltUpIcon, caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
40
41
|
import { registerForIntl, provideIntlService, registerForLocalization, provideLocalizationService } from '@progress/kendo-react-intl';
|
|
41
42
|
import { KendoDate } from './models';
|
|
42
43
|
import { guid, AsyncFocusBlur, noop, classNames, createPropsContext, withPropsContext, kendoThemeMaps } from '@progress/kendo-react-common';
|
|
@@ -280,8 +281,8 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
280
281
|
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
282
|
_this.props.children,
|
|
282
283
|
_this.props.spinners && (React.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: _this.spinnersMouseDown },
|
|
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 })))));
|
|
284
|
+
React.createElement(Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-increase", icon: 'caret-alt-up', svgIcon: caretAltUpIcon, "aria-label": localizationService.toLanguageString(increaseValue, messages[increaseValue]), title: localizationService.toLanguageString(increaseValue, messages[increaseValue]), onClick: _this.increasePart }),
|
|
285
|
+
React.createElement(Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-decrease", icon: 'caret-alt-down', svgIcon: caretAltDownIcon, "aria-label": localizationService.toLanguageString(decreaseValue, messages[decreaseValue]), title: localizationService.toLanguageString(decreaseValue, messages[decreaseValue]), onClick: _this.decreasePart })))));
|
|
285
286
|
}));
|
|
286
287
|
return label
|
|
287
288
|
? (React.createElement(FloatingLabel, { label: label, editorId: inputId, editorValue: currentText, editorValid: isValid, editorDisabled: this.props.disabled, children: dateinput, style: { width: this.props.width } }))
|
|
@@ -40,6 +40,7 @@ import * as PropTypes from 'prop-types';
|
|
|
40
40
|
import { Popup } from '@progress/kendo-react-popup';
|
|
41
41
|
import { getDate, cloneDate } from '@progress/kendo-date-math';
|
|
42
42
|
import { classNames, guid, Keys, AsyncFocusBlur, createPropsContext, withPropsContext, validatePackage, kendoThemeMaps } from '@progress/kendo-react-common';
|
|
43
|
+
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
43
44
|
import { packageMetadata } from '../package-metadata';
|
|
44
45
|
import { DateInput } from '../dateinput/DateInput';
|
|
45
46
|
import { Calendar } from '../calendar/components/Calendar';
|
|
@@ -414,7 +415,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
414
415
|
_b['k-disabled'] = _this.props.disabled,
|
|
415
416
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
416
417
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: 'combobox', ariaExpanded: _this.show, ariaControls: _this._popupId }, dateInputProps)),
|
|
417
|
-
React.createElement(_this.toggleButtonComp, { type: "button", icon: "calendar", title: toggleButtonTitle, className: "k-input-button", rounded: null, onClick: _this.handleIconClick, "aria-label": toggleButtonTitle, onMouseDown: _this.handleIconMouseDown }),
|
|
418
|
+
React.createElement(_this.toggleButtonComp, { type: "button", icon: "calendar", svgIcon: calendarIcon, title: toggleButtonTitle, className: "k-input-button", rounded: null, onClick: _this.handleIconClick, "aria-label": toggleButtonTitle, onMouseDown: _this.handleIconMouseDown }),
|
|
418
419
|
React.createElement(_this.popupComp, __assign({}, popupProps),
|
|
419
420
|
React.createElement(_this.calendarComp, __assign({ _ref: _this.setCalendarRef }, calendarProps)))));
|
|
420
421
|
}));
|
|
@@ -88,9 +88,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
88
88
|
minute: PropTypes.Requireable<string>;
|
|
89
89
|
second: PropTypes.Requireable<string>;
|
|
90
90
|
timeZoneName: PropTypes.Requireable<string>;
|
|
91
|
-
}> | null | undefined>>;
|
|
92
|
-
* @hidden
|
|
93
|
-
*/
|
|
91
|
+
}> | null | undefined>>;
|
|
94
92
|
formatPlaceholder: PropTypes.Requireable<NonNullable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
95
93
|
year: PropTypes.Requireable<string>;
|
|
96
94
|
month: PropTypes.Requireable<string>;
|
|
@@ -28,8 +28,9 @@ import * as React from 'react';
|
|
|
28
28
|
import * as PropTypes from 'prop-types';
|
|
29
29
|
import { Popup } from '@progress/kendo-react-popup';
|
|
30
30
|
import { cloneDate } from '@progress/kendo-date-math';
|
|
31
|
-
import { guid, classNames, Keys, createPropsContext, withPropsContext } from '@progress/kendo-react-common';
|
|
31
|
+
import { guid, classNames, Keys, createPropsContext, withPropsContext, IconWrap } from '@progress/kendo-react-common';
|
|
32
32
|
import { provideLocalizationService, registerForLocalization } from '@progress/kendo-react-intl';
|
|
33
|
+
import { arrowsSwapIcon } from '@progress/kendo-svg-icons';
|
|
33
34
|
import { validatePackage } from '@progress/kendo-react-common';
|
|
34
35
|
import { packageMetadata } from '../package-metadata';
|
|
35
36
|
import { DateInput, DateInputWithoutContext } from '../dateinput/DateInput';
|
|
@@ -341,7 +342,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
341
342
|
'aria-label': provideLocalizationService(this)
|
|
342
343
|
.toLanguageString(swapStartEnd, messages[swapStartEnd])
|
|
343
344
|
}),
|
|
344
|
-
React.createElement(
|
|
345
|
+
React.createElement(IconWrap, { style: { transform: 'rotate(90deg)' }, name: "arrows-swap", icon: arrowsSwapIcon })));
|
|
345
346
|
return (React.createElement("span", { ref: function (span) {
|
|
346
347
|
_this._element = span;
|
|
347
348
|
}, 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 },
|
|
@@ -29,6 +29,7 @@ import * as PropTypes from 'prop-types';
|
|
|
29
29
|
import { Popup } from '@progress/kendo-react-popup';
|
|
30
30
|
import { cloneDate } from '@progress/kendo-date-math';
|
|
31
31
|
import { classNames, guid, Keys, AsyncFocusBlur, createPropsContext, withPropsContext, kendoThemeMaps } from '@progress/kendo-react-common';
|
|
32
|
+
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
32
33
|
import { DateInput } from '../dateinput/DateInput';
|
|
33
34
|
import { validatePackage } from '@progress/kendo-react-common';
|
|
34
35
|
import { Button } from '@progress/kendo-react-buttons';
|
|
@@ -340,7 +341,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
340
341
|
_b['k-disabled'] = _this.props.disabled,
|
|
341
342
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
342
343
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: "combobox", ariaControls: _this._popupId }, dataInputProps)),
|
|
343
|
-
React.createElement(Button, __assign({ tabIndex: -1, type: "button", icon: 'calendar', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleDateIconClick, title: provideLocalizationService(_this)
|
|
344
|
+
React.createElement(Button, __assign({ tabIndex: -1, type: "button", icon: 'calendar', svgIcon: calendarIcon, onMouseDown: _this.handleIconMouseDown, onClick: _this.handleDateIconClick, title: provideLocalizationService(_this)
|
|
344
345
|
.toLanguageString(toggleDateTimeSelector, messages[toggleDateTimeSelector]), className: "k-input-button", rounded: null }, {
|
|
345
346
|
'aria-label': provideLocalizationService(_this)
|
|
346
347
|
.toLanguageString(toggleDateTimeSelector, messages[toggleDateTimeSelector])
|
|
@@ -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: 1673444580,
|
|
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
|
};
|
|
@@ -40,6 +40,7 @@ import * as PropTypes from 'prop-types';
|
|
|
40
40
|
import { Popup } from '@progress/kendo-react-popup';
|
|
41
41
|
import { cloneDate } from '@progress/kendo-date-math';
|
|
42
42
|
import { classNames, guid, Keys, AsyncFocusBlur, createPropsContext, withPropsContext, kendoThemeMaps } from '@progress/kendo-react-common';
|
|
43
|
+
import { clockIcon } from '@progress/kendo-svg-icons';
|
|
43
44
|
import { registerForLocalization, provideLocalizationService } from '@progress/kendo-react-intl';
|
|
44
45
|
import { validatePackage } from '@progress/kendo-react-common';
|
|
45
46
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -381,7 +382,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
381
382
|
_b['k-disabled'] = _this.props.disabled,
|
|
382
383
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
383
384
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: "combobox", ariaControls: _this._popupId }, dateInputProps)),
|
|
384
|
-
React.createElement(Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage, className: "k-input-button", rounded: null }, {
|
|
385
|
+
React.createElement(Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', svgIcon: clockIcon, onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage, className: "k-input-button", rounded: null }, {
|
|
385
386
|
'aria-label': toggleClockMessage
|
|
386
387
|
})),
|
|
387
388
|
_this.props.popup
|
|
@@ -33,6 +33,7 @@ var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
|
33
33
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
34
34
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
35
35
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
36
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
36
37
|
var models_1 = require("../models");
|
|
37
38
|
var Header_1 = require("./Header");
|
|
38
39
|
var defaults_1 = require("../../defaults");
|
|
@@ -465,9 +466,9 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
465
466
|
var activeDate = (0, kendo_date_math_1.cloneDate)(this.dates && this.dates[0] ? this.dates[0] : (0, utils_1.getToday)());
|
|
466
467
|
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
468
|
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-calendar-nav-prev", icon: "chevron-left", fillMode: "flat", title: prevViewTitle, disabled: isPrevDisabled, onClick: this.handlePrevButtonClick }, prevBtnAria)),
|
|
469
|
+
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", className: "k-calendar-nav-prev", icon: "chevron-left", svgIcon: kendo_svg_icons_1.chevronLeftIcon, fillMode: "flat", title: prevViewTitle, disabled: isPrevDisabled, onClick: this.handlePrevButtonClick }, prevBtnAria)),
|
|
469
470
|
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-calendar-nav-next", icon: "chevron-right", fillMode: "flat", title: nextViewTittle, disabled: isNextDisabled, onClick: this.handleNextButtonClick }, nextBtnAria)))) }),
|
|
471
|
+
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", className: "k-calendar-nav-next", icon: "chevron-right", svgIcon: kendo_svg_icons_1.chevronRightIcon, fillMode: "flat", title: nextViewTittle, disabled: isNextDisabled, onClick: this.handleNextButtonClick }, nextBtnAria)))) }),
|
|
471
472
|
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
473
|
};
|
|
473
474
|
/**
|
|
@@ -40,6 +40,7 @@ var React = require("react");
|
|
|
40
40
|
var PropTypes = require("prop-types");
|
|
41
41
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
42
42
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
43
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
43
44
|
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
44
45
|
var models_1 = require("./models");
|
|
45
46
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -283,8 +284,8 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
283
284
|
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
285
|
_this.props.children,
|
|
285
286
|
_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", 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 })))));
|
|
287
|
+
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-increase", icon: 'caret-alt-up', svgIcon: kendo_svg_icons_1.caretAltUpIcon, "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 }),
|
|
288
|
+
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-decrease", icon: 'caret-alt-down', svgIcon: kendo_svg_icons_1.caretAltDownIcon, "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
289
|
}));
|
|
289
290
|
return label
|
|
290
291
|
? (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 } }))
|
|
@@ -43,6 +43,7 @@ var PropTypes = require("prop-types");
|
|
|
43
43
|
var kendo_react_popup_1 = require("@progress/kendo-react-popup");
|
|
44
44
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
45
45
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
46
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
46
47
|
var package_metadata_1 = require("../package-metadata");
|
|
47
48
|
var DateInput_1 = require("../dateinput/DateInput");
|
|
48
49
|
var Calendar_1 = require("../calendar/components/Calendar");
|
|
@@ -417,7 +418,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
417
418
|
_b['k-disabled'] = _this.props.disabled,
|
|
418
419
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
419
420
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: 'combobox', ariaExpanded: _this.show, ariaControls: _this._popupId }, dateInputProps)),
|
|
420
|
-
React.createElement(_this.toggleButtonComp, { type: "button", icon: "calendar", title: toggleButtonTitle, className: "k-input-button", rounded: null, onClick: _this.handleIconClick, "aria-label": toggleButtonTitle, onMouseDown: _this.handleIconMouseDown }),
|
|
421
|
+
React.createElement(_this.toggleButtonComp, { type: "button", icon: "calendar", svgIcon: kendo_svg_icons_1.calendarIcon, title: toggleButtonTitle, className: "k-input-button", rounded: null, onClick: _this.handleIconClick, "aria-label": toggleButtonTitle, onMouseDown: _this.handleIconMouseDown }),
|
|
421
422
|
React.createElement(_this.popupComp, __assign({}, popupProps),
|
|
422
423
|
React.createElement(_this.calendarComp, __assign({ _ref: _this.setCalendarRef }, calendarProps)))));
|
|
423
424
|
}));
|
|
@@ -88,9 +88,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
88
88
|
minute: PropTypes.Requireable<string>;
|
|
89
89
|
second: PropTypes.Requireable<string>;
|
|
90
90
|
timeZoneName: PropTypes.Requireable<string>;
|
|
91
|
-
}> | null | undefined>>;
|
|
92
|
-
* @hidden
|
|
93
|
-
*/
|
|
91
|
+
}> | null | undefined>>;
|
|
94
92
|
formatPlaceholder: PropTypes.Requireable<NonNullable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
95
93
|
year: PropTypes.Requireable<string>;
|
|
96
94
|
month: PropTypes.Requireable<string>;
|
|
@@ -33,6 +33,7 @@ var kendo_react_popup_1 = require("@progress/kendo-react-popup");
|
|
|
33
33
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
34
34
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
35
35
|
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
36
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
36
37
|
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
37
38
|
var package_metadata_1 = require("../package-metadata");
|
|
38
39
|
var DateInput_1 = require("../dateinput/DateInput");
|
|
@@ -344,7 +345,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
344
345
|
'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(this)
|
|
345
346
|
.toLanguageString(messages_1.swapStartEnd, messages_1.messages[messages_1.swapStartEnd])
|
|
346
347
|
}),
|
|
347
|
-
React.createElement(
|
|
348
|
+
React.createElement(kendo_react_common_1.IconWrap, { style: { transform: 'rotate(90deg)' }, name: "arrows-swap", icon: kendo_svg_icons_1.arrowsSwapIcon })));
|
|
348
349
|
return (React.createElement("span", { ref: function (span) {
|
|
349
350
|
_this._element = span;
|
|
350
351
|
}, 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 },
|
|
@@ -32,6 +32,7 @@ var PropTypes = require("prop-types");
|
|
|
32
32
|
var kendo_react_popup_1 = require("@progress/kendo-react-popup");
|
|
33
33
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
34
34
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
35
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
35
36
|
var DateInput_1 = require("../dateinput/DateInput");
|
|
36
37
|
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
37
38
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
@@ -343,7 +344,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
343
344
|
_b['k-disabled'] = _this.props.disabled,
|
|
344
345
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
345
346
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: "combobox", ariaControls: _this._popupId }, dataInputProps)),
|
|
346
|
-
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)
|
|
347
|
+
React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'calendar', svgIcon: kendo_svg_icons_1.calendarIcon, onMouseDown: _this.handleIconMouseDown, onClick: _this.handleDateIconClick, title: (0, kendo_react_intl_1.provideLocalizationService)(_this)
|
|
347
348
|
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector]), className: "k-input-button", rounded: null }, {
|
|
348
349
|
'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(_this)
|
|
349
350
|
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector])
|
|
@@ -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: 1673444580,
|
|
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
|
};
|
|
@@ -43,6 +43,7 @@ var PropTypes = require("prop-types");
|
|
|
43
43
|
var kendo_react_popup_1 = require("@progress/kendo-react-popup");
|
|
44
44
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
45
45
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
46
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
46
47
|
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
47
48
|
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
48
49
|
var package_metadata_1 = require("../package-metadata");
|
|
@@ -384,7 +385,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
384
385
|
_b['k-disabled'] = _this.props.disabled,
|
|
385
386
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
386
387
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: "combobox", ariaControls: _this._popupId }, dateInputProps)),
|
|
387
|
-
React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage, className: "k-input-button", rounded: null }, {
|
|
388
|
+
React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', svgIcon: kendo_svg_icons_1.clockIcon, onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage, className: "k-input-button", rounded: null }, {
|
|
388
389
|
'aria-label': toggleClockMessage
|
|
389
390
|
})),
|
|
390
391
|
_this.props.popup
|