@dooherceg/material-react-table 4.1.0 → 4.1.2
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.d.ts +8 -1
- package/dist/index.esm.js +227 -114
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +227 -113
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -278,6 +278,21 @@ const getDefaultColumnPinningState = (tableOptions, existingColumnPinning = {})
|
|
|
278
278
|
end: existingEnd
|
|
279
279
|
};
|
|
280
280
|
};
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Forces mrt-row-expand to a fixed slot in columnOrder: right after the
|
|
284
|
+
* checkbox column when row selection is enabled, otherwise the very first
|
|
285
|
+
* column. Not configurable — mirrors how getDefaultColumnPinningState
|
|
286
|
+
* forces the checkbox column itself to the front of columnPinning.start.
|
|
287
|
+
*/
|
|
288
|
+
const normalizeRowExpandColumnOrder = (tableOptions, columnOrder) => {
|
|
289
|
+
if (!showRowExpandColumn(tableOptions)) {
|
|
290
|
+
return columnOrder;
|
|
291
|
+
}
|
|
292
|
+
const withoutExpand = columnOrder.filter(id => id !== 'mrt-row-expand');
|
|
293
|
+
const expandIndex = showRowSelectionColumn(tableOptions) ? 1 : 0;
|
|
294
|
+
return [...withoutExpand.slice(0, expandIndex), 'mrt-row-expand', ...withoutExpand.slice(expandIndex)];
|
|
295
|
+
};
|
|
281
296
|
const getDefaultColumnOrderIds = (tableOptions, reset = false) => {
|
|
282
297
|
const {
|
|
283
298
|
state: {
|
|
@@ -2490,7 +2505,7 @@ const MRT_ReorderRowCheckbox = t0 => {
|
|
|
2490
2505
|
t1 = {
|
|
2491
2506
|
color: _temp2$d,
|
|
2492
2507
|
"&.Mui-checked": {
|
|
2493
|
-
color: _temp3$
|
|
2508
|
+
color: _temp3$6
|
|
2494
2509
|
}
|
|
2495
2510
|
};
|
|
2496
2511
|
$[0] = t1;
|
|
@@ -2521,7 +2536,7 @@ function _temp$y(event) {
|
|
|
2521
2536
|
function _temp2$d(theme) {
|
|
2522
2537
|
return theme.palette.warning.main;
|
|
2523
2538
|
}
|
|
2524
|
-
function _temp3$
|
|
2539
|
+
function _temp3$6(theme_0) {
|
|
2525
2540
|
return theme_0.palette.warning.main;
|
|
2526
2541
|
}
|
|
2527
2542
|
|
|
@@ -4468,7 +4483,7 @@ const useMRT_TableInstance = definedTableOptions => {
|
|
|
4468
4483
|
...definedTableOptions.state
|
|
4469
4484
|
}
|
|
4470
4485
|
};
|
|
4471
|
-
initState.columnOrder = initState.columnOrder ?? getDefaultColumnOrderIds(mergedOptionsSnapshot);
|
|
4486
|
+
initState.columnOrder = normalizeRowExpandColumnOrder(mergedOptionsSnapshot, initState.columnOrder ?? getDefaultColumnOrderIds(mergedOptionsSnapshot));
|
|
4472
4487
|
|
|
4473
4488
|
// Ensure the checkbox column is always the leftmost sticky column when
|
|
4474
4489
|
// row selection is enabled, regardless of what the user pinned initially.
|
|
@@ -4533,6 +4548,14 @@ const useMRT_TableInstance = definedTableOptions => {
|
|
|
4533
4548
|
|
|
4534
4549
|
//The table options now include all state needed to help determine column visibility and order logic
|
|
4535
4550
|
const statefulTableOptions = definedTableOptions;
|
|
4551
|
+
|
|
4552
|
+
// Keep mrt-row-expand locked to its slot (right after the checkbox, or
|
|
4553
|
+
// first if there's no checkbox) regardless of what columnOrder the
|
|
4554
|
+
// consumer passes in — same enforcement model as columnPinning above.
|
|
4555
|
+
statefulTableOptions.state = {
|
|
4556
|
+
...statefulTableOptions.state,
|
|
4557
|
+
columnOrder: normalizeRowExpandColumnOrder(statefulTableOptions, statefulTableOptions.state.columnOrder)
|
|
4558
|
+
};
|
|
4536
4559
|
const resolveRowId = statefulTableOptions.getRowId ?? ((_originalRow, index, _parentRow) => String(index));
|
|
4537
4560
|
|
|
4538
4561
|
//keep the prepared column tree referentially stable so TanStack's
|
|
@@ -6160,8 +6183,8 @@ const MRT_FilterRuleBooleanEditor = props => {
|
|
|
6160
6183
|
t3 = /*#__PURE__*/jsxRuntime.jsx(MRT_SingleValueEditor, {
|
|
6161
6184
|
...props,
|
|
6162
6185
|
options: t2,
|
|
6163
|
-
transformValue: _temp3$
|
|
6164
|
-
valueFormatter: _temp4$
|
|
6186
|
+
transformValue: _temp3$5,
|
|
6187
|
+
valueFormatter: _temp4$2
|
|
6165
6188
|
});
|
|
6166
6189
|
$[7] = props;
|
|
6167
6190
|
$[8] = t2;
|
|
@@ -6359,10 +6382,10 @@ function _temp$q(value) {
|
|
|
6359
6382
|
function _temp2$9(value_0) {
|
|
6360
6383
|
return value_0 === undefined || value_0 === null || value_0 === "" ? "" : String(value_0);
|
|
6361
6384
|
}
|
|
6362
|
-
function _temp3$
|
|
6385
|
+
function _temp3$5(value) {
|
|
6363
6386
|
return value === "true" ? true : value === "false" ? false : "";
|
|
6364
6387
|
}
|
|
6365
|
-
function _temp4$
|
|
6388
|
+
function _temp4$2(value_0) {
|
|
6366
6389
|
return value_0 === true ? "true" : value_0 === false ? "false" : "";
|
|
6367
6390
|
}
|
|
6368
6391
|
function _temp5$1(n) {
|
|
@@ -9915,7 +9938,7 @@ const MRT_AdvancedFiltersContent = t0 => {
|
|
|
9915
9938
|
display: "flex",
|
|
9916
9939
|
justifyContent: "center",
|
|
9917
9940
|
sx: {
|
|
9918
|
-
border: _temp3$
|
|
9941
|
+
border: _temp3$4,
|
|
9919
9942
|
borderRadius: 2,
|
|
9920
9943
|
flex: 1,
|
|
9921
9944
|
minHeight: 140,
|
|
@@ -10122,7 +10145,7 @@ function _temp$n(current) {
|
|
|
10122
10145
|
function _temp2$8(theme) {
|
|
10123
10146
|
return theme.zIndex.drawer + 1;
|
|
10124
10147
|
}
|
|
10125
|
-
function _temp3$
|
|
10148
|
+
function _temp3$4(theme_0) {
|
|
10126
10149
|
return `1px dashed ${theme_0.palette.divider}`;
|
|
10127
10150
|
}
|
|
10128
10151
|
|
|
@@ -11631,7 +11654,7 @@ const MRT_QuickFilterItem = t0 => {
|
|
|
11631
11654
|
top: 8,
|
|
11632
11655
|
zIndex: 1,
|
|
11633
11656
|
"&:hover": {
|
|
11634
|
-
backgroundColor: _temp3$
|
|
11657
|
+
backgroundColor: _temp3$3
|
|
11635
11658
|
}
|
|
11636
11659
|
},
|
|
11637
11660
|
children: /*#__PURE__*/jsxRuntime.jsx(CloseIcon, {
|
|
@@ -11776,7 +11799,7 @@ function _temp$h(theme) {
|
|
|
11776
11799
|
function _temp2$6(theme_0) {
|
|
11777
11800
|
return theme_0.palette.background.paper;
|
|
11778
11801
|
}
|
|
11779
|
-
function _temp3$
|
|
11802
|
+
function _temp3$3(theme_1) {
|
|
11780
11803
|
return theme_1.palette.error.dark;
|
|
11781
11804
|
}
|
|
11782
11805
|
|
|
@@ -13662,9 +13685,6 @@ const MRT_CellActionMenu = ({
|
|
|
13662
13685
|
});
|
|
13663
13686
|
};
|
|
13664
13687
|
|
|
13665
|
-
const PLACEHOLDER_ROW_COUNT = 8;
|
|
13666
|
-
// bar length per cell (% of the cell), picked deterministically so the ghost
|
|
13667
|
-
// rows look like varied content rather than a uniform grid
|
|
13668
13688
|
const BAR_WIDTHS = [72, 48, 85, 60, 40, 66, 78, 54, 82, 45];
|
|
13669
13689
|
|
|
13670
13690
|
// animates the row's own opacity around its fade-to-bottom level (--mrt-ghost-o)
|
|
@@ -13672,81 +13692,128 @@ const pulse = styles.keyframes`
|
|
|
13672
13692
|
0%, 100% { opacity: var(--mrt-ghost-o); }
|
|
13673
13693
|
50% { opacity: calc(var(--mrt-ghost-o) * 0.45); }
|
|
13674
13694
|
`;
|
|
13675
|
-
//
|
|
13676
|
-
//
|
|
13677
|
-
//
|
|
13678
|
-
//
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
|
|
13689
|
-
|
|
13690
|
-
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
|
|
13694
|
-
}
|
|
13695
|
-
|
|
13696
|
-
|
|
13697
|
-
|
|
13698
|
-
|
|
13699
|
-
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
13703
|
-
}
|
|
13704
|
-
};
|
|
13705
|
-
});
|
|
13706
|
-
return Array.from({
|
|
13707
|
-
length: PLACEHOLDER_ROW_COUNT
|
|
13708
|
-
}, (_, rowIndex) => /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
13709
|
-
"aria-hidden": true,
|
|
13710
|
-
component: "tr",
|
|
13711
|
-
style: {
|
|
13712
|
-
'--mrt-ghost-o': 1 - rowIndex / PLACEHOLDER_ROW_COUNT * 0.85,
|
|
13713
|
-
animationDelay: `${rowIndex * 90}ms`
|
|
13714
|
-
},
|
|
13715
|
-
sx: theme => ({
|
|
13716
|
-
animation: `${pulse} 1.6s ease-in-out infinite`,
|
|
13695
|
+
// Pulsing loading rows shared by the body placeholder (skeletonMode: 'placeholder')
|
|
13696
|
+
// and the server table's config skeleton. Plain <td><span> per cell (no MRT cell
|
|
13697
|
+
// logic, hooks or store subscriptions); styles live on the row's sx via descendant
|
|
13698
|
+
// selectors (one emotion class shared by all rows), and only the rows' opacity animates.
|
|
13699
|
+
const MRT_GhostRows = ({
|
|
13700
|
+
cells,
|
|
13701
|
+
isGridLayout,
|
|
13702
|
+
rowCount = 8,
|
|
13703
|
+
rowHeight
|
|
13704
|
+
}) => Array.from({
|
|
13705
|
+
length: rowCount
|
|
13706
|
+
}, (_, rowIndex) => /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
13707
|
+
"aria-hidden": true,
|
|
13708
|
+
component: "tr",
|
|
13709
|
+
style: {
|
|
13710
|
+
'--mrt-ghost-o': 1 - rowIndex / rowCount * 0.85,
|
|
13711
|
+
animationDelay: `${rowIndex * 90}ms`
|
|
13712
|
+
},
|
|
13713
|
+
sx: theme => ({
|
|
13714
|
+
animation: `${pulse} 1.6s ease-in-out infinite`,
|
|
13715
|
+
display: isGridLayout ? 'flex' : undefined,
|
|
13716
|
+
height: rowHeight,
|
|
13717
|
+
opacity: 'var(--mrt-ghost-o)',
|
|
13718
|
+
width: '100%',
|
|
13719
|
+
'& > td': {
|
|
13720
|
+
alignItems: isGridLayout ? 'center' : undefined,
|
|
13721
|
+
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
13722
|
+
boxSizing: 'border-box',
|
|
13717
13723
|
display: isGridLayout ? 'flex' : undefined,
|
|
13718
|
-
|
|
13719
|
-
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13724
|
+
overflow: 'hidden',
|
|
13725
|
+
// fallback = compact padding, for use outside MRT_Table (server table skeleton)
|
|
13726
|
+
p: 'var(--mrt-cell-p, 0.5rem)'
|
|
13727
|
+
},
|
|
13728
|
+
'& > td > span': {
|
|
13729
|
+
backgroundColor: styles.alpha(theme.palette.text.primary, 0.1),
|
|
13730
|
+
borderRadius: 999,
|
|
13731
|
+
display: 'block',
|
|
13732
|
+
height: 10
|
|
13733
|
+
}
|
|
13734
|
+
}),
|
|
13735
|
+
children: cells.map(({
|
|
13736
|
+
id,
|
|
13737
|
+
isDisplay,
|
|
13738
|
+
style
|
|
13739
|
+
}, columnIndex) => /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
13740
|
+
style: style,
|
|
13741
|
+
children: !isDisplay && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
13742
|
+
style: {
|
|
13743
|
+
width: `${BAR_WIDTHS[(columnIndex * 3 + rowIndex * 7) % BAR_WIDTHS.length]}%`
|
|
13734
13744
|
}
|
|
13735
|
-
})
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13745
|
+
})
|
|
13746
|
+
}, id))
|
|
13747
|
+
}, rowIndex));
|
|
13748
|
+
|
|
13749
|
+
// skeletonMode: 'placeholder'. Ghost rows instead of a MUI Skeleton in every
|
|
13750
|
+
// cell, sized with the same --col-* CSS vars as real cells, so the layout
|
|
13751
|
+
// doesn't shift when data arrives.
|
|
13752
|
+
const MRT_TableBodyLoadingPlaceholder = t0 => {
|
|
13753
|
+
const $ = compilerRuntime.c(11);
|
|
13754
|
+
const {
|
|
13755
|
+
columns,
|
|
13756
|
+
density,
|
|
13757
|
+
layoutMode
|
|
13758
|
+
} = t0;
|
|
13759
|
+
const rowHeight = density === "compact" ? 37 : density === "comfortable" ? 53 : 69;
|
|
13760
|
+
let t1;
|
|
13761
|
+
if ($[0] !== columns || $[1] !== layoutMode) {
|
|
13762
|
+
let t2;
|
|
13763
|
+
if ($[3] !== layoutMode) {
|
|
13764
|
+
t2 = column => {
|
|
13765
|
+
const sizeVar = `var(--col-${parseCSSVarId(column.id)}-size)`;
|
|
13766
|
+
const {
|
|
13767
|
+
columnDefType,
|
|
13768
|
+
grow,
|
|
13769
|
+
minSize
|
|
13770
|
+
} = column.columnDef;
|
|
13771
|
+
return {
|
|
13772
|
+
id: column.id,
|
|
13773
|
+
isDisplay: columnDefType === "display",
|
|
13774
|
+
style: {
|
|
13775
|
+
flex: layoutMode === "grid" ? `${[0, false].includes(grow) ? 0 : sizeVar} 0 auto` : layoutMode === "grid-no-grow" ? `${+(grow || 0)} 0 auto` : undefined,
|
|
13776
|
+
minWidth: `max(calc(${sizeVar} * 1px), ${minSize ?? 30}px)`,
|
|
13777
|
+
width: `calc(${sizeVar} * 1px)`
|
|
13778
|
+
}
|
|
13779
|
+
};
|
|
13780
|
+
};
|
|
13781
|
+
$[3] = layoutMode;
|
|
13782
|
+
$[4] = t2;
|
|
13783
|
+
} else {
|
|
13784
|
+
t2 = $[4];
|
|
13785
|
+
}
|
|
13786
|
+
t1 = columns.map(t2);
|
|
13787
|
+
$[0] = columns;
|
|
13788
|
+
$[1] = layoutMode;
|
|
13789
|
+
$[2] = t1;
|
|
13790
|
+
} else {
|
|
13791
|
+
t1 = $[2];
|
|
13792
|
+
}
|
|
13793
|
+
const cells = t1;
|
|
13794
|
+
let t2;
|
|
13795
|
+
if ($[5] !== layoutMode) {
|
|
13796
|
+
t2 = layoutMode?.startsWith("grid");
|
|
13797
|
+
$[5] = layoutMode;
|
|
13798
|
+
$[6] = t2;
|
|
13799
|
+
} else {
|
|
13800
|
+
t2 = $[6];
|
|
13801
|
+
}
|
|
13802
|
+
let t3;
|
|
13803
|
+
if ($[7] !== cells || $[8] !== rowHeight || $[9] !== t2) {
|
|
13804
|
+
t3 = /*#__PURE__*/jsxRuntime.jsx(MRT_GhostRows, {
|
|
13805
|
+
cells: cells,
|
|
13806
|
+
isGridLayout: t2,
|
|
13807
|
+
rowHeight: rowHeight
|
|
13808
|
+
});
|
|
13809
|
+
$[7] = cells;
|
|
13810
|
+
$[8] = rowHeight;
|
|
13811
|
+
$[9] = t2;
|
|
13812
|
+
$[10] = t3;
|
|
13813
|
+
} else {
|
|
13814
|
+
t3 = $[10];
|
|
13815
|
+
}
|
|
13816
|
+
return t3;
|
|
13750
13817
|
};
|
|
13751
13818
|
|
|
13752
13819
|
const MRT_DisplayColumnCellRenderer = t0 => {
|
|
@@ -15330,7 +15397,7 @@ const MRT_ColumnActionMenu = t0 => {
|
|
|
15330
15397
|
let t7;
|
|
15331
15398
|
if ($[15] !== column || $[16] !== setAnchorEl || $[17] !== setColumnResizing) {
|
|
15332
15399
|
t7 = () => {
|
|
15333
|
-
setColumnResizing(_temp3$
|
|
15400
|
+
setColumnResizing(_temp3$2);
|
|
15334
15401
|
column.resetSize();
|
|
15335
15402
|
setAnchorEl(null);
|
|
15336
15403
|
};
|
|
@@ -15372,7 +15439,7 @@ const MRT_ColumnActionMenu = t0 => {
|
|
|
15372
15439
|
if ($[25] !== column || $[26] !== setAnchorEl || $[27] !== setColumnOrder) {
|
|
15373
15440
|
t10 = () => {
|
|
15374
15441
|
column.toggleGrouping();
|
|
15375
|
-
setColumnOrder(_temp4);
|
|
15442
|
+
setColumnOrder(_temp4$1);
|
|
15376
15443
|
setAnchorEl(null);
|
|
15377
15444
|
};
|
|
15378
15445
|
$[25] = column;
|
|
@@ -15573,13 +15640,13 @@ function _temp$8(state) {
|
|
|
15573
15640
|
function _temp2$5(state_0) {
|
|
15574
15641
|
return state_0.density;
|
|
15575
15642
|
}
|
|
15576
|
-
function _temp3$
|
|
15643
|
+
function _temp3$2(old) {
|
|
15577
15644
|
return {
|
|
15578
15645
|
...old,
|
|
15579
15646
|
isResizingColumn: false
|
|
15580
15647
|
};
|
|
15581
15648
|
}
|
|
15582
|
-
function _temp4(old_0) {
|
|
15649
|
+
function _temp4$1(old_0) {
|
|
15583
15650
|
return ["mrt-row-expand", ...old_0];
|
|
15584
15651
|
}
|
|
15585
15652
|
function _temp5(col) {
|
|
@@ -18099,6 +18166,12 @@ const MaterialReactServerTableInstanceComponent = ({
|
|
|
18099
18166
|
};
|
|
18100
18167
|
const MaterialReactServerTableInstance = /*#__PURE__*/react.forwardRef(MaterialReactServerTableInstanceComponent);
|
|
18101
18168
|
|
|
18169
|
+
const GHOST_COLUMNS = Array.from({
|
|
18170
|
+
length: 6
|
|
18171
|
+
}, (_, i) => ({
|
|
18172
|
+
id: `${i}`
|
|
18173
|
+
}));
|
|
18174
|
+
const HEADER_BAR_WIDTHS = [55, 40, 65, 45, 60, 35];
|
|
18102
18175
|
const MaterialReactServerTableSkeleton = () => {
|
|
18103
18176
|
const $ = compilerRuntime.c(6);
|
|
18104
18177
|
let t0;
|
|
@@ -18106,7 +18179,10 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
18106
18179
|
t0 = {
|
|
18107
18180
|
display: "flex",
|
|
18108
18181
|
flexDirection: "column",
|
|
18109
|
-
height: "100%"
|
|
18182
|
+
height: "100%",
|
|
18183
|
+
"& > *": {
|
|
18184
|
+
animation: mrtDelayedFadeIn
|
|
18185
|
+
}
|
|
18110
18186
|
};
|
|
18111
18187
|
$[0] = t0;
|
|
18112
18188
|
} else {
|
|
@@ -18121,22 +18197,22 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
18121
18197
|
gap: "0.5rem"
|
|
18122
18198
|
},
|
|
18123
18199
|
children: [/*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18124
|
-
animation: "
|
|
18200
|
+
animation: "pulse",
|
|
18125
18201
|
height: 30,
|
|
18126
18202
|
variant: "rounded",
|
|
18127
18203
|
width: 73
|
|
18128
18204
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18129
|
-
animation: "
|
|
18205
|
+
animation: "pulse",
|
|
18130
18206
|
height: 30,
|
|
18131
18207
|
variant: "rounded",
|
|
18132
18208
|
width: 80
|
|
18133
18209
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18134
|
-
animation: "
|
|
18210
|
+
animation: "pulse",
|
|
18135
18211
|
height: 30,
|
|
18136
18212
|
variant: "rounded",
|
|
18137
18213
|
width: 67
|
|
18138
18214
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18139
|
-
animation: "
|
|
18215
|
+
animation: "pulse",
|
|
18140
18216
|
height: 30,
|
|
18141
18217
|
variant: "rounded",
|
|
18142
18218
|
width: 135
|
|
@@ -18157,7 +18233,7 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
18157
18233
|
gap: "0.5rem"
|
|
18158
18234
|
},
|
|
18159
18235
|
children: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18160
|
-
animation: "
|
|
18236
|
+
animation: "pulse",
|
|
18161
18237
|
height: 24,
|
|
18162
18238
|
variant: "circular",
|
|
18163
18239
|
width: 24
|
|
@@ -18171,9 +18247,8 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
18171
18247
|
let t3;
|
|
18172
18248
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
18173
18249
|
t3 = {
|
|
18174
|
-
display: "flex",
|
|
18175
18250
|
flex: 1,
|
|
18176
|
-
|
|
18251
|
+
overflow: "hidden"
|
|
18177
18252
|
};
|
|
18178
18253
|
$[3] = t3;
|
|
18179
18254
|
} else {
|
|
@@ -18183,13 +18258,20 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
18183
18258
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
18184
18259
|
t4 = /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
18185
18260
|
sx: t3,
|
|
18186
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
18187
|
-
|
|
18188
|
-
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
-
|
|
18192
|
-
|
|
18261
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
18262
|
+
component: "table",
|
|
18263
|
+
sx: _temp2$3,
|
|
18264
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("thead", {
|
|
18265
|
+
"aria-hidden": true,
|
|
18266
|
+
children: /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
18267
|
+
children: GHOST_COLUMNS.map(_temp3$1)
|
|
18268
|
+
})
|
|
18269
|
+
}), /*#__PURE__*/jsxRuntime.jsx("tbody", {
|
|
18270
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MRT_GhostRows, {
|
|
18271
|
+
cells: GHOST_COLUMNS,
|
|
18272
|
+
rowHeight: 37
|
|
18273
|
+
})
|
|
18274
|
+
})]
|
|
18193
18275
|
})
|
|
18194
18276
|
});
|
|
18195
18277
|
$[4] = t4;
|
|
@@ -18202,7 +18284,7 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
18202
18284
|
"data-testid": "server-table-skeleton",
|
|
18203
18285
|
sx: t0,
|
|
18204
18286
|
children: [t2, t4, /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
18205
|
-
sx:
|
|
18287
|
+
sx: _temp4,
|
|
18206
18288
|
children: /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
18207
18289
|
sx: {
|
|
18208
18290
|
alignItems: "center",
|
|
@@ -18210,27 +18292,27 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
18210
18292
|
gap: "1rem"
|
|
18211
18293
|
},
|
|
18212
18294
|
children: [/*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18213
|
-
animation: "
|
|
18295
|
+
animation: "pulse",
|
|
18214
18296
|
height: 36,
|
|
18215
18297
|
variant: "rounded",
|
|
18216
18298
|
width: 136
|
|
18217
18299
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18218
|
-
animation: "
|
|
18300
|
+
animation: "pulse",
|
|
18219
18301
|
height: 31,
|
|
18220
18302
|
variant: "text",
|
|
18221
18303
|
width: 176
|
|
18222
18304
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18223
|
-
animation: "
|
|
18305
|
+
animation: "pulse",
|
|
18224
18306
|
height: 22,
|
|
18225
18307
|
variant: "text",
|
|
18226
18308
|
width: 70
|
|
18227
18309
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18228
|
-
animation: "
|
|
18310
|
+
animation: "pulse",
|
|
18229
18311
|
height: 24,
|
|
18230
18312
|
variant: "circular",
|
|
18231
18313
|
width: 24
|
|
18232
18314
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
18233
|
-
animation: "
|
|
18315
|
+
animation: "pulse",
|
|
18234
18316
|
height: 24,
|
|
18235
18317
|
variant: "circular",
|
|
18236
18318
|
width: 24
|
|
@@ -18256,9 +18338,40 @@ function _temp$6(theme) {
|
|
|
18256
18338
|
};
|
|
18257
18339
|
}
|
|
18258
18340
|
function _temp2$3(theme_0) {
|
|
18341
|
+
return {
|
|
18342
|
+
borderCollapse: "collapse",
|
|
18343
|
+
tableLayout: "fixed",
|
|
18344
|
+
width: "100%",
|
|
18345
|
+
"& th": {
|
|
18346
|
+
borderBottom: `1px solid ${theme_0.palette.divider}`,
|
|
18347
|
+
height: 48,
|
|
18348
|
+
p: "0.5rem",
|
|
18349
|
+
textAlign: "left"
|
|
18350
|
+
},
|
|
18351
|
+
"& th > span": {
|
|
18352
|
+
backgroundColor: styles.alpha(theme_0.palette.text.primary, 0.16),
|
|
18353
|
+
borderRadius: 999,
|
|
18354
|
+
display: "block",
|
|
18355
|
+
height: 12
|
|
18356
|
+
}
|
|
18357
|
+
};
|
|
18358
|
+
}
|
|
18359
|
+
function _temp3$1(t0, i) {
|
|
18360
|
+
const {
|
|
18361
|
+
id
|
|
18362
|
+
} = t0;
|
|
18363
|
+
return /*#__PURE__*/jsxRuntime.jsx("th", {
|
|
18364
|
+
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
18365
|
+
style: {
|
|
18366
|
+
width: `${HEADER_BAR_WIDTHS[i]}%`
|
|
18367
|
+
}
|
|
18368
|
+
})
|
|
18369
|
+
}, id);
|
|
18370
|
+
}
|
|
18371
|
+
function _temp4(theme_1) {
|
|
18259
18372
|
return {
|
|
18260
18373
|
alignItems: "center",
|
|
18261
|
-
borderTop: `1px solid ${
|
|
18374
|
+
borderTop: `1px solid ${theme_1.palette.divider}`,
|
|
18262
18375
|
display: "flex",
|
|
18263
18376
|
height: "3.30rem",
|
|
18264
18377
|
justifyContent: "flex-end",
|
|
@@ -20100,6 +20213,7 @@ exports.getMRT_Rows = getMRT_Rows;
|
|
|
20100
20213
|
exports.getMRT_SelectAllHandler = getMRT_SelectAllHandler;
|
|
20101
20214
|
exports.getTrailingDisplayColumnIds = getTrailingDisplayColumnIds;
|
|
20102
20215
|
exports.groupFieldsBySection = groupFieldsBySection;
|
|
20216
|
+
exports.normalizeRowExpandColumnOrder = normalizeRowExpandColumnOrder;
|
|
20103
20217
|
exports.prepareColumns = prepareColumns;
|
|
20104
20218
|
exports.reorderColumn = reorderColumn;
|
|
20105
20219
|
exports.resolveFormFields = resolveFormFields;
|