@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.
- package/CHANGELOG.md +15 -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 +7 -7
- package/src/common/menu-base.d.ts +1 -0
- package/src/common/menu-base.js +11 -2
- package/src/tab/tab.js +9 -2
|
@@ -1756,7 +1756,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1756
1756
|
else if (isOpen && isNullOrUndefined(ulIndex) && _this.navIdx.length) {
|
|
1757
1757
|
_this.closeMenu(null, e);
|
|
1758
1758
|
}
|
|
1759
|
-
else if (isOpen && !_this.isMenu && !ulIndex && _this.navIdx.length === 0 && !_this.isMenusClosed) {
|
|
1759
|
+
else if (isOpen && !_this.isMenu && !ulIndex && _this.navIdx.length === 0 && !_this.isMenusClosed && !_this.isCmenuHover) {
|
|
1760
1760
|
_this.isMenusClosed = true;
|
|
1761
1761
|
_this.closeMenu(0, e);
|
|
1762
1762
|
}
|
|
@@ -2361,6 +2361,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2361
2361
|
MenuBase.prototype.moverHandler = function (e) {
|
|
2362
2362
|
var trgt = e.target;
|
|
2363
2363
|
this.liTrgt = trgt;
|
|
2364
|
+
if (!this.isMenu)
|
|
2365
|
+
this.isCmenuHover = true;
|
|
2364
2366
|
var cli = this.getLI(trgt);
|
|
2365
2367
|
var wrapper = cli ? closest(cli, '.e-' + this.getModuleName() + '-wrapper') : this.getWrapper();
|
|
2366
2368
|
var hdrWrapper = this.getWrapper();
|
|
@@ -2416,6 +2418,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2416
2418
|
}
|
|
2417
2419
|
this.isClosed = false;
|
|
2418
2420
|
}
|
|
2421
|
+
if (!this.isMenu)
|
|
2422
|
+
this.isCmenuHover = false;
|
|
2419
2423
|
};
|
|
2420
2424
|
MenuBase.prototype.removeStateWrapper = function () {
|
|
2421
2425
|
if (this.liTrgt) {
|
|
@@ -2538,10 +2542,14 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2538
2542
|
this.keyType = 'click';
|
|
2539
2543
|
if (this.showItemOnClick) {
|
|
2540
2544
|
this.setLISelected(cli);
|
|
2545
|
+
if (!this.isMenu)
|
|
2546
|
+
this.isCmenuHover = true;
|
|
2541
2547
|
}
|
|
2542
2548
|
this.closeMenu(culIdx + 1, e);
|
|
2543
2549
|
if (this.showItemOnClick) {
|
|
2544
2550
|
this.setLISelected(cli);
|
|
2551
|
+
if (!this.isMenu)
|
|
2552
|
+
this.isCmenuHover = false;
|
|
2545
2553
|
}
|
|
2546
2554
|
}
|
|
2547
2555
|
}
|
|
@@ -3008,7 +3016,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3008
3016
|
};
|
|
3009
3017
|
MenuBase.prototype.end = function (ul, isMenuOpen) {
|
|
3010
3018
|
if (isMenuOpen) {
|
|
3011
|
-
|
|
3019
|
+
if (this.isMenu || !Browser.isDevice)
|
|
3020
|
+
ul.style.display = 'block';
|
|
3012
3021
|
ul.style.maxHeight = '';
|
|
3013
3022
|
this.triggerOpen(ul);
|
|
3014
3023
|
if (ul.querySelector('.' + FOCUSED)) {
|
|
@@ -9777,8 +9786,15 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9777
9786
|
*/
|
|
9778
9787
|
Tab.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
9779
9788
|
var _this = this;
|
|
9780
|
-
|
|
9781
|
-
|
|
9789
|
+
var sortedKeys = Object.keys(newProp).sort(function (a, b) {
|
|
9790
|
+
if (a === 'items')
|
|
9791
|
+
return -1;
|
|
9792
|
+
if (b === 'items')
|
|
9793
|
+
return 1;
|
|
9794
|
+
return 0;
|
|
9795
|
+
});
|
|
9796
|
+
for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) {
|
|
9797
|
+
var prop = sortedKeys_1[_i];
|
|
9782
9798
|
switch (prop) {
|
|
9783
9799
|
case 'width':
|
|
9784
9800
|
setStyleAttribute(this.element, { width: formatUnit(newProp.width) });
|