@refinitiv-ui/efx-grid 6.0.75 → 6.0.77

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.
@@ -2814,7 +2814,7 @@ DataView.prototype._onDataChanged = function (e) {
2814
2814
  var event = events[0];
2815
2815
  if (event["globalChange"]) {
2816
2816
  this._updateRowIds(); // Reset all row ids and perform sorting
2817
- this._dispatchDataChange(e);
2817
+ this._dispatchDataChange(event);
2818
2818
  return;
2819
2819
  }
2820
2820
 
@@ -570,7 +570,7 @@ Core.prototype._firstRendered = false;
570
570
  * @return {string}
571
571
  */
572
572
  Core.getVersion = function () {
573
- return "5.1.81";
573
+ return "5.1.83";
574
574
  };
575
575
  /** {@link ElementWrapper#dispose}
576
576
  * @override
@@ -1345,7 +1345,7 @@ Scrollbar.prototype._onMouseWheel = function (e) {
1345
1345
  Util._preventDefault(e);
1346
1346
  return;
1347
1347
  }
1348
- if(e.ctrlKey || e.altKey || e.shiftKey) { return; }
1348
+ if(e.ctrlKey || e.altKey ) { return; }
1349
1349
  if (!this.isActive()) { return; }
1350
1350
 
1351
1351
  var delta = (this._vertical) ? e["deltaY"] : e["deltaX"];
package/lib/grid/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import {Grid} from "./lib/efx-grid.js";
2
2
  export {Grid}
3
- window.EFX_GRID = { version: "6.0.75" };
3
+ window.EFX_GRID = { version: "6.0.77" };
@@ -171,6 +171,16 @@ RowSegmentingPlugin.prototype.requestSeparatorRefresh = function () {
171
171
  * @private
172
172
  */
173
173
  RowSegmentingPlugin.prototype._refreshSegmentSeparator = function () {
174
+ var collapsedMapping = {};
175
+ var segmentRowIds = this.getSegmentIds() || [];
176
+ var segmentCount = segmentRowIds.length;
177
+ if(segmentCount){
178
+ for(var index = 0; index < segmentCount; index++){
179
+ var key = segmentRowIds[index];
180
+ collapsedMapping[key] = this.isSegmentCollapsed(key);
181
+ }
182
+ }
183
+
174
184
  if(this._prevSegmentBySegmentId) { // Check only the segmentation set by the segment ID field and exclude the segment separator set by the runtime API using the setSegmentSeparator method
175
185
  this._prevSegmentBySegmentId = false;
176
186
  this.unsetAllSegmentSeparators();
@@ -195,6 +205,10 @@ RowSegmentingPlugin.prototype._refreshSegmentSeparator = function () {
195
205
  this.setSegmentSeparator(rowId);
196
206
  }
197
207
  this._prevSegmentBySegmentId = true;
208
+
209
+ if(collapsedMapping[rowId]){
210
+ this.collapseSegment(rowId, collapsedMapping[rowId]);
211
+ }
198
212
  }
199
213
  }
200
214
  }
