material-react-table 0.7.0-alpha.7 → 0.7.0-alpha.8
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/README.md +2 -2
- package/dist/material-react-table.cjs.development.js +5 -5
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +5 -5
- package/dist/material-react-table.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/body/MRT_TableBodyCell.tsx +4 -4
|
@@ -2271,7 +2271,7 @@ var MRT_CopyButton = function MRT_CopyButton(_ref) {
|
|
|
2271
2271
|
};
|
|
2272
2272
|
|
|
2273
2273
|
var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
|
|
2274
|
-
var _row$subRows, _row$subRows2;
|
|
2274
|
+
var _row$subRows, _cell$column$Cell, _cell$column, _row$subRows2;
|
|
2275
2275
|
|
|
2276
2276
|
var cell = _ref.cell,
|
|
2277
2277
|
tableInstance = _ref.tableInstance;
|
|
@@ -2325,16 +2325,16 @@ var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
|
|
|
2325
2325
|
animation: "wave",
|
|
2326
2326
|
height: 20,
|
|
2327
2327
|
width: skeletonWidth
|
|
2328
|
-
}, muiTableBodyCellSkeletonProps)) : column.
|
|
2328
|
+
}, muiTableBodyCellSkeletonProps)) : cell.getIsPlaceholder() || row.getIsGrouped() && column.id !== row.groupingColumnId ? null : cell.getIsAggregated() ? cell.renderAggregatedCell() : enableEditing && column.enableEditing !== false && (currentEditingRow == null ? void 0 : currentEditingRow.id) === row.id ? React.createElement(MRT_EditCellTextField, {
|
|
2329
2329
|
cell: cell,
|
|
2330
2330
|
tableInstance: tableInstance
|
|
2331
|
-
}) :
|
|
2331
|
+
}) : (enableClickToCopy || column.enableClickToCopy) && column.enableClickToCopy !== false ? React.createElement(React.Fragment, null, React.createElement(MRT_CopyButton, {
|
|
2332
2332
|
cell: cell,
|
|
2333
2333
|
tableInstance: tableInstance
|
|
2334
|
-
})
|
|
2334
|
+
}, cell.renderCell()), row.getIsGrouped() && React.createElement(React.Fragment, null, " (", (_row$subRows = row.subRows) == null ? void 0 : _row$subRows.length, ")")) : React.createElement(React.Fragment, null, (_cell$column$Cell = (_cell$column = cell.column) == null ? void 0 : _cell$column.Cell == null ? void 0 : _cell$column.Cell({
|
|
2335
2335
|
cell: cell,
|
|
2336
2336
|
tableInstance: tableInstance
|
|
2337
|
-
}
|
|
2337
|
+
})) != null ? _cell$column$Cell : cell.renderCell(), row.getIsGrouped() && React.createElement(React.Fragment, null, " (", (_row$subRows2 = row.subRows) == null ? void 0 : _row$subRows2.length, ")")));
|
|
2338
2338
|
};
|
|
2339
2339
|
|
|
2340
2340
|
var MRT_TableDetailPanel = function MRT_TableDetailPanel(_ref) {
|