@syncfusion/ej2-navigations 33.1.44 → 33.1.46

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 : 33.1.44
3
+ * version : 33.1.46
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-navigations",
3
- "version": "33.1.44",
3
+ "version": "33.1.46",
4
4
  "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",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,9 +8,9 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-navigations.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~33.1.44",
11
+ "@syncfusion/ej2-base": "~33.1.45",
12
12
  "@syncfusion/ej2-buttons": "~33.1.44",
13
- "@syncfusion/ej2-data": "~33.1.44",
13
+ "@syncfusion/ej2-data": "~33.1.45",
14
14
  "@syncfusion/ej2-inputs": "~33.1.44",
15
15
  "@syncfusion/ej2-lists": "~33.1.44",
16
16
  "@syncfusion/ej2-popups": "~33.1.44"
package/src/tab/tab.js CHANGED
@@ -1376,6 +1376,9 @@ var Tab = /** @class */ (function (_super) {
1376
1376
  }
1377
1377
  this.element.classList.add(CLS_FOCUS);
1378
1378
  var trg = e.target;
1379
+ if (!trg || !trg.isConnected) {
1380
+ return;
1381
+ }
1379
1382
  var tabHeader = this.getTabHeader();
1380
1383
  var actEle = select('.' + CLS_ACTIVE, tabHeader);
1381
1384
  this.popEle = select('.' + CLS_TB_POP, tabHeader);
@@ -1387,7 +1390,7 @@ var Tab = /** @class */ (function (_super) {
1387
1390
  switch (e.action) {
1388
1391
  case 'space':
1389
1392
  case 'enter':
1390
- if (trg.parentElement.classList.contains(CLS_DISABLE)) {
1393
+ if (trg.parentElement && trg.parentElement.classList.contains(CLS_DISABLE)) {
1391
1394
  return;
1392
1395
  }
1393
1396
  if (e.action === 'enter' && trg.classList.contains('e-hor-nav')) {
@@ -1537,12 +1540,20 @@ var Tab = /** @class */ (function (_super) {
1537
1540
  }
1538
1541
  if (properties[j] === 'cssClass') {
1539
1542
  if (!isNOU(hdrItem)) {
1540
- hdrItem.classList.remove(oldVal);
1541
- hdrItem.classList.add(newVal);
1543
+ if (!isNOU(oldVal) && oldVal !== '') {
1544
+ hdrItem.classList.remove(oldVal);
1545
+ }
1546
+ if (!isNOU(newVal) && newVal !== '') {
1547
+ hdrItem.classList.add(newVal);
1548
+ }
1542
1549
  }
1543
1550
  if (!isNOU(cntItem)) {
1544
- cntItem.classList.remove(oldVal);
1545
- cntItem.classList.add(newVal);
1551
+ if (!isNOU(oldVal) && oldVal !== '') {
1552
+ cntItem.classList.remove(oldVal);
1553
+ }
1554
+ if (!isNOU(newVal) && newVal !== '') {
1555
+ cntItem.classList.add(newVal);
1556
+ }
1546
1557
  }
1547
1558
  }
1548
1559
  if (properties[j] === 'disabled') {
@@ -5781,8 +5781,8 @@ var TreeView = /** @class */ (function (_super) {
5781
5781
  if (isNOU(uid)) {
5782
5782
  return uid;
5783
5783
  }
5784
- if (typeof uid === 'string' && uid.indexOf(' #') !== -1) {
5785
- return uid.split(' #').join(' \\#');
5784
+ if (typeof uid === 'string') {
5785
+ return uid.replace(/[#:.[\]!~^$*() ]/g, '\\$&');
5786
5786
  }
5787
5787
  return uid;
5788
5788
  };