@syncfusion/ej2-dropdowns 26.1.41 → 26.2.4

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.
Files changed (66) hide show
  1. package/.eslintrc.json +261 -0
  2. package/dist/ej2-dropdowns.min.js +2 -2
  3. package/dist/ej2-dropdowns.umd.min.js +2 -2
  4. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-dropdowns.es2015.js +159 -68
  6. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  7. package/dist/es6/ej2-dropdowns.es5.js +160 -71
  8. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  9. package/dist/global/ej2-dropdowns.min.js +2 -2
  10. package/dist/global/ej2-dropdowns.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/hotfix/26.1.35_Vol2.txt +1 -0
  13. package/package.json +12 -12
  14. package/src/drop-down-list/drop-down-list.js +13 -4
  15. package/src/drop-down-tree/drop-down-tree.js +8 -4
  16. package/src/list-box/list-box.js +67 -31
  17. package/src/mention/mention.js +2 -2
  18. package/src/multi-select/multi-select.d.ts +1 -0
  19. package/src/multi-select/multi-select.js +70 -30
  20. package/styles/auto-complete/fluent2.css +10 -10
  21. package/styles/bootstrap-dark.css +15 -14
  22. package/styles/bootstrap.css +15 -14
  23. package/styles/bootstrap4.css +15 -14
  24. package/styles/bootstrap5-dark.css +15 -14
  25. package/styles/bootstrap5.css +15 -14
  26. package/styles/combo-box/fluent2.css +10 -10
  27. package/styles/drop-down-base/fluent2.css +10 -10
  28. package/styles/drop-down-list/fluent2.css +10 -10
  29. package/styles/drop-down-tree/fluent2.css +10 -10
  30. package/styles/fabric-dark.css +15 -14
  31. package/styles/fabric.css +15 -14
  32. package/styles/fluent-dark.css +15 -14
  33. package/styles/fluent.css +15 -14
  34. package/styles/fluent2.css +27 -26
  35. package/styles/highcontrast-light.css +15 -14
  36. package/styles/highcontrast.css +15 -14
  37. package/styles/list-box/_layout.scss +17 -13
  38. package/styles/list-box/bootstrap-dark.css +15 -14
  39. package/styles/list-box/bootstrap.css +15 -14
  40. package/styles/list-box/bootstrap4.css +15 -14
  41. package/styles/list-box/bootstrap5-dark.css +15 -14
  42. package/styles/list-box/bootstrap5.css +15 -14
  43. package/styles/list-box/fabric-dark.css +15 -14
  44. package/styles/list-box/fabric.css +15 -14
  45. package/styles/list-box/fluent-dark.css +15 -14
  46. package/styles/list-box/fluent.css +15 -14
  47. package/styles/list-box/fluent2.css +27 -26
  48. package/styles/list-box/highcontrast-light.css +15 -14
  49. package/styles/list-box/highcontrast.css +15 -14
  50. package/styles/list-box/material-dark.css +15 -14
  51. package/styles/list-box/material.css +15 -14
  52. package/styles/list-box/material3-dark.css +15 -14
  53. package/styles/list-box/material3.css +15 -14
  54. package/styles/list-box/tailwind-dark.css +15 -14
  55. package/styles/list-box/tailwind.css +15 -14
  56. package/styles/material-dark.css +15 -14
  57. package/styles/material.css +16 -15
  58. package/styles/material3-dark.css +15 -14
  59. package/styles/material3.css +15 -14
  60. package/styles/mention/fluent2.css +10 -10
  61. package/styles/multi-select/_material-definition.scss +1 -1
  62. package/styles/multi-select/fluent2.css +10 -10
  63. package/styles/multi-select/material.css +1 -1
  64. package/styles/tailwind-dark.css +15 -14
  65. package/styles/tailwind.css +15 -14
  66. package/tslint.json +111 -0
@@ -4019,7 +4019,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4019
4019
  this.removeSelection();
