@syncfusion/ej2-navigations 20.1.57 → 20.1.61

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 +22 -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 +36 -7
  5. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es5.js +38 -9
  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 +9 -9
  12. package/src/sidebar/sidebar.d.ts +1 -0
  13. package/src/sidebar/sidebar.js +6 -2
  14. package/src/tab/tab.js +15 -4
  15. package/src/treeview/treeview.js +17 -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
@@ -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);
@@ -8916,6 +8920,12 @@ let Tab = class Tab extends Component {
8916
8920
  textValue = item.headerTemplate || item.header.text;
8917
8921
  if (!(isNullOrUndefined(item.headerTemplate || item.header) || isNullOrUndefined(textValue) ||
8918
8922
  (textValue.length === 0) && !isNullOrUndefined(item.header) && isNullOrUndefined(item.header.iconCss))) {
8923
+ if (tabItems[place]) {
8924
+ if (isNullOrUndefined(item.id)) {
8925
+ item.id = TABITEMPREFIX + (lastEleIndex + place).toString();
8926
+ }
8927
+ tabItems[place].htmlAttributes['data-id'] = item.id;
8928
+ }
8919
8929
  this.items.splice((index + i), 0, item);
8920
8930
  i++;
8921
8931
  }
@@ -8939,6 +8949,7 @@ let Tab = class Tab extends Component {
8939
8949
  }
8940
8950
  else {
8941
8951
  this.setActiveBorder();
8952
+ this.tbItem = selectAll('.' + CLS_TB_ITEM, this.getTabHeader());
8942
8953
  }
8943
8954
  this.bindDraggable();
8944
8955
  }
@@ -13078,8 +13089,23 @@ let TreeView = TreeView_1 = class TreeView extends Component {
13078
13089
  dropUl = dropEle;
13079
13090
  }
13080
13091
  let refNode = dropUl.childNodes[index];
13081
- for (let i = 0; i < li.length; i++) {
13082
- dropUl.insertBefore(li[i], refNode);
13092
+ if (refNode || this.sortOrder === 'None') {
13093
+ for (let i = 0; i < li.length; i++) {
13094
+ dropUl.insertBefore(li[i], refNode);
13095
+ }
13096
+ }
13097
+ if (!refNode && ((this.sortOrder === 'Ascending') || (this.sortOrder === 'Descending'))) {
13098
+ let cNodes = dropUl.childNodes;
13099
+ for (let i = 0; i < li.length; i++) {
13100
+ for (let j = 0; j < cNodes.length; j++) {
13101
+ let returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
13102
+ if (returnValue) {
13103
+ dropUl.insertBefore(li[i], cNodes[j]);
13104
+ break;
13105
+ }
13106
+ dropUl.insertBefore(li[i], cNodes[cNodes.length]);
13107
+ }
13108
+ }
13083
13109
  }
13084
13110
  let id = this.getId(dropLi);
13085
13111
  if (this.dataType === 1) {
@@ -14461,7 +14487,6 @@ const CLOSE = 'e-close';
14461
14487
  const OPEN = 'e-open';
14462
14488
  const TRASITION = 'e-transition';
14463
14489
  const DEFAULTBACKDROP = 'e-sidebar-overlay';
14464
- const CONTEXTBACKDROP = 'e-backdrop';
14465
14490
  const RTL$2 = 'e-rtl';
14466
14491
  const RIGHT = 'e-right';
14467
14492
  const LEFT = 'e-left';
@@ -14630,7 +14655,7 @@ let Sidebar = class Sidebar extends Component {
14630
14655
  destroyBackDrop() {
14631
14656
  const sibling = document.querySelector('.e-main-content') || this.targetEle;
14632
14657
  if (this.target && this.showBackdrop && sibling) {
14633
- removeClass([sibling], CONTEXTBACKDROP);
14658
+ sibling.removeChild(this.defaultBackdropDiv);
14634
14659
  }
14635
14660
  else if (this.showBackdrop && this.modal) {
14636
14661
  this.modal.style.display = 'none';
@@ -14766,8 +14791,12 @@ let Sidebar = class Sidebar extends Component {
14766
14791
  }
14767
14792
  createBackDrop() {
14768
14793
  if (this.target && this.showBackdrop && this.getState()) {
14794
+ const targetString = this.target;
14769
14795
  const sibling = document.querySelector('.e-main-content') || this.targetEle;
14770
- addClass([sibling], CONTEXTBACKDROP);
14796
+ this.defaultBackdropDiv = this.createElement('div');
14797
+ addClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
14798
+ setStyleAttribute(this.defaultBackdropDiv, { height: targetString.style.height });
14799
+ sibling.appendChild(this.defaultBackdropDiv);
14771
14800
  }
14772
14801
  else if (this.showBackdrop && !this.modal && this.getState()) {
14773
14802
  this.modal = this.createElement('div');