@dooherceg/material-react-table 4.0.1 → 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.esm.js +33 -29
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +33 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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(
|
|
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
|
|
13641
|
-
t1 =
|
|
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] =
|
|
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 = $[
|
|
13649
|
+
t1 = $[1];
|
|
13662
13650
|
}
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
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
|
-
$[
|
|
13669
|
-
$[
|
|
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
|
-
|
|
13675
|
+
t3 = $[11];
|
|
13672
13676
|
}
|
|
13673
|
-
return
|
|
13677
|
+
return t3;
|
|
13674
13678
|
};
|
|
13675
13679
|
|
|
13676
13680
|
const MRT_TableBodyCellValue = ({
|