@progress/kendo-react-dateinputs 6.1.0 → 6.1.1-dev.202311061144
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/package-metadata.js +1 -1
- package/dist/es/virtualization/Virtualization.d.ts +1 -0
- package/dist/es/virtualization/Virtualization.js +8 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/virtualization/Virtualization.d.ts +1 -0
- package/dist/npm/virtualization/Virtualization.js +8 -0
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +13 -13
|
@@ -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: 1699268977,
|
|
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,6 +85,7 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
|
|
|
85
85
|
private lastTotal;
|
|
86
86
|
private lastTake;
|
|
87
87
|
private animationInProgress;
|
|
88
|
+
private restrictScroll;
|
|
88
89
|
get element(): HTMLDivElement | null;
|
|
89
90
|
protected get containerOffsetSize(): number;
|
|
90
91
|
get containerScrollSize(): number;
|
|
@@ -30,6 +30,7 @@ var differenceToScroll = function (scrollTop, staticOffset, maxScrollDifference)
|
|
|
30
30
|
return Math.min(Math.abs(staticOffset - scrollTop), maxScrollDifference);
|
|
31
31
|
};
|
|
32
32
|
var FRAME_DURATION = 17;
|
|
33
|
+
var MIN_SCROLL_STEP = 10;
|
|
33
34
|
var scrollModifiers = (_a = {},
|
|
34
35
|
_a[ScrollDirection.Forward] = function (step) { return function (value) { return value + step; }; },
|
|
35
36
|
_a[ScrollDirection.Backward] = function (step) { return function (value) { return value - step; }; },
|
|
@@ -55,11 +56,17 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
55
56
|
_this.lastTotal = 0;
|
|
56
57
|
_this.lastTake = 0;
|
|
57
58
|
_this.animationInProgress = false;
|
|
59
|
+
_this.restrictScroll = false;
|
|
58
60
|
_this.scrollTo = function (value) {
|
|
59
61
|
var scrollProperty = _this.direction === 'vertical' ? 'scrollTop' : 'scrollLeft';
|
|
60
62
|
if (!_this.scrollContainer) {
|
|
61
63
|
return;
|
|
62
64
|
}
|
|
65
|
+
var current = _this.scrollContainer[scrollProperty];
|
|
66
|
+
if (_this.restrictScroll && scrollProperty === 'scrollTop' &&
|
|
67
|
+
(!Number.isInteger(current) || !Number.isInteger(value)) && Math.abs(current - value) < MIN_SCROLL_STEP) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
63
70
|
_this.scrollContainer[scrollProperty] = value;
|
|
64
71
|
};
|
|
65
72
|
_this.scrollToIndex = function (index) {
|
|
@@ -172,6 +179,7 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
172
179
|
_this.pageAction = action;
|
|
173
180
|
};
|
|
174
181
|
_this.scrollerService = new ScrollerService(_this.handleScrollAction, _this.handlePageAction);
|
|
182
|
+
_this.restrictScroll = Number.parseFloat(React.version) > 17;
|
|
175
183
|
return _this;
|
|
176
184
|
}
|
|
177
185
|
Object.defineProperty(Virtualization.prototype, "element", {
|
|
@@ -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: 1699268977,
|
|
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,6 +85,7 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
|
|
|
85
85
|
private lastTotal;
|
|
86
86
|
private lastTake;
|
|
87
87
|
private animationInProgress;
|
|
88
|
+
private restrictScroll;
|
|
88
89
|
get element(): HTMLDivElement | null;
|
|
89
90
|
protected get containerOffsetSize(): number;
|
|
90
91
|
get containerScrollSize(): number;
|
|
@@ -33,6 +33,7 @@ var differenceToScroll = function (scrollTop, staticOffset, maxScrollDifference)
|
|
|
33
33
|
return Math.min(Math.abs(staticOffset - scrollTop), maxScrollDifference);
|
|
34
34
|
};
|
|
35
35
|
var FRAME_DURATION = 17;
|
|
36
|
+
var MIN_SCROLL_STEP = 10;
|
|
36
37
|
var scrollModifiers = (_a = {},
|
|
37
38
|
_a[ScrollDirection.Forward] = function (step) { return function (value) { return value + step; }; },
|
|
38
39
|
_a[ScrollDirection.Backward] = function (step) { return function (value) { return value - step; }; },
|
|
@@ -58,11 +59,17 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
58
59
|
_this.lastTotal = 0;
|
|
59
60
|
_this.lastTake = 0;
|
|
60
61
|
_this.animationInProgress = false;
|
|
62
|
+
_this.restrictScroll = false;
|
|
61
63
|
_this.scrollTo = function (value) {
|
|
62
64
|
var scrollProperty = _this.direction === 'vertical' ? 'scrollTop' : 'scrollLeft';
|
|
63
65
|
if (!_this.scrollContainer) {
|
|
64
66
|
return;
|
|
65
67
|
}
|
|
68
|
+
var current = _this.scrollContainer[scrollProperty];
|
|
69
|
+
if (_this.restrictScroll && scrollProperty === 'scrollTop' &&
|
|
70
|
+
(!Number.isInteger(current) || !Number.isInteger(value)) && Math.abs(current - value) < MIN_SCROLL_STEP) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
66
73
|
_this.scrollContainer[scrollProperty] = value;
|
|
67
74
|
};
|
|
68
75
|
_this.scrollToIndex = function (index) {
|
|
@@ -175,6 +182,7 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
175
182
|
_this.pageAction = action;
|
|
176
183
|
};
|
|
177
184
|
_this.scrollerService = new services_1.ScrollerService(_this.handleScrollAction, _this.handlePageAction);
|
|
185
|
+
_this.restrictScroll = Number.parseFloat(React.version) > 17;
|
|
178
186
|
return _this;
|
|
179
187
|
}
|
|
180
188
|
Object.defineProperty(Virtualization.prototype, "element", {
|