@linzjs/step-ag-grid 14.0.1 → 14.0.3
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/dist/index.css +5 -4
- package/dist/step-ag-grid.esm.js +6 -4
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Grid.tsx +4 -1
- package/src/components/GridCell.tsx +1 -0
- package/src/components/gridFilter/GridFilterDownloadCsvButton.tsx +1 -1
- package/src/styles/GridCell.scss +1 -0
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": "14.0.
|
|
5
|
+
"version": "14.0.3",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"aggrid",
|
|
8
8
|
"ag-grid",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"node": ">=16"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@linzjs/lui": ">=17",
|
|
30
|
+
"@linzjs/lui": ">=17.60.0",
|
|
31
31
|
"ag-grid-community": ">=27",
|
|
32
32
|
"ag-grid-react": ">=27",
|
|
33
33
|
"lodash-es": ">=4",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-dom": ">=17"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@linzjs/lui": ">=17",
|
|
38
|
+
"@linzjs/lui": ">=17.60.0",
|
|
39
39
|
"ag-grid-community": ">=27",
|
|
40
40
|
"ag-grid-react": ">=27",
|
|
41
41
|
"debounce-promise": "^3.1.2",
|
package/src/components/Grid.tsx
CHANGED
|
@@ -74,7 +74,7 @@ export const Grid = ({
|
|
|
74
74
|
rowSelection = "multiple",
|
|
75
75
|
suppressColumnVirtualization = true,
|
|
76
76
|
theme = "ag-theme-alpine",
|
|
77
|
-
sizeColumns = "auto",
|
|
77
|
+
sizeColumns = "auto-skip-headers",
|
|
78
78
|
...params
|
|
79
79
|
}: GridProps): JSX.Element => {
|
|
80
80
|
const {
|
|
@@ -418,6 +418,9 @@ export const Grid = ({
|
|
|
418
418
|
postSortRows={params.postSortRows ?? postSortRows}
|
|
419
419
|
onSelectionChanged={synchroniseExternalStateToGridSelection}
|
|
420
420
|
onColumnMoved={params.onColumnMoved}
|
|
421
|
+
onColumnResized={() => {
|
|
422
|
+
sizeColumns !== "none" && sizeColumnsToFit();
|
|
423
|
+
}}
|
|
421
424
|
alwaysShowVerticalScroll={params.alwaysShowVerticalScroll}
|
|
422
425
|
isExternalFilterPresent={isExternalFilterPresent}
|
|
423
426
|
doesExternalFilterPass={doesExternalFilterPass}
|
|
@@ -120,6 +120,7 @@ export const GridCell = <RowType extends GridBaseRow, Props extends CellEditorCo
|
|
|
120
120
|
|
|
121
121
|
return {
|
|
122
122
|
colId: props.field ?? props.field,
|
|
123
|
+
headerTooltip: props.headerName,
|
|
123
124
|
sortable: !!(props?.field || props?.valueGetter),
|
|
124
125
|
resizable: true,
|
|
125
126
|
minWidth: props.flex ? 150 : 48,
|
|
@@ -34,7 +34,7 @@ export const GridFilterDownloadCsvButton = (csvExportParams: CsvExportParams) =>
|
|
|
34
34
|
/>
|
|
35
35
|
) : (
|
|
36
36
|
<GridFilterHeaderIconButton
|
|
37
|
-
icon={"
|
|
37
|
+
icon={"ic_csv_file"}
|
|
38
38
|
title={"Download CSV"}
|
|
39
39
|
onClick={handleDownloadClick}
|
|
40
40
|
disabled={downloading}
|