sccoreui 6.0.3 → 6.0.5
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
|
|
73
|
-
|
|
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 });
|
|
@@ -223,8 +223,12 @@ function ParentForGrid(props) {
|
|
|
223
223
|
};
|
|
224
224
|
// Update cell from front end and give a call back to products
|
|
225
225
|
const wrapperToFillOpertation = (params) => {
|
|
226
|
+
console.log('calling fill operation wrapper');
|
|
226
227
|
(0, helper_1.fillOperation)(params, api, initialDragRowIndex, props === null || props === void 0 ? void 0 : props.updateCell);
|
|
227
228
|
};
|
|
229
|
+
console.log('sccore version - 6.0.05');
|
|
230
|
+
// Give unique id for rows to grid
|
|
231
|
+
const getRowId = (prams) => prams.data.id;
|
|
228
232
|
// Options that grid should have
|
|
229
233
|
const gridOptions = {
|
|
230
234
|
columnDefs: gridData.columnData.map((column) => {
|
|
@@ -252,13 +256,14 @@ function ParentForGrid(props) {
|
|
|
252
256
|
blockLoadDebounceMillis: constants_1.DEBOUNCE_INTERVAL,
|
|
253
257
|
noRowsOverlayComponent: props === null || props === void 0 ? void 0 : props.noRowsOverlayComponent,
|
|
254
258
|
loadingOverlayComponent: loading_component_1.default,
|
|
255
|
-
suppressCellFocus: true,
|
|
259
|
+
// suppressCellFocus: true, // Dont select cell on click to cell
|
|
256
260
|
suppressPropertyNamesCheck: true,
|
|
257
261
|
suppressServerSideFullWidthLoadingRow: true,
|
|
258
262
|
enableRangeSelection: true,
|
|
259
263
|
enableFillHandle: true,
|
|
260
264
|
onFillEnd: wrapperToFillOpertation,
|
|
261
|
-
onCellMouseDown: onCellMouseDown
|
|
265
|
+
onCellMouseDown: onCellMouseDown,
|
|
266
|
+
getRowId: getRowId
|
|
262
267
|
};
|
|
263
268
|
// Fucntion to call the grid
|
|
264
269
|
const callGrid = (featureDetails) => {
|