@syncfusion/ej2-treegrid 20.3.47 → 20.3.48

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.47
3
+ * version : 20.3.48
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.4.3",
3
+ "_id": "@syncfusion/ej2-treegrid@20.3.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-7aLSdNf8+b6TlRdFServ47CFnkLWCRjwuU24Bilr2Rrvqn+XSdL5UxLTIPB0pCb8vH2U52sVLFDlfblpLRfC+Q==",
5
+ "_integrity": "sha512-h6rSxBpMoZDLav2suqY58wIzpy42bpTtxPL/2APnJc98TC6Nk2c7seEgn4iJkc2hJ7AzZ+BEaTpJU72+r+W7vg==",
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": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.4.3.tgz",
28
- "_shasum": "30d76503766adfbcd5aed10e0f881609dc0c34e6",
27
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.3.47.tgz",
28
+ "_shasum": "1847003b673227740c5a591d0292fe16bc4615b8",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
31
31
  "author": {
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~20.3.47",
39
+ "@syncfusion/ej2-base": "~20.3.48",
40
40
  "@syncfusion/ej2-data": "~20.3.47",
41
- "@syncfusion/ej2-grids": "~20.3.47",
42
- "@syncfusion/ej2-popups": "~20.3.47"
41
+ "@syncfusion/ej2-grids": "~20.3.48",
42
+ "@syncfusion/ej2-popups": "~20.3.48"
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.47",
63
+ "version": "20.3.48",
64
64
  "sideEffects": false
65
65
  }
@@ -241,6 +241,10 @@ var Edit = /** @class */ (function () {
241
241
  }
242
242
  this.updateGridEditMode('Batch');
243
243
  }
244
+ else if (this.parent.editSettings.mode === 'Cell' && (!column.allowEditing || column.isPrimaryKey)) {
245
+ this.isOnBatch = true;
246
+ this.updateGridEditMode('Batch');
247
+ }
244
248
  };
245
249
  Edit.prototype.updateGridEditMode = function (mode) {
246
250
  this.parent.grid.setProperties({ editSettings: { mode: mode } }, true);
@@ -917,7 +921,12 @@ var Edit = /** @class */ (function () {
917
921
  }
918
922
  index = (childRecordCount1 > 0) ? (currentDataIndex1 + childRecordCount1) : (currentDataIndex1);
919
923
  if (this.isSelfReference) {
920
- value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = idMapping;
924
+ if (!this.parent.isLocalData && this.parent.editModule.selectedIndex === -1) {
925
+ value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = null;
926
+ }
927
+ else {
928
+ value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = idMapping;
929
+ }
921
930
  if (!isNullOrUndefined(value.parentItem)) {
922
931
  updateParentRow(key, value.parentItem, 'add', this.parent, this.isSelfReference, value);
923
932
  }
@@ -747,12 +747,12 @@ 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')
750
+ if (args['name'] === 'rowSelecting' && !isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
751
751
  || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')) && (isNullOrUndefined(args['previousRowIndex']))) {
752
752
  args.cancel = true;
753
753
  return;
754
754
  }
755
- else if (args['name'] === "rowDeselecting" && !isNullOrUndefined(args.target) && ((!isNullOrUndefined(args.row) && (!args.row.length)) && (args.target.classList.contains('e-treegridexpand')
755
+ else if (args['name'] === 'rowDeselecting' && !isNullOrUndefined(args.target) && ((!isNullOrUndefined(args.row) && (!args.row.length)) && (args.target.classList.contains('e-treegridexpand')
756
756
  || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')))) {
757
757
  args.cancel = true;
758
758
  return;
@@ -288,7 +288,7 @@
288
288
  }
289
289
  .e-treegrid .e-treecell {
290
290
  display: table-cell;
291
- line-height: 26px;
291
+ line-height: 19px;
292
292
  }
293
293
  .e-treegrid .e-grid.e-wrap .e-rowcell .e-treecolumn-container {
294
294
  white-space: nowrap;
@@ -288,7 +288,7 @@
288
288
  }
289
289
  .e-treegrid .e-treecell {
290
290
  display: table-cell;
291
- line-height: 26px;
291
+ line-height: 19px;
292
292
  }
293
293
  .e-treegrid .e-grid.e-wrap .e-rowcell .e-treecolumn-container {
294
294
  white-space: nowrap;
@@ -285,7 +285,7 @@
285
285
  }
286
286
  .e-treegrid .e-treecell {
287
287
  display: table-cell;
288
- line-height: 26px;
288
+ line-height: 19px;
289
289
  }
290
290
  .e-treegrid .e-grid.e-wrap .e-rowcell .e-treecolumn-container {
291
291
  white-space: nowrap;
package/styles/fluent.css CHANGED
@@ -285,7 +285,7 @@
285
285
  }
286
286
  .e-treegrid .e-treecell {
287
287
  display: table-cell;
288
- line-height: 26px;
288
+ line-height: 19px;
289
289
  }
290
290
  .e-treegrid .e-grid.e-wrap .e-rowcell .e-treecolumn-container {
291
291
  white-space: nowrap;
@@ -174,7 +174,7 @@
174
174
  .e-treecell {
175
175
  display: table-cell;
176
176
  @if $skin-name == 'bootstrap5' or $skin-name == 'boostrap5-dark' or $skin-name == 'FluentUI' or $theme-name == 'fluentui-dark' {
177
- line-height: 26px;
177
+ line-height: 19px;
178
178
  }
179
179
  @else {
180
180
  line-height: normal;
@@ -288,7 +288,7 @@
288
288
  }
289
289
  .e-treegrid .e-treecell {
290
290
  display: table-cell;
291
- line-height: 26px;
291
+ line-height: 19px;
292
292
  }
293
293
  .e-treegrid .e-grid.e-wrap .e-rowcell .e-treecolumn-container {
294
294
  white-space: nowrap;
@@ -288,7 +288,7 @@
288
288
  }
289
289
  .e-treegrid .e-treecell {
290
290
  display: table-cell;
291
- line-height: 26px;
291
+ line-height: 19px;
292
292
  }
293
293
  .e-treegrid .e-grid.e-wrap .e-rowcell .e-treecolumn-container {
294
294
  white-space: nowrap;
@@ -285,7 +285,7 @@
285
285
  }
286
286
  .e-treegrid .e-treecell {
287
287
  display: table-cell;
288
- line-height: 26px;
288
+ line-height: 19px;
289
289
  }
290
290
  .e-treegrid .e-grid.e-wrap .e-rowcell .e-treecolumn-container {
291
291
  white-space: nowrap;
@@ -285,7 +285,7 @@
285
285
  }
286
286
  .e-treegrid .e-treecell {
287
287
  display: table-cell;
288
- line-height: 26px;
288
+ line-height: 19px;
289
289
  }
290
290
  .e-treegrid .e-grid.e-wrap .e-rowcell .e-treecolumn-container {
291
291
  white-space: nowrap;