@syncfusion/ej2-dropdowns 28.2.6 → 28.2.7

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 (98) hide show
  1. package/dist/ej2-dropdowns.min.js +2 -2
  2. package/dist/ej2-dropdowns.umd.min.js +2 -2
  3. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-dropdowns.es2015.js +26 -9
  5. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  6. package/dist/es6/ej2-dropdowns.es5.js +26 -9
  7. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  8. package/dist/global/ej2-dropdowns.min.js +2 -2
  9. package/dist/global/ej2-dropdowns.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +5 -5
  12. package/src/drop-down-tree/drop-down-tree.js +10 -2
  13. package/src/mention/mention.js +3 -2
  14. package/src/multi-select/multi-select.d.ts +1 -0
  15. package/src/multi-select/multi-select.js +13 -5
  16. package/styles/bds-lite.css +9 -2
  17. package/styles/bds.css +19 -4
  18. package/styles/bootstrap-dark-lite.css +7 -0
  19. package/styles/bootstrap-dark.css +22 -0
  20. package/styles/bootstrap-lite.css +7 -0
  21. package/styles/bootstrap.css +22 -0
  22. package/styles/bootstrap4-lite.css +8 -1
  23. package/styles/bootstrap4.css +24 -2
  24. package/styles/bootstrap5-dark-lite.css +8 -1
  25. package/styles/bootstrap5-dark.css +17 -2
  26. package/styles/bootstrap5-lite.css +8 -1
  27. package/styles/bootstrap5.3-lite.css +8 -1
  28. package/styles/bootstrap5.3.css +24 -2
  29. package/styles/bootstrap5.css +17 -2
  30. package/styles/drop-down-tree/_bds-definition.scss +12 -3
  31. package/styles/drop-down-tree/_bigger.scss +12 -12
  32. package/styles/drop-down-tree/_bootstrap-dark-definition.scss +9 -0
  33. package/styles/drop-down-tree/_bootstrap-definition.scss +10 -1
  34. package/styles/drop-down-tree/_bootstrap4-definition.scss +12 -3
  35. package/styles/drop-down-tree/_bootstrap5-definition.scss +10 -2
  36. package/styles/drop-down-tree/_bootstrap5.3-definition.scss +10 -2
  37. package/styles/drop-down-tree/_fabric-dark-definition.scss +9 -0
  38. package/styles/drop-down-tree/_fabric-definition.scss +9 -0
  39. package/styles/drop-down-tree/_fluent-definition.scss +10 -2
  40. package/styles/drop-down-tree/_fluent2-definition.scss +12 -3
  41. package/styles/drop-down-tree/_fusionnew-definition.scss +9 -0
  42. package/styles/drop-down-tree/_highcontrast-definition.scss +10 -1
  43. package/styles/drop-down-tree/_highcontrast-light-definition.scss +9 -0
  44. package/styles/drop-down-tree/_layout.scss +9 -5
  45. package/styles/drop-down-tree/_material-dark-definition.scss +10 -1
  46. package/styles/drop-down-tree/_material-definition.scss +10 -1
  47. package/styles/drop-down-tree/_material3-definition.scss +11 -2
  48. package/styles/drop-down-tree/_tailwind-definition.scss +11 -3
  49. package/styles/drop-down-tree/_tailwind3-definition.scss +9 -1
  50. package/styles/drop-down-tree/bds.css +19 -4
  51. package/styles/drop-down-tree/bootstrap-dark.css +22 -0
  52. package/styles/drop-down-tree/bootstrap.css +22 -0
  53. package/styles/drop-down-tree/bootstrap4.css +24 -2
  54. package/styles/drop-down-tree/bootstrap5-dark.css +17 -2
  55. package/styles/drop-down-tree/bootstrap5.3.css +24 -2
  56. package/styles/drop-down-tree/bootstrap5.css +17 -2
  57. package/styles/drop-down-tree/fabric-dark.css +22 -0
  58. package/styles/drop-down-tree/fabric.css +22 -0
  59. package/styles/drop-down-tree/fluent-dark.css +17 -2
  60. package/styles/drop-down-tree/fluent.css +17 -2
  61. package/styles/drop-down-tree/fluent2.css +25 -3
  62. package/styles/drop-down-tree/highcontrast-light.css +22 -0
  63. package/styles/drop-down-tree/highcontrast.css +23 -1
  64. package/styles/drop-down-tree/material-dark.css +22 -0
  65. package/styles/drop-down-tree/material.css +23 -1
  66. package/styles/drop-down-tree/material3-dark.css +24 -2
  67. package/styles/drop-down-tree/material3.css +24 -2
  68. package/styles/drop-down-tree/tailwind-dark.css +19 -4
  69. package/styles/drop-down-tree/tailwind.css +19 -4
  70. package/styles/drop-down-tree/tailwind3.css +22 -1
  71. package/styles/fabric-dark-lite.css +7 -0
  72. package/styles/fabric-dark.css +22 -0
  73. package/styles/fabric-lite.css +7 -0
  74. package/styles/fabric.css +22 -0
  75. package/styles/fluent-dark-lite.css +8 -1
  76. package/styles/fluent-dark.css +17 -2
  77. package/styles/fluent-lite.css +8 -1
  78. package/styles/fluent.css +17 -2
  79. package/styles/fluent2-lite.css +9 -2
  80. package/styles/fluent2.css +25 -3
  81. package/styles/highcontrast-light-lite.css +7 -0
  82. package/styles/highcontrast-light.css +22 -0
  83. package/styles/highcontrast-lite.css +8 -1
  84. package/styles/highcontrast.css +23 -1
  85. package/styles/material-dark-lite.css +7 -0
  86. package/styles/material-dark.css +22 -0
  87. package/styles/material-lite.css +8 -1
  88. package/styles/material.css +23 -1
  89. package/styles/material3-dark-lite.css +8 -1
  90. package/styles/material3-dark.css +24 -2
  91. package/styles/material3-lite.css +8 -1
  92. package/styles/material3.css +24 -2
  93. package/styles/tailwind-dark-lite.css +9 -2
  94. package/styles/tailwind-dark.css +19 -4
  95. package/styles/tailwind-lite.css +9 -2
  96. package/styles/tailwind.css +19 -4
  97. package/styles/tailwind3-lite.css +6 -0
  98. package/styles/tailwind3.css +22 -1
