@syncfusion/ej2-navigations 34.2.7 → 34.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/README.md +5 -5
- 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 +21 -1
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +21 -1
- 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 +8 -8
- package/src/accordion/accordion.js +3 -0
- package/src/tab/tab.d.ts +1 -0
- package/src/tab/tab.js +18 -1
|
@@ -7627,6 +7627,9 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
|
|
|
7627
7627
|
var newVal = Object(newProp.items[parseInt(index.toString(), 10)])["" + property[parseInt(k.toString(), 10)]];
|
|
7628
7628
|
var temp = property[parseInt(k.toString(), 10)];
|
|
7629
7629
|
var content = select('.' + CLS_CTENT, item);
|
|
7630
|
+
if (temp === 'expanded' && !newVal && !isNullOrUndefined(item) && item.classList.contains(CLS_ACTIVE)) {
|
|
7631
|
+
this.expandItem(false, index);
|
|
7632
|
+
}
|
|
7630
7633
|
if (temp === 'header' || temp === 'iconCss' || temp === 'expanded' || ((temp === 'content') && (oldVal === ''))) {
|
|
7631
7634
|
this.updateItem(item, index);
|
|
7632
7635
|
}
|
|
@@ -8638,7 +8641,6 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8638
8641
|
this.tbObj.isStringTemplate = true;
|
|
8639
8642
|
this.tbObj.createElement = this.createElement;
|
|
8640
8643
|
this.tbObj.appendTo(this.hdrEle);
|
|
8641
|
-
attributes(this.hdrEle, { role: 'tablist' });
|
|
8642
8644
|
if (!isNullOrUndefined(this.element.getAttribute('aria-label'))) {
|
|
8643
8645
|
this.hdrEle.setAttribute('aria-label', this.element.getAttribute('aria-label'));
|
|
8644
8646
|
this.element.removeAttribute('aria-label');
|
|
@@ -8647,6 +8649,16 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8647
8649
|
this.hdrEle.setAttribute('aria-labelledby', this.element.getAttribute('aria-labelledby'));
|
|
8648
8650
|
this.element.removeAttribute('aria-labelledby');
|
|
8649
8651
|
}
|
|
8652
|
+
var scrollContent = this.tbObj.element.querySelector('.' + (this.isVertical() ? CLS_VSCRCNT : CLS_HSCRCNT));
|
|
8653
|
+
var popupContainer = select('.' + CLS_TB_POP, this.tbObj.element);
|
|
8654
|
+
var isScrollableMode = this.overflowMode === 'Scrollable' || this.overflowMode === 'MultiRow';
|
|
8655
|
+
var isPopupMode = this.overflowMode === 'Popup' || this.overflowMode === 'Extended';
|
|
8656
|
+
if (isScrollableMode) {
|
|
8657
|
+
this.setTablistRole(scrollContent);
|
|
8658
|
+
}
|
|
8659
|
+
else if (isPopupMode) {
|
|
8660
|
+
this.setTablistRole(popupContainer);
|
|
8661
|
+
}
|
|
8650
8662
|
this.updatePopupIconAriaLabel();
|
|
8651
8663
|
this.setCloseButton(this.showCloseButton);
|
|
8652
8664
|
var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
|
|
@@ -8654,6 +8666,14 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
8654
8666
|
if (isNullOrUndefined(toolbarHeader.id) || toolbarHeader.id === '') {
|
|
8655
8667
|
toolbarHeader.id = this.element.id + '_' + 'tab_header_items';
|
|
8656
8668
|
}
|
|
8669
|
+
if (isPopupMode || (isScrollableMode && isNullOrUndefined(scrollContent))) {
|
|
8670
|
+
this.setTablistRole(toolbarHeader);
|
|
8671
|
+
}
|
|
8672
|
+
}
|
|
8673
|
+
};
|
|
8674
|
+
Tab.prototype.setTablistRole = function (el) {
|
|
8675
|
+
if (!isNullOrUndefined(el)) {
|
|
8676
|
+
attributes(el, { role: 'tablist' });
|
|
8657
8677
|
}
|
|
8658
8678
|
};
|
|
8659
8679
|
Tab.prototype.updatePopupIconAriaLabel = function () {
|