@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.
@@ -2190,6 +2190,14 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2190
2190
  var menuType = type;
2191
2191
  var observedElement;
2192
2192
  this.trigger('beforeOpen', eventArgs, function (observedOpenArgs) {
2193
+ var wrapper = _this.getWrapper();
2194
+ if (_this.isAngular && wrapper && _this.element.classList.contains('e-contextmenu')) {
2195
+ var cdkPane = document.querySelector('.cdk-overlay-pane');
2196
+ var popoverEl = document.querySelector('[popover]');
2197
+ if (cdkPane && popoverEl) {
2198
+ cdkPane.appendChild(wrapper);
2199
+ }
2200
+ }
2193
2201
  switch (menuType) {
2194
2202
  case 'menu':
2195
2203
  if (!_this.hamburgerMode) {
@@ -7619,6 +7627,9 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
7619
7627
  var newVal = Object(newProp.items[parseInt(index.toString(), 10)])["" + property[parseInt(k.toString(), 10)]];
7620
7628
  var temp = property[parseInt(k.toString(), 10)];
7621
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
+ }
7622
7633
  if (temp === 'header' || temp === 'iconCss' || temp === 'expanded' || ((temp === 'content') && (oldVal === ''))) {
7623
7634
  this.updateItem(item, index);
7624
7635
  }
@@ -8630,7 +8641,6 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8630
8641
  this.tbObj.isStringTemplate = true;
8631
8642
  this.tbObj.createElement = this.createElement;
8632
8643
  this.tbObj.appendTo(this.hdrEle);
8633
- attributes(this.hdrEle, { role: 'tablist' });
8634
8644
  if (!isNullOrUndefined(this.element.getAttribute('aria-label'))) {
8635
8645
  this.hdrEle.setAttribute('aria-label', this.element.getAttribute('aria-label'));
8636
8646
  this.element.removeAttribute('aria-label');
@@ -8639,6 +8649,16 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8639
8649
  this.hdrEle.setAttribute('aria-labelledby', this.element.getAttribute('aria-labelledby'));
8640
8650
  this.element.removeAttribute('aria-labelledby');
8641
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
+ }
8642
8662
  this.updatePopupIconAriaLabel();
8643
8663
  this.setCloseButton(this.showCloseButton);
8644
8664
  var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
@@ -8646,6 +8666,14 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8646
8666
  if (isNullOrUndefined(toolbarHeader.id) || toolbarHeader.id === '') {
8647
8667
  toolbarHeader.id = this.element.id + '_' + 'tab_header_items';
8648
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' });
8649
8677
  }
8650
8678
  };
8651
8679
  Tab.prototype.updatePopupIconAriaLabel = function () {