@syncfusion/ej2-treegrid 20.3.57 → 20.3.58

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 : 20.3.57
3
+ * version : 20.3.58
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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-treegrid@*",
3
- "_id": "@syncfusion/ej2-treegrid@20.3.56",
3
+ "_id": "@syncfusion/ej2-treegrid@20.3.57",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ZAWBrlsjksXEtMMIovA/Ap7hmnBH2KBvWv4wira+Ecus1mosr3hioA6+cJTNti6pG3E8PPWg2wYtoEOKq4COPw==",
5
+ "_integrity": "sha512-UXyRl+MkwcxIDB2sKhz9mrLC+Vqdce5SwL00cRuPzx0SpN1zHJwIGVYr/H3mk762MrG0Nxvi/uA3Wg4fmornXg==",
6
6
  "_location": "/@syncfusion/ej2-treegrid",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,8 +24,8 @@
24
24
  "/@syncfusion/ej2-react-treegrid",
25
25
  "/@syncfusion/ej2-vue-treegrid"
26
26
  ],
27
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.3.56.tgz",
28
- "_shasum": "3bfc176798654d335c51e97f970768de16b77547",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.3.57.tgz",
28
+ "_shasum": "d925d18312d959702007b15d348d25438f7f298c",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
31
31
  "author": {
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~20.3.56",
40
40
  "@syncfusion/ej2-data": "~20.3.56",
41
- "@syncfusion/ej2-grids": "~20.3.57",
42
- "@syncfusion/ej2-popups": "~20.3.57"
41
+ "@syncfusion/ej2-grids": "~20.3.58",
42
+ "@syncfusion/ej2-popups": "~20.3.58"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -60,6 +60,6 @@
60
60
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
61
61
  },
62
62
  "typings": "index.d.ts",
63
- "version": "20.3.57",
63
+ "version": "20.3.58",
64
64
  "sideEffects": false
65
65
  }
@@ -128,7 +128,7 @@ var Selection = /** @class */ (function () {
128
128
  }
129
129
  };
130
130
  Selection.prototype.renderColumnCheckbox = function (args) {
131
- var rowChkBox = this.parent.createElement('input', { className: 'e-treecheckselect', attrs: { 'type': 'checkbox' } });
131
+ var rowChkBox = this.parent.createElement('input', { className: 'e-treecheckselect', attrs: { 'type': 'checkbox', 'aria-label': 'checkbox' } });
132
132
  var data = args.data;
133
133
  args.cell.classList.add('e-treegridcheckbox');
134
134
  args.cell.setAttribute('aria-label', 'checkbox');
@@ -360,9 +360,9 @@ var Selection = /** @class */ (function () {
360
360
  var checkedRecord;
361
361
  var recordIndex = this.parent.getCurrentViewRecords().indexOf(record[0]);
362
362
  var checkboxRecord = getParentData(this.parent, currentRecord.uniqueID);
363
+ var tr = this.parent.getRows()[recordIndex];
363
364
  var checkbox;
364
365
  if (recordIndex > -1) {
365
- var tr = this.parent.getRows()[recordIndex];
366
366
  var movableTr = void 0;
367
367
  if (this.parent.frozenRows || this.parent.getFrozenColumns()) {
368
368
  movableTr = this.parent.getMovableDataRows()[recordIndex];
@@ -411,6 +411,9 @@ var Selection = /** @class */ (function () {
411
411
  if (recordIndex > -1) {
412
412
  if (!isNullOrUndefined(checkbox)) {
413
413
  checkbox.classList.add(checkBoxclass);
414
+ var chkstate = checkState == 'check' ? 'checked' : checkState == 'uncheck' ? 'unchecked' : 'mixed';
415
+ tr.querySelector('.e-treecheckselect').setAttribute("aria-checked", checkState == 'check' ? 'true' : checkState == 'uncheck' ? 'false' : 'mixed');
416
+ tr.querySelector('.e-frame').setAttribute("title", "checkbox" + chkstate);
414
417
  }
415
418
  }
416
419
  };
@@ -747,13 +747,8 @@ var TreeGrid = /** @class */ (function (_super) {
747
747
  this.trigger(getObject('name', args), args);
748
748
  };
749
749
  TreeGrid.prototype.IsExpandCollapseClicked = function (args) {
750
- if (args['name'] === 'rowSelecting' && !isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
751
- || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')) && (isNullOrUndefined(args['previousRowIndex']))) {
752
- args.cancel = true;
753
- return;
754
- }
755
- else if (args['name'] === 'rowDeselecting' && !isNullOrUndefined(args.target) && ((!isNullOrUndefined(args.row) && (!args.row.length)) && (args.target.classList.contains('e-treegridexpand')
756
- || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')))) {
750
+ if (!isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
751
+ || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell'))) {
757
752
  args.cancel = true;
758
753
  return;
759
754
  }
@@ -2910,6 +2905,7 @@ var TreeGrid = /** @class */ (function (_super) {
2910
2905
  }
2911
2906
  removeClass([targetEle], 'e-treegridexpand');
2912
2907
  }
2908
+ row.querySelectorAll('.e-treerowcell')[0].setAttribute("aria-expanded", action == 'expand' ? 'true' : 'false');
2913
2909
  var detailrows = gridRows.filter(function (r) {
2914
2910
  return r.classList.contains('e-griddetailrowindex' + record.index + 'level' + (record.level + 1));
2915
2911
  });
@@ -122,6 +122,7 @@ var Render = /** @class */ (function () {
122
122
  }
123
123
  if (iconRequired) {
124
124
  addClass([args.cell], 'e-treerowcell');
125
+ args.cell.setAttribute("aria-expanded", data.expanded ? "true" : "false");
125
126
  var expandIcon = createElement('span', { className: 'e-icons' });
126
127
  var expand = void 0;
127
128
  if (this.parent.initialRender) {