@refinitiv-ui/efx-grid 6.0.74 → 6.0.75

Sign up to get free protection for your applications and to get access to all the features.
package/lib/grid/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import {Grid} from "./lib/efx-grid.js";
2
2
  export {Grid}
3
- window.EFX_GRID = { version: "6.0.74" };
3
+ window.EFX_GRID = { version: "6.0.75" };
@@ -213,26 +213,8 @@ class Grid extends ResponsiveElement {
213
213
  */
214
214
  _dataUpdated() {
215
215
  const api = this.api;
216
- if (api) { // TODO: parse string data to JSON object
217
- let staticRows = this.data;
218
- if (staticRows) {
219
- const rowCount = api.getRowCount();
220
- if (!rowCount) {
221
- api.addStaticDataRows(this.data);
222
- }
223
- else {
224
- // Update data to existing row
225
- const fields = api.getColumnFields();
226
- for (let i = 0; i < rowCount; i++) {
227
- const rowDef = api.getRowDefinition(i);
228
- rowDef.updateRowData(staticRows[i], fields);
229
- }
230
- if (staticRows.length > rowCount) {
231
- staticRows = staticRows.slice(rowCount, staticRows.length);
232
- api.addStaticDataRows(staticRows);
233
- }
234
- }
235
- }
216
+ if (api && this.data) { // TODO: parse string data to JSON object
217
+ api.updateDataSet(this.data);
236
218
  }
237
219
  }
238
220
 
@@ -3,6 +3,8 @@ import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
3
3
  import { MouseDownTrait } from "../../tr-grid-util/es6/MouseDownTrait.js";
4
4
  import { EventDispatcher } from "../../tr-grid-util/es6/EventDispatcher.js";
5
5
  import { isIE, cloneObject, prepareTSVContent } from "../../tr-grid-util/es6/Util.js";
6
+ import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
7
+ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
6
8
 
7
9
  declare namespace CellSelectionPlugin {
8
10
 
package/package.json CHANGED
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "version": "6.0.74"
69
+ "version": "6.0.75"
70
70
  }