@syncfusion/ej2-multicolumn-combobox 28.1.37 → 28.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.
- package/README.md +1 -1
- 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 +16 -32
- package/dist/es6/ej2-multicolumn-combobox.es2015.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es5.js +16 -33
- 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 -7
- package/src/multicolumn-combobox/multi-column-combo-box.d.ts +1 -0
- package/src/multicolumn-combobox/multi-column-combo-box.js +16 -33
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.
|
|
3
|
+
* version : 28.2.3
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-multicolumn-combobox@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-multicolumn-combobox@28.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-multicolumn-combobox@28.1.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-8pH1v9hLcqG8LAso3tGQ3vh0uDg1XzaaOvqQPprSf7FKHAz2Puh8V9xlTBtM9CS6+jQ8OV6hXorRskeetr68wQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-multicolumn-combobox",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
21
22
|
"/@syncfusion/ej2-angular-multicolumn-combobox",
|
|
22
23
|
"/@syncfusion/ej2-react-multicolumn-combobox",
|
|
23
24
|
"/@syncfusion/ej2-vue-multicolumn-combobox"
|
|
24
25
|
],
|
|
25
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-multicolumn-combobox/-/ej2-multicolumn-combobox-28.1.
|
|
26
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-multicolumn-combobox/-/ej2-multicolumn-combobox-28.1.39.tgz",
|
|
27
|
+
"_shasum": "c27eea71d5b54f2b7c348a783ce9695e5a0aad2e",
|
|
27
28
|
"_spec": "@syncfusion/ej2-multicolumn-combobox@*",
|
|
28
29
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
29
30
|
"author": {
|
|
@@ -34,8 +35,8 @@
|
|
|
34
35
|
},
|
|
35
36
|
"bundleDependencies": false,
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@syncfusion/ej2-base": "~28.
|
|
38
|
-
"@syncfusion/ej2-grids": "~28.
|
|
38
|
+
"@syncfusion/ej2-base": "~28.2.3",
|
|
39
|
+
"@syncfusion/ej2-grids": "~28.2.3"
|
|
39
40
|
},
|
|
40
41
|
"deprecated": false,
|
|
41
42
|
"description": "Essential JS 2 Component",
|
|
@@ -56,6 +57,6 @@
|
|
|
56
57
|
"url": "git+https://github.com/syncfusion/ej2-multicolumn-combobox-component.git"
|
|
57
58
|
},
|
|
58
59
|
"typings": "index.d.ts",
|
|
59
|
-
"version": "28.
|
|
60
|
+
"version": "28.2.3",
|
|
60
61
|
"sideEffects": false
|
|
61
62
|
}
|
|
@@ -779,6 +779,7 @@ export declare class MultiColumnComboBox extends Component<HTMLElement> implemen
|
|
|
779
779
|
private isDataFiltered;
|
|
780
780
|
private isInitialRender;
|
|
781
781
|
private remoteDataLength;
|
|
782
|
+
private selectedRowIndex;
|
|
782
783
|
/**
|
|
783
784
|
* *Constructor for creating the component
|
|
784
785
|
*
|
|
@@ -977,7 +977,6 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
977
977
|
};
|
|
978
978
|
this.trigger('select', eventArgs, function (eventArgs) {
|
|
979
979
|
if (!eventArgs.cancel && eventArgs.itemData) {
|
|
980
|
-
var selectedRecord = eventArgs.itemData;
|
|
981
980
|
var event_1 = e;
|
|
982
981
|
var isUpdateVal = event_1.key === 'Enter' || event_1.key === 'Tab' || event_1.shiftKey && event_1.key === 'Tab' || event_1.altKey && event_1.key === 'ArrowUp';
|
|
983
982
|
if (!isKeyNav || (isKeyNav && isUpdateVal)) {
|
|
@@ -996,7 +995,7 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
996
995
|
this.isProtectedOnChange = true;
|
|
997
996
|
this.text = text || this.text;
|
|
998
997
|
this.value = value || this.value;
|
|
999
|
-
this.index = !isNOU(index) ? index : this.index;
|
|
998
|
+
this.index = this.selectedRowIndex = !isNOU(index) ? index : this.index;
|
|
1000
999
|
this.isProtectedOnChange = prevOnChange;
|
|
1001
1000
|
if (!isInitial) {
|
|
1002
1001
|
this.triggerChangeEvent(eventArgs);
|
|
@@ -1067,7 +1066,7 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
1067
1066
|
var _this = this;
|
|
1068
1067
|
var data = dataSource.filter(function (item) {
|
|
1069
1068
|
var fieldText = _this.updateFieldValue(_this.fields.text, item);
|
|
1070
|
-
return fieldText.toLowerCase().startsWith(inputValue.toLowerCase());
|
|
1069
|
+
return inputValue && fieldText.toLowerCase().startsWith(inputValue.toLowerCase());
|
|
1071
1070
|
});
|
|
1072
1071
|
var exactData = dataSource.filter(function (item) {
|
|
1073
1072
|
var fieldText = _this.updateFieldValue(_this.fields.text, item);
|
|
@@ -1260,7 +1259,6 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
1260
1259
|
}
|
|
1261
1260
|
};
|
|
1262
1261
|
MultiColumnComboBox.prototype.updateValuesOnInput = function (mouseEvent, keyEvent, isClearValues, isKeyDown) {
|
|
1263
|
-
var _this = this;
|
|
1264
1262
|
if (isKeyDown === void 0) { isKeyDown = false; }
|
|
1265
1263
|
var e = mouseEvent ? mouseEvent : keyEvent;
|
|
1266
1264
|
var val = isKeyDown ? this.matchedContent : this.exactMatchedContent;
|
|
@@ -1269,21 +1267,19 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
1269
1267
|
}
|
|
1270
1268
|
this.hidePopup(e);
|
|
1271
1269
|
if (this.matchedRowEle && !isClearValues && val) {
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
_this.isProtectedOnChange = prevOnChange;
|
|
1286
|
-
}, 100);
|
|
1270
|
+
var prevOnChange = this.isProtectedOnChange;
|
|
1271
|
+
this.isProtectedOnChange = true;
|
|
1272
|
+
var fieldText = this.updateFieldValue(this.fields.text, this.matchedContent);
|
|
1273
|
+
var fieldValue = this.updateFieldValue(this.fields.value, this.matchedContent);
|
|
1274
|
+
this.inputEle.value = fieldText;
|
|
1275
|
+
this.value = fieldValue;
|
|
1276
|
+
var selectIndex = this.findIndex(this.gridObj.currentViewData, this.matchedContent);
|
|
1277
|
+
this.index = selectIndex;
|
|
1278
|
+
this.text = fieldText;
|
|
1279
|
+
this.gridObj.selectRow(selectIndex);
|
|
1280
|
+
this.selectedGridRow(this.gridObj.getRowByIndex(selectIndex), e);
|
|
1281
|
+
this.previousItemElement = this.gridObj.getSelectedRows()[0];
|
|
1282
|
+
this.isProtectedOnChange = prevOnChange;
|
|
1287
1283
|
}
|
|
1288
1284
|
else {
|
|
1289
1285
|
if (this.isDataFiltered) {
|
|
@@ -1524,20 +1520,7 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
1524
1520
|
attributes(_this.inputEle, { 'aria-expanded': 'true', 'aria-owns': _this.element.id + '_popup', 'aria-controls': _this.element.id });
|
|
1525
1521
|
if (!isInputOpen) {
|
|
1526
1522
|
if ((_this.value || _this.text || _this.index)) {
|
|
1527
|
-
|
|
1528
|
-
var groupIndex_1;
|
|
1529
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1530
|
-
dataRows.forEach(function (data, index) {
|
|
1531
|
-
if (_this.fields.groupBy && isNOU(data.data.items)) {
|
|
1532
|
-
if (isNOU(groupIndex_1)) {
|
|
1533
|
-
groupIndex_1 = 0;
|
|
1534
|
-
}
|
|
1535
|
-
else {
|
|
1536
|
-
groupIndex_1 += 1;
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
_this.selectDataRow(data.data, !_this.fields.groupBy ? index : groupIndex_1);
|
|
1540
|
-
});
|
|
1523
|
+
_this.gridObj.selectRow(_this.selectedRowIndex);
|
|
1541
1524
|
}
|
|
1542
1525
|
_this.focusIn(e);
|
|
1543
1526
|
}
|