@syncfusion/ej2-navigations 35.2.12 → 35.2.13
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 +1 -10
- package/dist/ej2-navigations.umd.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +41 -0
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +41 -0
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +1 -10
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +1 -1
- package/src/tab/tab.d.ts +1 -0
- package/src/tab/tab.js +38 -0
- package/src/toolbar/toolbar.js +3 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: index.d.ts
|
|
3
|
-
* version : 35.2.12
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
1
|
import * as _navigations from '@syncfusion/ej2-navigations';
|
|
11
2
|
|
|
12
3
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-navigations",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.13",
|
|
4
4
|
"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",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
package/src/tab/tab.d.ts
CHANGED
|
@@ -558,6 +558,7 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
558
558
|
*/
|
|
559
559
|
protected render(): void;
|
|
560
560
|
private renderContainer;
|
|
561
|
+
private updateTablistRole;
|
|
561
562
|
private renderHeader;
|
|
562
563
|
private setTablistRole;
|
|
563
564
|
private updatePopupIconAriaLabel;
|
package/src/tab/tab.js
CHANGED
|
@@ -389,6 +389,43 @@ var Tab = /** @class */ (function (_super) {
|
|
|
389
389
|
this.setRTL(this.enableRtl);
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
|
+
Tab.prototype.updateTablistRole = function () {
|
|
393
|
+
if (isNOU(this.tbObj) || isNOU(this.tbObj.element)) {
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
var scrollContent = this.tbObj.element.querySelector('.' + (this.isVertical() ? CLS_VSCRCNT : CLS_HSCRCNT));
|
|
397
|
+
var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
|
|
398
|
+
var popupContainer = this.tbObj.element.querySelector('.' + CLS_TB_POP);
|
|
399
|
+
var isScrollableMode = this.overflowMode === 'Scrollable' ||
|
|
400
|
+
this.overflowMode === 'MultiRow';
|
|
401
|
+
var isPopupMode = this.overflowMode === 'Popup' ||
|
|
402
|
+
this.overflowMode === 'Extended';
|
|
403
|
+
if (!isNOU(scrollContent)) {
|
|
404
|
+
scrollContent.removeAttribute('role');
|
|
405
|
+
}
|
|
406
|
+
if (!isNOU(toolbarHeader)) {
|
|
407
|
+
toolbarHeader.removeAttribute('role');
|
|
408
|
+
}
|
|
409
|
+
if (!isNOU(popupContainer)) {
|
|
410
|
+
popupContainer.removeAttribute('role');
|
|
411
|
+
}
|
|
412
|
+
if (isScrollableMode) {
|
|
413
|
+
if (!isNOU(scrollContent)) {
|
|
414
|
+
this.setTablistRole(scrollContent);
|
|
415
|
+
}
|
|
416
|
+
else if (!isNOU(toolbarHeader)) {
|
|
417
|
+
this.setTablistRole(toolbarHeader);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
else if (isPopupMode) {
|
|
421
|
+
if (!isNOU(popupContainer)) {
|
|
422
|
+
this.setTablistRole(popupContainer);
|
|
423
|
+
}
|
|
424
|
+
if (!isNOU(toolbarHeader)) {
|
|
425
|
+
this.setTablistRole(toolbarHeader);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
};
|
|
392
429
|
Tab.prototype.renderHeader = function () {
|
|
393
430
|
var _this = this;
|
|
394
431
|
var hdrPlace = this.headerPlacement;
|
|
@@ -2560,6 +2597,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
2560
2597
|
var hdrEle = this.getTabHeader();
|
|
2561
2598
|
setStyle(this.cntEle, { 'height': (this.element.clientHeight - hdrEle.offsetHeight) + 'px' });
|
|
2562
2599
|
}
|
|
2600
|
+
this.updateTablistRole();
|
|
2563
2601
|
var activeEle = select('.' + CLS_TB_ITEM + '.' + CLS_TB_POPUP + '.' + CLS_ACTIVE, this.element);
|
|
2564
2602
|
if (!isNOU(activeEle) && this.reorderActiveTab) {
|
|
2565
2603
|
this.select(this.getEleIndex(activeEle));
|
package/src/toolbar/toolbar.js
CHANGED
|
@@ -939,6 +939,9 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
939
939
|
var width = 0;
|
|
940
940
|
var style;
|
|
941
941
|
[].slice.call(selectAll('.' + CLS_ITEM, items)).forEach(function (el) {
|
|
942
|
+
if (el.parentElement && closest(el.parentElement, '.e-toolbar') !== _this.element) {
|
|
943
|
+
return;
|
|
944
|
+
}
|
|
942
945
|
if (isVisible(el)) {
|
|
943
946
|
style = window.getComputedStyle(el);
|
|
944
947
|
width += _this.isVertical ? el.offsetHeight : el.offsetWidth;
|