@refinitiv-ui/efx-grid 6.0.14 → 6.0.15
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 +79 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +2 -0
- package/lib/rt-grid/es6/Grid.js +22 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +4 -0
- package/lib/rt-grid/es6/RowDefinition.js +57 -0
- package/package.json +15 -2
@@ -193,6 +193,8 @@ declare class Grid extends EventDispatcher {
|
|
193
193
|
|
194
194
|
public setRic(rowRef: Grid.RowReference|null, str: string): void;
|
195
195
|
|
196
|
+
public unlinkChain(rowRef: Grid.RowReference|null): void;
|
197
|
+
|
196
198
|
public setRowContent(rowRef: Grid.RowReference|null, str: string): void;
|
197
199
|
|
198
200
|
public toggleRowExpansion(rid: string|number|null, force?: boolean|null): void;
|
package/lib/rt-grid/es6/Grid.js
CHANGED
@@ -2245,6 +2245,28 @@ Grid.prototype.setRic = function(rowRef, str) {
|
|
2245
2245
|
}
|
2246
2246
|
}
|
2247
2247
|
};
|
2248
|
+
/** Unlink the chain and its constituents. When the chain is expanded,
|
2249
|
+
* the chain row and its members are converted from autogenerated to
|
2250
|
+
* regular real-time rows. Only the chain row will be transformed to
|
2251
|
+
* a conventional real-time row if the chain is collapsed.
|
2252
|
+
* All converted rows will continue to have their data updated.
|
2253
|
+
*
|
2254
|
+
* @public
|
2255
|
+
* @param {Grid~RowReference} rowRef
|
2256
|
+
*/
|
2257
|
+
Grid.prototype.unlinkChain = function(rowRef) {
|
2258
|
+
var rowDef = this._getRowDefinition(rowRef);
|
2259
|
+
if(!rowDef) {
|
2260
|
+
return;
|
2261
|
+
}
|
2262
|
+
|
2263
|
+
if(!rowDef.isChain()) {
|
2264
|
+
return;
|
2265
|
+
}
|
2266
|
+
|
2267
|
+
rowDef.unlinkChain();
|
2268
|
+
};
|
2269
|
+
|
2248
2270
|
/** Alias to setRic
|
2249
2271
|
* @public
|
2250
2272
|
* @function
|
@@ -91,6 +91,10 @@ declare class RowDefinition {
|
|
91
91
|
|
92
92
|
public static deregisterFromView(rowIds: (string)[]|null, rowDef: RowDefinition|null): (string)[]|null;
|
93
93
|
|
94
|
+
public _toRealTimeRow(): void;
|
95
|
+
|
96
|
+
public unlinkChain(): void;
|
97
|
+
|
94
98
|
public collapseChain(): boolean;
|
95
99
|
|
96
100
|
public expandChain(): boolean;
|
@@ -764,6 +764,63 @@ RowDefinition.prototype.addConstituent = function(ric) {
|
|
764
764
|
|
765
765
|
return newChild ? childDef : null;
|
766
766
|
};
|
767
|
+
|
768
|
+
/** Used to convert autogenerated row to regular real-time row
|
769
|
+
* @public
|
770
|
+
*/
|
771
|
+
RowDefinition.prototype._toRealTimeRow = function() {
|
772
|
+
if(!this._ric) { // Empty row
|
773
|
+
return;
|
774
|
+
}
|
775
|
+
if(this.isRowHeader()) {
|
776
|
+
return;
|
777
|
+
}
|
778
|
+
|
779
|
+
this._realTimeField = true;
|
780
|
+
this._dataId = this._rowId + this._ric; // JET/RTK will generate data id to be rowId (given from this rowDef) + ric;
|
781
|
+
|
782
|
+
this._autoGenerated = false;
|
783
|
+
this._parent = null;
|
784
|
+
this._depthLevel = 0;
|
785
|
+
|
786
|
+
this.subscribeForUpdates();
|
787
|
+
};
|
788
|
+
|
789
|
+
/** @public
|
790
|
+
*/
|
791
|
+
RowDefinition.prototype.unlinkChain = function() {
|
792
|
+
if(!this._isChain) {
|
793
|
+
return;
|
794
|
+
}
|
795
|
+
|
796
|
+
if(this.isChainExpanded()) {
|
797
|
+
var rowDefs = this.getDescendants();
|
798
|
+
var len = rowDefs.length;
|
799
|
+
for(var i = 0; i < len; i++) {
|
800
|
+
rowDefs[i]._toRealTimeRow();
|
801
|
+
}
|
802
|
+
}
|
803
|
+
|
804
|
+
this.unsubscribeForUpdates();
|
805
|
+
|
806
|
+
var view = this._view;
|
807
|
+
if(view) {
|
808
|
+
var rid = this.getRowId();
|
809
|
+
var segment = view.getSegment(rid);
|
810
|
+
if(segment) {
|
811
|
+
segment.setClassification(null);
|
812
|
+
}
|
813
|
+
view.setSegmentSeparator(rid, false);
|
814
|
+
}
|
815
|
+
|
816
|
+
this._isChain = this._expanded = false;
|
817
|
+
this._chainRic = "";
|
818
|
+
this._userInput = this._ric;
|
819
|
+
this._children = null;
|
820
|
+
|
821
|
+
this.subscribeForUpdates();
|
822
|
+
};
|
823
|
+
|
767
824
|
/** @public
|
768
825
|
* @return {boolean} Returns true if there is a change in view
|
769
826
|
*/
|
package/package.json
CHANGED
@@ -11,6 +11,18 @@
|
|
11
11
|
"*": {
|
12
12
|
"extensions": [
|
13
13
|
"lib/types/index.d.ts"
|
14
|
+
],
|
15
|
+
"column-selection-dialog": [
|
16
|
+
"lib/column-selection-dialog/lib/column-selection-dialog.d.ts"
|
17
|
+
],
|
18
|
+
"column-format-dialog": [
|
19
|
+
"lib/column-format-dialog/lib/column-format-dialog.d.ts"
|
20
|
+
],
|
21
|
+
"filter-dialog": [
|
22
|
+
"lib/filter-dialog/lib/filter-dialog.d.ts"
|
23
|
+
],
|
24
|
+
"grid": [
|
25
|
+
"lib/grid/lib/efx-grid.d.ts"
|
14
26
|
]
|
15
27
|
}
|
16
28
|
},
|
@@ -36,7 +48,8 @@
|
|
36
48
|
"./filter-dialog/themes/solar/charcoal": "./lib/filter-dialog/themes/solar/charcoal.js",
|
37
49
|
"./filter-dialog/themes/solar/pearl": "./lib/filter-dialog/themes/solar/pearl.js",
|
38
50
|
"./extensions": "./lib/index.js",
|
39
|
-
"./window-exporter": "./lib/window-exporter.js"
|
51
|
+
"./window-exporter": "./lib/window-exporter.js",
|
52
|
+
"./grid": "./lib/grid/lib/efx-grid.js"
|
40
53
|
},
|
41
54
|
"peerDependencies": {
|
42
55
|
"@refinitiv-ui/core": "^6.2.0",
|
@@ -45,5 +58,5 @@
|
|
45
58
|
"publishConfig": {
|
46
59
|
"access": "public"
|
47
60
|
},
|
48
|
-
"version": "6.0.
|
61
|
+
"version": "6.0.15"
|
49
62
|
}
|