@syncfusion/ej2-multicolumn-combobox 26.2.12 → 27.1.50
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/.eslintrc.json +261 -0
- 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 +94 -43
- package/dist/es6/ej2-multicolumn-combobox.es2015.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es5.js +94 -40
- 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 +8 -8
- package/src/multicolumn-combobox/multi-column-combo-box-model.d.ts +1 -1
- package/src/multicolumn-combobox/multi-column-combo-box.d.ts +4 -2
- package/src/multicolumn-combobox/multi-column-combo-box.js +94 -41
- package/styles/bootstrap-dark-lite.css +267 -0
- package/styles/bootstrap-dark-lite.scss +10 -0
- package/styles/bootstrap-dark.css +77 -108
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap-lite.css +267 -0
- package/styles/bootstrap-lite.scss +10 -0
- package/styles/bootstrap.css +77 -108
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4-lite.css +309 -0
- package/styles/bootstrap4-lite.scss +10 -0
- package/styles/bootstrap4.css +78 -131
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark-lite.css +317 -0
- package/styles/bootstrap5-dark-lite.scss +10 -0
- package/styles/bootstrap5-dark.css +78 -127
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5-lite.css +317 -0
- package/styles/bootstrap5-lite.scss +10 -0
- package/styles/bootstrap5.3-lite.css +321 -0
- package/styles/bootstrap5.3-lite.scss +10 -0
- package/styles/bootstrap5.3.css +372 -0
- package/styles/bootstrap5.3.scss +11 -0
- package/styles/bootstrap5.css +78 -127
- package/styles/bootstrap5.scss +1 -0
- package/styles/fabric-dark-lite.css +243 -0
- package/styles/fabric-dark-lite.scss +10 -0
- package/styles/fabric-dark.css +78 -108
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric-lite.css +243 -0
- package/styles/fabric-lite.scss +10 -0
- package/styles/fabric.css +78 -101
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark-lite.css +310 -0
- package/styles/fluent-dark-lite.scss +10 -0
- package/styles/fluent-dark.css +78 -114
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent-lite.css +310 -0
- package/styles/fluent-lite.scss +10 -0
- package/styles/fluent.css +78 -114
- package/styles/fluent.scss +1 -0
- package/styles/fluent2-lite.css +314 -0
- package/styles/fluent2-lite.scss +10 -0
- package/styles/fluent2.css +78 -111
- package/styles/fluent2.scss +1 -0
- package/styles/highcontrast-light-lite.css +264 -0
- package/styles/highcontrast-light-lite.scss +10 -0
- package/styles/highcontrast-light.css +78 -98
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast-lite.css +268 -0
- package/styles/highcontrast-lite.scss +10 -0
- package/styles/highcontrast.css +82 -98
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark-lite.css +292 -0
- package/styles/material-dark-lite.scss +10 -0
- package/styles/material-dark.css +78 -92
- package/styles/material-dark.scss +1 -0
- package/styles/material-lite.css +296 -0
- package/styles/material-lite.scss +10 -0
- package/styles/material.css +78 -113
- package/styles/material.scss +1 -0
- package/styles/material3-dark-lite.css +306 -0
- package/styles/material3-dark-lite.scss +10 -0
- package/styles/material3-dark.css +77 -116
- package/styles/material3-dark.scss +1 -0
- package/styles/material3-lite.css +308 -0
- package/styles/material3-lite.scss +10 -0
- package/styles/material3.css +77 -116
- package/styles/material3.scss +1 -0
- package/styles/multicolumn-combobox/_bds-definition.scss +1 -0
- package/styles/multicolumn-combobox/_bigger.scss +37 -0
- package/styles/multicolumn-combobox/_bootstrap-dark-definition.scss +1 -0
- package/styles/multicolumn-combobox/_bootstrap-definition.scss +1 -0
- package/styles/multicolumn-combobox/_bootstrap4-definition.scss +1 -0
- package/styles/multicolumn-combobox/_bootstrap5-definition.scss +1 -0
- package/styles/multicolumn-combobox/_bootstrap5.3-definition.scss +15 -14
- package/styles/multicolumn-combobox/_fabric-dark-definition.scss +1 -0
- package/styles/multicolumn-combobox/_fabric-definition.scss +1 -0
- package/styles/multicolumn-combobox/_fluent-definition.scss +1 -0
- package/styles/multicolumn-combobox/_fluent2-definition.scss +1 -0
- package/styles/multicolumn-combobox/_fusionnew-definition.scss +1 -0
- package/styles/multicolumn-combobox/_highcontrast-definition.scss +1 -0
- package/styles/multicolumn-combobox/_highcontrast-light-definition.scss +1 -0
- package/styles/multicolumn-combobox/_layout.scss +34 -33
- package/styles/multicolumn-combobox/_material-dark-definition.scss +1 -0
- package/styles/multicolumn-combobox/_material-definition.scss +1 -0
- package/styles/multicolumn-combobox/_material3-definition.scss +1 -0
- package/styles/multicolumn-combobox/_tailwind-definition.scss +1 -0
- package/styles/multicolumn-combobox/_theme.scss +3 -0
- package/styles/multicolumn-combobox/bootstrap-dark.css +77 -108
- package/styles/multicolumn-combobox/bootstrap-dark.scss +1 -0
- package/styles/multicolumn-combobox/bootstrap.css +77 -108
- package/styles/multicolumn-combobox/bootstrap.scss +1 -0
- package/styles/multicolumn-combobox/bootstrap4.css +78 -131
- package/styles/multicolumn-combobox/bootstrap4.scss +1 -0
- package/styles/multicolumn-combobox/bootstrap5-dark.css +78 -127
- package/styles/multicolumn-combobox/bootstrap5-dark.scss +1 -0
- package/styles/multicolumn-combobox/bootstrap5.3.css +372 -0
- package/styles/multicolumn-combobox/bootstrap5.3.scss +11 -0
- package/styles/multicolumn-combobox/bootstrap5.css +78 -127
- package/styles/multicolumn-combobox/bootstrap5.scss +1 -0
- package/styles/multicolumn-combobox/fabric-dark.css +78 -108
- package/styles/multicolumn-combobox/fabric-dark.scss +1 -0
- package/styles/multicolumn-combobox/fabric.css +78 -101
- package/styles/multicolumn-combobox/fabric.scss +1 -0
- package/styles/multicolumn-combobox/fluent-dark.css +78 -114
- package/styles/multicolumn-combobox/fluent-dark.scss +1 -0
- package/styles/multicolumn-combobox/fluent.css +78 -114
- package/styles/multicolumn-combobox/fluent.scss +1 -0
- package/styles/multicolumn-combobox/fluent2.css +78 -111
- package/styles/multicolumn-combobox/fluent2.scss +1 -0
- package/styles/multicolumn-combobox/highcontrast-light.css +78 -98
- package/styles/multicolumn-combobox/highcontrast-light.scss +1 -0
- package/styles/multicolumn-combobox/highcontrast.css +82 -98
- package/styles/multicolumn-combobox/highcontrast.scss +1 -0
- package/styles/multicolumn-combobox/material-dark.css +78 -92
- package/styles/multicolumn-combobox/material-dark.scss +1 -0
- package/styles/multicolumn-combobox/material.css +78 -113
- package/styles/multicolumn-combobox/material.scss +1 -0
- package/styles/multicolumn-combobox/material3-dark.css +77 -116
- package/styles/multicolumn-combobox/material3-dark.scss +1 -0
- package/styles/multicolumn-combobox/material3.css +77 -116
- package/styles/multicolumn-combobox/material3.scss +1 -0
- package/styles/multicolumn-combobox/tailwind-dark.css +78 -111
- package/styles/multicolumn-combobox/tailwind-dark.scss +1 -0
- package/styles/multicolumn-combobox/tailwind.css +78 -111
- package/styles/multicolumn-combobox/tailwind.scss +1 -0
- package/styles/tailwind-dark-lite.css +297 -0
- package/styles/tailwind-dark-lite.scss +10 -0
- package/styles/tailwind-dark.css +78 -111
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind-lite.css +297 -0
- package/styles/tailwind-lite.scss +10 -0
- package/styles/tailwind.css +78 -111
- package/styles/tailwind.scss +1 -0
- package/tslint.json +111 -0
|
@@ -200,11 +200,11 @@ var GridSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
200
200
|
* The selected value will be displayed in the input element.
|
|
201
201
|
*
|
|
202
202
|
* ```html
|
|
203
|
-
* <input type=
|
|
203
|
+
* <input type='text' id='multi-column'></input>
|
|
204
204
|
* ```
|
|
205
205
|
* ```typescript
|
|
206
206
|
* let multiColObj: MultiColumnComboBox = new MultiColumnComboBox();
|
|
207
|
-
* multiColObj.appendTo(
|
|
207
|
+
* multiColObj.appendTo('#multi-column');
|
|
208
208
|
* ```
|
|
209
209
|
*/
|
|
210
210
|
var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
@@ -314,6 +314,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
314
314
|
if (args.requestType === 'sorting') {
|
|
315
315
|
_this.updateRowSelection(args);
|
|
316
316
|
}
|
|
317
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
317
318
|
var dataRows = args.rows;
|
|
318
319
|
if (_this.isDataFiltered && dataRows.length > 0 && _this.inputEle.value !== '' && args.requestType !== 'sorting') {
|
|
319
320
|
var firstRowEle = _this.gridObj.getRows()[0];
|
|
@@ -349,7 +350,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
349
350
|
}
|
|
350
351
|
this.gridObj.appendTo(this.gridEle);
|
|
351
352
|
};
|
|
352
|
-
|
|
353
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
353
354
|
MultiColumnComboBox.prototype.isRowMatching = function (data, selectedValue, selectedText) {
|
|
354
355
|
var values = Object.values(data).map(String);
|
|
355
356
|
var isRowPresent = values.includes(selectedValue) && values.includes(selectedText);
|
|
@@ -379,10 +380,11 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
379
380
|
};
|
|
380
381
|
MultiColumnComboBox.prototype.findIndex = function (arr, obj) {
|
|
381
382
|
return arr.findIndex(function (item) {
|
|
383
|
+
// eslint-disable-next-line
|
|
382
384
|
return Object.keys(obj).every(function (key) { return item[key] === obj[key]; });
|
|
383
385
|
});
|
|
384
386
|
};
|
|
385
|
-
|
|
387
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
386
388
|
MultiColumnComboBox.prototype.getGridColumns = function () {
|
|
387
389
|
var _this = this;
|
|
388
390
|
return this.columns.map(function (column) {
|
|
@@ -416,7 +418,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
416
418
|
showDropArea: false,
|
|
417
419
|
columns: [this.fields.groupBy],
|
|
418
420
|
captionTemplate: (this.groupTemplate && this.fields.groupBy !== '' && !isNullOrUndefined(this.fields.groupBy))
|
|
419
|
-
? this.groupTemplate :
|
|
421
|
+
? this.groupTemplate : '${key}'
|
|
420
422
|
};
|
|
421
423
|
if (this.isVue) {
|
|
422
424
|
this.gridObj.isVue = this.isVue;
|
|
@@ -440,7 +442,9 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
440
442
|
}
|
|
441
443
|
}
|
|
442
444
|
if (this.isInitialRender) {
|
|
443
|
-
var rowHeight = !this.popupDiv.classList.contains(NODATA) ? this.popupDiv.querySelector('.e-gridcontent tr')
|
|
445
|
+
var rowHeight = !this.popupDiv.classList.contains(NODATA) ? this.popupDiv.querySelector('.e-gridcontent tr') ?
|
|
446
|
+
this.popupDiv.querySelector('.e-gridcontent tr').getBoundingClientRect().height : 0 :
|
|
447
|
+
this.popupDiv.getBoundingClientRect().height;
|
|
444
448
|
this.popupRowHeight = rowHeight;
|
|
445
449
|
this.popupObj.hide();
|
|
446
450
|
this.popupEle.style.visibility = 'unset';
|
|
@@ -621,8 +625,29 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
621
625
|
});
|
|
622
626
|
}
|
|
623
627
|
else if (!isNullOrUndefined(this.dataSource) && this.dataSource instanceof Array) {
|
|
624
|
-
|
|
625
|
-
|
|
628
|
+
if (!this.fields.groupBy) {
|
|
629
|
+
item = this.dataSource[this.index];
|
|
630
|
+
updateValues(this.dataSource);
|
|
631
|
+
}
|
|
632
|
+
else {
|
|
633
|
+
setTimeout(function () {
|
|
634
|
+
var rows = _this.gridObj.getRows();
|
|
635
|
+
if (rows && rows.length > 0) {
|
|
636
|
+
var rowData = _this.gridObj.getRowInfo(rows[_this.index]).rowData;
|
|
637
|
+
var value = _this.fields.value;
|
|
638
|
+
for (var i = 0; i < rows.length; i++) {
|
|
639
|
+
if (rowData && rowData[parseInt(value.toString(), 10)] ===
|
|
640
|
+
_this.dataSource[parseInt(i.toString(), 10)][parseInt(value.toString(), 10)]) {
|
|
641
|
+
item = rowData;
|
|
642
|
+
updateValues(_this.dataSource);
|
|
643
|
+
_this.updateChangeEvent(item, prevItemData, prevItemEle, currentValue, currentText, currentIndex, isRerender, isInitial);
|
|
644
|
+
_this.gridObj.selectRow(_this.index);
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
}
|
|
626
651
|
}
|
|
627
652
|
}
|
|
628
653
|
if (!(this.dataSource instanceof DataManager)) {
|
|
@@ -905,6 +930,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
905
930
|
var data;
|
|
906
931
|
if (this.dataSource instanceof DataManager) {
|
|
907
932
|
var query = new Query();
|
|
933
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
908
934
|
this.dataSource.executeQuery(query).then(function (result) {
|
|
909
935
|
var totaldata = result.result;
|
|
910
936
|
data = totaldata.filter(function (item) {
|
|
@@ -938,39 +964,48 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
938
964
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
939
965
|
MultiColumnComboBox.prototype.filterAction = function (dataSource, inputValue, query, fields) {
|
|
940
966
|
var _this = this;
|
|
941
|
-
var dataLists;
|
|
942
967
|
if (isNullOrUndefined(query) && isNullOrUndefined(fields)) {
|
|
943
968
|
this.updateGridDataSource(dataSource);
|
|
944
969
|
}
|
|
945
970
|
else if (query) {
|
|
946
|
-
new DataManager(dataSource).executeQuery(query).then(function (e) {
|
|
947
|
-
dataLists = e.result;
|
|
948
|
-
_this.updateGridDataSource(dataLists);
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
else {
|
|
952
|
-
var filterType_1 = this.filterType.toString().toLowerCase();
|
|
953
|
-
var isQuery = query || new Query();
|
|
954
|
-
var filteredData_1;
|
|
955
971
|
if (dataSource instanceof DataManager) {
|
|
956
|
-
|
|
957
|
-
|
|
972
|
+
this.filteringHandler(dataSource, inputValue, query, fields);
|
|
973
|
+
}
|
|
974
|
+
else {
|
|
975
|
+
new DataManager(dataSource).executeQuery(query).then(function (e) {
|
|
958
976
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
959
977
|
var dataLists = e.result;
|
|
960
|
-
|
|
961
|
-
filteredData_1 = dataLists.filter(function (item) { return _this.filterData(item, filterType_1, inputValue, fields); });
|
|
962
|
-
_this.updateGridDataSource(filteredData_1, dataLength);
|
|
978
|
+
_this.updateGridDataSource(dataLists);
|
|
963
979
|
});
|
|
964
980
|
}
|
|
981
|
+
}
|
|
982
|
+
else {
|
|
983
|
+
var isQuery = query || new Query();
|
|
984
|
+
if (dataSource instanceof DataManager) {
|
|
985
|
+
this.filteringHandler(dataSource, inputValue, isQuery, fields);
|
|
986
|
+
}
|
|
965
987
|
else if (Array.isArray(dataSource)) {
|
|
966
|
-
|
|
967
|
-
|
|
988
|
+
var filterType_1 = this.filterType.toString().toLowerCase();
|
|
989
|
+
var filteredData = dataSource.filter(function (item) {
|
|
968
990
|
return _this.filterData(item, filterType_1, inputValue, fields);
|
|
969
991
|
});
|
|
970
|
-
this.updateGridDataSource(
|
|
992
|
+
this.updateGridDataSource(filteredData);
|
|
971
993
|
}
|
|
972
994
|
}
|
|
973
995
|
};
|
|
996
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
997
|
+
MultiColumnComboBox.prototype.filteringHandler = function (dataSource, inputValue, query, fields) {
|
|
998
|
+
var _this = this;
|
|
999
|
+
var filterType = this.filterType.toString().toLowerCase();
|
|
1000
|
+
var filteredData;
|
|
1001
|
+
dataSource.executeQuery(query).then(function (e) {
|
|
1002
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1003
|
+
var dataLists = e.result;
|
|
1004
|
+
var dataLength = dataLists.length;
|
|
1005
|
+
filteredData = dataLists.filter(function (item) { return _this.filterData(item, filterType, inputValue, fields); });
|
|
1006
|
+
_this.updateGridDataSource(filteredData, dataLength);
|
|
1007
|
+
});
|
|
1008
|
+
};
|
|
974
1009
|
MultiColumnComboBox.prototype.filterData = function (item, filterType, inputValue, fields) {
|
|
975
1010
|
var itemValue = item[fields ? fields.text : this.fields.text].toString().toLowerCase();
|
|
976
1011
|
switch (filterType) {
|
|
@@ -987,7 +1022,8 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
987
1022
|
MultiColumnComboBox.prototype.updateGridDataSource = function (dataSource, dataLength) {
|
|
988
1023
|
var autoHeight = true;
|
|
989
1024
|
if (dataSource.length > 0) {
|
|
990
|
-
var length_1 = this.dataSource instanceof DataManager ? dataLength
|
|
1025
|
+
var length_1 = this.dataSource instanceof DataManager ? dataLength
|
|
1026
|
+
: this.dataSource.length;
|
|
991
1027
|
autoHeight = length_1 !== dataSource.length;
|
|
992
1028
|
removeClass([this.popupDiv], [NODATA]);
|
|
993
1029
|
var noRecordEle = this.popupDiv.querySelector('.e-no-records');
|
|
@@ -1096,6 +1132,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1096
1132
|
};
|
|
1097
1133
|
MultiColumnComboBox.prototype.updateValuesOnInput = function (mouseEvent, keyEvent, isClearValues) {
|
|
1098
1134
|
var _this = this;
|
|
1135
|
+
if (isClearValues === void 0) { isClearValues = false; }
|
|
1099
1136
|
var e = mouseEvent ? mouseEvent : keyEvent;
|
|
1100
1137
|
this.hidePopup(e);
|
|
1101
1138
|
if (this.matchedRowEle && !isClearValues) {
|
|
@@ -1242,7 +1279,8 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1242
1279
|
MultiColumnComboBox.prototype.updateSelectedItem = function (e, isUpdateIndex, isInputTarget) {
|
|
1243
1280
|
if (isUpdateIndex === void 0) { isUpdateIndex = true; }
|
|
1244
1281
|
if (this.isPopupOpen) {
|
|
1245
|
-
var index = !this.fields.groupBy ? this.gridObj.selectedRowIndex
|
|
1282
|
+
var index = !this.fields.groupBy ? this.gridObj.selectedRowIndex
|
|
1283
|
+
: this.gridObj.selectedRowIndex ? this.gridObj.selectedRowIndex : 0;
|
|
1246
1284
|
if ((index === -1 && (e.action === 'moveDown' || e.action === 'moveUp')) || (e.action === 'home')) {
|
|
1247
1285
|
index = 0;
|
|
1248
1286
|
}
|
|
@@ -1262,7 +1300,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1262
1300
|
focusedEle.classList.remove('e-row-focus');
|
|
1263
1301
|
}
|
|
1264
1302
|
if (isUpdateIndex) {
|
|
1265
|
-
this.selectedGridRow(this.gridObj.getRows()[index], e, true);
|
|
1303
|
+
this.selectedGridRow(this.gridObj.getRows()[parseInt(index.toString(), 10)], e, true);
|
|
1266
1304
|
}
|
|
1267
1305
|
}
|
|
1268
1306
|
};
|
|
@@ -1303,19 +1341,22 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1303
1341
|
if (this.isPopupOpen) {
|
|
1304
1342
|
this.hidePopup(e);
|
|
1305
1343
|
}
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
clearIconEle
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1344
|
+
if (this.inputWrapper) {
|
|
1345
|
+
removeClass([this.inputWrapper], [INPUTFOCUS]);
|
|
1346
|
+
var clearIconEle = this.inputWrapper.querySelector('.e-clear-icon');
|
|
1347
|
+
if (clearIconEle) {
|
|
1348
|
+
clearIconEle.style.display = 'none';
|
|
1349
|
+
}
|
|
1350
|
+
if (this.floatLabelType !== 'Never') {
|
|
1351
|
+
Input.calculateWidth(this.inputEle, this.inputWrapper);
|
|
1352
|
+
}
|
|
1313
1353
|
}
|
|
1314
1354
|
};
|
|
1315
1355
|
/**
|
|
1316
1356
|
* Opens the popup that displays the list of items.
|
|
1317
1357
|
*
|
|
1318
1358
|
* @param {MouseEvent | KeyboardEventArgs | TouchEvent} e - Specifies the event.
|
|
1359
|
+
* @param {boolean} isInputOpen - Specifies whether the input is open or not.
|
|
1319
1360
|
* @returns {void}
|
|
1320
1361
|
*/
|
|
1321
1362
|
MultiColumnComboBox.prototype.showPopup = function (e, isInputOpen) {
|
|
@@ -1330,9 +1371,19 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1330
1371
|
attributes(_this.inputEle, { 'aria-expanded': 'true', 'aria-owns': _this.element.id + '_popup', 'aria-controls': _this.element.id });
|
|
1331
1372
|
if (!isInputOpen) {
|
|
1332
1373
|
if ((_this.value || _this.text || _this.index)) {
|
|
1333
|
-
var dataRows = _this.gridObj.
|
|
1374
|
+
var dataRows = _this.gridObj.getRowsObject();
|
|
1375
|
+
var groupIndex_1;
|
|
1376
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1334
1377
|
dataRows.forEach(function (data, index) {
|
|
1335
|
-
_this.
|
|
1378
|
+
if (_this.fields.groupBy && isNullOrUndefined(data.data.items)) {
|
|
1379
|
+
if (isNullOrUndefined(groupIndex_1)) {
|
|
1380
|
+
groupIndex_1 = 0;
|
|
1381
|
+
}
|
|
1382
|
+
else {
|
|
1383
|
+
groupIndex_1 += 1;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
_this.selectDataRow(data.data, !_this.fields.groupBy ? index : groupIndex_1);
|
|
1336
1387
|
});
|
|
1337
1388
|
}
|
|
1338
1389
|
_this.focusIn(e);
|
|
@@ -1547,7 +1598,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1547
1598
|
this.initValue(true, false);
|
|
1548
1599
|
break;
|
|
1549
1600
|
case 'index':
|
|
1550
|
-
this.initValue();
|
|
1601
|
+
this.initValue(true);
|
|
1551
1602
|
break;
|
|
1552
1603
|
case 'sortOrder':
|
|
1553
1604
|
if (this.gridObj) {
|
|
@@ -1621,7 +1672,10 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1621
1672
|
}
|
|
1622
1673
|
break;
|
|
1623
1674
|
case 'sortType':
|
|
1624
|
-
this.
|
|
1675
|
+
if (this.gridObj) {
|
|
1676
|
+
this.sortType = newProp.sortType;
|
|
1677
|
+
this.gridObj.allowMultiSorting = this.sortType.toString().toLowerCase() === 'multiplecolumns' && this.allowSorting;
|
|
1678
|
+
}
|
|
1625
1679
|
break;
|
|
1626
1680
|
case 'allowFiltering':
|
|
1627
1681
|
this.allowFiltering = newProp.allowFiltering;
|