@tap-payments/os-micro-frontend-shared 0.0.257-test.8 → 0.0.257-test.9
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.
|
@@ -143,8 +143,7 @@ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, sho
|
|
|
143
143
|
};
|
|
144
144
|
return (_jsxs(_Fragment, { children: [_jsxs(TableContainer, { children: [showNoDataView ? (tableLoading ? (_jsx(StyledTableBox, Object.assign({ as: "main", id: "sheet-table-box-container", "aria-labelledby": "sheet-table-box-container", "data-testid": "SheetViewVirtualTable_StyledTableBox_Loading", "data-title": tableTitle, "data-direction": theme.direction, "data-are-all-rows-loaded": !!areAllRowsLoaded, "data-is-fetching-next-page": !!isFetchingNextPage, "data-scroll-to-index": scrollToIndex, "data-is-loading": !!isLoading, "data-is-error": !!isError, "data-is-error-timeout": !!hasTimeoutError, "data-show-background-color": !!showBackgroundColor, "data-table-mode": tableMode, height: "auto", dir: theme.direction, showBackgroundColor: showBackgroundColor, showNoDataView: showNoDataView, scrollable: true, sx: {
|
|
145
145
|
marginLeft: '28px',
|
|
146
|
-
|
|
147
|
-
maxHeight: 'calc(100vh - 200px)',
|
|
146
|
+
maxHeight: 'calc(14 * 28px + 60px)',
|
|
148
147
|
overflow: 'auto',
|
|
149
148
|
} }, { children: _jsxs(TableWrapper, Object.assign({ "data-testid": "SheetViewVirtualTable_LoadingTableWrapper", showNoDataView: showNoDataView, sx: Object.assign(Object.assign({}, tableBodyStyles), { display: 'flex', flexDirection: 'column', height: 'auto' }) }, { children: [showHeader && (_jsx(UnpinnedTableHeaderWrapper, { children: _jsx(SheetViewTableHeader, { "data-testid": "SheetViewVirtualTable_LoadingTableHeader", columnsSorting: columnsSorting, onColumnSort: onColumnSort, columns: orderedColumns, headerProps: headerProps, showBackDrop: showBackDrop, pinnedColumns: [], onColumnPin: handleColumnPin, isPinnable: false, lastColumnId: lastColumnId, selectedColumn: selectedColumn, onColumnClick: handleColumnClick }) })), _jsx(TableWrapper, Object.assign({ "data-testid": "VirtualTable_LoadingTableWrapper", sx: {
|
|
150
149
|
width: '100%',
|
|
@@ -14,7 +14,7 @@ const Wrapper = styled('section')(({ isLoaded = false }) => ({
|
|
|
14
14
|
}));
|
|
15
15
|
function SheetViewTableLoading({ columns, isLoaded = false, animationType, isLoading = false, rowsCount }) {
|
|
16
16
|
let maxAllowedRows = rowsCount || calculateMaxAllowedRows(isLoaded, isLoading);
|
|
17
|
-
maxAllowedRows = rowsCount || Math.max(maxAllowedRows,
|
|
17
|
+
maxAllowedRows = rowsCount || Math.max(maxAllowedRows, 25);
|
|
18
18
|
return (_jsx(Wrapper, Object.assign({ isLoaded: isLoaded, "data-testid": "SheetViewTableLoading" }, { children: [...Array(maxAllowedRows)].map((_, index) => (_jsx(SheetViewTableRowLoading, { columns: columns, animationType: animationType, rowIndex: index }, `i-${uniqueId('SheetViewTableLoadingRow_')}`))) })));
|
|
19
19
|
}
|
|
20
20
|
export default memo(SheetViewTableLoading);
|
|
@@ -5,8 +5,8 @@ import { styled } from '@mui/material/styles';
|
|
|
5
5
|
import TableCell from '@mui/material/TableCell';
|
|
6
6
|
import MUITableRow from '@mui/material/TableRow';
|
|
7
7
|
import { areEqual } from 'react-window';
|
|
8
|
-
const StyledSkeleton = styled(Skeleton)((
|
|
9
|
-
backgroundColor:
|
|
8
|
+
const StyledSkeleton = styled(Skeleton)(() => ({
|
|
9
|
+
backgroundColor: '#F4F4F4',
|
|
10
10
|
borderRadius: '64px',
|
|
11
11
|
width: '100%',
|
|
12
12
|
minWidth: '20px',
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.0.257-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.0.257-test.9",
|
|
5
|
+
"testVersion": 9,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|