@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 23.2.4
3
+ * version : 24.2.3
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-layouts@*",
3
- "_id": "@syncfusion/ej2-layouts@23.1.36",
3
+ "_id": "@syncfusion/ej2-layouts@24.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-R6V0KqVPvc/pYqXIeii65ZCZ9fjjmuq5v3shneY50YCzgX+qtClvjpqMfy9+9lD1LXbiu0pItf1pjfumS162Hg==",
5
+ "_integrity": "sha512-DcfrGifkApqkTwuRigoqwjL8PBxf0M54wuafL5WXGHb+3WX1SnrZ4EBRrMtfXX8TLuZ1KKsJvi9PHjB6Tvx4/g==",
6
6
  "_location": "/@syncfusion/ej2-layouts",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -26,16 +26,16 @@
26
26
  "/@syncfusion/ej2-react-layouts",
27
27
  "/@syncfusion/ej2-vue-layouts"
28
28
  ],
29
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-23.1.36.tgz",
30
- "_shasum": "343fcd7d05fa9b7f97936fa810fb4a307715eef3",
29
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-24.1.41.tgz",
30
+ "_shasum": "f430c2de272194c8e45b4436be6e374939aefd71",
31
31
  "_spec": "@syncfusion/ej2-layouts@*",
32
- "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
32
+ "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
33
33
  "author": {
34
34
  "name": "Syncfusion Inc."
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~23.2.4"
38
+ "@syncfusion/ej2-base": "~24.2.3"
39
39
  },
40
40
  "deprecated": false,
41
41
  "description": "A package of Essential JS 2 layout pure CSS components such as card and avatar. The card is used as small container to show content in specific structure, whereas the avatars are icons, initials or figures representing particular person.",
@@ -75,7 +75,7 @@
75
75
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/layouts"
76
76
  },
77
77
  "typings": "index.d.ts",
78
- "version": "23.2.4",
78
+ "version": "24.2.3",
79
79
  "sideEffects": false,
80
80
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
81
81
  }
@@ -188,6 +188,7 @@ var DashboardLayout = /** @class */ (function (_super) {
188
188
  * @private
189
189
  */
190
190
  DashboardLayout.prototype.render = function () {
191
+ this.element.setAttribute('role', 'list');
191
192
  this.initialize();
192
193
  this.isRenderComplete = true;
193
194
  if (this.showGridLines && !this.checkMediaQuery()) {
@@ -201,6 +202,7 @@ var DashboardLayout = /** @class */ (function (_super) {
201
202
  this.table = document.createElement('table');
202
203
  var tbody = document.createElement('tbody');
203
204
  this.table.classList.add('e-dashboard-gridline-table');
205
+ this.table.setAttribute('role', 'presentation');
204
206
  for (var i = 0; i < this.maxRow(); i++) {
205
207
  var tr = document.createElement('tr');
206
208
  for (var j = 0; j < this.columns; j++) {
@@ -320,9 +322,9 @@ var DashboardLayout = /** @class */ (function (_super) {
320
322
  DashboardLayout.prototype.updateOldRowColumn = function () {
321
323
  for (var i = 0; i < this.panels.length; i++) {
322
324
  var id = this.panels[i].id;
323
- if (document.getElementById(id)) {
324
- var row = parseInt(document.getElementById(id).getAttribute('data-row'), 10);
325
- var col = parseInt(document.getElementById(id).getAttribute('data-col'), 10);
325
+ if (this.element.querySelector("[id='" + id + "']")) {
326
+ var row = parseInt(this.element.querySelector("[id='" + id + "']").getAttribute('data-row'), 10);
327
+ var col = parseInt(this.element.querySelector("[id='" + id + "']").getAttribute('data-col'), 10);
326
328
  this.oldRowCol[this.panels[i].id] = { row: row, col: col };
327
329
  }
328
330
  else {
@@ -394,6 +396,10 @@ var DashboardLayout = /** @class */ (function (_super) {
394
396
  };
395
397
  DashboardLayout.prototype.renderPanels = function (cellElement, panelModel, panelId, isStringTemplate) {
396
398
  addClass([cellElement], [panel, panelTransition]);
399
+ cellElement.setAttribute('role', 'listitem');
400
+ if (this.allowDragging) {
401
+ cellElement.setAttribute('aria-grabbed', 'false');
402
+ }
397
403
  var cssClass = panelModel.cssClass ? panelModel.cssClass.split(' ') : null;
398
404
  this.panelContent = cellElement.querySelector('.e-panel-container') ?
399
405
  cellElement.querySelector('.e-panel-container') :
@@ -1167,9 +1173,9 @@ var DashboardLayout = /** @class */ (function (_super) {
1167
1173
  for (var h = 0; h < sizeY; ++h) {
1168
1174
  for (var w = 0; w < sizeX; ++w) {
1169
1175
  item = this.getPanel(row + h, col + w, ignore);
1170
- if (item && (!ignore || ignore.indexOf(document.getElementById(item.id)) === -1) &&
1171
- items.indexOf(document.getElementById(item.id)) === -1) {
1172
- items.push(document.getElementById(item.id));
1176
+ if (item && (!ignore || ignore.indexOf(this.element.querySelector("[id='" + item.id + "']")) === -1) &&
1177
+ items.indexOf(this.element.querySelector("[id='" + item.id + "']")) === -1) {
1178
+ items.push(this.element.querySelector("[id='" + item.id + "']"));
1173
1179
  }
1174
1180
  }
1175
1181
  }
@@ -1537,7 +1543,7 @@ var DashboardLayout = /** @class */ (function (_super) {
1537
1543
  }
1538
1544
  if (this.mainElement && this.oldRowCol !== this.cloneObject) {
1539
1545
  for (var i = 0; i < this.panels.length; i++) {
1540
- var element = document.getElementById(this.panels[i].id);
1546
+ var element = this.element.querySelector("[id='" + this.panels[i].id + "']");
1541
1547
  if (element === this.mainElement) {
1542
1548
  continue;
1543
1549
  }
@@ -876,7 +876,8 @@ var Splitter = /** @class */ (function (_super) {
876
876
  this.addResizeHandler(separator);
877
877
  separator.appendChild(arrow1);
878
878
  this.updateCollapseIcons(i, arrow1, arrow2);
879
- separator.setAttribute('tabindex', '0');
879
+ separator.setAttribute('tabindex', '-1');
880
+ separator.setAttribute('aria-hidden', 'true');
880
881
  if (this.enableReversePanes) {
881
882
  separator.setAttribute('dir', 'ltr');
882
883
  }
@@ -910,6 +911,7 @@ var Splitter = /** @class */ (function (_super) {
910
911
  clonedEle[i].parentNode.appendChild(separator);
911
912
  this.currentSeparator = separator;
912
913
  separator.setAttribute('role', 'separator');
914
+ separator.setAttribute('aria-valuenow', i.toString());
913
915
  separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
914
916
  this.wireClickEvents();
915
917
  if (!isNullOrUndefined(separator)) {