@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 34.2.7
3
+ * version : 34.2.8
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-navigations",
3
- "version": "34.2.7",
3
+ "version": "34.2.8",
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",
@@ -8,13 +8,13 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-navigations.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~34.2.6",
12
- "@syncfusion/ej2-buttons": "~34.2.6",
13
- "@syncfusion/ej2-data": "~34.2.6",
14
- "@syncfusion/ej2-inputs": "~34.2.7",
15
- "@syncfusion/ej2-lists": "~34.2.6",
16
- "@syncfusion/ej2-notifications": "~34.2.6",
17
- "@syncfusion/ej2-popups": "~34.2.6"
11
+ "@syncfusion/ej2-base": "~34.2.8",
12
+ "@syncfusion/ej2-buttons": "~34.2.8",
13
+ "@syncfusion/ej2-data": "~34.2.8",
14
+ "@syncfusion/ej2-inputs": "~34.2.8",
15
+ "@syncfusion/ej2-lists": "~34.2.8",
16
+ "@syncfusion/ej2-notifications": "~34.2.8",
17
+ "@syncfusion/ej2-popups": "~34.2.8"
18
18
  },
19
19
  "devDependencies": {},
20
20
  "keywords": [
@@ -1307,6 +1307,9 @@ var Accordion = /** @class */ (function (_super) {
1307
1307
  var newVal = Object(newProp.items[parseInt(index.toString(), 10)])["" + property[parseInt(k.toString(), 10)]];
1308
1308
  var temp = property[parseInt(k.toString(), 10)];
1309
1309
  var content = select('.' + CLS_CTENT, item);
1310
+ if (temp === 'expanded' && !newVal && !isNOU(item) && item.classList.contains(CLS_ACTIVE)) {
1311
+ this.expandItem(false, index);
1312
+ }
1310
1313
  if (temp === 'header' || temp === 'iconCss' || temp === 'expanded' || ((temp === 'content') && (oldVal === ''))) {
1311
1314
  this.updateItem(item, index);
1312
1315
  }
package/src/tab/tab.d.ts CHANGED
@@ -559,6 +559,7 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
559
559
  protected render(): void;
560
560
  private renderContainer;
561
561
  private renderHeader;
562
+ private setTablistRole;
562
563
  private updatePopupIconAriaLabel;
563
564
  private createContentElement;
564
565
  private renderContent;
package/src/tab/tab.js CHANGED
@@ -444,7 +444,6 @@ var Tab = /** @class */ (function (_super) {
444
444
  this.tbObj.isStringTemplate = true;
445
445
  this.tbObj.createElement = this.createElement;
446
446
  this.tbObj.appendTo(this.hdrEle);
447
- attributes(this.hdrEle, { role: 'tablist' });
448
447
  if (!isNOU(this.element.getAttribute('aria-label'))) {
449
448
  this.hdrEle.setAttribute('aria-label', this.element.getAttribute('aria-label'));
450
449
  this.element.removeAttribute('aria-label');
@@ -453,6 +452,16 @@ var Tab = /** @class */ (function (_super) {
453
452
  this.hdrEle.setAttribute('aria-labelledby', this.element.getAttribute('aria-labelledby'));
454
453
  this.element.removeAttribute('aria-labelledby');
455
454
  }
455
+ var scrollContent = this.tbObj.element.querySelector('.' + (this.isVertical() ? CLS_VSCRCNT : CLS_HSCRCNT));
456
+ var popupContainer = select('.' + CLS_TB_POP, this.tbObj.element);
457
+ var isScrollableMode = this.overflowMode === 'Scrollable' || this.overflowMode === 'MultiRow';
458
+ var isPopupMode = this.overflowMode === 'Popup' || this.overflowMode === 'Extended';
459
+ if (isScrollableMode) {
460
+ this.setTablistRole(scrollContent);
461
+ }
462
+ else if (isPopupMode) {
463
+ this.setTablistRole(popupContainer);
464
+ }
456
465
  this.updatePopupIconAriaLabel();
457
466
  this.setCloseButton(this.showCloseButton);
458
467
  var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
@@ -460,6 +469,14 @@ var Tab = /** @class */ (function (_super) {
460
469
  if (isNOU(toolbarHeader.id) || toolbarHeader.id === '') {
461
470
  toolbarHeader.id = this.element.id + '_' + 'tab_header_items';
462
471
  }
472
+ if (isPopupMode || (isScrollableMode && isNOU(scrollContent))) {
473
+ this.setTablistRole(toolbarHeader);
474
+ }
475
+ }
476
+ };
477
+ Tab.prototype.setTablistRole = function (el) {
478
+ if (!isNOU(el)) {
479
+ attributes(el, { role: 'tablist' });
463
480
  }
464
481
  };
465
482
  Tab.prototype.updatePopupIconAriaLabel = function () {