@refinitiv-ui/efx-grid 6.0.35 → 6.0.36
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/core/dist/core.css +1 -1
- package/lib/core/dist/core.js +150 -6
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataCache.js +20 -1
- package/lib/core/es6/grid/Core.js +25 -2
- package/lib/core/es6/grid/ILayoutGrid.js +4 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +4 -0
- package/lib/core/es6/grid/LayoutGrid.js +95 -3
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +6 -0
- package/lib/core/es6/tr-grid-theme.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +25 -7
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +4 -5
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +552 -607
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +4 -1
- package/lib/tr-grid-range-bar/es6/RangeBar.js +99 -39
- package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +7 -1
- package/lib/tr-grid-util/es6/GroupDefinitions.js +39 -3
- package/lib/types/es6/Core/grid/Core.d.ts +12 -0
- package/lib/versions.json +3 -3
- package/package.json +1 -1
package/lib/rt-grid/es6/Grid.js
CHANGED
@@ -326,6 +326,7 @@ var Grid = function(placeholder, config) {
|
|
326
326
|
t._dc = new DataCache();
|
327
327
|
t._dc.listen("dataChanged", t._onDataChanged);
|
328
328
|
t._dc.listen("dataComposed", t._onDataComposed);
|
329
|
+
t._dc.addStaticFields([ROW_DEF, SUB_ID]); // Static fields are deprecated, set fields to be ignore during clone in DataCache
|
329
330
|
|
330
331
|
t._dt = new DataTable();
|
331
332
|
t._dt.setSortingLogic(/** @type{Function} */(t._mainSorter));
|
@@ -1526,8 +1527,11 @@ Grid.prototype.replaceColumn = function (columnOption, colRef) {
|
|
1526
1527
|
if(colDef.getChildren()) { // Parent time series field doesn't provide hidden property
|
1527
1528
|
colConfig["hidden"] = false;
|
1528
1529
|
}
|
1530
|
+
|
1531
|
+
this._grid.startBatch("reset");
|
1529
1532
|
this.insertColumn(colConfig, colIndex);
|
1530
1533
|
this.removeColumn(colIndex + 1); // remove existing column after insert
|
1534
|
+
this._grid.stopBatch("reset");
|
1531
1535
|
};
|
1532
1536
|
|
1533
1537
|
/** to update column name when field info is loaded
|
@@ -1788,11 +1792,6 @@ Grid.prototype._onColumnAdded = function(e) {
|
|
1788
1792
|
this._grid.enableColumnClass(idx, classes[i]);
|
1789
1793
|
}
|
1790
1794
|
var colField = colDef.getField();
|
1791
|
-
if (!colDef.isRealTimeField()) {
|
1792
|
-
if(this._dc) {
|
1793
|
-
this._dc.addStaticFields([colField]);
|
1794
|
-
}
|
1795
|
-
}
|
1796
1795
|
this._grid.setDataColumnName(idx, ROW_DEF); // This make ColumnDefinition renderer work
|
1797
1796
|
var fields = colDef.getAllFields();
|
1798
1797
|
var referrer = colDef.getId();
|
@@ -3,6 +3,7 @@ import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
|
3
3
|
import { Conflator } from "../../tr-grid-util/es6/Conflator.js";
|
4
4
|
import { Icon } from "../../tr-grid-util/es6/Icon.js";
|
5
5
|
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
6
|
+
import { GroupDefinitions } from "../../tr-grid-util/es6/GroupDefinitions.js";
|
6
7
|
import { Dom } from "../../tr-grid-util/es6/Dom.js";
|
7
8
|
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
8
9
|
import { preventDefault } from "../../tr-grid-util/es6/EventDispatcher.js";
|