@syncfusion/ej2-dropdowns 31.1.18 → 31.1.20

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 (75) 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 +15 -9
  5. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  6. package/dist/es6/ej2-dropdowns.es5.js +15 -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/combo-box/combo-box.js +6 -1
  13. package/src/drop-down-list/drop-down-list.js +4 -6
  14. package/src/mention/mention.js +5 -2
  15. package/styles/auto-complete/bootstrap4.css +8 -0
  16. package/styles/bds-lite.css +0 -1
  17. package/styles/bds.css +0 -1
  18. package/styles/bootstrap-dark-lite.css +0 -1
  19. package/styles/bootstrap-dark.css +0 -1
  20. package/styles/bootstrap-lite.css +0 -1
  21. package/styles/bootstrap.css +0 -1
  22. package/styles/bootstrap4-lite.css +8 -1
  23. package/styles/bootstrap4.css +10 -3
  24. package/styles/bootstrap5-dark-lite.css +0 -1
  25. package/styles/bootstrap5-dark.css +0 -1
  26. package/styles/bootstrap5-lite.css +0 -1
  27. package/styles/bootstrap5.3-lite.css +0 -1
  28. package/styles/bootstrap5.3.css +1 -2
  29. package/styles/bootstrap5.css +0 -1
  30. package/styles/combo-box/bootstrap4.css +8 -0
  31. package/styles/drop-down-base/_fluent2-definition.scss +2 -2
  32. package/styles/drop-down-base/fluent2.css +4 -4
  33. package/styles/drop-down-list/_bootstrap4-definition.scss +8 -0
  34. package/styles/drop-down-list/bootstrap4.css +8 -0
  35. package/styles/drop-down-tree/_bigger.scss +8 -2
  36. package/styles/drop-down-tree/_layout.scss +12 -0
  37. package/styles/drop-down-tree/bds.css +0 -1
  38. package/styles/drop-down-tree/bootstrap-dark.css +0 -1
  39. package/styles/drop-down-tree/bootstrap.css +0 -1
  40. package/styles/drop-down-tree/bootstrap4.css +0 -1
  41. package/styles/drop-down-tree/bootstrap5-dark.css +0 -1
  42. package/styles/drop-down-tree/bootstrap5.3.css +1 -2
  43. package/styles/drop-down-tree/bootstrap5.css +0 -1
  44. package/styles/drop-down-tree/fabric-dark.css +0 -1
  45. package/styles/drop-down-tree/fabric.css +0 -1
  46. package/styles/drop-down-tree/fluent-dark.css +0 -1
  47. package/styles/drop-down-tree/fluent.css +0 -1
  48. package/styles/drop-down-tree/fluent2.css +5 -1
  49. package/styles/drop-down-tree/highcontrast-light.css +0 -1
  50. package/styles/drop-down-tree/highcontrast.css +0 -1
  51. package/styles/drop-down-tree/tailwind-dark.css +0 -1
  52. package/styles/drop-down-tree/tailwind.css +0 -1
  53. package/styles/drop-down-tree/tailwind3.css +0 -1
  54. package/styles/fabric-dark-lite.css +0 -1
  55. package/styles/fabric-dark.css +0 -1
  56. package/styles/fabric-lite.css +0 -1
  57. package/styles/fabric.css +0 -1
  58. package/styles/fluent-dark-lite.css +0 -1
  59. package/styles/fluent-dark.css +0 -1
  60. package/styles/fluent-lite.css +0 -1
  61. package/styles/fluent.css +0 -1
  62. package/styles/fluent2-lite.css +6 -2
  63. package/styles/fluent2.css +9 -5
  64. package/styles/highcontrast-light-lite.css +0 -1
  65. package/styles/highcontrast-light.css +0 -1
  66. package/styles/highcontrast-lite.css +0 -1
  67. package/styles/highcontrast.css +0 -1
  68. package/styles/multi-select/_bigger.scss +2 -2
  69. package/styles/multi-select/bootstrap4.css +2 -2
  70. package/styles/tailwind-dark-lite.css +0 -1
  71. package/styles/tailwind-dark.css +0 -1
  72. package/styles/tailwind-lite.css +0 -1
  73. package/styles/tailwind.css +0 -1
  74. package/styles/tailwind3-lite.css +0 -1
  75. package/styles/tailwind3.css +0 -1
