@syncfusion/ej2-dropdowns 33.1.47 → 33.1.49
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 +24 -10
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +24 -10
- 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 +4 -4
- package/src/drop-down-base/drop-down-base.js +2 -2
- package/src/drop-down-tree/drop-down-tree.js +6 -0
- package/src/multi-select/multi-select.js +16 -8
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 33.1.
|
|
3
|
+
* version : 33.1.49
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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": "33.1.
|
|
3
|
+
"version": "33.1.49",
|
|
4
4
|
"description": "Essential JS 2 DropDown Components",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@syncfusion/ej2-base": "~33.1.45",
|
|
12
12
|
"@syncfusion/ej2-data": "~33.1.45",
|
|
13
|
-
"@syncfusion/ej2-inputs": "~33.1.
|
|
13
|
+
"@syncfusion/ej2-inputs": "~33.1.49",
|
|
14
14
|
"@syncfusion/ej2-lists": "~33.1.47",
|
|
15
|
-
"@syncfusion/ej2-navigations": "~33.1.
|
|
16
|
-
"@syncfusion/ej2-notifications": "~33.1.
|
|
15
|
+
"@syncfusion/ej2-navigations": "~33.1.49",
|
|
16
|
+
"@syncfusion/ej2-notifications": "~33.1.49",
|
|
17
17
|
"@syncfusion/ej2-popups": "~33.1.44"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {},
|
|
@@ -770,8 +770,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
770
770
|
_this.isPreventChange = _this.isAngular && _this.preventChange ? true : _this.isPreventChange;
|
|
771
771
|
var isReOrder = true;
|
|
772
772
|
if (!_this.virtualSelectAll) {
|
|
773
|
-
var newQueryWhereCount =
|
|
774
|
-
var queryWhereCount =
|
|
773
|
+
var newQueryWhereCount = 0;
|
|
774
|
+
var queryWhereCount = 0;
|
|
775
775
|
var newQuery = query_1.clone();
|
|
776
776
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
777
777
|
if (newQuery.queries[queryElements].fn === 'onWhere') {
|
|
@@ -667,6 +667,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
667
667
|
if (formElement) {
|
|
668
668
|
EventHandler.add(formElement, 'reset', this.resetValueHandler, this);
|
|
669
669
|
}
|
|
670
|
+
if (this.keyboardModule && typeof this.keyboardModule.destroy === 'function') {
|
|
671
|
+
this.keyboardModule.destroy();
|
|
672
|
+
}
|
|
670
673
|
this.keyboardModule = new KeyboardEvents(this.inputWrapper, {
|
|
671
674
|
keyAction: this.keyActionHandler.bind(this),
|
|
672
675
|
keyConfigs: this.keyConfigs,
|
|
@@ -674,6 +677,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
674
677
|
});
|
|
675
678
|
};
|
|
676
679
|
DropDownTree.prototype.wireTreeEvents = function () {
|
|
680
|
+
if (this.keyboardModule && typeof this.keyboardModule.destroy === 'function') {
|
|
681
|
+
this.keyboardModule.destroy();
|
|
682
|
+
}
|
|
677
683
|
this.keyboardModule = new KeyboardEvents(this.tree, {
|
|
678
684
|
keyAction: this.treeAction.bind(this),
|
|
679
685
|
keyConfigs: this.keyConfigs,
|
|
@@ -5059,7 +5059,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5059
5059
|
this.virtualSelectAll = true;
|
|
5060
5060
|
length = this.virtualSelectAllData && this.virtualSelectAllData.length !== 0 ? this.virtualSelectAllData.length : length;
|
|
5061
5061
|
this.listData = this.virtualSelectAllData;
|
|
5062
|
-
var ulElement = this.createListItems(this.virtualSelectAllData.slice(0,
|
|
5062
|
+
var ulElement = this.createListItems(this.virtualSelectAllData.slice(0, Math.min(50, this.virtualSelectAllData.length)), this.fields);
|
|
5063
5063
|
var firstItems = ulElement.querySelectorAll('li');
|
|
5064
5064
|
var fragment_1 = document.createDocumentFragment();
|
|
5065
5065
|
firstItems.forEach(function (node) {
|
|
@@ -5086,7 +5086,10 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5086
5086
|
this.updateListSelection(concatenatedNodeList[index], event, length - index);
|
|
5087
5087
|
}
|
|
5088
5088
|
else {
|
|
5089
|
-
var
|
|
5089
|
+
var rawItem = this.virtualSelectAllData[index];
|
|
5090
|
+
var value = this.fields.value
|
|
5091
|
+
? getValue(this.fields.value, rawItem)
|
|
5092
|
+
: (typeof rawItem === 'object' && rawItem !== null ? rawItem : rawItem);
|
|
5090
5093
|
value = this.allowObjectBinding ? this.getDataByValue(value) : value;
|
|
5091
5094
|
if (((!this.allowObjectBinding && this.value && this.value.indexOf(value) >= 0) ||
|
|
5092
5095
|
(this.allowObjectBinding && this.indexOfObjectInArray(value, this.value) >= 0))) {
|
|
@@ -5118,12 +5121,17 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5118
5121
|
var batch = dataArray.slice(currentIndex, endIndex);
|
|
5119
5122
|
// Use map on the batch
|
|
5120
5123
|
batch.map(function (obj) {
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5124
|
+
var isPlainValue = typeof obj !== 'object' || obj === null;
|
|
5125
|
+
var value = isPlainValue
|
|
5126
|
+
? obj
|
|
5127
|
+
: (_this.fields.value ? obj[_this.fields.value] : obj);
|
|
5128
|
+
var text = isPlainValue
|
|
5129
|
+
? String(obj)
|
|
5130
|
+
: (_this.fields.text ? (obj[_this.fields.text]).toString() : String(obj));
|
|
5131
|
+
if (_this.value && value != null && Array.isArray(_this.value) &&
|
|
5132
|
+
((!_this.allowObjectBinding && _this.value.indexOf(value) < 0) ||
|
|
5133
|
+
(_this.allowObjectBinding && !_this.isObjectInArray(value, _this.value)))) {
|
|
5134
|
+
_this.dispatchSelect(value, event, null, false, length, isPlainValue ? null : obj, text);
|
|
5127
5135
|
}
|
|
5128
5136
|
});
|
|
5129
5137
|
currentIndex = endIndex;
|