@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.
- package/dist/ej2-layouts.min.js +3 -3
- package/dist/ej2-layouts.umd.min.js +3 -3
- package/dist/ej2-layouts.umd.min.js.map +1 -1
- package/dist/es6/ej2-layouts.es2015.js +16 -8
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +16 -8
- package/dist/es6/ej2-layouts.es5.js.map +1 -1
- package/dist/global/ej2-layouts.min.js +3 -3
- package/dist/global/ej2-layouts.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +7 -8
- package/src/dashboard-layout/dashboard-layout.js +13 -7
- package/src/splitter/splitter.js +3 -1
package/dist/global/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version :
|
4
|
-
* Copyright Syncfusion Inc. 2001 -
|
3
|
+
* version : 24.1.41
|
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
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "@syncfusion/ej2-layouts@*",
|
3
|
-
"_id": "@syncfusion/ej2-layouts@21.4.
|
3
|
+
"_id": "@syncfusion/ej2-layouts@21.4.6",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-NDKk1Omo3lx85XdGk/OMhaosrLR7842ntfWhz61KXq/zoGX3Ip+o5B1bJVHd+3YYh7MQOvyQ5HNs7wa2rw/pEA==",
|
6
6
|
"_location": "/@syncfusion/ej2-layouts",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -23,20 +23,19 @@
|
|
23
23
|
"/@syncfusion/ej2-filemanager",
|
24
24
|
"/@syncfusion/ej2-gantt",
|
25
25
|
"/@syncfusion/ej2-kanban",
|
26
|
-
"/@syncfusion/ej2-pdfviewer",
|
27
26
|
"/@syncfusion/ej2-react-layouts",
|
28
27
|
"/@syncfusion/ej2-vue-layouts"
|
29
28
|
],
|
30
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-layouts/-/ej2-layouts-21.4.
|
31
|
-
"_shasum": "
|
29
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-layouts/-/ej2-layouts-21.4.6.tgz",
|
30
|
+
"_shasum": "348ac7e4c964a3b6dc132a71b534154f917e3d75",
|
32
31
|
"_spec": "@syncfusion/ej2-layouts@*",
|
33
|
-
"_where": "/jenkins/workspace/elease-
|
32
|
+
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
34
33
|
"author": {
|
35
34
|
"name": "Syncfusion Inc."
|
36
35
|
},
|
37
36
|
"bundleDependencies": false,
|
38
37
|
"dependencies": {
|
39
|
-
"@syncfusion/ej2-base": "~
|
38
|
+
"@syncfusion/ej2-base": "~24.1.41"
|
40
39
|
},
|
41
40
|
"deprecated": false,
|
42
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.",
|
@@ -76,7 +75,7 @@
|
|
76
75
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/layouts"
|
77
76
|
},
|
78
77
|
"typings": "index.d.ts",
|
79
|
-
"version": "
|
78
|
+
"version": "24.1.41",
|
80
79
|
"sideEffects": false,
|
81
80
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
82
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 (
|
324
|
-
var row = parseInt(
|
325
|
-
var col = parseInt(
|
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(
|
1171
|
-
items.indexOf(
|
1172
|
-
items.push(
|
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 =
|
1546
|
+
var element = this.element.querySelector("[id='" + this.panels[i].id + "']");
|
1541
1547
|
if (element === this.mainElement) {
|
1542
1548
|
continue;
|
1543
1549
|
}
|
package/src/splitter/splitter.js
CHANGED
@@ -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', '
|
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)) {
|