@syncfusion/ej2-navigations 20.1.58 → 20.1.60

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 (57) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/ej2-navigations.umd.min.js +2 -2
  3. package/dist/ej2-navigations.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-navigations.es2015.js +27 -5
  5. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es5.js +27 -5
  7. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  8. package/dist/global/ej2-navigations.min.js +2 -2
  9. package/dist/global/ej2-navigations.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +7 -7
  12. package/src/sidebar/sidebar.d.ts +1 -0
  13. package/src/sidebar/sidebar.js +6 -2
  14. package/src/treeview/treeview-model.d.ts +1 -1
  15. package/src/treeview/treeview.js +21 -2
  16. package/styles/bootstrap-dark.css +1 -2
  17. package/styles/bootstrap.css +4 -9
  18. package/styles/bootstrap4.css +3 -6
  19. package/styles/bootstrap5-dark.css +4 -7
  20. package/styles/bootstrap5.css +4 -7
  21. package/styles/carousel/bootstrap-dark.css +1 -2
  22. package/styles/carousel/bootstrap.css +1 -2
  23. package/styles/carousel/bootstrap4.css +1 -2
  24. package/styles/carousel/bootstrap5-dark.css +1 -2
  25. package/styles/carousel/bootstrap5.css +1 -2
  26. package/styles/carousel/fabric-dark.css +1 -2
  27. package/styles/carousel/fabric.css +1 -2
  28. package/styles/carousel/fluent-dark.css +1 -2
  29. package/styles/carousel/fluent.css +1 -2
  30. package/styles/carousel/highcontrast-light.css +1 -2
  31. package/styles/carousel/highcontrast.css +1 -2
  32. package/styles/carousel/material-dark.css +1 -2
  33. package/styles/carousel/material.css +1 -2
  34. package/styles/carousel/tailwind-dark.css +1 -2
  35. package/styles/carousel/tailwind.css +1 -2
  36. package/styles/fabric-dark.css +1 -2
  37. package/styles/fabric.css +1 -2
  38. package/styles/fluent-dark.css +1 -2
  39. package/styles/fluent.css +1 -2
  40. package/styles/highcontrast-light.css +1 -2
  41. package/styles/highcontrast.css +1 -2
  42. package/styles/material-dark.css +1 -2
  43. package/styles/material.css +1 -2
  44. package/styles/menu/bootstrap.css +1 -2
  45. package/styles/menu/bootstrap4.css +1 -2
  46. package/styles/tab/bootstrap.css +1 -2
  47. package/styles/tab/bootstrap5-dark.css +1 -2
  48. package/styles/tab/bootstrap5.css +1 -2
  49. package/styles/tailwind-dark.css +1 -2
  50. package/styles/tailwind.css +1 -2
  51. package/styles/toolbar/bootstrap.css +1 -3
  52. package/styles/toolbar/bootstrap4.css +1 -2
  53. package/styles/toolbar/bootstrap5-dark.css +1 -2
  54. package/styles/toolbar/bootstrap5.css +1 -2
  55. package/styles/treeview/_bootstrap5-definition.scss +1 -1
  56. package/styles/treeview/bootstrap5-dark.css +1 -1
  57. package/styles/treeview/bootstrap5.css +1 -1
@@ -13082,8 +13082,27 @@ let TreeView = TreeView_1 = class TreeView extends Component {
13082
13082
  dropUl = dropEle;
13083
13083
  }
13084
13084
  let refNode = dropUl.childNodes[index];
13085
- for (let i = 0; i < li.length; i++) {
13086
- dropUl.insertBefore(li[i], refNode);
13085
+ if (refNode || this.sortOrder === 'None') {
13086
+ for (let i = 0; i < li.length; i++) {
13087
+ dropUl.insertBefore(li[i], refNode);
13088
+ }
13089
+ }
13090
+ if (!refNode && ((this.sortOrder === 'Ascending') || (this.sortOrder === 'Descending'))) {
13091
+ let cNodes = dropUl.childNodes;
13092
+ for (let i = 0; i < li.length; i++) {
13093
+ for (let j = 0; j < cNodes.length; j++) {
13094
+ let returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
13095
+ if (returnValue) {
13096
+ refNode = cNodes[j];
13097
+ dropUl.insertBefore(li[i], refNode);
13098
+ break;
13099
+ }
13100
+ else {
13101
+ refNode = cNodes[cNodes.length];
13102
+ dropUl.insertBefore(li[i], refNode);
13103
+ }
13104
+ }
13105
+ }
13087
13106
  }
13088
13107
  let id = this.getId(dropLi);
13089
13108
  if (this.dataType === 1) {
@@ -14465,7 +14484,6 @@ const CLOSE = 'e-close';
14465
14484
  const OPEN = 'e-open';
14466
14485
  const TRASITION = 'e-transition';
14467
14486
  const DEFAULTBACKDROP = 'e-sidebar-overlay';
14468
- const CONTEXTBACKDROP = 'e-backdrop';
14469
14487
  const RTL$2 = 'e-rtl';
14470
14488
  const RIGHT = 'e-right';
14471
14489
  const LEFT = 'e-left';
@@ -14634,7 +14652,7 @@ let Sidebar = class Sidebar extends Component {
14634
14652
  destroyBackDrop() {
14635
14653
  const sibling = document.querySelector('.e-main-content') || this.targetEle;
14636
14654
  if (this.target && this.showBackdrop && sibling) {
14637
- removeClass([sibling], CONTEXTBACKDROP);
14655
+ sibling.removeChild(this.defaultBackdropDiv);
14638
14656
  }
14639
14657
  else if (this.showBackdrop && this.modal) {
14640
14658
  this.modal.style.display = 'none';
@@ -14770,8 +14788,12 @@ let Sidebar = class Sidebar extends Component {
14770
14788
  }
14771
14789
  createBackDrop() {
14772
14790
  if (this.target && this.showBackdrop && this.getState()) {
14791
+ const targetString = this.target;
14773
14792
  const sibling = document.querySelector('.e-main-content') || this.targetEle;
14774
- addClass([sibling], CONTEXTBACKDROP);
14793
+ this.defaultBackdropDiv = this.createElement('div');
14794
+ addClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
14795
+ setStyleAttribute(this.defaultBackdropDiv, { height: targetString.style.height });
14796
+ sibling.appendChild(this.defaultBackdropDiv);
14775
14797
  }
14776
14798
  else if (this.showBackdrop && !this.modal && this.getState()) {
14777
14799
  this.modal = this.createElement('div');