@syncfusion/ej2-dropdowns 33.1.47 → 33.2.3

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.1.47
3
+ * version : 33.2.3
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.47",
3
+ "version": "33.2.3",
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": "~33.1.45",
12
- "@syncfusion/ej2-data": "~33.1.45",
13
- "@syncfusion/ej2-inputs": "~33.1.47",
14
- "@syncfusion/ej2-lists": "~33.1.47",
15
- "@syncfusion/ej2-navigations": "~33.1.47",
16
- "@syncfusion/ej2-notifications": "~33.1.44",
17
- "@syncfusion/ej2-popups": "~33.1.44"
11
+ "@syncfusion/ej2-base": "~33.2.3",
12
+ "@syncfusion/ej2-data": "~33.2.3",
13
+ "@syncfusion/ej2-inputs": "~33.2.3",
14
+ "@syncfusion/ej2-lists": "~33.2.3",
15
+ "@syncfusion/ej2-navigations": "~33.2.3",
16
+ "@syncfusion/ej2-notifications": "~33.2.3",
17
+ "@syncfusion/ej2-popups": "~33.2.3"
18
18
  },
19
19
  "devDependencies": {},
20
20
  "keywords": [
@@ -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 = void 0;
774
- var queryWhereCount = void 0;
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') {
@@ -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, 30), this.fields);
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 value = getValue(this.fields.value ? this.fields.value : '', this.virtualSelectAllData[index]);
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
- if (_this.value && obj[_this.fields.value] != null && Array.isArray(_this.value) &&
5122
- ((!_this.allowObjectBinding && _this.value.indexOf(obj[_this.fields.value]) < 0) ||
5123
- (_this.allowObjectBinding && !_this.isObjectInArray(obj[_this.fields.value], _this.value)))) {
5124
- var value = obj[_this.fields.value];
5125
- var text = (obj[_this.fields.text]).toString();
5126
- _this.dispatchSelect(value, event, null, false, length, obj, text);
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;