@portnet/ui 0.0.72 → 0.0.73
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.
|
@@ -281,15 +281,19 @@ const PuiTable = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
281
281
|
headerClassName: "tableActionColumn"
|
|
282
282
|
}] : columns;
|
|
283
283
|
setAppColumns(newColumns.map(column => {
|
|
284
|
-
const renderCell = Boolean(column.renderCell) ? column.renderCell : Boolean(column.valueGetter) ? columnData =>
|
|
285
|
-
title
|
|
286
|
-
|
|
287
|
-
|
|
284
|
+
const renderCell = Boolean(column.renderCell) ? column.renderCell : Boolean(column.valueGetter) ? columnData => {
|
|
285
|
+
var _column$title;
|
|
286
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTooltip.default, {
|
|
287
|
+
title: (_column$title = column.title) !== null && _column$title !== void 0 ? _column$title : String(column.valueGetter(columnData)),
|
|
288
|
+
children: column.valueGetter(columnData)
|
|
289
|
+
});
|
|
290
|
+
} : Boolean(column.field) ? _ref5 => {
|
|
291
|
+
var _column$title2;
|
|
288
292
|
let {
|
|
289
293
|
row
|
|
290
294
|
} = _ref5;
|
|
291
295
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTooltip.default, {
|
|
292
|
-
title: String(row[column.field]),
|
|
296
|
+
title: (_column$title2 = column.title) !== null && _column$title2 !== void 0 ? _column$title2 : String(row[column.field]),
|
|
293
297
|
children: row[column.field]
|
|
294
298
|
});
|
|
295
299
|
} : undefined;
|