@@ -9075,6 +9075,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
9075
9075
  _this.updateFocus(focusedElement);
9076
9076
  }
9077
9077
  if (_this.allowFiltering) {
9078
+ var focusedElement = _this.treeObj.element.querySelector('li.e-node-focus');
9079
+ if (!isNullOrUndefined(focusedElement)) {
9080
+ removeClass([focusedElement], 'e-node-focus');
9081
+ }
9078
9082
  removeClass([_this.inputWrapper], [INPUTFOCUS]);
9079
9083
  _this.filterObj.element.focus();
9080
9084
  }
@@ -9934,7 +9938,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
9934
9938
  this.chipCollection.appendChild(chip);
9935
9939
  if (this.showClearButton) {
9936
9940
  chip.appendChild(chipClose);
9937
- EventHandler.add(chipClose, 'mousedown', this.removeChip, this);
9941
+ EventHandler.add(chipClose, 'mouseup', this.removeChip, this);
9938
9942
  }
9939
9943
  };
9940
9944
  DropDownTree.prototype.setTagValues = function () {
@@ -10067,6 +10071,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
10067
10071
  if (!this.enabled || this.readonly) {
10068
10072
  return;
10069
10073
  }
10074
+ if (e.target.classList.contains('e-chips-close') && !this.isPopupOpen) {
10075
+ e.stopPropagation();
10076
+ e.preventDefault();
10077
+ }
10070
10078
  var element = e.target.parentElement;
10071
10079
  var value = element.getAttribute('data-value');
10072
10080
  if (this.chipCollection) {
@@ -10626,7 +10634,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
10626
10634
  var chipsIcons = selectAll('.e-chips-close', this.chipCollection);
10627
10635
  for (var _i = 0, chipsIcons_1 = chipsIcons; _i < chipsIcons_1.length; _i++) {
10628
10636
  var element = chipsIcons_1[_i];
10629
- EventHandler.remove(element, 'mousedown', this.removeChip);
10637
+ EventHandler.remove(element, 'mouseup', this.removeChip);
10630
10638
  }
10631
10639
  }
10632
10640
  this.chipWrapper = null;
@@ -12796,6 +12804,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12796
12804
  _this.isBlurDispatching = false;
12797
12805
  _this.isFilterPrevented = false;
12798
12806
  _this.isFilteringAction = false;
12807
+ _this.isVirtualReorder = false;
12799
12808
  _this.isValidKey = false;
12800
12809
  _this.selectAllEventData = [];
12801
12810
  _this.selectAllEventEle = [];
@@ -12993,12 +13002,14 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12993
13002
  };
