@syncfusion/ej2-navigations 30.1.37 → 30.1.41
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/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 +31 -7
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +30 -6
- 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 +6 -6
- package/src/breadcrumb/breadcrumb.js +1 -1
- package/src/common/menu-base.js +7 -0
- package/src/context-menu/context-menu-model.d.ts +1 -1
- package/src/context-menu/context-menu.d.ts +1 -0
- package/src/context-menu/context-menu.js +11 -1
- package/src/tab/tab.js +4 -1
- package/src/toolbar/toolbar.js +8 -4
- package/styles/bds-lite.css +14 -2
- package/styles/bds.css +14 -2
- package/styles/bootstrap-dark-lite.css +16 -4
- package/styles/bootstrap-dark.css +16 -4
- package/styles/bootstrap-lite.css +16 -4
- package/styles/bootstrap.css +16 -4
- package/styles/bootstrap4-lite.css +17 -5
- package/styles/bootstrap4.css +17 -5
- package/styles/bootstrap5-dark-lite.css +16 -4
- package/styles/bootstrap5-dark.css +16 -4
- package/styles/bootstrap5-lite.css +17 -5
- package/styles/bootstrap5.3-lite.css +17 -5
- package/styles/bootstrap5.3.css +17 -5
- package/styles/bootstrap5.css +17 -5
- package/styles/context-menu/_layout.scss +5 -0
- package/styles/context-menu/bds.css +6 -0
- package/styles/context-menu/bootstrap-dark.css +6 -0
- package/styles/context-menu/bootstrap.css +6 -0
- package/styles/context-menu/bootstrap4.css +6 -0
- package/styles/context-menu/bootstrap5-dark.css +6 -0
- package/styles/context-menu/bootstrap5.3.css +6 -0
- package/styles/context-menu/bootstrap5.css +6 -0
- package/styles/context-menu/fabric-dark.css +6 -0
- package/styles/context-menu/fabric.css +6 -0
- package/styles/context-menu/fluent-dark.css +6 -0
- package/styles/context-menu/fluent.css +6 -0
- package/styles/context-menu/fluent2.css +6 -0
- package/styles/context-menu/highcontrast-light.css +6 -0
- package/styles/context-menu/highcontrast.css +6 -0
- package/styles/context-menu/material-dark.css +6 -0
- package/styles/context-menu/material.css +6 -0
- package/styles/context-menu/material3-dark.css +6 -0
- package/styles/context-menu/material3.css +6 -0
- package/styles/context-menu/tailwind-dark.css +6 -0
- package/styles/context-menu/tailwind.css +6 -0
- package/styles/context-menu/tailwind3.css +6 -0
- package/styles/fabric-dark-lite.css +14 -2
- package/styles/fabric-dark.css +14 -2
- package/styles/fabric-lite.css +15 -3
- package/styles/fabric.css +15 -3
- package/styles/fluent-dark-lite.css +21 -9
- package/styles/fluent-dark.css +21 -9
- package/styles/fluent-lite.css +21 -9
- package/styles/fluent.css +21 -9
- package/styles/fluent2-lite.css +14 -2
- package/styles/fluent2.css +14 -2
- package/styles/highcontrast-light-lite.css +14 -2
- package/styles/highcontrast-light.css +14 -2
- package/styles/highcontrast-lite.css +15 -3
- package/styles/highcontrast.css +15 -3
- package/styles/material-dark-lite.css +14 -2
- package/styles/material-dark.css +14 -2
- package/styles/material-lite.css +15 -3
- package/styles/material.css +15 -3
- package/styles/material3-dark-lite.css +14 -2
- package/styles/material3-dark.css +15 -3
- package/styles/material3-lite.css +14 -2
- package/styles/material3.css +15 -3
- package/styles/tab/_bootstrap-dark-definition.scss +3 -3
- package/styles/tab/_bootstrap-definition.scss +3 -3
- package/styles/tab/_bootstrap4-definition.scss +3 -3
- package/styles/tab/_bootstrap5-definition.scss +3 -3
- package/styles/tab/_bootstrap5.3-definition.scss +3 -3
- package/styles/tab/_fabric-definition.scss +1 -1
- package/styles/tab/_fluent-definition.scss +4 -4
- package/styles/tab/_highcontrast-definition.scss +1 -1
- package/styles/tab/_material-definition.scss +1 -1
- package/styles/tab/_tailwind-definition.scss +3 -3
- package/styles/tab/_tailwind3-definition.scss +3 -3
- package/styles/tab/bootstrap-dark.css +2 -2
- package/styles/tab/bootstrap.css +2 -2
- package/styles/tab/bootstrap4.css +3 -3
- package/styles/tab/bootstrap5-dark.css +2 -2
- package/styles/tab/bootstrap5.3.css +3 -3
- package/styles/tab/bootstrap5.css +3 -3
- package/styles/tab/fabric.css +1 -1
- package/styles/tab/fluent-dark.css +7 -7
- package/styles/tab/fluent.css +7 -7
- package/styles/tab/highcontrast.css +1 -1
- package/styles/tab/material.css +1 -1
- package/styles/tab/tailwind-dark.css +4 -4
- package/styles/tab/tailwind.css +4 -4
- package/styles/tab/tailwind3.css +3 -3
- package/styles/tailwind-dark-lite.css +18 -6
- package/styles/tailwind-dark.css +18 -6
- package/styles/tailwind-lite.css +18 -6
- package/styles/tailwind.css +18 -6
- package/styles/tailwind3-lite.css +17 -5
- package/styles/tailwind3.css +17 -5
- package/styles/toolbar/_layout.scss +13 -1
- package/styles/toolbar/bds.css +8 -2
- package/styles/toolbar/bootstrap-dark.css +8 -2
- package/styles/toolbar/bootstrap.css +8 -2
- package/styles/toolbar/bootstrap4.css +8 -2
- package/styles/toolbar/bootstrap5-dark.css +8 -2
- package/styles/toolbar/bootstrap5.3.css +8 -2
- package/styles/toolbar/bootstrap5.css +8 -2
- package/styles/toolbar/fabric-dark.css +8 -2
- package/styles/toolbar/fabric.css +8 -2
- package/styles/toolbar/fluent-dark.css +8 -2
- package/styles/toolbar/fluent.css +8 -2
- package/styles/toolbar/fluent2.css +8 -2
- package/styles/toolbar/highcontrast-light.css +8 -2
- package/styles/toolbar/highcontrast.css +8 -2
- package/styles/toolbar/material-dark.css +8 -2
- package/styles/toolbar/material.css +8 -2
- package/styles/toolbar/material3-dark.css +8 -2
- package/styles/toolbar/material3.css +8 -2
- package/styles/toolbar/tailwind-dark.css +8 -2
- package/styles/toolbar/tailwind.css +8 -2
- package/styles/toolbar/tailwind3.css +8 -2
- package/styles/treeview/_material3-definition.scss +1 -1
- package/styles/treeview/material3-dark.css +1 -1
- package/styles/treeview/material3.css +1 -1
|
@@ -3125,6 +3125,13 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3125
3125
|
MenuBase.prototype.toggleAnimation = function (ul, isMenuOpen) {
|
|
3126
3126
|
var _this = this;
|
|
3127
3127
|
if (isMenuOpen === void 0) { isMenuOpen = true; }
|
|
3128
|
+
var menuWrapper = this.getWrapper();
|
|
3129
|
+
if (menuWrapper) {
|
|
3130
|
+
var activeMenuElements = menuWrapper.querySelectorAll('.e-menu-parent');
|
|
3131
|
+
activeMenuElements.forEach(function (menuElement) {
|
|
3132
|
+
Animation.stop(menuElement);
|
|
3133
|
+
});
|
|
3134
|
+
}
|
|
3128
3135
|
var pUlHeight;
|
|
3129
3136
|
var pElement;
|
|
3130
3137
|
var animateElement = (this.enableScrolling && !this.isMenu && closest(ul, '.e-menu-vscroll'))
|
|
@@ -3966,11 +3973,15 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
3966
3973
|
}
|
|
3967
3974
|
if (this.tbarAlign) {
|
|
3968
3975
|
var tbarItems = this.element.querySelector('.' + CLS_ITEMS);
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3976
|
+
if (tbarItems) {
|
|
3977
|
+
if (tbarItems.children) {
|
|
3978
|
+
[].slice.call(tbarItems.children).forEach(function (el) {
|
|
3979
|
+
detach(el);
|
|
3980
|
+
});
|
|
3981
|
+
}
|
|
3982
|
+
this.remove(tbarItems, CLS_TBARPOS);
|
|
3983
|
+
}
|
|
3972
3984
|
this.tbarAlign = false;
|
|
3973
|
-
this.remove(tbarItems, CLS_TBARPOS);
|
|
3974
3985
|
}
|
|
3975
3986
|
this.clearProperty();
|
|
3976
3987
|
};
|
|
@@ -7537,6 +7548,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
7537
7548
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7538
7549
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7539
7550
|
};
|
|
7551
|
+
var CONTEXTMENUTEMPLATE = 'e-contextmenu-template';
|
|
7540
7552
|
/**
|
|
7541
7553
|
* The ContextMenu is a graphical user interface that appears on the user right click/touch hold operation.
|
|
7542
7554
|
* ```html
|
|
@@ -7574,6 +7586,7 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7574
7586
|
};
|
|
7575
7587
|
ContextMenu.prototype.initialize = function () {
|
|
7576
7588
|
this.template = this.itemTemplate ? this.itemTemplate : null;
|
|
7589
|
+
this.addTemplateClass();
|
|
7577
7590
|
_super.prototype.initialize.call(this);
|
|
7578
7591
|
attributes(this.element, { 'role': 'menubar', 'tabindex': '0' });
|
|
7579
7592
|
this.element.style.zIndex = getZindexPartial(this.element).toString();
|
|
@@ -7599,6 +7612,12 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7599
7612
|
ContextMenu.prototype.close = function () {
|
|
7600
7613
|
_super.prototype.closeMenu.call(this);
|
|
7601
7614
|
};
|
|
7615
|
+
ContextMenu.prototype.addTemplateClass = function () {
|
|
7616
|
+
if (!isNullOrUndefined(this.itemTemplate) && typeof this.itemTemplate === 'function' ||
|
|
7617
|
+
(typeof this.itemTemplate === 'string' && this.itemTemplate !== '')) {
|
|
7618
|
+
addClass([this.element], CONTEXTMENUTEMPLATE);
|
|
7619
|
+
}
|
|
7620
|
+
};
|
|
7602
7621
|
/**
|
|
7603
7622
|
* Called internally if any of the property value changed.
|
|
7604
7623
|
*
|
|
@@ -7622,6 +7641,8 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
|
|
|
7622
7641
|
break;
|
|
7623
7642
|
case 'itemTemplate':
|
|
7624
7643
|
this.itemTemplate = newProp.itemTemplate;
|
|
7644
|
+
removeClass([this.element], CONTEXTMENUTEMPLATE);
|
|
7645
|
+
this.addTemplateClass();
|
|
7625
7646
|
this.refresh();
|
|
7626
7647
|
}
|
|
7627
7648
|
}
|
|
@@ -8572,7 +8593,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8572
8593
|
this.actEleId = target.id;
|
|
8573
8594
|
if (this.checkPopupOverflow(lastChild)) {
|
|
8574
8595
|
var prevEle = this.tbItems.lastChild.previousElementSibling;
|
|
8575
|
-
|
|
8596
|
+
prevEle = (prevEle && prevEle.classList.contains(CLS_INDICATOR) ? prevEle.previousElementSibling : prevEle);
|
|
8597
|
+
if (prevEle) {
|
|
8598
|
+
this.checkPopupOverflow(prevEle);
|
|
8599
|
+
}
|
|
8576
8600
|
}
|
|
8577
8601
|
this.isPopup = true;
|
|
8578
8602
|
}
|
|
@@ -17723,10 +17747,10 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
|
|
|
17723
17747
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
17724
17748
|
var prop = _a[_i];
|
|
17725
17749
|
switch (prop) {
|
|
17726
|
-
case 'items':
|
|
17727
17750
|
case 'enableActiveItemNavigation':
|
|
17728
17751
|
this.reRenderItems();
|
|
17729
17752
|
break;
|
|
17753
|
+
case 'items':
|
|
17730
17754
|
case 'activeItem':
|
|
17731
17755
|
this._maxItems = this.maxItems;
|
|
17732
17756
|
this.initPvtProps();
|