@cdmx/wappler_ag_grid 0.9.6 → 0.9.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.
@@ -1164,7 +1164,8 @@
1164
1164
  "show": [
1165
1165
  "columnsToCount",
1166
1166
  "columnsToSum",
1167
- "enableFixedFooter"
1167
+ "enableFixedFooter",
1168
+ "fixedFooterBottomPadding",
1168
1169
  ],
1169
1170
  "noChangeOnHide": true,
1170
1171
  "groupEnabler": true,
@@ -1172,6 +1173,7 @@
1172
1173
  "children": [
1173
1174
  {
1174
1175
  "name": "columnsToCount",
1176
+ "attributeStartsWith": "dmx-bind",
1175
1177
  "attribute": "columns_to_count",
1176
1178
  "title": "Columns to Count",
1177
1179
  "type": "grid",
@@ -1216,6 +1218,15 @@
1216
1218
  "defaultValue": false,
1217
1219
  "help": "Enables Fixed Total Row Footer"
1218
1220
  },
1221
+ {
1222
+ "name": "fixedFooterBottomPadding",
1223
+ "attribute": "dmx-bind:fixed_footer_bottom_padding",
1224
+ "title": "Fixed Footer Bottom Padding",
1225
+ "type": "number",
1226
+ "initDisplay": "none",
1227
+ "defaultValue": 10,
1228
+ "help": "Fixed Footer Bottom Padding"
1229
+ }
1219
1230
  ]
1220
1231
  }
1221
1232
  ]
package/dmx-ag-grid.js CHANGED
@@ -62,6 +62,7 @@ dmx.Component('ag-grid', {
62
62
  fixed_horizontal_scroll: { type: Boolean, default: false },
63
63
  fixed_horizontal_scroll_width: { type: Number, default: 80 },
64
64
  fixed_footer: { type: Boolean, default: false },
65
+ fixed_footer_bottom_padding: { type: Number, default: 10 },
65
66
  timezone: {type: String, default: '' },
66
67
  cell_click_event: {type: Boolean, default: false },
67
68
  row_click_event: {type: Boolean, default: false },
@@ -1277,12 +1278,16 @@ dmx.Component('ag-grid', {
1277
1278
  window.addEventListener('scroll', function () {
1278
1279
  if (gridDiv.scrollTop >= (gridDiv.scrollHeight - gridDiv.clientHeight)) {
1279
1280
  const footerRow = document.querySelector('.ag-row-pinned');
1281
+ const footerRowDiv = document.querySelector('.ag-floating-bottom.ag-selectable');
1280
1282
  if (footerRow) {
1281
1283
  footerRow.classList.remove('ag-row-pinned');
1282
1284
  footerRow.classList.add('ag-row-even');
1283
1285
  footerRow.style.position = 'fixed';
1284
- footerRow.style.bottom = '10px';
1285
- footerRow.style.paddingBottom = '27px'
1286
+ footerRow.style.bottom = options.fixed_footer_bottom_padding+'px';
1287
+ footerRow.style.borderTop = '1px solid #ccc';
1288
+ footerRow.style.borderBottom = '1px solid #ccc';
1289
+ footerRowDiv.style.height = '0px';
1290
+ footerRowDiv.style.minHeight = '0px';
1286
1291
  }
1287
1292
  const bottomViewport = document.querySelector('.ag-floating-bottom-viewport');
1288
1293
  if (bottomViewport) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",