Skip to content

Commit c86690e

Browse files
committed
build: upgrade ag-grid to v34
1 parent 3baa667 commit c86690e

File tree

3 files changed

+30
-21
lines changed

3 files changed

+30
-21
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
"@emotion/styled": "^11.14.1",
9696
"@mui/x-date-pickers": "^7.29.4",
9797
"@nosferatu500/react-sortable-tree": "^3.0.6",
98-
"ag-grid-community": "~32.2.2",
99-
"ag-grid-react": "~32.2.2",
98+
"ag-grid-community": "~34.2.0",
99+
"ag-grid-react": "~34.2.0",
100100
"clsx": "^2.1.1",
101101
"cytoscape": "^3.33.1",
102102
"cytoscape-bubblesets": "^3.2.3",

src/inputs/Table/Table.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import PropTypes from 'prop-types';
66
import UploadFileIcon from '@mui/icons-material/UploadFile';
77
import { Stack, Typography, Box, Button } from '@mui/material';
88
import makeStyles from '@mui/styles/makeStyles';
9+
import { AllCommunityModule, ModuleRegistry, provideGlobalGridOptions } from 'ag-grid-community';
910
import 'ag-grid-community/styles/ag-grid.css';
1011
import 'ag-grid-community/styles/ag-theme-balham.css';
1112
import rfdc from 'rfdc';
@@ -17,6 +18,9 @@ import { TABLE_DATA_STATUS } from './TableDataStatus';
1718
import { TableToolbar } from './components';
1819
import { TABLE_TOOLBAR_HEIGHT } from './components/TableToolbar/style.js';
1920

21+
ModuleRegistry.registerModules([AllCommunityModule]);
22+
provideGlobalGridOptions({ theme: 'legacy' });
23+
2024
const clone = rfdc();
2125

2226
const useStyles = makeStyles((theme) => ({
@@ -386,7 +390,12 @@ export const Table = (props) => {
386390
rowData={rows}
387391
context={context}
388392
stopEditingWhenCellsLoseFocus={true}
389-
rowSelection={'multiple'}
393+
rowSelection={{
394+
mode: 'multiRow',
395+
checkboxes: false,
396+
headerCheckbox: false,
397+
enableClickSelection: true,
398+
}}
390399
onSelectionChanged={onSelectionChanged}
391400
/>
392401
);

yarn.lock

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,8 +1855,8 @@ __metadata:
18551855
"@testing-library/react": "npm:^16.3.0"
18561856
"@testing-library/user-event": "npm:^14.6.1"
18571857
"@trivago/prettier-plugin-sort-imports": "npm:^5.2.2"
1858-
ag-grid-community: "npm:~32.2.2"
1859-
ag-grid-react: "npm:~32.2.2"
1858+
ag-grid-community: "npm:~34.2.0"
1859+
ag-grid-react: "npm:~34.2.0"
18601860
babel-jest: "npm:^30.1.2"
18611861
clsx: "npm:^2.1.1"
18621862
cytoscape: "npm:^3.33.1"
@@ -4390,32 +4390,32 @@ __metadata:
43904390
languageName: node
43914391
linkType: hard
43924392

4393-
"ag-charts-types@npm:10.2.0":
4394-
version: 10.2.0
4395-
resolution: "ag-charts-types@npm:10.2.0"
4396-
checksum: 10c0/7007c7892d1c5ec039a8808e8d0f2104f85e633a7b8c129d0438e4200a3f2d0d3a78e3fb032793ada8a445fb08fbcb4e7f8c2a8bdf52a1d4339c1064dd43de1b
4393+
"ag-charts-types@npm:12.2.0":
4394+
version: 12.2.0
4395+
resolution: "ag-charts-types@npm:12.2.0"
4396+
checksum: 10c0/6fad0c096482411f670b7084f009a6c9687048b3f2ca3ce1a5f790f724a9b7170f7a14f249ed6c8d4f590bc39c43b7effcdd88000e22dea2ed21c129777350a1
43974397
languageName: node
43984398
linkType: hard
43994399

4400-
"ag-grid-community@npm:32.2.2, ag-grid-community@npm:~32.2.2":
4401-
version: 32.2.2
4402-
resolution: "ag-grid-community@npm:32.2.2"
4400+
"ag-grid-community@npm:34.2.0, ag-grid-community@npm:~34.2.0":
4401+
version: 34.2.0
4402+
resolution: "ag-grid-community@npm:34.2.0"
44034403
dependencies:
4404-
ag-charts-types: "npm:10.2.0"
4405-
checksum: 10c0/0a08a86f2cc167ad8f9a332c3b8b4fdc4a5b12cdbd20534657a674b1602790769269c0d1f03e4e0cab6c98aba8a06a8a055752297d5814e242c1cff49b12a501
4404+
ag-charts-types: "npm:12.2.0"
4405+
checksum: 10c0/a5b92c9c701ffe0b7b2855ea2ff9189060efde62fe033a0fc2bc77d924fcc3899c74256c54ac86b18cebed8fff6929ef630e801e562ef0172ed28ca3865a6454
44064406
languageName: node
44074407
linkType: hard
44084408

4409-
"ag-grid-react@npm:~32.2.2":
4410-
version: 32.2.2
4411-
resolution: "ag-grid-react@npm:32.2.2"
4409+
"ag-grid-react@npm:~34.2.0":
4410+
version: 34.2.0
4411+
resolution: "ag-grid-react@npm:34.2.0"
44124412
dependencies:
4413-
ag-grid-community: "npm:32.2.2"
4413+
ag-grid-community: "npm:34.2.0"
44144414
prop-types: "npm:^15.8.1"
44154415
peerDependencies:
4416-
react: ^16.3.0 || ^17.0.0 || ^18.0.0
4417-
react-dom: ^16.3.0 || ^17.0.0 || ^18.0.0
4418-
checksum: 10c0/f35a2bccbef3181405fbc97c36e6d60ba8c844f7ffabb1484ba85ed550a436665429f56c196affd56b9028e27489da88c3d19e4ecc2926f1ff23ee564f49138d
4416+
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
4417+
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
4418+
checksum: 10c0/5d43d3be043fadda2cb2b219ea82262d14e91b81c58000f5e240c0c8bbbe4a0314ec4c059cc51c91fd46dffe0a061de19d56fdc7717bd742519835f5a73c490f
44194419
languageName: node
44204420
linkType: hard
44214421

0 commit comments

Comments
 (0)