@cellaware/utils 8.1.10 → 8.1.11
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/dist/chatwms/datagrid.js +3 -2
- package/package.json +1 -1
package/dist/chatwms/datagrid.js
CHANGED
|
@@ -723,11 +723,12 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
|
|
|
723
723
|
rows = filterRows(rows, filterModel);
|
|
724
724
|
const chartRowData = [];
|
|
725
725
|
// IMPORTANT: we evaluate the datagrid condition AFTER we are done with all transformations.
|
|
726
|
+
console.log('Pivot Mode: ' + isPivotMode);
|
|
727
|
+
console.log(pivotCols);
|
|
728
|
+
console.log(valueCols);
|
|
726
729
|
if (isPivotMode && pivotCols.length > 0 && valueCols.length > 0) {
|
|
727
730
|
const pivotOutput = pivotData(rows, rowGroupCols, pivotCols, valueCols);
|
|
728
731
|
rows = pivotOutput.rows;
|
|
729
|
-
console.log('PIVOT MODE');
|
|
730
|
-
console.log(rows);
|
|
731
732
|
rows = sortModel.length > 0 ? sortRows(rows, sortModel) : rows;
|
|
732
733
|
let mappedDisplayColumnNames = new Map();
|
|
733
734
|
// Should not need to do hidden/visible column analysis -- pivoting creates new results with only the necessary columns.
|