@cdmx/wappler_ag_grid 1.7.8 → 1.8.0

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 +4 -4
  2. package/package.json +2 -2
package/dmx-ag-grid.js CHANGED
@@ -1448,7 +1448,7 @@ dmx.Component('ag-grid', {
1448
1448
  localeText = AG_GRID_LOCALE_PT
1449
1449
  }
1450
1450
  const gridOptions = {
1451
- ...(idFieldPresent ? { getRowId: params => params.data.id } : {}),
1451
+ ...(idFieldPresent ? { getRowId: params => String(params.data.id) } : {}),
1452
1452
  columnDefs: (groupedColumnDefs && groupedColumnDefs.length > 0) ? groupedColumnDefs : columnDefs,
1453
1453
  getRowStyle: options.rstyles ? createRowStyleFunction(options.rstyles): undefined,
1454
1454
  localeText: localeText,
@@ -1493,7 +1493,7 @@ dmx.Component('ag-grid', {
1493
1493
  suppressRowDeselection: this.props.suppress_row_deselection,
1494
1494
  columnHoverHighlight: this.props.column_hover_highlight,
1495
1495
  onFilterModified: function (params) {
1496
- const columnApi = params.columnApi.api;
1496
+ const columnApi = params.api;
1497
1497
  columnApi.hideOverlay();
1498
1498
  if (!params.api.filterManager.rowModel.rowsToDisplay.length) {
1499
1499
  columnApi.showNoRowsOverlay();
@@ -1502,7 +1502,7 @@ dmx.Component('ag-grid', {
1502
1502
  }
1503
1503
  },
1504
1504
  onGridReady: (params) => {
1505
- const columnApi = params.columnApi.api;
1505
+ const columnApi = params.api;
1506
1506
  if (options.csort && options.csort.length > 0) {
1507
1507
  let sortModel = options.csort.map(function(sortItem, index) {
1508
1508
  return {
@@ -1675,7 +1675,7 @@ dmx.Component('ag-grid', {
1675
1675
  gridInstance = agGrid.createGrid(gridDiv, gridConfig);
1676
1676
  gridInstance.setGridOption('rowData', rowData)
1677
1677
  if (options.loading_overlay) {
1678
- gridInstance.showLoadingOverlay()
1678
+ gridInstance.setGridOption("loading", true)
1679
1679
  setTimeout(() => {
1680
1680
  gridInstance.hideOverlay()
1681
1681
  }, options.loading_overlay_duration);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.7.8",
3
+ "version": "1.8.0",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "ag-grid"
15
15
  ],
16
16
  "dependencies": {
17
- "ag-grid-community": "~31.2.1",
17
+ "ag-grid-community": "~32.0.0",
18
18
  "exceljs": "4.4.x",
19
19
  "papaparse": "5.4.x"
20
20
  },