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
File tree Expand file tree Collapse file tree 4 files changed +55
-0
lines changed
packages/cli/src/codemods/transforms/transform-modules-to-packages-v33
__fixtures__/scenarios/js/columnsToolPanel Expand file tree Collapse file tree 4 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 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 number Diff line number Diff line change 1+ {
2+ "scenario" : {
3+ "input" : " input.ts" ,
4+ "output" : " output.ts"
5+ }
6+ }
Original file line number Diff line number Diff 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
4752function addCsvToExcelExport ( root : Collection ) {
You can’t perform that action at this time.
0 commit comments