@linzjs/step-ag-grid 17.12.0 → 17.13.0

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.
@@ -288,7 +288,11 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
288
288
  font-size: 14px;
289
289
  }
290
290
 
291
- .ag-row .ag-cell[aria-colindex="1"] {
291
+ .ag-row .ag-cell:first-of-type {
292
292
  padding-left: 32px;
293
293
  }
294
+
295
+ .ag-row .ag-cell:last-of-type {
296
+ padding-right: 32px;
297
+ }
294
298
  }
@@ -21,6 +21,7 @@ export interface GridProps {
21
21
  */
22
22
  selectColumnPinned?: ColDef["pinned"];
23
23
  noRowsOverlayText?: string;
24
+ noRowsMatchingOverlayText?: string;
24
25
  animateRows?: boolean;
25
26
  rowHeight?: number;
26
27
  rowClassRules?: GridOptions["rowClassRules"];
@@ -3,6 +3,7 @@ export interface GridNoRowsOverlayProps {
3
3
  rowCount: number | undefined | null;
4
4
  filteredRowCount: number;
5
5
  noRowsOverlayText: string | undefined;
6
+ noRowsMatchingOverlayText: string | undefined;
6
7
  headerRowHeight: number;
7
8
  }
8
9
  export declare const GridNoRowsOverlay: (props: GridNoRowsOverlayProps) => import("react/jsx-runtime").JSX.Element;
@@ -311,7 +311,7 @@ const GridNoRowsOverlay = (props) => {
311
311
  if (props.rowCount === 0)
312
312
  return jsxRuntime.jsx("div", { children: props.noRowsOverlayText ?? "There are currently no rows" });
313
313
  if (props.filteredRowCount === 0)
314
- return jsxRuntime.jsx("div", { children: "All rows have been filtered" });
314
+ return jsxRuntime.jsx("div", { children: props.noRowsMatchingOverlayText ?? "All rows have been filtered" });
315
315
  return jsxRuntime.jsx("span", {});
316
316
  };
317
317
 
@@ -2825,7 +2825,7 @@ const Grid = ({ "data-testid": dataTestId, rowSelection = "multiple", suppressCo
2825
2825
  }, onRowDataUpdated: onRowDataChanged, onCellKeyDown: onCellKeyPress, onCellClicked: onCellClicked, onCellDoubleClicked: onCellDoubleClick, onCellEditingStarted: refreshSelectedRows, domLayout: params.domLayout, onColumnResized: onColumnResized, defaultColDef: { minWidth: 48, ...lodashEs.omit(params.defaultColDef, ["editable"]) }, columnDefs: columnDefsAdjusted, rowData: rowData, noRowsOverlayComponent: (event) => {
2826
2826
  let rowCount = 0;
2827
2827
  event.api.forEachNode(() => rowCount++);
2828
- return (jsxRuntime.jsx(GridNoRowsOverlay, { loading: !rowData || params.loading === true, rowCount: rowCount, headerRowHeight: headerRowCount * rowHeight, filteredRowCount: event.api.getDisplayedRowCount(), noRowsOverlayText: params.noRowsOverlayText }));
2828
+ return (jsxRuntime.jsx(GridNoRowsOverlay, { loading: !rowData || params.loading === true, rowCount: rowCount, headerRowHeight: headerRowCount * rowHeight, filteredRowCount: event.api.getDisplayedRowCount(), noRowsOverlayText: params.noRowsOverlayText, noRowsMatchingOverlayText: params.noRowsMatchingOverlayText }));
2829
2829
  }, onModelUpdated: onModelUpdated, onGridReady: onGridReady, onSortChanged: ensureSelectedRowIsVisible, postSortRows: params.onRowDragEnd ? undefined : postSortRows, onSelectionChanged: synchroniseExternalStateToGridSelection, onColumnMoved: params.onColumnMoved, alwaysShowVerticalScroll: params.alwaysShowVerticalScroll, isExternalFilterPresent: isExternalFilterPresent, doesExternalFilterPass: doesExternalFilterPass, maintainColumnOrder: true, preventDefaultOnContextMenu: true, onCellContextMenu: gridContextMenu.cellContextMenu, rowDragText: params.rowDragText, onRowDragMove: onRowDragMove, onRowDragEnd: onRowDragEnd, onRowDragLeave: onRowDragLeave, suppressCellFocus: params.suppressCellFocus }) })] }));
2830
2830
  };
2831
2831