12994
13003
  MultiSelect.prototype.updateVirtualReOrderList = function (isCheckBoxUpdate) {
12995
13004
  var query = this.getForQuery(this.value, true).clone();
13005
+ this.isVirtualReorder = true;
12996
13006
  if (this.enableVirtualization && this.dataSource instanceof DataManager) {
12997
13007
  this.resetList(this.selectedListData, this.fields, query);
12998
13008
  }
12999
13009
  else {
13000
13010
  this.resetList(this.dataSource, this.fields, query);
13001
13011
  }
13012
+ this.isVirtualReorder = false;
13002
13013
  this.UpdateSkeleton();
13003
13014
  this.liCollections = this.list.querySelectorAll('.' + dropDownBaseClasses.li);
13004
13015
  this.virtualItemCount = this.itemCount;
@@ -13207,10 +13218,14 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
13207
13218
  var field = this.isPrimitiveData ? '' : this.fields.value;
13208
13219
  if (this.enableVirtualization && valuecheck) {
13209
13220
  if (isCheckbox) {
13210
- for (var i = 0; i < valuecheck.length; i++) {
13221
+ var startindex = this.viewPortInfo.startIndex;
13222
+ var endindex = (((startindex + this.viewPortInfo.endIndex) <= (valuecheck.length)) &&
13223
+ valuecheck[(startindex + this.viewPortInfo.endIndex)]) ? (startindex + this.viewPortInfo.endIndex)
13224
+ : (valuecheck.length);
13225
+ for (var i = startindex; i < endindex; i++) {
13211
13226
  var value = this.allowObjectBinding ? getValue((this.fields.value) ?
13212
13227
  this.fields.value : '', valuecheck[i]) : valuecheck[i];
13213
- if (i === 0) {
13228
+ if (i === startindex) {
13214
13229
  predicate = new Predicate(field, 'equal', (value));
13215
13230
  }
13216
13231
  else {
@@ -13638,7 +13653,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
13638
13653
  }
13639
13654
  }
13640
13655
  }
13641
- if ((this.allowFiltering && isSkip) || !isReOrder || (!this.allowFiltering && isSkip)) {
13656
+ if ((this.allowFiltering && isSkip) || !isReOrder || (!this.allowFiltering && isSkip) && !this.isVirtualReorder) {
13642
13657
  if (!isReOrder) {
13643
13658
  filterQuery.skip(this.viewPortInfo.startIndex);
13644
13659
  }
@@ -16354,7 +16369,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
16354
16369
  }
16355
16370
  else {
16356
16371
  temp = isInitialVirtualData && delim ? this_1.text : this_1.getTextByValue(value);
16357
- var textValues = this_1.isDynamicRemoteVirtualData && value != null && value !== '' ? this_1.getTextByValue(value) : isInitialVirtualData ? this_1.text : (this_1.text && this_1.text !== '' ? this_1.text + this_1.delimiterChar + temp : temp);
16372
+ var textValues = this_1.isDynamicRemoteVirtualData && value != null && value !== '' && !isInitialVirtualData ?
16373
+ this_1.getTextByValue(value) : isInitialVirtualData ? this_1.text : (this_1.text && this_1.text !== '' ? this_1.text + this_1.delimiterChar + temp : temp);
16358
16374
  data += temp + delimiterChar + ' ';
16359
16375
  text.push(textValues);
16360
16376
  hiddenElementContent = this_1.hiddenElement.innerHTML;
@@ -16522,7 +16538,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
16522
16538
  (this.mode === 'Box' || this.mode === 'Default'))) ||
16523
16539
  (this.enableVirtualization && value != null && text != null && !isCustomData)) {
16524
16540
  var currentText = [];
16525
- var textValues = this.isDynamicRemoteVirtualData && text != null && text !== '' ? text : this.text != null && this.text !== '' && !this.text.includes(text) ? this.text + this.delimiterChar + text : text;
16541
+ var textValues = this.isDynamicRemoteVirtualData && text != null && text !== '' && index === 0 ? text : this.text != null && this.text !== '' && !this.text.includes(text) ? this.text + this.delimiterChar + text : text;
16526
16542
  currentText.push(textValues);
16527
16543
  this.setProperties({ text: currentText.toString() }, true);
16528
16544
  this.addChip(text, value);
@@ -23938,6 +23954,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
23938
23954
  this.range = this.getCurrentRange();
23939
23955
  }
23940
23956
  var currentRange = this.getTextRange();
23957
+ this.queryString = text;
23941
23958
  var lastWordRange = this.getLastLetter(currentRange);
23942
23959
  if ((this.ignoreCase && (text === lastWordRange || text === lastWordRange.toLowerCase()))
23943
23960
  || !this.ignoreCase && text === lastWordRange) {
@@ -23953,8 +23970,8 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
23953
23970
  this.renderList();
23954
23971
  this.renderPopup();
23955
23972
  }
23956
- else {
23957
- this.showPopup();
23973
+ else if (!this.isPopupOpen) {
23974
+ this.renderPopup();
23958
23975
  }
23959
23976
  this.popupObj.element.style.left = formatUnit(positionX);
23960
23977
  this.popupObj.element.style.top = formatUnit(positionY);