@appcorp/app-corp-vista 0.1.47 → 0.1.48

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.
@@ -78,7 +78,7 @@ var VistaTableBodyV1 = function (_a) {
78
78
  !loading && (tableBodyRows === null || tableBodyRows === void 0 ? void 0 : tableBodyRows.map(function (row) {
79
79
  return (react_1.default.createElement("tr", { key: row.id, className: exports.rowClasses }, tableBodyCols.map(function (_a, ind) {
80
80
  var _b;
81
- var key = _a.key, componentType = _a.componentType;
81
+ var key = _a.key, componentType = _a.componentType, expression = _a.expression;
82
82
  var computedValue = '';
83
83
  if (Array.isArray(key)) {
84
84
  computedValue = row[key[0]][key[1]];
@@ -92,6 +92,9 @@ var VistaTableBodyV1 = function (_a) {
92
92
  if (componentType === vista_table_type_1.VISTA_TABLE_CELL_TYPE.ACTIONS) {
93
93
  computedValue = row.id;
94
94
  }
95
+ if (expression) {
96
+ computedValue = expression(row[key]);
97
+ }
95
98
  return (react_1.default.createElement(react_1.Fragment, { key: "".concat(computedValue, "-").concat(ind) }, (_b = componentMap[componentType]) === null || _b === void 0 ? void 0 : _b.call(componentMap, computedValue, rowActions)));
96
99
  })));
97
100
  }))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib",
6
6
  "build:next": "next build",