(tableId, rowId, rowMap, cellId, cell, skipMiddleware)
| 1357 | ); |
| 1358 | }; |
| 1359 | const setValidCell = (tableId, rowId, rowMap, cellId, cell, skipMiddleware) => ifTransformed( |
| 1360 | cell, |
| 1361 | () => ifNotUndefined( |
| 1362 | skipMiddleware ? void 0 : middleware[4], |
| 1363 | (willSetCell) => whileMutating(() => willSetCell(tableId, rowId, cellId, cell)), |
| 1364 | () => cell |
| 1365 | ), |
| 1366 | (cell2) => { |
| 1367 | if (!collHas(rowMap, cellId)) { |
| 1368 | cellIdsChanged(tableId, rowId, cellId, 1); |
| 1369 | } |
| 1370 | const oldCell = mapGet(rowMap, cellId); |
| 1371 | if (cell2 !== oldCell) { |
| 1372 | cellChanged(tableId, rowId, cellId, oldCell, cell2); |
| 1373 | mapSet(rowMap, cellId, cell2); |
| 1374 | } |
| 1375 | } |
| 1376 | ); |
| 1377 | const setCellIntoNewRow = (tableId, tableMap, rowId, cellId, validCell, skipMiddleware) => ifNotUndefined( |
| 1378 | mapGet(tableMap, rowId), |
| 1379 | (rowMap) => setValidCell(tableId, rowId, rowMap, cellId, validCell, skipMiddleware), |
no test coverage detected
searching dependent graphs…