sccoreui 6.0.3 → 6.0.4

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.
@@ -69,8 +69,8 @@ const fillOperation = (params, api, initialDragRowIndex, callBack) => {
69
69
  if (rowData && rowData !== parentRowData) {
70
70
  selectedRows.push(rowData);
71
71
  }
72
- // Reflect the change in the grid
73
- api.applyTransaction({ update: [rowData] });
72
+ // Reflect the change in the row node directly
73
+ rowNode.setDataValue(columnDetails.field, rowData[columnDetails.field]);
74
74
  }
75
75
  // Refresh the cells to show the updated data
76
76
  api.refreshCells({ force: true });
@@ -225,6 +225,8 @@ function ParentForGrid(props) {
225
225
  const wrapperToFillOpertation = (params) => {
226
226
  (0, helper_1.fillOperation)(params, api, initialDragRowIndex, props === null || props === void 0 ? void 0 : props.updateCell);
227
227
  };
228
+ // Give unique id for rows to grid
229
+ const getRowId = (prams) => prams.data.id;
228
230
  // Options that grid should have
229
231
  const gridOptions = {
230
232
  columnDefs: gridData.columnData.map((column) => {
@@ -258,7 +260,8 @@ function ParentForGrid(props) {
258
260
  enableRangeSelection: true,
259
261
  enableFillHandle: true,
260
262
  onFillEnd: wrapperToFillOpertation,
261
- onCellMouseDown: onCellMouseDown
263
+ onCellMouseDown: onCellMouseDown,
264
+ getRowId: getRowId
262
265
  };
263
266
  // Fucntion to call the grid
264
267
  const callGrid = (featureDetails) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.0.03",
3
+ "version": "6.0.04",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",