@syncfusion/ej2-navigations 35.1.43 → 35.2.12

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 : 35.1.43
3
+ * version : 35.2.12
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": "35.1.43",
3
+ "version": "35.2.12",
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,13 +8,13 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-navigations.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~35.1.37",
12
- "@syncfusion/ej2-buttons": "~35.1.41",
13
- "@syncfusion/ej2-data": "~35.1.37",
14
- "@syncfusion/ej2-inputs": "~35.1.43",
15
- "@syncfusion/ej2-lists": "~35.1.43",
16
- "@syncfusion/ej2-notifications": "~35.1.37",
17
- "@syncfusion/ej2-popups": "~35.1.42"
11
+ "@syncfusion/ej2-base": "~35.2.12",
12
+ "@syncfusion/ej2-buttons": "~35.2.12",
13
+ "@syncfusion/ej2-data": "~35.2.12",
14
+ "@syncfusion/ej2-inputs": "~35.2.12",
15
+ "@syncfusion/ej2-lists": "~35.2.12",
16
+ "@syncfusion/ej2-notifications": "~35.2.12",
17
+ "@syncfusion/ej2-popups": "~35.2.12"
18
18
  },
19
19
  "devDependencies": {},
20
20
  "keywords": [
@@ -165,6 +165,7 @@ export declare abstract class MenuBase extends Component<HTMLUListElement> imple
165
165
  private navIdx;
166
166
  private animation;
167
167
  private isTapHold;
168
+ private isGeneratedElement;
168
169
  protected isMenu: boolean;
169
170
  protected hamburgerMode: boolean;
170
171
  protected title: string;
@@ -153,6 +153,7 @@ var MenuBase = /** @class */ (function (_super) {
153
153
  _this.navIdx = [];
154
154
  _this.animation = new Animation({});
155
155
  _this.isTapHold = false;
156
+ _this.isGeneratedElement = false;
156
157
  _this.tempItem = [];
157
158
  _this.showSubMenuOn = 'Auto';
158
159
  _this.isOpenCalled = false;
@@ -199,6 +200,7 @@ var MenuBase = /** @class */ (function (_super) {
199
200
  var ele = this.element;
200
201
  var ejInstance = getValue('ej2_instances', ele);
201
202
  var ul = this.createElement('ul');
203
+ this.isGeneratedElement = true;
202
204
  var wrapper = this.createElement('EJS-MENU', { className: 'e-' + this.getModuleName() + '-wrapper' });
203
205
  for (var idx = 0, len = ele.attributes.length; idx < len; idx++) {
204
206
  ul.setAttribute(ele.attributes[idx].nodeName, ele.attributes[idx].nodeValue);
@@ -2654,7 +2656,9 @@ var MenuBase = /** @class */ (function (_super) {
2654
2656
  this.element.innerHTML = '';
2655
2657
  }
2656
2658
  this.removeAttributes();
2657
- wrapper.parentNode.insertBefore(this.element, wrapper);
2659
+ if (wrapper && wrapper.parentNode && !this.isGeneratedElement) {
2660
+ wrapper.parentNode.insertBefore(this.element, wrapper);
2661
+ }
2658
2662
  this.clonedElement = null;
2659
2663
  }
2660
2664
  if (this.popupObj) {
@@ -2686,6 +2690,9 @@ var MenuBase = /** @class */ (function (_super) {
2686
2690
  if (this.template) {
2687
2691
  this.clearTemplate(['template']);
2688
2692
  }
2693
+ if (this.element && !this.element.classList.length) {
2694
+ this.element.removeAttribute('class');
2695
+ }
2689
2696
  }
2690
2697
  this.rippleFn = null;
2691
2698
  };