@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
package/src/components/Grid.tsx
CHANGED
|
@@ -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
|
|
40
|
-
onFirstDataRendered
|
|
41
|
-
suppressColumnVirtualization
|
|
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
|
-
|
|
311
|
+
theme,
|
|
310
312
|
staleGrid && "Grid-sortIsStale",
|
|
311
313
|
gridReady && params.rowData && "Grid-ready",
|
|
312
314
|
)}
|