@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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "17.12.0",
5
+ "version": "17.13.0",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -53,6 +53,7 @@ export interface GridProps {
53
53
  */
54
54
  selectColumnPinned?: ColDef["pinned"];
55
55
  noRowsOverlayText?: string;
56
+ noRowsMatchingOverlayText?: string;
56
57
  animateRows?: boolean;
57
58
  rowHeight?: number;
58
59
  rowClassRules?: GridOptions["rowClassRules"];
@@ -716,6 +717,7 @@ export const Grid = ({
716
717
  headerRowHeight={headerRowCount * rowHeight}
717
718
  filteredRowCount={event.api.getDisplayedRowCount()}
718
719
  noRowsOverlayText={params.noRowsOverlayText}
720
+ noRowsMatchingOverlayText={params.noRowsMatchingOverlayText}
719
721
  />
720
722
  );
721
723
  }}
@@ -24,12 +24,14 @@ export interface GridNoRowsOverlayProps {
24
24
  rowCount: number | undefined | null;
25
25
  filteredRowCount: number;
26
26
  noRowsOverlayText: string | undefined;
27
+ noRowsMatchingOverlayText: string | undefined;
27
28
  headerRowHeight: number;
28
29
  }
29
30
 
30
31
  export const GridNoRowsOverlay = (props: GridNoRowsOverlayProps) => {
31
32
  if (props.loading) return <GridLoadingOverlayComponent headerRowHeight={props.headerRowHeight} />;
32
33
  if (props.rowCount === 0) return <div>{props.noRowsOverlayText ?? "There are currently no rows"}</div>;
33
- if (props.filteredRowCount === 0) return <div>All rows have been filtered</div>;
34
+ if (props.filteredRowCount === 0)
35
+ return <div>{props.noRowsMatchingOverlayText ?? "All rows have been filtered"}</div>;
34
36
  return <span />;
35
37
  };
@@ -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
  }