@refinitiv-ui/efx-grid 6.0.57 → 6.0.59
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +25 -4
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataTable.js +8 -0
- package/lib/core/es6/grid/Core.js +3 -1
- package/lib/core/es6/grid/event/EventListeners.js +3 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +3 -3
- package/lib/core/es6/grid/util/TrackLayout.d.ts +2 -0
- package/lib/core/es6/grid/util/TrackLayout.js +8 -0
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +48 -16
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +3 -3
- package/lib/rt-grid/es6/Grid.js +16 -8
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +3 -1
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +64 -8
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +1 -1
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +35 -5
- package/lib/tr-grid-util/es6/ElementObserver.js +4 -2
- package/lib/tr-grid-util/es6/ElementWrapper.js +3 -2
- package/lib/tr-grid-util/es6/GridPlugin.js +5 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +4 -2
- package/lib/tr-grid-util/es6/SubTable.js +136 -72
- package/lib/tr-grid-util/es6/Table.d.ts +25 -10
- package/lib/tr-grid-util/es6/Table.js +103 -78
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +1 -1
- package/lib/types/es6/ColumnStack.d.ts +3 -1
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +2 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +3 -3
- package/lib/types/es6/TextFormatting.d.ts +1 -1
- package/lib/versions.json +3 -3
- package/package.json +1 -1
package/lib/core/dist/core.js
CHANGED
@@ -483,6 +483,9 @@ EventListeners.prototype.dispatch = function (eventArg) {
|
|
483
483
|
this._listeners[i](eventArg);
|
484
484
|
}
|
485
485
|
|
486
|
+
if(this._sender !== null) {
|
487
|
+
eventArg["sender"] = null; // Clear ref variable to prevent memory leak
|
488
|
+
}
|
486
489
|
this._dispatching = false;
|
487
490
|
};
|
488
491
|
/** @public
|
@@ -2644,6 +2647,14 @@ TrackLayout.prototype.hitTest = function (val) {
|
|
2644
2647
|
return hitIndex;
|
2645
2648
|
};
|
2646
2649
|
|
2650
|
+
/**
|
2651
|
+
* @public
|
2652
|
+
*/
|
2653
|
+
TrackLayout.prototype.dispose = function () {
|
2654
|
+
// TODO: Column dragging extension refers to this variable, so the reference instance should be deleted instead of set a new pointer
|
2655
|
+
this._cols = this._ends = null;
|
2656
|
+
};
|
2657
|
+
|
2647
2658
|
/** If optional index is not given, the entire track is taken into account
|
2648
2659
|
* @public
|
2649
2660
|
* @param {number=} opt_index
|
@@ -15022,6 +15033,7 @@ DataTable.prototype.dispose = function() {
|
|
15022
15033
|
|
15023
15034
|
this._compMap = null; // Release user function that may be bound
|
15024
15035
|
this._clsSource = null;
|
15036
|
+
DataTable._removeIndexArray();
|
15025
15037
|
if(this._segments) {
|
15026
15038
|
this._segments.dispose();
|
15027
15039
|
this._segments = null;
|
@@ -16835,6 +16847,13 @@ DataTable._createIndexArray = function(len) {
|
|
16835
16847
|
}
|
16836
16848
|
return ary.slice(); // Fastest way to clone an array is to perform slice() method
|
16837
16849
|
};
|
16850
|
+
/** Remove _idxAryMap and _idAryCount
|
16851
|
+
* @private
|
16852
|
+
*/
|
16853
|
+
DataTable._removeIndexArray = function() {
|
16854
|
+
DataTable._idxAryMap = {};
|
16855
|
+
DataTable._idxAryCount = 0;
|
16856
|
+
};
|
16838
16857
|
/** @private
|
16839
16858
|
* @type {Object.<number, Array.<number>>}
|
16840
16859
|
*/
|
@@ -26053,7 +26072,7 @@ Core_Core.prototype._batches = null;
|
|
26053
26072
|
* @return {string}
|
26054
26073
|
*/
|
26055
26074
|
Core_Core.getVersion = function () {
|
26056
|
-
return "5.1.
|
26075
|
+
return "5.1.74";
|
26057
26076
|
};
|
26058
26077
|
/** {@link ElementWrapper#dispose}
|
26059
26078
|
* @override
|
@@ -26108,6 +26127,8 @@ Core_Core.prototype.dispose = function () {
|
|
26108
26127
|
this._columnBoundConflator.dispose();
|
26109
26128
|
this._columnPositionConflator.dispose();
|
26110
26129
|
this._rowPositionConflator.dispose();
|
26130
|
+
this._layoutX.dispose();
|
26131
|
+
this._layoutY.dispose();
|
26111
26132
|
|
26112
26133
|
|
26113
26134
|
// Clean Top node
|
@@ -32190,9 +32211,9 @@ SortableTitlePlugin.prototype.sortColumns = function (sortOptions, opt_arg) {
|
|
32190
32211
|
var states = [];
|
32191
32212
|
for (var i = 0; i < sortOptions.length; i++) {
|
32192
32213
|
var opt = sortOptions[i];
|
32193
|
-
var colRef = opt["
|
32194
|
-
if(colRef
|
32195
|
-
colRef = opt["
|
32214
|
+
var colRef = opt["colId"] || opt["field"];
|
32215
|
+
if(colRef == null) {
|
32216
|
+
colRef = opt["colIndex"];
|
32196
32217
|
}
|
32197
32218
|
var state = this._prepareSorting(
|
32198
32219
|
colRef,
|