@syncfusion/ej2-dropdowns 26.1.39 → 26.1.41

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 (62) 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 +25 -7
  5. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  6. package/dist/es6/ej2-dropdowns.es5.js +25 -7
  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 +9 -9
  12. package/src/auto-complete/auto-complete.js +1 -0
  13. package/src/drop-down-base/drop-down-base.d.ts +1 -1
  14. package/src/drop-down-list/drop-down-list.js +9 -6
  15. package/src/drop-down-tree/drop-down-tree.js +7 -0
  16. package/src/list-box/list-box.js +6 -0
  17. package/src/mention/mention.js +1 -1
  18. package/src/multi-select/multi-select.js +1 -0
  19. package/styles/bootstrap-dark.css +1 -1
  20. package/styles/bootstrap.css +1 -1
  21. package/styles/bootstrap4.css +1 -1
  22. package/styles/bootstrap5-dark.css +1 -1
  23. package/styles/bootstrap5.css +1 -1
  24. package/styles/drop-down-tree/_layout.scss +1 -1
  25. package/styles/drop-down-tree/bootstrap-dark.css +1 -1
  26. package/styles/drop-down-tree/bootstrap.css +1 -1
  27. package/styles/drop-down-tree/bootstrap4.css +1 -1
  28. package/styles/drop-down-tree/bootstrap5-dark.css +1 -1
  29. package/styles/drop-down-tree/bootstrap5.css +1 -1
  30. package/styles/drop-down-tree/fabric-dark.css +1 -1
  31. package/styles/drop-down-tree/fabric.css +1 -1
  32. package/styles/drop-down-tree/fluent-dark.css +1 -1
  33. package/styles/drop-down-tree/fluent.css +1 -1
  34. package/styles/drop-down-tree/fluent2.css +1 -1
  35. package/styles/drop-down-tree/highcontrast-light.css +1 -1
  36. package/styles/drop-down-tree/highcontrast.css +1 -1
  37. package/styles/drop-down-tree/material-dark.css +1 -1
  38. package/styles/drop-down-tree/material.css +1 -1
  39. package/styles/drop-down-tree/material3-dark.css +1 -1
  40. package/styles/drop-down-tree/material3.css +1 -1
  41. package/styles/drop-down-tree/tailwind-dark.css +1 -1
  42. package/styles/drop-down-tree/tailwind.css +1 -1
  43. package/styles/fabric-dark.css +1 -1
  44. package/styles/fabric.css +1 -1
  45. package/styles/fluent-dark.css +1 -1
  46. package/styles/fluent.css +1 -1
  47. package/styles/fluent2.css +8 -7
  48. package/styles/highcontrast-light.css +1 -1
  49. package/styles/highcontrast.css +1 -1
  50. package/styles/list-box/_fluent2-definition.scss +4 -6
  51. package/styles/list-box/fluent2.css +5 -5
  52. package/styles/material-dark.css +1 -1
  53. package/styles/material.css +1 -1
  54. package/styles/material3-dark.css +1 -1
  55. package/styles/material3.css +1 -1
  56. package/styles/multi-select/_fluent2-definition.scss +2 -1
  57. package/styles/multi-select/_theme.scss +3 -0
  58. package/styles/multi-select/fluent2.css +2 -1
  59. package/styles/tailwind-dark.css +1 -1
  60. package/styles/tailwind.css +1 -1
  61. package/.eslintrc.json +0 -261
  62. package/tslint.json +0 -111
