@progress/kendo-react-dateinputs 5.14.0 → 5.14.1
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.d.ts +6 -1
- package/dist/es/calendar/components/MultiViewCalendar.js +11 -14
- package/dist/es/daterangepicker/DateRangePicker.d.ts +5 -0
- package/dist/es/daterangepicker/DateRangePicker.js +3 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/virtualization/Virtualization.d.ts +0 -1
- package/dist/es/virtualization/Virtualization.js +3 -12
- package/dist/npm/calendar/components/MultiViewCalendar.d.ts +6 -1
- package/dist/npm/calendar/components/MultiViewCalendar.js +11 -14
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +5 -0
- package/dist/npm/daterangepicker/DateRangePicker.js +3 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/virtualization/Virtualization.d.ts +0 -1
- package/dist/npm/virtualization/Virtualization.js +3 -12
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +13 -13
|
@@ -32,6 +32,10 @@ export interface MultiViewCalendarProps<T = any> extends MultiViewCalendarSettin
|
|
|
32
32
|
value?: Date | Date[] | SelectionRange | null;
|
|
33
33
|
/** @hidden */
|
|
34
34
|
mobileMode?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
dir?: string;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* @hidden
|
|
@@ -73,6 +77,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
73
77
|
value: PropTypes.Requireable<any>;
|
|
74
78
|
views: (props: MultiViewCalendarProps, propName: keyof MultiViewCalendarProps<any>, componentName: string) => Error | null;
|
|
75
79
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
80
|
+
dir: PropTypes.Requireable<string>;
|
|
76
81
|
};
|
|
77
82
|
/**
|
|
78
83
|
* @hidden
|
|
@@ -110,7 +115,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
110
115
|
private calendarViewList;
|
|
111
116
|
private isActive;
|
|
112
117
|
private calculateFocusFromValue;
|
|
113
|
-
private isRtl;
|
|
118
|
+
private get isRtl();
|
|
114
119
|
/**
|
|
115
120
|
* Gets the wrapping element of the MultiViewCalendar component.
|
|
116
121
|
*/
|
|
@@ -39,12 +39,6 @@ import { BusViewService, NavigationService } from '../services';
|
|
|
39
39
|
import { dateInRange, isInRange, viewInRange, getToday, nullable } from '../../utils';
|
|
40
40
|
import { HorizontalViewList } from './HorizontalViewList';
|
|
41
41
|
import { TodayCommand } from './TodayCommand';
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
function isRtl(element) {
|
|
46
|
-
return Boolean(element && getComputedStyle(element).direction === 'rtl');
|
|
47
|
-
}
|
|
48
42
|
var extractDateFromValue = function (min, max, value) {
|
|
49
43
|
if (min === void 0) { min = MultiViewCalendarWithoutContext.defaultProps.min; }
|
|
50
44
|
if (max === void 0) { max = MultiViewCalendarWithoutContext.defaultProps.max; }
|
|
@@ -94,7 +88,6 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
94
88
|
_this.calendarViewList = null;
|
|
95
89
|
_this.isActive = false;
|
|
96
90
|
_this.calculateFocusFromValue = true;
|
|
97
|
-
_this.isRtl = false;
|
|
98
91
|
/**
|
|
99
92
|
* @hidden
|
|
100
93
|
*/
|
|
@@ -325,6 +318,14 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
325
318
|
_this.lastViewsCount = _this.props.views || HorizontalViewList.defaultProps.views;
|
|
326
319
|
return _this;
|
|
327
320
|
}
|
|
321
|
+
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "isRtl", {
|
|
322
|
+
get: function () {
|
|
323
|
+
return this.props.dir === 'rtl';
|
|
324
|
+
},
|
|
325
|
+
enumerable: false,
|
|
326
|
+
configurable: true
|
|
327
|
+
});
|
|
328
|
+
;
|
|
328
329
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "element", {
|
|
329
330
|
/**
|
|
330
331
|
* Gets the wrapping element of the MultiViewCalendar component.
|
|
@@ -416,11 +417,6 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
416
417
|
*/
|
|
417
418
|
MultiViewCalendarWithoutContext.prototype.componentDidMount = function () {
|
|
418
419
|
this.calculateFocusFromValue = true;
|
|
419
|
-
var rtl = isRtl(this._element);
|
|
420
|
-
this.isRtl = rtl;
|
|
421
|
-
if (this.isRtl) {
|
|
422
|
-
this.forceUpdate();
|
|
423
|
-
}
|
|
424
420
|
};
|
|
425
421
|
/**
|
|
426
422
|
* @hidden
|
|
@@ -473,7 +469,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
473
469
|
this.dates = this.service.datesList(this.focusedDate, this.props.views || HorizontalViewList.defaultProps.views);
|
|
474
470
|
}
|
|
475
471
|
var activeDate = cloneDate(this.dates && this.dates[0] ? this.dates[0] : getToday());
|
|
476
|
-
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 },
|
|
472
|
+
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, dir: this.props.dir },
|
|
477
473
|
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, verticalView: this.props.mobileMode, commands: (React.createElement(React.Fragment, null,
|
|
478
474
|
React.createElement(Button, __assign({ type: "button", className: "k-calendar-nav-prev", icon: this.isRtl ? 'chevron-right' : 'chevron-left', svgIcon: this.isRtl ? chevronRightIcon : chevronLeftIcon, fillMode: "flat", title: prevViewTitle, disabled: isPrevDisabled, onClick: this.handlePrevButtonClick }, prevBtnAria)),
|
|
479
475
|
React.createElement(TodayCommand, { min: this.min, max: this.max, onClick: this.handleTodayClick, disabled: !this.todayIsInRange }),
|
|
@@ -530,7 +526,8 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
530
526
|
}
|
|
531
527
|
return null;
|
|
532
528
|
},
|
|
533
|
-
weekNumber: PropTypes.bool
|
|
529
|
+
weekNumber: PropTypes.bool,
|
|
530
|
+
dir: PropTypes.string
|
|
534
531
|
};
|
|
535
532
|
/**
|
|
536
533
|
* @hidden
|
|
@@ -58,6 +58,10 @@ export interface DateRangePickerProps extends DateRangePickerSettings {
|
|
|
58
58
|
* Specifies the text that is rendered as title in the adaptive popup.
|
|
59
59
|
*/
|
|
60
60
|
adaptiveTitle?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*/
|
|
64
|
+
dir?: string;
|
|
61
65
|
}
|
|
62
66
|
/**
|
|
63
67
|
* @hidden
|
|
@@ -177,6 +181,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
177
181
|
style: PropTypes.Requireable<any>;
|
|
178
182
|
swapButton: PropTypes.Requireable<any>;
|
|
179
183
|
tabIndex: PropTypes.Requireable<number>;
|
|
184
|
+
dir: PropTypes.Requireable<string>;
|
|
180
185
|
value: PropTypes.Validator<SelectionRange>;
|
|
181
186
|
};
|
|
182
187
|
/**
|
|
@@ -86,7 +86,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
86
86
|
};
|
|
87
87
|
_this.renderCalendar = function () {
|
|
88
88
|
var value = _this.value || EMPTY_SELECTIONRANGE;
|
|
89
|
-
var calendarProps = __assign(__assign({ min: _this.min, max: _this.max, allowReverse: _this.props.allowReverse, mode: 'range', focusedDate: _this.props.focusedDate, disabled: _this.props.disabled, className: _this.mobileMode ? 'k-calendar-lg' : '', mobileMode: _this.mobileMode }, _this.props.calendarSettings), { value: value, onChange: _this.handleCalendarChange });
|
|
89
|
+
var calendarProps = __assign(__assign({ min: _this.min, max: _this.max, allowReverse: _this.props.allowReverse, mode: 'range', focusedDate: _this.props.focusedDate, disabled: _this.props.disabled, className: _this.mobileMode ? 'k-calendar-lg' : '', mobileMode: _this.mobileMode }, _this.props.calendarSettings), { value: value, dir: _this.props.dir, onChange: _this.handleCalendarChange });
|
|
90
90
|
return _this.props.calendar
|
|
91
91
|
? React.createElement(_this.props.calendar, __assign({}, calendarProps))
|
|
92
92
|
: React.createElement(MultiViewCalendar, __assign({}, calendarProps, { ref: _this.setCalendarRef }));
|
|
@@ -429,7 +429,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
429
429
|
return (React.createElement(React.Fragment, null,
|
|
430
430
|
React.createElement("span", { ref: function (span) {
|
|
431
431
|
_this._element = span;
|
|
432
|
-
}, 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.mobileMode ? this.handleBlur : undefined, onKeyDown: this.handleKeyDown },
|
|
432
|
+
}, 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.mobileMode ? this.handleBlur : undefined, onKeyDown: this.handleKeyDown, dir: this.props.dir },
|
|
433
433
|
this.props.startDateInput
|
|
434
434
|
? React.createElement(this.props.startDateInput, __assign({}, startDateInputProps))
|
|
435
435
|
: React.createElement(DateInput, __assign({}, startDateInputProps, { ref: this._startDateInput, ariaRole: "combobox", ariaControls: this._popupId, readonly: this.mobileMode })),
|
|
@@ -532,6 +532,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
532
532
|
style: PropTypes.any,
|
|
533
533
|
swapButton: PropTypes.any,
|
|
534
534
|
tabIndex: PropTypes.number,
|
|
535
|
+
dir: PropTypes.string,
|
|
535
536
|
value: PropTypes.shape({
|
|
536
537
|
start: nullable(PropTypes.instanceOf(Date).isRequired),
|
|
537
538
|
end: nullable(PropTypes.instanceOf(Date).isRequired)
|
|
@@ -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: 1686225503,
|
|
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
|
};
|
|
@@ -85,7 +85,6 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
|
|
|
85
85
|
private lastTotal;
|
|
86
86
|
private lastTake;
|
|
87
87
|
private animationInProgress;
|
|
88
|
-
private scrollToIndexTimeout;
|
|
89
88
|
get element(): HTMLDivElement | null;
|
|
90
89
|
protected get containerOffsetSize(): number;
|
|
91
90
|
get containerScrollSize(): number;
|
|
@@ -55,7 +55,6 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
55
55
|
_this.lastTotal = 0;
|
|
56
56
|
_this.lastTake = 0;
|
|
57
57
|
_this.animationInProgress = false;
|
|
58
|
-
_this.scrollToIndexTimeout = 0;
|
|
59
58
|
_this.scrollTo = function (value) {
|
|
60
59
|
var scrollProperty = _this.direction === 'vertical' ? 'scrollTop' : 'scrollLeft';
|
|
61
60
|
if (!_this.scrollContainer) {
|
|
@@ -64,18 +63,10 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
64
63
|
_this.scrollContainer[scrollProperty] = value;
|
|
65
64
|
};
|
|
66
65
|
_this.scrollToIndex = function (index) {
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
_this.animationInProgress = false;
|
|
67
|
+
if (_this.rowHeightService) {
|
|
68
|
+
_this.scrollTo(_this.rowHeightService.offset(index));
|
|
69
69
|
}
|
|
70
|
-
if (!_this.rowHeightService) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
_this.scrollToIndexTimeout = window.requestAnimationFrame(function () {
|
|
74
|
-
_this.animationInProgress = false;
|
|
75
|
-
if (_this.rowHeightService) {
|
|
76
|
-
_this.scrollTo(_this.rowHeightService.offset(index));
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
70
|
};
|
|
80
71
|
_this.animateToIndex = function (index) {
|
|
81
72
|
if (!_this.rowHeightService || !window) {
|
|
@@ -32,6 +32,10 @@ export interface MultiViewCalendarProps<T = any> extends MultiViewCalendarSettin
|
|
|
32
32
|
value?: Date | Date[] | SelectionRange | null;
|
|
33
33
|
/** @hidden */
|
|
34
34
|
mobileMode?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
dir?: string;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* @hidden
|
|
@@ -73,6 +77,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
73
77
|
value: PropTypes.Requireable<any>;
|
|
74
78
|
views: (props: MultiViewCalendarProps, propName: keyof MultiViewCalendarProps<any>, componentName: string) => Error | null;
|
|
75
79
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
80
|
+
dir: PropTypes.Requireable<string>;
|
|
76
81
|
};
|
|
77
82
|
/**
|
|
78
83
|
* @hidden
|
|
@@ -110,7 +115,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
110
115
|
private calendarViewList;
|
|
111
116
|
private isActive;
|
|
112
117
|
private calculateFocusFromValue;
|
|
113
|
-
private isRtl;
|
|
118
|
+
private get isRtl();
|
|
114
119
|
/**
|
|
115
120
|
* Gets the wrapping element of the MultiViewCalendar component.
|
|
116
121
|
*/
|
|
@@ -42,12 +42,6 @@ var services_1 = require("../services");
|
|
|
42
42
|
var utils_2 = require("../../utils");
|
|
43
43
|
var HorizontalViewList_1 = require("./HorizontalViewList");
|
|
44
44
|
var TodayCommand_1 = require("./TodayCommand");
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
function isRtl(element) {
|
|
49
|
-
return Boolean(element && getComputedStyle(element).direction === 'rtl');
|
|
50
|
-
}
|
|
51
45
|
var extractDateFromValue = function (min, max, value) {
|
|
52
46
|
if (min === void 0) { min = MultiViewCalendarWithoutContext.defaultProps.min; }
|
|
53
47
|
if (max === void 0) { max = MultiViewCalendarWithoutContext.defaultProps.max; }
|
|
@@ -97,7 +91,6 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
97
91
|
_this.calendarViewList = null;
|
|
98
92
|
_this.isActive = false;
|
|
99
93
|
_this.calculateFocusFromValue = true;
|
|
100
|
-
_this.isRtl = false;
|
|
101
94
|
/**
|
|
102
95
|
* @hidden
|
|
103
96
|
*/
|
|
@@ -328,6 +321,14 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
328
321
|
_this.lastViewsCount = _this.props.views || HorizontalViewList_1.HorizontalViewList.defaultProps.views;
|
|
329
322
|
return _this;
|
|
330
323
|
}
|
|
324
|
+
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "isRtl", {
|
|
325
|
+
get: function () {
|
|
326
|
+
return this.props.dir === 'rtl';
|
|
327
|
+
},
|
|
328
|
+
enumerable: false,
|
|
329
|
+
configurable: true
|
|
330
|
+
});
|
|
331
|
+
;
|
|
331
332
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "element", {
|
|
332
333
|
/**
|
|
333
334
|
* Gets the wrapping element of the MultiViewCalendar component.
|
|
@@ -419,11 +420,6 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
419
420
|
*/
|
|
420
421
|
MultiViewCalendarWithoutContext.prototype.componentDidMount = function () {
|
|
421
422
|
this.calculateFocusFromValue = true;
|
|
422
|
-
var rtl = isRtl(this._element);
|
|
423
|
-
this.isRtl = rtl;
|
|
424
|
-
if (this.isRtl) {
|
|
425
|
-
this.forceUpdate();
|
|
426
|
-
}
|
|
427
423
|
};
|
|
428
424
|
/**
|
|
429
425
|
* @hidden
|
|
@@ -476,7 +472,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
476
472
|
this.dates = this.service.datesList(this.focusedDate, this.props.views || HorizontalViewList_1.HorizontalViewList.defaultProps.views);
|
|
477
473
|
}
|
|
478
474
|
var activeDate = (0, kendo_date_math_1.cloneDate)(this.dates && this.dates[0] ? this.dates[0] : (0, utils_2.getToday)());
|
|
479
|
-
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 },
|
|
475
|
+
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, dir: this.props.dir },
|
|
480
476
|
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, verticalView: this.props.mobileMode, commands: (React.createElement(React.Fragment, null,
|
|
481
477
|
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", className: "k-calendar-nav-prev", icon: this.isRtl ? 'chevron-right' : 'chevron-left', svgIcon: this.isRtl ? kendo_svg_icons_1.chevronRightIcon : kendo_svg_icons_1.chevronLeftIcon, fillMode: "flat", title: prevViewTitle, disabled: isPrevDisabled, onClick: this.handlePrevButtonClick }, prevBtnAria)),
|
|
482
478
|
React.createElement(TodayCommand_1.TodayCommand, { min: this.min, max: this.max, onClick: this.handleTodayClick, disabled: !this.todayIsInRange }),
|
|
@@ -533,7 +529,8 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
533
529
|
}
|
|
534
530
|
return null;
|
|
535
531
|
},
|
|
536
|
-
weekNumber: PropTypes.bool
|
|
532
|
+
weekNumber: PropTypes.bool,
|
|
533
|
+
dir: PropTypes.string
|
|
537
534
|
};
|
|
538
535
|
/**
|
|
539
536
|
* @hidden
|
|
@@ -58,6 +58,10 @@ export interface DateRangePickerProps extends DateRangePickerSettings {
|
|
|
58
58
|
* Specifies the text that is rendered as title in the adaptive popup.
|
|
59
59
|
*/
|
|
60
60
|
adaptiveTitle?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*/
|
|
64
|
+
dir?: string;
|
|
61
65
|
}
|
|
62
66
|
/**
|
|
63
67
|
* @hidden
|
|
@@ -177,6 +181,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
177
181
|
style: PropTypes.Requireable<any>;
|
|
178
182
|
swapButton: PropTypes.Requireable<any>;
|
|
179
183
|
tabIndex: PropTypes.Requireable<number>;
|
|
184
|
+
dir: PropTypes.Requireable<string>;
|
|
180
185
|
value: PropTypes.Validator<SelectionRange>;
|
|
181
186
|
};
|
|
182
187
|
/**
|
|
@@ -89,7 +89,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
89
89
|
};
|
|
90
90
|
_this.renderCalendar = function () {
|
|
91
91
|
var value = _this.value || models_1.EMPTY_SELECTIONRANGE;
|
|
92
|
-
var calendarProps = __assign(__assign({ min: _this.min, max: _this.max, allowReverse: _this.props.allowReverse, mode: 'range', focusedDate: _this.props.focusedDate, disabled: _this.props.disabled, className: _this.mobileMode ? 'k-calendar-lg' : '', mobileMode: _this.mobileMode }, _this.props.calendarSettings), { value: value, onChange: _this.handleCalendarChange });
|
|
92
|
+
var calendarProps = __assign(__assign({ min: _this.min, max: _this.max, allowReverse: _this.props.allowReverse, mode: 'range', focusedDate: _this.props.focusedDate, disabled: _this.props.disabled, className: _this.mobileMode ? 'k-calendar-lg' : '', mobileMode: _this.mobileMode }, _this.props.calendarSettings), { value: value, dir: _this.props.dir, onChange: _this.handleCalendarChange });
|
|
93
93
|
return _this.props.calendar
|
|
94
94
|
? React.createElement(_this.props.calendar, __assign({}, calendarProps))
|
|
95
95
|
: React.createElement(MultiViewCalendar_1.MultiViewCalendar, __assign({}, calendarProps, { ref: _this.setCalendarRef }));
|
|
@@ -432,7 +432,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
432
432
|
return (React.createElement(React.Fragment, null,
|
|
433
433
|
React.createElement("span", { ref: function (span) {
|
|
434
434
|
_this._element = span;
|
|
435
|
-
}, 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.mobileMode ? this.handleBlur : undefined, onKeyDown: this.handleKeyDown },
|
|
435
|
+
}, 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.mobileMode ? this.handleBlur : undefined, onKeyDown: this.handleKeyDown, dir: this.props.dir },
|
|
436
436
|
this.props.startDateInput
|
|
437
437
|
? React.createElement(this.props.startDateInput, __assign({}, startDateInputProps))
|
|
438
438
|
: React.createElement(DateInput_1.DateInput, __assign({}, startDateInputProps, { ref: this._startDateInput, ariaRole: "combobox", ariaControls: this._popupId, readonly: this.mobileMode })),
|
|
@@ -535,6 +535,7 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
535
535
|
style: PropTypes.any,
|
|
536
536
|
swapButton: PropTypes.any,
|
|
537
537
|
tabIndex: PropTypes.number,
|
|
538
|
+
dir: PropTypes.string,
|
|
538
539
|
value: PropTypes.shape({
|
|
539
540
|
start: (0, utils_2.nullable)(PropTypes.instanceOf(Date).isRequired),
|
|
540
541
|
end: (0, utils_2.nullable)(PropTypes.instanceOf(Date).isRequired)
|
|
@@ -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: 1686225503,
|
|
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
|
};
|
|
@@ -85,7 +85,6 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
|
|
|
85
85
|
private lastTotal;
|
|
86
86
|
private lastTake;
|
|
87
87
|
private animationInProgress;
|
|
88
|
-
private scrollToIndexTimeout;
|
|
89
88
|
get element(): HTMLDivElement | null;
|
|
90
89
|
protected get containerOffsetSize(): number;
|
|
91
90
|
get containerScrollSize(): number;
|
|
@@ -58,7 +58,6 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
58
58
|
_this.lastTotal = 0;
|
|
59
59
|
_this.lastTake = 0;
|
|
60
60
|
_this.animationInProgress = false;
|
|
61
|
-
_this.scrollToIndexTimeout = 0;
|
|
62
61
|
_this.scrollTo = function (value) {
|
|
63
62
|
var scrollProperty = _this.direction === 'vertical' ? 'scrollTop' : 'scrollLeft';
|
|
64
63
|
if (!_this.scrollContainer) {
|
|
@@ -67,18 +66,10 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
67
66
|
_this.scrollContainer[scrollProperty] = value;
|
|
68
67
|
};
|
|
69
68
|
_this.scrollToIndex = function (index) {
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
_this.animationInProgress = false;
|
|
70
|
+
if (_this.rowHeightService) {
|
|
71
|
+
_this.scrollTo(_this.rowHeightService.offset(index));
|
|
72
72
|
}
|
|
73
|
-
if (!_this.rowHeightService) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
_this.scrollToIndexTimeout = window.requestAnimationFrame(function () {
|
|
77
|
-
_this.animationInProgress = false;
|
|
78
|
-
if (_this.rowHeightService) {
|
|
79
|
-
_this.scrollTo(_this.rowHeightService.offset(index));
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
73
|
};
|
|
83
74
|
_this.animateToIndex = function (index) {
|
|
84
75
|
if (!_this.rowHeightService || !window) {
|