@tap-payments/os-micro-frontend-shared 0.1.103-test.109 → 0.1.103-test.111
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/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.js +0 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/components/VirtualTable.js +1 -0
- package/build/components/VirtualTables/components/TableRow.js +0 -1
- package/build/components/VirtualTables/components/virtualScroll/ListItemWrapper.js +0 -1
- package/package.json +2 -2
|
@@ -70,7 +70,6 @@ function SheetViewVirtualTable({ columns, rows, threshold = SHEET_VIEW_TABLE_THR
|
|
|
70
70
|
const createPinnedStartTable = useCallback((columnsData, fixedWidth) => (_jsx(VirtualTable, Object.assign({ columnsData: columnsData }, stableTableProps, dynamicTableProps, { isPinned: true, fixedWidth: fixedWidth, onScroll: scrollHandlers.start, listRef: pinnedStartVirtualListRef }), "pinned-start")), [stableTableProps, dynamicTableProps, scrollHandlers.start, pinnedStartVirtualListRef]);
|
|
71
71
|
const createPinnedEndTable = useCallback((columnsData, fixedWidth) => (_jsx(VirtualTable, Object.assign({ columnsData: columnsData }, stableTableProps, dynamicTableProps, { isPinned: true, fixedWidth: fixedWidth, onScroll: scrollHandlers.end, listRef: pinnedEndVirtualListRef }), "pinned-end")), [stableTableProps, dynamicTableProps, scrollHandlers.end, pinnedEndVirtualListRef]);
|
|
72
72
|
const createScrollableTable = useCallback((columnsData) => (_jsx(VirtualTable, Object.assign({ columnsData: columnsData }, stableTableProps, dynamicTableProps, { isPinned: false, onScroll: scrollHandlers.scrollable, listRef: scrollableVirtualListRef }), "scrollable")), [stableTableProps, dynamicTableProps, scrollHandlers.scrollable, scrollableVirtualListRef]);
|
|
73
|
-
console.log({ selectedCell, selectedColumn, selectedRow, selectedChip });
|
|
74
73
|
const createVirtualTableContainer = useCallback((columnsData, containerKey, isPinned = false, fixedWidth) => {
|
|
75
74
|
switch (containerKey) {
|
|
76
75
|
case 'pinnedStart':
|
|
@@ -23,6 +23,7 @@ function VirtualTable({ columnsData, itemCount, lastItemIndex, areAllRowsLoaded,
|
|
|
23
23
|
return (_jsx(InfiniteLoader, Object.assign({ isItemLoaded: (index) => index !== lastItemIndex, itemCount: itemCount, loadMoreItems: handleOnLoadMoreItems, threshold: threshold }, { children: ({ onItemsRendered, ref }) => (_jsx(AutoSizer, Object.assign({ ref: ref }, { children: ({ height, width }) => {
|
|
24
24
|
const itemSize = (index) => getItemSize(index, height);
|
|
25
25
|
const itemData = getItemData(columnsData, isPinned, height);
|
|
26
|
+
console.log('itemData', itemData);
|
|
26
27
|
return (_jsx(StyledVirtualList, Object.assign({ listRef: listRef, height: height, width: fixedWidth || width, itemCount: itemCount, itemSize: itemSize, itemData: itemData, onItemsRendered: onItemsRendered, overscanCount: overscanCount, setBackdropVisibility: setBackdropVisibility, scrollToIndex: scrollToIndex, areTotalRowsNotFillingHeight: areTotalRowsNotFillingHeight, useIsScrolling: true, onScroll: onScroll, clearBackdropVisibilityTimeout: clearBackdropVisibilityTimeout, style: {
|
|
27
28
|
overflowX: isPinned ? 'hidden' : 'auto',
|
|
28
29
|
paddingBottom: isPinned ? '25px' : '13px',
|
|
@@ -23,7 +23,6 @@ function TableRow({ row, columns, index, rowProps, isSheetView, selectedCell = n
|
|
|
23
23
|
selectionProps: { onClick: handleChipClick, rowIndex, colIndex, selectedId: selectedChip },
|
|
24
24
|
})) : (_jsx(_Fragment, { children: formattedValue }));
|
|
25
25
|
};
|
|
26
|
-
console.log('selectedCell, selectedColumn, selectedRow, row', selectedCell, selectedColumn, selectedRow);
|
|
27
26
|
const content = useMemo(() => (_jsx(_Fragment, { children: columns.map((column, colIndex) => {
|
|
28
27
|
var _a, _b;
|
|
29
28
|
const cellKey = `${(_a = column.pinned) !== null && _a !== void 0 ? _a : 'default'}-${index}-${colIndex}`;
|
|
@@ -88,7 +88,6 @@ function ListItemWrapper(_a) {
|
|
|
88
88
|
height: '100%',
|
|
89
89
|
} }, { children: isError ? _jsx(RowErrorState, {}) : lastRowContent })) })));
|
|
90
90
|
}
|
|
91
|
-
console.log('restData, ListItemWrapper', restData);
|
|
92
91
|
return (_jsx(TableRow, Object.assign({ index: index, row: row, columns: columns, rowProps: memoizedRowProps, isSheetView: isSheetView, isLastRow: index === rows.length - 1, isFirstRow: index === 0, isLoading: isLoading, isLoadMoreLoading: isLoadMoreLoading }, restData), `row-${index}`));
|
|
93
92
|
}, [
|
|
94
93
|
restData,
|
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.1.103-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.103-test.111",
|
|
5
|
+
"testVersion": 111,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|