@refinitiv-ui/efx-grid 6.0.14 → 6.0.16
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.
- package/lib/column-format-dialog/index.d.ts +2 -1
- package/lib/column-format-dialog/index.js +2 -1
- package/lib/column-selection-dialog/index.d.ts +2 -1
- package/lib/column-selection-dialog/index.js +2 -1
- package/lib/core/dist/core.js +19 -9
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataTable.js +1 -1
- package/lib/core/es6/data/Segment.d.ts +3 -3
- package/lib/core/es6/data/Segment.js +14 -6
- package/lib/core/es6/data/SegmentCollection.d.ts +1 -1
- package/lib/core/es6/data/SegmentCollection.js +3 -1
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/filter-dialog/index.d.ts +2 -1
- package/lib/filter-dialog/index.js +2 -1
- package/lib/grid/index.d.ts +2 -1
- package/lib/grid/index.js +3 -2
- package/lib/rt-grid/dist/rt-grid.js +740 -84
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +10 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +110 -1
- package/lib/rt-grid/es6/FieldDefinition.d.ts +6 -0
- package/lib/rt-grid/es6/FieldDefinition.js +43 -0
- package/lib/rt-grid/es6/Grid.d.ts +2 -0
- package/lib/rt-grid/es6/Grid.js +206 -8
- package/lib/rt-grid/es6/RowDefinition.d.ts +4 -0
- package/lib/rt-grid/es6/RowDefinition.js +57 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +1 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +125 -17
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +2 -2
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +30 -29
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +176 -98
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +17 -15
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +89 -159
- package/lib/versions.json +4 -4
- package/package.json +15 -2
@@ -1 +1,2 @@
|
|
1
|
-
import "./lib/column-format-dialog.js";
|
1
|
+
import {ColumnFormatDialog} from "./lib/column-format-dialog.js";
|
2
|
+
export {ColumnFormatDialog}
|
@@ -1 +1,2 @@
|
|
1
|
-
import "./lib/column-format-dialog.js";
|
1
|
+
import {ColumnFormatDialog} from "./lib/column-format-dialog.js";
|
2
|
+
export {ColumnFormatDialog}
|
@@ -1 +1,2 @@
|
|
1
|
-
import "./lib/column-selection-dialog.js";
|
1
|
+
import {ColumnSelectionDialog} from "./lib/column-selection-dialog.js";
|
2
|
+
export {ColumnSelectionDialog}
|
@@ -1 +1,2 @@
|
|
1
|
-
import "./lib/column-selection-dialog.js";
|
1
|
+
import {ColumnSelectionDialog} from "./lib/column-selection-dialog.js";
|
2
|
+
export {ColumnSelectionDialog}
|
package/lib/core/dist/core.js
CHANGED
@@ -12041,6 +12041,7 @@ EventDispatcher_EventDispatcher.preventDefault = preventDefault;
|
|
12041
12041
|
|
12042
12042
|
|
12043
12043
|
/** @constructor
|
12044
|
+
* @extends {EventDispatcher}
|
12044
12045
|
* @param {string} rid
|
12045
12046
|
* @param {!Object} sharedObj
|
12046
12047
|
*/
|
@@ -12290,7 +12291,6 @@ Segment.prototype.removeChildren = function(rids) {
|
|
12290
12291
|
return dirty ? true : false;
|
12291
12292
|
};
|
12292
12293
|
/** @public
|
12293
|
-
* @param {Object=} objMap
|
12294
12294
|
* @return {boolean}
|
12295
12295
|
*/
|
12296
12296
|
Segment.prototype.removeAllChildren = function() {
|
@@ -12411,6 +12411,11 @@ Segment.prototype.classify = function(rows) {
|
|
12411
12411
|
}
|
12412
12412
|
}
|
12413
12413
|
|
12414
|
+
var sharedObj = this._shared;
|
12415
|
+
if(this._collapsed) {
|
12416
|
+
sharedObj.dirtyCollapsingState = true;
|
12417
|
+
}
|
12418
|
+
|
12414
12419
|
// Prepare existing sub segments for checking change in its members
|
12415
12420
|
var i;
|
12416
12421
|
var segmentName = "";
|
@@ -12429,6 +12434,9 @@ Segment.prototype.classify = function(rows) {
|
|
12429
12434
|
segment._children = {};
|
12430
12435
|
segment._childCount = 0;
|
12431
12436
|
}
|
12437
|
+
if(segment._collapsed) {
|
12438
|
+
sharedObj.dirtyCollapsingState = true;
|
12439
|
+
}
|
12432
12440
|
}
|
12433
12441
|
}
|
12434
12442
|
|
@@ -12449,7 +12457,7 @@ Segment.prototype.classify = function(rows) {
|
|
12449
12457
|
var record = rows[dataId];
|
12450
12458
|
var val = record ? record[classifier] : null; // WARNING: row could already be removed
|
12451
12459
|
|
12452
|
-
|
12460
|
+
sharedObj.childToSegment[rid] = this._rid; // Relocate child in case of it has been moved to a non existence group
|
12453
12461
|
|
12454
12462
|
segmentName = "Uncategorized";
|
12455
12463
|
if(val || val === 0 || val === false) { // Check for null, undefined, "", and NaN value
|
@@ -12462,7 +12470,7 @@ Segment.prototype.classify = function(rows) {
|
|
12462
12470
|
|
12463
12471
|
segment = segmentMap[segmentName];
|
12464
12472
|
if(!segment) { // New group is detected
|
12465
|
-
segment = new Segment(this._rid + "/" + segmentName,
|
12473
|
+
segment = new Segment(this._rid + "/" + segmentName, sharedObj);
|
12466
12474
|
segment._subSegDef = this._subSegDef;
|
12467
12475
|
segment._subSegLevel = this._subSegLevel + 1;
|
12468
12476
|
segment._subSegName = segmentName;
|
@@ -12482,7 +12490,7 @@ Segment.prototype.classify = function(rows) {
|
|
12482
12490
|
}
|
12483
12491
|
} else if(isRootSegment) { // In case of no classification
|
12484
12492
|
for(rid in children) {
|
12485
|
-
|
12493
|
+
sharedObj.childToSegment[rid] = this._rid; // Relocate child in case of it has been moved to a non existence group
|
12486
12494
|
}
|
12487
12495
|
}
|
12488
12496
|
|
@@ -12582,7 +12590,7 @@ Segment.prototype.getAllSubSegments = function(out_ary) {
|
|
12582
12590
|
segment.getAllSubSegments(out_ary);
|
12583
12591
|
}
|
12584
12592
|
}
|
12585
|
-
return out_ary;
|
12593
|
+
return out_ary || null;
|
12586
12594
|
};
|
12587
12595
|
/** @public
|
12588
12596
|
* @return {number}
|
@@ -12662,7 +12670,7 @@ Segment.prototype.isCollapsed = function() {
|
|
12662
12670
|
/** @public
|
12663
12671
|
* @param {Object=} objMap
|
12664
12672
|
* @param {boolean=} parentState=false Collapsing state from parent segment
|
12665
|
-
* @return {
|
12673
|
+
* @return {boolean}
|
12666
12674
|
*/
|
12667
12675
|
Segment.prototype.getCollapsingStates = function(objMap, parentState) {
|
12668
12676
|
var segmentNames = this._subSegNames;
|
@@ -12776,6 +12784,7 @@ Segment.prototype.log = function(lines) {
|
|
12776
12784
|
|
12777
12785
|
|
12778
12786
|
/** @constructor
|
12787
|
+
* @extends {EventDispatcher}
|
12779
12788
|
*/
|
12780
12789
|
var SegmentCollection = function() {
|
12781
12790
|
this._onSubSegmentAdded = this._onSubSegmentAdded.bind(this);
|
@@ -12834,6 +12843,7 @@ SegmentCollection.prototype._classifierChanged = false;
|
|
12834
12843
|
*/
|
12835
12844
|
SegmentCollection.prototype.dispose = function() {
|
12836
12845
|
this.removeAllSegments();
|
12846
|
+
this.removeAllEventListeners();
|
12837
12847
|
this._collapsedRids = null;
|
12838
12848
|
this._segmentList = this._insertionList = this._removalList = null;
|
12839
12849
|
};
|
@@ -13111,7 +13121,7 @@ SegmentCollection.prototype.removeAllSegmentChildren = function() {
|
|
13111
13121
|
}
|
13112
13122
|
|
13113
13123
|
if(dirty) {
|
13114
|
-
this.classify();
|
13124
|
+
this.classify(null);
|
13115
13125
|
}
|
13116
13126
|
|
13117
13127
|
return dirty;
|
@@ -13476,7 +13486,7 @@ DataTable.prototype.dispose = function() {
|
|
13476
13486
|
this.clearAllData(true);
|
13477
13487
|
|
13478
13488
|
if(this._classifyingTimer) {
|
13479
|
-
clearTimeout(this.
|
13489
|
+
clearTimeout(this._classifyingTimer);
|
13480
13490
|
this._classifyingTimer = 0;
|
13481
13491
|
}
|
13482
13492
|
|
@@ -24198,7 +24208,7 @@ Core_Core.prototype._rowHeightTimerId = 0;
|
|
24198
24208
|
* @return {string}
|
24199
24209
|
*/
|
24200
24210
|
Core_Core.getVersion = function () {
|
24201
|
-
return "5.1.
|
24211
|
+
return "5.1.27";
|
24202
24212
|
};
|
24203
24213
|
/** {@link ElementWrapper#dispose}
|
24204
24214
|
* @override
|