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 CHANGED
@@ -30,11 +30,11 @@ Join the [discord](https://discord.gg/5wqyRx6fnm) server to join in on the devel
30
30
  - [x] Column Resizing (work in progress)
31
31
  - [x] Custom Icons
32
32
  - [x] Custom Styling and internal Mui Components
33
- - [ ] Data Editing (work in progress)
33
+ - [x] Data Editing
34
34
  - [x] Dense Padding Toggle
35
35
  - [x] Filtering
36
36
  - [x] Fullscreen
37
- - [ ] Global Search (Advanced search options!)
37
+ - [ ] Global Search (broken in react-table v8 :( ))
38
38
  - [x] HeaderGroups
39
39
  - [x] Localization i18n
40
40
  - [x] Pagination (supports client-side and server-side)
@@ -2278,7 +2278,7 @@ var MRT_CopyButton = function MRT_CopyButton(_ref) {
2278
2278
  };
2279
2279
 
2280
2280
  var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
2281
- var _row$subRows, _row$subRows2;
2281
+ var _row$subRows, _cell$column$Cell, _cell$column, _row$subRows2;
2282
2282
 
2283
2283
  var cell = _ref.cell,
2284
2284
  tableInstance = _ref.tableInstance;
@@ -2332,16 +2332,16 @@ var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
2332
2332
  animation: "wave",
2333
2333
  height: 20,
2334
2334
  width: skeletonWidth
2335
- }, muiTableBodyCellSkeletonProps)) : column.columnDefType === 'display' ? column.Cell == null ? void 0 : column.Cell({
2335
+ }, 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__default.createElement(MRT_EditCellTextField, {
2336
2336
  cell: cell,
2337
2337
  tableInstance: tableInstance
2338
- }) : 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__default.createElement(MRT_EditCellTextField, {
2338
+ }) : (enableClickToCopy || column.enableClickToCopy) && column.enableClickToCopy !== false ? React__default.createElement(React__default.Fragment, null, React__default.createElement(MRT_CopyButton, {
2339
2339
  cell: cell,
2340
2340
  tableInstance: tableInstance
2341
- }) : (enableClickToCopy || column.enableClickToCopy) && column.enableClickToCopy !== false ? React__default.createElement(React__default.Fragment, null, React__default.createElement(MRT_CopyButton, {
2341
+ }, cell.renderCell()), row.getIsGrouped() && React__default.createElement(React__default.Fragment, null, " (", (_row$subRows = row.subRows) == null ? void 0 : _row$subRows.length, ")")) : React__default.createElement(React__default.Fragment, null, (_cell$column$Cell = (_cell$column = cell.column) == null ? void 0 : _cell$column.Cell == null ? void 0 : _cell$column.Cell({
2342
2342
  cell: cell,
2343
2343
  tableInstance: tableInstance
2344
- }, cell.renderCell()), row.getIsGrouped() && React__default.createElement(React__default.Fragment, null, " (", (_row$subRows = row.subRows) == null ? void 0 : _row$subRows.length, ")")) : React__default.createElement(React__default.Fragment, null, cell.renderCell(), row.getIsGrouped() && React__default.createElement(React__default.Fragment, null, " (", (_row$subRows2 = row.subRows) == null ? void 0 : _row$subRows2.length, ")")));
2344
+ })) != null ? _cell$column$Cell : cell.renderCell(), row.getIsGrouped() && React__default.createElement(React__default.Fragment, null, " (", (_row$subRows2 = row.subRows) == null ? void 0 : _row$subRows2.length, ")")));
2345
2345
  };
2346
2346
 
2347
2347
  var MRT_TableDetailPanel = function MRT_TableDetailPanel(_ref) {