@syncfusion/ej2-multicolumn-combobox 26.2.9 → 26.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.
@@ -938,25 +938,37 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
938
938
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
939
939
  MultiColumnComboBox.prototype.filterAction = function (dataSource, inputValue, query, fields) {
940
940
  var _this = this;
941
- var filterType = this.filterType.toString().toLowerCase();
942
- var isQuery = query || new Query();
943
- var filteredData;
944
- if (dataSource instanceof DataManager) {
945
- // Handle filtering for DataManager
946
- dataSource.executeQuery(isQuery).then(function (e) {
947
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
948
- var dataLists = e.result;
949
- var dataLength = dataLists.length;
950
- filteredData = dataLists.filter(function (item) { return _this.filterData(item, filterType, inputValue, fields); });
951
- _this.updateGridDataSource(filteredData, dataLength);
941
+ var dataLists;
942
+ if (isNullOrUndefined(query) && isNullOrUndefined(fields)) {
943
+ this.updateGridDataSource(dataSource);
944
+ }
945
+ else if (query) {
946
+ new DataManager(dataSource).executeQuery(query).then(function (e) {
947
+ dataLists = e.result;
948
+ _this.updateGridDataSource(dataLists);
952
949
  });
953
950
  }
954
- else if (Array.isArray(dataSource)) {
955
- // Handle filtering for array data source
956
- filteredData = dataSource.filter(function (item) {
957
- return _this.filterData(item, filterType, inputValue, fields);
958
- });
959
- this.updateGridDataSource(filteredData);
951
+ else {
952
+ var filterType_1 = this.filterType.toString().toLowerCase();
953
+ var isQuery = query || new Query();
954
+ var filteredData_1;
955
+ if (dataSource instanceof DataManager) {
956
+ // Handle filtering for DataManager
957
+ dataSource.executeQuery(isQuery).then(function (e) {
958
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
959
+ var dataLists = e.result;
960
+ var dataLength = dataLists.length;
961
+ filteredData_1 = dataLists.filter(function (item) { return _this.filterData(item, filterType_1, inputValue, fields); });
962
+ _this.updateGridDataSource(filteredData_1, dataLength);
963
+ });
964
+ }
965
+ else if (Array.isArray(dataSource)) {
966
+ // Handle filtering for array data source
967
+ filteredData_1 = dataSource.filter(function (item) {
968
+ return _this.filterData(item, filterType_1, inputValue, fields);
969
+ });
970
+ this.updateGridDataSource(filteredData_1);
971
+ }
960
972
  }
961
973
  };
962
974
  MultiColumnComboBox.prototype.filterData = function (item, filterType, inputValue, fields) {
@@ -1539,8 +1551,10 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
1539
1551
  break;
1540
1552
  case 'sortOrder':
1541
1553
  if (this.gridObj) {
1542
- this.gridObj.sortSettings.columns = [{ field: this.fields.text, direction: newProp.sortOrder === SortOrder.Ascending ?
1543
- SortOrder.Ascending : SortOrder.Descending }];
1554
+ this.gridObj.sortSettings.columns = [{
1555
+ field: this.fields.text, direction: newProp.sortOrder === SortOrder.Ascending ?
1556
+ SortOrder.Ascending : SortOrder.Descending
1557
+ }];
1544
1558
  }
1545
1559
  break;
1546
1560
  case 'htmlAttributes':