@syncfusion/ej2-navigations 23.1.39 → 23.1.41

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.39
3
+ * version : 23.1.41
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.36",
3
+ "_id": "@syncfusion/ej2-navigations@23.1.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-qSbgjTmjJyqnsekQb1YzVRjIe7QUKItmWu5LpgFNPXI7fN6az0/MTFM15OYn3IHU/9sM10Zank0cezREjtl1Sw==",
5
+ "_integrity": "sha512-aXE4qBuAuI2NVlEl6tmJ6RBiTqJ4cyc758Xgu6P9w6xfWK/aEYvH9KQhpsIAnbHBQbi8xV76QXafZCSg1IGYew==",
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.36.tgz",
43
- "_shasum": "ba0ffe7351f51dd852439b79ea311ccb528ec1b4",
42
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-23.1.40.tgz",
43
+ "_shasum": "e9224d59ee9d3975628d3791aaf1b9a8bb9f8269",
44
44
  "_spec": "@syncfusion/ej2-navigations@*",
45
45
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
46
46
  "author": {
@@ -51,10 +51,10 @@
51
51
  },
52
52
  "bundleDependencies": false,
53
53
  "dependencies": {
54
- "@syncfusion/ej2-base": "~23.1.38",
55
- "@syncfusion/ej2-buttons": "~23.1.39",
54
+ "@syncfusion/ej2-base": "~23.1.41",
55
+ "@syncfusion/ej2-buttons": "~23.1.41",
56
56
  "@syncfusion/ej2-data": "~23.1.36",
57
- "@syncfusion/ej2-inputs": "~23.1.38",
57
+ "@syncfusion/ej2-inputs": "~23.1.40",
58
58
  "@syncfusion/ej2-lists": "~23.1.36",
59
59
  "@syncfusion/ej2-popups": "~23.1.38"
60
60
  },
@@ -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.39",
164
+ "version": "23.1.41",
165
165
  "sideEffects": false
166
166
  }
@@ -651,9 +651,11 @@ var Accordion = /** @class */ (function (_super) {
651
651
  if (typeof (value) === 'string') {
652
652
  ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
653
653
  }
654
- else if (!isNOU(this.trgtEle) && (value instanceof (HTMLElement))) {
654
+ else if (value instanceof (HTMLElement)) {
655
655
  ele.appendChild(value);
656
- ele.firstElementChild.style.display = '';
656
+ if (this.trgtEle) {
657
+ ele.firstElementChild.style.display = '';
658
+ }
657
659
  }
658
660
  else {
659
661
  templateFn = templateCompiler(value);
@@ -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) ||
@@ -1432,6 +1434,9 @@ var MenuBase = /** @class */ (function (_super) {
1432
1434
  if (!cli.classList.contains(SEPARATOR)) {
1433
1435
  this.showSubMenu = true;
1434
1436
  var cul = cli.parentNode;
1437
+ if (isNullOrUndefined(cul)) {
1438
+ return;
1439
+ }
1435
1440
  this.cliIdx = this.getIdx(cul, cli);
1436
1441
  if (this.isMenu || !Browser.isDevice) {
1437
1442
  var culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
@@ -1667,7 +1672,12 @@ var MenuBase = /** @class */ (function (_super) {
1667
1672
  }
1668
1673
  break;
1669
1674
  case 'enableRtl':
1670
- wrapper.classList.toggle(RTL);
1675
+ if (this_1.enableRtl) {
1676
+ wrapper.classList.add(RTL);
1677
+ }
1678
+ else {
1679
+ wrapper.classList.remove(RTL);
1680
+ }
1671
1681
  break;
1672
1682
  case 'showItemOnClick':
1673
1683
  this_1.unWireEvents();
@@ -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 = [];
@@ -4824,9 +4824,9 @@ var TreeView = /** @class */ (function (_super) {
4824
4824
  }
4825
4825
  }
4826
4826
  else if (this.dataType == 2) {
4827
- parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId).reverse();
4827
+ parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
4828
4828
  }
4829
- this.expandAll(parentsId);
4829
+ this.expandAll(parentsId.reverse());
4830
4830
  var liEle = this.getElement(node);
4831
4831
  if (!isNOU(liEle)) {
4832
4832
  if (typeof node == 'object') {