@portnet/ui 0.0.73 → 0.0.74
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,19 +281,15 @@ 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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
children: column.valueGetter(columnData)
|
|
289
|
-
});
|
|
290
|
-
} : Boolean(column.field) ? _ref5 => {
|
|
291
|
-
var _column$title2;
|
|
284
|
+
const renderCell = Boolean(column.renderCell) ? column.renderCell : Boolean(column.valueGetter) ? columnData => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTooltip.default, {
|
|
285
|
+
title: Boolean(column.titleGetter) ? column.titleGetter(columnData.row) : String(column.valueGetter(columnData)),
|
|
286
|
+
children: column.valueGetter(columnData)
|
|
287
|
+
}) : Boolean(column.field) ? _ref5 => {
|
|
292
288
|
let {
|
|
293
289
|
row
|
|
294
290
|
} = _ref5;
|
|
295
291
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTooltip.default, {
|
|
296
|
-
title: (
|
|
292
|
+
title: Boolean(column.titleGetter) ? column.titleGetter(row) : String(row[column.field]),
|
|
297
293
|
children: row[column.field]
|
|
298
294
|
});
|
|
299
295
|
} : undefined;
|