@syncfusion/ej2-treegrid 19.3.53 → 19.3.55

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 : 19.3.53
3
+ * version : 19.3.55
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@19.3.47",
3
+ "_id": "@syncfusion/ej2-treegrid@19.3.53",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-1qAa8qD3pixiqbAaV3Iqu5V6+3NzXa8G+EHL6QLhJF0fo/Fgj4DOuEUXSnQCy602s3YVzqSSPSAboKUvBNe4gg==",
5
+ "_integrity": "sha512-Z/LVb/49/OB2E5RfAdGBhYIzZPC4UTL3FLHkIwHIVuNI+dvP6+VMwRID54qqG01YiuVdkxpuk15UzfBeXEzs5Q==",
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-hotfix/@syncfusion/ej2-treegrid/-/ej2-treegrid-19.3.47.tgz",
28
- "_shasum": "9d3509b03b5ef89e7c2517ecea267f4908255bb6",
27
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-treegrid/-/ej2-treegrid-19.3.53.tgz",
28
+ "_shasum": "a52a629c706c322c28b139bd916dd151872304c0",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
31
31
  "author": {
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~19.3.53",
39
+ "@syncfusion/ej2-base": "~19.3.54",
40
40
  "@syncfusion/ej2-data": "~19.3.53",
41
- "@syncfusion/ej2-grids": "~19.3.53",
41
+ "@syncfusion/ej2-grids": "~19.3.55",
42
42
  "@syncfusion/ej2-popups": "~19.3.53"
43
43
  },
44
44
  "deprecated": false,
@@ -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": "19.3.53",
63
+ "version": "19.3.55",
64
64
  "sideEffects": false
65
65
  }
@@ -764,6 +764,7 @@ var Edit = /** @class */ (function () {
764
764
  }
765
765
  if (this.isAddedRowByMethod && args.index !== 0) {
766
766
  this.addRowRecord = this.parent.flatData[args.index];
767
+ this.addRowIndex = args.index;
767
768
  }
768
769
  if (this.parent.editSettings.newRowPosition === 'Child' && isNullOrUndefined(this.addRowRecord)
769
770
  && !isNullOrUndefined(this.parent.getSelectedRecords()[0])) {
@@ -792,6 +793,11 @@ var Edit = /** @class */ (function () {
792
793
  var position = null;
793
794
  value.taskData = isNullOrUndefined(value.taskData) ? extend({}, args.data) : value.taskData;
794
795
  var currentData = this.parent.grid.getCurrentViewRecords();
796
+ if (this.parent.enableVirtualization && args.index !== 0) {
797
+ this.addRowIndex = this.parent.grid.getCurrentViewRecords().indexOf(this.addRowRecord);
798
+ this.selectedIndex = parseInt(this.parent.getRows()[this.addRowIndex].getAttribute('aria-rowindex'));
799
+ ;
800
+ }
795
801
  var index = this.addRowIndex;
796
802
  value.uniqueID = getUid(this.parent.element.id + '_data_');
797
803
  setValue('uniqueIDCollection.' + value.uniqueID, value, this.parent);
@@ -123,6 +123,11 @@ var VirtualScroll = /** @class */ (function () {
123
123
  }
124
124
  //if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
125
125
  //this.prevendIndex === endIndex && this.prevstartIndex === startIndex) {
126
+ if (!isNullOrUndefined(this.expandCollapseRec) && (pageingDetails.actionArgs.requestType === 'virtualscroll' ||
127
+ (pageingDetails.actionArgs.requestType === 'refresh' && startIndex !== this.prevstartIndex)) &&
128
+ (startIndex < this.parent.getRows().length && endIndex <= startIndex + this.parent.getRows().length)) {
129
+ startIndex = 0;
130
+ }
126
131
  if (!isNullOrUndefined(this.expandCollapseRec)) {
127
132
  var resourceCount = this.parent.getRows();
128
133
  var sIndex = visualData.indexOf(this.expandCollapseRec);
@@ -519,7 +519,9 @@ var DataManipulation = /** @class */ (function () {
519
519
  var query = getObject('query', args);
520
520
  var srtQry = new Query();
521
521
  for (var srt = this.parent.grid.sortSettings.columns.length - 1; srt >= 0; srt--) {
522
- var col = this.parent.grid.getColumnByField(this.parent.grid.sortSettings.columns[srt].field);
522
+ var getColumnByField = 'getColumnByField';
523
+ var col = this.parent.grid.renderModule.data[getColumnByField](this.parent.grid.
524
+ sortSettings.columns[srt].field);
523
525
  var compFun = col.sortComparer && isOffline(this.parent) ?
524
526
  col.sortComparer.bind(col) :
525
527
  this.parent.grid.sortSettings.columns[srt].direction;
@@ -719,6 +719,15 @@ var TreeGrid = /** @class */ (function (_super) {
719
719
  _this.trigger(events.rowSelecting, args);
720
720
  };
721
721
  this.grid.rowSelected = function (args) {
722
+ if (_this.enableVirtualization && args.isHeaderCheckboxClicked &&
723
+ _this.grid.currentViewData.length !== _this.grid.selectionModule.selectedRowIndexes.length) {
724
+ var updateRowSelection = 'updateRowSelection';
725
+ for (var i = 0; i < _this.getRows().length; i++) {
726
+ if (_this.getRows()[i].getElementsByClassName("e-frame e-icons e-uncheck").length) {
727
+ _this.grid.selectionModule[updateRowSelection](_this.getRows()[i], _this.getCurrentViewRecords()[i].index);
728
+ }
729
+ }
730
+ }
722
731
  _this.selectedRowIndex = _this.grid.selectedRowIndex;
723
732
  _this.notify(events.rowSelected, args);
724
733
  _this.trigger(events.rowSelected, args);
@@ -186,7 +186,9 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
186
186
  if (isNullOrUndefined(this.observer[containerRect])) {
187
187
  this.observer[containerRect] = this.observers[containerRect];
188
188
  }
189
- _super.prototype[selectVirtualRow].call(this, args);
189
+ if (args.selectedIndex !== 0 || isNullOrUndefined(this.parent['clipboardModule'].treeGridParent.editModule['addRowIndex'])) {
190
+ _super.prototype[selectVirtualRow].call(this, args);
191
+ }
190
192
  };
191
193
  VirtualTreeContentRenderer.prototype.refreshCell = function (rowObj) {
192
194
  rowObj.cells = this.generateCells();
@@ -63,6 +63,7 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
+ color: inherit;
66
67
  }
67
68
 
68
69
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -63,6 +63,7 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
+ color: inherit;
66
67
  }
67
68
 
68
69
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -63,6 +63,7 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
+ color: inherit;
66
67
  }
67
68
 
68
69
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -63,6 +63,7 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
+ color: inherit;
66
67
  }
67
68
 
68
69
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],