@syncfusion/ej2-multicolumn-combobox 31.2.4 → 31.2.12

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 : 31.2.4
3
+ * version : 31.2.12
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-multicolumn-combobox",
3
- "version": "31.2.4",
3
+ "version": "31.2.12",
4
4
  "description": "Essential JS 2 Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -9,8 +9,8 @@
9
9
  "es2015": "./dist/es6/ej2-multicolumn-combobox.es5.js",
10
10
  "typings": "index.d.ts",
11
11
  "dependencies": {
12
- "@syncfusion/ej2-base": "~31.2.4",
13
- "@syncfusion/ej2-grids": "~31.2.4"
12
+ "@syncfusion/ej2-base": "~31.2.12",
13
+ "@syncfusion/ej2-grids": "~31.2.12"
14
14
  },
15
15
  "devDependencies": {},
16
16
  "keywords": [
@@ -779,6 +779,7 @@ export declare class MultiColumnComboBox extends Component<HTMLElement> implemen
779
779
  private exactMatchedContent;
780
780
  private isDataFiltered;
781
781
  private isInitialRender;
782
+ private isInitialValueRender;
782
783
  private remoteDataLength;
783
784
  private selectedRowIndex;
784
785
  private isShowSpinner;
@@ -332,6 +332,10 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
332
332
  };
333
333
  MultiColumnComboBox.prototype.render = function () {
334
334
  this.renderInput();
335
+ if ((!isNOU(this.value) || !isNOU(this.text) || !isNOU(this.index)) && !isNOU(this.dataSource)
336
+ && this.dataSource instanceof DataManager) {
337
+ this.isInitialValueRender = true;
338
+ }
335
339
  if (this.gridData == null) {
336
340
  this.setGridData(this.dataSource);
337
341
  }
@@ -359,6 +363,10 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
359
363
  _this.remoteDataLength = _this.gridData.length;
360
364
  _this.isMainDataUpdated = true;
361
365
  }
366
+ if (_this.isInitialValueRender) {
367
+ _this.isInitialValueRender = false;
368
+ _this.initValue(null, null, true);
369
+ }
362
370
  if (_this.popupDiv) {
363
371
  _this.updateGridDataSource();
364
372
  }
@@ -477,7 +485,7 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
477
485
  SortOrder.Ascending : SortOrder.Descending }] };
478
486
  }
479
487
  this.gridObj.appendTo(this.gridEle);
480
- if (!isNOU(this.value) || !isNOU(this.text) || !isNOU(this.index)) {
488
+ if ((!isNOU(this.value) || !isNOU(this.text) || !isNOU(this.index)) && !isNOU(this.dataSource) && this.dataSource instanceof Array) {
481
489
  this.initValue(null, null, true);
482
490
  }
483
491
  };
@@ -846,22 +854,21 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
846
854
  };
847
855
  if ((!isRerender && (!isNOU(this.value) || !isNOU(this.text))) || (isRerender && isValue !== undefined)) {
848
856
  var value_1 = isRerender ? (isValue ? this.value : this.text) : (!isNOU(this.value) ? this.value : this.text);
849
- if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager) {
850
- this.dataSource.executeQuery(new Query).then(function (e) {
851
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
852
- var dataLists = e.result;
853
- var filteredData = dataLists.filter(function (item) {
854
- var fieldVal = item ? (_this.updateFieldValue(isRerender ? (isValue ? _this.fields.value :
855
- _this.fields.text) : !isNOU(_this.value) ? _this.fields.value : _this.fields.text, item)) : null;
856
- return fieldVal === value_1;
857
- });
858
- if (filteredData.length > 0) {
859
- item = filteredData[0];
860
- updateValues(dataLists);
861
- _this.updateChangeEvent(item, prevItemData, prevItemEle, currentValue, currentText, currentIndex, isRerender, isInitial);
862
- _this.gridObj.selectRow(_this.index);
863
- }
857
+ if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager && this.mainData
858
+ && this.isMainDataUpdated) {
859
+ var dataLists = ((this.query && this.getQuery(this.query).isCountRequired) ||
860
+ !this.query) ? this.mainData : this.mainData.result ? this.mainData.result : this.mainData;
861
+ var filteredData = dataLists.filter(function (item) {
862
+ var fieldVal = item ? (_this.updateFieldValue(isRerender ? (isValue ? _this.fields.value :
863
+ _this.fields.text) : !isNOU(_this.value) ? _this.fields.value : _this.fields.text, item)) : null;
864
+ return fieldVal === value_1;
864
865
  });
866
+ if (filteredData.length > 0) {
867
+ item = filteredData[0];
868
+ updateValues(dataLists);
869
+ this.updateChangeEvent(item, prevItemData, prevItemEle, currentValue, currentText, currentIndex, isRerender, isInitial);
870
+ this.gridObj.selectRow(this.index);
871
+ }
865
872
  }
866
873
  else if (!isNOU(this.dataSource) && this.dataSource instanceof Array) {
867
874
  item = this.dataSource.filter(function (data) {
@@ -873,15 +880,14 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
873
880
  }
874
881
  }
875
882
  else if (!isNOU(this.index)) {
876
- if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager) {
877
- this.dataSource.executeQuery(new Query).then(function (e) {
878
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
879
- var dataLists = e.result;
880
- item = dataLists[_this.index];
881
- updateValues(dataLists);
882
- _this.updateChangeEvent(item, prevItemData, prevItemEle, currentValue, currentText, currentIndex, isRerender, isInitial);
883
- _this.gridObj.selectRow(_this.index);
884
- });
883
+ if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager && this.mainData
884
+ && this.isMainDataUpdated) {
885
+ var dataLists = ((this.query && this.getQuery(this.query).isCountRequired) ||
886
+ !this.query) ? this.mainData : this.mainData.result ? this.mainData.result : this.mainData;
887
+ item = dataLists[this.index];
888
+ updateValues(dataLists);
889
+ this.updateChangeEvent(item, prevItemData, prevItemEle, currentValue, currentText, currentIndex, isRerender, isInitial);
890
+ this.gridObj.selectRow(this.index);
885
891
  }
886
892
  else if (!isNOU(this.dataSource) && this.dataSource instanceof Array) {
887
893
  if (!this.fields.groupBy) {
@@ -1697,15 +1703,14 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
1697
1703
  return fieldValue === value;
1698
1704
  })[0];
1699
1705
  }
1700
- else if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager) {
1701
- this.dataSource.executeQuery(new Query()).then(function (e) {
1702
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1703
- var dataLists = e.result;
1704
- return dataLists.filter(function (item) {
1705
- var fieldValue = _this.updateFieldValue(_this.fields.value, item);
1706
- return fieldValue === value;
1707
- })[0];
1708
- });
1706
+ else if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager && this.mainData
1707
+ && this.isMainDataUpdated) {
1708
+ var dataLists = ((this.query && this.getQuery(this.query).isCountRequired) ||
1709
+ !this.query) ? this.mainData : this.mainData.result ? this.mainData.result : this.mainData;
1710
+ return dataLists.filter(function (item) {
1711
+ var fieldValue = _this.updateFieldValue(_this.fields.value, item);
1712
+ return fieldValue === value;
1713
+ })[0];
1709
1714
  }
1710
1715
  return null;
1711
1716
  };