@syncfusion/ej2-dropdowns 30.1.41 → 30.1.42
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/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +13 -6
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +13 -6
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/combo-box/combo-box.js +2 -2
- package/src/common/interface.d.ts +1 -0
- package/src/common/virtual-scroll.js +2 -1
- package/src/drop-down-base/drop-down-base.js +3 -2
- package/src/drop-down-tree/drop-down-tree.js +1 -1
- package/src/multi-select/multi-select.js +5 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 30.1.
|
|
3
|
+
* version : 30.1.42
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-dropdowns",
|
|
3
|
-
"version": "30.1.
|
|
3
|
+
"version": "30.1.42",
|
|
4
4
|
"description": "Essential JS 2 DropDown Components",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-dropdowns.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~30.1.
|
|
11
|
+
"@syncfusion/ej2-base": "~30.1.42",
|
|
12
12
|
"@syncfusion/ej2-data": "~30.1.40",
|
|
13
13
|
"@syncfusion/ej2-inputs": "~30.1.40",
|
|
14
|
-
"@syncfusion/ej2-lists": "~30.1.
|
|
15
|
-
"@syncfusion/ej2-navigations": "~30.1.
|
|
14
|
+
"@syncfusion/ej2-lists": "~30.1.42",
|
|
15
|
+
"@syncfusion/ej2-navigations": "~30.1.42",
|
|
16
16
|
"@syncfusion/ej2-notifications": "~30.1.37",
|
|
17
|
-
"@syncfusion/ej2-popups": "~30.1.
|
|
17
|
+
"@syncfusion/ej2-popups": "~30.1.42"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {},
|
|
20
20
|
"keywords": [
|
|
@@ -207,8 +207,8 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
207
207
|
var dataItem = _this.getItemData();
|
|
208
208
|
var value = _this.allowObjectBinding ?
|
|
209
209
|
_this.getDataByValue(dataItem.value) : dataItem.value;
|
|
210
|
-
if ((_this.value === dataItem.value && _this.text !== dataItem.text) ||
|
|
211
|
-
(_this.value !== dataItem.value && _this.text === dataItem.text)) {
|
|
210
|
+
if ((_this.value === dataItem.value && _this.text !== dataItem.text.toString()) ||
|
|
211
|
+
(_this.value !== dataItem.value && _this.text === dataItem.text.toString())) {
|
|
212
212
|
_this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
213
213
|
}
|
|
214
214
|
}
|
|
@@ -79,6 +79,7 @@ export interface IDropdownlist extends Component<HTMLElement> {
|
|
|
79
79
|
appendUncheckList: boolean;
|
|
80
80
|
keyCode: number;
|
|
81
81
|
preventSetCurrentData: boolean;
|
|
82
|
+
remoteDataCount: number;
|
|
82
83
|
virtualGroupDataSource: {
|
|
83
84
|
[key: string]: Object;
|
|
84
85
|
}[] | DataManager | string[] | number[] | boolean[];
|
|
@@ -156,7 +156,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
156
156
|
if (this.component === 'combobox') {
|
|
157
157
|
var totalData = 0;
|
|
158
158
|
if (this.parent.dataSource instanceof DataManager) {
|
|
159
|
-
totalData = this.parent.
|
|
159
|
+
totalData = this.parent.remoteDataCount;
|
|
160
160
|
}
|
|
161
161
|
else if (this.parent.dataSource && this.parent.dataSource.length > 0) {
|
|
162
162
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -485,6 +485,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
485
485
|
this.parent.isVirtualScrolling = true;
|
|
486
486
|
setTimeout(function () {
|
|
487
487
|
_this.parent.pageCount = _this.parent.getPageCount();
|
|
488
|
+
_this.parent.isRequesting = false;
|
|
488
489
|
_this.virtualScrollRefreshAsync().then(function () {
|
|
489
490
|
if (_this.parent.popupObj) {
|
|
490
491
|
_this.parent.list = _this.parent.popupObj.element.querySelector('.' + 'e-content') || select('.' + 'e-content');
|
|
@@ -733,11 +733,12 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
733
733
|
_this.emptyDataRequest(fields);
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
|
|
736
|
+
var query_1 = _this.getQuery(eventArgs.query);
|
|
737
|
+
eventArgs.data.executeQuery(query_1).then(function (e) {
|
|
737
738
|
_this.isPreventChange = _this.isAngular && _this.preventChange ? true : _this.isPreventChange;
|
|
738
739
|
var isReOrder = true;
|
|
739
740
|
if (!_this.virtualSelectAll) {
|
|
740
|
-
var newQuery =
|
|
741
|
+
var newQuery = query_1.clone();
|
|
741
742
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
742
743
|
if (newQuery.queries[queryElements].fn === 'onWhere') {
|
|
743
744
|
isWhereExist_1 = true;
|
|
@@ -725,7 +725,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
725
725
|
if (this.isPopupOpen) {
|
|
726
726
|
this.hidePopup();
|
|
727
727
|
}
|
|
728
|
-
else if (
|
|
728
|
+
else if (e.type === 'touchstart' || ('button' in e && e.button !== 2)) {
|
|
729
729
|
this.focusIn(e);
|
|
730
730
|
this.renderPopup();
|
|
731
731
|
}
|
|
@@ -4143,6 +4143,11 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4143
4143
|
removeClass(selectedItems, className);
|
|
4144
4144
|
while (temp > 0) {
|
|
4145
4145
|
selectedItems[temp - 1].setAttribute('aria-selected', 'false');
|
|
4146
|
+
if (this.mode === 'CheckBox') {
|
|
4147
|
+
if (selectedItems && (selectedItems.length > (temp - 1))) {
|
|
4148
|
+
removeClass([selectedItems[temp - 1].firstElementChild.lastElementChild], 'e-check');
|
|
4149
|
+
}
|
|
4150
|
+
}
|
|
4146
4151
|
temp--;
|
|
4147
4152
|
}
|
|
4148
4153
|
}
|