@syncfusion/ej2-navigations 27.1.57 → 27.1.58

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 : 27.1.57
3
+ * version : 27.1.58
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@27.1.56",
3
+ "_id": "@syncfusion/ej2-navigations@27.1.57",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ZDAWdA6fBNMFkRYrcHpnXH2hWArR6H8bnNZjKUVMlNYtFip7BocpLDscSblqIUP6DQmnfX6TGKwb5Voai/KIMQ==",
5
+ "_integrity": "sha512-iWr02p5pCroT7/QZ41mPYfkGqcOuisWKOJ5fZRlWpivB6Z4NV0ngDMZ9bbL5Xi6ByFyrP+RfTNW5WNJmOFsB5A==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -40,8 +40,8 @@
40
40
  "/@syncfusion/ej2-spreadsheet",
41
41
  "/@syncfusion/ej2-vue-navigations"
42
42
  ],
43
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-27.1.56.tgz",
44
- "_shasum": "276263b5f6d2e6fdd2e161b7142b894edfb7cd53",
43
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-27.1.57.tgz",
44
+ "_shasum": "bba1a68ef4d89d698ab0758933307a5443488974",
45
45
  "_spec": "@syncfusion/ej2-navigations@*",
46
46
  "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
47
47
  "author": {
@@ -53,11 +53,11 @@
53
53
  "bundleDependencies": false,
54
54
  "dependencies": {
55
55
  "@syncfusion/ej2-base": "~27.1.55",
56
- "@syncfusion/ej2-buttons": "~27.1.53",
56
+ "@syncfusion/ej2-buttons": "~27.1.58",
57
57
  "@syncfusion/ej2-data": "~27.1.52",
58
- "@syncfusion/ej2-inputs": "~27.1.55",
58
+ "@syncfusion/ej2-inputs": "~27.1.58",
59
59
  "@syncfusion/ej2-lists": "~27.1.50",
60
- "@syncfusion/ej2-popups": "~27.1.57"
60
+ "@syncfusion/ej2-popups": "~27.1.58"
61
61
  },
62
62
  "deprecated": false,
63
63
  "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",
@@ -162,6 +162,6 @@
162
162
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
163
163
  },
164
164
  "typings": "index.d.ts",
165
- "version": "27.1.57",
165
+ "version": "27.1.58",
166
166
  "sideEffects": false
167
167
  }
@@ -319,6 +319,9 @@ var MenuBase = /** @class */ (function (_super) {
319
319
  this.delegateMouseDownHandler = this.mouseDownHandler.bind(this);
320
320
  EventHandler.add(this.isMenu ? document : wrapper, 'mouseover', this.delegateMoverHandler, this);
321
321
  EventHandler.add(document, 'mousedown', this.delegateMouseDownHandler, this);
322
+ if (!this.isMenu && !this.target) {
323
+ EventHandler.add(document, 'scroll', this.scrollHandler, this);
324
+ }
322
325
  }
323
326
  this.delegateClickHandler = this.clickHandler.bind(this);
324
327
  EventHandler.add(document, 'click', this.delegateClickHandler, this);
@@ -684,7 +687,7 @@ var MenuBase = /** @class */ (function (_super) {
684
687
  _this.afterCloseMenu(e);
685
688
  }
686
689
  else if (isOpen && !_this.hamburgerMode && closedLi && !trgtLi && _this.keyType !== 'left' && (_this.navIdx.length || !_this.isMenu && _this.navIdx.length === 0)) {
687
- var ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
690
+ var ele = (e && e.target.classList && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
688
691
  ? closest(e.target, '.e-menu-wrapper') : null;
689
692
  if (ele) {
690
693
  ele = ele.querySelector('.e-menu-item');
@@ -693,7 +696,7 @@ var MenuBase = /** @class */ (function (_super) {
693
696
  }
694
697
  }
695
698
  else {
696
- if (!(e && e.target.classList.contains('e-nav-arrow'))) {
699
+ if (!(e && e.target.classList && e.target.classList.contains('e-nav-arrow'))) {
697
700
  _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
698
701
  }
699
702
  }
@@ -1906,6 +1909,9 @@ var MenuBase = /** @class */ (function (_super) {
1906
1909
  if (!Browser.isDevice) {
1907
1910
  EventHandler.remove(this.isMenu ? document : wrapper, 'mouseover', this.delegateMoverHandler);
1908
1911
  EventHandler.remove(document, 'mousedown', this.delegateMouseDownHandler);
1912
+ if (!this.isMenu && !this.target) {
1913
+ EventHandler.remove(document, 'scroll', this.scrollHandler);
1914
+ }
1909
1915
  }
1910
1916
  EventHandler.remove(document, 'click', this.delegateClickHandler);
1911
1917
  this.unWireKeyboardEvent(wrapper);
package/src/tab/tab.js CHANGED
@@ -1784,6 +1784,11 @@ var Tab = /** @class */ (function (_super) {
1784
1784
  var _this = this;
1785
1785
  var addArgs = { addedItems: items, cancel: false };
1786
1786
  if (!this.isReplace) {
1787
+ for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
1788
+ var item = items_1[_i];
1789
+ item.disabled = item.disabled || false;
1790
+ item.visible = item.visible || true;
1791
+ }
1787
1792
  this.trigger('adding', addArgs, function (tabAddingArgs) {
1788
1793
  if (!tabAddingArgs.cancel) {
1789
1794
  _this.addingTabContent(items, index);
@@ -1989,6 +1994,10 @@ var Tab = /** @class */ (function (_super) {
1989
1994
  }
1990
1995
  }
1991
1996
  this.setActiveBorder();
1997
+ if (!isNOU(this.items[index])) {
1998
+ this.items[index].visible = !value;
1999
+ this.dataBind();
2000
+ }
1992
2001
  if (!isNullOrUndefined(item.firstElementChild)) {
1993
2002
  item.firstElementChild.setAttribute('aria-hidden', '' + value);
1994
2003
  }