@syncfusion/ej2-navigations 20.1.56 → 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 (58) hide show
  1. package/CHANGELOG.md +16 -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 +33 -7
  5. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es5.js +33 -7
  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 +8 -8
  12. package/src/sidebar/sidebar.d.ts +1 -0
  13. package/src/sidebar/sidebar.js +6 -2
  14. package/src/tab/tab.js +6 -2
  15. package/src/treeview/treeview-model.d.ts +1 -1
  16. package/src/treeview/treeview.js +21 -2
  17. package/styles/bootstrap-dark.css +1 -2
  18. package/styles/bootstrap.css +4 -9
  19. package/styles/bootstrap4.css +3 -6
  20. package/styles/bootstrap5-dark.css +4 -7
  21. package/styles/bootstrap5.css +4 -7
  22. package/styles/carousel/bootstrap-dark.css +1 -2
  23. package/styles/carousel/bootstrap.css +1 -2
  24. package/styles/carousel/bootstrap4.css +1 -2
  25. package/styles/carousel/bootstrap5-dark.css +1 -2
  26. package/styles/carousel/bootstrap5.css +1 -2
  27. package/styles/carousel/fabric-dark.css +1 -2
  28. package/styles/carousel/fabric.css +1 -2
  29. package/styles/carousel/fluent-dark.css +1 -2
  30. package/styles/carousel/fluent.css +1 -2
  31. package/styles/carousel/highcontrast-light.css +1 -2
  32. package/styles/carousel/highcontrast.css +1 -2
  33. package/styles/carousel/material-dark.css +1 -2
  34. package/styles/carousel/material.css +1 -2
  35. package/styles/carousel/tailwind-dark.css +1 -2
  36. package/styles/carousel/tailwind.css +1 -2
  37. package/styles/fabric-dark.css +1 -2
  38. package/styles/fabric.css +1 -2
  39. package/styles/fluent-dark.css +1 -2
  40. package/styles/fluent.css +1 -2
  41. package/styles/highcontrast-light.css +1 -2
  42. package/styles/highcontrast.css +1 -2
  43. package/styles/material-dark.css +1 -2
  44. package/styles/material.css +1 -2
  45. package/styles/menu/bootstrap.css +1 -2
  46. package/styles/menu/bootstrap4.css +1 -2
  47. package/styles/tab/bootstrap.css +1 -2
  48. package/styles/tab/bootstrap5-dark.css +1 -2
  49. package/styles/tab/bootstrap5.css +1 -2
  50. package/styles/tailwind-dark.css +1 -2
  51. package/styles/tailwind.css +1 -2
  52. package/styles/toolbar/bootstrap.css +1 -3
  53. package/styles/toolbar/bootstrap4.css +1 -2
  54. package/styles/toolbar/bootstrap5-dark.css +1 -2
  55. package/styles/toolbar/bootstrap5.css +1 -2
  56. package/styles/treeview/_bootstrap5-definition.scss +1 -1
  57. package/styles/treeview/bootstrap5-dark.css +1 -1
  58. package/styles/treeview/bootstrap5.css +1 -1
@@ -7297,7 +7297,7 @@ let Tab = class Tab extends Component {
7297
7297
  this.tbObj = null;
7298
7298
  }
7299
7299
  this.unWireEvents();
7300
- ['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation'].forEach((val) => {
7300
+ ['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation', 'aria-owns'].forEach((val) => {
7301
7301
  this.element.removeAttribute(val);
7302
7302
  });
7303
7303
  this.expTemplateContent();
@@ -7378,7 +7378,7 @@ let Tab = class Tab extends Component {
7378
7378
  const css = (name === 'msie') ? 'e-ie' : (name === 'edge') ? 'e-edge' : (name === 'safari') ? 'e-safari' : '';
7379
7379
  setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
7380
7380
  this.setCssClass(this.element, this.cssClass, true);
7381
- attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '' });
7381
+ attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '', 'aria-owns': this.element.id + '_' + 'tab_header_items' });
7382
7382
  this.setCssClass(this.element, css, true);
7383
7383
  this.updatePopAnimationConfig();
7384
7384
  }
@@ -7562,6 +7562,10 @@ let Tab = class Tab extends Component {
7562
7562
  attributes(this.hdrEle, { 'aria-label': 'tab-header' });
7563
7563
  this.updateOrientationAttribute();
7564
7564
  this.setCloseButton(this.showCloseButton);
7565
+ const toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
7566
+ if (!isNullOrUndefined(toolbarHeader)) {
7567
+ toolbarHeader.id = this.element.id + '_' + 'tab_header_items';
7568
+ }
7565
7569
  }
7566
7570
  renderContent() {
7567
7571
  this.cntEle = select('.' + CLS_CONTENT$1, this.element);
@@ -13078,8 +13082,27 @@ let TreeView = TreeView_1 = class TreeView extends Component {
13078
13082
  dropUl = dropEle;
13079
13083
  }
13080
13084
  let refNode = dropUl.childNodes[index];
13081
- for (let i = 0; i < li.length; i++) {
13082
- 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
+ }
13083
13106
  }
13084
13107
  let id = this.getId(dropLi);
13085
13108
  if (this.dataType === 1) {
@@ -14461,7 +14484,6 @@ const CLOSE = 'e-close';
14461
14484
  const OPEN = 'e-open';
14462
14485
  const TRASITION = 'e-transition';
14463
14486
  const DEFAULTBACKDROP = 'e-sidebar-overlay';
14464
- const CONTEXTBACKDROP = 'e-backdrop';
14465
14487
  const RTL$2 = 'e-rtl';
14466
14488
  const RIGHT = 'e-right';
14467
14489
  const LEFT = 'e-left';
@@ -14630,7 +14652,7 @@ let Sidebar = class Sidebar extends Component {
14630
14652
  destroyBackDrop() {
14631
14653
  const sibling = document.querySelector('.e-main-content') || this.targetEle;
14632
14654
  if (this.target && this.showBackdrop && sibling) {
14633
- removeClass([sibling], CONTEXTBACKDROP);
14655
+ sibling.removeChild(this.defaultBackdropDiv);
14634
14656
  }
14635
14657
  else if (this.showBackdrop && this.modal) {
14636
14658
  this.modal.style.display = 'none';
@@ -14766,8 +14788,12 @@ let Sidebar = class Sidebar extends Component {
14766
14788
  }
14767
14789
  createBackDrop() {
14768
14790
  if (this.target && this.showBackdrop && this.getState()) {
14791
+ const targetString = this.target;
14769
14792
  const sibling = document.querySelector('.e-main-content') || this.targetEle;
14770
- 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);
14771
14797
  }
14772
14798
  else if (this.showBackdrop && !this.modal && this.getState()) {
14773
14799
  this.modal = this.createElement('div');