@syncfusion/ej2-navigations 23.1.40 → 23.1.43

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.
@@ -1626,7 +1626,7 @@ let MenuBase = class MenuBase extends Component {
1626
1626
  this.afterCloseMenu(e);
1627
1627
  }
1628
1628
  else if (isOpen && !this.hamburgerMode && closedLi && !trgtLi && this.keyType !== 'left' && (this.navIdx.length || !this.isMenu && this.navIdx.length === 0)) {
1629
- let ele = (e && e.target.classList.contains('e-vscroll'))
1629
+ let ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
1630
1630
  ? closest(e.target, '.e-menu-wrapper') : null;
1631
1631
  if (ele) {
1632
1632
  ele = ele.querySelector('.e-menu-item');
@@ -1635,7 +1635,9 @@ let MenuBase = class MenuBase extends Component {
1635
1635
  }
1636
1636
  }
1637
1637
  else {
1638
- this.closeMenu(this.navIdx[this.navIdx.length - 1], e);
1638
+ if (!(e && e.target.classList.contains('e-nav-arrow'))) {
1639
+ this.closeMenu(this.navIdx[this.navIdx.length - 1], e);
1640
+ }
1639
1641
  }
1640
1642
  }
1641
1643
  else if (isOpen && !isIterated && !ulIndex && ((this.hamburgerMode && this.navIdx.length) ||
@@ -2628,7 +2630,12 @@ let MenuBase = class MenuBase extends Component {
2628
2630
  }
2629
2631
  break;
2630
2632
  case 'enableRtl':
2631
- wrapper.classList.toggle(RTL);
2633
+ if (this.enableRtl) {
2634
+ wrapper.classList.add(RTL);
2635
+ }
2636
+ else {
2637
+ wrapper.classList.remove(RTL);
2638
+ }
2632
2639
  break;
2633
2640
  case 'showItemOnClick':
2634
2641
  this.unWireEvents();
@@ -5164,7 +5171,8 @@ let Toolbar = class Toolbar extends Component {
5164
5171
  let dom;
5165
5172
  const innerEle = this.createElement('div', { className: CLS_ITEM });
5166
5173
  const tempDom = this.createElement('div', {
5167
- innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5174
+ innerHTML: this.enableHtmlSanitizer && !isNullOrUndefined(item.tooltipText) ?
5175
+ SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5168
5176
  });
5169
5177
  if (!this.tbarEle) {
5170
5178
  this.tbarEle = [];
@@ -5250,7 +5258,7 @@ let Toolbar = class Toolbar extends Component {
5250
5258
  this.updateTabIndex('-1');
5251
5259
  curEle.removeAttribute('tabindex');
5252
5260
  }
5253
- else {
5261
+ else if (curEle.parentElement.classList.contains(CLS_TEMPLATE) && !isNullOrUndefined(curEle.getAttribute('data-tabindex'))) {
5254
5262
  this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5255
5263
  }
5256
5264
  }
@@ -12910,6 +12918,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12910
12918
  else {
12911
12919
  this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY, true);
12912
12920
  }
12921
+ if (this.showCheckBox) {
12922
+ this.ensureIndeterminate();
12923
+ }
12913
12924
  }
12914
12925
  dropAsSiblingNode(dragLi, dropLi, e, dragObj) {
12915
12926
  let dropUl = closest(dropLi, '.' + PARENTITEM);
@@ -14460,9 +14471,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
14460
14471
  }
14461
14472
  }
14462
14473
  else if (this.dataType == 2) {
14463
- parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId).reverse();
14474
+ parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
14464
14475
  }
14465
- this.expandAll(parentsId);
14476
+ this.expandAll(parentsId.reverse());
14466
14477
  let liEle = this.getElement(node);
14467
14478
  if (!isNullOrUndefined(liEle)) {
14468
14479
  if (typeof node == 'object') {
@@ -15021,7 +15032,6 @@ let Sidebar = class Sidebar extends Component {
15021
15032
  }
15022
15033
  else if (!this.isOpen) {
15023
15034
  addClass([this.element], [CLOSE, DISABLEANIMATION]);
15024
- removeClass([this.element], DISABLEANIMATION);
15025
15035
  }
15026
15036
  }
15027
15037
  checkType(val) {
@@ -15473,7 +15483,7 @@ let Sidebar = class Sidebar extends Component {
15473
15483
  }
15474
15484
  this.destroyBackDrop();
15475
15485
  if (this.element) {
15476
- removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION]);
15486
+ removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION, DISABLEANIMATION]);
15477
15487
  removeClass([this.element], SIDEBARABSOLUTE);
15478
15488
  this.element.style.width = '';
15479
15489
  this.element.style.zIndex = '';