4020
4020
  li.classList.add(dropDownBaseClasses.selected);
4021
4021
  this.removeHover();
4022
- var value = li.getAttribute('data-value') !== "null" ? this.getFormattedValue(li.getAttribute('data-value')) : null;
4022
+ var value = li.getAttribute('data-value') !== null ? this.getFormattedValue(li.getAttribute('data-value')) : null;
4023
4023
  var selectedData = this.getDataByValue(value);
4024
4024
  if (!this.initial && !preventSelect && !isNullOrUndefined(e)) {
4025
4025
  var items = this.detachChanges(selectedData);
@@ -4094,6 +4094,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4094
4094
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4095
4095
  DropDownList.prototype.setValue = function (e) {
4096
4096
  var dataItem = this.getItemData();
4097
+ this.isTouched = !isNullOrUndefined(e);
4097
4098
  if (dataItem.value === null) {
4098
4099
  Input.setValue(null, this.inputElement, this.floatLabelType, this.showClearButton);
4099
4100
  }
@@ -4586,7 +4587,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4586
4587
  return;
4587
4588
  }
4588
4589
  _this.isCustomFilter = true;
4589
- _this.customFilterQuery = query.clone();
4590
+ _this.customFilterQuery = query ? query.clone() : query;
4590
4591
  _this.filteringAction(dataSource, query, fields);
4591
4592
  },
4592
4593
  baseEventArgs: e,
@@ -5986,7 +5987,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
5986
5987
  DropDownList.prototype.checkData = function (newProp) {
5987
5988
  if (newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource)) && this.itemTemplate && this.allowFiltering &&
5988
5989
  !(this.isListSearched && (newProp.dataSource instanceof DataManager))) {
5989
- this.list = null;
5990
+ if (this.list) {
5991
+ this.list.innerHTML = '';
5992
+ }
5990
5993
  this.actionCompleteData = { ulElement: null, list: null, isUpdated: false };
5991
5994
  }
5992
5995
  this.isListSearched = false;
@@ -6028,7 +6031,13 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
6028
6031
  this.itemData = this.getDataByValue(currentValue);
6029
6032
  var dataItem = this.getItemData();
6030
6033
  var value = this.allowObjectBinding ? this.itemData : dataItem.value;
6031
- this.setProperties({ 'text': dataItem.text, 'value': value });
6034
+ var index = isNullOrUndefined(value) ? null : this.index;
6035
+ if (isNullOrUndefined(index) && (currentValue == value)) {
6036
+ this.setProperties({ 'text': dataItem.text, 'value': value });
6037
+ }
6038
+ else {
6039
+ this.setProperties({ 'text': dataItem.text, 'index': index, 'value': value });
6040
+ }
6032
6041
  };
6033
6042
  DropDownList.prototype.updateInputFields = function () {
6034
6043
  if (this.getModuleName() === 'dropdownlist') {
@@ -7058,7 +7067,12 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
7058
7067
  }
7059
7068
  }
7060
7069
  else {
7061
- this.inputEle = this.createElement('input', { attrs: { role: 'textbox', type: 'text' } });
7070
+ if (!isNullOrUndefined(this.element.id)) {
7071
+ this.inputEle = this.createElement('input', { attrs: { role: 'textbox', type: 'text', id: this.element.id } });
7072
+ }
7073
+ else {
7074
+ this.inputEle = this.createElement('input', { attrs: { role: 'textbox', type: 'text' } });
7075
+ }
7062
7076
  this.element.parentElement.insertBefore(this.inputEle, this.element);
7063
7077
  }
