@cdmx/wappler_ag_grid 1.9.17 → 1.9.19
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.
- package/dmx-ag-grid.js +12 -14
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -1288,16 +1288,20 @@ dmx.Component('ag-grid', {
|
|
|
1288
1288
|
const matchingJsChange = options.js_data_changes.find(change => change.field === key);
|
|
1289
1289
|
if (matchingJsChange) {
|
|
1290
1290
|
cellRenderer = function (params) {
|
|
1291
|
-
|
|
1291
|
+
// Don't apply custom renderer to pinned bottom rows (totals)
|
|
1292
|
+
if (params.node && params.node.rowPinned === 'bottom') {
|
|
1293
|
+
return "-";
|
|
1294
|
+
}
|
|
1295
|
+
if (typeof window[matchingJsChange.function] === 'function') {
|
|
1292
1296
|
const cellValue = window[matchingJsChange.function](params.data);
|
|
1293
1297
|
return cellValue;
|
|
1294
1298
|
}
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
else {
|
|
1302
|
+
cellRenderer = undefined;
|
|
1303
|
+
colId = undefined;
|
|
1295
1304
|
}
|
|
1296
|
-
}
|
|
1297
|
-
else {
|
|
1298
|
-
cellRenderer = undefined;
|
|
1299
|
-
colId = undefined;
|
|
1300
|
-
}
|
|
1301
1305
|
}
|
|
1302
1306
|
else {
|
|
1303
1307
|
cellRenderer = undefined;
|
|
@@ -1946,24 +1950,17 @@ dmx.Component('ag-grid', {
|
|
|
1946
1950
|
const bodyHorizontalScrollElement = gridElement.querySelector('.ag-body-horizontal-scroll');
|
|
1947
1951
|
const rootWrapperWidth = agRootWrapper.clientWidth;
|
|
1948
1952
|
bodyHorizontalScrollElement.style.width = rootWrapperWidth + 'px';
|
|
1949
|
-
|
|
1950
|
-
// Get the height of the horizontal scrollbar
|
|
1951
|
-
const scrollbarHeight = bodyHorizontalScrollElement.offsetHeight || 17;
|
|
1952
|
-
|
|
1953
|
+
// Add the styles for the hovering horizontal bottom bar
|
|
1953
1954
|
styleElement.innerHTML = `
|
|
1954
1955
|
.ag-body-horizontal-scroll {
|
|
1955
1956
|
position: fixed;
|
|
1956
1957
|
bottom: 0;
|
|
1957
|
-
z-index: 1000;
|
|
1958
1958
|
}
|
|
1959
1959
|
.ag-sticky-bottom {
|
|
1960
1960
|
display: none;
|
|
1961
1961
|
}
|
|
1962
1962
|
.ag-paging-panel {
|
|
1963
1963
|
border-top: none;
|
|
1964
|
-
margin-bottom: ${scrollbarHeight}px !important;
|
|
1965
|
-
position: relative;
|
|
1966
|
-
z-index: 999;
|
|
1967
1964
|
}
|
|
1968
1965
|
`;
|
|
1969
1966
|
if (existingStyle) {
|
|
@@ -1972,6 +1969,7 @@ dmx.Component('ag-grid', {
|
|
|
1972
1969
|
gridElement.appendChild(styleElement);
|
|
1973
1970
|
}
|
|
1974
1971
|
} else if (existingStyle) {
|
|
1972
|
+
// Remove the style element if it exists
|
|
1975
1973
|
existingStyle.parentNode.removeChild(existingStyle);
|
|
1976
1974
|
}
|
|
1977
1975
|
}
|