@syncfusion/ej2-multicolumn-combobox 28.1.39 → 28.2.6

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 : 28.1.39
3
+ * version : 28.2.6
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.33",
3
+ "_id": "@syncfusion/ej2-multicolumn-combobox@28.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-iM70wymmPk+g9d2eRD42TPv6mPdb4oEw8WNw3R3qqUul8YfOJ5u6iSinleJmZmd73KAc/gB7rZJVQhQOtT+2JQ==",
5
+ "_integrity": "sha512-3PnmBMbBtRPL2/OPlcoDMJuOMq7gDbGUKAsvj5mUBZ4bq7d5FVyf2ZlwLoqNTFuoMh0A7fZlGi5Ui2EhPZ/5lA==",
6
6
  "_location": "/@syncfusion/ej2-multicolumn-combobox",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-multicolumn-combobox",
24
24
  "/@syncfusion/ej2-vue-multicolumn-combobox"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-multicolumn-combobox/-/ej2-multicolumn-combobox-28.1.33.tgz",
27
- "_shasum": "19ef9d6aefa015269a5b906d8f90c984de767506",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-multicolumn-combobox/-/ej2-multicolumn-combobox-28.2.3.tgz",
27
+ "_shasum": "553b0a69101b525c89ca4b2b516fc3e131af8d0a",
28
28
  "_spec": "@syncfusion/ej2-multicolumn-combobox@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
30
30
  "author": {
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~28.1.33",
39
- "@syncfusion/ej2-grids": "~28.1.38"
38
+ "@syncfusion/ej2-base": "~28.2.5",
39
+ "@syncfusion/ej2-grids": "~28.2.6"
40
40
  },
41
41
  "deprecated": false,
42
42
  "description": "Essential JS 2 Component",
@@ -57,6 +57,6 @@
57
57
  "url": "git+https://github.com/syncfusion/ej2-multicolumn-combobox-component.git"
58
58
  },
59
59
  "typings": "index.d.ts",
60
- "version": "28.1.39",
60
+ "version": "28.2.6",
61
61
  "sideEffects": false
62
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);
@@ -1246,7 +1245,7 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
1246
1245
  }
1247
1246
  return;
1248
1247
  }
1249
- if ((target.classList.contains('e-multicolumn-list-icon') || closest(target, '.e-popup'))) {
1248
+ if ((target.classList.contains('e-multicolumn-list-icon') || closest(target, '.e-multicolumn-list.e-popup'))) {
1250
1249
  e.preventDefault();
1251
1250
  }
1252
1251
  else {
@@ -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
- setTimeout(function () {
1273
- var prevOnChange = _this.isProtectedOnChange;
1274
- _this.isProtectedOnChange = true;
1275
- var fieldText = _this.updateFieldValue(_this.fields.text, _this.matchedContent);
1276
- var fieldValue = _this.updateFieldValue(_this.fields.value, _this.matchedContent);
1277
- _this.inputEle.value = fieldText;
1278
- _this.value = fieldValue;
1279
- var selectIndex = _this.findIndex(_this.gridObj.currentViewData, _this.matchedContent);
1280
- _this.index = selectIndex;
1281
- _this.text = fieldText;
1282
- _this.gridObj.selectRow(selectIndex);
1283
- _this.selectedGridRow(_this.gridObj.getRowByIndex(selectIndex), e);
1284
- _this.previousItemElement = _this.gridObj.getSelectedRows()[0];
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
- var dataRows = _this.gridObj.getRowsObject();
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
  }
@@ -1558,7 +1541,7 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
1558
1541
  _this.remoteDataLength = e.result.length;
1559
1542
  });
1560
1543
  }
1561
- _this.popupObj.show(new Animation(eventArgs.animation), _this.popupEle);
1544
+ _this.popupObj.show(new Animation(eventArgs.animation), _this.popupEle.firstElementChild);
1562
1545
  }
1563
1546
  });
1564
1547
  };