@syncfusion/ej2-navigations 29.2.5 → 29.2.8
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 +17 -3
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +18 -3
- 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 +12 -64
- package/src/common/menu-base.js +12 -2
- package/src/tab/tab.js +6 -1
- package/styles/bds-lite.css +15 -0
- package/styles/bds.css +15 -0
- package/styles/bootstrap-dark-lite.css +15 -0
- package/styles/bootstrap-dark.css +15 -0
- package/styles/bootstrap-lite.css +15 -0
- package/styles/bootstrap.css +17 -2
- package/styles/bootstrap4-lite.css +15 -0
- package/styles/bootstrap4.css +15 -0
- package/styles/bootstrap5-dark-lite.css +15 -0
- package/styles/bootstrap5-dark.css +15 -0
- package/styles/bootstrap5-lite.css +15 -0
- package/styles/bootstrap5.3-lite.css +15 -0
- package/styles/bootstrap5.3.css +15 -0
- package/styles/bootstrap5.css +15 -0
- package/styles/fabric-dark-lite.css +15 -0
- package/styles/fabric-dark.css +15 -0
- package/styles/fabric-lite.css +15 -0
- package/styles/fabric.css +15 -0
- package/styles/fluent-dark-lite.css +15 -0
- package/styles/fluent-dark.css +15 -0
- package/styles/fluent-lite.css +15 -0
- package/styles/fluent.css +15 -0
- package/styles/fluent2-lite.css +15 -0
- package/styles/fluent2.css +15 -0
- package/styles/highcontrast-light-lite.css +15 -0
- package/styles/highcontrast-light.css +15 -0
- package/styles/highcontrast-lite.css +17 -2
- package/styles/highcontrast.css +17 -2
- package/styles/material-dark-lite.css +15 -0
- package/styles/material-dark.css +15 -0
- package/styles/material-lite.css +17 -2
- package/styles/material.css +17 -2
- package/styles/material3-dark-lite.css +15 -0
- package/styles/material3-dark.css +15 -0
- package/styles/material3-lite.css +15 -0
- package/styles/material3.css +15 -0
- package/styles/tailwind-dark-lite.css +15 -0
- package/styles/tailwind-dark.css +15 -0
- package/styles/tailwind-lite.css +15 -0
- package/styles/tailwind.css +15 -0
- package/styles/tailwind3-lite.css +15 -0
- package/styles/tailwind3.css +15 -0
- package/styles/toolbar/_bootstrap-definition.scss +1 -1
- package/styles/toolbar/_highcontrast-definition.scss +1 -1
- package/styles/toolbar/_layout.scss +21 -0
- package/styles/toolbar/_material-definition.scss +2 -2
- package/styles/toolbar/bds.css +15 -0
- package/styles/toolbar/bootstrap-dark.css +15 -0
- package/styles/toolbar/bootstrap.css +17 -2
- package/styles/toolbar/bootstrap4.css +15 -0
- package/styles/toolbar/bootstrap5-dark.css +15 -0
- package/styles/toolbar/bootstrap5.3.css +15 -0
- package/styles/toolbar/bootstrap5.css +15 -0
- package/styles/toolbar/fabric-dark.css +15 -0
- package/styles/toolbar/fabric.css +15 -0
- package/styles/toolbar/fluent-dark.css +15 -0
- package/styles/toolbar/fluent.css +15 -0
- package/styles/toolbar/fluent2.css +15 -0
- package/styles/toolbar/highcontrast-light.css +15 -0
- package/styles/toolbar/highcontrast.css +17 -2
- package/styles/toolbar/material-dark.css +15 -0
- package/styles/toolbar/material.css +17 -2
- package/styles/toolbar/material3-dark.css +15 -0
- package/styles/toolbar/material3.css +15 -0
- package/styles/toolbar/tailwind-dark.css +15 -0
- package/styles/toolbar/tailwind.css +15 -0
- package/styles/toolbar/tailwind3.css +15 -0
|
@@ -2201,7 +2201,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
2201
2201
|
}
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
|
-
setPosition(li, ul, top, left) {
|
|
2204
|
+
setPosition(li, ul, top, left, isOpen = false) {
|
|
2205
2205
|
const px = 'px';
|
|
2206
2206
|
this.toggleVisiblity(ul);
|
|
2207
2207
|
if (ul === this.element || (left > -1 && top > -1)) {
|
|
@@ -2260,6 +2260,10 @@ let MenuBase = class MenuBase extends Component {
|
|
|
2260
2260
|
this.toggleVisiblity(ul, false);
|
|
2261
2261
|
if (this.isCMenu && this.enableScrolling && ul) {
|
|
2262
2262
|
ul.style.height = '';
|
|
2263
|
+
ul.style.top = '';
|
|
2264
|
+
ul.style.left = '';
|
|
2265
|
+
ul.style.width = '';
|
|
2266
|
+
ul.style.position = '';
|
|
2263
2267
|
}
|
|
2264
2268
|
const wrapper = closest(this.element, '.e-' + this.getModuleName() + '-wrapper');
|
|
2265
2269
|
if (!this.isMenu && this.enableScrolling && ul && wrapper && wrapper.offsetHeight > 0) {
|
|
@@ -2277,7 +2281,7 @@ let MenuBase = class MenuBase extends Component {
|
|
|
2277
2281
|
left: `${left}px`,
|
|
2278
2282
|
width: `${cmenuWidth}px`,
|
|
2279
2283
|
position: 'absolute',
|
|
2280
|
-
display: 'none'
|
|
2284
|
+
display: !isOpen ? 'none' : 'block'
|
|
2281
2285
|
});
|
|
2282
2286
|
}
|
|
2283
2287
|
else {
|
|
@@ -2868,6 +2872,11 @@ let MenuBase = class MenuBase extends Component {
|
|
|
2868
2872
|
addScrolling(this.createElement, wrapper, this.element, 'hscroll', this.enableRtl);
|
|
2869
2873
|
}
|
|
2870
2874
|
}
|
|
2875
|
+
if (this.enableScrolling && this.element.classList.contains('e-contextmenu')) {
|
|
2876
|
+
this.isCMenu = true;
|
|
2877
|
+
this.setPosition(this.lItem, this.uList, this.top, this.left, true);
|
|
2878
|
+
this.isCMenu = false;
|
|
2879
|
+
}
|
|
2871
2880
|
if (!this.hamburgerMode) {
|
|
2872
2881
|
for (let i = 1, count = wrapper.childElementCount; i < count; i++) {
|
|
2873
2882
|
detach(wrapper.lastElementChild);
|
|
@@ -7927,6 +7936,7 @@ let Tab = class Tab extends Component {
|
|
|
7927
7936
|
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
7928
7937
|
this.renderReactTemplates(() => {
|
|
7929
7938
|
this.refreshOverflow();
|
|
7939
|
+
this.selectingContent(this.selectedItem, this.isInteracted);
|
|
7930
7940
|
this.refreshActiveBorder();
|
|
7931
7941
|
});
|
|
7932
7942
|
}
|
|
@@ -9606,7 +9616,11 @@ let Tab = class Tab extends Component {
|
|
|
9606
9616
|
*/
|
|
9607
9617
|
hideTab(index, value) {
|
|
9608
9618
|
let items;
|
|
9609
|
-
|
|
9619
|
+
let tabId;
|
|
9620
|
+
if (index >= 0 && index < this.tbItem.length) {
|
|
9621
|
+
tabId = this.tbItem[index].getAttribute('id');
|
|
9622
|
+
}
|
|
9623
|
+
const item = this.element.querySelector(`[id="${tabId}"]`);
|
|
9610
9624
|
if (isNullOrUndefined(item)) {
|
|
9611
9625
|
return;
|
|
9612
9626
|
}
|