7064
7078
  this.inputObj = Input.createInput({
@@ -8374,10 +8388,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
8374
8388
  _this.popupObj.refreshPosition();
8375
8389
  if (!(_this.showCheckBox && _this.showSelectAll) && (!_this.popupDiv.classList.contains(NODATA)
8376
8390
  && _this.treeItems.length > 0)) {
8377
- var focusedElement = void 0;
8378
- if (_this.value != null && _this.text != null) {
8391
+ var focusedElement = _this.value != null && _this.text != null ? _this.treeObj.element.querySelector('[data-uid="' + _this.value[0] + '"]') : null;
8392
+ if (focusedElement) {
8379
8393
  _this.treeObj.element.querySelector('li').setAttribute('tabindex', '-1');
8380
- focusedElement = _this.treeObj.element.querySelector('[data-uid="' + _this.value[0] + '"]');
8381
8394
  focusedElement.setAttribute('tabindex', '0');
8382
8395
  }
8383
8396
  else {
@@ -12356,6 +12369,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12356
12369
  this.isCustomRendered = true;
12357
12370
  this.remoteCustomValue = this.enableVirtualization ? false : this.remoteCustomValue;
12358
12371
  }
12372
+ if (this.mode === 'CheckBox' && this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy) && !isNullOrUndefined(this.fields.disabled)) {
12373
+ this.disableGroupHeader();
12374
+ }
12359
12375
  if (this.dataSource instanceof DataManager && this.mode === 'CheckBox' && this.allowFiltering) {
12360
12376
  this.removeFocus();
12361
12377
  }
@@ -12519,9 +12535,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12519
12535
  return (!isNullOrUndefined(liElement) ? liElement : this.liCollections[0]);
12520
12536
  };
12521
12537
  MultiSelect.prototype.checkSelectAll = function () {
12522
- var groupItemLength = this.list.querySelectorAll('li.e-list-group-item.e-active').length;
12538
+ var groupItemLength = !isNullOrUndefined(this.fields.disabled) ? this.list.querySelectorAll('li.e-list-group-item.e-active:not(.e-disabled)').length : this.list.querySelectorAll('li.e-list-group-item.e-active').length;
12523
12539
  var listItem = this.list.querySelectorAll('li.e-list-item');
12524
- var searchCount = this.enableVirtualization ? this.list.querySelectorAll('li.' + dropDownBaseClasses.li + ':not(.e-virtual-list)').length : this.list.querySelectorAll('li.' + dropDownBaseClasses.li).length;
12540
+ var searchCount = this.enableVirtualization ? this.list.querySelectorAll('li.' + dropDownBaseClasses.li + ':not(.e-virtual-list)').length : !isNullOrUndefined(this.fields.disabled) ? this.list.querySelectorAll('li.' + dropDownBaseClasses.li + ':not(.e-disabled)').length : this.list.querySelectorAll('li.' + dropDownBaseClasses.li).length;
12525
12541
  var searchActiveCount = this.list.querySelectorAll('li.' + dropDownBaseClasses.selected).length;
12526
12542
  if (this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy)) {
12527
12543
  searchActiveCount = searchActiveCount - groupItemLength;
@@ -13905,7 +13921,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
13905
13921
  }
13906
13922
  var focusedLi = this.list ? this.list.querySelector('.e-item-focus') : null;
13907
13923
  if (this.isDisabledElement(focusedLi)) {
13908
- if (this.list.querySelectorAll('.e-list-item:not(.e-hide-listitem):not(.e-disabled)').length === 0) {
13924
+ if (this.list.querySelectorAll('.e-list-item:not(.e-hide-listitem):not(.e-disabled)').length === 0 || (this.keyCode === 38 && this.mode === 'CheckBox' && this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy) && focusedLi === this.list.querySelector('li.e-list-group-item'))) {
13909
13925
  this.removeFocus();
13910
13926
  return;
13911
13927
  }
@@ -14311,9 +14327,17 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14311
14327
  MultiSelect.prototype.checkMaxSelection = function () {
14312
14328
  var limit = this.value && this.value.length ? this.value.length : 0;
14313
14329
  if (limit === this.maximumSelectionLength) {
14314
- var collection = this.list.querySelectorAll('li.'
14330
+ var activeItems = this.list.querySelectorAll('li.'
14331
+ + dropDownBaseClasses.li + '.e-active');
14332
+ removeClass(activeItems, 'e-disable');
14333
+ var inactiveItems = this.list.querySelectorAll('li.'
14315
14334
  + dropDownBaseClasses.li + ':not(.e-active)');
14316
- addClass(collection, 'e-disable');
14335
+ addClass(inactiveItems, 'e-disable');
14336
+ }
14337
+ if (limit < this.maximumSelectionLength) {
14338
+ var collection = this.list.querySelectorAll('li.'
14339
+ + dropDownBaseClasses.li);
14340
+ removeClass(collection, 'e-disable');
14317
14341
  }
14318
14342
  };
14319
14343
  MultiSelect.prototype.dispatchSelect = function (value, eve, element, isNotTrigger, length) {
@@ -14869,7 +14893,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14869
14893
  if (this.mode === 'CheckBox') {
14870
14894
  this.refreshPlaceHolder();
14871
14895
  this.refreshInputHight();
14872
- if (this.changeOnBlur && isClearAll && (isNullOrUndefined(this.value) || this.value.length === 0)) {
14896
+ if (!this.changeOnBlur && isClearAll && (isNullOrUndefined(this.value) || this.value.length === 0)) {
14873
14897
  this.updateValueState(e, this.value, this.tempValues);
14874
14898
  }
14875
14899
  }
@@ -15690,17 +15714,19 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
15690
15714
  };
15691
15715
  MultiSelect.prototype.findGroupAttrtibutes = function (listElement, checked, unChecked, count, position) {
15692
15716
  while (!listElement.classList.contains('e-list-group-item')) {
15693
- if (listElement.classList.contains('e-list-icon')) {
15694
- listElement = listElement.parentElement;
15695
- }
15696
- if (listElement.getElementsByClassName('e-frame')[0].classList.contains('e-check') &&
15697
- listElement.classList.contains('e-list-item')) {
15698
- checked++;
15699
- }
15700
- else if (listElement.classList.contains('e-list-item')) {
15701
- unChecked++;
15717
+ if (!(this.fields.disabled && this.isDisabledElement(listElement))) {
15718
+ if (listElement.classList.contains('e-list-icon')) {
15719
+ listElement = listElement.parentElement;
15720
+ }
15721
+ if (listElement.getElementsByClassName('e-frame')[0].classList.contains('e-check') &&
15722
+ listElement.classList.contains('e-list-item')) {
15723
+ checked++;
15724
+ }
15725
+ else if (listElement.classList.contains('e-list-item')) {
15726
+ unChecked++;
15727
+ }
15728
+ count++;
15702
15729
  }
15703
- count++;
15704
15730
  listElement = position ? listElement.nextElementSibling : listElement.previousElementSibling;
15705
15731
  if (listElement == null) {
15706
15732
  break;
@@ -15709,7 +15735,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
15709
15735
  return [checked, unChecked, count];
15710
15736
  };
15711
15737
  MultiSelect.prototype.updateCheckBox = function (groupHeader, checked, unChecked, count) {
15712
- if (groupHeader === null) {
15738
+ if (groupHeader === null || (!isNullOrUndefined(this.fields.disabled) && count === 0)) {
15713
15739
  return;
15714
15740
  }
15715
15741
  var checkBoxElement = groupHeader.getElementsByClassName('e-frame')[0];
@@ -15738,6 +15764,28 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
15738
15764
  groupHeader.setAttribute('aria-selected', 'false');
15739
15765
  }
15740
15766
  };
15767
+ MultiSelect.prototype.disableGroupHeader = function () {
15768
+ var collection = this.list.querySelectorAll('li.e-list-group-item');
15769
+ if (collection) {
15770
+ for (var index = 0; index < collection.length; index++) {
15771
+ var isDisabled = true;
15772
+ var target = collection[index].nextElementSibling;
15773
+ while (!target.classList.contains('e-list-group-item')) {
15774
+ if (!this.isDisabledElement(target)) {
15775
+ isDisabled = false;
15776
+ break;
15777
+ }
15778
+ target = target.nextElementSibling;
15779
+ if (target == null) {
15780
+ break;
15781
+ }
15782
+ }
15783
+ if (isDisabled) {
15784
+ this.disableListItem(collection[index]);
15785
+ }
15786
+ }
15787
+ }
15788
+ };
15741
15789
  MultiSelect.prototype.deselectHeader = function () {
15742
15790
  var limit = this.value && this.value.length ? this.value.length : 0;
15743
15791
  var collection = this.list.querySelectorAll('li.e-list-group-item:not(.e-active)');
@@ -16111,22 +16159,24 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
16111
16159
  return;
16112
16160
  }
16113
16161
  while (listElement.classList.contains('e-list-item')) {
16114
- if (state) {
16115
- if (!listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
16116
- var selectionLimit = this.value && this.value.length ? this.value.length : 0;
16117
- if (listElement.classList.contains('e-active')) {
16118
- selectionLimit -= 1;
16162
+ if (!(this.fields.disabled && this.isDisabledElement(listElement))) {
16163
+ if (state) {
16164
+ if (!listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
16165
+ var selectionLimit = this.value && this.value.length ? this.value.length : 0;
16166
+ if (listElement.classList.contains('e-active')) {
16167
+ selectionLimit -= 1;
16168
+ }
16169
+ if (selectionLimit < this.maximumSelectionLength) {
16170
+ this.updateListSelection(listElement, event);
16171
+ }
16119
16172
  }
16120
- if (selectionLimit < this.maximumSelectionLength) {
16173
+ }
16174
+ else {
16175
+ if (listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
16121
16176
  this.updateListSelection(listElement, event);
16122
16177
  }
16123
16178
  }
16124
16179
  }
16125
- else {
16126
- if (listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
16127
- this.updateListSelection(listElement, event);
16128
- }
16129
- }
16130
16180
  listElement = listElement.nextElementSibling;
16131
16181
  if (listElement == null) {
16132
16182
  break;
@@ -16429,7 +16479,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
16429
16479
  }
16430
16480
  if (this.mode === 'CheckBox') {
16431
16481
  this.updateDelimView();
16432
- if (!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) {
16482
+ if ((!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) || (this.isSelectAll && this.isSelectAllTarget)) {
16433
16483
  this.updateDelimeter(this.delimiterChar, event);
16434
16484
  }
16435
16485
  this.refreshInputHight();
@@ -16986,7 +17036,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
16986
17036
  * @returns {void}
16987
17037
  */
16988
17038
  MultiSelect.prototype.render = function () {
16989
- if (!isNullOrUndefined(this.value)) {
17039
+ if (!isNullOrUndefined(this.value) && this.value.length > 0) {
16990
17040
  // eslint-disable-next-line
16991
17041
  this.value = this.value.slice();
16992
17042
  }
@@ -17383,6 +17433,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
17383
17433
  this.removeDisabledItemsValue(this.value);
17384
17434
  this.updateVal(this.value, oldValue, 'value');
17385
17435
  }
17436
+ if (this.mode === 'CheckBox' && this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy)) {
17437
+ this.disableGroupHeader();
17438
+ }
17386
17439
  }
17387
17440
  }
17388
17441
  }
@@ -18882,11 +18935,9 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
18882
18935
  }
18883
18936
  };
18884
18937
  ListBox.prototype.updateListItems = function (sourceElem, destElem) {
18885
- var i = 0;
18886
18938
  destElem.innerHTML = '';
18887
- while (i < sourceElem.childNodes.length) {
18888
- destElem.appendChild(sourceElem.childNodes[i]);
18889
- }
18939
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18940
+ destElem.append.apply(destElem, sourceElem.childNodes);
18890
18941
  };
18891
18942
  ListBox.prototype.removeSelected = function (listObj, elems) {
18892
18943
  if (listObj.selectionSettings.showCheckbox) {
@@ -19530,8 +19581,13 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
19530
19581
  };
19531
19582
  ListBox.prototype.getDataByElems = function (elems) {
19532
19583
  var data = [];
19533
- for (var i = 0, len = elems.length; i < len; i++) {
19534
- data.push(this.getDataByValue(this.getFormattedValue(elems[i].getAttribute('data-value'))));
19584
+ var len = elems.length;
19585
+ for (var i = 0; i < len; i++) {
19586
+ var elem = elems[i];
19587
+ var value = elem.getAttribute('data-value');
19588
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19589
+ var formattedValue = this.getFormattedValue(value);
19590
+ data.push(this.getDataByValue(formattedValue));
19535
19591
  }
19536
19592
  return data;
19537
19593
  };
@@ -19706,16 +19762,39 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
19706
19762
  fListBox.value = [];
19707
19763
  if (elems.length) {
19708
19764
  this.removeSelected(fListBox, elems);
19765
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19766
+ var ulChildren_1 = Array.prototype.slice.call(fListBox.ulElement.children);
19767
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19768
+ var listItems_1 = Array.prototype.slice.call(fListBox.ulElement.querySelectorAll('.e-list-item'));
19769
+ var lData_1 = fListBox.listData;
19770
+ var sData_1 = fListBox.sortedData;
19771
+ var jData_1 = fListBox.jsonData;
19772
+ var eData_1;
19773
+ var listDataMap_1 = {};
19774
+ if (elems.length > 199) {
19775
+ for (var _i = 0, _a = fListBox.listData; _i < _a.length; _i++) {
19776
+ var item = _a[_i];
19777
+ if (!isNullOrUndefined(item)) {
19778
+ var key = fListBox.getFormattedValue(getValue((fListBox.fields.value ? fListBox.fields.value : 'value'), item));
19779
+ listDataMap_1[key] = item;
19780
+ }
19781
+ }
19782
+ }
19709
19783
  elems.forEach(function (ele) {
19710
- idx.push(Array.prototype.indexOf.call(fListBox.ulElement.children, ele)); // update sortable elem
19711
- // To update lb view data
19712
- dataLiIdx.push(Array.prototype.indexOf.call(fListBox.ulElement.querySelectorAll('.e-list-item'), ele));
19713
- // To update lb listdata data
19714
- dataIdx.push(Array.prototype.indexOf.call(fListBox.listData, fListBox.getDataByElems([ele])[0]));
19715
- // To update lb sorted data
19716
- sortIdx.push(Array.prototype.indexOf.call(fListBox.sortedData, fListBox.getDataByElems([ele])[0]));
19717
- // To update lb original data
19718
- jsonIdx.push(Array.prototype.indexOf.call(fListBox.jsonData, fListBox.getDataByElems([ele])[0]));
19784
+ if (elems.length < 200) {
19785
+ eData_1 = fListBox.getDataByElems([ele])[0];
19786
+ }
19787
+ else {
19788
+ var value_1 = ele.getAttribute('data-value');
19789
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19790
+ var formattedValue = fListBox.getFormattedValue(value_1);
19791
+ eData_1 = listDataMap_1[formattedValue];
19792
+ }
19793
+ idx.push(ulChildren_1.indexOf(ele));
19794
+ dataLiIdx.push(listItems_1.indexOf(ele));
19795
+ dataIdx.push(lData_1.indexOf(eData_1));
19796
+ sortIdx.push(sData_1.indexOf(eData_1));
19797
+ jsonIdx.push(jData_1.indexOf(eData_1));
19719
19798
  });
19720
19799
  if (this.sortOrder !== 'None') {
19721
19800
  sortIdx.forEach(function (i) {
@@ -19854,20 +19933,27 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
19854
19933
  // eslint-disable-next-line prefer-spread
19855
19934
  flistboxarray = Array.apply(null, { length: fListBox.ulElement.childElementCount }).map(Number.call, Number);
19856
19935
  }
19857
- var _loop_3 = function (i) {
19858
- if (fListBox.ulElement.childNodes[i].classList.contains('e-disabled')) {
19859
- // eslint-disable-next-line @typescript-eslint/tslint/config
19860
- flistboxarray = flistboxarray.filter(function (item) { return item !== i; });
19861
- tempLiColl.push(fListBox.ulElement.childNodes[i]);
19936
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19937
+ var childNodes = fListBox.ulElement.childNodes;
19938
+ var childElementCount = fListBox.ulElement.childElementCount;
19939
+ var newFlistboxArray = [];
19940
+ for (var i = 0; i < childElementCount; i++) {
19941
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19942
+ var childNode = childNodes[i];
19943
+ if (childNode.classList.contains('e-disabled')) {
19944
+ tempLiColl.push(childNode);
19862
19945
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
19863
19946
  tempData.push(fListBox.listData[i]);
19864
19947
  }
19865
- };
19866
- for (var i = 0; i < fListBox.ulElement.childElementCount; i++) {
19867
- _loop_3(i);
19948
+ else {
19949
+ newFlistboxArray.push(i);
19950
+ }
19951
+ }
19952
+ flistboxarray = newFlistboxArray;
19953
+ if (!isRefresh) {
19954
+ moveTo(fListBox.ulElement, tListBox.ulElement, flistboxarray, index);
19955
+ fListBox.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
19868
19956
  }
19869
- moveTo(fListBox.ulElement, tListBox.ulElement, flistboxarray, index);
19870
- this.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
19871
19957
  if (isKey) {
19872
19958
  this.list.focus();
19873
19959
  }
@@ -19923,7 +20009,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
19923
20009
  if (isRefresh) {
19924
20010
  var sourceElem = tListBox.renderItems(listData, tListBox.fields);
19925
20011
  tListBox.updateListItems(sourceElem, tListBox.ulElement);
19926
- this.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
20012
+ fListBox.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
19927
20013
  }
19928
20014
  else {
19929
20015
  tListBox.sortedData = listData;
@@ -20212,11 +20298,13 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
20212
20298
  }
20213
20299
  };
20214
20300
  ListBox.prototype.resizeHandler = function () {
20215
- if (this.list.scrollWidth > this.list.offsetWidth) {
20216
- this.list.querySelector('.e-list-parent').style.display = 'inline-block';
20217
- }
20218
- else {
20219
- this.list.querySelector('.e-list-parent').style.display = 'block';
20301
+ if (this.list && !(this.cssClass && this.cssClass.indexOf('e-horizontal-listbox') > -1)) {
20302
+ if (this.list.scrollWidth > this.list.offsetWidth) {
20303
+ this.list.querySelector('.e-list-parent').style.display = 'inline-block';
20304
+ }
20305
+ else {
20306
+ this.list.querySelector('.e-list-parent').style.display = 'block';
20307
+ }
20220
20308
  }
20221
20309
  };
20222
20310
  ListBox.prototype.getValidIndex = function (cli, index, keyCode) {
@@ -20360,6 +20448,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
20360
20448
  };
20361
20449
  ListBox.prototype.checkDisabledState = function (inst) {
20362
20450
  if (isNullOrUndefined(inst.ulElement)) {
20451
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
20363
20452
  if (!isNullOrUndefined(this.dataSource) && isNullOrUndefined(this.dataSource.length)) {
20364
20453
  return false;
20365
20454
  }
@@ -22046,10 +22135,10 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
22046
22135
  }
22047
22136
  if (this.isContentEditable(this.inputElement)) {
22048
22137
  if (Browser.isAndroid) {
22049
- return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '');
22138
+ return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : ' ');
22050
22139
  }
22051
22140
  else {
22052
- return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '');
22141
+ return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : ' ');
22053
22142
  }
22054
22143
  }
22055
22144
  else {