@syncfusion/ej2-navigations 25.2.3 → 25.2.6
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.
- package/CHANGELOG.md +17 -0
- package/dist/ej2-navigations.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +19 -3
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +20 -4
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/common/menu-base.d.ts +1 -0
- package/src/common/menu-base.js +11 -2
- package/src/tab/tab.js +9 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.2.
|
|
3
|
+
* version : 25.2.6
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@25.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-0YDHh0Lg0SdCX3ytyP1530ZoQLDsXTqgLv4vmfKJh3Gm+KMIbshD9GnxR9i6fra3Vu6x+UkU1n/deWXbWwpgng==",
|
|
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.
|
|
43
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-25.2.4.tgz",
|
|
43
|
+
"_shasum": "6085501fa520bfa8d01bedaf6334dd0dce25740b",
|
|
44
44
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
45
45
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
46
46
|
"author": {
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"bundleDependencies": false,
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@syncfusion/ej2-base": "~25.2.
|
|
55
|
-
"@syncfusion/ej2-buttons": "~25.2.
|
|
54
|
+
"@syncfusion/ej2-base": "~25.2.5",
|
|
55
|
+
"@syncfusion/ej2-buttons": "~25.2.6",
|
|
56
56
|
"@syncfusion/ej2-data": "~25.2.3",
|
|
57
|
-
"@syncfusion/ej2-inputs": "~25.2.
|
|
57
|
+
"@syncfusion/ej2-inputs": "~25.2.6",
|
|
58
58
|
"@syncfusion/ej2-lists": "~25.2.3",
|
|
59
|
-
"@syncfusion/ej2-popups": "~25.2.
|
|
59
|
+
"@syncfusion/ej2-popups": "~25.2.6"
|
|
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.
|
|
164
|
+
"version": "25.2.6",
|
|
165
165
|
"sideEffects": false
|
|
166
166
|
}
|
package/src/common/menu-base.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
2152
|
-
|
|
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) });
|