@cdmx/wappler_ag_grid 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dmx-ag-grid.js +3 -3
  2. package/package.json +1 -1
package/dmx-ag-grid.js CHANGED
@@ -489,10 +489,10 @@ dmx.Component('ag-grid', {
489
489
  let exportToPDF = this.props.export_to_pdf;
490
490
  let cellRenderer;
491
491
 
492
- // Set up theme mode
493
- this.$node.innerHTML = `<div id=${options.id}-grid class="${options.grid_theme}"></div>`;
492
+ const gridThemeClass = options.dark_mode ? `${options.grid_theme}-dark` : options.grid_theme;
493
+ this.$node.innerHTML = `<div id=${options.id}-grid class="${gridThemeClass}"></div>`;
494
494
 
495
- // Apply theme mode using dark_mode attribute
495
+ // Apply theme mode using data attribute
496
496
  const themeContainer = this.$node.querySelector(`#${options.id}-grid`);
497
497
  if (themeContainer) {
498
498
  themeContainer.dataset.agThemeMode = options.dark_mode ? 'dark' : 'light';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid v34 - Advanced data grid with enhanced editing, filtering, and tree data capabilities.",
6
6
  "license": "MIT",