Clean and minify
This commit is contained in:
66
ui/grid/grid-lib.js
Normal file
66
ui/grid/grid-lib.js
Normal file
@@ -0,0 +1,66 @@
|
||||
import {
|
||||
createGrid,
|
||||
ModuleRegistry,
|
||||
ValidationModule,
|
||||
ColumnAutoSizeModule,
|
||||
CellStyleModule,
|
||||
QuickFilterModule,
|
||||
RowSelectionModule,
|
||||
TextEditorModule,
|
||||
ClientSideRowModelModule,
|
||||
// themeQuartz,
|
||||
// iconSetQuartzLight,
|
||||
} from "ag-grid-community";
|
||||
|
||||
import {
|
||||
MultiFilterModule,
|
||||
CellSelectionModule,
|
||||
PivotModule,
|
||||
MasterDetailModule,
|
||||
SideBarModule,
|
||||
ColumnsToolPanelModule,
|
||||
ColumnMenuModule,
|
||||
StatusBarModule,
|
||||
ExcelExportModule,
|
||||
ClipboardModule,
|
||||
} from "ag-grid-enterprise";
|
||||
|
||||
ModuleRegistry.registerModules([
|
||||
ValidationModule,
|
||||
ColumnAutoSizeModule,
|
||||
CellStyleModule,
|
||||
QuickFilterModule,
|
||||
RowSelectionModule,
|
||||
TextEditorModule,
|
||||
ClientSideRowModelModule,
|
||||
MultiFilterModule,
|
||||
CellSelectionModule,
|
||||
PivotModule,
|
||||
MasterDetailModule,
|
||||
SideBarModule,
|
||||
ColumnsToolPanelModule,
|
||||
ColumnMenuModule,
|
||||
StatusBarModule,
|
||||
ExcelExportModule,
|
||||
ClipboardModule,
|
||||
]);
|
||||
|
||||
// export const getAgTheme = (isDark) =>
|
||||
// themeQuartz.withPart(iconSetQuartzLight).withParams({
|
||||
// browserColorScheme: isDark ? "dark" : "light",
|
||||
// backgroundColor: isDark ? "#121212" : "#FDFDFD",
|
||||
// foregroundColor: isDark ? "#E0E0E0" : "#181D1F",
|
||||
// accentColor: isDark ? "#4FAAFF" : "#004B9C",
|
||||
// headerBackgroundColor: isDark ? "#2A2A2A" : "#EEB111",
|
||||
// headerTextColor: isDark ? "#4FAAFF" : "#004B9C",
|
||||
// borderRadius: 4,
|
||||
// columnBorder: false,
|
||||
// headerFontSize: 14,
|
||||
// headerFontWeight: 600,
|
||||
// listItemHeight: 20,
|
||||
// iconSize: 14,
|
||||
// spacing: 3,
|
||||
// wrapperBorderRadius: 4,
|
||||
// });
|
||||
|
||||
export { createGrid };
|
||||
Reference in New Issue
Block a user