@linzjs/step-ag-grid 17.4.7 → 17.4.9

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.
@@ -2770,7 +2770,7 @@ const Grid = ({ "data-testid": dataTestId, rowSelection = "multiple", suppressCo
2770
2770
  }, [params]);
2771
2771
  // This is setting a ref in the GridContext so won't be triggering an update loop
2772
2772
  setOnCellEditingComplete(params.onCellEditingComplete);
2773
- return (jsxs("div", { "data-testid": dataTestId, className: clsx("Grid-container", theme, staleGrid && "Grid-sortIsStale", gridReady && params.rowData && autoSized && "Grid-ready"), children: [gridContextMenu.component, jsx("div", { style: { flex: 1 }, ref: gridDivRef, children: jsx(AgGridReact, { rowHeight: rowHeight, animateRows: params.animateRows, rowClassRules: params.rowClassRules, getRowId: (params) => `${params.data.id}`, suppressRowClickSelection: true, rowSelection: rowSelection, suppressBrowserResizeObserver: true, onGridSizeChanged: onGridSizeChanged, suppressColumnVirtualisation: suppressColumnVirtualization, suppressClickEdit: true, onColumnVisible: () => {
2773
+ return (jsxs("div", { "data-testid": dataTestId, className: clsx("Grid-container", theme, "theme-specific", staleGrid && "Grid-sortIsStale", gridReady && params.rowData && autoSized && "Grid-ready"), children: [gridContextMenu.component, jsx("div", { style: { flex: 1 }, ref: gridDivRef, children: jsx(AgGridReact, { rowHeight: rowHeight, animateRows: params.animateRows, rowClassRules: params.rowClassRules, getRowId: (params) => `${params.data.id}`, suppressRowClickSelection: true, rowSelection: rowSelection, suppressBrowserResizeObserver: true, onGridSizeChanged: onGridSizeChanged, suppressColumnVirtualisation: suppressColumnVirtualization, suppressClickEdit: true, onColumnVisible: () => {
2774
2774
  setInitialContentSize();
2775
2775
  }, onRowDataUpdated: onRowDataChanged, onCellKeyDown: onCellKeyPress, onCellClicked: onCellClicked, onCellDoubleClicked: onCellDoubleClick, onCellEditingStarted: refreshSelectedRows, domLayout: params.domLayout, onColumnResized: onColumnResized, defaultColDef: { minWidth: 48, ...omit(params.defaultColDef, ["editable"]) }, columnDefs: columnDefsAdjusted, rowData: params.rowData, noRowsOverlayComponent: (event) => {
2776
2776
  let rowCount = 0;
@@ -25576,9 +25576,13 @@ const findRow = async (rowId, within) => {
25576
25576
  let row;
25577
25577
  await act(async () => {
25578
25578
  row = await findQuick({ tagName: `.ag-center-cols-container div[row-id='${rowId}']:not(:empty)` }, within);
25579
- const leftCols = await findQuick({ tagName: `.ag-pinned-left-cols-container div[row-id='${rowId}']` }, within);
25580
- const rightCols = await findQuick({ tagName: `.ag-pinned-right-cols-container div[row-id='${rowId}']` }, within);
25581
- const combineChildren = [...leftCols.children, ...row.children, ...rightCols.children];
25579
+ let combineChildren = [...row.children];
25580
+ const leftCols = queryQuick({ tagName: `.ag-pinned-left-cols-container div[row-id='${rowId}']` }, within);
25581
+ if (leftCols)
25582
+ combineChildren = [...leftCols.children, ...combineChildren];
25583
+ const rightCols = queryQuick({ tagName: `.ag-pinned-right-cols-container div[row-id='${rowId}']` }, within);
25584
+ if (rightCols)
25585
+ combineChildren = [...rightCols.children, ...combineChildren];
25582
25586
  row.replaceChildren(...combineChildren);
25583
25587
  });
25584
25588
  return row;