@syncfusion/ej2-multicolumn-combobox 26.2.10 → 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.
- package/dist/ej2-multicolumn-combobox.umd.min.js +2 -2
- package/dist/ej2-multicolumn-combobox.umd.min.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es2015.js +31 -17
- package/dist/es6/ej2-multicolumn-combobox.es2015.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es5.js +33 -19
- package/dist/es6/ej2-multicolumn-combobox.es5.js.map +1 -1
- package/dist/global/ej2-multicolumn-combobox.min.js +2 -2
- package/dist/global/ej2-multicolumn-combobox.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/multicolumn-combobox/multi-column-combo-box-model.d.ts +1 -1
- package/src/multicolumn-combobox/multi-column-combo-box.js +34 -20
- package/hotfix/26.1.35_Vol2.txt +0 -1
|
@@ -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
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
dataSource.executeQuery(
|
|
947
|
-
|
|
948
|
-
|
|
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
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
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 = [{
|
|
1543
|
-
|
|
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':
|