@urbanos/react-discovery-ui 2.1.60 → 2.1.61
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/lib/ReactDiscoveryUI.js
CHANGED
|
@@ -43,7 +43,7 @@ var noMatch = function noMatch() {
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
var DiscoveryUI = function DiscoveryUI() {
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement("
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement("section", {
|
|
47
47
|
class: "main-app-element"
|
|
48
48
|
}, /*#__PURE__*/_react.default.createElement(_networkLoadingElement.default, null), /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.Switch, null, /*#__PURE__*/_react.default.createElement(_protectedRoute.default, {
|
|
49
49
|
exact: true,
|
|
@@ -220,6 +220,7 @@ var DataTable = function DataTable(_ref) {
|
|
|
220
220
|
className: rowIndex % 2 === 0 ? 'striped-row' : ''
|
|
221
221
|
}, row.getVisibleCells().map(function (cell, colIndex) {
|
|
222
222
|
var content = (0, _reactTable.flexRender)(cell.column.columnDef.cell, cell.getContext());
|
|
223
|
+
console.log('content', content.props.getValue());
|
|
223
224
|
return colIndex === 0 ? /*#__PURE__*/_react.default.createElement("th", {
|
|
224
225
|
key: cell.id,
|
|
225
226
|
id: rowHeaderId(rowIndex),
|
|
@@ -228,7 +229,7 @@ var DataTable = function DataTable(_ref) {
|
|
|
228
229
|
"data-row": tableRow,
|
|
229
230
|
"data-col": colIndex,
|
|
230
231
|
className: "row-header".concat(activeCellId === rowHeaderId(rowIndex) ? ' active-cell' : '')
|
|
231
|
-
}, content) : /*#__PURE__*/_react.default.createElement("td", {
|
|
232
|
+
}, content.props.getValue().length === 0 ? "none" : content) : /*#__PURE__*/_react.default.createElement("td", {
|
|
232
233
|
key: cell.id,
|
|
233
234
|
id: dataCellId(rowIndex, colIndex),
|
|
234
235
|
headers: "".concat(colHeaderId(colIndex), " ").concat(rowHeaderId(rowIndex)),
|