@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/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.1",
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",
@@ -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={"ic_save_download"}
37
+ icon={"ic_csv_file"}
38
38
  title={"Download CSV"}
39
39
  onClick={handleDownloadClick}
40
40
  disabled={downloading}
@@ -2,6 +2,7 @@
2
2
  overflow: hidden;
3
3
  text-overflow: ellipsis;
4
4
  white-space: nowrap;
5
+ width: 100%;
5
6
  }
6
7
 
7
8
  .GridCell-hoverRight {