@pdg/react-table 1.0.66 → 1.0.67

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/index.js CHANGED
@@ -3021,6 +3021,16 @@ var TableBodyCell = function (_a) {
3021
3021
  if (typeof data === 'string' || typeof data === 'number') {
3022
3022
  data = numberWithThousandSeparator(data);
3023
3023
  }
3024
+ if (column.numberPrefix) {
3025
+ data = (React.createElement(React.Fragment, null,
3026
+ React.createElement("span", { style: { opacity: 0.5, marginRight: 2 } }, column.numberPrefix),
3027
+ data));
3028
+ }
3029
+ if (column.numberSuffix) {
3030
+ data = (React.createElement(React.Fragment, null,
3031
+ data,
3032
+ React.createElement("span", { style: { opacity: 0.5, marginLeft: 2 } }, column.numberSuffix)));
3033
+ }
3024
3034
  break;
3025
3035
  case 'tel':
3026
3036
  if (typeof data === 'string') {
@@ -3041,8 +3051,6 @@ var TableBodyCell = function (_a) {
3041
3051
  case 'buttons':
3042
3052
  data = (React.createElement(StyledButtonsBox, { className: 'TableBodyCell-buttons-box', justifyContent: buttonsBoxJustifyContent, onClick: menuOpen ? undefined : function (e) { return e.stopPropagation(); } }, data));
3043
3053
  break;
3044
- }
3045
- switch (column.type) {
3046
3054
  case 'img':
3047
3055
  {
3048
3056
  var img = React.createElement("img", { src: data, style: { maxWidth: '100%', verticalAlign: 'middle' }, alt: '' });