@vuu-ui/vuu-table 0.6.23-debug → 0.6.24-debug

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/esm/index.js CHANGED
@@ -119,8 +119,9 @@ var getGroupValueAndOffset = (columns, row) => {
119
119
  } else if (depth === 0) {
120
120
  return ["$root", 0];
121
121
  } else {
122
- const column = columns[depth - 1];
123
- return [row[column.key], depth - 1];
122
+ const { key, valueFormatter } = columns[depth - 1];
123
+ const value = valueFormatter(row[key]);
124
+ return [value, depth - 1];
124
125
  }
125
126
  };
126
127
  var TableGroupCell = ({ column, onClick, row }) => {
@@ -1724,9 +1725,9 @@ var DEFAULT_COLUMN_WIDTH = 100;
1724
1725
  var KEY_OFFSET = metadataKeys8.count;
1725
1726
  var columnWithoutDataType = ({ serverDataType }) => serverDataType === void 0;
1726
1727
  var getCellRendererForColumn = (column) => {
1727
- var _a, _b;
1728
+ var _a;
1728
1729
  if (isTypeDescriptor(column.type)) {
1729
- return getCellRenderer((_b = (_a = column.type) == null ? void 0 : _a.renderer) == null ? void 0 : _b.name);
1730
+ return getCellRenderer((_a = column.type) == null ? void 0 : _a.renderer);
1730
1731
  }
1731
1732
  };
1732
1733
  var getDataType = (column, columnNames, dataTypes) => {