@@ -123,7 +123,6 @@ var ColumnStackPlugin = function () {
123
123
  this._onColumnAdded = this._onColumnAdded.bind(this);
124
124
  this._onBeforeBatchOperation = this._onBeforeBatchOperation.bind(this);
125
125
  this._onAfterBatchOperation = this._onAfterBatchOperation.bind(this);
126
- this._onPinningChanged = this._onPinningChanged.bind(this);
127
126
  this._onMenuItemClicked = this._onMenuItemClicked.bind(this);
128
127
 
129
128
  this._onStackButtonClicked = this._onStackButtonClicked.bind(this);
@@ -166,10 +165,6 @@ ColumnStackPlugin.prototype._inReordering = 0;
166
165
  * @private
167
166
  */
168
167
  ColumnStackPlugin.prototype._inResetting = false;
169
- /** @type {boolean}
170
- * @private
171
- */
172
- ColumnStackPlugin.prototype._inPinning = false;
173
168
  /** @type {Element}
174
169
  * @private
175
170
  */
@@ -248,7 +243,6 @@ ColumnStackPlugin.prototype.initialize = function (host, options) {
248
243
  host.listen("columnAdded", this._onColumnAdded);
249
244
  host.listen("beforeBatchOperation", this._onBeforeBatchOperation);
250
245
  host.listen("afterBatchOperation", this._onAfterBatchOperation);
251
- host.listen("pinningChanged", this._onPinningChanged);
252
246
  }
253
247
  host.listen("preSectionRender", this._onPreSectionRender);
254
248
 
@@ -269,7 +263,6 @@ ColumnStackPlugin.prototype.unload = function (host) {
269
263
  host.unlisten("beforeBatchOperation", this._onBeforeBatchOperation);
270
264
  host.unlisten("afterBatchOperation", this._onAfterBatchOperation);
271
265
  host.unlisten("preSectionRender", this._onPreSectionRender);
272
- host.unlisten("pinningChanged", this._onPinningChanged);
273
266
 
274
267
  if(this._menuElement) {
275
268
  this._menuElement.removeEventListener("item-trigger", this._onMenuItemClicked);
@@ -1113,12 +1106,10 @@ ColumnStackPlugin.prototype._verifyColumnPinning = function(stack) {
1113
1106
  * @param {number=} numRightColumn
1114
1107
  */
1115
1108
  ColumnStackPlugin.prototype._freezeColumn = function(frozenColIndex, numRightColumn) {
1116
- this._inPinning = true;
1117
1109
  var hosts = this._hosts;
1118
1110
  for (var i = 0; i < hosts.length; i++) {
1119
1111
  hosts[i].freezeColumn(frozenColIndex, numRightColumn);
1120
1112
  }
1121
- this._inPinning = false;
1122
1113
  };
1123
1114
 
1124
1115
  /** @public
@@ -1505,17 +1496,6 @@ ColumnStackPlugin.prototype._onAfterBatchOperation = function (e) {
1505
1496
  }
1506
1497
  };
1507
1498
  /** @private
1508
- * @param {Object} e
1509
- */
1510
- ColumnStackPlugin.prototype._onPinningChanged = function (e) {
1511
- if (!this._inPinning) {
1512
- var stacks = this._groupDefs.getGroups();
1513
- for (var i = 0; i < stacks.length; i++) {
1514
- this._verifyColumnPinning(stacks[i]);
1515
- }
1516
- }
1517
- };
1518
- /** @private
1519
1499
  * @param {number} colIndex
1520
1500
  * @return {Object} stackOption
1521
1501
  */
package/lib/versions.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "tr-grid-util": "1.3.134",
3
3
  "tr-grid-printer": "1.0.17",
4
- "@grid/column-dragging": "1.0.14",
5
- "@grid/row-segmenting": "1.0.29",
6
- "@grid/statistics-row": "1.0.15",
4
+ "@grid/column-dragging": "1.0.15",
5
+ "@grid/row-segmenting": "1.0.30",
6
+ "@grid/statistics-row": "1.0.16",
7
7
  "@grid/zoom": "1.0.11",
8
8
  "tr-grid-auto-tooltip": "1.1.6",
9
9
  "tr-grid-cell-selection": "1.0.34",
@@ -13,8 +13,8 @@
13
13
  "tr-grid-column-grouping": "1.0.57",
14
14
  "tr-grid-column-resizing": "1.0.28",
15
15
  "tr-grid-column-selection": "1.0.31",
16
- "tr-grid-column-stack": "1.0.73",
17
- "tr-grid-conditional-coloring": "1.0.67",
16
+ "tr-grid-column-stack": "1.0.74",
17
+ "tr-grid-conditional-coloring": "1.0.68",
18
18
  "tr-grid-content-wrap": "1.0.20",
19
19
  "tr-grid-contextmenu": "1.0.40",
20
20
  "tr-grid-filter-input": "0.9.37",
package/package.json CHANGED
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "version": "6.0.75"
69
+ "version": "6.0.77"
70
70
  }