@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
@@ -3913,7 +3913,7 @@ let DropDownList = class DropDownList extends DropDownBase {
3913
3913
  this.removeSelection();
3914
3914
  li.classList.add(dropDownBaseClasses.selected);
3915
3915
  this.removeHover();
3916
- const value = li.getAttribute('data-value') !== "null" ? this.getFormattedValue(li.getAttribute('data-value')) : null;
3916
+ const value = li.getAttribute('data-value') !== null ? this.getFormattedValue(li.getAttribute('data-value')) : null;
3917
3917
  const selectedData = this.getDataByValue(value);
3918
3918
  if (!this.initial && !preventSelect && !isNullOrUndefined(e)) {
3919
3919
  const items = this.detachChanges(selectedData);
@@ -3988,6 +3988,7 @@ let DropDownList = class DropDownList extends DropDownBase {
3988
3988
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3989
3989
  setValue(e) {
3990
3990
  const dataItem = this.getItemData();
3991
+ this.isTouched = !isNullOrUndefined(e);
3991
3992
  if (dataItem.value === null) {
3992
3993
  Input.setValue(null, this.inputElement, this.floatLabelType, this.showClearButton);
3993
3994
  }
@@ -4475,7 +4476,7 @@ let DropDownList = class DropDownList extends DropDownBase {
4475
4476
  return;
4476
4477
  }
4477
4478
  this.isCustomFilter = true;
4478
- this.customFilterQuery = query.clone();
4479
+ this.customFilterQuery = query ? query.clone() : query;
4479
4480
  this.filteringAction(dataSource, query, fields);
4480
4481
  },
4481
4482
  baseEventArgs: e,
@@ -5859,7 +5860,9 @@ let DropDownList = class DropDownList extends DropDownBase {
5859
5860
  checkData(newProp) {
5860
5861
  if (newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource)) && this.itemTemplate && this.allowFiltering &&
5861
5862
  !(this.isListSearched && (newProp.dataSource instanceof DataManager))) {
5862
- this.list = null;
5863
+ if (this.list) {
5864
+ this.list.innerHTML = '';
5865
+ }
5863
5866
  this.actionCompleteData = { ulElement: null, list: null, isUpdated: false };
5864
5867
  }
5865
5868
  this.isListSearched = false;
@@ -5901,7 +5904,13 @@ let DropDownList = class DropDownList extends DropDownBase {
5901
5904
  this.itemData = this.getDataByValue(currentValue);
5902
5905
  const dataItem = this.getItemData();
5903
5906
  let value = this.allowObjectBinding ? this.itemData : dataItem.value;
5904
- this.setProperties({ 'text': dataItem.text, 'value': value });
5907
+ const index = isNullOrUndefined(value) ? null : this.index;
5908
+ if (isNullOrUndefined(index) && (currentValue == value)) {
5909
+ this.setProperties({ 'text': dataItem.text, 'value': value });
5910
+ }
5911
+ else {
5912
+ this.setProperties({ 'text': dataItem.text, 'index': index, 'value': value });
5913
+ }
5905
5914
  }
5906
5915
  updateInputFields() {
5907
5916
  if (this.getModuleName() === 'dropdownlist') {
@@ -6896,7 +6905,12 @@ let DropDownTree = class DropDownTree extends Component {
6896
6905
  }
6897
6906
  }
6898
6907
  else {
6899
- this.inputEle = this.createElement('input', { attrs: { role: 'textbox', type: 'text' } });
6908
+ if (!isNullOrUndefined(this.element.id)) {
6909
+ this.inputEle = this.createElement('input', { attrs: { role: 'textbox', type: 'text', id: this.element.id } });
6910
+ }
6911
+ else {
6912
+ this.inputEle = this.createElement('input', { attrs: { role: 'textbox', type: 'text' } });
6913
+ }
6900
6914
  this.element.parentElement.insertBefore(this.inputEle, this.element);
6901
6915
  }
6902
6916
  this.inputObj = Input.createInput({
@@ -8196,10 +8210,9 @@ let DropDownTree = class DropDownTree extends Component {
8196
8210
  this.popupObj.refreshPosition();
8197
8211
  if (!(this.showCheckBox && this.showSelectAll) && (!this.popupDiv.classList.contains(NODATA)
8198
8212
  && this.treeItems.length > 0)) {
8199
- let focusedElement;
8200
- if (this.value != null && this.text != null) {
8213
+ let focusedElement = this.value != null && this.text != null ? this.treeObj.element.querySelector('[data-uid="' + this.value[0] + '"]') : null;
8214
+ if (focusedElement) {
8201
8215
  this.treeObj.element.querySelector('li').setAttribute('tabindex', '-1');
8202
- focusedElement = this.treeObj.element.querySelector('[data-uid="' + this.value[0] + '"]');
8203
8216
  focusedElement.setAttribute('tabindex', '0');
8204
8217
  }
8205
8218
  else {
@@ -12118,6 +12131,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
12118
12131
  this.isCustomRendered = true;
12119
12132
  this.remoteCustomValue = this.enableVirtualization ? false : this.remoteCustomValue;
12120
12133
  }
12134
+ if (this.mode === 'CheckBox' && this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy) && !isNullOrUndefined(this.fields.disabled)) {
12135
+ this.disableGroupHeader();
12136
+ }
12121
12137
  if (this.dataSource instanceof DataManager && this.mode === 'CheckBox' && this.allowFiltering) {
12122
12138
  this.removeFocus();
12123
12139
  }
@@ -12281,9 +12297,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
12281
12297
  return (!isNullOrUndefined(liElement) ? liElement : this.liCollections[0]);
12282
12298
  }
12283
12299
  checkSelectAll() {
12284
- const groupItemLength = this.list.querySelectorAll('li.e-list-group-item.e-active').length;
12300
+ const 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;
12285
12301
  const listItem = this.list.querySelectorAll('li.e-list-item');
12286
- const searchCount = this.enableVirtualization ? this.list.querySelectorAll('li.' + dropDownBaseClasses.li + ':not(.e-virtual-list)').length : this.list.querySelectorAll('li.' + dropDownBaseClasses.li).length;
12302
+ const 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;
12287
12303
  let searchActiveCount = this.list.querySelectorAll('li.' + dropDownBaseClasses.selected).length;
12288
12304
  if (this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy)) {
12289
12305
  searchActiveCount = searchActiveCount - groupItemLength;
@@ -13663,7 +13679,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13663
13679
  }
13664
13680
  const focusedLi = this.list ? this.list.querySelector('.e-item-focus') : null;
13665
13681
  if (this.isDisabledElement(focusedLi)) {
13666
- if (this.list.querySelectorAll('.e-list-item:not(.e-hide-listitem):not(.e-disabled)').length === 0) {
13682
+ 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'))) {
13667
13683
  this.removeFocus();
13668
13684
  return;
13669
13685
  }
@@ -14062,9 +14078,17 @@ let MultiSelect = class MultiSelect extends DropDownBase {
14062
14078
  checkMaxSelection() {
14063
14079
  const limit = this.value && this.value.length ? this.value.length : 0;
14064
14080
  if (limit === this.maximumSelectionLength) {
14065
- const collection = this.list.querySelectorAll('li.'
14081
+ const activeItems = this.list.querySelectorAll('li.'
14082
+ + dropDownBaseClasses.li + '.e-active');
14083
+ removeClass(activeItems, 'e-disable');
14084
+ const inactiveItems = this.list.querySelectorAll('li.'
14066
14085
  + dropDownBaseClasses.li + ':not(.e-active)');
14067
- addClass(collection, 'e-disable');
14086
+ addClass(inactiveItems, 'e-disable');
14087
+ }
14088
+ if (limit < this.maximumSelectionLength) {
14089
+ const collection = this.list.querySelectorAll('li.'
14090
+ + dropDownBaseClasses.li);
14091
+ removeClass(collection, 'e-disable');
14068
14092
  }
14069
14093
  }
14070
14094
  dispatchSelect(value, eve, element, isNotTrigger, length) {
@@ -14617,7 +14641,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
14617
14641
  if (this.mode === 'CheckBox') {
14618
14642
  this.refreshPlaceHolder();
14619
14643
  this.refreshInputHight();
14620
- if (this.changeOnBlur && isClearAll && (isNullOrUndefined(this.value) || this.value.length === 0)) {
14644
+ if (!this.changeOnBlur && isClearAll && (isNullOrUndefined(this.value) || this.value.length === 0)) {
14621
14645
  this.updateValueState(e, this.value, this.tempValues);
14622
14646
  }
14623
14647
  }
@@ -15434,17 +15458,19 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15434
15458
  }
15435
15459
  findGroupAttrtibutes(listElement, checked, unChecked, count, position) {
15436
15460
  while (!listElement.classList.contains('e-list-group-item')) {
15437
- if (listElement.classList.contains('e-list-icon')) {
15438
- listElement = listElement.parentElement;
15439
- }
15440
- if (listElement.getElementsByClassName('e-frame')[0].classList.contains('e-check') &&
15441
- listElement.classList.contains('e-list-item')) {
15442
- checked++;
15443
- }
15444
- else if (listElement.classList.contains('e-list-item')) {
15445
- unChecked++;
15461
+ if (!(this.fields.disabled && this.isDisabledElement(listElement))) {
15462
+ if (listElement.classList.contains('e-list-icon')) {
15463
+ listElement = listElement.parentElement;
15464
+ }
15465
+ if (listElement.getElementsByClassName('e-frame')[0].classList.contains('e-check') &&
15466
+ listElement.classList.contains('e-list-item')) {
15467
+ checked++;
15468
+ }
15469
+ else if (listElement.classList.contains('e-list-item')) {
15470
+ unChecked++;
15471
+ }
15472
+ count++;
15446
15473
  }
15447
- count++;
15448
15474
  listElement = position ? listElement.nextElementSibling : listElement.previousElementSibling;
15449
15475
  if (listElement == null) {
15450
15476
  break;
@@ -15453,7 +15479,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15453
15479
  return [checked, unChecked, count];
15454
15480
  }
15455
15481
  updateCheckBox(groupHeader, checked, unChecked, count) {
15456
- if (groupHeader === null) {
15482
+ if (groupHeader === null || (!isNullOrUndefined(this.fields.disabled) && count === 0)) {
15457
15483
  return;
15458
15484
  }
15459
15485
  const checkBoxElement = groupHeader.getElementsByClassName('e-frame')[0];
@@ -15482,6 +15508,28 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15482
15508
  groupHeader.setAttribute('aria-selected', 'false');
15483
15509
  }
15484
15510
  }
15511
+ disableGroupHeader() {
15512
+ const collection = this.list.querySelectorAll('li.e-list-group-item');
15513
+ if (collection) {
15514
+ for (let index = 0; index < collection.length; index++) {
15515
+ let isDisabled = true;
15516
+ let target = collection[index].nextElementSibling;
15517
+ while (!target.classList.contains('e-list-group-item')) {
15518
+ if (!this.isDisabledElement(target)) {
15519
+ isDisabled = false;
15520
+ break;
15521
+ }
15522
+ target = target.nextElementSibling;
15523
+ if (target == null) {
15524
+ break;
15525
+ }
15526
+ }
15527
+ if (isDisabled) {
15528
+ this.disableListItem(collection[index]);
15529
+ }
15530
+ }
15531
+ }
15532
+ }
15485
15533
  deselectHeader() {
15486
15534
  const limit = this.value && this.value.length ? this.value.length : 0;
15487
15535
  const collection = this.list.querySelectorAll('li.e-list-group-item:not(.e-active)');
@@ -15855,22 +15903,24 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15855
15903
  return;
15856
15904
  }
15857
15905
  while (listElement.classList.contains('e-list-item')) {
15858
- if (state) {
15859
- if (!listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
15860
- let selectionLimit = this.value && this.value.length ? this.value.length : 0;
15861
- if (listElement.classList.contains('e-active')) {
15862
- selectionLimit -= 1;
15906
+ if (!(this.fields.disabled && this.isDisabledElement(listElement))) {
15907
+ if (state) {
15908
+ if (!listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
15909
+ let selectionLimit = this.value && this.value.length ? this.value.length : 0;
15910
+ if (listElement.classList.contains('e-active')) {
15911
+ selectionLimit -= 1;
15912
+ }
15913
+ if (selectionLimit < this.maximumSelectionLength) {
15914
+ this.updateListSelection(listElement, event);
15915
+ }
15863
15916
  }
15864
- if (selectionLimit < this.maximumSelectionLength) {
15917
+ }
15918
+ else {
15919
+ if (listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
15865
15920
  this.updateListSelection(listElement, event);
15866
15921
  }
15867
15922
  }
15868
15923
  }
15869
- else {
15870
- if (listElement.firstElementChild.lastElementChild.classList.contains('e-check')) {
15871
- this.updateListSelection(listElement, event);
15872
- }
15873
- }
15874
15924
  listElement = listElement.nextElementSibling;
15875
15925
  if (listElement == null) {
15876
15926
  break;
@@ -16170,7 +16220,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16170
16220
  }
16171
16221
  if (this.mode === 'CheckBox') {
16172
16222
  this.updateDelimView();
16173
- if (!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) {
16223
+ if ((!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) || (this.isSelectAll && this.isSelectAllTarget)) {
16174
16224
  this.updateDelimeter(this.delimiterChar, event);
16175
16225
  }
16176
16226
  this.refreshInputHight();
@@ -16722,7 +16772,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16722
16772
  * @returns {void}
16723
16773
  */
16724
16774
  render() {
16725
- if (!isNullOrUndefined(this.value)) {
16775
+ if (!isNullOrUndefined(this.value) && this.value.length > 0) {
16726
16776
  // eslint-disable-next-line
16727
16777
  this.value = [...this.value];
16728
16778
  }
@@ -17117,6 +17167,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
17117
17167
  this.removeDisabledItemsValue(this.value);
17118
17168
  this.updateVal(this.value, oldValue, 'value');
17119
17169
  }
17170
+ if (this.mode === 'CheckBox' && this.enableGroupCheckBox && !isNullOrUndefined(this.fields.groupBy)) {
17171
+ this.disableGroupHeader();
17172
+ }
17120
17173
  }
17121
17174
  }
17122
17175
  }
@@ -18582,11 +18635,9 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
18582
18635
  }
18583
18636
  }
18584
18637
  updateListItems(sourceElem, destElem) {
18585
- const i = 0;
18586
18638
  destElem.innerHTML = '';
18587
- while (i < sourceElem.childNodes.length) {
18588
- destElem.appendChild(sourceElem.childNodes[i]);
18589
- }
18639
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18640
+ destElem.append(...sourceElem.childNodes);
18590
18641
  }
18591
18642
  removeSelected(listObj, elems) {
18592
18643
  if (listObj.selectionSettings.showCheckbox) {
@@ -19215,8 +19266,13 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
19215
19266
  }
19216
19267
  getDataByElems(elems) {
19217
19268
  const data = [];
19218
- for (let i = 0, len = elems.length; i < len; i++) {
19219
- data.push(this.getDataByValue(this.getFormattedValue(elems[i].getAttribute('data-value'))));
19269
+ const len = elems.length;
19270
+ for (let i = 0; i < len; i++) {
19271
+ const elem = elems[i];
19272
+ const value = elem.getAttribute('data-value');
19273
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19274
+ const formattedValue = this.getFormattedValue(value);
19275
+ data.push(this.getDataByValue(formattedValue));
19220
19276
  }
19221
19277
  return data;
19222
19278
  }
@@ -19388,16 +19444,38 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
19388
19444
  fListBox.value = [];
19389
19445
  if (elems.length) {
19390
19446
  this.removeSelected(fListBox, elems);
19447
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19448
+ const ulChildren = Array.prototype.slice.call(fListBox.ulElement.children);
19449
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19450
+ const listItems = Array.prototype.slice.call(fListBox.ulElement.querySelectorAll('.e-list-item'));
19451
+ const lData = fListBox.listData;
19452
+ const sData = fListBox.sortedData;
19453
+ const jData = fListBox.jsonData;
19454
+ let eData;
19455
+ const listDataMap = {};
19456
+ if (elems.length > 199) {
19457
+ for (const item of fListBox.listData) {
19458
+ if (!isNullOrUndefined(item)) {
19459
+ const key = fListBox.getFormattedValue(getValue((fListBox.fields.value ? fListBox.fields.value : 'value'), item));
19460
+ listDataMap[key] = item;
19461
+ }
19462
+ }
19463
+ }
19391
19464
  elems.forEach((ele) => {
19392
- idx.push(Array.prototype.indexOf.call(fListBox.ulElement.children, ele)); // update sortable elem
19393
- // To update lb view data
19394
- dataLiIdx.push(Array.prototype.indexOf.call(fListBox.ulElement.querySelectorAll('.e-list-item'), ele));
19395
- // To update lb listdata data
19396
- dataIdx.push(Array.prototype.indexOf.call(fListBox.listData, fListBox.getDataByElems([ele])[0]));
19397
- // To update lb sorted data
19398
- sortIdx.push(Array.prototype.indexOf.call(fListBox.sortedData, fListBox.getDataByElems([ele])[0]));
19399
- // To update lb original data
19400
- jsonIdx.push(Array.prototype.indexOf.call(fListBox.jsonData, fListBox.getDataByElems([ele])[0]));
19465
+ if (elems.length < 200) {
19466
+ eData = fListBox.getDataByElems([ele])[0];
19467
+ }
19468
+ else {
19469
+ const value = ele.getAttribute('data-value');
19470
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19471
+ const formattedValue = fListBox.getFormattedValue(value);
19472
+ eData = listDataMap[formattedValue];
19473
+ }
19474
+ idx.push(ulChildren.indexOf(ele));
19475
+ dataLiIdx.push(listItems.indexOf(ele));
19476
+ dataIdx.push(lData.indexOf(eData));
19477
+ sortIdx.push(sData.indexOf(eData));
19478
+ jsonIdx.push(jData.indexOf(eData));
19401
19479
  });
19402
19480
  if (this.sortOrder !== 'None') {
19403
19481
  sortIdx.forEach((i) => {
@@ -19536,17 +19614,27 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
19536
19614
  // eslint-disable-next-line prefer-spread
19537
19615
  flistboxarray = Array.apply(null, { length: fListBox.ulElement.childElementCount }).map(Number.call, Number);
19538
19616
  }
19539
- for (let i = 0; i < fListBox.ulElement.childElementCount; i++) {
19540
- if (fListBox.ulElement.childNodes[i].classList.contains('e-disabled')) {
19541
- // eslint-disable-next-line @typescript-eslint/tslint/config
19542
- flistboxarray = flistboxarray.filter(function (item) { return item !== i; });
19543
- tempLiColl.push(fListBox.ulElement.childNodes[i]);
19617
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19618
+ const childNodes = fListBox.ulElement.childNodes;
19619
+ const childElementCount = fListBox.ulElement.childElementCount;
19620
+ const newFlistboxArray = [];
19621
+ for (let i = 0; i < childElementCount; i++) {
19622
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19623
+ const childNode = childNodes[i];
19624
+ if (childNode.classList.contains('e-disabled')) {
19625
+ tempLiColl.push(childNode);
19544
19626
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
19545
19627
  tempData.push(fListBox.listData[i]);
19546
19628
  }
19629
+ else {
19630
+ newFlistboxArray.push(i);
19631
+ }
19632
+ }
19633
+ flistboxarray = newFlistboxArray;
19634
+ if (!isRefresh) {
19635
+ moveTo(fListBox.ulElement, tListBox.ulElement, flistboxarray, index);
19636
+ fListBox.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
19547
19637
  }
19548
- moveTo(fListBox.ulElement, tListBox.ulElement, flistboxarray, index);
19549
- this.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
19550
19638
  if (isKey) {
19551
19639
  this.list.focus();
19552
19640
  }
@@ -19602,7 +19690,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
19602
19690
  if (isRefresh) {
19603
19691
  const sourceElem = tListBox.renderItems(listData, tListBox.fields);
19604
19692
  tListBox.updateListItems(sourceElem, tListBox.ulElement);
19605
- this.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
19693
+ fListBox.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
19606
19694
  }
19607
19695
  else {
19608
19696
  tListBox.sortedData = listData;
@@ -19889,11 +19977,13 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
19889
19977
  }
19890
19978
  }
19891
19979
  resizeHandler() {
19892
- if (this.list.scrollWidth > this.list.offsetWidth) {
19893
- this.list.querySelector('.e-list-parent').style.display = 'inline-block';
19894
- }
19895
- else {
19896
- this.list.querySelector('.e-list-parent').style.display = 'block';
19980
+ if (this.list && !(this.cssClass && this.cssClass.indexOf('e-horizontal-listbox') > -1)) {
19981
+ if (this.list.scrollWidth > this.list.offsetWidth) {
19982
+ this.list.querySelector('.e-list-parent').style.display = 'inline-block';
19983
+ }
19984
+ else {
19985
+ this.list.querySelector('.e-list-parent').style.display = 'block';
19986
+ }
19897
19987
  }
19898
19988
  }
19899
19989
  getValidIndex(cli, index, keyCode) {
@@ -20029,6 +20119,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
20029
20119
  }
20030
20120
  checkDisabledState(inst) {
20031
20121
  if (isNullOrUndefined(inst.ulElement)) {
20122
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
20032
20123
  if (!isNullOrUndefined(this.dataSource) && isNullOrUndefined(this.dataSource.length)) {
20033
20124
  return false;
20034
20125
  }
@@ -21690,10 +21781,10 @@ let Mention = class Mention extends DropDownBase {
21690
21781
  }
21691
21782
  if (this.isContentEditable(this.inputElement)) {
21692
21783
  if (Browser.isAndroid) {
21693
- return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '');
21784
+ return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : ' ');
21694
21785
  }
21695
21786
  else {
21696
- return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '');
21787
+ return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : ' ');
21697
21788
  }
21698
21789
  }
21699
21790
  else {