@refinitiv-ui/efx-grid 6.0.56 → 6.0.58
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +7 -2
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +340 -44
- package/lib/column-selection-dialog/lib/locale/translation-de.js +1 -1
- package/lib/column-selection-dialog/lib/locale/translation-en.js +1 -1
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +1 -1
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +1 -1
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +1 -1
- package/lib/column-selection-dialog/themes/base.less +10 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/dark.js +3 -1
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/light.js +3 -1
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/halo/dark.js +3 -1
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light.js +3 -1
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/solar/charcoal.js +3 -1
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/solar/pearl.js +3 -1
- package/lib/core/dist/core.js +22 -1
- 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/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 +40 -8
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +8 -0
- package/lib/tr-grid-printer/es6/index.js +1 -1
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +1 -1
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +35 -5
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +2 -0
- package/lib/versions.json +2 -2
- 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.73";
|
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
|