@syncfusion/ej2-navigations 34.2.6 → 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 +6 -3
- 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 +29 -1
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +29 -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/common/menu-base.js +8 -0
- package/src/sidebar/sidebar-model.d.ts +5 -9
- package/src/sidebar/sidebar.d.ts +5 -9
- package/src/tab/tab.d.ts +1 -0
- package/src/tab/tab.js +18 -1
- package/src/treeview/treeview-model.d.ts +7 -7
- package/src/treeview/treeview.d.ts +7 -7
|
@@ -2100,6 +2100,14 @@ let MenuBase = class MenuBase extends Component {
|
|
|
2100
2100
|
const menuType = type;
|
|
2101
2101
|
let observedElement;
|
|
2102
2102
|
this.trigger('beforeOpen', eventArgs, (observedOpenArgs) => {
|
|
2103
|
+
const wrapper = this.getWrapper();
|
|
2104
|
+
if (this.isAngular && wrapper && this.element.classList.contains('e-contextmenu')) {
|
|
2105
|
+
const cdkPane = document.querySelector('.cdk-overlay-pane');
|
|
2106
|
+
const popoverEl = document.querySelector('[popover]');
|
|
2107
|
+
if (cdkPane && popoverEl) {
|
|
2108
|
+
cdkPane.appendChild(wrapper);
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2103
2111
|
switch (menuType) {
|
|
2104
2112
|
case 'menu':
|
|
2105
2113
|
if (!this.hamburgerMode) {
|
|
@@ -7415,6 +7423,9 @@ let Accordion = class Accordion extends Component {
|
|
|
7415
7423
|
const newVal = Object(newProp.items[parseInt(index.toString(), 10)])[`${property[parseInt(k.toString(), 10)]}`];
|
|
7416
7424
|
const temp = property[parseInt(k.toString(), 10)];
|
|
7417
7425
|
const content = select('.' + CLS_CTENT, item);
|
|
7426
|
+
if (temp === 'expanded' && !newVal && !isNullOrUndefined(item) && item.classList.contains(CLS_ACTIVE)) {
|
|
7427
|
+
this.expandItem(false, index);
|
|
7428
|
+
}
|
|
7418
7429
|
if (temp === 'header' || temp === 'iconCss' || temp === 'expanded' || ((temp === 'content') && (oldVal === ''))) {
|
|
7419
7430
|
this.updateItem(item, index);
|
|
7420
7431
|
}
|
|
@@ -8354,7 +8365,6 @@ let Tab = class Tab extends Component {
|
|
|
8354
8365
|
this.tbObj.isStringTemplate = true;
|
|
8355
8366
|
this.tbObj.createElement = this.createElement;
|
|
8356
8367
|
this.tbObj.appendTo(this.hdrEle);
|
|
8357
|
-
attributes(this.hdrEle, { role: 'tablist' });
|
|
8358
8368
|
if (!isNullOrUndefined(this.element.getAttribute('aria-label'))) {
|
|
8359
8369
|
this.hdrEle.setAttribute('aria-label', this.element.getAttribute('aria-label'));
|
|
8360
8370
|
this.element.removeAttribute('aria-label');
|
|
@@ -8363,6 +8373,16 @@ let Tab = class Tab extends Component {
|
|
|
8363
8373
|
this.hdrEle.setAttribute('aria-labelledby', this.element.getAttribute('aria-labelledby'));
|
|
8364
8374
|
this.element.removeAttribute('aria-labelledby');
|
|
8365
8375
|
}
|
|
8376
|
+
const scrollContent = this.tbObj.element.querySelector('.' + (this.isVertical() ? CLS_VSCRCNT : CLS_HSCRCNT));
|
|
8377
|
+
const popupContainer = select('.' + CLS_TB_POP, this.tbObj.element);
|
|
8378
|
+
const isScrollableMode = this.overflowMode === 'Scrollable' || this.overflowMode === 'MultiRow';
|
|
8379
|
+
const isPopupMode = this.overflowMode === 'Popup' || this.overflowMode === 'Extended';
|
|
8380
|
+
if (isScrollableMode) {
|
|
8381
|
+
this.setTablistRole(scrollContent);
|
|
8382
|
+
}
|
|
8383
|
+
else if (isPopupMode) {
|
|
8384
|
+
this.setTablistRole(popupContainer);
|
|
8385
|
+
}
|
|
8366
8386
|
this.updatePopupIconAriaLabel();
|
|
8367
8387
|
this.setCloseButton(this.showCloseButton);
|
|
8368
8388
|
const toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
|
|
@@ -8370,6 +8390,14 @@ let Tab = class Tab extends Component {
|
|
|
8370
8390
|
if (isNullOrUndefined(toolbarHeader.id) || toolbarHeader.id === '') {
|
|
8371
8391
|
toolbarHeader.id = this.element.id + '_' + 'tab_header_items';
|
|
8372
8392
|
}
|
|
8393
|
+
if (isPopupMode || (isScrollableMode && isNullOrUndefined(scrollContent))) {
|
|
8394
|
+
this.setTablistRole(toolbarHeader);
|
|
8395
|
+
}
|
|
8396
|
+
}
|
|
8397
|
+
}
|
|
8398
|
+
setTablistRole(el) {
|
|
8399
|
+
if (!isNullOrUndefined(el)) {
|
|
8400
|
+
attributes(el, { role: 'tablist' });
|
|
8373
8401
|
}
|
|
8374
8402
|
}
|
|
8375
8403
|
updatePopupIconAriaLabel() {
|