react-pivottable-secondary
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "react-pivottable-secondary", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "A React-based pivot table secondary", | ||
@@ -5,0 +5,0 @@ "main": "PivotTableUI.js", |
@@ -226,2 +226,11 @@ 'use strict'; | ||
null, | ||
rowAttrs.length === 0 && colKeys.length === 0 && _react2.default.createElement( | ||
'tr', | ||
null, | ||
_react2.default.createElement( | ||
'th', | ||
{ className: 'pivotTotalLabel', key: 'pivotTotalLabelTop', rowSpan: colAttrs.length + (aggregatorGather.length === 0 ? 0 : 1) }, | ||
colAttrs.length === 0 ? 'Totals' : null | ||
) | ||
), | ||
rowAttrs.length !== 0 && _react2.default.createElement( | ||
@@ -238,11 +247,2 @@ 'tr', | ||
), | ||
rowAttrs.length === 0 && _react2.default.createElement( | ||
'tr', | ||
null, | ||
_react2.default.createElement( | ||
'th', | ||
{ className: 'pivotTotalLabel', key: 'pivotTotalLabelTop', rowSpan: colAttrs.length + (aggregatorGather.length === 0 ? 0 : 1) }, | ||
colAttrs.length === 0 ? 'Totals' : null | ||
) | ||
), | ||
colAttrs.map(function (c, j) { | ||
@@ -252,2 +252,7 @@ return _react2.default.createElement( | ||
{ key: '' + c + j }, | ||
colKeys.length && _react2.default.createElement( | ||
'th', | ||
{ className: 'pivotAxisLabel' }, | ||
c | ||
) || _react2.default.createElement(_react2.default.Fragment, null), | ||
colKeys.map(function (colKey, i) { | ||
@@ -308,3 +313,4 @@ var x = spanSize(colKeys, i, j); | ||
className: 'pivotRowLabel', | ||
rowSpan: x | ||
rowSpan: x, | ||
colSpan: j === rowAttrs.length - 1 && colKeys.length !== 0 ? 2 : 1 | ||
}, | ||
@@ -352,3 +358,3 @@ txt | ||
className: 'pivotTotalLabel', | ||
colSpan: rowAttrs.length | ||
colSpan: rowAttrs.length + (colKeys.length === 0 ? 0 : 1) | ||
}, | ||
@@ -355,0 +361,0 @@ 'Totals' |
Sorry, the diff of this file is not supported yet
268890
2837