@@ -5701,8 +5701,8 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
5701
5701
  this.removeFocus();
5702
5702
  if (this.allowFiltering && this.actionCompleteData && this.actionCompleteData.ulElement &&
5703
5703
  this.dataSource instanceof DataManager) {
5704
- var focus_1 = this.actionCompleteData.ulElement.querySelector('.e-item-focus');
5705
- if (focus_1) {
5704
+ var focus_1 = this.actionCompleteData.ulElement.querySelectorAll('.' + dropDownListClasses.focus);
5705
+ if (focus_1 && focus_1.length) {
5706
5706
  removeClass(focus_1, dropDownListClasses.focus);
5707
5707
  }
5708
5708
  }
@@ -5898,7 +5898,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
5898
5898
  setTimeout(function () {
5899
5899
  if (_this.value || _this.list.querySelector('.e-active')) {
5900
5900
  _this.updateSelectionList();
5901
- if (_this.selectedValueInfo && _this.viewPortInfo && _this.viewPortInfo.offsets.top) {
5901
+ if (_this.viewPortInfo && _this.viewPortInfo.offsets.top) {
5902
5902
  _this.list.scrollTop = _this.viewPortInfo.offsets.top;
5903
5903
  }
5904
5904
  else {
@@ -6481,9 +6481,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
6481
6481
  }
6482
6482
  var dataSourceCount;
6483
6483
  if (this.dataSource instanceof DataManager) {
6484
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
6485
- dataSourceCount = this.virtualGroupDataSource && this.virtualGroupDataSource.length ?
6486
- this.virtualGroupDataSource.length : 0;
6484
+ dataSourceCount = this.remoteDataCount;
6487
6485
  }
6488
6486
  else {
6489
6487
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -11496,6 +11494,11 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
11496
11494
  _this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
11497
11495
  }
11498
11496
  }
11497
+ else if (_this.allowCustom) {
11498
+ _this.valueMuteChange(_this.value);
11499
+ _this.setHiddenValue();
11500
+ Input.setValue(_this.text, _this.inputElement, _this.floatLabelType, _this.showClearButton);
11501
+ }
11499
11502
  else {
11500
11503
  _this.valueMuteChange(null);
11501
11504
  }
@@ -11524,7 +11527,7 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
11524
11527
  this.setSelection(li, null);
11525
11528
  }
11526
11529
  else if ((!this.enableVirtualization && this.allowCustom) ||
11527
- (this.allowCustom && this.enableVirtualization && !doesItemExist)) {
11530
+ (this.allowCustom && this.enableVirtualization && !doesItemExist && !(this.dataSource instanceof DataManager))) {
11528
11531
  this.valueMuteChange(this.value);
11529
11532
  }
11530
11533
  else if (!this.enableVirtualization || (this.enableVirtualization && !(this.dataSource instanceof DataManager)
@@ -23439,7 +23442,9 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
23439
23442
  }
23440
23443
  if (this.isContentEditable(this.inputElement)) {
23441
23444
  this.range = this.getCurrentRange();
23442
- rangetextContent = this.range.startContainer.textContent.split('');
23445
+ if (this.range) {
23446
+ rangetextContent = this.range.startContainer.textContent.split('');
23447
+ }
23443
23448
  }
23444
23449
  var currentRange = this.getTextRange();
23445
23450
  // eslint-disable-next-line security/detect-non-literal-regexp
@@ -23554,7 +23559,8 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
23554
23559
  return isMatched;
23555
23560
  };
23556
23561
  Mention.prototype.getCurrentRange = function () {
23557
- this.range = this.inputElement.ownerDocument.getSelection().getRangeAt(0);
23562
+ this.range = this.inputElement.ownerDocument.getSelection().rangeCount > 0 &&
23563
+ this.inputElement.ownerDocument.getSelection().getRangeAt(0);
23558
23564
  return this.range;
23559
23565
  };
23560
23566
  Mention.prototype.performFiltering = function (e) {