@progress/kendo-react-dateinputs 5.5.1-dev.202207221045 → 5.6.0-dev.202208080636
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/README.md +2 -2
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/dist/es/calendar/components/Calendar.js +2 -17
- package/dist/es/calendar/components/HorizontalViewList.js +1 -1
- package/dist/es/calendar/components/MultiViewCalendar.js +1 -5
- package/dist/es/calendar/components/Navigation.d.ts +2 -0
- package/dist/es/calendar/components/Navigation.js +3 -2
- package/dist/es/calendar/components/TodayCommand.d.ts +1 -0
- package/dist/es/calendar/components/TodayCommand.js +1 -1
- package/dist/es/calendar/components/ViewList.d.ts +2 -0
- package/dist/es/calendar/components/ViewList.js +5 -4
- package/dist/es/dateinput/DateInput.d.ts +9 -0
- package/dist/es/dateinput/DateInput.js +3 -10
- package/dist/es/datepicker/DatePicker.js +3 -4
- package/dist/es/daterangepicker/DateRangePicker.d.ts +4 -3
- package/dist/es/daterangepicker/DateRangePicker.js +2 -2
- package/dist/es/datetimepicker/DateTimePicker.js +1 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimePicker.js +1 -2
- package/dist/npm/calendar/components/Calendar.js +2 -17
- package/dist/npm/calendar/components/HorizontalViewList.js +1 -1
- package/dist/npm/calendar/components/MultiViewCalendar.js +1 -5
- package/dist/npm/calendar/components/Navigation.d.ts +2 -0
- package/dist/npm/calendar/components/Navigation.js +3 -2
- package/dist/npm/calendar/components/TodayCommand.d.ts +1 -0
- package/dist/npm/calendar/components/TodayCommand.js +1 -1
- package/dist/npm/calendar/components/ViewList.d.ts +2 -0
- package/dist/npm/calendar/components/ViewList.js +5 -4
- package/dist/npm/dateinput/DateInput.d.ts +9 -0
- package/dist/npm/dateinput/DateInput.js +3 -10
- package/dist/npm/datepicker/DatePicker.js +3 -4
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +4 -3
- package/dist/npm/daterangepicker/DateRangePicker.js +2 -2
- package/dist/npm/datetimepicker/DateTimePicker.js +1 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimePicker.js +1 -2
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +14 -13
|
@@ -382,7 +382,6 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
382
382
|
value: value,
|
|
383
383
|
label: undefined,
|
|
384
384
|
placeholder: !this.state.focused ? this.props.placeholder : null,
|
|
385
|
-
ariaHasPopup: true,
|
|
386
385
|
ariaExpanded: this.show,
|
|
387
386
|
size: null,
|
|
388
387
|
fillMode: null,
|
|
@@ -409,7 +408,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
409
408
|
var datepicker = (React.createElement(kendo_react_common_1.AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.handleBlur, onSyncBlur: this.props.onBlur, onSyncFocus: this.props.onFocus }, function (_a) {
|
|
410
409
|
var _b;
|
|
411
410
|
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
412
|
-
return (React.createElement("span", {
|
|
411
|
+
return (React.createElement("span", { ref: function (span) { _this._element = span; }, className: (0, kendo_react_common_1.classNames)('k-input', 'k-datepicker', (_b = {},
|
|
413
412
|
_b["k-input-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
414
413
|
_b["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
415
414
|
_b["k-input-".concat(fillMode)] = fillMode,
|
|
@@ -417,8 +416,8 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
417
416
|
_b['k-required'] = _this.required,
|
|
418
417
|
_b['k-disabled'] = _this.props.disabled,
|
|
419
418
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
420
|
-
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput }, dateInputProps)),
|
|
421
|
-
React.createElement(_this.toggleButtonComp, {
|
|
419
|
+
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: 'combobox', ariaExpanded: _this.show, ariaHasPopup: true, 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 }),
|
|
422
421
|
React.createElement(_this.popupComp, __assign({}, popupProps),
|
|
423
422
|
React.createElement(_this.calendarComp, __assign({ _ref: _this.setCalendarRef }, calendarProps)))));
|
|
424
423
|
}));
|
|
@@ -119,6 +119,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
119
119
|
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
120
120
|
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
121
121
|
ariaLabel: PropTypes.Requireable<string>;
|
|
122
|
+
ariaRole: PropTypes.Requireable<string>;
|
|
122
123
|
ariaExpanded: PropTypes.Requireable<boolean>;
|
|
123
124
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
124
125
|
validationMessage: PropTypes.Requireable<string>;
|
|
@@ -126,10 +127,10 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
126
127
|
validate: PropTypes.Requireable<boolean>;
|
|
127
128
|
valid: PropTypes.Requireable<boolean>;
|
|
128
129
|
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
129
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>;
|
|
130
|
-
|
|
131
|
-
* Gets the wrapping element of the DateRangePicker.
|
|
130
|
+
rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>; /**
|
|
131
|
+
* Gets the start DateInput component inside the DatePicker component.
|
|
132
132
|
*/
|
|
133
|
+
fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>;
|
|
133
134
|
}>>;
|
|
134
135
|
focusedDate: PropTypes.Requireable<Date>;
|
|
135
136
|
format: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
@@ -362,7 +362,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
362
362
|
}, 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 },
|
|
363
363
|
this.props.startDateInput
|
|
364
364
|
? React.createElement(this.props.startDateInput, __assign({}, startDateInputProps))
|
|
365
|
-
: React.createElement(DateInput_1.DateInput, __assign({}, startDateInputProps, { ref: this._startDateInput })),
|
|
365
|
+
: React.createElement(DateInput_1.DateInput, __assign({}, startDateInputProps, { ref: this._startDateInput, ariaRole: "combobox", ariaControls: this._popupId })),
|
|
366
366
|
(this.props.allowReverse
|
|
367
367
|
|| (this.props.calendarSettings && this.props.calendarSettings.allowReverse))
|
|
368
368
|
&& this.props.swapButton
|
|
@@ -370,7 +370,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
370
370
|
: (separatorMessage),
|
|
371
371
|
this.props.endDateInput
|
|
372
372
|
? React.createElement(this.props.endDateInput, __assign({}, endDateInputProps))
|
|
373
|
-
: React.createElement(DateInput_1.DateInput, __assign({}, endDateInputProps, { ref: this._endDateInput })),
|
|
373
|
+
: React.createElement(DateInput_1.DateInput, __assign({}, endDateInputProps, { ref: this._endDateInput, ariaRole: "combobox", ariaControls: this._popupId })),
|
|
374
374
|
this.props.popup
|
|
375
375
|
? React.createElement(this.props.popup, __assign({}, popupProps), calendar)
|
|
376
376
|
: React.createElement(kendo_react_popup_1.Popup, __assign({}, popupProps), calendar)));
|
|
@@ -343,10 +343,9 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
343
343
|
_b['k-required'] = _this.required,
|
|
344
344
|
_b['k-disabled'] = _this.props.disabled,
|
|
345
345
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
346
|
-
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput }, dataInputProps)),
|
|
346
|
+
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: "combobox", ariaControls: _this._popupId }, dataInputProps)),
|
|
347
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)
|
|
348
348
|
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector]), className: "k-input-button", rounded: null }, {
|
|
349
|
-
'aria-controls': _this._popupId,
|
|
350
349
|
'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(_this)
|
|
351
350
|
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector])
|
|
352
351
|
})),
|
|
@@ -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: 1659939286,
|
|
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
|
};
|
|
@@ -383,9 +383,8 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
383
383
|
_b['k-required'] = _this.required,
|
|
384
384
|
_b['k-disabled'] = _this.props.disabled,
|
|
385
385
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
386
|
-
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput }, dateInputProps)),
|
|
386
|
+
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: "combobox", ariaControls: _this._popupId }, dateInputProps)),
|
|
387
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
|
-
'aria-controls': _this._popupId,
|
|
389
388
|
'aria-label': toggleClockMessage
|
|
390
389
|
})),
|
|
391
390
|
_this.props.popup
|