@syncfusion/ej2-navigations 23.1.36 → 23.1.40

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,7 +1,7 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 23.1.36
4
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
3
+ * version : 23.1.40
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
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-navigations@*",
3
- "_id": "@syncfusion/ej2-navigations@22.21.0",
3
+ "_id": "@syncfusion/ej2-navigations@23.1.39",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ZFdWxo2R4Yqc8cQ36lXQgviT1E4xlJPtFDNf0J277vGN2vxxLcLbTe7wgr2wrFrX9R+QOixiN2gZbAFVWo8m7w==",
5
+ "_integrity": "sha512-xaMj7KxztedAnDJH1rUulakMIWGgZhErIInx8VPQUqyQ/A22OWUZP2BaVD38Vv+wNYzdelRjzyfJ875rhrEHZA==",
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-release/@syncfusion/ej2-navigations/-/ej2-navigations-22.21.0.tgz",
43
- "_shasum": "cf737ced5f81c1a3735e20e4a743a48dc093b8a2",
42
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-23.1.39.tgz",
43
+ "_shasum": "f8a27c38f9eb57dee9dfe189204faef0791446af",
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.36",
55
- "@syncfusion/ej2-buttons": "~23.1.36",
54
+ "@syncfusion/ej2-base": "~23.1.38",
55
+ "@syncfusion/ej2-buttons": "~23.1.39",
56
56
  "@syncfusion/ej2-data": "~23.1.36",
57
- "@syncfusion/ej2-inputs": "~23.1.36",
57
+ "@syncfusion/ej2-inputs": "~23.1.40",
58
58
  "@syncfusion/ej2-lists": "~23.1.36",
59
- "@syncfusion/ej2-popups": "~23.1.36"
59
+ "@syncfusion/ej2-popups": "~23.1.38"
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.36",
164
+ "version": "23.1.40",
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);
@@ -1432,6 +1432,9 @@ var MenuBase = /** @class */ (function (_super) {
1432
1432
  if (!cli.classList.contains(SEPARATOR)) {
1433
1433
  this.showSubMenu = true;
1434
1434
  var cul = cli.parentNode;
1435
+ if (isNullOrUndefined(cul)) {
1436
+ return;
1437
+ }
1435
1438
  this.cliIdx = this.getIdx(cul, cli);
1436
1439
  if (this.isMenu || !Browser.isDevice) {
1437
1440
  var culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
@@ -2111,7 +2114,7 @@ var MenuBase = /** @class */ (function (_super) {
2111
2114
  if (ishide && validUl === items[i]) {
2112
2115
  ul.children[index].classList.add(HIDE);
2113
2116
  }
2114
- else {
2117
+ else if (!ishide && validUl === items[i]) {
2115
2118
  ul.children[index].classList.remove(HIDE);
2116
2119
  }
2117
2120
  }
@@ -174,7 +174,8 @@ var Sidebar = /** @class */ (function (_super) {
174
174
  this.show();
175
175
  }
176
176
  else if (!this.isOpen) {
177
- addClass([this.element], CLOSE);
177
+ addClass([this.element], [CLOSE, DISABLEANIMATION]);
178
+ removeClass([this.element], DISABLEANIMATION);
178
179
  }
179
180
  };
180
181
  Sidebar.prototype.checkType = function (val) {
package/src/tab/tab.js CHANGED
@@ -311,6 +311,7 @@ var Tab = /** @class */ (function (_super) {
311
311
  * @returns {void}
312
312
  */
313
313
  Tab.prototype.render = function () {
314
+ var _this = this;
314
315
  this.btnCls = this.createElement('span', { className: CLS_ICONS + ' ' + CLS_ICON_CLOSE, attrs: { title: this.title } });
315
316
  this.tabId = this.element.id.length > 0 ? ('-' + this.element.id) : getRandomId();
316
317
  this.renderContainer();
@@ -318,10 +319,10 @@ var Tab = /** @class */ (function (_super) {
318
319
  this.initRender = false;
319
320
  if (this.isReact && this.portals && this.portals.length > 0) {
320
321
  this.renderReactTemplates(function () {
321
- if (!isNOU(this.tbObj)) {
322
- this.tbObj.refreshOverflow();
322
+ if (!isNOU(_this.tbObj)) {
323
+ _this.tbObj.refreshOverflow();
323
324
  }
324
- this.refreshActiveBorder();
325
+ _this.refreshActiveBorder();
325
326
  });
326
327
  }
327
328
  };
@@ -683,13 +683,14 @@ var Toolbar = /** @class */ (function (_super) {
683
683
  * @returns {void}
684
684
  */
685
685
  Toolbar.prototype.render = function () {
686
+ var _this = this;
686
687
  this.initialize();
687
688
  this.renderControl();
688
689
  this.wireEvents();
689
690
  this.renderComplete();
690
691
  if (this.isReact && this.portals && this.portals.length > 0) {
691
692
  this.renderReactTemplates(function () {
692
- this.refreshOverflow();
693
+ _this.refreshOverflow();
693
694
  });
694
695
  }
695
696
  };
@@ -8027,7 +8027,7 @@
8027
8027
  display: inline-block;
8028
8028
  line-height: 20px;
8029
8029
  margin: 0;
8030
- min-height: 20px;
8030
+ min-height: 40px;
8031
8031
  padding: 10px 12px;
8032
8032
  text-decoration: none;
8033
8033
  vertical-align: middle;
@@ -8083,7 +8083,7 @@
8083
8083
  display: inline-block;
8084
8084
  line-height: 20px;
8085
8085
  margin: 0;
8086
- min-height: 20px;
8086
+ min-height: 40px;
8087
8087
  padding: 10px 12px;
8088
8088
  text-decoration: none;
8089
8089
  vertical-align: middle;
@@ -634,7 +634,10 @@
634
634
  display: inline-block;
635
635
  line-height: $treeview-text-height;
636
636
  margin: $treeview-text-margin;
637
- @if $skin-name != 'bootstrap4' {
637
+ @if $skin-name == 'Material3' {
638
+ min-height: $treeview-item-height;
639
+ }
640
+ @else if $skin-name != 'bootstrap4' {
638
641
  min-height: $treeview-text-height;
639
642
  }
640
643
  @else if $skin-name == 'bootstrap4' {
@@ -459,7 +459,7 @@
459
459
  display: inline-block;
460
460
  line-height: 20px;
461
461
  margin: 0;
462
- min-height: 20px;
462
+ min-height: 40px;
463
463
  padding: 10px 12px;
464
464
  text-decoration: none;
465
465
  vertical-align: middle;
@@ -515,7 +515,7 @@
515
515
  display: inline-block;
516
516
  line-height: 20px;
517
517
  margin: 0;
518
- min-height: 20px;
518
+ min-height: 40px;
519
519
  padding: 10px 12px;
520
520
  text-decoration: none;
521
521
  vertical-align: middle;