@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 23.1.40
3
+ * version : 23.1.43
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-navigations@*",
3
- "_id": "@syncfusion/ej2-navigations@23.1.39",
3
+ "_id": "@syncfusion/ej2-navigations@23.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-xaMj7KxztedAnDJH1rUulakMIWGgZhErIInx8VPQUqyQ/A22OWUZP2BaVD38Vv+wNYzdelRjzyfJ875rhrEHZA==",
5
+ "_integrity": "sha512-9lEjY6BYj2V/JsOGrl7yRRzUBznym1GHACgMNn7EYvJ3sT/HlYirh/dfauOVfuQVVm6Q0dIoBTgIJARBOSdHwQ==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -39,8 +39,8 @@
39
39
  "/@syncfusion/ej2-spreadsheet",
40
40
  "/@syncfusion/ej2-vue-navigations"
41
41
  ],
42
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-23.1.39.tgz",
43
- "_shasum": "f8a27c38f9eb57dee9dfe189204faef0791446af",
42
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-23.1.41.tgz",
43
+ "_shasum": "5617e406368f550e6717ac634cf190ddfb4b0fb4",
44
44
  "_spec": "@syncfusion/ej2-navigations@*",
45
45
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
46
46
  "author": {
@@ -51,12 +51,12 @@
51
51
  },
52
52
  "bundleDependencies": false,
53
53
  "dependencies": {
54
- "@syncfusion/ej2-base": "~23.1.38",
55
- "@syncfusion/ej2-buttons": "~23.1.39",
56
- "@syncfusion/ej2-data": "~23.1.36",
57
- "@syncfusion/ej2-inputs": "~23.1.40",
58
- "@syncfusion/ej2-lists": "~23.1.36",
59
- "@syncfusion/ej2-popups": "~23.1.38"
54
+ "@syncfusion/ej2-base": "~23.1.41",
55
+ "@syncfusion/ej2-buttons": "~23.1.43",
56
+ "@syncfusion/ej2-data": "~23.1.43",
57
+ "@syncfusion/ej2-inputs": "~23.1.43",
58
+ "@syncfusion/ej2-lists": "~23.1.43",
59
+ "@syncfusion/ej2-popups": "~23.1.43"
60
60
  },
61
61
  "deprecated": false,
62
62
  "description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
@@ -161,6 +161,6 @@
161
161
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
162
162
  },
163
163
  "typings": "index.d.ts",
164
- "version": "23.1.40",
164
+ "version": "23.1.43",
165
165
  "sideEffects": false
166
166
  }
@@ -650,7 +650,7 @@ var MenuBase = /** @class */ (function (_super) {
650
650
  _this.afterCloseMenu(e);
651
651
  }
652
652
  else if (isOpen && !_this.hamburgerMode && closedLi && !trgtLi && _this.keyType !== 'left' && (_this.navIdx.length || !_this.isMenu && _this.navIdx.length === 0)) {
653
- var ele = (e && e.target.classList.contains('e-vscroll'))
653
+ var ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
654
654
  ? closest(e.target, '.e-menu-wrapper') : null;
655
655
  if (ele) {
656
656
  ele = ele.querySelector('.e-menu-item');
@@ -659,7 +659,9 @@ var MenuBase = /** @class */ (function (_super) {
659
659
  }
660
660
  }
661
661
  else {
662
- _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
662
+ if (!(e && e.target.classList.contains('e-nav-arrow'))) {
663
+ _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
664
+ }
663
665
  }
664
666
  }
665
667
  else if (isOpen && !isIterated && !ulIndex && ((_this.hamburgerMode && _this.navIdx.length) ||
@@ -1670,7 +1672,12 @@ var MenuBase = /** @class */ (function (_super) {
1670
1672
  }
1671
1673
  break;
1672
1674
  case 'enableRtl':
1673
- wrapper.classList.toggle(RTL);
1675
+ if (this_1.enableRtl) {
1676
+ wrapper.classList.add(RTL);
1677
+ }
1678
+ else {
1679
+ wrapper.classList.remove(RTL);
1680
+ }
1674
1681
  break;
1675
1682
  case 'showItemOnClick':
1676
1683
  this_1.unWireEvents();
@@ -175,7 +175,6 @@ var Sidebar = /** @class */ (function (_super) {
175
175
  }
176
176
  else if (!this.isOpen) {
177
177
  addClass([this.element], [CLOSE, DISABLEANIMATION]);
178
- removeClass([this.element], DISABLEANIMATION);
179
178
  }
180
179
  };
181
180
  Sidebar.prototype.checkType = function (val) {
@@ -630,7 +629,7 @@ var Sidebar = /** @class */ (function (_super) {
630
629
  }
631
630
  this.destroyBackDrop();
632
631
  if (this.element) {
633
- removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION]);
632
+ removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION, DISABLEANIMATION]);
634
633
  removeClass([this.element], SIDEBARABSOLUTE);
635
634
  this.element.style.width = '';
636
635
  this.element.style.zIndex = '';
@@ -1937,7 +1937,8 @@ var Toolbar = /** @class */ (function (_super) {
1937
1937
  var dom;
1938
1938
  var innerEle = this.createElement('div', { className: CLS_ITEM });
1939
1939
  var tempDom = this.createElement('div', {
1940
- innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
1940
+ innerHTML: this.enableHtmlSanitizer && !isNOU(item.tooltipText) ?
1941
+ SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
1941
1942
  });
1942
1943
  if (!this.tbarEle) {
1943
1944
  this.tbarEle = [];
@@ -2023,7 +2024,7 @@ var Toolbar = /** @class */ (function (_super) {
2023
2024
  this.updateTabIndex('-1');
2024
2025
  curEle.removeAttribute('tabindex');
2025
2026
  }
2026
- else {
2027
+ else if (curEle.parentElement.classList.contains(CLS_TEMPLATE) && !isNOU(curEle.getAttribute('data-tabindex'))) {
2027
2028
  this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
2028
2029
  }
2029
2030
  }
@@ -3265,6 +3265,9 @@ var TreeView = /** @class */ (function (_super) {
3265
3265
  else {
3266
3266
  this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY, true);
3267
3267
  }
3268
+ if (this.showCheckBox) {
3269
+ this.ensureIndeterminate();
3270
+ }
3268
3271
  };
3269
3272
  TreeView.prototype.dropAsSiblingNode = function (dragLi, dropLi, e, dragObj) {
3270
3273
  var dropUl = closest(dropLi, '.' + PARENTITEM);
@@ -4824,9 +4827,9 @@ var TreeView = /** @class */ (function (_super) {
4824
4827
  }
4825
4828
  }
4826
4829
  else if (this.dataType == 2) {
4827
- parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId).reverse();
4830
+ parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
4828
4831
  }
4829
- this.expandAll(parentsId);
4832
+ this.expandAll(parentsId.reverse());
4830
4833
  var liEle = this.getElement(node);
4831
4834
  if (!isNOU(liEle)) {
4832
4835
  if (typeof node == 'object') {