@cdmx/wappler_ag_grid 1.9.10 → 1.9.12
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/app_connect/components.hjson +8 -0
- package/dmx-ag-grid.js +5 -0
- package/package.json +6 -6
|
@@ -1566,6 +1566,7 @@
|
|
|
1566
1566
|
"show": [
|
|
1567
1567
|
"columnsToCount",
|
|
1568
1568
|
"columnsToSum",
|
|
1569
|
+
"footerSumPrecision",
|
|
1569
1570
|
"enableFixedFooter",
|
|
1570
1571
|
"fixedFooterBottomPadding",
|
|
1571
1572
|
"columnsToCountNonUnique"
|
|
@@ -1604,6 +1605,13 @@
|
|
|
1604
1605
|
"unique_values": ""
|
|
1605
1606
|
}
|
|
1606
1607
|
},
|
|
1608
|
+
{
|
|
1609
|
+
"name": "footerSumPrecision",
|
|
1610
|
+
"attribute": "footer_sum_precision",
|
|
1611
|
+
"title": "Sum Precision",
|
|
1612
|
+
"type": "number",
|
|
1613
|
+
"help": "Sets the number of decimal places to display in the footer for sum totals."
|
|
1614
|
+
},
|
|
1607
1615
|
{
|
|
1608
1616
|
"name": "columnsToCountNonUnique",
|
|
1609
1617
|
"attribute": "dmx-bind:columns_to_count_nonunique",
|
package/dmx-ag-grid.js
CHANGED
|
@@ -259,6 +259,7 @@ dmx.Component('ag-grid', {
|
|
|
259
259
|
group_config: { type: Array, default: [] },
|
|
260
260
|
columns_to_count: { type: Array, default: [] },
|
|
261
261
|
columns_to_sum: { type: String, default: null },
|
|
262
|
+
footer_sum_precision: { type: Number, default: null },
|
|
262
263
|
columns_to_count_nonunique: { type: Boolean, default: false }
|
|
263
264
|
},
|
|
264
265
|
|
|
@@ -1731,6 +1732,10 @@ dmx.Component('ag-grid', {
|
|
|
1731
1732
|
result[0][col] += parseFloat(line.data[col]) || line.data[col];
|
|
1732
1733
|
}
|
|
1733
1734
|
});
|
|
1735
|
+
// Apply footer sum precision if specified
|
|
1736
|
+
if (options.footer_sum_precision) {
|
|
1737
|
+
result[0][col] = parseFloat(result[0][col].toFixed(options.footer_sum_precision) );
|
|
1738
|
+
}
|
|
1734
1739
|
});
|
|
1735
1740
|
}
|
|
1736
1741
|
if (columnsToCount) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdmx/wappler_ag_grid",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "App Connect module for AG Grid Table Generation.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"ag-grid"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@ag-grid-community/locale": "~
|
|
18
|
-
"ag-grid-community": "~
|
|
19
|
-
"papaparse": "~5.
|
|
20
|
-
"pdfmake": "~0.2.
|
|
21
|
-
"read-excel-file": "~5.8.
|
|
17
|
+
"@ag-grid-community/locale": "~33.2.4",
|
|
18
|
+
"ag-grid-community": "~33.2.4",
|
|
19
|
+
"papaparse": "~5.5.2",
|
|
20
|
+
"pdfmake": "~0.2.18",
|
|
21
|
+
"read-excel-file": "~5.8.7"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "rollup --config",
|