@syncfusion/ej2-navigations 35.1.46 → 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.
@@ -1,12 +1,3 @@
1
- /*!
2
- * filename: index.d.ts
3
- * version : 35.1.46
4
- * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
1
  import * as _navigations from '@syncfusion/ej2-navigations';
11
2
 
12
3
  export declare namespace ej {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-navigations",
3
- "version": "35.1.46",
3
+ "version": "35.2.13",
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": "~35.1.37",
12
- "@syncfusion/ej2-buttons": "~35.1.41",
13
- "@syncfusion/ej2-data": "~35.1.37",
14
- "@syncfusion/ej2-inputs": "~35.1.43",
15
- "@syncfusion/ej2-lists": "~35.1.43",
16
- "@syncfusion/ej2-notifications": "~35.1.37",
17
- "@syncfusion/ej2-popups": "~35.1.42"
11
+ "@syncfusion/ej2-base": "~35.2.12",
12
+ "@syncfusion/ej2-buttons": "~35.2.12",
13
+ "@syncfusion/ej2-data": "~35.2.12",
14
+ "@syncfusion/ej2-inputs": "~35.2.12",
15
+ "@syncfusion/ej2-lists": "~35.2.12",
16
+ "@syncfusion/ej2-notifications": "~35.2.12",
17
+ "@syncfusion/ej2-popups": "~35.2.12"
18
18
  },
19
19
  "devDependencies": {},
20
20
  "keywords": [
package/src/tab/tab.d.ts CHANGED
@@ -558,6 +558,7 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
558
558
  */
559
559
  protected render(): void;
560
560
  private renderContainer;
561
+ private updateTablistRole;
561
562
  private renderHeader;
562
563
  private setTablistRole;
563
564
  private updatePopupIconAriaLabel;
package/src/tab/tab.js CHANGED
@@ -389,6 +389,43 @@ var Tab = /** @class */ (function (_super) {
389
389
  this.setRTL(this.enableRtl);
390
390
  }
391
391
  };
392
+ Tab.prototype.updateTablistRole = function () {
393
+ if (isNOU(this.tbObj) || isNOU(this.tbObj.element)) {
394
+ return;
395
+ }
396
+ var scrollContent = this.tbObj.element.querySelector('.' + (this.isVertical() ? CLS_VSCRCNT : CLS_HSCRCNT));
397
+ var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
398
+ var popupContainer = this.tbObj.element.querySelector('.' + CLS_TB_POP);
399
+ var isScrollableMode = this.overflowMode === 'Scrollable' ||
400
+ this.overflowMode === 'MultiRow';
401
+ var isPopupMode = this.overflowMode === 'Popup' ||
402
+ this.overflowMode === 'Extended';
403
+ if (!isNOU(scrollContent)) {
404
+ scrollContent.removeAttribute('role');
405
+ }
406
+ if (!isNOU(toolbarHeader)) {
407
+ toolbarHeader.removeAttribute('role');
408
+ }
409
+ if (!isNOU(popupContainer)) {
410
+ popupContainer.removeAttribute('role');
411
+ }
412
+ if (isScrollableMode) {
413
+ if (!isNOU(scrollContent)) {
414
+ this.setTablistRole(scrollContent);
415
+ }
416
+ else if (!isNOU(toolbarHeader)) {
417
+ this.setTablistRole(toolbarHeader);
418
+ }
419
+ }
420
+ else if (isPopupMode) {
421
+ if (!isNOU(popupContainer)) {
422
+ this.setTablistRole(popupContainer);
423
+ }
424
+ if (!isNOU(toolbarHeader)) {
425
+ this.setTablistRole(toolbarHeader);
426
+ }
427
+ }
428
+ };
392
429
  Tab.prototype.renderHeader = function () {
393
430
  var _this = this;
394
431
  var hdrPlace = this.headerPlacement;
@@ -2560,6 +2597,7 @@ var Tab = /** @class */ (function (_super) {
2560
2597
  var hdrEle = this.getTabHeader();
2561
2598
  setStyle(this.cntEle, { 'height': (this.element.clientHeight - hdrEle.offsetHeight) + 'px' });
2562
2599
  }
2600
+ this.updateTablistRole();
2563
2601
  var activeEle = select('.' + CLS_TB_ITEM + '.' + CLS_TB_POPUP + '.' + CLS_ACTIVE, this.element);
2564
2602
  if (!isNOU(activeEle) && this.reorderActiveTab) {
2565
2603
  this.select(this.getEleIndex(activeEle));
@@ -939,6 +939,9 @@ var Toolbar = /** @class */ (function (_super) {
939
939
  var width = 0;
940
940
  var style;
941
941
  [].slice.call(selectAll('.' + CLS_ITEM, items)).forEach(function (el) {
942
+ if (el.parentElement && closest(el.parentElement, '.e-toolbar') !== _this.element) {
943
+ return;
944
+ }
942
945
  if (isVisible(el)) {
943
946
  style = window.getComputedStyle(el);
944
947
  width += _this.isVertical ? el.offsetHeight : el.offsetWidth;