@@ -4466,6 +4466,7 @@ let DropDownList = class DropDownList extends DropDownBase {
4466
4466
  this.isDataFetched = false;
4467
4467
  if (this.isFiltering()) {
4468
4468
  this.checkAndResetCache();
4469
+ this.isRequesting = false;
4469
4470
  const eventArgs = {
4470
4471
  preventDefaultAction: false,
4471
4472
  text: this.filterInput.value,
@@ -6493,12 +6494,14 @@ let DropDownList = class DropDownList extends DropDownBase {
6493
6494
  Input.setValue('', this.inputElement, this.floatLabelType, this.showClearButton);
6494
6495
  }
6495
6496
  this.element.style.display = 'block';
6496
- if (this.inputWrapper.container.parentElement.tagName === this.getNgDirective()) {
6497
- detach(this.inputWrapper.container);
6498
- }
6499
- else {
6500
- this.inputWrapper.container.parentElement.insertBefore(this.element, this.inputWrapper.container);
6501
- detach(this.inputWrapper.container);
6497
+ if (this.inputWrapper.container && this.inputWrapper.container.parentElement) {
6498
+ if (this.inputWrapper.container.parentElement.tagName === this.getNgDirective()) {
6499
+ detach(this.inputWrapper.container);
6500
+ }
6501
+ else {
6502
+ this.inputWrapper.container.parentElement.insertBefore(this.element, this.inputWrapper.container);
6503
+ detach(this.inputWrapper.container);
6504
+ }
6502
6505
  }
6503
6506
  delete this.hiddenElement;
6504
6507
  this.filterInput = null;
@@ -7037,6 +7040,7 @@ let DropDownTree = class DropDownTree extends Component {
7037
7040
  this.isFilteredData = false;
7038
7041
  this.isFilterRestore = true;
7039
7042
  fields = this.cloneFields(this.fields);
7043
+ this.treeObj.element.classList.remove('e-filtering');
7040
7044
  }
7041
7045
  else if (args.preventDefaultAction) {
7042
7046
  fields = args.fields;
@@ -7057,6 +7061,7 @@ let DropDownTree = class DropDownTree extends Component {
7057
7061
  fields = this.nestedFilter(args.text, args.fields);
7058
7062
  }
7059
7063
  }
7064
+ this.treeObj.element.classList.add('e-filtering');
7060
7065
  }
7061
7066
  this.hideCheckAll(this.isFilteredData);
7062
7067
  if (flag) {
@@ -8123,6 +8128,7 @@ let DropDownTree = class DropDownTree extends Component {
8123
8128
  /* To render the popup element */
8124
8129
  renderPopup() {
8125
8130
  if (this.isFilteredData) {
8131
+ this.treeObj.element.classList.remove('e-filtering');
8126
8132
  this.filterObj.value = '';
8127
8133
  this.treeObj.fields = this.getTreeFields(this.fields);
8128
8134
  this.isFilterRestore = true;
@@ -8654,6 +8660,10 @@ let DropDownTree = class DropDownTree extends Component {
8654
8660
  this.isReverseUpdate = false;
8655
8661
  }
8656
8662
  }
8663
+ if (this.isValueChange && !this.changeOnBlur) {
8664
+ this.triggerChangeEvent(this.keyEventArgs);
8665
+ this.isValueChange = false;
8666
+ }
8657
8667
  }
8658
8668
  beforeCheck(args) {
8659
8669
  if (args.isInteracted) {
@@ -11064,6 +11074,7 @@ let AutoComplete = class AutoComplete extends ComboBox {
11064
11074
  }
11065
11075
  this.isSelected = false;
11066
11076
  this.activeIndex = null;
11077
+ this.isRequesting = false;
11067
11078
  const eventArgs = {
11068
11079
  preventDefaultAction: false,
11069
11080
  text: this.filterInput.value,
@@ -14691,6 +14702,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
14691
14702
  this.isRemoteSelection = true;
14692
14703
  }
14693
14704
  this.checkAndResetCache();
14705
+ this.isRequesting = false;
14694
14706
  const eventArgs = {
14695
14707
  preventDefaultAction: false,
14696
14708
  text: this.targetElement(),
@@ -17972,6 +17984,9 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
17972
17984
  */
17973
17985
  addItem(items, itemIndex) {
17974
17986
  super.addItem(items, itemIndex);
17987
+ if (this.allowFiltering && this.filterInput.value !== '') {
17988
+ this.filteringAction(this.jsonData, new Query(), this.fields);
17989
+ }
17975
17990
  }
17976
17991
  /**
17977
17992
  * Build and render the component.
@@ -18699,6 +18714,9 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
18699
18714
  */
18700
18715
  addItems(items, itemIndex) {
18701
18716
  super.addItem(items, itemIndex);
18717
+ if (this.allowFiltering && this.filterInput.value !== '') {
18718
+ this.filteringAction(this.jsonData, new Query(), this.fields);
18719
+ }
18702
18720
  }
18703
18721
  /**
18704
18722
  * Removes a item from the list. By default, removed the last item in the list,
@@ -20721,7 +20739,7 @@ let Mention = class Mention extends DropDownBase {
20721
20739
  }
20722
20740
  this.isTyped = e.code !== 'Enter' && e.code !== 'Space' && e.code !== 'ArrowDown' && e.code !== 'ArrowUp' ? true : false;
20723
20741
  const isRteImage = document.activeElement.parentElement && document.activeElement.parentElement.querySelector('.e-rte-image') ? true : false;
20724
- if (document.activeElement != this.inputElement && isRteImage) {
20742
+ if (document.activeElement != this.inputElement && !isRteImage) {
20725
20743
  this.inputElement.focus();
20726
20744
  }
20727
20745
  if (this.isContentEditable(this.inputElement)) {