Clean and minify
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -8,8 +8,8 @@ import {
|
||||
RowSelectionModule,
|
||||
TextEditorModule,
|
||||
ClientSideRowModelModule,
|
||||
themeQuartz,
|
||||
iconSetQuartzLight,
|
||||
// themeQuartz,
|
||||
// iconSetQuartzLight,
|
||||
} from "ag-grid-community";
|
||||
|
||||
import {
|
||||
@@ -25,7 +25,6 @@ import {
|
||||
ClipboardModule,
|
||||
} from "ag-grid-enterprise";
|
||||
|
||||
// Registro único de módulos
|
||||
ModuleRegistry.registerModules([
|
||||
ValidationModule,
|
||||
ColumnAutoSizeModule,
|
||||
@@ -46,23 +45,22 @@ ModuleRegistry.registerModules([
|
||||
ClipboardModule,
|
||||
]);
|
||||
|
||||
// Helper de tema exportado
|
||||
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 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 };
|
||||
@@ -8,18 +8,15 @@ const __dirname = path.resolve();
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss()],
|
||||
build: {
|
||||
// Usamos la configuración de librería para generar el bundle limpio
|
||||
lib: {
|
||||
entry: resolve(__dirname, "./UI/aggrid/aggrid-lib.js"),
|
||||
name: "AgGridBundle",
|
||||
fileName: "aggrid",
|
||||
entry: resolve(__dirname, "./UI/aggrid/grid-lib.js"),
|
||||
name: "GridBundle",
|
||||
fileName: "grid",
|
||||
formats: ["es"],
|
||||
},
|
||||
outDir: "./UI/aggrid/dist",
|
||||
minify: "terser", // Máxima compresión
|
||||
outDir: "./ui/grid/dist",
|
||||
minify: "terser",
|
||||
rollupOptions: {
|
||||
// Si quieres que ag-grid NO se incluya y sea externo, añádelo aquí.
|
||||
// Pero como quieres un "Bundle", lo dejamos vacío para que empaquete todo.
|
||||
external: ["sigpro"],
|
||||
output: {
|
||||
globals: {
|
||||
2
ui/sigpro-ui.min.js
vendored
2
ui/sigpro-ui.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user