@progress/kendo-react-dateinputs 5.20.0-dev.202309291254 → 5.20.0-dev.202310030924
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.d.ts +0 -1
- package/dist/es/calendar/components/Calendar.js +2 -2
- package/dist/es/calendar/models/CalendarSettings.d.ts +3 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/calendar/components/Calendar.d.ts +0 -1
- package/dist/npm/calendar/components/Calendar.js +2 -2
- package/dist/npm/calendar/models/CalendarSettings.d.ts +3 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +13 -13
|
@@ -301,12 +301,13 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
301
301
|
this.intl = provideIntlService(this);
|
|
302
302
|
this.bus.configure(this.bottomView, this.topView);
|
|
303
303
|
this.service = this.bus.service(activeView, this.intl);
|
|
304
|
+
var _a = this.props.smoothScroll, smoothScroll = _a === void 0 ? Number.parseFloat(React.version) < 18 : _a;
|
|
304
305
|
var rootClassNames = classNames('k-widget k-calendar k-calendar-infinite', {
|
|
305
306
|
'k-disabled': this.props.disabled,
|
|
306
307
|
'k-week-number': this.props.weekNumber,
|
|
307
308
|
'k-calendar-lg': this.props.mobileMode
|
|
308
309
|
}, this.props.className);
|
|
309
|
-
var calendarBody = [this.props.navigation && (React.createElement(Navigation, { key: 0, ref: function (el) { _this.Navigation = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, onScroll: this.handleScroll, onChange: this.handleNavigationChange, service: this.service, dom: this.dom, navigationItem: this.props.navigationItem, tabIndex: this.props.tabIndex })), (React.createElement(ViewList, { key: 1, ref: function (el) { _this.calendarViewList = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, bus: this.bus, shouldScroll: this.shouldScroll, onScroll: this.handleScroll, service: this.service, cell: this.props.cell, weekCell: this.props.weekCell, dom: this.dom, smoothScroll:
|
|
310
|
+
var calendarBody = [this.props.navigation && (React.createElement(Navigation, { key: 0, ref: function (el) { _this.Navigation = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, onScroll: this.handleScroll, onChange: this.handleNavigationChange, service: this.service, dom: this.dom, navigationItem: this.props.navigationItem, tabIndex: this.props.tabIndex })), (React.createElement(ViewList, { key: 1, ref: function (el) { _this.calendarViewList = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, bus: this.bus, shouldScroll: this.shouldScroll, onScroll: this.handleScroll, service: this.service, cell: this.props.cell, weekCell: this.props.weekCell, dom: this.dom, smoothScroll: smoothScroll, showWeekNumbers: this.props.weekNumber, onChange: this.handleDateChange, value: sanitizedValue, cellUID: this.cellUID, headerTitle: this.props.headerTitle, tabIndex: this.props.tabIndex }))];
|
|
310
311
|
return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: rootClassNames, id: this.props.id || this.id, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, "aria-disabled": this.props.disabled, tabIndex: !this.props.disabled ? this.props.tabIndex || 0 : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, onMouseDown: this.handleMouseDown, onClick: this.handleClick }, calendarBody));
|
|
311
312
|
};
|
|
312
313
|
/**
|
|
@@ -362,7 +363,6 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
362
363
|
navigation: true,
|
|
363
364
|
defaultActiveView: 'month',
|
|
364
365
|
defaultValue: null,
|
|
365
|
-
smoothScroll: true,
|
|
366
366
|
topView: 'century',
|
|
367
367
|
bottomView: 'month'
|
|
368
368
|
};
|
|
@@ -55,7 +55,9 @@ export interface CalendarSettings {
|
|
|
55
55
|
*/
|
|
56
56
|
navigation?: boolean;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* **Deprecated**
|
|
59
|
+
*
|
|
60
|
+
* Toggles the smooth scroll animation on navigation item click. By default, the animation is enabled in React 17.
|
|
59
61
|
*/
|
|
60
62
|
smoothScroll?: boolean;
|
|
61
63
|
/**
|
|
@@ -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: 1696322565,
|
|
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
|
};
|
|
@@ -304,12 +304,13 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
304
304
|
this.intl = (0, kendo_react_intl_1.provideIntlService)(this);
|
|
305
305
|
this.bus.configure(this.bottomView, this.topView);
|
|
306
306
|
this.service = this.bus.service(activeView, this.intl);
|
|
307
|
+
var _a = this.props.smoothScroll, smoothScroll = _a === void 0 ? Number.parseFloat(React.version) < 18 : _a;
|
|
307
308
|
var rootClassNames = (0, kendo_react_common_1.classNames)('k-widget k-calendar k-calendar-infinite', {
|
|
308
309
|
'k-disabled': this.props.disabled,
|
|
309
310
|
'k-week-number': this.props.weekNumber,
|
|
310
311
|
'k-calendar-lg': this.props.mobileMode
|
|
311
312
|
}, this.props.className);
|
|
312
|
-
var calendarBody = [this.props.navigation && (React.createElement(Navigation_1.Navigation, { key: 0, ref: function (el) { _this.Navigation = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, onScroll: this.handleScroll, onChange: this.handleNavigationChange, service: this.service, dom: this.dom, navigationItem: this.props.navigationItem, tabIndex: this.props.tabIndex })), (React.createElement(ViewList_1.ViewList, { key: 1, ref: function (el) { _this.calendarViewList = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, bus: this.bus, shouldScroll: this.shouldScroll, onScroll: this.handleScroll, service: this.service, cell: this.props.cell, weekCell: this.props.weekCell, dom: this.dom, smoothScroll:
|
|
313
|
+
var calendarBody = [this.props.navigation && (React.createElement(Navigation_1.Navigation, { key: 0, ref: function (el) { _this.Navigation = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, onScroll: this.handleScroll, onChange: this.handleNavigationChange, service: this.service, dom: this.dom, navigationItem: this.props.navigationItem, tabIndex: this.props.tabIndex })), (React.createElement(ViewList_1.ViewList, { key: 1, ref: function (el) { _this.calendarViewList = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, bus: this.bus, shouldScroll: this.shouldScroll, onScroll: this.handleScroll, service: this.service, cell: this.props.cell, weekCell: this.props.weekCell, dom: this.dom, smoothScroll: smoothScroll, showWeekNumbers: this.props.weekNumber, onChange: this.handleDateChange, value: sanitizedValue, cellUID: this.cellUID, headerTitle: this.props.headerTitle, tabIndex: this.props.tabIndex }))];
|
|
313
314
|
return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: rootClassNames, id: this.props.id || this.id, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, "aria-disabled": this.props.disabled, tabIndex: !this.props.disabled ? this.props.tabIndex || 0 : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, onMouseDown: this.handleMouseDown, onClick: this.handleClick }, calendarBody));
|
|
314
315
|
};
|
|
315
316
|
/**
|
|
@@ -365,7 +366,6 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
365
366
|
navigation: true,
|
|
366
367
|
defaultActiveView: 'month',
|
|
367
368
|
defaultValue: null,
|
|
368
|
-
smoothScroll: true,
|
|
369
369
|
topView: 'century',
|
|
370
370
|
bottomView: 'month'
|
|
371
371
|
};
|
|
@@ -55,7 +55,9 @@ export interface CalendarSettings {
|
|
|
55
55
|
*/
|
|
56
56
|
navigation?: boolean;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* **Deprecated**
|
|
59
|
+
*
|
|
60
|
+
* Toggles the smooth scroll animation on navigation item click. By default, the animation is enabled in React 17.
|
|
59
61
|
*/
|
|
60
62
|
smoothScroll?: boolean;
|
|
61
63
|
/**
|
|
@@ -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: 1696322565,
|
|
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
|
};
|