@syncfusion/ej2-layouts 23.2.4 → 24.2.3

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.
@@ -851,7 +851,8 @@ let Splitter = class Splitter extends Component {
851
851
  this.addResizeHandler(separator);
852
852
  separator.appendChild(arrow1);
853
853
  this.updateCollapseIcons(i, arrow1, arrow2);
854
- separator.setAttribute('tabindex', '0');
854
+ separator.setAttribute('tabindex', '-1');
855
+ separator.setAttribute('aria-hidden', 'true');
855
856
  if (this.enableReversePanes) {
856
857
  separator.setAttribute('dir', 'ltr');
857
858
  }
@@ -885,6 +886,7 @@ let Splitter = class Splitter extends Component {
885
886
  clonedEle[i].parentNode.appendChild(separator);
886
887
  this.currentSeparator = separator;
887
888
  separator.setAttribute('role', 'separator');
889
+ separator.setAttribute('aria-valuenow', i.toString());
888
890
  separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
889
891
  this.wireClickEvents();
890
892
  if (!isNullOrUndefined(separator)) {
@@ -2499,6 +2501,7 @@ let DashboardLayout = class DashboardLayout extends Component {
2499
2501
  * @private
2500
2502
  */
2501
2503
  render() {
2504
+ this.element.setAttribute('role', 'list');
2502
2505
  this.initialize();
2503
2506
  this.isRenderComplete = true;
2504
2507
  if (this.showGridLines && !this.checkMediaQuery()) {
@@ -2512,6 +2515,7 @@ let DashboardLayout = class DashboardLayout extends Component {
2512
2515
  this.table = document.createElement('table');
2513
2516
  const tbody = document.createElement('tbody');
2514
2517
  this.table.classList.add('e-dashboard-gridline-table');
2518
+ this.table.setAttribute('role', 'presentation');
2515
2519
  for (let i = 0; i < this.maxRow(); i++) {
2516
2520
  const tr = document.createElement('tr');
2517
2521
  for (let j = 0; j < this.columns; j++) {
@@ -2631,9 +2635,9 @@ let DashboardLayout = class DashboardLayout extends Component {
2631
2635
  updateOldRowColumn() {
2632
2636
  for (let i = 0; i < this.panels.length; i++) {
2633
2637
  const id = this.panels[i].id;
2634
- if (document.getElementById(id)) {
2635
- const row = parseInt(document.getElementById(id).getAttribute('data-row'), 10);
2636
- const col = parseInt(document.getElementById(id).getAttribute('data-col'), 10);
2638
+ if (this.element.querySelector("[id='" + id + "']")) {
2639
+ const row = parseInt(this.element.querySelector("[id='" + id + "']").getAttribute('data-row'), 10);
2640
+ const col = parseInt(this.element.querySelector("[id='" + id + "']").getAttribute('data-col'), 10);
2637
2641
  this.oldRowCol[this.panels[i].id] = { row: row, col: col };
2638
2642
  }
2639
2643
  else {
@@ -2704,6 +2708,10 @@ let DashboardLayout = class DashboardLayout extends Component {
2704
2708
  }
2705
2709
  renderPanels(cellElement, panelModel, panelId, isStringTemplate) {
2706
2710
  addClass([cellElement], [panel, panelTransition]);
2711
+ cellElement.setAttribute('role', 'listitem');
2712
+ if (this.allowDragging) {
2713
+ cellElement.setAttribute('aria-grabbed', 'false');
2714
+ }
2707
2715
  const cssClass = panelModel.cssClass ? panelModel.cssClass.split(' ') : null;
2708
2716
  this.panelContent = cellElement.querySelector('.e-panel-container') ?
2709
2717
  cellElement.querySelector('.e-panel-container') :
@@ -3470,9 +3478,9 @@ let DashboardLayout = class DashboardLayout extends Component {
3470
3478
  for (let h = 0; h < sizeY; ++h) {
3471
3479
  for (let w = 0; w < sizeX; ++w) {
3472
3480
  item = this.getPanel(row + h, col + w, ignore);
3473
- if (item && (!ignore || ignore.indexOf(document.getElementById(item.id)) === -1) &&
3474
- items.indexOf(document.getElementById(item.id)) === -1) {
3475
- items.push(document.getElementById(item.id));
3481
+ if (item && (!ignore || ignore.indexOf(this.element.querySelector("[id='" + item.id + "']")) === -1) &&
3482
+ items.indexOf(this.element.querySelector("[id='" + item.id + "']")) === -1) {
3483
+ items.push(this.element.querySelector("[id='" + item.id + "']"));
3476
3484
  }
3477
3485
  }
3478
3486
  }
@@ -3830,7 +3838,7 @@ let DashboardLayout = class DashboardLayout extends Component {
3830
3838
  }
3831
3839
  if (this.mainElement && this.oldRowCol !== this.cloneObject) {
3832
3840
  for (let i = 0; i < this.panels.length; i++) {
3833
- const element = document.getElementById(this.panels[i].id);
3841
+ const element = this.element.querySelector("[id='" + this.panels[i].id + "']");
3834
3842
  if (element === this.mainElement) {
3835
3843
  continue;
3836
3844
  }