@syncfusion/ej2-navigations 25.2.3 → 25.2.4

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 : 25.2.3
3
+ * version : 25.2.4
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@25.1.42",
3
+ "_id": "@syncfusion/ej2-navigations@25.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-UcDoEk6aNyPF9FHLMAKTUGpTqn5sUhXu58JOYIIo2TBioSnwOrniFqJKO+Uot6wbzCbCob/Ll4HKh2qZTzPtQQ==",
5
+ "_integrity": "sha512-Gq15oppzRlEiaAFuScPih8+ocFjo9yupWt1XTsTnhontiknLzmxsJIEZhZId0LRfoypRHueMGOPwV1vNdwAXig==",
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-25.1.42.tgz",
43
- "_shasum": "9119271036d9fe3ed8f356ac52a4ae7dda2c1bed",
42
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-25.2.3.tgz",
43
+ "_shasum": "79d7b2bc6d5b8557e0c423a7a153023237b02739",
44
44
  "_spec": "@syncfusion/ej2-navigations@*",
45
45
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
46
46
  "author": {
@@ -52,11 +52,11 @@
52
52
  "bundleDependencies": false,
53
53
  "dependencies": {
54
54
  "@syncfusion/ej2-base": "~25.2.3",
55
- "@syncfusion/ej2-buttons": "~25.2.3",
55
+ "@syncfusion/ej2-buttons": "~25.2.4",
56
56
  "@syncfusion/ej2-data": "~25.2.3",
57
57
  "@syncfusion/ej2-inputs": "~25.2.3",
58
58
  "@syncfusion/ej2-lists": "~25.2.3",
59
- "@syncfusion/ej2-popups": "~25.2.3"
59
+ "@syncfusion/ej2-popups": "~25.2.4"
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": "25.2.3",
164
+ "version": "25.2.4",
165
165
  "sideEffects": false
166
166
  }
@@ -181,6 +181,7 @@ export declare abstract class MenuBase extends Component<HTMLUListElement> imple
181
181
  private defaultOption;
182
182
  private timer;
183
183
  private currentTarget;
184
+ private isCmenuHover;
184
185
  /**
185
186
  * Triggers while rendering each menu item.
186
187
  *
@@ -699,7 +699,7 @@ var MenuBase = /** @class */ (function (_super) {
699
699
  else if (isOpen && isNullOrUndefined(ulIndex) && _this.navIdx.length) {
700
700
  _this.closeMenu(null, e);
701
701
  }
702
- else if (isOpen && !_this.isMenu && !ulIndex && _this.navIdx.length === 0 && !_this.isMenusClosed) {
702
+ else if (isOpen && !_this.isMenu && !ulIndex && _this.navIdx.length === 0 && !_this.isMenusClosed && !_this.isCmenuHover) {
703
703
  _this.isMenusClosed = true;
704
704
  _this.closeMenu(0, e);
705
705
  }
@@ -1304,6 +1304,8 @@ var MenuBase = /** @class */ (function (_super) {
1304
1304
  MenuBase.prototype.moverHandler = function (e) {
1305
1305
  var trgt = e.target;
1306
1306
  this.liTrgt = trgt;
1307
+ if (!this.isMenu)
1308
+ this.isCmenuHover = true;
1307
1309
  var cli = this.getLI(trgt);
1308
1310
  var wrapper = cli ? closest(cli, '.e-' + this.getModuleName() + '-wrapper') : this.getWrapper();
1309
1311
  var hdrWrapper = this.getWrapper();
@@ -1359,6 +1361,8 @@ var MenuBase = /** @class */ (function (_super) {
1359
1361
  }
1360
1362
  this.isClosed = false;
1361
1363
  }
1364
+ if (!this.isMenu)
1365
+ this.isCmenuHover = false;
1362
1366
  };
1363
1367
  MenuBase.prototype.removeStateWrapper = function () {
1364
1368
  if (this.liTrgt) {
@@ -1481,10 +1485,14 @@ var MenuBase = /** @class */ (function (_super) {
1481
1485
  this.keyType = 'click';
1482
1486
  if (this.showItemOnClick) {
1483
1487
  this.setLISelected(cli);
1488
+ if (!this.isMenu)
1489
+ this.isCmenuHover = true;
1484
1490
  }
1485
1491
  this.closeMenu(culIdx + 1, e);
1486
1492
  if (this.showItemOnClick) {
1487
1493
  this.setLISelected(cli);
1494
+ if (!this.isMenu)
1495
+ this.isCmenuHover = false;
1488
1496
  }
1489
1497
  }
1490
1498
  }
@@ -1951,7 +1959,8 @@ var MenuBase = /** @class */ (function (_super) {
1951
1959
  };
1952
1960
  MenuBase.prototype.end = function (ul, isMenuOpen) {
1953
1961
  if (isMenuOpen) {
1954
- ul.style.display = 'block';
1962
+ if (this.isMenu || !Browser.isDevice)
1963
+ ul.style.display = 'block';
1955
1964
  ul.style.maxHeight = '';
1956
1965
  this.triggerOpen(ul);
1957
1966
  if (ul.querySelector('.' + FOCUSED)) {
package/src/tab/tab.js CHANGED
@@ -2148,8 +2148,15 @@ var Tab = /** @class */ (function (_super) {
2148
2148
  */
2149
2149
  Tab.prototype.onPropertyChanged = function (newProp, oldProp) {
2150
2150
  var _this = this;
2151
- for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
2152
- var prop = _a[_i];
2151
+ var sortedKeys = Object.keys(newProp).sort(function (a, b) {
2152
+ if (a === 'items')
2153
+ return -1;
2154
+ if (b === 'items')
2155
+ return 1;
2156
+ return 0;
2157
+ });
2158
+ for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) {
2159
+ var prop = sortedKeys_1[_i];
2153
2160
  switch (prop) {
2154
2161
  case 'width':
2155
2162
  setStyle(this.element, { width: formatUnit(newProp.width) });