@dooherceg/material-react-table 4.0.2 → 4.0.3

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/dist/index.js CHANGED
@@ -13621,7 +13621,7 @@ const MRT_CellActionMenu = ({
13621
13621
  };
13622
13622
 
13623
13623
  const MRT_DisplayColumnCellRenderer = t0 => {
13624
- const $ = compilerRuntime.c(11);
13624
+ const $ = compilerRuntime.c(12);
13625
13625
  const {
13626
13626
  cell,
13627
13627
  rowRef,
@@ -13636,41 +13636,45 @@ const MRT_DisplayColumnCellRenderer = t0 => {
13636
13636
  const {
13637
13637
  columnDef
13638
13638
  } = column;
13639
+ const CellComponent = columnDef.Cell;
13640
+ if (!CellComponent) {
13641
+ return null;
13642
+ }
13639
13643
  let t1;
13640
- if ($[0] !== cell || $[1] !== column || $[2] !== columnDef || $[3] !== row || $[4] !== rowRef || $[5] !== staticColumnIndex || $[6] !== staticRowIndex || $[7] !== table) {
13641
- t1 = columnDef.Cell?.({
13642
- cell,
13643
- column,
13644
- renderedCellValue: cell.renderValue(),
13645
- row,
13646
- rowRef,
13647
- staticColumnIndex,
13648
- staticRowIndex,
13649
- table
13650
- }) ?? null;
13644
+ if ($[0] !== cell) {
13645
+ t1 = cell.renderValue();
13651
13646
  $[0] = cell;
13652
- $[1] = column;
13653
- $[2] = columnDef;
13654
- $[3] = row;
13655
- $[4] = rowRef;
13656
- $[5] = staticColumnIndex;
13657
- $[6] = staticRowIndex;
13658
- $[7] = table;
13659
- $[8] = t1;
13647
+ $[1] = t1;
13660
13648
  } else {
13661
- t1 = $[8];
13649
+ t1 = $[1];
13662
13650
  }
13663
- let t2;
13664
- if ($[9] !== t1) {
13665
- t2 = /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
13666
- children: t1
13651
+ const t2 = t1;
13652
+ let t3;
13653
+ if ($[2] !== CellComponent || $[3] !== cell || $[4] !== column || $[5] !== row || $[6] !== rowRef || $[7] !== staticColumnIndex || $[8] !== staticRowIndex || $[9] !== t2 || $[10] !== table) {
13654
+ t3 = /*#__PURE__*/jsxRuntime.jsx(CellComponent, {
13655
+ cell: cell,
13656
+ column: column,
13657
+ renderedCellValue: t2,
13658
+ row: row,
13659
+ rowRef: rowRef,
13660
+ staticColumnIndex: staticColumnIndex,
13661
+ staticRowIndex: staticRowIndex,
13662
+ table: table
13667
13663
  });
13668
- $[9] = t1;
13669
- $[10] = t2;
13664
+ $[2] = CellComponent;
13665
+ $[3] = cell;
13666
+ $[4] = column;
13667
+ $[5] = row;
13668
+ $[6] = rowRef;
13669
+ $[7] = staticColumnIndex;
13670
+ $[8] = staticRowIndex;
13671
+ $[9] = t2;
13672
+ $[10] = table;
13673
+ $[11] = t3;
13670
13674
  } else {
13671
- t2 = $[10];
13675
+ t3 = $[11];
13672
13676
  }
13673
- return t2;
13677
+ return t3;
13674
13678
  };
13675
13679
 
13676
13680
  const MRT_TableBodyCellValue = ({