@linzjs/step-ag-grid 13.2.0 → 13.3.1

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": "13.2.0",
5
+ "version": "13.3.1",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -21,6 +21,7 @@ export interface GridBaseRow {
21
21
  export interface GridProps {
22
22
  readOnly?: boolean; // set all editables to false when read only, make all styles black, otherwise style is gray for not editable
23
23
  selectable?: boolean;
24
+ theme?: string; // should have prefix ag-theme-
24
25
  ["data-testid"]?: string;
25
26
  domLayout?: GridOptions["domLayout"];
26
27
  externalSelectedItems?: any[];
@@ -36,9 +37,9 @@ export interface GridProps {
36
37
  autoSelectFirstRow?: boolean;
37
38
  onColumnMoved?: GridOptions["onColumnMoved"];
38
39
  alwaysShowVerticalScroll?: boolean;
39
- onGridSizeChanged: GridOptions["onGridSizeChanged"];
40
- onFirstDataRendered: GridOptions["onFirstDataRendered"];
41
- suppressColumnVirtualization: GridOptions["suppressColumnVirtualisation"];
40
+ onGridSizeChanged?: GridOptions["onGridSizeChanged"];
41
+ onFirstDataRendered?: GridOptions["onFirstDataRendered"];
42
+ suppressColumnVirtualization?: GridOptions["suppressColumnVirtualisation"];
42
43
  }
43
44
 
44
45
  /**
@@ -48,6 +49,7 @@ export const Grid = ({
48
49
  "data-testid": dataTestId,
49
50
  rowSelection = "multiple",
50
51
  suppressColumnVirtualization = true,
52
+ theme = "ag-theme-alpine",
51
53
  ...params
52
54
  }: GridProps): JSX.Element => {
53
55
  const {
@@ -306,7 +308,7 @@ export const Grid = ({
306
308
  data-testid={dataTestId}
307
309
  className={clsx(
308
310
  "Grid-container",
309
- "ag-theme-alpine",
311
+ theme,
310
312
  staleGrid && "Grid-sortIsStale",
311
313
  gridReady && params.rowData && "Grid-ready",
312
314
  )}