@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
|
@@ -4754,6 +4754,9 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4754
4754
|
var width = 0;
|
|
4755
4755
|
var style;
|
|
4756
4756
|
[].slice.call(selectAll('.' + CLS_ITEM, items)).forEach(function (el) {
|
|
4757
|
+
if (el.parentElement && closest(el.parentElement, '.e-toolbar') !== _this.element) {
|
|
4758
|
+
return;
|
|
4759
|
+
}
|
|
4757
4760
|
if (isVisible(el)) {
|
|
4758
4761
|
style = window.getComputedStyle(el);
|
|
4759
4762
|
width += _this.isVertical ? el.offsetHeight : el.offsetWidth;
|
|
@@ -8645,6 +8648,43 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8645
8648
|
this.setRTL(this.enableRtl);
|
|
8646
8649
|
}
|
|
8647
8650
|
};
|
|
8651
|
+
Tab.prototype.updateTablistRole = function () {
|
|
8652
|
+
if (isNullOrUndefined(this.tbObj) || isNullOrUndefined(this.tbObj.element)) {
|
|
8653
|
+
return;
|
|
8654
|
+
}
|
|
8655
|
+
var scrollContent = this.tbObj.element.querySelector('.' + (this.isVertical() ? CLS_VSCRCNT : CLS_HSCRCNT));
|
|
8656
|
+
var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
|
|
8657
|
+
var popupContainer = this.tbObj.element.querySelector('.' + CLS_TB_POP);
|
|
8658
|
+
var isScrollableMode = this.overflowMode === 'Scrollable' ||
|
|
8659
|
+
this.overflowMode === 'MultiRow';
|
|
8660
|
+
var isPopupMode = this.overflowMode === 'Popup' ||
|
|
8661
|
+
this.overflowMode === 'Extended';
|
|
8662
|
+
if (!isNullOrUndefined(scrollContent)) {
|
|
8663
|
+
scrollContent.removeAttribute('role');
|
|
8664
|
+
}
|
|
8665
|
+
if (!isNullOrUndefined(toolbarHeader)) {
|
|
8666
|
+
toolbarHeader.removeAttribute('role');
|
|
8667
|
+
}
|
|
8668
|
+
if (!isNullOrUndefined(popupContainer)) {
|
|
8669
|
+
popupContainer.removeAttribute('role');
|
|
8670
|
+
}
|
|
8671
|
+
if (isScrollableMode) {
|
|
8672
|
+
if (!isNullOrUndefined(scrollContent)) {
|
|
8673
|
+
this.setTablistRole(scrollContent);
|
|
8674
|
+
}
|
|
8675
|
+
else if (!isNullOrUndefined(toolbarHeader)) {
|
|
8676
|
+
this.setTablistRole(toolbarHeader);
|
|
8677
|
+
}
|
|
8678
|
+
}
|
|
8679
|
+
else if (isPopupMode) {
|
|
8680
|
+
if (!isNullOrUndefined(popupContainer)) {
|
|
8681
|
+
this.setTablistRole(popupContainer);
|
|
8682
|
+
}
|
|
8683
|
+
if (!isNullOrUndefined(toolbarHeader)) {
|
|
8684
|
+
this.setTablistRole(toolbarHeader);
|
|
8685
|
+
}
|
|
8686
|
+
}
|
|
8687
|
+
};
|
|
8648
8688
|
Tab.prototype.renderHeader = function () {
|
|
8649
8689
|
var _this = this;
|
|
8650
8690
|
var hdrPlace = this.headerPlacement;
|
|
@@ -10815,6 +10855,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
10815
10855
|
var hdrEle = this.getTabHeader();
|
|
10816
10856
|
setStyleAttribute(this.cntEle, { 'height': (this.element.clientHeight - hdrEle.offsetHeight) + 'px' });
|
|
10817
10857
|
}
|
|
10858
|
+
this.updateTablistRole();
|
|
10818
10859
|
var activeEle = select('.' + CLS_TB_ITEM + '.' + CLS_TB_POPUP + '.' + CLS_ACTIVE$1, this.element);
|
|
10819
10860
|
if (!isNullOrUndefined(activeEle) && this.reorderActiveTab) {
|
|
10820
10861
|
this.select(this.getEleIndex(activeEle));
|