@cdmx/wappler_ag_grid 1.9.14 → 1.9.16

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 +9 -2
  2. package/package.json +3 -3
package/dmx-ag-grid.js CHANGED
@@ -1942,17 +1942,24 @@ dmx.Component('ag-grid', {
1942
1942
  const bodyHorizontalScrollElement = gridElement.querySelector('.ag-body-horizontal-scroll');
1943
1943
  const rootWrapperWidth = agRootWrapper.clientWidth;
1944
1944
  bodyHorizontalScrollElement.style.width = rootWrapperWidth + 'px';
1945
- // Add the styles for the hovering horizontal bottom bar
1945
+
1946
+ // Get the height of the horizontal scrollbar
1947
+ const scrollbarHeight = bodyHorizontalScrollElement.offsetHeight || 17;
1948
+
1946
1949
  styleElement.innerHTML = `
1947
1950
  .ag-body-horizontal-scroll {
1948
1951
  position: fixed;
1949
1952
  bottom: 0;
1953
+ z-index: 1000;
1950
1954
  }
1951
1955
  .ag-sticky-bottom {
1952
1956
  display: none;
1953
1957
  }
1954
1958
  .ag-paging-panel {
1955
1959
  border-top: none;
1960
+ margin-bottom: ${scrollbarHeight}px !important;
1961
+ position: relative;
1962
+ z-index: 999;
1956
1963
  }
1957
1964
  `;
1958
1965
  if (existingStyle) {
@@ -1961,7 +1968,6 @@ dmx.Component('ag-grid', {
1961
1968
  gridElement.appendChild(styleElement);
1962
1969
  }
1963
1970
  } else if (existingStyle) {
1964
- // Remove the style element if it exists
1965
1971
  existingStyle.parentNode.removeChild(existingStyle);
1966
1972
  }
1967
1973
  }
@@ -2175,6 +2181,7 @@ dmx.Component('ag-grid', {
2175
2181
  colDef,
2176
2182
  column,
2177
2183
  api: gridInstance,
2184
+ context: params.context,
2178
2185
  };
2179
2186
  const cellStyle = applyCellStyle(params);
2180
2187
  // Determine the header name using cnames and humanize function
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.9.14",
3
+ "version": "1.9.16",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",
@@ -14,8 +14,8 @@
14
14
  "ag-grid"
15
15
  ],
16
16
  "dependencies": {
17
- "@ag-grid-community/locale": "~33.2.4",
18
- "ag-grid-community": "~33.2.4",
17
+ "@ag-grid-community/locale": "~32.3.7",
18
+ "ag-grid-community": "~32.3.7",
19
19
  "papaparse": "~5.5.2",
20
20
  "pdfmake": "~0.2.18",
21
21
  "read-excel-file": "~5.8.7"