@refinitiv-ui/efx-grid 6.0.90 → 6.0.91
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +40 -8
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataTable.d.ts +2 -0
- package/lib/core/es6/data/DataTable.js +12 -1
- package/lib/core/es6/data/DataView.d.ts +2 -0
- package/lib/core/es6/data/DataView.js +10 -2
- package/lib/core/es6/data/Segment.js +6 -4
- package/lib/core/es6/data/SegmentCollection.d.ts +2 -0
- package/lib/core/es6/data/SegmentCollection.js +11 -0
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/grid/index.js +1 -1
- package/package.json +1 -1
package/lib/core/dist/core.js
CHANGED
@@ -13696,10 +13696,12 @@ Segment.prototype.getSubSegmentIds = function(out_ary) {
|
|
13696
13696
|
Segment.prototype.addChild = function(rid, dataId) {
|
13697
13697
|
if(rid) {
|
13698
13698
|
this._shared.childToSegment[rid] = this._rid;
|
13699
|
-
if(this.
|
13700
|
-
this.
|
13701
|
-
}
|
13702
|
-
|
13699
|
+
if(this._children[rid]) {
|
13700
|
+
this._children[rid] = dataId || rid; // Update data id
|
13701
|
+
} else {
|
13702
|
+
if(this._collapsed) {
|
13703
|
+
this._shared.dirtyCollapsingState = true; // TODO: Check if we need to update this only when new child is added
|
13704
|
+
}
|
13703
13705
|
this._children[rid] = dataId || rid;
|
13704
13706
|
++this._childCount;
|
13705
13707
|
return true;
|
@@ -14477,6 +14479,17 @@ SegmentCollection.prototype.getSegment = function(rid) {
|
|
14477
14479
|
return this._segments[rid] || null;
|
14478
14480
|
};
|
14479
14481
|
/** @public
|
14482
|
+
* @param {string} rid
|
14483
|
+
* @return {Segment}
|
14484
|
+
*/
|
14485
|
+
SegmentCollection.prototype.getSegmentParent = function(rid) {
|
14486
|
+
var parentRowId = this.getParentRowId(rid);
|
14487
|
+
if(parentRowId) {
|
14488
|
+
return this.getSegment(parentRowId);
|
14489
|
+
}
|
14490
|
+
return null;
|
14491
|
+
};
|
14492
|
+
/** @public
|
14480
14493
|
* @return {Object.<string, Segment>}
|
14481
14494
|
*/
|
14482
14495
|
SegmentCollection.prototype.getSegments = function() {
|
@@ -15943,7 +15956,7 @@ DataTable.prototype.isSegmentSeparator = function(rid) {
|
|
15943
15956
|
/** Get Segment object
|
15944
15957
|
* @public
|
15945
15958
|
* @param {string} rid Row id
|
15946
|
-
* @return {Segment}
|
15959
|
+
* @return {Segment} Returns null if a segment cannot be found
|
15947
15960
|
*/
|
15948
15961
|
DataTable.prototype.getSegment = function(rid) {
|
15949
15962
|
if(this._segments) {
|
@@ -15951,6 +15964,17 @@ DataTable.prototype.getSegment = function(rid) {
|
|
15951
15964
|
}
|
15952
15965
|
return null;
|
15953
15966
|
};
|
15967
|
+
/**
|
15968
|
+
* @public
|
15969
|
+
* @param {string} rid Row id of a segment child
|
15970
|
+
* @return {string} Returns null if a segment cannot be found
|
15971
|
+
*/
|
15972
|
+
DataTable.prototype.getSegmentParent = function(rid) {
|
15973
|
+
if(this._segments) {
|
15974
|
+
return this._segments.getSegmentParent(rid);
|
15975
|
+
}
|
15976
|
+
return null;
|
15977
|
+
};
|
15954
15978
|
/** Segment level starts from 1
|
15955
15979
|
* @public
|
15956
15980
|
* @param {string} rid
|
@@ -21326,12 +21350,20 @@ DataView.prototype.isSegmentSeparator = function(rid) {
|
|
21326
21350
|
|
21327
21351
|
/** Get Segment object
|
21328
21352
|
* @public
|
21329
|
-
* @param {string} rid Row id
|
21330
|
-
* @return {Segment}
|
21353
|
+
* @param {string} rid Row id of a segment
|
21354
|
+
* @return {Segment} Returns null if a segment cannot be found
|
21331
21355
|
*/
|
21332
21356
|
DataView.prototype.getSegment = function(rid) {
|
21333
21357
|
return this._dt.getSegment(rid);
|
21334
21358
|
};
|
21359
|
+
/**
|
21360
|
+
* @public
|
21361
|
+
* @param {string} rid Row id of a segment child
|
21362
|
+
* @return {string} Returns null if a segment cannot be found
|
21363
|
+
*/
|
21364
|
+
DataView.prototype.getSegmentParent = function(rid) {
|
21365
|
+
return this._dt.getSegmentParent(rid);
|
21366
|
+
};
|
21335
21367
|
/** Segment level starts from 1
|
21336
21368
|
* @public
|
21337
21369
|
* @param {string} rid Row id
|
@@ -26178,7 +26210,7 @@ Core_Core.prototype._hasPendingRowChange = false;
|
|
26178
26210
|
* @return {string}
|
26179
26211
|
*/
|
26180
26212
|
Core_Core.getVersion = function () {
|
26181
|
-
return "5.1.
|
26213
|
+
return "5.1.94";
|
26182
26214
|
};
|
26183
26215
|
/** {@link ElementWrapper#dispose}
|
26184
26216
|
* @override
|