@syncfusion/ej2-layouts 23.1.36 → 24.1.41

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.
@@ -873,7 +873,8 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
873
873
  this.addResizeHandler(separator);
874
874
  separator.appendChild(arrow1);
875
875
  this.updateCollapseIcons(i, arrow1, arrow2);
876
- separator.setAttribute('tabindex', '0');
876
+ separator.setAttribute('tabindex', '-1');
877
+ separator.setAttribute('aria-hidden', 'true');
877
878
  if (this.enableReversePanes) {
878
879
  separator.setAttribute('dir', 'ltr');
879
880
  }
@@ -907,6 +908,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
907
908
  clonedEle[i].parentNode.appendChild(separator);
908
909
  this.currentSeparator = separator;
909
910
  separator.setAttribute('role', 'separator');
911
+ separator.setAttribute('aria-valuenow', i.toString());
910
912
  separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
911
913
  this.wireClickEvents();
912
914
  if (!isNullOrUndefined(separator)) {
@@ -2549,6 +2551,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
2549
2551
  * @private
2550
2552
  */
2551
2553
  DashboardLayout.prototype.render = function () {
2554
+ this.element.setAttribute('role', 'list');
2552
2555
  this.initialize();
2553
2556
  this.isRenderComplete = true;
2554
2557
  if (this.showGridLines && !this.checkMediaQuery()) {
@@ -2562,6 +2565,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
2562
2565
  this.table = document.createElement('table');
2563
2566
  var tbody = document.createElement('tbody');
2564
2567
  this.table.classList.add('e-dashboard-gridline-table');
2568
+ this.table.setAttribute('role', 'presentation');
2565
2569
  for (var i = 0; i < this.maxRow(); i++) {
2566
2570
  var tr = document.createElement('tr');
2567
2571
  for (var j = 0; j < this.columns; j++) {
@@ -2681,9 +2685,9 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
2681
2685
  DashboardLayout.prototype.updateOldRowColumn = function () {
2682
2686
  for (var i = 0; i < this.panels.length; i++) {
2683
2687
  var id = this.panels[i].id;
2684
- if (document.getElementById(id)) {
2685
- var row = parseInt(document.getElementById(id).getAttribute('data-row'), 10);
2686
- var col = parseInt(document.getElementById(id).getAttribute('data-col'), 10);
2688
+ if (this.element.querySelector("[id='" + id + "']")) {
2689
+ var row = parseInt(this.element.querySelector("[id='" + id + "']").getAttribute('data-row'), 10);
2690
+ var col = parseInt(this.element.querySelector("[id='" + id + "']").getAttribute('data-col'), 10);
2687
2691
  this.oldRowCol[this.panels[i].id] = { row: row, col: col };
2688
2692
  }
2689
2693
  else {
@@ -2755,6 +2759,10 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
2755
2759
  };
2756
2760
  DashboardLayout.prototype.renderPanels = function (cellElement, panelModel, panelId, isStringTemplate) {
2757
2761
  addClass([cellElement], [panel, panelTransition]);
2762
+ cellElement.setAttribute('role', 'listitem');
2763
+ if (this.allowDragging) {
2764
+ cellElement.setAttribute('aria-grabbed', 'false');
2765
+ }
2758
2766
  var cssClass = panelModel.cssClass ? panelModel.cssClass.split(' ') : null;
2759
2767
  this.panelContent = cellElement.querySelector('.e-panel-container') ?
2760
2768
  cellElement.querySelector('.e-panel-container') :
@@ -3528,9 +3536,9 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3528
3536
  for (var h = 0; h < sizeY; ++h) {
3529
3537
  for (var w = 0; w < sizeX; ++w) {
3530
3538
  item = this.getPanel(row + h, col + w, ignore);
3531
- if (item && (!ignore || ignore.indexOf(document.getElementById(item.id)) === -1) &&
3532
- items.indexOf(document.getElementById(item.id)) === -1) {
3533
- items.push(document.getElementById(item.id));
3539
+ if (item && (!ignore || ignore.indexOf(this.element.querySelector("[id='" + item.id + "']")) === -1) &&
3540
+ items.indexOf(this.element.querySelector("[id='" + item.id + "']")) === -1) {
3541
+ items.push(this.element.querySelector("[id='" + item.id + "']"));
3534
3542
  }
3535
3543
  }
3536
3544
  }
@@ -3898,7 +3906,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3898
3906
  }
3899
3907
  if (this.mainElement && this.oldRowCol !== this.cloneObject) {
3900
3908
  for (var i = 0; i < this.panels.length; i++) {
3901
- var element = document.getElementById(this.panels[i].id);
3909
+ var element = this.element.querySelector("[id='" + this.panels[i].id + "']");
3902
3910
  if (element === this.mainElement) {
3903
3911
  continue;
3904
3912
  }