@refinitiv-ui/efx-grid 6.0.74 → 6.0.75
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/grid/index.js
CHANGED
package/lib/grid/lib/efx-grid.js
CHANGED
@@ -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
|
-
|
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