@cdmx/wappler_ag_grid 1.5.1 → 1.5.2

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 -2
  2. package/package.json +1 -1
package/dmx-ag-grid.js CHANGED
@@ -368,6 +368,8 @@ dmx.Component('ag-grid', {
368
368
  const cnames = this.props.cnames
369
369
  const cwidths = this.props.cwidths
370
370
  const ctypes = this.props.ctypes
371
+ let gridInstance = this.get('gridInstance') ? this.get('gridInstance') : null;
372
+ let pagination_page_size = gridInstance ? gridInstance.paginationGetPageSize() : this.props.pagination_page_size
371
373
  const enableRowClickEvent = this.props.row_click_event && !this.props.enable_actions && !this.props.row_checkbox_event;
372
374
  const enableRowDoubleClickEvent = this.props.row_double_click_event && !this.props.enable_actions && !this.props.row_checkbox_event;
373
375
  const enableCellClickEvent = this.props.row_click_event && (this.props.enable_actions || this.props.row_checkbox_event);
@@ -376,7 +378,6 @@ dmx.Component('ag-grid', {
376
378
  let columnDefs = [];
377
379
  let groupedColumnDefs = [];
378
380
  let exportToCSV = this.props.export_to_csv;
379
- let gridInstance = null;
380
381
  let cellRenderer;
381
382
  const gridThemeClass = options.dark_mode ? `${options.grid_theme}-dark` : options.grid_theme;
382
383
  this.$node.innerHTML = `<div id=${options.id}-grid class="${gridThemeClass}"></div>`;
@@ -1300,7 +1301,7 @@ dmx.Component('ag-grid', {
1300
1301
  suppressRowDeselection: this.props.suppress_row_deselection,
1301
1302
  pagination: this.props.pagination,
1302
1303
  paginationAutoPageSize: this.props.pagination_auto_page_size,
1303
- paginationPageSize: this.props.pagination_page_size,
1304
+ paginationPageSize: pagination_page_size,
1304
1305
  paginationPageSizeSelector: options.pagination_page_size_selector,
1305
1306
  rowHeight: this.props.row_height,
1306
1307
  headerHeight: this.props.header_height,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",