@dooherceg/material-react-table 4.0.5 → 4.1.1
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 +18 -1
- package/dist/index.esm.js +407 -50
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +406 -49
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -490,6 +490,12 @@ const createRow = (table, originalRow, rowIndex = -1, depth = 0, subRows, parent
|
|
|
490
490
|
[getColumnId(col)]: ''
|
|
491
491
|
}))), rowIndex, depth, subRows, parentId);
|
|
492
492
|
|
|
493
|
+
// Loading indicators fade in after a short delay
|
|
494
|
+
// (`animation: ${mrtDelayedFadeIn}`), so fast responses don't flash them.
|
|
495
|
+
const mrtDelayedFadeIn = `${styles.keyframes`
|
|
496
|
+
from { opacity: 0; }
|
|
497
|
+
to { opacity: 1; }
|
|
498
|
+
`} 150ms ease-out 200ms both`;
|
|
493
499
|
const parseCSSVarId = id => id.replace(/[^a-zA-Z0-9]/g, '_');
|
|
494
500
|
const getMRTTheme = (mrtTheme, muiTheme) => {
|
|
495
501
|
const mrtThemeOverrides = parseFromValuesOrFunc(mrtTheme, muiTheme);
|
|
@@ -2484,7 +2490,7 @@ const MRT_ReorderRowCheckbox = t0 => {
|
|
|
2484
2490
|
t1 = {
|
|
2485
2491
|
color: _temp2$d,
|
|
2486
2492
|
"&.Mui-checked": {
|
|
2487
|
-
color: _temp3$
|
|
2493
|
+
color: _temp3$6
|
|
2488
2494
|
}
|
|
2489
2495
|
};
|
|
2490
2496
|
$[0] = t1;
|
|
@@ -2515,7 +2521,7 @@ function _temp$y(event) {
|
|
|
2515
2521
|
function _temp2$d(theme) {
|
|
2516
2522
|
return theme.palette.warning.main;
|
|
2517
2523
|
}
|
|
2518
|
-
function _temp3$
|
|
2524
|
+
function _temp3$6(theme_0) {
|
|
2519
2525
|
return theme_0.palette.warning.main;
|
|
2520
2526
|
}
|
|
2521
2527
|
|
|
@@ -4019,6 +4025,7 @@ const useMRT_TableOptions = ({
|
|
|
4019
4025
|
positionActionsColumn = 'first',
|
|
4020
4026
|
positionExpandColumn = 'first',
|
|
4021
4027
|
positionPagination = 'bottom',
|
|
4028
|
+
positionProgressBars = 'both',
|
|
4022
4029
|
positionToolbarAlertBanner = 'top',
|
|
4023
4030
|
positionToolbarDropZone = 'top',
|
|
4024
4031
|
rowNumberDisplayMode = 'static',
|
|
@@ -4155,6 +4162,7 @@ const useMRT_TableOptions = ({
|
|
|
4155
4162
|
positionActionsColumn,
|
|
4156
4163
|
positionExpandColumn,
|
|
4157
4164
|
positionPagination,
|
|
4165
|
+
positionProgressBars,
|
|
4158
4166
|
positionToolbarAlertBanner,
|
|
4159
4167
|
positionToolbarDropZone,
|
|
4160
4168
|
rowNumberDisplayMode,
|
|
@@ -4569,9 +4577,9 @@ const useMRT_TableInstance = definedTableOptions => {
|
|
|
4569
4577
|
// pageSize changes while skeletons are already showing, the skeleton row
|
|
4570
4578
|
// *count* stays as-is until loading toggles again — cosmetic only, no data
|
|
4571
4579
|
// is affected.
|
|
4572
|
-
statefulTableOptions.data = react.useMemo(() => (statefulTableOptions.state.isLoading || statefulTableOptions.state.showSkeletons) && !rows.length ? [...Array(Math.min(statefulTableOptions.state.pagination.pageSize, 20)).fill(null)].map(() => Object.assign({}, ...getAllLeafColumnDefs(statefulTableOptions.columns).map(col => ({
|
|
4580
|
+
statefulTableOptions.data = react.useMemo(() => statefulTableOptions.skeletonMode !== 'placeholder' && (statefulTableOptions.state.isLoading || statefulTableOptions.state.showSkeletons) && !rows.length ? [...Array(Math.min(statefulTableOptions.state.pagination.pageSize, 20)).fill(null)].map(() => Object.assign({}, ...getAllLeafColumnDefs(statefulTableOptions.columns).map(col => ({
|
|
4573
4581
|
[getColumnId(col)]: null
|
|
4574
|
-
})))) : rows, [rows, statefulTableOptions.columns, statefulTableOptions.state.isLoading, statefulTableOptions.state.showSkeletons]);
|
|
4582
|
+
})))) : rows, [rows, statefulTableOptions.columns, statefulTableOptions.state.isLoading, statefulTableOptions.state.showSkeletons, statefulTableOptions.skeletonMode]);
|
|
4575
4583
|
const table = reactTable.useTable({
|
|
4576
4584
|
features: MRT_tableFeatures,
|
|
4577
4585
|
// Only wire our atom in for a slice when the consumer hasn't taken over
|
|
@@ -6152,8 +6160,8 @@ const MRT_FilterRuleBooleanEditor = props => {
|
|
|
6152
6160
|
t3 = /*#__PURE__*/jsxRuntime.jsx(MRT_SingleValueEditor, {
|
|
6153
6161
|
...props,
|
|
6154
6162
|
options: t2,
|
|
6155
|
-
transformValue: _temp3$
|
|
6156
|
-
valueFormatter: _temp4$
|
|
6163
|
+
transformValue: _temp3$5,
|
|
6164
|
+
valueFormatter: _temp4$2
|
|
6157
6165
|
});
|
|
6158
6166
|
$[7] = props;
|
|
6159
6167
|
$[8] = t2;
|
|
@@ -6351,10 +6359,10 @@ function _temp$q(value) {
|
|
|
6351
6359
|
function _temp2$9(value_0) {
|
|
6352
6360
|
return value_0 === undefined || value_0 === null || value_0 === "" ? "" : String(value_0);
|
|
6353
6361
|
}
|
|
6354
|
-
function _temp3$
|
|
6362
|
+
function _temp3$5(value) {
|
|
6355
6363
|
return value === "true" ? true : value === "false" ? false : "";
|
|
6356
6364
|
}
|
|
6357
|
-
function _temp4$
|
|
6365
|
+
function _temp4$2(value_0) {
|
|
6358
6366
|
return value_0 === true ? "true" : value_0 === false ? "false" : "";
|
|
6359
6367
|
}
|
|
6360
6368
|
function _temp5$1(n) {
|
|
@@ -9907,7 +9915,7 @@ const MRT_AdvancedFiltersContent = t0 => {
|
|
|
9907
9915
|
display: "flex",
|
|
9908
9916
|
justifyContent: "center",
|
|
9909
9917
|
sx: {
|
|
9910
|
-
border: _temp3$
|
|
9918
|
+
border: _temp3$4,
|
|
9911
9919
|
borderRadius: 2,
|
|
9912
9920
|
flex: 1,
|
|
9913
9921
|
minHeight: 140,
|
|
@@ -10114,7 +10122,7 @@ function _temp$n(current) {
|
|
|
10114
10122
|
function _temp2$8(theme) {
|
|
10115
10123
|
return theme.zIndex.drawer + 1;
|
|
10116
10124
|
}
|
|
10117
|
-
function _temp3$
|
|
10125
|
+
function _temp3$4(theme_0) {
|
|
10118
10126
|
return `1px dashed ${theme_0.palette.divider}`;
|
|
10119
10127
|
}
|
|
10120
10128
|
|
|
@@ -11299,6 +11307,7 @@ const MRT_BottomToolbar = ({
|
|
|
11299
11307
|
enableRowSelection,
|
|
11300
11308
|
muiBottomToolbarProps,
|
|
11301
11309
|
positionPagination,
|
|
11310
|
+
positionProgressBars,
|
|
11302
11311
|
positionToolbarDropZone,
|
|
11303
11312
|
renderBottomToolbarCustomActions
|
|
11304
11313
|
},
|
|
@@ -11335,7 +11344,7 @@ const MRT_BottomToolbar = ({
|
|
|
11335
11344
|
right: 0,
|
|
11336
11345
|
...parseFromValuesOrFunc(toolbarProps?.sx, theme)
|
|
11337
11346
|
}),
|
|
11338
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(MRT_LinearProgressBar, {
|
|
11347
|
+
children: [['both', 'bottom'].includes(positionProgressBars ?? '') && /*#__PURE__*/jsxRuntime.jsx(MRT_LinearProgressBar, {
|
|
11339
11348
|
isTopToolbar: false,
|
|
11340
11349
|
table: table
|
|
11341
11350
|
}), ['both', 'bottom'].includes(positionToolbarDropZone ?? '') && /*#__PURE__*/jsxRuntime.jsx(MRT_ToolbarDropZone, {
|
|
@@ -11622,7 +11631,7 @@ const MRT_QuickFilterItem = t0 => {
|
|
|
11622
11631
|
top: 8,
|
|
11623
11632
|
zIndex: 1,
|
|
11624
11633
|
"&:hover": {
|
|
11625
|
-
backgroundColor: _temp3$
|
|
11634
|
+
backgroundColor: _temp3$3
|
|
11626
11635
|
}
|
|
11627
11636
|
},
|
|
11628
11637
|
children: /*#__PURE__*/jsxRuntime.jsx(CloseIcon, {
|
|
@@ -11767,7 +11776,7 @@ function _temp$h(theme) {
|
|
|
11767
11776
|
function _temp2$6(theme_0) {
|
|
11768
11777
|
return theme_0.palette.background.paper;
|
|
11769
11778
|
}
|
|
11770
|
-
function _temp3$
|
|
11779
|
+
function _temp3$3(theme_1) {
|
|
11771
11780
|
return theme_1.palette.error.dark;
|
|
11772
11781
|
}
|
|
11773
11782
|
|
|
@@ -13406,6 +13415,7 @@ const MRT_TopToolbar = ({
|
|
|
13406
13415
|
enableToolbarInternalActions,
|
|
13407
13416
|
muiTopToolbarProps,
|
|
13408
13417
|
positionPagination,
|
|
13418
|
+
positionProgressBars,
|
|
13409
13419
|
positionToolbarDropZone,
|
|
13410
13420
|
renderTopToolbarCustomActions
|
|
13411
13421
|
},
|
|
@@ -13479,7 +13489,7 @@ const MRT_TopToolbar = ({
|
|
|
13479
13489
|
}), enablePagination && ['both', 'top'].includes(positionPagination ?? '') && /*#__PURE__*/jsxRuntime.jsx(MRT_TablePagination, {
|
|
13480
13490
|
position: "top",
|
|
13481
13491
|
table: table
|
|
13482
|
-
}), /*#__PURE__*/jsxRuntime.jsx(MRT_LinearProgressBar, {
|
|
13492
|
+
}), ['both', 'top'].includes(positionProgressBars ?? '') && /*#__PURE__*/jsxRuntime.jsx(MRT_LinearProgressBar, {
|
|
13483
13493
|
isTopToolbar: true,
|
|
13484
13494
|
table: table
|
|
13485
13495
|
})]
|
|
@@ -13652,6 +13662,137 @@ const MRT_CellActionMenu = ({
|
|
|
13652
13662
|
});
|
|
13653
13663
|
};
|
|
13654
13664
|
|
|
13665
|
+
const BAR_WIDTHS = [72, 48, 85, 60, 40, 66, 78, 54, 82, 45];
|
|
13666
|
+
|
|
13667
|
+
// animates the row's own opacity around its fade-to-bottom level (--mrt-ghost-o)
|
|
13668
|
+
const pulse = styles.keyframes`
|
|
13669
|
+
0%, 100% { opacity: var(--mrt-ghost-o); }
|
|
13670
|
+
50% { opacity: calc(var(--mrt-ghost-o) * 0.45); }
|
|
13671
|
+
`;
|
|
13672
|
+
// Pulsing loading rows shared by the body placeholder (skeletonMode: 'placeholder')
|
|
13673
|
+
// and the server table's config skeleton. Plain <td><span> per cell (no MRT cell
|
|
13674
|
+
// logic, hooks or store subscriptions); styles live on the row's sx via descendant
|
|
13675
|
+
// selectors (one emotion class shared by all rows), and only the rows' opacity animates.
|
|
13676
|
+
const MRT_GhostRows = ({
|
|
13677
|
+
cells,
|
|
13678
|
+
isGridLayout,
|
|
13679
|
+
rowCount = 8,
|
|
13680
|
+
rowHeight
|
|
13681
|
+
}) => Array.from({
|
|
13682
|
+
length: rowCount
|
|
13683
|
+
}, (_, rowIndex) => /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
13684
|
+
"aria-hidden": true,
|
|
13685
|
+
component: "tr",
|
|
13686
|
+
style: {
|
|
13687
|
+
'--mrt-ghost-o': 1 - rowIndex / rowCount * 0.85,
|
|
13688
|
+
animationDelay: `${rowIndex * 90}ms`
|
|
13689
|
+
},
|
|
13690
|
+
sx: theme => ({
|
|
13691
|
+
animation: `${pulse} 1.6s ease-in-out infinite`,
|
|
13692
|
+
display: isGridLayout ? 'flex' : undefined,
|
|
13693
|
+
height: rowHeight,
|
|
13694
|
+
opacity: 'var(--mrt-ghost-o)',
|
|
13695
|
+
width: '100%',
|
|
13696
|
+
'& > td': {
|
|
13697
|
+
alignItems: isGridLayout ? 'center' : undefined,
|
|
13698
|
+
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
13699
|
+
boxSizing: 'border-box',
|
|
13700
|
+
display: isGridLayout ? 'flex' : undefined,
|
|
13701
|
+
overflow: 'hidden',
|
|
13702
|
+
// fallback = compact padding, for use outside MRT_Table (server table skeleton)
|
|
13703
|
+
p: 'var(--mrt-cell-p, 0.5rem)'
|
|
13704
|
+
},
|
|
13705
|
+
'& > td > span': {
|
|
13706
|
+
backgroundColor: styles.alpha(theme.palette.text.primary, 0.1),
|
|
13707
|
+
borderRadius: 999,
|
|
13708
|
+
display: 'block',
|
|
13709
|
+
height: 10
|
|
13710
|
+
}
|
|
13711
|
+
}),
|
|
13712
|
+
children: cells.map(({
|
|
13713
|
+
id,
|
|
13714
|
+
isDisplay,
|
|
13715
|
+
style
|
|
13716
|
+
}, columnIndex) => /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
13717
|
+
style: style,
|
|
13718
|
+
children: !isDisplay && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
13719
|
+
style: {
|
|
13720
|
+
width: `${BAR_WIDTHS[(columnIndex * 3 + rowIndex * 7) % BAR_WIDTHS.length]}%`
|
|
13721
|
+
}
|
|
13722
|
+
})
|
|
13723
|
+
}, id))
|
|
13724
|
+
}, rowIndex));
|
|
13725
|
+
|
|
13726
|
+
// skeletonMode: 'placeholder'. Ghost rows instead of a MUI Skeleton in every
|
|
13727
|
+
// cell, sized with the same --col-* CSS vars as real cells, so the layout
|
|
13728
|
+
// doesn't shift when data arrives.
|
|
13729
|
+
const MRT_TableBodyLoadingPlaceholder = t0 => {
|
|
13730
|
+
const $ = compilerRuntime.c(11);
|
|
13731
|
+
const {
|
|
13732
|
+
columns,
|
|
13733
|
+
density,
|
|
13734
|
+
layoutMode
|
|
13735
|
+
} = t0;
|
|
13736
|
+
const rowHeight = density === "compact" ? 37 : density === "comfortable" ? 53 : 69;
|
|
13737
|
+
let t1;
|
|
13738
|
+
if ($[0] !== columns || $[1] !== layoutMode) {
|
|
13739
|
+
let t2;
|
|
13740
|
+
if ($[3] !== layoutMode) {
|
|
13741
|
+
t2 = column => {
|
|
13742
|
+
const sizeVar = `var(--col-${parseCSSVarId(column.id)}-size)`;
|
|
13743
|
+
const {
|
|
13744
|
+
columnDefType,
|
|
13745
|
+
grow,
|
|
13746
|
+
minSize
|
|
13747
|
+
} = column.columnDef;
|
|
13748
|
+
return {
|
|
13749
|
+
id: column.id,
|
|
13750
|
+
isDisplay: columnDefType === "display",
|
|
13751
|
+
style: {
|
|
13752
|
+
flex: layoutMode === "grid" ? `${[0, false].includes(grow) ? 0 : sizeVar} 0 auto` : layoutMode === "grid-no-grow" ? `${+(grow || 0)} 0 auto` : undefined,
|
|
13753
|
+
minWidth: `max(calc(${sizeVar} * 1px), ${minSize ?? 30}px)`,
|
|
13754
|
+
width: `calc(${sizeVar} * 1px)`
|
|
13755
|
+
}
|
|
13756
|
+
};
|
|
13757
|
+
};
|
|
13758
|
+
$[3] = layoutMode;
|
|
13759
|
+
$[4] = t2;
|
|
13760
|
+
} else {
|
|
13761
|
+
t2 = $[4];
|
|
13762
|
+
}
|
|
13763
|
+
t1 = columns.map(t2);
|
|
13764
|
+
$[0] = columns;
|
|
13765
|
+
$[1] = layoutMode;
|
|
13766
|
+
$[2] = t1;
|
|
13767
|
+
} else {
|
|
13768
|
+
t1 = $[2];
|
|
13769
|
+
}
|
|
13770
|
+
const cells = t1;
|
|
13771
|
+
let t2;
|
|
13772
|
+
if ($[5] !== layoutMode) {
|
|
13773
|
+
t2 = layoutMode?.startsWith("grid");
|
|
13774
|
+
$[5] = layoutMode;
|
|
13775
|
+
$[6] = t2;
|
|
13776
|
+
} else {
|
|
13777
|
+
t2 = $[6];
|
|
13778
|
+
}
|
|
13779
|
+
let t3;
|
|
13780
|
+
if ($[7] !== cells || $[8] !== rowHeight || $[9] !== t2) {
|
|
13781
|
+
t3 = /*#__PURE__*/jsxRuntime.jsx(MRT_GhostRows, {
|
|
13782
|
+
cells: cells,
|
|
13783
|
+
isGridLayout: t2,
|
|
13784
|
+
rowHeight: rowHeight
|
|
13785
|
+
});
|
|
13786
|
+
$[7] = cells;
|
|
13787
|
+
$[8] = rowHeight;
|
|
13788
|
+
$[9] = t2;
|
|
13789
|
+
$[10] = t3;
|
|
13790
|
+
} else {
|
|
13791
|
+
t3 = $[10];
|
|
13792
|
+
}
|
|
13793
|
+
return t3;
|
|
13794
|
+
};
|
|
13795
|
+
|
|
13655
13796
|
const MRT_DisplayColumnCellRenderer = t0 => {
|
|
13656
13797
|
const $ = compilerRuntime.c(12);
|
|
13657
13798
|
const {
|
|
@@ -13759,6 +13900,8 @@ const MRT_TableBodyCellValue = ({
|
|
|
13759
13900
|
|
|
13760
13901
|
const MRT_TableBodyCell = ({
|
|
13761
13902
|
cell,
|
|
13903
|
+
columnPinningKey: _columnPinningKey,
|
|
13904
|
+
isSkeleton: _isSkeleton,
|
|
13762
13905
|
numRows,
|
|
13763
13906
|
rowRef,
|
|
13764
13907
|
staticColumnIndex,
|
|
@@ -13815,7 +13958,12 @@ const MRT_TableBodyCell = ({
|
|
|
13815
13958
|
draggingRow: state.draggingRow,
|
|
13816
13959
|
hoveredColumn: state.hoveredColumn,
|
|
13817
13960
|
hoveredRow: state.hoveredRow
|
|
13818
|
-
})
|
|
13961
|
+
}),
|
|
13962
|
+
// The selector returns a new object every time; the default `===` compare would
|
|
13963
|
+
// re-render every cell on any store update (e.g. a filter change), bypassing memo.
|
|
13964
|
+
{
|
|
13965
|
+
compare: shallowEqual
|
|
13966
|
+
});
|
|
13819
13967
|
const isResizingThisColumn = columnResizing.isResizingColumn === column.id;
|
|
13820
13968
|
const isActionCell = actionCell?.id === cell.id;
|
|
13821
13969
|
const isDraggingColumn = draggingColumn?.id === column.id;
|
|
@@ -13964,7 +14112,11 @@ const Memo_MRT_TableBodyCell = /*#__PURE__*/react.memo(MRT_TableBodyCell, (prev,
|
|
|
13964
14112
|
// without this, a cell whose own reference is stable but whose row moved to/from
|
|
13965
14113
|
// the last position (e.g. after a filter/sort changed row count) would keep a
|
|
13966
14114
|
// stale border.
|
|
13967
|
-
prev.staticRowIndex === next.staticRowIndex && prev.numRows === next.numRows
|
|
14115
|
+
prev.staticRowIndex === next.staticRowIndex && prev.numRows === next.numRows &&
|
|
14116
|
+
// data-index for the column virtualizer (column order/visibility changes)
|
|
14117
|
+
prev.staticColumnIndex === next.staticColumnIndex &&
|
|
14118
|
+
// Read outside of `cell`: theme (sx), pinning (sticky offsets) and skeletons
|
|
14119
|
+
prev.theme === next.theme && prev.columnPinningKey === next.columnPinningKey && prev.isSkeleton === next.isSkeleton);
|
|
13968
14120
|
|
|
13969
14121
|
const MRT_TableDetailPanel = t0 => {
|
|
13970
14122
|
const $ = compilerRuntime.c(51);
|
|
@@ -14222,7 +14374,10 @@ const MRT_TableBodyRow = ({
|
|
|
14222
14374
|
}
|
|
14223
14375
|
} = table;
|
|
14224
14376
|
const {
|
|
14225
|
-
|
|
14377
|
+
columnPinning,
|
|
14378
|
+
isLoading,
|
|
14379
|
+
rowPinning,
|
|
14380
|
+
showSkeletons
|
|
14226
14381
|
} = getState();
|
|
14227
14382
|
const {
|
|
14228
14383
|
density,
|
|
@@ -14234,7 +14389,12 @@ const MRT_TableBodyRow = ({
|
|
|
14234
14389
|
draggingColumn: state.draggingColumn,
|
|
14235
14390
|
draggingRow: state.draggingRow,
|
|
14236
14391
|
hoveredRow: state.hoveredRow
|
|
14237
|
-
})
|
|
14392
|
+
}),
|
|
14393
|
+
// New object per call — compare shallowly so unrelated store updates don't re-render
|
|
14394
|
+
{
|
|
14395
|
+
compare: shallowEqual
|
|
14396
|
+
});
|
|
14397
|
+
const columnPinningKey = `${columnPinning.start?.join() ?? ''}|${columnPinning.end?.join() ?? ''}`;
|
|
14238
14398
|
const isDraggingRow = draggingRow?.id === row.id;
|
|
14239
14399
|
const isHoveredRow = hoveredRow?.id === row.id;
|
|
14240
14400
|
const isAnyDragging = !!draggingColumn || !!draggingRow;
|
|
@@ -14344,6 +14504,8 @@ const MRT_TableBodyRow = ({
|
|
|
14344
14504
|
}
|
|
14345
14505
|
const props = {
|
|
14346
14506
|
cell,
|
|
14507
|
+
columnPinningKey,
|
|
14508
|
+
isSkeleton: showSkeletons !== false && (isLoading || showSkeletons),
|
|
14347
14509
|
numRows,
|
|
14348
14510
|
rowRef,
|
|
14349
14511
|
staticColumnIndex,
|
|
@@ -14399,7 +14561,8 @@ const MRT_TableBody = ({
|
|
|
14399
14561
|
muiTableBodyProps,
|
|
14400
14562
|
renderDetailPanel,
|
|
14401
14563
|
renderEmptyRowsFallback,
|
|
14402
|
-
rowPinningDisplayMode
|
|
14564
|
+
rowPinningDisplayMode,
|
|
14565
|
+
skeletonMode
|
|
14403
14566
|
},
|
|
14404
14567
|
refs: {
|
|
14405
14568
|
tableFooterRef,
|
|
@@ -14409,8 +14572,11 @@ const MRT_TableBody = ({
|
|
|
14409
14572
|
} = table;
|
|
14410
14573
|
const {
|
|
14411
14574
|
filters,
|
|
14412
|
-
|
|
14575
|
+
isLoading,
|
|
14576
|
+
rowPinning,
|
|
14577
|
+
showSkeletons
|
|
14413
14578
|
} = getState();
|
|
14579
|
+
const showLoadingPlaceholder = skeletonMode === 'placeholder' && showSkeletons !== false && (isLoading || showSkeletons);
|
|
14414
14580
|
const density = reactStore.useSelector(table.store, state => state.density);
|
|
14415
14581
|
|
|
14416
14582
|
//read once per body render instead of once per row/cell, since every
|
|
@@ -14479,15 +14645,30 @@ const MRT_TableBody = ({
|
|
|
14479
14645
|
}, row_0.id);
|
|
14480
14646
|
})
|
|
14481
14647
|
}), /*#__PURE__*/jsxRuntime.jsx(TableBody, {
|
|
14648
|
+
"data-loading-placeholder": showLoadingPlaceholder && !rows.length ? true : undefined,
|
|
14649
|
+
"data-refetching": isLoading && rows.length ? true : undefined,
|
|
14482
14650
|
...tableBodyProps,
|
|
14483
14651
|
sx: theme_1 => ({
|
|
14484
14652
|
display: layoutMode?.startsWith('grid') ? 'grid' : undefined,
|
|
14653
|
+
'&[data-loading-placeholder]': {
|
|
14654
|
+
animation: mrtDelayedFadeIn
|
|
14655
|
+
},
|
|
14656
|
+
//refetch with the old rows still shown: dim them (after a short
|
|
14657
|
+
//delay, so fast responses don't flash) instead of re-rendering cells
|
|
14658
|
+
'&[data-refetching]': {
|
|
14659
|
+
opacity: 0.6,
|
|
14660
|
+
transition: 'opacity 150ms ease-out 200ms'
|
|
14661
|
+
},
|
|
14485
14662
|
height: rowVirtualizer ? `${rowVirtualizer.getTotalSize()}px` : undefined,
|
|
14486
14663
|
minHeight: !rows.length ? '100px' : undefined,
|
|
14487
14664
|
position: 'relative',
|
|
14488
14665
|
...parseFromValuesOrFunc(tableBodyProps?.sx, theme_1)
|
|
14489
14666
|
}),
|
|
14490
|
-
children: tableBodyProps?.children ?? (!rows.length ? /*#__PURE__*/jsxRuntime.jsx(
|
|
14667
|
+
children: tableBodyProps?.children ?? (!rows.length ? showLoadingPlaceholder ? /*#__PURE__*/jsxRuntime.jsx(MRT_TableBodyLoadingPlaceholder, {
|
|
14668
|
+
columns: table.getVisibleLeafColumns(),
|
|
14669
|
+
density: density,
|
|
14670
|
+
layoutMode: layoutMode
|
|
14671
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
14491
14672
|
style: {
|
|
14492
14673
|
display: layoutMode?.startsWith('grid') ? 'grid' : undefined
|
|
14493
14674
|
},
|
|
@@ -15193,7 +15374,7 @@ const MRT_ColumnActionMenu = t0 => {
|
|
|
15193
15374
|
let t7;
|
|
15194
15375
|
if ($[15] !== column || $[16] !== setAnchorEl || $[17] !== setColumnResizing) {
|
|
15195
15376
|
t7 = () => {
|
|
15196
|
-
setColumnResizing(_temp3$
|
|
15377
|
+
setColumnResizing(_temp3$2);
|
|
15197
15378
|
column.resetSize();
|
|
15198
15379
|
setAnchorEl(null);
|
|
15199
15380
|
};
|
|
@@ -15235,7 +15416,7 @@ const MRT_ColumnActionMenu = t0 => {
|
|
|
15235
15416
|
if ($[25] !== column || $[26] !== setAnchorEl || $[27] !== setColumnOrder) {
|
|
15236
15417
|
t10 = () => {
|
|
15237
15418
|
column.toggleGrouping();
|
|
15238
|
-
setColumnOrder(_temp4);
|
|
15419
|
+
setColumnOrder(_temp4$1);
|
|
15239
15420
|
setAnchorEl(null);
|
|
15240
15421
|
};
|
|
15241
15422
|
$[25] = column;
|
|
@@ -15436,13 +15617,13 @@ function _temp$8(state) {
|
|
|
15436
15617
|
function _temp2$5(state_0) {
|
|
15437
15618
|
return state_0.density;
|
|
15438
15619
|
}
|
|
15439
|
-
function _temp3$
|
|
15620
|
+
function _temp3$2(old) {
|
|
15440
15621
|
return {
|
|
15441
15622
|
...old,
|
|
15442
15623
|
isResizingColumn: false
|
|
15443
15624
|
};
|
|
15444
15625
|
}
|
|
15445
|
-
function _temp4(old_0) {
|
|
15626
|
+
function _temp4$1(old_0) {
|
|
15446
15627
|
return ["mrt-row-expand", ...old_0];
|
|
15447
15628
|
}
|
|
15448
15629
|
function _temp5(col) {
|
|
@@ -16824,6 +17005,127 @@ const MRT_Table = ({
|
|
|
16824
17005
|
});
|
|
16825
17006
|
};
|
|
16826
17007
|
|
|
17008
|
+
// positionProgressBars: 'header'. A zero-height box that sticks to the top-left
|
|
17009
|
+
// of the scroll container (so the bar stays in view while scrolling horizontally,
|
|
17010
|
+
// and vertically too with a sticky header), with the bar placed at the head's
|
|
17011
|
+
// bottom edge. The fade-in delay keeps fast refetches from flashing it.
|
|
17012
|
+
const MRT_TableHeadProgressBar = t0 => {
|
|
17013
|
+
const $ = compilerRuntime.c(16);
|
|
17014
|
+
const {
|
|
17015
|
+
table
|
|
17016
|
+
} = t0;
|
|
17017
|
+
const {
|
|
17018
|
+
options: t1,
|
|
17019
|
+
refs: t2
|
|
17020
|
+
} = table;
|
|
17021
|
+
const {
|
|
17022
|
+
enableStickyHeader
|
|
17023
|
+
} = t1;
|
|
17024
|
+
const {
|
|
17025
|
+
tableHeadRef
|
|
17026
|
+
} = t2;
|
|
17027
|
+
const [headHeight, setHeadHeight] = react.useState(0);
|
|
17028
|
+
let t3;
|
|
17029
|
+
let t4;
|
|
17030
|
+
if ($[0] !== tableHeadRef) {
|
|
17031
|
+
t3 = () => {
|
|
17032
|
+
const head = tableHeadRef.current;
|
|
17033
|
+
if (!head) {
|
|
17034
|
+
return;
|
|
17035
|
+
}
|
|
17036
|
+
const observer = new ResizeObserver(() => setHeadHeight(head.offsetHeight));
|
|
17037
|
+
observer.observe(head);
|
|
17038
|
+
return () => observer.disconnect();
|
|
17039
|
+
};
|
|
17040
|
+
t4 = [tableHeadRef];
|
|
17041
|
+
$[0] = tableHeadRef;
|
|
17042
|
+
$[1] = t3;
|
|
17043
|
+
$[2] = t4;
|
|
17044
|
+
} else {
|
|
17045
|
+
t3 = $[1];
|
|
17046
|
+
t4 = $[2];
|
|
17047
|
+
}
|
|
17048
|
+
react.useEffect(t3, t4);
|
|
17049
|
+
const t5 = enableStickyHeader ? 0 : undefined;
|
|
17050
|
+
let t6;
|
|
17051
|
+
if ($[3] !== t5) {
|
|
17052
|
+
t6 = {
|
|
17053
|
+
flexShrink: 0,
|
|
17054
|
+
height: 0,
|
|
17055
|
+
left: 0,
|
|
17056
|
+
position: "sticky",
|
|
17057
|
+
top: t5,
|
|
17058
|
+
width: "100%",
|
|
17059
|
+
zIndex: 3
|
|
17060
|
+
};
|
|
17061
|
+
$[3] = t5;
|
|
17062
|
+
$[4] = t6;
|
|
17063
|
+
} else {
|
|
17064
|
+
t6 = $[4];
|
|
17065
|
+
}
|
|
17066
|
+
let t7;
|
|
17067
|
+
if ($[5] !== headHeight) {
|
|
17068
|
+
t7 = {
|
|
17069
|
+
left: 0,
|
|
17070
|
+
position: "absolute",
|
|
17071
|
+
right: 0,
|
|
17072
|
+
top: headHeight
|
|
17073
|
+
};
|
|
17074
|
+
$[5] = headHeight;
|
|
17075
|
+
$[6] = t7;
|
|
17076
|
+
} else {
|
|
17077
|
+
t7 = $[6];
|
|
17078
|
+
}
|
|
17079
|
+
let t8;
|
|
17080
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17081
|
+
t8 = {
|
|
17082
|
+
animation: mrtDelayedFadeIn,
|
|
17083
|
+
height: 2,
|
|
17084
|
+
position: "relative"
|
|
17085
|
+
};
|
|
17086
|
+
$[7] = t8;
|
|
17087
|
+
} else {
|
|
17088
|
+
t8 = $[7];
|
|
17089
|
+
}
|
|
17090
|
+
let t9;
|
|
17091
|
+
if ($[8] !== table) {
|
|
17092
|
+
t9 = /*#__PURE__*/jsxRuntime.jsx(MRT_LinearProgressBar, {
|
|
17093
|
+
isTopToolbar: false,
|
|
17094
|
+
sx: t8,
|
|
17095
|
+
table: table
|
|
17096
|
+
});
|
|
17097
|
+
$[8] = table;
|
|
17098
|
+
$[9] = t9;
|
|
17099
|
+
} else {
|
|
17100
|
+
t9 = $[9];
|
|
17101
|
+
}
|
|
17102
|
+
let t10;
|
|
17103
|
+
if ($[10] !== t7 || $[11] !== t9) {
|
|
17104
|
+
t10 = /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
17105
|
+
sx: t7,
|
|
17106
|
+
children: t9
|
|
17107
|
+
});
|
|
17108
|
+
$[10] = t7;
|
|
17109
|
+
$[11] = t9;
|
|
17110
|
+
$[12] = t10;
|
|
17111
|
+
} else {
|
|
17112
|
+
t10 = $[12];
|
|
17113
|
+
}
|
|
17114
|
+
let t11;
|
|
17115
|
+
if ($[13] !== t10 || $[14] !== t6) {
|
|
17116
|
+
t11 = /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
17117
|
+
sx: t6,
|
|
17118
|
+
children: t10
|
|
17119
|
+
});
|
|
17120
|
+
$[13] = t10;
|
|
17121
|
+
$[14] = t6;
|
|
17122
|
+
$[15] = t11;
|
|
17123
|
+
} else {
|
|
17124
|
+
t11 = $[15];
|
|
17125
|
+
}
|
|
17126
|
+
return t11;
|
|
17127
|
+
};
|
|
17128
|
+
|
|
16827
17129
|
const MRT_TableLoadingOverlay = t0 => {
|
|
16828
17130
|
const $ = compilerRuntime.c(20);
|
|
16829
17131
|
let rest;
|
|
@@ -16946,7 +17248,8 @@ const MRT_TableContainer = ({
|
|
|
16946
17248
|
options: {
|
|
16947
17249
|
enableCellActions,
|
|
16948
17250
|
enableRowVirtualization,
|
|
16949
|
-
muiTableContainerProps
|
|
17251
|
+
muiTableContainerProps,
|
|
17252
|
+
positionProgressBars
|
|
16950
17253
|
},
|
|
16951
17254
|
refs: {
|
|
16952
17255
|
resizeIndicatorRef,
|
|
@@ -17027,6 +17330,8 @@ const MRT_TableContainer = ({
|
|
|
17027
17330
|
width: '2px',
|
|
17028
17331
|
zIndex: 3
|
|
17029
17332
|
}
|
|
17333
|
+
}), positionProgressBars === 'header' && /*#__PURE__*/jsxRuntime.jsx(MRT_TableHeadProgressBar, {
|
|
17334
|
+
table: table
|
|
17030
17335
|
}), /*#__PURE__*/jsxRuntime.jsx(MRT_Table, {
|
|
17031
17336
|
table: table
|
|
17032
17337
|
}), newEntryModal.open && /*#__PURE__*/jsxRuntime.jsx(react.Suspense, {
|
|
@@ -17713,6 +18018,10 @@ const MaterialReactServerTableInstanceComponent = ({
|
|
|
17713
18018
|
const [pageCount, setPageCount] = react.useState(undefined);
|
|
17714
18019
|
const [rowCount, setRowCount] = react.useState(0);
|
|
17715
18020
|
const [isLoading, setIsLoading] = react.useState(false);
|
|
18021
|
+
// Skeletons only until the first data arrives. On later refetches (filter, sort, paging)
|
|
18022
|
+
// the current rows stay visible with a progress bar - swapping every cell to a Skeleton
|
|
18023
|
+
// and back remounts the whole table body twice per refetch.
|
|
18024
|
+
const [hasLoadedOnce, setHasLoadedOnce] = react.useState(false);
|
|
17716
18025
|
|
|
17717
18026
|
// Filter availableExports by exportPermissions if provided.
|
|
17718
18027
|
// exportPermissions maps export key → required permission strings.
|
|
@@ -17762,7 +18071,8 @@ const MaterialReactServerTableInstanceComponent = ({
|
|
|
17762
18071
|
enableRowPinning: false,
|
|
17763
18072
|
getRowId: originalRow => originalRow.id,
|
|
17764
18073
|
state: {
|
|
17765
|
-
showSkeletons: isLoading,
|
|
18074
|
+
showSkeletons: isLoading && !hasLoadedOnce,
|
|
18075
|
+
showProgressBars: isLoading,
|
|
17766
18076
|
...tableState
|
|
17767
18077
|
},
|
|
17768
18078
|
enableResetState,
|
|
@@ -17797,6 +18107,7 @@ const MaterialReactServerTableInstanceComponent = ({
|
|
|
17797
18107
|
hasNextPage
|
|
17798
18108
|
} = await loadData(tableInstance.getState());
|
|
17799
18109
|
tableInstance.setRows(newData);
|
|
18110
|
+
setHasLoadedOnce(true);
|
|
17800
18111
|
if (hasNextPage) {
|
|
17801
18112
|
setPageCount(-1);
|
|
17802
18113
|
setRowCount(0);
|
|
@@ -17832,6 +18143,12 @@ const MaterialReactServerTableInstanceComponent = ({
|
|
|
17832
18143
|
};
|
|
17833
18144
|
const MaterialReactServerTableInstance = /*#__PURE__*/react.forwardRef(MaterialReactServerTableInstanceComponent);
|
|
17834
18145
|
|
|
18146
|
+
const GHOST_COLUMNS = Array.from({
|
|
18147
|
+
length: 6
|
|
18148
|
+
}, (_, i) => ({
|
|
18149
|
+
id: `${i}`
|
|
18150
|
+
}));
|
|
18151
|
+
const HEADER_BAR_WIDTHS = [55, 40, 65, 45, 60, 35];
|
|
17835
18152
|
const MaterialReactServerTableSkeleton = () => {
|
|
17836
18153
|
const $ = compilerRuntime.c(6);
|
|
17837
18154
|
let t0;
|
|
@@ -17839,7 +18156,10 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
17839
18156
|
t0 = {
|
|
17840
18157
|
display: "flex",
|
|
17841
18158
|
flexDirection: "column",
|
|
17842
|
-
height: "100%"
|
|
18159
|
+
height: "100%",
|
|
18160
|
+
"& > *": {
|
|
18161
|
+
animation: mrtDelayedFadeIn
|
|
18162
|
+
}
|
|
17843
18163
|
};
|
|
17844
18164
|
$[0] = t0;
|
|
17845
18165
|
} else {
|
|
@@ -17854,22 +18174,22 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
17854
18174
|
gap: "0.5rem"
|
|
17855
18175
|
},
|
|
17856
18176
|
children: [/*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17857
|
-
animation: "
|
|
18177
|
+
animation: "pulse",
|
|
17858
18178
|
height: 30,
|
|
17859
18179
|
variant: "rounded",
|
|
17860
18180
|
width: 73
|
|
17861
18181
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17862
|
-
animation: "
|
|
18182
|
+
animation: "pulse",
|
|
17863
18183
|
height: 30,
|
|
17864
18184
|
variant: "rounded",
|
|
17865
18185
|
width: 80
|
|
17866
18186
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17867
|
-
animation: "
|
|
18187
|
+
animation: "pulse",
|
|
17868
18188
|
height: 30,
|
|
17869
18189
|
variant: "rounded",
|
|
17870
18190
|
width: 67
|
|
17871
18191
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17872
|
-
animation: "
|
|
18192
|
+
animation: "pulse",
|
|
17873
18193
|
height: 30,
|
|
17874
18194
|
variant: "rounded",
|
|
17875
18195
|
width: 135
|
|
@@ -17890,7 +18210,7 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
17890
18210
|
gap: "0.5rem"
|
|
17891
18211
|
},
|
|
17892
18212
|
children: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17893
|
-
animation: "
|
|
18213
|
+
animation: "pulse",
|
|
17894
18214
|
height: 24,
|
|
17895
18215
|
variant: "circular",
|
|
17896
18216
|
width: 24
|
|
@@ -17904,9 +18224,8 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
17904
18224
|
let t3;
|
|
17905
18225
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17906
18226
|
t3 = {
|
|
17907
|
-
display: "flex",
|
|
17908
18227
|
flex: 1,
|
|
17909
|
-
|
|
18228
|
+
overflow: "hidden"
|
|
17910
18229
|
};
|
|
17911
18230
|
$[3] = t3;
|
|
17912
18231
|
} else {
|
|
@@ -17916,13 +18235,20 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
17916
18235
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17917
18236
|
t4 = /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
17918
18237
|
sx: t3,
|
|
17919
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
17920
|
-
|
|
17921
|
-
|
|
17922
|
-
|
|
17923
|
-
|
|
17924
|
-
|
|
17925
|
-
|
|
18238
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
18239
|
+
component: "table",
|
|
18240
|
+
sx: _temp2$3,
|
|
18241
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("thead", {
|
|
18242
|
+
"aria-hidden": true,
|
|
18243
|
+
children: /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
18244
|
+
children: GHOST_COLUMNS.map(_temp3$1)
|
|
18245
|
+
})
|
|
18246
|
+
}), /*#__PURE__*/jsxRuntime.jsx("tbody", {
|
|
18247
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MRT_GhostRows, {
|
|
18248
|
+
cells: GHOST_COLUMNS,
|
|
18249
|
+
rowHeight: 37
|
|
18250
|
+
})
|
|
18251
|
+
})]
|
|
17926
18252
|
})
|
|
17927
18253
|
});
|
|
17928
18254
|
$[4] = t4;
|
|
@@ -17935,7 +18261,7 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
17935
18261
|
"data-testid": "server-table-skeleton",
|
|
17936
18262
|
sx: t0,
|
|
17937
18263
|
children: [t2, t4, /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
17938
|
-
sx:
|
|
18264
|
+
sx: _temp4,
|
|
17939
18265
|
children: /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
17940
18266
|
sx: {
|
|
17941
18267
|
alignItems: "center",
|
|
@@ -17943,27 +18269,27 @@ const MaterialReactServerTableSkeleton = () => {
|
|
|
17943
18269
|
gap: "1rem"
|
|
17944
18270
|
},
|
|
17945
18271
|
children: [/*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17946
|
-
animation: "
|
|
18272
|
+
animation: "pulse",
|
|
17947
18273
|
height: 36,
|
|
17948
18274
|
variant: "rounded",
|
|
17949
18275
|
width: 136
|
|
17950
18276
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17951
|
-
animation: "
|
|
18277
|
+
animation: "pulse",
|
|
17952
18278
|
height: 31,
|
|
17953
18279
|
variant: "text",
|
|
17954
18280
|
width: 176
|
|
17955
18281
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17956
|
-
animation: "
|
|
18282
|
+
animation: "pulse",
|
|
17957
18283
|
height: 22,
|
|
17958
18284
|
variant: "text",
|
|
17959
18285
|
width: 70
|
|
17960
18286
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17961
|
-
animation: "
|
|
18287
|
+
animation: "pulse",
|
|
17962
18288
|
height: 24,
|
|
17963
18289
|
variant: "circular",
|
|
17964
18290
|
width: 24
|
|
17965
18291
|
}), /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
|
|
17966
|
-
animation: "
|
|
18292
|
+
animation: "pulse",
|
|
17967
18293
|
height: 24,
|
|
17968
18294
|
variant: "circular",
|
|
17969
18295
|
width: 24
|
|
@@ -17989,9 +18315,40 @@ function _temp$6(theme) {
|
|
|
17989
18315
|
};
|
|
17990
18316
|
}
|
|
17991
18317
|
function _temp2$3(theme_0) {
|
|
18318
|
+
return {
|
|
18319
|
+
borderCollapse: "collapse",
|
|
18320
|
+
tableLayout: "fixed",
|
|
18321
|
+
width: "100%",
|
|
18322
|
+
"& th": {
|
|
18323
|
+
borderBottom: `1px solid ${theme_0.palette.divider}`,
|
|
18324
|
+
height: 48,
|
|
18325
|
+
p: "0.5rem",
|
|
18326
|
+
textAlign: "left"
|
|
18327
|
+
},
|
|
18328
|
+
"& th > span": {
|
|
18329
|
+
backgroundColor: styles.alpha(theme_0.palette.text.primary, 0.16),
|
|
18330
|
+
borderRadius: 999,
|
|
18331
|
+
display: "block",
|
|
18332
|
+
height: 12
|
|
18333
|
+
}
|
|
18334
|
+
};
|
|
18335
|
+
}
|
|
18336
|
+
function _temp3$1(t0, i) {
|
|
18337
|
+
const {
|
|
18338
|
+
id
|
|
18339
|
+
} = t0;
|
|
18340
|
+
return /*#__PURE__*/jsxRuntime.jsx("th", {
|
|
18341
|
+
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
18342
|
+
style: {
|
|
18343
|
+
width: `${HEADER_BAR_WIDTHS[i]}%`
|
|
18344
|
+
}
|
|
18345
|
+
})
|
|
18346
|
+
}, id);
|
|
18347
|
+
}
|
|
18348
|
+
function _temp4(theme_1) {
|
|
17992
18349
|
return {
|
|
17993
18350
|
alignItems: "center",
|
|
17994
|
-
borderTop: `1px solid ${
|
|
18351
|
+
borderTop: `1px solid ${theme_1.palette.divider}`,
|
|
17995
18352
|
display: "flex",
|
|
17996
18353
|
height: "3.30rem",
|
|
17997
18354
|
justifyContent: "flex-end",
|