@progress/kendo-react-dropdowns 5.18.0-dev.202309011146 → 5.18.0-dev.202309080842
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-dropdowns.js +1 -1
- package/dist/es/DropDownTree/DropDownTree.js +7 -4
- package/dist/es/common/DropDownBase.d.ts +10 -0
- package/dist/es/common/DropDownBase.js +19 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/DropDownTree/DropDownTree.js +7 -4
- package/dist/npm/common/DropDownBase.d.ts +10 -0
- package/dist/npm/common/DropDownBase.js +19 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-dropdowns.js +1 -1
- package/package.json +16 -16
|
@@ -217,10 +217,13 @@ export var DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
217
217
|
switchFocus(function () { var _a; focusElement(((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.element) || treeview); });
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
else {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
else if (altKey && keyCode === Keys.down) {
|
|
221
|
+
event.preventDefault();
|
|
222
|
+
openPopup(ev);
|
|
223
|
+
}
|
|
224
|
+
else if (!isOpen) {
|
|
225
|
+
if (keyCode === Keys.esc) {
|
|
226
|
+
onClear(event);
|
|
224
227
|
}
|
|
225
228
|
}
|
|
226
229
|
}, [isOpen, opened, onOpen, onClose]);
|
|
@@ -158,6 +158,16 @@ export default class DropDownBase {
|
|
|
158
158
|
triggerOnPageChange(state: InternalState, skip: number, take: number): void;
|
|
159
159
|
triggerPageChangeCornerItems(item: any, state: InternalState): void;
|
|
160
160
|
scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
|
|
161
|
+
/**
|
|
162
|
+
* @hidden
|
|
163
|
+
* Scrolls the data inside the popup of a selected DropDown by `one page'. The page size
|
|
164
|
+
* depends on the height of the popup.
|
|
165
|
+
*
|
|
166
|
+
* @param {number} direction Defines the direction(Up/Down) in which the page will be moved
|
|
167
|
+
* @param {number} filterHeight Defines the heigh of the filter element that appears in the DropDownList and DropDownTree.
|
|
168
|
+
* This property is added for handling the filtering scenarios of the mentioned components.
|
|
169
|
+
*/
|
|
170
|
+
scrollPopupByPageSize: (direction: number) => void;
|
|
161
171
|
renderScrollElement: () => false | JSX.Element;
|
|
162
172
|
getPopupSettings(): DropDownsPopupSettings;
|
|
163
173
|
getGroupedDataModernMode(data: any[], groupField: string): any[];
|
|
@@ -99,6 +99,25 @@ var DropDownBase = /** @class */ (function () {
|
|
|
99
99
|
}
|
|
100
100
|
window.setTimeout(function () { return vs.enabled = true; }, 10);
|
|
101
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
* Scrolls the data inside the popup of a selected DropDown by `one page'. The page size
|
|
105
|
+
* depends on the height of the popup.
|
|
106
|
+
*
|
|
107
|
+
* @param {number} direction Defines the direction(Up/Down) in which the page will be moved
|
|
108
|
+
* @param {number} filterHeight Defines the heigh of the filter element that appears in the DropDownList and DropDownTree.
|
|
109
|
+
* This property is added for handling the filtering scenarios of the mentioned components.
|
|
110
|
+
*/
|
|
111
|
+
this.scrollPopupByPageSize = function (direction) {
|
|
112
|
+
var _a, _b, _c, _d, _e, _f;
|
|
113
|
+
var vs = _this.vs;
|
|
114
|
+
var offsetTop = (_b = (_a = _this.list) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.scrollTop;
|
|
115
|
+
var itemHeight = (vs.enabled && vs.itemHeight ? vs.itemHeight : (_this.list ? _this.list.children[0].offsetHeight : 0));
|
|
116
|
+
var height = (_d = (_c = _this.list) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.offsetHeight;
|
|
117
|
+
if (offsetTop !== undefined && height !== undefined) {
|
|
118
|
+
(_f = (_e = _this.list) === null || _e === void 0 ? void 0 : _e.parentElement) === null || _f === void 0 ? void 0 : _f.scroll({ top: offsetTop + direction * Math.floor(height / itemHeight) * itemHeight });
|
|
119
|
+
}
|
|
120
|
+
};
|
|
102
121
|
this.renderScrollElement = function () {
|
|
103
122
|
var vs = _this.vs;
|
|
104
123
|
return vs.enabled && (React.createElement("div", { ref: function (element) { return vs.scrollElement = element; }, key: 'scrollElementKey' }));
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-dropdowns',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1694160401,
|
|
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
|
};
|
|
@@ -220,10 +220,13 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
220
220
|
switchFocus(function () { var _a; focusElement(((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.element) || treeview); });
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
else {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
else if (altKey && keyCode === kendo_react_common_1.Keys.down) {
|
|
224
|
+
event.preventDefault();
|
|
225
|
+
openPopup(ev);
|
|
226
|
+
}
|
|
227
|
+
else if (!isOpen) {
|
|
228
|
+
if (keyCode === kendo_react_common_1.Keys.esc) {
|
|
229
|
+
onClear(event);
|
|
227
230
|
}
|
|
228
231
|
}
|
|
229
232
|
}, [isOpen, opened, onOpen, onClose]);
|
|
@@ -158,6 +158,16 @@ export default class DropDownBase {
|
|
|
158
158
|
triggerOnPageChange(state: InternalState, skip: number, take: number): void;
|
|
159
159
|
triggerPageChangeCornerItems(item: any, state: InternalState): void;
|
|
160
160
|
scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
|
|
161
|
+
/**
|
|
162
|
+
* @hidden
|
|
163
|
+
* Scrolls the data inside the popup of a selected DropDown by `one page'. The page size
|
|
164
|
+
* depends on the height of the popup.
|
|
165
|
+
*
|
|
166
|
+
* @param {number} direction Defines the direction(Up/Down) in which the page will be moved
|
|
167
|
+
* @param {number} filterHeight Defines the heigh of the filter element that appears in the DropDownList and DropDownTree.
|
|
168
|
+
* This property is added for handling the filtering scenarios of the mentioned components.
|
|
169
|
+
*/
|
|
170
|
+
scrollPopupByPageSize: (direction: number) => void;
|
|
161
171
|
renderScrollElement: () => false | JSX.Element;
|
|
162
172
|
getPopupSettings(): DropDownsPopupSettings;
|
|
163
173
|
getGroupedDataModernMode(data: any[], groupField: string): any[];
|
|
@@ -101,6 +101,25 @@ var DropDownBase = /** @class */ (function () {
|
|
|
101
101
|
}
|
|
102
102
|
window.setTimeout(function () { return vs.enabled = true; }, 10);
|
|
103
103
|
};
|
|
104
|
+
/**
|
|
105
|
+
* @hidden
|
|
106
|
+
* Scrolls the data inside the popup of a selected DropDown by `one page'. The page size
|
|
107
|
+
* depends on the height of the popup.
|
|
108
|
+
*
|
|
109
|
+
* @param {number} direction Defines the direction(Up/Down) in which the page will be moved
|
|
110
|
+
* @param {number} filterHeight Defines the heigh of the filter element that appears in the DropDownList and DropDownTree.
|
|
111
|
+
* This property is added for handling the filtering scenarios of the mentioned components.
|
|
112
|
+
*/
|
|
113
|
+
this.scrollPopupByPageSize = function (direction) {
|
|
114
|
+
var _a, _b, _c, _d, _e, _f;
|
|
115
|
+
var vs = _this.vs;
|
|
116
|
+
var offsetTop = (_b = (_a = _this.list) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.scrollTop;
|
|
117
|
+
var itemHeight = (vs.enabled && vs.itemHeight ? vs.itemHeight : (_this.list ? _this.list.children[0].offsetHeight : 0));
|
|
118
|
+
var height = (_d = (_c = _this.list) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.offsetHeight;
|
|
119
|
+
if (offsetTop !== undefined && height !== undefined) {
|
|
120
|
+
(_f = (_e = _this.list) === null || _e === void 0 ? void 0 : _e.parentElement) === null || _f === void 0 ? void 0 : _f.scroll({ top: offsetTop + direction * Math.floor(height / itemHeight) * itemHeight });
|
|
121
|
+
}
|
|
122
|
+
};
|
|
104
123
|
this.renderScrollElement = function () {
|
|
105
124
|
var vs = _this.vs;
|
|
106
125
|
return vs.enabled && (React.createElement("div", { ref: function (element) { return vs.scrollElement = element; }, key: 'scrollElementKey' }));
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-dropdowns',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1694160401,
|
|
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
|
};
|