Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v33.0.1 #109

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@ag-grid-devtools/cli",
"version": "33.0.0",
"version": "33.0.1",
"license": "MIT",
"description": "AG Grid developer toolkit",
"author": "AG Grid <info@ag-grid.com>",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-nocheck
import '@ag-grid-community/styles/ag-grid.css';
import '@ag-grid-community/styles/ag-theme-quartz.css';

import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';

import { GridOptions, ModuleRegistry } from '@ag-grid-community/core';
import { ColumnsToolPanelModule } from '@ag-grid-enterprise/column-tool-panel';

ModuleRegistry.registerModules([ServerSideRowModelModule, ColumnsToolPanelModule]);

const gridOptions: GridOptions = {
rowSelection: { mode: 'multiRow' },
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// @ts-nocheck
import 'ag-grid-community/styles/ag-grid.css';
import 'ag-grid-community/styles/ag-theme-quartz.css';

import { AllCommunityModule, ServerSideRowModelModule } from 'ag-grid-enterprise';

import { GridOptions, ModuleRegistry } from 'ag-grid-community';
import {
ColumnsToolPanelModule,
GroupFilterModule,
PivotModule,
RowGroupingModule,
RowGroupingPanelModule,
TreeDataModule,
} from 'ag-grid-enterprise';

ModuleRegistry.registerModules([
ServerSideRowModelModule,
AllCommunityModule,
ColumnsToolPanelModule,
RowGroupingPanelModule,
RowGroupingModule,
GroupFilterModule,
TreeDataModule,
PivotModule
]);

const gridOptions: GridOptions = {
rowSelection: { mode: 'multiRow' },
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"scenario": {
"input": "input.ts",
"output": "output.ts"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ import { FiltersToolPanelModule } from 'ag-grid-enterprise';
import { ColumnMenuModule, ContextMenuModule } from 'ag-grid-enterprise';
import { MultiFilterModule } from 'ag-grid-enterprise';
import { CellSelectionModule } from 'ag-grid-enterprise';
import { RowGroupingModule } from 'ag-grid-enterprise';
import {
GroupFilterModule,
PivotModule,
RowGroupingModule,
RowGroupingPanelModule,
TreeDataModule,
} from 'ag-grid-enterprise';
import { SetFilterModule } from 'ag-grid-enterprise';
import { SideBarModule } from 'ag-grid-enterprise';
import { StatusBarModule } from 'ag-grid-enterprise';
Expand All @@ -31,6 +37,10 @@ ModuleRegistry.registerModules([
MultiFilterModule,
CellSelectionModule,
RowGroupingModule,
RowGroupingPanelModule,
GroupFilterModule,
TreeDataModule,
PivotModule,
SetFilterModule,
SideBarModule,
StatusBarModule
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-nocheck
import '@ag-grid-community/styles/ag-grid.css';
import '@ag-grid-community/styles/ag-theme-quartz.css';

import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';

import { GridOptions, ModuleRegistry } from '@ag-grid-community/core';
import { ExcelExportModule } from '@ag-grid-enterprise/excel-export';

ModuleRegistry.registerModules([ServerSideRowModelModule, ExcelExportModule]);

const gridOptions: GridOptions = {
rowSelection: { mode: 'multiRow' },
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// @ts-nocheck
import 'ag-grid-community/styles/ag-grid.css';
import 'ag-grid-community/styles/ag-theme-quartz.css';

import { AllCommunityModule, ServerSideRowModelModule } from 'ag-grid-enterprise';

import { CsvExportModule, GridOptions, ModuleRegistry } from 'ag-grid-community';
import { ExcelExportModule } from 'ag-grid-enterprise';

ModuleRegistry.registerModules([
ServerSideRowModelModule,
AllCommunityModule,
ExcelExportModule,
CsvExportModule
]);

const gridOptions: GridOptions = {
rowSelection: { mode: 'multiRow' },
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"scenario": {
"input": "input.ts",
"output": "output.ts"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ import { FiltersToolPanelModule } from 'ag-grid-enterprise';
import { ColumnMenuModule, ContextMenuModule } from 'ag-grid-enterprise';
import { MultiFilterModule } from 'ag-grid-enterprise';
import { CellSelectionModule } from 'ag-grid-enterprise';
import { RowGroupingModule } from 'ag-grid-enterprise';
import {
GroupFilterModule,
PivotModule,
RowGroupingModule,
RowGroupingPanelModule,
TreeDataModule,
} from 'ag-grid-enterprise';
import { SetFilterModule } from 'ag-grid-enterprise';
import { SideBarModule } from 'ag-grid-enterprise';
import { StatusBarModule } from 'ag-grid-enterprise';
Expand All @@ -33,6 +39,10 @@ ModuleRegistry.registerModules([
MultiFilterModule,
CellSelectionModule,
RowGroupingModule,
RowGroupingPanelModule,
GroupFilterModule,
TreeDataModule,
PivotModule,
SetFilterModule,
SideBarModule,
StatusBarModule
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-nocheck
import '@ag-grid-community/styles/ag-grid.css';
import '@ag-grid-community/styles/ag-theme-quartz.css';

import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';

import { GridOptions, ModuleRegistry } from '@ag-grid-community/core';
import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping';

ModuleRegistry.registerModules([ServerSideRowModelModule, RowGroupingModule]);

const gridOptions: GridOptions = {
rowSelection: { mode: 'multiRow' },
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// @ts-nocheck
import 'ag-grid-community/styles/ag-grid.css';
import 'ag-grid-community/styles/ag-theme-quartz.css';

import { AllCommunityModule, ServerSideRowModelModule } from 'ag-grid-enterprise';

import { GridOptions, ModuleRegistry } from 'ag-grid-community';
import {
GroupFilterModule,
PivotModule,
RowGroupingModule,
RowGroupingPanelModule,
TreeDataModule,
} from 'ag-grid-enterprise';

ModuleRegistry.registerModules([
ServerSideRowModelModule,
AllCommunityModule,
RowGroupingModule,
RowGroupingPanelModule,
GroupFilterModule,
TreeDataModule,
PivotModule
]);

const gridOptions: GridOptions = {
rowSelection: { mode: 'multiRow' },
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"scenario": {
"input": "input.ts",
"output": "output.ts"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { addNewIdentifierNextToGiven, addNewImportNextToGiven } from './sharedUt
export const updateDeprecatedModules: JSCodeShiftTransformer = (root) => {
swapRangeSelectionForCellSelectionModule(root);
swapMenuModuleForColumnAndContextModule(root);
addPivotTreeDataModulesForRowGroupingModule(root);
addCsvToExcelExport(root);
};

function swapRangeSelectionForCellSelectionModule(root: Collection) {
Expand All @@ -27,3 +29,29 @@ function swapMenuModuleForColumnAndContextModule(root: Collection) {
addNewImportNextToGiven(root, 'ColumnMenuModule', 'ContextMenuModule');
addNewIdentifierNextToGiven(root, 'ColumnMenuModule', 'ContextMenuModule');
}

function addPivotTreeDataModulesForRowGroupingModule(root: Collection) {
const oldDepsAsNewModules = [
'PivotModule',
'TreeDataModule',
'GroupFilterModule',
'RowGroupingModule',
'RowGroupingPanelModule',
];

for (const dep of oldDepsAsNewModules) {
addNewImportNextToGiven(root, 'RowGroupingModule', dep);
addNewIdentifierNextToGiven(root, 'RowGroupingModule', dep);
}
for (const dep of oldDepsAsNewModules) {
addNewImportNextToGiven(root, 'ColumnsToolPanelModule', dep);
addNewIdentifierNextToGiven(root, 'ColumnsToolPanelModule', dep);
}
}

function addCsvToExcelExport(root: Collection) {
if (root.find(j.Identifier, { name: 'ExcelExportModule' }).length > 0) {
addNewImportNextToGiven(root, 'ModuleRegistry', 'CsvExportModule');
addNewIdentifierNextToGiven(root, 'ExcelExportModule', 'CsvExportModule');
}
}
Loading