@cdmx/wappler_ag_grid 1.7.8 → 1.8.1

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 +7 -8
  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,16 +1493,15 @@ 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;
1497
- columnApi.hideOverlay();
1498
- if (!params.api.filterManager.rowModel.rowsToDisplay.length) {
1499
- columnApi.showNoRowsOverlay();
1500
- } else {
1496
+ const columnApi = params.api;
1497
+ if (columnApi.getDisplayedRowCount() > 0) {
1501
1498
  columnApi.hideOverlay();
1499
+ } else {
1500
+ columnApi.showNoRowsOverlay();
1502
1501
  }
1503
1502
  },
1504
1503
  onGridReady: (params) => {
1505
- const columnApi = params.columnApi.api;
1504
+ const columnApi = params.api;
1506
1505
  if (options.csort && options.csort.length > 0) {
1507
1506
  let sortModel = options.csort.map(function(sortItem, index) {
1508
1507
  return {
@@ -1675,7 +1674,7 @@ dmx.Component('ag-grid', {
1675
1674
  gridInstance = agGrid.createGrid(gridDiv, gridConfig);
1676
1675
  gridInstance.setGridOption('rowData', rowData)
1677
1676
  if (options.loading_overlay) {
1678
- gridInstance.showLoadingOverlay()
1677
+ gridInstance.setGridOption("loading", true)
1679
1678
  setTimeout(() => {
1680
1679
  gridInstance.hideOverlay()
1681
1680
  }, 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.1",
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
  },