@refinitiv-ui/efx-grid 6.0.74 → 6.0.76
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +2 -2
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataView.js +1 -1
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/grid/lib/efx-grid.js +2 -20
- package/lib/row-segmenting/es6/RowSegmenting.js +14 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +0 -20
- package/lib/types/es6/CellSelection.d.ts +2 -0
- package/lib/versions.json +3 -3
- package/package.json +1 -1
@@ -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(
|
2817
|
+
this._dispatchDataChange(event);
|
2818
2818
|
return;
|
2819
2819
|
}
|
2820
2820
|
|
package/lib/grid/index.js
CHANGED
package/lib/grid/lib/efx-grid.js
CHANGED
@@ -213,26 +213,8 @@ class Grid extends ResponsiveElement {
|
|
213
213
|
*/
|
214
214
|
_dataUpdated() {
|
215
215
|
const api = this.api;
|
216
|
-
if (api) { // TODO: parse string data to JSON object
|
217
|
-
|
218
|
-
if (staticRows) {
|
219
|
-
const rowCount = api.getRowCount();
|
220
|
-
if (!rowCount) {
|
221
|
-
api.addStaticDataRows(this.data);
|
222
|
-
}
|
223
|
-
else {
|
224
|
-
// Update data to existing row
|
225
|
-
const fields = api.getColumnFields();
|
226
|
-
for (let i = 0; i < rowCount; i++) {
|
227
|
-
const rowDef = api.getRowDefinition(i);
|
228
|
-
rowDef.updateRowData(staticRows[i], fields);
|
229
|
-
}
|
230
|
-
if (staticRows.length > rowCount) {
|
231
|
-
staticRows = staticRows.slice(rowCount, staticRows.length);
|
232
|
-
api.addStaticDataRows(staticRows);
|
233
|
-
}
|
234
|
-
}
|
235
|
-
}
|
216
|
+
if (api && this.data) { // TODO: parse string data to JSON object
|
217
|
+
api.updateDataSet(this.data);
|
236
218
|
}
|
237
219
|
}
|
238
220
|
|
@@ -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
|
*/
|
@@ -3,6 +3,8 @@ import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
|
3
3
|
import { MouseDownTrait } from "../../tr-grid-util/es6/MouseDownTrait.js";
|
4
4
|
import { EventDispatcher } from "../../tr-grid-util/es6/EventDispatcher.js";
|
5
5
|
import { isIE, cloneObject, prepareTSVContent } from "../../tr-grid-util/es6/Util.js";
|
6
|
+
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
7
|
+
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
6
8
|
|
7
9
|
declare namespace CellSelectionPlugin {
|
8
10
|
|
package/lib/versions.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"tr-grid-util": "1.3.134",
|
3
3
|
"tr-grid-printer": "1.0.17",
|
4
4
|
"@grid/column-dragging": "1.0.14",
|
5
|
-
"@grid/row-segmenting": "1.0.
|
5
|
+
"@grid/row-segmenting": "1.0.30",
|
6
6
|
"@grid/statistics-row": "1.0.15",
|
7
7
|
"@grid/zoom": "1.0.11",
|
8
8
|
"tr-grid-auto-tooltip": "1.1.6",
|
@@ -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.
|
17
|
-
"tr-grid-conditional-coloring": "1.0.
|
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