@datarailsshared/dr_renderer 1.2.100 → 1.2.101

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.2.100",
3
+ "version": "1.2.101",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -1421,13 +1421,18 @@ let initDRPivotTable = function($, window, document) {
1421
1421
  "data-rownode": rowHeader.node
1422
1422
  }, getTableEventHandlers(val, rowHeader.key, []));
1423
1423
 
1424
+ if (rowHeader.children.length && rowHeader.clickStatus === 'expanded') {
1425
+ td.style.display = 'none';
1426
+ }
1427
+
1424
1428
  tr.appendChild(td)
1425
1429
  }
1426
1430
  }
1427
1431
 
1428
1432
  buildAdditionalRowValues = function (tr, colHeaderCols, rowKey) {
1429
1433
  for (let i = 0; i < colHeaderCols.length; i++) {
1430
- const colKey = colHeaderCols[i].flatKey;
1434
+ const colHeader = colHeaderCols[i];
1435
+ const colKey = colHeader.flatKey;
1431
1436
  const totalAggregator = getAdditionalAggregation(rowKey, colKey);
1432
1437
  const val = totalAggregator.value();
1433
1438
  const formattedValue = getFormattedNumber(val, totalAggregator, opts)
@@ -1439,6 +1444,10 @@ let initDRPivotTable = function($, window, document) {
1439
1444
  "data-colnode": "" + i
1440
1445
  });
1441
1446
 
1447
+ if (colHeader.children.length && colHeader.clickStatus === 'expanded') {
1448
+ td.style.display = 'none';
1449
+ }
1450
+
1442
1451
  tr.appendChild(td);
1443
1452
  }
1444
1453