@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.
@@ -1707,7 +1707,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1707
1707
  _this.afterCloseMenu(e);
1708
1708
  }
1709
1709
  else if (isOpen && !_this.hamburgerMode && closedLi && !trgtLi && _this.keyType !== 'left' && (_this.navIdx.length || !_this.isMenu && _this.navIdx.length === 0)) {
1710
- var ele = (e && e.target.classList.contains('e-vscroll'))
1710
+ var ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
1711
1711
  ? closest(e.target, '.e-menu-wrapper') : null;
1712
1712
  if (ele) {
1713
1713
  ele = ele.querySelector('.e-menu-item');
@@ -1716,7 +1716,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1716
1716
  }
1717
1717
  }
1718
1718
  else {
1719
- _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
1719
+ if (!(e && e.target.classList.contains('e-nav-arrow'))) {
1720
+ _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
1721
+ }
1720
1722
  }
1721
1723
  }
1722
1724
  else if (isOpen && !isIterated && !ulIndex && ((_this.hamburgerMode && _this.navIdx.length) ||
@@ -2727,7 +2729,12 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2727
2729
  }
2728
2730
  break;
2729
2731
  case 'enableRtl':
2730
- wrapper.classList.toggle(RTL);
2732
+ if (this_1.enableRtl) {
2733
+ wrapper.classList.add(RTL);
2734
+ }
2735
+ else {
2736
+ wrapper.classList.remove(RTL);
2737
+ }
2731
2738
  break;
2732
2739
  case 'showItemOnClick':
2733
2740
  this_1.unWireEvents();
@@ -5318,7 +5325,8 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5318
5325
  var dom;
5319
5326
  var innerEle = this.createElement('div', { className: CLS_ITEM });
5320
5327
  var tempDom = this.createElement('div', {
5321
- innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5328
+ innerHTML: this.enableHtmlSanitizer && !isNullOrUndefined(item.tooltipText) ?
5329
+ SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5322
5330
  });
5323
5331
  if (!this.tbarEle) {
5324
5332
  this.tbarEle = [];
@@ -5404,7 +5412,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5404
5412
  this.updateTabIndex('-1');
5405
5413
  curEle.removeAttribute('tabindex');
5406
5414
  }
5407
- else {
5415
+ else if (curEle.parentElement.classList.contains(CLS_TEMPLATE) && !isNullOrUndefined(curEle.getAttribute('data-tabindex'))) {
5408
5416
  this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5409
5417
  }
5410
5418
  }
@@ -13252,6 +13260,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13252
13260
  else {
13253
13261
  this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY, true);
13254
13262
  }
13263
+ if (this.showCheckBox) {
13264
+ this.ensureIndeterminate();
13265
+ }
13255
13266
  };
13256
13267
  TreeView.prototype.dropAsSiblingNode = function (dragLi, dropLi, e, dragObj) {
13257
13268
  var dropUl = closest(dropLi, '.' + PARENTITEM);
@@ -14810,9 +14821,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
14810
14821
  }
14811
14822
  }
14812
14823
  else if (this.dataType == 2) {
14813
- parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId).reverse();
14824
+ parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
14814
14825
  }
14815
- this.expandAll(parentsId);
14826
+ this.expandAll(parentsId.reverse());
14816
14827
  var liEle = this.getElement(node);
14817
14828
  if (!isNullOrUndefined(liEle)) {
14818
14829
  if (typeof node == 'object') {
@@ -15388,7 +15399,6 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
15388
15399
  }
15389
15400
  else if (!this.isOpen) {
15390
15401
  addClass([this.element], [CLOSE, DISABLEANIMATION]);
15391
- removeClass([this.element], DISABLEANIMATION);
15392
15402
  }
15393
15403
  };
15394
15404
  Sidebar.prototype.checkType = function (val) {
@@ -15843,7 +15853,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
15843
15853
  }
15844
15854
  this.destroyBackDrop();
15845
15855
  if (this.element) {
15846
- removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION]);
15856
+ removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION, DISABLEANIMATION]);
15847
15857
  removeClass([this.element], SIDEBARABSOLUTE);
15848
15858
  this.element.style.width = '';
15849
15859
  this.element.style.zIndex = '';