WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1ea9c35

Browse files
committed
ColumnToolPanel deps
1 parent f9d373f commit 1ea9c35

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// @ts-nocheck
2+
import '@ag-grid-community/styles/ag-grid.css';
3+
import '@ag-grid-community/styles/ag-theme-quartz.css';
4+
5+
import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';
6+
7+
import { GridOptions, ModuleRegistry } from '@ag-grid-community/core';
8+
import { ColumnsToolPanelModule } from '@ag-grid-enterprise/column-tool-panel';
9+
10+
ModuleRegistry.registerModules([ServerSideRowModelModule, ColumnsToolPanelModule]);
11+
12+
const gridOptions: GridOptions = {
13+
rowSelection: { mode: 'multiRow' },
14+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// @ts-nocheck
2+
import 'ag-grid-community/styles/ag-grid.css';
3+
import 'ag-grid-community/styles/ag-theme-quartz.css';
4+
5+
import { AllCommunityModule, ServerSideRowModelModule } from 'ag-grid-enterprise';
6+
7+
import { GridOptions, ModuleRegistry } from 'ag-grid-community';
8+
import {
9+
ColumnsToolPanelModule,
10+
GroupFilterModule,
11+
PivotModule,
12+
RowGroupingModule,
13+
RowGroupingPanelModule,
14+
TreeDataModule,
15+
} from 'ag-grid-enterprise';
16+
17+
ModuleRegistry.registerModules([
18+
ServerSideRowModelModule,
19+
AllCommunityModule,
20+
ColumnsToolPanelModule,
21+
RowGroupingPanelModule,
22+
RowGroupingModule,
23+
GroupFilterModule,
24+
TreeDataModule,
25+
PivotModule
26+
]);
27+
28+
const gridOptions: GridOptions = {
29+
rowSelection: { mode: 'multiRow' },
30+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"scenario": {
3+
"input": "input.ts",
4+
"output": "output.ts"
5+
}
6+
}

packages/cli/src/codemods/transforms/transform-modules-to-packages-v33/transformers/deprecated-modules.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,18 @@ function addPivotTreeDataModulesForRowGroupingModule(root: Collection) {
3535
'PivotModule',
3636
'TreeDataModule',
3737
'GroupFilterModule',
38+
'RowGroupingModule',
3839
'RowGroupingPanelModule',
3940
];
4041

4142
for (const dep of oldDepsAsNewModules) {
4243
addNewImportNextToGiven(root, 'RowGroupingModule', dep);
4344
addNewIdentifierNextToGiven(root, 'RowGroupingModule', dep);
4445
}
46+
for (const dep of oldDepsAsNewModules) {
47+
addNewImportNextToGiven(root, 'ColumnsToolPanelModule', dep);
48+
addNewIdentifierNextToGiven(root, 'ColumnsToolPanelModule', dep);
49+
}
4550
}
4651

4752
function addCsvToExcelExport(root: Collection) {

0 commit comments

Comments
 (0)